/*! For license information please see chunk.698.9cf2e1d221282fc8c1cf.js.LICENSE.txt */
(globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]).push([[698],{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:()=>Q,AbiV2:()=>J})
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:()=>_,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"},_={ALREADY_STARTED:"State machine has already begun"}
class k 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(_.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 A=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"}),C={GET:"GET",CREATE:"POST",ACTION:"POST"}
function I(){return"undefined"!=typeof window&&window&&"node"!==window.appEnvironment}function w(e,t,n,i){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{}
const o=C[t],a=JSON.stringify(n)||""
return new i(((n,i)=>{const s=new XMLHttpRequest
s.open(o,e),s.setRequestHeader("Content-Type","application/json"),s.setRequestHeader("Csrf-Token",function(){const e=I()&&document.cookie.match(/JSESSIONID=?"?([^";]+)?"?/)
return e&&e[1]||""}()),s.setRequestHeader("X-RestLi-Protocol-Version","2.0.0"),t&&o!==t&&s.setRequestHeader("X-RestLi-Method",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("x-restli-id")):i(new Error(e.statusText)))},s.onerror=function(e){i(new Error(e))},s.send(a)}))}function x(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
const n=A[arguments.length>2?arguments[2]:void 0]
if(!e)throw new Error("uri must be passed.")
if(!n)throw new Error("Invalid recipeId! Recipe not defined in dash-recipes.")
return`${e}?decorationId=${n}&${Object.keys(t).map((e=>`${e}=${t[e]}`)).join("&")}`}class R 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?x("/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),w(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 N 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 w(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 O 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 D 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?x(`/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,w(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 P(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 M(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=>{switch(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,M.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((()=>{r(b.IMPORT_ERROR_OTHER)}))}catch(e){r(b.IMPORT_ERROR_OTHER)}}))}function j(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 M({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 L={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}},U=I()
let F,B,G,H,V
function q(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L.default,n=arguments.length>2?arguments[2]:void 0
if(U||"function"!=typeof B){if(!F)return}else B({url:e,size:t})
const{oAuthWindow:i}=F,{width:r,height:o}=t
i&&i.resizeTo?(i.location=n.sanitizeUrl(e),i.resizeTo(r,o)):F=null}function K(){if(!F)return
const{oAuthWindow:e}=F
e&&(e.focus(),setTimeout((()=>{e&&e.close()}),5)),F=null}function W(e){return new Promise(((t,n)=>{e.getImportTicketIdCallback.call(this,{emailAddress:e.emailAddress,abookImportTransactionId:e.abookImportTransactionId}).then((t=>{if(t.importTicketId)return M({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 Y(){if(!U)return void(F={})
const{width:e,height:t}=L.minimum,n=window.open("","oauth-popup",`width=${e},height=${t},toolbar=0,location=0,status=0,scrollbars=no`)
F={oAuthWindow:n},V=!1,n&&(n.focus(),function(){let e=0
return new Promise((function t(n,i){F&&F.oAuthWindow&&!F.oAuthWindow.closed?e<120?(e+=1,setTimeout(t,1e3,n,i)):(K(),i()):(F=null,V?n():i())}))}().catch((()=>{"function"==typeof G&&G(b.OAUTH_VALIDATION_TIMED_OUT)})))}function z(e,t){let n="linkedin.com"
U&&(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 X(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,F||Y(),F||n(b.OAUTH_POPUP_NOT_OPEN),B=t,G=n,e.fireTrackingEventCallback(E.SUBMIT,{abookImportTransactionId:e.abookImportTransactionId}),W(e).then((i=>{const{importTicketId:r,authSpec:o,authSpecGaapScriptV2Urn:a}=i
if(r)K(),t(i)
else if(o){const t=z(o,e.provider),n=L[e.provider]
H=e,q(t,n,e.jSecure)}else if(a){const t=z(a,e.provider),n=L[e.provider]
H=e,q(t,n,e.jSecure)}else n(b.OTHER)})).catch((e=>{K(),n(e)}))}))}U&&(window.onAuthenticationComplete=function(e,t){e?(H.emailAddress=e,W(H).then((e=>{const{importTicketId:t}=e
t&&"function"==typeof B?B(e):"function"==typeof G&&G(b.IMPORT_ERROR_OTHER)})).catch((()=>{"function"==typeof G&&G(b.IMPORT_ERROR_OTHER)})).then((()=>K()))):"function"==typeof G&&G({error:t}),V=!0,K()})
class Q extends k{constructor(e){super([new S,new R(e),new N(e),new O,new D({promise:e})],f.INPUT_EMAIL,e),this.CONSTANTS=i,this.validateEmailAndResolveDomain=P,this.importContactsFromNonOauthDomain=j,this.importContactsFromOauthDomain=X,this.openOauthPopup=Y,this.closeOauthPopup=K}}class J extends k{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 R(t,{dashEnabled:!0,pageKey:n}),new N(t,{dashEnabled:!0,pageKey:n}),new O,new D({promise:t,dashEnabled:!0,pageKey:n})],f.INPUT_EMAIL,t),this.CONSTANTS=i,this.validateEmailAndResolveDomain=P,this.importContactsFromNonOauthDomain=j,this.importContactsFromOauthDomain=X,this.openOauthPopup=Y,this.closeOauthPopup=K}}},74626:function(e,t){!function(e){"use strict"
function t(e,t){(null==t||t>e.length)&&(t=e.length)
for(var n=0,i=Array(t);n<t;n++)i[n]=e[n]
return i}function n(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,s(i.key),i)}}function r(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,n){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,n)||function(e,n){if(e){if("string"==typeof e)return t(e,n)
var i={}.toString.call(e).slice(8,-1)
return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(e,n):void 0}}(e,n)||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 s(e){var t=function(e){if("object"!=typeof e||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:t+""}function c(e){return c="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},c(e)}var l=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?"),u=/^fs_/
function d(e){if("string"!=typeof e)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+c(e)+".")
var t,n,i=l.exec(e)
return i&&(t=i[1].replace(u,""),n=i[2]),{id:n,type:t}}var f=/(?![^(]*\)),/,p=function e(t){var n=d(t),i=n.id,r=n.type,o={}
if("("===i.charAt(0)){for(var a,s=i.substring(1,i.length-1).split(f),c=0;a=s[c];++c)0===a.indexOf("urn")&&(s[c]=e(a))
i=s}return o[r]=i,o},h=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")))
return n&&n.length>1?n[1]:null}
function g(e){return"undefined"==typeof atob&&"undefined"!=typeof Buffer?Buffer.from(e,"base64").toString("binary"):atob(e)}var m,v,y,b,E,_,k={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},T={GUEST:"GUEST",MEMBER:"MEMBER",ENTERPRISE_UNBOUND:"ENTERPRISE_UNBOUND"},S=o(o(o({},T.GUEST,"li_gc"),T.MEMBER,"li_mc"),T.ENTERPRISE_UNBOUND,"li_ec"),A=o(o(o({},T.GUEST,"mypreferences/g/guest-cookies"),T.MEMBER,"settings/member-cookies"),T.ENTERPRISE_UNBOUND,"mypreferences/e/enterprise-cookies"),C=Object.freeze(["dark","light"]),I=r((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=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 n(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=i,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})),w=(y=[k.ADVERTISING,k.ANALYTICS_AND_RESEARCH,k.FUNCTIONAL],b=[0,1,2,0],E=function(e){for(var t={},n=0;n<y.length;n++)t[y[n]]=b[e>>2*n&3]
return t},_=function(e){var t=0
return e>=0&&e<=3&&(t=b[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 I}
var r=E(parseInt(i[1],10)),o=new Date(1e3*parseInt(i[2],10)),a=_(parseInt(i[3],10))
return{error:null,consent:new I(r,o,t,a)}},parseConsentBodyEnterpriseUnbound:function(e,t,n){var i=function(e){try{var t=p(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 I}
var r=i.enterpriseAccountId,o=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 I}
var l=c[1].split("|").map((function(e){return e.split(",").map((function(e){return parseInt(e,10)}))})).filter((function(e){var t=a(e,4),i=t[1],s=t[2],c=t[3]
return i===r&&s===o&&c===n}))[0]
if(!l)return{error:null,consent:new I}
var u=E(l[0]),d=new Date(1e3*parseInt(c[2],10)),f=_(parseInt(c[3],10))
return{error:null,consent:new I(u,d,T.ENTERPRISE_UNBOUND,f)}}}),x=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),R=function(e){var t={}
for(var n in k)t[n]=e
return{error:null,consent:new I(t,null,null,e)}},N=function(){var e=document.domain.match(/^(?:|.*\.)([^\.]+\.[^\.]+)$/)
return e?e[1]:"linkedin-ei.com"},O=function(e,t,n){var i=A[e],r=t.enterpriseProfileHash,o=t.enterpriseAppInstanceId,a=new URLSearchParams
e===T.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(N(),"/").concat(i).concat(s)},D=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=g(e).match(x)}catch(e){}if(!r)return{error:"Invalid consent encoding",consent:new I}
var o=parseInt(r[1],10),a=r[2]
return 1===o?t===T.ENTERPRISE_UNBOUND?w.parseConsentBodyEnterpriseUnbound(a,n,i):w.parseConsentBody(a,t):{error:"Invalid encoded consent version ".concat(o),consent:new I}},P=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("undefined"==typeof document)return{error:"cookie string must be provided in SSR mode",consent:new I}
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 I}
if(!(e!==T.ENTERPRISE_UNBOUND||i&&r))return{error:"enterpriseProfileUrn and enterpriseAppInstanceId are required for unbound userMode",consent:new I}
if(!e){var o=h(S[T.ENTERPRISE_UNBOUND],t)
if(o&&i&&r){var a=D(o,T.ENTERPRISE_UNBOUND,i,r)
if(a.consent.userMode===T.ENTERPRISE_UNBOUND||a.error)return a}e=h("liap",t)?h(S[T.MEMBER],t)?T.MEMBER:T.GUEST:h(S[T.GUEST],t)?T.GUEST:T.MEMBER}return function(e,t,n,i){var r=h(S[e],t)
return r?D(r,e,n,i):h(S[T.GUEST],t)||h(S[T.MEMBER],t)||h(S[T.ENTERPRISE_UNBOUND],t)?R(2):R(1)}(e,t,i,r)},M={SHARE_DATA_WITH_TRUSTED_PARTNERS:"SHARE_DATA_WITH_TRUSTED_PARTNERS"},j=r((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.guestPreferencesData,r=void 0===i?null:i,o=t.issuedAt,a=void 0===o?null:o,s=t.defaultConsent,c=void 0===s?0:s
for(var l in n(this,e),r=r||{},this.issuedAt=a,this.guestPreferencesMap={},M)"number"!=typeof r[l]&&(r[l]=c),this.guestPreferencesMap[l]=1===r[l]})),L=(m=[M.SHARE_DATA_WITH_TRUSTED_PARTNERS],v=[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 j}
var i=n[1],r=function(e){for(var t={},n=0;n<m.length;n++){var i=m[n],r=e[n]
if(void 0===v[r])return
t[i]=v[r]}return t}(n[2])
if(!r)return{error:"Invalid guest preferences consent provided",guestPreferences:new j}
var o=new Date(1e3*i)
return{error:null,guestPreferences:new j({guestPreferencesData:r,issuedAt:o})}}}),U=new RegExp(["^(\\d+)","((?:.|\\d)+)"].join(";"))
e.GUEST_PREFERENCES=M,e.NON_ESSENTIAL_CATEGORIES=k,e.SETTINGS_COLOR_SCHEME=C,e.USER_MODE=T,e.getBannerData=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=P(e,document.cookie,t),r=i.consent,o=e||r.userMode||T.GUEST
return{showBanner:!i.error&&!r.consentAvailable,userMode:o,managePreferenceUrl:O(o,t,n)}},e.getCookieConsent=P,e.getPreferenceStatuses=function(e){"string"!=typeof e&&(e=document.cookie)
var t=h("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=g(e).match(U)}catch(e){}if(!t)return{error:"Invalid guest preferences encoding",guestPreferences:new j}
var n=parseInt(t[1],10),i=t[2]
return 1===n?L.parseGuestPreferencesBody(i):{error:"Invalid encoded guest preferences version ".concat(n),guestPreferences:new j}}(t):{error:null,guestPreferences:new j({defaultConsent:1})}},e.parseEncodedConsent=D,e.updateCookieConsent=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=h(S[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(N(),"/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 g in k){var m=void 0
!0===n[g]?m=1:!1===n[g]&&(m=2),p.CATEGORIES[g]=m}u.send(JSON.stringify(p))},Object.defineProperty(e,"__esModule",{value:!0})}(t)},74319:(e,t,n)=>{"use strict"
var i
n.r(t),n.d(t,{CALL_TREE_ID_HEADER_NAME:()=>h,DEGRADATION_TRACKING_EVENT_FIELD:()=>_,DEGRADATION_TRACKING_EVENT_NAME:()=>d,DOWNSTREAM_REQUEST_FIELD:()=>k,DegradationTrackingMetadata:()=>B,DegradationTrackingMetadataOptionName:()=>P,FABRIC_HEADER_NAME:()=>v,FEATURE_DEGRADATION_METRIC_EVENT_NAME:()=>f,FailureTrackingMetadata:()=>z,INSTRUMENTATION_GUIDE_PROMPT:()=>u,InternalFailureProcessingMetadata:()=>X,InternalFeatureDegradationMetricEventProducer:()=>C,InternalFeatureDegradationMetricStore:()=>D,InvalidArgumentError:()=>j,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:()=>Q,PemTrackingService:()=>ee,RESPONSE_HEADERS:()=>p,ResponseDetails:()=>J,RetryableDegradationTrackingMetadata:()=>G,SUPPORTED_DEGRADATION_TRACKING_METADATA_OPTIONS:()=>M,calculateSuccessfulDownstreamCallsRatio:()=>Y,createDegradeEvents:()=>K,determineResponseErrorType:()=>q,generateSpanSuffix:()=>W,parseDownstreamEndpointPathname:()=>H,refineServerErrorType:()=>V,teardown:()=>Z,validateKey:()=>F,validateProductName:()=>U})
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
for(var s=[],c=0;c<256;++c)s.push((c+256).toString(16).substr(1))
const l=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=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()
if(!function(e){return"string"==typeof e&&a.test(e)}(n))throw TypeError("Stringified UUID is invalid")
return n}(i)},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",_={featureKey:"featureKey",productName:"productName",downstreamRequests:"downstreamRequests"},k={degradationKey:"degradationKey",degradationReason:"degradationReason",responseCode:"responseCode",endpointPath:"endpointPath",callTreeId:"responseCallTreeId"},T=6e4,S="pem-unclassified-error"
class A{constructor(e,t){this._collectedFeatureMetrics=e,this._fireEventCallback=t}}class C extends A{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 I{constructor(e){this._featureCallCounts=new Map,this._pageInstance=e}get pageInstance(){return this._pageInstance}get featureCallCounts(){return this._featureCallCounts}}class w{constructor(e){this.featureMetricIdentifier=e}}function x(e){return JSON.stringify(e,Object.keys(e).sort())}class R extends I{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=x(e)
if(this.featureCallCounts.has(n))t(this.featureCallCounts.get(n))
else{const i=new N(e)
t(i),this.featureCallCounts.set(n,i)}}}class N extends w{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 O{flushMetrics(){const e=[...this.metrics.values()]
return this.metrics=new Map,e}}class D extends O{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=x(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 P
!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"}(P||(P={}))
const M=new Set(Object.values(P))
class j extends Error{constructor(e){super(e),Object.setPrototypeOf(this,j.prototype)}}function L(e){return 0===e.length||!e.trim()}function U(e){if("string"!=typeof e)throw new j(`The product name must be a string. ${u}.`)
if(L(e))throw new j(`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 j(`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 j(`Keys must be strings. ${u}.`)
if(L(e))throw new j(`Keys should not be blank. ${u}.`)
if(/[^a-z0-9-]/.test(e))throw new j(`'${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 j(`DegradationTrackingMetadata options should be an object. ${u}.`)
const a=n.productName
a&&(this._productName=U(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 j(`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 j(`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===P.NonDegradedResponseCodes&&e>=400&&e<500)throw new j(`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 ${P.AdditionalDegradedResponseCodes} option. Please remove ${e} from the ${P.NonDegradedResponseCodes} option. ${u}.`)}
if(void 0!==e&&!Array.isArray(e))throw new j(`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 ${P.NonDegradedResponseCodes} option. ${u}.`)
if(void 0!==t&&!Array.isArray(t))throw new j(`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 ${P.AdditionalDegradedResponseCodes} option. ${u}.`)
null==e||e.forEach((e=>n(e,P.NonDegradedResponseCodes))),null==t||t.forEach((e=>n(e,P.AdditionalDegradedResponseCodes)))
const i=new Set(t),r=new Set(e)
if([...i].some((e=>r.has(e))))throw new j(`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(!M.has(e))throw new j(`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 G{constructor(e){this._degradationTrackingMetadata=e,this._featureMetricStore=new D,this._lastRequestMetricStore=new D,this._requestsMade=0,this._trackingId=l()}static isRetryableDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(G.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 V(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 q(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 V(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 instanceof TypeError&&t.message.includes("Network request timed out"))return"CLIENT_TIMEOUT"
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),G.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 Y(e,t){return"DOWNSTREAM_GRACEFUL_DEGRADATION"===e?t.downstreamAvailability:0}class z extends B{static isFailureTrackingMetadata(e){return"object"==typeof e&&(null==e?void 0:e.constructor.name)===z.name}}class X{constructor(e,t){if(this._additionalDegradedResponseCodes=new Set,this._degradationKeyByResponseCode=new Map,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._retryableTrackingMetadata=null,!G.isRetryableDegradationTrackingMetadata(e)&&!B.isDegradationTrackingMetadata(e)&&!z.isFailureTrackingMetadata(e))throw new j("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 j("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
G.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 j(`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 j(`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 j(`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 Q{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 J{constructor(e,t,n,i){this._responseCode=void 0!==e?e:null,this._parsedResponseHeaders=t?new Q(t):new Q,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 $="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 D,this._visibilityListener=()=>{"hidden"===document.visibilityState&&this._metricSender.produceMetricEvent(!0)},this._defaultProductName=e,this._fireEventCallback=t,this._jetErrorCallback=n,this._metricSender=new C(this._featureMetricStore,t),$&&(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 G(e)}completeRetryFlow(e){if(!G.isRetryableDegradationTrackingMetadata(e))throw new j("retryFlowMetadata must be an instance of RetryableDegradationTrackingMetadata")
e.flushMetricStoreToServiceStore(this._featureMetricStore)}_trackResponse(e,t,n,i,r,o,a){const s=new J(t,o,a),c=s.parsedHeaders,l=q(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,Y(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 j(`Please specify a non-empty array of degradation tracking metadata. ${u}.`)
const t=new Set
return e.map((e=>{if(!B.isDegradationTrackingMetadata(e)&&!G.isRetryableDegradationTrackingMetadata(e))throw new j(`Please use DegradationTrackingMetadata or RetryableDegradationTrackingMetadata to specify the degradations. ${u}.`)
const n=U(e.productName||this._defaultProductName),i=`${n}!!${e.featureKey}`
if(t.has(i))throw new j("More than one degradation tracking metadata has the same productName/featureKey combination. Please merge them together")
return t.add(i),new X(e,n)}))}_getAndValidateUrlEntityIDs(e){if(!Array.isArray(e))throw new j(`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"}
function s(){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 c{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 l="LixTreatmentsEvent"
class u{constructor(e){this.queue=[],this.pendingTrackedLixes=[],this.trackingFiredRecords=new WeakMap,this.logger=e}fireTrackingEvent(e){this._fireTrackingEvent?this._fireTrackingEvent(l,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,l,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 d="value_"
e.LixCache=c,e.LixClient=class{constructor(e,t,n){this.tracker=new u(t),this.legacyLixCache=new c(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}},c=Object.keys(a).map((e=>`${e}=${i(a[e])}`))
return e(`/${o||"lix/treatmentsV2"}`,{credentials:"same-origin",method:"POST",headers:s(),body:c.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(d))return!1
const i=parseInt(n.replace(d,""),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=u,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:()=>u,isExternalLink:()=>s,removeAnchorLinkShim:()=>d})
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){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}
e instanceof HTMLElement?(e.addEventListener("mousedown",function(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"))}}(n)),e.addEventListener("keydown",(t=n,function(e){var n=e.currentTarget instanceof HTMLElement&&e.target instanceof HTMLElement?l(e.currentTarget,e.target):null
"Enter"===e.key&&n&&(n.href=c(n.href,t),n.removeAttribute("rel"))}))):console.warn("attempting to `initAnchorLinkShim()` on non-`HTMLElement` item ".concat(e))}function d(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],_=h?i:g?i[t]:(i[t]||{})[c]
for(u in h&&(n=t),n)(d=!p&&_&&void 0!==_[u])&&s(b,u)||(f=d?_[u]:n[u],b[u]=h&&"function"!=typeof _[u]?n[u]:v&&d?o(f,i):y&&_[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 I)return I[e]
switch(e){case p:case h:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",A=v==h,C=!1,I=e.prototype,w=I[d]||I["@@iterator"]||v&&I[v],x=w||T(v),R=v?A?T("entries"):x:void 0,N="Array"==t&&I.entries||w
if(N&&(k=u(N.call(new e)))!==Object.prototype&&k.next&&(l(k,S,!0),i||"function"==typeof k[d]||a(k,d,g)),A&&w&&w.name!==h&&(C=!0,x=function(){return w.call(this)}),i&&!b||!f&&!C&&I[d]||a(I,d,x),s[t]=x,s[S]=g,v)if(E={values:A?x:T(h),keys:y?x:T(p),entries:R},b)for(_ in E)_ in I||o(I,_,E[_])
else r(r.P+r.F*(f||C),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,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 g(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 m(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 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?p:function(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}(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=h,t.trackControlInteraction=g,t.processQueuedEvents=function(e,t,n){if(m(e),t instanceof Array&&t.length>0)for(var i=t.length,r=0;r<i;r++){var o=t.shift()
o.isControlInteraction?g(e,o.data,o.callback,n):h(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=m,t.createLoadRulesCompletedListenerForUTag=function(e){var t=[]
e.onLoadRulesRunOnce=function(e){t.push(e)}
var n=e.loader.initcfg
e.loader.initcfg=function(){n.call(this,arguments),t.length>0&&t.shift()()}},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=arguments[1]
return e[t+"."+t+".isEnterpriseUser"]||e[t+".isEnterpriseUser"]}function b(e,t){var n=t+"."+t
return{enterpriseProfileUrn:e[n+".enterpriseProfile"]||e[t+".enterpriseProfile"],enterpriseAppInstanceId:e[n+".enterpriseAppInstanceId"]||e[t+".enterpriseAppInstanceId"]}}function E(e,t){var n=(0,d.assign)({},e),i={userSettings:n,enterpriseContext:b(e,t)}
return n["compliance.isAdvertisingOptIn"]=!function(e,t){var n=e[t+"."+t+".isBoundUser"]||e[t+".isBoundUser"]
return y(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={"X-LI-Track":e[t+".xLiTrack"],"x-li-identity":e[t+".xLiIdentity"],"x-li-enterprise-app-instance-id":e[t+".enterpriseAppInstanceId"]}
return(0,o.default)(n).reduce((function(e,t){return n[t]&&(e[t]=n[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=function(){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}(y(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=E,t.getUpdatedSharedEventData=function(e){return E(g,e)},t.getEnterpriseContextForProfile=b},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,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(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 m})),n.d(t,"USER_MODE",(function(){return v})),n.d(t,"getBannerData",(function(){return x})),n.d(t,"getCookieConsent",(function(){return w})),n.d(t,"parseEncodedConsent",(function(){return I})),n.d(t,"updateCookieConsent",(function(){return R}))
var o=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?"),a=/^fs_/
function s(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=o.exec(e)
return i&&(t=i[1].replace(a,""),n=i[2]),{id:n,type:t}}var c,l,u,d,f,p,h=/(?![^(]*\)),/,g=function e(t){var n=s(t),i=n.id,r=n.type,o={}
if("("===i.charAt(0)){for(var a,c=i.substring(1,i.length-1).split(h),l=0;a=c[l];++l)0===a.indexOf("urn")&&(c[l]=e(a))
i=c}return o[r]=i,o},m={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},v={GUEST:"GUEST",MEMBER:"MEMBER",ENTERPRISE_UNBOUND:"ENTERPRISE_UNBOUND"},y=(i(c={},v.GUEST,"li_gc"),i(c,v.MEMBER,"li_mc"),i(c,v.ENTERPRISE_UNBOUND,"li_ec"),c),b=(i(l={},v.GUEST,"mypreferences/g/guest-cookies"),i(l,v.MEMBER,"settings/member-cookies"),i(l,v.ENTERPRISE_UNBOUND,"settings/cookies"),l),E=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null
for(var o in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},m)t[o]=t[o]||0,0!==t[o]&&(this.consentAvailable=!0),this.optedInConsentMap[o]=1===t[o]||0===t[o]&&1===r},_=(u=[m.ADVERTISING,m.ANALYTICS_AND_RESEARCH,m.FUNCTIONAL],d=[0,1,2,0],f=function(e){for(var t={},n=0;n<u.length;n++)t[u[n]]=d[e>>2*n&3]
return t},p=function(e){var t=0
return e>=0&&e<=3&&(t=d[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 E}
var r=f(parseInt(i[1],10)),o=new Date(1e3*parseInt(i[2],10)),a=p(parseInt(i[3],10))
return{error:null,consent:new E(r,o,t,a)}},parseConsentBodyEnterpriseUnbound:function(e,t,n){var i=function(e){try{var t=g(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 E}
var o=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 E}
var l=c[1].split("|").map((function(e){return e.split(",").map((function(e){return parseInt(e,10)}))})).filter((function(e){var t,i=function(e){if(Array.isArray(e))return e}(t=e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,i=!1,r=void 0
try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done)&&(t.push(o.value),4!==t.length);n=!0);}catch(e){i=!0,r=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw r}}return t}}(t)||function(e){if(e){if("string"==typeof e)return r(e,4)
var t=Object.prototype.toString.call(e).slice(8,-1)
return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?r(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===o&&c===a&&l===n}))[0]
if(!l)return{error:null,consent:new E}
var u=f(l[0]),d=new Date(1e3*parseInt(c[2],10)),h=p(parseInt(c[3],10))
return{error:null,consent:new E(u,d,v.ENTERPRISE_UNBOUND,h)}}}),k=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),T=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")))
return n&&n.length>1?n[1]:null},S=function(e){var t={}
for(var n in m)t[n]=e
return{error:null,consent:new E(t,null,null,e)}},A=function(){var e=document.domain.match(/^(?:|.*\.)([^\.]+\.[^\.]+)$/)
return e?e[1]:"linkedin-ei.com"},C=function(e){var t=b[e]
return"https://www.".concat(A(),"/").concat(t)},I=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(k)}catch(e){}if(!a)return{error:"Invalid consent encoding",consent:new E}
var s=parseInt(a[1],10),c=a[2]
return 1===s?n===v.ENTERPRISE_UNBOUND?_.parseConsentBodyEnterpriseUnbound(c,i,r):_.parseConsentBody(c,n):{error:"Invalid encoded consent version ".concat(s),consent:new E}},w=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("undefined"==typeof document)return{error:"cookie string must be provided in SSR mode",consent:new E}
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 E}
if(!(e!==v.ENTERPRISE_UNBOUND||i&&r))return{error:"enterpriseProfileUrn and enterpriseAppInstanceId are required for unbound userMode",consent:new E}
if(!e){var o=T(y[v.ENTERPRISE_UNBOUND],t)
if(o&&i&&r){var a=I(o,v.ENTERPRISE_UNBOUND,i,r)
if(a.consent.userMode===v.ENTERPRISE_UNBOUND||a.error)return a}e=T("liap",t)?T(y[v.MEMBER],t)?v.MEMBER:v.GUEST:T(y[v.GUEST],t)?v.GUEST:v.MEMBER}return function(e,t,n,i){var r=T(y[e],t)
return r?I(r,e,n,i):T(y[v.GUEST],t)||T(y[v.MEMBER],t)||T(y[v.ENTERPRISE_UNBOUND],t)?S(2):S(1)}(e,t,i,r)},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=w(e,document.cookie,t),i=n.consent,r=e||i.userMode||v.GUEST
return{showBanner:!n.error&&!i.consentAvailable,userMode:r,managePreferenceUrl:C(r)}},R=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=T(y[v.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(A(),"/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 m){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,A=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&&(_[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():k=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},k||(k=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=_[e]
return t&&c.setGlobalUTagReference(t._uTag),t},t.teardownInstanceForProfile=function(e){delete _[e]},t.default=A},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),_=n(11),k=n(29),T=n(20),S=n(46),A=n(82),C=n(83),I=n(51),w=n(3),x=n(21),R=C.f,N=w.f,O=A.f,D=i.Symbol,P=i.JSON,M=P&&P.stringify,j="prototype",L=p("_hidden"),U=p("toPrimitive"),F={}.propertyIsEnumerable,B=u("symbol-registry"),G=u("symbols"),H=u("op-symbols"),V=Object[j],q="function"==typeof D&&!!I.f,K=i.QObject,W=!K||!K[j]||!K[j].findChild,Y=o&&l((function(){return 7!=S(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=R(V,t)
i&&delete V[t],N(e,t,n),i&&e!==V&&N(V,t,i)}:N,z=function(e){var t=G[e]=S(D[j])
return t._k=e,t},X=q&&"symbol"==typeof D.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof D},Q=function(e,t,n){return e===V&&Q(H,t,n),y(e),t=k(t,!0),y(n),r(G,t)?(n.enumerable?(r(e,L)&&e[L][t]&&(e[L][t]=!1),n=S(n,{enumerable:T(0,!1)})):(r(e,L)||N(e,L,T(1,{})),e[L][t]=!0),Y(e,t,n)):N(e,t,n)},J=function(e,t){y(e)
for(var n,i=m(t=_(t)),r=0,o=i.length;o>r;)Q(e,n=i[r++],t[n])
return e},$=function(e){var t=F.call(this,e=k(e,!0))
return!(this===V&&r(G,e)&&!r(H,e))&&(!(t||!r(this,e)||!r(G,e)||r(this,L)&&this[L][e])||t)},Z=function(e,t){if(e=_(e),t=k(t,!0),e!==V||!r(G,t)||r(H,t)){var n=R(e,t)
return!n||!r(G,t)||r(e,L)&&e[L][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=O(_(e)),i=[],o=0;n.length>o;)r(G,t=n[o++])||t==L||t==c||i.push(t)
return i},te=function(e){for(var t,n=e===V,i=O(n?H:_(e)),o=[],a=0;i.length>a;)!r(G,t=i[a++])||n&&!r(V,t)||o.push(G[t])
return o}
q||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!")
var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===V&&t.call(H,n),r(this,L)&&r(this[L],e)&&(this[L][e]=!1),Y(this,e,T(1,n))}
return o&&W&&Y(V,e,{configurable:!0,set:t}),z(e)},s(D[j],"toString",(function(){return this._k})),C.f=Z,w.f=Q,n(52).f=A.f=ee,n(36).f=$,I.f=te,o&&!n(13)&&s(V,"propertyIsEnumerable",$,!0),h.f=function(e){return z(p(e))}),a(a.G+a.W+a.F*!q,{Symbol:D})
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=x(p.store),oe=0;re.length>oe;)g(re[oe++])
a(a.S+a.F*!q,"Symbol",{for:function(e){return r(B,e+="")?B[e]:B[e]=D(e)},keyFor:function(e){if(!X(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*!q,"Object",{create:function(e,t){return void 0===t?S(e):J(S(e),t)},defineProperty:Q,defineProperties:J,getOwnPropertyDescriptor:Z,getOwnPropertyNames:ee,getOwnPropertySymbols:te})
var ae=l((function(){I.f(1)}))
a(a.S+a.F*ae,"Object",{getOwnPropertySymbols:function(e){return I.f(E(e))}}),P&&a(a.S+a.F*(!q||l((function(){var e=D()
return"[null]"!=M([e])||"{}"!=M({a:e})||"{}"!=M(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)&&!X(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!X(t))return t}),i[1]=t,M.apply(P,i)}}),D[j][U]||n(8)(D[j],U,D[j].valueOf),d(D,"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),_=n(98),k=n(58),T="Promise",S=c.TypeError,A=c.process,C=A&&A.versions,I=C&&C.v8||"",w=c[T],x="process"==u(A),R=function(){},N=r=b.f,O=!!function(){try{var e=w.resolve(1),t=(e.constructor={})[n(1)("species")]=function(e){e(R,R)}
return(x||"function"==typeof PromiseRejectionEvent)&&e.then(R)instanceof t&&0!==I.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(e){}}(),D=function(e){var t
return!(!f(e)||"function"!=typeof(t=e.then))&&t},P=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&&L(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=D(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&&M(e)}))}},M=function(e){v.call(c,(function(){var t,n,i,r=e._v,o=j(e)
if(o&&(t=E((function(){x?A.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=x||j(e)?2:1),e._a=void 0,o&&t.e)throw t.v}))},j=function(e){return 1!==e._h&&0===(e._a||e._c).length},L=function(e){v.call(c,(function(){var t
x?A.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})}))},U=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()),P(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=D(e))?y((function(){var i={_w:n,_d:!1}
try{t.call(e,l(F,i,1),l(U,i,1))}catch(e){U.call(i,e)}})):(n._v=e,n._s=1,P(n,!1))}catch(e){U.call({_w:n,_d:!1},e)}}}
O||(w=function(e){h(this,w,T,"_h"),p(e),i.call(this)
try{e(l(F,this,1),l(U,this,1))}catch(e){U.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)(w.prototype,{then:function(e,t){var n=N(m(this,w))
return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=x?A.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(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(U,e,1)},b.f=N=function(e){return e===w||e===a?new o(e):r(e)}),d(d.G+d.W+d.F*!O,{Promise:w}),n(23)(w,T),n(100)(T),a=n(2)[T],d(d.S+d.F*!O,T,{reject:function(e){var t=N(this)
return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(s||!O),T,{resolve:function(e){return k(s&&this===a?w:this,e)}}),d(d.S+d.F*!(O&&n(101)((function(e){w.all(e).catch(R)}))),T,{all:function(e){var t=this,n=N(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=N(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 G(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 C(this,t,n)
case"ascii":return w(this,t,n)
case"latin1":case"binary":return x(this,t,n)
case"base64":return A(this,t,n)
case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(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 _(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 k(e,t,n,i){return _(e,t,n,i)}function T(e,t,n,i){return H(G(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 A(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function C(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<=I)return String.fromCharCode.apply(String,e)
for(var n="",i=0;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=I))
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?C(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 _(this,e,t,n)
case"latin1":case"binary":return k(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 I=4096
function w(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 x(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 N(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 O(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 D(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 P(e,t,n,i){t<0&&(t=65535+t+1)
for(var r=0,o=Math.min(e.length-n,2);r<o;++r)e[n+r]=(t&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function M(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 j(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 L(e,t,n,i,o){return o||j(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function U(e,t,n,i,o){return o||j(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||O(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||O(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||O(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||O(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||O(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||O(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||O(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||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||O(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||O(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||O(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||O(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||O(e,4,this.length),r.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),r.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),r.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||O(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||D(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||D(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||D(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||D(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(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):M(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(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):M(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)
D(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)
D(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||D(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||D(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(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):M(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(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):M(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return U(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return U(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 G(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=c(e),n=t[0],i=t[1]
return 3*(n+i)/4-i},t.toByteArray=function(e){var t,n,i=c(e),a=i[0],s=i[1],l=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)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t
return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[u++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l},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(l(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;s<64;++s)i[s]=a[s],r[a.charCodeAt(s)]=s
function c(e){var t=e.length
if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4")
var n=e.indexOf("=")
return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(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){if("object"!=typeof e||null===e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=typeof n)return n
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)||a(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,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}function s(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 c=null,l=null,u=null
window&&window.t8&&(c=window.t8,Object.keys(c).length&&(l=new c.CurrencyFormatter,u=new c.NumberFormatter))
var d=l,f=u,p=null,h=null
function g(){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 m={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 p?p(i,r,o):(d||g("currency"),d.format(i,o,r))},number:function(){var e
return h?h.apply(void 0,arguments):(f||g("number"),(e=f).format.apply(e,arguments))}}
function v(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 m[e](o,a)}if("currency"===e){var s=n[0],c=n[1],l=n[2]
return m[e](s,c,l)}return""}function y(e){return"number"==typeof e?!isNaN(e-parseFloat(e.toString())):"string"==typeof e}function b(e,t){if(!y(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 E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en_US"
return"en_IN"===t&&e?b(e):v("number",e,t)}var _={},k={en_US:["K","M","B"],zh_CN:["K","M","B"],en_IN:["K","Lakh","cr"]},T=["en_US","zh_CN"],S=["en_IN"],A=function(e){return Math.pow(10,3*(e+1))},C=function(e){return 0===e?1e3:Math.pow(10,2*(e+1.5))},I=function(){return Number.POSITIVE_INFINITY}
function w(e){return k[e]||[]}function x(e){return T.indexOf(e)>-1?A:S.indexOf(e)>-1?C:I}function R(e){return[",","."].reduce((function(t,n){return 2===e.split(n).length?n:t}))}function N(e,t){return 4===e.split(t).length?"india":"thousands"}function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en_US",t=e,n=_[t]
if(n)return n
var i=function(e,t){var n=function(e){return[",","."," "," ","'"].reduce((function(t,n){return e.split(n).length>=3?n:t}))}(e)
return{delimiter:n,radixMark:R(e),delimiterStyle:N(e,n),abbreviations:w(t),abbreviateOn:x(t)}}(E("12345678.91",e),e)
return _[t]=i,i}function D(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",n=["","","","",""]
if(!y(e))return n
var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".",t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".",t=[".",",","'"]
return t.splice(t.indexOf(e),1),t}(e),n=[].concat(function(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(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.")}()}(t),["s"]).join("\\")
return new RegExp("([^,\\.\\d]*)([".concat(n,"\\d]*\\d+)(\\").concat(e,"?)(\\d*)(\\D*)"))}(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 P(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(!y(e))return""
var a,s=o(D(e.toString(),t),5),c=s[0],l=s[1],u=s[2],d=s[3],f=s[4]
return y(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 M(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=U("en_US",n),r=i.currencySymbol,o=i.radixPlaces
return b(P(e,i.radixMark,o),r)}return v("currency",e,t,n)}var j="12345678.91",L={}
function U(){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=L[i]
if(r)return r
var o=O(e),a=o.radixMark,s=o.delimiter,c=M(j,e,t),l=function(e){return Number(e.substring(0,1))?"after":"before"}(c),u=function(e,t,n){var i=new RegExp("[^\\d\\".concat(t,"\\").concat(n,"\\s]+")),r=e.match(i)
return r?r[0]:""}(c,a,s),d=function(e,t){var n=t.replace("$","\\$"),i=new RegExp("\\s?".concat(n,"\\s?")),r=e.match(i)
return r?r[0]:t}(c,u),f=function(e,t){var n=new RegExp("\\".concat(t,"(\\d+)")),i=e.match(n)
return i&&i[1]?i[1].length:0}(c,a),p=n(n({},o),{currencySymbolLocation:l,currencySymbol:u,currencySymbolWithWhitespace:d,radixPlaces:f})
return L[i]=p,p}var F=function(e){return e[e.Delete=46]="Delete",e[e.Backspace=8]="Backspace",e[e.Three=51]="Three",e}({})
function B(e){return e===F.Delete||e===F.Backspace}function G(e){var t=e.selectionStart,n=e.selectionEnd
return{start:t,end:n,length:(n||0)-(t||0)}}function H(e,t){return e.length-t.length}function V(e,t,n,i,r){return t?0:i&&e===F.Backspace?-r:n&&e===F.Delete?r:0}function q(e,t){return e+t}function K(e,t,n){return n.charAt(t-1)===e}function W(e,t,n){return n.charAt(t)===e}function Y(e,t,n){t!==n&&(e.selectionStart=n,e.selectionEnd=n)}function z(e){return e.replace(/\s/g,(function(){return" "}))}function X(e){return"0".concat(e)}function Q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en_US",n=arguments.length>2?arguments[2]:void 0,i=O(t).radixMark,r=n
if(y(r)&&""!==r&&(r=Number(r)),!e)return""
if("."===e)return 0===r?"":X(i)
var a=o(e.split("."),2),s=a[0],c=a[1]
return function(e,t,n,i){return t||""===t?P("".concat(e).concat(n).concat(t),n,i,{keepTrailingRadixMark:!0}):e}(z(E(s,t)),c,i,n)}function J(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,i.key,i)}}function Z(e,t,n){return t&&$(e.prototype,t),n&&$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ee(e){return ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ee(e)}function te(e,t){return te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},te(e,t)}function ne(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=ee(e)
if(t){var r=ee(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 function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return e}(e)}(this,n)}}function ie(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)||oe(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 re(e){return function(e){if(Array.isArray(e))return ae(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||oe(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 oe(e,t){if(e){if("string"==typeof e)return ae(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)?ae(e,t):void 0}}function ae(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 se="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",ce="undefined"==typeof document||"textContent"in document.createElement("div")?"textContent":"innerText",le=["b","del","em","i","s","strong","sub","sup"],ue=le.concat(["a","abbr","address","area","article","aside","audio","bdi","bdo","big","blockquote","br","button","center","cite","code","datalist","dd","details","dfn","div","dl","dt","fieldset","figcaption","figure","font","footer","h1","h2","h3","h4","h5","h6","header","hgroup","hr","img","ins","kbd","label","legend","li","map","mark","marquee","nav","nobr","ol","p","pre","q","rp","rt","ruby","samp","section","small","source","span","strike","table","tbody","td","tfoot","th","thead","time","tr","u","ul","var","video","wbr"]),de=[se,"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("|"),fe=Z((function e(){J(this,e)}))
function pe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var he,ge,me=(he=/[&<>"'\u0000\\=]/g,ge={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(he,(function(e){return function(e){return e in ge}(e)?ge[e]:e}))}),ve=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 pe(i,e)}(e))return i[e]
if(!t)return e
t.innerHTML="&".concat(e,";")
var n=t[ce]
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 ye(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 be(e){return/[<&]/.test(e)}var Ee,_e="[ \t\r\n]*"
function ke(e){e=Array.isArray(e)?e:[e]
var t,n,i,r=0,o="<(?!/?"
return o+="(?:",e.forEach((function(e,a){t=e.tags||ue,n=e.attrs||de,i=e.checkUrlAttrs||!1,0!==a&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+=_e,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+=")"+_e+")+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function Te(e){return ke({tags:e=e||ue,checkUrlAttrs:!0})}function Se(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup
return n&&n.length>0?!Te(n).test(e):i?!Se.R_UNSAFE_CUSTOM_ELEMENT.test(e):!Se.R_UNSAFE_HTML.test(e)}function Ae(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}Se.R_UNSAFE_HTML=Te(),Se.R_UNSAFE_CUSTOM_ELEMENT=ke([{tags:ue,checkUrlAttrs:!0},{tags:[(Ee={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[se,Ee.attrs].join("|"),checkUrlAttrs:!1}])
var Ce={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,"",""]},Ie=/<([\w:]+)/
function we(e){return e in Ce}function xe(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=ie(Ie.exec(i)||["",""],2)[1]
if(void 0!==l){var u=l.toLowerCase(),d=we(u)&&Ce[u]||Ce._default
for(De(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,re(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 Re(e,t,n){e=e.toString()
var i=t?function(e,t){var n={}
return e.replace(/\{([^}]+)\}/g,(function(e,i){if(pe(n,i))return n[i]
if(pe(t,i)){var r=t[i],o="string"==typeof r
if(!(o||r instanceof fe||"number"==typeof r))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.")
return r?(r=o?"".concat(me(r)):r.toString(),n[i]=r,r):e}return e}))}(e,t):e,r=e
return be(i)&&!Se(i,n)&&(i=Ae(i),ye("Content contains tags or attributes that are not allowed:\nContent: "+r,"error")),i}var Ne=Re,Oe=Re
function De(e,t,n){var i=Re(t,n)
return i&&be(i)?e.innerHTML=i:i&&(e[ce]=i),i}var Pe=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&&te(e,t)}(n,e)
var t=ne(n)
function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
return J(this,n),(i=t.call(this)).options=r,i.tags=i.options.allowTags?i.options.allowTags.flat():[],i.str=e,i}return Z(n,[{key:"toString",value:function(){var e=this.str,t=this.strValue,n=e
return void 0!==t?t:(Se(e,{allowTags:this.tags,hasCustomElementMarkup:this.options.hasCustomElementMarkup})||(n=e,e=Ae(e),ye("UnsafeString contains tags or attributes that are not allowed.\nString: "+n,"error")),this.strValue=e,e)}}]),n}(fe),Me=/ /g,je=/[\s\u0000<>"]|%00/,Le=/\\/,Ue=/([.]|%2e){2}/i,Fe=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 Be(e){var t,n="invalid://"
if("string"!=typeof e)return ye("jSecure Warning: url must be a string","error"),n
if((t=e.trim()).indexOf(" ")>-1&&(ye("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(Me,"+")),!Fe.test(t))return ye("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),n
if(je.test(t))return ye("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),Ue.test(i))return ye("jSecure Error: malicious data found in url path: "+r,"error"),n}catch(e){o=!0}if(o)return ye("jSecure Error: malformed url path detected: "+r),n
if(Le.test(r)||Ue.test(r))return ye("jSecure Error: malicious data found in url path: "+r,"error"),n}return e}var Ge={redirect:function(e){window&&(window.location.href=e)}},He={ALLOWED_TAGS:ue,FORMATTING_TAGS:le,htmlEncode:me,htmlUnencode:ve,log:ye,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 Pe?r:me(r))})),"".concat(Oe(o))},parseHTML:function(e,t){var n
if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=xe([e],t)
else{if(!Array.isArray(e))return e
n=xe(e,t)}return Array.from(n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:Ne,reEncode:function(e){return me(ve(e))},_redirector:Ge,redirect:function(e){var t=Be(e)
t===e&&Ge.redirect(t)},sanitizeHTML:Oe,sanitizeUrl:Be,setElementContent:De,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 Pe(t,n)}}.sanitizeHTML
function Ve(e){if(e instanceof HTMLInputElement){var t=e.value.trim()
return t?He(t):""}return""}function qe(e){if(e instanceof HTMLInputElement)return e
throw new Error("Event target is not an HTMLInputElement")}function Ke(e,t){e.value=t}function We(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 Ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"."
if(!function(e){return y(e)}(e))return""
var n=t
return function(e){return function(e){return/[a-z][_-][A-Z]/g.test(e)}(e)}(t)&&(n=function(e){return O(e)}(t).radixMark),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"."
return We(e,t).replace(new RegExp("\\".concat(t),"g"),".")}(e,n)}function ze(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 Xe(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=U(t,n),a=r.currencySymbolWithWhitespace,s=r.currencySymbolLocation,c=r.radixMark,l=r.radixPlaces
if(!y(e))return""
var u=function(e,t){var n=e
return y(n)&&""!==n&&(n=Number(n)),n||0===n?n:t}(i,l)
a=z(a)
var d=Ye(e,c),f=o(D(d,"."),2)[1]
if(""===d)return a
if("."===d)return 0===u?a:function(e,t,n){return"before"===n?"".concat(t).concat(e):"".concat(e).concat(t)}(X(c),a,s)
var p=o(D(P(e,c,u,{keepTrailingRadixMark:!0}),c),4),h=p[2],g=p[3],m=o(D(z(M(f,t,n)),c),5),v=m[0],b=m[1],E=m[4]
return"".concat(v).concat(b).concat(h).concat(g).concat(E)}function Qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en_US",n=arguments.length>2?arguments[2]:void 0
return Q(Ye(e,t),t,n)}e.abbreviateNumber=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en_US"
if(!y(e))return""
var n=O(t),i=n.radixMark,r=n.abbreviations,a=n.abbreviateOn
if(!r.length)return"".concat(e)
var s=o(D(e.toString(),i),5),c=s[0],l=s[1],u=s[2],d=s[3],f=s[4],p=o(function(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(),""]}(+Ye(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=M,e.formatMaskingCurrency=Xe,e.formatMaskingNumber=Qe,e.formatNumber=E,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 Xe(Q(e,t,i),t,n,i)},e.formatUnformattedNumber=Q,e.getAdjustedCursorPosition=q,e.getCurrencyFormatData=U,e.getCursorAdjustment=H,e.getElementSelection=G,e.getNumberFormatData=O,e.indiaNumberFormatter=b,e.injectCurrencyFormatter=function(e){var t=i(e)
if(!e||"function"!==t)throw new Error("Expected function for currency formatter, got ".concat(t))
p=e},e.injectNumberFormatter=function(e){var t=i(e)
if(!e||"function"!==t)throw new Error("Expected function for number formatter, got ".concat(t))
h=e},e.isCursorImmediatelyAfterCharacter=K,e.isCursorImmediatelyBeforeCharacter=W,e.isNumberOrString=y,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=qe(e.target),u=Ve(l),d=U(i,o).currencySymbol
if(""===u||u===d){var f=""
a&&"function"==typeof a&&a(f,f),s&&"function"==typeof s?s(f,f):Ke(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=qe(e.target)
if(""===Ve(a)){var s=U(i,o),c=s.currencySymbolWithWhitespace,l=s.currencySymbolLocation
Ke(a,c=z(c))
var u=G(a).start,d=null!=u?u:0
Y(a,d,ze(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=qe(e.target),p=Ve(f),h=U(r,a),g=h.currencySymbolWithWhitespace,m=h.currencySymbolLocation,v=h.radixMark
g=z(g)
var y=Xe(p,r,a,c),b=H(y,p),E=q(null!==(t=G(f).end)&&void 0!==t?t:0,b)
E=ze(g,m,E,y)
var _=Ye(y,v)
u&&"function"==typeof u&&u(y,_),l&&"function"==typeof l?l(y,_):Ke(f,y),Y(f,y.length,E),d&&"function"==typeof d&&d(y,_)},e.onCurrencyKeyDown=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=e.which,c=qe(e.target),l=(t=c.value)?He(t):"",u=G(c),d=u.start,f=u.length,p=null!=d?d:0,h=p,g=U(r,a),m=g.currencySymbolWithWhitespace,v=g.currencySymbolLocation,y=g.delimiter
m=z(m),y=z(y),B(s)&&(h=q(p,V(s,f,W(y,p,l),K(y,p,l),y.length))),h=ze(m,v,h,l),f||Y(c,p,h)},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=qe(e.target),u=Ve(l),d=Ye(u,i),f=Qe(u,i,o),p=H(f,u),h=G(l).end,g=q(null!=h?h:0,p)
d=Ye(f,i),s&&"function"==typeof s&&s(f,d),a&&"function"==typeof a?a(f,d):Ke(l,f),Y(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(B(r)){var o=qe(e.target),a=Ve(o),s=O(i).delimiter,c=G(o),l=c.start,u=null!=l?l:0
Y(o,null!=u?u:0,q(null!=u?u:0,V(r,c.length,W(s,u,a),K(s,u,a),s.length)))}},e.parseNumber=D,e.removeFormatting=We,e.removeNBSP=z,e.resetCurrencyFormatter=function(){p=null},e.resetNumberFormatter=function(){h=null},e.toDecimalString=Ye,e.trimFractionalNumbers=function(e,t,n,i){return P(e,O(t).radixMark,n,i)},e.trimRadixPlaces=P,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++)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:()=>qe,MultipartFinalizationError:()=>V,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",TERMINATED:"TERMINATED"},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",PAGE_HIDDEN:"PAGE_HIDDEN"},f="USER_CANCELLED",p="TERMINATED",h="AbortError",g="task:update",m="tracking:update",v="upload:progress",y="ingestionstep:tracking:update",b="UploadStatusEvent",E="PREPROCESSING_STARTED",_=36152320,k="MULTIPART_FORMDATA",T="MULTIPART",S="CLIENT",A="SERVER",C="NETWORK",I="IMAGE_SHARING",w="MICROSOFT_DESIGNER_IMAGE_SHARING",x="VIDEO_SHARING",R="VIDEO_PRIVATE_AUTOCAPTION",N="VIDEO_WITHOUT_AUTOCAPTION",O=new Uint8Array([99,50,112,97,0,17,0,16,128,0,0,170,0,56,155,113]),D=new Uint8Array([100,99,116,101,114,109,115,58,112,114,111,118,101,110,97,110,99,101])
class P 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=h,this.errorPhase=e,this.meta=t,this.httpErrorCode=null,this.errorType=S,this.statusMessage=`${this.code} - Ingestion was cancelled by the user`,this.reason=d.UNKNOWN}}class M extends Error{constructor(e){let t=arguments.length>2?arguments[2]:void 0
super(arguments.length>1&&void 0!==arguments[1]?arguments[1]:p),this.code=h,this.errorPhase=e,this.meta=t,this.httpErrorCode=null,this.errorType=S,this.statusMessage=`${this.code} - Ingestion was terminated`,this.reason=d.UNKNOWN}}function j(e){let t="UNKNOWN"
return e>=500?t=A:e>=400?t=S:0===e&&(t=C),t}function L(e){switch(j(e)){case A:return"SERVER_ERROR"
case S:return"CLIENT_ERROR"
case C: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}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)?"CLIENT_REJECTED_INPUT":e&&function(e){return[d.FILE_NOT_FOUND,d.INVALID_FILE_SIZE].includes(e)}(e)?S:j(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 G 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 G{constructor(e,t,n){super(e,t,n)}}class V extends G{constructor(e,t,n){super(e,t,n)}}const q=(e,t,n)=>e===f?new P(t,e,n):e===p?new M(t,e,n):void 0
function K(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class W{constructor(){K(this,"_id",r()()),K(this,"_tasks",new Map),K(this,"_taskPromises",[]),K(this,"_progress",0),K(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 P?u.CANCELLED:u.FAILED,this._tasks.forEach((e=>{e.status.state!==this.state&&e.terminate()})),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 Y=n(39705),z=n.n(Y)
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),J=e=>e.subarray(-1e6)
function $(e){return X(e).then((e=>{if(!e)return!1
const t=new Uint8Array(e)
return Z(Q(t),O)||Z(J(t),O)||Z(Q(t),D)||Z(J(t),D)}))}function Z(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 ee(e){return e instanceof FormData?e.get("file")||{}:e}var te=n(37647)
function ne(e){return/^video\//.test(e.type)}function ie(e){return/^image\//.test(e.type)}function re(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class oe{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
re(this,"_file",void 0),re(this,"_mediaUploadType",void 0),re(this,"_error",null),re(this,"_metadata",{}),re(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=ee(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(ee(this._file))}))}fetchVideoDuration(){return ne(this._file)?(0,te.getVideoDuration)(this.file).then((e=>this._updateMetadata({videoDuration:e===1/0?null:e}))):Promise.resolve()}_checkForC2PA(){return $(ee(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 ae=n(11056)
function se(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class ce{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
se(this,"_media",void 0),se(this,"_uploadParams",void 0),se(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 oe(n,this._featureOptions)
r.isValid?(this._media=r,this._uploadParams=i):this._error=r.error}fetchMetadata(){return(0,ae.isBrowser)()?this._media.fetchMetadata():Promise.resolve()}}var le=n(72371)
class ue extends Y.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(!ie(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(y,this._trackingData.getIngestionDebugTrackingData(this._media,null,null,"GIF_VALIDATION_SKIPPED. FileReader failed to read the file as array buffer."))
let t
try{t=new le.N(new Uint8Array(e))}catch(e){this.emit(y,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 de=n(95707),fe=n.n(de),pe=n(52693)
const he=["ap4h","ap4x","apch","apcn","apco","apcs"]
class ge extends Y.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(!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("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(y,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"!==fe()(n.subarray(4,8))||!(0,pe.tracks)(n).find((e=>he.includes(e.codec))))}catch(e){return void this.emit(y,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 me extends Y.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}}},PUBLISHING_VIDEO:{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(y,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 ue(this._media,r,this._trackingData)
return n.on(y,(e=>{this.emit(y,e)})),n.validateImage().then(e).catch(t)}if("VIDEO"===i){const n=new ge(this._media,this._trackingData)
return n.on(y,(e=>{this.emit(y,e)})),n.validateVideo().then(e).catch(t)}return e()}))}}class ve{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(q(e.reason,o)):this._validateAndDigest(e)}_validateAndDigest(e){return new Promise(((t,n)=>{const i=()=>n(q(e.reason,o))
e.addEventListener("abort",i)
const r=new ce(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 me(r.media,this._trackingData)
return e.on(y,(e=>this._onTrackingUpdateCallback(e))),e.validateMedia()})).then((()=>{if(!e.aborted)return t(r)})).catch(n).finally((()=>e.removeEventListener("abort",i)))}))}}function ye(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class be{constructor(){ye(this,"_phase",void 0),ye(this,"_state",u.QUEUED),ye(this,"_phaseProgress",0),ye(this,"_progress",0),ye(this,"_reason",void 0),ye(this,"_validPhases",[o,a,s,c,l]),ye(this,"_validStates",[u.INPROGRESS,u.COMPLETED,u.CANCELLED,u.FAILED,u.TERMINATED])}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 Ee{constructor(e,t,n){this._media=e,this._uploadParams=t,this._ingesterConfig=n}run(e){return e.aborted?Promise.reject(q(e.reason,a)):this._registerUpload(e)}_registerUpload(e){return new Promise(((t,n)=>{const i=()=>n(q(e.reason,a))
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 _e extends Y.TinyEmitter{constructor(e){super(),this._media=e}run(e){return e.aborted?Promise.reject(q(e.reason,s)):this._preprocessImage(e)}_preprocessImage(e){const t=this._media.file
return new Promise(((n,i)=>{const r=()=>{i(q(e.reason,s))}
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<=_)return o(),window.URL.revokeObjectURL(a),n()
this.emit(y,{uploadState:E})
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*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(q(e.reason,s)):ie(this._media.file)&&(0,ae.isBrowser)()&&!this._media.hasC2PA?(this._imagePreprocessor=new _e(this._media),this._imagePreprocessor.on(y,(e=>this._onTrackingUpdateCallback(e))),this._imagePreprocessor.run(e)):Promise.resolve()}}function Te(e,t){let n=""
return t&&(n+=`[Headers]: ${t}`),e&&(n+=`${n.length?"\n":""}[Response Text]: ${e}`),n}function Se(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:""
const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).find((t=>t.url===e))||{}
return{partUploadId:e,firstByteOffset:"number"==typeof t.firstByte?t.firstByte:null,lastByteOffset:"number"==typeof t.lastByte?t.lastByte:null}}function Ae(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:""
return((arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map).get(e)||{}).loaded||0}function Ce(e){switch(e){case p:return"TERMINATED"
case f:return"USER_CANCELLED"
default:return null}}const Ie=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 we{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:b,body:this._buildUploadStatusEvent({mediaFileInfo:e,useCase:t,uploadState:"STARTED"})}}getIngestionCompleteTrackingData(e,t,n,i){return{name:b,body:this._buildUploadStatusEvent({digitalMediaArtifactUrn:t,mediaFileInfo:Ie(e),mediaUrn:i,useCase:e.mediaUploadType,uploadState:"COMPLETED",uploadMechanism:n,videoDuration:e.metadata.videoDuration})}}getIngestionTerminatedTrackingData(e,t,n,i,r,o){var a
return{name:b,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:"TERMINATED",uploadMechanism:n,errorDetails:i,videoDuration:null==e||null===(a=e.metadata)||void 0===a?void 0:a.videoDuration,statusMessage:r})}}getIngestionRefreshedTrackingData(e,t){return{name:b,body:this._buildUploadStatusEvent({mediaFileInfo:e,useCase:t,uploadState:"REFRESHED"})}}getRegistrationStartedTrackingData(e){return{name:b,body:this._buildUploadStatusEvent({mediaFileInfo:Ie(e),useCase:e.mediaUploadType,uploadState:"REGISTRATION_STARTED",videoDuration:e.metadata.videoDuration})}}getRegistrationCompletedTrackingData(e,t,n,i){return{name:b,body:this._buildUploadStatusEvent({digitalMediaArtifactUrn:t,mediaFileInfo:Ie(e),mediaUrn:i,useCase:e.mediaUploadType,uploadState:"REGISTRATION_COMPLETED",uploadMechanism:n,videoDuration:e.metadata.videoDuration})}}getPreprocessingStartedTrackingData(e,t,n,i){return{name:b,body:this._buildUploadStatusEvent({digitalMediaArtifactUrn:t,mediaFileInfo:Ie(e),mediaUrn:i,useCase:e.mediaUploadType,uploadState:E,uploadMechanism:n,videoDuration:e.metadata.videoDuration})}}getUploadStartedTrackingData(e,t,n,i){return{name:b,body:this._buildUploadStatusEvent({digitalMediaArtifactUrn:t,mediaFileInfo:Ie(e),mediaUrn:i,useCase:e.mediaUploadType,uploadState:"FILE_UPLOAD_STARTED",uploadMechanism:n,videoDuration:e.metadata.videoDuration})}}getUploadBackgroundedTrackingData(e,t,n,i,r){var o
return{name:b,body:this._buildUploadStatusEvent({digitalMediaArtifactUrn:t,mediaFileInfo:Ie(e),mediaUrn:r,useCase:null==e?void 0:e.mediaUploadType,uploadState:"APPLICATION_BACKGROUNDED",uploadMechanism:n,videoDuration:null==e||null===(o=e.metadata)||void 0===o?void 0:o.videoDuration,statusMessage:i})}}getUploadForegroundedTrackingData(e,t,n,i,r){var o
return{name:b,body:this._buildUploadStatusEvent({digitalMediaArtifactUrn:t,mediaFileInfo:Ie(e),mediaUrn:r,useCase:null==e?void 0:e.mediaUploadType,uploadState:"APPLICATION_FOREGROUNDED",uploadMechanism:n,videoDuration:null==e||null===(o=e.metadata)||void 0===o?void 0:o.videoDuration,statusMessage:i})}}getUploadCancelledTrackingData(e,t,n,i,r,o){var a
return{name:b,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:b,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:b,body:this._buildUploadStatusEvent({digitalMediaArtifactUrn:t,mediaFileInfo:Ie(e),mediaUrn:i,useCase:e.mediaUploadType,uploadState:"IN_PROGRESS",uploadMechanism:n,videoDuration:e.metadata.videoDuration})}}getIngestionDebugTrackingData(e,t,n,i){return{name:b,body:this._buildUploadStatusEvent({digitalMediaArtifactUrn:t,mediaFileInfo:Ie(e),useCase:e.mediaUploadType,uploadState:"UNKNOWN",uploadMechanism:n,videoDuration:e.metadata.videoDuration,statusMessage:i})}}getUploadRetryTrackingData(e,t,n,i,r){return{name:b,body:this._buildUploadStatusEvent({digitalMediaArtifactUrn:t,mediaFileInfo:Ie(e),mediaUrn:i,useCase:e.mediaUploadType,uploadState:"RETRY",uploadMechanism:n,videoDuration:e.metadata.videoDuration,statusMessage:r})}}getPartUploadFailedTrackingData(e,t,n,i,r){const{xhr:o}=e,{responseText:a,status:s}=o,c=o.getAllResponseHeaders()
return{name:"PartUploadFailureEvent",body:{bytesTransferred:Ae(e.id,r),digitalMediaArtifactUrn:t,errorType:Ce(e.abortReason)??L(s),partUploadMetadata:Se(e.url,i),responseBody:Te(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:Se(e.url,i),uploadDuration:Math.round(performance.now()-r.partUploadStartTime),uploadMechanism:n,uploadSessionTrackingId:this._sessionId,numberOfRetries:e.attempts-1}}}}function xe(e){var t
return null==e||null===(t=e.media)||void 0===t?void 0:t.mediaUploadType}function Re(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 Ne{constructor(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0
var a,s,c
a=this,s="_id",c=r()(),(s=function(e){var t=function(e){if("object"!=typeof e||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:t+""}(s))in a?Object.defineProperty(a,s,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[s]=c,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 De 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._maxConcurrentRequests=i.maxConcurrentRequests,this._isExponentialRetryEnabled=i.enableExponentialRetry}run(e){if(e.aborted)return Promise.reject(q(e.reason,c,{uploadResult:this._results}))
e.addEventListener("abort",(()=>this.abort(e.reason)))
const{media:t,metadata:{mediaArtifactUrn:n,type:i,urn:r}}=this._uploadClient
this.emit(y,this._trackingData.getIngestionInProgressTrackingData(t,n,i,r))
let o=this._uploadClient.totalPartsToUpload
for(this._maxConcurrentRequests&&(o=Math.min(o,this._maxConcurrentRequests)-this._pendingRequests.size);o--;)this._tryNextPartUploadRequest()
return new Promise(((t,n)=>{this.on(Oe,(i=>{return i?e.aborted?n(q(e.reason,c,{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(){if(!this._maxConcurrentRequests||this._pendingRequests.size<this._maxConcurrentRequests)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 Ne("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(this._handleUploadProgress.bind(this,o.id,i)),o}),(()=>{}))}_handleUploadProgress(e,t,n){let{loaded:i,total:r}=n
const o=i/r==1
if(o){const{media:e,metadata:{mediaArtifactUrn:t,type:n,urn:i}}=this._uploadClient
this.emit(y,this._trackingData.getIngestionInProgressTrackingData(e,t,n,i))}if(this._maxConcurrentRequests&&o?this._uploadProgressMap.set(e,{loaded:t.size,total:t.size}):this._uploadProgressMap.set(e,{loaded:i,total:r}),this._maxConcurrentRequests){let e=0
this._uploadProgressMap.forEach((t=>{e+=t.loaded})),this.emit(v,parseFloat((e/this._uploadClient.mediaSize).toFixed(2)))}else{let e=0
this._uploadProgressMap.forEach((t=>{e+=t.loaded/t.total})),this.emit(v,parseFloat((e/this._uploadProgressMap.size).toFixed(2)))}}_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(y,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(y,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){var a,s
this._initialFailedRequest||(this._initialFailedRequest={statusCode:e.xhr.status,statusMessage:JSON.stringify({error:t.toString(),is4xx:o,numberOfRetries:e.attempts,maxRetriesPerPart:this._ingesterConfig.maxRetryAttempts,isOnline:null===(a=window)||void 0===a||null===(s=a.navigator)||void 0===s?void 0:s.onLine})}),this.abort(p)}else{var c,l
const{media:t,metadata:{mediaArtifactUrn:n,type:i,urn:r}}=this._uploadClient
if(this.emit(y,this._trackingData.getUploadRetryTrackingData(t,n,i,r,`isOnline: ${null===(c=window)||void 0===c||null===(l=c.navigator)||void 0===l?void 0:l.onLine}`)),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 Pe{constructor(e,t){this._blob=e,this._meta=t}get blob(){return this._blob}get meta(){return this._meta}}class Me{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 mediaSize(){return this._size||(this._size=ee(this._media.file).size),this._size}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:this.mediaSize-1})
break
case T: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!==T?this._media.file:this._media.file.slice(n.firstByte,n.lastByte+1,this._media.file.type)
return e({uploadUrl:n.url,fragment:new Pe(i,n)})}))}}function je(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 Le{constructor(e,t,n){this._ingesterConfig=e,this._uploadResult=t,this._registrationResult=n}run(e){return e.aborted?Promise.reject(q(e.reason,l)):this._finalizeMultipartUpload(e)}_finalizeMultipartUpload(e){return new Promise(((t,n)=>{const i=()=>n(q(e.reason,l))
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 V?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,s){let c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:{}
this._media=e,this._mediaUrn=t,this._registrationResult=n,this._ingesterConfig=i,this._taskStatus=r,this._trackingData=o,this._onUpdateCallback=a,this._onTrackingUpdateCallback=s,this._featureOptions=c,this._handleVisibilityChange=this._handleVisibilityChange.bind(this),this._handlePageHide=this._handlePageHide.bind(this),this._trackMediaIngestionInterruption=c.enableTrackMediaIngestionInterruption}_updateStatus(e){let{phase:t,state:n,progress:i,reason:r}=e
je(this._taskStatus,{phase:t,state:n,progress:i,reason:r},this._onUpdateCallback.bind(this))}_handleVisibilityChange(){"hidden"===document.visibilityState?this._onTrackingUpdateCallback(this._trackingData.getUploadBackgroundedTrackingData(this._media,this._registrationResult.mediaArtifactUrn,this._registrationResult.type,"Visibility Change - Hidden",this._mediaUrn)):this._onTrackingUpdateCallback(this._trackingData.getUploadForegroundedTrackingData(this._media,this._registrationResult.mediaArtifactUrn,this._registrationResult.type,"Visibility Change - Visible",this._mediaUrn))}_handlePageHide(e){e.persisted||this._onTrackingUpdateCallback(this._trackingData.getUploadCancelledTrackingData(this._media,this._registrationResult.mediaArtifactUrn,this._registrationResult.type,{errorPhase:c,errorType:C,httpErrorCode:0},"Page Hide",this._mediaUrn))}run(e){var t
if(e.aborted)return this._updateStatus({phase:c,state:e.reason===f?u.CANCELLED:u.TERMINATED,progress:0}),Promise.reject(q(e.reason,c))
this._trackMediaIngestionInterruption&&(document.addEventListener("visibilitychange",this._handleVisibilityChange),window.addEventListener("pagehide",this._handlePageHide))
const n=new Me(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)).finally((()=>{this._trackMediaIngestionInterruption&&(document.removeEventListener("visibilitychange",this._handleVisibilityChange),window.removeEventListener("pagehide",this._handlePageHide))}))}return this._uploadWithSimpleUploader(e,n).finally((()=>{this._trackMediaIngestionInterruption&&(document.removeEventListener("visibilitychange",this._handleVisibilityChange),window.removeEventListener("pagehide",this._handlePageHide))}))}_uploadWithSimpleUploader(e,t){return Promise.resolve().then((()=>this._updateStatus({phase:c,state:u.INPROGRESS,progress:0}))).then((()=>{const n=new De(t,this._ingesterConfig,this._trackingData,this._featureOptions)
return n.on(y,(e=>this._onTrackingUpdateCallback(e))),n.on(v,(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===T)return new Le(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 Fe{constructor(e){var t,n,i
t=this,i=void 0,(n=function(e){var t=function(e){if("object"!=typeof e||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:t+""}(n="_clientSensor"))in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,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 I:case w:this._incrementCounter("feed-image-upload-start")
break
case x:case R:case N:this._incrementCounter("feed-video-upload-start")}}incrementUploadSuccessCounter(e){switch(e){case I:case w:this._incrementCounter("feed-image-upload-success")
break
case x:case R:case N:this._incrementCounter("feed-video-upload-success")}}incrementUploadFailureCounter(e){switch(e){case I:case w:this._incrementCounter("feed-image-upload-failure")
break
case x:case R:case N:this._incrementCounter("feed-video-upload-failure")}}}function Be(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Ge extends(z()){constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
super(),Be(this,"_id",r()()),Be(this,"_status",new be),Be(this,"_abortController",new AbortController),Be(this,"_abortSignal",this._abortController.signal),this._ingestionRequest=e,this._ingesterConfig=t,this._featureOptions=n,this._clientSensor=new Fe(t),this._trackingData=new we}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.TERMINATED,u.COMPLETED].includes(this._status._state)}_buildStepWithAbort(e){return e.bind(this,this._abortSignal,this._onTaskUpdate.bind(this))}_onTaskUpdate(){this.emit(g)}_onMediaUrnAvailable(){this._onTaskUpdate()}_sendTrackingUpdate(e){this.emit(m,e)}runTask(){var e
const t=function(e){const t=Re(e)
return t?{fileName:t.name||"",size:t.size,contentType:t.type||""}:null}(this._ingestionRequest),n=xe(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 ve(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 Ee(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)===E&&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._mediaUrn,this._registrationResult,this._ingesterConfig,this._status,this._trackingData,t,this._sendTrackingUpdate.bind(this),this._featureOptions).run(e)}_completeIngestion(){je(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 P,l=e instanceof M,d=function(e){let{isCancelled:t,isTerminated:n}=e
return t?u.CANCELLED:n?u.TERMINATED:u.FAILED}({isCancelled:c,isTerminated:l})
var f
c||l||this._clientSensor.incrementUploadFailureCounter((null===(f=this._media)||void 0===f?void 0:f.mediaUploadType)||xe(this._ingestionRequest)),je(this._status,{phase:i,reason:a,state:d},this._onTaskUpdate.bind(this))
const p=function(e){let{isCancelled:t,isTerminated:n}=e
return t?"getUploadCancelledTrackingData":n?"getIngestionTerminatedTrackingData":"getUploadFailedTrackingData"}({isCancelled:c,isTerminated:l})
if(this._sendTrackingUpdate(this._trackingData[p](this._media||function(e){const t=Re(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:xe(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)),!l)throw new B("INGESTION FAILED",{reason:a,isCancelled:c},e)}cancel(){this._abortController.abort(f)}terminate(){this._abortController.abort(p)}}class He{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 Ve(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class qe{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
Ve(this,"_ingesterJobMap",new Map),Ve(this,"_ingesterConfig",{maxRetryAttempts:10}),Ve(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 He(t),r=new W
return e.forEach((e=>{const t=new Ge(e,this._ingesterConfig,this._featureOptions)
!function(e,t,n){e.on(g,(()=>{t.update(),n.updateIngestionProgress(t)})),e.on(m,(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}}},51745:function(e){e.exports=function(){"use strict"
const e={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},t=["video","audio","text"],n=["Video","Audio","Text"],i=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e,t,n){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(n).toString(16)).slice(-2)})):e},r=function(e){return e.map(i)},o=function(){const n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(","),i=[]
return n.forEach((function(n){let r
n=n.trim(),t.forEach((function(t){const o=e[t].exec(n.toLowerCase())
if(!o||o.length<=1)return
r=t
const a=n.substring(0,o[1].length),s=n.replace(a,"")
i.push({type:a,details:s,mediaType:t})})),r||i.push({type:n,details:"",mediaType:"unknown"})})),i},a=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:""
return e.audio.test(t.trim().toLowerCase())},s=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:""
return e.text.test(t.trim().toLowerCase())},c=t=>{if(!t||"string"!=typeof t)return
const n=t.toLowerCase().split(",").map((e=>i(e.trim())))
let r="video"
1===n.length&&a(n[0])?r="audio":1===n.length&&s(n[0])&&(r="application")
let o="mp4"
return n.every((t=>e.mp4.test(t)))?o="mp4":n.every((t=>e.webm.test(t)))?o="webm":n.every((t=>e.ogg.test(t)))&&(o="ogg"),`${r}/${o};codecs="${t}"`}
var l=Object.freeze({__proto__:null,translateLegacyCodec:i,translateLegacyCodecs:r,mapLegacyAvcCodecs:function(e){return e.replace(/avc1\.(\d+)\.(\d+)/i,(e=>r([e])[0]))},parseCodecs:o,codecsFromDefault:(e,t)=>{if(!e.mediaGroups.AUDIO||!t)return null
const n=e.mediaGroups.AUDIO[t]
if(!n)return null
for(const e in n){const t=n[e]
if(t.default&&t.playlists)return o(t.playlists[0].attributes.CODECS)}return null},isVideoCodec:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:""
return e.video.test(t.trim().toLowerCase())},isAudioCodec:a,isTextCodec:s,getMimeForCodec:c,browserSupportsCodec:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported(c(e))||t&&window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported&&window.ManagedMediaSource.isTypeSupported(c(e))||!1},muxerSupportsCodec:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase().split(",").every((t=>{t=t.trim()
for(let i=0;i<n.length;i++)if(e[`muxer${n[i]}`].test(t))return!0
return!1}))},DEFAULT_AUDIO_CODEC:"mp4a.40.2",DEFAULT_VIDEO_CODEC:"avc1.4d400d"})
const u=e=>e.toString(2).length,d=e=>Math.ceil(u(e)/8),f=function(e,t){return(function(e,t){let n=""
for(;t--;)n+=e
return n}(arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ",t)+e.toString()).slice(-t)},p=e=>"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,h=e=>p(e),g=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||h(e)||e instanceof ArrayBuffer||(e="number"!=typeof e||"number"==typeof e&&e!=e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},m=window.BigInt||Number,v=[m("0x1"),m("0x100"),m("0x10000"),m("0x1000000"),m("0x100000000"),m("0x10000000000"),m("0x1000000000000"),m("0x100000000000000"),m("0x10000000000000000")],y=function(){const e=new Uint16Array([65484]),t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)
return 255===t[0]?"big":204===t[0]?"little":"unknown"}(),b="big"===y,E="little"===y,_=function(e){let{signed:t=!1,le:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
e=g(e)
const i=n?"reduce":"reduceRight"
let r=(e[i]?e[i]:Array.prototype[i]).call(e,(function(t,i,r){const o=n?r:Math.abs(r+1-e.length)
return t+m(i)*v[o]}),m(0))
if(t){const t=v[e.length]/m(2)-m(1)
r=m(r),r>t&&(r-=t,r-=t,r-=m(2))}return Number(r)},k=function(e){let{le:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!=e)&&(e=0),e=m(e)
const n=d(e),i=new Uint8Array(new ArrayBuffer(n))
for(let r=0;r<n;r++){const n=t?r:Math.abs(r+1-i.length)
i[n]=Number(e/v[r]&m(255)),e<0&&(i[n]=Math.abs(~i[n]),i[n]-=0===r?1:2)}return i},T=(e,t)=>{if("string"!=typeof e&&e&&"function"==typeof e.toString&&(e=e.toString()),"string"!=typeof e)return new Uint8Array
t||(e=unescape(encodeURIComponent(e)))
const n=new Uint8Array(e.length)
for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t)
return n},S=function(e,t){let{offset:n=0,mask:i=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
e=g(e)
const r=(t=g(t)).every?t.every:Array.prototype.every
return t.length&&e.length-n>=t.length&&r.call(t,((t,r)=>t===(i[r]?i[r]&e[n+r]:e[n+r])))}
var A=Object.freeze({__proto__:null,countBits:u,countBytes:d,padStart:f,isArrayBufferView:p,isTypedArray:h,toUint8:g,toHexString:function(e){e=g(e)
let t=""
for(let n=0;n<e.length;n++)t+=f(e[n].toString(16),2,"0")
return t},toBinaryString:function(e){e=g(e)
let t=""
for(let n=0;n<e.length;n++)t+=f(e[n].toString(2),8,"0")
return t},ENDIANNESS:y,IS_BIG_ENDIAN:b,IS_LITTLE_ENDIAN:E,bytesToNumber:_,numberToBytes:k,bytesToString:e=>{if(!e)return""
e=Array.prototype.slice.call(e)
const t=String.fromCharCode.apply(null,g(e))
try{return decodeURIComponent(escape(t))}catch(e){}return t},stringToBytes:T,concatTypedArrays:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
if((t=t.filter((e=>e&&(e.byteLength||e.length)&&"string"!=typeof e))).length<=1)return g(t[0])
const i=t.reduce(((e,t,n)=>e+(t.byteLength||t.length)),0),r=new Uint8Array(i)
let o=0
return t.forEach((function(e){e=g(e),r.set(e,o),o+=e.byteLength})),r},bytesMatch:S,sliceBytes:function(e,t,n){return Uint8Array.prototype.slice?Uint8Array.prototype.slice.call(e,t,n):new Uint8Array(Array.prototype.slice.call(e,t,n))},reverseBytes:function(e){return e.reverse?e.reverse():Array.prototype.reverse.call(e)}})
const C=function(e){return"string"==typeof e?T(e):e},I=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]
t=function(e){return Array.isArray(e)?e.map((e=>C(e))):[C(e)]}(t),e=g(e)
const i=[]
if(!t.length)return i
let r=0
for(;r<e.length;){const o=(e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3])>>>0,a=e.subarray(r+4,r+8)
if(0===o)break
let s=r+o
if(s>e.length){if(n)break
s=e.length}const c=e.subarray(r+8,s)
S(a,t[0])&&(1===t.length?i.push(c):i.push.apply(i,I(c,t.slice(1),n))),r=s}return i},w={EBML:g([26,69,223,163]),DocType:g([66,130]),Segment:g([24,83,128,103]),SegmentInfo:g([21,73,169,102]),Tracks:g([22,84,174,107]),Track:g([174]),TrackNumber:g([215]),DefaultDuration:g([35,227,131]),TrackEntry:g([174]),TrackType:g([131]),FlagDefault:g([136]),CodecID:g([134]),CodecPrivate:g([99,162]),VideoTrack:g([224]),AudioTrack:g([225]),Cluster:g([31,67,182,117]),Timestamp:g([231]),TimestampScale:g([42,215,177]),BlockGroup:g([160]),BlockDuration:g([155]),Block:g([161]),SimpleBlock:g([163])},x=[128,64,32,16,8,4,2,1],R=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3]
const r=function(e){let t=1
for(let n=0;n<x.length&&!(e&x[n]);n++)t++
return t}(e[t])
let o=e.subarray(t,t+r)
return n&&(o=Array.prototype.slice.call(e,t,t+r),o[0]^=x[r-1]),{length:r,value:_(o,{signed:i}),bytes:o}},N=function(e){return"string"==typeof e?e.match(/.{1,2}/g).map((e=>N(e))):"number"==typeof e?k(e):e},O=(e,t,n)=>{if(n>=t.length)return t.length
const i=R(t,n,!1)
if(S(e.bytes,i.bytes))return n
const r=R(t,n+i.length)
return O(e,t,n+r.length+r.value+i.length)},D=function(e,t){t=function(e){return Array.isArray(e)?e.map((e=>N(e))):[N(e)]}(t),e=g(e)
let n=[]
if(!t.length)return n
let i=0
for(;i<e.length;){const r=R(e,i,!1),o=R(e,i+r.length),a=i+r.length+o.length
127===o.value&&(o.value=O(r,e,a),o.value!==e.length&&(o.value-=a))
const s=a+o.value>e.length?e.length:a+o.value,c=e.subarray(a,s)
S(t[0],r.bytes)&&(1===t.length?n.push(c):n=n.concat(D(c,t.slice(1)))),i+=r.length+o.length+c.length}return n},P=g([73,68,51]),M=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0
return(e=g(e)).length-t<10||!S(e,P,{offset:t})?t:(t+=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0
const n=(e=g(e))[t+5],i=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9]
return(16&n)>>4?i+20:i+10}(e,t),M(e,t))},j=g([0,0,0,1]),L=g([0,0,1]),U=g([0,0,3]),F=function(e){const t=[]
let n=1
for(;n<e.length-2;)S(e.subarray(n,n+3),U)&&(t.push(n+2),n++),n++
if(0===t.length)return e
const i=e.length-t.length,r=new Uint8Array(i)
let o=0
for(n=0;n<i;o++,n++)o===t[0]&&(o++,t.shift()),r[n]=e[o]
return r},B=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0
e=g(e),n=[].concat(n)
let r,o=0,a=0
for(;o<e.length&&(a<i||r);){let i,s
if(S(e.subarray(o),j)?i=4:S(e.subarray(o),L)&&(i=3),i){if(a++,r)return F(e.subarray(r,o))
"h264"===t?s=31&e[o+i]:"h265"===t&&(s=e[o+i]>>1&63),-1!==n.indexOf(s)&&(r=o+i),o+=i+("h264"===t?1:2)}else o++}return e.subarray(0,0)},G={webm:g([119,101,98,109]),matroska:g([109,97,116,114,111,115,107,97]),flac:g([102,76,97,67]),ogg:g([79,103,103,83]),ac3:g([11,119]),riff:g([82,73,70,70]),avi:g([65,86,73]),wav:g([87,65,86,69]),"3gp":g([102,116,121,112,51,103]),mp4:g([102,116,121,112]),fmp4:g([115,116,121,112]),mov:g([102,116,121,112,113,116]),moov:g([109,111,111,118]),moof:g([109,111,111,102])},H={aac(e){const t=M(e)
return S(e,[255,16],{offset:t,mask:[255,22]})},mp3(e){const t=M(e)
return S(e,[255,2],{offset:t,mask:[255,6]})},webm(e){const t=D(e,[w.EBML,w.DocType])[0]
return S(t,G.webm)},mkv(e){const t=D(e,[w.EBML,w.DocType])[0]
return S(t,G.matroska)},mp4:e=>!H["3gp"](e)&&!H.mov(e)&&(!(!S(e,G.mp4,{offset:4})&&!S(e,G.fmp4,{offset:4}))||!(!S(e,G.moof,{offset:4})&&!S(e,G.moov,{offset:4}))||void 0),mov:e=>S(e,G.mov,{offset:4}),"3gp":e=>S(e,G["3gp"],{offset:4}),ac3(e){const t=M(e)
return S(e,G.ac3,{offset:t})},ts(e){if(e.length<189&&e.length>=1)return 71===e[0]
let t=0
for(;t+188<e.length&&t<188;){if(71===e[t]&&71===e[t+188])return!0
t+=1}return!1},flac(e){const t=M(e)
return S(e,G.flac,{offset:t})},ogg:e=>S(e,G.ogg),avi:e=>S(e,G.riff)&&S(e,G.avi,{offset:8}),wav:e=>S(e,G.riff)&&S(e,G.wav,{offset:8}),h264:e=>(e=>B(e,"h264",7,3))(e).length,h265:e=>(e=>B(e,"h265",[32,33],3))(e).length},V=Object.keys(H).filter((e=>"ts"!==e&&"h264"!==e&&"h265"!==e)).concat(["ts","h264","h265"])
V.forEach((function(e){const t=H[e]
H[e]=e=>t(g(e))}))
const q=H
var K=Object.freeze({__proto__:null,isLikely:q,detectContainerForBytes:e=>{e=g(e)
for(let t=0;t<V.length;t++){const n=V[t]
if(q[n](e))return n}return""},isLikelyFmp4MediaSegment:e=>I(e,["moof"]).length>0}),W=Object.freeze({__proto__:null,forEachMediaGroup:(e,t,n)=>{t.forEach((t=>{for(const i in e.mediaGroups[t])for(const r in e.mediaGroups[t][i]){const o=e.mediaGroups[t][i][r]
n(o,t,i,r)}}))}})
return{codecs:l,byteHelpers:A,containers:K,decodeB64ToUint8Array:function(e){const t=(i=e,window.atob?window.atob(i):Buffer.from(i,"base64").toString("binary")),n=new Uint8Array(t.length)
var i
for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e)
return n},mediaGroups:W,resolveUrl:(e,t)=>{if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=window.location&&window.location.href||"")
const n=/^\/\//.test(e),i=!window.location&&!/\/\//i.test(e)
e=new window.URL(e,window.location||"https://example.com")
const r=new URL(t,e)
return i?r.href.slice(19):n?r.href.slice(r.protocol.length):r.href},Stream:class{constructor(){this.listeners={}}on(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)}off(e,t){if(!this.listeners[e])return!1
const n=this.listeners[e].indexOf(t)
return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1}trigger(e){const t=this.listeners[e]
if(t)if(2===arguments.length){const e=t.length
for(let n=0;n<e;++n)t[n].call(this,arguments[1])}else{const e=Array.prototype.slice.call(arguments,1),n=t.length
for(let i=0;i<n;++i)t[i].apply(this,e)}}dispose(){this.listeners={}}pipe(e){this.on("data",(function(t){e.push(t)}))}}}}()},1882:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{LineStream:()=>c,ParseStream:()=>p,Parser:()=>m})
var i=function(){function e(){this.listeners={}}var t=e.prototype
return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1
var n=this.listeners[e].indexOf(t)
return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e]
if(t)if(2===arguments.length)for(var n=t.length,i=0;i<n;++i)t[i].call(this,arguments[1])
else for(var r=Array.prototype.slice.call(arguments,1),o=t.length,a=0;a<o;++a)t[a].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",(function(t){e.push(t)}))},e}()
function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]
for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r.apply(this,arguments)}var o=n(68188),a=n.n(o)
function s(e){for(var t,n=(t=e,a().atob?a().atob(t):Buffer.from(t,"base64").toString("binary")),i=new Uint8Array(n.length),r=0;r<n.length;r++)i[r]=n.charCodeAt(r)
return i}class c extends i{constructor(){super(),this.buffer=""}push(e){let t
for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)}}const l=String.fromCharCode(9),u=function(e){const t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),n={}
return t[1]&&(n.length=parseInt(t[1],10)),t[2]&&(n.offset=parseInt(t[2],10)),n},d=function(e){const t={}
if(!e)return t
const n=e.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))'))
let i,r=n.length
for(;r--;)""!==n[r]&&(i=/([^=]*)=(.*)/.exec(n[r]).slice(1),i[0]=i[0].replace(/^\s+|\s+$/g,""),i[1]=i[1].replace(/^\s+|\s+$/g,""),i[1]=i[1].replace(/^['"](.*)['"]$/g,"$1"),t[i[0]]=i[1])
return t},f=e=>{const t=e.split("x"),n={}
return t[0]&&(n.width=parseInt(t[0],10)),t[1]&&(n.height=parseInt(t[1],10)),n}
class p extends i{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(e){let t,n
0!==(e=e.trim()).length&&("#"===e[0]?this.tagMappers.reduce(((t,n)=>{const i=n(e)
return i===e?t:t.concat([i])}),[e]).forEach((e=>{for(let t=0;t<this.customParsers.length;t++)if(this.customParsers[t].call(this,e))return
if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e),t)this.trigger("data",{type:"tag",tagType:"m3u"})
else{if(t=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"inf"},t[1]&&(n.duration=parseFloat(t[1])),t[2]&&(n.title=t[2]),void this.trigger("data",n)
if(t=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"targetduration"},t[1]&&(n.duration=parseInt(t[1],10)),void this.trigger("data",n)
if(t=/^#EXT-X-VERSION:([0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"version"},t[1]&&(n.version=parseInt(t[1],10)),void this.trigger("data",n)
if(t=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"media-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void this.trigger("data",n)
if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void this.trigger("data",n)
if(t=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(e),t)return n={type:"tag",tagType:"playlist-type"},t[1]&&(n.playlistType=t[1]),void this.trigger("data",n)
if(t=/^#EXT-X-BYTERANGE:(.*)?$/.exec(e),t)return n=r(u(t[1]),{type:"tag",tagType:"byterange"}),void this.trigger("data",n)
if(t=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(e),t)return n={type:"tag",tagType:"allow-cache"},t[1]&&(n.allowed=!/NO/.test(t[1])),void this.trigger("data",n)
if(t=/^#EXT-X-MAP:(.*)$/.exec(e),t){if(n={type:"tag",tagType:"map"},t[1]){const e=d(t[1])
e.URI&&(n.uri=e.URI),e.BYTERANGE&&(n.byterange=u(e.BYTERANGE))}this.trigger("data",n)}else{if(t=/^#EXT-X-STREAM-INF:(.*)$/.exec(e),t)return n={type:"tag",tagType:"stream-inf"},t[1]&&(n.attributes=d(t[1]),n.attributes.RESOLUTION&&(n.attributes.RESOLUTION=f(n.attributes.RESOLUTION)),n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["FRAME-RATE"]&&(n.attributes["FRAME-RATE"]=parseFloat(n.attributes["FRAME-RATE"])),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))),void this.trigger("data",n)
if(t=/^#EXT-X-MEDIA:(.*)$/.exec(e),t)return n={type:"tag",tagType:"media"},t[1]&&(n.attributes=d(t[1])),void this.trigger("data",n)
if(t=/^#EXT-X-ENDLIST/.exec(e),t)this.trigger("data",{type:"tag",tagType:"endlist"})
else if(t=/^#EXT-X-DISCONTINUITY/.exec(e),t)this.trigger("data",{type:"tag",tagType:"discontinuity"})
else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(e),t)return n={type:"tag",tagType:"program-date-time"},t[1]&&(n.dateTimeString=t[1],n.dateTimeObject=new Date(t[1])),void this.trigger("data",n)
if(t=/^#EXT-X-KEY:(.*)$/.exec(e),t)return n={type:"tag",tagType:"key"},t[1]&&(n.attributes=d(t[1]),n.attributes.IV&&("0x"===n.attributes.IV.substring(0,2).toLowerCase()&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),void this.trigger("data",n)
if(t=/^#EXT-X-START:(.*)$/.exec(e),t)return n={type:"tag",tagType:"start"},t[1]&&(n.attributes=d(t[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),void this.trigger("data",n)
if(t=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-out-cont"},t[1]?n.data=t[1]:n.data="",void this.trigger("data",n)
if(t=/^#EXT-X-CUE-OUT:(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-out"},t[1]?n.data=t[1]:n.data="",void this.trigger("data",n)
if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-in"},t[1]?n.data=t[1]:n.data="",void this.trigger("data",n)
if(t=/^#EXT-X-SKIP:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"skip"},n.attributes=d(t[1]),n.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(n.attributes["SKIPPED-SEGMENTS"]=parseInt(n.attributes["SKIPPED-SEGMENTS"],10)),n.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(n.attributes["RECENTLY-REMOVED-DATERANGES"]=n.attributes["RECENTLY-REMOVED-DATERANGES"].split(l)),void this.trigger("data",n)
if(t=/^#EXT-X-PART:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"part"},n.attributes=d(t[1]),["DURATION"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),["INDEPENDENT","GAP"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))})),n.attributes.hasOwnProperty("BYTERANGE")&&(n.attributes.byterange=u(n.attributes.BYTERANGE)),void this.trigger("data",n)
if(t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"server-control"},n.attributes=d(t[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))})),void this.trigger("data",n)
if(t=/^#EXT-X-PART-INF:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"part-inf"},n.attributes=d(t[1]),["PART-TARGET"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),void this.trigger("data",n)
if(t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"preload-hint"},n.attributes=d(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach((function(e){if(n.attributes.hasOwnProperty(e)){n.attributes[e]=parseInt(n.attributes[e],10)
const t="BYTERANGE-LENGTH"===e?"length":"offset"
n.attributes.byterange=n.attributes.byterange||{},n.attributes.byterange[t]=n.attributes[e],delete n.attributes[e]}})),void this.trigger("data",n)
if(t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"rendition-report"},n.attributes=d(t[1]),["LAST-MSN","LAST-PART"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseInt(n.attributes[e],10))})),void this.trigger("data",n)
if(t=/^#EXT-X-DATERANGE:(.*)$/.exec(e),t&&t[1]){n={type:"tag",tagType:"daterange"},n.attributes=d(t[1]),["ID","CLASS"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=String(n.attributes[e]))})),["START-DATE","END-DATE"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=new Date(n.attributes[e]))})),["DURATION","PLANNED-DURATION"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),["END-ON-NEXT"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/i.test(n.attributes[e]))})),["SCTE35-CMD"," SCTE35-OUT","SCTE35-IN"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=n.attributes[e].toString(16))}))
const e=/^X-([A-Z]+-)+[A-Z]+$/
for(const t in n.attributes){if(!e.test(t))continue
const i=/[0-9A-Fa-f]{6}/g.test(n.attributes[t]),r=/^\d+(\.\d+)?$/.test(n.attributes[t])
n.attributes[t]=i?n.attributes[t].toString(16):r?parseFloat(n.attributes[t]):String(n.attributes[t])}this.trigger("data",n)}else if(t=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(e),t)this.trigger("data",{type:"tag",tagType:"independent-segments"})
else if(t=/^#EXT-X-I-FRAMES-ONLY/.exec(e),t)this.trigger("data",{type:"tag",tagType:"i-frames-only"})
else{if(t=/^#EXT-X-CONTENT-STEERING:(.*)$/.exec(e),t)return n={type:"tag",tagType:"content-steering"},n.attributes=d(t[1]),void this.trigger("data",n)
if(t=/^#EXT-X-I-FRAME-STREAM-INF:(.*)$/.exec(e),t)return n={type:"tag",tagType:"i-frame-playlist"},n.attributes=d(t[1]),n.attributes.URI&&(n.uri=n.attributes.URI),n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes.RESOLUTION&&(n.attributes.RESOLUTION=f(n.attributes.RESOLUTION)),n.attributes["AVERAGE-BANDWIDTH"]&&(n.attributes["AVERAGE-BANDWIDTH"]=parseInt(n.attributes["AVERAGE-BANDWIDTH"],10)),n.attributes["FRAME-RATE"]&&(n.attributes["FRAME-RATE"]=parseFloat(n.attributes["FRAME-RATE"])),void this.trigger("data",n)
if(t=/^#EXT-X-DEFINE:(.*)$/.exec(e),t)return n={type:"tag",tagType:"define"},n.attributes=d(t[1]),void this.trigger("data",n)
this.trigger("data",{type:"tag",data:e.slice(4)})}}}}else this.trigger("data",{type:"comment",text:e.slice(1)})})):this.trigger("data",{type:"uri",uri:e}))}addParser(e){let{expression:t,customType:n,dataParser:i,segment:r}=e
"function"!=typeof i&&(i=e=>e),this.customParsers.push((e=>{if(t.exec(e))return this.trigger("data",{type:"custom",data:i(e),customType:n,segment:r}),!0}))}addTagMapper(e){let{expression:t,map:n}=e
this.tagMappers.push((e=>t.test(e)?n(e):e))}}const h=function(e){const t={}
return Object.keys(e).forEach((function(n){var i
t[(i=n,i.toLowerCase().replace(/-(\w)/g,(e=>e[1].toUpperCase())))]=e[n]})),t},g=function(e){const{serverControl:t,targetDuration:n,partTargetDuration:i}=e
if(!t)return
const r="#EXT-X-SERVER-CONTROL",o="holdBack",a="partHoldBack",s=n&&3*n,c=i&&2*i
n&&!t.hasOwnProperty(o)&&(t[o]=s,this.trigger("info",{message:`${r} defaulting HOLD-BACK to targetDuration * 3 (${s}).`})),s&&t[o]<s&&(this.trigger("warn",{message:`${r} clamping HOLD-BACK (${t[o]}) to targetDuration * 3 (${s})`}),t[o]=s),i&&!t.hasOwnProperty(a)&&(t[a]=3*i,this.trigger("info",{message:`${r} defaulting PART-HOLD-BACK to partTargetDuration * 3 (${t[a]}).`})),i&&t[a]<c&&(this.trigger("warn",{message:`${r} clamping PART-HOLD-BACK (${t[a]}) to partTargetDuration * 2 (${c}).`}),t[a]=c)}
class m extends i{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
super(),this.lineStream=new c,this.parseStream=new p,this.lineStream.pipe(this.parseStream),this.mainDefinitions=e.mainDefinitions||{},this.params=new URL(e.uri,"https://a.com").searchParams,this.lastProgramDateTime=null
const t=this,n=[]
let i,o,a={},l=!1
const u=function(){},d={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}}
let f=0
this.manifest={allowCache:!0,discontinuityStarts:[],dateRanges:[],iFramePlaylists:[],segments:[]}
let m=0,v=0
const y={}
this.on("end",(()=>{a.uri||!a.parts&&!a.preloadHints||(!a.map&&i&&(a.map=i),!a.key&&o&&(a.key=o),a.timeline||"number"!=typeof f||(a.timeline=f),this.manifest.preloadSegment=a)})),this.parseStream.on("data",(function(e){let c,p
if(t.manifest.definitions)for(const n in t.manifest.definitions)if(e.uri&&(e.uri=e.uri.replace(`{$${n}}`,t.manifest.definitions[n])),e.attributes)for(const i in e.attributes)"string"==typeof e.attributes[i]&&(e.attributes[i]=e.attributes[i].replace(`{$${n}}`,t.manifest.definitions[n]));({tag(){({version(){e.version&&(this.manifest.version=e.version)},"allow-cache"(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){const t={}
"length"in e&&(a.byterange=t,t.length=e.length,"offset"in e||(e.offset=m)),"offset"in e&&(a.byterange=t,t.offset=e.offset),m=t.offset+t.length},endlist(){this.manifest.endList=!0},inf(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),e.title&&(a.title=e.title),e.duration>0&&(a.duration=e.duration),0===e.duration&&(a.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=n},key(){if(e.attributes)if("NONE"!==e.attributes.METHOD)if(e.attributes.URI){if("com.apple.streamingkeydelivery"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes})
if("com.microsoft.playready"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:e.attributes.URI})
if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===e.attributes.KEYFORMAT)return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:s(e.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))
e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),o={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void 0!==e.attributes.IV&&(o.iv=e.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"})
else o=null
else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence"(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence"(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,f=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type"(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map(){i={},e.uri&&(i.uri=e.uri),e.byterange&&(i.byterange=e.byterange),o&&(i.key=o)},"stream-inf"(){this.manifest.playlists=n,this.manifest.mediaGroups=this.manifest.mediaGroups||d,e.attributes?(a.attributes||(a.attributes={}),r(a.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||d,!(e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME))return void this.trigger("warn",{message:"ignoring incomplete or missing media group"})
const t=this.manifest.mediaGroups[e.attributes.TYPE]
t[e.attributes["GROUP-ID"]]=t[e.attributes["GROUP-ID"]]||{},c=t[e.attributes["GROUP-ID"]],p={default:/yes/i.test(e.attributes.DEFAULT)},p.default?p.autoselect=!0:p.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(p.language=e.attributes.LANGUAGE),e.attributes.URI&&(p.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(p.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(p.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(p.forced=/yes/i.test(e.attributes.FORCED)),c[e.attributes.NAME]=p},discontinuity(){f+=1,a.discontinuity=!0,this.manifest.discontinuityStarts.push(n.length)},"program-date-time"(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),a.dateTimeString=e.dateTimeString,a.dateTimeObject=e.dateTimeObject
const{lastProgramDateTime:t}=this
this.lastProgramDateTime=new Date(e.dateTimeString).getTime(),null===t&&this.manifest.segments.reduceRight(((e,t)=>(t.programDateTime=e-1e3*t.duration,t.programDateTime)),this.lastProgramDateTime)},targetduration(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):(this.manifest.targetDuration=e.duration,g.call(this,this.manifest))},start(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out"(){a.cueOut=e.data},"cue-out-cont"(){a.cueOutCont=e.data},"cue-in"(){a.cueIn=e.data},skip(){this.manifest.skip=h(e.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part(){l=!0
const t=this.manifest.segments.length,n=h(e.attributes)
a.parts=a.parts||[],a.parts.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=v),v=n.byterange.offset+n.byterange.length)
const i=a.parts.length-1
this.warnOnMissingAttributes_(`#EXT-X-PART #${i} for segment #${t}`,e.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach(((e,t)=>{e.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${t} lacks required attribute(s): LAST-PART`})}))},"server-control"(){const t=this.manifest.serverControl=h(e.attributes)
t.hasOwnProperty("canBlockReload")||(t.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),g.call(this,this.manifest),t.canSkipDateranges&&!t.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint"(){const t=this.manifest.segments.length,n=h(e.attributes),i=n.type&&"PART"===n.type
a.preloadHints=a.preloadHints||[],a.preloadHints.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=i?v:0,i&&(v=n.byterange.offset+n.byterange.length)))
const r=a.preloadHints.length-1
if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${r} for segment #${t}`,e.attributes,["TYPE","URI"]),n.type)for(let e=0;e<a.preloadHints.length-1;e++){const i=a.preloadHints[e]
i.type&&i.type===n.type&&this.trigger("warn",{message:`#EXT-X-PRELOAD-HINT #${r} for segment #${t} has the same TYPE ${n.type} as preload hint #${e}`})}},"rendition-report"(){const t=h(e.attributes)
this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(t)
const n=this.manifest.renditionReports.length-1,i=["LAST-MSN","URI"]
l&&i.push("LAST-PART"),this.warnOnMissingAttributes_(`#EXT-X-RENDITION-REPORT #${n}`,e.attributes,i)},"part-inf"(){this.manifest.partInf=h(e.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",e.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),g.call(this,this.manifest)},daterange(){this.manifest.dateRanges.push(h(e.attributes))
const t=this.manifest.dateRanges.length-1
this.warnOnMissingAttributes_(`#EXT-X-DATERANGE #${t}`,e.attributes,["ID","START-DATE"])
const n=this.manifest.dateRanges[t]
n.endDate&&n.startDate&&new Date(n.endDate)<new Date(n.startDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE"}),n.duration&&n.duration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE DURATION must not be negative"}),n.plannedDuration&&n.plannedDuration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE PLANNED-DURATION must not be negative"})
const i=!!n.endOnNext
if(i&&!n.class&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must have a CLASS attribute"}),i&&(n.duration||n.endDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes"}),n.duration&&n.endDate){const e=n.startDate.getTime()+1e3*n.duration
this.manifest.dateRanges[t].endDate=new Date(e)}if(y[n.id]){for(const e in y[n.id])if(n[e]&&JSON.stringify(y[n.id][e])!==JSON.stringify(n[e])){this.trigger("warn",{message:"EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes values"})
break}const e=this.manifest.dateRanges.findIndex((e=>e.id===n.id))
this.manifest.dateRanges[e]=r(this.manifest.dateRanges[e],n),y[n.id]=r(y[n.id],n),this.manifest.dateRanges.pop()}else y[n.id]=n},"independent-segments"(){this.manifest.independentSegments=!0},"i-frames-only"(){this.manifest.iFramesOnly=!0,this.requiredCompatibilityversion(this.manifest.version,4)},"content-steering"(){this.manifest.contentSteering=h(e.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",e.attributes,["SERVER-URI"])},define(){this.manifest.definitions=this.manifest.definitions||{}
const t=(e,t)=>{e in this.manifest.definitions?this.trigger("error",{message:`EXT-X-DEFINE: Duplicate name ${e}`}):this.manifest.definitions[e]=t}
if("QUERYPARAM"in e.attributes){if("NAME"in e.attributes||"IMPORT"in e.attributes)return void this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"})
const n=this.params.get(e.attributes.QUERYPARAM)
return n?void t(e.attributes.QUERYPARAM,decodeURIComponent(n)):void this.trigger("error",{message:`EXT-X-DEFINE: No query param ${e.attributes.QUERYPARAM}`})}return"NAME"in e.attributes?"IMPORT"in e.attributes?void this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"}):"VALUE"in e.attributes&&"string"==typeof e.attributes.VALUE?void t(e.attributes.NAME,e.attributes.VALUE):void this.trigger("error",{message:`EXT-X-DEFINE: No value for ${e.attributes.NAME}`}):"IMPORT"in e.attributes?this.mainDefinitions[e.attributes.IMPORT]?void t(e.attributes.IMPORT,this.mainDefinitions[e.attributes.IMPORT]):void this.trigger("error",{message:`EXT-X-DEFINE: No value ${e.attributes.IMPORT} to import, or IMPORT used on main playlist`}):void this.trigger("error",{message:"EXT-X-DEFINE: No attribute"})},"i-frame-playlist"(){this.manifest.iFramePlaylists.push({attributes:e.attributes,uri:e.uri,timeline:f}),this.warnOnMissingAttributes_("#EXT-X-I-FRAME-STREAM-INF",e.attributes,["BANDWIDTH","URI"])}}[e.tagType]||u).call(t)},uri(){a.uri=e.uri,n.push(a),this.manifest.targetDuration&&!("duration"in a)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),a.duration=this.manifest.targetDuration),o&&(a.key=o),a.timeline=f,i&&(a.map=i),v=0,null!==this.lastProgramDateTime&&(a.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=1e3*a.duration),a={}},comment(){},custom(){e.segment?(a.custom=a.custom||{},a.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(t)}))}requiredCompatibilityversion(e,t){(e<t||!e)&&this.trigger("warn",{message:`manifest must be at least version ${t}`})}warnOnMissingAttributes_(e,t,n){const i=[]
n.forEach((function(e){t.hasOwnProperty(e)||i.push(e)})),i.length&&this.trigger("warn",{message:`${e} lacks required attribute(s): ${i.join(", ")}`})}push(e){this.lineStream.push(e)}end(){this.lineStream.push("\n"),this.manifest.dateRanges.length&&null===this.lastProgramDateTime&&this.trigger("warn",{message:"A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag"}),this.lastProgramDateTime=null,this.trigger("end")}addParser(e){this.parseStream.addParser(e)}addTagMapper(e){this.parseStream.addTagMapper(e)}}},51510:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{ConversationsIterable:()=>St,MDError:()=>Ue,Mailbox:()=>$d,MailboxConnection:()=>tf,MailboxConnectionPool:()=>ef,NERFED_PERF:()=>Xd,apiErrors:()=>Re,clearStateForTesting:()=>pt,clientErrors:()=>Ne,connectToMailbox:()=>nf,connectToMailboxes:()=>rf,conversationStateIdentifierIs:()=>We,conversationStateUrnIs:()=>qe,getCommonTimeClient:()=>i.getClient,getConvoStateFromMessageUrn:()=>fe,graphQlErrors:()=>Oe,hasMessageData:()=>Xe,isAString:()=>ke,isClientId:()=>ae,isCommonTimeAPIError:()=>je,isContentUpdateMode:()=>ve,isConversationCategory:()=>Te,isConversationUrn:()=>ce,isConvoActivationOption:()=>me,isDraftConversationUpdateObj:()=>_e,isDraftConversationUrn:()=>se,isError:()=>Pe,isErrorWithStatusCode:()=>Le,isForwardedMessageContent:()=>be,isHandleUpdateDraftMessageBaseObjWithConvoIdentifier:()=>ee,isHandleUpdateDraftMessageBaseObjWithHostRecipientUrns:()=>te,isIdentifier:()=>ue,isInputMailboxFilter:()=>we,isMDError:()=>Me,isMailboxCategoryFilter:()=>Ie,isMailboxCategoryFilterWithQuery:()=>ne,isMarkConvoReadTypes:()=>ge,isMemberParticipant:()=>de,isMessageDraftWithConversation:()=>$,isMessageDraftWithConversationDraft:()=>Z,isNextFunction:()=>pe,isOptionalSendData:()=>Ae,isSavedExistingConvoState:()=>re,isSelectorFilterOption:()=>Se,isServerConvoState:()=>ie,isServerDraftConvoState:()=>oe,isSubscriber:()=>he,isTextFragment:()=>Ee,isTrackingData:()=>Ce,isUrn:()=>le,isUrnUpdateMap:()=>ye,messageStateClientIdIs:()=>ze,optionalErrorData:()=>xe,realtimeErrors:()=>De})
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 C(r||[])
return i(a,"_invoke",{value:k(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(I([])))
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 _(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 k(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 A(e){var t=e.completion||{}
t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function I(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:w}}function w(){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(_.prototype),l(_.prototype,s,(function(){return this})),e.AsyncIterator=_,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise)
var a=new _(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=I,C.prototype={constructor:C,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(A),!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),A(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
A(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:I(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,A(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=A(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)||k(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 _(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)||k(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 k(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=k(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 A(e){var t=function(e){if("object"!=typeof e||null===e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:String(t)}const C=e=>t=>!1===e.includes(t),I=(e,t)=>n=>n.map(((n,i)=>e(n,i)?t(n):n)),w=(e,t)=>n=>{let i=!1
return n.map(((n,r)=>!i&&e(n,r)?(i=!0,t(n)):n))},x=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),N=e=>null!=e,O=e=>null==e,D=e=>t=>{const{[e]:n,...i}=t
return void 0===n?t:i},P=e=>Object.values(e)
var M,j=function(){return"undefined"!=typeof window&&window&&"node"!==window.appEnvironment},L=function(e){return Object.fromEntries(e)},U=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]
return t&&0!==t.length?[].concat(_(e),_(t.filter(C(e)))):e},F=function(e){return!e},B=function(e){return Object.entries(e)},G=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},V=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]},q=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},Y=function(e){return"object"===s(e)&&null!==e},z=function(e){return"number"==typeof e},X=function(e){return"string"==typeof e},Q=function(e,t){return e.every(t)},J=function(e,t){return t.substring(Math.max(t.length-e,0))},$=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 X(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 X(e)&&e.startsWith("urn:")},ue=function(e){return le(e)||X(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&&ke(t.originalSenderUrn)}function Ee(e){var t=e
return(null!==t&&"object"===s(t)||"function"==typeof t)&&ke(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&&ke(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)&&ke(e.attributeKind.entity.urn)))}))}function _e(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 ke(e)}))||(null!==i&&"object"===s(i)||"function"==typeof i)&&ke(i.title)||(null!==i&&"object"===s(i)||"function"==typeof i)&&((null!==i.apiResponseError&&"object"===s(i.apiResponseError)||"function"==typeof i.apiResponseError)&&(void 0===i.apiResponseError.code||ke(i.apiResponseError.code))&&(void 0===i.apiResponseError.exceptionClass||ke(i.apiResponseError.exceptionClass))&&(void 0===i.apiResponseError.message||ke(i.apiResponseError.message))&&(void 0===i.apiResponseError.stackTrace||ke(i.apiResponseError.stackTrace))&&"number"==typeof i.apiResponseError.status&&(void 0===i.apiResponseError.statusText||ke(i.apiResponseError.statusText))||i.apiResponseError instanceof Error))&&"string"==typeof n}))}function ke(e){return"string"==typeof e}function Te(e){return"string"==typeof e}function Se(e){return"FilteredMailboxState"===e||"FullMailboxState"===e}function Ae(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||ke(t.conversationTitle))&&(void 0===t.forwardedMessageUrn||ke(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||ke(t.invitationUrn))&&(void 0===t.messageRequestContextByRecipient||Array.isArray(t.messageRequestContextByRecipient)&&t.messageRequestContextByRecipient.every((function(e){return(null!==e&&"object"===s(e)||"function"==typeof e)&&ke(e.hostRecipientUrn)&&ke(e.contextEntityUrn)})))&&(void 0===t.messageSubject||ke(t.messageSubject))&&(void 0===t.quickActionContextUrn||ke(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&&ke(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)&&ke(e.externalMedia.entityUrn)&&(void 0===e.externalMedia.title||null===e.externalMedia.title||ke(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&&ke(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&&ke(e.externalMedia.previewMedia.url)))&&(void 0===e.file||null===e.file||(null!==e.file&&"object"===s(e.file)||"function"==typeof e.file)&&ke(e.file.assetUrn)&&(void 0===e.file.byteSize||null===e.file.byteSize||"number"==typeof e.file.byteSize)&&ke(e.file.mediaType)&&ke(e.file.name)&&ke(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||ke(e.messageAdRenderContent.advertiserLabel))&&(void 0===e.messageAdRenderContent.bodyTracking||null===e.messageAdRenderContent.bodyTracking||ke(e.messageAdRenderContent.bodyTracking))&&(void 0===e.messageAdRenderContent.legalTextTracking||null===e.messageAdRenderContent.legalTextTracking||ke(e.messageAdRenderContent.legalTextTracking))&&(void 0===e.messageAdRenderContent.openTracking||null===e.messageAdRenderContent.openTracking||ke(e.messageAdRenderContent.openTracking))&&(void 0===e.messageAdRenderContent.sponsoredCampaignUrn||null===e.messageAdRenderContent.sponsoredCampaignUrn||ke(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)&&ke(e.messageAdRenderContent.creativeAdsReportingInfo.sponsoredAccountUrn)&&ke(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)&&ke(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||ke(e.messageAdRenderContent.sponsoredTracking.adTrackingCode))&&(void 0===e.messageAdRenderContent.sponsoredTracking.leadTrackingCode||null===e.messageAdRenderContent.sponsoredTracking.leadTrackingCode||ke(e.messageAdRenderContent.sponsoredTracking.leadTrackingCode))&&(void 0===e.messageAdRenderContent.sponsoredTracking.version||null===e.messageAdRenderContent.sponsoredTracking.version||ke(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||ke(e.messageAdRenderContent.sponsoredTracking.sponsoredCampaignUrn))&&(void 0===e.messageAdRenderContent.sponsoredTracking.adServingUrn||null===e.messageAdRenderContent.sponsoredTracking.adServingUrn||ke(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||ke(e.messageAdRenderContent.subContent.action))&&ke(e.messageAdRenderContent.subContent.actionText)&&(void 0===e.messageAdRenderContent.subContent.actionTracking||null===e.messageAdRenderContent.subContent.actionTracking||ke(e.messageAdRenderContent.subContent.actionTracking))&&(void 0===e.messageAdRenderContent.subContent.callToActionLabel||null===e.messageAdRenderContent.subContent.callToActionLabel||ke(e.messageAdRenderContent.subContent.callToActionLabel))&&(void 0===e.messageAdRenderContent.subContent.leadGenFormOpenTracking||null===e.messageAdRenderContent.subContent.leadGenFormOpenTracking||ke(e.messageAdRenderContent.subContent.leadGenFormOpenTracking))&&(void 0===e.messageAdRenderContent.subContent.leadGenFormUrn||null===e.messageAdRenderContent.subContent.leadGenFormUrn||ke(e.messageAdRenderContent.subContent.leadGenFormUrn))&&(void 0===e.messageAdRenderContent.subContent.leadTrackingCode||null===e.messageAdRenderContent.subContent.leadTrackingCode||ke(e.messageAdRenderContent.subContent.leadTrackingCode))&&(void 0===e.messageAdRenderContent.subContent.leadTrackingParams||null===e.messageAdRenderContent.subContent.leadTrackingParams||ke(e.messageAdRenderContent.subContent.leadTrackingParams))&&(void 0===e.messageAdRenderContent.subContent.tscpUrl||null===e.messageAdRenderContent.subContent.tscpUrl||ke(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||ke(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||ke(e.messageAdRenderContent.subContent.adUnit.adUnit.attribution))&&(void 0===e.messageAdRenderContent.subContent.adUnit.adUnit.rootUrl||null===e.messageAdRenderContent.subContent.adUnit.adUnit.rootUrl||ke(e.messageAdRenderContent.subContent.adUnit.adUnit.rootUrl))&&(void 0===e.messageAdRenderContent.subContent.adUnit.adUnit.digitalmediaAsset||null===e.messageAdRenderContent.subContent.adUnit.adUnit.digitalmediaAsset||ke(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&&ke(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||ke(e.vectorImage.attribution))&&(void 0===e.vectorImage.rootUrl||null===e.vectorImage.rootUrl||ke(e.vectorImage.rootUrl))&&(void 0===e.vectorImage.digitalmediaAsset||null===e.vectorImage.digitalmediaAsset||ke(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&&ke(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||ke(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)&&ke(e.video.media)&&(void 0===e.video.nextMedia||null===e.video.nextMedia||ke(e.video.nextMedia))&&(void 0===e.video.prevMedia||null===e.video.prevMedia||ke(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)&&ke(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||ke(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)&&ke(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||ke(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)&&ke(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||ke(e.video.thumbnail.attribution))&&(void 0===e.video.thumbnail.rootUrl||null===e.video.thumbnail.rootUrl||ke(e.video.thumbnail.rootUrl))&&(void 0===e.video.thumbnail.digitalmediaAsset||null===e.video.thumbnail.digitalmediaAsset||ke(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&&ke(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||ke(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)&&ke(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||ke(e.locale.country))&&ke(e.locale.language)&&(void 0===e.locale.script||null===e.locale.script||ke(e.locale.script))&&(void 0===e.locale.variant||null===e.locale.variant||ke(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||ke(e.locale.extensions.t))&&(void 0===e.locale.extensions.u||null===e.locale.extensions.u||ke(e.locale.extensions.u))&&(void 0===e.locale.extensions.x||null===e.locale.extensions.x||ke(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)&&ke(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)&&ke(e.hostUrnData.hostUrn)&&ke(e.hostUrnData.type))&&(void 0===e.conversationAdsMessageContent||null===e.conversationAdsMessageContent||(null!==e.conversationAdsMessageContent&&"object"===s(e.conversationAdsMessageContent)||"function"==typeof e.conversationAdsMessageContent)&&ke(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||ke(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||ke(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||ke(e.clickAction.leadGenClickAction.leadGenFormUrn))&&(void 0===e.clickAction.leadGenClickAction.leadTrackingCode||null===e.clickAction.leadGenClickAction.leadTrackingCode||ke(e.clickAction.leadGenClickAction.leadTrackingCode))&&(void 0===e.clickAction.leadGenClickAction.leadTrackingParams||null===e.clickAction.leadGenClickAction.leadTrackingParams||ke(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)&&ke(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)&&ke(e.forwardedMessageContent.originalSender.entityUrn)&&(void 0===e.forwardedMessageContent.originalSender.hostIdentityUrn||null===e.forwardedMessageContent.originalSender.hostIdentityUrn||ke(e.forwardedMessageContent.originalSender.hostIdentityUrn))&&(void 0===e.forwardedMessageContent.originalSender.backendUrn||null===e.forwardedMessageContent.originalSender.backendUrn||ke(e.forwardedMessageContent.originalSender.backendUrn))&&"boolean"==typeof e.forwardedMessageContent.originalSender.showVerificationBadge&&"boolean"==typeof e.forwardedMessageContent.originalSender.showPremiumInBug&&(void 0===e.forwardedMessageContent.originalSender.memberBadgeType||null===e.forwardedMessageContent.originalSender.memberBadgeType||"EXECUTIVE_TOP_VOICE"===e.forwardedMessageContent.originalSender.memberBadgeType||"PREMIUM_PROFILE"===e.forwardedMessageContent.originalSender.memberBadgeType||"VERIFIED_PROFILE"===e.forwardedMessageContent.originalSender.memberBadgeType)&&(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||ke(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||ke(e.forwardedMessageContent.originalSender.participantType.member.profilePicture.attribution))&&(void 0===e.forwardedMessageContent.originalSender.participantType.member.profilePicture.rootUrl||null===e.forwardedMessageContent.originalSender.participantType.member.profilePicture.rootUrl||ke(e.forwardedMessageContent.originalSender.participantType.member.profilePicture.rootUrl))&&(void 0===e.forwardedMessageContent.originalSender.participantType.member.profilePicture.digitalmediaAsset||null===e.forwardedMessageContent.originalSender.participantType.member.profilePicture.digitalmediaAsset||ke(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&&ke(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||ke(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.member.profileFrameA11yContent||null===e.forwardedMessageContent.originalSender.participantType.member.profileFrameA11yContent||Ee(e.forwardedMessageContent.originalSender.participantType.member.profileFrameA11yContent)))&&(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||ke(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||ke(e.forwardedMessageContent.originalSender.participantType.organization.logo.attribution))&&(void 0===e.forwardedMessageContent.originalSender.participantType.organization.logo.rootUrl||null===e.forwardedMessageContent.originalSender.participantType.organization.logo.rootUrl||ke(e.forwardedMessageContent.originalSender.participantType.organization.logo.rootUrl))&&(void 0===e.forwardedMessageContent.originalSender.participantType.organization.logo.digitalmediaAsset||null===e.forwardedMessageContent.originalSender.participantType.organization.logo.digitalmediaAsset||ke(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&&ke(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||ke(e.forwardedMessageContent.originalSender.participantType.custom.image.attribution))&&(void 0===e.forwardedMessageContent.originalSender.participantType.custom.image.rootUrl||null===e.forwardedMessageContent.originalSender.participantType.custom.image.rootUrl||ke(e.forwardedMessageContent.originalSender.participantType.custom.image.rootUrl))&&(void 0===e.forwardedMessageContent.originalSender.participantType.custom.image.digitalmediaAsset||null===e.forwardedMessageContent.originalSender.participantType.custom.image.digitalmediaAsset||ke(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&&ke(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)&&ke(e.repliedMessageContent.originalSender.entityUrn)&&(void 0===e.repliedMessageContent.originalSender.hostIdentityUrn||null===e.repliedMessageContent.originalSender.hostIdentityUrn||ke(e.repliedMessageContent.originalSender.hostIdentityUrn))&&(void 0===e.repliedMessageContent.originalSender.backendUrn||null===e.repliedMessageContent.originalSender.backendUrn||ke(e.repliedMessageContent.originalSender.backendUrn))&&"boolean"==typeof e.repliedMessageContent.originalSender.showVerificationBadge&&"boolean"==typeof e.repliedMessageContent.originalSender.showPremiumInBug&&(void 0===e.repliedMessageContent.originalSender.memberBadgeType||null===e.repliedMessageContent.originalSender.memberBadgeType||"EXECUTIVE_TOP_VOICE"===e.repliedMessageContent.originalSender.memberBadgeType||"PREMIUM_PROFILE"===e.repliedMessageContent.originalSender.memberBadgeType||"VERIFIED_PROFILE"===e.repliedMessageContent.originalSender.memberBadgeType)&&(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||ke(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||ke(e.repliedMessageContent.originalSender.participantType.member.profilePicture.attribution))&&(void 0===e.repliedMessageContent.originalSender.participantType.member.profilePicture.rootUrl||null===e.repliedMessageContent.originalSender.participantType.member.profilePicture.rootUrl||ke(e.repliedMessageContent.originalSender.participantType.member.profilePicture.rootUrl))&&(void 0===e.repliedMessageContent.originalSender.participantType.member.profilePicture.digitalmediaAsset||null===e.repliedMessageContent.originalSender.participantType.member.profilePicture.digitalmediaAsset||ke(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&&ke(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||ke(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.member.profileFrameA11yContent||null===e.repliedMessageContent.originalSender.participantType.member.profileFrameA11yContent||Ee(e.repliedMessageContent.originalSender.participantType.member.profileFrameA11yContent)))&&(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||ke(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||ke(e.repliedMessageContent.originalSender.participantType.organization.logo.attribution))&&(void 0===e.repliedMessageContent.originalSender.participantType.organization.logo.rootUrl||null===e.repliedMessageContent.originalSender.participantType.organization.logo.rootUrl||ke(e.repliedMessageContent.originalSender.participantType.organization.logo.rootUrl))&&(void 0===e.repliedMessageContent.originalSender.participantType.organization.logo.digitalmediaAsset||null===e.repliedMessageContent.originalSender.participantType.organization.logo.digitalmediaAsset||ke(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&&ke(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||ke(e.repliedMessageContent.originalSender.participantType.custom.image.attribution))&&(void 0===e.repliedMessageContent.originalSender.participantType.custom.image.rootUrl||null===e.repliedMessageContent.originalSender.participantType.custom.image.rootUrl||ke(e.repliedMessageContent.originalSender.participantType.custom.image.rootUrl))&&(void 0===e.repliedMessageContent.originalSender.participantType.custom.image.digitalmediaAsset||null===e.repliedMessageContent.originalSender.participantType.custom.image.digitalmediaAsset||ke(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&&ke(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)&&ke(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 Ce(e){var t=e
return(null!==t&&"object"===s(t)||"function"==typeof t)&&(void 0===t.aiMessageType||ke(t.aiMessageType))&&(void 0===t.isSystemClipboardUsed||!1===t.isSystemClipboardUsed||!0===t.isSystemClipboardUsed)&&(void 0===t.messageComposeFlowTrackingId||ke(t.messageComposeFlowTrackingId))&&(void 0===t.pageInstance||(null!==t.pageInstance&&"object"===s(t.pageInstance)||"function"==typeof t.pageInstance)&&ke(t.pageInstance.pageUrn)&&ke(t.pageInstance.trackingId)||(null!==t.pageInstance&&"object"===s(t.pageInstance)||"function"==typeof t.pageInstance)&&ke(t.pageInstance.pageUrn)&&ke(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||ke(t.sourceType))&&(void 0===t.trackingId||ke(t.trackingId))}function Ie(e){var t=e
return(null!==t&&"object"===s(t)||"function"==typeof t)&&"category"===t.kind&&ke(t.category)&&(void 0===t.query||ke(t.query))}function we(e){var t=e
return Ie(t)||(null!==t&&"object"===s(t)||"function"==typeof t)&&"search"===t.kind&&Array.isArray(t.categories)&&t.categories.every((function(e){return ke(e)}))&&(void 0===t.keywords||ke(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 xe=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},RESPONSE_PARSE_TEXT_ERROR:{message:"Failed to parse the response as text",code:106}},Ne={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},MISSING_OR_INVALID_URNS:{message:"Both host recipient urns and conversation URN cannot be empty",code:637},MISSING_MESSAGE_BODY_AND_RENDER_CONTENT:{message:"Both message body and render content cannot be empty",code:638}},Oe={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}},De={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}},Pe=function(e){return e instanceof Error},Me=function(e){return e instanceof Ue},je=function(e){var t=e
return void 0!==t.status&&null!==t.status},Le=function(e){return void 0!==e.status}
M=Symbol.toPrimitive
var Ue=function(){!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)}(t,y(Error))
var e=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)}}(t)
function t(n){var i
u(this,t)
var r=n.namespace,o=n.code,a=n.msg,s=n.cause,c=n.originalStatusCodes,l=n.apiResponseError
return p(b(i=e.call(this,"<web-messenger-data> [".concat(r,"] ").concat(a," (").concat(o,") ").concat(t.getMessageFromCause(s)).trimEnd())),"namespace",void 0),p(b(i),"cause",void 0),p(b(i),"code",void 0),p(b(i),"originalStatusCodes",[]),p(b(i),"apiResponseError",void 0),i.name="MDError",i.code=o,i.namespace=r,i.cause=s,i.originalStatusCodes=null!=c?c:[],i.apiResponseError=l,Object.setPrototypeOf(b(i),(this instanceof t?this.constructor:void 0).prototype),i}return f(t,[{key:"id",get:function(){return"".concat(this.namespace,":").concat(this.code)}},{key:M,value:function(e){return"string"===e?this.toString():null}}],[{key:"fromUnknown",value:function(e,n){var i=Ne[e],r=i.code,o=i.message
return Pe(n)?new t({namespace:"client",code:r,msg:"".concat(o," - ").concat(n.message)}):new t({namespace:"client",code:r,msg:o})}},{key:"fromMDResponseError",value:function(e,n){var i=n.message||n.code,r=void 0!==i?"".concat(e," ").concat(i):e
return new t({namespace:"api",code:n.status,msg:r})}},{key:"fromClientErrorMemo",value:function(e,n){var i=Ne[e]
return new t({namespace:"client",code:i.code,msg:i.message,cause:n})}},{key:"fromClientErrorMemoWithComment",value:function(e,n,i){var r=Ne[e],o=r.code,a=r.message
return new t({namespace:"client",code:o,msg:"".concat(a," - ").concat(n),cause:i})}},{key:"fromInvalidType",value:function(e,n,i){var r=Ne.INVALID_TYPE_ARGUMENT,o=r.code,a=r.message,s="".concat(e,"() invalid argument: ").concat(n," is not a valid ").concat(i,"'")
return new t({namespace:"client",code:o,msg:"".concat(a," - ").concat(s)})}},{key:"fromApiErrorMemo",value:function(e,n){var i=Re[e],r=i.code,o=i.message
return new t({namespace:"api",code:r,msg:"".concat(o).concat(null!=n&&n.msg?" - "+n.msg:""),cause:null==n?void 0:n.cause,originalStatusCodes:null==n?void 0:n.originalStatusCodes})}},{key:"fromGraphQLErrorMemo",value:function(e,n){var i=Oe[e]
return new t({namespace:"graphql",code:i.code,msg:i.message,cause:n})}},{key:"fromRealtimeErrorMemo",value:function(e,n){var i=De[e]
return new t({namespace:"realtime",code:i.code,msg:i.message,cause:n})}},{key:"buildCommonTimeError",value:function(e){var n=De.COMMON_TIME_ERROR.message,i=e.message?"".concat(n," - ").concat(e.message):n,r=E(je(e)?[e.originalEvent,e.status]:[void 0,De.COMMON_TIME_ERROR.code],2),o=r[0]
return new t({namespace:"realtime",code:r[1],msg:i,cause:o})}},{key:"buildGraphQLPayloadError",value:function(e,n){var i,r,o=Oe.GRAPHQL_ERROR_PAYLOAD.message,a=e.message,s='"'.concat(n,'" ').concat(o," - ").concat(null!=a?a:"")
return new t({namespace:"graphql",code:null!==(i=null===(r=e.extensions)||void 0===r?void 0:r.status)&&void 0!==i?i:Oe.GRAPHQL_ERROR_PAYLOAD.code,msg: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)}}]),t}(),Fe={fullyLoaded:!1,loading:!1,nextCursor:null,syncToken:null,lastRequestId:0},Be={observers:null,realtime:null,store:null}
function Ge(e){return e&&null!==e.store&&null!==e.observers&&null!==e.realtime}var He,Ve={},qe=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)}},Ye=function(e){return function(t){return t.entityUrn===e}},ze=function(e){return function(t){return t.clientId===e}},Xe=function(e){return function(t){return void 0!==e[t.clientId]&&null!==e[t.clientId]}},Qe=function(e){return void 0!==e.conversationUrn},Je=function(e){return void 0!==e.messageUrn},$e=function(e){return Je(e)||Qe(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(_(e.renderContent),_(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(_(e),_(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=_(t.messages||[]),l=t.matchingSearches||[]
return o(o(o({},e),t),{},{participants:s.length>0?U(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?U(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 Ue.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 Ve)delete Ve[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(!O(i)){var r,o=n[e]
N(o)?(r=n[e]).push.apply(r,_(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 P(i)},Et=function(e){var t=e.participants.find((function(e){return e.includes("UNKNOWN")}))
return t&&q("messenger-data","Realtime ⚡️","New Message conversation update contains invalid participants."),t?o(o({},e),{},{participants:[]}):e},_t=function(e){return[e.filter(Qe).map((function(e){return e.conversationUrn})).sort(),e.filter(Je).map((function(e){return e.messageUrn})).sort()]},kt=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(w(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 Ue.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(_(this._conversations),[t]),this._filterPredicate)}},{key:"addItems",value:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=x(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(qe(e.entityUrn))
return t?lt(e,t):e}))
return new e([].concat(_(l),_(c)),this._filterPredicate)}},{key:"updateAny",value:function(t,n){return new e(I(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(x(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(_(t),_(n)),i)}}]),e}(),At=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 Ct(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 It="function"==typeof Symbol&&Symbol.observable||"@@observable",wt=function(){return Math.random().toString(36).substring(7).split("").join(".")},xt={INIT:"@@redux/INIT"+wt(),REPLACE:"@@redux/REPLACE"+wt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+wt()}}
function Rt(e,t,n){var i
if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Ct(0))
if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Ct(1))
return n(Rt)(e,t)}if("function"!=typeof e)throw new Error(Ct(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(Ct(3))
return o}function d(e){if("function"!=typeof e)throw new Error(Ct(4))
if(c)throw new Error(Ct(5))
var t=!0
return l(),s.push(e),function(){if(t){if(c)throw new Error(Ct(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(Ct(7))
if(void 0===e.type)throw new Error(Ct(8))
if(c)throw new Error(Ct(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:xt.INIT}),(i={dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Ct(10))
r=e,f({type:xt.REPLACE})}})[It]=function(){var e,t=d
return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(Ct(11))
function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[It]=function(){return this},e},i}function Nt(){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))}}))}var Ot,Dt=["transporterKeys"],Pt=["breadcrumb"],Mt=["$type"],jt=["requestStart"],Lt=["requestTime","viewNames","requestType","requestTag"],Ut=["requestStart"],Ft=["requestStart"],Bt=["requestTime","viewNames","requestType"]
function Gt(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 Ht(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
t%2?Gt(Object(n),!0).forEach((function(t){an(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vt(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)||Zt(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 qt(e,t,n){return t=Yt(t),function(e,t){if(t&&("object"===tn(t)||"function"==typeof t))return t
if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined")
return Kt(e)}(e,Wt()?Reflect.construct(t,n||[],Yt(e).constructor):t.apply(e,n))}function Kt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return e}function Wt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Wt=function(){return!!e})()}function Yt(e){return Yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Yt(e)}function zt(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&&Xt(e,t)}function Xt(e,t){return Xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xt(e,t)}function Qt(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 Jt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(!n){if(Array.isArray(e)||(n=Zt(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 en(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Zt(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 Zt(e,t){if(e){if("string"==typeof e)return en(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)?en(e,t):void 0}}function en(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 tn(e){return tn="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},tn(e)}function nn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rn(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,sn(i.key),i)}}function on(e,t,n){return t&&rn(e.prototype,t),n&&rn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function an(e,t,n){return(t=sn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sn(e){var t=function(e){if("object"!=tn(e)||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=tn(n))return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==tn(t)?t:String(t)}var cn,ln="unknown",un=new Uint8Array(16)
function dn(){if(!cn&&!(cn="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 cn(un)}var fn=/^(?:[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 pn(e){return"string"==typeof e&&fn.test(e)}for(var hn=[],gn=0;gn<256;++gn)hn.push((gn+256).toString(16).slice(1))
function mn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0
return(hn[e[t+0]]+hn[e[t+1]]+hn[e[t+2]]+hn[e[t+3]]+"-"+hn[e[t+4]]+hn[e[t+5]]+"-"+hn[e[t+6]]+hn[e[t+7]]+"-"+hn[e[t+8]]+hn[e[t+9]]+"-"+hn[e[t+10]]+hn[e[t+11]]+hn[e[t+12]]+hn[e[t+13]]+hn[e[t+14]]+hn[e[t+15]]).toLowerCase()}function vn(e){if(!pn(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 yn(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=vn(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 mn(s)}try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function bn(e){return 14+(e+64>>>9<<4)+1}function En(e,t){var n=(65535&e)+(65535&t)
return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function _n(e,t,n,i,r,o){return En((a=En(En(t,e),En(i,o)))<<(s=r)|a>>>32-s,n)
var a,s}function kn(e,t,n,i,r,o,a){return _n(t&n|~t&i,e,t,r,o,a)}function Tn(e,t,n,i,r,o,a){return _n(t&i|n&~i,e,t,r,o,a)}function Sn(e,t,n,i,r,o,a){return _n(t^n^i,e,t,r,o,a)}function An(e,t,n,i,r,o,a){return _n(n^(t|~i),e,t,r,o,a)}yn("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[bn(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=kn(n,i,r,o,e[a],7,-680876936),o=kn(o,n,i,r,e[a+1],12,-389564586),r=kn(r,o,n,i,e[a+2],17,606105819),i=kn(i,r,o,n,e[a+3],22,-1044525330),n=kn(n,i,r,o,e[a+4],7,-176418897),o=kn(o,n,i,r,e[a+5],12,1200080426),r=kn(r,o,n,i,e[a+6],17,-1473231341),i=kn(i,r,o,n,e[a+7],22,-45705983),n=kn(n,i,r,o,e[a+8],7,1770035416),o=kn(o,n,i,r,e[a+9],12,-1958414417),r=kn(r,o,n,i,e[a+10],17,-42063),i=kn(i,r,o,n,e[a+11],22,-1990404162),n=kn(n,i,r,o,e[a+12],7,1804603682),o=kn(o,n,i,r,e[a+13],12,-40341101),r=kn(r,o,n,i,e[a+14],17,-1502002290),n=Tn(n,i=kn(i,r,o,n,e[a+15],22,1236535329),r,o,e[a+1],5,-165796510),o=Tn(o,n,i,r,e[a+6],9,-1069501632),r=Tn(r,o,n,i,e[a+11],14,643717713),i=Tn(i,r,o,n,e[a],20,-373897302),n=Tn(n,i,r,o,e[a+5],5,-701558691),o=Tn(o,n,i,r,e[a+10],9,38016083),r=Tn(r,o,n,i,e[a+15],14,-660478335),i=Tn(i,r,o,n,e[a+4],20,-405537848),n=Tn(n,i,r,o,e[a+9],5,568446438),o=Tn(o,n,i,r,e[a+14],9,-1019803690),r=Tn(r,o,n,i,e[a+3],14,-187363961),i=Tn(i,r,o,n,e[a+8],20,1163531501),n=Tn(n,i,r,o,e[a+13],5,-1444681467),o=Tn(o,n,i,r,e[a+2],9,-51403784),r=Tn(r,o,n,i,e[a+7],14,1735328473),n=Sn(n,i=Tn(i,r,o,n,e[a+12],20,-1926607734),r,o,e[a+5],4,-378558),o=Sn(o,n,i,r,e[a+8],11,-2022574463),r=Sn(r,o,n,i,e[a+11],16,1839030562),i=Sn(i,r,o,n,e[a+14],23,-35309556),n=Sn(n,i,r,o,e[a+1],4,-1530992060),o=Sn(o,n,i,r,e[a+4],11,1272893353),r=Sn(r,o,n,i,e[a+7],16,-155497632),i=Sn(i,r,o,n,e[a+10],23,-1094730640),n=Sn(n,i,r,o,e[a+13],4,681279174),o=Sn(o,n,i,r,e[a],11,-358537222),r=Sn(r,o,n,i,e[a+3],16,-722521979),i=Sn(i,r,o,n,e[a+6],23,76029189),n=Sn(n,i,r,o,e[a+9],4,-640364487),o=Sn(o,n,i,r,e[a+12],11,-421815835),r=Sn(r,o,n,i,e[a+15],16,530742520),n=An(n,i=Sn(i,r,o,n,e[a+2],23,-995338651),r,o,e[a],6,-198630844),o=An(o,n,i,r,e[a+7],10,1126891415),r=An(r,o,n,i,e[a+14],15,-1416354905),i=An(i,r,o,n,e[a+5],21,-57434055),n=An(n,i,r,o,e[a+12],6,1700485571),o=An(o,n,i,r,e[a+3],10,-1894986606),r=An(r,o,n,i,e[a+10],15,-1051523),i=An(i,r,o,n,e[a+1],21,-2054922799),n=An(n,i,r,o,e[a+8],6,1873313359),o=An(o,n,i,r,e[a+15],10,-30611744),r=An(r,o,n,i,e[a+6],15,-1560198380),i=An(i,r,o,n,e[a+13],21,1309151649),n=An(n,i,r,o,e[a+4],6,-145523070),o=An(o,n,i,r,e[a+11],10,-1120210379),r=An(r,o,n,i,e[a+2],15,718787259),i=An(i,r,o,n,e[a+9],21,-343485551),n=En(n,s),i=En(i,c),r=En(r,l),o=En(o,u)}return[n,i,r,o]}(function(e){if(0===e.length)return[]
for(var t=8*e.length,n=new Uint32Array(bn(t)),i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32
return n}(e),8*e.length))}))
var Cn={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)}
function In(e,t,n){if(Cn.randomUUID&&!t&&!e)return Cn.randomUUID()
var i=(e=e||{}).random||(e.rng||dn)()
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 mn(i)}function wn(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 xn(e,t){return e<<t|e>>>32-t}yn("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]=xn(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 _=Math.floor(E/20),k=xn(g,5)+wn(_,m,v,y)+b+t[_]+f[E]>>>0
b=y,y=v,v=xn(m,30)>>>0,m=g,g=k}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 Rn=Uint8Array,Nn=Uint16Array,On=Uint32Array,Dn=new Rn([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]),Pn=new Rn([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]),Mn=new Rn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),jn=function(e,t){for(var n=new Nn(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1]
var r=new On(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]},Ln=jn(Dn,2),Un=Ln[0],Fn=Ln[1]
Un[28]=258,Fn[258]=28
for(var Bn=jn(Pn,0)[1],Gn=new Nn(32768),Hn=0;Hn<32768;++Hn){var Vn=(43690&Hn)>>>1|(21845&Hn)<<1
Vn=(61680&(Vn=(52428&Vn)>>>2|(13107&Vn)<<2))>>>4|(3855&Vn)<<4,Gn[Hn]=((65280&Vn)>>>8|(255&Vn)<<8)>>>1}var qn=function(e,t,n){for(var i=e.length,r=0,o=new Nn(t);r<i;++r)e[r]&&++o[e[r]-1]
var a,s=new Nn(t)
for(r=0;r<t;++r)s[r]=s[r-1]+o[r-1]<<1
if(n){a=new Nn(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[Gn[d]>>>c]=l}else for(a=new Nn(i),r=0;r<i;++r)e[r]&&(a[r]=Gn[s[e[r]-1]++]>>>15-e[r])
return a},Kn=new Rn(288)
for(Hn=0;Hn<144;++Hn)Kn[Hn]=8
for(Hn=144;Hn<256;++Hn)Kn[Hn]=9
for(Hn=256;Hn<280;++Hn)Kn[Hn]=7
for(Hn=280;Hn<288;++Hn)Kn[Hn]=8
var Wn=new Rn(32)
for(Hn=0;Hn<32;++Hn)Wn[Hn]=5
var Yn=qn(Kn,9,0),zn=qn(Wn,5,0),Xn=function(e){return(e+7)/8|0},Qn=function(e,t,n){n<<=7&t
var i=t/8|0
e[i]|=n,e[i+1]|=n>>>8},Jn=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},$n=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[oi,0]
if(1==r){var a=new Rn(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 Nn(f+1),h=Zn(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 Rn(p),h]},Zn=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},ei=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Nn(++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]},ti=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i]
return n},ni=function(e,t,n){var i=n.length,r=Xn(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)},ii=function(e,t,n,i,r,o,a,s,c,l,u){Qn(t,u++,n),++r[256]
for(var d=$n(r,15),f=d[0],p=d[1],h=$n(o,15),g=h[0],m=h[1],v=ei(f),y=v[0],b=v[1],E=ei(g),_=E[0],k=E[1],T=new Nn(19),S=0;S<y.length;++S)T[31&y[S]]++
for(S=0;S<_.length;++S)T[31&_[S]]++
for(var A=$n(T,7),C=A[0],I=A[1],w=19;w>4&&!C[Mn[w-1]];--w);var x,R,N,O,D=l+5<<3,P=ti(r,Kn)+ti(o,Wn)+a,M=ti(r,f)+ti(o,g)+a+14+3*w+ti(T,C)+(2*T[16]+3*T[17]+7*T[18])
if(D<=P&&D<=M)return ni(t,u,e.subarray(c,c+l))
if(Qn(t,u,1+(M<P)),u+=2,M<P){x=qn(f,p,0),R=f,N=qn(g,m,0),O=g
var j=qn(C,I,0)
for(Qn(t,u,b-257),Qn(t,u+5,k-1),Qn(t,u+10,w-4),u+=14,S=0;S<w;++S)Qn(t,u+3*S,C[Mn[S]])
u+=3*w
for(var L=[y,_],U=0;U<2;++U){var F=L[U]
for(S=0;S<F.length;++S){var B=31&F[S]
Qn(t,u,j[B]),u+=C[B],B>15&&(Qn(t,u,F[S]>>>5&127),u+=F[S]>>>12)}}}else x=Yn,R=Kn,N=zn,O=Wn
for(S=0;S<s;++S)if(i[S]>255){B=i[S]>>>18&31,Jn(t,u,x[B+257]),u+=R[B+257],B>7&&(Qn(t,u,i[S]>>>23&31),u+=Dn[B])
var G=31&i[S]
Jn(t,u,N[G]),u+=O[G],G>3&&(Jn(t,u,i[S]>>>5&8191),u+=Pn[G])}else Jn(t,u,x[i[S]]),u+=R[i[S]]
return Jn(t,u,x[256]),u+R[256]},ri=new On([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),oi=new Rn(0),ai=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}(),si=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},ci="undefined"!=typeof TextDecoder&&new TextDecoder
try{ci.decode(oi,{stream:!0})}catch(Wo){}function li(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function ui(){try{return li()&&"keepalive"in new Request("")}catch(e){return!1}}function di(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=ai[255&n^t[i]]^n>>>8
e=n},d:function(){return~e}}}(),i=e.length
n.p(e)
var r=function(e,t,n){return function(e,t,n,i,r,o){var a=e.length,s=new Rn(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=ni(c,l+1,e.subarray(u,d))}else{for(var f=ri[t-1],p=f>>>13,h=8191&f,g=(1<<n)-1,m=new Nn(32768),v=new Nn(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},_=new On(25e3),k=new Nn(288),T=new Nn(32),S=0,A=0,C=(u=0,0),I=0,w=0;u<a;++u){var x=E(u),R=32767&u,N=v[x]
if(m[R]=N,v[x]=R,I<=u){var O=a-u
if((S>7e3||C>24576)&&O>423){l=ii(e,c,0,_,k,T,A,C,w,u-w,l),C=S=A=0,w=u
for(var D=0;D<286;++D)k[D]=0
for(D=0;D<30;++D)T[D]=0}var P=2,M=0,j=h,L=R-N&32767
if(O>2&&x==E(u-L))for(var U=Math.min(p,O)-1,F=Math.min(32767,u),B=Math.min(258,O);L<=F&&--j&&R!=N;){if(e[u+P]==e[u+P-L]){for(var G=0;G<B&&e[u+G]==e[u+G-L];++G);if(G>P){if(P=G,M=L,G>U)break
var H=Math.min(L,G-2),V=0
for(D=0;D<H;++D){var q=u-L+D+32768&32767,K=q-m[q]+32768&32767
K>V&&(V=K,N=q)}}}L+=(R=N)-(N=m[R])+32768&32767}if(M){_[C++]=268435456|Fn[P]<<18|Bn[M]
var W=31&Fn[P],Y=31&Bn[M]
A+=Dn[W]+Pn[Y],++k[257+W],++T[Y],I=u+P,++S}else _[C++]=e[u],++k[e[u]]}}l=ii(e,c,o,_,k,T,A,C,w,u-w,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?Nn:4==e.BYTES_PER_ELEMENT?On:Rn)(n-t)
return i.set(e.subarray(t,n)),i}(s,0,i+Xn(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&&si(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),si(r,o-8,n.d()),si(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 fi(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var pi,hi="undefined"!=typeof navigator&&"sendBeacon"in navigator,gi=ui()?function(e,t,n,i){return new Promise((function(r){fetch(e,di({body:t,keepalive:!0,headers:n,compress:i})).catch((function(){return fetch(e,di({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:fi(e)})}))}))}:function(e,t,n,i){return new Promise((function(r){if(hi){var o=!1
try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void r({type:"unknown",drop:!1})}fetch(e,di({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:fi(e)})}))}))}
function mi(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 vi(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 yi(){return pi||(pi=vi("idb-queue","default")),pi}function bi(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))},mi(e.transaction)}var Ei=!1
function _i(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]:yi()
return Ei?Promise.resolve():function(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]:yi()
return n("readwrite",(function(n){return n.put(e),mi(n.count()).then((function(e){if(!(e<=t.maxNumber))return bi(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]:yi())("readwrite",(function(t){return bi(t,e)}))}(t,n)}))}(e,t,n)}function ki(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())},mi(t.transaction).then((function(){return i}))}))}function Ti(){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 Si(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 Ci(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 Ii=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
nn(this,e),an(this,"config",void 0),an(this,"compress",void 0),an(this,"throttleControl",void 0),an(this,"withStore",void 0),an(this,"disablePersistence",!1),this.config=t,this.compress=i
var r,o,a,s=t.measureIDB
s&&performance.mark(s.createStartMark),this.withStore=vi(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&&(Si((function(){return"[throttle] Run fn() at "+String(e)})),r(),a=e)},resetThrottle:function(){a=0}})}return on(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this
if(!this.disablePersistence){var n=function(){Si((function(){return"Persisting to DB "+e.url})),_i(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),Si((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,Ai((function(){return"push failed"}))}))}
this.config.useIdle?Ci(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]:yi()
return Ei=!0,e("readwrite",(function(e){return e.clear(),mi(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 ki(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:yi(),"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 ki(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:yi(),"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(){Si((function(){return"Replaying entry: shift from store"})),function(){return function(e,t){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())},mi(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]:yi())}(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 Si((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(i=e.config).onBeforeRetry)||void 0===n||n.call(i,a),gi(o,a,Ti(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 Si((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),Si((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),_i({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?Ci(t):t()}}}]),e}(),wi=function(){function e(){nn(this,e)}return on(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}(),xi=function(){function e(t,n){nn(this,e),an(this,"queue",void 0),an(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new Ii(t,n.compress):new wi}return on(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}()
an(xi,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB)
var Ri=[502,504],Ni=[429,503],Oi=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4]
nn(this,e),an(this,"url",void 0),an(this,"body",void 0),an(this,"config",void 0),an(this,"persistenceConfig",void 0),an(this,"compress",void 0),an(this,"timestamp",void 0),an(this,"isClearQueuePending",!1),an(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 on(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 gi(e.url,e.body,t,e.compress)}),n,t).finally((function(){Si((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(Ti(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(Si((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 Si((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}(),Di="internal:hide",Pi="internal:error"
function Mi(e,t,n){var i=e.get(t)
i&&i.push(n)||e.set(t,[n])}function ji(e,t,n){var i=e.get(t)
i&&i.splice(i.indexOf(n)>>>0,1)}var Li,Ui,Fi=(Li=new Map,Ui=new Map,{on:function(e,t){Mi(Li,e,t)},before:function(e,t){Mi(Ui,e,t)},off:function(e,t){ji(Li,e,t)},offBefore:function(e,t){ji(Ui,e,t)},emit:function(e,t){(Ui.get(e)||[]).concat(Li.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){Ui.clear(),Li.clear()}})
if("undefined"!=typeof document&&"undefined"!=typeof window){var Bi=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||Fi.emit(Di,e)}
document.addEventListener("visibilitychange",Bi),window.addEventListener("pagehide",Bi)}var Gi=null
if("undefined"==typeof crypto||!crypto.getRandomValues){var Hi=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto")
if(Hi){var Vi=new Uint8Array(256),qi=Vi.length
Gi={rng:function(){return qi>Vi.length-16&&(Hi.randomFillSync(Vi),qi=0),Vi.slice(qi,qi+=16)}}}}var Ki="object"===("undefined"==typeof crypto?"undefined":tn(crypto))&&"function"==typeof crypto.randomUUID?function(){return crypto.randomUUID()}:function(){return function(e){var t=mn(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)
if(!pn(t))throw TypeError("Stringified UUID is invalid")
return t}(Wi())}
function Wi(){return In(Gi,new Array(16),0)}function Yi(e){return $t(e).map((function(e){return String.fromCharCode(e)})).join("")}function zi(){return Yi(Wi())}var Xi=/^[a-zA-Z0-9/+]+[=]+$/
function Qi(e){return vn(e)}function Ji(e,t){return{pageUrn:Zi(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("")}(Wi())}}function $i(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function Zi(e){return"urn:li:page:".concat(e)}function er(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function tr(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 nr(e){var t=[]
return e.forEach((function(e){return t.push(e)})),t}function ir(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 rr(){return"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1||!li()||"undefined"==typeof Promise}function or(e,t,n,i){var r=["core-web-tracking:".concat(e)]
null==i||i.forEach((function(e){return r.push(e)})),Fi.emit(Pi,{tags:r,reason:t instanceof Error?t:new Error("".concat(e,": ").concat(t)),responseHeaders:n})}function ar(e){var t=window.structuredClone
return t?t(e):JSON.parse(JSON.stringify(e))}var sr=function(){function e(t){nn(this,e),an(this,"heap",void 0),an(this,"comparator",void 0),this.comparator=t,this.heap=[]}return on(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}(),cr=function(e){if(!ur(e))return[]
for(var t=[],n=0,i=Object.keys(e);n<i.length;n++){var r=i[n]
"default"!==r&&t.push(r)}return t},lr=function(e,t){var n={},i=[]
if(0===e.length)return[n,e]
if(0===t.length)return[n,e]
var r,o=Jt(e)
try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.transporterKeys,c=Qt(a,Dt)
if(s&&s.length>0){var l,u=Jt(s)
try{for(u.s();!(l=u.n()).done;){var d,f=l.value
t.includes(f)?(null!==(d=n[f])&&void 0!==d||(n[f]=[]),n[f].push(c)):i.push(c)}}catch(e){u.e(e)}finally{u.f()}}else i.push(c)}}catch(e){o.e(e)}finally{o.f()}return[n,i]},ur=function(e){return e&&void 0!==e&&Object.keys(e).length>0},dr=function(e,t){return(e.endsWith("/")?e:"".concat(e,"/"))+(t.startsWith("/")?t.slice(1):t)},fr="beacons"
function pr(){if("undefined"==typeof Promise||"undefined"==typeof navigator)return!1
var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.cookieEnabled,n=navigator.storage
return e&&ui()&&t&&n}var hr=function(){function e(t){nn(this,e),an(this,"host",void 0),this.host=t}return on(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&&pr()&&navigator.storage.estimate().then((function(o){if(!((o.quota||0)-(o.usage||0)>52428800))return function(e){var t=window.indexedDB.deleteDatabase(e)
return new Promise((function(e,n){t.onsuccess=function(){return e()},t.onerror=function(){return n(t.error)}}))}(fr)
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:fr,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:Ri,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:Ni,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry)
r.headerName=r.headerName||i.headerName,e=new xi(r,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(r,o,a){var s
return li()?new Oi(r,o,i,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(s=t.persistenceRetry)||void 0===s?void 0:s.statusCodes)||Ni},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){or("retry:idb",e)})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){or("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){or("retry:logout",e)}))}},{key:"sendPayload",value:function(e,t,n,i){var r,o=this.getRetryTreatment()
ui()&&"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){or("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)&&(rr()?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}):gi(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&&pr()&&"undefined"!=typeof globalThis&&!!globalThis.indexedDB}}]),e}(),gr="undefined"!=typeof window&&"undefined"!=typeof document,mr=/JSESSIONID="?([^";]+)"?/,vr="",yr=0
function br(){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?mr:i
if(!vr||Date.now()-yr>n){var o=gr&&document.cookie.match(r)
vr=o&&o[1]||"",yr=Date.now()}return vr}var Er={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"}},_r=function(){function e(t){nn(this,e),an(this,"networkTransporter",void 0),an(this,"inactive",void 0),an(this,"mpName",void 0),an(this,"endpoint",void 0),an(this,"debug",void 0),this.networkTransporter=new hr(t),this.mpName=t.appId,this.inactive=t.inactive
var n=function(e){var t,n=!1
return Er.prod.pattern.test(e)?t=Er.prod.monitorEndpoint:Er.eiValidate.pattern.test(e)?(n=!0,t=Er.eiValidate.monitorEndpoint):Er.ei.pattern.test(e)?t=Er.ei.monitorEndpoint:(t=Er.ei.monitorEndpoint,n=!0),{endpoint:t,debug:n}}(t.endpoint)
this.endpoint=n.endpoint,this.debug=n.debug}return on(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":br(),"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 kr(e){return"string"==typeof e}function Tr(e){return kr(e)?e:e.topicName||e.eventName}function Sr(e){return kr(e)?e:e.eventName}var Ar,Cr,Ir,wr=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
nn(this,e),an(this,"host",void 0),an(this,"cmoTransporter",void 0),an(this,"clientMonitoringInstanceId",zi()),an(this,"currentContext",{pageKey:ln,pageInstance:Ji(ln)}),an(this,"appState",{}),an(this,"estimatedFragmentSize",0),an(this,"fragmentSizeLimit",void 0),an(this,"activeFragmentEvent",void 0),an(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=i.cmoTransporter||new _r(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=Rr(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return on(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=Jt(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:Sr(t),eventTopic:Tr(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=Rr(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=Nr(e.trackingId))
var t=this.currentContext.pageInstance
return t.trackingId=Nr(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:zi(),memberId:0}}}}]),e}()
function xr(e){return Ar||(Ar=new wr(e)),{getCurrentInstanceId:function(){return Ar.getCurrentInstanceId()},logEventGenerated:function(e){return Ar.logEventGenerated(e)},logEventReadyToSend:function(e){Ar.logEventReadyToSend(e)},logEventSent:function(e){Ar.logEventSent(e)},logPersistedEventSent:function(e,t){Ar.logEventSent(t,e)},logNetworkResponseCode:function(e){Ar.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n
null===(n=Ar)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,i){Ar.logFailedEvent(e,t,n,i)},logPersistedFailedEvent:function(e,t,n,i,r){Ar.logFailedEvent(t,n,i,r,e)},flush:function(){Ar.flush()},destroy:function(){Ar=void 0},isDestroyed:function(){return void 0===Ar},setCurrentContext:function(e){Ar.setCurrentContext(e)},updateAppState:function(e){Ar.updateAppState(e)}}}function Rr(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 Nr(e){return Array.isArray(e)?Yi(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(Xi)}(e)?atob(e):Yi(Qi(e))}(Ir=Cr||(Cr={})).NONE="NONE",Ir.UNKNOWN_EXECUTION_ERROR="UNKNOWN_EXECUTION_ERROR",Ir.MISSING_REQUIRED_PROPERTIES="MISSING_REQUIRED_PROPERITES",Ir.STORAGE_WRITE_FAILURE="STORAGE_WRITE_FAILURE",Ir.RETRIES_EXCEEDED="RETRIES_EXCEEDED",Ir.EVENT_EVICTED_FROM_STORAGE="EVENT_EVICTED_FROM_STORAGE",Ir.STORAGE_UNAVAILABLE="STORAGE_UNAVAILABLE",Ir.SERIALIZATION_FAILURE="SERIALIZATION_FAILURE"
var Or,Dr=["PageViewEvent","SponsoredImpressionEvent","JobViewEvent"],Pr="PageViewEvent",Mr=function(){function e(t){var n,i,r,o=this
nn(this,e),an(this,"host",void 0),an(this,"queue",void 0),an(this,"preContextQueue",void 0),an(this,"debounceTimer",void 0),an(this,"unloadHandlers",void 0),an(this,"maxQueueSize",void 0),an(this,"flushDebounceTime",void 0),an(this,"trackingEventListeners",[]),an(this,"onHideHandler",(function(){o.forceFlush()})),an(this,"networkTransporter",void 0),an(this,"clientMonitoringConn",void 0),an(this,"clientGlobalSequenceNumberCounter",void 0),an(this,"clientTopicLocalSequenceNumberCountersMap",{}),an(this,"isTimerRunning",void 0),an(this,"trackingEndpoint",void 0),an(this,"isEvenBatchEnabled",void 0),this.host=t,this.queue=[],this.preContextQueue=[],this.unloadHandlers=[]
var a=t.batching,s=null!==(n=null==a?void 0:a.evenBatchEnabled)&&void 0!==n&&n,c="development"===t.environment||(null===(i=t.api)||void 0===i||null===(i=i.location)||void 0===i||null===(i=i.host)||void 0===i?void 0:i.indexOf("-ei."))>-1?"https://www.linkedin-ei.com/li/track/validate":t.endpoint||"https://www.linkedin.com/li/track"
this.trackingEndpoint=function(e,t){return/linkedin(?:-ei)?\.cn/.test(t)?e.replace(/\/\/(\S+?)\.linkedin(-ei)?\.com/,"//$1.linkedin$2.cn"):e}(c,null===(r=t.api)||void 0===r||null===(r=r.location)||void 0===r?void 0:r.host),this.maxQueueSize=a&&a.maxSize||1,this.flushDebounceTime=a&&a.debounceTime||0,Fi.on(Di,this.onHideHandler),this.networkTransporter=new hr(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=xr(t)),this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1,this.isEvenBatchEnabled=this.isLixEnabled("pemberly.tracking.even-batch")||s}return on(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(Cr.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,Cr.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(Tr(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,Fi.off(Di,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:Ji(ln),pageKey:ln}).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
ir("read").then((function(t){var n
e.clientGlobalSequenceNumberCounter=null!==(n=null==t?void 0:t.sequenceNumber)&&void 0!==n?n:0,Dr.forEach((function(n){var i
e.clientTopicLocalSequenceNumberCountersMap[n]=null!==(i=null==t?void 0:t[n])&&void 0!==i?i:0}))})).catch((function(e){or("sequence-number:idb-read",e)}))}},{key:"updateSequenceNumberToIDB",value:function(){ir("update",this.clientGlobalSequenceNumberCounter,this.clientTopicLocalSequenceNumberCountersMap).catch((function(e){or("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=er(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===Pr:e.eventName===Pr}(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:!rr()&&(ui()||"undefined"!=typeof navigator&&"sendBeacon"in navigator),isBrowserPersistentRetryEnabled:this.networkTransporter.isBrowserPersistentRetryEnabled(),clientDeviceType:"DESKTOP",timeZoneOffsetMinutes:-1*(new Date).getTimezoneOffset()},y={pageInstance:d,time:e.meta.time,version:i,server:"",service:"",guid:zi(),memberId:0}
"number"==typeof this.clientGlobalSequenceNumberCounter&&c(y,{clientGlobalSequenceNumber:this.clientGlobalSequenceNumberCounter})
var b=Tr(e.id)
if(Dr.includes(b)){var E=this.clientTopicLocalSequenceNumberCountersMap[b]
"number"==typeof E&&c(y,{clientTopicLocalSequenceNumber:E})}var _={header:c(y,e.meta.header||{}),requestHeader:c(v,e.meta.requestHeader||{})},k=e.meta.clientMonitoringInstanceId,T=e.meta.clientMonitoringInstanceEventNumber
return k&&c(_.header,{clientMonitoringInstanceId:k,clientMonitoringInstanceEventNumber:T}),c(e.body,_)}},{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=Tr(e.id)
Dr.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(Cr.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}(),jr=function(){function e(t,n){nn(this,e),this.clientBreadcrumbType=t,this.id=n}return on(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(e){e.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION",e.JOB_VIEW="JOB_VIEW",e.MEDIA="MEDIA",e.FEED_UPDATE_SERVED="FEED_UPDATE_SERVED",e.MESSAGE_SEND_CLIENT_SUCCESS="MESSAGE_SEND_CLIENT_SUCCESS",e.MESSAGE_SEND_CLIENT_FAILURE="MESSAGE_SEND_CLIENT_FAILURE",e.MESSAGE_SEND_FUNNEL="MESSAGE_SEND_FUNNEL"}(Or||(Or={}))
var Lr,Ur,Fr,Br=function(){function e(){return nn(this,e),qt(this,e,[Or.FEED_UPDATE_SERVED,zi()])}return zt(e,jr),on(e)}(),Gr=function(){function e(){var t
return nn(this,e),an(Kt(t=qt(this,e,[Or.UNKNOWN,zi()])),"content",void 0),an(Kt(t),"featureBreadcrumbType",void 0),t}return zt(e,jr),on(e)}()
function Hr(e,t){var n,i,r
switch(t){case"proto.sdui.breadcrumbs.feed.FeedUpdateServedBreadcrumb":r=(new Br).builder
break
case"proto.sdui.tracking.TrackingBreadcrumb":r=(new Gr).builder
var o=(new TextDecoder).decode(null===(n=new Uint8Array(null==e||null===(i=e.content)||void 0===i?void 0:i.data))||void 0===n?void 0:n.buffer)
try{for(var a=null==e?void 0:e.breadcrumbType,s={content:JSON.parse(o),breadcrumbType:a},c=0,l=Object.entries(s);c<l.length;c++){var u=Vt(l[c],2),d=u[0],f=u[1]
ur(f)&&r[d](f)}return r.build()}catch(e){throw new Error("Error parsing breadcrumb content: ".concat(e))}break
default:throw new Error("breadcrumb class ".concat(t," needs to be defined in core-web-tracking."))}if(!r)throw new Error("breadcrumb class ".concat(t," needs to be defined in core-web-tracking."))
for(var p in e){var h=e[p]
null!=h&&r[p](h)}return r.build()}function Vr(e){var t,n=new Set,i=[],r=Jt(e)
try{for(r.s();!(t=r.n()).done;){var o=t.value,a="".concat(o.contentTrackingId,"-").concat(o.topicName)
n.has(a)||(n.add(a),i.push(o))}}catch(e){r.e(e)}finally{r.f()}var s=function(e){var t,n=[],i=[],r=Jt(e)
try{for(r.s();!(t=r.n()).done;){var o=t.value,a=o.breadcrumb,s=Qt(o,Pt)
if(i.push(s),a){var c=a.$type,l=Hr(Qt(a,Mt),c)
n.push(l)}}}catch(e){r.e(e)}finally{r.f()}return{extractedBreadcrumbs:n,trackingScopesWithoutBreadcrumbs:i}}(i)
return{breadcrumbs:s.extractedBreadcrumbs,trackingScopes:s.trackingScopesWithoutBreadcrumbs}}function qr(e){return"retryConfig"in e.host}function Kr(e){return"location"in e.api}on((function e(t,n,i,r,o,a){var s,c,l,u
if(nn(this,e),an(this,"transporter",void 0),an(this,"delegate",void 0),an(this,"viewSpecs",void 0),an(this,"transportConfig",void 0),an(this,"dynamicTransporterSupportLixKey",void 0),an(this,"domain",void 0),an(this,"currentContext",void 0),an(this,"appState",void 0),an(this,"referrer",void 0),an(this,"previousAppContext",void 0),an(this,"customTransporters",void 0),an(this,"clientMonitoringConn",void 0),an(this,"dynamicTransporterSupportEnabled",void 0),this.transporter=t,this.delegate=n,this.viewSpecs=i,this.transportConfig=r,this.dynamicTransporterSupportLixKey=o,this.domain=a,this.appState={},this.customTransporters={},this.dynamicTransporterSupportEnabled=!!o&&function(e){return!(!e||"control"===e)}(null===(s=(c=t.host).__getLixTreatment)||void 0===s?void 0:s.call(c,o)),this.transportConfig=r,n&&n.customTransporterHosts)for(var d in n.customTransporterHosts)if(Object.prototype.hasOwnProperty.call(n.customTransporterHosts,d)){var f=this.transporter.host.api.assign({},this.transporter.host)
this.customTransporters[d]=new Mr(this.transporter.host.api.assign(f,n.customTransporterHosts[d]))}if(this.dynamicTransporterSupportEnabled&&ur(r))for(var p=0,h=Object.entries(r);p<h.length;p++){var g,m=Vt(h[p],2),v=m[0],y=m[1]
y=Ht(Ht({},y),{},{endpoint:"".concat(dr(a||"",(null===(g=y)||void 0===g?void 0:g.endpoint)||""))})
var b=this.transporter.host.api.assign({},this.transporter.host)
this.customTransporters[v]=new Mr(this.transporter.host.api.assign(b,y))}"enabled"===(null===(l=(u=t.host).__getLixTreatment)||void 0===l?void 0:l.call(u,"pemberly.tracking.monitoring"))&&t.host.clientMonitoringConfig&&!t.host.inactive&&Kr(t.host)&&(this.clientMonitoringConn=xr(t.host)),ur(i)&&(this.viewSpecs=i)}),[{key:"host",get:function(){return this.transporter.host}},{key:"addBeforeHandlerToHideEvent",value:function(e){Fi.before(Di,e)}},{key:"removeBeforeHandlerToHideEvent",value:function(e){Fi.offBefore(Di,e)}},{key:"checkAndEnablePersistentRetry",value:function(){qr(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush()
var e=qr(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null
return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return er(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,function(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}}(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=er(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(er(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=$i(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:"getViewTrackingScope",value:function(e){for(var t=[],n=e;n instanceof Element&&"body"!==n.tagName.toLowerCase();){var i=n.closest("[data-view-tracking-scope]")
if(i){var r=i.getAttribute("data-view-tracking-scope")
if(r)try{var o=JSON.parse(r)
o&&o.length&&t.push.apply(t,$t(o))}catch(e){or("getViewTrackingScope","Error parsing trackingScope ".concat(r))}}n=null==i?void 0:i.parentElement}return t}},{key:"fireInteraction",value:function(e){var t,n=e.manualFireReason,i=e.interactionType,r=e.targetView,o=e.viewHierarchy,a=void 0===o?[]:o,s=e.viewTrackingScope,c=void 0===s?[]:s,l=e.verticalPosition,u=e.horizontalPosition,d=e.controlUrn,f=void 0===d?"":d,p=e.actionType,h=e.contentTrackingId,g=void 0===h?void 0:h,m=e.clientBreadcrumbs,v=void 0===m?[]:m,y=e.isShadowEvent,b=e.cooloffToken,E=r?this.getViewHierarchy(r):[],_=E.length>0?E:a
0!==_.length&&null!==(t=this.viewSpecs)&&void 0!==t&&t.some((function(e){return e.viewName==_[0]}))||console.warn("No viewHierarchy provided or found from element.")
var k=c.length>0?c:this.getViewTrackingScope(r)
if(this.dynamicTransporterSupportEnabled){var T=cr(this.transportConfig),S=Vt(lr(k,T),2),A=S[0],C=S[1],I="GenericActionEvent",w={verticalPosition:l,horizontalPosition:u,controlUrn:f,interactionType:i,actionType:p,contentTrackingId:""===g?void 0:g,manualFireReason:n,cooloffToken:b}
if(ur(A)){for(var x=0,R=Object.entries(A);x<R.length;x++){var N=Vt(R[x],2),O=N[0],D=Vr(N[1]),P=D.breadcrumbs,M=D.trackingScopes
this.fireEvent(I,Ht(Ht({},w),{},{trackingScopeHierarchy:{entries:M}}),{header:{viewHierarchy:_},transporterKey:O},P,y)}if(0===C.length)return Promise.resolve(!0)}var j=Vr(C),L=j.breadcrumbs,U=j.trackingScopes
return this.fireEvent(I,{verticalPosition:l,horizontalPosition:u,controlUrn:f,interactionType:i,actionType:p,contentTrackingId:""===g?void 0:g,manualFireReason:n,cooloffToken:b,trackingScopeHierarchy:{entries:U}},{header:{viewHierarchy:_}},[].concat($t(v),$t(L)),y)}var F=Vr(k),B=F.breadcrumbs,G=F.trackingScopes
return this.fireEvent("GenericActionEvent",{verticalPosition:l,horizontalPosition:u,controlUrn:f||"",interactionType:i,actionType:p,contentTrackingId:""===g?void 0:g,manualFireReason:n,cooloffToken:b,trackingScopeHierarchy:{entries:G}},{header:{viewHierarchy:_}},[].concat($t(v),$t(B)),y)}},{key:"fireImpression",value:function(e,t){var n,i=e.manualFireReason,r=e.targetView,o=e.viewHierarchy,a=void 0===o?[]:o,s=e.viewTrackingScope,c=void 0===s?[]:s,l=e.viewDurationInMilliseconds,u=void 0===l?0:l,d=e.contentViewFraction,f=void 0===d?1:d,p=e.width,h=void 0===p?-1:p,g=e.height,m=void 0===g?-1:g,v=e.verticalPosition,y=e.horizontalPosition,b=e.impressionTime,E=e.contentTrackingId,_=e.clientBreadcrumbs,k=void 0===_?[]:_,T=e.isShadowEvent,S=e.cooloffToken,A=r?this.getViewHierarchy(r):[],C=A.length>0?A:a
0!==C.length&&null!==(n=this.viewSpecs)&&void 0!==n&&n.some((function(e){return e.viewName==C[0]}))||console.warn("No viewHierarchy provided or found from element.")
var I=c.length>0?c:this.getViewTrackingScope(r)
if(this.dynamicTransporterSupportEnabled){var w=cr(this.transportConfig),x=Vt(lr(I,w),2),R=x[0],N=x[1],O="GenericImpressionEvent",D={viewDurationInMilliseconds:u,contentViewFraction:f,width:h,height:m,verticalPosition:v,horizontalPosition:y,impressionTime:b,contentTrackingId:""===E?void 0:E,manualFireReason:i,cooloffToken:S},P={header:{viewHierarchy:C},context:null==t?void 0:t.context}
if(ur(R)){for(var M=0,j=Object.entries(R);M<j.length;M++){var L=Vt(j[M],2),U=L[0],F=Vr(L[1]),B=F.breadcrumbs,G=F.trackingScopes
this.fireEvent(O,Ht(Ht({},D),{},{trackingScopeHierarchy:{entries:G}}),Ht(Ht({},P),{},{transporterKey:U}),B,T)}if(0===N.length)return Promise.resolve(!0)}var H=Vr(N),V=H.breadcrumbs,q=H.trackingScopes
return this.fireEvent(O,{viewDurationInMilliseconds:u,contentViewFraction:f,width:h,height:m,verticalPosition:v,horizontalPosition:y,impressionTime:b,contentTrackingId:""===E?void 0:E,manualFireReason:i,cooloffToken:S,trackingScopeHierarchy:{entries:q}},P,[].concat($t(k),$t(V)),T)}var K=Vr(I),W=K.breadcrumbs,Y=K.trackingScopes,z={header:{viewHierarchy:C},context:null==t?void 0:t.context}
return this.fireEvent("GenericImpressionEvent",{viewDurationInMilliseconds:u,contentViewFraction:f,width:h,height:m,verticalPosition:v,horizontalPosition:y,impressionTime:b,contentTrackingId:""===E?void 0:E,manualFireReason:i,cooloffToken:S,trackingScopeHierarchy:{entries:Y}},z,[].concat($t(k),$t(W)),T)}},{key:"fireEvent",value:function(e,t,n,i,r){var o=this
if(!t){var a=Tr(e),s=void 0===t?"undefined":null===t?"null":tn(t),c='Firing tracking event "'.concat(a,'" with invalid body, you fired "').concat(s,'"')
if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(a)
this.clientMonitoringConn.logFailedEvent(Cr.MISSING_REQUIRED_PROPERTIES,e,c,l)}throw new Error(c)}var u=i||[]
if(u.length>0){var d=(u=u.map((function(e){return o.transformBreadcrumb(e)}))).map((function(e){return jr.toPointer(e)}))
this.host.api.assign(t,{clientBreadcrumbPointers:d})}var f=u.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,u,r):this.generateEnvelope(e,t,n,r)
return this.fireEnvelope(f)}},{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:"transformBreadcrumb",value:function(e){try{if(ur(e.content))return Ht({id:e.id,clientBreadcrumbType:e.breadcrumbType},e.content)}catch(e){console.error("Error transforming breadcrumb:",e)}return e}},{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(kr(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=Tr(r.id),c="Could not find custom transporter: ".concat(o)
if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(s)
this.clientMonitoringConn.logFailedEvent(Cr.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 Ji(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),Fi.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 $i((t||this.currentContext||{pageKey:ln}).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 t.fromExternalApp||(this.referrer="https://www.linkedin.com"),{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,i,r,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c={directive:a.directive,transporterKey:a.transporterKey,context:a.context||this.currentContext&&er(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},a.requestHeader||{},Kr(this.host)?{path:"".concat(this.host.api.location.pathname).concat(this.host.api.location.search),referer:"enabled"===(null===(n=(i=this.host).__getLixTreatment)||void 0===n?void 0:n.call(i,"pai.referrer.fix.subsquent"))?this.referrer?this.referrer:null===(r=this.host.api.document)||void 0===r?void 0:r.referrer:null===(o=this.host.api.document)||void 0===o?void 0:o.referrer}:{}),header:this.host.api.assign({applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:this.appState.clientApplicationInstance,isShadowEvent:s},a.header||{})}
return{body:"function"==typeof t?t:function(){return t},id:e,meta:c}}}]),function(e){e.INTERNAL_OTEL_JET_EVENT="internal:otel:jet",e.INTERNAL_OTEL_RESOURCE="internal:otel:resource",e.INTERNAL_OTEL_LARGEST_CONTENTFUL_PAINT="internal:otel:lcp",e.INTERNAL_OTEL_CUMULATIVE_LAYOUT_SHIFT="internal:otel:cls",e.INTERNAL_OTEL_FIRST_INPUT_DELAY="internal:otel:fid"}(Lr||(Lr={})),on((function e(t,n){var i,r,o=this
nn(this,e),an(this,"core",void 0),an(this,"protocol",void 0),an(this,"throttleKeySet",new Set),an(this,"config",void 0),an(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},Fi.on(Pi,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=r.sduiScreenId,u=r.componentKey,d=e.message,f=e.name,p=e.stack,h=void 0===p?"":p,g=e.fileName,m=void 0===g?"":g,v=e.lineNumber,y=void 0===v?0:v,b=e.columnNumber,E=void 0===b?0:b,_=this.core.host,k=_.appId,T=_.appVersion,S=_.service,A=_.serviceInstance,C=_.treeID,I=void 0===C?"":C,w=_.api,x=w.Promise,R=w.location,N=R.host,O=R.pathname,D=R.search,P=R.hash,M=void 0===P?"":P
if(this.config.useOTel&&!i.includes("otel-origin-jet-tag")&&Fi.emit(Lr.INTERNAL_OTEL_JET_EVENT,{error:e,tags:i,callTreeId:a,responseHeaders:c}),c){t={}
var j=new Map
Object.keys(c).forEach((function(e){j.set(e.toLowerCase(),c[e])})),t.callTreeId=j.get("x-li-uuid"),t.microsoftEdgeReference=j.get("x-msedge-ref"),t.pointOfPresenceId=j.get("x-li-pop"),t.fabric=j.get("x-li-fabric")}var L=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:k,e:{c:E,l:y,m:d,s:h,t:f,u:m},h:M,l:n.protocol,o:N,p:O,pageKey:e.pageKey,q:D,service:S,serviceInstance:A,serviceVersion:T,t:i,trackingID:e.pageInstance.trackingId,treeID:I,callTreeId:a,responseTraceHeaders:t,sduiScreenId:l,componentKey:u}}))}
if(this.config.throttleTime<0)return L()
var U=(f+d+h+i.join("")+a).split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0)
return this.throttleKeySet.has(U)?x.resolve(!1):(this.throttleKeySet.add(U),setTimeout((function(){return n.throttleKeySet.delete(U)}),this.config.throttleTime),L())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),Fi.off(Pi,this.reportTransporterError)}}]),function(e){e.RealUserMonitoringEvent="RealUserMonitoringEvent",e.FeaturePerformanceMeasurementEvent="FeaturePerformanceMeasurementEvent",e.ClientPerfMetricsEvent="ClientPerfMetricsEvent",e.WEB_UI_FRAMEWORK="web-ui-framework",e.APP_ID="app-id",e.APP_VERSION="app-version",e.IS_SINGLE_PAGE_APP="is-single-page-app",e.IS_APP_RENDER_FAILED="is-app-render-failed",e.APP_RENDER_MODE="app-render-mode",e.USER_TIMING_MARK_ENABLED="user-timing-mark-enabled",e.USER_TIMING_MEASURE_ENABLED="user-timing-measure-enabled",e.BEACON_SOURCE="beacon-source",e.BEACON_TIMEOUT="beacon-timeout",e.ENABLE_RS_TIMING="enable-rs-timing",e.ENABLE_CDN_TRACKING="enable-cdn-tracking",e.ASYNC_PLUGINS_TIMEOUT="async-plugins-timeout",e.ENABLE_MEMORY_MEASUREMENT="enable-memory-measurement",e.PAGE_KEY_PREFIX="pageKeyPrefix",e.ENABLE_T_3="enable-tracking-3",e.ENABLE_PEM_T_3="enable-pem-tracking-3",e.ENABLE_OTEL="enable-otel"}(Ur||(Ur={})),function(e){e.PageLoadStartEvent="PageLoadStartEvent",e.PageLoadEndEvent="PageLoadEndEvent",e.ResourceLoadEvent="ResourceLoadEvent",e.CustomMeasureEvent="CustomMeasureEvent",e.ViewLoadEvent="ViewLoadEvent",e.PEMTracer="PEMTracer"}(Fr||(Fr={}))
var Wr,Yr,zr,Xr,Qr,Jr,$r,Zr=(an(an(an(an(an(an(an(an(an(an(Ot={},"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),an(an(an(an(an(an(Ot,"beacon-timeout",3e4),"enable-memory-measurement",!1),"pageKeyPrefix",""),"enable-pem-tracking-3",!1),"enable-tracking-3",!1),"enable-otel",!1)),eo=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"],to={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"},no={"http/0.9":"HTTP0_9","http/1.0":"HTTP1_0","http/1.1":"HTTP1_1",h2:"HTTP2"},io="pageLoadId does not exist",ro="rum token passed is invalid",oo=new RegExp(/batch-(\d+)$|enabled$/),ao=function(){function e(){nn(this,e),an(this,"userTimingEntries",[]),an(this,"longTasks",[]),an(this,"resourceTimingEntries",[]),an(this,"cdnData",void 0)}return on(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(co),cdnData:this.cdnData}}}]),e}(),so=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"]
function co(e){return so.reduce((function(t,n){var i=e[n]
return void 0!==i&&(t[n]=i),t}),{})}function lo(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}
Jr=Object.assign(Object.assign({},n),t),$r=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(Jr.root,n)
var i=uo(e,Qr.All,(function(){return uo(e,Qr.Two,(function(){return uo(e,Qr.One)}))}))
if(i){var r=_o(ko(i,e))
return r.length>0&&(i=r[0]),po(i)}throw new Error("Selector was not found.")}function uo(e,t,n){for(var i=null,r=[],o=e,a=0,s=function(){var e=yo(function(e){var t=e.getAttribute("id")
return t&&Jr.idName(t)?{name:"#"+wo(t,{isIdentifier:!0}),penalty:0}:null}(o))||yo.apply(void 0,$t(function(e){return Array.from(e.attributes).filter((function(e){return Jr.attr(e.name,e.value)})).map((function(e){return{name:"["+wo(e.name,{isIdentifier:!0})+'="'+wo(e.value)+'"]',penalty:.5}}))}(o)))||yo.apply(void 0,$t(function(e){return Array.from(e.classList).filter(Jr.className).map((function(e){return{name:"."+wo(e,{isIdentifier:!0}),penalty:1}}))}(o)))||yo(function(e){var t=e.tagName.toLowerCase()
return Jr.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===Qr.All)s&&(e=e.concat(e.filter(vo).map((function(e){return mo(e,s)}))))
else if(t===Qr.Two)e=e.slice(0,1),s&&(e=e.concat(e.filter(vo).map((function(e){return mo(e,s)}))))
else if(t===Qr.One){var c=Vt(e=e.slice(0,1),1)[0]
s&&vo(c)&&(e=[mo(c,s)])}var l,u=Jt(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>=Jr.seedMinLength&&(i=fo(r,n)))return 1
o=o.parentElement,a++};o&&o!==Jr.root.parentElement&&!s(););return i||(i=fo(r,n)),i}function fo(e,t){var n=_o(Eo(e))
if(n.length>Jr.threshold)return t?t():null
var i,r=Jt(n)
try{for(r.s();!(i=r.n()).done;){var o=i.value
if(go(o))return o}}catch(e){r.e(e)}finally{r.f()}return null}function po(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 ho(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function go(e){switch($r.querySelectorAll(po(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(po(e)))
case 1:return!0
default:return!1}}function mo(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function vo(e){return"html"!==e.name&&!e.name.startsWith("#")}function yo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
var i=t.filter(bo)
return i.length>0?i:null}function bo(e){return null!=e}function Eo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]
if(e.length>0){var n,i=[],r=Jt(e[0])
try{for(r.s();!(n=r.n()).done;){var o=n.value
i=i.concat(Eo(e.slice(1,e.length),t.concat(o)))}}catch(e){r.e(e)}finally{r.f()}return i}return[t]}function _o(e){return Array.from(e).sort((function(e,t){return ho(e)-ho(t)}))}function ko(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>Jr.optimizedMinLength)for(var r=1;r<e.length-1;r++){if(n.counter>Jr.maxNumberOfTries)return i
n.counter+=1
var o=$t(e)
o.splice(r,1)
var a=po(o)
if(n.visited.has(a))return i
go(o)&&To(o,t)&&(i.push(o),n.visited.set(a,!0),i=i.concat(ko(o,t,n)))}return i}function To(e,t){return $r.querySelector(po(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"}(Wr||(Wr={})),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"}(Yr||(Yr={})),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"}(zr||(zr={})),function(e){e.DEFAULT="DEFAULT",e.INITIAL="INITIAL",e.SUBSEQUENT="SUBSEQUENT",e.PAGINATED="PAGINATED"}(Xr||(Xr={})),function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(Qr||(Qr={}))
var So=/[ -,\.\/:-@\[-\^`\{-~]/,Ao=/[ -,\.\/:-@\[\]\^`\{-~]/,Co=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Io={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1}
function wo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},Io),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?So.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&&Ao.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(Co,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!r&&n.wrap?i+a+i:a}var xo,Ro=[{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 No(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 Oo(e){var t=e||performance
return Math.round(t.now())}function Do(e){if(!e)return"null"
if(e.nodeType===Node.ELEMENT_NODE)try{return lo(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=Do(e.parentElement||void 0)
return"".concat(t," > nodeType(").concat(e.nodeType,")")}function Po(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 Mo(e){var t=[]
return e.forEach((function(e){return t.push(e)})),t}var jo,Lo,Uo=function(){function e(t){nn(this,e),an(this,"hostApis",void 0),an(this,"hostnameProperties",void 0),an(this,"usedHostnames",void 0),an(this,"abortController",void 0),an(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 on(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this
return nr(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=tr(nr(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,(xo=xo||i.createElement("a")).href=n,xo.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}(),Fo=["Microsoft Internet Explorer","Netscape","swfobject","hasFlashPlayerVersion","addFlashDivNode","setAttribute","swfContainerId","loadSwfAndDetectFonts","embedSWF","9.0.0","always","false","experimental-webgl","webrtc","webRtcKey","appNameKey","javascripts","javascriptsKey","product","hardwareConcurrencyKey","numOfCores","timezoneOffset","incognito","colorDepth","pixelDepth","pixelRatio","screenResolution","screenOrientation","availableScreenResolution","availableScreenResolutionKey","sessionStorage","sessionStorageKey","indexedDb","openDatabaseKey","networkInfo","audio","audioKey","automation","mimetyps","jsFontsKey","fontsFlash","function","Options not provided","components","excludes","key","alias","getData","dataLimit","number","errors","Exceeded current data limit:"," Data length for:","data","latency","acq_time","allFeatures","allFeaturesCollectionAt","useRequestIdleCallBack","requestIdleCallback","_cookieRegEx","cookie","bcookie","substring","; path=","; secure=true","domain=","expires=","toUTCString","getDomain","=([^;]*)","location","DNA","HUMAN","querySelector","getElementById","firstChild","nodeValue","parentNode","https://www.linkedin-ei.com","POST","Content-Type","str2ab","apply","importPk","crypto","subtle","importKey","RSA-OAEP","SHA-256","wrap","wrapKey","raw","encode","wrapErrorResult","error","string","generateKey","encrypt","decrypt","encryptWithKeyIds","resolve","Error: ec2","MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtw/ArJ9dD6hi+jrX6ZpRqwk2Mm5v3EElQGhzSngYHAm7gvdcAEj6sbU4HhrXs3+TZamDV+RHwL+rDT+TtD8ZJBaVbA+wRDdIezECZT+WNZw2SMkjAsX0OynAT/wowGfE72zMhYc4byGfQmtAQrUL2iJ19KIJj0aZ4m41kvnBHMZbwO52+ceyQhqAzB7bn6U//QHJySHgjaOsgkpPnuxZUz6ly+FrKveQp+bNIfh8R5GO2ABRoeBL4c3jip/UjmmnfYE3xdzubni1a6WQ6YTTb6ZEJSgQTp/Rc+o/btcKkTIqDcXvGbO0iAxev8EXV7GtkRguqgfwaURAaps9Nes5NwIDAQAB","encryptWithKey","encryptWithKeyFromDifferentSources","publicKey","publicKeyVersion","uuidv4","getRandomValues","generateSha256HashOrDefault","digest","from","_compress","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=","charAt","===","call","pow","battery","signals","FPDataCookie","flash/compiled/FontList.swf","https://ponf.linkedin.com/pixel/tracking.png","/apfc/collect","n/a","err","enabled","globalIntegration","readyState","checkConfigAndInitializeAllIntegration","load","parse","stringify","settings-iframe","setting-headline","initialize","addEventListener","isDfCollectionRequired","samplingTimeWindowInMillis","getItem","df_ts","enableOnDemandMode","pauseApfc","checkConfigAndInitializeGlobalIntegration","deleteItem","deleteDfCookieIfRequired","checkConfigAndInitializeThirdPartyIntegration","addDfCookieIfRequired","apfcTypes","includes","dnaIntegrationEnabled","dnaIntegrationCompleted","intializeGlobalIntegration","fpDataCookie","humanIntegrationEnabled","humanIntegrationCompleted","intializeDfpIntegration","setTime","apfcDfPK","reentry","placePonfBeacon","pageInstance","isProd","getFeatures","apfcDfPKV","apfcDf","telemetryCollectPath","populateFpDataCookie","isSyncEnabledWithHeaders","apfcDfH","compressToBase64","DNA_ENCRYPTED","browserId","getBcookie","fb6bbd47-fa7c-4264-b4e9-b25948407586","ee078acd-0704-4344-9e5b-6b84b480c30a","https://merchantpool1.linkedin.com/mdt.js?session_id=","&instanceId=","script","dfpIframeScript","dfp","doFpt","getElementsByTagName","head","Invalid session_id: ","dfpIntegrationCompleted","initializeHumanIntegration","treeId","PXgoH0hfKu","https://li.protechts.net/index.html?ts=","&r_id=","iframe","src","sandbox","allow-same-origin allow-scripts","aria-hidden","true","0px","border","absolute","scraping","triggerApfc","reentryGlobalIntegration","triggerDnaApfcEvent","reentryGlobalIntegrationOnDemand","extractDataCookie","li_apfcdc",":::","trackingId","sessionUrn","collectionType","object",".linkedin.com","startsWith","pemberly","isEmpty","getUrlFromNoscriptBeacon","div_bc","noscript","parseFromString","text/html","ponfUrl","reqid","class","searchParams","get","img","undefined","triggerDnaApfcEventOnDemand","x64Multiply","x64LeftShift","x64Xor","x64Fmix","x64hash128","length","charCodeAt","x64Rotl","x64Add","00000000","toString","slice","each","prototype","forEach","hasOwnProperty","map","RTCPeerConnection","webkitRTCPeerConnection","mozRTCPeerConnection","stun:stun.l.google.com:19302","localDescription","sdp","split","indexOf","a=candidate:","c=IN","keys","onicecandidate","candidate","complete","createDataChannel","then","setLocalDescription","createOffer","automationKey","getBrowserNameAndVersion","Chrome","webdriver","Firefox","document","documentElement","getAttribute","__webdriver_script_fn","Selenium","_phantom","PhantomJS","NOT_AVAILABLE","getIPs","name","enumerateDevicesKey","isEnumerateDevicesSupported","mediaDevices","enumerateDevices","gid","kind","label","catch","userAgent","match","OfflineAudioContext","webkitOfflineAudioContext","createOscillator","type","triangle","frequency","setValueAtTime","currentTime","threshold","knee","ratio","release","connect","start","audioTimeout","timeout","oncomplete","getChannelData","reduce","abs","disconnect","UserAgent","languageKey","language","browserLanguage","systemLanguage","colorDepthKey","screen","deviceMemoryKey"," GB","pixelDepthKey","pixelRatioKey","devicePixelRatio","screenResolutionKey","screenOrientationKey","detectScreenOrientation","EXCLUDED","Enabled","orientation","Orientation","mozOrientation","getScreenResolution","width","height","getAvailableScreenResolution","availHeight","availWidth","getTimezoneOffset","timezone","Intl","DateTimeFormat","hasSessionStorage","localStorageKey","hasLocalStorage","indexedDbKey","hasIndexedDB","addBehaviorKey","body","addBehavior","openDatabase","cpuClassKey","getNavigatorCpuClass","oscpuKey","appVersionKey","appVersion","appCodeNameKey","appCodeName","now","platformKey","getNavigatorPlatform","productKey","productSubKey","productSub","vendorKey","vendor","vendorSubKey","vendorSub","doNotTrackKey","getDoNotTrack","incognitoKey","RequestFileSystem","webkitRequestFileSystem","estimate","storage","quota","safariIncognito","localStorage","setItem","removeItem","test","open","onerror","onsuccess","indexedDB","MSPointerEvent","IE ","join","replace","Opera","appName","splice","canvasKey","isCanvasSupported","getCanvasFp","webglKey","isWebGlSupported","getWebglFp","scripts","locationKey","host","hostname","href","pathname","port","protocol","signalsKey","getAdBlock","getHasLiedLanguages","getHasLiedResolution","getHasLiedOs","getHasLiedBrowser","flashFontsKey","hasSwfObjectLoaded","hasMinFlashInstalled","fonts","swfPath","missing options.fonts.swfPath","swf object not loaded","monospace","sans-serif","serif","Andale Mono","Arial Black","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans MS","Consolas","Courier","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Fax","LUCIDA GRANDE","Lucida Sans Typewriter","Lucida Sans Unicode","Monaco","Monotype Corsiva","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Script","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Wingdings","Wingdings 2","extendedJsFonts","concat","userDefinedFonts","filter","createElement","div","span","style","position","left","-9999px","fontSize","72px","fontStyle","fontWeight","normal","letterSpacing","lineBreak","auto","lineHeight","textTransform","textAlign","textDecoration","none","textShadow","whiteSpace","wordBreak","wordSpacing","textContent","mmmmmmmmmmlli","fontFamily","offsetWidth","offsetHeight","appendChild","push","removeChild","fontsHash","lists","mimetypesComponent","mimeTypes","suffixes","description","pluginsComponent","isIE","plugins","pluginsShouldBeSorted","sort","ActiveXObject","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","PDF.PdfCtrl","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1","getRegularPlugins","sortPluginsFor","batteryKey","getBattery","level","charging","chargingTime","dischargingTime","networkInfoKey","downlink","downlinkMax","effectiveType","rtt","saveData","touchSupportKey","getTouchSupport","getHardwareConcurrency","ERROR","hardwareConcurrency","cpuClass","platform","doNotTrack","msDoNotTrack","maxTouchPoints","msMaxTouchPoints","createEvent","ontouchstart","display","getContext","rect","canvasWinding","isPointInPath","textBaseline","alphabetic","fillStyle","#f60","dontUseFakeFontInCanvas","font","11pt Arial","11pt no-real-font-123","fillText","rgba(102, 204, 0, 0.2)","18pt Arial","Cwm fjordbank glyphs vext quiz, 😃","globalCompositeOperation","multiply","rgb(255,0,255)","fill","rgb(0,255,255)","beginPath","closePath","rgb(255,255,0)","arc","evenodd","toDataURL","canvasHash","clearColor","enable","DEPTH_TEST","depthFunc","LEQUAL","clear","COLOR_BUFFER_BIT","DEPTH_BUFFER_BIT","createBuffer","bindBuffer","ARRAY_BUFFER","bufferData","STATIC_DRAW","itemSize","createShader","compileShader","FRAGMENT_SHADER","shaderSource","precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}","attachShader","linkProgram","vertexPosAttrib","attrVertex","offsetUniform","uniformOffset","enableVertexAttribArray","vertexAttribPointer","FLOAT","uniform2f","drawArrays","numItems","webglHash","canvas","webgl","vendorAndRenderer","getWebglVendorAndRenderer","extensions","getSupportedExtensions","webgl aliased line width range","getParameter","webgl aliased point size range","ALIASED_POINT_SIZE_RANGE","webgl alpha bits","ALPHA_BITS","webgl antialiasing","getContextAttributes","yes","webgl blue bits","BLUE_BITS","webgl depth bits","DEPTH_BITS","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","webgl max combined texture image units","MAX_COMBINED_TEXTURE_IMAGE_UNITS","MAX_CUBE_MAP_TEXTURE_SIZE","MAX_FRAGMENT_UNIFORM_VECTORS","webgl max render buffer size","MAX_RENDERBUFFER_SIZE","webgl max texture size","webgl max varying vectors","webgl max vertex attribs","MAX_VERTEX_TEXTURE_IMAGE_UNITS","webgl max vertex uniform vectors","MAX_VERTEX_UNIFORM_VECTORS","MAX_VIEWPORT_DIMS","webgl red bits","RED_BITS","webgl renderer","RENDERER","webgl shading language version","SHADING_LANGUAGE_VERSION","webgl stencil bits","webgl vendor","VENDOR","webgl version","VERSION","WEBGL_debug_renderer_info","webgl unmasked vendor","UNMASKED_VENDOR_WEBGL","webgl unmasked renderer","UNMASKED_RENDERER_WEBGL","getShaderPrecisionFormat","INT","VERTEX","FRAGMENT","HIGH","LOW","precision","rangeMin","rangeMax","_SHADER","precision ","toLowerCase","getWebglCanvas","innerHTML","className","getElementsByClassName","adsbox","languages","substr","oscpu","windows phone","win","Windows","Android","linux","cros","Linux","iphone","ipad","iOS","mac","Other","Windows Phone","Mac","android","pike","ipod","firefox","opera","opr","safari","Safari","trident","Internet Explorer","20030107","toSource"]
jo=Fo,Lo=230,function(e){for(;--e;)jo.push(jo.shift())}(++Lo)
var Bo=function(e,t){return Fo[e-=0]}
!function(){var e=function(){function e(){nn(this,e)}return on(e,null,[{key:"x64Add",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:Bo("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[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}},{key:"x64Rotl",value:function(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<<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:Bo("0x1"),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:Bo("0x2"),value:function(e,t){return[e[0]^t[0],e[1]^t[1]]}},{key:Bo("0x3"),value:function(t){return t=e[Bo("0x2")](t,[0,t[0]>>>1]),t=e[Bo("0x0")](t,[4283543511,3981806797]),t=e[Bo("0x2")](t,[0,t[0]>>>1]),t=e.x64Multiply(t,[3301882366,444984403]),e[Bo("0x2")](t,[0,t[0]>>>1])}},{key:Bo("0x4"),value:function(t,n){n=n||0
var i,r=(t=t||"").length%16,o=t[Bo("0x5")]-r,a=[0,n],s=[0,n],c=[0,0],l=[0,0],u=[2277735313,289559509],d=[1291169091,658871167]
for(i=0;i<o;i+=16)c=[255&t[Bo("0x6")](i+4)|(255&t[Bo("0x6")](i+5))<<8|(255&t[Bo("0x6")](i+6))<<16|(255&t[Bo("0x6")](i+7))<<24,255&t.charCodeAt(i)|(255&t.charCodeAt(i+1))<<8|(255&t[Bo("0x6")](i+2))<<16|(255&t[Bo("0x6")](i+3))<<24],l=[255&t.charCodeAt(i+12)|(255&t.charCodeAt(i+13))<<8|(255&t[Bo("0x6")](i+14))<<16|(255&t[Bo("0x6")](i+15))<<24,255&t[Bo("0x6")](i+8)|(255&t[Bo("0x6")](i+9))<<8|(255&t[Bo("0x6")](i+10))<<16|(255&t.charCodeAt(i+11))<<24],c=e[Bo("0x0")](c,u),c=e[Bo("0x7")](c,31),c=e[Bo("0x0")](c,d),a=e[Bo("0x2")](a,c),a=e[Bo("0x7")](a,27),a=e.x64Add(a,s),a=e[Bo("0x8")](e.x64Multiply(a,[0,5]),[0,1390208809]),l=e[Bo("0x0")](l,d),l=e.x64Rotl(l,33),l=e[Bo("0x0")](l,u),s=e[Bo("0x2")](s,l),s=e[Bo("0x7")](s,31),s=e.x64Add(s,a),s=e[Bo("0x8")](e[Bo("0x0")](s,[0,5]),[0,944331445])
switch(c=[0,0],l=[0,0],r){case 15:l=e[Bo("0x2")](l,e[Bo("0x1")]([0,t[Bo("0x6")](i+14)],48))
case 14:l=e.x64Xor(l,e[Bo("0x1")]([0,t[Bo("0x6")](i+13)],40))
case 13:l=e[Bo("0x2")](l,e[Bo("0x1")]([0,t.charCodeAt(i+12)],32))
case 12:l=e[Bo("0x2")](l,e.x64LeftShift([0,t[Bo("0x6")](i+11)],24))
case 11:l=e[Bo("0x2")](l,e[Bo("0x1")]([0,t[Bo("0x6")](i+10)],16))
case 10:l=e[Bo("0x2")](l,e[Bo("0x1")]([0,t.charCodeAt(i+9)],8))
case 9:l=e.x64Xor(l,[0,t[Bo("0x6")](i+8)]),l=e[Bo("0x0")](l,d),l=e.x64Rotl(l,33),l=e.x64Multiply(l,u),s=e[Bo("0x2")](s,l)
case 8:c=e[Bo("0x2")](c,e[Bo("0x1")]([0,t[Bo("0x6")](i+7)],56))
case 7:c=e[Bo("0x2")](c,e[Bo("0x1")]([0,t[Bo("0x6")](i+6)],48))
case 6:c=e.x64Xor(c,e[Bo("0x1")]([0,t.charCodeAt(i+5)],40))
case 5:c=e[Bo("0x2")](c,e.x64LeftShift([0,t[Bo("0x6")](i+4)],32))
case 4:c=e[Bo("0x2")](c,e[Bo("0x1")]([0,t.charCodeAt(i+3)],24))
case 3:c=e.x64Xor(c,e[Bo("0x1")]([0,t[Bo("0x6")](i+2)],16))
case 2:c=e[Bo("0x2")](c,e.x64LeftShift([0,t[Bo("0x6")](i+1)],8))
case 1:c=e[Bo("0x2")](c,[0,t[Bo("0x6")](i)]),c=e[Bo("0x0")](c,u),c=e[Bo("0x7")](c,31),c=e[Bo("0x0")](c,d),a=e[Bo("0x2")](a,c)}return a=e[Bo("0x2")](a,[0,t[Bo("0x5")]]),s=e[Bo("0x2")](s,[0,t[Bo("0x5")]]),a=e[Bo("0x8")](a,s),s=e[Bo("0x8")](s,a),a=e.x64Fmix(a),s=e.x64Fmix(s),a=e[Bo("0x8")](a,s),s=e[Bo("0x8")](s,a),(Bo("0x9")+(a[0]>>>0)[Bo("0xa")](16))[Bo("0xb")](-8)+(Bo("0x9")+(a[1]>>>0)[Bo("0xa")](16))[Bo("0xb")](-8)+(Bo("0x9")+(s[0]>>>0).toString(16))[Bo("0xb")](-8)+(Bo("0x9")+(s[1]>>>0)[Bo("0xa")](16))[Bo("0xb")](-8)}}]),e}(),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,A,C,I,w,x,R,N,O,D,P,M){function j(){nn(this,j),this.components=[{key:Bo("0x1f3"),getData:j[Bo("0x1f4")],shouldEnforceDataLimit:!0,dataLimit:1e3},{key:Bo("0x35"),getData:j.enumerateDevicesKey,shouldEnforceDataLimit:!0,dataLimit:22e3},{key:"appName",getData:j[Bo("0x1f5")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"tsSeed",getData:j.seedKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"appVersion",getData:j[Bo("0x7b")],shouldEnforceDataLimit:!0,dataLimit:300},{key:Bo("0x7e"),getData:j[Bo("0x7d")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"location",getData:j.locationKey,shouldEnforceDataLimit:!0,dataLimit:1500},{key:Bo("0x1f6"),getData:j[Bo("0x1f7")],shouldEnforceDataLimit:!0,dataLimit:2200},{key:"platform",getData:j[Bo("0x80")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x1f8"),getData:j[Bo("0x82")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x84"),getData:j[Bo("0x83")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x13c"),getData:j[Bo("0x78")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x1cb"),getData:j[Bo("0x7a")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x13b"),getData:j[Bo("0x1f9")],alias:Bo("0x1fa"),shouldEnforceDataLimit:!0,dataLimit:100},{key:"deviceMemory",getData:j[Bo("0x58")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x86"),getData:j.vendorKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"vendorSub",getData:j[Bo("0x87")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x53"),getData:j[Bo("0x52")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x1fb"),getData:j.timezoneOffset,shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x6c"),getData:j[Bo("0x6c")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x3a"),getData:j[Bo("0x51")],shouldEnforceDataLimit:!0,dataLimit:1500},{key:Bo("0x26"),getData:j[Bo("0x26")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x13e"),getData:j.doNotTrackKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x1fc"),getData:j.incognitoKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x1fd"),getData:j.colorDepthKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x1fe"),getData:j[Bo("0x5a")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x1ff"),getData:j[Bo("0x5b")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x200"),getData:j.screenResolutionKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x201"),getData:j.screenOrientationKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x202"),getData:j[Bo("0x203")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x204"),getData:j[Bo("0x205")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"localStorage",getData:j[Bo("0x70")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x206"),getData:j[Bo("0x72")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x76"),getData:j[Bo("0x74")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x77"),getData:j[Bo("0x207")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x181"),getData:j[Bo("0xa1")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x182"),getData:j[Bo("0xa4")],shouldEnforceDataLimit:!0,dataLimit:6e3},{key:"signals",getData:j[Bo("0xaf")],shouldEnforceDataLimit:!0,dataLimit:150},{key:"touchSupport",getData:j.touchSupportKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x208"),getData:j[Bo("0x131")],shouldEnforceDataLimit:!0,dataLimit:150},{key:"battery",getData:j[Bo("0x12b")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x209"),getData:j[Bo("0x20a")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x20b"),getData:j[Bo("0x23")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Bo("0x117"),getData:j[Bo("0x115")],shouldEnforceDataLimit:!0,dataLimit:17e3},{key:Bo("0x20c"),getData:j.mimetypesComponent,shouldEnforceDataLimit:!0,dataLimit:27e3},{key:Bo("0xb8"),getData:j[Bo("0x20d")],shouldEnforceDataLimit:!0,dataLimit:1500},{key:Bo("0x20e"),getData:j.flashFontsKey,shouldEnforceDataLimit:!0,dataLimit:100}]}return on(j,[{key:"getFeatures",value:function(e,t){if(Bo("0x20f")==tn(e)){if(!t)return e({error:Bo("0x210")})
var n={data:{latency:{acq_time:{}},errors:{}}},i=Date[Bo("0x7f")](),r={},o=0,a=0
this[Bo("0x211")].forEach((function(s){if(!t[Bo("0x212")][s[Bo("0x213")]]){var c=s.key
void 0!==s.alias&&null!==s[Bo("0x214")]&&s[Bo("0x214")].length>0&&(c=s[Bo("0x214")]),o++
var l=function(){r[c]=Date.now()
try{s[Bo("0x215")]((function(t){if(!1!==s.shouldEnforceDataLimit){var l=s[Bo("0xf")](Bo("0x216"))&&Bo("0x217")==tn(s[Bo("0x216")])?s[Bo("0x216")]:1e3,u=JSON.stringify(t).length
u>l&&(n.data[Bo("0x218")][c]=Bo("0x219")+l+Bo("0x21a")+c+" was found to be:"+u,t={})}n.data[c]=t,n[Bo("0x21b")][Bo("0x21c")].acq_time[c]=Date[Bo("0x7f")]()-r[c],++a>=o&&(n[Bo("0x21b")].latency[Bo("0x21d")][Bo("0x21e")]=Date[Bo("0x7f")]()-i,n.data[Bo("0x21f")]=Date[Bo("0x7f")](),e(n[Bo("0x21b")],!0))}),t)}catch(e){n[Bo("0x21b")][Bo("0x218")][c]=String(e)}}
Bo("0x20f")==tn(window.requestIdleCallback)&&!1!==t[Bo("0x220")]?window[Bo("0x221")](l):l()}})),n.data[Bo("0x21c")][Bo("0x21d")][Bo("0x21e")]=Date.now()-i,e(n.data,!1)}}}],[{key:t,value:function(e,t){if(Array[Bo("0xd")][Bo("0xe")]&&e[Bo("0xe")]===Array[Bo("0xd")][Bo("0xe")])e[Bo("0xe")](t)
else if(e.length===+e[Bo("0x5")])for(var n=0,i=e.length;n<i;n++)t(e[n],n,e)
else for(var r in e)e[Bo("0xf")](r)&&t(e[r],r,e)}},{key:n,value:function(e,t){var n=[]
return null==e?n:Array[Bo("0xd")][Bo("0x10")]&&e[Bo("0x10")]===Array[Bo("0xd")][Bo("0x10")]?e.map(t):(j[Bo("0xc")](e,(function(e,i,r){n.push(t(e,i,r))})),n)}},{key:"getIPs",value:function(e,t){var n={},i=new(window[Bo("0x11")]||window[Bo("0x12")]||window[Bo("0x13")]||window.msRTCPeerConnection)({iceServers:[{urls:Bo("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})/.exec(e)[1]
n[t]=!0}catch(e){}},o=!1,a=function(){if(!0!==o){o=!0
var e=i[Bo("0x15")]
null!==e&&e[Bo("0x16")][Bo("0x17")]("\n").forEach((function(e){0!==e[Bo("0x18")](Bo("0x19"))&&0!==e[Bo("0x18")](Bo("0x1a"))||r(e)})),t(Object[Bo("0x1b")](n))}}
i[Bo("0x1c")]=function(e){e[Bo("0x1d")]&&r(e[Bo("0x1d")][Bo("0x1d")])},i.onicegatheringstatechange=function(e){Bo("0x1e")===i.iceGatheringState&&a()},i[Bo("0x1f")]("bl")
try{i.createOffer()[Bo("0x20")]((function(e){i[Bo("0x21")](e)}))}catch(e){i[Bo("0x22")]((function(e){i[Bo("0x21")](e,(function(){}),(function(){}))}),(function(){}))}setTimeout((function(){a()}),2e3)}},{key:i,value:function(e,t){if(j.getHasLiedBrowser())e("undetected, fake browser")
else{var n=j[Bo("0x24")]()[Bo("0x17")](" ")[0]
Bo("0x25")!==n||!0!==navigator[Bo("0x26")]?Bo("0x27")===n&&window[Bo("0x28")][Bo("0x29")][Bo("0x2a")](Bo("0x26"))||"_Selenium_IDE_Recorder"in window||Bo("0x2b")in document?e(Bo("0x2c")):window.callPhantom||window[Bo("0x2d")]?e(Bo("0x2e")):e(t[Bo("0x2f")]):e(Bo("0x2c"))}}},{key:"webRtcKey",value:function(e,t){try{j[Bo("0x30")](t,(function(t){e({ips:t})}))}catch(t){e({exception:{name:t[Bo("0x31")],message:t.message}})}}},{key:r,value:function(e,t){if(!j[Bo("0x33")]())return e(t[Bo("0x2f")])
navigator[Bo("0x34")][Bo("0x35")]()[Bo("0x20")]((function(t){e(t[Bo("0x10")]((function(e){var t={}
return t.id=e.deviceId,t[Bo("0x36")]=e.groupId,t.kind=e[Bo("0x37")],t[Bo("0x38")]=e.label,t})))}))[Bo("0x39")]((function(t){e(t)}))}},{key:"isEnumerateDevicesSupported",value:function(){return navigator[Bo("0x34")]&&navigator[Bo("0x34")][Bo("0x35")]}},{key:"audioKey",value:function(e,t){var n=t.audio
if(n.excludeIOS11&&navigator[Bo("0x3a")][Bo("0x3b")](/OS 11.+Version\/11.+Safari/))return e(t.EXCLUDED)
var i=window[Bo("0x3c")]||window[Bo("0x3d")]
if(null==i)return e(t[Bo("0x2f")])
var r=new i(1,44100,44100),o=r[Bo("0x3e")]()
o[Bo("0x3f")]=Bo("0x40"),o[Bo("0x41")][Bo("0x42")](1e4,r[Bo("0x43")])
var a=r.createDynamicsCompressor()
j.each([[Bo("0x44"),-50],[Bo("0x45"),40],[Bo("0x46"),12],["reduction",-20],["attack",0],[Bo("0x47"),.25]],(function(e){void 0!==a[e[0]]&&"function"==typeof a[e[0]].setValueAtTime&&a[e[0]][Bo("0x42")](e[1],r.currentTime)})),o[Bo("0x48")](a),a[Bo("0x48")](r.destination),o[Bo("0x49")](0),r.startRendering()
var s=setTimeout((function(){return r.oncomplete=function(){},r=null,e(Bo("0x4a"))}),n[Bo("0x4b")])
r[Bo("0x4c")]=function(t){var n
try{clearTimeout(s),n=t.renderedBuffer[Bo("0x4d")](0)[Bo("0xb")](4500,5e3)[Bo("0x4e")]((function(e,t){return e+Math[Bo("0x4f")](t)}),0).toString(),o[Bo("0x50")](),a[Bo("0x50")]()}catch(t){return void e(t)}e(n)}}},{key:o,value:function(e){e(navigator.userAgent)}},{key:a,value:function(e,t){e(void 0===navigator.webdriver||null===navigator.webdriver?t.NOT_AVAILABLE:navigator[Bo("0x26")])}},{key:s,value:function(e,t){e(navigator[Bo("0x53")]||navigator.userLanguage||navigator[Bo("0x54")]||navigator[Bo("0x55")]||t[Bo("0x2f")])}},{key:c,value:function(e,t){e(window[Bo("0x57")].colorDepth||t.NOT_AVAILABLE)}},{key:l,value:function(e,t){var n=navigator.deviceMemory||t.NOT_AVAILABLE
n!==t.NOT_AVAILABLE&&(n+=Bo("0x59")),e(n)}},{key:u,value:function(e,t){e(window[Bo("0x57")].pixelDepth||t[Bo("0x2f")])}},{key:d,value:function(e,t){e(window[Bo("0x5c")]||t[Bo("0x2f")])}},{key:f,value:function(e,t){e(j.getScreenResolution(t))}},{key:p,value:function(e,t){if(t.screen[Bo("0x5f")]){var n={}
n[Bo("0x61")]=void 0!==screen[Bo("0x62")],n[Bo("0x63")]=screen.msOrientation||screen[Bo("0x64")]||(screen[Bo("0x62")]||{}).type,e(n)}else e(t[Bo("0x60")])}},{key:h,value:function(){return{w:window[Bo("0x57")][Bo("0x66")],h:window[Bo("0x57")][Bo("0x67")]}}},{key:"availableScreenResolutionKey",value:function(e,t){e(j.getAvailableScreenResolution(t))}},{key:g,value:function(e){return window.screen.availWidth&&window[Bo("0x57")][Bo("0x69")]?{w:window[Bo("0x57")][Bo("0x6a")],h:window[Bo("0x57")][Bo("0x69")]}:e.NOT_AVAILABLE}},{key:"timezoneOffset",value:function(e){e((new Date)[Bo("0x6b")]()/60)}},{key:m,value:function(e,t){window[Bo("0x6d")]&&window[Bo("0x6d")][Bo("0x6e")]?e((new(window[Bo("0x6d")][Bo("0x6e")])).resolvedOptions().timeZone):e(t.NOT_AVAILABLE)}},{key:"sessionStorageKey",value:function(e,t){e(j[Bo("0x6f")](t))}},{key:v,value:function(e,t){e(j[Bo("0x71")](t))}},{key:y,value:function(e,t){e(j[Bo("0x73")](t))}},{key:b,value:function(e){e(!(!document[Bo("0x75")]||!document[Bo("0x75")][Bo("0x76")]))}},{key:"openDatabaseKey",value:function(e){e(!!window[Bo("0x77")])}},{key:E,value:function(e,t){e(j[Bo("0x79")](t))}},{key:_,value:function(e,t){e(navigator.oscpu||t[Bo("0x2f")])}},{key:"appNameKey",value:function(e,t){e(navigator.appName||t[Bo("0x2f")])}},{key:k,value:function(e,t){e(navigator[Bo("0x7c")]||t[Bo("0x2f")])}},{key:T,value:function(e,t){e(navigator[Bo("0x7e")]||t.NOT_AVAILABLE)}},{key:"seedKey",value:function(e,t){e(Date[Bo("0x7f")]())}},{key:S,value:function(e,t){e(j[Bo("0x81")](t))}},{key:A,value:function(e,t){e(navigator.product||t[Bo("0x2f")])}},{key:C,value:function(e,t){e(navigator[Bo("0x84")]||t[Bo("0x2f")])}},{key:I,value:function(e,t){e(navigator[Bo("0x86")]||t[Bo("0x2f")])}},{key:w,value:function(e,t){e(navigator[Bo("0x88")]||t[Bo("0x2f")])}},{key:x,value:function(e,t){e(j[Bo("0x8a")](t))}},{key:R,value:function(e,t){var n=j.getBrowserNameAndVersion()[Bo("0x17")](" "),i=n[0],r=n[1],o=t.NOT_AVAILABLE
if(Bo("0x25")===i)if(parseInt(r)<=74){var a=window[Bo("0x8c")]||window[Bo("0x8d")]
a?a(window.TEMPORARY,100,(function(t){e(!1)}),(function(t){e(!0)})):e(o)}else"storage"in navigator&&Bo("0x8e")in navigator[Bo("0x8f")]?navigator[Bo("0x8f")][Bo("0x8e")]()[Bo("0x20")]((function(t){var n=t[Bo("0x90")]
e(o=n<125829120)})):e(o)
else if("Safari"===i){if(o=!1,window[Bo("0x91")])o=!0
else{try{window[Bo("0x77")](null,null,null,null)}catch(e){o=!0}try{window[Bo("0x92")][Bo("0x93")]("test",1)}catch(e){o=!0}}void 0===o&&(o=!1,window[Bo("0x92")][Bo("0x94")](Bo("0x95"))),e(o)}else if(Bo("0x27")===i){var s=indexedDB[Bo("0x96")](Bo("0x95"))
s[Bo("0x97")]=function(){e(!0)},s[Bo("0x98")]=function(){e(!1)}}else e("IE"===i||"EDGE"===i?!window[Bo("0x99")]&&(window.PointerEvent||window[Bo("0x9a")]):o)}},{key:N,value:function(){var e,t=navigator[Bo("0x3a")],n=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[]
return/trident/i.test(n[1])?(e=/\brv[ :]+(\d+)/g.exec(t)||[],Bo("0x9b")+(e[1]||"")):"Chrome"===n[1]&&null!=(e=t.match(/\b(OPR|Edge)\/(\d+)/))?e[Bo("0xb")](1)[Bo("0x9c")](" ")[Bo("0x9d")]("OPR",Bo("0x9e")):(n=n[2]?[n[1],n[2]]:[navigator[Bo("0x9f")],navigator[Bo("0x7c")],"-?"],null!=(e=t.match(/version\/(\d+)/i))&&n[Bo("0xa0")](1,1,e[1]),n[Bo("0x9c")](" "))}},{key:O,value:function(e,t){j[Bo("0xa2")]()?e(j[Bo("0xa3")](t)):e(t.NOT_AVAILABLE)}},{key:D,value:function(e,t){j[Bo("0xa5")]()?e(j[Bo("0xa6")](t)):e(t.NOT_AVAILABLE)}},{key:"javascriptsKey",value:function(e,t){if(void 0===document[Bo("0xa7")]||null===document[Bo("0xa7")])return e(t[Bo("0x2f")])
e([])}},{key:P,value:function(e,t){e({hash:location.hash||t.NOT_AVAILABLE,host:location[Bo("0xa9")]||t[Bo("0x2f")],hostname:location[Bo("0xaa")]||t[Bo("0x2f")],href:location[Bo("0xab")]||t.NOT_AVAILABLE,origin:location.origin||t[Bo("0x2f")],pathname:location[Bo("0xac")]||t[Bo("0x2f")],port:location[Bo("0xad")]||t[Bo("0x2f")],protocol:location[Bo("0xae")]||t.NOT_AVAILABLE})}},{key:M,value:function(e){e(j.getSignals())}},{key:"getSignals",value:function(){var e={adBlockInstalled:function(){return j[Bo("0xb0")]()},liedLanguages:function(){return j[Bo("0xb1")]()},liedResolution:function(){return j[Bo("0xb2")]()},liedOS:function(){return j[Bo("0xb3")]()},liedBrowser:function(){return j[Bo("0xb4")]()}},t={}
for(var n in e)if(e[Bo("0xf")](n)){var i=e[n]
t[n]=i(n)}return t}},{key:Bo("0xb5"),value:function(e,t){return j[Bo("0xb6")]()?j[Bo("0xb7")]()?t[Bo("0xb8")][Bo("0xb9")]?void j.loadSwfAndDetectFonts((function(t){e(t)}),t):e(Bo("0xba")):e("flash not installed"):e(Bo("0xbb"))}},{key:"jsFontsKey",value:function(t,n){var i=[Bo("0xbc"),Bo("0xbd"),Bo("0xbe")],r=[Bo("0xbf"),"Arial",Bo("0xc0"),"Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold",Bo("0xc1"),Bo("0xc2"),Bo("0xc3"),Bo("0xc4"),Bo("0xc5"),"Cambria",Bo("0xc6"),Bo("0xc7"),Bo("0xc8"),Bo("0xc9"),"Comic Sans",Bo("0xca"),Bo("0xcb"),Bo("0xcc"),"Courier New","Geneva",Bo("0xcd"),Bo("0xce"),Bo("0xcf"),Bo("0xd0"),Bo("0xd1"),Bo("0xd2"),"Lucida Console",Bo("0xd3"),Bo("0xd4"),"Lucida Handwriting","Lucida Sans",Bo("0xd5"),Bo("0xd6"),"Microsoft Sans Serif",Bo("0xd7"),Bo("0xd8"),"MS Gothic",Bo("0xd9"),Bo("0xda"),Bo("0xdb"),"MS Sans Serif",Bo("0xdc"),Bo("0xdd"),Bo("0xde"),Bo("0xdf"),Bo("0xe0"),"Segoe Print",Bo("0xe1"),"Segoe UI",Bo("0xe2"),Bo("0xe3"),Bo("0xe4"),Bo("0xe5"),"Times",Bo("0xe6"),"Times New Roman PS",Bo("0xe7"),Bo("0xe8"),Bo("0xe9"),Bo("0xea"),"Wingdings 3"]
void 0!==n[Bo("0xb8")]&&void 0!==n[Bo("0xb8")][Bo("0xeb")]&&(r=r[Bo("0xec")](n[Bo("0xb8")].extendedJsFonts)),void 0!==n.fonts&&void 0!==n.fonts[Bo("0xed")]&&(r=r[Bo("0xec")](n[Bo("0xb8")][Bo("0xed")])),r=r[Bo("0xee")]((function(e,t){return r[Bo("0x18")](e)===t}))
var o=document.getElementsByTagName(Bo("0x75"))[0],a=document[Bo("0xef")](Bo("0xf0")),s=document[Bo("0xef")](Bo("0xf0")),c={},l={},u=function(){var e=document[Bo("0xef")](Bo("0xf1"))
return e[Bo("0xf2")][Bo("0xf3")]="absolute",e.style[Bo("0xf4")]=Bo("0xf5"),e[Bo("0xf2")][Bo("0xf6")]=Bo("0xf7"),e[Bo("0xf2")][Bo("0xf8")]="normal",e.style[Bo("0xf9")]=Bo("0xfa"),e.style[Bo("0xfb")]=Bo("0xfa"),e[Bo("0xf2")][Bo("0xfc")]=Bo("0xfd"),e[Bo("0xf2")][Bo("0xfe")]="normal",e[Bo("0xf2")][Bo("0xff")]="none",e[Bo("0xf2")][Bo("0x100")]=Bo("0xf4"),e[Bo("0xf2")][Bo("0x101")]=Bo("0x102"),e[Bo("0xf2")][Bo("0x103")]="none",e.style[Bo("0x104")]="normal",e.style[Bo("0x105")]=Bo("0xfa"),e.style[Bo("0x106")]=Bo("0xfa"),e[Bo("0x107")]=Bo("0x108"),e},d=function(e,t){var n=u()
return n[Bo("0xf2")][Bo("0x109")]="'"+e+"',"+t,n},f=function(e){for(var t=!1,n=0;n<i[Bo("0x5")];n++)if(t=e[n][Bo("0x10a")]!==c[i[n]]||e[n][Bo("0x10b")]!==l[i[n]])return t
return t},p=function(){for(var e=[],t=0,n=i[Bo("0x5")];t<n;t++){var r=u()
r[Bo("0xf2")].fontFamily=i[t],a[Bo("0x10c")](r),e[Bo("0x10d")](r)}return e}()
o[Bo("0x10c")](a)
for(var h=0,g=i[Bo("0x5")];h<g;h++)c[i[h]]=p[h].offsetWidth,l[i[h]]=p[h][Bo("0x10b")]
var m=function(){for(var e={},t=0,n=r[Bo("0x5")];t<n;t++){for(var o=[],a=0,c=i.length;a<c;a++){var l=d(r[t],i[a])
s.appendChild(l),o.push(l)}e[r[t]]=o}return e}()
o[Bo("0x10c")](s)
for(var v=[],y=0,b=r[Bo("0x5")];y<b;y++)f(m[r[y]])&&v[Bo("0x10d")](r[y])
o[Bo("0x10e")](s),o[Bo("0x10e")](a)
var E={}
E[Bo("0x10f")]=e[Bo("0x4")](v.join(),23),n[Bo("0xb8")].hashOnly||(E[Bo("0x110")]=v),t(E)}},{key:Bo("0x111"),value:function(e,t){if(void 0!==navigator[Bo("0x112")]&&null!==navigator.mimeTypes){for(var n=navigator[Bo("0x112")],i=[],r=0;r<n[Bo("0x5")];r++){var o={}
o[Bo("0x3f")]=n[r][Bo("0x3f")],o[Bo("0x113")]=n[r][Bo("0x113")],o[Bo("0x114")]=n[r][Bo("0x114")],i[Bo("0x10d")](o)}e(i)}else e(t.NOT_AVAILABLE)}},{key:Bo("0x115"),value:function(e,t){j[Bo("0x116")]()?t[Bo("0x117")].excludeIE?e(t[Bo("0x60")]):e(j.getIEPlugins(t)):e(j.getRegularPlugins(t))}},{key:"getRegularPlugins",value:function(e){if(void 0===navigator[Bo("0x117")]||null===navigator[Bo("0x117")])return e.NOT_AVAILABLE
for(var t=[],n=0,i=navigator.plugins[Bo("0x5")];n<i;n++)navigator[Bo("0x117")][n]&&t[Bo("0x10d")](navigator[Bo("0x117")][n])
return t.length>0&&j[Bo("0x118")](e)&&(t=t[Bo("0x119")]((function(e,t){return e[Bo("0x31")]>t[Bo("0x31")]?1:e.name<t.name?-1:0}))),j[Bo("0x10")](t,(function(e){var t=j.map(e,(function(e){return[e[Bo("0x3f")],e.suffixes]}))
return[e[Bo("0x31")],e[Bo("0x114")],t]}))}},{key:"getIEPlugins",value:function(e){var t=[]
if(Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,Bo("0x11a"))||Bo("0x11a")in window){var n=["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl",Bo("0x11b"),Bo("0x11c"),"Msxml2.DOMDocument","Msxml2.XMLHTTP",Bo("0x11d"),"QuickTime.QuickTime",Bo("0x11e"),"RealPlayer",Bo("0x11f"),"RealVideo.RealVideo(tm) ActiveX Control (32-bit)",Bo("0x120"),Bo("0x121"),Bo("0x122"),Bo("0x123"),Bo("0x124"),Bo("0x125"),Bo("0x126"),Bo("0x127"),Bo("0x128")]
t=j.map(n,(function(t){try{return new(window[Bo("0x11a")])(t),t}catch(t){return e.ERROR}}))}else t[Bo("0x10d")](e[Bo("0x2f")])
return navigator[Bo("0x117")]&&(t=t[Bo("0xec")](j[Bo("0x129")](e))),t}},{key:Bo("0x118"),value:function(e){for(var t=!1,n=0,i=e[Bo("0x117")][Bo("0x12a")].length;n<i;n++){var r=e[Bo("0x117")][Bo("0x12a")][n]
if(navigator[Bo("0x3a")].match(r)){t=!0
break}}return t}},{key:Bo("0x12b"),value:function(e,t){void 0!==navigator[Bo("0x12c")]?navigator[Bo("0x12c")]()[Bo("0x20")]((function(t){var n={}
n.level=t[Bo("0x12d")],n[Bo("0x12e")]=t[Bo("0x12e")],n[Bo("0x12f")]=t[Bo("0x12f")],n[Bo("0x130")]=t[Bo("0x130")],e(n)})):e(t[Bo("0x2f")])}},{key:Bo("0x131"),value:function(e,t){var n=navigator.connection
e(void 0!==n?{downlink:n[Bo("0x132")],downlinkMax:n[Bo("0x133")],type:n.type,effectiveType:n[Bo("0x134")],rtt:n[Bo("0x135")],saveData:n[Bo("0x136")]}:t.NOT_AVAILABLE)}},{key:Bo("0x137"),value:function(e){e(j[Bo("0x138")]())}},{key:"hardwareConcurrencyKey",value:function(e,t){e(j[Bo("0x139")](t))}},{key:"hasSessionStorage",value:function(e){try{return!!window.sessionStorage}catch(t){return e[Bo("0x13a")]}}},{key:"hasLocalStorage",value:function(e){try{return!!window[Bo("0x92")]}catch(t){return e[Bo("0x13a")]}}},{key:Bo("0x73"),value:function(e){try{return!!window[Bo("0x99")]}catch(t){return e[Bo("0x13a")]}}},{key:Bo("0x139"),value:function(e){return navigator.hardwareConcurrency?navigator[Bo("0x13b")]:e[Bo("0x2f")]}},{key:"getNavigatorCpuClass",value:function(e){return navigator[Bo("0x13c")]||e[Bo("0x2f")]}},{key:"getNavigatorPlatform",value:function(e){return navigator[Bo("0x13d")]?navigator.platform:e[Bo("0x2f")]}},{key:"getDoNotTrack",value:function(e){return navigator[Bo("0x13e")]?navigator[Bo("0x13e")]:navigator[Bo("0x13f")]?navigator[Bo("0x13f")]:window[Bo("0x13e")]?window[Bo("0x13e")]:e.NOT_AVAILABLE}},{key:"getTouchSupport",value:function(){var e,t=0
void 0!==navigator[Bo("0x140")]?t=navigator.maxTouchPoints:void 0!==navigator[Bo("0x141")]&&(t=navigator[Bo("0x141")])
try{document[Bo("0x142")]("TouchEvent"),e=!0}catch(t){e=!1}return{maxTouchPoints:t,touchEvent:e,touchStart:Bo("0x143")in window}}},{key:Bo("0xa3"),value:function(t){var n={},i=document.createElement("canvas")
i[Bo("0x66")]=2e3,i[Bo("0x67")]=200,i[Bo("0xf2")][Bo("0x144")]="inline"
var r=i[Bo("0x145")]("2d")
return r[Bo("0x146")](0,0,10,10),r[Bo("0x146")](2,2,6,6),n[Bo("0x147")]=!1===r[Bo("0x148")](5,5,"evenodd")?"yes":"no",r[Bo("0x149")]=Bo("0x14a"),r[Bo("0x14b")]=Bo("0x14c"),r.fillRect(125,1,62,20),r[Bo("0x14b")]="#069",t[Bo("0x14d")]?r[Bo("0x14e")]=Bo("0x14f"):r[Bo("0x14e")]=Bo("0x150"),r[Bo("0x151")]("Cwm fjordbank glyphs vext quiz, 😃",2,15),r[Bo("0x14b")]=Bo("0x152"),r[Bo("0x14e")]=Bo("0x153"),r[Bo("0x151")](Bo("0x154"),4,45),r[Bo("0x155")]=Bo("0x156"),r[Bo("0x14b")]=Bo("0x157"),r.beginPath(),r.arc(50,50,50,0,2*Math.PI,!0),r.closePath(),r[Bo("0x158")](),r[Bo("0x14b")]=Bo("0x159"),r[Bo("0x15a")](),r.arc(100,50,50,0,2*Math.PI,!0),r[Bo("0x15b")](),r.fill(),r[Bo("0x14b")]=Bo("0x15c"),r[Bo("0x15a")](),r[Bo("0x15d")](75,100,50,0,2*Math.PI,!0),r[Bo("0x15b")](),r.fill(),r.fillStyle=Bo("0x157"),r[Bo("0x15d")](75,75,75,0,2*Math.PI,!0),r[Bo("0x15d")](75,75,25,0,2*Math.PI,!0),r.fill(Bo("0x15e")),i[Bo("0x15f")]&&(n[Bo("0x160")]=e[Bo("0x4")](i[Bo("0x15f")](),23)),n}},{key:Bo("0xa6"),value:function(t){var n,i=function(e){return n[Bo("0x161")](0,0,0,1),n[Bo("0x162")](n[Bo("0x163")]),n[Bo("0x164")](n[Bo("0x165")]),n[Bo("0x166")](n[Bo("0x167")]|n[Bo("0x168")]),"["+e[0]+", "+e[1]+"]"}
if(!(n=j.getWebglCanvas()))return null
var r={},o=n[Bo("0x169")]()
n[Bo("0x16a")](n[Bo("0x16b")],o)
var a=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0])
n[Bo("0x16c")](n[Bo("0x16b")],a,n[Bo("0x16d")]),o[Bo("0x16e")]=3,o.numItems=3
var s=n.createProgram(),c=n[Bo("0x16f")](n.VERTEX_SHADER)
n.shaderSource(c,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}"),n[Bo("0x170")](c)
var l=n[Bo("0x16f")](n[Bo("0x171")])
n[Bo("0x172")](l,Bo("0x173")),n[Bo("0x170")](l),n[Bo("0x174")](s,c),n[Bo("0x174")](s,l),n[Bo("0x175")](s),n.useProgram(s),s[Bo("0x176")]=n.getAttribLocation(s,Bo("0x177")),s[Bo("0x178")]=n.getUniformLocation(s,Bo("0x179")),n[Bo("0x17a")](s.vertexPosArray),n[Bo("0x17b")](s[Bo("0x176")],o[Bo("0x16e")],n[Bo("0x17c")],!1,0,0),n[Bo("0x17d")](s[Bo("0x178")],1,1),n[Bo("0x17e")](n.TRIANGLE_STRIP,0,o[Bo("0x17f")])
try{r[Bo("0x180")]=e[Bo("0x4")](n[Bo("0x181")][Bo("0x15f")](),23)}catch(e){}if(t[Bo("0x182")].hashOnly)return r
r[Bo("0x183")]=j[Bo("0x184")](),r[Bo("0x185")]=n[Bo("0x186")]()||[],r[Bo("0x187")]=i(n[Bo("0x188")](n.ALIASED_LINE_WIDTH_RANGE)),r[Bo("0x189")]=i(n[Bo("0x188")](n[Bo("0x18a")])),r[Bo("0x18b")]=n.getParameter(n[Bo("0x18c")]),r[Bo("0x18d")]=n[Bo("0x18e")]().antialias?Bo("0x18f"):"no",r[Bo("0x190")]=n[Bo("0x188")](n[Bo("0x191")]),r[Bo("0x192")]=n[Bo("0x188")](n[Bo("0x193")]),r["webgl green bits"]=n.getParameter(n[Bo("0x194")]),r[Bo("0x195")]=function(e){var t=e.getExtension(Bo("0x196"))||e[Bo("0x197")](Bo("0x198"))||e.getExtension(Bo("0x199"))
if(t){var n=e.getParameter(t[Bo("0x19a")])
return 0===n&&(n=2),n}return null}(n),r[Bo("0x19b")]=n[Bo("0x188")](n[Bo("0x19c")]),r["webgl max cube map texture size"]=n[Bo("0x188")](n[Bo("0x19d")]),r["webgl max fragment uniform vectors"]=n.getParameter(n[Bo("0x19e")]),r[Bo("0x19f")]=n[Bo("0x188")](n[Bo("0x1a0")]),r["webgl max texture image units"]=n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS),r[Bo("0x1a1")]=n[Bo("0x188")](n.MAX_TEXTURE_SIZE),r[Bo("0x1a2")]=n.getParameter(n.MAX_VARYING_VECTORS),r[Bo("0x1a3")]=n[Bo("0x188")](n.MAX_VERTEX_ATTRIBS),r["webgl max vertex texture image units"]=n.getParameter(n[Bo("0x1a4")]),r[Bo("0x1a5")]=n.getParameter(n[Bo("0x1a6")]),r["webgl max viewport dims"]=i(n[Bo("0x188")](n[Bo("0x1a7")])),r[Bo("0x1a8")]=n[Bo("0x188")](n[Bo("0x1a9")]),r[Bo("0x1aa")]=n[Bo("0x188")](n[Bo("0x1ab")]),r[Bo("0x1ac")]=n[Bo("0x188")](n[Bo("0x1ad")]),r[Bo("0x1ae")]=n.getParameter(n.STENCIL_BITS),r[Bo("0x1af")]=n[Bo("0x188")](n[Bo("0x1b0")]),r[Bo("0x1b1")]=n[Bo("0x188")](n[Bo("0x1b2")])
try{var u=n[Bo("0x197")](Bo("0x1b3"))
u&&(r[Bo("0x1b4")]=n.getParameter(u[Bo("0x1b5")]),r[Bo("0x1b6")]=n[Bo("0x188")](u[Bo("0x1b7")]))}catch(e){}return n[Bo("0x1b8")]?(j[Bo("0xc")]([Bo("0x17c"),Bo("0x1b9")],(function(e){j.each([Bo("0x1ba"),Bo("0x1bb")],(function(t){j.each([Bo("0x1bc"),"MEDIUM",Bo("0x1bd")],(function(i){j[Bo("0xc")]([Bo("0x1be"),Bo("0x1bf"),Bo("0x1c0")],(function(o){var a=n[Bo("0x1b8")](n[t+Bo("0x1c1")],n[i+"_"+e])[o]
Bo("0x1be")!==o&&(o=Bo("0x1c2")+o)
var s=["webgl ",t.toLowerCase()," shader ",i[Bo("0x1c3")]()," ",e[Bo("0x1c3")]()," ",o][Bo("0x9c")]("")
r[s]=a}))}))}))})),r):r}},{key:Bo("0x184"),value:function(){try{var e=j[Bo("0x1c4")](),t=e[Bo("0x197")]("WEBGL_debug_renderer_info")
return e[Bo("0x188")](t.UNMASKED_VENDOR_WEBGL)+"~"+e.getParameter(t[Bo("0x1b7")])}catch(e){return null}}},{key:Bo("0xb0"),value:function(){var e=document[Bo("0xef")](Bo("0xf0"))
e[Bo("0x1c5")]="&nbsp;",e[Bo("0x1c6")]="adsbox"
var t=!1
try{document[Bo("0x75")][Bo("0x10c")](e),t=0===document[Bo("0x1c7")](Bo("0x1c8"))[0].offsetHeight,document[Bo("0x75")][Bo("0x10e")](e)}catch(e){t=!1}return t}},{key:Bo("0xb1"),value:function(){if(void 0!==navigator[Bo("0x1c9")])try{if(navigator.languages[0][Bo("0x1ca")](0,2)!==navigator[Bo("0x53")][Bo("0x1ca")](0,2))return!0}catch(e){return!0}return!1}},{key:Bo("0xb2"),value:function(){return window[Bo("0x57")].width<window[Bo("0x57")].availWidth||window.screen.height<window[Bo("0x57")][Bo("0x69")]}},{key:Bo("0xb3"),value:function(){var e,t=navigator[Bo("0x3a")][Bo("0x1c3")](),n=navigator[Bo("0x1cb")],i=navigator.platform[Bo("0x1c3")]()
if(e=t[Bo("0x18")](Bo("0x1cc"))>=0?"Windows Phone":t[Bo("0x18")](Bo("0x1cd"))>=0?Bo("0x1ce"):t[Bo("0x18")]("android")>=0?Bo("0x1cf"):t[Bo("0x18")](Bo("0x1d0"))>=0||t[Bo("0x18")](Bo("0x1d1"))>=0?Bo("0x1d2"):t[Bo("0x18")](Bo("0x1d3"))>=0||t[Bo("0x18")](Bo("0x1d4"))>=0?Bo("0x1d5"):t[Bo("0x18")](Bo("0x1d6"))>=0?"Mac":Bo("0x1d7"),("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&Bo("0x1d8")!==e&&Bo("0x1cf")!==e&&Bo("0x1d5")!==e&&"Other"!==e)return!0
if(void 0!==n){if((n=n[Bo("0x1c3")]()).indexOf(Bo("0x1cd"))>=0&&Bo("0x1ce")!==e&&"Windows Phone"!==e)return!0
if(n[Bo("0x18")](Bo("0x1d0"))>=0&&Bo("0x1d2")!==e&&Bo("0x1cf")!==e)return!0
if(n[Bo("0x18")](Bo("0x1d6"))>=0&&Bo("0x1d9")!==e&&Bo("0x1d5")!==e)return!0
if((-1===n[Bo("0x18")](Bo("0x1cd"))&&-1===n[Bo("0x18")](Bo("0x1d0"))&&-1===n.indexOf(Bo("0x1d6")))!=(Bo("0x1d7")===e))return!0}return i[Bo("0x18")](Bo("0x1cd"))>=0&&"Windows"!==e&&Bo("0x1d8")!==e||(i[Bo("0x18")]("linux")>=0||i[Bo("0x18")](Bo("0x1da"))>=0||i[Bo("0x18")](Bo("0x1db"))>=0)&&Bo("0x1d2")!==e&&"Android"!==e||(i[Bo("0x18")](Bo("0x1d6"))>=0||i[Bo("0x18")](Bo("0x1d4"))>=0||i[Bo("0x18")](Bo("0x1dc"))>=0||i.indexOf("iphone")>=0)&&"Mac"!==e&&Bo("0x1d5")!==e||(i[Bo("0x18")](Bo("0x1cd"))<0&&i[Bo("0x18")](Bo("0x1d0"))<0&&i.indexOf("mac")<0&&i[Bo("0x18")](Bo("0x1d3"))<0&&i[Bo("0x18")]("ipad")<0)!=(Bo("0x1d7")===e)||void 0===navigator[Bo("0x117")]&&Bo("0x1ce")!==e&&"Windows Phone"!==e}},{key:"getHasLiedBrowser",value:function(){var e,t=navigator[Bo("0x3a")].toLowerCase(),n=navigator[Bo("0x84")]
if(e=t[Bo("0x18")](Bo("0x1dd"))>=0?"Firefox":t[Bo("0x18")](Bo("0x1de"))>=0||t[Bo("0x18")](Bo("0x1df"))>=0?Bo("0x9e"):t[Bo("0x18")]("chrome")>=0?Bo("0x25"):t.indexOf(Bo("0x1e0"))>=0?Bo("0x1e1"):t[Bo("0x18")](Bo("0x1e2"))>=0?Bo("0x1e3"):Bo("0x1d7"),(Bo("0x25")===e||Bo("0x1e1")===e||Bo("0x9e")===e)&&Bo("0x1e4")!==n)return!0
var i,r=eval[Bo("0xa")]()[Bo("0x5")]
if(37===r&&Bo("0x1e1")!==e&&Bo("0x27")!==e&&Bo("0x1d7")!==e)return!0
if(39===r&&Bo("0x1e3")!==e&&"Other"!==e)return!0
if(33===r&&Bo("0x25")!==e&&Bo("0x9e")!==e&&Bo("0x1d7")!==e)return!0
try{throw"a"}catch(e){try{e[Bo("0x1e5")](),i=!0}catch(e){i=!1}}return i&&Bo("0x27")!==e&&Bo("0x1d7")!==e}},{key:Bo("0xa2"),value:function(){var e=document.createElement(Bo("0x181"))
return!(!e[Bo("0x145")]||!e[Bo("0x145")]("2d"))}},{key:"isWebGlSupported",value:function(){if(!j.isCanvasSupported())return!1
var e=j.getWebglCanvas()
return!!window.WebGLRenderingContext&&!!e}},{key:Bo("0x116"),value:function(){return Bo("0x1e6")===navigator[Bo("0x9f")]||!(Bo("0x1e7")!==navigator[Bo("0x9f")]||!/Trident/[Bo("0x95")](navigator[Bo("0x3a")]))}},{key:Bo("0xb6"),value:function(){return void 0!==window.swfobject}},{key:Bo("0xb7"),value:function(){return window[Bo("0x1e8")][Bo("0x1e9")]("9.0.0")}},{key:Bo("0x1ea"),value:function(e){var t=document[Bo("0xef")](Bo("0xf0"))
t[Bo("0x1eb")]("id",e[Bo("0xb8")][Bo("0x1ec")]),document.body[Bo("0x10c")](t)}},{key:Bo("0x1ed"),value:function(e,t){window.___fp_swf_loaded=function(t){e(t)}
var n=t[Bo("0xb8")][Bo("0x1ec")]
j[Bo("0x1ea")](),window[Bo("0x1e8")][Bo("0x1ee")](t.fonts[Bo("0xb9")],n,"1","1",Bo("0x1ef"),!1,{onReady:"___fp_swf_loaded"},{allowScriptAccess:Bo("0x1f0"),menu:Bo("0x1f1")},{})}},{key:"getWebglCanvas",value:function(){var e=document[Bo("0xef")]("canvas"),t=null
try{t=e[Bo("0x145")](Bo("0x182"))||e[Bo("0x145")](Bo("0x1f2"))}catch(e){}return t||(t=null),t}}]),j}(Bo("0xc"),Bo("0x10"),Bo("0x23"),Bo("0x32"),Bo("0x51"),Bo("0x26"),Bo("0x52"),Bo("0x56"),Bo("0x58"),Bo("0x5a"),Bo("0x5b"),Bo("0x5d"),Bo("0x5e"),Bo("0x65"),Bo("0x68"),Bo("0x6c"),Bo("0x70"),Bo("0x72"),Bo("0x74"),Bo("0x78"),Bo("0x7a"),Bo("0x7b"),Bo("0x7d"),Bo("0x80"),Bo("0x82"),Bo("0x83"),Bo("0x85"),Bo("0x87"),Bo("0x89"),Bo("0x8b"),Bo("0x24"),Bo("0xa1"),Bo("0xa4"),Bo("0xa8"),Bo("0xaf")),n={getItem:function(e){var t=this.getCookieString()[Bo("0x3b")](this[Bo("0x222")](e))
return t?t[1].replace(/^"(.*)"$/,"$1"):""},getBcookie:function(){try{for(var e=document[Bo("0x223")][Bo("0x17")](/\s*;\s*/),t=0;t<e.length;t++){var n=e[t][Bo("0x17")]("=")
if(n.length>1&&Bo("0x224")===n[0]){var i=n[n[Bo("0x5")]-1]
return i[Bo("0x225")](2,i[Bo("0x5")]-1)}}}catch(e){return""}return""},setItem:function(e,t,n){var i=arguments[Bo("0x5")]>3&&void 0!==arguments[3]?arguments[3]:this.getDomain()
if(n){var r=[e+"="+t+Bo("0x226")+(arguments[Bo("0x5")]>4&&void 0!==arguments[4]?arguments[4]:"/")+Bo("0x227")]
"string"==typeof i&&i[Bo("0x5")]>0&&r[Bo("0x10d")](Bo("0x228")+i),r[Bo("0x10d")](Bo("0x229")+(n instanceof Date?n[Bo("0x22a")]():n)),document.cookie=r[Bo("0x9c")]("; ")}},deleteItem:function(e){this[Bo("0x93")](e,"",new Date(0)),this[Bo("0x93")](e,"",new Date(0),"")
var t=this[Bo("0x22b")]()[Bo("0x17")](".")
t.length>2&&(t=t[Bo("0xb")](t[Bo("0x5")]-2))
var n=t[Bo("0x9c")](".")
this[Bo("0x93")](e,"",new Date(0),n)},_cookieRegEx:function(e){return new RegExp(e+Bo("0x22c"))},getCookieString:function(){return document[Bo("0x223")]},getDomain:function(){return window[Bo("0x22d")]?window[Bo("0x22d")][Bo("0xaa")]:""}},i=Bo("0x22e"),r=Bo("0x22f"),o="DFP_WEB"
function a(e){var t=arguments[Bo("0x5")]>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],i=n?n[Bo("0x230")]("#"+e):document[Bo("0x231")](e)
if(i){var r=i[Bo("0x232")][Bo("0x233")]
if(t&&i[Bo("0x234")][Bo("0x10e")](i),r)try{return JSON.parse(r)}catch(e){return}}}function s(e,t,n){var i=new XMLHttpRequest,r=n?"https://www.linkedin.com":Bo("0x235")
r+=String(t),i[Bo("0x96")](Bo("0x236"),r),i.setRequestHeader(Bo("0x237"),"application/json"),i.send(e)}function c(e){var t=document.getElementsByClassName(e)
return void 0!==t&&t[Bo("0x5")]>=1}var l=function(){function e(){nn(this,e)}return on(e,null,[{key:Bo("0x238"),value:function(e){for(var t=new ArrayBuffer(e[Bo("0x5")]),n=new Uint8Array(t),i=0,r=e[Bo("0x5")];i<r;i++)n[i]=e[Bo("0x6")](i)
return t}},{key:"encode",value:function(e){return window.btoa(String.fromCharCode[Bo("0x239")](null,e))}},{key:Bo("0x23a"),value:function(t,n,i){var r=window.atob(n),o=e[Bo("0x238")](r)
return window[Bo("0x23b")][Bo("0x23c")][Bo("0x23d")](t,o,{name:Bo("0x23e"),hash:Bo("0x23f")},!0,i)}},{key:Bo("0x240"),value:function(t,n){return e[Bo("0x23a")]("spki",n,[Bo("0x241")])[Bo("0x20")]((function(e){return window[Bo("0x23b")][Bo("0x23c")][Bo("0x241")](Bo("0x242"),t,e,{name:"RSA-OAEP"})}))[Bo("0x20")]((function(t){return e[Bo("0x243")](new Uint8Array(t))}))}},{key:Bo("0x244"),value:function(e){var t={a:null,b:null,c:null}
return t[Bo("0x245")]=e,t}},{key:"encryptWithKey",value:function(t,n,i){var r={a:null,b:null,c:null}
try{var o=Date.now()
if(Bo("0x246")!=tn(n)||Bo("0x217")!=tn(i))throw new Error("ec1")
var a=window[Bo("0x23b")].getRandomValues(new Uint8Array(16))
r.a=e[Bo("0x243")](a)
var s=(new TextEncoder)[Bo("0x243")](t),c="AES-CBC"
return window.crypto[Bo("0x23c")][Bo("0x247")]({name:c,length:256},!0,[Bo("0x248"),Bo("0x249")])[Bo("0x20")]((function(t){return window[Bo("0x23b")][Bo("0x23c")][Bo("0x248")]({name:c,iv:a},t,s)[Bo("0x20")]((function(a){return e[Bo("0x240")](t,n)[Bo("0x20")]((function(t){return r.b=t,r.c=e.encode(new Uint8Array(a)),r.d=Date[Bo("0x7f")]()-o,r.e=i,r}))}))}))[Bo("0x39")]((function(e){return r.error=String(e),r}))}catch(t){return r.error=String(t),Promise.resolve(r)}}},{key:Bo("0x24a"),value:function(t,n,i,r){if(Bo("0x246")!=tn(n)||Bo("0x246")!=tn(i))return Promise[Bo("0x24b")](e.wrapErrorResult(Bo("0x24c")))
var o=a(n),s=parseInt(a(i))
return(""===o||Bo("0x246")!=tn(o)||Bo("0x217")!=tn(s)||Number.isNaN(s))&&(o=r?"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqyVTa3Pi5twlDxHc34nl3MlTHOweIenIid6hDqVlh5/wcHzIxvB9nZjObW3HWfwqejGM+n2ZGbo9x8R7ByS3/V4qRgAs1z4aB6F5+HcXsx8uVrQfwigK0+u7d3g1s7H8qUaguMPHxNnyj5EisTJBh2jf9ODp8TpWnhAQHCCSZcDM4JIoIlsVdGmv+dGlzZzmf1if26U4KJqFdrqS83r3nGWcEpXWiQB+mx/EX4brbrhOFCvfPovvsLEjMTm0UC68Bvki3UsB/vkkMPW9cxNiiJJdnDkOEEdQPuFmPug+sqhACl3IIHLVBFM7vO0ca14rcCNSbSDaaKOY6BQoW1A30wIDAQAB":Bo("0x24d"),s=r?2:1),e[Bo("0x24e")](t,o,s)}},{key:Bo("0x24f"),value:function(t,n,i,r,o){return null!=r&&Bo("0x246")==tn(r[Bo("0x250")])&&Bo("0x217")==tn(r[Bo("0x251")])?e[Bo("0x24e")](t,r[Bo("0x250")],r[Bo("0x251")]):e[Bo("0x24a")](t,n,i,o)}},{key:Bo("0x252"),value:function(){return([1e7]+-1e3+-4e3+-8e3+-1e11)[Bo("0x9d")](/[018]/g,(function(e){return(e^window[Bo("0x23b")][Bo("0x253")](new Uint8Array(1))[0]&15>>e/4).toString(16)}))}},{key:Bo("0x254"),value:function(e){var t=(new TextEncoder)[Bo("0x243")](e)
return crypto.subtle[Bo("0x255")](Bo("0x23f"),t).then((function(e){return Array[Bo("0x256")](new Uint8Array(e)).map((function(e){return("00"+e.toString(16))[Bo("0xb")](-2)}))[Bo("0x9c")]("")}))[Bo("0x39")]((function(){return""}))}}]),e}(),u=function(){var e={compressToBase64:function(t){if(null==t)return""
var n=e[Bo("0x257")](t,6,(function(e){return Bo("0x258")[Bo("0x259")](e)}))
switch(n.length%4){default:case 0:return n
case 1:return n+Bo("0x25a")
case 2:return n+"=="
case 3:return n+"="}},_compress:function(e,t,n){if(null==e)return""
var i,r,o,a={},s={},c="",l="",u="",d=2,f=3,p=2,h=[],g=0,m=0
for(o=0;o<e.length;o+=1)if(c=e[Bo("0x259")](o),Object[Bo("0xd")][Bo("0xf")][Bo("0x25b")](a,c)||(a[c]=f++,s[c]=!0),l=u+c,Object[Bo("0xd")][Bo("0xf")][Bo("0x25b")](a,l))u=l
else{if(Object[Bo("0xd")].hasOwnProperty[Bo("0x25b")](s,u)){if(u[Bo("0x6")](0)<256){for(i=0;i<p;i++)g<<=1,m==t-1?(m=0,h[Bo("0x10d")](n(g)),g=0):m++
for(r=u[Bo("0x6")](0),i=0;i<8;i++)g=g<<1|1&r,m==t-1?(m=0,h[Bo("0x10d")](n(g)),g=0):m++,r>>=1}else{for(r=1,i=0;i<p;i++)g=g<<1|r,m==t-1?(m=0,h[Bo("0x10d")](n(g)),g=0):m++,r=0
for(r=u[Bo("0x6")](0),i=0;i<16;i++)g=g<<1|1&r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r>>=1}0==--d&&(d=Math[Bo("0x25c")](2,p),p++),delete s[u]}else for(r=a[u],i=0;i<p;i++)g=g<<1|1&r,m==t-1?(m=0,h[Bo("0x10d")](n(g)),g=0):m++,r>>=1
0==--d&&(d=Math[Bo("0x25c")](2,p),p++),a[l]=f++,u=String(c)}if(""!==u){if(Object[Bo("0xd")][Bo("0xf")][Bo("0x25b")](s,u)){if(u.charCodeAt(0)<256){for(i=0;i<p;i++)g<<=1,m==t-1?(m=0,h[Bo("0x10d")](n(g)),g=0):m++
for(r=u.charCodeAt(0),i=0;i<8;i++)g=g<<1|1&r,m==t-1?(m=0,h[Bo("0x10d")](n(g)),g=0):m++,r>>=1}else{for(r=1,i=0;i<p;i++)g=g<<1|r,m==t-1?(m=0,h[Bo("0x10d")](n(g)),g=0):m++,r=0
for(r=u[Bo("0x6")](0),i=0;i<16;i++)g=g<<1|1&r,m==t-1?(m=0,h[Bo("0x10d")](n(g)),g=0):m++,r>>=1}0==--d&&(d=Math[Bo("0x25c")](2,p),p++),delete s[u]}else for(r=a[u],i=0;i<p;i++)g=g<<1|1&r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r>>=1
0==--d&&(d=Math[Bo("0x25c")](2,p),p++)}for(r=2,i=0;i<p;i++)g=g<<1|1&r,m==t-1?(m=0,h[Bo("0x10d")](n(g)),g=0):m++,r>>=1
for(;;){if(g<<=1,m==t-1){h.push(n(g))
break}m++}return h.join("")}}
return e}(),d={apfcTypes:1,collectionType:2,trackingId:3},f={protocol:1,hostname:2,port:3,origin:4,host:5,href:6,hash:7,pathname:8},p={saveData:1,effectiveType:2,rtt:3,downlink:4,downlinkMax:5,type:6},h={liedOS:1,liedBrowser:2,liedResolution:3,adBlockInstalled:4,liedLanguages:5},g={type:1,description:2,suffixes:3},m={canvasHash:1,canvasWinding:2},v={label:1,gid:2,id:3,kind:4},y={lists:1,fontsHash:2},b={Orientation:1,Enabled:2},E={charging:1,dischargingTime:2,level:3,chargingTime:4},_={touchStart:1,touchEvent:2,maxTouchPoints:3},k={"webgl stencil bits":1,"webgl vertex shader high float precision rangeMax":2,"webgl antialiasing":3,"webgl max vertex texture image units":4,"webgl fragment shader medium int precision rangeMax":5,"webgl fragment shader low int precision rangeMin":6,"webgl max vertex uniform vectors":7,"webgl renderer":8,"webgl vertex shader high float precision":9,"webgl green bits":10,"webgl fragment shader medium int precision rangeMin":11,"webgl fragment shader low int precision rangeMax":12,"webgl fragment shader medium int precision":13,"webgl blue bits":14,"webgl max viewport dims":15,"webgl unmasked vendor":16,"webgl vertex shader medium float precision":17,"webgl fragment shader low int precision":18,"webgl vertex shader high int precision":19,"webgl vertex shader medium int precision rangeMax":20,"webgl unmasked renderer":21,"webgl fragment shader high int precision":22,"webgl aliased point size range":23,"webgl vertex shader medium float precision rangeMax":24,"webgl vertex shader low int precision rangeMax":25,"webgl fragment shader low float precision":26,"webgl fragment shader high int precision rangeMin":27,"webgl vertex shader high float precision rangeMin":28,"webgl red bits":29,vendorAndRenderer:30,"webgl vertex shader medium int precision rangeMin":31,"webgl vertex shader low float precision":32,"webgl vertex shader medium int precision":33,"webgl fragment shader medium float precision rangeMax":34,"webgl max texture image units":35,"webgl vertex shader medium float precision rangeMin":36,"webgl fragment shader high float precision rangeMin":37,"webgl fragment shader high int precision rangeMax":38,"webgl vertex shader high int precision rangeMax":39,webglHash:40,"webgl max varying vectors":41,"webgl fragment shader medium float precision rangeMin":42,"webgl vertex shader low int precision":43,"webgl fragment shader low float precision rangeMin":44,"webgl aliased line width range":45,"webgl max combined texture image units":46,"webgl shading language version":47,"webgl vertex shader high int precision rangeMin":48,"webgl max anisotropy":49,"webgl max render buffer size":50,"webgl vendor":51,"webgl vertex shader low int precision rangeMin":52,"webgl max fragment uniform vectors":53,"webgl fragment shader high float precision rangeMax":54,"webgl version":55,"webgl fragment shader high float precision":56,"webgl max texture size":57,"webgl max cube map texture size":58,"webgl fragment shader medium float precision":59,"webgl vertex shader low float precision rangeMin":60,"webgl max vertex attribs":61,"webgl alpha bits":62,"webgl vertex shader low float precision rangeMax":63,"webgl fragment shader low float precision rangeMax":64,"webgl depth bits":65,extensions:66},T={ANGLE_instanced_arrays:67,EXT_blend_minmax:68,EXT_clip_control:69,EXT_color_buffer_float:70,EXT_color_buffer_half_float:71,EXT_conservative_depth:72,EXT_depth_clamp:73,EXT_disjoint_timer_query:74,EXT_disjoint_timer_query_webgl2:75,EXT_float_blend:76,EXT_frag_depth:77,EXT_polygon_offset_clamp:78,EXT_render_snorm:79,EXT_shader_texture_lod:80,EXT_texture_compression_bptc:81,EXT_texture_compression_rgtc:82,EXT_texture_filter_anisotropic:83,EXT_texture_mirror_clamp_to_edge:84,EXT_texture_norm16:85,EXT_sRGB:86,KHR_parallel_shader_compile:87,NV_shader_noperspective_interpolation:88,OES_draw_buffers_indexed:89,OES_element_index_uint:90,OES_fbo_render_mipmap:91,OES_sample_variables:92,OES_shader_multisample_interpolation:93,OVR_multiview2:94,OES_standard_derivatives:95,OES_texture_float:96,OES_texture_float_linear:97,OES_texture_half_float:98,OES_texture_half_float_linear:99,OES_vertex_array_object:100,WEBGL_blend_func_extended:101,WEBGL_clip_cull_distance:102,WEBGL_color_buffer_float:103,WEBGL_compressed_texture_astc:104,WEBGL_compressed_texture_etc:105,WEBGL_compressed_texture_etc1:106,WEBGL_compressed_texture_pvrtc:107,WEBGL_compressed_texture_s3tc:108,WEBGL_compressed_texture_s3tc_srgb:109,WEBGL_debug_renderer_info:110,WEBGL_debug_shaders:111,WEBGL_depth_texture:112,WEBGL_draw_buffers:113,WEBGL_lose_context:114,WEBGL_multi_draw:115,WEBGL_polygon_mode:116,WEBGL_provoking_vertex:117,WEBGL_render_shared_exponent:118,WEBGL_stencil_texturing:119},S={"American Typewriter":1,"Andale Mono":2,Arial:3,"Arial Black":4,"Arial Hebrew":5,"Arial Narrow":6,"Arial Rounded MT Bold":7,"Arial Unicode MS":8,Avenir:9,"Avenir Next":10,"Avenir Next Condensed":11,Bahnschrift:12,Baskerville:13,"Big Caslon":14,"Bodoni 72":15,"Bodoni 72 Oldstyle":16,"Bodoni 72 Smallcaps":17,"Bradley Hand":18,"Brush Script MT":19,Calibri:20,Cambria:21,"Cambria Math":22,Candara:23,Chalkboard:24,"Chalkboard SE":25,Chalkduster:26,Charter:27,Cochin:28,"Comic Sans MS":29,Consolas:30,Constantia:31,Corbel:32,Copperplate:33,Courier:34,"Courier New":35,Didot:36,"DIN Alternate":37,"DIN Condensed":38,Ebrima:39,"Franklin Gothic Medium":40,Futura:41,Gabriola:42,Gadugi:43,Geneva:44,Georgia:45,"Gill Sans":46,Helvetica:47,"Helvetica Neue":48,Herculanum:49,"Hoefler Text":50,"HoloLens MDL2 Assets":51,Impact:52,"Ink Free":53,"Javanese Text":54,"Leelawadee UI":55,"Lucida Console":56,"LUCIDA GRANDE":57,"Lucida Grande":58,"Lucida Sans Unicode":59,Luminari:60,"Malgun Gothic":61,"Marker Felt":62,Marlett:63,Menlo:64,"Microsoft Himalaya":65,"Microsoft JhengHei":66,"Microsoft New Tai Lue":67,"Microsoft PhagsPa":68,"Microsoft Sans Serif":69,"Microsoft Tai Le":70,"Microsoft YaHei":71,"Microsoft Yi Baiti":72,"MingLiU-ExtB":73,Monaco:74,"Mongolian Baiti":75,"MS Gothic":76,"MV Boli":77,"Myanmar Text":78,"Nirmala UI":79,Noteworthy:80,Optima:81,Palatino:82,"Palatino Linotype":83,Papyrus:84,Phosphate:85,Rockwell:86,"Savoye LET":87,"Segoe MDL2 Assets":88,"Segoe Print":89,"Segoe Script":90,"Segoe UI":91,"Segoe UI Historic":92,"Segoe UI Emoji":93,"Segoe UI Symbol":94,SignPainter:95,SimSun:96,Sitka:97,Skia:98,"Snell Roundhand":99,Sylfaen:100,Symbol:101,Tahoma:102,Times:103,"Times New Roman":104,Trattatello:105,"Trebuchet MS":106,Verdana:107,Webdings:108,Wingdings:109,"Wingdings 2":110,"Wingdings 3":111,"Yu Gothic":112,Zapfino:113},A={appVersion:1,numOfCores:2,webrtc:3,touchSupport:4,webgl:5,timezone:6,plugins:7,localStorage:8,incognito:9,language:10,appCodeName:11,battery:12,platform:13,javascripts:14,automation:15,pixelDepth:16,screenOrientation:17,availableScreenResolution:18,timezoneOffset:19,oscpu:20,fonts:21,vendor:22,sessionStorage:23,webdriver:24,audio:25,openDatabase:26,screenResolution:27,vendorSub:28,enumerateDevices:29,product:30,canvas:31,appName:32,mimetyps:33,cpuClass:34,indexedDb:35,userAgent:36,deviceMemory:37,productSub:38,addBehavior:39,signals:40,networkInfo:41,location:42,colorDepth:43,FPDataCookie:44,tsSeed:45,errors:46,pixelRatio:47}
function C(e){var t={}
return function(e){var t=e[Bo("0x182")],n={}
if(void 0!==t&&void 0!==t[Bo("0x185")]){for(var i=t[Bo("0x185")],r=[],o=0;o<i[Bo("0x5")];o++){var a=i[o]
r[o]=T[Bo("0xf")](a)?T[a]:a}t[Bo("0x185")]=r}void 0!==t&&(Object[Bo("0x1b")](k).forEach((function(e){n[k[e]]=t[e]})),e[Bo("0x182")]=n)}(e),function(e){var t=e.touchSupport,n={}
void 0!==t&&(Object.keys(_)[Bo("0xe")]((function(e){n[_[e]]=t[e]})),e.touchSupport=n)}(e),function(e){var t=e[Bo("0x25d")],n={}
void 0!==t&&(Object.keys(E)[Bo("0xe")]((function(e){n[E[e]]=t[e]})),e[Bo("0x25d")]=n)}(e),function(e){var t=e[Bo("0x201")],n={}
void 0!==t&&(Object[Bo("0x1b")](b)[Bo("0xe")]((function(e){n[b[e]]=t[e]})),e[Bo("0x201")]=n)}(e),function(e){var t=e[Bo("0xb8")],n={}
if(void 0!==t&&void 0!==t[Bo("0x110")]){for(var i=t[Bo("0x110")],r=[],o=0;o<i[Bo("0x5")];o++){var a=i[o]
r[o]=S.hasOwnProperty(a)?S[a]:a}t[Bo("0x110")]=r}void 0!==t&&(Object[Bo("0x1b")](y)[Bo("0xe")]((function(e){n[y[e]]=t[e]})),e[Bo("0xb8")]=n)}(e),function(e){var t=e[Bo("0x35")],n=[]
if(void 0!==e[Bo("0x35")]){for(var i=function(){var e=t[r],i={}
Object[Bo("0x1b")](v)[Bo("0xe")]((function(t){i[v[t]]=e[t]})),n[r]=i},r=0;r<t.length;r++)i()
e[Bo("0x35")]=n}}(e),function(e){var t=e[Bo("0x181")],n={}
void 0!==t&&(Object[Bo("0x1b")](m).forEach((function(e){n[m[e]]=t[e]})),e[Bo("0x181")]=n)}(e),function(e){var t=e.mimetyps,n=[]
if(void 0!==t){for(var i=function(){var e=t[r],i={}
Object[Bo("0x1b")](g)[Bo("0xe")]((function(t){i[g[t]]=e[t]})),n[r]=i},r=0;r<t[Bo("0x5")];r++)i()
e.mimetyps=n}}(e),function(e){var t=e[Bo("0x25e")],n={}
void 0!==t&&(Object[Bo("0x1b")](h)[Bo("0xe")]((function(e){n[h[e]]=t[e]})),e[Bo("0x25e")]=n)}(e),function(e){var t=e.networkInfo,n={}
void 0!==t&&(Object.keys(p)[Bo("0xe")]((function(e){n[p[e]]=t[e]})),e[Bo("0x208")]=n)}(e),function(e){var t=e.location,n={}
void 0!==t&&(Object[Bo("0x1b")](f)[Bo("0xe")]((function(e){n[f[e]]=t[e]})),e[Bo("0x22d")]=n)}(e),function(e){var t=e.FPDataCookie,n={}
void 0!==t&&(Object[Bo("0x1b")](d)[Bo("0xe")]((function(e){n[d[e]]=t[e]})),e[Bo("0x25f")]=n)}(e),Object[Bo("0x1b")](A)[Bo("0xe")]((function(n){t[A[n]]=e[n]})),t}var I={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"apfcDf",swfPath:Bo("0x260"),userDefinedFonts:[],extendedJsFonts:void 0,hashOnly:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},webgl:{hashOnly:!1},ponfUrl:Bo("0x261"),telemetryCollectPath:"/platform-telemetry/li/apfcDf",gloablIntegrationDataCollectionPath:Bo("0x262"),extraComponents:[],excludes:{pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},debug:!1,NOT_AVAILABLE:Bo("0x263"),ERROR:Bo("0x264"),EXCLUDED:"excluded",useRequestIdleCallBack:!0},w=function(){function e(t,n,i){var r=this
if(nn(this,e),void 0!==n&&void 0!==t&&Bo("0x265")===t[Bo("0x266")])Bo("0x1e")===document[Bo("0x267")]?this[Bo("0x268")](n,i):window.addEventListener(Bo("0x269"),(function(){r[Bo("0x268")](n,i)}))
else if(void 0!==t){var o=JSON[Bo("0x26a")](JSON[Bo("0x26b")](I))
c(Bo("0x26c"))||c(Bo("0x26d"))||(o[Bo("0x220")]=!1),this[Bo("0x26e")](o,t)}else{var a=JSON[Bo("0x26a")](JSON[Bo("0x26b")](I))
c(Bo("0x26c"))||c("setting-headline")||(a[Bo("0x220")]=!1),Bo("0x1e")===document[Bo("0x267")]?this.initialize(a):window[Bo("0x26f")](Bo("0x269"),(function(){r[Bo("0x26e")](a)}))}}return on(e,[{key:Bo("0x270"),value:function(e){return"number"!=typeof e[Bo("0x271")]||e[Bo("0x271")]<=0||""===n[Bo("0x272")](Bo("0x273"))}},{key:Bo("0x268"),value:function(e,t){!0===t[Bo("0x274")]&&!0!==globalThis[Bo("0x275")]?(globalThis[Bo("0x275")]=!0,setTimeout((function(){globalThis[Bo("0x275")]=!1}),3e4),this[Bo("0x276")](e,t),this.checkConfigAndInitializeThirdPartyIntegration(e,t),n[Bo("0x277")]("li_apfcdc")):(this[Bo("0x278")](t),this[Bo("0x270")](t)&&(this[Bo("0x276")](e,t),this[Bo("0x279")](e,t),this[Bo("0x27a")](t)))}},{key:"checkConfigAndInitializeGlobalIntegration",value:function(e,t){(!0===t[Bo("0x274")]&&t.fpDataCookie[Bo("0x27b")][Bo("0x27c")](i)||!0===t[Bo("0x27d")]&&!0!==globalThis[Bo("0x27e")])&&this[Bo("0x27f")](I,e,t)}},{key:Bo("0x279"),value:function(e,t){(!0===t[Bo("0x274")]&&t[Bo("0x280")][Bo("0x27b")].includes(r)||!0===t[Bo("0x281")]&&!0!==globalThis[Bo("0x282")])&&this.initializeHumanIntegration(e,t),(!0===t[Bo("0x274")]&&t.fpDataCookie.apfcTypes[Bo("0x27c")](o)||!0===t.dfpIntegrationEnabled&&!0!==globalThis.dfpIntegrationCompleted)&&this[Bo("0x283")](e,t)}},{key:Bo("0x278"),value:function(e){var t=Bo("0x217")!=tn(e[Bo("0x271")])?0:e[Bo("0x271")]
""!==n[Bo("0x272")]("df_ts")&&Date[Bo("0x7f")]()-Number(n[Bo("0x272")](Bo("0x273")))>t&&n.deleteItem(Bo("0x273"))}},{key:Bo("0x27a"),value:function(e){if("number"==typeof e[Bo("0x271")]&&e[Bo("0x271")]>0){var t=Date[Bo("0x7f")](),i=new Date
i[Bo("0x284")](t+e.samplingTimeWindowInMillis),n[Bo("0x93")]("df_ts",t,i)}}},{key:Bo("0x26e"),value:function(e,n){if(null!=n||null!=a(Bo("0x285"))){this[Bo("0x287")](e,n)
var i=this.reqid,r=this[Bo("0x288")],o=this[Bo("0x289")]()
return(new t)[Bo("0x28a")]((function(t,a){t.reqid=i,t.pageInstance=r,t.fullFeatureCollection=a,l.encryptWithKeyFromDifferentSources(JSON.stringify(t),Bo("0x285"),Bo("0x28b"),n,o)[Bo("0x20")]((function(t){globalThis[Bo("0x28c")]=t,!0===a&&s(JSON[Bo("0x26b")](t),e[Bo("0x28d")],o)}))}),e)}globalThis.triggerApfc=this[Bo("0x286")]}},{key:Bo("0x27f"),value:function(r,o,a){var c=this.isProd()
return(new t)[Bo("0x28a")]((function(t,d){var f
!0===d&&(e[Bo("0xd")][Bo("0x28e")](t,a),!0===a[Bo("0x28f")]&&(globalThis[Bo("0x290")]=(f=C(t),u[Bo("0x291")](f))),l[Bo("0x24a")](JSON.stringify(t),Bo("0x285"),"apfcDfPKV")[Bo("0x20")]((function(e){if(globalThis.apfcDf=e,!0===a.isSyncEnabledWithHeaders||!0===a.isSyncEnabledWithCb){var t=function(e){var t={}
t[btoa(Bo("0x292"))]=e
var i={}
return i.payload=t,i[Bo("0x293")]=n[Bo("0x294")](),i}(e)
s(JSON[Bo("0x26b")](t),r.gloablIntegrationDataCollectionPath,c)}o(i,JSON[Bo("0x26b")](e))})),globalThis[Bo("0x27e")]=!0)}),r)}},{key:Bo("0x283"),value:function(t,i){var r=n[Bo("0x294")](),a=this[Bo("0x289")]()?Bo("0x295"):Bo("0x296")
try{if(RegExp("^[\\w-]*$").test(r)){var s=Bo("0x297")+r+Bo("0x298")+a,c=document[Bo("0xef")](Bo("0x299"))
c.setAttribute("src",s),c[Bo("0x1eb")]("id",Bo("0x29a")),c[Bo("0x26f")](Bo("0x269"),(function(){return window[Bo("0x29b")][Bo("0x29c")](document)})),document[Bo("0x29d")](Bo("0x29e"))[0][Bo("0x10c")](c)
var l={sessionId:r,instanceId:a}
e[Bo("0xd")][Bo("0x28e")](l,i),t(o,JSON[Bo("0x26b")](l))}else{var u={error:Bo("0x29f")+r}
t(o,JSON[Bo("0x26b")](u))}}catch(i){var d={error:i}
t(o,JSON.stringify(d))}globalThis[Bo("0x2a0")]=!0}},{key:Bo("0x2a1"),value:function(t,i){var o=i[Bo("0x2a2")],a=Date.now(),s=this[Bo("0x289")]()?"PXdOjV695v":Bo("0x2a3"),c=n[Bo("0x294")](),u=Bo("0x2a4")+a+Bo("0x2a5")+encodeURIComponent(o)+"&app_id="+s+"&uc=scraping"
l[Bo("0x254")](c).then((function(n){""!==(c=n)&&(u+="&d_id="+c)
try{var l=document[Bo("0xef")](Bo("0x2a6"))
l[Bo("0x1eb")]("id","humanThirdPartyIframe"),l[Bo("0x1eb")](Bo("0x2a7"),u),l[Bo("0x1eb")](Bo("0x2a8"),Bo("0x2a9")),l[Bo("0x1eb")](Bo("0x2aa"),Bo("0x2ab")),l[Bo("0xf2")][Bo("0x67")]=Bo("0x2ac"),l.style[Bo("0x66")]=Bo("0x2ac"),l[Bo("0xf2")][Bo("0x2ad")]=Bo("0x102"),l[Bo("0xf2")][Bo("0xf3")]=Bo("0x2ae"),l[Bo("0xf2")].left=Bo("0xf5"),document[Bo("0x75")][Bo("0x10c")](l)
var d={app_id:s,ts:a,d_id:c,r_id:o,uc:Bo("0x2af")}
e[Bo("0xd")][Bo("0x28e")](d,i),t(r,JSON[Bo("0x26b")](d))}catch(e){var f={error:e}
t(r,JSON[Bo("0x26b")](f))}})),globalThis[Bo("0x282")]=!0}}]),e}()
w[Bo("0xd")][Bo("0x286")]=function(e){globalThis[Bo("0x2b0")]=null,new w(e)},w[Bo("0xd")][Bo("0x2b1")]=function(e,t){globalThis[Bo("0x2b2")]=null,new w({globalIntegration:Bo("0x265")},e,t)},w[Bo("0xd")][Bo("0x2b3")]=function(e,t){if(void 0!==t&&void 0!==e){var n=w[Bo("0xd")][Bo("0x2b4")]()
!0===t.onlyOnDemandFlow&&null===n||(t.fpDataCookie=n,null!==n&&(t[Bo("0x274")]=!0),w[Bo("0xd")][Bo("0x2b1")](e,t))}},w[Bo("0xd")][Bo("0x2b4")]=function(){var e=n.getItem(Bo("0x2b5"))
if(!e||""===e)return null
var t=(e=atob(e)).split(Bo("0x2b6"))
if(t[Bo("0x5")]<5)return null
var i={}
return i[Bo("0x2b7")]=t[0],i.memberId=t[1],i[Bo("0x2b8")]=t[2],i[Bo("0x2b9")]=t[3],i[Bo("0x27b")]=t[4][Bo("0x17")](","),i},w[Bo("0xd")].populateFpDataCookie=function(e,t){Bo("0x2ba")==tn(e)&&"object"==tn(t)&&(e[Bo("0x25f")]=t[Bo("0x280")])},w[Bo("0xd")].isProd=function(){var e=location&&location[Bo("0xa9")]
return e&&e[Bo("0x18")](Bo("0x2bb"))>-1&&!e[Bo("0x2bc")](Bo("0x2bd"))},w[Bo("0xd")][Bo("0x2be")]=function(e){return e&&0===Object[Bo("0x1b")](e).length},w[Bo("0xd")][Bo("0x2bf")]=function(){var e=[]
return $t(document[Bo("0x1c7")](Bo("0x2c0"))).forEach((function(t){$t(t[Bo("0x29d")](Bo("0x2c1")))[Bo("0xe")]((function(t){var n=t[Bo("0x1c5")]
if(n){var i=(new DOMParser)[Bo("0x2c2")](n,Bo("0x2c3"))
i&&$t(i[Bo("0x1c7")]("bc"))[Bo("0xe")]((function(t){e[Bo("0x10d")]({src:t.getAttribute(Bo("0x2a7")),style:t.getAttribute(Bo("0xf2")),class:t[Bo("0x2a")]("class"),width:t.getAttribute(Bo("0x66")),height:t[Bo("0x2a")](Bo("0x67"))})}))}}))})),0===e[Bo("0x5")]?null:e[0]},w[Bo("0xd")][Bo("0x287")]=function(e,t){if(null!=e){var n,i,r="bc",o="display:none;",a="1",s="1",c=e[Bo("0x2c4")]
if(this[Bo("0x2c5")]=null,this[Bo("0x288")]=null,null!==(n=this[Bo("0x2bf")]())){r=n[Bo("0x2c6")],o=n[Bo("0xf2")],a=n.width,s=n[Bo("0x67")]
var u=new URL(n[Bo("0x2a7")])
c=u.protocol+"//"+u.host+u[Bo("0xac")],this[Bo("0x2c5")]=u[Bo("0x2c7")][Bo("0x2c8")](Bo("0x2c5")),this[Bo("0x288")]=u[Bo("0x2c7")].get("pageInstance")}else if(void 0!==(i=function(e){var t=arguments[Bo("0x5")]>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],i=n?n.querySelector("#"+e):document[Bo("0x231")](e)
if(i){var r=i[Bo("0x232")][Bo("0x233")]
if(t&&i[Bo("0x234")][Bo("0x10e")](i),r)try{var o=r
return"'"!==o[Bo("0x259")](0)&&'"'!==o.charAt(0)||(o=o.substring(1,o.length-1)),JSON[Bo("0x26a")](o)}catch(e){return}}}("bc_context")))this[Bo("0x2c5")]=void 0===i[Bo("0x2c5")]?null:i[Bo("0x2c5")],this.pageInstance=i[Bo("0x288")]
else{if(void 0===t)return
this[Bo("0x288")]=t[Bo("0x288")]}this[Bo("0x289")]()||(c=c[Bo("0x9d")](/\.linkedin\.com/,".linkedin-ei.com")),null===this[Bo("0x2c5")]&&(this.reqid=l[Bo("0x252")]())
var d=c+"?"+new URLSearchParams({reqid:this[Bo("0x2c5")],pageInstance:this.pageInstance,js:"enabled"})[Bo("0xa")](),f=document[Bo("0x1c7")](Bo("0x2c0"))[0]
null==f&&((f=document[Bo("0xef")](Bo("0xf0"))).setAttribute("id",this[Bo("0x2c5")]),document[Bo("0x75")][Bo("0x10c")](f))
var p=document[Bo("0xef")](Bo("0x2c9"))
p.src=d,p[Bo("0xf2")]=o,p[Bo("0x1c6")]=r,p.width=a,p.height=s,f[Bo("0x10c")](p)}},Bo("0x2ca")!=("undefined"==typeof globalThis?"undefined":tn(globalThis))&&Bo("0x2ca")!=("undefined"==typeof document?"undefined":tn(document))&&Bo("0x2ca")!=("undefined"==typeof window?"undefined":tn(window))&&(globalThis.triggerDnaApfcEvent=w[Bo("0xd")][Bo("0x2b1")],globalThis[Bo("0x2cb")]=w[Bo("0xd")].reentryGlobalIntegrationOnDemand,new w)}()
var Go=function(){function e(){nn(this,e)}return on(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}(),Ho=function(){function e(t,n,i,r,o,a,s,c,l,u,d){nn(this,e),an(this,"hostApis",void 0),an(this,"statics",void 0),an(this,"options",void 0),an(this,"allowTimingOrigin",void 0),an(this,"fireCustomMeasureEvent",void 0),an(this,"fireResourceLoadEvent",void 0),an(this,"isTracerEnabled",void 0),an(this,"responseRleCache",void 0),an(this,"fireApfcEvent",void 0),an(this,"abuseDeviceSignalCollectionConfig",void 0),an(this,"trackingEndpoint",void 0),an(this,"collectResourceTimings",void 0),an(this,"collectCdnData",void 0),an(this,"perfObserver",void 0),an(this,"renderTimings",new Map),an(this,"urlToTreeId",new Map),an(this,"cdnDataProvider",void 0),an(this,"observables",new ao),an(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 Uo(t)),this.trackingEndpointPattern=function(e){if(!e)return"/li/track"
try{return new URL(e).pathname}catch(t){return e}}(this.trackingEndpoint)}return on(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(xo=xo||t.createElement("a")).href=e,xo.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:No(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e,t,n){var i=this.renderTimings.get(e)
if(i&&(i.renderEnd=i.renderEnd||No(this.hostApis.performance,this.allowTimingOrigin),t))return n?this.collectViewLoadEventData(i,n):void or("ViewLoadEvent",io)}},{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=qo(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,eo.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(to).forEach((function(t){var n
t in zr&&void 0!==e[t]&&u.push({resourceProgressType:to[t],duration:null!==(n=e[t])&&void 0!==n?n:-1})})),l.resourceProgressStates=u
var d={},f=no[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),or("ResourceLoadEvent",e)):or("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=Po(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,qo(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?tr(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,c=n.isSyncFingerprintingWithHeadersLixEnabled,l=n.isSyncFingerprintingWithCbLixEnabled
if(r||o||i||c||l){var u,d,f={treeId:null!==(u=null===(d=this.statics.treeId)||void 0===d?void 0:d.toString())&&void 0!==u?u:"",humanIntegrationEnabled:r,dfpIntegrationEnabled:o,dnaIntegrationEnabled:i,samplingTimeWindowInMillis:a,onlyOnDemandFlow:t,isSyncEnabledWithHeaders:c,isSyncEnabledWithCb:l};(!t||t&&s||c||l)&&Go.collectFeatures(f,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=Po(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"])Fi.emit(Lr.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=Ro;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:Mo(this.renderTimings),networkInformationMetrics:Vo(this.hostApis.connection)}
return this.renderTimings.clear(),e}}]),e}()
function Vo(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 qo(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,eo.forEach((function(e){e in i&&(t[e]=i[e])})),t.navigationType=r.type,t.redirectCount=r.redirectCount):t.navigationTimingApi=!1,t}var Ko=function(){function e(t,n,i){nn(this,e),an(this,"featureName",void 0),an(this,"trackingCore",void 0),an(this,"rumConfig",void 0),an(this,"observing",!1),an(this,"basePageTreeId",void 0),an(this,"startPageInstance",void 0),an(this,"startMemory",void 0),an(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=i}return on(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)||Ji(ln),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:Oo(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}()
an(Ko,"checkpoints",[1,3,10,30,90,180,300])
var Wo,Yo,zo,Xo,Qo,Jo=on((function e(t,n,i){nn(this,e),an(this,"webUIFramework",void 0),an(this,"timeSource",void 0),an(this,"isSinglePageApp",void 0),an(this,"appRenderMode",void 0),an(this,"isAppRenderFailed",void 0),an(this,"pageLoadMode","INITIAL"),an(this,"isSSL",void 0),an(this,"treeId",void 0),an(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})),$o=function(){function e(t){nn(this,e),an(this,"isPEMTracerEnabled",void 0),an(this,"responseContextMap",new Map),an(this,"resourceLoadEventsMap",new Map),this.isPEMTracerEnabled=t}return on(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 sr((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 sr((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=Qt(e,jt),i=(t.requestTime,t.viewNames),r=t.requestType,o=t.requestTag,a=Qt(t,Lt)
return n.targetViewNames=i||[],r&&(n.requestType=r),o&&(n.requestTag=o),n.resourceNetworkContext=Ht(Ht({},n.resourceNetworkContext),a),ar(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=Jt(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,s=Jt(o)
try{for(s.s();!(a=s.n()).done;){var c,l=a.value,u=null===(c=this.resourceLoadEventsMap.get(l))||void 0===c?void 0:c.heapClear()
u&&(t=[].concat($t(t),$t(u.map((function(e){return e.requestStart,ar(Qt(e,Ut))})))))}}catch(e){s.e(e)}finally{s.f()}}return t}},{key:"flushCacheByUrl",value:function(e){var t,n=[]
if(!e)return n
if(!this.isPEMTracerEnabled)return(null===(t=this.resourceLoadEventsMap)||void 0===t||null===(t=t.get(e))||void 0===t||null===(t=t.heapClear())||void 0===t?void 0:t.map((function(e){return e.requestStart,ar(Qt(e,Ft))})))||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}(),Zo=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)}},ea=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){}},ta=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)},na=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},ia=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)))}},ra=-1,oa=function(){return"hidden"===document.visibilityState?0:1/0},aa=function(){ta((function(e){var t=e.timeStamp
ra=t}),!0)},sa=function(){return ra<0&&(ra=oa(),aa(),na((function(){setTimeout((function(){ra=oa(),aa()}),0)}))),{get firstHiddenTime(){return ra}}},ca=!1,la=-1,ua=function(e,t){ca||(function(e,t){var n,i=sa(),r=Zo("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:ea("paint",o);(a||s)&&(n=ia(e,r,t),a&&o(a),na((function(i){r=Zo("FCP"),n=ia(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,n(!0)}))}))})))}((function(e){la=e.value})),ca=!0)
var n,i=function(t){la>-1&&e(t)},r=Zo("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=ea("layout-shift",s)
c&&(n=ia(i,r,t),ta((function(){c.takeRecords().map(s),n(!0)})),na((function(){o=0,la=-1,r=Zo("CLS",0),n=ia(i,r,t)})))},da={passive:!0,capture:!0},fa=new Date,pa=function(e,t){Wo||(Wo=t,Yo=e,zo=new Date,ma(removeEventListener),ha())},ha=function(){if(Yo>=0&&Yo<zo-fa){var e={entryType:"first-input",name:Wo.type,target:Wo.target,cancelable:Wo.cancelable,startTime:Wo.timeStamp,processingStart:Wo.timeStamp+Yo}
Xo.forEach((function(t){t(e)})),Xo=[]}},ga=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(){pa(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,da),removeEventListener("pointercancel",i,da)}
addEventListener("pointerup",n,da),addEventListener("pointercancel",i,da)}(t,e):pa(t,e)}},ma=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,ga,da)}))},va=function(e,t){var n,i=sa(),r=Zo("FID"),o=function(e){e.startTime<i.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},a=ea("first-input",o)
n=ia(e,r,t),a&&ta((function(){a.takeRecords().map(o),a.disconnect()}),!0),a&&na((function(){var i
r=Zo("FID"),n=ia(e,r,t),Xo=[],Yo=-1,Wo=null,ma(addEventListener),i=o,Xo.push(i),ha()}))},ya={},ba=function(e,t){var n,i=sa(),r=Zo("LCP"),o=function(e){var t=e.startTime
t<i.firstHiddenTime&&(r.value=t,r.entries.push(e),n())},a=ea("largest-contentful-paint",o)
if(a){n=ia(e,r,t)
var s=function(){ya[r.id]||(a.takeRecords().map(o),a.disconnect(),ya[r.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,s,{once:!0,capture:!0})})),ta(s,!0),na((function(i){r=Zo("LCP"),n=ia(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,ya[r.id]=!0,n(!0)}))}))}))}},Ea=["LCP","FID","CLS"],_a={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},ka={},Ta=function(){var e
if(!gr)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}(),Sa=!1,Aa=new Set,Ca={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"}
function Ia(){var e=!0===window.__test__resetWebVitalsState
if(!Sa||e){e&&(Aa=new Set),Ea.forEach(wa)
var t=Symbol()
Qo=t,[ba,va,ua].forEach((function(e){return e(xa.bind(null,t),!0)})),[ba,va,ua].forEach((function(e){return e(Ra.bind(null,t))})),Sa=!0}}function wa(e){ka[e]={name:e,verboseName:_a[e]||e,value:-1,updateHistory:[]}
var t=Ca[e]
"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(ka[e].value=-2)}function xa(e,t){if(e===Qo){var n=ka[t.name],i=Oo()
n&&(n.updateHistory.push({time:i,data:t}),n.value=t.value),Aa.forEach((function(e){return e(t,i,!1)}))}}function Ra(e,t){e===Qo&&Aa.forEach((function(e){return e(t,Oo(),!0)}))}var Na,Oa=function(){function e(t,n){var i=this
nn(this,e),an(this,"basePageTreeId",void 0),an(this,"basePageKey",void 0),an(this,"observing",!1),an(this,"appContextMap",new Map),an(this,"rumConfig",void 0),an(this,"trackingCore",void 0),an(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 on(e,[{key:"startObserving",value:function(){var e,t,n=this
Ia(),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",Ea.forEach((function(e){var t;-2===(null===(t=ka[e])||void 0===t?void 0:t.value)&&n.reportMetric(e)})),t=this.onMetricUpdate,Aa.add(t))}},{key:"stopObserving",value:function(){var e
this.observing=!1,e=this.onMetricUpdate,Aa.delete(e)}},{key:"reportMetric",value:function(e){var t=ka[e]
if(t){var n={name:_a[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:Ta},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:Do(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:Do(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":Do(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]}
if(this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"ClientPerfMetricsEvent"},r),this.rumConfig["enable-otel"])if("LCP"===e){var o={value:n.longValue,metadata:i}
Fi.emit(Lr.INTERNAL_OTEL_LARGEST_CONTENTFUL_PAINT,o)}else if("CLS"===e){var a={value:n.doubleValue,metadata:i}
Fi.emit(Lr.INTERNAL_OTEL_CUMULATIVE_LAYOUT_SHIFT,a)}else if("FID"===e){var s={value:n.longValue,metadata:i}
Fi.emit(Lr.INTERNAL_OTEL_FIRST_INPUT_DELAY,s)}}}}]),e}(),Da=function(){function e(t){nn(this,e),an(this,"_callTreeId",void 0),an(this,"_fabric",void 0),an(this,"_msEdgeRef",void 0),an(this,"_pointOfPresenceId",void 0),an(this,"_responseMetadata",void 0),an(this,"_contentType",void 0),an(this,"_cdnCacheMetadata",void 0),an(this,"_downstreamAvailability",void 0)
var n=new Map
null==t||t.forEach((function(e,t){n.set(t.toLowerCase(),e)})),this._callTreeId=n.get("x-li-uuid")||null,this._pointOfPresenceId=n.get("x-li-pop")||null,this._msEdgeRef=n.get("x-msedge-ref")||null,this._fabric=n.get("x-li-fabric")||null,this._responseMetadata=n.get("x-li-pem-resp-meta")||null,this._contentType=n.get("content-type")||null,this._cdnCacheMetadata=n.get("x-cache")||null,this._downstreamAvailability=function(e){if(null==e)return 1
var t,n=Jt(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 on(e,[{key:"callTreeId",get:function(){return this._callTreeId}},{key:"pointOfPresenceId",get:function(){return this._pointOfPresenceId}},{key:"microsoftEdgeReference",get:function(){return this._msEdgeRef}},{key:"fabric",get:function(){return this._fabric}},{key:"contentType",get:function(){return this._contentType}},{key:"cdnCacheMetadata",get:function(){return this._cdnCacheMetadata}},{key:"responseMetadata",get:function(){return this._responseMetadata}},{key:"downstreamAvailability",get:function(){return this._downstreamAvailability}},{key:"hasAnyLinkedInHeaders",value:function(){return!!(this._fabric||this._pointOfPresenceId||this._msEdgeRef||this._callTreeId)}}]),e}()
!function(e){e.CLIENT_TIMEOUT="CLIENT_TIMEOUT",e.CLIENT_ABORTED="CLIENT_ABORTED",e.SERVER_ERROR="SERVER_ERROR",e.NETWORK_ERROR="NETWORK_ERROR",e.UNCLASSIFIED="UNCLASSIFIED",e.TOO_MANY_REQUESTS="TOO_MANY_REQUESTS",e.CLIENT_ERROR="CLIENT_ERROR",e.GRAPHQL_FULL_FAILURE="GRAPHQL_FULL_FAILURE",e.BLOCKED_BY_CLIENT_PROXY="BLOCKED_BY_CLIENT_PROXY",e.DOWNSTREAM_GRACEFUL_DEGRADATION="DOWNSTREAM_GRACEFUL_DEGRADATION",e.TRAFFIC_AFD_TO_LI_POP_ERROR="TRAFFIC_AFD_TO_LI_POP_ERROR",e.TRAFFIC_LI_POP_TO_DC_ERROR="TRAFFIC_LI_POP_TO_DC_ERROR"}(Na||(Na={})),on((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,A,C,I,w,x,R,N,O,D=this
nn(this,e),an(this,"core",void 0),an(this,"config",void 0),an(this,"collector",void 0),an(this,"boomerangStart",-1),an(this,"webVitalsObserver",void 0),an(this,"appMemoryObserver",void 0),an(this,"pageMemoryObserver",void 0),an(this,"liveTokens",new Set),an(this,"stateWM",new WeakMap),an(this,"activeToken",void 0),an(this,"isInitial",void 0),an(this,"shouldTrackCustomMeasureEvent",void 0),an(this,"pageLoadId",void 0),an(this,"initialResourcesEvents",[]),an(this,"initialCustomMeasureEvents",[]),an(this,"responseRleCache",void 0),an(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),an(this,"fireApfcEventBound",this.fireApfcEvent.bind(this)),an(this,"isTracerEnabled",void 0),an(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({},Zr),n)
var P="enabled"===(null===(r=(o=i.host).__getLixTreatment)||void 0===r?void 0:r.call(o,"pemberly.tracking.time-origin-epoch-time")),M={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===_?void 0:_.call(k,"pemberly.web.ondemand")),isSyncFingerprintingWithHeadersLixEnabled:"enabled"===(null===(T=(S=i.host).__getLixTreatment)||void 0===T?void 0:T.call(S,"sync.apfc.headers"))||"enabled"===(null===(A=i.host.abuseDeviceSignalCollectionConfig)||void 0===A?void 0:A.syncFingerprintingEnabledWithHeadersLixTreatment),isSyncFingerprintingWithCbLixEnabled:"enabled"===(null===(C=(I=i.host).__getLixTreatment)||void 0===C?void 0:C.call(I,"sync.apfc.couchbase"))||"enabled"===(null===(w=i.host.abuseDeviceSignalCollectionConfig)||void 0===w?void 0:w.syncFingerprintingEnabledWithCbLixTreatment)},j=null===(x=(R=i.host).__getLixTreatment)||void 0===x?void 0:x.call(R,"pemberly.tracking.generic-tracers"),L=!!j&&oo.test(j)
this.isTracerEnabled=L||this.config["enable-tracking-3"]
var U="enabled"===(null===(N=(O=i.host).__getLixTreatment)||void 0===N?void 0:N.call(O,"pemberly.tracking.pem-tracers"))
this.isPEMTracerEnabled=U||this.config["enable-pem-tracking-3"],this.responseRleCache=new $o(this.isPEMTracerEnabled),this.collector=new Ho(i.host.api,new Jo(t,this.config,i.host),this.config,P,(function(e){return D.fireCustomMeasureEvent(e)}),(function(e){return D.fireResourceLoadEvent(e,D.activeToken)}),this.isTracerEnabled,this.responseRleCache,this.fireApfcEventBound,M,i.host.endpoint),this.collector.startObserving(),Fi.before(Di,this.beforeHideHandlerBound)}),[{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:No(this.core.host.api.performance,o),pageKey:e}),this.firePageLoadStartEvent(r)):this.stateWM.set(r,{isInitial:this.isInitial,startTime:No(this.core.host.api.performance,o)}),this.config["enable-memory-measurement"]&&(null===(i=this.pageMemoryObserver)||void 0===i||i.stopObserving(),this.pageMemoryObserver=new Ko("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new Ko("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),r}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new Oa(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=No(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 or("rum-end",ro)}},{key:"onDataResponse",value:function(e,t,n,i,r,o,a){var s=function(e,t,n,i,r){var o=new Da(i),a=function(e,t,n){if(t){if(429===t||999===t)return Na.TOO_MANY_REQUESTS
if(e&&!e.hasAnyLinkedInHeaders()&&t&&t>=400&&t<600)return Na.BLOCKED_BY_CLIENT_PROXY
if((i=t)>=400&&i<500)return Na.CLIENT_ERROR
if(function(e){return e>=500&&e<600}(t))return function(e){if(e){if(e.fabric)return Na.SERVER_ERROR
if(e.pointOfPresenceId)return Na.TRAFFIC_LI_POP_TO_DC_ERROR
if(e.microsoftEdgeReference)return Na.TRAFFIC_AFD_TO_LI_POP_ERROR}return Na.SERVER_ERROR}(e)
if(function(e,t){return!!(e>=200&&e<300&&t&&t.downstreamAvailability<1)}(t,e))return Na.DOWNSTREAM_GRACEFUL_DEGRADATION
if(!n)return null}var i
if(n instanceof Error){if("AbortError"===n.name)return Na.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 Na.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 Na.CLIENT_TIMEOUT
if(0===n.status&&"abort"===n.statusText)return Na.CLIENT_ABORTED
if("readyState"in n&&0===n.readyState)return Na.NETWORK_ERROR}return Na.UNCLASSIFIED}(o,n,r),s=null
return a&&(s={errorType:a},a===Na.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))})),or("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}}(t,n,i,r,o)
if(null!=a&&a.serverSideResponse){var c=this.generateResourceLoadEventFromResponseContext(e,Ht({nextHopProtocol:Wr.UNKNOWN},s))
this.fireResourceLoadEvent(c,this.activeToken)}else this.provisionNetworkResponse(e,s)}},{key:"onOopsPage",value:function(e,t){or("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=zi(),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 or("PageLoadStartEvent",ro)}},{key:"destroy",value:function(){var e,t,n
Fi.offBefore(Di,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:or("PageLoadEndEvent",io),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=function(e){var t,n={issueTime:0,browserId:""},i=Jt(e)
try{for(i.s();!(t=i.n()).done;){var r=t.value.split("=")
if(r.length>1&&"bscookie"===r[0]){var o=decodeURIComponent(r[1]),a=Number(o.substring(4,18)),s=isNaN(a)?0:a,c=o.substring(18,50)
return n.browserId=c,n.issueTime=s,n}}}catch(e){i.e(e)}finally{i.f()}return n}(i)}catch(e){}var o={type:e,bsCookieInfo:r,payload:t}
this.core.fireEvent({appId:this.config["app-id"],eventName:"ApfcEvent"},o)}},{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:Ht({},Qt(t,Bt)),resourceProgressStates:[],timeOrigin:n}
return r&&(o.loadType=r),o}},{key:"triggerDeviceSignalCollection",value:function(e){var t=e.onlyTriggerOnDemandFlow
this.collector.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:t})}}])
var Pa,Ma="undefined"!=typeof window&&"undefined"!=typeof performance,ja="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG")
on((function e(t,n){nn(this,e),an(this,"trackingCore",void 0),an(this,"endPageInstance",void 0),an(this,"startPageInstance",void 0),an(this,"featureIdentifier",void 0),an(this,"marks",[]),an(this,"spans",[]),an(this,"spanStarts",new Map),an(this,"started",!1),an(this,"ended",!1),an(this,"featureKey",void 0),an(this,"productName",void 0),an(this,"flushOnEnd",void 0),an(this,"basePageTreeId",void 0),an(this,"debounceFlush",void 0),an(this,"disableAutoFlush",void 0),an(this,"isCanceled",!1),an(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(Ma){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(Ma){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){Ma&&(this.marks.push({name:e,startTime:Oo()}),ja&&(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){Ma&&(this.spanStarts.set(e,Oo()),ja&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(Ma&&this.spanStarts.has(e)){var n=this.spanStarts.get(e),i=t||e
this.spans.push({name:i,startTime:n,duration:Oo()-n}),ja&&(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){Ma&&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 Oo()}},{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||Ji(ln),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(Ma){if(this.isCanceled)throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" has been canceled'))
if(!this.isClosed)throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" is still open'))}}}]),function(e){e[e.BATCH=0]="BATCH",e[e.FLUSH_ALL=1]="FLUSH_ALL"}(Pa||(Pa={}))
const La=new Map
function Ua(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 Fa(e,t){let n
return n=e?Ua(!0,t):"query"===t.kind||"mutation"===t.kind?Ua(!1,t,{$debug:{name:t.name,kind:t.kind,queryId:t.id,querySource:t.source}}):Ua(!1,t,{$debug:{name:t.name,kind:t.kind}}),La.set(n,t),n}function Ba(e){return La.get(e)}function Ga(e,t){const n=Ba(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 Ha(e){const t=Ba(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 Va="fields",qa=/^(\/[^?]+)\??(.*)$/
function Ka(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:""
const t=qa.exec(e)
if(t){const[,e="",n=""]=t
return{path:e,queryString:n}}return{path:"",queryString:""}}const Wa=/[,()':]/g,Ya=/[,()':]/
function za(e){const t=JSON.parse(JSON.stringify(e))
return function(e){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===Va?`${Va}=${t[Va]}`:`${Qa(e)}=${Xa(t[e],!1)}`)).join("&")}function Xa(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]=Xa(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=>`${Qa(n,t)}:${Xa(e[n],t)}`)).join(",")})`}(e,t):Qa(e,t)}function Qa(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
return""===e?"''":t&&"string"==typeof e&&Ya.test(e)?e.replace(Wa,escape):t?e:encodeURIComponent(e).replace(Wa,escape)}const Ja="application/x-www-form-urlencoded"
function $a(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=("graphql"===e?Za:es)(t,n)
return Object.keys(i).length?"".concat(r,"?").concat(za(i)):r}var Za=function(e,t){var n=ns(e.path),i=ns(e.host),r=e.graphQLPrefix?ns(e.graphQLPrefix):""
return"".concat(i).concat(n).concat(r).concat(t)},es=function(e,t){var n=ns(e.path),i=ns(e.host),r=ts(e.restliPrefix,t)
return"".concat(i).concat(n).concat(r)},ts=function(e,t){return e?"".concat(e).concat(t.substring(0,1).toUpperCase()).concat(t.substring(1)):t},ns=function(e){var t=e.endsWith("/")?"":"/"
return"".concat(e).concat(t)},is=function(e){return e.map((function(e){return function(e){return encodeURIComponent(e).replace(/\(/g,"%28").replace(/\)/g,"%29")}(e)})).join(",")},rs=function(e){return{patch:{$set:e}}},os=Fa(!0,{kind:"query",id:"messengerConversations.5764fd23648159f8b6c109d6929c5912",typeName:"com.linkedin.a48779e96d56416b455684d54ca0a605",name:"find-conversations-by-category"}),as=Fa(!0,{kind:"query",id:"messengerConversations.bbf8fb8117487d8f362411591aa04297",typeName:"com.linkedin.e8f9114c687e26ae0f6bb2f3aed7022e",name:"find-conversations-by-category-with-draft-messages"}),ss=Fa(!0,{kind:"query",id:"messengerConversations.45338e053010d1c19147f92de6de3ae6",typeName:"com.linkedin.d1fb3489010b7b4592896e7b73531a11",name:"find-conversations-by-category-v2"}),cs=Fa(!0,{kind:"query",id:"messengerConversations.44030325d8f59d8cebbb804f16d6b0a3",typeName:"com.linkedin.637753efb2e5d51c7275035cac9b4c5f",name:"find-conversations-by-recipients"}),ls=Fa(!0,{kind:"query",id:"messengerConversations.aa65e6cc6baba93d9eeb446e6f1e1fa4",typeName:"com.linkedin.acb9c77ea9ee4824540470a52e862cb6",name:"find-conversations-by-recipients-with-draft-messages"}),us=Fa(!0,{kind:"query",id:"messengerConversations.786d58e5dbb03604d8f4787d188914a5",typeName:"com.linkedin.c3d42ec0291728dbe7f3aced6f0826e5",name:"find-conversations-by-search-criteria"}),ds=Fa(!0,{kind:"query",id:"messengerConversations.3c2b4bf09da777f77243c2d1e4241efe",typeName:"com.linkedin.2ea17ec4179cae6d69aea80ad2907b8e",name:"find-conversations-by-search-criteria-with-draft-messages"}),fs=Fa(!0,{kind:"query",id:"messengerConversations.eda3d96168199a222c789b06375d6b71",typeName:"com.linkedin.47459727fe9dc4c6dd28af91d35c3bea",name:"get-conversation-by-id"}),ps=Fa(!0,{kind:"query",id:"messengerMessages.bd04c119de7c294fb05082ea1f79c904",typeName:"com.linkedin.5ead02a2479291ebdce3f63ac66fbe93",name:"get-messages-by-conversation"}),hs=Fa(!0,{kind:"query",id:"messengerMessages.90abe2bc64df3bc3e1323a1479989b49",typeName:"com.linkedin.f06a0d9d67201ccfd952b77289ff240e",name:"get-messages-by-timestamp"}),gs=Fa(!0,{kind:"query",id:"messengerConversations.e4a6422e4307f129438f708c00146863",typeName:"com.linkedin.2a7f21c8d98d18e3a6c802f0dd8d222d",name:"get-conversations-by-ids"}),ms=Fa(!0,{kind:"query",id:"messengerConversationDrafts.b937ccb44048d8fe187413adc473ea2c",typeName:"com.linkedin.27e9b28448d52f2ed882cf44acde8e93",name:"get-conversation-drafts-by-id"}),vs=Fa(!0,{kind:"query",id:"messengerConversations.465e1c29fccec848f4858e648caf7993",typeName:"com.linkedin.5f8e1fc75eaa830e76c6ee84eb4d68f1",name:"get-conversations-by-ids-with-draft-messages"}),ys=Fa(!0,{kind:"query",id:"messengerMessages.a1b0330b9c34bd003c0043ecc898f6d5",typeName:"com.linkedin.9103982cbb84a6713a12118e18d0aede",name:"get-messages"})
Fa(!0,{kind:"query",id:"messengerMessageDrafts.096def805d9ee231ae9995cf1e58422e",typeName:"com.linkedin.6f29433b666b615cc843d0c53e498d90",name:"get-message-draft"})
var bs=Fa(!0,{kind:"query",id:"messengerMailboxCounts.fc528a5a81a76dff212a4a3d2d48e84b",typeName:"com.linkedin.7455e0e579fcb3a34f96eb0eefe7a411",name:"get-mailbox-unreadcounts"}),Es=Fa(!0,{kind:"query",id:"messengerQuickReplies.4338d226319203b5b08920ab7621fa45",typeName:"com.linkedin.4c7816368899aefc0404a81a21b89aad",name:"get-quick-replies-by-conversation"}),_s=Fa(!0,{kind:"query",id:"messengerMessagingParticipants.78d3382cd5f9cc5164c551268467dee0",typeName:"com.linkedin.17d2b5b00f250b93fa250e00473c98a2",name:"get-reactors-by-message-and-emoji"}),ks=Fa(!0,{kind:"query",id:"messengerSeenReceipts.2a64b8e3dacc77e4fe0737d1197c2e83",typeName:"com.linkedin.33851ce67c1a444c09e057014b5c4d81",name:"get-seen-receipts-by-conversation"}),Ts=Fa(!0,{kind:"query",id:"messengerConversations.79f5a7753e548d86a69eadd8c64b83e0",typeName:"com.linkedin.bc13e1b1426cc03e36eab503d342cabe",name:"initial-sync-conversations"}),Ss=Fa(!0,{kind:"query",id:"messengerConversations.5339eec8d009ca8100699a59afc3b00d",typeName:"com.linkedin.32b55b4f3ec7108778d6b970a11c60bb",name:"initial-sync-conversations-with-draft-messages"}),As=Fa(!0,{kind:"query",id:"messengerConversations.33c5bfbf15b112da638fee15f77f5e33",typeName:"com.linkedin.2a25dae6962f40be897d5ffe00289c5c",name:"mark-all-conversations-as-read"}),Cs=Fa(!0,{kind:"query",id:"messengerMessageDrafts.5d3cf7b2a2b3552a624725e5316d3799",typeName:"com.linkedin.0744c9008c1be0c2e872c8b3c1f08b6b",name:"message-draft-by-conversation-batch"}),Is=Fa(!0,{kind:"query",id:"messengerConversations.1845647e4c64f196c7bc5c586b496ed2",typeName:"com.linkedin.13baefbc2d95f2e6498312456b544fc4",name:"sync-conversations"}),ws=Fa(!0,{kind:"query",id:"messengerMessages.455dde239612d966346c1d1c4352f648",typeName:"com.linkedin.c38c518a13ae3dfabbd000dba2c1323a",name:"sync-messages"}),xs=Fa(!0,{kind:"query",id:"messengerMessages.dd1bcbce39e012291b6ef6d875f0c42b",typeName:"com.linkedin.d517c530e9e9e6efa128b8e0e66d8226",name:"sync-messages-by-convo-id-in-batch"}),Rs=Fa(!0,{kind:"query",id:"messengerMailboxRealtimeSubscriptionAuthorizationTokens.1a3b0efc0a0a2c24c23367b5f8a25e62",typeName:"com.linkedin.606462b788cb71b5e1a280f01897a453",name:"realtime-subscription-auth-tokens"})
Fa(!0,{kind:"mutation",id:"messengerMessageDrafts.2cf9ab96f9203dcfb41c51cc8a81d024",typeName:"com.linkedin.755dfb6105c9f45ad1ddc0ab8f011f1c",name:"create-message-draft"})
var Ns,Os=Fa(!0,{kind:"query",id:"messengerConversationDrafts.81e7667d4dba5c5ef30c9fa222f75466",typeName:"com.linkedin.7fc0da333aea2c9354131839f14b2f90",name:"find-conversation-drafts-by-recipients"}),Ds=Fa(!0,{kind:"query",id:"messengerMessageDrafts.610f9f61cc614f0081560e7faebbcc89",typeName:"com.linkedin.f40d5176dd6d2c81ad2a5c8194778353",name:"get-message-drafts-by-mailbox"}),Ps=function(){return Ki()},Ms=function(e){return function(t){return function(e,t){if(!Ga(e,"query")){var n=Oe.GRAPHQL_INVALID_LOOKUP
throw new Ue({namespace:"graphql",code:n.code,msg:n.message})}if(function(e){return Ga(e,"fragment")}(e)){var i=Oe.CANNOT_QUERY_FRAGMENT
throw new Ue({namespace:"graphql",code:i.code,msg:i.message})}var r={}
try{"full"===t.queryFormat?r.query=function(e){const t=Ba(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=Ha(e)}catch(t){r.queryId=Ha(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||{},$a("graphql",t.messengerResource,"graphql",r)}(e,t,arguments.length<=1?void 0:arguments[1])}},js=Ms(fs),Ls=Ms(Ts),Us=Ms(Ss),Fs=Ms(bs),Bs=Ms(os),Gs=Ms(as),Hs=Ms(ss),Vs=Ms(cs),qs=Ms(ls),Ks=Ms(us),Ws=Ms(ds),Ys=Ms(gs),zs=Ms(ms),Xs=Ms(vs),Qs=Ms(ys),Js=Ms(ps),$s=Ms(hs),Zs=Ms(ks),ec=Ms(Is),tc=Ms(ws),nc=Ms(xs),ic=Ms(As),rc=Ms(_s),oc=Ms(Es),ac=Ms(Os),sc=Ms(Cs),cc=Ms(Rs),lc=Ms(Ds),uc=function(e){return $a("restli",e.messengerResource,"messengerMessages",{action:"createMessage"})},dc=uc
Ns=Symbol.iterator
var fc=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(N).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:Ns,value:function(){return this}},{key:"map",value:function(e){return Array.from(this,e)}},{key:"updateAny",value:function(t,n){return new e(I(t,n)(this._messages))}},{key:"updateByUrn",value:function(t,n){return this._entityUrnIndex.has(t)?new e(w(Ye(t),et(n))(this._messages)):this}},{key:"updateByClientId",value:function(t,n){return this._clientIdIndex.has(t)?new e(w(ze(t),et(n))(this._messages)):this}},{key:"add",value:function(t){var n=this,i=t.filter(Nt(F,ut(this._entityUrnIndex,this._clientIdIndex))).map((function(e){return n._clientIdIndex.has(e.clientId)?o(o({},e),{},{clientId:Ps()}):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(_(s),_(r),_(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}(),pc={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:""},hc=function(e){return e?e.filter(N):[]},gc=function(e){var t,n,i,r=new Date
return{additionalData:e.additionalData||null,backendConversationUrn:e.backendConversationUrn,backendUrn:e.backendUrn,clientId:e.clientId||Ps(),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:mc(e.reactions),retries:e.retries||0,senderUrn:e.senderUrn,status:e.status||"Pending",subject:e.subject}},mc=function(e){return(e||[]).filter(N).map((function(e){return o(o({},e),{},{reactors:[]})}))},vc=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(N),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(N))&&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(N),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(N).map((function(e){return e.hostIdentityUrn})).filter(N).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}},yc=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:Ps(),content:null!=n?n:{text:"",attributes:[]},lastEditedAt:u,optionalSendData:null!=i?i:{renderContent:[]},senderUrn:e,status:t,subject:r},s&&{entityUrn:s})},bc=function(e,t){var n=t.optionalSendData?Ze(e.optionalSendData,t.optionalSendData):e.optionalSendData
return o(o(o({},e),t),{},{optionalSendData:n})},Ec=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"}},_c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yc(e,"Local"),i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Ps(),a={lastEditedAt:n.lastEditedAt,clientId:r,draftMessage:n,isDraft:!0,messages:new fc,recipients:t,sending:"Ready"}
return i&&(a=o(o({},a),{},{entityUrn:i})),a},kc=function(e){return _(e?e.filter(N).map((function(e){return Sc(e)})):[])},Tc=function(e,t,n){var i,r,o,a,s,c,l,u,d,f,p,h,g,m,v,y,b,E,_
if(!e.entityUrn)throw Ue.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",xe("conversationResponseToState(): convoResponse.entityUrn is null or undefined"))
var k=e.creator&&e.creator.hostIdentityUrn?Sc(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(N))&&void 0!==i?i:[],S=Pc(T),A=S.messages,C=S.participants,I=e.conversationParticipants.filter(N),w=kc(I),x=I.map((function(e){return e.hostIdentityUrn})),R=bt(C,w),O=R
w.length!==R.length&&(O=R.filter((function(e){return x.includes(e.hostIdentityUrn)})))
var D,P=null===(a=e.draftMessages)||void 0===a||null===(s=a.elements)||void 0===s?void 0:s.filter(N).filter(wc)
if(null!=P&&P.length){var M,j=mt(P)[0]
D=yc(j.author.hostIdentityUrn,"Server",j.body,void 0,null!==(M=j.subject)&&void 0!==M?M:void 0,j.originToken,j.entityUrn,j.lastEditedAt)}else D=t
var L=null!==(c=null===(l=e.creator)||void 0===l?void 0:l.hostIdentityUrn)&&void 0!==c?c:void 0,U={additionalData:null,backendUrn:e.backendUrn,categories:e.categories.filter(N),clientId:Ps(),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:L,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(N))&&void 0!==g?g:[],draftMessage:D,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(N),incompleteRetriableData:e.incompleteRetriableData,isDraft:!1,lastEditedAt:D.lastEditedAt,lastActivityAt:new Date(e.lastActivityAt),lastReadAt:e.lastReadAt?new Date(e.lastReadAt):void 0,matchingSearches:n?[n]:[],messages:new fc(A),metadata:{prevCursor:void 0,syncToken:void 0},notificationStatus:e.notificationStatus,participants:O.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!==(_=e.title)&&void 0!==_?_:void 0,typingUrns:new Set,unreadCount:e.unreadCount}
return k&&!R.find((function(e){return e.hostIdentityUrn===k.hostIdentityUrn&&"EMPTY"!==e.kind}))&&R.push(k),[U,R]},Sc=function(e){var t,n,i
if(!e.hostIdentityUrn)throw Ue.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",xe("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:Ps(),entityUrn:e.entityUrn,hostIdentityUrn:e.hostIdentityUrn,backendUrn:e.backendUrn,name:s.name,image:s.image,showVerificationBadge:e.showVerificationBadge,showPremiumInBug:e.showPremiumInBug,memberBadgeType:e.memberBadgeType}
if(a)return{kind:"ORGANIZATION",additionalData:null,clientId:Ps(),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,T={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(N)}:void 0}
return{kind:"MEMBER",additionalData:null,clientId:Ps(),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:T,showVerificationBadge:e.showVerificationBadge,showPremiumInBug:e.showPremiumInBug,profileFrameA11yContent:null!==(v=null===(y=o.profileFrameA11yContent)||void 0===y?void 0:y.text)&&void 0!==v?v:"",memberBadgeType:e.memberBadgeType,preview:null!==(b=e.preview)&&void 0!==b&&b.previewTitle?{previewTitle:null===(E=e.preview)||void 0===E?void 0:E.previewTitle,descriptionText:null!==(_=null===(k=e.preview)||void 0===k?void 0:k.descriptionText)&&void 0!==_?_:void 0}:void 0}}}return{kind:"EMPTY",additionalData:null,clientId:Ps(),entityUrn:e.entityUrn,hostIdentityUrn:e.hostIdentityUrn,backendUrn:e.backendUrn}},Ac=function(e){return null!==e},Cc=function(e,t){var n,i=null===(n=e.data)||void 0===n?void 0:n.messengerConversationsByRecipients.elements.filter(Ac)
if(!i)throw Ue.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",xe("recipientConversationsToState(): messengerConversationsByRecipients response does not contain non-null elements"))
return Oc(i,yc(t,"Local"))},Ic=function(e){var t=mt(e),n=t.filter($),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(Ac(i)&&n&&r){var u=Lc(hc(a)).data,d=yc(n,"Server",r,u,null!=l?l:void 0,s,o,c),f=E(Tc(i,d),2),p=f[0]
return f[1].forEach((function(e){t[e.hostIdentityUrn]=e})),p}})).filter(N)
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=Lc(hc(a)).data,d=yc(n,"Server",r,u,null!=l?l:void 0,c,o,s),f=i.conversationDraftParticipants.filter(N),p=f.map((function(e){return e.hostIdentityUrn})).filter(N).filter((function(e){return e!==n})),h=_c(n,p,d,i.entityUrn)
return kc(f).forEach((function(e){t[e.hostIdentityUrn]=e})),h}})).filter(N)
return{draftConvoStatesWithMsgDrafts:n,draftConvoParticipants:t}}(i)
return{draftConvoStatesWithMsgDrafts:s.draftConvoStatesWithMsgDrafts,draftConvoParticipants:s.draftConvoParticipants,convoStatesWithMsgDrafts:o,convoParticipants:a}},wc=function(e){var t
return!(null===(t=e.body)||void 0===t||!t.text)},xc=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 gc(d)},Rc=function(e,t){var n,i=null===(n=e.data)||void 0===n?void 0:n.messengerConversationsByIds
if(!i)throw Ue.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",xe("getConversationsToState(): messengerConversationsByIds response is missing"))
return o(o({},Oc(i,yc(t,"Local"))),{},{requestId:e.requestId})},Nc=function(e){return e&&e.length?e.reduce((function(e,t){return function(e,t){if(t&&t.participantType&&!e[t.entityUrn]){var n=Sc(t)
return o(o({},e),{},p({},n.hostIdentityUrn,n))}return e}(e,t)}),{}):{}},Oc=function(e,t){var n={},i=e.filter(Ac).map((function(e){var i=E(Tc(e,t),2),r=i[0]
return i[1].forEach((function(e){n[e.hostIdentityUrn]=e})),r}))
return{conversations:i,participants:n}},Dc=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(N),f=Pc(d)
return{messages:new fc(f.messages),newSyncToken:c,shouldClearCache:l,deletedUrns:u,participants:f.participants,requestId:t}},Pc=function(e){var t=Nc(e.reduce((function(e,t){return[].concat(_(e),[t.sender])}),[])),n=e.reduce((function(e,t){var n=function(e){var t,n,i,r
if(!e.sender.hostIdentityUrn)throw Ue.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",xe("singleMessageAndParticipantsToState(): sender hostIdentityUrn is missing"))
var o=Sc(e.sender),a=Lc(hc(e.renderContent)),s=a.data,c=a.participants,l=e.actor?Sc(e.actor):void 0,u=bt([o],c)
return{participants:(l?bt(u,[l]):u).sort(),message:{additionalData:null,clientId:e.originToken||Ps(),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:mc(e.reactionSummaries),retries:0,senderUrn:e.sender.hostIdentityUrn,status:"Delivered"}}}(t),i=n.participants,r=n.message
return{messages:[].concat(_(e.messages),[r]),participants:bt(i,e.participants)}}),{messages:[],participants:[]}),i=bt(n.participants,P(t).filter(N))
return i.sort(),{messages:n.messages,participants:i}},Mc=function(e){return"search"===e.kind},jc=function(e){if(!e.data||!e.data.messengerMailboxCountsByMailbox||!e.data.messengerMailboxCountsByMailbox.elements)throw Ue.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",xe("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(N),e.requestId)},Lc=function(e){var t={}
return{data:{renderContent:e.filter(N).map((function(e){var n,i,r=e.forwardedMessageContent?(n=e.forwardedMessageContent,i=Sc(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({},D("forwardedMessageContent")(e)),{},{forwardedMessageContent:a})}))},participants:P(t).filter(N)}},Uc=function(e){return N(e.extensions)&&N(e.extensions.status)},Fc=function(e,t){var n=e.errors
if(n){var i=n.map((function(e){return Ue.buildGraphQLPayloadError(e,t)})),r=n.filter(Uc).map((function(e){return e.extensions.status}))
throw Ue.fromApiErrorMemo("ERRORS_IN_RESPONSE",xe("queryName: ".concat(t,"()"),i,r))}},Bc=function(e){return e&&e.length?e.reduce((function(e,t){return o(o({},e),{},p({},t.hostIdentityUrn,t))}),{}):{}}
function Gc(e){return fetch(e)}const Hc=Symbol.for("_DATA_EDEN_TRACKING_INFO_PER_FETCH");(()=>{let e=globalThis,t=e[Hc]
t||(t=e[Hc]=new WeakMap)})()
var Vc="undefined"!=typeof window&&window&&"node"!==window.appEnvironment
function qc(e){return Kc.apply(this,arguments)}function Kc(){return(Kc=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 Wc(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 Yc,zc=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,Vc&&"undefined"!=typeof document){e.next=3
break}return e.abrupt("return",n(t))
case 3:return e.next=5,qc(t)
case 5:if(!(i=e.sent)){e.next=8
break}return e.abrupt("return",Wc(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)}}(),Xc=0,Qc=null,Jc=function(){return Xc+=1},$c={accept:"application/graphql","x-restli-protocol-version":"2.0.0"},Zc=function(e){$c=o(o({},$c),e())},el=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($c).forEach((function(e){t.headers.set(e,$c[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)}}(),tl=function(e){var t,n=Jc(),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}=Ka(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}(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}=Ka(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: "+Ja,"",n,"--"+t,"Content-Type: application/json","",e.body,"--"+t+"--"].join("\r\n")}else o=Ja,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}(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 Ue.fromClientErrorMemo("INVALID_URL")}(0,e),r=i.url,o=i.request
return Yc&&Zc(Yc),function(e,t){return Qc||(Qc=function(e){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 t=Gc
let n
const i=[...e].reverse().reduce(((e,t)=>async i=>t(i,e,{fetch:n})),t)
n=async(e,t)=>{const n=new Request(e,t)
return i(n)}
{const t=new Error
n.$debug={get creationStack(){return t.stack},get middlewares(){return e}}}return n}([el,zc])),Qc(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}}))},nl=function(e,t){var n=Jc()
return Yc&&Zc(Yc),fetch(e,{headers:o(o({},$c),{},{accept:"application/json"}),body:t,method:"POST"}).then((function(e){return{response:e,requestId:n}}))},il=function(e){var t=Jc()
return fetch(e,{headers:o({"x-restli-protocol-version":"2.0.0"},$c),method:"DELETE"}).then((function(e){return{response:e,requestId:t}}))},rl=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=$a("restli",e.messengerResource,t,n),r=Jc()
return fetch(i,{headers:o({"x-restli-protocol-version":"2.0.0"},$c),method:"DELETE"}).then((function(e){return{response:e,requestId:r}}))},ol={exports:{}},al="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)
if(al){var sl=new Uint8Array(16)
ol.exports=function(){return al(sl),sl}}else{var cl=new Array(16)
ol.exports=function(){for(var e,t=0;t<16;t++)!(3&t)&&(e=4294967296*Math.random()),cl[t]=e>>>((3&t)<<3)&255
return cl}}for(var ll=ol.exports,ul=[],dl=0;dl<256;++dl)ul[dl]=(dl+256).toString(16).substr(1)
var fl,pl,hl=function(e,t){var n=t||0,i=ul
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("")},gl=ll,ml=hl,vl=0,yl=0,bl=ll,El=hl,_l=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||bl)()
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||El(r)},kl=_l
kl.v1=function(e,t,n){var i=t&&n||0,r=t||[],o=(e=e||{}).node||fl,a=void 0!==e.clockseq?e.clockseq:pl
if(null==o||null==a){var s=gl()
null==o&&(o=fl=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=pl=16383&(s[6]<<8|s[7]))}var c=void 0!==e.msecs?e.msecs:(new Date).getTime(),l=void 0!==e.nsecs?e.nsecs:yl+1,u=c-vl+(l-yl)/1e4
if(u<0&&void 0===e.clockseq&&(a=a+1&16383),(u<0||c>vl)&&void 0===e.nsecs&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")
vl=c,yl=l,pl=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||ml(r)},kl.v4=_l
var Tl=kl
const Sl="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions"
class Al{constructor(e,t){this._collectedFeatureMetrics=e,this._fireEventCallback=t}}class Cl extends Al{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 Il{constructor(e){this._featureCallCounts=new Map,this._pageInstance=e}get pageInstance(){return this._pageInstance}get featureCallCounts(){return this._featureCallCounts}}class wl{constructor(e){this.featureMetricIdentifier=e}}function xl(e){return JSON.stringify(e,Object.keys(e).sort())}class Rl extends Il{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=xl(e)
if(this.featureCallCounts.has(n))t(this.featureCallCounts.get(n))
else{const i=new Nl(e)
t(i),this.featureCallCounts.set(n,i)}}}class Nl extends wl{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 Ol{flushMetrics(){const e=[...this.metrics.values()]
return this.metrics=new Map,e}}class Dl extends Ol{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=xl(e)
if(this.metrics.has(n))t(this.metrics.get(n))
else{const i=new Rl(e)
t(i),this.metrics.set(n,i)}}}var Pl
!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"}(Pl||(Pl={}))
const Ml=new Set(Object.values(Pl))
class jl extends Error{constructor(e){super(e),Object.setPrototypeOf(this,jl.prototype)}}function Ll(e){return 0===e.length||!e.trim()}function Ul(e){if("string"!=typeof e)throw new jl(`The product name must be a string. ${Sl}.`)
if(Ll(e))throw new jl(`No product name was specified. Please configure a defaultProductName or specify it per instrumented API call. ${Sl}.`)
if(/[^a-zA-Z0-9-_ \\/]/.test(e))throw new jl(`Product name '${e}' can only contain alphanumeric, underscores (_), spaces ( ), dashes (-) and forward slashes (/). ${Sl}.`)
return e}function Fl(e){if("string"!=typeof e)throw new jl(`Keys must be strings. ${Sl}.`)
if(Ll(e))throw new jl(`Keys should not be blank. ${Sl}.`)
if(/[^a-z0-9-]/.test(e))throw new jl(`'${e}' can only contain lowercase alphanumeric characters and dashes (-). ${Sl}.`)
return e}class Bl{constructor(e,t,n){var i,r,o
if(this._shouldEnablePerformanceMeasurement=!1,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._featureKey=Fl(e),this._defaultDegradationKey=Fl(t),!n)return this._additionalDegradedResponseCodes=[],this._nonDegradedResponseCodes=[],void(this._degradationKeyOverrides=[])
if("object"!=typeof n)throw new jl(`DegradationTrackingMetadata options should be an object. ${Sl}.`)
const a=n.productName
a&&(this._productName=Ul(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 jl(`Please only specify positive integer response codes between 1 and 999 for the ${t} option. ${e} was specified. ${Sl}.`)
var n
if(429===e||999===e)throw new jl(`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===Pl.NonDegradedResponseCodes&&e>=400&&e<500)throw new jl(`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 ${Pl.AdditionalDegradedResponseCodes} option. Please remove ${e} from the ${Pl.NonDegradedResponseCodes} option. ${Sl}.`)}
if(void 0!==e&&!Array.isArray(e))throw new jl(`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 ${Pl.NonDegradedResponseCodes} option. ${Sl}.`)
if(void 0!==t&&!Array.isArray(t))throw new jl(`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 ${Pl.AdditionalDegradedResponseCodes} option. ${Sl}.`)
null==e||e.forEach((e=>n(e,Pl.NonDegradedResponseCodes))),null==t||t.forEach((e=>n(e,Pl.AdditionalDegradedResponseCodes)))
const i=new Set(t),r=new Set(e)
if([...i].some((e=>r.has(e))))throw new jl(`Response codes can't be both degraded and non-degraded. Please ensure that your additionalDegradedResponseCodes and nonDegradedResponseCodes don't have any overlapping response codes. ${Sl}.`)}(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(!Ml.has(e))throw new jl(`An unsupported degradation tracking option '${e}' was provided. Please fix or remove it. ${Sl}`)}))}(n)}static isDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(Bl.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 Gl{constructor(e){this._degradationTrackingMetadata=e,this._featureMetricStore=new Dl,this._lastRequestMetricStore=new Dl,this._requestsMade=0,this._trackingId=Tl.v4()}static isRetryableDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(Gl.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 Hl extends Bl{static isFailureTrackingMetadata(e){return"object"==typeof e&&(null==e?void 0:e.constructor.name)===Hl.name}}class Vl{constructor(e,t){if(this._additionalDegradedResponseCodes=new Set,this._degradationKeyByResponseCode=new Map,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._retryableTrackingMetadata=null,!Gl.isRetryableDegradationTrackingMetadata(e)&&!Bl.isDegradationTrackingMetadata(e)&&!Hl.isFailureTrackingMetadata(e))throw new jl("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 jl("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=Bl.isDegradationTrackingMetadata(e)?e:void 0
Gl.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 jl(`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. ${Sl}.`)
this._additionalDegradedResponseCodes.add(e)}))}initializeDegradationKeyOverrides(e){e.forEach((e=>{if(!e.responseCodesToOverride||!e.degradationKey||!Array.isArray(e.responseCodesToOverride)||"string"!=typeof e.degradationKey)throw new jl(`Degradation key overrides must consist of an array of responseCodesToOverride and a string degradationKey. ${Sl}.`)
new Set(e.responseCodesToOverride).forEach((t=>{if(!this.canResponseCodeCountAgainstAvailability(t))throw new jl(`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 ql{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 Kl{constructor(e,t,n,i){this._responseCode=e||null,this._parsedResponseHeaders=t?new ql(t):new ql,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 Wl="undefined"==typeof FastBoot
function Yl(e){e._metricsInterval&&window.clearInterval(e._metricsInterval),window.removeEventListener("visibilitychange",e._visibilityListener)}class zl{constructor(e,t,n){this._featureMetricStore=new Dl,this._visibilityListener=()=>{"hidden"===document.visibilityState&&this._metricSender.produceMetricEvent(!0)},this._defaultProductName=e,this._fireEventCallback=t,this._jetErrorCallback=n,this._metricSender=new Cl(this._featureMetricStore,t),Wl&&(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 zl.startRetryFlow(e)}static startRetryFlow(e){return new Gl(e)}completeRetryFlow(e){if(!Gl.isRetryableDegradationTrackingMetadata(e))throw new jl("retryFlowMetadata must be an instance of RetryableDegradationTrackingMetadata")
e.flushMetricStoreToServiceStore(this._featureMetricStore)}_trackResponse(e,t,n,i,r,o,a){const s=new Kl(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),Gl.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 jl(`Please specify a non-empty array of degradation tracking metadata. ${Sl}.`)
const t=new Set
return e.map((e=>{if(!Bl.isDegradationTrackingMetadata(e)&&!Gl.isRetryableDegradationTrackingMetadata(e))throw new jl(`Please use DegradationTrackingMetadata or RetryableDegradationTrackingMetadata to specify the degradations. ${Sl}.`)
const n=Ul(e.productName||this._defaultProductName),i=`${n}!!${e.featureKey}`
if(t.has(i))throw new jl("More than one degradation tracking metadata has the same productName/featureKey combination. Please merge them together")
return t.add(i),new Vl(e,n)}))}_getAndValidateUrlEntityIDs(e){if(!Array.isArray(e))throw new jl(`Please specify the queried IDs to remove from the request URL, or use an empty array if there are none. ${Sl}.`)
return e}}var Xl={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"},Ql=function(e,t,n){},Jl=function(){},$l=function(e){return function(t,n,i,r){e(t,n)}},Zl=function(){function e(){u(this,e)}return f(e,null,[{key:"getInstance",value:function(e,t,n){return this.instance||(this.instance=new zl(e,$l(t),null!=n?n:Ql)),this.instance}},{key:"resetInstance",value:function(){this.instance=null}}]),e}()
p(Zl,"instance",null)
var eu=function(e,t,n,i){return function(){var r=e.track
return r?Nt(r(t,"READ",n,i),tl)(t):tl(t)}},tu=function(e,t,n,i){return function(){var r=e.track
return r?Nt(r(t,"SEARCH",n,i),tl)(t):tl(t)}},nu=function(e,t,n,i){return function(r){var o=e.track
return o?Nt(o(t,"WRITE",n,i),nl)(t,r):nl(t,r)}},iu=function(e,t,n,i,r){return function(o){var a,s=e.track
switch(t){case"GET":a=tl
break
case"POST":a=nl
break
case"DELETE":a=il}return s?o?Nt(s(n,i,r),a)(n,o):Nt(s(n,i,r),a)(n):o?a(n,o):a(n)}},ru=function(e){return function(t){return Me(t)?Promise.reject(t):Promise.reject(Ue.fromApiErrorMemo("NETWORK_ERROR",{cause:t,msg:e,originalStatusCodes:[]}))}},ou=function(e,t){return function(n){var i=Le(n),r=i?n:{status:500,statusText:"NO_STATUS_OR_STATUS_TEXT"},o=r.statusText||r.message||"NO_STATUS_TEXT",a="".concat(e,"() failed with statusText: ").concat(o)
if(!i&&"string"==typeof n){var s=new Ue({namespace:"api",code:t.status,msg:a,apiResponseError:r,cause:{message:n}})
return Promise.reject(s)}var c=new Ue({namespace:"api",code:t.status,msg:a,apiResponseError:r})
return Promise.reject(c)}},au=function(e,t,n){var i,r=(null===(i=t.headers)||void 0===i?void 0:i.get("content-type"))||""
return!n||null!=r&&r.includes("application/json")?t.json().catch((function(t){return Promise.reject(Ue.fromApiErrorMemo("RESPONSE_INVALID_JSON",xe("method: ".concat(e,"()"),t)))})).then(ou(e,t)):t.text().catch((function(t){return Promise.reject(Ue.fromApiErrorMemo("RESPONSE_PARSE_TEXT_ERROR",xe("method: ".concat(e,"()"),t)))})).then(ou(e,t))},su=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
return function(n){var i=n.requestId,r=n.response
return r?r.ok?r.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})}}(i)).catch((function(t){return Promise.reject(Ue.fromApiErrorMemo("RESPONSE_INVALID_JSON",xe("method: ".concat(e,"()"),t)))})):au(e,r,t):Promise.reject(Ue.fromApiErrorMemo("NO_RESPONSE_RECEIVED",xe("method: ".concat(e,"()"))))}},cu=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
return function(n){var i=n.response,r=n.requestId
return i?i.ok?Promise.resolve({requestId:r}):au(e,i,t):Promise.reject(Ue.fromApiErrorMemo("NO_RESPONSE_RECEIVED",xe("method: ".concat(e,"()"))))}},lu=function(e,t,n,i,r){var o="getConversationsByIdsAPI",a=(r?Xs:Ys)(e,{conversationIds:t,count:n}),s=e.experimental||{},c=s.isCyPemMetricsEnabled,l=s.isHeaderContentTypeJsonCheckEnabled,u=su(o,!!l)
return(c?iu(e,"GET",a,Xl[o],i):eu(e,a,o,i))().catch(ru(o)).then(u)},uu={category:"INBOX",count:20},du=function(e,t,n,i,r){var o="findConversationsByRecipientsAPI",a=(r?qs:Vs)(e,{mailboxUrn:t,recipients:n}),s=e.experimental||{},c=s.isCyPemMetricsEnabled,l=s.isHeaderContentTypeJsonCheckEnabled,u=su(o,!!l)
return(c?iu(e,"GET",a,Xl[o],i):eu(e,a,o,i))().then(u).catch(ru(o))},fu={count:20,start:0,sortOrder:"DESCENDING"},pu=function(e,t,n,i){var r="updateConversationAPI",o=e.experimental||{},a=o.isCyPemMetricsEnabled,s=o.isHeaderContentTypeJsonCheckEnabled,c=cu(r,!!s),l=function(e,t){var n="messengerConversations/".concat(encodeURIComponent(t))
return $a("restli",e.messengerResource,n)}(e,t)
if(a){var u=(i||{}).PEMKey
return iu(e,"POST",l,u||Xl[r],i)(n).then(c).catch(ru(r))}return nl(l,n).catch(ru(r)).then(c)},hu=function(e,t,n,i,r,o,a){var s="createServerDraftMessageAPI",c=(e.experimental||{}).isHeaderContentTypeJsonCheckEnabled,l=su(s,!!c),u={body:n,subject:r,originToken:i}
o&&(u.conversationUrn=o)
var d,f=JSON.stringify(u)
return d=a&&a.length?function(e,t,n){var i={mailboxUrn:t,hostRecipientUrns:n}
return $a("restli",e.messengerResource,"messengerMessageDrafts",i)}(e,t,a):function(e,t){var n={mailboxUrn:t}
return $a("restli",e.messengerResource,"messengerMessageDrafts",n)}(e,t),nl(d,f).catch(ru(s)).then(l)},gu={kind:"category",category:"INBOX"},mu=function(e){var t,n
return null===(t=Ve[e])||void 0===t||null===(n=t.store)||void 0===n?void 0:n.getState()},vu=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)})}},yu=function(e){var t
return null===(t=Ve[e])||void 0===t?void 0:t.store},bu=function(e,t){var n=Ve[e]
return Ge(n)?(q(t.message),n.observers.forEach((function(e){return e.error(t)})),n.observers.length):0},Eu=function(e,t){return function(n){var i=t?Ue.fromClientErrorMemo(t,n):n
return bu(e,i),Promise.reject(i)}},_u=function(e,t){return function(n){var i=t?Ue.fromClientErrorMemo(t,n):n
return bu(e,i),i}},ku=function(e,t){return function(n){var i=Ue.fromUnknown(t,n)
bu(e,i)}},Tu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null
return function(n){return bu(e,n),Promise.resolve(t)}},Su=function(){return new Map},Au=function(e,t){return e.updateAny(Xe(t),function(e){return function(t){return o(o({},t),{},{additionalData:e[t.clientId]||t.additionalData})}}(t))},Cu=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=_(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(_(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}))},Iu=function(e,t){var n=E(_t(t),2),i=n[0],r=n[1]
return e.filter((function(e){return Qe(e)?!i.includes(e.conversationUrn):!r.includes(e.messageUrn)}))},wu=function(e,t,n){var i=[]
return t.length&&(i=function(e,t){var n=function(e,t){var n=E(_t(t),2),i=n[0],r=n[1]
return e.map((function(e){var t=Je(e)&&r.includes(e.messageUrn),n=Qe(e)&&i.includes(e.conversationUrn)
return t||n?o(o({},e),{},{retryCount:e.retryCount+1}):e}))}(e,t),i=function(e,t){return Iu(t,e).map((function(e){return o(o({},e),{},{retryCount:0})}))}(e,t)
return[].concat(_(n),_(i))}(e,t)),n.length&&(i=Iu(i,n)),i},xu=function(e,t){return t&&t>e?t:e},Ru=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:xt.INIT}))throw new Error(Ct(12))
if(void 0===n(void 0,{type:xt.PROBE_UNKNOWN_ACTION()}))throw new Error(Ct(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(Ct(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]:Su(),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 G(e,t.payload.draftConversation.clientId,t.payload.draftConversation)
case"ADD_DRAFT_CONVERSATIONS":return t.payload.draftConversation.reduce((function(e,t){return G(e,t.clientId,t)}),e)
case"ADD_NEW_MESSAGE_BY_ID":var n=e.get(t.payload.conversationId)
return n?G(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 G(e,t.payload.conversationId,o(o({},i),{},{messages:s,draftMessage:a?Ec(a):yc(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 G(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?G(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?G(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],_=e.get(y)
if(_){var k=o(o({},_),b)
g=G(g,y,k)}}}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?G(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=L(R(n).map((function(t){return e[t]?[t,o(o({},e[t]),{},{additionalData:n[t]})]:null})).filter(N))
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=L(t.payload.participants.map((function(e){return[e.hostIdentityUrn,e]}))),a=R(r).reduce((function(t,n){var i=e[n]
return N(i)&&"EMPTY"!==i.kind&&r[n]&&"EMPTY"===r[n].kind?t[n]=o({},i):t[n]=o(o(o({},i),r[n]),{},{clientId:N(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]:kt(),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:Au(e.messages,n.payload.data)})})))
case"DECORATE_MESSAGES":return t.updateItem(qe(n.payload.conversationUrn),(function(e){return o(o({},e),{},{messages:Au(e.messages,n.payload.data)})}))
case"DECORATE_MESSAGE":return t.updateItem(qe(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(qe(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(qe(f),(function(e){if(re(e)){var t=e.messages.getByIdentifier(l)
return o(o({},e),{},{messages:e.messages.updateAny(Ye(l),(function(e){return o(o({},e),{},{reactions:Cu(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?Ec(i):yc(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(qe(n.payload.conversationUrn),(function(e){var t=n.payload.clearAll?new fc(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:yc(t.senderUrn,"Local")})}))
case"REALTIME_TYPING_ON":return t.updateItem(qe(n.payload.conversationUrn),(function(e){return o(o({},e),{},{typingUrns:K(e.typingUrns,n.payload.typingUrn)})}))
case"REALTIME_TYPING_OFF":return t.updateItem(qe(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(qe(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(qe(n.payload.conversation.entityUrn),"FullMailboxState")?t.updateItem(qe(n.payload.conversation.entityUrn),(function(e){var t=n.payload.conversation.participants.filter(C(e.participants)),i=[].concat(_(e.participants),_(t))
return o(o(o({},e),n.payload.conversation),{},{participants:i,messages:e.messages.add(_(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(qe(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(qe(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(qe(n.payload.conversationUrn))
case"DELETE_CONVERSATIONS":return n.payload.clearAll?kt():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:xu(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:xu(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:xu(n.lastRequestId,i.requestId)})
case"UPDATE_REQUEST_ID":return o(o({},n),{},{lastRequestId:xu(n.lastRequestId,i.requestId)})
default:return i.requestId?o(o({},n),{},{lastRequestId:xu(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?wu(e,[{conversationUrn:n.entityUrn}],[]):wu(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 wu(e,r,o)
case"UPDATE_CONVERSATION_BY_URN":var a=t.payload,s=a.conversationUrn
return a.conversationUpdate.incompleteRetriableData?wu(e,[{conversationUrn:s}],[]):wu(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)||O(f.incompleteRetriableData)||u.push({conversationUrn:d})}return wu(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?wu(e,[{conversationUrn:p.entityUrn}],[]):wu(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?wu(e,[{messageUrn:h.entityUrn}],[]):wu(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 wu(e,m,v)
case"UPDATE_MESSAGES":var y=t.payload.messageUpdateMap,b=[],E=[]
for(var _ in y){var k=y[_]
k.incompleteRetriableData?b.push({messageUrn:_}):O(k.incompleteRetriableData)||E.push({messageUrn:_})}return wu(e,b,E)
default:return e}}}),Nu=function(e,t){return{type:"ADD_MAILBOX_PARTICIPANTS",payload:{participants:e},requestId:t}},Ou=function(e,t){return{type:"REALTIME_TYPING_ON",payload:{conversationUrn:e,typingUrn:t}}},Du=function(e,t){return{type:"REALTIME_TYPING_OFF",payload:{conversationUrn:e,typingUrn:t}}},Pu=function(e){return{type:"REALTIME_CONNECT",payload:e}},Mu=function(e,t){return{type:"UPDATE_CONVERSATIONS_BY_URN",payload:{convoStatusUpdateMap:e},requestId:t}},ju=function(e,t){return{type:"DELETE_CONVERSATION",payload:{conversationUrn:e},requestId:t}},Lu=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}},Uu=function(e,t,n){return{type:"ADD_CONVERSATION",payload:{conversation:e,participants:t},requestId:n}},Fu=function(e,t,n){return{type:"UPDATE_CONVERSATION_BY_URN",payload:{conversationUpdate:e,conversationUrn:t,participants:null!=n?n:[]}}},Bu=function(e){return{type:"ADD_DRAFT_CONVERSATION",payload:{draftConversation:e}}},Gu=function(e,t,n){return{type:"ADD_DRAFT_CONVERSATIONS",payload:{draftConversation:e,participants:t},requestId:n}},Hu=function(e){return{type:"UPDATE_DRAFT_CONVERSATIONS",payload:{draftConversationUpdateObj:e}}},Vu=function(e){return{type:"REMOVE_DRAFT_CONVERSATIONS",payload:{draftConvoClientIds:e}}},qu=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}},Ku=function(e,t,n){return{type:"ADD_NEW_MESSAGE_BY_ID",payload:{message:e,conversationId:t},requestId:n}},Wu=function(e,t){return{type:"CONVERSATION_LOADING",payload:{conversationId:e,loading:t}}},Yu=function(e){return{type:"MAILBOX_LOADING",payload:{loading:e}}},zu=function(e,t,n,i,r){return{type:"ADD_OLDER_MESSAGES",payload:{messages:e,conversationUrn:t,completed:n,prevCursor:i},requestId:r}},Xu=function(e,t,n,i,r){return{type:"ADD_NEW_MESSAGES",payload:{conversationUrn:t,messages:e,syncToken:n,shouldClearCache:i},requestId:r}},Qu=function(e,t,n,i){return{type:"UPDATE_NEW_MESSAGE",payload:{message:e,messageId:t,convoIdentifier:n},requestId:i}},Ju=function(e,t,n){return{type:"UPDATE_MESSAGES",payload:{messageUpdateMap:e,conversationUrn:t},requestId:n}},$u=function(e,t,n){return{type:"UPDATE_REACTIONS_ON_MESSAGE",payload:{messageUrn:e,reaction:t},requestId:n}},Zu=function(e,t,n){return{type:"UPDATE_CONVERSATION_BY_MESSAGE_URN",payload:{messageUrn:e,conversationUpdate:t},requestId:n}},ed=function(e,t){return{type:"UPDATE_DRAFT_MESSAGE",payload:{conversationId:e,draftMessageUpdate:t}}},td=function(e,t){return{type:"UPDATE_DRAFT_CONVERSATION_SENDING_STATUS",payload:{conversationId:e,sendingStatus:t}}},nd=function(e,t,n){return{type:"DELETE_MESSAGE",payload:{conversationId:e,messageClientId:t},requestId:n}},id=function(e,t){return{type:"DELETE_DRAFT_MESSAGE",payload:{conversationUrn:e},requestId:t}},rd=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}},od=function(e,t,n){var i=e.payload.errors
if(!i)return!1
var r=i.map((function(e){return Ue.buildGraphQLPayloadError(e,t)}))
return Tu(n)(Ue.fromRealtimeErrorMemo("EVENT_RESPONSE_ERROR",r)),!0},ad=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(O(a)||O(a[n])||O(a[n].result)){var s=De.PAYLOAD_DATA_DOES_NOT_EXIST
return Tu(i)(new Ue({namespace:"realtime",code:s.code,msg:"".concat(t,": ").concat(s.message)})),!0}return!1},sd={quickReplyMap:{},seenReceiptsMap:{}},cd=function(e,t,n){if(!ad(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}]),sd.seenReceiptsMap=ht(sd.seenReceiptsMap,i),n.dispatch(Zu(o,{seenReceiptsMap:sd.seenReceiptsMap})))}},ld=function(e,t,n){if(!ad(t,"QuickReplies","doDecorateQuickRepliesMessengerRealtimeDecoration",e)){var i=t.payload.data.doDecorateQuickRepliesMessengerRealtimeDecoration.result
if(0===i.length||O(i[0])||O(i[0].message)){var r=De.PAYLOAD_DATA_IS_NOT_COMPLETE
Tu(e)(new Ue({namespace:"realtime",code:r.code,msg:"QuickReply: ".concat(r.message)}))}else{var o,a=i[0].message,s=i.filter(N)
o=p({},a.entityUrn,s),sd.quickReplyMap=o,n.dispatch(Zu(a.entityUrn,{quickReplies:s}))}}},ud=function(e,t,n,i){var r
if(od(t,"NewMessage",e))n.triggerChainSync({pageInstance:null===(r=i.getPageInstance)||void 0===r?void 0:r.call(i)})
else if(!ad(t,"NewMessage","doDecorateMessageMessengerRealtimeDecoration",e)){var a=t.payload.data.doDecorateMessageMessengerRealtimeDecoration.result
if(N((s=a).conversation)&&N(s.body)&&N(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,k=a.reactionSummaries,T=a.renderContent,S=a.sender,A=a.actor,C=a.subject,I=null!==(u=(null!==(c=null===(l=a.previousMessages)||void 0===l?void 0:l.elements)&&void 0!==c?c:[]).filter(N)[0])&&void 0!==u?u:null,w=g.entityUrn,x=Sc(S),R=A?Sc(A):void 0,O=Lc(hc(T)),D=O.data,P=O.participants
if(w&&h&&function(e,t){return 0==e.text.length&&(null===t||0===t.length)}(h,T)&&"RECALLED"!==b)setTimeout((function(){var e
n.triggerMessagesSync(w,{pageInstance:null===(e=i.getPageInstance)||void 0===e?void 0:e.call(i)})}),2e3)
else{var M,j,L=gc({actorUrn:null==R?void 0:R.hostIdentityUrn,senderUrn:x.hostIdentityUrn,content:h,optionalSendData:D,entityUrn:v,inlineWarning:null!=y?y:void 0,messageBodyRenderFormat:b,reactions:mc(k),status:"Delivered",clientId:E,deliveredAt:new Date(m),backendConversationUrn:d,backendUrn:f,subject:null!=C?C:""}),U=function(e,t){var n=sd.quickReplyMap[t]?sd.quickReplyMap[t]:[],i=sd.seenReceiptsMap[t]?p({},t,sd.seenReceiptsMap[t]):{},r=o(o({},e),{},{quickReplies:n,seenReceiptsMap:i})
return delete sd.quickReplyMap[t],delete sd.seenReceiptsMap[t],r}(g,v),F=vc(U),B=R?[].concat(_(P),[R]):P,G=bt(B,kc(g.conversationParticipants))
n.experimentalValues&&!0!==n.experimentalValues["voyager.web.messaging-sdk-missing-participants-fix-2"]?(n.dispatch(Nu(G)),n.handleRealtimeNewMessage(w,F,L,I,void 0,{pageInstance:null===(M=i.getPageInstance)||void 0===M?void 0:M.call(i)}).catch((function(t){Tu(e)(Ue.fromRealtimeErrorMemo("EVENT_ERROR",t))}))):n.handleRealtimeNewMessage(w,F,L,I,G,{pageInstance:null===(j=i.getPageInstance)||void 0===j?void 0:j.call(i)}).catch((function(t){Tu(e)(Ue.fromRealtimeErrorMemo("EVENT_ERROR",t))}))}}else{var H=De.PAYLOAD_DATA_IS_NOT_COMPLETE
Tu(e)(new Ue({namespace:"realtime",code:H.code,msg:"NewMessage: ".concat(H.message)}))}}},dd=/EventSource error - No activity within 45000 milliseconds\. (No response)|(\d+ chars) received. Reconnecting./,fd=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(Ue.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}(),pd=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)}},hd=function(){return!j()||!window.navigator||window.navigator.onLine},gd=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"},md=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},vd=function(e){var t=e.code,n=e.message
return hd()?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"},yd=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 hd()?"Code: ".concat(e.code," | Type: ").concat(e.name," (").concat(e.namespace,") | Details: ").concat(i):"No available connections"},bd=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})},Ed=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)},_d=function(e,t,n,i,r,o,a){var s={trackingId:zi(),syncType:t,messagingThreadUrns:o?o.map((function(e){return e.backendUrn})):[],failureReason:vd(e),failureDetail:yd(e),responseCode:e.code,retryCount:n,mailboxUrn:i,actorUrn:r,failureTime:Date.now()}
a&&a("MessagingSyncClientFailureEvent",s)},kd=function(e,t,n){n&&n("MessagingClientSendEvent",{sentTime:t,messageUrn:e,publisherTrackingId:""})},Td=function(e){return Yi(Array.from(Qi(e)))},Sd=function(e){return"personal"===e.mailboxType},Ad=function(e){return!0===e.isPreconnected},Cd=function(e,t,n,r,o,a){var s=function(e){var t=Ve[e]
if(Ge(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=arguments.length>6?arguments[6]:void 0,u=(o=r.triggerChainSync,a=null==s?void 0:s.getPageInstance,At((function(){V("Throttled chain-sync"),o({pageInstance:null==a?void 0:a()})}),6e4)[0])
return(e.connected?Promise.resolve():e.connect("RETRY")).then((function(){V("realtime connected"),function(e,t){var n=(0,i.getClient)(),r=E(e.getRealtimeTopics(),2),o=r[0],a=_(r[1].values()).filter((function(e){return!e.endsWith(":myself")}))
o&&a.length>0&&(V("Subscribing to broadcast topics",'JWT="...'.concat(J(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"):V("Broadcast topics subscription failed for these topics:",e.failed.join(", "))})).catch((function(e){V("Broadcast topics subscription failed! ❌",e)})))}(r,c),(0,i.getClient)().addContext(t)
var o=new Map
e.addEventListener("error",(function(n,i){V("error event from common-time - ".concat(i.message," ").concat(e.connected?"💚":"💔")),r.dispatch(Pu(e.connected)),function(e){return void 0!==e.status}(i)&&600===i.status&&Tu(t)(Ue.buildCommonTimeError(i)),i.status<900&&!e.connected&&null!=l&&l.allowCommonTimeError&&(!e.connected&&dd.test(i.message)?(i.message="BAD-STATE: ".concat(i.message),Tu(t)(Ue.buildCommonTimeError(i))):Tu(t)(Ue.buildCommonTimeError(i)))})),e.addEventListener("connect",(function(){V("realtime connect ".concat(e.connected?"💚":"💔")),r.dispatch(Pu(e.connected))})),e.addEventListener("reconnecting",(function(){V("realtime reconnecting ".concat(e.connected?"💚":"💔"))})),e.addEventListener("close",(function(){V("realtime close ".concat(e.connected?"💚":"💔")),r.dispatch(Pu(e.connected))})),e.addEventListener("poorRealtimeConnectionDetected",(function(){V("realtime poor connection ".concat(e.connected?"💛":"💔")),r.dispatch(Pu(e.connected))})),e.addEventListener("authSubscribeFailed",(function(t,n){V("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){V("personal mailbox ".concat(t," re-subscribed - chainSync! gap (sec):"),i/1e3),u(),r.dispatch(Pu(e.connected))})):e.addEventListener("topicsResubscribed",(function(n,i){(function(e,t){var n=E(e.getRealtimeTopics(),2)[1].get("NewMessage")
return N(n)&&t.includes(n)})(r,i.topics)&&(V("secondary mailbox ".concat(t," re-subscribed - chainSync! gap (sec):"),i.timeGapMs/1e3),u(),r.dispatch(Pu(e.connected)))})),e.addEventListener("topic",(function(i,a){V("⚡️ Realtime event: ",a.topic),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",_=null!==(f=null==h?void 0:h.get("QuickReplies"))&&void 0!==f?f:"no-topic",k=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(!ad(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,Ou,Du,n)}}(e,t,i,n,r)
break
case m:ud(e,t,r,a)
break
case v:!function(e,t,n,i){var r
if(od(t,"ConversationUpdate",e))n.triggerChainSync({pageInstance:null===(r=i.getPageInstance)||void 0===r?void 0:r.call(i)})
else if(!ad(t,"ConversationUpdate","doDecorateConversationMessengerRealtimeDecoration",e)){var o=t.payload.data.doDecorateConversationMessengerRealtimeDecoration.result,a=kc(o.conversationParticipants),s=o.entityUrn,c=vc(o)
n.experimentalValues&&!0===n.experimentalValues["voyager.web.messaging-sdk-missing-participants-fix-2"]?n.dispatch(Fu(Et(c),s,a)):(n.dispatch(Nu(a)),n.dispatch(Fu(Et(c),s)))}}(e,t,r,a)
break
case y:!function(e,t,n,i){var r
if(od(t,"ConversationDelete",e))n.triggerChainSync({pageInstance:null===(r=i.getPageInstance)||void 0===r?void 0:r.call(i)})
else if(!ad(t,"ConversationDelete","doDecorateConversationDeleteMessengerRealtimeDecoration",e)){var o=t.payload.data.doDecorateConversationDeleteMessengerRealtimeDecoration.result.entityUrn
n.dispatch(ju(o))}}(e,t,r,a)
break
case b:cd(e,t,r)
break
case _:ld(e,t,r)
break
case k:!function(e,t,n){if(!ad(t,"ReactionSummary","doDecorateRealtimeReactionSummaryMessengerRealtimeDecoration",e)){var i=t.payload.data.doDecorateRealtimeReactionSummaryMessengerRealtimeDecoration.result
if(i.reactionSummary){var r=i.message.entityUrn
n.dispatch($u(r,i.reactionSummary))}else{var o=De.PAYLOAD_DATA_IS_NOT_COMPLETE
Tu(e)(new Ue({namespace:"realtime",code:o.code,msg:"ReactionSummaryUpdate: ".concat(o.message)}))}}}(e,t,r)
break
default:q("Unhandled realtime event: ",t)}}catch(t){var T=De.EVENT_ERROR
Tu(e)(new Ue({namespace:"realtime",code:T.code,msg:T.message,cause:t}))}}(t,a,o,n,r,e.serverClockTime,s)}))})).catch((function(e){var n=De.CANNOT_CONNECT
return Eu(t)(new Ue({namespace:"realtime",code:n.code,msg:n.message,cause:e}))}))}(o,e,t.typingIndicatorDelayInSecond,n,t.trackingOptions,r,t.experimental).catch((function(){return Promise.resolve()}))}(e,t,r,a).then((function(){return Id(e,t,n,o)})):s&&s.data.connected.api?Promise.resolve(s):Id(e,t,n,o)},Id=function(e,t,n,i){return function(e,t,n,i,r){return function(e,t,n,i){var r="initialSyncConversationsAPI",o=(i?Us:Ls)(e,{mailboxUrn:t}),a=e.experimental||{},s=a.isCyPemMetricsEnabled,c=a.isHeaderContentTypeJsonCheckEnabled,l=su(r,!!c)
return(s?iu(e,"GET",o,Xl[r],n):eu(e,o,r,n))().then(l).catch(ru(r))}(e,t,r,i).then((a=n,function(e){var t,n,i
Fc(e,"messengerConversationsBySyncToken")
var r=null===(t=e.data)||void 0===t?void 0:t.messengerConversationsBySyncToken
if(!r)throw Ue.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",xe("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(Ac).map((function(e){var t=E(Tc(e,yc(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(N)
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}(Nd(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"}),_d(n,"CONVERSATIONS",1,e,t.viewerUrn,void 0,null===(o=t.trackingOptions)||void 0===o?void 0:o.trackingFireEvent),n}))},wd=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}}}},xd=function(e,t){return p({},e.entityUrn,{status:{sending:t}})},Rd=function(e,t,n,i){e(t?i?rd(i,new Set,!0):Lu([],!0):i?rd(i,new Set(n.filter((function(e){return e.message})).map((function(e){return e.message.entityUrn})))):Lu(n.filter((function(e){return e.conversation})).map((function(e){return e.conversation.entityUrn}))))},Nd=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&&j()
return j()&&r&&void 0!==a&&void 0!==c&&"object"===s(l)&&R(l).length>0?function(e,t,n,i){var r,o=Zl.getInstance(e,n,i)
return[function(e,n,i){return function(r){var a=t[n]
if(!a)return V("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(){Yl(r),Zl.resetInstance()})]}(a,l,c,u):d?function(e,t,n,i){var r,o=function(e,t,n){return{READ:new zl("".concat(e," - Read"),$l(t),Ql),WRITE:new zl("".concat(e," - Send"),$l(t),Ql),SEARCH:new zl("".concat(e," - Search"),$l(t),null!=n?n:Ql)}}(e,n,i)
return[function(e,n,i,r){return function(a){var s,c=(null!=r?r:{}).pageInstance
if(c){var l=[new Bl(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 P(r).forEach(Yl)})]}(a,{READ:"messaging-conversation-load-module",WRITE:"messaging-conversation-send-module",SEARCH:"messaging-conversation-search-module"},c,u):[function(){return function(e){return e}},Jl]}(e))&&void 0!==t?t:[],2),i=n[0],r=void 0===i?null:i,o=n[1],a=void 0===o?Jl:o
return{experimental:e.experimental,messengerResource:e.messengerResource,mpName:e.mpName,queryFormat:e.queryFormat,teardown:j()?a:Jl,track:r}},Od=function(e,t,n,i,r){n.length&&function(e,t,n,i){var r="acknowledgeMessagesReceivedAPI",o=(e.experimental||{}).isHeaderContentTypeJsonCheckEnabled,a=cu(r,!!o),s=function(e){return $a("restli",e.messengerResource,"messengerMessageDeliveryAcknowledgements",{action:"sendDeliveryAcknowledgement"})}(e),c=JSON.stringify({messageUrns:t,clientId:i,deliveryMechanism:n,clientConsumedAt:Date.now()})
return nl(s,c).catch(ru(r)).then(a)}(t,n,i,r).catch(Tu(e))},Dd=function(e,t,n,i){t(function(e,t){return{type:"ADD_NEW_MESSAGE_BY_CONVO_URN",payload:{message:e,conversationUrn:t},requestId:void 0}}(i,n)),e.clientSensorTrackers.triggerRecipientMetric("realtime-message-received")},Pd=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
Od(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(Fu(Et(r),i,c)):n(Fu(Et(r),i))),Dd(e,n,i,a),a.clientId===f.draftMessage.clientId&&n(ed(i,bc(f.draftMessage,{clientId:Ps()}))),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:Ps(),entityUrn:e,draftMessage:n,lastEditedAt:n.lastEditedAt,matchingSearches:[],messages:new fc,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,yc(e.participant.hostIdentityUrn,"Local"))
return n(Uu(h,[])),Dd(e,n,i,a),Promise.resolve()}},Md=function(e){if(Me(e)){var t=e.code
return void 0!==t&&t>399&&t<500&&422!==t&&429!==t}return!1},jd=function(e){if(Me(e)){var t=e.code
return void 0!==t&&t>399&&t<500}return!1},Ld=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 Ud(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=Hd()
return pd(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=vd(e),c=yd(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:md(i,l),messageContentType:gd(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 Fd(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 Bd,Gd=function(e,t,n,i){n&&n.length>0&&n.map((function(n){t.findIndex((function(e){return Qe(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 Je(e)&&e.messageUrn===n.entityUrn}))>-1&&(n.incompleteRetriableData?e.clientSensorTrackers.triggerRecipientMetric("messenger-incomplete-data-reload-failure"):e.clientSensorTrackers.triggerRecipientMetric("messenger-incomplete-data-reload-success"))}))},Hd=function(){try{return(0,i.getClient)().serverClockTime}catch(e){return V("Failed to retrieve server time from common-time:",e),Date.now()}},Vd=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,profileFrameA11yContent:""}},qd=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}(),Kd="function"==typeof Symbol&&Symbol.observable||"@@observable",Wd="messengerData",Yd=function(e){return{triggerSenderMetric:function(t){null==e||e({groupName:Wd,metricName:t})},triggerRecipientMetric:function(t){null==e||e({groupName:Wd,metricName:t})},triggerGeneralMetric:function(t){null==e||e({groupName:Wd,metricName:t})}}},zd=function(){},Xd={start:zd,end:zd},Qd=function(e){var t
return((null==e||null===(t=e.text)||void 0===t?void 0:t.length)||0)<1},Jd=function(e){return!O(e)&&(!Array.isArray(e.renderContent)||e.renderContent.length<1)}
Bd=Symbol.observable
var $d=function(){function e(t,n,i){var r,a=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:gu,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]=At((function(){(function(e,t){var n="activateTypingStatusAPI",i=(e.experimental||{}).isHeaderContentTypeJsonCheckEnabled,r=cu(n,!!i),o=function(e){return $a("restli",e.messengerResource,"messengerConversations",{action:"typing"})}(e),a=JSON.stringify({conversationUrn:t})
return nl(o,a).catch(ru(n)).then(r)})(a.networkConfig,e).catch(Tu(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 Eu(a.id)(Ue.fromClientErrorMemo("CANNOT_ADD_MESSAGES_IN_CONVERSATION"))
var c=e.draftMessage,l=o(o({},xc(c)),{},{content:null!=t?t:c.content,optionalSendData:c.optionalSendData&&i?Ze(c.optionalSendData,i):i||c.optionalSendData})
a._dispatch(Ku(l,e.clientId))
var u=a.state.draftConversations.get(e.clientId)
return u?("Failed"!==u.sending&&a._dispatch(td(u.clientId,"InProgress")),a._getRequestQueue("messageSend",u.clientId).enqueue((function(){return 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(Ue.fromClientErrorMemo("MESSAGE_DOES_NOT_EXIST"))
var d=r.clientId,f=r.recipients,p=Td(a),h=o(o({},l),{},{trackingId:p}),g=-1
return i(Qu({status:"Sending"},a,d)),new fd(a).try((function(i){return g=Hd(),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=e.experimental||{},b=y.isCyPemMetricsEnabled,E=y.isHeaderContentTypeJsonCheckEnabled,_=su(f,!!E),k=dc(e)
return(b?iu(e,"POST",k,Xl[f],r):nu(e,k,f,r))(v).catch(ru(f)).then(_)}(e,t,u.content,f,h,a,s,u.optionalSendData,1!==i||"RETRY"===c?"DEDUPE":"NOT_DEDUPE").then(Fd(n,i,c)).catch(Ud(n,i,c,void 0,u,h,f))})).timeoutAfter(n.options.sendRetryTimeoutInSecond).retryIf(dt(n,d)).cancelIf(Md).start().then((function(e){var r,o
return g&&i(Qu({lastAttemptAt:new Date(g)},a,d)),pd(void 0,h,g,e.backendConversationUrn,t,e.backendUrn,null===(r=n.options.trackingOptions)||void 0===r?void 0:r.trackingFireEvent),kd(e.backendUrn,g,null===(o=n.options.trackingOptions)||void 0===o?void 0:o.trackingFireEvent),e})).then((function(n){return function(e,t,n,i,r){return function(e,t,n,i){var r="getConversationByIdAPI",o=js(e,{messengerConversationsId:t,count:20}),a=e.experimental||{},s=a.isCyPemMetricsEnabled,c=a.isHeaderContentTypeJsonCheckEnabled,l=su(r,!!c)
return(s?iu(e,"GET",o,Xl[r],i):eu(e,o,r,i))().then(l).catch(ru(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 Ue.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",xe("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,_=a.lastReadAt,k=a.messages,T=a.notificationStatus,S=a.conversationParticipants,A=a.read,C=a.state,I=a.title,w=a.unreadCount,x=a.hostConversationActions,O=k.elements,D=Nc(S),M=Pc(O),j=M.messages,L=M.participants,U=bt(L,P(D).filter(N))
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(N))&&void 0!==o?o:[],draftMessage:yc(e,"Local"),entityUrn:v,groupChat:null!=y&&y,hostConversationActions:x,incompleteRetriableData:b,isDraft:!1,lastActivityAt:new Date(E),lastReadAt:new Date(_),matchingSearches:[],messages:new fc(j),metadata:{},notificationStatus:T,participants:(c=D,R(c).sort()),quickReplies:[],read:A,state:C,status:{loading:!1,sending:"Ready",fullyLoaded:!1},title:I,typingUrns:new Set,unreadCount:w},participants:U.sort(),requestId:s}}}(t,i))}(e,t,n.conversationUrn,d,h)})).then((function(e){var t=e.conversationState,n=e.participants,r=e.requestId
return i(Nu(n,r)),i(function(e,t,n){return{type:"CONVERT_DRAFT_CONVERSATION",payload:{conversationId:e,conversation:t},requestId:n}}(d,t,r)),i(Qu({status:"Sent"},a,t.entityUrn)),t.entityUrn})).catch((function(e){return i(Qu({status:"Failed",apiResponseError:e.apiResponseError},a,d)),Promise.reject(e)}))}(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(td(u.clientId,"Failed")),a._dispatch(Hu(p({},u.clientId,{apiResponseError:e}))),Eu(a.id)(Ue.fromClientErrorMemo("MESSAGE_SEND_FAILED",e))}))}),c.clientId,dt(a,u.clientId)).finally((function(){0===a._getRequestQueue("messageSend",u.clientId).length&&a._dispatch(td(u.clientId,"Ready"))}))):Eu(a.id)(Ue.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=Yd(null===(r=n.trackingOptions)||void 0===r?void 0:r.incrementMetricCounterHandler),this._localParticipant=Vd(i,this.id),this._actorUrn=n.viewerUrn,function(e,t){var n=Ve[e]
Ge(n)&&n.observers.push(t)}(t,{next:function(e){return function(e,t){e.forEach((function(e){return e.next(t)}))}(a._stateSubscribers,vu(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:Bd,value:function(){return this}},{key:Kd,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 Ue.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=mu(this._id)
if(!e)throw Ue.fromClientErrorMemo("MAILBOX_NOT_FOUND",new Error("method = get state(), mailboxUrn = ".concat(this._id,", state = ").concat(s(e))))
return vu(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:Xd}},{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 Eu(this.id)(Ue.fromInvalidType(r,"convoIdentifiers"," URN | UUIDV4[]"))
if(!z(n))return Eu(this.id)(Ue.fromInvalidType(r,"count"," number"))
if(!O(i)&&!Ce(i))return Eu(this.id)(Ue.fromInvalidType(r,"trackingData","TrackingData | undefined"))
if(!Q(e,ue))return Eu(this.id)(Ue.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(_(e[1]),[i])]:[[].concat(_(e[0]),[n]),e[1]]}),[[],[]]),2),a=o[0],s=o[1]
return a.length?lu(this.networkConfig,a,n,i,!!this.experimentalValues.enableServerDraft).then((function(e){return Rc(e,t.participant.hostIdentityUrn)})).then((function(e){var n=e.conversations,i=e.participants,r=e.requestId
return t._dispatch(qu(n,P(i).filter(N),null,"SKIP_CATEGORIES",r)),t._updateLocalParticipant(),nt([].concat(_(s),_(n)))})).catch(Eu(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 Eu(this.id)(Ue.fromInvalidType(r,"conversationUrn","URN"))
if(!Se(n))return Eu(this.id)(Ue.fromInvalidType(r,"selectOption","SelectorFilterOption"))
if(!O(i)&&!Ce(i))return Eu(this.id)(Ue.fromInvalidType(r,"trackingData","TrackingData | undefined"))}this.performance.start("msg-sdk:mailbox:syncConversationMessages")
var o=this.state.conversations.getByIdentifier(e,n)
return o?(this._dispatch(Wu(o.clientId,!0)),new fd(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=tc(e,o),s=e.experimental||{},c=s.isCyPemMetricsEnabled,l=s.isHeaderContentTypeJsonCheckEnabled,u=su(r,!!l)
return(c?iu(e,"GET",a,Xl[r],i):eu(e,a,r,i))().then(u).catch(ru(r))}(t.networkConfig,e,o.metadata.syncToken,i).catch((function(e){var i
throw t.clientSensorTrackers.triggerRecipientMetric("message-list-sync-fail"),_d(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(jd).start().then((function(e){return function(e){var t
Fc(e,"messengerMessagesBySyncToken")
var n=null===(t=e.data)||void 0===t?void 0:t.messengerMessagesBySyncToken
if(!n)throw Ue.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",xe("syncMessagesToMessageStates(): messengerMessagesBySyncToken response is missing"))
return Dc(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(Nu(d,f)),Rd(t._dispatch.bind(t),l,u,e)
var p=o.messages.first();(a=!l&&p?_(s).filter((function(e){return e.deliveredAt.getTime()>=p.deliveredAt.getTime()})):_(s)).length!==s.length&&t.clientSensorTrackers.triggerRecipientMetric("drop-older-sync-messages"),t._dispatch(Xu(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 Od(t.id,t.networkConfig,s.map((function(e){return e.entityUrn})),"SYNC",g),h=Hd(),bd(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(Tu(t.id)),t._getQuickReplies(e).catch(Eu(t.id)),t.clientSensorTrackers.triggerRecipientMetric("message-list-sync-success"),Promise.resolve()})).catch((function(e){return t._dispatch(Wu(o.clientId,!1)),Eu(t.id)(Ue.fromClientErrorMemo("MESSAGE_LIST_SYNC_FAILED",e))})).finally((function(){return t.performance.end("msg-sdk:mailbox:syncConversationMessages")}))):Eu(this.id)(Ue.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Syncing conversation messages"))}},{key:"syncConversationsAPI",value:function(e){var t=this
if(this._options.enableParameterTypeChecks&&!O(e)&&!Ce(e))return Eu(this.id)(Ue.fromInvalidType("syncConversationsAPI","trackingData","TrackingData | undefined"))
this.performance.start("msg-sdk:mailbox:syncConversationsAPI")
var n=this.state.status.syncToken
return this.state.status.loading?(q("Trying to chain-sync while already loading"),Promise.resolve(0)):n?(this._dispatch(Yu(!0)),new fd(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=ec(e,o),s=e.experimental||{},c=s.isCyPemMetricsEnabled,l=s.isHeaderContentTypeJsonCheckEnabled,u=su(r,!!l)
return(c?iu(e,"GET",a,Xl[r],i):eu(e,a,r,i))().then(u).catch(ru(r))}(e,t,i,s).then((function(e){return function(e,t){var n,i,r,a,s,c,l
Fc(e,"messengerConversationsBySyncToken")
var u=null===(n=e.data)||void 0===n?void 0:n.messengerConversationsBySyncToken
if(!u)throw Ue.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",xe("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(Ac).map((function(e){var n=E(Tc(e,yc(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(N)
return{conversations:m,newSyncToken:p,shouldClearCache:h,deletedUrns:g,participants:f,requestId:d}}(e,t)})).then((function(e){var n
return Ed(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"),_d(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=nc(e,{criteria:t}),o=e.experimental||{},a=o.isCyPemMetricsEnabled,s=o.isHeaderContentTypeJsonCheckEnabled,c=su(i,!!s)
return(a?iu(e,"GET",r,Xl[i],n):eu(e,r,i,n))().then(c).catch(ru(i))}(e,o,s).then((function(t){var o
Fc(t,"messengerMessagesBySyncTokensInBatch")
var a=null===(o=t.data)||void 0===o?void 0:o.messengerMessagesBySyncTokensInBatch
if(!a)throw Ue.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",xe("chainSync(): messengerMessagesBySyncTokensInBatch response is missing"))
var s=L(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 Ue.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",xe("chainSync() > handleSingleResponseBatchSync(): messengerMessagesBySyncTokensInBatch response for a single conversation is missing"))
var l=Dc(o,n),u=l.messages,d=l.newSyncToken,f=l.shouldClearCache,p=l.deletedUrns,h=l.participants,g=l.requestId
e(Nu(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
Rd(e,f,p,m),void 0===i.state.conversations.getByIdentifier(m)&&e(Uu(t[m],[])),e(Xu(_(u),m,d,f,g))
var y=null!==(v=i.experimentalValues)&&void 0!==v&&v.useNewClientId?"".concat(r.mpName,"-").concat(i.actorUrn):r.mpName
Od(i.id,r,u.map((function(e){return e.entityUrn})),"SYNC",y)
var b=i.state.conversations.getByIdentifier(m,"FullMailboxState")
if(b){var E,k=Hd()
bd(u.map((function(e){return e.backendUrn})),b.backendUrn,k,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"),_d(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(jd).start().then((function(e){var n=e.conversations,i=e.newSyncToken,r=e.shouldClearCache,o=e.deletedUrns,a=e.participants,s=e.requestId
return Rd(t._dispatch.bind(t),null!=r&&r,null!=o?o:[]),t._dispatch(qu(n,P(a).filter(N),i,"ADD_CATEGORIES",s)),t._updateLocalParticipant(),n.length})).catch((function(e){return t._dispatch(Yu(!1)),Eu(t.id)(Ue.fromClientErrorMemo("CHAIN_SYNC_FAILED",e))})).finally((function(){return t.performance.end("msg-sdk:mailbox:syncConversationsAPI")}))):Eu(this.id)(Ue.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 Eu(this.id)(Ue.fromInvalidType(r,"recipientUrns","URN[]"))
if(!Q(e,le))return Eu(this.id)(Ue.fromInvalidType(r,"recipientUrns[x]","URN"))}return du(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(Ac),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=Cc(t,i.participant.hostIdentityUrn),l=c.conversations,u=c.participants,d=l.filter((function(e){return!i.state.conversations.getByIdentifier(e.clientId)}))
i._dispatch(qu(d,P(u).filter(N),null,"ADD_CATEGORIES",o))
var f=i.state.conversations.getByIdentifier(l[0].clientId,"FullMailboxState")
return f?Promise.resolve(f):Eu(i.id)(Ue.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 Eu(this.id)(Ue.fromInvalidType(r,"recipientUrns","URN[]"))
if(!Q(e,le))return Eu(this.id)(Ue.fromInvalidType(r,"recipientUrns[x]","URN"))}return du(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=Cc(e,i.participant.hostIdentityUrn),n=t.conversations,r=t.participants,o=i._keepExistingClientIdForAllConvoTypes(n)
return i._dispatch(qu(o,P(r).filter(N),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 Eu(this.id)(Ue.fromInvalidType(t,"recipientUrns","URN[]"))
if(!Q(e,le))return Eu(this.id)(Ue.fromInvalidType(t,"recipientUrns[x]","URN"))}var n=_c(this.participant.entityUrn,e)
return this._dispatch(Bu(n)),Promise.resolve(n)}},{key:"deleteDraftConversations",value:function(e){var t=this
if(this._options.enableParameterTypeChecks){var n="deleteDraftConversations"
if(!Array.isArray(e))return Eu(this.id)(Ue.fromInvalidType(n,"draftConvoIdentifiers","(URN | UUIDV4)[]"))
if(!e.every(ue))return Eu(this.id)(Ue.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(Vu(i)),r.length?function(e,t){var n="deleteServerDraftConversationAPI",i=function(e,t){var n={ids:t}
return $a("restli",e.messengerResource,"messengerConversationDrafts",n)}(e,t),r=e.experimental||{},o=r.isCyPemMetricsEnabled,a=r.isHeaderContentTypeJsonCheckEnabled,s=cu(n,!!a)
if(o)return il(i).catch(ru(n)).then(s)
var c={ids:t},l=cu(n,!!a)
return rl(e,"messengerConversationDrafts",c).catch(ru(n)).then(l)}(this.networkConfig,r).then((function(){t._dispatch(Vu(o))})).catch((function(e){throw Ue.fromApiErrorMemo("SERVER_DRAFT_CONVERSATION_DELETE_FAILED",xe("method: deleteDraftConversations()",e))})):Promise.resolve()}},{key:"deleteDraftMessage",value:function(e){var t=this,n=this._getConversationByIdentifier(e)
if(!n)return Eu(this.id)(Ue.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 $a("restli",e.messengerResource,n)}(e,t),r=e.experimental||{},o=r.isCyPemMetricsEnabled,a=r.isHeaderContentTypeJsonCheckEnabled,s=cu(n,!!a)
if(o)return il(i).catch(ru(n)).then(s)
var c="messengerMessageDrafts/".concat(encodeURIComponent(t)),l=cu(n,!!a)
return rl(e,c).catch(ru(n)).then(l)}(this.networkConfig,i).then((function(){t._dispatch(id(e))})).catch(Eu(this.id)):Promise.resolve().then((function(){t._dispatch(id(e))}))}},{key:"updateDraftConversations",value:function(e){if(this._options.enableParameterTypeChecks&&!_e(e))return Eu(this.id)(Ue.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]=rs(t[e])}))
var o=JSON.stringify({entities:r}),a=function(e,t){var n=is(t),i="messengerConversationDrafts?ids=List(".concat(n,")")
return $a("restli",e.messengerResource,i)}(e,i),s=(e.experimental||{}).isHeaderContentTypeJsonCheckEnabled,c=su(n,!!s)
return nl(a,o).catch(ru(n)).then(c)}(this.networkConfig,n).catch(Eu(this.id)),this._dispatch(Hu(e)),Promise.resolve(this.state.draftConversations)}},{key:"getAllDraftConversations",value:function(){var e,t,n,i,r,a,s,c,l=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},fu),n),a=lc(e,r),s=(e.experimental||{}).isHeaderContentTypeJsonCheckEnabled,c=su(i,!!s),eu(e,a,i,void 0)().then(c).catch(ru(i))).then((function(e){var t,n=null===(t=e.data)||void 0===t?void 0:t.messengerMessageDraftsByMailboxV2.elements
return null!=n&&n.length?l._oldestDraftMessageEditedAt=n[n.length-1].lastEditedAt:l._fullyLoaded=!0,e})).then((function(e){return function(e){if(!e.data||!e.data.messengerMessageDraftsByMailboxV2||!e.data.messengerMessageDraftsByMailboxV2.elements)throw Ue.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",xe("messageDraftsByMailboxToState(): messengerMessageDraftsByMailboxV2 response is missing"))
var t=e.data.messengerMessageDraftsByMailboxV2.elements.filter(N),n=Ic(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=l._keepExistingClientIdForAllConvoTypes(t),s=l._keepExistingClientIdForAllConvoTypes(i),c=a.reduce((function(e,t){return e.some((function(e){return e.entityUrn===t.entityUrn}))||e.push(t),e}),[])
l._dispatch(qu(c,P(n).filter(N),null,"ADD_CATEGORIES",o))
var u=gt(s)
return l._dispatch(Gu(u,P(r).filter(N),o)),Promise.resolve({existingConversations:a,draftConversations:s})})).finally((function(){return l.performance.end("msg-sdk:mailbox:getAllDraftConversations")}))}},{key:"findConversationDraftsByRecipients",value:function(e){var t,n,i,r,o,a,s,c=this
if(this._options.enableParameterTypeChecks){var l="findConversationDraftsByRecipients"
if(!Array.isArray(e))return Eu(this.id)(Ue.fromInvalidType(l,"recipientUrns","URN[]"))
if(!Q(e,le))return Eu(this.id)(Ue.fromInvalidType(l,"recipientUrns[x]","URN"))}return this.performance.start("msg-sdk:mailbox:findConversationDraftsByRecipients"),(t=this.networkConfig,n=this.id,i=e,r="findConversationDraftsByRecipientsAPI",o=ac(t,{mailboxUrn:n,recipients:i}),a=(t.experimental||{}).isHeaderContentTypeJsonCheckEnabled,s=su(r,!!a),tu(t,o,r,void 0)().then(s).catch(ru(r))).then((function(e){return function(e){if(Fc(e,"draftConversationsByRecipientsToState()"),!e.data||!e.data.messengerConversationDraftsByRecipients||!e.data.messengerConversationDraftsByRecipients.elements)throw Ue.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",xe("draftConversationsByRecipientsToState(): messengerConversationDraftsByRecipients response is missing"))
var t=e.data.messengerConversationDraftsByRecipients.elements.filter(N).flatMap((function(e){var t
return null===(t=e.draftMessages)||void 0===t?void 0:t.elements})).filter(wc),n=Ic(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=c._keepExistingClientIdForAllConvoTypes(t),o=gt(r)
return c._dispatch(Gu(o,P(n).filter(N),i)),Promise.resolve(o)})).finally((function(){return c.performance.start("msg-sdk:mailbox:findConversationDraftsByRecipients")}))}},{key:"findLatestMessageDraftByConversation",value:function(e){var t=this
return this._options.enableParameterTypeChecks&&!le(e)?Eu(this.id)(Ue.fromInvalidType("findLatestMessageDraftByConversation","conversationUrn","URN")):(this.performance.start("msg-sdk:mailbox:findLatestMessageDraftByConversation"),function(e,t){var n="findMessageDraftsByConversationsInBatchAPI",i=sc(e,{criteria:[{conversationUrn:t}]}),r=(e.experimental||{}).isHeaderContentTypeJsonCheckEnabled,o=su(n,!!r)
return eu(e,i,n,void 0)().then(o).catch(ru(n))}(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 Ue.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",xe("messageDraftsByConversationToState(): messengerMessageDraftsByConversation response is missing"))
return e.data.messengerMessageDraftsByConversationsInBatch.map((function(e){var t,n=e.elements,i=mt(n.filter($).filter(wc))[0]
if(null!=i&&i.author.hostIdentityUrn&&null!=i&&i.body)return yc(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(N)}(e)})).then((function(n){var i=E(n,1)[0]
return i?(t._dispatch(ed(e,i)),Promise.resolve(i)):(t._dispatch(id(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 Eu(this.id)(Ue.fromInvalidType(i,"convoIdentifier","URN | UUIDV4"))
if(!me(t))return Eu(this.id)(Ue.fromInvalidType(i,"convoActivationOption","ConvoActivationOption"))
if(n&&!Ce(n))return Eu(this.id)(Ue.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(Eu(this.id)),"ALWAYS_SYNC"!==t.setConvoActiveSyncOption&&r.metadata.syncToken&&o?Promise.resolve():this.syncConversationMessages(r.entityUrn,"FullMailboxState",n)):Promise.resolve():Eu(this.id)(Ue.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 Eu(this.id)(Ue.fromInvalidType(i,"conversationUrn","URN"))
if(!Y(t)||Array.isArray(t))return Eu(this.id)(Ue.fromInvalidType(i,"status","ConversationUpdate<C, M>"))}var r=p({},e,t)
return this._dispatch(Mu(r)),function(e,t,n,i){var r=JSON.stringify({patch:{$set:n}})
return pu(e,t,r,i)}(this.networkConfig,e,t,n).then((function(){return Promise.resolve()})).catch(Eu(this.id))}},{key:"updateConversationsReadStatus",value:function(e,t){var n=this
if(this._options.enableParameterTypeChecks&&!ye(e))return Eu(this.id)(Ue.fromInvalidType("updateConversationsReadStatus","readStatusUpdateMap","UrnUpdateMap"))
var i=L(R(e).map((function(t){return[t,{read:e[t]}]}))),r=B(e).reduce((function(e,t){var i=E(t||[],2),r=i[0],a=i[1],s=n.state.conversations.find((function(e){return e.entityUrn===r}))
return void 0!==(null==s?void 0:s.read)&&s.read!==a&&(e=o(o({},e),{},p({},r,{read:!a}))),e}),{})
return this._dispatch(Mu(i)),function(e,t,n){var i="updateConversationsAPI",r=e.experimental||{},o=r.isCyPemMetricsEnabled,a=r.isHeaderContentTypeJsonCheckEnabled,s=cu(i,!!a),c=R(t),l=function(e,t){var n=is(t),i="messengerConversations?ids=List(".concat(n,")")
return $a("restli",e.messengerResource,i)}(e,c),u={}
c.forEach((function(e){u[e]=rs(t[e])}))
var d=JSON.stringify({entities:u})
return o?iu(e,"POST",l,Xl[i],n)(d).then(s).catch(ru(i)):nl(l,d).catch(ru(i)).then(s)}(this.networkConfig,i,t).then((function(){return Promise.resolve()})).catch((function(e){return n._dispatch(Mu(r)),Eu(n.id)(e)}))}},{key:"addCategoryToConversations",value:function(e,t,n){if(this._options.enableParameterTypeChecks){var i="addCategoryToConversations"
if(!Array.isArray(e))return Eu(this.id)(Ue.fromInvalidType(i,"conversationUrns","URN[]"))
if(!Q(e,le))return Eu(this.id)(Ue.fromInvalidType(i,"conversationUrns[x]","URN"))
if(!Te(t))return Eu(this.id)(Ue.fromInvalidType(i,"category","ConversationCategory"))}return this._dispatchCategoryUpdate(e,t,"ADD"),function(e,t,n,i){var r="addCategoryToConversationsAPI",o=e.experimental||{},a=o.isCyPemMetricsEnabled,s=o.isHeaderContentTypeJsonCheckEnabled,c=cu(r,!!s),l=function(e){return $a("restli",e.messengerResource,"messengerConversations",{action:"addCategory"})}(e),u=JSON.stringify({conversationUrns:t,category:n})
return a?iu(e,"POST",l,Xl[r],i)(u).then(c).catch(ru(r)):nl(l,u).catch(ru(r)).then(c)}(this.networkConfig,e,t,n).then((function(){return Promise.resolve()})).catch(Eu(this.id))}},{key:"removeCategoryFromConversations",value:function(e,t,n){if(this._options.enableParameterTypeChecks){var i="removeCategoryFromConversations"
if(!Array.isArray(e))return Eu(this.id)(Ue.fromInvalidType(i,"conversationUrns","URN[]"))
if(!Q(e,le))return Eu(this.id)(Ue.fromInvalidType(i,"conversationUrns[x]","URN"))
if(!Te(t))return Eu(this.id)(Ue.fromInvalidType(i,"category","ConversationCategory"))}return this._dispatchCategoryUpdate(e,t,"REMOVE"),function(e,t,n,i){var r="removeCategoryFromConversationsAPI",o=e.experimental||{},a=o.isCyPemMetricsEnabled,s=o.isHeaderContentTypeJsonCheckEnabled,c=cu(r,!!s),l=function(e){return $a("restli",e.messengerResource,"messengerConversations",{action:"removeCategory"})}(e),u=JSON.stringify({conversationUrns:t,category:n})
return a?iu(e,"POST",l,Xl[r],i)(u).then(c).catch(ru(r)):nl(l,u).catch(ru(r)).then(c)}(this.networkConfig,e,t,n).then((function(){return Promise.resolve()})).catch(Eu(this.id))}},{key:"updateConversationTitle",value:function(e,t,n){if(this._options.enableParameterTypeChecks){var i="updateConversationTitle"
if(!le(e))return Eu(this.id)(Ue.fromInvalidType(i,"conversationUrn","URN"))
if(!X(t))return Eu(this.id)(Ue.fromInvalidType(i,"title","string"))}var r=p({},e,{title:t})
return this._dispatch(Mu(r)),function(e,t,n,i){var r=JSON.stringify({patch:{$set:{title:n}}})
return pu(e,t,r,i)}(this.networkConfig,e,t,n).then((function(){return Promise.resolve()})).catch(Eu(this.id))}},{key:"deleteConversation",value:function(e,t){var n=this
return this._options.enableParameterTypeChecks&&!le(e)?Eu(this.id)(Ue.fromInvalidType("deleteConversation","conversationUrn","URN")):function(e,t,n){var i="deleteConversationAPI",r=function(e,t){var n="messengerConversations/".concat(encodeURIComponent(t))
return $a("restli",e.messengerResource,n)}(e,t),o=e.experimental||{},a=o.isCyPemMetricsEnabled,s=o.isHeaderContentTypeJsonCheckEnabled,c=cu(i,!!s)
if(a)return iu(e,"DELETE",r,Xl[i],n)().then(c).catch(ru(i))
var l="messengerConversations/".concat(encodeURIComponent(t))
return rl(e,l).catch(ru(i)).then(c)}(this.networkConfig,e,t).then((function(){n._dispatch(ju(e))})).catch(Eu(this.id))}},{key:"deleteConversations",value:function(e,t){var n=this
if(this._options.enableParameterTypeChecks){var i="deleteConversations"
if(!Array.isArray(e))return Eu(this.id)(Ue.fromInvalidType(i,"conversationUrns","URN[]"))
if(!Q(e,le))return Eu(this.id)(Ue.fromInvalidType(i,"conversationUrns[x]","URN"))}return function(e,t,n){var i="bulkDeleteConversationsAPI",r=function(e,t){var n=is(t),i="messengerConversations?ids=List(".concat(n,")")
return $a("restli",e.messengerResource,i)}(e,t),o=e.experimental||{},a=o.isCyPemMetricsEnabled,s=o.isHeaderContentTypeJsonCheckEnabled,c=cu(i,!!s)
if(a)return iu(e,"DELETE",r,Xl[i],n)().then(c).catch(ru(i))
var l=is(t),u="messengerConversations?ids=List(".concat(l,")")
return rl(e,u).catch(ru(i)).then(c)}(this.networkConfig,e,t).then((function(){n._dispatch(Lu(e))})).catch(Eu(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(Yu(!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]:uu,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?Hs:o?Gs:Bs)(e,a?{query:{predicateUnions:f},count:c,mailboxUrn:t,nextCursor:n}:{category:l,count:c,mailboxUrn:t,nextCursor:n}),h=e.experimental||{},g=h.isCyPemMetricsEnabled,m=h.isHeaderContentTypeJsonCheckEnabled,v=su(s,!!m)
return(g?iu(e,"GET",p,Xl[s],r):eu(e,p,s,r))().then(v).catch(ru(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]:uu,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?Hs:o?Gs:Bs)(e,p),g=e.experimental||{},m=g.isCyPemMetricsEnabled,v=g.isHeaderContentTypeJsonCheckEnabled,y=su(s,!!v)
return(m?iu(e,"GET",h,Xl[s],r):eu(e,h,s,r))().then(y).catch(ru(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?Ws:Ks)(e,u),f=e.experimental||{},p=f.isCyPemMetricsEnabled,h=f.isHeaderContentTypeJsonCheckEnabled,g=su(l,!!h)
return(p?iu(e,"GET",d,Xl[l],s):tu(e,d,l,s))().then(g).catch(ru(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(wd).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 Ue.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",xe("conversationsResponseDataToState(): data or its elements is missing"))
var a=e.elements.filter(Ac).reduce((function(e,n){var i,a,s=E(Tc(n,yc(t,"Local"),Mc(r)?r.id:void 0),2),c=s[0],l=s[1]
return[(i=e[0],a=Bc(l),o(o({},i),a)),[].concat(_(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=Ld(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,P(c).filter(N),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(Yu(!1)),Eu(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",o="sendMessage"
if(this.experimentalValues.enableSendReliabilityParameterChecks){if(!ue(e))return Eu(this.id)(Ue.fromInvalidType(o,"convoIdentifier","URN | UUIDV4"))
if(Qd(t)&&Jd(n))return Eu(this.id)(Ue.fromClientErrorMemoWithComment("MISSING_MESSAGE_BODY_AND_RENDER_CONTENT","".concat(o,"() - [cause] both body and render content are missing")))}if(this._options.enableParameterTypeChecks){if(!ue(e))return Eu(this.id)(Ue.fromInvalidType(o,"convoIdentifier","URN | UUIDV4"))
if(!Ee(t))return Eu(this.id)(Ue.fromInvalidType(o,"content","TextFragment"))
if(!O(n)&&!Ae(n))return Eu(this.id)(Ue.fromInvalidType(o,"optionalSendData","OptionalSendData"))
if(!O(i)&&!Ce(i))return Eu(this.id)(Ue.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)):Eu(this.id)(Ue.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Sending message"))}},{key:"sendPendingMessages",value:function(e){var t=this
if(this._options.enableParameterTypeChecks&&!ue(e))return Eu(this.id)(Ue.fromInvalidType("sendPendingMessages","conversationId","URN | UUIDV4"))
var n=this._getConversationByIdentifier(e)
if(!n)return Eu(this.id)(Ue.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 Eu(this.id)(Ue.fromClientErrorMemo("SENDING_QUEUE_IN_PROGRESS"))
this._dispatch(Mu(xd(n,"InProgress")))}else{if("InProgress"===n.sending)return Eu(this.id)(Ue.fromClientErrorMemo("SENDING_QUEUE_IN_PROGRESS"))
this._dispatch(td(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(Mu(xd(n,"Ready"))):t._dispatch(td(n.clientId,"Ready")))}))}},{key:"retrySendMessage",value:function(e,t,n){if(this._options.enableParameterTypeChecks){var i="retrySendMessage"
if(!ue(e))return Eu(this.id)(Ue.fromInvalidType(i,"convoIdentifier","URN | UUIDV4"))
if(!ae(t))return Eu(this.id)(Ue.fromInvalidType(i,"messageId","UUIDV4"))
if(!O(n)&&!Ce(n))return Eu(this.id)(Ue.fromInvalidType(i,"trackingData","TrackingData | undefined"))}var r=this._getConversationByIdentifier(e)
if(!r)return Eu(this.id)(Ue.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Retry send message"))
var o=r.messages.getByIdentifier(t)
if(!o)return Eu(this.id)(Ue.fromClientErrorMemo("MESSAGE_DOES_NOT_EXIST"))
this._dispatch(nd(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"):Eu(this.id)(Ue.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 Eu(this.id)(Ue.fromInvalidType(n,"entities","GenericEntity[]"))
var i,r=S(e)
try{for(r.s();!(i=r.n()).done;){var o=i.value
if(!$e(o))return Eu(this.id)(Ue.fromInvalidType(n,"entities","GenericEntity[]"))}}catch(e){r.e(e)}finally{r.f()}}this.performance.start("msg-sdk:mailbox:fetchEntities")
var a,s,c=E(_t(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 Qe(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 Je(e)&&e.messageUrn===t&&0===e.retryCount}))>-1&&e.clientSensorTrackers.triggerRecipientMetric("messenger-incomplete-data-received")}))}(this,l,u),a=l.length?lu(this.networkConfig,l,1,void 0,!!this.experimentalValues.enableServerDraft).then((function(e){return Rc(e,t.participant.hostIdentityUrn)})).then((function(e){var n=e.conversations,i=e.participants,r=e.requestId
return t._dispatch(qu(n,P(i).filter(N),null,"SKIP_CATEGORIES",r)),t._updateLocalParticipant(),Gd(t,d,n,void 0),Promise.resolve(n)})).catch(Eu(this.id)):Promise.resolve(),s=u.length?function(e,t,n){var i="getMessagesByIdsAPI",r=Qs(e,{messengerMessagesIds:t}),o=e.experimental||{},a=o.isCyPemMetricsEnabled,s=o.isHeaderContentTypeJsonCheckEnabled,c=su(i,!!s)
return(a?iu(e,"GET",r,Xl[i],n):eu(e,r,i,n))().then(c).catch(ru(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(N)
if(!e||!e.data)throw Ue.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",xe("messagesByIdsResponseToStates(): messengerMessagesByIds response is missing"))
var r=Pc(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(N).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(Nu(i)),t._dispatch(Ju(o,void 0,r))):(t._dispatch(Ju(o,void 0,r)),t._dispatch(Nu(i))),t._updateLocalParticipant(),Gd(t,d,void 0,n),Promise.resolve(n)})).catch(Eu(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 Eu(this.id)(Ue.fromInvalidType(s,"conversationUrn","URN"))
if(!le(t))return Eu(this.id)(Ue.fromInvalidType(s,"messageUrn","URN"))
if(!Ee(n))return Eu(this.id)(Ue.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=e.experimental||{},a=o.isCyPemMetricsEnabled,s=o.isHeaderContentTypeJsonCheckEnabled,c=cu(r,!!s),l=function(e,t){var n="messengerMessages/".concat(encodeURIComponent(t))
return $a("restli",e.messengerResource,n)}(e,t),u=JSON.stringify({patch:{$set:{body:n}}})
return a?iu(e,"POST",l,Xl[r],i)(u).then(c).catch(ru(r)):nl(l,u).catch(ru(r)).then(c)}(this.networkConfig,t,n,i).then((function(){a._dispatch(Ju(p({},t,{content:n,messageBodyRenderFormat:"EDITED"}),e))})).catch((function(e){return Eu(a.id)(Ue.fromClientErrorMemo("MESSAGE_EDIT_FAILED",e))})):Eu(this.id)(Ue.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 Eu(this.id)(Ue.fromInvalidType(r,"conversationId","URN | UUIDV4"))
if(!ue(t))return Eu(this.id)(Ue.fromInvalidType(r,"messageId","UUIDV4 | UUIDV4"))}var o=this._getConversationByIdentifier(e)
if(!o)return Eu(this.id)(Ue.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Delete message"))
var a=o.messages.getByIdentifier(t)
if(!a)return Eu(this.id)(Ue.fromClientErrorMemo("MESSAGE_DOES_NOT_EXIST"))
if(a.entityUrn&&re(o)){var s=a.entityUrn,c=a.messageBodyRenderFormat
return this.experimentalValues.optimisticRecallEnabled&&this._dispatch(Ju(p({},s,{messageBodyRenderFormat:"RECALLED"}),o.entityUrn)),function(e,t,n){var i="deleteConversationMessageAPI",r=JSON.stringify({messageUrn:t}),o=function(e){return $a("restli",e.messengerResource,"messengerMessages",{action:"recall"})}(e),a=e.experimental||{},s=a.isCyPemMetricsEnabled,c=a.isHeaderContentTypeJsonCheckEnabled,l=cu(i,!!c)
return s?iu(e,"POST",o,Xl[i],n)(r).then(l).catch(ru(i)):nl(o,r).catch(ru(i)).then(l)}(this.networkConfig,s,n).then((function(){i.experimentalValues.optimisticRecallEnabled||i._dispatch(Ju(p({},s,{messageBodyRenderFormat:"RECALLED"}),o.entityUrn))})).catch((function(e){return i.experimentalValues.optimisticRecallEnabled&&i._dispatch(Ju(p({},s,{messageBodyRenderFormat:c}),o.entityUrn)),Eu(i.id)(Ue.fromClientErrorMemo("MESSAGE_DELETE_FAILED",e))}))}return this._dispatch(nd(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 Eu(this.id)(Ue.fromInvalidType(o,"messageUrn","URN"))
if(!X(t))return Eu(this.id)(Ue.fromInvalidType(o,"emoji","string"))}var a=this.state.conversations.findMessage(e,i)
if(!a)return Eu(this.id)(Ue.fromClientErrorMemo("MESSAGE_DOES_NOT_EXIST"))
var s=fe(this.state.conversations,e,i)
return this._reactAttemptWouldExceedCap(a,t)?Eu(this.id)(Ue.fromClientErrorMemo("REACTION_LIMIT_REACHED")):(this._dispatch($u(e,{emoji:t,viewerReacted:!0})),this._getRequestQueue("reactions",s.clientId).enqueue((function(){return function(e,t,n,i){var r="reactWithEmojiAPI",o=e.experimental||{},a=o.isCyPemMetricsEnabled,s=o.isHeaderContentTypeJsonCheckEnabled,c=cu(r,!!s),l=function(e){return $a("restli",e.messengerResource,"messengerMessages",{action:"reactWithEmoji"})}(e),u=JSON.stringify({messageUrn:t,emoji:n})
return a?iu(e,"POST",l,Xl[r],i)(u).then(c).catch(ru(r)):nl(l,u).catch(ru(r)).then(c)}(n.networkConfig,e,t,r).then((function(){return Promise.resolve(s.clientId)})).catch((function(){return n._dispatch($u(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 Eu(this.id)(Ue.fromInvalidType(o,"messageUrn","URN"))
if(!X(t))return Eu(this.id)(Ue.fromInvalidType(o,"emoji","string"))}var a=fe(this.state.conversations,e,i)
return a?(this._dispatch($u(e,{emoji:t,viewerReacted:!1})),this._getRequestQueue("reactions",a.clientId).enqueue((function(){return function(e,t,n,i){var r="unreactWithEmojiAPI",o=e.experimental||{},a=o.isCyPemMetricsEnabled,s=o.isHeaderContentTypeJsonCheckEnabled,c=cu(r,!!s),l=function(e){return $a("restli",e.messengerResource,"messengerMessages",{action:"unreactWithEmoji"})}(e),u=JSON.stringify({messageUrn:t,emoji:n})
return a?iu(e,"POST",l,Xl[r],i)(u).then(c).catch(ru(r)):nl(l,u).catch(ru(r)).then(c)}(n.networkConfig,e,t,r).then((function(){return Promise.resolve(a.clientId)})).catch((function(){return n._dispatch($u(e,{emoji:t,viewerReacted:!0})),Promise.resolve(a.clientId)}))}))):Eu(this.id)(Ue.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 Eu(this.id)(Ue.fromInvalidType(i,"messageUrn","URN"))
if(!X(t))return Eu(this.id)(Ue.fromInvalidType(i,"emoji","string"))}return function(e,t,n){var i="getReactorsByMessageAndEmojiAPI",r=rc(e,{messageUrn:t,emoji:n}),o=(e.experimental||{}).isHeaderContentTypeJsonCheckEnabled,a=su(i,!!o)
return tl(r).then(a).catch(ru(i))}(this.networkConfig,e,t).then((function(i){var r=function(e){if(!e.data||!e.data.messengerMessagingParticipantsByMessageAndEmoji||!e.data.messengerMessagingParticipantsByMessageAndEmoji.elements)throw Ue.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",xe("reactorsResponseToReactorsState(): messengerMessagingParticipantsByMessageAndEmoji response is missing"))
var t=e.requestId,n=e.data.messengerMessagingParticipantsByMessageAndEmoji.elements
return{reactors:n&&n.length?n.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($u(e,{emoji:t,reactors:o},a)),Promise.resolve({reactors:o})})).catch((function(e){return Eu(n.id)(Ue.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 _u(this.id)(Ue.fromInvalidType(o,"convoIdentifier","URN | UUIDV4"))
if(!O(t)&&!Ee(t))throw _u(this.id)(Ue.fromInvalidType(o,"content","TextFragment | undefined"))
if(!O(n)&&!Ae(n))throw _u(this.id)(Ue.fromInvalidType(o,"optionalSendData","OptionalSendData | undefined"))
if(!ve(i))throw _u(this.id)(Ue.fromInvalidType(o,"renderContentUpdateMode","ContentUpdateMode"))
if(!O(r)&&!X(r))throw _u(this.id)(Ue.fromInvalidType(o,"subject","string | undefined"))}var a=this._getConversationByIdentifier(e)
if(a)if(!a.entityUrn&&a.messages.length>0)_u(this.id)(Ue.fromClientErrorMemo("CANNOT_ADD_MESSAGES_IN_CONVERSATION"))
else{var s=bc(a.draftMessage,{content:t,optionalSendData:n,subject:r})
if(re(a)){var c=a.entityUrn
this._callThrottledTypingFnForConvo(c)}this._dispatch(ed(a.clientId,s))}else _u(this.id)(Ue.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 _u(this.id)(Ue.fromInvalidType(d,"convoIdentifier","URN | UUIDV4"))
if(!O(i)&&!Ee(i))throw _u(this.id)(Ue.fromInvalidType(d,"content","TextFragment | undefined"))
if(!O(r)&&!Ae(r))throw _u(this.id)(Ue.fromInvalidType(d,"optionalSendData","OptionalSendData | undefined"))
if(!ve(s))throw _u(this.id)(Ue.fromInvalidType(d,"optionalSendData","ContentUpdateMode"))
if(!O(c)&&!X(c))throw _u(this.id)(Ue.fromInvalidType(d,"subject","string | undefined"))}var f=this._getConversationByIdentifier(n)
if(f)if(!f.entityUrn&&f.messages.length>0)_u(this.id)(Ue.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=bc(f.draftMessage,{content:i,optionalSendData:r,subject:c,status:"Local"})
if(f.messages.getByIdentifier(f.draftMessage.clientId)&&(g=bc(g,{clientId:Ps()})),this._dispatch(ed(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=(e.experimental||{}).isHeaderContentTypeJsonCheckEnabled,o=cu(i,!!r),a=function(e,t){var n="messengerMessageDrafts/".concat(encodeURIComponent(t))
return $a("restli",e.messengerResource,n)}(e,t),s=JSON.stringify(rs({body:n.content,subject:n.subject}))
return nl(a,s).catch(ru(i)).then(o)}(t.networkConfig,p,g).then((function(){var e=bc(g,{status:"Server",lastEditedAt:new Date(Date.now())})
t._dispatch(ed(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),hu(this.networkConfig,this.id,i,h,c,f.entityUrn).then((function(e){var n=bc(g,{clientId:e.originToken,entityUrn:e.entityUrn,lastEditedAt:new Date(e.lastEditedAt),status:"Server"})
t._dispatch(ed(f.clientId,n)),t._pendingDraftCreationByClientId.delete(f.clientId)
var i=o(o({},f),{},{draftMessage:n})
return Promise.resolve(i)}))}}else _u(this.id)(Ue.fromClientErrorMemoWithComment("SERVER_DRAFT_CONVERSATION_NOT_CREATED","cannot use updateServerDraftMessage() on an non-server draft or saved conversation"))
else _u(this.id)(Ue.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,l="updateServerDraftMessage"
if(this.experimentalValues.enableSendReliabilityParameterChecks){if(!ue(s)&&function(e){return!Array.isArray(e)||e.length<1||!Q(e,le)}(c))throw _u(this.id)(Ue.fromClientErrorMemoWithComment("MISSING_OR_INVALID_URNS","".concat(l,"()")))
if(Qd(t)&&Jd(n))throw _u(this.id)(Ue.fromClientErrorMemoWithComment("MISSING_MESSAGE_BODY_AND_RENDER_CONTENT","".concat(l,"()")))}if(this._options.enableParameterTypeChecks){if(!O(t)&&!Ee(t))throw _u(this.id)(Ue.fromInvalidType(l,"content","TextFragment | undefined"))
if(!O(s)&&!ue(s))throw _u(this.id)(Ue.fromInvalidType(l,"convoIdentifier","URN | UUIDV4"))
var u=!Array.isArray(c)||c.length<1||!Q(c,le)
if(!O(c)&&u)throw _u(this.id)(Ue.fromInvalidType(l,"hostRecipientUrns","URN[]"))
if(!O(n)&&!Ae(n))throw _u(this.id)(Ue.fromInvalidType(l,"optionalSendData","OptionalSendData | undefined"))
if(!ve(r))throw _u(this.id)(Ue.fromInvalidType(l,"renderContentUpdateMode","ContentUpdateMode"))
if(!O(o)&&!X(o))throw _u(this.id)(Ue.fromInvalidType(l,"subject","string | undefined"))}if(s){if(ae(s)){var d=this.state.draftConversations.get(s)
if(!d)throw _u(this.id)(Ue.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 _u(this.id)(Ue.fromInvalidType(c,"content","TextFragment"))
if(!Array.isArray(a)||a.length<1)throw _u(this.id)(Ue.fromInvalidType(c,"hostRecipientUrns","URN[]"))
if(!O(r)&&!Ae(r))throw _u(this.id)(Ue.fromInvalidType(c,"optionalSendData","OptionalSendData"))
if(!O(s)&&!X(s))throw _u(this.id)(Ue.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),hu(this.networkConfig,this.id,i,(null===(t=l)||void 0===t?void 0:t.clientId)||Ps(),s,void 0,a).then((function(e){var t=e.conversationDraftUrn
if(!t)throw _u(n.id)(Ue.fromClientErrorMemoWithComment("SERVER_DRAFT_CONVERSATION_NOT_CREATED","conversationDraftUrn not returned in response from api-proxy createServerDraftMessageAPI() call"))
return function(e,t){var n="getConversationDraftsByIdsAPI",i=zs(e,{messengerConversationDraftsId:t}),r=(e.experimental||{}).isHeaderContentTypeJsonCheckEnabled,o=su(n,!!r)
return eu(e,i,n,void 0)().then(o).catch(ru(n))}(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 _u(n.id)(Ue.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",xe("createDraftMessageInServerDraftConvo(): conversationDraftsById response is missing")))
var g=c.data.messengerConversationDraftsById.conversationDraftParticipants
n._dispatch(Nu(kc(g)))
var m=yc(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=_c(n.participant.entityUrn,a,m,t,o)
return o?n._dispatch(Hu(p({},o,v))):n._dispatch(Bu(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 Eu(this.id)(Ue.fromInvalidType(r,"convoUrn","URN"))
if(!z(t))return Eu(this.id)(Ue.fromInvalidType(r,"count","number"))}var o=this.state.conversations.getByIdentifier(e,"FullMailboxState")
if(!o)return Eu(this.id)(Ue.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)?Eu(this.id)(Ue.fromInvalidType("dismissInlineWarning","messageUrn","URN")):function(e,t){var n="dismissInlineWarningAPI",i=function(e){return $a("restli",e.messengerResource,"messengerMessages",{action:"dismissInlineWarning"})}(e),r=(e.experimental||{}).isHeaderContentTypeJsonCheckEnabled,o=cu(n,!!r),a=JSON.stringify({messageUrn:t})
return nl(i,a).catch(ru(n)).then(o)}(this.networkConfig,e).then((function(){return Promise.resolve()})).catch((function(e){return Eu(t.id)(Ue.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 Eu(this.id)(Ue.fromInvalidType(o,"convoUrn","URN"))
if(!Array.isArray(t))return Eu(this.id)(Ue.fromInvalidType(o,"participantUrns","URN[]"))
if(!Q(t,le))return Eu(this.id)(Ue.fromInvalidType(o,"participantUrns[x]","URN"))
if(n&&!Array.isArray(n))return Eu(this.id)(Ue.fromInvalidType(o,"messageRequestContextByRecipient","MessageRequestContextByRecipient[]"))}return this._getConversationByIdentifier(e)?function(e,t,n,i,r){var o="addParticipantsToConversationAPI",a=e.experimental||{},s=a.isCyPemMetricsEnabled,c=a.isHeaderContentTypeJsonCheckEnabled,l=cu(o,!!c),u=function(e){return $a("restli",e.messengerResource,"messengerConversations",{action:"addParticipants"})}(e),d=JSON.stringify({participants:t,conversationUrn:n,messageRequestContextByRecipient:i})
return s?iu(e,"POST",u,Xl[o],r)(d).then(l).catch(ru(o)):nl(u,d).catch(ru(o)).then(l)}(this.networkConfig,t,e,n,i).then((function(){return Promise.resolve()})).catch((function(e){return Eu(r.id)(Ue.fromClientErrorMemo("CANNOT_ADD_PARTICIPANTS_IN_CONVERSATION",e))})):Eu(this.id)(Ue.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)?Q(t,le)?this._getConversationByIdentifier(e)?function(e,t,n,i){var r="removeParticipantsFromConversationAPI",o=e.experimental||{},a=o.isCyPemMetricsEnabled,s=o.isHeaderContentTypeJsonCheckEnabled,c=cu(r,!!s),l=function(e){return $a("restli",e.messengerResource,"messengerConversations",{action:"removeParticipants"})}(e),u=JSON.stringify({participants:t,conversationUrn:n})
return a?iu(e,"POST",l,Xl[r],i)(u).then(c).catch(ru(r)):nl(l,u).catch(ru(r)).then(c)}(this.networkConfig,t,e,n).then((function(){return Promise.resolve()})).catch((function(e){return Eu(i.id)(Ue.fromClientErrorMemo("CANNOT_REMOVE_PARTICIPANTS_FROM_CONVERSATION",e))})):Eu(this.id)(Ue.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Removing participants")):Eu(this.id)(Ue.fromInvalidType(r,"participantUrns[x]","URN")):Eu(this.id)(Ue.fromInvalidType(r,"participantUrns","URN[]")):Eu(this.id)(Ue.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 Eu(this.id)(Ue.fromInvalidType(i,"categories","ConversationCategory[]"))
if(!Q(e,Te))return Eu(this.id)(Ue.fromInvalidType(i,"categories[x]","ConversationCategory"))}var r=e.map((function(e){return e.toUpperCase()}))
return function(e,t,n,i){var r="markAllConversationsAsReadAPI",o=ic(e,{mailboxUrn:t,categories:n}),a=e.experimental||{},s=a.isCyPemMetricsEnabled,c=a.isHeaderContentTypeJsonCheckEnabled,l=su(r,!!c)
return s?iu(e,"GET",o,Xl[r],i)().then(l).catch(ru(r)):tl(o).catch(ru(r)).then(l)}(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 Ue.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",xe("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 Eu(this.id)(Ue.fromInvalidType(r,"convoUrn","URN"))
if(!function(e){return"boolean"==typeof e}(t))return Eu(this.id)(Ue.fromInvalidType(r,"state","boolean"))
if(!O(n)&&!Ee(n))return Eu(this.id)(Ue.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"}):Eu(this.id)(Ue.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Conversation accept"))}},{key:"_getSeenReceipts",value:function(e){var t,n,i,r,o,a,s=this
return(t=this.networkConfig,n=e,i="getSeenReceiptsByConversationAPI",r=Zs(t,{conversationUrn:n}),o=(t.experimental||{}).isHeaderContentTypeJsonCheckEnabled,a=su(i,!!o),tl(r).then(a).catch(ru(i))).then((function(t){var n=function(e){if(!e.data||!e.data.messengerSeenReceiptsByConversation||!e.data.messengerSeenReceiptsByConversation.elements)throw Ue.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",xe("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 s._dispatch(Mu(p({},e,{seenReceiptsMap:i}),r)),Promise.resolve(i)}))}},{key:"_getQuickReplies",value:function(e){var t,n,i,r,o,a,s=this
return this.performance.start("msg-sdk:mailbox:_getQuickReplies"),(t=this.networkConfig,n=e,i="getQuickRepliesByConversationAPI",r=oc(t,{conversationUrn:n}),o=(t.experimental||{}).isHeaderContentTypeJsonCheckEnabled,a=su(i,!!o),tl(r).then(a).catch(ru(i))).then((function(t){var n=function(e){if(!e.data||!e.data.messengerQuickRepliesByConversation||!e.data.messengerQuickRepliesByConversation.elements)throw Ue.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",xe("quickRepliesResponseToQuickRepliesState(): messengerQuickRepliesByConversation response is missing"))
return{quickReplies:e.data.messengerQuickRepliesByConversation.elements,requestId:e.requestId}}(t),i=n.quickReplies,r=n.requestId,o=s._getConversationByIdentifier(e)
if(!o||!re(o))return Promise.resolve(void 0)
var a=ft(o,i)
return s._dispatch(function(e,t,n){return{type:"UPDATE_CONVERSATION_QUICK_REPLIES",payload:{conversationUrn:e,quickReplies:t},requestId:n}}(e,a,r)),Promise.resolve(i)})).finally((function(){return s.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(Wu(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=$s(e,{deliveredAt:n,conversationUrn:t,countBefore:i,countAfter:0}),c=e.experimental||{},l=c.isCyPemMetricsEnabled,u=c.isHeaderContentTypeJsonCheckEnabled,d=su(a,!!u)
return(l?iu(e,"GET",s,Xl[a],o):eu(e,s,a,o))().then(d).catch(ru(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=Pc(u),f=d.messages,p=d.participants,h=null===l
return r._dispatch(Wu(t.clientId,!1)),r._dispatch(Nu(p,e.requestId)),r._dispatch(zu(f,t.entityUrn,h,l,e.requestId)),r.clientSensorTrackers.triggerRecipientMetric("message-list-load-more-success"),f.length})).catch((function(e){return r._dispatch(Wu(t.clientId,!1)),r.clientSensorTrackers.triggerRecipientMetric("message-list-load-more-fail"),Eu(r.id)(Ue.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(Wu(t.clientId,!0)),function(e,t,n,i,r){var o="getConversationMessagesByConversationAPI",a={conversationUrn:t,count:n}
i&&(a.prevCursor=i)
var s=Js(e,a),c=e.experimental||{},l=c.isCyPemMetricsEnabled,u=c.isHeaderContentTypeJsonCheckEnabled,d=su(o,!!u)
return(l?iu(e,"GET",s,Xl[o],r):eu(e,s,o,r))().then(d).catch(ru(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=Pc(d),p=f.messages,h=f.participants,g=null===u||i===u
return o._dispatch(Wu(t.clientId,!1)),o._dispatch(Nu(h,e.requestId)),o._dispatch(zu(p,t.entityUrn,g,u,e.requestId)),o.clientSensorTrackers.triggerRecipientMetric("message-list-load-more-success"),p.length})).catch((function(e){return o._dispatch(Wu(t.clientId,!1)),o.clientSensorTrackers.triggerRecipientMetric("message-list-load-more-fail"),Eu(o.id)(Ue.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 qd(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({},xc(l)),{},{content:null!=t?t:l.content,optionalSendData:l.optionalSendData&&i?Ze(l.optionalSendData,i):i||l.optionalSendData})
this._dispatch(Ku(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(Mu(xd(d,"InProgress"))),this._dispatch(id(e.entityUrn)),this._getRequestQueue("messageSend",d.clientId).enqueue((function(){return 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(Ue.fromClientErrorMemo("MESSAGE_DOES_NOT_EXIST"))
var d=Td(a),f=o(o({},l),{},{trackingId:d}),p=-1
return i(Qu({status:"Sending"},a,r.entityUrn)),new fd(a).try((function(i){return p=Hd(),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)=>D(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=e.experimental||{},E=b.isCyPemMetricsEnabled,_=b.isHeaderContentTypeJsonCheckEnabled,k=su(f,!!_),T=uc(e)
if(E){var S=r.PEMKey
v=iu(e,"POST",T,S||Xl[f],r)}else v=nu(e,T,f,r)
return v(y).catch(ru(f)).then(k)}(e,t,r.entityUrn,u.content,f,a,s,u.optionalSendData,1!==i||"RETRY"===c?"DEDUPE":"NOT_DEDUPE").then(Fd(n,i,c)).catch(Ud(n,i,c,r,u,f,void 0))})).timeoutAfter(n.options.sendRetryTimeoutInSecond).retryIf(dt(n,r.clientId)).cancelIf(Md).start().then((function(e){return function(e,t,n){if(t.originToken&&t.originToken!==n)throw Ue.fromApiErrorMemo("MISSING_DATA_FROM_RESPONSE",xe("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(N),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(Qu({lastAttemptAt:new Date(p)},a,r.entityUrn)),pd(r,f,p,r.backendUrn,e.senderUrn,e.backendUrn,null===(t=n.options.trackingOptions)||void 0===t?void 0:t.trackingFireEvent),e.backendUrn&&kd(e.backendUrn,p,null===(o=n.options.trackingOptions)||void 0===o?void 0:o.trackingFireEvent),e})).then((function(e){return i(Qu(o(o({},e),{},{status:"Sent"}),a,r.entityUrn)),r.clientId})).catch((function(e){return i(Qu({status:"Failed",apiResponseError:e.apiResponseError},a,r.entityUrn)),Promise.reject(e)}))}(s.networkConfig,s.id,s,s._dispatch.bind(s),d,l.clientId,n,c,r).catch((function(e){return s.options.continueOnFailure||s._dispatch(Mu(xd(d,"Failed"))),Eu(s.id)(Ue.fromClientErrorMemo("MESSAGE_SEND_FAILED",e))}))}),l.clientId,dt(this,d.clientId)).finally((function(){0===s._getRequestQueue("messageSend",d.clientId).length&&s._dispatch(Mu(xd(d,"Ready")))}))):Eu(this.id)(Ue.fromClientErrorMemoWithComment("CONVERSATION_DOES_NOT_EXIST","Send message in existing conversation"))}},{key:"_updateLocalParticipant",value:function(){var e,t=this
this._localParticipant=null!==(e=P(mu(this._id).participants).filter(N).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(_(c.filter((function(e){return e!==t}))),[t])}:{categories:c.filter((function(e){return e!==t}))}))}),{})
this._dispatch(Mu(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($d,"_queues",{messageSend:{},reactions:{}})
var Zd="0.0.0-productSpec",ef=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=mu(e.urn))||void 0===n?void 0:n.lastActivityAt,o=null===(i=mu(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(Sd(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=_(E(e.getRealtimeTopics(),2)[1].values()).filter((function(e){return!e.endsWith(":myself")}))
r.length>0&&(V("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"):V("Removing broadcast topics subscriptions failed for these topics:",e.failed.join(", "))})).catch((function(e){V("Removing broadcast topics subscriptions failed! ❌",e)})))}(r.mailboxHandlers,n),function(e){(function(e){var t=Ve[e]
Ge(t)&&t.observers.forEach((function(e){return e.complete()}))})(e),Ve[e]=Be}(t))}}]),e}()
p(ef,"pinnedMailboxList",[]),p(ef,"prioritySortedMailboxList",[]),p(ef,"poolCap",5)
var tf=function(){function e(t,n){var r,o=this
u(this,e),p(this,"_participantClientId",Ps()),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]=Yd(null===(r=n.trackingOptions)||void 0===r?void 0:r.incrementMetricCounterHandler)}return f(e,[{key:"_retrieveNetworkConfig",value:function(){return O(this._networkConfig)&&(this._networkConfig=Nd(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=yu(this._urn)
if(O(a))throw Ue.fromClientErrorMemo("MAILBOX_NOT_FOUND",new Error("method = _dispatch(), mailboxUrn = ".concat(this._urn,", mailboxStore = ").concat(s(a))))
var c=mu(this._urn),l=c.status.lastRequestId
switch(e.requestId&&l>e.requestId&&q("Invalid requestId: the store was updated since the request was made. Store lastRequestId: ".concat(l,", action requestId: ").concat(e.requestId)),a.dispatch(e),c=mu(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(ku(this._urn,"MAILBOX_DECORATE_FAILED"))}catch(e){ku(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,_=b.message,k=b.conversationUrn
r&&this._invokeMessageDecorator(r,k,[_],a)
break
case"ADD_NEW_MESSAGES":case"ADD_OLDER_MESSAGES":var T=e.payload,S=T.messages,A=T.conversationUrn
S.length&&r&&this._invokeMessageDecorator(r,A,S,a)
break
case"UPDATE_MESSAGES":if(r){var C=e.payload.conversationUrn,I=e.payload.messageUpdateMap
if(!C){var w=R(I),x=c.conversations.find((function(e){return void 0!==e.messages.getByIdentifier(w[0])}),"FullMailboxState")
if(!x)return
C=x.entityUrn}B(I).forEach((function(e){var n=E(e,2),i=n[0],o=n[1]
if(C)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,C,i)).catch(ku(t._urn,"MESSAGE_DECORATE_FAILED"))}catch(e){ku(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=L(t.map((function(e,t){return[e.entityUrn,n[t]]}))),{type:"DECORATE_PARTICIPANTS",payload:{data:i}}))}}(n,t)).catch(ku(this._urn,"PARTICIPANTS_DECORATE_FAILED"))}catch(e){var i=Ue.fromUnknown("PARTICIPANTS_DECORATE_FAILED",e)
Tu(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=L(o.map((function(t,n){return[t.clientId,e[n]]}))),{type:"DECORATE_ALL_MESSAGES",payload:{data:t}}))})).catch(ku(this._urn,"MESSAGE_DECORATE_FAILED"))}catch(e){var i=Ue.fromUnknown("MESSAGE_DECORATE_FAILED",e)
Tu(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,L(n.map((function(e,t){return[e.clientId,i[t]]})))))}}(i,t,n)).catch(ku(this._urn,"MESSAGE_DECORATE_FAILED"))}catch(e){var r=Ue.fromUnknown("MESSAGE_DECORATE_FAILED",e)
Tu(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=yu(this._urn)
if(O(c))throw Ue.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=L(t.map((function(e,t){return[e.clientId,n[t]]}))),{type:"DECORATE_CONVERSATIONS",payload:{data:i}}))}}(n,i)).catch(ku(this._urn,"CONVERSATION_DECORATE_FAILED"))}catch(e){var r=Ue.fromUnknown("CONVERSATION_DECORATE_FAILED",e)
Tu(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({}):(V("Retrieving mailbox broadcast topics for ",t),function(e,t){var n="getRealtimeAuthTokenAPI",i=cc(e,{mailboxUrn:t}),r=(e.experimental||{}).isHeaderContentTypeJsonCheckEnabled,o=su(n,!!r)
return tl(i).then(o).catch(ru(n))}(e,t).then((function(e){var n,i
Fc(e,"messengerMailboxRealtimeSubscriptionAuthorizationTokensByMailboxUrnsInBatch")
var r,o=(r=(null!==(n=null===(i=e.data)||void 0===i?void 0:i.messengerMailboxRealtimeSubscriptionAuthorizationTokensByMailboxUrnsInBatch)&&void 0!==n?n:[]).filter(N).map((function(e){var t
return null!==(t=e.elements)&&void 0!==t?t:[]})),r.reduce(((e,t)=>[...e,...t]),[])).filter(N),a=o.find(Nt(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,Sd(e)).then((function(n){var r
t._renewAuthTokenTask&&t._renewAuthTokenTask.cancel(),t._realtimeAuthToken&&n.authToken&&(V("updating auth token for ".concat(t.urn," to realtime"),"...".concat(J(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&&(V("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){V("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"}),V("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:Pd(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
V("Bootstrapping mailbox data for ",this._urn)
var t=mu(this._urn)
if(O(t))return Promise.reject(new Error("Mailbox state not could not be found"))
if(tt(t))return Promise.resolve()
var n,i,r,o=Vd(this._participantClientId,this._urn)
return(n=this._urn,i=this._options,r=o,Id(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(qu(a,P(r).filter(N),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]:gu,n=arguments.length>1?arguments[1]:void 0
if(this._options.enableParameterTypeChecks){if(!we(t))return Eu(this.urn)(Ue.fromInvalidType("getMailbox","filter","InputMailboxFilter"))
if(n&&(Array.isArray(n)||!Ce(n)))return Eu(this.urn)(Ue.fromInvalidType("getMailbox","trackingData","TrackingData"))}V("Activating a mailbox for: ",this._urn),this.performance.start("msg-sdk:getMailbox")
var i=Mc(t)?o(o({},t),{},{id:Ps()}):t,r=new $d(this._urn,this._options,this._participantClientId,i,this._dispatch.bind(this),this._retrieveNetworkConfig.bind(this)),a=mu(this._urn)
if(O(a))throw Ue.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"),Cd(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,u=t.data,d=u.conversations,f=u.participants,p=u.status,h=d.filter(ie)
return r._oldestConversationTime=d.length>0?Ld(_(d)):0,e._dispatch({type:"CONNECT"}),e._dispatch(qu(h,P(f).filter(N),p.syncToken,"ADD_CATEGORIES",p.lastRequestId)),r._updateLocalParticipant(),Ed(d.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"),p.syncToken||bu(e.urn,Ue.fromApiErrorMemo("ERRORS_IN_RESPONSE",xe("getMailbox(): SyncToken is null on initial Mailbox bootstrap"))),e.performance.start("msg-sdk:getMailboxUnreadCountsAPI"),(i=e.networkConfig,o=e._urn,a="getMailboxUnreadCountsAPI",s=Fs(i,{mailboxUrn:o}),c=(i.experimental||{}).isHeaderContentTypeJsonCheckEnabled,l=su(a,!!c),tl(s).then(l).catch(ru(a))).then((function(e){return jc(e)})).then((function(t){yu(e._urn)?e._dispatch({type:"UPDATE_MAILBOX_UNREAD_COUNT",payload:t.counters,requestId:t.requestId}):q("Mailbox was destroyed before unread counts were received")})).catch(Eu(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:Xd}}],[{key:"create",value:function(t,n){var i
n.headers&&(i=n.headers,Yc=i),function(e,t){if(Ve[e]&&Ge(Ve[e]))return!1
var n=function(e,t){return{entityUrn:e,lastActivityAt:new Date,conversations:St.fromConversationArray(),participants:{},draftConversations:Su(),connected:{api:t.connected,realtime:t.connected},additionalData:null,status:o(o({},Fe),{},{loading:t.loading}),unreadCounts:{},incompleteRetriableEntities:[]}}(e,t),i=Rt(Ru,n)
Ve[e]={store:i,observers:[]},i.subscribe((function(){!function(e){var t=Ve[e]
Ge(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 nf(e,t){var n
if(V(Zd,"Connecting to",e),O(e)||!le(e))return Promise.reject(Ue.fromInvalidType("connectToMailbox","mailboxUrn","URN"))
if(!Y(t))return Promise.reject(Ue.fromInvalidType("connectToMailbox","options","Partial<MailboxOptions>"))
var i=t.trackingOptions,r=null!==(n=(void 0===i?{}:i).performance)&&void 0!==n?n:Xd
r.start("msg-sdk:connect-to-mailbox")
var a=ef.findConnection(e)
if(a)return r.end("msg-sdk:connect-to-mailbox"),Promise.resolve(a)
var s=o(o({},pc),t),c=tf.create(e,s)
return function(e,t,n){of.apply(this,arguments)}(c,s,e),Sd(t)||(Ad(t)?tf.clientSensorTrackersMap[e].triggerGeneralMetric("unlimited-mailboxes-pre-connect-mailbox"):tf.clientSensorTrackersMap[e].triggerGeneralMetric("unlimited-mailboxes-connect-mailbox")),c.finally((function(){return r.end("msg-sdk:connect-to-mailbox")}))}function rf(e){if(!Array.isArray(e))return[Promise.reject(Ue.fromInvalidType("connectToMailboxes","mailboxesToConnect","MailboxConnectInitialData[]"))]
var t=e
e.length>ef.prioritySortedListMaxSize&&(t=e.slice(0,ef.prioritySortedListMaxSize))
var n=ef.prioritySortedMailboxList
if(ef.prioritySortedMailboxList.length+t.length>ef.prioritySortedListAvailableSpace){ef.sortAndUpdatePrioritySortedMailboxList()
var i=ef.prioritySortedMailboxList.map((function(e){return e.urn}))
t.filter((function(e){return i.includes(e.mailboxUrn)})).forEach((function(e){ef.removeMailboxFromPool(e.mailboxUrn)}))
var r=ef.prioritySortedListMaxSize-t.length,o=ef.prioritySortedMailboxList.length-r
o>0&&ef.prioritySortedMailboxList.slice(-o).forEach((function(e){ef.disconnectMailbox(e.urn)})),n=ef.prioritySortedMailboxList.slice(0,r)}var a=t.map((function(e){return nf(e.mailboxUrn,e.mboxOptions)}))
return Promise.all(a).then((function(e){ef.prioritySortedMailboxList=e.concat(n)})),a}function of(){return(of=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,ef.addMailbox(r,n,tf.clientSensorTrackersMap[i])
case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}p(tf,"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){if("object"!=typeof e||null===e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=typeof n)return n
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:()=>N,conversationDraftMessageObservable:()=>qa,conversationMessagesObservable:()=>Va,conversationObservable:()=>Ha,distinct:()=>D,distinctUntilChanged:()=>O,incompleteRetriableEntitiesObservable:()=>Ka,newMessageFromMailboxObservable:()=>Ga,resetAlertedMessages:()=>Ba,toMessengerObservable:()=>Ua}),n(75023)
var _="function"==typeof Symbol&&Symbol.observable||"@@observable",k=()=>{}
function T(e){var t=[e]
return t.tag=0,t}function S(e){var t=[e]
return t.tag=1,t}function A(e){return t=>n=>{var i=k
t((t=>{0===t?n(0):0===t.tag?(i=t[0],n(t)):e(t[0])?n(t):i(0)}))}}function C(e){return t=>n=>t((t=>{0===t||0===t.tag?n(t):n(S(e(t[0])))}))}var I,w=()=>Symbol.observable||"@@observable"
function x(e){return e=e[w()]?e[w()]():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}I=Symbol.observable
var N=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:I,value:function(){return this}},{key:_,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}(),O=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}),A((function(t){return null==t.prev||!e(t.prev,t.current)})),C((function(e){return e.current})))}},D=function(){return O((function(e,t){return e===t}))}
function P(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 M=function(){return Math.random().toString(36).substring(7).split("").join(".")},j={INIT:"@@redux/INIT"+M(),REPLACE:"@@redux/REPLACE"+M(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+M()}}
const L=e=>t=>!1===e.includes(t),U=(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]])),[[],[]]),G=e=>Object.keys(e),H=e=>null!=e,V=e=>null==e
var q,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(L(e)))):e},Y=function(e){return!e},z=function(e,t,n){var i=new Map(e)
return i.set(t,n),i},X=function(e,t){var n=new Map(e)
return n.delete(t)?n:e},Q=function(e,t){if(e.has(t))return e
var n=new Set(e)
return Object.freeze(n.add(t))},J=function(e,t){var n=new Set(e)
return n.delete(t)?Object.freeze(n):e},$=function(e){return"string"==typeof e},Z=function(e){return"entityUrn"in e&&void 0!==e.entityUrn},ee=function(e){return $(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 $(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},RESPONSE_PARSE_TEXT_ERROR:{message:"Failed to parse the response as text",code:106}},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},MISSING_OR_INVALID_URNS:{message:"Both host recipient urns and conversation URN cannot be empty",code:637},MISSING_MESSAGE_BODY_AND_RENDER_CONTENT:{message:"Both message body and render content cannot be empty",code:638}},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}}
q=Symbol.toPrimitive
var ce,le=function(){!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)}(t,h(Error))
var e=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)}}(t)
function t(n){var i
a(this,t)
var r=n.namespace,o=n.code,s=n.msg,c=n.cause,u=n.originalStatusCodes,d=n.apiResponseError
return l(g(i=e.call(this,"<web-messenger-data> [".concat(r,"] ").concat(s," (").concat(o,") ").concat(t.getMessageFromCause(c)).trimEnd())),"namespace",void 0),l(g(i),"cause",void 0),l(g(i),"code",void 0),l(g(i),"originalStatusCodes",[]),l(g(i),"apiResponseError",void 0),i.name="MDError",i.code=o,i.namespace=r,i.cause=c,i.originalStatusCodes=null!=u?u:[],i.apiResponseError=d,Object.setPrototypeOf(g(i),(this instanceof t?this.constructor:void 0).prototype),i}return c(t,[{key:"id",get:function(){return"".concat(this.namespace,":").concat(this.code)}},{key:q,value:function(e){return"string"===e?this.toString():null}}],[{key:"fromUnknown",value:function(e,n){var i=oe[e],r=i.code,o=i.message
return n instanceof Error?new t({namespace:"client",code:r,msg:"".concat(o," - ").concat(n.message)}):new t({namespace:"client",code:r,msg:o})}},{key:"fromMDResponseError",value:function(e,n){var i=n.message||n.code,r=void 0!==i?"".concat(e," ").concat(i):e
return new t({namespace:"api",code:n.status,msg:r})}},{key:"fromClientErrorMemo",value:function(e,n){var i=oe[e]
return new t({namespace:"client",code:i.code,msg:i.message,cause:n})}},{key:"fromClientErrorMemoWithComment",value:function(e,n,i){var r=oe[e],o=r.code,a=r.message
return new t({namespace:"client",code:o,msg:"".concat(a," - ").concat(n),cause:i})}},{key:"fromInvalidType",value:function(e,n,i){var r=oe.INVALID_TYPE_ARGUMENT,o=r.code,a=r.message,s="".concat(e,"() invalid argument: ").concat(n," is not a valid ").concat(i,"'")
return new t({namespace:"client",code:o,msg:"".concat(a," - ").concat(s)})}},{key:"fromApiErrorMemo",value:function(e,n){var i=re[e],r=i.code,o=i.message
return new t({namespace:"api",code:r,msg:"".concat(o).concat(null!=n&&n.msg?" - "+n.msg:""),cause:null==n?void 0:n.cause,originalStatusCodes:null==n?void 0:n.originalStatusCodes})}},{key:"fromGraphQLErrorMemo",value:function(e,n){var i=ae[e]
return new t({namespace:"graphql",code:i.code,msg:i.message,cause:n})}},{key:"fromRealtimeErrorMemo",value:function(e,n){var i=se[e]
return new t({namespace:"realtime",code:i.code,msg:i.message,cause:n})}},{key:"buildCommonTimeError",value:function(e){var n,i=se.COMMON_TIME_ERROR.message,r=e.message?"".concat(i," - ").concat(e.message):i,o=m(void 0!==(n=e).status&&null!==n.status?[e.originalEvent,e.status]:[void 0,se.COMMON_TIME_ERROR.code],2),a=o[0]
return new t({namespace:"realtime",code:o[1],msg:r,cause:a})}},{key:"buildGraphQLPayloadError",value:function(e,n){var i,r,o=ae.GRAPHQL_ERROR_PAYLOAD.message,a=e.message,s='"'.concat(n,'" ').concat(o," - ").concat(null!=a?a:"")
return new t({namespace:"graphql",code:null!==(i=null===(r=e.extensions)||void 0===r?void 0:r.status)&&void 0!==i?i:ae.GRAPHQL_ERROR_PAYLOAD.code,msg: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)}}]),t}(),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}),[])},_e=function(e){return void 0===e.messages&&void 0!==e.status},ke=function(e,t){var n,i,o,a,s
if(t.lastActivityAt&&t.lastActivityAt<e.lastActivityAt)return e
var c=Ce(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(_e(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)}},Ae=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:[]},Ce=function(e,t){var n=t?function(e,t){var n=r({},e)
return G(t).forEach((function(e){var i=t[e]
if(!V(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 G(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 G(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)},Ie=function(e){return[e.filter(ge).map((function(e){return e.conversationUrn})).sort(),e.filter(me).map((function(e){return e.messageUrn})).sort()]},we=function(){return Ne.fromConversationArray([])},xe=function(e){return!0}
ce=Symbol.iterator
var Re,Ne=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||xe,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?ke(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(U(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]:xe
return new e([].concat(v(t),v(n)),i)}}]),e}(),Oe=["transporterKeys"],De=["breadcrumb"],Pe=["$type"],Me=["requestStart"],je=["requestTime","viewNames","requestType","requestTag"],Le=["requestStart"],Ue=["requestStart"],Fe=["requestTime","viewNames","requestType"]
function Be(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 Ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
t%2?Be(Object(n),!0).forEach((function(t){rt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function He(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(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 Ve(e,t,n){return t=We(t),function(e,t){if(t&&("object"===et(t)||"function"==typeof t))return t
if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined")
return qe(e)}(e,Ke()?Reflect.construct(t,n||[],We(e).constructor):t.apply(e,n))}function qe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return e}function Ke(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ke=function(){return!!e})()}function We(e){return We=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},We(e)}function Ye(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&&ze(e,t)}function ze(e,t){return ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ze(e,t)}function Xe(e,t){if(null==e)return{}
var n,i,r=function(e,t){if(null==e)return{}
var n,i,r={},o=Object.keys(e)
for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n])
return r}(e,t)
if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e)
for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Qe(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(!n){if(Array.isArray(e)||(n=$e(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 Je(e){return function(e){if(Array.isArray(e))return Ze(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(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(e,t){if(e){if("string"==typeof e)return Ze(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)?Ze(e,t):void 0}}function Ze(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 et(e){return et="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},et(e)}function tt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nt(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,ot(i.key),i)}}function it(e,t,n){return t&&nt(e.prototype,t),n&&nt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function rt(e,t,n){return(t=ot(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ot(e){var t=function(e){if("object"!=et(e)||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=et(n))return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==et(t)?t:String(t)}var at,st="unknown",ct=new Uint8Array(16)
function lt(){if(!at&&!(at="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 at(ct)}var ut=/^(?:[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 dt(e){return"string"==typeof e&&ut.test(e)}for(var ft=[],pt=0;pt<256;++pt)ft.push((pt+256).toString(16).slice(1))
function ht(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0
return(ft[e[t+0]]+ft[e[t+1]]+ft[e[t+2]]+ft[e[t+3]]+"-"+ft[e[t+4]]+ft[e[t+5]]+"-"+ft[e[t+6]]+ft[e[t+7]]+"-"+ft[e[t+8]]+ft[e[t+9]]+"-"+ft[e[t+10]]+ft[e[t+11]]+ft[e[t+12]]+ft[e[t+13]]+ft[e[t+14]]+ft[e[t+15]]).toLowerCase()}function gt(e){if(!dt(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 mt(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=gt(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 ht(s)}try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function vt(e){return 14+(e+64>>>9<<4)+1}function yt(e,t){var n=(65535&e)+(65535&t)
return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function bt(e,t,n,i,r,o){return yt((a=yt(yt(t,e),yt(i,o)))<<(s=r)|a>>>32-s,n)
var a,s}function Et(e,t,n,i,r,o,a){return bt(t&n|~t&i,e,t,r,o,a)}function _t(e,t,n,i,r,o,a){return bt(t&i|n&~i,e,t,r,o,a)}function kt(e,t,n,i,r,o,a){return bt(t^n^i,e,t,r,o,a)}function Tt(e,t,n,i,r,o,a){return bt(n^(t|~i),e,t,r,o,a)}mt("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[vt(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=_t(n,i=Et(i,r,o,n,e[a+15],22,1236535329),r,o,e[a+1],5,-165796510),o=_t(o,n,i,r,e[a+6],9,-1069501632),r=_t(r,o,n,i,e[a+11],14,643717713),i=_t(i,r,o,n,e[a],20,-373897302),n=_t(n,i,r,o,e[a+5],5,-701558691),o=_t(o,n,i,r,e[a+10],9,38016083),r=_t(r,o,n,i,e[a+15],14,-660478335),i=_t(i,r,o,n,e[a+4],20,-405537848),n=_t(n,i,r,o,e[a+9],5,568446438),o=_t(o,n,i,r,e[a+14],9,-1019803690),r=_t(r,o,n,i,e[a+3],14,-187363961),i=_t(i,r,o,n,e[a+8],20,1163531501),n=_t(n,i,r,o,e[a+13],5,-1444681467),o=_t(o,n,i,r,e[a+2],9,-51403784),r=_t(r,o,n,i,e[a+7],14,1735328473),n=kt(n,i=_t(i,r,o,n,e[a+12],20,-1926607734),r,o,e[a+5],4,-378558),o=kt(o,n,i,r,e[a+8],11,-2022574463),r=kt(r,o,n,i,e[a+11],16,1839030562),i=kt(i,r,o,n,e[a+14],23,-35309556),n=kt(n,i,r,o,e[a+1],4,-1530992060),o=kt(o,n,i,r,e[a+4],11,1272893353),r=kt(r,o,n,i,e[a+7],16,-155497632),i=kt(i,r,o,n,e[a+10],23,-1094730640),n=kt(n,i,r,o,e[a+13],4,681279174),o=kt(o,n,i,r,e[a],11,-358537222),r=kt(r,o,n,i,e[a+3],16,-722521979),i=kt(i,r,o,n,e[a+6],23,76029189),n=kt(n,i,r,o,e[a+9],4,-640364487),o=kt(o,n,i,r,e[a+12],11,-421815835),r=kt(r,o,n,i,e[a+15],16,530742520),n=Tt(n,i=kt(i,r,o,n,e[a+2],23,-995338651),r,o,e[a],6,-198630844),o=Tt(o,n,i,r,e[a+7],10,1126891415),r=Tt(r,o,n,i,e[a+14],15,-1416354905),i=Tt(i,r,o,n,e[a+5],21,-57434055),n=Tt(n,i,r,o,e[a+12],6,1700485571),o=Tt(o,n,i,r,e[a+3],10,-1894986606),r=Tt(r,o,n,i,e[a+10],15,-1051523),i=Tt(i,r,o,n,e[a+1],21,-2054922799),n=Tt(n,i,r,o,e[a+8],6,1873313359),o=Tt(o,n,i,r,e[a+15],10,-30611744),r=Tt(r,o,n,i,e[a+6],15,-1560198380),i=Tt(i,r,o,n,e[a+13],21,1309151649),n=Tt(n,i,r,o,e[a+4],6,-145523070),o=Tt(o,n,i,r,e[a+11],10,-1120210379),r=Tt(r,o,n,i,e[a+2],15,718787259),i=Tt(i,r,o,n,e[a+9],21,-343485551),n=yt(n,s),i=yt(i,c),r=yt(r,l),o=yt(o,u)}return[n,i,r,o]}(function(e){if(0===e.length)return[]
for(var t=8*e.length,n=new Uint32Array(vt(t)),i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32
return n}(e),8*e.length))}))
var St={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)}
function At(e,t,n){if(St.randomUUID&&!t&&!e)return St.randomUUID()
var i=(e=e||{}).random||(e.rng||lt)()
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 ht(i)}function Ct(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 It(e,t){return e<<t|e>>>32-t}mt("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]=It(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 _=Math.floor(E/20),k=It(g,5)+Ct(_,m,v,y)+b+t[_]+f[E]>>>0
b=y,y=v,v=It(m,30)>>>0,m=g,g=k}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 wt=Uint8Array,xt=Uint16Array,Rt=Uint32Array,Nt=new wt([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Ot=new wt([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]),Dt=new wt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Pt=function(e,t){for(var n=new xt(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1]
var r=new Rt(n[30])
for(i=1;i<30;++i)for(var o=n[i];o<n[i+1];++o)r[o]=o-n[i]<<5|i
return[n,r]},Mt=Pt(Nt,2),jt=Mt[0],Lt=Mt[1]
jt[28]=258,Lt[258]=28
for(var Ut=Pt(Ot,0)[1],Ft=new xt(32768),Bt=0;Bt<32768;++Bt){var Gt=(43690&Bt)>>>1|(21845&Bt)<<1
Gt=(61680&(Gt=(52428&Gt)>>>2|(13107&Gt)<<2))>>>4|(3855&Gt)<<4,Ft[Bt]=((65280&Gt)>>>8|(255&Gt)<<8)>>>1}var Ht=function(e,t,n){for(var i=e.length,r=0,o=new xt(t);r<i;++r)e[r]&&++o[e[r]-1]
var a,s=new xt(t)
for(r=0;r<t;++r)s[r]=s[r-1]+o[r-1]<<1
if(n){a=new xt(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[Ft[d]>>>c]=l}else for(a=new xt(i),r=0;r<i;++r)e[r]&&(a[r]=Ft[s[e[r]-1]++]>>>15-e[r])
return a},Vt=new wt(288)
for(Bt=0;Bt<144;++Bt)Vt[Bt]=8
for(Bt=144;Bt<256;++Bt)Vt[Bt]=9
for(Bt=256;Bt<280;++Bt)Vt[Bt]=7
for(Bt=280;Bt<288;++Bt)Vt[Bt]=8
var qt=new wt(32)
for(Bt=0;Bt<32;++Bt)qt[Bt]=5
var Kt=Ht(Vt,9,0),Wt=Ht(qt,5,0),Yt=function(e){return(e+7)/8|0},zt=function(e,t,n){n<<=7&t
var i=t/8|0
e[i]|=n,e[i+1]|=n>>>8},Xt=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},Qt=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[rn,0]
if(1==r){var a=new wt(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 xt(f+1),h=Jt(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 wt(p),h]},Jt=function e(t,n,i){return-1==t.s?Math.max(e(t.l,n,i+1),e(t.r,n,i+1)):n[t.s]=i},$t=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new xt(++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]},Zt=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i]
return n},en=function(e,t,n){var i=n.length,r=Yt(t+2)
e[r]=255&i,e[r+1]=i>>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1]
for(var o=0;o<i;++o)e[r+o+4]=n[o]
return 8*(r+4+i)},tn=function(e,t,n,i,r,o,a,s,c,l,u){zt(t,u++,n),++r[256]
for(var d=Qt(r,15),f=d[0],p=d[1],h=Qt(o,15),g=h[0],m=h[1],v=$t(f),y=v[0],b=v[1],E=$t(g),_=E[0],k=E[1],T=new xt(19),S=0;S<y.length;++S)T[31&y[S]]++
for(S=0;S<_.length;++S)T[31&_[S]]++
for(var A=Qt(T,7),C=A[0],I=A[1],w=19;w>4&&!C[Dt[w-1]];--w);var x,R,N,O,D=l+5<<3,P=Zt(r,Vt)+Zt(o,qt)+a,M=Zt(r,f)+Zt(o,g)+a+14+3*w+Zt(T,C)+(2*T[16]+3*T[17]+7*T[18])
if(D<=P&&D<=M)return en(t,u,e.subarray(c,c+l))
if(zt(t,u,1+(M<P)),u+=2,M<P){x=Ht(f,p,0),R=f,N=Ht(g,m,0),O=g
var j=Ht(C,I,0)
for(zt(t,u,b-257),zt(t,u+5,k-1),zt(t,u+10,w-4),u+=14,S=0;S<w;++S)zt(t,u+3*S,C[Dt[S]])
u+=3*w
for(var L=[y,_],U=0;U<2;++U){var F=L[U]
for(S=0;S<F.length;++S){var B=31&F[S]
zt(t,u,j[B]),u+=C[B],B>15&&(zt(t,u,F[S]>>>5&127),u+=F[S]>>>12)}}}else x=Kt,R=Vt,N=Wt,O=qt
for(S=0;S<s;++S)if(i[S]>255){B=i[S]>>>18&31,Xt(t,u,x[B+257]),u+=R[B+257],B>7&&(zt(t,u,i[S]>>>23&31),u+=Nt[B])
var G=31&i[S]
Xt(t,u,N[G]),u+=O[G],G>3&&(Xt(t,u,i[S]>>>5&8191),u+=Ot[G])}else Xt(t,u,x[i[S]]),u+=R[i[S]]
return Xt(t,u,x[256]),u+R[256]},nn=new Rt([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),rn=new wt(0),on=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,i=9;--i;)n=(1&n&&-306674912)^n>>>1
e[t]=n}return e}(),an=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},sn="undefined"!=typeof TextDecoder&&new TextDecoder
try{sn.decode(rn,{stream:!0})}catch(Hr){}function cn(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function ln(){try{return cn()&&"keepalive"in new Request("")}catch(e){return!1}}function un(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=on[255&n^t[i]]^n>>>8
e=n},d:function(){return~e}}}(),i=e.length
n.p(e)
var r=function(e,t,n){return function(e,t,n,i,r,o){var a=e.length,s=new wt(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=en(c,l+1,e.subarray(u,d))}else{for(var f=nn[t-1],p=f>>>13,h=8191&f,g=(1<<n)-1,m=new xt(32768),v=new xt(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},_=new Rt(25e3),k=new xt(288),T=new xt(32),S=0,A=0,C=(u=0,0),I=0,w=0;u<a;++u){var x=E(u),R=32767&u,N=v[x]
if(m[R]=N,v[x]=R,I<=u){var O=a-u
if((S>7e3||C>24576)&&O>423){l=tn(e,c,0,_,k,T,A,C,w,u-w,l),C=S=A=0,w=u
for(var D=0;D<286;++D)k[D]=0
for(D=0;D<30;++D)T[D]=0}var P=2,M=0,j=h,L=R-N&32767
if(O>2&&x==E(u-L))for(var U=Math.min(p,O)-1,F=Math.min(32767,u),B=Math.min(258,O);L<=F&&--j&&R!=N;){if(e[u+P]==e[u+P-L]){for(var G=0;G<B&&e[u+G]==e[u+G-L];++G);if(G>P){if(P=G,M=L,G>U)break
var H=Math.min(L,G-2),V=0
for(D=0;D<H;++D){var q=u-L+D+32768&32767,K=q-m[q]+32768&32767
K>V&&(V=K,N=q)}}}L+=(R=N)-(N=m[R])+32768&32767}if(M){_[C++]=268435456|Lt[P]<<18|Ut[M]
var W=31&Lt[P],Y=31&Ut[M]
A+=Nt[W]+Ot[Y],++k[257+W],++T[Y],I=u+P,++S}else _[C++]=e[u],++k[e[u]]}}l=tn(e,c,o,_,k,T,A,C,w,u-w,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?xt:4==e.BYTES_PER_ELEMENT?Rt:wt)(n-t)
return i.set(e.subarray(t,n)),i}(s,0,i+Yt(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&&an(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8
for(var i=0;i<=n.length;++i)e[i+10]=n.charCodeAt(i)}}(r,t),an(r,o-8,n.d()),an(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 dn(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var fn,pn="undefined"!=typeof navigator&&"sendBeacon"in navigator,hn=ln()?function(e,t,n,i){return new Promise((function(r){fetch(e,un({body:t,keepalive:!0,headers:n,compress:i})).catch((function(){return fetch(e,un({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:dn(e)})}))}))}:function(e,t,n,i){return new Promise((function(r){if(pn){var o=!1
try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void r({type:"unknown",drop:!1})}fetch(e,un({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:dn(e)})}))}))}
function gn(e){return new Promise((function(t,n){e.oncomplete=e.onsuccess=function(){return t(e.result)},e.onabort=e.onerror=function(){return n(e.error)}}))}function mn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"key",i=arguments.length>3?arguments[3]:void 0,r=indexedDB.open(e)
r.onupgradeneeded=function(){try{r.result.createObjectStore(t,{keyPath:n})}catch(e){null==i||i.onError(e)}}
var o=new Promise((function(e,t){r.onsuccess=function(){var t=r.result
t.onversionchange=function(){return t.close()},e(t),null==i||i.onSuccess()},r.onerror=function(){t(r.error),null==i||i.onError(r.error)}}))
return function(e,n){return o.then((function(i){return n(i.transaction(t,e).objectStore(t))}))}}function vn(){return fn||(fn=mn("idb-queue","default")),fn}function yn(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))},gn(e.transaction)}var bn=!1
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]:vn()
return bn?Promise.resolve():function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vn()
return n("readwrite",(function(n){return n.put(e),gn(n.count()).then((function(e){if(!(e<=t.maxNumber))return yn(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{maxNumber:1e3,batchEvictionNumber:300}
return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:vn())("readwrite",(function(t){return yn(t,e)}))}(t,n)}))}(e,t,n)}function _n(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())},gn(t.transaction).then((function(){return i}))}))}function kn(){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 Tn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function Sn(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 Cn=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
tt(this,e),rt(this,"config",void 0),rt(this,"compress",void 0),rt(this,"throttleControl",void 0),rt(this,"withStore",void 0),rt(this,"disablePersistence",!1),this.config=t,this.compress=i
var r,o,a,s=t.measureIDB
s&&performance.mark(s.createStartMark),this.withStore=mn(t.idbName,"beacons","timestamp",{onSuccess:function(){s&&performance.measure(s.createSuccessMeasure,s.createStartMark)},onError:function(){s&&performance.measure(s.createFailMeasure,s.createStartMark),n.disablePersistence=!0}}),this.throttleControl=(r=this.replayEntries.bind(this),o=t.throttleWait,a=0,{throttledFn:function(){var e=Date.now()
e-a>o&&(Tn((function(){return"[throttle] Run fn() at "+String(e)})),r(),a=e)},resetThrottle:function(){a=0}})}return it(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this
if(!this.disablePersistence){var n=function(){Tn((function(){return"Persisting to DB "+e.url})),En(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),Tn((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,Sn((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]:vn()
return bn=!0,e("readwrite",(function(e){return e.clear(),gn(e.transaction).finally((function(){return bn=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,Sn((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 _n(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:vn(),"next")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,Sn((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 _n(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:vn(),"prev")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,Sn((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this
if(!this.disablePersistence){var t=function(){Tn((function(){return"Replaying entry: shift from store"})),function(){return function(e,t){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())},gn(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]:vn())}(1,e.withStore).then((function(t){if(t.length>0){var n,i,r=t[0],o=r.url,a=r.body,s=r.headers,c=r.timestamp,l=r.statusCode,u=r.attemptCount
return Tn((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(i=e.config).onBeforeRetry)||void 0===n||n.call(i,a),hn(o,a,kn(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 Tn((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),Tn((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&&Sn((function(){return"Replay entry failed: ".concat(t.message)}))}))}
this.config.useIdle?An(t):t()}}}]),e}(),In=function(){function e(){tt(this,e)}return it(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}(),wn=function(){function e(t,n){tt(this,e),rt(this,"queue",void 0),rt(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new Cn(t,n.compress):new In}return it(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}()
rt(wn,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB)
var xn=[502,504],Rn=[429,503],Nn=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4]
tt(this,e),rt(this,"url",void 0),rt(this,"body",void 0),rt(this,"config",void 0),rt(this,"persistenceConfig",void 0),rt(this,"compress",void 0),rt(this,"timestamp",void 0),rt(this,"isClearQueuePending",!1),rt(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 it(e,[{key:"send",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
this.persistenceConfig.db.onClear(this.onClearCallback)
var n=this.retryLimit
return this.retry((function(t){return hn(e.url,e.body,t,e.compress)}),n,t).finally((function(){Tn((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(kn(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(Tn((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 Tn((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}(),On="internal:hide",Dn="internal:error"
function Pn(e,t,n){var i=e.get(t)
i&&i.push(n)||e.set(t,[n])}function Mn(e,t,n){var i=e.get(t)
i&&i.splice(i.indexOf(n)>>>0,1)}var jn,Ln,Un=(jn=new Map,Ln=new Map,{on:function(e,t){Pn(jn,e,t)},before:function(e,t){Pn(Ln,e,t)},off:function(e,t){Mn(jn,e,t)},offBefore:function(e,t){Mn(Ln,e,t)},emit:function(e,t){(Ln.get(e)||[]).concat(jn.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){Ln.clear(),jn.clear()}})
if("undefined"!=typeof document&&"undefined"!=typeof window){var Fn=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||Un.emit(On,e)}
document.addEventListener("visibilitychange",Fn),window.addEventListener("pagehide",Fn)}var Bn=null
if("undefined"==typeof crypto||!crypto.getRandomValues){var Gn=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto")
if(Gn){var Hn=new Uint8Array(256),Vn=Hn.length
Bn={rng:function(){return Vn>Hn.length-16&&(Gn.randomFillSync(Hn),Vn=0),Hn.slice(Vn,Vn+=16)}}}}var qn="object"===("undefined"==typeof crypto?"undefined":et(crypto))&&"function"==typeof crypto.randomUUID?function(){return crypto.randomUUID()}:function(){return function(e){return function(e){var t=ht(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)
if(!dt(t))throw TypeError("Stringified UUID is invalid")
return t}(e)}(Kn())}
function Kn(){return At(Bn,new Array(16),0)}function Wn(e){return Je(e).map((function(e){return String.fromCharCode(e)})).join("")}function Yn(){return Wn(Kn())}var zn=/^[a-zA-Z0-9/+]+[=]+$/
function Xn(e,t){return{pageUrn:Jn(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("")}(Kn())}}function Qn(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function Jn(e){return"urn:li:page:".concat(e)}function $n(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function Zn(e,t){return void 0!==t.allSettled?t.allSettled(e):function(e){return new Promise((function(t){var n=new Set,i=function(e){n.delete(e),0===n.size&&t()}
0===e.length?t():e.map((function(e){return e.then((function(){return i(e)})).catch((function(){return i(e)}))}))}))}(e)}function ei(e){var t=[]
return e.forEach((function(e){return t.push(e)})),t}function ti(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 ni(){return"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1||!cn()||"undefined"==typeof Promise}function ii(e,t,n,i){var r=["core-web-tracking:".concat(e)]
null==i||i.forEach((function(e){return r.push(e)})),Un.emit(Dn,{tags:r,reason:t instanceof Error?t:new Error("".concat(e,": ").concat(t)),responseHeaders:n})}function ri(e){var t=window.structuredClone
return t?t(e):JSON.parse(JSON.stringify(e))}var oi=function(){function e(t){tt(this,e),rt(this,"heap",void 0),rt(this,"comparator",void 0),this.comparator=t,this.heap=[]}return it(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=Je(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}(),ai=function(e){if(!ci(e))return[]
for(var t=[],n=0,i=Object.keys(e);n<i.length;n++){var r=i[n]
"default"!==r&&t.push(r)}return t},si=function(e,t){var n={},i=[]
if(0===e.length)return[n,e]
if(0===t.length)return[n,e]
var r,o=Qe(e)
try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.transporterKeys,c=Xe(a,Oe)
if(s&&s.length>0){var l,u=Qe(s)
try{for(u.s();!(l=u.n()).done;){var d,f=l.value
t.includes(f)?(null!==(d=n[f])&&void 0!==d||(n[f]=[]),n[f].push(c)):i.push(c)}}catch(e){u.e(e)}finally{u.f()}}else i.push(c)}}catch(e){o.e(e)}finally{o.f()}return[n,i]},ci=function(e){return e&&void 0!==e&&Object.keys(e).length>0},li=function(e,t){return(e.endsWith("/")?e:"".concat(e,"/"))+(t.startsWith("/")?t.slice(1):t)},ui="beacons"
function di(){if("undefined"==typeof Promise||"undefined"==typeof navigator)return!1
var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.cookieEnabled,n=navigator.storage
return e&&ln()&&t&&n}var fi=function(){function e(t){tt(this,e),rt(this,"host",void 0),this.host=t}return it(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&&di()&&navigator.storage.estimate().then((function(o){if(!((o.quota||0)-(o.usage||0)>52428800))return function(e){var t=window.indexedDB.deleteDatabase(e)
return new Promise((function(e,n){t.onsuccess=function(){return e()},t.onerror=function(){return n(t.error)}}))}(ui)
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:ui,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:xn,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:Rn,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry)
r.headerName=r.headerName||i.headerName,e=new wn(r,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(r,o,a){var s
return cn()?new Nn(r,o,i,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(s=t.persistenceRetry)||void 0===s?void 0:s.statusCodes)||Rn},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){ii("retry:idb",e)})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){ii("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){ii("retry:logout",e)}))}},{key:"sendPayload",value:function(e,t,n,i){var r,o=this.getRetryTreatment()
ln()&&"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){ii("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)&&(ni()?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}):hn(e,JSON.stringify(t),n,this.shouldCompressPayload()).then((function(e){null==i||i.onResult(e,t)}),(function(){})))}},{key:"getRetryTreatment",value:function(){var e,t,n
if(!this.host.retryConfig)return"control"
var i=this.host.retryConfig.lixKey
return i?null!==(e=null===(t=(n=this.host).__getLixTreatment)||void 0===t?void 0:t.call(n,i))&&void 0!==e?e:"control":"enabled"}},{key:"shouldCompressPayload",value:function(){return!0!==this.host.disableCompression}},{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&&di()&&"undefined"!=typeof globalThis&&!!globalThis.indexedDB}}]),e}(),pi="undefined"!=typeof window&&"undefined"!=typeof document,hi=/JSESSIONID="?([^";]+)"?/,gi="",mi=0
function vi(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cacheLifeSpan,n=void 0===t?1e4:t,i=e.regex,r=void 0===i?hi:i
if(!gi||Date.now()-mi>n){var o=pi&&document.cookie.match(r)
gi=o&&o[1]||"",mi=Date.now()}return gi}var yi={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"}},bi=function(){function e(t){tt(this,e),rt(this,"networkTransporter",void 0),rt(this,"inactive",void 0),rt(this,"mpName",void 0),rt(this,"endpoint",void 0),rt(this,"debug",void 0),this.networkTransporter=new fi(t),this.mpName=t.appId,this.inactive=t.inactive
var n=function(e){var t,n=!1
return yi.prod.pattern.test(e)?t=yi.prod.monitorEndpoint:yi.eiValidate.pattern.test(e)?(n=!0,t=yi.eiValidate.monitorEndpoint):yi.ei.pattern.test(e)?t=yi.ei.monitorEndpoint:(t=yi.ei.monitorEndpoint,n=!0),{endpoint:t,debug:n}}(t.endpoint)
this.endpoint=n.endpoint,this.debug=n.debug}return it(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":vi(),"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,Je(t.failures)),e}),[]);[].concat(Je(o),Je(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 Ei(e){return"string"==typeof e}function _i(e){return Ei(e)?e:e.topicName||e.eventName}function ki(e){return Ei(e)?e:e.eventName}var Ti,Si,Ai=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
tt(this,e),rt(this,"host",void 0),rt(this,"cmoTransporter",void 0),rt(this,"clientMonitoringInstanceId",Yn()),rt(this,"currentContext",{pageKey:st,pageInstance:Xn(st)}),rt(this,"appState",{}),rt(this,"estimatedFragmentSize",0),rt(this,"fragmentSizeLimit",void 0),rt(this,"activeFragmentEvent",void 0),rt(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=i.cmoTransporter||new bi(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=Ii(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return it(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=Qe(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:ki(t),eventTopic:_i(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=Ii(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=wi(e.trackingId))
var t=this.currentContext.pageInstance
return t.trackingId=wi(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:Yn(),memberId:0}}}}]),e}()
function Ci(e){return Ti||(Ti=new Ai(e)),{getCurrentInstanceId:function(){return Ti.getCurrentInstanceId()},logEventGenerated:function(e){return Ti.logEventGenerated(e)},logEventReadyToSend:function(e){Ti.logEventReadyToSend(e)},logEventSent:function(e){Ti.logEventSent(e)},logPersistedEventSent:function(e,t){Ti.logEventSent(t,e)},logNetworkResponseCode:function(e){Ti.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n
null===(n=Ti)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,i){Ti.logFailedEvent(e,t,n,i)},logPersistedFailedEvent:function(e,t,n,i,r){Ti.logFailedEvent(t,n,i,r,e)},flush:function(){Ti.flush()},destroy:function(){Ti=void 0},isDestroyed:function(){return void 0===Ti},setCurrentContext:function(e){Ti.setCurrentContext(e)},updateAppState:function(e){Ti.updateAppState(e)}}}function Ii(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 wi(e){return Array.isArray(e)?Wn(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(zn)}(e)?atob(e):Wn(function(e){return gt(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"}(Si||(Si={}))
var xi,Ri=["PageViewEvent","SponsoredImpressionEvent","JobViewEvent"],Ni="PageViewEvent",Oi=function(){function e(t){var n,i,r,o=this
tt(this,e),rt(this,"host",void 0),rt(this,"queue",void 0),rt(this,"preContextQueue",void 0),rt(this,"debounceTimer",void 0),rt(this,"unloadHandlers",void 0),rt(this,"maxQueueSize",void 0),rt(this,"flushDebounceTime",void 0),rt(this,"trackingEventListeners",[]),rt(this,"onHideHandler",(function(){o.forceFlush()})),rt(this,"networkTransporter",void 0),rt(this,"clientMonitoringConn",void 0),rt(this,"clientGlobalSequenceNumberCounter",void 0),rt(this,"clientTopicLocalSequenceNumberCountersMap",{}),rt(this,"isTimerRunning",void 0),rt(this,"trackingEndpoint",void 0),rt(this,"isEvenBatchEnabled",void 0),this.host=t,this.queue=[],this.preContextQueue=[],this.unloadHandlers=[]
var a=t.batching,s=null!==(n=null==a?void 0:a.evenBatchEnabled)&&void 0!==n&&n,c="development"===t.environment||(null===(i=t.api)||void 0===i||null===(i=i.location)||void 0===i||null===(i=i.host)||void 0===i?void 0:i.indexOf("-ei."))>-1?"https://www.linkedin-ei.com/li/track/validate":t.endpoint||"https://www.linkedin.com/li/track"
this.trackingEndpoint=function(e,t){return/linkedin(?:-ei)?\.cn/.test(t)?e.replace(/\/\/(\S+?)\.linkedin(-ei)?\.com/,"//$1.linkedin$2.cn"):e}(c,null===(r=t.api)||void 0===r||null===(r=r.location)||void 0===r?void 0:r.host),this.maxQueueSize=a&&a.maxSize||1,this.flushDebounceTime=a&&a.debounceTime||0,Un.on(On,this.onHideHandler),this.networkTransporter=new fi(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=Ci(t)),this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1,this.isEvenBatchEnabled=this.isLixEnabled("pemberly.tracking.even-batch")||s}return it(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(Si.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,Si.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(_i(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,Un.off(On,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:Xn(st),pageKey:st}).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
ti("read").then((function(t){var n
e.clientGlobalSequenceNumberCounter=null!==(n=null==t?void 0:t.sequenceNumber)&&void 0!==n?n:0,Ri.forEach((function(n){var i
e.clientTopicLocalSequenceNumberCountersMap[n]=null!==(i=null==t?void 0:t[n])&&void 0!==i?i:0}))})).catch((function(e){ii("sequence-number:idb-read",e)}))}},{key:"updateSequenceNumberToIDB",value:function(){ti("update",this.clientGlobalSequenceNumberCounter,this.clientTopicLocalSequenceNumberCountersMap).catch((function(e){ii("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=$n(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===Ni:e.eventName===Ni}(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:!ni()&&(ln()||"undefined"!=typeof navigator&&"sendBeacon"in navigator),isBrowserPersistentRetryEnabled:this.networkTransporter.isBrowserPersistentRetryEnabled(),clientDeviceType:"DESKTOP",timeZoneOffsetMinutes:-1*(new Date).getTimezoneOffset()},y={pageInstance:d,time:e.meta.time,version:i,server:"",service:"",guid:Yn(),memberId:0}
"number"==typeof this.clientGlobalSequenceNumberCounter&&c(y,{clientGlobalSequenceNumber:this.clientGlobalSequenceNumberCounter})
var b=_i(e.id)
if(Ri.includes(b)){var E=this.clientTopicLocalSequenceNumberCountersMap[b]
"number"==typeof E&&c(y,{clientTopicLocalSequenceNumber:E})}var _={header:c(y,e.meta.header||{}),requestHeader:c(v,e.meta.requestHeader||{})},k=e.meta.clientMonitoringInstanceId,T=e.meta.clientMonitoringInstanceEventNumber
return k&&c(_.header,{clientMonitoringInstanceId:k,clientMonitoringInstanceEventNumber:T}),c(e.body,_)}},{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=_i(e.id)
Ri.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(Si.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}(),Di=function(){function e(t,n){tt(this,e),this.clientBreadcrumbType=t,this.id=n}return it(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(e){e.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION",e.JOB_VIEW="JOB_VIEW",e.MEDIA="MEDIA",e.FEED_UPDATE_SERVED="FEED_UPDATE_SERVED",e.MESSAGE_SEND_CLIENT_SUCCESS="MESSAGE_SEND_CLIENT_SUCCESS",e.MESSAGE_SEND_CLIENT_FAILURE="MESSAGE_SEND_CLIENT_FAILURE",e.MESSAGE_SEND_FUNNEL="MESSAGE_SEND_FUNNEL"}(xi||(xi={}))
var Pi,Mi,ji,Li=function(){function e(){return tt(this,e),Ve(this,e,[xi.FEED_UPDATE_SERVED,Yn()])}return Ye(e,Di),it(e)}(),Ui=function(){function e(){var t
return tt(this,e),rt(qe(t=Ve(this,e,[xi.UNKNOWN,Yn()])),"content",void 0),rt(qe(t),"featureBreadcrumbType",void 0),t}return Ye(e,Di),it(e)}()
function Fi(e,t){var n,i,r
switch(t){case"proto.sdui.breadcrumbs.feed.FeedUpdateServedBreadcrumb":r=(new Li).builder
break
case"proto.sdui.tracking.TrackingBreadcrumb":r=(new Ui).builder
var o=(new TextDecoder).decode(null===(n=new Uint8Array(null==e||null===(i=e.content)||void 0===i?void 0:i.data))||void 0===n?void 0:n.buffer)
try{for(var a=null==e?void 0:e.breadcrumbType,s={content:JSON.parse(o),breadcrumbType:a},c=0,l=Object.entries(s);c<l.length;c++){var u=He(l[c],2),d=u[0],f=u[1]
ci(f)&&r[d](f)}return r.build()}catch(e){throw new Error("Error parsing breadcrumb content: ".concat(e))}break
default:throw new Error("breadcrumb class ".concat(t," needs to be defined in core-web-tracking."))}if(!r)throw new Error("breadcrumb class ".concat(t," needs to be defined in core-web-tracking."))
for(var p in e){var h=e[p]
null!=h&&r[p](h)}return r.build()}function Bi(e){var t,n=new Set,i=[],r=Qe(e)
try{for(r.s();!(t=r.n()).done;){var o=t.value,a="".concat(o.contentTrackingId,"-").concat(o.topicName)
n.has(a)||(n.add(a),i.push(o))}}catch(e){r.e(e)}finally{r.f()}var s=function(e){var t,n=[],i=[],r=Qe(e)
try{for(r.s();!(t=r.n()).done;){var o=t.value,a=o.breadcrumb,s=Xe(o,De)
if(i.push(s),a){var c=a.$type,l=Fi(Xe(a,Pe),c)
n.push(l)}}}catch(e){r.e(e)}finally{r.f()}return{extractedBreadcrumbs:n,trackingScopesWithoutBreadcrumbs:i}}(i)
return{breadcrumbs:s.extractedBreadcrumbs,trackingScopes:s.trackingScopesWithoutBreadcrumbs}}function Gi(e){return"retryConfig"in e.host}function Hi(e){return"location"in e.api}it((function e(t,n,i,r,o,a){var s,c,l,u
if(tt(this,e),rt(this,"transporter",void 0),rt(this,"delegate",void 0),rt(this,"viewSpecs",void 0),rt(this,"transportConfig",void 0),rt(this,"dynamicTransporterSupportLixKey",void 0),rt(this,"domain",void 0),rt(this,"currentContext",void 0),rt(this,"appState",void 0),rt(this,"referrer",void 0),rt(this,"previousAppContext",void 0),rt(this,"customTransporters",void 0),rt(this,"clientMonitoringConn",void 0),rt(this,"dynamicTransporterSupportEnabled",void 0),this.transporter=t,this.delegate=n,this.viewSpecs=i,this.transportConfig=r,this.dynamicTransporterSupportLixKey=o,this.domain=a,this.appState={},this.customTransporters={},this.dynamicTransporterSupportEnabled=!!o&&function(e){return!(!e||"control"===e)}(null===(s=(c=t.host).__getLixTreatment)||void 0===s?void 0:s.call(c,o)),this.transportConfig=r,n&&n.customTransporterHosts)for(var d in n.customTransporterHosts)if(Object.prototype.hasOwnProperty.call(n.customTransporterHosts,d)){var f=this.transporter.host.api.assign({},this.transporter.host)
this.customTransporters[d]=new Oi(this.transporter.host.api.assign(f,n.customTransporterHosts[d]))}if(this.dynamicTransporterSupportEnabled&&ci(r))for(var p=0,h=Object.entries(r);p<h.length;p++){var g,m=He(h[p],2),v=m[0],y=m[1]
y=Ge(Ge({},y),{},{endpoint:"".concat(li(a||"",(null===(g=y)||void 0===g?void 0:g.endpoint)||""))})
var b=this.transporter.host.api.assign({},this.transporter.host)
this.customTransporters[v]=new Oi(this.transporter.host.api.assign(b,y))}"enabled"===(null===(l=(u=t.host).__getLixTreatment)||void 0===l?void 0:l.call(u,"pemberly.tracking.monitoring"))&&t.host.clientMonitoringConfig&&!t.host.inactive&&Hi(t.host)&&(this.clientMonitoringConn=Ci(t.host)),ci(i)&&(this.viewSpecs=i)}),[{key:"host",get:function(){return this.transporter.host}},{key:"addBeforeHandlerToHideEvent",value:function(e){Un.before(On,e)}},{key:"removeBeforeHandlerToHideEvent",value:function(e){Un.offBefore(On,e)}},{key:"checkAndEnablePersistentRetry",value:function(){Gi(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush()
var e=Gi(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null
return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return $n(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,function(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}}(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=$n(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext($n(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=Qn(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:"getViewTrackingScope",value:function(e){for(var t=[],n=e;n instanceof Element&&"body"!==n.tagName.toLowerCase();){var i=n.closest("[data-view-tracking-scope]")
if(i){var r=i.getAttribute("data-view-tracking-scope")
if(r)try{var o=JSON.parse(r)
o&&o.length&&t.push.apply(t,Je(o))}catch(e){ii("getViewTrackingScope","Error parsing trackingScope ".concat(r))}}n=null==i?void 0:i.parentElement}return t}},{key:"fireInteraction",value:function(e){var t,n=e.manualFireReason,i=e.interactionType,r=e.targetView,o=e.viewHierarchy,a=void 0===o?[]:o,s=e.viewTrackingScope,c=void 0===s?[]:s,l=e.verticalPosition,u=e.horizontalPosition,d=e.controlUrn,f=void 0===d?"":d,p=e.actionType,h=e.contentTrackingId,g=void 0===h?void 0:h,m=e.clientBreadcrumbs,v=void 0===m?[]:m,y=e.isShadowEvent,b=e.cooloffToken,E=r?this.getViewHierarchy(r):[],_=E.length>0?E:a
0!==_.length&&null!==(t=this.viewSpecs)&&void 0!==t&&t.some((function(e){return e.viewName==_[0]}))||console.warn("No viewHierarchy provided or found from element.")
var k=c.length>0?c:this.getViewTrackingScope(r)
if(this.dynamicTransporterSupportEnabled){var T=ai(this.transportConfig),S=He(si(k,T),2),A=S[0],C=S[1],I="GenericActionEvent",w={verticalPosition:l,horizontalPosition:u,controlUrn:f,interactionType:i,actionType:p,contentTrackingId:""===g?void 0:g,manualFireReason:n,cooloffToken:b}
if(ci(A)){for(var x=0,R=Object.entries(A);x<R.length;x++){var N=He(R[x],2),O=N[0],D=Bi(N[1]),P=D.breadcrumbs,M=D.trackingScopes
this.fireEvent(I,Ge(Ge({},w),{},{trackingScopeHierarchy:{entries:M}}),{header:{viewHierarchy:_},transporterKey:O},P,y)}if(0===C.length)return Promise.resolve(!0)}var j=Bi(C),L=j.breadcrumbs,U=j.trackingScopes
return this.fireEvent(I,{verticalPosition:l,horizontalPosition:u,controlUrn:f,interactionType:i,actionType:p,contentTrackingId:""===g?void 0:g,manualFireReason:n,cooloffToken:b,trackingScopeHierarchy:{entries:U}},{header:{viewHierarchy:_}},[].concat(Je(v),Je(L)),y)}var F=Bi(k),B=F.breadcrumbs,G=F.trackingScopes
return this.fireEvent("GenericActionEvent",{verticalPosition:l,horizontalPosition:u,controlUrn:f||"",interactionType:i,actionType:p,contentTrackingId:""===g?void 0:g,manualFireReason:n,cooloffToken:b,trackingScopeHierarchy:{entries:G}},{header:{viewHierarchy:_}},[].concat(Je(v),Je(B)),y)}},{key:"fireImpression",value:function(e,t){var n,i=e.manualFireReason,r=e.targetView,o=e.viewHierarchy,a=void 0===o?[]:o,s=e.viewTrackingScope,c=void 0===s?[]:s,l=e.viewDurationInMilliseconds,u=void 0===l?0:l,d=e.contentViewFraction,f=void 0===d?1:d,p=e.width,h=void 0===p?-1:p,g=e.height,m=void 0===g?-1:g,v=e.verticalPosition,y=e.horizontalPosition,b=e.impressionTime,E=e.contentTrackingId,_=e.clientBreadcrumbs,k=void 0===_?[]:_,T=e.isShadowEvent,S=e.cooloffToken,A=r?this.getViewHierarchy(r):[],C=A.length>0?A:a
0!==C.length&&null!==(n=this.viewSpecs)&&void 0!==n&&n.some((function(e){return e.viewName==C[0]}))||console.warn("No viewHierarchy provided or found from element.")
var I=c.length>0?c:this.getViewTrackingScope(r)
if(this.dynamicTransporterSupportEnabled){var w=ai(this.transportConfig),x=He(si(I,w),2),R=x[0],N=x[1],O="GenericImpressionEvent",D={viewDurationInMilliseconds:u,contentViewFraction:f,width:h,height:m,verticalPosition:v,horizontalPosition:y,impressionTime:b,contentTrackingId:""===E?void 0:E,manualFireReason:i,cooloffToken:S},P={header:{viewHierarchy:C},context:null==t?void 0:t.context}
if(ci(R)){for(var M=0,j=Object.entries(R);M<j.length;M++){var L=He(j[M],2),U=L[0],F=Bi(L[1]),B=F.breadcrumbs,G=F.trackingScopes
this.fireEvent(O,Ge(Ge({},D),{},{trackingScopeHierarchy:{entries:G}}),Ge(Ge({},P),{},{transporterKey:U}),B,T)}if(0===N.length)return Promise.resolve(!0)}var H=Bi(N),V=H.breadcrumbs,q=H.trackingScopes
return this.fireEvent(O,{viewDurationInMilliseconds:u,contentViewFraction:f,width:h,height:m,verticalPosition:v,horizontalPosition:y,impressionTime:b,contentTrackingId:""===E?void 0:E,manualFireReason:i,cooloffToken:S,trackingScopeHierarchy:{entries:q}},P,[].concat(Je(k),Je(V)),T)}var K=Bi(I),W=K.breadcrumbs,Y=K.trackingScopes,z={header:{viewHierarchy:C},context:null==t?void 0:t.context}
return this.fireEvent("GenericImpressionEvent",{viewDurationInMilliseconds:u,contentViewFraction:f,width:h,height:m,verticalPosition:v,horizontalPosition:y,impressionTime:b,contentTrackingId:""===E?void 0:E,manualFireReason:i,cooloffToken:S,trackingScopeHierarchy:{entries:Y}},z,[].concat(Je(k),Je(W)),T)}},{key:"fireEvent",value:function(e,t,n,i,r){var o=this
if(!t){var a=_i(e),s=void 0===t?"undefined":null===t?"null":et(t),c='Firing tracking event "'.concat(a,'" with invalid body, you fired "').concat(s,'"')
if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(a)
this.clientMonitoringConn.logFailedEvent(Si.MISSING_REQUIRED_PROPERTIES,e,c,l)}throw new Error(c)}var u=i||[]
if(u.length>0){var d=(u=u.map((function(e){return o.transformBreadcrumb(e)}))).map((function(e){return Di.toPointer(e)}))
this.host.api.assign(t,{clientBreadcrumbPointers:d})}var f=u.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,u,r):this.generateEnvelope(e,t,n,r)
return this.fireEnvelope(f)}},{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:"transformBreadcrumb",value:function(e){try{if(ci(e.content))return Ge({id:e.id,clientBreadcrumbType:e.breadcrumbType},e.content)}catch(e){console.error("Error transforming breadcrumb:",e)}return e}},{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(Ei(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=_i(r.id),c="Could not find custom transporter: ".concat(o)
if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(s)
this.clientMonitoringConn.logFailedEvent(Si.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 Xn(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),Un.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 Qn((t||this.currentContext||{pageKey:st}).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 t.fromExternalApp||(this.referrer="https://www.linkedin.com"),{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,i,r,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c={directive:a.directive,transporterKey:a.transporterKey,context:a.context||this.currentContext&&$n(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},a.requestHeader||{},Hi(this.host)?{path:"".concat(this.host.api.location.pathname).concat(this.host.api.location.search),referer:"enabled"===(null===(n=(i=this.host).__getLixTreatment)||void 0===n?void 0:n.call(i,"pai.referrer.fix.subsquent"))?this.referrer?this.referrer:null===(r=this.host.api.document)||void 0===r?void 0:r.referrer:null===(o=this.host.api.document)||void 0===o?void 0:o.referrer}:{}),header:this.host.api.assign({applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:this.appState.clientApplicationInstance,isShadowEvent:s},a.header||{})}
return{body:"function"==typeof t?t:function(){return t},id:e,meta:c}}}]),function(e){e.INTERNAL_OTEL_JET_EVENT="internal:otel:jet",e.INTERNAL_OTEL_RESOURCE="internal:otel:resource",e.INTERNAL_OTEL_LARGEST_CONTENTFUL_PAINT="internal:otel:lcp",e.INTERNAL_OTEL_CUMULATIVE_LAYOUT_SHIFT="internal:otel:cls",e.INTERNAL_OTEL_FIRST_INPUT_DELAY="internal:otel:fid"}(Pi||(Pi={})),it((function e(t,n){var i,r,o=this
tt(this,e),rt(this,"core",void 0),rt(this,"protocol",void 0),rt(this,"throttleKeySet",new Set),rt(this,"config",void 0),rt(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},Un.on(Dn,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=r.sduiScreenId,u=r.componentKey,d=e.message,f=e.name,p=e.stack,h=void 0===p?"":p,g=e.fileName,m=void 0===g?"":g,v=e.lineNumber,y=void 0===v?0:v,b=e.columnNumber,E=void 0===b?0:b,_=this.core.host,k=_.appId,T=_.appVersion,S=_.service,A=_.serviceInstance,C=_.treeID,I=void 0===C?"":C,w=_.api,x=w.Promise,R=w.location,N=R.host,O=R.pathname,D=R.search,P=R.hash,M=void 0===P?"":P
if(this.config.useOTel&&!i.includes("otel-origin-jet-tag")&&Un.emit(Pi.INTERNAL_OTEL_JET_EVENT,{error:e,tags:i,callTreeId:a,responseHeaders:c}),c){t={}
var j=new Map
Object.keys(c).forEach((function(e){j.set(e.toLowerCase(),c[e])})),t.callTreeId=j.get("x-li-uuid"),t.microsoftEdgeReference=j.get("x-msedge-ref"),t.pointOfPresenceId=j.get("x-li-pop"),t.fabric=j.get("x-li-fabric")}var L=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:k,e:{c:E,l:y,m:d,s:h,t:f,u:m},h:M,l:n.protocol,o:N,p:O,pageKey:e.pageKey,q:D,service:S,serviceInstance:A,serviceVersion:T,t:i,trackingID:e.pageInstance.trackingId,treeID:I,callTreeId:a,responseTraceHeaders:t,sduiScreenId:l,componentKey:u}}))}
if(this.config.throttleTime<0)return L()
var U=(f+d+h+i.join("")+a).split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0)
return this.throttleKeySet.has(U)?x.resolve(!1):(this.throttleKeySet.add(U),setTimeout((function(){return n.throttleKeySet.delete(U)}),this.config.throttleTime),L())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),Un.off(Dn,this.reportTransporterError)}}]),function(e){e.RealUserMonitoringEvent="RealUserMonitoringEvent",e.FeaturePerformanceMeasurementEvent="FeaturePerformanceMeasurementEvent",e.ClientPerfMetricsEvent="ClientPerfMetricsEvent",e.WEB_UI_FRAMEWORK="web-ui-framework",e.APP_ID="app-id",e.APP_VERSION="app-version",e.IS_SINGLE_PAGE_APP="is-single-page-app",e.IS_APP_RENDER_FAILED="is-app-render-failed",e.APP_RENDER_MODE="app-render-mode",e.USER_TIMING_MARK_ENABLED="user-timing-mark-enabled",e.USER_TIMING_MEASURE_ENABLED="user-timing-measure-enabled",e.BEACON_SOURCE="beacon-source",e.BEACON_TIMEOUT="beacon-timeout",e.ENABLE_RS_TIMING="enable-rs-timing",e.ENABLE_CDN_TRACKING="enable-cdn-tracking",e.ASYNC_PLUGINS_TIMEOUT="async-plugins-timeout",e.ENABLE_MEMORY_MEASUREMENT="enable-memory-measurement",e.PAGE_KEY_PREFIX="pageKeyPrefix",e.ENABLE_T_3="enable-tracking-3",e.ENABLE_PEM_T_3="enable-pem-tracking-3",e.ENABLE_OTEL="enable-otel"}(Mi||(Mi={})),function(e){e.PageLoadStartEvent="PageLoadStartEvent",e.PageLoadEndEvent="PageLoadEndEvent",e.ResourceLoadEvent="ResourceLoadEvent",e.CustomMeasureEvent="CustomMeasureEvent",e.ViewLoadEvent="ViewLoadEvent",e.PEMTracer="PEMTracer"}(ji||(ji={}))
var Vi,qi,Ki,Wi,Yi,zi,Xi,Qi=(rt(rt(rt(rt(rt(rt(rt(rt(rt(rt(Re={},"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),rt(rt(rt(rt(rt(rt(Re,"beacon-timeout",3e4),"enable-memory-measurement",!1),"pageKeyPrefix",""),"enable-pem-tracking-3",!1),"enable-tracking-3",!1),"enable-otel",!1)),Ji=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"],$i={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"},Zi={"http/0.9":"HTTP0_9","http/1.0":"HTTP1_0","http/1.1":"HTTP1_1",h2:"HTTP2"},er="pageLoadId does not exist",tr="rum token passed is invalid",nr=new RegExp(/batch-(\d+)$|enabled$/),ir=function(){function e(){tt(this,e),rt(this,"userTimingEntries",[]),rt(this,"longTasks",[]),rt(this,"resourceTimingEntries",[]),rt(this,"cdnData",void 0)}return it(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(or),cdnData:this.cdnData}}}]),e}(),rr=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"]
function or(e){return rr.reduce((function(t,n){var i=e[n]
return void 0!==i&&(t[n]=i),t}),{})}function ar(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}
zi=Object.assign(Object.assign({},n),t),Xi=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(zi.root,n)
var i=sr(e,Yi.All,(function(){return sr(e,Yi.Two,(function(){return sr(e,Yi.One)}))}))
if(i){var r=vr(yr(i,e))
return r.length>0&&(i=r[0]),lr(i)}throw new Error("Selector was not found.")}function sr(e,t,n){for(var i=null,r=[],o=e,a=0,s=function(){var e=hr(function(e){var t=e.getAttribute("id")
return t&&zi.idName(t)?{name:"#"+Sr(t,{isIdentifier:!0}),penalty:0}:null}(o))||hr.apply(void 0,Je(function(e){return Array.from(e.attributes).filter((function(e){return zi.attr(e.name,e.value)})).map((function(e){return{name:"["+Sr(e.name,{isIdentifier:!0})+'="'+Sr(e.value)+'"]',penalty:.5}}))}(o)))||hr.apply(void 0,Je(function(e){return Array.from(e.classList).filter(zi.className).map((function(e){return{name:"."+Sr(e,{isIdentifier:!0}),penalty:1}}))}(o)))||hr(function(e){var t=e.tagName.toLowerCase()
return zi.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===Yi.All)s&&(e=e.concat(e.filter(pr).map((function(e){return fr(e,s)}))))
else if(t===Yi.Two)e=e.slice(0,1),s&&(e=e.concat(e.filter(pr).map((function(e){return fr(e,s)}))))
else if(t===Yi.One){var c=He(e=e.slice(0,1),1)[0]
s&&pr(c)&&(e=[fr(c,s)])}var l,u=Qe(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>=zi.seedMinLength&&(i=cr(r,n)))return 1
o=o.parentElement,a++};o&&o!==zi.root.parentElement&&!s(););return i||(i=cr(r,n)),i}function cr(e,t){var n=vr(mr(e))
if(n.length>zi.threshold)return t?t():null
var i,r=Qe(n)
try{for(r.s();!(i=r.n()).done;){var o=i.value
if(dr(o))return o}}catch(e){r.e(e)}finally{r.f()}return null}function lr(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 ur(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function dr(e){switch(Xi.querySelectorAll(lr(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(lr(e)))
case 1:return!0
default:return!1}}function fr(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function pr(e){return"html"!==e.name&&!e.name.startsWith("#")}function hr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
var i=t.filter(gr)
return i.length>0?i:null}function gr(e){return null!=e}function mr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]
if(e.length>0){var n,i=[],r=Qe(e[0])
try{for(r.s();!(n=r.n()).done;){var o=n.value
i=i.concat(mr(e.slice(1,e.length),t.concat(o)))}}catch(e){r.e(e)}finally{r.f()}return i}return[t]}function vr(e){return Array.from(e).sort((function(e,t){return ur(e)-ur(t)}))}function yr(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>zi.optimizedMinLength)for(var r=1;r<e.length-1;r++){if(n.counter>zi.maxNumberOfTries)return i
n.counter+=1
var o=Je(e)
o.splice(r,1)
var a=lr(o)
if(n.visited.has(a))return i
dr(o)&&br(o,t)&&(i.push(o),n.visited.set(a,!0),i=i.concat(yr(o,t,n)))}return i}function br(e,t){return Xi.querySelector(lr(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"}(Vi||(Vi={})),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"}(qi||(qi={})),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"}(Ki||(Ki={})),function(e){e.DEFAULT="DEFAULT",e.INITIAL="INITIAL",e.SUBSEQUENT="SUBSEQUENT",e.PAGINATED="PAGINATED"}(Wi||(Wi={})),function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(Yi||(Yi={}))
var Er=/[ -,\.\/:-@\[-\^`\{-~]/,_r=/[ -,\.\/:-@\[\]\^`\{-~]/,kr=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Tr={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1}
function Sr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},Tr),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?Er.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&&_r.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(kr,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!r&&n.wrap?i+a+i:a}var Ar,Cr=[{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 Ir(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 wr(e){var t=e||performance
return Math.round(t.now())}function xr(e){if(!e)return"null"
if(e.nodeType===Node.ELEMENT_NODE)try{return ar(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=xr(e.parentElement||void 0)
return"".concat(t," > nodeType(").concat(e.nodeType,")")}function Rr(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 Nr(e){var t=[]
return e.forEach((function(e){return t.push(e)})),t}var Or,Dr,Pr=function(){function e(t){tt(this,e),rt(this,"hostApis",void 0),rt(this,"hostnameProperties",void 0),rt(this,"usedHostnames",void 0),rt(this,"abortController",void 0),rt(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 it(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this
return ei(this.usedHostnames).map((function(t){return e.hostnameProperties[t]||{hostname:t,provider:"",ipVersion:"",httpVersion:""}}))}},{key:"getDataWhenReady",value:function(e){var t=this,n=this.hostApis,i=n.AbortController,r=n.Promise,o=Zn(ei(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,(Ar=Ar||i.createElement("a")).href=n,Ar.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}(),Mr=["Microsoft Internet Explorer","Netscape","swfobject","hasFlashPlayerVersion","addFlashDivNode","setAttribute","swfContainerId","loadSwfAndDetectFonts","embedSWF","9.0.0","always","false","experimental-webgl","webrtc","webRtcKey","appNameKey","javascripts","javascriptsKey","product","hardwareConcurrencyKey","numOfCores","timezoneOffset","incognito","colorDepth","pixelDepth","pixelRatio","screenResolution","screenOrientation","availableScreenResolution","availableScreenResolutionKey","sessionStorage","sessionStorageKey","indexedDb","openDatabaseKey","networkInfo","audio","audioKey","automation","mimetyps","jsFontsKey","fontsFlash","function","Options not provided","components","excludes","key","alias","getData","dataLimit","number","errors","Exceeded current data limit:"," Data length for:","data","latency","acq_time","allFeatures","allFeaturesCollectionAt","useRequestIdleCallBack","requestIdleCallback","_cookieRegEx","cookie","bcookie","substring","; path=","; secure=true","domain=","expires=","toUTCString","getDomain","=([^;]*)","location","DNA","HUMAN","querySelector","getElementById","firstChild","nodeValue","parentNode","https://www.linkedin-ei.com","POST","Content-Type","str2ab","apply","importPk","crypto","subtle","importKey","RSA-OAEP","SHA-256","wrap","wrapKey","raw","encode","wrapErrorResult","error","string","generateKey","encrypt","decrypt","encryptWithKeyIds","resolve","Error: ec2","MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtw/ArJ9dD6hi+jrX6ZpRqwk2Mm5v3EElQGhzSngYHAm7gvdcAEj6sbU4HhrXs3+TZamDV+RHwL+rDT+TtD8ZJBaVbA+wRDdIezECZT+WNZw2SMkjAsX0OynAT/wowGfE72zMhYc4byGfQmtAQrUL2iJ19KIJj0aZ4m41kvnBHMZbwO52+ceyQhqAzB7bn6U//QHJySHgjaOsgkpPnuxZUz6ly+FrKveQp+bNIfh8R5GO2ABRoeBL4c3jip/UjmmnfYE3xdzubni1a6WQ6YTTb6ZEJSgQTp/Rc+o/btcKkTIqDcXvGbO0iAxev8EXV7GtkRguqgfwaURAaps9Nes5NwIDAQAB","encryptWithKey","encryptWithKeyFromDifferentSources","publicKey","publicKeyVersion","uuidv4","getRandomValues","generateSha256HashOrDefault","digest","from","_compress","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=","charAt","===","call","pow","battery","signals","FPDataCookie","flash/compiled/FontList.swf","https://ponf.linkedin.com/pixel/tracking.png","/apfc/collect","n/a","err","enabled","globalIntegration","readyState","checkConfigAndInitializeAllIntegration","load","parse","stringify","settings-iframe","setting-headline","initialize","addEventListener","isDfCollectionRequired","samplingTimeWindowInMillis","getItem","df_ts","enableOnDemandMode","pauseApfc","checkConfigAndInitializeGlobalIntegration","deleteItem","deleteDfCookieIfRequired","checkConfigAndInitializeThirdPartyIntegration","addDfCookieIfRequired","apfcTypes","includes","dnaIntegrationEnabled","dnaIntegrationCompleted","intializeGlobalIntegration","fpDataCookie","humanIntegrationEnabled","humanIntegrationCompleted","intializeDfpIntegration","setTime","apfcDfPK","reentry","placePonfBeacon","pageInstance","isProd","getFeatures","apfcDfPKV","apfcDf","telemetryCollectPath","populateFpDataCookie","isSyncEnabledWithHeaders","apfcDfH","compressToBase64","DNA_ENCRYPTED","browserId","getBcookie","fb6bbd47-fa7c-4264-b4e9-b25948407586","ee078acd-0704-4344-9e5b-6b84b480c30a","https://merchantpool1.linkedin.com/mdt.js?session_id=","&instanceId=","script","dfpIframeScript","dfp","doFpt","getElementsByTagName","head","Invalid session_id: ","dfpIntegrationCompleted","initializeHumanIntegration","treeId","PXgoH0hfKu","https://li.protechts.net/index.html?ts=","&r_id=","iframe","src","sandbox","allow-same-origin allow-scripts","aria-hidden","true","0px","border","absolute","scraping","triggerApfc","reentryGlobalIntegration","triggerDnaApfcEvent","reentryGlobalIntegrationOnDemand","extractDataCookie","li_apfcdc",":::","trackingId","sessionUrn","collectionType","object",".linkedin.com","startsWith","pemberly","isEmpty","getUrlFromNoscriptBeacon","div_bc","noscript","parseFromString","text/html","ponfUrl","reqid","class","searchParams","get","img","undefined","triggerDnaApfcEventOnDemand","x64Multiply","x64LeftShift","x64Xor","x64Fmix","x64hash128","length","charCodeAt","x64Rotl","x64Add","00000000","toString","slice","each","prototype","forEach","hasOwnProperty","map","RTCPeerConnection","webkitRTCPeerConnection","mozRTCPeerConnection","stun:stun.l.google.com:19302","localDescription","sdp","split","indexOf","a=candidate:","c=IN","keys","onicecandidate","candidate","complete","createDataChannel","then","setLocalDescription","createOffer","automationKey","getBrowserNameAndVersion","Chrome","webdriver","Firefox","document","documentElement","getAttribute","__webdriver_script_fn","Selenium","_phantom","PhantomJS","NOT_AVAILABLE","getIPs","name","enumerateDevicesKey","isEnumerateDevicesSupported","mediaDevices","enumerateDevices","gid","kind","label","catch","userAgent","match","OfflineAudioContext","webkitOfflineAudioContext","createOscillator","type","triangle","frequency","setValueAtTime","currentTime","threshold","knee","ratio","release","connect","start","audioTimeout","timeout","oncomplete","getChannelData","reduce","abs","disconnect","UserAgent","languageKey","language","browserLanguage","systemLanguage","colorDepthKey","screen","deviceMemoryKey"," GB","pixelDepthKey","pixelRatioKey","devicePixelRatio","screenResolutionKey","screenOrientationKey","detectScreenOrientation","EXCLUDED","Enabled","orientation","Orientation","mozOrientation","getScreenResolution","width","height","getAvailableScreenResolution","availHeight","availWidth","getTimezoneOffset","timezone","Intl","DateTimeFormat","hasSessionStorage","localStorageKey","hasLocalStorage","indexedDbKey","hasIndexedDB","addBehaviorKey","body","addBehavior","openDatabase","cpuClassKey","getNavigatorCpuClass","oscpuKey","appVersionKey","appVersion","appCodeNameKey","appCodeName","now","platformKey","getNavigatorPlatform","productKey","productSubKey","productSub","vendorKey","vendor","vendorSubKey","vendorSub","doNotTrackKey","getDoNotTrack","incognitoKey","RequestFileSystem","webkitRequestFileSystem","estimate","storage","quota","safariIncognito","localStorage","setItem","removeItem","test","open","onerror","onsuccess","indexedDB","MSPointerEvent","IE ","join","replace","Opera","appName","splice","canvasKey","isCanvasSupported","getCanvasFp","webglKey","isWebGlSupported","getWebglFp","scripts","locationKey","host","hostname","href","pathname","port","protocol","signalsKey","getAdBlock","getHasLiedLanguages","getHasLiedResolution","getHasLiedOs","getHasLiedBrowser","flashFontsKey","hasSwfObjectLoaded","hasMinFlashInstalled","fonts","swfPath","missing options.fonts.swfPath","swf object not loaded","monospace","sans-serif","serif","Andale Mono","Arial Black","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans MS","Consolas","Courier","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Fax","LUCIDA GRANDE","Lucida Sans Typewriter","Lucida Sans Unicode","Monaco","Monotype Corsiva","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Script","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Wingdings","Wingdings 2","extendedJsFonts","concat","userDefinedFonts","filter","createElement","div","span","style","position","left","-9999px","fontSize","72px","fontStyle","fontWeight","normal","letterSpacing","lineBreak","auto","lineHeight","textTransform","textAlign","textDecoration","none","textShadow","whiteSpace","wordBreak","wordSpacing","textContent","mmmmmmmmmmlli","fontFamily","offsetWidth","offsetHeight","appendChild","push","removeChild","fontsHash","lists","mimetypesComponent","mimeTypes","suffixes","description","pluginsComponent","isIE","plugins","pluginsShouldBeSorted","sort","ActiveXObject","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","PDF.PdfCtrl","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1","getRegularPlugins","sortPluginsFor","batteryKey","getBattery","level","charging","chargingTime","dischargingTime","networkInfoKey","downlink","downlinkMax","effectiveType","rtt","saveData","touchSupportKey","getTouchSupport","getHardwareConcurrency","ERROR","hardwareConcurrency","cpuClass","platform","doNotTrack","msDoNotTrack","maxTouchPoints","msMaxTouchPoints","createEvent","ontouchstart","display","getContext","rect","canvasWinding","isPointInPath","textBaseline","alphabetic","fillStyle","#f60","dontUseFakeFontInCanvas","font","11pt Arial","11pt no-real-font-123","fillText","rgba(102, 204, 0, 0.2)","18pt Arial","Cwm fjordbank glyphs vext quiz, 😃","globalCompositeOperation","multiply","rgb(255,0,255)","fill","rgb(0,255,255)","beginPath","closePath","rgb(255,255,0)","arc","evenodd","toDataURL","canvasHash","clearColor","enable","DEPTH_TEST","depthFunc","LEQUAL","clear","COLOR_BUFFER_BIT","DEPTH_BUFFER_BIT","createBuffer","bindBuffer","ARRAY_BUFFER","bufferData","STATIC_DRAW","itemSize","createShader","compileShader","FRAGMENT_SHADER","shaderSource","precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}","attachShader","linkProgram","vertexPosAttrib","attrVertex","offsetUniform","uniformOffset","enableVertexAttribArray","vertexAttribPointer","FLOAT","uniform2f","drawArrays","numItems","webglHash","canvas","webgl","vendorAndRenderer","getWebglVendorAndRenderer","extensions","getSupportedExtensions","webgl aliased line width range","getParameter","webgl aliased point size range","ALIASED_POINT_SIZE_RANGE","webgl alpha bits","ALPHA_BITS","webgl antialiasing","getContextAttributes","yes","webgl blue bits","BLUE_BITS","webgl depth bits","DEPTH_BITS","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","webgl max combined texture image units","MAX_COMBINED_TEXTURE_IMAGE_UNITS","MAX_CUBE_MAP_TEXTURE_SIZE","MAX_FRAGMENT_UNIFORM_VECTORS","webgl max render buffer size","MAX_RENDERBUFFER_SIZE","webgl max texture size","webgl max varying vectors","webgl max vertex attribs","MAX_VERTEX_TEXTURE_IMAGE_UNITS","webgl max vertex uniform vectors","MAX_VERTEX_UNIFORM_VECTORS","MAX_VIEWPORT_DIMS","webgl red bits","RED_BITS","webgl renderer","RENDERER","webgl shading language version","SHADING_LANGUAGE_VERSION","webgl stencil bits","webgl vendor","VENDOR","webgl version","VERSION","WEBGL_debug_renderer_info","webgl unmasked vendor","UNMASKED_VENDOR_WEBGL","webgl unmasked renderer","UNMASKED_RENDERER_WEBGL","getShaderPrecisionFormat","INT","VERTEX","FRAGMENT","HIGH","LOW","precision","rangeMin","rangeMax","_SHADER","precision ","toLowerCase","getWebglCanvas","innerHTML","className","getElementsByClassName","adsbox","languages","substr","oscpu","windows phone","win","Windows","Android","linux","cros","Linux","iphone","ipad","iOS","mac","Other","Windows Phone","Mac","android","pike","ipod","firefox","opera","opr","safari","Safari","trident","Internet Explorer","20030107","toSource"]
Or=Mr,Dr=230,function(e){for(;--e;)Or.push(Or.shift())}(++Dr)
var jr=function(e,t){return Mr[e-=0]}
!function(){var e=function(){function e(){tt(this,e)}return it(e,null,[{key:"x64Add",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:jr("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[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}},{key:"x64Rotl",value:function(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<<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:jr("0x1"),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:jr("0x2"),value:function(e,t){return[e[0]^t[0],e[1]^t[1]]}},{key:jr("0x3"),value:function(t){return t=e[jr("0x2")](t,[0,t[0]>>>1]),t=e[jr("0x0")](t,[4283543511,3981806797]),t=e[jr("0x2")](t,[0,t[0]>>>1]),t=e.x64Multiply(t,[3301882366,444984403]),e[jr("0x2")](t,[0,t[0]>>>1])}},{key:jr("0x4"),value:function(t,n){n=n||0
var i,r=(t=t||"").length%16,o=t[jr("0x5")]-r,a=[0,n],s=[0,n],c=[0,0],l=[0,0],u=[2277735313,289559509],d=[1291169091,658871167]
for(i=0;i<o;i+=16)c=[255&t[jr("0x6")](i+4)|(255&t[jr("0x6")](i+5))<<8|(255&t[jr("0x6")](i+6))<<16|(255&t[jr("0x6")](i+7))<<24,255&t.charCodeAt(i)|(255&t.charCodeAt(i+1))<<8|(255&t[jr("0x6")](i+2))<<16|(255&t[jr("0x6")](i+3))<<24],l=[255&t.charCodeAt(i+12)|(255&t.charCodeAt(i+13))<<8|(255&t[jr("0x6")](i+14))<<16|(255&t[jr("0x6")](i+15))<<24,255&t[jr("0x6")](i+8)|(255&t[jr("0x6")](i+9))<<8|(255&t[jr("0x6")](i+10))<<16|(255&t.charCodeAt(i+11))<<24],c=e[jr("0x0")](c,u),c=e[jr("0x7")](c,31),c=e[jr("0x0")](c,d),a=e[jr("0x2")](a,c),a=e[jr("0x7")](a,27),a=e.x64Add(a,s),a=e[jr("0x8")](e.x64Multiply(a,[0,5]),[0,1390208809]),l=e[jr("0x0")](l,d),l=e.x64Rotl(l,33),l=e[jr("0x0")](l,u),s=e[jr("0x2")](s,l),s=e[jr("0x7")](s,31),s=e.x64Add(s,a),s=e[jr("0x8")](e[jr("0x0")](s,[0,5]),[0,944331445])
switch(c=[0,0],l=[0,0],r){case 15:l=e[jr("0x2")](l,e[jr("0x1")]([0,t[jr("0x6")](i+14)],48))
case 14:l=e.x64Xor(l,e[jr("0x1")]([0,t[jr("0x6")](i+13)],40))
case 13:l=e[jr("0x2")](l,e[jr("0x1")]([0,t.charCodeAt(i+12)],32))
case 12:l=e[jr("0x2")](l,e.x64LeftShift([0,t[jr("0x6")](i+11)],24))
case 11:l=e[jr("0x2")](l,e[jr("0x1")]([0,t[jr("0x6")](i+10)],16))
case 10:l=e[jr("0x2")](l,e[jr("0x1")]([0,t.charCodeAt(i+9)],8))
case 9:l=e.x64Xor(l,[0,t[jr("0x6")](i+8)]),l=e[jr("0x0")](l,d),l=e.x64Rotl(l,33),l=e.x64Multiply(l,u),s=e[jr("0x2")](s,l)
case 8:c=e[jr("0x2")](c,e[jr("0x1")]([0,t[jr("0x6")](i+7)],56))
case 7:c=e[jr("0x2")](c,e[jr("0x1")]([0,t[jr("0x6")](i+6)],48))
case 6:c=e.x64Xor(c,e[jr("0x1")]([0,t.charCodeAt(i+5)],40))
case 5:c=e[jr("0x2")](c,e.x64LeftShift([0,t[jr("0x6")](i+4)],32))
case 4:c=e[jr("0x2")](c,e[jr("0x1")]([0,t.charCodeAt(i+3)],24))
case 3:c=e.x64Xor(c,e[jr("0x1")]([0,t[jr("0x6")](i+2)],16))
case 2:c=e[jr("0x2")](c,e.x64LeftShift([0,t[jr("0x6")](i+1)],8))
case 1:c=e[jr("0x2")](c,[0,t[jr("0x6")](i)]),c=e[jr("0x0")](c,u),c=e[jr("0x7")](c,31),c=e[jr("0x0")](c,d),a=e[jr("0x2")](a,c)}return a=e[jr("0x2")](a,[0,t[jr("0x5")]]),s=e[jr("0x2")](s,[0,t[jr("0x5")]]),a=e[jr("0x8")](a,s),s=e[jr("0x8")](s,a),a=e.x64Fmix(a),s=e.x64Fmix(s),a=e[jr("0x8")](a,s),s=e[jr("0x8")](s,a),(jr("0x9")+(a[0]>>>0)[jr("0xa")](16))[jr("0xb")](-8)+(jr("0x9")+(a[1]>>>0)[jr("0xa")](16))[jr("0xb")](-8)+(jr("0x9")+(s[0]>>>0).toString(16))[jr("0xb")](-8)+(jr("0x9")+(s[1]>>>0)[jr("0xa")](16))[jr("0xb")](-8)}}]),e}(),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,A,C,I,w,x,R,N,O,D,P,M){function j(){tt(this,j),this.components=[{key:jr("0x1f3"),getData:j[jr("0x1f4")],shouldEnforceDataLimit:!0,dataLimit:1e3},{key:jr("0x35"),getData:j.enumerateDevicesKey,shouldEnforceDataLimit:!0,dataLimit:22e3},{key:"appName",getData:j[jr("0x1f5")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"tsSeed",getData:j.seedKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"appVersion",getData:j[jr("0x7b")],shouldEnforceDataLimit:!0,dataLimit:300},{key:jr("0x7e"),getData:j[jr("0x7d")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"location",getData:j.locationKey,shouldEnforceDataLimit:!0,dataLimit:1500},{key:jr("0x1f6"),getData:j[jr("0x1f7")],shouldEnforceDataLimit:!0,dataLimit:2200},{key:"platform",getData:j[jr("0x80")],shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x1f8"),getData:j[jr("0x82")],shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x84"),getData:j[jr("0x83")],shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x13c"),getData:j[jr("0x78")],shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x1cb"),getData:j[jr("0x7a")],shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x13b"),getData:j[jr("0x1f9")],alias:jr("0x1fa"),shouldEnforceDataLimit:!0,dataLimit:100},{key:"deviceMemory",getData:j[jr("0x58")],shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x86"),getData:j.vendorKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"vendorSub",getData:j[jr("0x87")],shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x53"),getData:j[jr("0x52")],shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x1fb"),getData:j.timezoneOffset,shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x6c"),getData:j[jr("0x6c")],shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x3a"),getData:j[jr("0x51")],shouldEnforceDataLimit:!0,dataLimit:1500},{key:jr("0x26"),getData:j[jr("0x26")],shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x13e"),getData:j.doNotTrackKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x1fc"),getData:j.incognitoKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x1fd"),getData:j.colorDepthKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x1fe"),getData:j[jr("0x5a")],shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x1ff"),getData:j[jr("0x5b")],shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x200"),getData:j.screenResolutionKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x201"),getData:j.screenOrientationKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x202"),getData:j[jr("0x203")],shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x204"),getData:j[jr("0x205")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"localStorage",getData:j[jr("0x70")],shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x206"),getData:j[jr("0x72")],shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x76"),getData:j[jr("0x74")],shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x77"),getData:j[jr("0x207")],shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x181"),getData:j[jr("0xa1")],shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x182"),getData:j[jr("0xa4")],shouldEnforceDataLimit:!0,dataLimit:6e3},{key:"signals",getData:j[jr("0xaf")],shouldEnforceDataLimit:!0,dataLimit:150},{key:"touchSupport",getData:j.touchSupportKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x208"),getData:j[jr("0x131")],shouldEnforceDataLimit:!0,dataLimit:150},{key:"battery",getData:j[jr("0x12b")],shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x209"),getData:j[jr("0x20a")],shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x20b"),getData:j[jr("0x23")],shouldEnforceDataLimit:!0,dataLimit:100},{key:jr("0x117"),getData:j[jr("0x115")],shouldEnforceDataLimit:!0,dataLimit:17e3},{key:jr("0x20c"),getData:j.mimetypesComponent,shouldEnforceDataLimit:!0,dataLimit:27e3},{key:jr("0xb8"),getData:j[jr("0x20d")],shouldEnforceDataLimit:!0,dataLimit:1500},{key:jr("0x20e"),getData:j.flashFontsKey,shouldEnforceDataLimit:!0,dataLimit:100}]}return it(j,[{key:"getFeatures",value:function(e,t){if(jr("0x20f")==et(e)){if(!t)return e({error:jr("0x210")})
var n={data:{latency:{acq_time:{}},errors:{}}},i=Date[jr("0x7f")](),r={},o=0,a=0
this[jr("0x211")].forEach((function(s){if(!t[jr("0x212")][s[jr("0x213")]]){var c=s.key
void 0!==s.alias&&null!==s[jr("0x214")]&&s[jr("0x214")].length>0&&(c=s[jr("0x214")]),o++
var l=function(){r[c]=Date.now()
try{s[jr("0x215")]((function(t){if(!1!==s.shouldEnforceDataLimit){var l=s[jr("0xf")](jr("0x216"))&&jr("0x217")==et(s[jr("0x216")])?s[jr("0x216")]:1e3,u=JSON.stringify(t).length
u>l&&(n.data[jr("0x218")][c]=jr("0x219")+l+jr("0x21a")+c+" was found to be:"+u,t={})}n.data[c]=t,n[jr("0x21b")][jr("0x21c")].acq_time[c]=Date[jr("0x7f")]()-r[c],++a>=o&&(n[jr("0x21b")].latency[jr("0x21d")][jr("0x21e")]=Date[jr("0x7f")]()-i,n.data[jr("0x21f")]=Date[jr("0x7f")](),e(n[jr("0x21b")],!0))}),t)}catch(e){n[jr("0x21b")][jr("0x218")][c]=String(e)}}
jr("0x20f")==et(window.requestIdleCallback)&&!1!==t[jr("0x220")]?window[jr("0x221")](l):l()}})),n.data[jr("0x21c")][jr("0x21d")][jr("0x21e")]=Date.now()-i,e(n.data,!1)}}}],[{key:t,value:function(e,t){if(Array[jr("0xd")][jr("0xe")]&&e[jr("0xe")]===Array[jr("0xd")][jr("0xe")])e[jr("0xe")](t)
else if(e.length===+e[jr("0x5")])for(var n=0,i=e.length;n<i;n++)t(e[n],n,e)
else for(var r in e)e[jr("0xf")](r)&&t(e[r],r,e)}},{key:n,value:function(e,t){var n=[]
return null==e?n:Array[jr("0xd")][jr("0x10")]&&e[jr("0x10")]===Array[jr("0xd")][jr("0x10")]?e.map(t):(j[jr("0xc")](e,(function(e,i,r){n.push(t(e,i,r))})),n)}},{key:"getIPs",value:function(e,t){var n={},i=new(window[jr("0x11")]||window[jr("0x12")]||window[jr("0x13")]||window.msRTCPeerConnection)({iceServers:[{urls:jr("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})/.exec(e)[1]
n[t]=!0}catch(e){}},o=!1,a=function(){if(!0!==o){o=!0
var e=i[jr("0x15")]
null!==e&&e[jr("0x16")][jr("0x17")]("\n").forEach((function(e){0!==e[jr("0x18")](jr("0x19"))&&0!==e[jr("0x18")](jr("0x1a"))||r(e)})),t(Object[jr("0x1b")](n))}}
i[jr("0x1c")]=function(e){e[jr("0x1d")]&&r(e[jr("0x1d")][jr("0x1d")])},i.onicegatheringstatechange=function(e){jr("0x1e")===i.iceGatheringState&&a()},i[jr("0x1f")]("bl")
try{i.createOffer()[jr("0x20")]((function(e){i[jr("0x21")](e)}))}catch(e){i[jr("0x22")]((function(e){i[jr("0x21")](e,(function(){}),(function(){}))}),(function(){}))}setTimeout((function(){a()}),2e3)}},{key:i,value:function(e,t){if(j.getHasLiedBrowser())e("undetected, fake browser")
else{var n=j[jr("0x24")]()[jr("0x17")](" ")[0]
jr("0x25")!==n||!0!==navigator[jr("0x26")]?jr("0x27")===n&&window[jr("0x28")][jr("0x29")][jr("0x2a")](jr("0x26"))||"_Selenium_IDE_Recorder"in window||jr("0x2b")in document?e(jr("0x2c")):window.callPhantom||window[jr("0x2d")]?e(jr("0x2e")):e(t[jr("0x2f")]):e(jr("0x2c"))}}},{key:"webRtcKey",value:function(e,t){try{j[jr("0x30")](t,(function(t){e({ips:t})}))}catch(t){e({exception:{name:t[jr("0x31")],message:t.message}})}}},{key:r,value:function(e,t){if(!j[jr("0x33")]())return e(t[jr("0x2f")])
navigator[jr("0x34")][jr("0x35")]()[jr("0x20")]((function(t){e(t[jr("0x10")]((function(e){var t={}
return t.id=e.deviceId,t[jr("0x36")]=e.groupId,t.kind=e[jr("0x37")],t[jr("0x38")]=e.label,t})))}))[jr("0x39")]((function(t){e(t)}))}},{key:"isEnumerateDevicesSupported",value:function(){return navigator[jr("0x34")]&&navigator[jr("0x34")][jr("0x35")]}},{key:"audioKey",value:function(e,t){var n=t.audio
if(n.excludeIOS11&&navigator[jr("0x3a")][jr("0x3b")](/OS 11.+Version\/11.+Safari/))return e(t.EXCLUDED)
var i=window[jr("0x3c")]||window[jr("0x3d")]
if(null==i)return e(t[jr("0x2f")])
var r=new i(1,44100,44100),o=r[jr("0x3e")]()
o[jr("0x3f")]=jr("0x40"),o[jr("0x41")][jr("0x42")](1e4,r[jr("0x43")])
var a=r.createDynamicsCompressor()
j.each([[jr("0x44"),-50],[jr("0x45"),40],[jr("0x46"),12],["reduction",-20],["attack",0],[jr("0x47"),.25]],(function(e){void 0!==a[e[0]]&&"function"==typeof a[e[0]].setValueAtTime&&a[e[0]][jr("0x42")](e[1],r.currentTime)})),o[jr("0x48")](a),a[jr("0x48")](r.destination),o[jr("0x49")](0),r.startRendering()
var s=setTimeout((function(){return r.oncomplete=function(){},r=null,e(jr("0x4a"))}),n[jr("0x4b")])
r[jr("0x4c")]=function(t){var n
try{clearTimeout(s),n=t.renderedBuffer[jr("0x4d")](0)[jr("0xb")](4500,5e3)[jr("0x4e")]((function(e,t){return e+Math[jr("0x4f")](t)}),0).toString(),o[jr("0x50")](),a[jr("0x50")]()}catch(t){return void e(t)}e(n)}}},{key:o,value:function(e){e(navigator.userAgent)}},{key:a,value:function(e,t){e(void 0===navigator.webdriver||null===navigator.webdriver?t.NOT_AVAILABLE:navigator[jr("0x26")])}},{key:s,value:function(e,t){e(navigator[jr("0x53")]||navigator.userLanguage||navigator[jr("0x54")]||navigator[jr("0x55")]||t[jr("0x2f")])}},{key:c,value:function(e,t){e(window[jr("0x57")].colorDepth||t.NOT_AVAILABLE)}},{key:l,value:function(e,t){var n=navigator.deviceMemory||t.NOT_AVAILABLE
n!==t.NOT_AVAILABLE&&(n+=jr("0x59")),e(n)}},{key:u,value:function(e,t){e(window[jr("0x57")].pixelDepth||t[jr("0x2f")])}},{key:d,value:function(e,t){e(window[jr("0x5c")]||t[jr("0x2f")])}},{key:f,value:function(e,t){e(j.getScreenResolution(t))}},{key:p,value:function(e,t){if(t.screen[jr("0x5f")]){var n={}
n[jr("0x61")]=void 0!==screen[jr("0x62")],n[jr("0x63")]=screen.msOrientation||screen[jr("0x64")]||(screen[jr("0x62")]||{}).type,e(n)}else e(t[jr("0x60")])}},{key:h,value:function(){return{w:window[jr("0x57")][jr("0x66")],h:window[jr("0x57")][jr("0x67")]}}},{key:"availableScreenResolutionKey",value:function(e,t){e(j.getAvailableScreenResolution(t))}},{key:g,value:function(e){return window.screen.availWidth&&window[jr("0x57")][jr("0x69")]?{w:window[jr("0x57")][jr("0x6a")],h:window[jr("0x57")][jr("0x69")]}:e.NOT_AVAILABLE}},{key:"timezoneOffset",value:function(e){e((new Date)[jr("0x6b")]()/60)}},{key:m,value:function(e,t){window[jr("0x6d")]&&window[jr("0x6d")][jr("0x6e")]?e((new(window[jr("0x6d")][jr("0x6e")])).resolvedOptions().timeZone):e(t.NOT_AVAILABLE)}},{key:"sessionStorageKey",value:function(e,t){e(j[jr("0x6f")](t))}},{key:v,value:function(e,t){e(j[jr("0x71")](t))}},{key:y,value:function(e,t){e(j[jr("0x73")](t))}},{key:b,value:function(e){e(!(!document[jr("0x75")]||!document[jr("0x75")][jr("0x76")]))}},{key:"openDatabaseKey",value:function(e){e(!!window[jr("0x77")])}},{key:E,value:function(e,t){e(j[jr("0x79")](t))}},{key:_,value:function(e,t){e(navigator.oscpu||t[jr("0x2f")])}},{key:"appNameKey",value:function(e,t){e(navigator.appName||t[jr("0x2f")])}},{key:k,value:function(e,t){e(navigator[jr("0x7c")]||t[jr("0x2f")])}},{key:T,value:function(e,t){e(navigator[jr("0x7e")]||t.NOT_AVAILABLE)}},{key:"seedKey",value:function(e,t){e(Date[jr("0x7f")]())}},{key:S,value:function(e,t){e(j[jr("0x81")](t))}},{key:A,value:function(e,t){e(navigator.product||t[jr("0x2f")])}},{key:C,value:function(e,t){e(navigator[jr("0x84")]||t[jr("0x2f")])}},{key:I,value:function(e,t){e(navigator[jr("0x86")]||t[jr("0x2f")])}},{key:w,value:function(e,t){e(navigator[jr("0x88")]||t[jr("0x2f")])}},{key:x,value:function(e,t){e(j[jr("0x8a")](t))}},{key:R,value:function(e,t){var n=j.getBrowserNameAndVersion()[jr("0x17")](" "),i=n[0],r=n[1],o=t.NOT_AVAILABLE
if(jr("0x25")===i)if(parseInt(r)<=74){var a=window[jr("0x8c")]||window[jr("0x8d")]
a?a(window.TEMPORARY,100,(function(t){e(!1)}),(function(t){e(!0)})):e(o)}else"storage"in navigator&&jr("0x8e")in navigator[jr("0x8f")]?navigator[jr("0x8f")][jr("0x8e")]()[jr("0x20")]((function(t){var n=t[jr("0x90")]
e(o=n<125829120)})):e(o)
else if("Safari"===i){if(o=!1,window[jr("0x91")])o=!0
else{try{window[jr("0x77")](null,null,null,null)}catch(e){o=!0}try{window[jr("0x92")][jr("0x93")]("test",1)}catch(e){o=!0}}void 0===o&&(o=!1,window[jr("0x92")][jr("0x94")](jr("0x95"))),e(o)}else if(jr("0x27")===i){var s=indexedDB[jr("0x96")](jr("0x95"))
s[jr("0x97")]=function(){e(!0)},s[jr("0x98")]=function(){e(!1)}}else e("IE"===i||"EDGE"===i?!window[jr("0x99")]&&(window.PointerEvent||window[jr("0x9a")]):o)}},{key:N,value:function(){var e,t=navigator[jr("0x3a")],n=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[]
return/trident/i.test(n[1])?(e=/\brv[ :]+(\d+)/g.exec(t)||[],jr("0x9b")+(e[1]||"")):"Chrome"===n[1]&&null!=(e=t.match(/\b(OPR|Edge)\/(\d+)/))?e[jr("0xb")](1)[jr("0x9c")](" ")[jr("0x9d")]("OPR",jr("0x9e")):(n=n[2]?[n[1],n[2]]:[navigator[jr("0x9f")],navigator[jr("0x7c")],"-?"],null!=(e=t.match(/version\/(\d+)/i))&&n[jr("0xa0")](1,1,e[1]),n[jr("0x9c")](" "))}},{key:O,value:function(e,t){j[jr("0xa2")]()?e(j[jr("0xa3")](t)):e(t.NOT_AVAILABLE)}},{key:D,value:function(e,t){j[jr("0xa5")]()?e(j[jr("0xa6")](t)):e(t.NOT_AVAILABLE)}},{key:"javascriptsKey",value:function(e,t){if(void 0===document[jr("0xa7")]||null===document[jr("0xa7")])return e(t[jr("0x2f")])
e([])}},{key:P,value:function(e,t){e({hash:location.hash||t.NOT_AVAILABLE,host:location[jr("0xa9")]||t[jr("0x2f")],hostname:location[jr("0xaa")]||t[jr("0x2f")],href:location[jr("0xab")]||t.NOT_AVAILABLE,origin:location.origin||t[jr("0x2f")],pathname:location[jr("0xac")]||t[jr("0x2f")],port:location[jr("0xad")]||t[jr("0x2f")],protocol:location[jr("0xae")]||t.NOT_AVAILABLE})}},{key:M,value:function(e){e(j.getSignals())}},{key:"getSignals",value:function(){var e={adBlockInstalled:function(){return j[jr("0xb0")]()},liedLanguages:function(){return j[jr("0xb1")]()},liedResolution:function(){return j[jr("0xb2")]()},liedOS:function(){return j[jr("0xb3")]()},liedBrowser:function(){return j[jr("0xb4")]()}},t={}
for(var n in e)if(e[jr("0xf")](n)){var i=e[n]
t[n]=i(n)}return t}},{key:jr("0xb5"),value:function(e,t){return j[jr("0xb6")]()?j[jr("0xb7")]()?t[jr("0xb8")][jr("0xb9")]?void j.loadSwfAndDetectFonts((function(t){e(t)}),t):e(jr("0xba")):e("flash not installed"):e(jr("0xbb"))}},{key:"jsFontsKey",value:function(t,n){var i=[jr("0xbc"),jr("0xbd"),jr("0xbe")],r=[jr("0xbf"),"Arial",jr("0xc0"),"Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold",jr("0xc1"),jr("0xc2"),jr("0xc3"),jr("0xc4"),jr("0xc5"),"Cambria",jr("0xc6"),jr("0xc7"),jr("0xc8"),jr("0xc9"),"Comic Sans",jr("0xca"),jr("0xcb"),jr("0xcc"),"Courier New","Geneva",jr("0xcd"),jr("0xce"),jr("0xcf"),jr("0xd0"),jr("0xd1"),jr("0xd2"),"Lucida Console",jr("0xd3"),jr("0xd4"),"Lucida Handwriting","Lucida Sans",jr("0xd5"),jr("0xd6"),"Microsoft Sans Serif",jr("0xd7"),jr("0xd8"),"MS Gothic",jr("0xd9"),jr("0xda"),jr("0xdb"),"MS Sans Serif",jr("0xdc"),jr("0xdd"),jr("0xde"),jr("0xdf"),jr("0xe0"),"Segoe Print",jr("0xe1"),"Segoe UI",jr("0xe2"),jr("0xe3"),jr("0xe4"),jr("0xe5"),"Times",jr("0xe6"),"Times New Roman PS",jr("0xe7"),jr("0xe8"),jr("0xe9"),jr("0xea"),"Wingdings 3"]
void 0!==n[jr("0xb8")]&&void 0!==n[jr("0xb8")][jr("0xeb")]&&(r=r[jr("0xec")](n[jr("0xb8")].extendedJsFonts)),void 0!==n.fonts&&void 0!==n.fonts[jr("0xed")]&&(r=r[jr("0xec")](n[jr("0xb8")][jr("0xed")])),r=r[jr("0xee")]((function(e,t){return r[jr("0x18")](e)===t}))
var o=document.getElementsByTagName(jr("0x75"))[0],a=document[jr("0xef")](jr("0xf0")),s=document[jr("0xef")](jr("0xf0")),c={},l={},u=function(){var e=document[jr("0xef")](jr("0xf1"))
return e[jr("0xf2")][jr("0xf3")]="absolute",e.style[jr("0xf4")]=jr("0xf5"),e[jr("0xf2")][jr("0xf6")]=jr("0xf7"),e[jr("0xf2")][jr("0xf8")]="normal",e.style[jr("0xf9")]=jr("0xfa"),e.style[jr("0xfb")]=jr("0xfa"),e[jr("0xf2")][jr("0xfc")]=jr("0xfd"),e[jr("0xf2")][jr("0xfe")]="normal",e[jr("0xf2")][jr("0xff")]="none",e[jr("0xf2")][jr("0x100")]=jr("0xf4"),e[jr("0xf2")][jr("0x101")]=jr("0x102"),e[jr("0xf2")][jr("0x103")]="none",e.style[jr("0x104")]="normal",e.style[jr("0x105")]=jr("0xfa"),e.style[jr("0x106")]=jr("0xfa"),e[jr("0x107")]=jr("0x108"),e},d=function(e,t){var n=u()
return n[jr("0xf2")][jr("0x109")]="'"+e+"',"+t,n},f=function(e){for(var t=!1,n=0;n<i[jr("0x5")];n++)if(t=e[n][jr("0x10a")]!==c[i[n]]||e[n][jr("0x10b")]!==l[i[n]])return t
return t},p=function(){for(var e=[],t=0,n=i[jr("0x5")];t<n;t++){var r=u()
r[jr("0xf2")].fontFamily=i[t],a[jr("0x10c")](r),e[jr("0x10d")](r)}return e}()
o[jr("0x10c")](a)
for(var h=0,g=i[jr("0x5")];h<g;h++)c[i[h]]=p[h].offsetWidth,l[i[h]]=p[h][jr("0x10b")]
var m=function(){for(var e={},t=0,n=r[jr("0x5")];t<n;t++){for(var o=[],a=0,c=i.length;a<c;a++){var l=d(r[t],i[a])
s.appendChild(l),o.push(l)}e[r[t]]=o}return e}()
o[jr("0x10c")](s)
for(var v=[],y=0,b=r[jr("0x5")];y<b;y++)f(m[r[y]])&&v[jr("0x10d")](r[y])
o[jr("0x10e")](s),o[jr("0x10e")](a)
var E={}
E[jr("0x10f")]=e[jr("0x4")](v.join(),23),n[jr("0xb8")].hashOnly||(E[jr("0x110")]=v),t(E)}},{key:jr("0x111"),value:function(e,t){if(void 0!==navigator[jr("0x112")]&&null!==navigator.mimeTypes){for(var n=navigator[jr("0x112")],i=[],r=0;r<n[jr("0x5")];r++){var o={}
o[jr("0x3f")]=n[r][jr("0x3f")],o[jr("0x113")]=n[r][jr("0x113")],o[jr("0x114")]=n[r][jr("0x114")],i[jr("0x10d")](o)}e(i)}else e(t.NOT_AVAILABLE)}},{key:jr("0x115"),value:function(e,t){j[jr("0x116")]()?t[jr("0x117")].excludeIE?e(t[jr("0x60")]):e(j.getIEPlugins(t)):e(j.getRegularPlugins(t))}},{key:"getRegularPlugins",value:function(e){if(void 0===navigator[jr("0x117")]||null===navigator[jr("0x117")])return e.NOT_AVAILABLE
for(var t=[],n=0,i=navigator.plugins[jr("0x5")];n<i;n++)navigator[jr("0x117")][n]&&t[jr("0x10d")](navigator[jr("0x117")][n])
return t.length>0&&j[jr("0x118")](e)&&(t=t[jr("0x119")]((function(e,t){return e[jr("0x31")]>t[jr("0x31")]?1:e.name<t.name?-1:0}))),j[jr("0x10")](t,(function(e){var t=j.map(e,(function(e){return[e[jr("0x3f")],e.suffixes]}))
return[e[jr("0x31")],e[jr("0x114")],t]}))}},{key:"getIEPlugins",value:function(e){var t=[]
if(Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,jr("0x11a"))||jr("0x11a")in window){var n=["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl",jr("0x11b"),jr("0x11c"),"Msxml2.DOMDocument","Msxml2.XMLHTTP",jr("0x11d"),"QuickTime.QuickTime",jr("0x11e"),"RealPlayer",jr("0x11f"),"RealVideo.RealVideo(tm) ActiveX Control (32-bit)",jr("0x120"),jr("0x121"),jr("0x122"),jr("0x123"),jr("0x124"),jr("0x125"),jr("0x126"),jr("0x127"),jr("0x128")]
t=j.map(n,(function(t){try{return new(window[jr("0x11a")])(t),t}catch(t){return e.ERROR}}))}else t[jr("0x10d")](e[jr("0x2f")])
return navigator[jr("0x117")]&&(t=t[jr("0xec")](j[jr("0x129")](e))),t}},{key:jr("0x118"),value:function(e){for(var t=!1,n=0,i=e[jr("0x117")][jr("0x12a")].length;n<i;n++){var r=e[jr("0x117")][jr("0x12a")][n]
if(navigator[jr("0x3a")].match(r)){t=!0
break}}return t}},{key:jr("0x12b"),value:function(e,t){void 0!==navigator[jr("0x12c")]?navigator[jr("0x12c")]()[jr("0x20")]((function(t){var n={}
n.level=t[jr("0x12d")],n[jr("0x12e")]=t[jr("0x12e")],n[jr("0x12f")]=t[jr("0x12f")],n[jr("0x130")]=t[jr("0x130")],e(n)})):e(t[jr("0x2f")])}},{key:jr("0x131"),value:function(e,t){var n=navigator.connection
e(void 0!==n?{downlink:n[jr("0x132")],downlinkMax:n[jr("0x133")],type:n.type,effectiveType:n[jr("0x134")],rtt:n[jr("0x135")],saveData:n[jr("0x136")]}:t.NOT_AVAILABLE)}},{key:jr("0x137"),value:function(e){e(j[jr("0x138")]())}},{key:"hardwareConcurrencyKey",value:function(e,t){e(j[jr("0x139")](t))}},{key:"hasSessionStorage",value:function(e){try{return!!window.sessionStorage}catch(t){return e[jr("0x13a")]}}},{key:"hasLocalStorage",value:function(e){try{return!!window[jr("0x92")]}catch(t){return e[jr("0x13a")]}}},{key:jr("0x73"),value:function(e){try{return!!window[jr("0x99")]}catch(t){return e[jr("0x13a")]}}},{key:jr("0x139"),value:function(e){return navigator.hardwareConcurrency?navigator[jr("0x13b")]:e[jr("0x2f")]}},{key:"getNavigatorCpuClass",value:function(e){return navigator[jr("0x13c")]||e[jr("0x2f")]}},{key:"getNavigatorPlatform",value:function(e){return navigator[jr("0x13d")]?navigator.platform:e[jr("0x2f")]}},{key:"getDoNotTrack",value:function(e){return navigator[jr("0x13e")]?navigator[jr("0x13e")]:navigator[jr("0x13f")]?navigator[jr("0x13f")]:window[jr("0x13e")]?window[jr("0x13e")]:e.NOT_AVAILABLE}},{key:"getTouchSupport",value:function(){var e,t=0
void 0!==navigator[jr("0x140")]?t=navigator.maxTouchPoints:void 0!==navigator[jr("0x141")]&&(t=navigator[jr("0x141")])
try{document[jr("0x142")]("TouchEvent"),e=!0}catch(t){e=!1}return{maxTouchPoints:t,touchEvent:e,touchStart:jr("0x143")in window}}},{key:jr("0xa3"),value:function(t){var n={},i=document.createElement("canvas")
i[jr("0x66")]=2e3,i[jr("0x67")]=200,i[jr("0xf2")][jr("0x144")]="inline"
var r=i[jr("0x145")]("2d")
return r[jr("0x146")](0,0,10,10),r[jr("0x146")](2,2,6,6),n[jr("0x147")]=!1===r[jr("0x148")](5,5,"evenodd")?"yes":"no",r[jr("0x149")]=jr("0x14a"),r[jr("0x14b")]=jr("0x14c"),r.fillRect(125,1,62,20),r[jr("0x14b")]="#069",t[jr("0x14d")]?r[jr("0x14e")]=jr("0x14f"):r[jr("0x14e")]=jr("0x150"),r[jr("0x151")]("Cwm fjordbank glyphs vext quiz, 😃",2,15),r[jr("0x14b")]=jr("0x152"),r[jr("0x14e")]=jr("0x153"),r[jr("0x151")](jr("0x154"),4,45),r[jr("0x155")]=jr("0x156"),r[jr("0x14b")]=jr("0x157"),r.beginPath(),r.arc(50,50,50,0,2*Math.PI,!0),r.closePath(),r[jr("0x158")](),r[jr("0x14b")]=jr("0x159"),r[jr("0x15a")](),r.arc(100,50,50,0,2*Math.PI,!0),r[jr("0x15b")](),r.fill(),r[jr("0x14b")]=jr("0x15c"),r[jr("0x15a")](),r[jr("0x15d")](75,100,50,0,2*Math.PI,!0),r[jr("0x15b")](),r.fill(),r.fillStyle=jr("0x157"),r[jr("0x15d")](75,75,75,0,2*Math.PI,!0),r[jr("0x15d")](75,75,25,0,2*Math.PI,!0),r.fill(jr("0x15e")),i[jr("0x15f")]&&(n[jr("0x160")]=e[jr("0x4")](i[jr("0x15f")](),23)),n}},{key:jr("0xa6"),value:function(t){var n,i=function(e){return n[jr("0x161")](0,0,0,1),n[jr("0x162")](n[jr("0x163")]),n[jr("0x164")](n[jr("0x165")]),n[jr("0x166")](n[jr("0x167")]|n[jr("0x168")]),"["+e[0]+", "+e[1]+"]"}
if(!(n=j.getWebglCanvas()))return null
var r={},o=n[jr("0x169")]()
n[jr("0x16a")](n[jr("0x16b")],o)
var a=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0])
n[jr("0x16c")](n[jr("0x16b")],a,n[jr("0x16d")]),o[jr("0x16e")]=3,o.numItems=3
var s=n.createProgram(),c=n[jr("0x16f")](n.VERTEX_SHADER)
n.shaderSource(c,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}"),n[jr("0x170")](c)
var l=n[jr("0x16f")](n[jr("0x171")])
n[jr("0x172")](l,jr("0x173")),n[jr("0x170")](l),n[jr("0x174")](s,c),n[jr("0x174")](s,l),n[jr("0x175")](s),n.useProgram(s),s[jr("0x176")]=n.getAttribLocation(s,jr("0x177")),s[jr("0x178")]=n.getUniformLocation(s,jr("0x179")),n[jr("0x17a")](s.vertexPosArray),n[jr("0x17b")](s[jr("0x176")],o[jr("0x16e")],n[jr("0x17c")],!1,0,0),n[jr("0x17d")](s[jr("0x178")],1,1),n[jr("0x17e")](n.TRIANGLE_STRIP,0,o[jr("0x17f")])
try{r[jr("0x180")]=e[jr("0x4")](n[jr("0x181")][jr("0x15f")](),23)}catch(e){}if(t[jr("0x182")].hashOnly)return r
r[jr("0x183")]=j[jr("0x184")](),r[jr("0x185")]=n[jr("0x186")]()||[],r[jr("0x187")]=i(n[jr("0x188")](n.ALIASED_LINE_WIDTH_RANGE)),r[jr("0x189")]=i(n[jr("0x188")](n[jr("0x18a")])),r[jr("0x18b")]=n.getParameter(n[jr("0x18c")]),r[jr("0x18d")]=n[jr("0x18e")]().antialias?jr("0x18f"):"no",r[jr("0x190")]=n[jr("0x188")](n[jr("0x191")]),r[jr("0x192")]=n[jr("0x188")](n[jr("0x193")]),r["webgl green bits"]=n.getParameter(n[jr("0x194")]),r[jr("0x195")]=function(e){var t=e.getExtension(jr("0x196"))||e[jr("0x197")](jr("0x198"))||e.getExtension(jr("0x199"))
if(t){var n=e.getParameter(t[jr("0x19a")])
return 0===n&&(n=2),n}return null}(n),r[jr("0x19b")]=n[jr("0x188")](n[jr("0x19c")]),r["webgl max cube map texture size"]=n[jr("0x188")](n[jr("0x19d")]),r["webgl max fragment uniform vectors"]=n.getParameter(n[jr("0x19e")]),r[jr("0x19f")]=n[jr("0x188")](n[jr("0x1a0")]),r["webgl max texture image units"]=n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS),r[jr("0x1a1")]=n[jr("0x188")](n.MAX_TEXTURE_SIZE),r[jr("0x1a2")]=n.getParameter(n.MAX_VARYING_VECTORS),r[jr("0x1a3")]=n[jr("0x188")](n.MAX_VERTEX_ATTRIBS),r["webgl max vertex texture image units"]=n.getParameter(n[jr("0x1a4")]),r[jr("0x1a5")]=n.getParameter(n[jr("0x1a6")]),r["webgl max viewport dims"]=i(n[jr("0x188")](n[jr("0x1a7")])),r[jr("0x1a8")]=n[jr("0x188")](n[jr("0x1a9")]),r[jr("0x1aa")]=n[jr("0x188")](n[jr("0x1ab")]),r[jr("0x1ac")]=n[jr("0x188")](n[jr("0x1ad")]),r[jr("0x1ae")]=n.getParameter(n.STENCIL_BITS),r[jr("0x1af")]=n[jr("0x188")](n[jr("0x1b0")]),r[jr("0x1b1")]=n[jr("0x188")](n[jr("0x1b2")])
try{var u=n[jr("0x197")](jr("0x1b3"))
u&&(r[jr("0x1b4")]=n.getParameter(u[jr("0x1b5")]),r[jr("0x1b6")]=n[jr("0x188")](u[jr("0x1b7")]))}catch(e){}return n[jr("0x1b8")]?(j[jr("0xc")]([jr("0x17c"),jr("0x1b9")],(function(e){j.each([jr("0x1ba"),jr("0x1bb")],(function(t){j.each([jr("0x1bc"),"MEDIUM",jr("0x1bd")],(function(i){j[jr("0xc")]([jr("0x1be"),jr("0x1bf"),jr("0x1c0")],(function(o){var a=n[jr("0x1b8")](n[t+jr("0x1c1")],n[i+"_"+e])[o]
jr("0x1be")!==o&&(o=jr("0x1c2")+o)
var s=["webgl ",t.toLowerCase()," shader ",i[jr("0x1c3")]()," ",e[jr("0x1c3")]()," ",o][jr("0x9c")]("")
r[s]=a}))}))}))})),r):r}},{key:jr("0x184"),value:function(){try{var e=j[jr("0x1c4")](),t=e[jr("0x197")]("WEBGL_debug_renderer_info")
return e[jr("0x188")](t.UNMASKED_VENDOR_WEBGL)+"~"+e.getParameter(t[jr("0x1b7")])}catch(e){return null}}},{key:jr("0xb0"),value:function(){var e=document[jr("0xef")](jr("0xf0"))
e[jr("0x1c5")]="&nbsp;",e[jr("0x1c6")]="adsbox"
var t=!1
try{document[jr("0x75")][jr("0x10c")](e),t=0===document[jr("0x1c7")](jr("0x1c8"))[0].offsetHeight,document[jr("0x75")][jr("0x10e")](e)}catch(e){t=!1}return t}},{key:jr("0xb1"),value:function(){if(void 0!==navigator[jr("0x1c9")])try{if(navigator.languages[0][jr("0x1ca")](0,2)!==navigator[jr("0x53")][jr("0x1ca")](0,2))return!0}catch(e){return!0}return!1}},{key:jr("0xb2"),value:function(){return window[jr("0x57")].width<window[jr("0x57")].availWidth||window.screen.height<window[jr("0x57")][jr("0x69")]}},{key:jr("0xb3"),value:function(){var e,t=navigator[jr("0x3a")][jr("0x1c3")](),n=navigator[jr("0x1cb")],i=navigator.platform[jr("0x1c3")]()
if(e=t[jr("0x18")](jr("0x1cc"))>=0?"Windows Phone":t[jr("0x18")](jr("0x1cd"))>=0?jr("0x1ce"):t[jr("0x18")]("android")>=0?jr("0x1cf"):t[jr("0x18")](jr("0x1d0"))>=0||t[jr("0x18")](jr("0x1d1"))>=0?jr("0x1d2"):t[jr("0x18")](jr("0x1d3"))>=0||t[jr("0x18")](jr("0x1d4"))>=0?jr("0x1d5"):t[jr("0x18")](jr("0x1d6"))>=0?"Mac":jr("0x1d7"),("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&jr("0x1d8")!==e&&jr("0x1cf")!==e&&jr("0x1d5")!==e&&"Other"!==e)return!0
if(void 0!==n){if((n=n[jr("0x1c3")]()).indexOf(jr("0x1cd"))>=0&&jr("0x1ce")!==e&&"Windows Phone"!==e)return!0
if(n[jr("0x18")](jr("0x1d0"))>=0&&jr("0x1d2")!==e&&jr("0x1cf")!==e)return!0
if(n[jr("0x18")](jr("0x1d6"))>=0&&jr("0x1d9")!==e&&jr("0x1d5")!==e)return!0
if((-1===n[jr("0x18")](jr("0x1cd"))&&-1===n[jr("0x18")](jr("0x1d0"))&&-1===n.indexOf(jr("0x1d6")))!=(jr("0x1d7")===e))return!0}return i[jr("0x18")](jr("0x1cd"))>=0&&"Windows"!==e&&jr("0x1d8")!==e||(i[jr("0x18")]("linux")>=0||i[jr("0x18")](jr("0x1da"))>=0||i[jr("0x18")](jr("0x1db"))>=0)&&jr("0x1d2")!==e&&"Android"!==e||(i[jr("0x18")](jr("0x1d6"))>=0||i[jr("0x18")](jr("0x1d4"))>=0||i[jr("0x18")](jr("0x1dc"))>=0||i.indexOf("iphone")>=0)&&"Mac"!==e&&jr("0x1d5")!==e||(i[jr("0x18")](jr("0x1cd"))<0&&i[jr("0x18")](jr("0x1d0"))<0&&i.indexOf("mac")<0&&i[jr("0x18")](jr("0x1d3"))<0&&i[jr("0x18")]("ipad")<0)!=(jr("0x1d7")===e)||void 0===navigator[jr("0x117")]&&jr("0x1ce")!==e&&"Windows Phone"!==e}},{key:"getHasLiedBrowser",value:function(){var e,t=navigator[jr("0x3a")].toLowerCase(),n=navigator[jr("0x84")]
if(e=t[jr("0x18")](jr("0x1dd"))>=0?"Firefox":t[jr("0x18")](jr("0x1de"))>=0||t[jr("0x18")](jr("0x1df"))>=0?jr("0x9e"):t[jr("0x18")]("chrome")>=0?jr("0x25"):t.indexOf(jr("0x1e0"))>=0?jr("0x1e1"):t[jr("0x18")](jr("0x1e2"))>=0?jr("0x1e3"):jr("0x1d7"),(jr("0x25")===e||jr("0x1e1")===e||jr("0x9e")===e)&&jr("0x1e4")!==n)return!0
var i,r=eval[jr("0xa")]()[jr("0x5")]
if(37===r&&jr("0x1e1")!==e&&jr("0x27")!==e&&jr("0x1d7")!==e)return!0
if(39===r&&jr("0x1e3")!==e&&"Other"!==e)return!0
if(33===r&&jr("0x25")!==e&&jr("0x9e")!==e&&jr("0x1d7")!==e)return!0
try{throw"a"}catch(e){try{e[jr("0x1e5")](),i=!0}catch(e){i=!1}}return i&&jr("0x27")!==e&&jr("0x1d7")!==e}},{key:jr("0xa2"),value:function(){var e=document.createElement(jr("0x181"))
return!(!e[jr("0x145")]||!e[jr("0x145")]("2d"))}},{key:"isWebGlSupported",value:function(){if(!j.isCanvasSupported())return!1
var e=j.getWebglCanvas()
return!!window.WebGLRenderingContext&&!!e}},{key:jr("0x116"),value:function(){return jr("0x1e6")===navigator[jr("0x9f")]||!(jr("0x1e7")!==navigator[jr("0x9f")]||!/Trident/[jr("0x95")](navigator[jr("0x3a")]))}},{key:jr("0xb6"),value:function(){return void 0!==window.swfobject}},{key:jr("0xb7"),value:function(){return window[jr("0x1e8")][jr("0x1e9")]("9.0.0")}},{key:jr("0x1ea"),value:function(e){var t=document[jr("0xef")](jr("0xf0"))
t[jr("0x1eb")]("id",e[jr("0xb8")][jr("0x1ec")]),document.body[jr("0x10c")](t)}},{key:jr("0x1ed"),value:function(e,t){window.___fp_swf_loaded=function(t){e(t)}
var n=t[jr("0xb8")][jr("0x1ec")]
j[jr("0x1ea")](),window[jr("0x1e8")][jr("0x1ee")](t.fonts[jr("0xb9")],n,"1","1",jr("0x1ef"),!1,{onReady:"___fp_swf_loaded"},{allowScriptAccess:jr("0x1f0"),menu:jr("0x1f1")},{})}},{key:"getWebglCanvas",value:function(){var e=document[jr("0xef")]("canvas"),t=null
try{t=e[jr("0x145")](jr("0x182"))||e[jr("0x145")](jr("0x1f2"))}catch(e){}return t||(t=null),t}}]),j}(jr("0xc"),jr("0x10"),jr("0x23"),jr("0x32"),jr("0x51"),jr("0x26"),jr("0x52"),jr("0x56"),jr("0x58"),jr("0x5a"),jr("0x5b"),jr("0x5d"),jr("0x5e"),jr("0x65"),jr("0x68"),jr("0x6c"),jr("0x70"),jr("0x72"),jr("0x74"),jr("0x78"),jr("0x7a"),jr("0x7b"),jr("0x7d"),jr("0x80"),jr("0x82"),jr("0x83"),jr("0x85"),jr("0x87"),jr("0x89"),jr("0x8b"),jr("0x24"),jr("0xa1"),jr("0xa4"),jr("0xa8"),jr("0xaf")),n={getItem:function(e){var t=this.getCookieString()[jr("0x3b")](this[jr("0x222")](e))
return t?t[1].replace(/^"(.*)"$/,"$1"):""},getBcookie:function(){try{for(var e=document[jr("0x223")][jr("0x17")](/\s*;\s*/),t=0;t<e.length;t++){var n=e[t][jr("0x17")]("=")
if(n.length>1&&jr("0x224")===n[0]){var i=n[n[jr("0x5")]-1]
return i[jr("0x225")](2,i[jr("0x5")]-1)}}}catch(e){return""}return""},setItem:function(e,t,n){var i=arguments[jr("0x5")]>3&&void 0!==arguments[3]?arguments[3]:this.getDomain()
if(n){var r=[e+"="+t+jr("0x226")+(arguments[jr("0x5")]>4&&void 0!==arguments[4]?arguments[4]:"/")+jr("0x227")]
"string"==typeof i&&i[jr("0x5")]>0&&r[jr("0x10d")](jr("0x228")+i),r[jr("0x10d")](jr("0x229")+(n instanceof Date?n[jr("0x22a")]():n)),document.cookie=r[jr("0x9c")]("; ")}},deleteItem:function(e){this[jr("0x93")](e,"",new Date(0)),this[jr("0x93")](e,"",new Date(0),"")
var t=this[jr("0x22b")]()[jr("0x17")](".")
t.length>2&&(t=t[jr("0xb")](t[jr("0x5")]-2))
var n=t[jr("0x9c")](".")
this[jr("0x93")](e,"",new Date(0),n)},_cookieRegEx:function(e){return new RegExp(e+jr("0x22c"))},getCookieString:function(){return document[jr("0x223")]},getDomain:function(){return window[jr("0x22d")]?window[jr("0x22d")][jr("0xaa")]:""}},i=jr("0x22e"),r=jr("0x22f"),o="DFP_WEB"
function a(e){var t=arguments[jr("0x5")]>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],i=n?n[jr("0x230")]("#"+e):document[jr("0x231")](e)
if(i){var r=i[jr("0x232")][jr("0x233")]
if(t&&i[jr("0x234")][jr("0x10e")](i),r)try{return JSON.parse(r)}catch(e){return}}}function s(e,t,n){var i=new XMLHttpRequest,r=n?"https://www.linkedin.com":jr("0x235")
r+=String(t),i[jr("0x96")](jr("0x236"),r),i.setRequestHeader(jr("0x237"),"application/json"),i.send(e)}function c(e){var t=document.getElementsByClassName(e)
return void 0!==t&&t[jr("0x5")]>=1}var l=function(){function e(){tt(this,e)}return it(e,null,[{key:jr("0x238"),value:function(e){for(var t=new ArrayBuffer(e[jr("0x5")]),n=new Uint8Array(t),i=0,r=e[jr("0x5")];i<r;i++)n[i]=e[jr("0x6")](i)
return t}},{key:"encode",value:function(e){return window.btoa(String.fromCharCode[jr("0x239")](null,e))}},{key:jr("0x23a"),value:function(t,n,i){var r=window.atob(n),o=e[jr("0x238")](r)
return window[jr("0x23b")][jr("0x23c")][jr("0x23d")](t,o,{name:jr("0x23e"),hash:jr("0x23f")},!0,i)}},{key:jr("0x240"),value:function(t,n){return e[jr("0x23a")]("spki",n,[jr("0x241")])[jr("0x20")]((function(e){return window[jr("0x23b")][jr("0x23c")][jr("0x241")](jr("0x242"),t,e,{name:"RSA-OAEP"})}))[jr("0x20")]((function(t){return e[jr("0x243")](new Uint8Array(t))}))}},{key:jr("0x244"),value:function(e){var t={a:null,b:null,c:null}
return t[jr("0x245")]=e,t}},{key:"encryptWithKey",value:function(t,n,i){var r={a:null,b:null,c:null}
try{var o=Date.now()
if(jr("0x246")!=et(n)||jr("0x217")!=et(i))throw new Error("ec1")
var a=window[jr("0x23b")].getRandomValues(new Uint8Array(16))
r.a=e[jr("0x243")](a)
var s=(new TextEncoder)[jr("0x243")](t),c="AES-CBC"
return window.crypto[jr("0x23c")][jr("0x247")]({name:c,length:256},!0,[jr("0x248"),jr("0x249")])[jr("0x20")]((function(t){return window[jr("0x23b")][jr("0x23c")][jr("0x248")]({name:c,iv:a},t,s)[jr("0x20")]((function(a){return e[jr("0x240")](t,n)[jr("0x20")]((function(t){return r.b=t,r.c=e.encode(new Uint8Array(a)),r.d=Date[jr("0x7f")]()-o,r.e=i,r}))}))}))[jr("0x39")]((function(e){return r.error=String(e),r}))}catch(t){return r.error=String(t),Promise.resolve(r)}}},{key:jr("0x24a"),value:function(t,n,i,r){if(jr("0x246")!=et(n)||jr("0x246")!=et(i))return Promise[jr("0x24b")](e.wrapErrorResult(jr("0x24c")))
var o=a(n),s=parseInt(a(i))
return(""===o||jr("0x246")!=et(o)||jr("0x217")!=et(s)||Number.isNaN(s))&&(o=r?"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqyVTa3Pi5twlDxHc34nl3MlTHOweIenIid6hDqVlh5/wcHzIxvB9nZjObW3HWfwqejGM+n2ZGbo9x8R7ByS3/V4qRgAs1z4aB6F5+HcXsx8uVrQfwigK0+u7d3g1s7H8qUaguMPHxNnyj5EisTJBh2jf9ODp8TpWnhAQHCCSZcDM4JIoIlsVdGmv+dGlzZzmf1if26U4KJqFdrqS83r3nGWcEpXWiQB+mx/EX4brbrhOFCvfPovvsLEjMTm0UC68Bvki3UsB/vkkMPW9cxNiiJJdnDkOEEdQPuFmPug+sqhACl3IIHLVBFM7vO0ca14rcCNSbSDaaKOY6BQoW1A30wIDAQAB":jr("0x24d"),s=r?2:1),e[jr("0x24e")](t,o,s)}},{key:jr("0x24f"),value:function(t,n,i,r,o){return null!=r&&jr("0x246")==et(r[jr("0x250")])&&jr("0x217")==et(r[jr("0x251")])?e[jr("0x24e")](t,r[jr("0x250")],r[jr("0x251")]):e[jr("0x24a")](t,n,i,o)}},{key:jr("0x252"),value:function(){return([1e7]+-1e3+-4e3+-8e3+-1e11)[jr("0x9d")](/[018]/g,(function(e){return(e^window[jr("0x23b")][jr("0x253")](new Uint8Array(1))[0]&15>>e/4).toString(16)}))}},{key:jr("0x254"),value:function(e){var t=(new TextEncoder)[jr("0x243")](e)
return crypto.subtle[jr("0x255")](jr("0x23f"),t).then((function(e){return Array[jr("0x256")](new Uint8Array(e)).map((function(e){return("00"+e.toString(16))[jr("0xb")](-2)}))[jr("0x9c")]("")}))[jr("0x39")]((function(){return""}))}}]),e}(),u=function(){var e={compressToBase64:function(t){if(null==t)return""
var n=e[jr("0x257")](t,6,(function(e){return jr("0x258")[jr("0x259")](e)}))
switch(n.length%4){default:case 0:return n
case 1:return n+jr("0x25a")
case 2:return n+"=="
case 3:return n+"="}},_compress:function(e,t,n){if(null==e)return""
var i,r,o,a={},s={},c="",l="",u="",d=2,f=3,p=2,h=[],g=0,m=0
for(o=0;o<e.length;o+=1)if(c=e[jr("0x259")](o),Object[jr("0xd")][jr("0xf")][jr("0x25b")](a,c)||(a[c]=f++,s[c]=!0),l=u+c,Object[jr("0xd")][jr("0xf")][jr("0x25b")](a,l))u=l
else{if(Object[jr("0xd")].hasOwnProperty[jr("0x25b")](s,u)){if(u[jr("0x6")](0)<256){for(i=0;i<p;i++)g<<=1,m==t-1?(m=0,h[jr("0x10d")](n(g)),g=0):m++
for(r=u[jr("0x6")](0),i=0;i<8;i++)g=g<<1|1&r,m==t-1?(m=0,h[jr("0x10d")](n(g)),g=0):m++,r>>=1}else{for(r=1,i=0;i<p;i++)g=g<<1|r,m==t-1?(m=0,h[jr("0x10d")](n(g)),g=0):m++,r=0
for(r=u[jr("0x6")](0),i=0;i<16;i++)g=g<<1|1&r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r>>=1}0==--d&&(d=Math[jr("0x25c")](2,p),p++),delete s[u]}else for(r=a[u],i=0;i<p;i++)g=g<<1|1&r,m==t-1?(m=0,h[jr("0x10d")](n(g)),g=0):m++,r>>=1
0==--d&&(d=Math[jr("0x25c")](2,p),p++),a[l]=f++,u=String(c)}if(""!==u){if(Object[jr("0xd")][jr("0xf")][jr("0x25b")](s,u)){if(u.charCodeAt(0)<256){for(i=0;i<p;i++)g<<=1,m==t-1?(m=0,h[jr("0x10d")](n(g)),g=0):m++
for(r=u.charCodeAt(0),i=0;i<8;i++)g=g<<1|1&r,m==t-1?(m=0,h[jr("0x10d")](n(g)),g=0):m++,r>>=1}else{for(r=1,i=0;i<p;i++)g=g<<1|r,m==t-1?(m=0,h[jr("0x10d")](n(g)),g=0):m++,r=0
for(r=u[jr("0x6")](0),i=0;i<16;i++)g=g<<1|1&r,m==t-1?(m=0,h[jr("0x10d")](n(g)),g=0):m++,r>>=1}0==--d&&(d=Math[jr("0x25c")](2,p),p++),delete s[u]}else for(r=a[u],i=0;i<p;i++)g=g<<1|1&r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r>>=1
0==--d&&(d=Math[jr("0x25c")](2,p),p++)}for(r=2,i=0;i<p;i++)g=g<<1|1&r,m==t-1?(m=0,h[jr("0x10d")](n(g)),g=0):m++,r>>=1
for(;;){if(g<<=1,m==t-1){h.push(n(g))
break}m++}return h.join("")}}
return e}(),d={apfcTypes:1,collectionType:2,trackingId:3},f={protocol:1,hostname:2,port:3,origin:4,host:5,href:6,hash:7,pathname:8},p={saveData:1,effectiveType:2,rtt:3,downlink:4,downlinkMax:5,type:6},h={liedOS:1,liedBrowser:2,liedResolution:3,adBlockInstalled:4,liedLanguages:5},g={type:1,description:2,suffixes:3},m={canvasHash:1,canvasWinding:2},v={label:1,gid:2,id:3,kind:4},y={lists:1,fontsHash:2},b={Orientation:1,Enabled:2},E={charging:1,dischargingTime:2,level:3,chargingTime:4},_={touchStart:1,touchEvent:2,maxTouchPoints:3},k={"webgl stencil bits":1,"webgl vertex shader high float precision rangeMax":2,"webgl antialiasing":3,"webgl max vertex texture image units":4,"webgl fragment shader medium int precision rangeMax":5,"webgl fragment shader low int precision rangeMin":6,"webgl max vertex uniform vectors":7,"webgl renderer":8,"webgl vertex shader high float precision":9,"webgl green bits":10,"webgl fragment shader medium int precision rangeMin":11,"webgl fragment shader low int precision rangeMax":12,"webgl fragment shader medium int precision":13,"webgl blue bits":14,"webgl max viewport dims":15,"webgl unmasked vendor":16,"webgl vertex shader medium float precision":17,"webgl fragment shader low int precision":18,"webgl vertex shader high int precision":19,"webgl vertex shader medium int precision rangeMax":20,"webgl unmasked renderer":21,"webgl fragment shader high int precision":22,"webgl aliased point size range":23,"webgl vertex shader medium float precision rangeMax":24,"webgl vertex shader low int precision rangeMax":25,"webgl fragment shader low float precision":26,"webgl fragment shader high int precision rangeMin":27,"webgl vertex shader high float precision rangeMin":28,"webgl red bits":29,vendorAndRenderer:30,"webgl vertex shader medium int precision rangeMin":31,"webgl vertex shader low float precision":32,"webgl vertex shader medium int precision":33,"webgl fragment shader medium float precision rangeMax":34,"webgl max texture image units":35,"webgl vertex shader medium float precision rangeMin":36,"webgl fragment shader high float precision rangeMin":37,"webgl fragment shader high int precision rangeMax":38,"webgl vertex shader high int precision rangeMax":39,webglHash:40,"webgl max varying vectors":41,"webgl fragment shader medium float precision rangeMin":42,"webgl vertex shader low int precision":43,"webgl fragment shader low float precision rangeMin":44,"webgl aliased line width range":45,"webgl max combined texture image units":46,"webgl shading language version":47,"webgl vertex shader high int precision rangeMin":48,"webgl max anisotropy":49,"webgl max render buffer size":50,"webgl vendor":51,"webgl vertex shader low int precision rangeMin":52,"webgl max fragment uniform vectors":53,"webgl fragment shader high float precision rangeMax":54,"webgl version":55,"webgl fragment shader high float precision":56,"webgl max texture size":57,"webgl max cube map texture size":58,"webgl fragment shader medium float precision":59,"webgl vertex shader low float precision rangeMin":60,"webgl max vertex attribs":61,"webgl alpha bits":62,"webgl vertex shader low float precision rangeMax":63,"webgl fragment shader low float precision rangeMax":64,"webgl depth bits":65,extensions:66},T={ANGLE_instanced_arrays:67,EXT_blend_minmax:68,EXT_clip_control:69,EXT_color_buffer_float:70,EXT_color_buffer_half_float:71,EXT_conservative_depth:72,EXT_depth_clamp:73,EXT_disjoint_timer_query:74,EXT_disjoint_timer_query_webgl2:75,EXT_float_blend:76,EXT_frag_depth:77,EXT_polygon_offset_clamp:78,EXT_render_snorm:79,EXT_shader_texture_lod:80,EXT_texture_compression_bptc:81,EXT_texture_compression_rgtc:82,EXT_texture_filter_anisotropic:83,EXT_texture_mirror_clamp_to_edge:84,EXT_texture_norm16:85,EXT_sRGB:86,KHR_parallel_shader_compile:87,NV_shader_noperspective_interpolation:88,OES_draw_buffers_indexed:89,OES_element_index_uint:90,OES_fbo_render_mipmap:91,OES_sample_variables:92,OES_shader_multisample_interpolation:93,OVR_multiview2:94,OES_standard_derivatives:95,OES_texture_float:96,OES_texture_float_linear:97,OES_texture_half_float:98,OES_texture_half_float_linear:99,OES_vertex_array_object:100,WEBGL_blend_func_extended:101,WEBGL_clip_cull_distance:102,WEBGL_color_buffer_float:103,WEBGL_compressed_texture_astc:104,WEBGL_compressed_texture_etc:105,WEBGL_compressed_texture_etc1:106,WEBGL_compressed_texture_pvrtc:107,WEBGL_compressed_texture_s3tc:108,WEBGL_compressed_texture_s3tc_srgb:109,WEBGL_debug_renderer_info:110,WEBGL_debug_shaders:111,WEBGL_depth_texture:112,WEBGL_draw_buffers:113,WEBGL_lose_context:114,WEBGL_multi_draw:115,WEBGL_polygon_mode:116,WEBGL_provoking_vertex:117,WEBGL_render_shared_exponent:118,WEBGL_stencil_texturing:119},S={"American Typewriter":1,"Andale Mono":2,Arial:3,"Arial Black":4,"Arial Hebrew":5,"Arial Narrow":6,"Arial Rounded MT Bold":7,"Arial Unicode MS":8,Avenir:9,"Avenir Next":10,"Avenir Next Condensed":11,Bahnschrift:12,Baskerville:13,"Big Caslon":14,"Bodoni 72":15,"Bodoni 72 Oldstyle":16,"Bodoni 72 Smallcaps":17,"Bradley Hand":18,"Brush Script MT":19,Calibri:20,Cambria:21,"Cambria Math":22,Candara:23,Chalkboard:24,"Chalkboard SE":25,Chalkduster:26,Charter:27,Cochin:28,"Comic Sans MS":29,Consolas:30,Constantia:31,Corbel:32,Copperplate:33,Courier:34,"Courier New":35,Didot:36,"DIN Alternate":37,"DIN Condensed":38,Ebrima:39,"Franklin Gothic Medium":40,Futura:41,Gabriola:42,Gadugi:43,Geneva:44,Georgia:45,"Gill Sans":46,Helvetica:47,"Helvetica Neue":48,Herculanum:49,"Hoefler Text":50,"HoloLens MDL2 Assets":51,Impact:52,"Ink Free":53,"Javanese Text":54,"Leelawadee UI":55,"Lucida Console":56,"LUCIDA GRANDE":57,"Lucida Grande":58,"Lucida Sans Unicode":59,Luminari:60,"Malgun Gothic":61,"Marker Felt":62,Marlett:63,Menlo:64,"Microsoft Himalaya":65,"Microsoft JhengHei":66,"Microsoft New Tai Lue":67,"Microsoft PhagsPa":68,"Microsoft Sans Serif":69,"Microsoft Tai Le":70,"Microsoft YaHei":71,"Microsoft Yi Baiti":72,"MingLiU-ExtB":73,Monaco:74,"Mongolian Baiti":75,"MS Gothic":76,"MV Boli":77,"Myanmar Text":78,"Nirmala UI":79,Noteworthy:80,Optima:81,Palatino:82,"Palatino Linotype":83,Papyrus:84,Phosphate:85,Rockwell:86,"Savoye LET":87,"Segoe MDL2 Assets":88,"Segoe Print":89,"Segoe Script":90,"Segoe UI":91,"Segoe UI Historic":92,"Segoe UI Emoji":93,"Segoe UI Symbol":94,SignPainter:95,SimSun:96,Sitka:97,Skia:98,"Snell Roundhand":99,Sylfaen:100,Symbol:101,Tahoma:102,Times:103,"Times New Roman":104,Trattatello:105,"Trebuchet MS":106,Verdana:107,Webdings:108,Wingdings:109,"Wingdings 2":110,"Wingdings 3":111,"Yu Gothic":112,Zapfino:113},A={appVersion:1,numOfCores:2,webrtc:3,touchSupport:4,webgl:5,timezone:6,plugins:7,localStorage:8,incognito:9,language:10,appCodeName:11,battery:12,platform:13,javascripts:14,automation:15,pixelDepth:16,screenOrientation:17,availableScreenResolution:18,timezoneOffset:19,oscpu:20,fonts:21,vendor:22,sessionStorage:23,webdriver:24,audio:25,openDatabase:26,screenResolution:27,vendorSub:28,enumerateDevices:29,product:30,canvas:31,appName:32,mimetyps:33,cpuClass:34,indexedDb:35,userAgent:36,deviceMemory:37,productSub:38,addBehavior:39,signals:40,networkInfo:41,location:42,colorDepth:43,FPDataCookie:44,tsSeed:45,errors:46,pixelRatio:47}
function C(e){var t={}
return function(e){var t=e[jr("0x182")],n={}
if(void 0!==t&&void 0!==t[jr("0x185")]){for(var i=t[jr("0x185")],r=[],o=0;o<i[jr("0x5")];o++){var a=i[o]
r[o]=T[jr("0xf")](a)?T[a]:a}t[jr("0x185")]=r}void 0!==t&&(Object[jr("0x1b")](k).forEach((function(e){n[k[e]]=t[e]})),e[jr("0x182")]=n)}(e),function(e){var t=e.touchSupport,n={}
void 0!==t&&(Object.keys(_)[jr("0xe")]((function(e){n[_[e]]=t[e]})),e.touchSupport=n)}(e),function(e){var t=e[jr("0x25d")],n={}
void 0!==t&&(Object.keys(E)[jr("0xe")]((function(e){n[E[e]]=t[e]})),e[jr("0x25d")]=n)}(e),function(e){var t=e[jr("0x201")],n={}
void 0!==t&&(Object[jr("0x1b")](b)[jr("0xe")]((function(e){n[b[e]]=t[e]})),e[jr("0x201")]=n)}(e),function(e){var t=e[jr("0xb8")],n={}
if(void 0!==t&&void 0!==t[jr("0x110")]){for(var i=t[jr("0x110")],r=[],o=0;o<i[jr("0x5")];o++){var a=i[o]
r[o]=S.hasOwnProperty(a)?S[a]:a}t[jr("0x110")]=r}void 0!==t&&(Object[jr("0x1b")](y)[jr("0xe")]((function(e){n[y[e]]=t[e]})),e[jr("0xb8")]=n)}(e),function(e){var t=e[jr("0x35")],n=[]
if(void 0!==e[jr("0x35")]){for(var i=function(){var e=t[r],i={}
Object[jr("0x1b")](v)[jr("0xe")]((function(t){i[v[t]]=e[t]})),n[r]=i},r=0;r<t.length;r++)i()
e[jr("0x35")]=n}}(e),function(e){var t=e[jr("0x181")],n={}
void 0!==t&&(Object[jr("0x1b")](m).forEach((function(e){n[m[e]]=t[e]})),e[jr("0x181")]=n)}(e),function(e){var t=e.mimetyps,n=[]
if(void 0!==t){for(var i=function(){var e=t[r],i={}
Object[jr("0x1b")](g)[jr("0xe")]((function(t){i[g[t]]=e[t]})),n[r]=i},r=0;r<t[jr("0x5")];r++)i()
e.mimetyps=n}}(e),function(e){var t=e[jr("0x25e")],n={}
void 0!==t&&(Object[jr("0x1b")](h)[jr("0xe")]((function(e){n[h[e]]=t[e]})),e[jr("0x25e")]=n)}(e),function(e){var t=e.networkInfo,n={}
void 0!==t&&(Object.keys(p)[jr("0xe")]((function(e){n[p[e]]=t[e]})),e[jr("0x208")]=n)}(e),function(e){var t=e.location,n={}
void 0!==t&&(Object[jr("0x1b")](f)[jr("0xe")]((function(e){n[f[e]]=t[e]})),e[jr("0x22d")]=n)}(e),function(e){var t=e.FPDataCookie,n={}
void 0!==t&&(Object[jr("0x1b")](d)[jr("0xe")]((function(e){n[d[e]]=t[e]})),e[jr("0x25f")]=n)}(e),Object[jr("0x1b")](A)[jr("0xe")]((function(n){t[A[n]]=e[n]})),t}var I={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"apfcDf",swfPath:jr("0x260"),userDefinedFonts:[],extendedJsFonts:void 0,hashOnly:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},webgl:{hashOnly:!1},ponfUrl:jr("0x261"),telemetryCollectPath:"/platform-telemetry/li/apfcDf",gloablIntegrationDataCollectionPath:jr("0x262"),extraComponents:[],excludes:{pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},debug:!1,NOT_AVAILABLE:jr("0x263"),ERROR:jr("0x264"),EXCLUDED:"excluded",useRequestIdleCallBack:!0},w=function(){function e(t,n,i){var r=this
if(tt(this,e),void 0!==n&&void 0!==t&&jr("0x265")===t[jr("0x266")])jr("0x1e")===document[jr("0x267")]?this[jr("0x268")](n,i):window.addEventListener(jr("0x269"),(function(){r[jr("0x268")](n,i)}))
else if(void 0!==t){var o=JSON[jr("0x26a")](JSON[jr("0x26b")](I))
c(jr("0x26c"))||c(jr("0x26d"))||(o[jr("0x220")]=!1),this[jr("0x26e")](o,t)}else{var a=JSON[jr("0x26a")](JSON[jr("0x26b")](I))
c(jr("0x26c"))||c("setting-headline")||(a[jr("0x220")]=!1),jr("0x1e")===document[jr("0x267")]?this.initialize(a):window[jr("0x26f")](jr("0x269"),(function(){r[jr("0x26e")](a)}))}}return it(e,[{key:jr("0x270"),value:function(e){return"number"!=typeof e[jr("0x271")]||e[jr("0x271")]<=0||""===n[jr("0x272")](jr("0x273"))}},{key:jr("0x268"),value:function(e,t){!0===t[jr("0x274")]&&!0!==globalThis[jr("0x275")]?(globalThis[jr("0x275")]=!0,setTimeout((function(){globalThis[jr("0x275")]=!1}),3e4),this[jr("0x276")](e,t),this.checkConfigAndInitializeThirdPartyIntegration(e,t),n[jr("0x277")]("li_apfcdc")):(this[jr("0x278")](t),this[jr("0x270")](t)&&(this[jr("0x276")](e,t),this[jr("0x279")](e,t),this[jr("0x27a")](t)))}},{key:"checkConfigAndInitializeGlobalIntegration",value:function(e,t){(!0===t[jr("0x274")]&&t.fpDataCookie[jr("0x27b")][jr("0x27c")](i)||!0===t[jr("0x27d")]&&!0!==globalThis[jr("0x27e")])&&this[jr("0x27f")](I,e,t)}},{key:jr("0x279"),value:function(e,t){(!0===t[jr("0x274")]&&t[jr("0x280")][jr("0x27b")].includes(r)||!0===t[jr("0x281")]&&!0!==globalThis[jr("0x282")])&&this.initializeHumanIntegration(e,t),(!0===t[jr("0x274")]&&t.fpDataCookie.apfcTypes[jr("0x27c")](o)||!0===t.dfpIntegrationEnabled&&!0!==globalThis.dfpIntegrationCompleted)&&this[jr("0x283")](e,t)}},{key:jr("0x278"),value:function(e){var t=jr("0x217")!=et(e[jr("0x271")])?0:e[jr("0x271")]
""!==n[jr("0x272")]("df_ts")&&Date[jr("0x7f")]()-Number(n[jr("0x272")](jr("0x273")))>t&&n.deleteItem(jr("0x273"))}},{key:jr("0x27a"),value:function(e){if("number"==typeof e[jr("0x271")]&&e[jr("0x271")]>0){var t=Date[jr("0x7f")](),i=new Date
i[jr("0x284")](t+e.samplingTimeWindowInMillis),n[jr("0x93")]("df_ts",t,i)}}},{key:jr("0x26e"),value:function(e,n){if(null!=n||null!=a(jr("0x285"))){this[jr("0x287")](e,n)
var i=this.reqid,r=this[jr("0x288")],o=this[jr("0x289")]()
return(new t)[jr("0x28a")]((function(t,a){t.reqid=i,t.pageInstance=r,t.fullFeatureCollection=a,l.encryptWithKeyFromDifferentSources(JSON.stringify(t),jr("0x285"),jr("0x28b"),n,o)[jr("0x20")]((function(t){globalThis[jr("0x28c")]=t,!0===a&&s(JSON[jr("0x26b")](t),e[jr("0x28d")],o)}))}),e)}globalThis.triggerApfc=this[jr("0x286")]}},{key:jr("0x27f"),value:function(r,o,a){var c=this.isProd()
return(new t)[jr("0x28a")]((function(t,d){var f
!0===d&&(e[jr("0xd")][jr("0x28e")](t,a),!0===a[jr("0x28f")]&&(globalThis[jr("0x290")]=(f=C(t),u[jr("0x291")](f))),l[jr("0x24a")](JSON.stringify(t),jr("0x285"),"apfcDfPKV")[jr("0x20")]((function(e){if(globalThis.apfcDf=e,!0===a.isSyncEnabledWithHeaders||!0===a.isSyncEnabledWithCb){var t=function(e){var t={}
t[btoa(jr("0x292"))]=e
var i={}
return i.payload=t,i[jr("0x293")]=n[jr("0x294")](),i}(e)
s(JSON[jr("0x26b")](t),r.gloablIntegrationDataCollectionPath,c)}o(i,JSON[jr("0x26b")](e))})),globalThis[jr("0x27e")]=!0)}),r)}},{key:jr("0x283"),value:function(t,i){var r=n[jr("0x294")](),a=this[jr("0x289")]()?jr("0x295"):jr("0x296")
try{if(RegExp("^[\\w-]*$").test(r)){var s=jr("0x297")+r+jr("0x298")+a,c=document[jr("0xef")](jr("0x299"))
c.setAttribute("src",s),c[jr("0x1eb")]("id",jr("0x29a")),c[jr("0x26f")](jr("0x269"),(function(){return window[jr("0x29b")][jr("0x29c")](document)})),document[jr("0x29d")](jr("0x29e"))[0][jr("0x10c")](c)
var l={sessionId:r,instanceId:a}
e[jr("0xd")][jr("0x28e")](l,i),t(o,JSON[jr("0x26b")](l))}else{var u={error:jr("0x29f")+r}
t(o,JSON[jr("0x26b")](u))}}catch(i){var d={error:i}
t(o,JSON.stringify(d))}globalThis[jr("0x2a0")]=!0}},{key:jr("0x2a1"),value:function(t,i){var o=i[jr("0x2a2")],a=Date.now(),s=this[jr("0x289")]()?"PXdOjV695v":jr("0x2a3"),c=n[jr("0x294")](),u=jr("0x2a4")+a+jr("0x2a5")+encodeURIComponent(o)+"&app_id="+s+"&uc=scraping"
l[jr("0x254")](c).then((function(n){""!==(c=n)&&(u+="&d_id="+c)
try{var l=document[jr("0xef")](jr("0x2a6"))
l[jr("0x1eb")]("id","humanThirdPartyIframe"),l[jr("0x1eb")](jr("0x2a7"),u),l[jr("0x1eb")](jr("0x2a8"),jr("0x2a9")),l[jr("0x1eb")](jr("0x2aa"),jr("0x2ab")),l[jr("0xf2")][jr("0x67")]=jr("0x2ac"),l.style[jr("0x66")]=jr("0x2ac"),l[jr("0xf2")][jr("0x2ad")]=jr("0x102"),l[jr("0xf2")][jr("0xf3")]=jr("0x2ae"),l[jr("0xf2")].left=jr("0xf5"),document[jr("0x75")][jr("0x10c")](l)
var d={app_id:s,ts:a,d_id:c,r_id:o,uc:jr("0x2af")}
e[jr("0xd")][jr("0x28e")](d,i),t(r,JSON[jr("0x26b")](d))}catch(e){var f={error:e}
t(r,JSON[jr("0x26b")](f))}})),globalThis[jr("0x282")]=!0}}]),e}()
w[jr("0xd")][jr("0x286")]=function(e){globalThis[jr("0x2b0")]=null,new w(e)},w[jr("0xd")][jr("0x2b1")]=function(e,t){globalThis[jr("0x2b2")]=null,new w({globalIntegration:jr("0x265")},e,t)},w[jr("0xd")][jr("0x2b3")]=function(e,t){if(void 0!==t&&void 0!==e){var n=w[jr("0xd")][jr("0x2b4")]()
!0===t.onlyOnDemandFlow&&null===n||(t.fpDataCookie=n,null!==n&&(t[jr("0x274")]=!0),w[jr("0xd")][jr("0x2b1")](e,t))}},w[jr("0xd")][jr("0x2b4")]=function(){var e=n.getItem(jr("0x2b5"))
if(!e||""===e)return null
var t=(e=atob(e)).split(jr("0x2b6"))
if(t[jr("0x5")]<5)return null
var i={}
return i[jr("0x2b7")]=t[0],i.memberId=t[1],i[jr("0x2b8")]=t[2],i[jr("0x2b9")]=t[3],i[jr("0x27b")]=t[4][jr("0x17")](","),i},w[jr("0xd")].populateFpDataCookie=function(e,t){jr("0x2ba")==et(e)&&"object"==et(t)&&(e[jr("0x25f")]=t[jr("0x280")])},w[jr("0xd")].isProd=function(){var e=location&&location[jr("0xa9")]
return e&&e[jr("0x18")](jr("0x2bb"))>-1&&!e[jr("0x2bc")](jr("0x2bd"))},w[jr("0xd")][jr("0x2be")]=function(e){return e&&0===Object[jr("0x1b")](e).length},w[jr("0xd")][jr("0x2bf")]=function(){var e=[]
return Je(document[jr("0x1c7")](jr("0x2c0"))).forEach((function(t){Je(t[jr("0x29d")](jr("0x2c1")))[jr("0xe")]((function(t){var n=t[jr("0x1c5")]
if(n){var i=(new DOMParser)[jr("0x2c2")](n,jr("0x2c3"))
i&&Je(i[jr("0x1c7")]("bc"))[jr("0xe")]((function(t){e[jr("0x10d")]({src:t.getAttribute(jr("0x2a7")),style:t.getAttribute(jr("0xf2")),class:t[jr("0x2a")]("class"),width:t.getAttribute(jr("0x66")),height:t[jr("0x2a")](jr("0x67"))})}))}}))})),0===e[jr("0x5")]?null:e[0]},w[jr("0xd")][jr("0x287")]=function(e,t){if(null!=e){var n,i,r="bc",o="display:none;",a="1",s="1",c=e[jr("0x2c4")]
if(this[jr("0x2c5")]=null,this[jr("0x288")]=null,null!==(n=this[jr("0x2bf")]())){r=n[jr("0x2c6")],o=n[jr("0xf2")],a=n.width,s=n[jr("0x67")]
var u=new URL(n[jr("0x2a7")])
c=u.protocol+"//"+u.host+u[jr("0xac")],this[jr("0x2c5")]=u[jr("0x2c7")][jr("0x2c8")](jr("0x2c5")),this[jr("0x288")]=u[jr("0x2c7")].get("pageInstance")}else if(void 0!==(i=function(e){var t=arguments[jr("0x5")]>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],i=n?n.querySelector("#"+e):document[jr("0x231")](e)
if(i){var r=i[jr("0x232")][jr("0x233")]
if(t&&i[jr("0x234")][jr("0x10e")](i),r)try{var o=r
return"'"!==o[jr("0x259")](0)&&'"'!==o.charAt(0)||(o=o.substring(1,o.length-1)),JSON[jr("0x26a")](o)}catch(e){return}}}("bc_context")))this[jr("0x2c5")]=void 0===i[jr("0x2c5")]?null:i[jr("0x2c5")],this.pageInstance=i[jr("0x288")]
else{if(void 0===t)return
this[jr("0x288")]=t[jr("0x288")]}this[jr("0x289")]()||(c=c[jr("0x9d")](/\.linkedin\.com/,".linkedin-ei.com")),null===this[jr("0x2c5")]&&(this.reqid=l[jr("0x252")]())
var d=c+"?"+new URLSearchParams({reqid:this[jr("0x2c5")],pageInstance:this.pageInstance,js:"enabled"})[jr("0xa")](),f=document[jr("0x1c7")](jr("0x2c0"))[0]
null==f&&((f=document[jr("0xef")](jr("0xf0"))).setAttribute("id",this[jr("0x2c5")]),document[jr("0x75")][jr("0x10c")](f))
var p=document[jr("0xef")](jr("0x2c9"))
p.src=d,p[jr("0xf2")]=o,p[jr("0x1c6")]=r,p.width=a,p.height=s,f[jr("0x10c")](p)}},jr("0x2ca")!=("undefined"==typeof globalThis?"undefined":et(globalThis))&&jr("0x2ca")!=("undefined"==typeof document?"undefined":et(document))&&jr("0x2ca")!=("undefined"==typeof window?"undefined":et(window))&&(globalThis.triggerDnaApfcEvent=w[jr("0xd")][jr("0x2b1")],globalThis[jr("0x2cb")]=w[jr("0xd")].reentryGlobalIntegrationOnDemand,new w)}()
var Lr=function(){function e(){tt(this,e)}return it(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}(),Ur=function(){function e(t,n,i,r,o,a,s,c,l,u,d){tt(this,e),rt(this,"hostApis",void 0),rt(this,"statics",void 0),rt(this,"options",void 0),rt(this,"allowTimingOrigin",void 0),rt(this,"fireCustomMeasureEvent",void 0),rt(this,"fireResourceLoadEvent",void 0),rt(this,"isTracerEnabled",void 0),rt(this,"responseRleCache",void 0),rt(this,"fireApfcEvent",void 0),rt(this,"abuseDeviceSignalCollectionConfig",void 0),rt(this,"trackingEndpoint",void 0),rt(this,"collectResourceTimings",void 0),rt(this,"collectCdnData",void 0),rt(this,"perfObserver",void 0),rt(this,"renderTimings",new Map),rt(this,"urlToTreeId",new Map),rt(this,"cdnDataProvider",void 0),rt(this,"observables",new ir),rt(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 Pr(t)),this.trackingEndpointPattern=function(e){if(!e)return"/li/track"
try{return new URL(e).pathname}catch(t){return e}}(this.trackingEndpoint)}return it(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(Ar=Ar||t.createElement("a")).href=e,Ar.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:Ir(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e,t,n){var i=this.renderTimings.get(e)
if(i&&(i.renderEnd=i.renderEnd||Ir(this.hostApis.performance,this.allowTimingOrigin),t))return n?this.collectViewLoadEventData(i,n):void ii("ViewLoadEvent",er)}},{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=Br(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,Ji.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($i).forEach((function(t){var n
t in Ki&&void 0!==e[t]&&u.push({resourceProgressType:$i[t],duration:null!==(n=e[t])&&void 0!==n?n:-1})})),l.resourceProgressStates=u
var d={},f=Zi[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),ii("ResourceLoadEvent",e)):ii("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=Rr(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,Br(this.hostApis.performance)),n(r,this.collectAsynchronousData(!0)),r}},{key:"collectAsynchronousData",value:function(e){var t=this,n={cdnData:[],usedCDN:this.extractUsedCDN([])}
if(e){if(this.collectCdnData){var i=this.cdnDataProvider.getPresentData()
n.cdnData=i,n.usedCDN=this.extractUsedCDN(i)}return n}var r=[]
return this.collectCdnData&&r.push(this.cdnDataProvider.getDataWhenReady(this.options["async-plugins-timeout"]).then((function(e){n.cdnData=e,n.usedCDN=t.extractUsedCDN(e)}))),r.length>0?Zn(r,Promise).then((function(){return n})):n}},{key:"triggerDeviceSignalCollection",value:function(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,c=n.isSyncFingerprintingWithHeadersLixEnabled,l=n.isSyncFingerprintingWithCbLixEnabled
if(r||o||i||c||l){var u,d,f={treeId:null!==(u=null===(d=this.statics.treeId)||void 0===d?void 0:d.toString())&&void 0!==u?u:"",humanIntegrationEnabled:r,dfpIntegrationEnabled:o,dnaIntegrationEnabled:i,samplingTimeWindowInMillis:a,onlyOnDemandFlow:t,isSyncEnabledWithHeaders:c,isSyncEnabledWithCb:l};(!t||t&&s||c||l)&&Lr.collectFeatures(f,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=Rr(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"])Un.emit(Pi.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=Cr;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:Nr(this.renderTimings),networkInformationMetrics:Fr(this.hostApis.connection)}
return this.renderTimings.clear(),e}}]),e}()
function Fr(e){return e?{connectionType:e.type&&e.type.toUpperCase()||"UNKNOWN",effectiveType:function(e){switch(e){case"2g":return"TWO_G"
case"3g":return"THREE_G"
case"4g":return"FOUR_G"
default:return"SLOW_2G"}}(e.effectiveType),roundTripTime:e.rtt||-1,downlinkBandwidth:e.downlink||-1,downlinkMaxBandwidth:void 0===e.downlinkMax?-1:e.downlinkMax===1/0?0:e.downlinkMax}:void 0}function Br(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,Ji.forEach((function(e){e in i&&(t[e]=i[e])})),t.navigationType=r.type,t.redirectCount=r.redirectCount):t.navigationTimingApi=!1,t}var Gr=function(){function e(t,n,i){tt(this,e),rt(this,"featureName",void 0),rt(this,"trackingCore",void 0),rt(this,"rumConfig",void 0),rt(this,"observing",!1),rt(this,"basePageTreeId",void 0),rt(this,"startPageInstance",void 0),rt(this,"startMemory",void 0),rt(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=i}return it(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)||Xn(st),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:wr(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}()
rt(Gr,"checkpoints",[1,3,10,30,90,180,300])
var Hr,Vr,qr,Kr,Wr,Yr=it((function e(t,n,i){tt(this,e),rt(this,"webUIFramework",void 0),rt(this,"timeSource",void 0),rt(this,"isSinglePageApp",void 0),rt(this,"appRenderMode",void 0),rt(this,"isAppRenderFailed",void 0),rt(this,"pageLoadMode","INITIAL"),rt(this,"isSSL",void 0),rt(this,"treeId",void 0),rt(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})),zr=function(){function e(t){tt(this,e),rt(this,"isPEMTracerEnabled",void 0),rt(this,"responseContextMap",new Map),rt(this,"resourceLoadEventsMap",new Map),this.isPEMTracerEnabled=t}return it(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 oi((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 oi((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=Xe(e,Me),i=(t.requestTime,t.viewNames),r=t.requestType,o=t.requestTag,a=Xe(t,je)
return n.targetViewNames=i||[],r&&(n.requestType=r),o&&(n.requestTag=o),n.resourceNetworkContext=Ge(Ge({},n.resourceNetworkContext),a),ri(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=Qe(e)
try{for(i.s();!(n=i.n()).done;){var r=n.value
t=[].concat(Je(t),Je(this.flushCacheByUrl(r)))}}catch(e){i.e(e)}finally{i.f()}}var o=this.resourceLoadEventsMap.keys()
if(o){var a,s=Qe(o)
try{for(s.s();!(a=s.n()).done;){var c,l=a.value,u=null===(c=this.resourceLoadEventsMap.get(l))||void 0===c?void 0:c.heapClear()
u&&(t=[].concat(Je(t),Je(u.map((function(e){return e.requestStart,ri(Xe(e,Le))})))))}}catch(e){s.e(e)}finally{s.f()}}return t}},{key:"flushCacheByUrl",value:function(e){var t,n=[]
if(!e)return n
if(!this.isPEMTracerEnabled)return(null===(t=this.resourceLoadEventsMap)||void 0===t||null===(t=t.get(e))||void 0===t||null===(t=t.heapClear())||void 0===t?void 0:t.map((function(e){return e.requestStart,ri(Xe(e,Ue))})))||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}(),Xr=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)}},Qr=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){}},Jr=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)},$r=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},Zr=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)))}},eo=-1,to=function(){return"hidden"===document.visibilityState?0:1/0},no=function(){Jr((function(e){var t=e.timeStamp
eo=t}),!0)},io=function(){return eo<0&&(eo=to(),no(),$r((function(){setTimeout((function(){eo=to(),no()}),0)}))),{get firstHiddenTime(){return eo}}},ro=!1,oo=-1,ao=function(e,t){ro||(function(e,t){var n,i=io(),r=Xr("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:Qr("paint",o);(a||s)&&(n=Zr(e,r,t),a&&o(a),$r((function(i){r=Xr("FCP"),n=Zr(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,n(!0)}))}))})))}((function(e){oo=e.value})),ro=!0)
var n,i=function(t){oo>-1&&e(t)},r=Xr("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=Qr("layout-shift",s)
c&&(n=Zr(i,r,t),Jr((function(){c.takeRecords().map(s),n(!0)})),$r((function(){o=0,oo=-1,r=Xr("CLS",0),n=Zr(i,r,t)})))},so={passive:!0,capture:!0},co=new Date,lo=function(e,t){Hr||(Hr=t,Vr=e,qr=new Date,po(removeEventListener),uo())},uo=function(){if(Vr>=0&&Vr<qr-co){var e={entryType:"first-input",name:Hr.type,target:Hr.target,cancelable:Hr.cancelable,startTime:Hr.timeStamp,processingStart:Hr.timeStamp+Vr}
Kr.forEach((function(t){t(e)})),Kr=[]}},fo=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(){lo(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,so),removeEventListener("pointercancel",i,so)}
addEventListener("pointerup",n,so),addEventListener("pointercancel",i,so)}(t,e):lo(t,e)}},po=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,fo,so)}))},ho=function(e,t){var n,i=io(),r=Xr("FID"),o=function(e){e.startTime<i.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},a=Qr("first-input",o)
n=Zr(e,r,t),a&&Jr((function(){a.takeRecords().map(o),a.disconnect()}),!0),a&&$r((function(){var i
r=Xr("FID"),n=Zr(e,r,t),Kr=[],Vr=-1,Hr=null,po(addEventListener),i=o,Kr.push(i),uo()}))},go={},mo=function(e,t){var n,i=io(),r=Xr("LCP"),o=function(e){var t=e.startTime
t<i.firstHiddenTime&&(r.value=t,r.entries.push(e),n())},a=Qr("largest-contentful-paint",o)
if(a){n=Zr(e,r,t)
var s=function(){go[r.id]||(a.takeRecords().map(o),a.disconnect(),go[r.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,s,{once:!0,capture:!0})})),Jr(s,!0),$r((function(i){r=Xr("LCP"),n=Zr(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,go[r.id]=!0,n(!0)}))}))}))}},vo=["LCP","FID","CLS"],yo={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},bo={},Eo=function(){var e
if(!pi)return""
var t=window.performance,n=void 0
if("function"==typeof(null==t?void 0:t.getEntriesByType)){var i,r=null===(i=window.performance)||void 0===i?void 0:i.getEntriesByType("navigation");(null==r?void 0:r.length)>0&&(n=r[0])}return(null===(e=n)||void 0===e?void 0:e.name)||window.location.href}(),_o=!1,ko=new Set,To={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"}
function So(){var e=!0===window.__test__resetWebVitalsState
if(!_o||e){e&&(ko=new Set),vo.forEach(Ao)
var t=Symbol()
Wr=t,[mo,ho,ao].forEach((function(e){return e(Co.bind(null,t),!0)})),[mo,ho,ao].forEach((function(e){return e(Io.bind(null,t))})),_o=!0}}function Ao(e){bo[e]={name:e,verboseName:yo[e]||e,value:-1,updateHistory:[]}
var t=To[e]
"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(bo[e].value=-2)}function Co(e,t){if(e===Wr){var n=bo[t.name],i=wr()
n&&(n.updateHistory.push({time:i,data:t}),n.value=t.value),ko.forEach((function(e){return e(t,i,!1)}))}}function Io(e,t){e===Wr&&ko.forEach((function(e){return e(t,wr(),!0)}))}var wo,xo=function(){function e(t,n){var i=this
tt(this,e),rt(this,"basePageTreeId",void 0),rt(this,"basePageKey",void 0),rt(this,"observing",!1),rt(this,"appContextMap",new Map),rt(this,"rumConfig",void 0),rt(this,"trackingCore",void 0),rt(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 it(e,[{key:"startObserving",value:function(){var e,t,n=this
So(),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",vo.forEach((function(e){var t;-2===(null===(t=bo[e])||void 0===t?void 0:t.value)&&n.reportMetric(e)})),t=this.onMetricUpdate,ko.add(t))}},{key:"stopObserving",value:function(){var e
this.observing=!1,e=this.onMetricUpdate,ko.delete(e)}},{key:"reportMetric",value:function(e){var t=bo[e]
if(t){var n={name:yo[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:Eo},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:xr(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:xr(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":xr(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]}
if(this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"ClientPerfMetricsEvent"},r),this.rumConfig["enable-otel"])if("LCP"===e){var o={value:n.longValue,metadata:i}
Un.emit(Pi.INTERNAL_OTEL_LARGEST_CONTENTFUL_PAINT,o)}else if("CLS"===e){var a={value:n.doubleValue,metadata:i}
Un.emit(Pi.INTERNAL_OTEL_CUMULATIVE_LAYOUT_SHIFT,a)}else if("FID"===e){var s={value:n.longValue,metadata:i}
Un.emit(Pi.INTERNAL_OTEL_FIRST_INPUT_DELAY,s)}}}}]),e}(),Ro=function(){function e(t){tt(this,e),rt(this,"_callTreeId",void 0),rt(this,"_fabric",void 0),rt(this,"_msEdgeRef",void 0),rt(this,"_pointOfPresenceId",void 0),rt(this,"_responseMetadata",void 0),rt(this,"_contentType",void 0),rt(this,"_cdnCacheMetadata",void 0),rt(this,"_downstreamAvailability",void 0)
var n=new Map
null==t||t.forEach((function(e,t){n.set(t.toLowerCase(),e)})),this._callTreeId=n.get("x-li-uuid")||null,this._pointOfPresenceId=n.get("x-li-pop")||null,this._msEdgeRef=n.get("x-msedge-ref")||null,this._fabric=n.get("x-li-fabric")||null,this._responseMetadata=n.get("x-li-pem-resp-meta")||null,this._contentType=n.get("content-type")||null,this._cdnCacheMetadata=n.get("x-cache")||null,this._downstreamAvailability=function(e){if(null==e)return 1
var t,n=Qe(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 it(e,[{key:"callTreeId",get:function(){return this._callTreeId}},{key:"pointOfPresenceId",get:function(){return this._pointOfPresenceId}},{key:"microsoftEdgeReference",get:function(){return this._msEdgeRef}},{key:"fabric",get:function(){return this._fabric}},{key:"contentType",get:function(){return this._contentType}},{key:"cdnCacheMetadata",get:function(){return this._cdnCacheMetadata}},{key:"responseMetadata",get:function(){return this._responseMetadata}},{key:"downstreamAvailability",get:function(){return this._downstreamAvailability}},{key:"hasAnyLinkedInHeaders",value:function(){return!!(this._fabric||this._pointOfPresenceId||this._msEdgeRef||this._callTreeId)}}]),e}()
!function(e){e.CLIENT_TIMEOUT="CLIENT_TIMEOUT",e.CLIENT_ABORTED="CLIENT_ABORTED",e.SERVER_ERROR="SERVER_ERROR",e.NETWORK_ERROR="NETWORK_ERROR",e.UNCLASSIFIED="UNCLASSIFIED",e.TOO_MANY_REQUESTS="TOO_MANY_REQUESTS",e.CLIENT_ERROR="CLIENT_ERROR",e.GRAPHQL_FULL_FAILURE="GRAPHQL_FULL_FAILURE",e.BLOCKED_BY_CLIENT_PROXY="BLOCKED_BY_CLIENT_PROXY",e.DOWNSTREAM_GRACEFUL_DEGRADATION="DOWNSTREAM_GRACEFUL_DEGRADATION",e.TRAFFIC_AFD_TO_LI_POP_ERROR="TRAFFIC_AFD_TO_LI_POP_ERROR",e.TRAFFIC_LI_POP_TO_DC_ERROR="TRAFFIC_LI_POP_TO_DC_ERROR"}(wo||(wo={})),it((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,A,C,I,w,x,R,N,O,D=this
tt(this,e),rt(this,"core",void 0),rt(this,"config",void 0),rt(this,"collector",void 0),rt(this,"boomerangStart",-1),rt(this,"webVitalsObserver",void 0),rt(this,"appMemoryObserver",void 0),rt(this,"pageMemoryObserver",void 0),rt(this,"liveTokens",new Set),rt(this,"stateWM",new WeakMap),rt(this,"activeToken",void 0),rt(this,"isInitial",void 0),rt(this,"shouldTrackCustomMeasureEvent",void 0),rt(this,"pageLoadId",void 0),rt(this,"initialResourcesEvents",[]),rt(this,"initialCustomMeasureEvents",[]),rt(this,"responseRleCache",void 0),rt(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),rt(this,"fireApfcEventBound",this.fireApfcEvent.bind(this)),rt(this,"isTracerEnabled",void 0),rt(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({},Qi),n)
var P="enabled"===(null===(r=(o=i.host).__getLixTreatment)||void 0===r?void 0:r.call(o,"pemberly.tracking.time-origin-epoch-time")),M={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===_?void 0:_.call(k,"pemberly.web.ondemand")),isSyncFingerprintingWithHeadersLixEnabled:"enabled"===(null===(T=(S=i.host).__getLixTreatment)||void 0===T?void 0:T.call(S,"sync.apfc.headers"))||"enabled"===(null===(A=i.host.abuseDeviceSignalCollectionConfig)||void 0===A?void 0:A.syncFingerprintingEnabledWithHeadersLixTreatment),isSyncFingerprintingWithCbLixEnabled:"enabled"===(null===(C=(I=i.host).__getLixTreatment)||void 0===C?void 0:C.call(I,"sync.apfc.couchbase"))||"enabled"===(null===(w=i.host.abuseDeviceSignalCollectionConfig)||void 0===w?void 0:w.syncFingerprintingEnabledWithCbLixTreatment)},j=null===(x=(R=i.host).__getLixTreatment)||void 0===x?void 0:x.call(R,"pemberly.tracking.generic-tracers"),L=!!j&&nr.test(j)
this.isTracerEnabled=L||this.config["enable-tracking-3"]
var U="enabled"===(null===(N=(O=i.host).__getLixTreatment)||void 0===N?void 0:N.call(O,"pemberly.tracking.pem-tracers"))
this.isPEMTracerEnabled=U||this.config["enable-pem-tracking-3"],this.responseRleCache=new zr(this.isPEMTracerEnabled),this.collector=new Ur(i.host.api,new Yr(t,this.config,i.host),this.config,P,(function(e){return D.fireCustomMeasureEvent(e)}),(function(e){return D.fireResourceLoadEvent(e,D.activeToken)}),this.isTracerEnabled,this.responseRleCache,this.fireApfcEventBound,M,i.host.endpoint),this.collector.startObserving(),Un.before(On,this.beforeHideHandlerBound)}),[{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:Ir(this.core.host.api.performance,o),pageKey:e}),this.firePageLoadStartEvent(r)):this.stateWM.set(r,{isInitial:this.isInitial,startTime:Ir(this.core.host.api.performance,o)}),this.config["enable-memory-measurement"]&&(null===(i=this.pageMemoryObserver)||void 0===i||i.stopObserving(),this.pageMemoryObserver=new Gr("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new Gr("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),r}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new xo(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=Ir(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 ii("rum-end",tr)}},{key:"onDataResponse",value:function(e,t,n,i,r,o,a){var s=function(e,t,n,i,r){var o=new Ro(i),a=function(e,t,n){if(t){if(429===t||999===t)return wo.TOO_MANY_REQUESTS
if(e&&!e.hasAnyLinkedInHeaders()&&t&&t>=400&&t<600)return wo.BLOCKED_BY_CLIENT_PROXY
if((i=t)>=400&&i<500)return wo.CLIENT_ERROR
if(function(e){return e>=500&&e<600}(t))return function(e){if(e){if(e.fabric)return wo.SERVER_ERROR
if(e.pointOfPresenceId)return wo.TRAFFIC_LI_POP_TO_DC_ERROR
if(e.microsoftEdgeReference)return wo.TRAFFIC_AFD_TO_LI_POP_ERROR}return wo.SERVER_ERROR}(e)
if(function(e,t){return!!(e>=200&&e<300&&t&&t.downstreamAvailability<1)}(t,e))return wo.DOWNSTREAM_GRACEFUL_DEGRADATION
if(!n)return null}var i
if(n instanceof Error){if("AbortError"===n.name)return wo.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 wo.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 wo.CLIENT_TIMEOUT
if(0===n.status&&"abort"===n.statusText)return wo.CLIENT_ABORTED
if("readyState"in n&&0===n.readyState)return wo.NETWORK_ERROR}return wo.UNCLASSIFIED}(o,n,r),s=null
return a&&(s={errorType:a},a===wo.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))})),ii("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}}(t,n,i,r,o)
if(null!=a&&a.serverSideResponse){var c=this.generateResourceLoadEventFromResponseContext(e,Ge({nextHopProtocol:Vi.UNKNOWN},s))
this.fireResourceLoadEvent(c,this.activeToken)}else this.provisionNetworkResponse(e,s)}},{key:"onOopsPage",value:function(e,t){ii("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=Yn(),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 ii("PageLoadStartEvent",tr)}},{key:"destroy",value:function(){var e,t,n
Un.offBefore(On,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:ii("PageLoadEndEvent",er),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=function(e){var t,n={issueTime:0,browserId:""},i=Qe(e)
try{for(i.s();!(t=i.n()).done;){var r=t.value.split("=")
if(r.length>1&&"bscookie"===r[0]){var o=decodeURIComponent(r[1]),a=Number(o.substring(4,18)),s=isNaN(a)?0:a,c=o.substring(18,50)
return n.browserId=c,n.issueTime=s,n}}}catch(e){i.e(e)}finally{i.f()}return n}(i)}catch(e){}var o={type:e,bsCookieInfo:r,payload:t}
this.core.fireEvent({appId:this.config["app-id"],eventName:"ApfcEvent"},o)}},{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:Ge({},Xe(t,Fe)),resourceProgressStates:[],timeOrigin:n}
return r&&(o.loadType=r),o}},{key:"triggerDeviceSignalCollection",value:function(e){var t=e.onlyTriggerOnDemandFlow
this.collector.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:t})}}])
var No,Oo="undefined"!=typeof window&&"undefined"!=typeof performance,Do="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG")
it((function e(t,n){tt(this,e),rt(this,"trackingCore",void 0),rt(this,"endPageInstance",void 0),rt(this,"startPageInstance",void 0),rt(this,"featureIdentifier",void 0),rt(this,"marks",[]),rt(this,"spans",[]),rt(this,"spanStarts",new Map),rt(this,"started",!1),rt(this,"ended",!1),rt(this,"featureKey",void 0),rt(this,"productName",void 0),rt(this,"flushOnEnd",void 0),rt(this,"basePageTreeId",void 0),rt(this,"debounceFlush",void 0),rt(this,"disableAutoFlush",void 0),rt(this,"isCanceled",!1),rt(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(Oo){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(Oo){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){Oo&&(this.marks.push({name:e,startTime:wr()}),Do&&(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){Oo&&(this.spanStarts.set(e,wr()),Do&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(Oo&&this.spanStarts.has(e)){var n=this.spanStarts.get(e),i=t||e
this.spans.push({name:i,startTime:n,duration:wr()-n}),Do&&(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){Oo&&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 wr()}},{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||Xn(st),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(Oo){if(this.isCanceled)throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" has been canceled'))
if(!this.isClosed)throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" is still open'))}}}]),function(e){e[e.BATCH=0]="BATCH",e[e.FLUSH_ALL=1]="FLUSH_ALL"}(No||(No={}))
const Po=new Map
function Mo(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 jo(e,t){let n
return n=e?Mo(!0,t):"query"===t.kind||"mutation"===t.kind?Mo(!1,t,{$debug:{name:t.name,kind:t.kind,queryId:t.id,querySource:t.source}}):Mo(!1,t,{$debug:{name:t.name,kind:t.kind}}),Po.set(n,t),n}jo(!0,{kind:"query",id:"messengerConversations.5764fd23648159f8b6c109d6929c5912",typeName:"com.linkedin.a48779e96d56416b455684d54ca0a605",name:"find-conversations-by-category"}),jo(!0,{kind:"query",id:"messengerConversations.bbf8fb8117487d8f362411591aa04297",typeName:"com.linkedin.e8f9114c687e26ae0f6bb2f3aed7022e",name:"find-conversations-by-category-with-draft-messages"}),jo(!0,{kind:"query",id:"messengerConversations.45338e053010d1c19147f92de6de3ae6",typeName:"com.linkedin.d1fb3489010b7b4592896e7b73531a11",name:"find-conversations-by-category-v2"}),jo(!0,{kind:"query",id:"messengerConversations.44030325d8f59d8cebbb804f16d6b0a3",typeName:"com.linkedin.637753efb2e5d51c7275035cac9b4c5f",name:"find-conversations-by-recipients"}),jo(!0,{kind:"query",id:"messengerConversations.aa65e6cc6baba93d9eeb446e6f1e1fa4",typeName:"com.linkedin.acb9c77ea9ee4824540470a52e862cb6",name:"find-conversations-by-recipients-with-draft-messages"}),jo(!0,{kind:"query",id:"messengerConversations.786d58e5dbb03604d8f4787d188914a5",typeName:"com.linkedin.c3d42ec0291728dbe7f3aced6f0826e5",name:"find-conversations-by-search-criteria"}),jo(!0,{kind:"query",id:"messengerConversations.3c2b4bf09da777f77243c2d1e4241efe",typeName:"com.linkedin.2ea17ec4179cae6d69aea80ad2907b8e",name:"find-conversations-by-search-criteria-with-draft-messages"}),jo(!0,{kind:"query",id:"messengerConversations.eda3d96168199a222c789b06375d6b71",typeName:"com.linkedin.47459727fe9dc4c6dd28af91d35c3bea",name:"get-conversation-by-id"}),jo(!0,{kind:"query",id:"messengerMessages.bd04c119de7c294fb05082ea1f79c904",typeName:"com.linkedin.5ead02a2479291ebdce3f63ac66fbe93",name:"get-messages-by-conversation"}),jo(!0,{kind:"query",id:"messengerMessages.90abe2bc64df3bc3e1323a1479989b49",typeName:"com.linkedin.f06a0d9d67201ccfd952b77289ff240e",name:"get-messages-by-timestamp"}),jo(!0,{kind:"query",id:"messengerConversations.e4a6422e4307f129438f708c00146863",typeName:"com.linkedin.2a7f21c8d98d18e3a6c802f0dd8d222d",name:"get-conversations-by-ids"}),jo(!0,{kind:"query",id:"messengerConversationDrafts.b937ccb44048d8fe187413adc473ea2c",typeName:"com.linkedin.27e9b28448d52f2ed882cf44acde8e93",name:"get-conversation-drafts-by-id"}),jo(!0,{kind:"query",id:"messengerConversations.465e1c29fccec848f4858e648caf7993",typeName:"com.linkedin.5f8e1fc75eaa830e76c6ee84eb4d68f1",name:"get-conversations-by-ids-with-draft-messages"}),jo(!0,{kind:"query",id:"messengerMessages.a1b0330b9c34bd003c0043ecc898f6d5",typeName:"com.linkedin.9103982cbb84a6713a12118e18d0aede",name:"get-messages"}),jo(!0,{kind:"query",id:"messengerMessageDrafts.096def805d9ee231ae9995cf1e58422e",typeName:"com.linkedin.6f29433b666b615cc843d0c53e498d90",name:"get-message-draft"}),jo(!0,{kind:"query",id:"messengerMailboxCounts.fc528a5a81a76dff212a4a3d2d48e84b",typeName:"com.linkedin.7455e0e579fcb3a34f96eb0eefe7a411",name:"get-mailbox-unreadcounts"}),jo(!0,{kind:"query",id:"messengerQuickReplies.4338d226319203b5b08920ab7621fa45",typeName:"com.linkedin.4c7816368899aefc0404a81a21b89aad",name:"get-quick-replies-by-conversation"}),jo(!0,{kind:"query",id:"messengerMessagingParticipants.78d3382cd5f9cc5164c551268467dee0",typeName:"com.linkedin.17d2b5b00f250b93fa250e00473c98a2",name:"get-reactors-by-message-and-emoji"}),jo(!0,{kind:"query",id:"messengerSeenReceipts.2a64b8e3dacc77e4fe0737d1197c2e83",typeName:"com.linkedin.33851ce67c1a444c09e057014b5c4d81",name:"get-seen-receipts-by-conversation"}),jo(!0,{kind:"query",id:"messengerConversations.79f5a7753e548d86a69eadd8c64b83e0",typeName:"com.linkedin.bc13e1b1426cc03e36eab503d342cabe",name:"initial-sync-conversations"}),jo(!0,{kind:"query",id:"messengerConversations.5339eec8d009ca8100699a59afc3b00d",typeName:"com.linkedin.32b55b4f3ec7108778d6b970a11c60bb",name:"initial-sync-conversations-with-draft-messages"}),jo(!0,{kind:"query",id:"messengerConversations.33c5bfbf15b112da638fee15f77f5e33",typeName:"com.linkedin.2a25dae6962f40be897d5ffe00289c5c",name:"mark-all-conversations-as-read"}),jo(!0,{kind:"query",id:"messengerMessageDrafts.5d3cf7b2a2b3552a624725e5316d3799",typeName:"com.linkedin.0744c9008c1be0c2e872c8b3c1f08b6b",name:"message-draft-by-conversation-batch"}),jo(!0,{kind:"query",id:"messengerConversations.1845647e4c64f196c7bc5c586b496ed2",typeName:"com.linkedin.13baefbc2d95f2e6498312456b544fc4",name:"sync-conversations"}),jo(!0,{kind:"query",id:"messengerMessages.455dde239612d966346c1d1c4352f648",typeName:"com.linkedin.c38c518a13ae3dfabbd000dba2c1323a",name:"sync-messages"}),jo(!0,{kind:"query",id:"messengerMessages.dd1bcbce39e012291b6ef6d875f0c42b",typeName:"com.linkedin.d517c530e9e9e6efa128b8e0e66d8226",name:"sync-messages-by-convo-id-in-batch"}),jo(!0,{kind:"query",id:"messengerMailboxRealtimeSubscriptionAuthorizationTokens.1a3b0efc0a0a2c24c23367b5f8a25e62",typeName:"com.linkedin.606462b788cb71b5e1a280f01897a453",name:"realtime-subscription-auth-tokens"}),jo(!0,{kind:"mutation",id:"messengerMessageDrafts.2cf9ab96f9203dcfb41c51cc8a81d024",typeName:"com.linkedin.755dfb6105c9f45ad1ddc0ab8f011f1c",name:"create-message-draft"}),jo(!0,{kind:"query",id:"messengerConversationDrafts.81e7667d4dba5c5ef30c9fa222f75466",typeName:"com.linkedin.7fc0da333aea2c9354131839f14b2f90",name:"find-conversation-drafts-by-recipients"}),jo(!0,{kind:"query",id:"messengerMessageDrafts.610f9f61cc614f0081560e7faebbcc89",typeName:"com.linkedin.f40d5176dd6d2c81ad2a5c8194778353",name:"get-message-drafts-by-mailbox"})
var Lo,Uo=function(){return qn()}
Lo=Symbol.iterator
var Fo=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:Lo,value:function(){return this}},{key:"map",value:function(e){return Array.from(this,e)}},{key:"updateAny",value:function(t,n){return new e(U(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))}}))}(Y,Se(this._entityUrnIndex,this._clientIdIndex))).map((function(e){return n._clientIdIndex.has(e.clientId)?r(r({},e),{},{clientId:Uo()}):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}(),Bo=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:Uo(),content:null!=n?n:{text:"",attributes:[]},lastEditedAt:u,optionalSendData:null!=i?i:{renderContent:[]},senderUrn:e,status:t,subject:o},s&&{entityUrn:s})},Go=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 Ho=Symbol.for("_DATA_EDEN_TRACKING_INFO_PER_FETCH");(()=>{let e=globalThis,t=e[Ho]
t||(t=e[Ho]=new WeakMap)})()
var Vo={exports:{}},qo="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)
if(qo){var Ko=new Uint8Array(16)
Vo.exports=function(){return qo(Ko),Ko}}else{var Wo=new Array(16)
Vo.exports=function(){for(var e,t=0;t<16;t++)!(3&t)&&(e=4294967296*Math.random()),Wo[t]=e>>>((3&t)<<3)&255
return Wo}}for(var Yo=Vo.exports,zo=[],Xo=0;Xo<256;++Xo)zo[Xo]=(Xo+256).toString(16).substr(1)
var Qo,Jo,$o=function(e,t){var n=t||0,i=zo
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("")},Zo=Yo,ea=$o,ta=0,na=0,ia=Yo,ra=$o,oa=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||ia)()
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||ra(r)},aa=oa
aa.v1=function(e,t,n){var i=t&&n||0,r=t||[],o=(e=e||{}).node||Qo,a=void 0!==e.clockseq?e.clockseq:Jo
if(null==o||null==a){var s=Zo()
null==o&&(o=Qo=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=Jo=16383&(s[6]<<8|s[7]))}var c=void 0!==e.msecs?e.msecs:(new Date).getTime(),l=void 0!==e.nsecs?e.nsecs:na+1,u=c-ta+(l-na)/1e4
if(u<0&&void 0===e.clockseq&&(a=a+1&16383),(u<0||c>ta)&&void 0===e.nsecs&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")
ta=c,na=l,Jo=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||ea(r)},aa.v4=oa
var sa=aa
const ca="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions"
class la{constructor(e,t){this._collectedFeatureMetrics=e,this._fireEventCallback=t}}class ua extends la{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 da{constructor(e){this._featureCallCounts=new Map,this._pageInstance=e}get pageInstance(){return this._pageInstance}get featureCallCounts(){return this._featureCallCounts}}class fa{constructor(e){this.featureMetricIdentifier=e}}function pa(e){return JSON.stringify(e,Object.keys(e).sort())}class ha extends da{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=pa(e)
if(this.featureCallCounts.has(n))t(this.featureCallCounts.get(n))
else{const i=new ga(e)
t(i),this.featureCallCounts.set(n,i)}}}class ga extends fa{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 ma{flushMetrics(){const e=[...this.metrics.values()]
return this.metrics=new Map,e}}class va extends ma{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=pa(e)
if(this.metrics.has(n))t(this.metrics.get(n))
else{const i=new ha(e)
t(i),this.metrics.set(n,i)}}}var ya
!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"}(ya||(ya={}))
const ba=new Set(Object.values(ya))
class Ea extends Error{constructor(e){super(e),Object.setPrototypeOf(this,Ea.prototype)}}function _a(e){return 0===e.length||!e.trim()}function ka(e){if("string"!=typeof e)throw new Ea(`The product name must be a string. ${ca}.`)
if(_a(e))throw new Ea(`No product name was specified. Please configure a defaultProductName or specify it per instrumented API call. ${ca}.`)
if(/[^a-zA-Z0-9-_ \\/]/.test(e))throw new Ea(`Product name '${e}' can only contain alphanumeric, underscores (_), spaces ( ), dashes (-) and forward slashes (/). ${ca}.`)
return e}function Ta(e){if("string"!=typeof e)throw new Ea(`Keys must be strings. ${ca}.`)
if(_a(e))throw new Ea(`Keys should not be blank. ${ca}.`)
if(/[^a-z0-9-]/.test(e))throw new Ea(`'${e}' can only contain lowercase alphanumeric characters and dashes (-). ${ca}.`)
return e}class Sa{constructor(e,t,n){var i,r,o
if(this._shouldEnablePerformanceMeasurement=!1,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._featureKey=Ta(e),this._defaultDegradationKey=Ta(t),!n)return this._additionalDegradedResponseCodes=[],this._nonDegradedResponseCodes=[],void(this._degradationKeyOverrides=[])
if("object"!=typeof n)throw new Ea(`DegradationTrackingMetadata options should be an object. ${ca}.`)
const a=n.productName
a&&(this._productName=ka(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 Ea(`Please only specify positive integer response codes between 1 and 999 for the ${t} option. ${e} was specified. ${ca}.`)
var n
if(429===e||999===e)throw new Ea(`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===ya.NonDegradedResponseCodes&&e>=400&&e<500)throw new Ea(`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 ${ya.AdditionalDegradedResponseCodes} option. Please remove ${e} from the ${ya.NonDegradedResponseCodes} option. ${ca}.`)}
if(void 0!==e&&!Array.isArray(e))throw new Ea(`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 ${ya.NonDegradedResponseCodes} option. ${ca}.`)
if(void 0!==t&&!Array.isArray(t))throw new Ea(`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 ${ya.AdditionalDegradedResponseCodes} option. ${ca}.`)
null==e||e.forEach((e=>n(e,ya.NonDegradedResponseCodes))),null==t||t.forEach((e=>n(e,ya.AdditionalDegradedResponseCodes)))
const i=new Set(t),r=new Set(e)
if([...i].some((e=>r.has(e))))throw new Ea(`Response codes can't be both degraded and non-degraded. Please ensure that your additionalDegradedResponseCodes and nonDegradedResponseCodes don't have any overlapping response codes. ${ca}.`)}(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(!ba.has(e))throw new Ea(`An unsupported degradation tracking option '${e}' was provided. Please fix or remove it. ${ca}`)}))}(n)}static isDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(Sa.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 Aa{constructor(e){this._degradationTrackingMetadata=e,this._featureMetricStore=new va,this._lastRequestMetricStore=new va,this._requestsMade=0,this._trackingId=sa.v4()}static isRetryableDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(Aa.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 Ca extends Sa{static isFailureTrackingMetadata(e){return"object"==typeof e&&(null==e?void 0:e.constructor.name)===Ca.name}}class Ia{constructor(e,t){if(this._additionalDegradedResponseCodes=new Set,this._degradationKeyByResponseCode=new Map,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._retryableTrackingMetadata=null,!Aa.isRetryableDegradationTrackingMetadata(e)&&!Sa.isDegradationTrackingMetadata(e)&&!Ca.isFailureTrackingMetadata(e))throw new Ea("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 Ea("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=Sa.isDegradationTrackingMetadata(e)?e:void 0
Aa.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 Ea(`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. ${ca}.`)
this._additionalDegradedResponseCodes.add(e)}))}initializeDegradationKeyOverrides(e){e.forEach((e=>{if(!e.responseCodesToOverride||!e.degradationKey||!Array.isArray(e.responseCodesToOverride)||"string"!=typeof e.degradationKey)throw new Ea(`Degradation key overrides must consist of an array of responseCodesToOverride and a string degradationKey. ${ca}.`)
new Set(e.responseCodesToOverride).forEach((t=>{if(!this.canResponseCodeCountAgainstAvailability(t))throw new Ea(`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 wa{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 xa{constructor(e,t,n,i){this._responseCode=e||null,this._parsedResponseHeaders=t?new wa(t):new wa,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 Ra="undefined"==typeof FastBoot
class Na{constructor(e,t,n){this._featureMetricStore=new va,this._visibilityListener=()=>{"hidden"===document.visibilityState&&this._metricSender.produceMetricEvent(!0)},this._defaultProductName=e,this._fireEventCallback=t,this._jetErrorCallback=n,this._metricSender=new ua(this._featureMetricStore,t),Ra&&(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 Na.startRetryFlow(e)}static startRetryFlow(e){return new Aa(e)}completeRetryFlow(e){if(!Aa.isRetryableDegradationTrackingMetadata(e))throw new Ea("retryFlowMetadata must be an instance of RetryableDegradationTrackingMetadata")
e.flushMetricStoreToServiceStore(this._featureMetricStore)}_trackResponse(e,t,n,i,r,o,a){const s=new xa(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),Aa.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 Ea(`Please specify a non-empty array of degradation tracking metadata. ${ca}.`)
const t=new Set
return e.map((e=>{if(!Sa.isDegradationTrackingMetadata(e)&&!Aa.isRetryableDegradationTrackingMetadata(e))throw new Ea(`Please use DegradationTrackingMetadata or RetryableDegradationTrackingMetadata to specify the degradations. ${ca}.`)
const n=ka(e.productName||this._defaultProductName),i=`${n}!!${e.featureKey}`
if(t.has(i))throw new Ea("More than one degradation tracking metadata has the same productName/featureKey combination. Please merge them together")
return t.add(i),new Ia(e,n)}))}_getAndValidateUrlEntityIDs(e){if(!Array.isArray(e))throw new Ea(`Please specify the queried IDs to remove from the request URL, or use an empty array if there are none. ${ca}.`)
return e}}var Oa=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 Na(e,(i=t,function(e,t,n,r){i(e,t)}),null!=n?n:Oa)),this.instance}},{key:"resetInstance",value:function(){this.instance=null}}]),e}(),"instance",null)
var Da=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))},Pa=function(e,t){if(!t||!G(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}))},Ma=function(e,t){var n=m(Ie(t),2),i=n[0],r=n[1]
return e.filter((function(e){return ge(e)?!i.includes(e.conversationUrn):!r.includes(e.messageUrn)}))},ja=function(e,t,n){var i=[]
return t.length&&(i=function(e,t){var n=function(e,t){var n=m(Ie(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 Ma(t,e).map((function(e){return r(r({},e),{},{retryCount:0})}))}(e,t)
return[].concat(v(n),v(i))}(e,t)),n.length&&(i=Ma(i,n)),i},La=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:j.INIT}))throw new Error(P(12))
if(void 0===n(void 0,{type:j.PROBE_UNKNOWN_ACTION()}))throw new Error(P(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 X(e,t)}),t)
case"CONVERT_DRAFT_CONVERSATION":return X(t,n.payload.conversationId)
case"ADD_DRAFT_CONVERSATION":return z(t,n.payload.draftConversation.clientId,n.payload.draftConversation)
case"ADD_DRAFT_CONVERSATIONS":return n.payload.draftConversation.reduce((function(e,t){return z(e,t.clientId,t)}),t)
case"ADD_NEW_MESSAGE_BY_ID":var i=t.get(n.payload.conversationId)
return i?z(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 z(t,n.payload.conversationId,r(r({},o),{},{messages:c,draftMessage:s?Go(s):Bo(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 z(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?z(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?z(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){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(!t){if(Array.isArray(e)||(t=y(e))){t&&(e=t)
var n=0,i=function(){}
return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1
return{s:function(){t=t.call(e)},n:function(){var e=t.next()
return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==t.return||t.return()}finally{if(a)throw r}}}}((e=h,Object.entries(e)))
try{for(b.s();!(g=b.n()).done;){var E=m(g.value,2),_=E[0],k=E[1],T=t.get(_)
if(T){var S=r(r({},T),k)
v=z(v,_,S)}}}catch(e){b.e(e)}finally{b.f()}return v}return t
case"UPDATE_DRAFT_CONVERSATION_SENDING_STATUS":var A=t.get(n.payload.conversationId)
return A?z(t,n.payload.conversationId,r(r({},A),{},{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(G(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=G(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]:we(),n=arguments.length>1?arguments[1]:void 0
switch(n.type){case"DECORATE_CONVERSATIONS":return Ne.fromConversationArray(t.map((function(e){return r(r({},e),{},{additionalData:n.payload.data[e.clientId]||e.additionalData})})))
case"DECORATE_ALL_MESSAGES":return Ne.fromConversationArray(t.map((function(e){return r(r({},e),{},{messages:Da(e.messages,n.payload.data)})})))
case"DECORATE_MESSAGES":return t.updateItem(de(n.payload.conversationUrn),(function(e){return r(r({},e),{},{messages:Da(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:Ae(e,e.quickReplies,n.payload.message)})}))
case"UPDATE_MESSAGES":var i=n.payload.conversationUrn,o=n.payload.messageUpdateMap
if(!i){var a=G(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=G(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:Ae(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:Pa(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?Go(i):Bo(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 Fo(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:Bo(t.senderUrn,"Local")})}))
case"REALTIME_TYPING_ON":return t.updateItem(de(n.payload.conversationUrn),(function(e){return r(r({},e),{},{typingUrns:Q(e.typingUrns,n.payload.typingUrn)})}))
case"REALTIME_TYPING_OFF":return t.updateItem(de(n.payload.conversationUrn),(function(e){return r(r({},e),{},{typingUrns:J(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:J(e.typingUrns,h.senderUrn),quickReplies:Ae(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:J(e.typingUrns,t.senderUrn),quickReplies:Ae(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(L(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 ke(e,n.payload.conversationUpdate)}))
case"UPDATE_CONVERSATIONS_BY_URN":return t.updateAny(fe(G(n.payload.convoStatusUpdateMap)),(function(e){var t=n.payload.convoStatusUpdateMap[e.entityUrn]
if(!_e(t)&&t.seenReceiptsMap&&e.seenReceiptsMap){var i=Ce(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:Ae(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?we():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:La(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:La(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:La(n.lastRequestId,i.requestId)})
case"UPDATE_REQUEST_ID":return r(r({},n),{},{lastRequestId:La(n.lastRequestId,i.requestId)})
default:return i.requestId?r(r({},n),{},{lastRequestId:La(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?ja(e,[{conversationUrn:n.entityUrn}],[]):ja(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 ja(e,r,o)
case"UPDATE_CONVERSATION_BY_URN":var a=t.payload,s=a.conversationUrn
return a.conversationUpdate.incompleteRetriableData?ja(e,[{conversationUrn:s}],[]):ja(e,[],[{conversationUrn:s}])
case"UPDATE_CONVERSATIONS_BY_URN":var c=t.payload.convoStatusUpdateMap,l=[],u=[]
for(var d in c){var f=c[d]
!_e(f)&&f.incompleteRetriableData?l.push({conversationUrn:d}):_e(f)||V(f.incompleteRetriableData)||u.push({conversationUrn:d})}return ja(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?ja(e,[{conversationUrn:p.entityUrn}],[]):ja(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?ja(e,[{messageUrn:h.entityUrn}],[]):ja(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 ja(e,m,v)
case"UPDATE_MESSAGES":var y=t.payload.messageUpdateMap,b=[],E=[]
for(var _ in y){var k=y[_]
k.incompleteRetriableData?b.push({messageUrn:_}):V(k.incompleteRetriableData)||E.push({messageUrn:_})}return ja(e,b,E)
default:return e}}})
var Ua=function(e){var t=new N
return R(e,function(e){return t=>{var n=k,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},Fa=new Map,Ba=function(){Fa.clear()},Ga=function(e,t,n){var i,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,o=C((function(e){var t
return null===(t=e.conversations.first())||void 0===t?void 0:t.messages.last()})),a=(i=n,A((function(e){return void 0!==e&&e.senderUrn!==i}))),s=function(e,t){return A((function(n){var i,r=null!==(i=Fa.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),Fa.set(e,r),o}return!1}))}(t,1e3*r),c=x(e)
return Ua(R(c,o,a,s))},Ha=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"FilteredMailboxState",i=C((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=x(e)
return Ua(R(r,i,D()))},Va=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"FilteredMailboxState",i=C((function(e){return e.conversations.getByIdentifier(t,n)})),r=x(e)
return Ua(R(r,i,C((function(e){return null==e?void 0:e.messages})),D()))},qa=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"FilteredMailboxState",i=C((function(e){return e.conversations.getByIdentifier(t,n)})),r=x(e)
return Ua(R(r,i,C((function(e){return null==e?void 0:e.draftMessage})),D()))},Ka=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=x(e),i=C((function(e){return e.incompleteRetriableEntities})),r=A((function(e){return e.length>0}))
return Ua(R(n,i,D(),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={}
a[o.ErrorCode.TokenExpired]="The access token supplied is expired.",a[o.ErrorCode.Throttled]="You have exceeded your quota.",a[o.ErrorCode.ServerError]="An error occurred when calling the server to process the text.",a[o.ErrorCode.InvalidSubdomain]="The subdomain supplied is invalid."
var s=!1
function c(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,l){return s?Promise.reject("Immersive Reader is already launching"):new Promise((function(u,d){if(e)if(n)if(n.chunks)if(n.chunks.length)if(c(t)||l&&l.customDomain){s=!0
var f=Date.now();(l=i({uiZIndex:1e3,timeout:15e3,useWebview:!1,allowFullscreen:!0,hideExitButton:!1,cookiePolicy:r.CookiePolicy.Disable},l)).uiZIndex&&"number"==typeof l.uiZIndex||(l.uiZIndex=1e3)
var p=null,h=document.createElement("div"),g=l.useWebview?document.createElement("webview"):document.createElement("iframe")
g.allow="autoplay; microphone",g.title="Immersive Reader Frame",g.setAttribute("aria-modal","true")
var m=document.createElement("style")
m.innerHTML="body{height:100%;overflow:hidden;}"
var v=function(){p&&(window.clearTimeout(p),p=null)},y=l.parent&&document.contains(l.parent)?l.parent:document.body,b=function(){y.contains(h)&&y.removeChild(h),window.removeEventListener("message",_),v(),m.parentNode&&m.parentNode.removeChild(m)},E=function(){if(b(),s=!1,l.onExit)try{l.onExit()}catch(e){}}
b()
var _=function(i){if(i&&i.data&&"string"==typeof i.data)if("ImmersiveReader-ReadyForContent"===i.data){v()
var r={cogSvcsAccessToken:e,cogSvcsSubdomain:t,request:n,launchToPostMessageSentDurationInMs:Date.now()-f,disableFirstRun:l.disableFirstRun,readAloudOptions:l.readAloudOptions,translationOptions:l.translationOptions,displayOptions:l.displayOptions,sendPreferences:!!l.onPreferencesChanged,preferences:l.preferences,disableTranslation:l.disableTranslation,disableGrammar:l.disableGrammar,disableLanguageDetection:l.disableLanguageDetection}
g.contentWindow.postMessage(JSON.stringify({messageType:"Content",messageValue:r}),"*")}else if("ImmersiveReader-Exit"===i.data)E()
else if(i.data.startsWith("ImmersiveReader-LaunchResponse:")){var c=null,p=null,m=null
try{m=JSON.parse(i.data.substring(31))}catch(e){}m&&m.success?c={container:h,sessionId:m.sessionId,charactersProcessed:m.meteredContentSize}:p=m&&!m.success?{code:m.errorCode,message:a[m.errorCode],sessionId:m.sessionId}:{code:o.ErrorCode.ServerError,message:a[o.ErrorCode.ServerError]},s=!1,c?(v(),u(c)):p&&(E(),d(p))}else if(i.data.startsWith("ImmersiveReader-Preferences:")&&l.onPreferencesChanged&&"function"==typeof l.onPreferencesChanged)try{l.onPreferencesChanged(i.data.substring(28))}catch(e){}}
window.addEventListener("message",_),p=window.setTimeout((function(){b(),s=!1,d({code:o.ErrorCode.Timeout,message:"Page failed to load after timeout ("+l.timeout+" ms)"})}),l.timeout),l.allowFullscreen&&g.setAttribute("allowfullscreen",""),g.style.cssText=l.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",l.useWebview&&g.addEventListener("loadstop",(function(){g.contentWindow.postMessage(JSON.stringify({messageType:"WebviewHost"}),"*")}))
var k=(l.customDomain?l.customDomain:"https://"+t+".cognitiveservices.azure.com/immersivereader/webapp/v1.0/")+"reader?exitCallback=ImmersiveReader-Exit&sdkPlatform=js&sdkVersion=1.3.0"
k+="&cookiePolicy="+(l.cookiePolicy===r.CookiePolicy.Enable?"enable":"disable"),l.hideExitButton&&(k+="&hideExitButton=true"),l.uiLang&&(k+="&omkt="+l.uiLang),g.src=k,h.style.cssText=l.parent?"position: relative; width: 100%; height: 100%; border-width: 0; -webkit-perspective: 1px; z-index: "+l.uiZIndex+"; background: white; overflow: hidden":"position: fixed; width: 100vw; height: 100vh; left: 0; top: 0; border-width: 0; -webkit-perspective: 1px; z-index: "+l.uiZIndex+"; background: white; overflow: hidden",h.appendChild(g),y.appendChild(h),document.head.appendChild(m)}else d({code:o.ErrorCode.InvalidSubdomain,message:a[o.ErrorCode.InvalidSubdomain]})
else d({code:o.ErrorCode.BadArgument,message:"Chunks must not be empty"})
else d({code:o.ErrorCode.BadArgument,message:"Chunks must not be null"})
else d({code:o.ErrorCode.BadArgument,message:"Content must not be null"})
else d({code:o.ErrorCode.BadArgument,message:"Token must not be null"})}))},t.close=function(){window.postMessage("ImmersiveReader-Exit","*")},t.isValidSubdomain=c},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()},3603:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>r})
var i=n(21045)
function r(e,t){var n=t.getRootNode&&t.getRootNode()
if(e.contains(t))return!0
if(n&&(0,i.Zq)(n)){var r=t
do{if(r&&e.isSameNode(r))return!0
r=r.parentNode||r.host}while(r)}return!1}},60227:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>s})
var i=n(21045),r=n(75881),o=n(28414),a=n(2130)
function s(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1)
var s=e.getBoundingClientRect(),c=1,l=1
t&&(0,i.Re)(e)&&(c=e.offsetWidth>0&&(0,r.NM)(s.width)/e.offsetWidth||1,l=e.offsetHeight>0&&(0,r.NM)(s.height)/e.offsetHeight||1)
var u=((0,i.kK)(e)?(0,o.Z)(e):window).visualViewport,d=!(0,a.Z)()&&n,f=(s.left+(d&&u?u.offsetLeft:0))/c,p=(s.top+(d&&u?u.offsetTop:0))/l,h=s.width/c,g=s.height/l
return{width:h,height:g,top:p,right:f+h,bottom:p+g,left:f,x:f,y:p}}},98810:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>r})
var i=n(28414)
function r(e){return(0,i.Z)(e).getComputedStyle(e)}},76812:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>r})
var i=n(21045)
function r(e){return(((0,i.kK)(e)?e.ownerDocument:e.document)||window.document).documentElement}},32277:(e,t,n)=>{"use strict"
function i(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,{Z:()=>i})},65469:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>d})
var i=n(28414),r=n(32277),o=n(98810),a=n(21045)
function s(e){return["table","td","th"].indexOf((0,r.Z)(e))>=0}var c=n(64230),l=n(84105)
function u(e){return(0,a.Re)(e)&&"fixed"!==(0,o.Z)(e).position?e.offsetParent:null}function d(e){for(var t=(0,i.Z)(e),n=u(e);n&&s(n)&&"static"===(0,o.Z)(n).position;)n=u(n)
return n&&("html"===(0,r.Z)(n)||"body"===(0,r.Z)(n)&&"static"===(0,o.Z)(n).position)?t:n||function(e){var t=/firefox/i.test((0,l.Z)())
if(/Trident/i.test((0,l.Z)())&&(0,a.Re)(e)&&"fixed"===(0,o.Z)(e).position)return null
var n=(0,c.Z)(e)
for((0,a.Zq)(n)&&(n=n.host);(0,a.Re)(n)&&["html","body"].indexOf((0,r.Z)(n))<0;){var i=(0,o.Z)(n)
if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n
n=n.parentNode}return null}(e)||t}},64230:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>a})
var i=n(32277),r=n(76812),o=n(21045)
function a(e){return"html"===(0,i.Z)(e)?e:e.assignedSlot||e.parentNode||((0,o.Zq)(e)?e.host:null)||(0,r.Z)(e)}},28414:(e,t,n)=>{"use strict"
function i(e){if(null==e)return window
if("[object Window]"!==e.toString()){var t=e.ownerDocument
return t&&t.defaultView||window}return e}n.d(t,{Z:()=>i})},9633:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>r})
var i=n(28414)
function r(e){var t=(0,i.Z)(e)
return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},20983:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>a})
var i=n(60227),r=n(76812),o=n(9633)
function a(e){return(0,i.Z)((0,r.Z)(e)).left+(0,o.Z)(e).scrollLeft}},21045:(e,t,n)=>{"use strict"
n.d(t,{Re:()=>o,Zq:()=>a,kK:()=>r})
var i=n(28414)
function r(e){return e instanceof(0,i.Z)(e).Element||e instanceof Element}function o(e){return e instanceof(0,i.Z)(e).HTMLElement||e instanceof HTMLElement}function a(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,i.Z)(e).ShadowRoot||e instanceof ShadowRoot)}},2130:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>r})
var i=n(84105)
function r(){return!/^((?!chrome|android).)*safari/i.test((0,i.Z)())}},82821:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>r})
var i=n(98810)
function r(e){var t=(0,i.Z)(e),n=t.overflow,r=t.overflowX,o=t.overflowY
return/auto|scroll|overlay|hidden/.test(n+o+r)}},50856:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>l})
var i=n(64230),r=n(82821),o=n(32277),a=n(21045)
function s(e){return["html","body","#document"].indexOf((0,o.Z)(e))>=0?e.ownerDocument.body:(0,a.Re)(e)&&(0,r.Z)(e)?e:s((0,i.Z)(e))}var c=n(28414)
function l(e,t){var n
void 0===t&&(t=[])
var o=s(e),a=o===(null==(n=e.ownerDocument)?void 0:n.body),u=(0,c.Z)(o),d=a?[u].concat(u.visualViewport||[],(0,r.Z)(o)?o:[]):o,f=t.concat(d)
return a?f:f.concat(l((0,i.Z)(d)))}},62473:(e,t,n)=>{"use strict"
n.d(t,{BL:()=>l,Ct:()=>m,DH:()=>_,F2:()=>o,I:()=>r,MS:()=>A,N7:()=>v,Pj:()=>f,XM:()=>E,YP:()=>h,bw:()=>g,cW:()=>S,d7:()=>s,ij:()=>y,iv:()=>T,k5:()=>p,mv:()=>c,r5:()=>b,t$:()=>a,ut:()=>u,wX:()=>k,we:()=>i,xs:()=>C,zV:()=>d})
var i="top",r="bottom",o="right",a="left",s="auto",c=[i,r,o,a],l="start",u="end",d="clippingParents",f="viewport",p="popper",h="reference",g=c.reduce((function(e,t){return e.concat([t+"-"+l,t+"-"+u])}),[]),m=[].concat(c,[s]).reduce((function(e,t){return e.concat([t,t+"-"+l,t+"-"+u])}),[]),v="beforeRead",y="read",b="afterRead",E="beforeMain",_="main",k="afterMain",T="beforeWrite",S="write",A="afterWrite",C=[v,y,b,E,_,k,T,S,A]},27882:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{afterMain:()=>i.wX,afterRead:()=>i.r5,afterWrite:()=>i.MS,applyStyles:()=>a,arrow:()=>v,auto:()=>i.d7,basePlacements:()=>i.mv,beforeMain:()=>i.XM,beforeRead:()=>i.N7,beforeWrite:()=>i.iv,bottom:()=>i.I,clippingParents:()=>i.zV,computeStyles:()=>S,createPopper:()=>J,createPopperBase:()=>Q,createPopperLite:()=>$,detectOverflow:()=>N.Z,end:()=>i.ut,eventListeners:()=>C,flip:()=>O,hide:()=>M,left:()=>i.t$,main:()=>i.DH,modifierPhases:()=>i.xs,offset:()=>j,placements:()=>i.Ct,popper:()=>i.k5,popperGenerator:()=>X,popperOffsets:()=>U,preventOverflow:()=>B,read:()=>i.ij,reference:()=>i.YP,right:()=>i.F2,start:()=>i.BL,top:()=>i.we,variationPlacements:()=>i.bw,viewport:()=>i.Pj,write:()=>i.cW})
var i=n(62473),r=n(32277),o=n(21045)
const a={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state
Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},a=t.elements[e];(0,o.Re)(a)&&(0,r.Z)(a)&&(Object.assign(a.style,n),Object.keys(i).forEach((function(e){var t=i[e]
!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}}
return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],a=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});(0,o.Re)(i)&&(0,r.Z)(i)&&(Object.assign(i.style,s),Object.keys(a).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]}
var s=n(45577),c=n(60227)
function l(e){var t=(0,c.Z)(e),n=e.offsetWidth,i=e.offsetHeight
return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}var u=n(3603),d=n(65469),f=n(96379),p=n(75881)
function h(e,t,n){return(0,p.Fp)(e,(0,p.VV)(t,n))}var g=n(16748),m=n(41282)
const v={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,c=n.modifiersData.popperOffsets,u=(0,s.Z)(n.placement),p=(0,f.Z)(u),v=[i.t$,i.F2].indexOf(u)>=0?"height":"width"
if(a&&c){var y=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,g.Z)("number"!=typeof e?e:(0,m.Z)(e,i.mv))}(o.padding,n),b=l(a),E="y"===p?i.we:i.t$,_="y"===p?i.I:i.F2,k=n.rects.reference[v]+n.rects.reference[p]-c[p]-n.rects.popper[v],T=c[p]-n.rects.reference[p],S=(0,d.Z)(a),A=S?"y"===p?S.clientHeight||0:S.clientWidth||0:0,C=k/2-T/2,I=y[E],w=A-b[v]-y[_],x=A/2-b[v]/2+C,R=h(I,x,w),N=p
n.modifiersData[r]=((t={})[N]=R,t.centerOffset=R-x,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n
null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&(0,u.Z)(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}
var y=n(28414),b=n(76812),E=n(98810),_=n(11848),k={top:"auto",right:"auto",bottom:"auto",left:"auto"}
function T(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,c=e.position,l=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,h=e.isFixed,g=s.x,m=void 0===g?0:g,v=s.y,_=void 0===v?0:v,T="function"==typeof f?f({x:m,y:_}):{x:m,y:_}
m=T.x,_=T.y
var S=s.hasOwnProperty("x"),A=s.hasOwnProperty("y"),C=i.t$,I=i.we,w=window
if(u){var x=(0,d.Z)(n),R="clientHeight",N="clientWidth"
x===(0,y.Z)(n)&&(x=(0,b.Z)(n),"static"!==(0,E.Z)(x).position&&"absolute"===c&&(R="scrollHeight",N="scrollWidth")),(o===i.we||(o===i.t$||o===i.F2)&&a===i.ut)&&(I=i.I,_-=(h&&x===w&&w.visualViewport?w.visualViewport.height:x[R])-r.height,_*=l?1:-1),o!==i.t$&&(o!==i.we&&o!==i.I||a!==i.ut)||(C=i.F2,m-=(h&&x===w&&w.visualViewport?w.visualViewport.width:x[N])-r.width,m*=l?1:-1)}var O,D=Object.assign({position:c},u&&k),P=!0===f?function(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1
return{x:(0,p.NM)(n*r)/r||0,y:(0,p.NM)(i*r)/r||0}}({x:m,y:_},(0,y.Z)(n)):{x:m,y:_}
return m=P.x,_=P.y,l?Object.assign({},D,((O={})[I]=A?"0":"",O[C]=S?"0":"",O.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+_+"px)":"translate3d("+m+"px, "+_+"px, 0)",O)):Object.assign({},D,((t={})[I]=A?_+"px":"",t[C]=S?m+"px":"",t.transform="",t))}const S={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,a=void 0===o||o,c=n.roundOffsets,l=void 0===c||c,u={placement:(0,s.Z)(t.placement),variation:(0,_.Z)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy}
null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,T(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,T(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}}
var A={passive:!0}
const C={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,o=void 0===r||r,a=i.resize,s=void 0===a||a,c=(0,y.Z)(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper)
return o&&l.forEach((function(e){e.addEventListener("scroll",n.update,A)})),s&&c.addEventListener("resize",n.update,A),function(){o&&l.forEach((function(e){e.removeEventListener("scroll",n.update,A)})),s&&c.removeEventListener("resize",n.update,A)}},data:{}}
var I={left:"right",right:"left",bottom:"top",top:"bottom"}
function w(e){return e.replace(/left|right|bottom|top/g,(function(e){return I[e]}))}var x={start:"end",end:"start"}
function R(e){return e.replace(/start|end/g,(function(e){return x[e]}))}var N=n(91210)
const O={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name
if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,c=n.altAxis,l=void 0===c||c,u=n.fallbackPlacements,d=n.padding,f=n.boundary,p=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,m=void 0===g||g,v=n.allowedAutoPlacements,y=t.options.placement,b=(0,s.Z)(y),E=u||(b!==y&&m?function(e){if((0,s.Z)(e)===i.d7)return[]
var t=w(e)
return[R(e),t,R(t)]}(y):[w(y)]),k=[y].concat(E).reduce((function(e,n){return e.concat((0,s.Z)(n)===i.d7?function(e,t){void 0===t&&(t={})
var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,c=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,d=void 0===u?i.Ct:u,f=(0,_.Z)(r),p=f?l?i.bw:i.bw.filter((function(e){return(0,_.Z)(e)===f})):i.mv,h=p.filter((function(e){return d.indexOf(e)>=0}))
0===h.length&&(h=p)
var g=h.reduce((function(t,n){return t[n]=(0,N.Z)(e,{placement:n,boundary:o,rootBoundary:a,padding:c})[(0,s.Z)(n)],t}),{})
return Object.keys(g).sort((function(e,t){return g[e]-g[t]}))}(t,{placement:n,boundary:f,rootBoundary:p,padding:d,flipVariations:m,allowedAutoPlacements:v}):n)}),[]),T=t.rects.reference,S=t.rects.popper,A=new Map,C=!0,I=k[0],x=0;x<k.length;x++){var O=k[x],D=(0,s.Z)(O),P=(0,_.Z)(O)===i.BL,M=[i.we,i.I].indexOf(D)>=0,j=M?"width":"height",L=(0,N.Z)(t,{placement:O,boundary:f,rootBoundary:p,altBoundary:h,padding:d}),U=M?P?i.F2:i.t$:P?i.I:i.we
T[j]>S[j]&&(U=w(U))
var F=w(U),B=[]
if(a&&B.push(L[D]<=0),l&&B.push(L[U]<=0,L[F]<=0),B.every((function(e){return e}))){I=O,C=!1
break}A.set(O,B)}if(C)for(var G=function(e){var t=k.find((function(t){var n=A.get(t)
if(n)return n.slice(0,e).every((function(e){return e}))}))
if(t)return I=t,"break"},H=m?3:1;H>0&&"break"!==G(H);H--);t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}
function D(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function P(e){return[i.we,i.F2,i.I,i.t$].some((function(t){return e[t]>=0}))}const M={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,a=(0,N.Z)(t,{elementContext:"reference"}),s=(0,N.Z)(t,{altBoundary:!0}),c=D(a,i),l=D(s,r,o),u=P(c),d=P(l)
t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},j={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,c=i.Ct.reduce((function(e,n){return e[n]=function(e,t,n){var r=(0,s.Z)(e),o=[i.t$,i.we].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,c=a[0],l=a[1]
return c=c||0,l=(l||0)*o,[i.t$,i.F2].indexOf(r)>=0?{x:l,y:c}:{x:c,y:l}}(n,t.rects,a),e}),{}),l=c[t.placement],u=l.x,d=l.y
null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=c}}
var L=n(10182)
const U={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name
t.modifiersData[n]=(0,L.Z)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}}
var F=n(75027)
const B={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,c=n.altAxis,u=void 0!==c&&c,g=n.boundary,m=n.rootBoundary,v=n.altBoundary,y=n.padding,b=n.tether,E=void 0===b||b,k=n.tetherOffset,T=void 0===k?0:k,S=(0,N.Z)(t,{boundary:g,rootBoundary:m,padding:y,altBoundary:v}),A=(0,s.Z)(t.placement),C=(0,_.Z)(t.placement),I=!C,w=(0,f.Z)(A),x="x"===w?"y":"x",R=t.modifiersData.popperOffsets,O=t.rects.reference,D=t.rects.popper,P="function"==typeof T?T(Object.assign({},t.rects,{placement:t.placement})):T,M="number"==typeof P?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0}
if(R){if(a){var U,B="y"===w?i.we:i.t$,G="y"===w?i.I:i.F2,H="y"===w?"height":"width",V=R[w],q=V+S[B],K=V-S[G],W=E?-D[H]/2:0,Y=C===i.BL?O[H]:D[H],z=C===i.BL?-D[H]:-O[H],X=t.elements.arrow,Q=E&&X?l(X):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,F.Z)(),$=J[B],Z=J[G],ee=h(0,O[H],Q[H]),te=I?O[H]/2-W-ee-$-M.mainAxis:Y-ee-$-M.mainAxis,ne=I?-O[H]/2+W+ee+Z+M.mainAxis:z+ee+Z+M.mainAxis,ie=t.elements.arrow&&(0,d.Z)(t.elements.arrow),re=ie?"y"===w?ie.clientTop||0:ie.clientLeft||0:0,oe=null!=(U=null==j?void 0:j[w])?U:0,ae=V+te-oe-re,se=V+ne-oe,ce=h(E?(0,p.VV)(q,ae):q,V,E?(0,p.Fp)(K,se):K)
R[w]=ce,L[w]=ce-V}if(u){var le,ue="x"===w?i.we:i.t$,de="x"===w?i.I:i.F2,fe=R[x],pe="y"===x?"height":"width",he=fe+S[ue],ge=fe-S[de],me=-1!==[i.we,i.t$].indexOf(A),ve=null!=(le=null==j?void 0:j[x])?le:0,ye=me?he:fe-O[pe]-D[pe]-ve+M.altAxis,be=me?fe+O[pe]+D[pe]-ve-M.altAxis:ge,Ee=E&&me?function(e,t,n){var i=h(e,t,n)
return i>n?n:i}(ye,fe,be):h(E?ye:he,fe,E?be:ge)
R[x]=Ee,L[x]=Ee-fe}t.modifiersData[r]=L}},requiresIfExists:["offset"]}
var G=n(9633),H=n(20983),V=n(82821)
function q(e,t,n){void 0===n&&(n=!1)
var i,a,s=(0,o.Re)(t),l=(0,o.Re)(t)&&function(e){var t=e.getBoundingClientRect(),n=(0,p.NM)(t.width)/e.offsetWidth||1,i=(0,p.NM)(t.height)/e.offsetHeight||1
return 1!==n||1!==i}(t),u=(0,b.Z)(t),d=(0,c.Z)(e,l,n),f={scrollLeft:0,scrollTop:0},h={x:0,y:0}
return(s||!s&&!n)&&(("body"!==(0,r.Z)(t)||(0,V.Z)(u))&&(f=(i=t)!==(0,y.Z)(i)&&(0,o.Re)(i)?{scrollLeft:(a=i).scrollLeft,scrollTop:a.scrollTop}:(0,G.Z)(i)),(0,o.Re)(t)?((h=(0,c.Z)(t,!0)).x+=t.clientLeft,h.y+=t.clientTop):u&&(h.x=(0,H.Z)(u))),{x:d.left+f.scrollLeft-h.x,y:d.top+f.scrollTop-h.y,width:d.width,height:d.height}}var K=n(50856)
function W(e){var t=new Map,n=new Set,i=[]
function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e)
i&&r(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),i}var Y={placement:"bottom",modifiers:[],strategy:"absolute"}
function z(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function X(e){void 0===e&&(e={})
var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,a=t.defaultOptions,s=void 0===a?Y:a
return function(e,t,n){void 0===n&&(n=s)
var a,c,u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Y,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},f=[],p=!1,h={state:u,setOptions:function(n){var a="function"==typeof n?n(u.options):n
g(),u.options=Object.assign({},s,u.options,a),u.scrollParents={reference:(0,o.kK)(e)?(0,K.Z)(e):e.contextElement?(0,K.Z)(e.contextElement):[],popper:(0,K.Z)(t)}
var c,l,d=function(e){var t=W(e)
return i.xs.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((c=[].concat(r,u.options.modifiers),l=c.reduce((function(e,t){var n=e[t.name]
return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(l).map((function(e){return l[e]}))))
return u.orderedModifiers=d.filter((function(e){return e.enabled})),u.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,r=e.effect
if("function"==typeof r){var o=r({state:u,name:t,instance:h,options:i})
f.push(o||function(){})}})),h.update()},forceUpdate:function(){if(!p){var e=u.elements,t=e.reference,n=e.popper
if(z(t,n)){u.rects={reference:q(t,(0,d.Z)(n),"fixed"===u.options.strategy),popper:l(n)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach((function(e){return u.modifiersData[e.name]=Object.assign({},e.data)}))
for(var i=0;i<u.orderedModifiers.length;i++)if(!0!==u.reset){var r=u.orderedModifiers[i],o=r.fn,a=r.options,s=void 0===a?{}:a,c=r.name
"function"==typeof o&&(u=o({state:u,options:s,name:c,instance:h})||u)}else u.reset=!1,i=-1}}},update:(a=function(){return new Promise((function(e){h.forceUpdate(),e(u)}))},function(){return c||(c=new Promise((function(e){Promise.resolve().then((function(){c=void 0,e(a())}))}))),c}),destroy:function(){g(),p=!0}}
if(!z(e,t))return h
function g(){f.forEach((function(e){return e()})),f=[]}return h.setOptions(n).then((function(e){!p&&n.onFirstUpdate&&n.onFirstUpdate(e)})),h}}var Q=X(),J=X({defaultModifiers:[C,U,S,a,j,O,B,v,M]}),$=X({defaultModifiers:[C,U,S,a]})},10182:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>s})
var i=n(45577),r=n(11848),o=n(96379),a=n(62473)
function s(e){var t,n=e.reference,s=e.element,c=e.placement,l=c?(0,i.Z)(c):null,u=c?(0,r.Z)(c):null,d=n.x+n.width/2-s.width/2,f=n.y+n.height/2-s.height/2
switch(l){case a.we:t={x:d,y:n.y-s.height}
break
case a.I:t={x:d,y:n.y+n.height}
break
case a.F2:t={x:n.x+n.width,y:f}
break
case a.t$:t={x:n.x-s.width,y:f}
break
default:t={x:n.x,y:n.y}}var p=l?(0,o.Z)(l):null
if(null!=p){var h="y"===p?"height":"width"
switch(u){case a.BL:t[p]=t[p]-(n[h]/2-s[h]/2)
break
case a.ut:t[p]=t[p]+(n[h]/2-s[h]/2)}}return t}},91210:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>T})
var i=n(62473),r=n(28414),o=n(76812),a=n(20983),s=n(2130),c=n(98810),l=n(9633),u=n(75881),d=n(50856),f=n(65469),p=n(21045),h=n(60227),g=n(64230),m=n(3603),v=n(32277)
function y(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function b(e,t,n){return t===i.Pj?y(function(e,t){var n=(0,r.Z)(e),i=(0,o.Z)(e),c=n.visualViewport,l=i.clientWidth,u=i.clientHeight,d=0,f=0
if(c){l=c.width,u=c.height
var p=(0,s.Z)();(p||!p&&"fixed"===t)&&(d=c.offsetLeft,f=c.offsetTop)}return{width:l,height:u,x:d+(0,a.Z)(e),y:f}}(e,n)):(0,p.kK)(t)?function(e,t){var n=(0,h.Z)(e,!1,"fixed"===t)
return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):y(function(e){var t,n=(0,o.Z)(e),i=(0,l.Z)(e),r=null==(t=e.ownerDocument)?void 0:t.body,s=(0,u.Fp)(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),d=(0,u.Fp)(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),f=-i.scrollLeft+(0,a.Z)(e),p=-i.scrollTop
return"rtl"===(0,c.Z)(r||n).direction&&(f+=(0,u.Fp)(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:d,x:f,y:p}}((0,o.Z)(e)))}var E=n(10182),_=n(16748),k=n(41282)
function T(e,t){void 0===t&&(t={})
var n=t,r=n.placement,a=void 0===r?e.placement:r,s=n.strategy,l=void 0===s?e.strategy:s,T=n.boundary,S=void 0===T?i.zV:T,A=n.rootBoundary,C=void 0===A?i.Pj:A,I=n.elementContext,w=void 0===I?i.k5:I,x=n.altBoundary,R=void 0!==x&&x,N=n.padding,O=void 0===N?0:N,D=(0,_.Z)("number"!=typeof O?O:(0,k.Z)(O,i.mv)),P=w===i.k5?i.YP:i.k5,M=e.rects.popper,j=e.elements[R?P:w],L=function(e,t,n,i){var r="clippingParents"===t?function(e){var t=(0,d.Z)((0,g.Z)(e)),n=["absolute","fixed"].indexOf((0,c.Z)(e).position)>=0&&(0,p.Re)(e)?(0,f.Z)(e):e
return(0,p.kK)(n)?t.filter((function(e){return(0,p.kK)(e)&&(0,m.Z)(e,n)&&"body"!==(0,v.Z)(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),a=o[0],s=o.reduce((function(t,n){var r=b(e,n,i)
return t.top=(0,u.Fp)(r.top,t.top),t.right=(0,u.VV)(r.right,t.right),t.bottom=(0,u.VV)(r.bottom,t.bottom),t.left=(0,u.Fp)(r.left,t.left),t}),b(e,a,i))
return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}((0,p.kK)(j)?j:j.contextElement||(0,o.Z)(e.elements.popper),S,C,l),U=(0,h.Z)(e.elements.reference),F=(0,E.Z)({reference:U,element:M,strategy:"absolute",placement:a}),B=y(Object.assign({},M,F)),G=w===i.k5?B:U,H={top:L.top-G.top+D.top,bottom:G.bottom-L.bottom+D.bottom,left:L.left-G.left+D.left,right:G.right-L.right+D.right},V=e.modifiersData.offset
if(w===i.k5&&V){var q=V[a]
Object.keys(H).forEach((function(e){var t=[i.F2,i.I].indexOf(e)>=0?1:-1,n=[i.we,i.I].indexOf(e)>=0?"y":"x"
H[e]+=q[n]*t}))}return H}},41282:(e,t,n)=>{"use strict"
function i(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}n.d(t,{Z:()=>i})},45577:(e,t,n)=>{"use strict"
function i(e){return e.split("-")[0]}n.d(t,{Z:()=>i})},75027:(e,t,n)=>{"use strict"
function i(){return{top:0,right:0,bottom:0,left:0}}n.d(t,{Z:()=>i})},96379:(e,t,n)=>{"use strict"
function i(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}n.d(t,{Z:()=>i})},11848:(e,t,n)=>{"use strict"
function i(e){return e.split("-")[1]}n.d(t,{Z:()=>i})},75881:(e,t,n)=>{"use strict"
n.d(t,{Fp:()=>i,NM:()=>o,VV:()=>r})
var i=Math.max,r=Math.min,o=Math.round},16748:(e,t,n)=>{"use strict"
n.d(t,{Z:()=>r})
var i=n(75027)
function r(e){return Object.assign({},(0,i.Z)(),e)}},84105:(e,t,n)=>{"use strict"
function i(){var e=navigator.userAgentData
return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}n.d(t,{Z:()=>i})},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 _=E.value
if(void 0===_)return d(h,g)
var k="string"==typeof _?{target:_}:_,T=k.target,S=k.actions,A=void 0===S?[]:S,C=k.cond,I=void 0===T
if((void 0===C?function(){return!0}:C)(g,m)){var w=e.states[null!=T?T:h],x=i(f((I?a(A):[].concat(v.exit,A,w.entry).filter((function(e){return e}))).map((function(e){return c(e,p._options.actions)})),g,m),3),R=x[0],N=x[1],O=x[2],D=null!=T?T:h
return{value:D,context:N,actions:R,changed:T!==h||R.length>0||O,matches:l(D)}}}}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}},95582:e=>{self,e.exports=function(){var e={28: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}),t.BitmovinPwxInternalAdapter=void 0
var o=n(2663),a=n(2361),s=n(556),c=n(7614),l=n(9557),u=n(3413),d=n(2647),f=n(5406),p=n(7299),h=function(e){function t(t,n){var i=e.call(this,n)||this
i.context=t,i.onBeforeUnLoadEvent=!1
var r=new o.HeartbeatService((function(){return i.currentTime})),a=new f.BitmovinPwxAnalyticsStateMachine(i.stateMachineCallbacks,r,i.opts)
return r.setListener(a),i.stateMachine=a,i}return r(t,e),t.prototype.getSource=function(){return this.context.registry.get(p.SourceExportNames.SourceState)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.getSource().playback.playhead.position},enumerable:!1,configurable:!0}),t.prototype.getAutoPlay=function(){return this.getSource().config.playback.autoplay},t.prototype.getCurrentPlaybackInfo=function(){var e,t,n,i,r,o,a,s=null===(e=this.getSource().sourceConfig.resources.filter((function(e){return e.url.includes(".m3u8")}))[0])||void 0===e?void 0:e.url,c=null===(t=this.getSource().sourceConfig.resources.filter((function(e){return e.url.includes(".mpd")}))[0])||void 0===t?void 0:t.url,l=null===(n=this.getSource().video.element)||void 0===n?void 0:n.getBoundingClientRect(),d=Math.round(null!==(i=null==l?void 0:l.width)&&void 0!==i?i:1),f=Math.round(null!==(r=null==l?void 0:l.height)&&void 0!==r?r:1),p="unknown"
return s?p="hls":c&&(p="dash"),{droppedFrames:0,isMuted:null===(o=this.getSource().video.element)||void 0===o?void 0:o.muted,isLive:"live"===this.getSource().stream.type,videoWindowHeight:f,videoWindowWidth:d,videoDuration:(0,u.normalizeVideoDuration)(null===(a=this.getSource().video.element)||void 0===a?void 0:a.duration),videoPlaybackHeight:f,videoPlaybackWidth:d,m3u8Url:s,mpdUrl:c,streamFormat:p,videoCodec:void 0,audioCodec:void 0,videoBitrate:0,audioBitrate:0}},t.prototype.getDrmPerformanceInfo=function(){},t.prototype.getPlayerName=function(){return s.Player.BITMOVIN_PWX},t.prototype.getPlayerTech=function(){return"webx:html5"},t.prototype.getPlayerVersion=function(){return this.context.registry.get(p.CoreExportNames.Constants).Version},t.prototype.initialize=function(e){return this.registerEventListeners(),this.registerUnloadEventListeners(),[new l.ErrorDetailTracking(e.errorDetailTrackingSettingsProvider,new c.ErrorDetailBackend(e.errorDetailTrackingSettingsProvider.collectorConfig),[e.errorDetailSubscribable],void 0)]},t.prototype.registerUnloadEventListeners=function(){var e=this,t=function(){if(!e.onBeforeUnLoadEvent){e.onBeforeUnLoadEvent=!0
var t=e.context.registry.get(p.SourceExportNames.SourceState).playback.playhead.position
e.eventCallback(a.Event.UNLOAD,{currentTime:t})}e.release()}
t=t.bind(!0),this.context.abortSignal.addEventListener("abort",t),this.windowEventTracker.addEventListener("beforeunload",t),this.windowEventTracker.addEventListener("unload",t)},t.prototype.registerEventListeners=function(){var e=this,t=this.context.registry.get(p.SourcesApiExportNames.SourceEventBus),n=this.context.registry.get(p.SourceExportNames.SourceState).playback,i=this.context.registry.get(p.PlaybackApiEventsPackageExportNames.PlaybackEvent)
t.on(i.Ready,(function(){e.eventCallback(a.Event.SOURCE_LOADED,{currentTime:n.playhead.position})})),t.on(i.Play,(function(){e.eventCallback(a.Event.PLAY,{currentTime:n.playhead.position})})),t.on(i.Playing,(function(){e.eventCallback(a.Event.PLAYING,{currentTime:n.playhead.position})})),t.on(i.Paused,(function(){e.eventCallback(a.Event.PAUSE,{currentTime:n.playhead.position})})),t.on(i.TimeChanged,(function(){e.eventCallback(a.Event.TIMECHANGED,{currentTime:n.playhead.position})})),t.on(i.VideoAttached,(function(){e.eventCallback(a.Event.SOURCE_LOADED,{currentTime:n.playhead.position})})),t.on(i.Ended,(function(){e.eventCallback(a.Event.END,{currentTime:n.playhead.position})}))
var r=function(){var t=e.context.abortSignal.reason
"SourceRemovedError"===t.name||"FrameworkDisposedError"===t.name?e.eventCallback(a.Event.SOURCE_UNLOADED,{currentTime:n.playhead.position}):e.eventCallback(a.Event.ERROR,{currentTime:n.playhead.position,code:1007,message:t.message,data:t}),e.context.abortSignal.removeEventListener("abort",r)}
this.context.abortSignal.addEventListener("abort",r)},t.prototype.sourceChange=function(e){throw new Error("Method not implemented.")},t}(d.InternalAdapter)
t.BitmovinPwxInternalAdapter=h},92:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.post=function(e,t,n,r){void 0===r&&(r=!0)
var o,a=!1
window.XDomainRequest?(o=new window.XDomainRequest,a=!0):o=new XMLHttpRequest
var s=function(){if(o.readyState==XMLHttpRequest.DONE){if(o.responseText<=0)return
var e=JSON.parse(o.responseText)
n(e)}}
a?o.onload=s:o.onreadystatechange=s
try{o.open("POST",e,r),a||o.setRequestHeader("Content-Type","text/plain"),o.send(JSON.stringify(t))}catch(e){i.logger.error("Failed to send POST request.",e)}}
var i=n(1916)},236: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)}),o=this&&this.__assign||function(){return o=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},o.apply(this,arguments)}
Object.defineProperty(t,"__esModule",{value:!0}),t.DashjsInternalAdapter=void 0
var a=n(2361),s=n(2168),c=n(556),l=n(7614),u=n(9557),d=n(1916),f=n(5063),p=n(7124),h=n(9991),g=function(e){function t(t,n){var i=e.call(this,void 0,n)||this
return i.getPlayerName=function(){return c.Player.DASHJS},i.getPlayerVersion=function(){return i.mediaPlayer.getVersion()},i.mediaPlayer=t,i}return r(t,e),t.prototype.initialize=function(t){var n=this
e.prototype.initialize.call(this,t)
var i=null
try{i=this.mediaPlayer.getVideoElement()}catch(e){}return i?(this.setMediaElement(i),this.registerMediaElementEventsForDashJS()):this.mediaPlayer.on("manifestLoaded",(function(){try{i=n.mediaPlayer.getVideoElement(),n.setMediaElement(i),n.registerMediaElementEventsForDashJS()}catch(e){d.logger.errorMessageToUser("Something went wrong while getting underlying HTMLVideoElement. Not possible to attach adapter and initialize Bitmovin Analytics. Error: ",e),n.release()}}),this),[new u.ErrorDetailTracking(t.errorDetailTrackingSettingsProvider,new l.ErrorDetailBackend(t.errorDetailTrackingSettingsProvider.collectorConfig),[t.errorDetailSubscribable],void 0)]},t.prototype.registerMediaElementEventsForDashJS=function(){var e=this,t=this.mediaElement
t&&this.listenToMediaElementEvent("playing",(function(){var n=t.currentTime
e.needsFirstPlayIntent=!1,e.eventCallback(a.Event.TIMECHANGED,{currentTime:n})}))},t.prototype.getCurrentPlaybackInfo=function(){var t=e.prototype.getCurrentPlaybackInfo.call(this),n=o({},t),i=(0,h.getCodecInfo)(this.mediaPlayer)
return this.sourceInfoFallbackService.applyAndStoreCodecInfo(n,i),n},t.prototype.getMIMEType=function(){return s.MIMETypes.DASH},t.prototype.getStreamURL=function(){if(this.mediaPlayer){var e=void 0
try{e=this.mediaPlayer.getSource()}catch(e){d.logger.warn("no source available",e)}return(0,f.isNotNullish)(e)?null==e?void 0:e.toString():void 0}},t.prototype.getCurrentQualityLevelInfo=function(){if(!this.mediaPlayer)return null
try{return(0,h.getQualityLevelInfo)(this.mediaPlayer)}catch(e){d.logger.warn("Quality information not available")}return null},t}(p.HTML5InternalAdapter)
t.DashjsInternalAdapter=g},348:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.Feature=void 0
var i=n(5063),r=function(){function e(){this._config=void 0,this._isEnabled=!0}return Object.defineProperty(e.prototype,"config",{get:function(){return this._config},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return this._isEnabled},enumerable:!1,configurable:!0}),e.prototype.disable=function(){this._isEnabled=!1,this.disabled()},e.prototype.configure=function(e,t){return(0,i.isNotNullish)(t)&&(this._config=this.extractConfig(t)),this.configured(e,this._config),this._config},e}()
t.Feature=r},399:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.LongPlaytimeFilteringBackend=void 0
var i=n(5063),r=function(){function e(e){this.nextBackend=e}return e.prototype.sendRequest=function(e){this.isPlayedAboveThreshold(e)||this.nextBackend.sendRequest(e)},e.prototype.sendUnloadRequest=function(e){this.isPlayedAboveThreshold(e)||this.nextBackend.sendUnloadRequest(e)},e.prototype.sendRequestSynchronous=function(e){this.isPlayedAboveThreshold(e)||this.nextBackend.sendRequestSynchronous(e)},e.prototype.sendAdRequest=function(e){this.nextBackend.sendAdRequest(e)},e.prototype.isPlayedAboveThreshold=function(e){return((0,i.isNullish)(e.played)?0:e.played)>=9e4},e}()
t.LongPlaytimeFilteringBackend=r},404:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.CodecHelper=void 0
var n={avc:['video/mp4; codecs="avc1.42000a"'],vp9:['video/mp4; codecs="vp09.00.50.08"'],av1:['video/mp4; codecs="av01.0.08M.08"'],hevc:['video/mp4; codecs="hev1.1.6.L93.B0"']},i=function(){function e(){}return Object.defineProperty(e,"supportedVideoFormats",{get:function(){var e=this
if("MediaSource"in window)return Object.getOwnPropertyNames(n).filter((function(t){return n[t].some((function(t){return e.isCodecSupported(t)}))}))},enumerable:!1,configurable:!0}),e.isCodecSupported=function(e){return"MediaSource"in window&&MediaSource.isTypeSupported(e)},e}()
t.CodecHelper=i},556:function(e,t){"use strict"
var n
Object.defineProperty(t,"__esModule",{value:!0}),t.Player=void 0,function(e){e.AMAZON_IVS="amazonivs",e.BITMOVIN="bitmovin",e.BITMOVIN_PWX="bitmovin-pwx",e.CHROMECAST_SHAKA="chromecast-shaka",e.DASHJS="dashjs",e.HLSJS="hlsjs",e.HTML5="html5",e.JW="jw",e.RADIANT="radiant",e.SHAKA="shaka",e.VIDEOJS="videojs"}(n||(t.Player=n={}))},665:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.SpeedMeterAdapter=void 0
var n=function(){function e(e,t){var n=this
this.meter=t,e.on(e.exports.PlayerEvent.DownloadFinished,(function(e){return n.handleOnDownloadFinishEvent(e)}))}return e.prototype.getDownloadSpeedMeter=function(){return this.meter},e.prototype.handleOnDownloadFinishEvent=function(e){e.success&&0===e.downloadType.indexOf("media/video")&&this.meter.addMeasurement({duration:e.downloadTime,size:e.size,timeToFirstByte:e.timeToFirstByte,timestamp:new Date,httpStatus:e.httpStatus})},e}()
t.SpeedMeterAdapter=n},675:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.EventDispatcher=void 0
var n=function(){function e(){this.callbacks=[]}return e.prototype.subscribe=function(e){var t=this
return this.callbacks.push(e),function(){return t.unsubscribe(e)}},e.prototype.dispatch=function(e){this.callbacks.slice(0).forEach((function(t){t(e)}))},e.prototype.unsubscribe=function(e){var t=this.callbacks.indexOf(e)
t>-1&&this.callbacks.splice(t,1)},Object.defineProperty(e.prototype,"subscriberCount",{get:function(){return this.callbacks.length},enumerable:!1,configurable:!0}),e}()
t.EventDispatcher=n},681:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerModule=void 0
var i=n(4679)
t.PlayerModule={name:"analytics",module:{Analytics:i.Bitmovin8Adapter},hooks:{setup:function(e,t){var n=t.getConfig(),i=!n,r=!1===(null==n?void 0:n.analytics)
if(i||r)return Promise.resolve()
var o=new(0,e.Analytics)(t)
return Promise.resolve(o)}}}},701:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLVideoElementAdapter=void 0
var i=n(5241),r=n(4350),o=n(8331),a=n(1916),s=n(2108),c=n(4926),l=n(7238),u=function(){function e(e,t,n,i){if((0,s.hasPlayerAlreadyBeenAugmented)(t))a.logger.errorMessageToUser("Bitmovin Analytics is already hooked up to this player instance")
else{(0,s.markPlayerInstanceAsAugmented)(t)
var c=(0,o.sanitizeAnalyticsConfig)(e);(0,o.guardAgainstDuplicatedUserId)(c),this.internalAdapter=new l.HTMLVideoElementInternalAdapter(t,n,i),this.analytics=r.Analytics.create(c,this.internalAdapter)}}return Object.defineProperty(e.prototype,"sessionMetadata",{get:function(){var e=this.internalAdapter
return{setAudioLanguage:function(t){e.sessionData.audioLanguage=(0,i.sanitizeSessionMetadataAudioLanguage)(t)},setSubtitleEnabled:function(t){e.sessionData.subtitleEnabled=(0,i.sanitizeSessionMetadataSubtitleEnabled)(t)},setSubtitleLanguage:function(t){e.sessionData.subtitleLanguage=(0,i.sanitizeSessionMetadataSubtitleLanguage)(t)}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return c.VERSION},enumerable:!1,configurable:!0}),e.prototype.getCurrentImpressionId=function(){if((0,s.isDefined)(this.analytics))return this.analytics.getCurrentImpressionId()},e.prototype.getUserId=function(){if((0,s.isDefined)(this.analytics))return this.analytics.getUserId()},e.prototype.setCustomData=function(e){(0,s.isDefined)(this.internalAdapter)&&this.internalAdapter.setCustomData(e)},e.prototype.setCustomDataOnce=function(e){(0,s.isDefined)(this.analytics)&&this.analytics.setCustomDataOnce(e)},e.prototype.sourceChange=function(e,t){if((0,s.isDefined)(this.analytics)&&(0,s.isDefined)(this.internalAdapter)){this.analytics.sourceChange(e)
var n=this.internalAdapter
n.sessionData.streamFormat=null==t?void 0:t.streamFormat,n.sessionData.audioCodec=null==t?void 0:t.audioCodec,n.sessionData.videoCodec=null==t?void 0:t.videoCodec,n.sessionData.audioLanguage=null==t?void 0:t.audioLanguage}},e.version=c.VERSION,e}()
t.HTMLVideoElementAdapter=u},716:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.isDifferentSubtitleInfo=void 0
var i=n(5063)
t.isDifferentSubtitleInfo=function(e,t){return!((0,i.isNullish)(e)&&(0,i.isNullish)(t)||(0,i.isNotNullish)(e)&&(0,i.isNotNullish)(t)&&e.enabled===t.enabled&&e.language===t.language)}},847:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.validateCookieMaxAgeValue=t.validateCookieDomainValue=t.SessionPersistenceHandler=t.COOKIE_DEFAULT_MAX_AGE=t.COOKIE_NAME_BITMOVIN_ANALYTICS_UUID=void 0
var i=n(4934),r=n(1820),o=n(5063),a=n(2982)
t.COOKIE_NAME_BITMOVIN_ANALYTICS_UUID="bitmovin_analytics_uuid",t.COOKIE_DEFAULT_MAX_AGE=31536e3
t.SessionPersistenceHandler=function(e){var n=e.config
if(!1===(null==n?void 0:n.cookiesEnabled))return(0,i.deleteCookie)(t.COOKIE_NAME_BITMOVIN_ANALYTICS_UUID),void(this.userId=(0,a.generateUUID)())
var o=(0,i.getCookie)(t.COOKIE_NAME_BITMOVIN_ANALYTICS_UUID)
this.userId=(0,r.isBlank)(o)?(0,a.generateUUID)():o
var s=(0,t.validateCookieDomainValue)(null==n?void 0:n.cookiesDomain),c=(0,t.validateCookieMaxAgeValue)(null==n?void 0:n.cookiesMaxAge),l=Date.now(),u=new Date(l+1e3*c).toUTCString();(0,i.setCookie)(t.COOKIE_NAME_BITMOVIN_ANALYTICS_UUID,this.userId,{domain:s,expires:u,maxAge:c})},t.validateCookieDomainValue=function(e){if(!(0,o.isNullish)(e)&&(0,r.isValidString)(e)&&!(0,r.isBlank)(e))return encodeURIComponent(e)},t.validateCookieMaxAgeValue=function(e){return(0,o.isNullish)(e)?t.COOKIE_DEFAULT_MAX_AGE:(0,o.isNumber)(e)?e:t.COOKIE_DEFAULT_MAX_AGE}},887:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.Bitmovin8AdModule=void 0
var i=n(5517),r=function(){function e(e,t){var n=this
this.player=e,this.windowEventTracker=t,this.adCallbacks=new i.AdCallbacks,this.isLinearAdActive=function(){return n.player.ads&&n.player.ads.isLinearAdActive()||!1},this.getContainer=function(){return n.player.getContainer()},this.getAdModuleInfo=function(){return n.player.ads?n.player.ads.getModuleInfo():{name:void 0,version:void 0}},this.currentTime=function(){return n.player.getCurrentTime()},this.register()}return e.prototype.register=function(){var e=this
this.player.on(this.player.exports.PlayerEvent.Play,(function(t){"advertising-api"===t.issuer&&e.adCallbacks.onPlay(t.issuer)})),this.player.on(this.player.exports.PlayerEvent.Paused,(function(t){"advertising-api"===t.issuer&&e.adCallbacks.onPause(t.issuer)})),this.player.on(this.player.exports.PlayerEvent.AdStarted,(function(t){e.adCallbacks.onAdStarted(t)})),this.player.on(this.player.exports.PlayerEvent.AdFinished,(function(t){e.adCallbacks.onAdFinished(t)})),this.player.on(this.player.exports.PlayerEvent.AdBreakStarted,(function(t){e.adCallbacks.onAdBreakStarted(t)})),this.player.on(this.player.exports.PlayerEvent.AdBreakFinished,(function(t){e.adCallbacks.onAdBreakFinished(t)})),this.player.on(this.player.exports.PlayerEvent.AdClicked,(function(t){e.adCallbacks.onAdClicked(t)})),this.player.on(this.player.exports.PlayerEvent.AdQuartile,(function(t){e.adCallbacks.onAdQuartile(t)})),this.player.on(this.player.exports.PlayerEvent.AdSkipped,(function(t){e.adCallbacks.onAdSkipped(t)})),this.player.on(this.player.exports.PlayerEvent.AdError,(function(t){e.adCallbacks.onAdError(t)})),this.player.on(this.player.exports.PlayerEvent.AdManifestLoaded,(function(t){e.adCallbacks.onAdManifestLoaded(t)}))
var t=function(){e.adCallbacks.onBeforeUnload()}
this.windowEventTracker.addEventListener("beforeunload",t),this.windowEventTracker.addEventListener("unload",t)},e}()
t.Bitmovin8AdModule=r},1125:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.QueueBackend=void 0
var n=function(){function e(){this.queue=[],this.unloadQueue=[],this.syncQueue=[],this.adQueue=[]}return e.prototype.sendRequest=function(e){this.queue.push(e)},e.prototype.sendUnloadRequest=function(e){this.unloadQueue.push(e)},e.prototype.sendRequestSynchronous=function(e){this.syncQueue.push(e)},e.prototype.sendAdRequest=function(e){this.adQueue.push(e)},e.prototype.flushTo=function(e){this.queue.forEach((function(t){e.sendRequest(t)})),this.unloadQueue.forEach((function(t){e.sendUnloadRequest(t)})),this.syncQueue.forEach((function(t){e.sendRequestSynchronous(t)})),this.adQueue.forEach((function(t){e.sendAdRequest(t)}))},e}()
t.QueueBackend=n},1601: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)}),o=this&&this.__assign||function(){return o=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},o.apply(this,arguments)}
Object.defineProperty(t,"__esModule",{value:!0}),t.getHlsCurrentLevel=t.getHlsCodecInfo=t.HlsInternalAdapter=void 0
var a=n(9664),s=n(2361),c=n(2168),l=n(556),u=n(7614),d=n(9557),f=n(5063),p=n(7124),h=n(7922),g=n(4778),m=function(e){function n(n,i){var r=e.call(this,void 0,i)||this
return r.getPlayerName=function(){return l.Player.HLSJS},r.getPlayerVersion=function(){return r.hls.constructor.version},r.isLive=function(){var e=(0,t.getHlsCurrentLevel)(r.hls)
if(!(0,f.isNullish)(null==e?void 0:e.details))return e.details.live},r.onDestroying=function(){r.eventCallback(s.Event.SOURCE_UNLOADED,{}),r.release()},r.hls=n,r.speedMeter=new g.HlsSpeedMeterAdapter(n,new a.DownloadSpeedMeter).getDownloadSpeedMeter(),r}return r(n,e),Object.defineProperty(n.prototype,"downloadSpeedInfo",{get:function(){return this.speedMeter.getInfo()},enumerable:!1,configurable:!0}),n.prototype.initialize=function(t){return e.prototype.initialize.call(this,t),this.registerHlsEvents(),[new d.ErrorDetailTracking(t.errorDetailTrackingSettingsProvider,new u.ErrorDetailBackend(t.errorDetailTrackingSettingsProvider.collectorConfig),[t.errorDetailSubscribable],void 0)]},n.prototype.clearValues=function(){this.speedMeter.reset()},n.prototype.getCurrentQualityLevelInfo=function(){var e=(0,t.getHlsCurrentLevel)(this.hls)
return e?{bitrate:e.bitrate,width:e.width,height:e.height}:null},n.prototype.getMIMEType=function(){return c.MIMETypes.HLS},n.prototype.getStreamURL=function(){return this.hls.url},n.prototype.registerHlsEvents=function(){this.hls.on(h.HLS_PLAYER_EVENT.MEDIA_ATTACHING,this.onMediaAttaching.bind(this)),this.hls.on(h.HLS_PLAYER_EVENT.MEDIA_DETACHING,this.onMediaDetaching.bind(this)),this.hls.on(h.HLS_PLAYER_EVENT.MANIFEST_LOADING,this.onManifestLoading.bind(this)),this.hls.on(h.HLS_PLAYER_EVENT.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched.bind(this)),this.hls.on(h.HLS_PLAYER_EVENT.SUBTITLE_TRACK_SWITCH,this.onSubtitleLanguageSwitched.bind(this)),this.hls.on(h.HLS_PLAYER_EVENT.DESTROYING,this.onDestroying.bind(this)),this.hls.on(h.HLS_PLAYER_EVENT.ERROR,this.onHlsError.bind(this)),this.hls.media&&(this.onMediaAttaching(),this.onManifestLoading())},n.prototype.onMediaAttaching=function(){this.mediaElement||(this.mediaElement=this.hls.media,this.registerMediaElement(),this.onMaybeReady())},n.prototype.onMediaDetaching=function(){this.unregisterMediaElement()},n.prototype.onManifestLoading=function(){this.onMaybeReady()},n.prototype.getCurrentPlaybackInfo=function(){var n=this.getSelectedSubtitleLanguage(),i=o(o({},e.prototype.getCurrentPlaybackInfo.call(this)),{audioLanguage:this.getSelectedAudioLanguage(),subtitleEnabled:(0,f.isNotNullish)(n)?n.enabled:void 0,subtitleLanguage:(0,f.isNotNullish)(n)?n.language:void 0}),r=(0,t.getHlsCodecInfo)(this.hls)
return this.sourceInfoFallbackService.applyAndStoreCodecInfo(i,r),i},n.prototype.onHlsError=function(e,t){if(!t||t.fatal){var n=this.mediaElement,i=void 0;(0,f.isNotNullish)(n)&&(i=n.currentTime)
var r=(0,f.isNotNullish)(t)?"".concat(t.type,": ").concat(t.details):void 0
this.eventCallback(s.Event.ERROR,{currentTime:i,code:this.getErrorCodeFromHlsErrorType(t.type),message:r,data:{}})}},n.prototype.onAudioTrackSwitched=function(e,t){var n,i=this.mediaElement;(0,f.isNotNullish)(i)&&(n=i.currentTime),this.eventCallback(s.Event.AUDIOTRACK_CHANGED,{currentTime:n})},n.prototype.onSubtitleLanguageSwitched=function(e,t){var n,i=this.mediaElement;(0,f.isNotNullish)(i)&&(n=i.currentTime),this.eventCallback(s.Event.SUBTITLE_CHANGE,{currentTime:n})},n.prototype.getErrorCodeFromHlsErrorType=function(e){switch(e){case"networkError":return 2
case"mediaError":return 3
case"keySystemError":return 4
case"muxError":return 5
default:return 1}},n.prototype.getSelectedAudioLanguage=function(){if(!((0,f.isNullish)(this.hls.audioTrack)||this.hls.audioTrack<0))return this.hls.audioTracks[this.hls.audioTrack].lang},n.prototype.getSelectedSubtitleLanguage=function(){if((0,f.isNotNullish)(this.hls.subtitleDisplay)){var e=this.hls.subtitleTrack>=0&&!0===this.hls.subtitleDisplay
return{enabled:e,language:e?this.hls.subtitleTracks[this.hls.subtitleTrack].lang:void 0}}var t=this.hls.subtitleTrackController
if((0,f.isNotNullish)(t)&&(0,f.isNotNullish)(t.media))return this.getSelectedSubtitleFromMediaElement(t.media)},n}(p.HTML5InternalAdapter)
t.HlsInternalAdapter=m,t.getHlsCodecInfo=function(e){var n=(0,t.getHlsCurrentLevel)(e)
if(n)return{videoCodec:n.videoCodec,audioCodec:n.audioCodec}},t.getHlsCurrentLevel=function(e){if(!(0,f.isNullish)(e.levels)&&0!==e.levels.length&&(0,f.isNumber)(e.currentLevel)&&!(e.currentLevel<0))return e.levels[e.currentLevel]}},1652:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.EventDebugging=void 0
t.EventDebugging=function(e,t,n,i,r){this.event=e,this.from=t,this.to=n,this.timestamp=i,this.eventObject=r}},1820:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.startsWith=t.endsWith=t.isBlank=t.isEmpty=t.isValidString=void 0
var i=n(5063)
t.isValidString=function(e){return(0,i.isNotNullish)(e)&&"string"==typeof e},t.isEmpty=function(e){return(0,i.isNullish)(e)||0===e.length},t.isBlank=function(e){return(0,t.isEmpty)(e)||(0,t.isEmpty)(null==e?void 0:e.trim())},t.endsWith=function(e,n){return!(!(0,t.isValidString)(e)||!(0,t.isValidString)(n))&&((0,i.isNotNullish)(String.prototype.endsWith)?e.endsWith(n):e.substring(e.length-n.length)===n)},t.startsWith=function(e,n){return!(!(0,t.isValidString)(e)||!(0,t.isValidString)(n))&&((0,i.isNotNullish)(String.prototype.startsWith)?e.startsWith(n):e.substring(0,n.length)===n)}},1916:function(e,t){"use strict"
var n=this&&this.__spreadArray||function(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))}
Object.defineProperty(t,"__esModule",{value:!0}),t.logger=t.padRight=void 0
var i=function(){function e(){}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.initialize=function(e){this.analyticsDebugConfig=e},e.prototype.log=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]
this.enabled&&console.log(e,t)},e.prototype.table=function(e,t){this.enabled&&console.table(e,t)},e.prototype.warn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]
this.enabled&&console.warn(e,t)},e.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]
this.enabled&&console.error(e,t)},e.prototype.errorMessageToUser=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i]
console.error.apply(console,n([e],t,!1))},Object.defineProperty(e.prototype,"enabled",{get:function(){return this.analyticsDebugConfig||!1},enumerable:!1,configurable:!0}),e}()
t.padRight=function(e,t){return(e+new Array(t).join(" ")).slice(0,t)},t.logger=i.getInstance()},2063:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.ShakaAdapter=void 0
var i=n(4350),r=n(2361),o=n(8331),a=n(1916),s=n(2108),c=n(4926),l=n(2092),u=function(){function e(e,t,n){if((0,s.hasPlayerAlreadyBeenAugmented)(t))a.logger.errorMessageToUser("Bitmovin Analytics is already hooked up to this player instance")
else{(0,s.markPlayerInstanceAsAugmented)(t)
var r=(0,o.sanitizeAnalyticsConfig)(e);(0,o.guardAgainstDuplicatedUserId)(r),this.internalAdapter=new l.ShakaInternalAdapter(t,n),this.analytics=i.Analytics.create(r,this.internalAdapter),this.wrapPlayerLoad(t)}}return e.prototype.wrapPlayerLoad=function(e){var t,n=Object.getPrototypeOf(e),i=null!==(t=Object.getOwnPropertyDescriptor(e,"load"))&&void 0!==t?t:Object.getOwnPropertyDescriptor(n,"load")
if(!0===(null==i?void 0:i.writable)||void 0!==(null==i?void 0:i.set)){var o=e.load,s=this.internalAdapter
e.load=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n]
return new Promise((function(n,i){o.apply(e,t).then((function(e){return n(e)})).catch((function(e){var t,n={currentTime:0,code:null!==(t=null==e?void 0:e.code)&&void 0!==t?t:void 0,message:JSON.stringify({category:null==e?void 0:e.category,severity:null==e?void 0:e.severity}),data:{additionalData:JSON.stringify(null==e?void 0:e.data)}}
s.eventCallback(r.Event.ERROR,n),i(e)}))}))}}else a.logger.errorMessageToUser("Bitmovin Analytics is unable to intercept player.load method. The provided Shaka player instance appears to be a proxy object (e.g. created via Shaka UI Library). Ensure you provide the local player instance instead.")},Object.defineProperty(e.prototype,"version",{get:function(){return c.VERSION},enumerable:!1,configurable:!0}),e.prototype.getCurrentImpressionId=function(){if((0,s.isDefined)(this.analytics))return this.analytics.getCurrentImpressionId()},e.prototype.getUserId=function(){if((0,s.isDefined)(this.analytics))return this.analytics.getUserId()},e.prototype.setCustomData=function(e){(0,s.isDefined)(this.internalAdapter)&&this.internalAdapter.setCustomData(e)},e.prototype.setCustomDataOnce=function(e){(0,s.isDefined)(this.analytics)&&this.analytics.setCustomDataOnce(e)},e.prototype.sourceChange=function(e){(0,s.isDefined)(this.analytics)&&this.analytics.sourceChange(e)},e.version=c.VERSION,e}()
t.ShakaAdapter=u},2092: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)}),o=this&&this.__assign||function(){return o=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},o.apply(this,arguments)}
Object.defineProperty(t,"__esModule",{value:!0}),t.getShakaStreamFormat=t.getShakaCodecInfo=t.ShakaInternalAdapter=void 0
var a=n(2361),s=n(556),c=n(7224),l=n(7614),u=n(9557),d=n(1916),f=n(5063),p=n(7124),h=n(4654),g=function(e){function n(t,n){var i=e.call(this,t.getMediaElement(),n)||this
return i.player=t,i.getPlayerName=function(){return s.Player.SHAKA},i.getPlayerVersion=function(){return i.player.constructor.version},i.isLive=function(){return i.player?i.player.isLive():void 0},i.registerMediaElementErrorEvent=function(e){i.player.addEventListener(h.ShakaPlayerEvent.ERROR,(function(e){var t,n,r,o,s,c,l,u,d,f,p
i.eventCallback(a.Event.ERROR,{currentTime:null!==(n=null===(t=i.mediaElement)||void 0===t?void 0:t.currentTime)&&void 0!==n?n:0,code:null!==(o=null===(r=e.detail)||void 0===r?void 0:r.code)&&void 0!==o?o:void 0,message:null!==(c=null===(s=e.detail)||void 0===s?void 0:s.message)&&void 0!==c?c:void 0,data:{additionalData:JSON.stringify(e.detail),exceptionMessage:null!==(u=null===(l=e.detail)||void 0===l?void 0:l.message)&&void 0!==u?u:void 0,exceptionStacktrace:null!==(p=null===(f=null===(d=e.detail)||void 0===d?void 0:d.stack)||void 0===f?void 0:f.split("\n"))&&void 0!==p?p:void 0}})}))},i}return r(n,e),n.prototype.initialize=function(t){var n,i=this
e.prototype.initialize.call(this,t)
try{n=this.player.getMediaElement()}catch(e){}if((0,f.isNotNullish)(n))this.setMediaElement(n)
else{var r=function(e){if("media-source"===e.state)try{i.player.removeEventListener(h.ShakaPlayerEvent.ONSTATECHANGE,r),i.setMediaElement(i.player.getMediaElement())}catch(e){d.logger.errorMessageToUser("Something went wrong while getting underlying HTMLVideoElement. Not possible to attach adapter and initialize Bitmovin Analytics. Error: ",e),i.release()}}
this.player.addEventListener(h.ShakaPlayerEvent.ONSTATECHANGE,r)}return this.player.addEventListener(h.ShakaPlayerEvent.BUFFERING,(function(e){i.checkQualityLevelAttributes()})),this.player.addEventListener(h.ShakaPlayerEvent.ONSTATECHANGE,(function(e){"detach"===e.state&&(i.eventCallback(a.Event.UNLOAD,{}),i.release())})),[new u.ErrorDetailTracking(t.errorDetailTrackingSettingsProvider,new l.ErrorDetailBackend(t.errorDetailTrackingSettingsProvider.collectorConfig),[t.errorDetailSubscribable],void 0)]},n.prototype.getCurrentPlaybackInfo=function(){var n=o({},e.prototype.getCurrentPlaybackInfo.call(this)),i=(0,t.getShakaCodecInfo)(this.player)
return this.sourceInfoFallbackService.applyAndStoreCodecInfo(n,i),n},n.prototype.getStreamType=function(){return(0,t.getShakaStreamFormat)(this.player)},n.prototype.getStreamURL=function(){return this.player?this.player.getAssetUri():null},n.prototype.getCurrentQualityLevelInfo=function(){var e=this.player.getVariantTracks().filter((function(e){return e.active})).filter((function(e){return e.videoCodec||void 0!==e.videoId}))[0]
return e?{bitrate:e.videoBandwidth||e.bandwidth,width:e.width,height:e.height}:null},n}(p.HTML5InternalAdapter)
t.ShakaInternalAdapter=g,t.getShakaCodecInfo=function(e){var t=e.getVariantTracks().find((function(e){return e.active}))
return{videoCodec:null==t?void 0:t.videoCodec,audioCodec:null==t?void 0:t.audioCodec}},t.getShakaStreamFormat=function(e){var t,n
if(e){var i=null===(n=null===(t=e.getManifestType)||void 0===t?void 0:t.call(e))||void 0===n?void 0:n.toLowerCase()
return i===c.StreamTypes.dash?c.StreamTypes.dash:i===c.StreamTypes.hls?c.StreamTypes.hls:(0,f.isNullish)(i)&&3===e.getLoadMode()&&(0,f.isNotNullish)(e.getAssetUri())?c.StreamTypes.prog:void 0}}},2108:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.BITMOVIN_ANALYTICS_AUGMENTED_MARKER=void 0,t.hasPlayerAlreadyBeenAugmented=function(e){return!0===e[t.BITMOVIN_ANALYTICS_AUGMENTED_MARKER]},t.markPlayerInstanceAsAugmented=function(e){e[t.BITMOVIN_ANALYTICS_AUGMENTED_MARKER]=!0},t.isDefined=function(e){return!(0,r.isNullish)(e)||(i.logger.log("Bitmovin Analytics: Adapter hasn't been initialized yet"),!1)}
var i=n(1916),r=n(5063)
t.BITMOVIN_ANALYTICS_AUGMENTED_MARKER="__bitmovinAnalyticsHasBeenSetup"},2168:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.MIMETypes=void 0,t.getMIMETypeFromFileExtension=function(e){return e=e.split(/[?#]/)[0].toLowerCase(),(0,i.endsWith)(e,".m3u8")?a:(0,i.endsWith)(e,".mp4")||(0,i.endsWith)(e,".m4v")||(0,i.endsWith)(e,".m4a")?r:(0,i.endsWith)(e,".webm")?o:(0,i.endsWith)(e,".mpd")?s:void 0}
var i=n(1820),r="video/mp4",o="video/webm",a="application/x-mpegURL",s="application/dash+xml"
t.MIMETypes={MP4:r,WEBM:o,HLS:a,DASH:s}},2226:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.NoOpBackend=void 0
var n=function(){function e(){}return e.prototype.sendRequest=function(e){},e.prototype.sendUnloadRequest=function(e){},e.prototype.sendRequestSynchronous=function(e){},e.prototype.sendAdRequest=function(e){},e}()
t.NoOpBackend=n},2235:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.AmazonIVSPlayerEventHandler=void 0
var i=n(1916),r=n(3037),o=n(9810),a=n(4025),s=function(){function e(e,t,n){this.videoStartupService=e,this.playbackService=t,this.errorService=n}return e.prototype.onRebuffering=function(){i.logger.log("onRebuffering"),this.playbackService.onRebuffering()},e.prototype.onDurationChanged=function(e){i.logger.log("onDurationChanged: "+e)},e.prototype.onError=function(e){i.logger.log("onError: "+JSON.stringify(e)),this.errorService.onError(e)},e.prototype.onInitialized=function(){i.logger.log("onInitialized"),this.videoStartupService.finishedStartup||this.videoStartupService.onInitialized()},e.prototype.onQualityChanged=function(e){i.logger.log("onQualityChanged: "+JSON.stringify(e)),this.playbackService.onQualityChange(e)},e.prototype.onTimeUpdate=function(e){i.logger.log("onTimeUpdate: "+e)},e.prototype.onPlay=function(e){this.videoStartupService.finishedStartup?i.logger.log("onPlay:",e):this.videoStartupService.onPlay()},e.prototype.onPause=function(e){this.videoStartupService.finishedStartup&&(i.logger.log("onPause:",e),this.playbackService.onPause())},e.prototype.onPlaying=function(e){i.logger.log("onPlaying:",e),this.videoStartupService.finishedStartup?this.playbackService.onPlaying():(this.videoStartupService.onPlaying(),this.playbackService.onStartupPlaying())},e.prototype.onSeek=function(){this.videoStartupService.finishedStartup&&this.playbackService.onSeek()},e.prototype.onSeeked=function(){this.videoStartupService.finishedStartup&&this.playbackService.onSeeked()},e.create=function(t,n,i){return new e(new a.VideoStartupService(t,n,i),o.PlaybackService.create(t,n,i),new r.ErrorService(t,n))},e}()
t.AmazonIVSPlayerEventHandler=s},2361:function(e,t){"use strict"
var n
Object.defineProperty(t,"__esModule",{value:!0}),t.Event=void 0,function(e){e.AUDIO_CHANGE="audioChange",e.AUDIOTRACK_CHANGED="audioTrackChanged",e.CUSTOM_DATA_CHANGE="customDataChange",e.END="end",e.END_AD="adEnd",e.END_BUFFERING="endBuffering",e.END_CAST="endCasting",e.END_FULLSCREEN="endFullscreen",e.ERROR="playerError",e.MANUAL_SOURCE_CHANGE="manualSourceChangeInitiated",e.MUTE="mute",e.PAUSE="pause",e.PLAY="play",e.PLAYING="playing",e.PLAYLIST_TRANSITION="playlistTransition",e.READY="ready",e.SCREEN_RESIZE="resize",e.SEEK="seek",e.SEEKED="seeked",e.SETUP="setup",e.SOURCE_LOADED="sourceLoaded",e.SOURCE_UNLOADED="sourceUnloaded",e.START_AD="adStart",e.START_BUFFERING="startBuffering",e.START_CAST="startCasting",e.START_FULLSCREEN="startFullscreen",e.SUBTITLE_CHANGE="subtitleChange",e.TIMECHANGED="timechanged",e.UN_MUTE="unMute",e.UNLOAD="unload",e.VIDEO_CHANGE="videoChange",e.VIDEOSTART_TIMEOUT="VIDEOSTART_TIMEOUT"}(n||(t.Event=n={}))},2364:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.RemoteBackend=void 0
var i=n(5426),r=n(5063),o=function(){function e(e,t,n){this.licenseKey=n,this.hasAdModule=e,this.analyticsCall=new i.AnalyticsCall(t)}return e.prototype.sendRequest=function(e){e.key=this.licenseKey,this.analyticsCall.sendRequest(e,r.noOp)},e.prototype.sendUnloadRequest=function(e){e.key=this.licenseKey,this.analyticsCall.sendUnloadRequest(e)},e.prototype.sendRequestSynchronous=function(e){e.key=this.licenseKey,this.analyticsCall.sendRequestSynchronous(e,r.noOp)},e.prototype.sendAdRequest=function(e){e.key=this.licenseKey,this.hasAdModule&&this.analyticsCall.sendAdRequest(e)},e}()
t.RemoteBackend=o},2376:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.WindowEventTracker=void 0
var n=function(){function e(){this.trackedObjects=[]}return e.prototype.addEventListener=function(e,t){this.trackedObjects.push({eventName:e,func:t}),window.addEventListener(e,t)},e.prototype.release=function(){for(;0!==this.trackedObjects.length;){var e=this.trackedObjects.pop()
void 0!==e&&window.removeEventListener(e.eventName,e.func)}},e}()
t.WindowEventTracker=n},2403: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}),t.Bitmovin8AnalyticsStateMachine=void 0
var o,a=n(2595),s=n(2361),c=n(6608),l=n(1652),u=n(1916),d=n(5063),f=n(7596),p=n(8253)
!function(e){e.AD_PAUSE="AD_PAUSE",e.AD_PLAYING="AD_PLAYING",e.AD_READY="AD_READY",e.AD_STARTUP="AD_STARTUP",e.AUDIOTRACK_CHANGING="AUDIOTRACK_CHANGING",e.CASTING="CASTING",e.CUSTOMDATACHANGE="CUSTOMDATACHANGE",e.END="END",e.END_PLAY_SEEKING="END_PLAY_SEEKING",e.ERROR="ERROR",e.INITIAL_SOURCE_CHANGE="INITIAL_SOURCE_CHANGE",e.MUTING_PAUSE="MUTING_PAUSE",e.MUTING_PLAY="MUTING_PLAY",e.MUTING_READY="MUTING_READY",e.PAUSE="PAUSE",e.PLAY_SEEKING="PLAY_SEEKING",e.PLAYING="PLAYING",e.QUALITYCHANGE="QUALITYCHANGE",e.QUALITYCHANGE_PAUSE="QUALITYCHANGE_PAUSE",e.QUALITYCHANGE_REBUFFERING="QUALITYCHANGE_REBUFFERING",e.READY="READY",e.REBUFFERING="REBUFFERING",e.SETUP="SETUP",e.SOURCE_CHANGING="SOURCE_CHANGING",e.STARTUP="STARTUP",e.STARTUP_FAILURE="STARTUP_FAILURE",e.SUBTITLE_CHANGING="SUBTITLE_CHANGING"}(o||(o={}))
var h=function(e){function t(t,n,i){var r=e.call(this,t,i)||this
return r.debuggingStates=[],r.enabledDebugging=!1,r.playingHeartbeatService=n,r}return r(t,e),t.prototype.getAllStatesBut=function(e){return this.getAllStates().filter((function(t){return e.indexOf(t)<0}))},t.prototype.getAllStates=function(){return Object.keys(o).map((function(e){return o[e]}))},t.prototype.createStateMachine=function(e){var t,n=this
return a.create({initial:o.SETUP,error:p.customStateMachineErrorCallback,events:[{name:s.Event.SOURCE_LOADED,from:[o.SETUP,o.ERROR,o.SOURCE_CHANGING,o.INITIAL_SOURCE_CHANGE],to:o.READY},{name:s.Event.PLAY,from:o.READY,to:o.STARTUP},{name:s.Event.PLAYING,from:o.READY,to:o.PLAYING},(0,p.on)(s.Event.READY).stayIn(o.READY),(0,p.on)(s.Event.VIDEO_CHANGE).stayIn(o.READY),(0,p.on)(s.Event.AUDIO_CHANGE).stayIn(o.READY),{name:s.Event.ERROR,from:[o.STARTUP,o.AD_STARTUP],to:o.STARTUP_FAILURE},{name:s.Event.UNLOAD,from:[o.STARTUP,o.AD_STARTUP],to:o.STARTUP_FAILURE},{name:s.Event.VIDEOSTART_TIMEOUT,from:o.STARTUP,to:o.STARTUP_FAILURE},(0,p.on)(s.Event.PLAY).stayIn(o.STARTUP),(0,p.on)(s.Event.PLAYING).stayIn(o.STARTUP),{name:s.Event.TIMECHANGED,from:o.STARTUP,to:o.PLAYING},(0,p.on)(s.Event.START_BUFFERING).stayIn(o.STARTUP),(0,p.on)(s.Event.END_BUFFERING).stayIn(o.STARTUP),(0,p.on)(s.Event.VIDEO_CHANGE).stayIn(o.STARTUP),(0,p.on)(s.Event.AUDIO_CHANGE).stayIn(o.STARTUP),(0,p.on)(s.Event.READY).stayIn(o.STARTUP),{name:s.Event.PAUSE,from:o.STARTUP,to:o.READY},(0,p.on)(s.Event.PLAYING).stayIn(o.PLAYING),(0,p.on)(s.Event.TIMECHANGED).stayIn(o.PLAYING),(0,p.on)(s.Event.END_BUFFERING).stayIn(o.PLAYING),{name:s.Event.START_BUFFERING,from:o.PLAYING,to:o.REBUFFERING},{name:s.Event.END_BUFFERING,from:o.REBUFFERING,to:o.PLAYING},(0,p.on)(s.Event.TIMECHANGED).stayIn(o.REBUFFERING),{name:s.Event.PAUSE,from:o.PLAYING,to:o.PAUSE},{name:s.Event.PAUSE,from:o.REBUFFERING,to:o.PAUSE},{name:s.Event.PLAY,from:o.PAUSE,to:o.PLAYING},{name:s.Event.VIDEO_CHANGE,from:o.PLAYING,to:o.QUALITYCHANGE},{name:s.Event.AUDIO_CHANGE,from:o.PLAYING,to:o.QUALITYCHANGE},(0,p.on)(s.Event.VIDEO_CHANGE).stayIn(o.QUALITYCHANGE),(0,p.on)(s.Event.AUDIO_CHANGE).stayIn(o.QUALITYCHANGE),{name:"FINISH_QUALITYCHANGE",from:o.QUALITYCHANGE,to:o.PLAYING},{name:s.Event.VIDEO_CHANGE,from:o.PAUSE,to:o.QUALITYCHANGE_PAUSE},{name:s.Event.AUDIO_CHANGE,from:o.PAUSE,to:o.QUALITYCHANGE_PAUSE},(0,p.on)(s.Event.VIDEO_CHANGE).stayIn(o.QUALITYCHANGE_PAUSE),(0,p.on)(s.Event.AUDIO_CHANGE).stayIn(o.QUALITYCHANGE_PAUSE),{name:"FINISH_QUALITYCHANGE_PAUSE",from:o.QUALITYCHANGE_PAUSE,to:o.PAUSE},{name:s.Event.SEEK,from:o.PLAYING,to:o.PLAY_SEEKING},{name:s.Event.PLAY,from:o.PLAY_SEEKING,to:o.END_PLAY_SEEKING},{name:s.Event.PLAYING,from:o.PLAY_SEEKING,to:o.END_PLAY_SEEKING},{name:s.Event.SEEKED,from:o.PLAY_SEEKING,to:o.END_PLAY_SEEKING},{name:s.Event.SEEK,from:o.END_PLAY_SEEKING,to:o.PLAY_SEEKING},{name:s.Event.PLAYING,from:o.END_PLAY_SEEKING,to:o.PLAYING},{name:s.Event.TIMECHANGED,from:o.END_PLAY_SEEKING,to:o.PLAYING},{name:s.Event.PAUSE,from:[o.PLAY_SEEKING,o.END_PLAY_SEEKING],to:o.PAUSE},(0,p.on)(s.Event.SEEK).stayIn(o.PLAY_SEEKING),(0,p.on)(s.Event.AUDIO_CHANGE).stayIn(o.PLAY_SEEKING),(0,p.on)(s.Event.VIDEO_CHANGE).stayIn(o.PLAY_SEEKING),(0,p.on)(s.Event.START_BUFFERING).stayIn(o.PLAY_SEEKING),(0,p.on)(s.Event.END_BUFFERING).stayIn(o.PLAY_SEEKING),(0,p.on)(s.Event.START_BUFFERING).stayIn(o.END_PLAY_SEEKING),(0,p.on)(s.Event.END_BUFFERING).stayIn(o.END_PLAY_SEEKING),(0,p.on)(s.Event.SEEKED).stayIn(o.END_PLAY_SEEKING),(0,p.on)(s.Event.PLAY).stayIn(o.END_PLAY_SEEKING),(0,p.on)(s.Event.SEEK).stayIn(o.PAUSE),(0,p.on)(s.Event.SEEKED).stayIn(o.PAUSE),(0,p.on)(s.Event.SEEKED).stayIn(o.PLAYING),{name:s.Event.END,from:o.PLAY_SEEKING,to:o.END},{name:s.Event.END,from:o.PLAYING,to:o.END},{name:s.Event.END,from:o.PAUSE,to:o.END},(0,p.on)(s.Event.SEEK).stayIn(o.END),(0,p.on)(s.Event.SEEKED).stayIn(o.END),(0,p.on)(s.Event.TIMECHANGED).stayIn(o.END),(0,p.on)(s.Event.END_BUFFERING).stayIn(o.END),(0,p.on)(s.Event.START_BUFFERING).stayIn(o.END),(0,p.on)(s.Event.END).stayIn(o.END),{name:s.Event.PLAY,from:o.END,to:o.STARTUP},{name:s.Event.ERROR,from:this.getAllStatesBut([o.STARTUP]),to:o.ERROR},{name:s.Event.UNLOAD,from:this.getAllStatesBut([o.STARTUP,o.AD_STARTUP]),to:o.END},{name:s.Event.CUSTOM_DATA_CHANGE,from:[o.PLAYING,o.PAUSE],to:o.CUSTOMDATACHANGE},{name:s.Event.PLAYING,from:o.CUSTOMDATACHANGE,to:o.PLAYING},{name:s.Event.PAUSE,from:o.CUSTOMDATACHANGE,to:o.PAUSE},{name:s.Event.SUBTITLE_CHANGE,from:o.PLAYING,to:o.SUBTITLE_CHANGING},(0,p.on)(s.Event.SUBTITLE_CHANGE).stayIn(o.PAUSE),(0,p.on)(s.Event.SUBTITLE_CHANGE).stayIn(o.REBUFFERING),(0,p.on)(s.Event.SUBTITLE_CHANGE).stayIn(o.END_PLAY_SEEKING),(0,p.on)(s.Event.SUBTITLE_CHANGE).stayIn(o.SUBTITLE_CHANGING),{name:s.Event.TIMECHANGED,from:o.SUBTITLE_CHANGING,to:o.PLAYING},{name:s.Event.AUDIOTRACK_CHANGED,from:o.PLAYING,to:o.AUDIOTRACK_CHANGING},(0,p.on)(s.Event.AUDIOTRACK_CHANGED).stayIn(o.PAUSE),(0,p.on)(s.Event.AUDIOTRACK_CHANGED).stayIn(o.REBUFFERING),(0,p.on)(s.Event.AUDIOTRACK_CHANGED).stayIn(o.END_PLAY_SEEKING),(0,p.on)(s.Event.AUDIOTRACK_CHANGED).stayIn(o.AUDIOTRACK_CHANGING),{name:s.Event.TIMECHANGED,from:o.AUDIOTRACK_CHANGING,to:o.PLAYING},{name:s.Event.START_AD,from:o.STARTUP,to:o.AD_STARTUP},{name:s.Event.END_AD,from:o.AD_STARTUP,to:o.STARTUP},(0,p.on)(s.Event.PLAY).stayIn(o.AD_STARTUP),(0,p.on)(s.Event.PAUSE).stayIn(o.AD_STARTUP),{name:s.Event.START_AD,from:o.READY,to:o.AD_READY},{name:s.Event.END_AD,from:o.AD_READY,to:o.STARTUP},(0,p.on)(s.Event.PLAY).stayIn(o.AD_READY),(0,p.on)(s.Event.PAUSE).stayIn(o.AD_READY),{name:s.Event.START_AD,from:o.PAUSE,to:o.AD_PAUSE},{name:s.Event.END_AD,from:o.AD_PAUSE,to:o.PAUSE},(0,p.on)(s.Event.PLAY).stayIn(o.AD_PAUSE),(0,p.on)(s.Event.PAUSE).stayIn(o.AD_PAUSE),{name:s.Event.START_AD,from:o.PLAYING,to:o.AD_PLAYING},{name:s.Event.END_AD,from:o.AD_PLAYING,to:o.PLAYING},(0,p.on)(s.Event.PLAY).stayIn(o.AD_PLAYING),(0,p.on)(s.Event.PAUSE).stayIn(o.AD_PLAYING),{name:s.Event.END,from:o.AD_PLAYING,to:o.END},(0,p.on)(s.Event.TIMECHANGED).stayIn(o.AD_STARTUP),(0,p.on)(s.Event.TIMECHANGED).stayIn(o.AD_READY),(0,p.on)(s.Event.TIMECHANGED).stayIn(o.AD_PAUSE),(0,p.on)(s.Event.TIMECHANGED).stayIn(o.AD_PLAYING),(0,p.on)(s.Event.END_AD).stayIn(o.PLAYING),(0,p.on)(s.Event.END_AD).stayIn(o.PAUSE),(0,p.on)(s.Event.END_AD).stayIn(o.READY),(0,p.on)(s.Event.END_AD).stayIn(o.STARTUP),{name:s.Event.MUTE,from:o.READY,to:o.MUTING_READY},{name:s.Event.UN_MUTE,from:o.READY,to:o.MUTING_READY},{name:"FINISH_MUTING",from:o.MUTING_READY,to:o.READY},{name:s.Event.MUTE,from:o.PLAYING,to:o.MUTING_PLAY},{name:s.Event.UN_MUTE,from:o.PLAYING,to:o.MUTING_PLAY},{name:"FINISH_MUTING",from:o.MUTING_PLAY,to:o.PLAYING},{name:s.Event.MUTE,from:o.PAUSE,to:o.MUTING_PAUSE},{name:s.Event.UN_MUTE,from:o.PAUSE,to:o.MUTING_PAUSE},{name:"FINISH_MUTING",from:o.MUTING_PAUSE,to:o.PAUSE},{name:s.Event.START_CAST,from:[o.READY,o.PAUSE,o.PLAYING],to:o.CASTING},(0,p.on)(s.Event.PAUSE).stayIn(o.CASTING),(0,p.on)(s.Event.PLAY).stayIn(o.CASTING),(0,p.on)(s.Event.PLAYING).stayIn(o.CASTING),(0,p.on)(s.Event.TIMECHANGED).stayIn(o.CASTING),(0,p.on)(s.Event.MUTE).stayIn(o.CASTING),(0,p.on)(s.Event.UN_MUTE).stayIn(o.CASTING),(0,p.on)(s.Event.SEEK).stayIn(o.CASTING),(0,p.on)(s.Event.SEEKED).stayIn(o.CASTING),{name:s.Event.END_CAST,from:o.CASTING,to:o.READY},(0,p.on)(s.Event.SEEK).stayIn(o.READY),(0,p.on)(s.Event.SEEKED).stayIn(o.READY),(0,p.on)(s.Event.SEEKED).stayIn(o.STARTUP),{name:s.Event.MANUAL_SOURCE_CHANGE,from:this.getAllStatesBut([o.SETUP]),to:o.SOURCE_CHANGING},{name:s.Event.MANUAL_SOURCE_CHANGE,from:o.SETUP,to:o.INITIAL_SOURCE_CHANGE},{name:s.Event.SOURCE_UNLOADED,from:this.getAllStates(),to:o.SOURCE_CHANGING},{name:s.Event.VIDEO_CHANGE,from:o.REBUFFERING,to:o.QUALITYCHANGE_REBUFFERING},{name:s.Event.AUDIO_CHANGE,from:o.REBUFFERING,to:o.QUALITYCHANGE_REBUFFERING},(0,p.on)(s.Event.VIDEO_CHANGE).stayIn(o.QUALITYCHANGE_REBUFFERING),(0,p.on)(s.Event.AUDIO_CHANGE).stayIn(o.QUALITYCHANGE_REBUFFERING),{name:"FINISH_QUALITYCHANGE_REBUFFERING",from:o.QUALITYCHANGE_REBUFFERING,to:o.REBUFFERING}],callbacks:(t={onbeforeevent:function(e,t,n,i,r){if(t===o.REBUFFERING&&n===o.QUALITYCHANGE_REBUFFERING)return!1},onafterevent:function(e,t,i,r,a){e===s.Event.MANUAL_SOURCE_CHANGE&&t===o.SETUP?n.stateMachineCallbacks.initialSourceChange(a):e===s.Event.MANUAL_SOURCE_CHANGE&&n.stateMachineCallbacks.manualSourceChange(a),i===o.QUALITYCHANGE_PAUSE&&n.stateMachine.FINISH_QUALITYCHANGE_PAUSE(r),i===o.QUALITYCHANGE&&n.stateMachine.FINISH_QUALITYCHANGE(r),i===o.QUALITYCHANGE_REBUFFERING&&n.stateMachine.FINISH_QUALITYCHANGE_REBUFFERING(r),i!==o.MUTING_READY&&i!==o.MUTING_PLAY&&i!==o.MUTING_PAUSE||n.stateMachine.FINISH_MUTING(r)},onenterstate:function(t,i,r,a,c){"none"===i&&e.starttime?n.onEnterStateTimestamp=e.starttime:n.onEnterStateTimestamp=a||(new Date).getTime(),u.logger.log("[ENTER ".concat(a,"] ").concat((0,u.padRight)(r,20)," EVENT: ").concat((0,u.padRight)(t,20)," from: ").concat((0,u.padRight)(i,14))),!c||r===o.END_PLAY_SEEKING||i===o.PLAY_SEEKING||i===o.AD_STARTUP||i===o.AD_READY||i===o.AD_PLAYING||i===o.AD_PAUSE||t===s.Event.SEEK&&i===o.END_PLAY_SEEKING||n.stateMachineCallbacks.setVideoTimeStartFromEvent(c),t===s.Event.START_CAST&&r===o.CASTING&&n.stateMachineCallbacks.startCasting(a,c),r===o.REBUFFERING&&n.startRebufferingHeartbeatInterval()},onleavestate:function(e,t,i,r,a){if(t===o.REBUFFERING&&n.resetRebufferingHelpers(),r){u.logger.log("[LEAVE ".concat(r,"] ").concat((0,u.padRight)(t,20)," EVENT: ").concat((0,u.padRight)(e,20)," to: ").concat((0,u.padRight)(i,20))),n.addStatesToLog(e,t,i,r,a)
var l=r-n.onEnterStateTimestamp
a&&i!==o.END_PLAY_SEEKING&&n.stateMachineCallbacks.setVideoTimeEndFromEvent(a),a&&e!==s.Event.END_AD&&(n.lastTrackedVideoEndObject=a),t!==o.READY&&t!==o.AD_STARTUP||i!==o.STARTUP?t!==o.STARTUP||i!==o.PLAYING&&i!==o.AD_STARTUP||n.clearVideoStartTimeout():n.setVideoStartTimeout()
var f=String(t).toLowerCase()
if(i===o.STARTUP_FAILURE)n.clearVideoStartTimeout(),n.stateMachineCallbacks.videoStartupFailed((0,c.createStartupFailureReason)(e))
else if(t===o.END_PLAY_SEEKING)(0,d.noOp)()
else if(e===s.Event.UNLOAD)n.stateMachineCallbacks.unload(l,f)
else if(t===o.AD_PAUSE||t===o.AD_READY||t===o.AD_PLAYING||t===o.AD_STARTUP)n.stateMachineCallbacks.setVideoTimeStartFromEvent(n.lastTrackedVideoEndObject),n.stateMachineCallbacks.setVideoTimeEndFromEvent(n.lastTrackedVideoEndObject),n.stateMachineCallbacks.ad(l,"ad")
else if(e===s.Event.START_AD&&t===o.STARTUP)(0,d.noOp)()
else if(e===s.Event.SOURCE_LOADED&&t===o.INITIAL_SOURCE_CHANGE)(0,d.noOp)()
else if(t===o.SETUP)n.stateMachineCallbacks.setup(1,o.SETUP.toLowerCase())
else if(e===s.Event.PAUSE&&t===o.STARTUP&&i===o.READY)n.clearVideoStartTimeout()
else if(t!==o.ERROR){var h=n.stateMachineCallbacks[f]
if("function"==typeof h)try{h(l,f,a)}catch(e){u.logger.error("Exception occurred in State Machine callback "+f,a,e)}else(0,p.logMissingCallbackWarning)(t,[o.READY,o.SOURCE_CHANGING])}a&&i!==o.END_PLAY_SEEKING&&t!==o.PLAY_SEEKING&&i!==o.PLAY_SEEKING&&t!==o.AD_STARTUP&&t!==o.AD_READY&&t!==o.AD_PLAYING&&t!==o.AD_PAUSE&&n.stateMachineCallbacks.setVideoTimeStartFromEvent(a),e===s.Event.VIDEO_CHANGE?n.stateMachineCallbacks.videoChange(a):e===s.Event.AUDIO_CHANGE?n.stateMachineCallbacks.audioChange(a):e===s.Event.MUTE?n.stateMachineCallbacks.mute():e===s.Event.UN_MUTE&&n.stateMachineCallbacks.unMute()}}},t["onenter".concat(o.PLAY_SEEKING)]=function(e,t,i,r){t!==o.END_PLAY_SEEKING&&(n.seekStartTimestamp=r)},t["onleave".concat(o.PLAY_SEEKING)]=function(e,t,i,r){var a
if(i!==o.END_PLAY_SEEKING){var s=r-(null!==(a=n.seekStartTimestamp)&&void 0!==a?a:r)
n.seekStartTimestamp=void 0,n.stateMachineCallbacks.end_play_seeking(s,"end_play_seeking")}},t["onleave".concat(o.END_PLAY_SEEKING)]=function(e,t,i,r,a){var s
if(i!==o.PLAY_SEEKING){var c=r-(null!==(s=n.seekStartTimestamp)&&void 0!==s?s:r)
n.seekStartTimestamp=void 0,n.stateMachineCallbacks.setVideoTimeEndFromEvent(a),n.stateMachineCallbacks.end_play_seeking(c,"end_play_seeking")}},t.onplayerError=function(e,t,i,r,o){n.stateMachineCallbacks.error(o)},t["onenter".concat(o.PLAYING)]=function(){n.playingHeartbeatService.startHeartbeat()},t["onleave".concat(o.PLAYING)]=function(){n.playingHeartbeatService.stopHeartbeat()},t)})},t.prototype.callEvent=function(e,t,n){var i=this.stateMachine[e]
if(i)try{i.call(this.stateMachine,n,t)}catch(n){u.logger.error("Exception occured in State Machine callback "+e,i,t,n)}else u.logger.log("Ignored Event: "+e)},t.prototype.onSsaiPlaybackInteraction=function(e,t){this.currentState==o.PLAYING&&this.sendCurrentStateSample(e,t,!0)},t.prototype.getStates=function(){return this.debuggingStates},t.prototype.setEnabledDebugging=function(e){this.enabledDebugging=e},t.prototype.onHeartbeat=function(e){var t=Date.now()
this.sendCurrentStateSample(t,e)},t.prototype.addStatesToLog=function(e,t,n,i,r){this.enabledDebugging&&this.debuggingStates.push(new l.EventDebugging(e,t,n,i,r))},t.prototype.sendCurrentStateSample=function(e,t,n){void 0===n&&(n=!1),this.stateMachineCallbacks.setVideoTimeEndFromEvent(t)
var i=e-this.onEnterStateTimestamp,r=this.stateMachine.current.toLowerCase(),o=(0,p.createHeartbeatPayload)(i,r,n)
this.stateMachineCallbacks.heartbeat(i,r,o),this.onEnterStateTimestamp=e,this.stateMachineCallbacks.setVideoTimeStartFromEvent(t)},t}(f.AnalyticsStateMachine)
t.Bitmovin8AnalyticsStateMachine=h},2506:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.BitmovinPwxAnalyticsPackage=void 0
var i,r,o=n(2767),a=n(7299)
t.BitmovinPwxAnalyticsPackage=(i=function(e,t){var n,i,r=t.registry.get(a.CoreExportNames.CoreEffects),s=r.EventListenerEffectFactory,c=r.StateEffectFactory,l=t.using(s,c),u=l.registry.get(a.BundleExportNames.Logger),d=l.registry.get(a.SourceExportNames.SourceState),f=l.registry.get(a.BundleExportNames.PlayerConfig),p=null!==(n=f.analytics)&&void 0!==n?n:{}
p.playerKey=null!==(i=p.playerKey)&&void 0!==i?i:f.key,u.log("Applying analytics config ".concat(JSON.stringify(p)))
var h=new o.BitmovinPwxAdapter(l,p)
u.log('Analytics package initializing for "'.concat(d.url,'"...'))
var g=function(){l.abortSignal.removeEventListener("abort",g),u.log('Analytics package disposing for "'.concat(d.url,'"')),h.dispose()}
l.abortSignal.addEventListener("abort",g)},r=[a.BundleExportNames.Logger,a.BundleExportNames.PlayerConfig,a.CoreExportNames.Constants,a.CoreExportNames.CoreEffects,a.CoreExportNames.CoreStateAtoms,a.SourceExportNames.SourceState,a.SourcesApiExportNames.SourceEventBus,a.PlaybackApiEventsPackageExportNames.PlaybackEvent],i._name="analytics-package",{onAdd:i,dependencies:r})},2595:function(e,t){var n
n={VERSION:"2.4.0",Result:{SUCCEEDED:1,NOTRANSITION:2,CANCELLED:3,PENDING:4},Error:{INVALID_TRANSITION:100,PENDING_TRANSITION:200,INVALID_CALLBACK:300},WILDCARD:"*",ASYNC:"async",create:function(e,t){var i="string"==typeof e.initial?{state:e.initial}:e.initial,r=e.terminal||e.final,o=t||e.target||{},a=e.events||[],s=e.callbacks||{},c={},l={},u=function(e){var t=Array.isArray(e.from)?e.from:e.from?[e.from]:[n.WILDCARD]
c[e.name]=c[e.name]||{}
for(var i=0;i<t.length;i++)l[t[i]]=l[t[i]]||[],l[t[i]].push(e.name),c[e.name][t[i]]=e.to||t[i]
e.to&&(l[e.to]=l[e.to]||[])}
i&&(i.event=i.event||"startup",u({name:i.event,from:"none",to:i.state}))
for(var d=0;d<a.length;d++)u(a[d])
for(var f in c)c.hasOwnProperty(f)&&(o[f]=n.buildEvent(f,c[f]))
for(var f in s)s.hasOwnProperty(f)&&(o[f]=s[f])
return o.current="none",o.is=function(e){return Array.isArray(e)?e.indexOf(this.current)>=0:this.current===e},o.can=function(e){return!this.transition&&void 0!==c[e]&&(c[e].hasOwnProperty(this.current)||c[e].hasOwnProperty(n.WILDCARD))},o.cannot=function(e){return!this.can(e)},o.transitions=function(){return(l[this.current]||[]).concat(l[n.WILDCARD]||[])},o.isFinished=function(){return this.is(r)},o.error=e.error||function(e,t,n,i,r,o,a){throw a||o},o.states=function(){return Object.keys(l).sort()},i&&!i.defer&&o[i.event](),o},doCallback:function(e,t,i,r,o,a){if(t)try{return t.apply(e,[i,r,o].concat(a))}catch(t){return e.error(i,r,o,a,n.Error.INVALID_CALLBACK,"an exception occurred in a caller-provided callback function",t)}},beforeAnyEvent:function(e,t,i,r,o){return n.doCallback(e,e.onbeforeevent,t,i,r,o)},afterAnyEvent:function(e,t,i,r,o){return n.doCallback(e,e.onafterevent||e.onevent,t,i,r,o)},leaveAnyState:function(e,t,i,r,o){return n.doCallback(e,e.onleavestate,t,i,r,o)},enterAnyState:function(e,t,i,r,o){return n.doCallback(e,e.onenterstate||e.onstate,t,i,r,o)},changeState:function(e,t,i,r,o){return n.doCallback(e,e.onchangestate,t,i,r,o)},beforeThisEvent:function(e,t,i,r,o){return n.doCallback(e,e["onbefore"+t],t,i,r,o)},afterThisEvent:function(e,t,i,r,o){return n.doCallback(e,e["onafter"+t]||e["on"+t],t,i,r,o)},leaveThisState:function(e,t,i,r,o){return n.doCallback(e,e["onleave"+i],t,i,r,o)},enterThisState:function(e,t,i,r,o){return n.doCallback(e,e["onenter"+r]||e["on"+r],t,i,r,o)},beforeEvent:function(e,t,i,r,o){if(!1===n.beforeThisEvent(e,t,i,r,o)||!1===n.beforeAnyEvent(e,t,i,r,o))return!1},afterEvent:function(e,t,i,r,o){n.afterThisEvent(e,t,i,r,o),n.afterAnyEvent(e,t,i,r,o)},leaveState:function(e,t,i,r,o){var a=n.leaveThisState(e,t,i,r,o),s=n.leaveAnyState(e,t,i,r,o)
return!1!==a&&!1!==s&&(n.ASYNC===a||n.ASYNC===s?n.ASYNC:void 0)},enterState:function(e,t,i,r,o){n.enterThisState(e,t,i,r,o),n.enterAnyState(e,t,i,r,o)},buildEvent:function(e,t){return function(){var i=this.current,r=t[i]||(t[n.WILDCARD]!=n.WILDCARD?t[n.WILDCARD]:i)||i,o=Array.prototype.slice.call(arguments)
if(this.transition)return this.error(e,i,r,o,n.Error.PENDING_TRANSITION,"event "+e+" inappropriate because previous transition did not complete")
if(this.cannot(e))return this.error(e,i,r,o,n.Error.INVALID_TRANSITION,"event "+e+" inappropriate in current state "+this.current)
if(!1===n.beforeEvent(this,e,i,r,o))return n.Result.CANCELLED
if(i===r)return n.afterEvent(this,e,i,r,o),n.Result.NOTRANSITION
var a=this
this.transition=function(){return a.transition=null,a.current=r,n.enterState(a,e,i,r,o),n.changeState(a,e,i,r,o),n.afterEvent(a,e,i,r,o),n.Result.SUCCEEDED},this.transition.cancel=function(){a.transition=null,n.afterEvent(a,e,i,r,o)}
var s=n.leaveState(this,e,i,r,o)
return!1===s?(this.transition=null,n.Result.CANCELLED):n.ASYNC===s?n.Result.PENDING:this.transition?this.transition():void 0}}},e.exports&&(t=e.exports=n),t.StateMachine=n},2647: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}),t.InternalAdapter=void 0
var r=n(675),o=n(9796),a=n(4916),s=n(4300),c=n(2361),l=n(4820),u=n(1916),d=n(5063),f=n(2376),p=function(){function e(e){var t=this
this.stateMachineCallbacks=i({},l.defaultStateMachineCallbacks),this.qualityChangeService=new o.default,this.ssaiService=new s.SsaiService,this._onLicenseKeyReceived=new r.EventDispatcher,this._onLicenseCallFailed=new r.EventDispatcher,this.sourceInfoFallbackService=new a.SourceInfoFallbackService,this.drmPerformanceInfo=void 0,this._windowEventTracker=new f.WindowEventTracker,this.eventCallback=function(e,n){n=n||{},t.stateMachine?t.stateMachine.callEvent(e,n,(0,d.getCurrentTimestamp)()):u.logger.log("Bitmovin Analytics: StateMachine isn't ready yet")},e||(e={starttime:void 0}),e.starttime||(e.starttime=(0,d.getCurrentTimestamp)()),this.opts=e}return Object.defineProperty(e.prototype,"windowEventTracker",{get:function(){return this._windowEventTracker},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onLicenseKeyReceived",{get:function(){return this._onLicenseKeyReceived},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onLicenseCallFailed",{get:function(){return this._onLicenseCallFailed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"downloadSpeedInfo",{get:function(){return{segmentsDownloadCount:0,segmentsDownloadSize:0,segmentsDownloadTime:0,avgDownloadSpeed:0,minDownloadSpeed:0,maxDownloadSpeed:0,avgTimeToFirstByte:0}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"segments",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.release=function(){this.stateMachine.resetIntervals(),this.stateMachineCallbacks.release(),this.resetSourceRelatedState(),this._windowEventTracker.release()},e.prototype.getCommonPlaybackInfo=function(){var e=1
return window.devicePixelRatio>0&&(e=window.devicePixelRatio),{screenHeight:window.screen.height*e,screenWidth:window.screen.width*e}},e.prototype.clearValues=function(){},e.prototype.clearSegments=function(){},e.prototype.resetSourceRelatedState=function(){this.sourceInfoFallbackService.reset(),this.drmPerformanceInfo=void 0},e.prototype.setCustomData=function(e){var t=this.stateMachine.currentState
!this.stateMachine.currentState||"PAUSE"!==this.stateMachine.currentState&&"PLAYING"!==this.stateMachine.currentState?this.stateMachineCallbacks.customdatachange(void 0,void 0,{values:e}):(this.eventCallback(c.Event.CUSTOM_DATA_CHANGE,{currentTime:this.currentTime}),this.eventCallback(c.Event[t],{values:e,currentTime:this.currentTime}))},e.prototype.isAudioMuted=function(e,t){return e||t<.01},e}()
t.InternalAdapter=p},2663:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.HeartbeatService=t.DEFAULT_HEARTBEAT_INTERVAL_MS=void 0,t.DEFAULT_HEARTBEAT_INTERVAL_MS=59700
var n=function(){function e(e){this.getPlayerCurrentTime=e}return e.prototype.setListener=function(e){this.listener=e},e.prototype.startHeartbeat=function(){var e=this
void 0!==this.heartbeatInterval&&this.clearHeartbeat(),this.heartbeatInterval=window.setInterval((function(){var t,n={currentTime:e.getPlayerCurrentTime()}
null===(t=e.listener)||void 0===t||t.onHeartbeat(n)}),t.DEFAULT_HEARTBEAT_INTERVAL_MS)},e.prototype.stopHeartbeat=function(){this.clearHeartbeat()},e.prototype.clearHeartbeat=function(){window.clearTimeout(this.heartbeatInterval),this.heartbeatInterval=void 0},e}()
t.HeartbeatService=n},2751:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.AmazonIVSPlayerEventListener=t.IVS_PLAYER_EVENT=void 0
var i=n(2235)
t.IVS_PLAYER_EVENT={DURATION_CHANGED:"PlayerDurationChanged",ERROR:"PlayerError",INITIALIZED:"PlayerInitialized",QUALITY_CHANGED:"PlayerQualityChanged",REBUFFERING:"PlayerRebuffering",SEEK_COMPLETED:"PlayerSeekCompleted",TIME_UPDATE:"PlayerTimeUpdate",PLAYBACK_RATE_CHANGED:"PlayerPlaybackRateChanged",PLAYBACK_BLOCKED:"PlayerPlaybackBlocked"}
var r=function(){function e(e){this.eventHandler=e}return e.prototype.startMonitoring=function(e){this.startMonitoringIVSPlayer(e),this.startMonitoringHTMLVideoElement(e.getHTMLVideoElement())},e.prototype.startMonitoringHTMLVideoElement=function(e){e.addEventListener("play",this.eventHandler.onPlay.bind(this.eventHandler)),e.addEventListener("playing",this.eventHandler.onPlaying.bind(this.eventHandler)),e.addEventListener("pause",this.eventHandler.onPause.bind(this.eventHandler)),e.addEventListener("seeking",this.eventHandler.onSeek.bind(this.eventHandler)),e.addEventListener("seeked",this.eventHandler.onSeeked.bind(this.eventHandler))},e.prototype.startMonitoringIVSPlayer=function(e){e.addEventListener(t.IVS_PLAYER_EVENT.REBUFFERING,this.eventHandler.onRebuffering.bind(this.eventHandler)),e.addEventListener(t.IVS_PLAYER_EVENT.DURATION_CHANGED,this.eventHandler.onDurationChanged.bind(this.eventHandler)),e.addEventListener(t.IVS_PLAYER_EVENT.ERROR,this.eventHandler.onError.bind(this.eventHandler)),e.addEventListener(t.IVS_PLAYER_EVENT.INITIALIZED,this.eventHandler.onInitialized.bind(this.eventHandler)),e.addEventListener(t.IVS_PLAYER_EVENT.QUALITY_CHANGED,this.eventHandler.onQualityChanged.bind(this.eventHandler)),e.addEventListener(t.IVS_PLAYER_EVENT.TIME_UPDATE,this.eventHandler.onTimeUpdate.bind(this.eventHandler))},e.create=function(t,n,r){return new e(i.AmazonIVSPlayerEventHandler.create(t,n,r))},e}()
t.AmazonIVSPlayerEventListener=r},2767:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.BitmovinPwxAdapter=void 0
var i=n(4350),r=n(8331),o=n(4926),a=n(28),s=function(){function e(e,t){var n=this
this.getCurrentImpressionId=function(){return n.analytics.getCurrentImpressionId()},this.getUserId=function(){return n.analytics.getUserId()},this.setCustomData=function(e){return n.internalAdapter.setCustomData(e)},this.setCustomDataOnce=function(e){return n.analytics.setCustomDataOnce(e)},this.sourceChange=function(e){return n.analytics.sourceChange(e)}
var o=(0,r.sanitizeAnalyticsConfig)(t);(0,r.guardAgainstDuplicatedUserId)(o),this.internalAdapter=new a.BitmovinPwxInternalAdapter(e),this.analytics=i.Analytics.create(o,this.internalAdapter)}return e.prototype.dispose=function(){this.internalAdapter.release()},Object.defineProperty(e.prototype,"version",{get:function(){return o.VERSION},enumerable:!1,configurable:!0}),e.version=o.VERSION,e}()
t.BitmovinPwxAdapter=s},2857:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.SourceUrlProvider=void 0
t.SourceUrlProvider=function(){}},2982:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.generateUUID=void 0,t.generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0
return("x"===e?t:3&t|8).toString(16)}))}},3003:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.PauseEventDispatcher=void 0
var i,r=n(2361)
!function(e){e[e.IDLE=0]="IDLE",e[e.PAUSE_SCHEDULED=1]="PAUSE_SCHEDULED",e[e.PAUSE_CANCELLED=2]="PAUSE_CANCELLED"}(i||(i={}))
var o=function(){function e(e,t){this.dispatcher=e,this.playerContext=t,this.EVENT_DELAY_MS=10,this.state=i.IDLE}return e.prototype.cancelPause=function(){this.state==i.PAUSE_SCHEDULED&&(this.state=i.PAUSE_CANCELLED)},e.prototype.schedulePauseEvent=function(){var e=this
if(this.state!=i.PAUSE_SCHEDULED){this.state=i.PAUSE_SCHEDULED
var t={currentTime:this.playerContext.position}
setTimeout((function(){e.triggerPause(t),e.state=i.IDLE}),this.EVENT_DELAY_MS,this)}},e.prototype.triggerPause=function(e){this.state!=i.PAUSE_CANCELLED&&this.dispatcher.eventCallback(r.Event.PAUSE,e)},e}()
t.PauseEventDispatcher=o},3037:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorService=void 0
var i=n(2361),r=function(){function e(e,t){this.dispatcher=e,this.playerContext=t}return e.prototype.onError=function(e){var t={currentTime:this.playerContext.position,code:e.code,message:e.message,data:{exceptionMessage:e.message,exceptionStacktrace:[e.source]}}
this.dispatcher.eventCallback(i.Event.ERROR,t)},e}()
t.ErrorService=r},3054:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.BackendFactory=void 0
var i=n(5253),r=n(4649),o=n(7540),a=n(3489),s=n(399),c=n(2226),l=n(7390),u=function(){function e(){}return e.prototype.createBackend=function(e,t,n,i){if(!this.isEnabled(e))return new c.NoOpBackend
var r=this.createInnerBackend(e,t,n,i)
return this.decorateWithDebuggingBackend(e,r)},e.prototype.decorateWithDebuggingBackend=function(e,t){return e.debug?new o.DebuggingBackend(e,t):t},e.prototype.decorateWithBackendFromConfigIfAvailable=function(e,t){return void 0!==e&&void 0!==e.config&&void 0!==e.config.wrapBackend?e.config.wrapBackend(t):t},e.prototype.isEnabled=function(e){return void 0===e.config||!1!==e.config.enabled},e.prototype.createInnerBackend=function(e,t,n,o){var c=e.config&&e.config.backendUrl||r.ANALYTICS_BACKEND_BASE_URL,u=new a.LicenseCheckingBackend(t,i.LicenseCall,c,n,o)
u=this.decorateWithBackendFromConfigIfAvailable(e,u)
var d=new l.SequenceNumberBackend(u)
return new s.LongPlaytimeFilteringBackend(d)},e}()
t.BackendFactory=u},3129:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.Queue=void 0
var n=function(){function e(){this._items=[]}return Object.defineProperty(e.prototype,"items",{get:function(){return this._items},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._items.length},enumerable:!1,configurable:!0}),e.prototype.offer=function(e){this._items.push(e)},e.prototype.poll=function(){return this._items.shift()},e.prototype.clear=function(){this._items.splice(0)},e.prototype.limit=function(e){for(;this._items.length>e;)this.poll()},e}()
t.Queue=n},3236: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}),t.CAFv3InternalAdapter=void 0
var o=n(3674),a=n(2663),s=n(2361),c=n(556),l=n(7614),u=n(9557),d=n(3413),f=n(5063),p=function(e){function t(t,n){var i=e.call(this,n)||this
i.context=t,i.getPlayerName=function(){return c.Player.CHROMECAST_SHAKA},i.getPlayerTech=function(){return"html5"},i.getAutoPlay=function(){return!(!i.currentItem||!i.currentItem.autoplay)&&i.currentItem.autoplay},i.getDrmPerformanceInfo=function(){return i.drmPerformanceInfo}
var r=new a.HeartbeatService((function(){return t.getPlayerManager().getCurrentTimeSec()})),s=new o.HTML5AnalyticsStateMachine(i.stateMachineCallbacks,r,i.opts)
return r.setListener(s),i.playerManager=t.getPlayerManager(),i.stateMachine=s,i.isSeeking=!1,i}return r(t,e),t.prototype.initialize=function(e){return this.register(),[new u.ErrorDetailTracking(e.errorDetailTrackingSettingsProvider,new l.ErrorDetailBackend(e.errorDetailTrackingSettingsProvider.collectorConfig),[e.errorDetailSubscribable],void 0)]},t.prototype.getPlayerVersion=function(){return window.cast&&window.cast.framework?window.cast.framework.VERSION:"unknown"},t.prototype.sourceChange=function(e){this.stateMachine.callManualSourceChangeEvent(e,this.playerManager.getCurrentTimeSec())},t.prototype.getCurrentPlaybackInfo=function(){var e=this.playerManager.getStats()
return{isLive:this.getIsLive(),playerTech:this.getPlayerTech(),videoDuration:(0,d.normalizeVideoDuration)(this.mediaInformation?this.mediaInformation.duration:0),videoPlaybackHeight:e.height,videoPlaybackWidth:e.width,audioCodec:this.activeAudioTrack?this.activeAudioTrack.trackContentType:void 0,audioLanguage:this.activeAudioTrack?this.activeAudioTrack.language:void 0,subtitleLanguage:this.activeTextTracks?this.activeTextTracks.map((function(e){return e.language})).join(","):void 0,droppedFrames:0}},t.prototype.register=function(){var e=this
this.playerManager.addEventListener("PLAYER_LOADING",(function(t){e.eventCallback(s.Event.SETUP,{})})),this.playerManager.addEventListener("PLAYER_LOAD_COMPLETE",(function(t){var n=e.playerManager.getAudioTracksManager()
e.activeAudioTrack=n.getActiveTrack()
var i=e.playerManager.getTextTracksManager()
e.activeTextTracks=i.getActiveTracks()
var r=e.playerManager.getQueueManager()
e.currentItem=r.getCurrentItem(),e.mediaInformation=t.media,e.eventCallback(s.Event.READY,{})})),this.playerManager.addEventListener("PLAY",(function(t){e.eventCallback(s.Event.PLAY,{currentTime:t.currentMediaTime})})),this.playerManager.addEventListener("PAUSE",(function(t){e.onPaused(e.playerManager.getCurrentTimeSec())})),this.playerManager.addEventListener("ERROR",(function(t){var n=(0,f.isNotNullish)(t.error)?t.error:void 0
e.eventCallback(s.Event.ERROR,{currentTime:e.playerManager.getCurrentTimeSec(),code:t.detailedErrorCode,message:t.reason,legacyData:n,data:{additionalData:JSON.stringify(n)}})})),this.playerManager.addEventListener("SEEKING",(function(t){e.isSeeking=!0,e.onPaused(t.currentMediaTime),e.eventCallback(s.Event.SEEK,{currentTime:t.currentMediaTime})})),this.playerManager.addEventListener("SEEKED",(function(t){e.isSeeking=!1,e.eventCallback(s.Event.SEEKED,{currentTime:t.currentMediaTime})})),this.playerManager.addEventListener("STALLED",(function(e){})),this.playerManager.addEventListener("BUFFERING",(function(t){!e.isSeeking&&t.isBuffering&&e.eventCallback(s.Event.START_BUFFERING,{currentTime:e.currentTime})})),this.playerManager.addEventListener("TIME_UPDATE",(function(t){e.isSeeking||e.eventCallback(s.Event.TIMECHANGED,{currentTime:t.currentMediaTime})})),this.playerManager.addEventListener("REQUEST_LOAD",(function(t){e.currentItem&&e.eventCallback(s.Event.PLAYLIST_TRANSITION,{currentTime:e.playerManager.getCurrentTimeSec()})}))},t.prototype.onPaused=function(e){this.eventCallback(s.Event.PAUSE,{currentTime:e})},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.playerManager.getCurrentTimeSec()},enumerable:!1,configurable:!0}),t.prototype.getIsLive=function(){return!(!this.mediaInformation||"LIVE"!==this.mediaInformation.streamType)||!!this.playerManager.getLiveSeekableRange()||void 0},t}(n(2647).InternalAdapter)
t.CAFv3InternalAdapter=p},3413:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeVideoDuration=function(e){return(0,i.isNullish)(e)||Number.isNaN(e)||e===1/0?0:e}
var i=n(5063)},3458:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorCode=void 0
var n=function(){function e(e,t){this.code=e,this.message=t}return e.BITMOVIN_PLAYER_LICENSING_ERROR=new e(1103,""),e.SETUP_MISSING_LICENSE_WHITELIST=new e(1105,""),e.QUALITY_CHANGE_THRESHOLD_EXCEEDED=new e(1e4,"ANALYTICS_QUALITY_CHANGE_THRESHOLD_EXCEEDED"),e.BUFFERING_TIMEOUT_REACHED=new e(10001,"ANALYTICS_BUFFERING_TIMEOUT_REACHED"),e.VIDEO_STARTUP_TIMEOUT_REACHED=new e(10002,"ANALYTICS_VIDEOSTART_TIMEOUT_REACHED"),e}()
t.ErrorCode=n},3489: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}),t.LicenseCheckingBackend=void 0
var r=n(4501),o=n(1916),a=n(4649),s=n(2226),c=n(1125),l=n(2364),u=function(){function e(e,t,n,r,o){var l=this
this.licenseCall=t,this.backendBaseUrl=n,this.adapter=r,this.authenticationCallback=o,this.licenseKeyReceived=function(e){clearTimeout(l.licenseLazyLoadingTimeoutHandle),l.unsubscribeFromAdapter(),l.info.key=e.licenseKey,l.promise=l.wrapLicenseCheckPromiseWithCallback(l.performLicenseCheck(),l.authenticationCallback)},this.licenseCallFailed=function(){clearTimeout(l.licenseLazyLoadingTimeoutHandle),l.unsubscribeFromAdapter(),l.backend=new s.NoOpBackend,l.authenticationCallback.authenticationCompleted(!1,void 0)},this.licenseLazyLoadingTimeout=function(){l.unsubscribeFromAdapter(),l.backend=new s.NoOpBackend,l.authenticationCallback.authenticationCompleted(!1,void 0)},this.info=i({},e),this.backend=new c.QueueBackend,this.licenseCall=t,void 0!==e.key&&""!==e.key?this.promise=this.wrapLicenseCheckPromiseWithCallback(this.performLicenseCheck(),this.authenticationCallback):!0===r.supportsDeferredLicenseLoading?(r.onLicenseKeyReceived.subscribe(this.licenseKeyReceived),r.onLicenseCallFailed.subscribe(this.licenseCallFailed),this.licenseLazyLoadingTimeoutHandle=window.setTimeout(this.licenseLazyLoadingTimeout,a.ANALYTICS_LICENSECALL_TIMEOUT)):(o.authenticationCompleted(!1,void 0),this.backend=new s.NoOpBackend)}return e.prototype.performLicenseCheck=function(){var e=this,t=this.info,n=t.key,i=t.domain,a=t.version
if(!n||""===n){var c={status:r.LicensingResult.Denied,message:"No license key provided"}
return this.backend=new s.NoOpBackend,Promise.resolve(c)}return this.licenseCall(n,i,a,this.backendBaseUrl).then((function(t){if(t.status!==r.LicensingResult.Granted)throw new Error(t.message)
var i=new l.RemoteBackend(!0,e.backendBaseUrl,n)
return e.backend.flushTo(i),e.backend=i,t})).catch((function(t){return"Ignoring Impression due to DNT Header being set"===t.message?o.logger.error("License Check for Bitmovin Analytics failed because of",t):o.logger.errorMessageToUser("License Check for Bitmovin Analytics failed because of",t),e.backend=new s.NoOpBackend,{status:r.LicensingResult.Denied,message:t.message}}))},e.prototype.sendRequest=function(e){this.backend.sendRequest(e)},e.prototype.sendUnloadRequest=function(e){this.backend.sendUnloadRequest(e)},e.prototype.sendRequestSynchronous=function(e){this.backend.sendRequestSynchronous(e)},e.prototype.sendAdRequest=function(e){this.backend.sendAdRequest(e)},e.prototype.unsubscribeFromAdapter=function(){this.adapter.onLicenseKeyReceived.unsubscribe(this.licenseKeyReceived),this.adapter.onLicenseCallFailed.unsubscribe(this.licenseCallFailed)},e.prototype.wrapLicenseCheckPromiseWithCallback=function(e,t){return e.then((function(e){return t.authenticationCompleted(e.status===r.LicensingResult.Granted,e.features),e}))},e}()
t.LicenseCheckingBackend=u},3588:function(e,t){"use strict"
var n
Object.defineProperty(t,"__esModule",{value:!0}),t.AD_TYPE=void 0,function(e){e[e.NO_AD=0]="NO_AD",e[e.CSAI=1]="CSAI",e[e.SSAI=2]="SSAI"}(n||(t.AD_TYPE=n={}))},3612:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.ViewportTracker=void 0
var i=n(1916),r=n(5063),o=n(5063),a=function(){function e(e,t,n){void 0===n&&(n=1)
var o=this
this.inViewport=void 0,this.threshold=n,this.onIntersectionChanged=t,this.element=e
try{var a={root:null,rootMargin:"0px",threshold:n}
this.observer=new IntersectionObserver((function(e,t){return o.handleIntersect(e,t)}),a),this.observer.observe(e)}catch(e){i.logger.log("Couldn't create instance of IntersectionObserver. timeInViewport will always be reported as 100%.")}this.hidden=r.getHiddenProp(),this.hidden&&(this.visibilityChange=this.hidden.replace("hidden","")+"visibilitychange",document.addEventListener(this.visibilityChange,this.handleVisibilityChange=this.handleVisibilityChange.bind(this),!1))}return e.prototype.isHidden=function(){return this.hidden&&document[this.hidden]},e.prototype.isInViewport=function(){return!this.isHidden()&&(!!(0,o.isNullish)(this.inViewport)||this.inViewport)},e.prototype.dispose=function(){this.observer&&(this.observer.unobserve(this.element),this.observer.disconnect()),this.visibilityChange&&document.removeEventListener(this.visibilityChange,this.handleVisibilityChange,!1)},e.prototype.handleVisibilityChange=function(){this.onIntersectionChanged()},e.prototype.handleIntersect=function(e,t){var n=this
e.forEach((function(e){e.target===n.element&&(n.inViewport=!(e.intersectionRatio<n.threshold))})),this.onIntersectionChanged()},e}()
t.ViewportTracker=a},3674: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)}),o=this&&this.__spreadArray||function(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))}
Object.defineProperty(t,"__esModule",{value:!0}),t.HTML5AnalyticsStateMachine=void 0
var a,s=n(2595),c=n(2361),l=n(6608),u=n(1916),d=n(7596),f=n(8253)
!function(e){e.AD="AD",e.AUDIOTRACK_CHANGING="AUDIOTRACK_CHANGING",e.CASTING="CASTING",e.CUSTOMDATACHANGE="CUSTOMDATACHANGE",e.END="END",e.ERROR="ERROR",e.MUTING_PAUSE="MUTING_PAUSE",e.MUTING_PLAY="MUTING_PLAY",e.MUTING_READY="MUTING_READY",e.PAUSE="PAUSE",e.PAUSED_SEEKING="PAUSED_SEEKING",e.PLAYING="PLAYING",e.QUALITYCHANGE="QUALITYCHANGE",e.QUALITYCHANGE_PAUSE="QUALITYCHANGE_PAUSE",e.QUALITYCHANGE_REBUFFERING="QUALITYCHANGE_REBUFFERING",e.READY="READY",e.REBUFFERING="REBUFFERING",e.SETUP="SETUP",e.SETUP_SOURCE_CHANGE="SETUP_SOURCE_CHANGE",e.SOURCE_CHANGING="SOURCE_CHANGING",e.STARTUP="STARTUP",e.STARTUP_FAILURE="STARTUP_FAILURE",e.SUBTITLE_CHANGING="SUBTITLE_CHANGING"}(a||(a={}))
var p=function(e){function t(t,n,i){var r=e.call(this,t,i)||this
return r.createStateMachine(i),r.playingHeartbeatService=n,r}return r(t,e),t.prototype.getAllStates=function(){return o(o([],Object.keys(a).map((function(e){return a[e]})),!0),["FINISH_QUALITYCHANGE_PAUSE","FINISH_QUALITYCHANGE","FINISH_QUALITYCHANGE_REBUFFERING"],!1)},t.prototype.getAllStatesBut=function(e){return this.getAllStates().filter((function(t){return e.indexOf(t)<0}))},t.prototype.createStateMachine=function(e){var t,n=this
return s.create({initial:a.SETUP,error:f.customStateMachineErrorCallback,events:[{name:c.Event.SOURCE_LOADED,from:[a.SETUP,a.SETUP_SOURCE_CHANGE,a.SOURCE_CHANGING],to:a.READY},(0,f.on)(c.Event.TIMECHANGED).stayIn(a.SETUP),(0,f.on)(c.Event.SOURCE_LOADED).stayIn(a.READY),{name:c.Event.PLAY,from:a.READY,to:a.STARTUP},{name:c.Event.PLAY,from:a.SOURCE_CHANGING,to:a.STARTUP},{name:c.Event.ERROR,from:a.STARTUP,to:a.STARTUP_FAILURE},{name:c.Event.UNLOAD,from:a.STARTUP,to:a.STARTUP_FAILURE},{name:c.Event.VIDEOSTART_TIMEOUT,from:a.STARTUP,to:a.STARTUP_FAILURE},(0,f.on)(c.Event.SOURCE_LOADED).stayIn(a.STARTUP),(0,f.on)(c.Event.START_BUFFERING).stayIn(a.STARTUP),(0,f.on)(c.Event.END_BUFFERING).stayIn(a.STARTUP),(0,f.on)(c.Event.VIDEO_CHANGE).stayIn(a.STARTUP),(0,f.on)(c.Event.AUDIO_CHANGE).stayIn(a.STARTUP),{name:c.Event.TIMECHANGED,from:a.READY,to:a.STARTUP},{name:c.Event.TIMECHANGED,from:a.STARTUP,to:a.PLAYING},(0,f.on)(c.Event.TIMECHANGED).stayIn(a.PLAYING),(0,f.on)(c.Event.SEEKED).stayIn(a.PAUSE),(0,f.on)(c.Event.END_BUFFERING).stayIn(a.PLAYING),{name:c.Event.START_BUFFERING,from:a.PLAYING,to:a.REBUFFERING},(0,f.on)(c.Event.START_BUFFERING).stayIn(a.REBUFFERING),{name:c.Event.PLAY,from:a.REBUFFERING,to:a.PLAYING},{name:c.Event.TIMECHANGED,from:a.REBUFFERING,to:a.PLAYING},(0,f.on)(c.Event.SEEK).stayIn(a.STARTUP),(0,f.on)(c.Event.PLAY).stayIn(a.PAUSED_SEEKING),{name:c.Event.PAUSE,from:a.PLAYING,to:a.PAUSE},{name:c.Event.PAUSE,from:a.REBUFFERING,to:a.PAUSE},{name:c.Event.PLAY,from:a.PAUSE,to:a.PLAYING},{name:c.Event.TIMECHANGED,from:a.PAUSE,to:a.PLAYING},{name:c.Event.VIDEO_CHANGE,from:a.PLAYING,to:a.QUALITYCHANGE},{name:c.Event.AUDIO_CHANGE,from:a.PLAYING,to:a.QUALITYCHANGE},(0,f.on)(c.Event.VIDEO_CHANGE).stayIn(a.QUALITYCHANGE),(0,f.on)(c.Event.AUDIO_CHANGE).stayIn(a.QUALITYCHANGE),{name:"FINISH_QUALITYCHANGE",from:a.QUALITYCHANGE,to:a.PLAYING},{name:c.Event.VIDEO_CHANGE,from:a.PAUSE,to:a.QUALITYCHANGE_PAUSE},{name:c.Event.AUDIO_CHANGE,from:a.PAUSE,to:a.QUALITYCHANGE_PAUSE},(0,f.on)(c.Event.VIDEO_CHANGE).stayIn(a.QUALITYCHANGE_PAUSE),(0,f.on)(c.Event.AUDIO_CHANGE).stayIn(a.QUALITYCHANGE_PAUSE),{name:"FINISH_QUALITYCHANGE_PAUSE",from:a.QUALITYCHANGE_PAUSE,to:a.PAUSE},{name:c.Event.SEEK,from:a.PAUSE,to:a.PAUSED_SEEKING},(0,f.on)(c.Event.SEEK).stayIn(a.PAUSED_SEEKING),(0,f.on)(c.Event.AUDIO_CHANGE).stayIn(a.PAUSED_SEEKING),(0,f.on)(c.Event.VIDEO_CHANGE).stayIn(a.PAUSED_SEEKING),(0,f.on)(c.Event.START_BUFFERING).stayIn(a.PAUSED_SEEKING),(0,f.on)(c.Event.END_BUFFERING).stayIn(a.PAUSED_SEEKING),{name:c.Event.SEEKED,from:a.PAUSED_SEEKING,to:a.PAUSE},{name:c.Event.TIMECHANGED,from:a.PAUSED_SEEKING,to:a.PLAYING},{name:c.Event.PAUSE,from:a.PAUSED_SEEKING,to:a.PAUSE},{name:c.Event.END,from:a.PAUSED_SEEKING,to:a.END},{name:c.Event.END,from:a.PLAYING,to:a.END},{name:c.Event.END,from:a.PAUSE,to:a.END},(0,f.on)(c.Event.PAUSE).stayIn(a.END),(0,f.on)(c.Event.SEEK).stayIn(a.END),(0,f.on)(c.Event.SEEKED).stayIn(a.END),(0,f.on)(c.Event.TIMECHANGED).stayIn(a.END),(0,f.on)(c.Event.END_BUFFERING).stayIn(a.END),(0,f.on)(c.Event.START_BUFFERING).stayIn(a.END),(0,f.on)(c.Event.END).stayIn(a.END),(0,f.on)(c.Event.SEEKED).stayIn(a.PLAYING),(0,f.on)(c.Event.SEEK).stayIn(a.PLAYING),{name:c.Event.PLAY,from:a.END,to:a.PLAYING},{name:c.Event.ERROR,from:this.getAllStatesBut([a.STARTUP]),to:a.ERROR},{name:c.Event.PAUSE,from:a.ERROR,to:a.ERROR},{name:c.Event.UNLOAD,from:this.getAllStatesBut([a.STARTUP]),to:a.END},{name:c.Event.SUBTITLE_CHANGE,from:a.PLAYING,to:a.SUBTITLE_CHANGING},(0,f.on)(c.Event.SUBTITLE_CHANGE).stayIn(a.PAUSE),(0,f.on)(c.Event.SUBTITLE_CHANGE).stayIn(a.READY),(0,f.on)(c.Event.SUBTITLE_CHANGE).stayIn(a.STARTUP),(0,f.on)(c.Event.SUBTITLE_CHANGE).stayIn(a.REBUFFERING),(0,f.on)(c.Event.SUBTITLE_CHANGE).stayIn(a.SUBTITLE_CHANGING),{name:c.Event.TIMECHANGED,from:a.SUBTITLE_CHANGING,to:a.PLAYING},{name:c.Event.AUDIOTRACK_CHANGED,from:a.PLAYING,to:a.AUDIOTRACK_CHANGING},(0,f.on)(c.Event.AUDIOTRACK_CHANGED).stayIn(a.PAUSE),(0,f.on)(c.Event.AUDIOTRACK_CHANGED).stayIn(a.READY),(0,f.on)(c.Event.AUDIOTRACK_CHANGED).stayIn(a.STARTUP),(0,f.on)(c.Event.AUDIOTRACK_CHANGED).stayIn(a.REBUFFERING),(0,f.on)(c.Event.AUDIOTRACK_CHANGED).stayIn(a.AUDIOTRACK_CHANGING),{name:c.Event.TIMECHANGED,from:a.AUDIOTRACK_CHANGING,to:a.PLAYING},{name:c.Event.START_AD,from:a.PLAYING,to:a.AD},{name:c.Event.END_AD,from:a.AD,to:a.PLAYING},{name:c.Event.MUTE,from:a.READY,to:a.MUTING_READY},{name:c.Event.UN_MUTE,from:a.READY,to:a.MUTING_READY},{name:"FINISH_MUTING",from:a.MUTING_READY,to:a.READY},{name:c.Event.MUTE,from:a.PLAYING,to:a.MUTING_PLAY},{name:c.Event.UN_MUTE,from:a.PLAYING,to:a.MUTING_PLAY},{name:"FINISH_MUTING",from:a.MUTING_PLAY,to:a.PLAYING},{name:c.Event.MUTE,from:a.PAUSE,to:a.MUTING_PAUSE},{name:c.Event.UN_MUTE,from:a.PAUSE,to:a.MUTING_PAUSE},{name:"FINISH_MUTING",from:a.MUTING_PAUSE,to:a.PAUSE},{name:c.Event.START_CAST,from:[a.READY,a.PAUSE],to:a.CASTING},(0,f.on)(c.Event.PAUSE).stayIn(a.CASTING),(0,f.on)(c.Event.PLAY).stayIn(a.CASTING),(0,f.on)(c.Event.TIMECHANGED).stayIn(a.CASTING),(0,f.on)(c.Event.MUTE).stayIn(a.CASTING),(0,f.on)(c.Event.SEEK).stayIn(a.CASTING),(0,f.on)(c.Event.SEEKED).stayIn(a.CASTING),{name:c.Event.END_CAST,from:a.CASTING,to:a.READY},(0,f.on)(c.Event.SEEK).stayIn(a.READY),(0,f.on)(c.Event.SEEKED).stayIn(a.READY),(0,f.on)(c.Event.SEEKED).stayIn(a.STARTUP),{name:c.Event.MANUAL_SOURCE_CHANGE,from:a.SETUP,to:a.SETUP_SOURCE_CHANGE},(0,f.on)(c.Event.MANUAL_SOURCE_CHANGE).stayIn(a.SETUP_SOURCE_CHANGE),{name:c.Event.MANUAL_SOURCE_CHANGE,from:this.getAllStatesBut([a.SETUP,a.SETUP_SOURCE_CHANGE]),to:a.SOURCE_CHANGING},{name:c.Event.SOURCE_UNLOADED,from:this.getAllStates(),to:a.SOURCE_CHANGING},(0,f.on)(c.Event.TIMECHANGED).stayIn(a.SOURCE_CHANGING),(0,f.on)(c.Event.PAUSE).stayIn(a.SOURCE_CHANGING),{name:c.Event.VIDEO_CHANGE,from:a.REBUFFERING,to:a.QUALITYCHANGE_REBUFFERING},{name:c.Event.AUDIO_CHANGE,from:a.REBUFFERING,to:a.QUALITYCHANGE_REBUFFERING},(0,f.on)(c.Event.VIDEO_CHANGE).stayIn(a.QUALITYCHANGE_REBUFFERING),(0,f.on)(c.Event.AUDIO_CHANGE).stayIn(a.QUALITYCHANGE_REBUFFERING),{name:"FINISH_QUALITYCHANGE_REBUFFERING",from:a.QUALITYCHANGE_REBUFFERING,to:a.REBUFFERING},{name:c.Event.CUSTOM_DATA_CHANGE,from:[a.PLAYING,a.PAUSE],to:a.CUSTOMDATACHANGE},{name:c.Event.PLAYING,from:a.CUSTOMDATACHANGE,to:a.PLAYING},{name:c.Event.PAUSE,from:a.CUSTOMDATACHANGE,to:a.PAUSE},{name:c.Event.PLAYLIST_TRANSITION,from:this.getAllStates(),to:a.READY}],callbacks:(t={},t["onenter".concat(a.SOURCE_CHANGING)]=function(e,t,i,r,o){e===c.Event.MANUAL_SOURCE_CHANGE&&n.stateMachineCallbacks.manualSourceChange(o)},t["onenter".concat(a.STARTUP)]=function(e,t,i,r,o){n.setVideoStartTimeout()},t["onenter".concat(a.PLAYING)]=function(e,t,i,r){n.onEnterStateTimestamp=r,n.playingHeartbeatService.startHeartbeat()},t.onenterstate=function(t,i,r,o,s){"none"===i&&e.starttime?n.onEnterStateTimestamp=e.starttime:n.onEnterStateTimestamp=o||Date.now(),u.logger.log("[ENTER ".concat(o,"] ").concat((0,u.padRight)(r,20)," EVENT: ").concat((0,u.padRight)(t,20)," from: ").concat((0,u.padRight)(i,14))),s&&r!==a.PAUSED_SEEKING&&n.stateMachineCallbacks.setVideoTimeStartFromEvent(s),t===c.Event.START_CAST&&r===a.CASTING&&n.stateMachineCallbacks.startCasting(o,s),r===a.REBUFFERING&&n.startRebufferingHeartbeatInterval()},t.onafterevent=function(e,t,i,r,o){e===c.Event.PLAYLIST_TRANSITION&&n.stateMachineCallbacks.playlistTransition(o),i===a.QUALITYCHANGE_PAUSE&&n.stateMachine.FINISH_QUALITYCHANGE_PAUSE(r),i===a.QUALITYCHANGE&&n.stateMachine.FINISH_QUALITYCHANGE(r),i===a.QUALITYCHANGE_REBUFFERING&&n.stateMachine.FINISH_QUALITYCHANGE_REBUFFERING(r),i!==a.MUTING_READY&&i!==a.MUTING_PLAY&&i!==a.MUTING_PAUSE||n.stateMachine.FINISH_MUTING(r)},t["onleave".concat(a.STARTUP)]=function(e,t,i,r,o){n.clearVideoStartTimeout()},t["onleave".concat(a.PLAYING)]=function(e,t,i,r,o){n.playingHeartbeatService.stopHeartbeat()},t.onleavestate=function(e,t,i,r,o){if(t===a.REBUFFERING&&n.resetRebufferingHelpers(),r&&(t!==a.ERROR||e!==c.Event.MANUAL_SOURCE_CHANGE&&e!==c.Event.SOURCE_UNLOADED)){u.logger.log("[LEAVE ".concat(r,"] ").concat((0,u.padRight)(t,20)," EVENT: ").concat((0,u.padRight)(e,20)," to: ").concat((0,u.padRight)(i,20)))
var s=r-n.onEnterStateTimestamp
o&&i!==a.PAUSED_SEEKING&&n.stateMachineCallbacks.setVideoTimeEndFromEvent(o)
var d=String(t).toLowerCase()
if(i===a.STARTUP_FAILURE)n.clearVideoStartTimeout(),n.stateMachineCallbacks.videoStartupFailed((0,l.createStartupFailureReason)(e))
else if(t===a.PAUSED_SEEKING)n.stateMachineCallbacks[d](s,d,o)
else if(e===c.Event.UNLOAD)n.stateMachineCallbacks.unload(s,d)
else if(t===a.PAUSE&&i!==a.PAUSED_SEEKING)n.stateMachineCallbacks.setVideoTimeStartFromEvent(e),n.stateMachineCallbacks.pause(s,d)
else{var p=n.stateMachineCallbacks[d]
"function"==typeof p?p(s,d,o):(0,f.logMissingCallbackWarning)(t,[a.READY,a.SOURCE_CHANGING,a.SETUP_SOURCE_CHANGE])}o&&i!==a.PAUSED_SEEKING&&n.stateMachineCallbacks.setVideoTimeStartFromEvent(o),e===c.Event.VIDEO_CHANGE?n.stateMachineCallbacks.videoChange(o):e===c.Event.AUDIO_CHANGE?n.stateMachineCallbacks.audioChange(o):e===c.Event.MUTE?n.stateMachineCallbacks.mute():e===c.Event.UN_MUTE&&n.stateMachineCallbacks.unMute()}},t.onplayerError=function(e,t,i,r,o){n.stateMachineCallbacks.error(o)},t)})},t.prototype.callEvent=function(e,t,n){var i=this.stateMachine[e]
i?i.call(this.stateMachine,n,t):u.logger.log("Ignored Event: "+e)},t.prototype.onSsaiPlaybackInteraction=function(e,t){},t.prototype.onHeartbeat=function(e){var t=Date.now()
this.sendCurrentStateSample(t,e)},t.prototype.sendCurrentStateSample=function(e,t){this.stateMachineCallbacks.setVideoTimeEndFromEvent(t)
var n=e-this.onEnterStateTimestamp,i=this.stateMachine.current.toLowerCase(),r=(0,f.createHeartbeatPayload)(n,i)
this.stateMachineCallbacks.heartbeat(n,i,r),this.onEnterStateTimestamp=e,this.stateMachineCallbacks.setVideoTimeStartFromEvent(t)},t}(d.AnalyticsStateMachine)
t.HTML5AnalyticsStateMachine=p},3703:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.AmazonIVSAdapter=void 0
var i=n(4350),r=n(8331),o=n(1916),a=n(2108),s=n(4926),c=n(9876),l=n(2857),u=function(){function e(e,t,n){if((0,a.hasPlayerAlreadyBeenAugmented)(t))o.logger.errorMessageToUser("Bitmovin Analytics is already hooked up to this player instance")
else{(0,a.markPlayerInstanceAsAugmented)(t)
var s=(0,r.sanitizeAnalyticsConfig)(e);(0,r.guardAgainstDuplicatedUserId)(s)
var u=new l.SourceUrlProvider
this.internalAdapter=new c.AmazonIVSInternalAdapter(t,u,n),this.analytics=i.Analytics.create(s,this.internalAdapter),this.wrapPlayerLoad(t,u)}}return e.prototype.wrapPlayerLoad=function(e,t){var n=e.load
e.load=function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r]
return t.m3u8Url=i[0],n.apply(e,i)}},Object.defineProperty(e.prototype,"version",{get:function(){return s.VERSION},enumerable:!1,configurable:!0}),e.prototype.getCurrentImpressionId=function(){if((0,a.isDefined)(this.analytics))return this.analytics.getCurrentImpressionId()},e.prototype.getUserId=function(){if((0,a.isDefined)(this.analytics))return this.analytics.getUserId()},e.prototype.setCustomData=function(e){(0,a.isDefined)(this.internalAdapter)&&this.internalAdapter.setCustomData(e)},e.prototype.setCustomDataOnce=function(e){(0,a.isDefined)(this.analytics)&&this.analytics.setCustomDataOnce(e)},e.prototype.sourceChange=function(e){(0,a.isDefined)(this.analytics)&&this.analytics.sourceChange(e)},e.version=s.VERSION,e}()
t.AmazonIVSAdapter=u},3786:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.Measure=void 0
var n=function(){function e(e){this.download=e}return Object.defineProperty(e.prototype,"speed",{get:function(){return this.download.size/this.download.duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this.download.duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.download.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timeToFirstByte",{get:function(){return this.download.timeToFirstByte},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timestamp",{get:function(){return this.download.timestamp},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"httpStatus",{get:function(){return this.download.httpStatus},enumerable:!1,configurable:!0}),e}()
t.Measure=n},4025:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.VideoStartupService=void 0
var i,r=n(2361)
!function(e){e[e.SETUP=0]="SETUP",e[e.IDLE=1]="IDLE",e[e.STARTUP=2]="STARTUP",e[e.STARTUP_FINISHED=3]="STARTUP_FINISHED"}(i||(i={}))
var o=function(){function e(e,t,n){this.dispatcher=e,this.playerContext=t,this.qualityChangeService=n,this.state=i.SETUP}return Object.defineProperty(e.prototype,"finishedStartup",{get:function(){return this.state==i.STARTUP_FINISHED},enumerable:!1,configurable:!0}),e.prototype.onInitialized=function(){this.finishSetup()},e.prototype.onPlay=function(){this.startStartup()},e.prototype.onPlaying=function(){this.finishStartup()},e.prototype.finishSetup=function(){this.state=i.IDLE
var e=this.playerContext.position
this.dispatcher.eventCallback(r.Event.READY,{currentTime:e})},e.prototype.startStartup=function(){if(this.state==i.IDLE){this.state=i.STARTUP
var e=this.playerContext.position
this.dispatcher.eventCallback(r.Event.PLAY,{currentTime:e})}},e.prototype.finishStartup=function(){if(this.state==i.STARTUP){this.state=i.STARTUP_FINISHED
var e=this.playerContext.position
this.dispatcher.eventCallback(r.Event.PLAYING,{currentTime:e}),this.qualityChangeService.resetValues(),this.qualityChangeService.setStartupHasFinished()}},e}()
t.VideoStartupService=o},4040: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)}),o=this&&this.__assign||function(){return o=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},o.apply(this,arguments)}
Object.defineProperty(t,"__esModule",{value:!0}),t.VideojsInternalAdapter=void 0
var a=n(5182),s=n(2663),c=n(6743),l=n(5626),u=n(2361),d=n(2168),f=n(556),p=n(8525),h=n(7224),g=n(7614),m=n(9557),v=n(3413),y=n(716),b=n(1820),E=n(5063),_=function(e){function t(t,n){var i=e.call(this,n)||this
i._subtitleInfo={enabled:!1},i.onBeforeUnLoadEvent=!1,i.previousTime=0,i.getPlayerVersion=function(){var e,t,n,r=null===(t=(e=i.player).version)||void 0===t?void 0:t.call(e)["video.js"]
if((0,b.isValidString)(r)&&!(0,b.isBlank)(r))return r
var o=null===(n=window.videojs)||void 0===n?void 0:n.VERSION
return(0,b.isValidString)(o)&&!(0,b.isBlank)(o)?o:"unknown"},i.getPlayerName=function(){return f.Player.VIDEOJS},i.getPlayerTech=function(){return"html5"},i.getAutoPlay=function(){return!0===i.player.autoplay()},i.getDrmPerformanceInfo=function(){return i.drmPerformanceInfo},i.player=t
var r=new s.HeartbeatService((function(){return i.currentTime})),o=new a.VideojsAnalyticsStateMachine(i.stateMachineCallbacks,r,i.opts)
return r.setListener(o),i.stateMachine=o,i.videoCompletionTracker=new c.default,i}return r(t,e),t.prototype.resetSourceRelatedState=function(){e.prototype.resetSourceRelatedState.call(this),this.videoCompletionTracker.reset(),this.videoCompletionTracker.setVideoDuration(this.player.duration()),this.previousTime=0},t.prototype.initialize=function(e){return this.register(),[new m.ErrorDetailTracking(e.errorDetailTrackingSettingsProvider,new g.ErrorDetailBackend(e.errorDetailTrackingSettingsProvider.collectorConfig),[e.errorDetailSubscribable],void 0)]},t.prototype.getStreamType=function(e){var t,n,i=(0,d.getMIMETypeFromFileExtension)(e)
return i||(i=null===(n=(t=this.player).currentType)||void 0===n?void 0:n.call(t))?(0,h.getStreamTypeFromMIMEType)(i):void 0},t.prototype.getStreamSources=function(e){switch(this.getStreamType(e)){case"hls":return{m3u8Url:e}
case"dash":return{mpdUrl:e}
default:return{progUrl:e}}},t.prototype.getCurrentPlaybackInfo=function(){var e,t,n
this.selectedAudioLanguage=this.getSelectedAudioTrackLanguage(this.player)
var i=this.getCodecInfo(this.player.tech({IWillNotUseThisInPlugins:!0})),r=o(o(o({},this.getCommonPlaybackInfo()),this.getStreamSources(this.player.currentSrc())),{streamFormat:this.getStreamType(this.player.currentSrc()),isLive:isNaN(this.player.duration())?void 0:this.player.duration()===1/0,size:this.player.isFullscreen()?p.PlayerSize.Fullscreen:p.PlayerSize.Window,playerTech:this.getPlayerTech(),isMuted:this.player.muted(),videoDuration:(0,v.normalizeVideoDuration)(this.player.duration()),videoWindowHeight:this.player.height(),videoWindowWidth:this.player.width(),videoPlaybackHeight:this.player.videoHeight(),videoPlaybackWidth:this.player.videoWidth(),audioLanguage:this.selectedAudioLanguage,subtitleEnabled:this._subtitleInfo.enabled,subtitleLanguage:this._subtitleInfo.language,videoCodec:null==i?void 0:i.videoCodec,audioCodec:null==i?void 0:i.audioCodec,droppedFrames:0}),a=this.getCurrentQualityLevelInfo()
return a&&(r.videoPlaybackWidth=null!==(e=a.width)&&void 0!==e?e:r.videoPlaybackWidth,r.videoPlaybackHeight=null!==(t=a.height)&&void 0!==t?t:r.videoPlaybackHeight,r.videoBitrate=null!==(n=a.bitrate)&&void 0!==n?n:r.videoBitrate),r},t.prototype.getCurrentQualityLevelInfo=function(){return this.currentVideoJsQualityLevel()},t.prototype.register=function(){var e=this,t=this
this.player.on("loadstart",(function(){t.eventCallback(u.Event.MANUAL_SOURCE_CHANGE,{config:{}})})),this.player.on("loadedmetadata",(function(){t.videoCompletionTracker.reset(),t.videoCompletionTracker.setVideoDuration(this.duration()),t.previousTime=0,t.eventCallback(u.Event.SOURCE_LOADED,{})})),this.player.ready((function(){t._subtitleInfo=t.getSubtitleInfo(this),t.eventCallback(u.Event.READY,{})})),this.player.on("play",(function(){t.eventCallback(u.Event.PLAY,{currentTime:this.currentTime()})})),this.player.on("pause",(function(){this.seeking()||t.eventCallback(u.Event.PAUSE,{currentTime:this.currentTime()})})),this.player.on("error",(function(){var e=this.error()
t.eventCallback(u.Event.ERROR,{currentTime:this.currentTime(),code:e.code,message:e.message,data:{}})})),this.player.on("volumechange",(function(){var e=this.muted(),n=this.volume(),i=t.isAudioMuted(e,n)
this.previousMutedValue!==i&&(i?t.eventCallback(u.Event.MUTE,{currentTime:this.currentTime()}):t.eventCallback(u.Event.UN_MUTE,{currentTime:this.currentTime()}),this.previousMutedValue=i)})),this.player.on("seeking",(function(){t.eventCallback(u.Event.SEEK,{currentTime:(0,E.isNotNullish)(t.previousTime)?t.previousTime:this.currentTime()})})),this.player.on("seeked",(function(){t.eventCallback(u.Event.SEEKED,{currentTime:this.currentTime()})})),this.player.on("texttrackchange",(function(){var e=t.getSubtitleInfo(this),n=!!(0,E.isNullish)(t._subtitleInfo)||(0,y.isDifferentSubtitleInfo)(t._subtitleInfo,e)
t._subtitleInfo=e,n&&t.eventCallback(u.Event.SUBTITLE_CHANGE,{currentTime:this.currentTime()})})),this.player.audioTracks().on("change",(function(){var e=t.getSelectedAudioTrackLanguage(t.player);(0,E.isNotNullish)(e)&&e!==t.selectedAudioLanguage&&t.eventCallback(u.Event.AUDIOTRACK_CHANGED,{currentTime:t.player.currentTime()})})),this.player.on("stalled",(function(){t.eventCallback(u.Event.START_BUFFERING,{currentTime:this.currentTime()})})),this.player.on("waiting",(function(){t.eventCallback(u.Event.START_BUFFERING,{currentTime:this.currentTime()})})),this.player.on("timeupdate",(function(){this.seeking()||(t.previousTime=this.currentTime()),t.eventCallback(u.Event.TIMECHANGED,{currentTime:this.currentTime()})
var e=t.currentVideoJsQualityLevel()
if((null==e?void 0:e.height)&&(null==e?void 0:e.width)&&(null==e?void 0:e.bitrate)){if(t.qualityChangeService.shouldAllowVideoQualityChange(e.bitrate)){var n={bitrate:e.bitrate,height:e.height,width:e.width,currentTime:this.currentTime()}
t.eventCallback(u.Event.VIDEO_CHANGE,n)}t.qualityChangeService.setVideoBitrate(e.bitrate)}}))
var n=function(){if(!e.onBeforeUnLoadEvent){e.onBeforeUnLoadEvent=!0
var t=void 0;(0,E.isNotNullish)(e.player)&&(t=e.player.currentTime()),e.eventCallback(u.Event.UNLOAD,{currentTime:t})}e.release()}
n=n.bind(this),this.player.on("dispose",n),this.windowEventTracker.addEventListener("beforeunload",n),this.windowEventTracker.addEventListener("unload",n)},t.prototype.sourceChange=function(e){this.stateMachine.callManualSourceChangeEvent(e,this.currentTime)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.player.currentTime()},enumerable:!1,configurable:!0}),t.prototype.getSelectedAudioTrackLanguage=function(e){for(var t=0,n=e.audioTracks();t<n.length;t++){var i=n[t]
if(i.enabled)return i.language}},t.prototype.getSubtitleInfo=function(e){for(var t,n=!1,i=0,r=e.textTracks()||[];i<r.length;i++){var o=r[i]
if("showing"===o.mode){n=!0,t=o.language
break}}return{enabled:n,language:t}},t.prototype.currentVideoJsQualityLevel=function(){var e=this.player.tech({IWillNotUseThisInPlugins:!0})
if((0,E.isNullish)(e))return null
if((0,E.isNullish)(e.vhs)&&(0,E.isNullish)(e.hls))return null
var t=this.getMediaAttributes(e)
return t&&t.bitrate?{bitrate:t.bitrate,width:t.width,height:t.height}:null},t.prototype.getMediaAttributes=function(e){var t
if(e&&(e.vhs?t=e.vhs:e.hls&&(t=e.hls),t&&t.playlists&&"function"==typeof t.playlists.media)){var n=t.playlists.media()
if(n){var i=n.attributes
if(i&&0!==Object.keys(i).length)return{bitrate:i.BANDWIDTH,width:(i.RESOLUTION||{}).width,height:(i.RESOLUTION||{}).height,codecs:i.CODECS}}}},t.prototype.getCodecInfo=function(e){var t=this.getMediaAttributes(e)
if(t&&t.codecs){var n=t.codecs.split(",")
if(n)return{videoCodec:n.find((function(e){return l.isVideoCodec(e)})),audioCodec:n.find((function(e){return l.isAudioCodec(e)}))}}},t}(n(2647).InternalAdapter)
t.VideojsInternalAdapter=_},4067:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeBitmovin8AdapterSsaiAdBreakMetadataAdPosition=void 0
var i=n(5063)
t.sanitizeBitmovin8AdapterSsaiAdBreakMetadataAdPosition=function(e){var t=e
return(0,i.isNotNullish)(null==t?void 0:t.adPosition)&&("pre-roll"===t.adPosition?t.adPosition="preroll":"mid-roll"===t.adPosition?t.adPosition="midroll":"post-roll"===(null==t?void 0:t.adPosition)&&(t.adPosition="postroll")),t}},4179:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.VideojsAdapter=void 0
var i=n(4350),r=n(8331),o=n(1916),a=n(2108),s=n(4926),c=n(4040),l=function(){function e(e,t,n){if((0,a.hasPlayerAlreadyBeenAugmented)(t))o.logger.errorMessageToUser("Bitmovin Analytics is already hooked up to this player instance")
else{(0,a.markPlayerInstanceAsAugmented)(t)
var s=(0,r.sanitizeAnalyticsConfig)(e);(0,r.guardAgainstDuplicatedUserId)(s),this.internalAdapter=new c.VideojsInternalAdapter(t,n),this.analytics=i.Analytics.create(s,this.internalAdapter)}}return Object.defineProperty(e.prototype,"version",{get:function(){return s.VERSION},enumerable:!1,configurable:!0}),e.prototype.getCurrentImpressionId=function(){if((0,a.isDefined)(this.analytics))return this.analytics.getCurrentImpressionId()},e.prototype.getUserId=function(){if((0,a.isDefined)(this.analytics))return this.analytics.getUserId()},e.prototype.setCustomData=function(e){(0,a.isDefined)(this.internalAdapter)&&this.internalAdapter.setCustomData(e)},e.prototype.setCustomDataOnce=function(e){(0,a.isDefined)(this.analytics)&&this.analytics.setCustomDataOnce(e)},e.prototype.sourceChange=function(e){(0,a.isDefined)(this.analytics)&&this.analytics.sourceChange(e)},e.version=s.VERSION,e}()
t.VideojsAdapter=l},4300: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}),t.SsaiService=void 0
var r,o=n(3588),a=n(3458),s=n(5529),c=n(5063),l=n(2982),u=n(7906)
!function(e){e[e.AD_BREAK_STARTED=0]="AD_BREAK_STARTED",e[e.ACTIVE=1]="ACTIVE",e[e.IDLE=2]="IDLE"}(r||(r={}))
var d=function(){function e(){this.eventHandler=void 0,this.adIndex=-1,this.state=r.IDLE,this.isFirstSampleOfAd=!1,this.sentAdQuartiles=[],this.errorSent=!1}return e.prototype.activate=function(e){this.eventHandler=e},e.prototype.adBreakStart=function(e){f(this.eventHandler)&&this.state==r.IDLE&&(this.state=r.AD_BREAK_STARTED,this.currentAdMetadata=i({},e))},e.prototype.adStart=function(e){var t
if(f(this.eventHandler)&&this.state!=r.IDLE){var n=(new Date).getTime(),i=this.eventHandler.getPlayerCurrentTime()
this.eventHandler.reportPlaybackInteraction(n,{currentTime:i}),this.state=r.ACTIVE,this.isFirstSampleOfAd=!0,this.adIndex++,this.resetAdData(),this.currentAdMetadata={adPosition:null===(t=this.currentAdMetadata)||void 0===t?void 0:t.adPosition,adId:null==e?void 0:e.adId,adSystem:null==e?void 0:e.adSystem,customData:null==e?void 0:e.customData},this.currentAdImpressionId=(0,l.generateUUID)(),this.timestampOfAdStart=(0,u.getCurrentMonotonicTimestampInMs)(),this.eventHandler.reportEngagementInteraction({type:"started",adIndex:this.adIndex,currentAdImpressionId:this.currentAdImpressionId,currentAdMetadata:(0,c.isNotNullish)(this.currentAdMetadata)?this.currentAdMetadata:{}})}},e.prototype.adQuartileFinished=function(e,t){f(this.eventHandler)&&this.state==r.ACTIVE&&(this.sentAdQuartiles.includes(e)||(this.eventHandler.reportEngagementInteraction({type:"quartile",adIndex:this.adIndex,currentAdImpressionId:this.currentAdImpressionId,currentAdMetadata:(0,c.isNotNullish)(this.currentAdMetadata)?this.currentAdMetadata:{},quartile:e,quartileMetadata:t,timeSinceAdStartedInMs:(0,u.getMonotonicTimestampInMsSince)(this.timestampOfAdStart)}),this.sentAdQuartiles.push(e)))},e.prototype.adBreakEnd=function(){if(f(this.eventHandler)&&this.state!=r.IDLE){if(this.state==r.ACTIVE){var e=(new Date).getTime(),t=this.eventHandler.getPlayerCurrentTime()
this.eventHandler.reportPlaybackInteraction(e,{currentTime:t})}this.resetAdBreakData()}},e.prototype.manipulate=function(e){var t,n,i,a
if(f(this.eventHandler)&&this.state==r.ACTIVE){e.ad=o.AD_TYPE.SSAI,e.adId=null===(t=this.currentAdMetadata)||void 0===t?void 0:t.adId,e.adSystem=null===(n=this.currentAdMetadata)||void 0===n?void 0:n.adSystem,e.adPosition=null===(i=this.currentAdMetadata)||void 0===i?void 0:i.adPosition,this.isFirstSampleOfAd&&(e.adIndex=this.adIndex,this.isFirstSampleOfAd=!1)
var l=null===(a=this.currentAdMetadata)||void 0===a?void 0:a.customData;(0,c.isNotNullish)(l)&&s.customDataValuesKeys.forEach((function(t){l[t]&&(e[t]=l[t])})),e[u.SSAI_RELATED_SAMPLE_MARKER]=!0}},e.prototype.sendAdEngagementErrorSample=function(e,t){f(this.eventHandler)&&this.state===r.ACTIVE&&(this.errorSent||e!==a.ErrorCode.QUALITY_CHANGE_THRESHOLD_EXCEEDED.code&&(this.eventHandler.reportEngagementInteraction({type:"error",adIndex:this.adIndex,currentAdImpressionId:this.currentAdImpressionId,currentAdMetadata:(0,c.isNotNullish)(this.currentAdMetadata)?this.currentAdMetadata:{},errorCode:e,errorMessage:t,timeSinceAdStartedInMs:(0,u.getMonotonicTimestampInMsSince)(this.timestampOfAdStart)}),this.errorSent=!0))},e.prototype.resetSourceRelatedState=function(){this.resetAdBreakData(),this.adIndex=-1},e.prototype.resetAdBreakData=function(){this.state=r.IDLE,this.isFirstSampleOfAd=!1,delete this.currentAdMetadata,this.resetAdData()},e.prototype.resetAdData=function(){var e,t,n
null===(e=this.currentAdMetadata)||void 0===e||delete e.customData,null===(t=this.currentAdMetadata)||void 0===t||delete t.adId,null===(n=this.currentAdMetadata)||void 0===n||delete n.adSystem,this.errorSent=!1,this.currentAdImpressionId=void 0,this.sentAdQuartiles=[],this.timestampOfAdStart=void 0},e}()
function f(e){return(0,c.isNotNullish)(e)}t.SsaiService=d},4350: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}),t.Analytics=void 0,t.setQualityInfoOnSample=C
var r=n(3588),o=n(3458),a=n(8525),s=n(6608),c=n(6845),l=n(5529),u=n(8331),d=n(404),f=n(1916),p=n(1820),h=n(5063),g=n(5063),m=n(2982),v=n(4926),y=n(8917),b=n(3054),E=n(675),_=n(2226),k=n(847),T=n(8918),S=n(7906),A=function(){function e(e,t,n,r,o,a){var s=this
this.adapter=t,this.backendFactory=n,this.sessionHandler=r,this.featureManager=o,this.onErrorDetailEventDispatcher=a,this.pageLoadTime=0,this.playerStartupTime=0,this.videoStartupTime=0,this.autoplay=void 0,this.droppedSampleFrames=0,this.startupTime=0,this.authenticationCallback={authenticationCompleted:function(e,t){s.featureManager.configureFeatures(e,t)}},this.sourceChange=function(e){if(f.logger.log("Processing Source Change for Analytics",e),(0,g.isNullish)(e))s.adapter.sourceChange(s.config)
else{(0,u.guardConfigChangeAgainstMissingTitle)(s.config,e),(0,u.guardConfigChangeAgainstMissingIsLive)(s.config,e),(0,u.guardAgainstDuplicatedUserId)(e)
var t=(0,u.mergeAnalyticsConfig)(s.config,e)
s.adapter.sourceChange(t)}},this.setCustomDataOnce=function(e){var t=i({},s.config)
s.setState("customdatachange"),s.changeCustomData(e),s.sendAnalyticsRequestAndClearValues(),s.config=i({},t),s.setConfigParameters()},this.setCustomData=function(e){s.adapter.setCustomData(e)},this.getCurrentImpressionId=function(){return s.sample.impressionId},this.getUserId=function(){return s.sessionHandler.userId},this.changeCustomData=function(e){s.config=i(i({},s.config),(0,l.extractCustomDataFieldsOnly)(e)),s.setConfigParameters()},this.config=e,this.sessionHandler=new k.SessionPersistenceHandler(this.config)
var c=this
this.errorDetailTrackingSettingsProvider={get domain(){return(0,u.getDomainFromAnalyticsConfig)(c.config)},get licenseKey(){var e
return null!==(e=c.config.key)&&void 0!==e?e:""},get impressionId(){var e
return null!==(e=c.getCurrentImpressionId())&&void 0!==e?e:""},get collectorConfig(){return c.config.config}}
var d=this.adapter.onLicenseKeyReceived.subscribe((function(e){s.config.key||(s.config.key=e.licenseKey),d()}))
this.sample=this.setupSample(),this.init(),this.setupStateMachineCallbacks()
var p=this.adapter.initialize(this)
this.featureManager.registerFeatures(p),this.adapter.adModule&&(this.adAnalytics=new y.AdAnalytics(this,this.adapter.adModule))}return Object.defineProperty(e.prototype,"version",{get:function(){return v.VERSION},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"errorDetailSubscribable",{get:function(){return this.onErrorDetailEventDispatcher},enumerable:!1,configurable:!0}),e.prototype.getPlayerInformationFromAdapter=function(){var e=this.config.player||this.adapter.getPlayerName()
return{player:e,version:e+"-"+this.adapter.getPlayerVersion(),playerTech:this.adapter.getPlayerTech()}},e.prototype.init=function(){!0===this.adapter.supportsDeferredLicenseLoading||(0,p.isValidString)(this.config.key)&&!(0,p.isBlank)(this.config.key)?(f.logger.initialize(this.config.debug),this.featureManager.resetFeatures(),this.backend=this.createBackend(this.config),this.videoStartupTime=0,this.setConfigParameters(),this.generateNewImpressionId(),this.setUserId(),this.adapter.videoCompletionTracker&&this.adapter.videoCompletionTracker.reset(),this.adapter.qualityChangeService.resetValues(),this.adapter.ssaiService.resetSourceRelatedState()):f.logger.errorMessageToUser("Invalid analytics license key provided")},e.prototype.release=function(){var e
this.backend=new _.NoOpBackend,null===(e=this.adAnalytics)||void 0===e||e.release(),this.adapter.qualityChangeService.stopResetInterval()},e.prototype.setConfigParameters=function(){var e
this.sample.key=this.config.key,this.sample.playerKey=this.config.playerKey,this.config.player&&(this.sample.player=this.config.player),this.sample.domain=(0,u.getDomainFromAnalyticsConfig)(this.config),this.sample.deviceInformation=(0,u.getDeviceInformationFromAnalyticsConfig)(this.config),this.sample.cdnProvider=this.config.cdnProvider,this.sample.videoId=this.config.videoId,this.sample.videoTitle=this.config.title,this.sample.customUserId=null!==(e=this.config.userId)&&void 0!==e?e:this.config.customUserId,h.transferCustomDataFields(this.config,this.sample),this.sample.experimentName=this.config.experimentName},e.prototype.generateNewImpressionId=function(){this.sample.impressionId=(0,m.generateUUID)()},e.prototype.setUserId=function(){this.sample.userId=this.sessionHandler.userId},e.prototype.setupStateMachineCallbacks=function(){var e=this
this.adapter.stateMachineCallbacks.setup=function(t,n){if(f.logger.log("Setup bitmovin analytics "+e.sample.analyticsVersion+" with impressionId: "+e.sample.impressionId),e.setDuration(t),e.setState(n),e.playerStartupTime=e.sample.playerStartupTime=t,window.performance&&window.performance.timing){var i=h.getCurrentTimestamp()-window.performance.timing.navigationStart
e.pageLoadTime=e.sample.pageLoadTime=i}e.startupTime=t,e.sendAnalyticsRequestAndClearValues(),e.sample.pageLoadTime=0},this.adapter.stateMachineCallbacks.startup=function(t,n){e.sample.supportedVideoCodecs=d.CodecHelper.supportedVideoFormats,e.setState(n)
var i=Math.max(t,1),r=(e.startupTime||0)+i
e.sample.startupTime=r,e.startupTime=r,e.setDuration(i),e.videoStartupTime=i,e.sample.videoStartupTime=i,e.autoplay=e.sample.autoplay=e.adapter.getAutoPlay(),e.adapter.qualityChangeService.setStartupHasFinished()
var o=e.adapter.getDrmPerformanceInfo();(0,g.isNotNullish)(o)&&(e.sample.drmType=o.drmType,e.sample.drmLoadTime=o.drmLoadTime),e.sendAnalyticsRequestAndClearValues(),e.sample.autoplay=void 0},this.adapter.stateMachineCallbacks.playing=function(t,n){e.setDuration(t),e.setState(n),e.sample.played=t,e.setCompletionValues(),e.sendAnalyticsRequestAndClearValues()},this.adapter.stateMachineCallbacks.unload=function(t,n){var i=e.sample.videoTimeStart
"playing"===n&&(e.setDuration(t),e.setState(n),e.sample.played=t,e.setCompletionValues(),e.sendUnloadRequest(),h.isNumber(e.sample.videoTimeEnd)&&(i=e.sample.videoTimeEnd)),e.videoStartupTime>0&&(e.setVideoTimeStart(i),e.setVideoTimeEnd(i),e.clearValues(),e.setState("closed"),e.sendUnloadRequest())},this.adapter.stateMachineCallbacks.heartbeat=function(t,n,r){e.setState(n),e.setDuration(t),e.sample=i(i({},e.sample),r),"playing"===n&&e.setCompletionValues(),e.sendAnalyticsRequestAndClearValues()},this.adapter.stateMachineCallbacks.qualitychange=function(t,n){e.sendQualityChange(n,t)},this.adapter.stateMachineCallbacks.qualitychange_pause=function(t,n){e.sendQualityChange(n,t)},this.adapter.stateMachineCallbacks.qualitychange_rebuffering=function(t,n){e.sendQualityChange(n,t)},this.adapter.stateMachineCallbacks.videoChange=function(t){e.adapter.stateMachineCallbacks.setVideoTimeEndFromEvent(t),e.adapter.stateMachineCallbacks.setVideoTimeStartFromEvent(t),e.setPlaybackVideoPropertiesFromEvent(t)},this.adapter.stateMachineCallbacks.audioChange=function(t){e.adapter.stateMachineCallbacks.setVideoTimeEndFromEvent(t),e.adapter.stateMachineCallbacks.setVideoTimeStartFromEvent(t),e.setPlaybackAudioPropertiesFromEvent(t)},this.adapter.stateMachineCallbacks.audiotrack_changing=function(){e.sendAnalyticsRequestAndClearValues()},this.adapter.stateMachineCallbacks.pause=function(t,n){e.setDuration(t),e.setState(n),e.sample.paused=t,e.sendAnalyticsRequestAndClearValues()},this.adapter.stateMachineCallbacks.paused_seeking=function(t,n){e.setDuration(t),e.setState(n),e.sample.seeked=t,e.sendAnalyticsRequestAndClearValues()},this.adapter.stateMachineCallbacks.end_play_seeking=function(t,n){e.setState(n),e.setDuration(t),e.sample.seeked=t,e.sendAnalyticsRequestAndClearValues()},this.adapter.stateMachineCallbacks.rebuffering=function(t,n){e.setDuration(t),e.setState(n),e.sample.buffered=t,e.sendAnalyticsRequestAndClearValues()},this.adapter.stateMachineCallbacks.videoStartupFailed=function(t){e.setState("startup"),e.sample.videoStartFailed=!0,e.sample.videoStartFailedReason=t,t!==s.StartupFailureReason.PLAYER_ERROR&&(t===s.StartupFailureReason.TIMEOUT&&(e.sample.errorCode=o.ErrorCode.VIDEO_STARTUP_TIMEOUT_REACHED.code,e.sample.errorMessage=o.ErrorCode.VIDEO_STARTUP_TIMEOUT_REACHED.message,e.onErrorDetailEventDispatcher.dispatch(i({},o.ErrorCode.VIDEO_STARTUP_TIMEOUT_REACHED))),e.sendAnalyticsRequestAndClearValues())},this.adapter.stateMachineCallbacks.error=function(t){e.adapter.stateMachineCallbacks.setVideoTimeEndFromEvent(t),e.adapter.stateMachineCallbacks.setVideoTimeStartFromEvent(t),e.setState("error"),e.sample.errorCode=t.code,e.sample.errorMessage=t.message,e.sample.errorData=JSON.stringify(t.legacyData),e.sample.errorSegments=e.adapter.segments.map((function(e){return e.name})),e.adapter.onError&&e.adapter.onError(),e.onErrorDetailEventDispatcher.dispatch({code:t.code,message:t.message,errorData:t.data}),e.sendAnalyticsRequestAndClearValues(),delete e.sample.errorCode,delete e.sample.errorMessage,delete e.sample.errorData},this.adapter.stateMachineCallbacks.ad=function(t,n){e.setDuration(t),e.setState(n),e.sample.ad=r.AD_TYPE.CSAI,e.sendAnalyticsRequestAndClearValues()},this.adapter.stateMachineCallbacks.mute=function(){e.sample.isMuted=!0},this.adapter.stateMachineCallbacks.unMute=function(){e.sample.isMuted=!1},this.adapter.stateMachineCallbacks.subtitle_changing=function(){e.sendAnalyticsRequestAndClearValues()},this.adapter.stateMachineCallbacks.setVideoTimeEndFromEvent=function(t){h.isNumber(t.currentTime)&&e.setVideoTimeEnd(h.calculateTime(t.currentTime))},this.adapter.stateMachineCallbacks.setVideoTimeStartFromEvent=function(t){h.isNumber(t.currentTime)&&e.setVideoTimeStart(h.calculateTime(t.currentTime))},this.adapter.stateMachineCallbacks.manualSourceChange=function(t){e.adapter.resetSourceRelatedState(),e.sample=e.setupSample(),e.startupTime=0,e.config=Object.keys(t.config).length>0?t.config:e.config,e.init()},this.adapter.stateMachineCallbacks.playlistTransition=function(t){e.sample=e.setupSample(),e.startupTime=0,e.init()},this.adapter.stateMachineCallbacks.initialSourceChange=function(t){e.config=t.config,e.setConfigParameters()},this.adapter.stateMachineCallbacks.end=function(){e.sample=e.setupSample(),e.startupTime=0,e.init()},this.adapter.stateMachineCallbacks.release=function(){e.release()},this.adapter.stateMachineCallbacks.customdatachange=function(t,n,i){i&&i.values&&e.changeCustomData(i.values)}},e.prototype.setDuration=function(e){this.sample.duration=e},e.prototype.setState=function(e){this.sample.state=e},e.prototype.setPlaybackVideoPropertiesFromEvent=function(e){h.isNumber(e.width)&&(this.sample.videoPlaybackWidth=e.width),h.isNumber(e.height)&&(this.sample.videoPlaybackHeight=e.height),h.isNumber(e.bitrate)&&(this.sample.videoBitrate=e.bitrate),(0,p.isValidString)(e.codec)&&(this.sample.videoCodec=e.codec)},e.prototype.setPlaybackAudioPropertiesFromEvent=function(e){h.isNumber(e.bitrate)&&(this.sample.audioBitrate=e.bitrate),(0,p.isValidString)(e.codec)&&(this.sample.audioCodec=e.codec)},e.prototype.setPlaybackInfoFromAdapter=function(){var e=this.adapter.getCurrentPlaybackInfo()
e&&(this.sample.isLive=this.getIsLiveFromConfigOrPlaybackInfo(this.config,"setup"===this.sample.state?void 0:e.isLive),(0,p.isValidString)(e.size)&&(this.sample.size=e.size),(0,p.isValidString)(e.playerTech)&&(this.sample.playerTech=e.playerTech),h.isNumber(e.videoDuration)&&(this.sample.videoDuration=h.calculateTime(e.videoDuration||0)),(0,p.isValidString)(e.streamFormat)&&(this.sample.streamFormat=e.streamFormat),(0,p.isValidString)(e.mpdUrl)&&(this.sample.mpdUrl=e.mpdUrl),(0,p.isValidString)(e.m3u8Url)&&(this.sample.m3u8Url=e.m3u8Url),(0,p.isValidString)(e.progUrl)&&(this.sample.progUrl=e.progUrl),h.isNumber(e.videoWindowWidth)&&(this.sample.videoWindowWidth=e.videoWindowWidth),h.isNumber(e.videoWindowHeight)&&(this.sample.videoWindowHeight=e.videoWindowHeight),h.isNumber(e.screenHeight)&&(this.sample.screenHeight=e.screenHeight),h.isNumber(e.screenWidth)&&(this.sample.screenWidth=e.screenWidth),h.isBoolean(e.isMuted)&&(this.sample.isMuted=e.isMuted),h.isBoolean(e.isCasting)&&(this.sample.isCasting=e.isCasting),(0,p.isValidString)(e.castTech)&&(this.sample.castTech=e.castTech),(0,p.isValidString)(e.videoTitle)&&!this.config.title&&(this.sample.videoTitle=e.videoTitle),(0,p.isValidString)(e.audioCodec)&&(this.sample.audioCodec=e.audioCodec),(0,p.isValidString)(e.videoCodec)&&(this.sample.videoCodec=e.videoCodec),(0,p.isValidString)(e.audioLanguage)&&(this.sample.audioLanguage=e.audioLanguage),h.isBoolean(e.subtitleEnabled)&&(this.sample.subtitleEnabled=e.subtitleEnabled),(0,p.isValidString)(e.subtitleLanguage)?this.sample.subtitleLanguage=e.subtitleLanguage:this.sample.subtitleLanguage=void 0,h.isNumber(e.droppedFrames)&&(this.sample.droppedFrames=Math.max(e.droppedFrames-this.droppedSampleFrames,0),this.droppedSampleFrames=e.droppedFrames))},e.prototype.setupSample=function(){var e
return this.droppedSampleFrames=0,i({platform:"web",playerStartupTime:0,pageLoadType:h.getPageLoadType(),path:h.sanitizePath(window.location.pathname),language:navigator.language||navigator.userLanguage,userAgent:navigator.userAgent,screenWidth:screen.width,screenHeight:screen.height,isLive:null!==(e=this.config.isLive)&&void 0!==e&&e,videoDuration:0,size:a.PlayerSize.Window,time:0,videoWindowWidth:0,videoWindowHeight:0,droppedFrames:0,played:0,buffered:0,paused:0,ad:0,seeked:0,videoPlaybackWidth:0,videoPlaybackHeight:0,videoBitrate:0,audioBitrate:0,videoTimeStart:0,videoTimeEnd:0,videoStartupTime:0,duration:0,startupTime:0,analyticsVersion:v.VERSION,pageLoadTime:0,completedTotal:0},this.getPlayerInformationFromAdapter())},e.prototype.sendAnalyticsRequest=function(){if(this.setPlaybackInfoFromAdapter(),this.sample.time=h.getCurrentTimestamp(),this.sample.downloadSpeedInfo=this.adapter.downloadSpeedInfo,this.adapter.ssaiService.manipulate(this.sample),(0,g.isNullish)(this.sample.videoBitrate)||this.sample.videoBitrate<=0){C(this.sample,this.adapter.getCurrentPlaybackInfo())
var e=i({},this.sample)
this.backend.sendRequest(e)}else e=i({},this.sample),this.backend.sendRequest(e),C(this.sample,this.adapter.getCurrentPlaybackInfo())},e.prototype.sendAnalyticsRequestAndClearValues=function(){this.sendAnalyticsRequest(),this.clearValues()},e.prototype.sendSsaiEngagementAdSample=function(e){var t
if(!0===(null===(t=this.config.config)||void 0===t?void 0:t.ssaiEngagementTrackingEnabled))if((0,T.isSsaiEngagementStartedData)(e)){var n=(0,S.createStartedAdSample)(this.sample,e)
this.backend.sendAdRequest(n)}else if((0,T.isSsaiEngagementQuartileData)(e))n=(0,S.createQuartileAdSample)(this.sample,e),this.backend.sendAdRequest(n)
else if((0,T.isSsaiEngagementErrorData)(e)){var i=(0,S.createErrorAdSample)(this.sample,e)
this.backend.sendAdRequest(i)}},e.prototype.sendUnloadRequest=function(){this.backend.sendUnloadRequest(this.sample)},e.prototype.clearValues=function(){this.sample.ad=0,this.sample.paused=0,this.sample.played=0,this.sample.seeked=0,this.sample.buffered=0,this.sample.playerStartupTime=0,this.sample.videoStartupTime=0,this.sample.startupTime=0,this.sample.castTech=void 0,this.sample.duration=0,this.sample.droppedFrames=0,this.sample.drmLoadTime=void 0,this.sample.videoStartFailed=void 0,this.sample.videoStartFailedReason=void 0,this.sample.completed=void 0,this.sample.adId=void 0,this.sample.adSystem=void 0,this.sample.adPosition=void 0,this.sample.adIndex=void 0,this.sample[S.SSAI_RELATED_SAMPLE_MARKER]=void 0,this.adapter.clearValues()},e.prototype.getIsLiveFromConfigOrPlaybackInfo=function(e,t){return(0,g.isNullish)(t)?e.isLive||!1:!!h.isBoolean(t)&&t},e.prototype.createBackend=function(e){var t=(0,u.getDomainFromAnalyticsConfig)(e)
return this.backendFactory.createBackend(e,{key:e.key,domain:t,version:v.VERSION},this.adapter,this.authenticationCallback)},e.prototype.setCompletionValues=function(){if(this.adapter.videoCompletionTracker){var e=this.adapter.videoCompletionTracker.addWatched({start:this.sample.videoTimeStart,end:this.sample.videoTimeEnd}),t=this.adapter.videoCompletionTracker.getCompletionPercentage()
Number.isNaN(e)||Number.isNaN(t)||(this.sample.completed=e,this.sample.completedTotal=t)}},e.prototype.setVideoTimeStart=function(e){this.sample.videoTimeStart=e},e.prototype.setVideoTimeEnd=function(e){this.sample.videoTimeEnd=e},e.prototype.sendQualityChange=function(e,t){this.adapter.qualityChangeService.startResetInterval(),this.adapter.qualityChangeService.increaseCounter(),this.adapter.qualityChangeService.isQualityChangeEventEnabled()?(C(this.sample,this.adapter.getCurrentPlaybackInfo()),this.setDuration(t),this.setState(e),this.sendAnalyticsRequestAndClearValues()):(this.setDuration(t),this.adapter.stateMachineCallbacks.error(i(i({},o.ErrorCode.QUALITY_CHANGE_THRESHOLD_EXCEEDED),{legacyData:void 0,currentTime:void 0,data:{}})))},e.create=function(t,n){return new e(t,n,new b.BackendFactory,new k.SessionPersistenceHandler(t),new c.FeatureManager,new E.EventDispatcher)},e.version=v.VERSION,e}()
function C(e,t){h.isNumber(t.videoPlaybackHeight)&&(e.videoPlaybackHeight=t.videoPlaybackHeight),h.isNumber(t.videoPlaybackWidth)&&(e.videoPlaybackWidth=t.videoPlaybackWidth),h.isNumber(t.videoBitrate)&&(e.videoBitrate=t.videoBitrate),h.isNumber(t.audioBitrate)&&(e.audioBitrate=t.audioBitrate)}t.Analytics=A},4355:function(e,t){"use strict"
var n
Object.defineProperty(t,"__esModule",{value:!0}),t.CdnProvider=void 0,function(e){e.AKAMAI="akamai",e.BITGRAVITY="bitgravity",e.CHINACACHE="chinacache",e.CLOUDFLARE="cloudflare",e.CLOUDFRONT="cloudfront",e.FASTLY="fastly",e.MAXCDN="maxcdn"}(n||(t.CdnProvider=n={}))},4438:function(e,t){"use strict"
var n
Object.defineProperty(t,"__esModule",{value:!0}),t.HttpRequestType=void 0,function(e){e.MANIFEST_DASH="manifest/dash",e.MANIFEST_HLS_MASTER="manifest/hls/master",e.MANIFEST_HLS_VARIANT="manifest/hls/variant",e.MANIFEST_SMOOTH="manifest/smooth",e.MANIFEST_ADS="manifest/ads",e.MEDIA_AUDIO="media/audio",e.MEDIA_VIDEO="media/video",e.MEDIA_SUBTITLES="media/subtitles",e.MEDIA_THUMBNAILS="media/thumbnails",e.MEDIA_SEGMENTINDEX="media/segmentindex",e.DRM_LICENSE_WIDEVINE="drm/license/widevine",e.DRM_LICENSE_PLAYREADY="drm/license/playready",e.DRM_LICENSE_FAIRPLAY="drm/license/fairplay",e.DRM_LICENSE_PRIMETIME="drm/license/primetime",e.DRM_LICENSE_CLEARKEY="drm/license/clearkey",e.DRM_CERTIFICATE_FAIRPLAY="drm/certificate/fairplay",e.KEY_HLS_AES="key/hls/aes",e.TIME_SYNC="time/sync",e.WEBRTC_SDP_REQUEST="webrtc/sdp/request",e.WEBRTC_SDP_ANSWER="webrtc/sdp/answer",e.WEBRTC_SDP_OFFER="webrtc/sdp/offer",e.UNKNOWN="unknown",e.INTERNAL="internal"}(n||(t.HttpRequestType=n={}))},4439:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.AdSample=void 0
var i=n(5063),r=function(){function e(t){if(this.clicked=0,this.closed=0,this.completed=0,this.midpoint=0,this.quartile1=0,this.quartile3=0,this.skipped=0,this.started=0,t){this.adClickthroughUrl=t.clickThroughUrl,this.adId=t.id,this.mediaUrl=t.mediaFileUrl
var n=i.getHostnameAndPathFromUrl(this.mediaUrl||"")
this.mediaPath=n.path,this.mediaServer=n.hostname,this.isLinear=t.isLinear,this.adPlaybackHeight=t.height,this.adPlaybackWidth=t.width,t.data&&(this.videoBitrate=void 0===t.data.bitrate?void 0:1e3*t.data.bitrate,this.streamFormat=t.data.mimeType)
var r=t.data
r&&(r.adSystem&&(this.adSystem=r.adSystem.name),r.advertiser&&(this.advertiserName=r.advertiser.name),this.apiFramework=r.apiFramework,r.creative&&(this.creativeAdId=r.creative.adId,this.creativeId=r.creative.id,r.creative.universalAdId&&(this.universalAdIdRegistry=r.creative.universalAdId.idRegistry,this.universalAdIdValue=r.creative.universalAdId.value)),this.adDescription=r.adDescription,this.minSuggestedDuration=i.calculateTimeWithUndefined(r.minSuggestedDuration),r.survey&&(this.surveyUrl=r.survey.uri),this.adTitle=r.adTitle,this.wrapperAdsCount=r.wrapperAdIds?r.wrapperAdIds.length:0)}var o=t
o&&(this.adSkippableAfter=e.parseSkipAfter(o.skippableAfter),this.adSkippable=o.skippable||(void 0===this.adSkippableAfter?void 0:this.adSkippableAfter>=0),this.adDuration=i.calculateTime(o.duration))}return e.parseSkipAfter=function(e){if(void 0!==e)return-1===e?e:i.calculateTime(e)},e}()
t.AdSample=r},4501:function(e,t){"use strict"
var n
Object.defineProperty(t,"__esModule",{value:!0}),t.LicensingResult=void 0,function(e){e.Denied="denied",e.Granted="granted",e.Skip="skip"}(n||(t.LicensingResult=n={}))},4649:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.SEQUENCE_NUMBER_LIMIT=t.ANALYTICS_MIN_SEEK_DIFFERENCE_THRESHOLD=t.ANALYTICS_REBUFFER_TIMEOUT=t.ANALYTICS_QUALITY_CHANGE_COUNT_RESET_INTERVAL=t.ANALYTICS_QUALITY_CHANGE_COUNT_THRESHOLD=t.ANALYTICS_VIDEOSTART_TIMEOUT=t.ANALYTICS_LICENSECALL_TIMEOUT=t.ANALYTICS_BACKEND_BASE_URL=t.MESSAGE_NAMESPACE=void 0,t.MESSAGE_NAMESPACE="urn:x-cast:com.bitmovin.analytics.cast",t.ANALYTICS_BACKEND_BASE_URL="https://analytics-ingress-global.bitmovin.com",t.ANALYTICS_LICENSECALL_TIMEOUT=6e4,t.ANALYTICS_VIDEOSTART_TIMEOUT=6e4,t.ANALYTICS_QUALITY_CHANGE_COUNT_THRESHOLD=50,t.ANALYTICS_QUALITY_CHANGE_COUNT_RESET_INTERVAL=36e5,t.ANALYTICS_REBUFFER_TIMEOUT=12e4,t.ANALYTICS_MIN_SEEK_DIFFERENCE_THRESHOLD=3,t.SEQUENCE_NUMBER_LIMIT=1e3},4654:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.ShakaPlayerEvent=void 0,t.ShakaPlayerEvent={UNLOADING:"unloading",ONSTATECHANGE:"onstatechange",STATECHANGED:"statechanged",BUFFERING:"buffering",ERROR:"error"}},4679:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.Bitmovin8Adapter=void 0
var i=n(4350),r=n(6398),o=n(8331),a=n(1916),s=n(2108),c=n(4926),l=n(4067),u=n(6596),d=function(){function e(e,t){var n,c=this
if(this.ssai={adBreakStart:function(e){if((0,s.isDefined)(c.internalAdapter)){var t=(0,l.sanitizeBitmovin8AdapterSsaiAdBreakMetadataAdPosition)(e)
if((0,r.hasValidSsaiAdBreakMetadataStructure)(t)){var n=(0,r.simplySanitizeSsaiAdBreakMetadata)(t)
c.internalAdapter.ssaiService.adBreakStart(n)}}},adStart:function(e){if((0,s.isDefined)(c.analytics)&&(0,s.isDefined)(c.internalAdapter)&&(0,r.hasValidSsaiAdMetadataStructure)(e)){var t=(0,r.simplySanitizeSsaiAdMetadata)(e)
c.internalAdapter.ssaiService.adStart(t),c.analytics.setConfigParameters()}},adQuartileFinished:function(e,t){if((0,s.isDefined)(c.analytics)&&(0,s.isDefined)(c.internalAdapter)&&(0,r.hasValidSsaiAdQuartileStructure)(e)){var n=(0,r.sanitizeSsaiAdQuartileMetadata)(t)
c.internalAdapter.ssaiService.adQuartileFinished(e,n)}},adBreakEnd:function(){(0,s.isDefined)(c.analytics)&&(0,s.isDefined)(c.internalAdapter)&&(c.internalAdapter.ssaiService.adBreakEnd(),c.analytics.setConfigParameters())}},(0,s.hasPlayerAlreadyBeenAugmented)(e))a.logger.errorMessageToUser("Bitmovin Analytics is already hooked up to this player instance")
else{(0,s.markPlayerInstanceAsAugmented)(e)
var d=e.getConfig(),f=(0,o.sanitizeAnalyticsConfig)(d.analytics);(0,o.guardAgainstDuplicatedUserId)(f),f.playerKey=null!==(n=f.playerKey)&&void 0!==n?n:d.key,this.internalAdapter=u.Bitmovin8InternalAdapter.create(e,t),this.analytics=i.Analytics.create(f,this.internalAdapter),e.analytics=this,this.wrapPlayerLoad(e,this.analytics)}}return e.prototype.wrapPlayerLoad=function(e,t){var n=e.load
e.load=function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r]
if(i.length>0){var o=i[0].analytics
t.sourceChange(o)}return n.apply(e,i)}},Object.defineProperty(e.prototype,"version",{get:function(){return c.VERSION},enumerable:!1,configurable:!0}),e.prototype.getCurrentImpressionId=function(){if((0,s.isDefined)(this.analytics))return this.analytics.getCurrentImpressionId()},e.prototype.getUserId=function(){if((0,s.isDefined)(this.analytics))return this.analytics.getUserId()},e.prototype.setCustomData=function(e){(0,s.isDefined)(this.internalAdapter)&&this.internalAdapter.setCustomData(e)},e.prototype.setCustomDataOnce=function(e){(0,s.isDefined)(this.analytics)&&this.analytics.setCustomDataOnce(e)},e.prototype.sourceChange=function(e){(0,s.isDefined)(this.analytics)&&this.analytics.sourceChange(e)},e.version=c.VERSION,e}()
t.Bitmovin8Adapter=d},4778:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.HlsSpeedMeterAdapter=void 0
var i=n(5063),r=function(){function e(e,t){var n=this
this.meter=t,e.on(e.constructor.Events.FRAG_LOADED,(function(e,t){return n.handleFragmentLoadedEvent(t)}))}return e.prototype.getDownloadSpeedMeter=function(){return this.meter},e.prototype.handleFragmentLoadedEvent=function(e){if("main"===e.frag.type){var t=(0,i.isNotNullish)(e.networkDetails)?e.networkDetails.status:void 0
if(!(0,i.isNullish)(t)){var n=e.frag.stats,r=(n.loading.end-n.loading.start)/1e3,o=(n.loading.first-n.loading.start)/1e3,a={duration:r,size:n.total,timeToFirstByte:o,timestamp:new Date,httpStatus:t}
this.meter.addMeasurement(a)}}},e}()
t.HlsSpeedMeterAdapter=r},4820:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.defaultStateMachineCallbacks=void 0,t.defaultStateMachineCallbacks={setup:function(){},startup:function(){},playing:function(){},heartbeat:function(){},qualitychange:function(){},qualitychange_pause:function(){},qualitychange_rebuffering:function(){},videoChange:function(){},audioChange:function(){},audiotrack_changing:function(){},pause:function(){},paused_seeking:function(){},end_play_seeking:function(){},rebuffering:function(){},error:function(){},end:function(){},unload:function(){},ad:function(){},mute:function(){},unMute:function(){},subtitle_changing:function(){},setVideoTimeEndFromEvent:function(){},setVideoTimeStartFromEvent:function(){},videoStartupFailed:function(){},startCasting:function(){},casting:function(){},manualSourceChange:function(){},initialSourceChange:function(){},muting_ready:function(){},customdatachange:function(){},release:function(){},playlistTransition:function(){}}},4916:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.SourceInfoFallbackService=void 0
var i=n(1820),r=n(5063),o=function(){function e(){}return e.prototype.reset=function(){this.streamFormat=void 0,this.audioCodec=void 0,this.videoCodec=void 0},e.prototype.setStreamFormat=function(e){this.streamFormat=e},e.prototype.applyStreamFormat=function(e){(0,i.isBlank)(this.streamFormat)||(e.streamFormat=this.streamFormat)},e.prototype.applyAndStoreCodecInfo=function(e,t){(0,r.isNotNullish)(null==t?void 0:t.audioCodec)&&(this.audioCodec=t.audioCodec),(0,r.isNotNullish)(null==t?void 0:t.videoCodec)&&(this.videoCodec=t.videoCodec),(0,i.isBlank)(this.audioCodec)||(e.audioCodec=this.audioCodec),(0,i.isBlank)(this.videoCodec)||(e.videoCodec=this.videoCodec)},e}()
t.SourceInfoFallbackService=o},4926:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION=void 0,t.VERSION="v2.43.3"},4934:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.deleteCookie=t.getCookie=t.setCookie=void 0,t.setCookie=function(e,t,n){var i=e+"="+t+"; path=/";(null==n?void 0:n.domain)&&(i+="; domain=".concat(n.domain)),(null==n?void 0:n.expires)&&(i+="; expires=".concat(n.expires)),(null==n?void 0:n.maxAge)&&(i+="; max-age=".concat(n.maxAge)),document.cookie=i},t.getCookie=function(e){for(var t=e+"=",n=0,i=document.cookie.split(";");n<i.length;n++){for(var r=i[n],o=r;" "===o.charAt(0);)o=o.substring(1)
if(0===o.indexOf(t))return o.substring(t.length,r.length)}return""},t.deleteCookie=function(e){document.cookie="".concat(e,"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}},5063:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.joinUrls=t.getURLResourceName=t.calculatePercentage=t.getHostnameAndPathFromUrl=t.getHiddenProp=t.isVideoInFullscreen=t.getDocumentPropWithPrefix=t.transferCustomDataFields=t.getCustomDataString=t.noOp=t.getCurrentTimestamp=t.calculateTime=t.calculateTimeWithUndefined=t.sanitizePath=t.isPlainObject=t.isObject=t.isNumber=t.toBoolean=t.isBoolean=t.isNotNullish=t.isNullish=void 0,t.getPageLoadType=function(){var e=(0,t.getHiddenProp)()
return(0,t.isNotNullish)(e)&&!0===document[e]?i.PAGE_LOAD_TYPE.BACKGROUND:i.PAGE_LOAD_TYPE.FOREGROUND}
var i=n(9946),r=n(5529),o=n(1820)
t.isNullish=function(e){return null==e},t.isNotNullish=function(e){return!(0,t.isNullish)(e)},t.isBoolean=function(e){return!(0,t.isNullish)(e)&&"boolean"==typeof e},t.toBoolean=function(e){return Boolean(e).valueOf()},t.isNumber=function(e){return!(0,t.isNullish)(e)&&"number"==typeof e},t.isObject=function(e){return(0,t.isNotNullish)(e)&&"object"==typeof e},t.isPlainObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},t.sanitizePath=function(e){return e.replace(/\/$/g,"")},t.calculateTimeWithUndefined=function(e){return void 0===e?e:(e*=1e3,Math.round(e))},t.calculateTime=function(e){return e*=1e3,Math.round(e)},t.getCurrentTimestamp=function(){return Date.now()},t.noOp=function(){},t.getCustomDataString=function(e){return"object"==typeof e?JSON.stringify(e):"function"==typeof e?(0,t.getCustomDataString)(e()):void 0===e?e:"string"!=typeof e?String(e):e},t.transferCustomDataFields=function(e,n){for(var i=1;i<=r.customDataFieldCount;i++){var o="customData".concat(i)
n[o]=(0,t.getCustomDataString)(e[o])}},t.getDocumentPropWithPrefix=function(e){if(e in document)return e
for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0,i=["webkit","moz","ms","o"];n<i.length;n++){var r=i[n]
if(r+t in document)return r+t}},t.isVideoInFullscreen=function(){var e=(0,t.getDocumentPropWithPrefix)("fullscreenElement")
return void 0!==e&&document[e]&&"VIDEO"===document[e].nodeName},t.getHiddenProp=function(){return(0,t.getDocumentPropWithPrefix)("hidden")},t.getHostnameAndPathFromUrl=function(e){var t=document.createElement("a")
return t.href=e,{hostname:t.hostname,path:t.pathname}},t.calculatePercentage=function(e,t){if(void 0!==t&&0!==t)return Math.round((e||0)/t*100)},t.getURLResourceName=function(e){return 0===e.length?"":e.split("/").pop()||""},t.joinUrls=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]
return e.reduce((function(e,t){return((0,o.endsWith)(e,"/")&&void 0!==t?e.substr(0,e.length-1):e)+"/"+((0,o.startsWith)(t,"/")?t.substr(1):t)}))}},5127:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.CAFv3Adapter=void 0
var i=n(4350),r=n(8331),o=n(1916),a=n(2108),s=n(4926),c=n(3236),l=function(){function e(e,t,n){if((0,a.hasPlayerAlreadyBeenAugmented)(t))o.logger.errorMessageToUser("Bitmovin Analytics is already hooked up to this player instance")
else{(0,a.markPlayerInstanceAsAugmented)(t)
var s=(0,r.sanitizeAnalyticsConfig)(e);(0,r.guardAgainstDuplicatedUserId)(s),this.internalAdapter=new c.CAFv3InternalAdapter(t,n),this.analytics=i.Analytics.create(s,this.internalAdapter)}}return Object.defineProperty(e.prototype,"version",{get:function(){return s.VERSION},enumerable:!1,configurable:!0}),e.prototype.getCurrentImpressionId=function(){if((0,a.isDefined)(this.analytics))return this.analytics.getCurrentImpressionId()},e.prototype.getUserId=function(){if((0,a.isDefined)(this.analytics))return this.analytics.getUserId()},e.prototype.setCustomData=function(e){(0,a.isDefined)(this.internalAdapter)&&this.internalAdapter.setCustomData(e)},e.prototype.setCustomDataOnce=function(e){(0,a.isDefined)(this.analytics)&&this.analytics.setCustomDataOnce(e)},e.prototype.sourceChange=function(e){(0,a.isDefined)(this.analytics)&&this.analytics.sourceChange(e)},e.version=s.VERSION,e}()
t.CAFv3Adapter=l},5182: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)}),o=this&&this.__spreadArray||function(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))}
Object.defineProperty(t,"__esModule",{value:!0}),t.VideojsAnalyticsStateMachine=void 0
var a,s=n(2595),c=n(2361),l=n(6608),u=n(1916),d=n(7596),f=n(8253)
!function(e){e.AD="AD",e.AUDIOTRACK_CHANGED_PLAYING="AUDIOTRACK_CHANGED_PLAYING",e.AUDIOTRACK_CHANGING="AUDIOTRACK_CHANGING",e.CASTING="CASTING",e.CUSTOMDATACHANGE="CUSTOMDATACHANGE",e.END="END",e.END_PLAY_SEEKING="END_PLAY_SEEKING",e.ERROR="ERROR",e.MUTING_PAUSE="MUTING_PAUSE",e.MUTING_PLAY="MUTING_PLAY",e.MUTING_READY="MUTING_READY",e.PAUSE="PAUSE",e.PAUSED_SEEKING="PAUSED_SEEKING",e.PLAY_SEEKING="PLAY_SEEKING",e.PLAYING="PLAYING",e.QUALITYCHANGE="QUALITYCHANGE",e.QUALITYCHANGE_PAUSE="QUALITYCHANGE_PAUSE",e.QUALITYCHANGE_REBUFFERING="QUALITYCHANGE_REBUFFERING",e.READY="READY",e.REBUFFERING="REBUFFERING",e.SETUP="SETUP",e.SOURCE_CHANGING="SOURCE_CHANGING",e.STARTUP="STARTUP",e.STARTUP_FAILURE="STARTUP_FAILURE",e.SUBTITLE_CHANGED_PLAYING="SUBTITLE_CHANGED_PLAYING",e.SUBTITLE_CHANGING="SUBTITLE_CHANGING"}(a||(a={}))
var p=function(e){function t(t,n,i){var r=e.call(this,t,i)||this
return r.seekTimestamp=0,r.seekedTimestamp=0,r.playingHeartbeatService=n,r}return r(t,e),t.prototype.getAllStates=function(){return o(o([],Object.keys(a).map((function(e){return a[e]})),!0),["FINISH_PLAY_SEEKING","PLAY_SEEK","FINISH_QUALITYCHANGE_PAUSE","FINISH_QUALITYCHANGE","FINISH_QUALITYCHANGE_REBUFFERING"],!1)},t.prototype.getAllStatesBut=function(e){return this.getAllStates().filter((function(t){return t!==e}))},t.prototype.createStateMachine=function(e){var t,n=this
return s.create({initial:a.SETUP,error:f.customStateMachineErrorCallback,events:[{name:c.Event.SOURCE_LOADED,from:[a.SETUP,a.ERROR,a.SOURCE_CHANGING],to:a.READY},(0,f.on)(c.Event.TIMECHANGED).stayIn(a.SETUP),(0,f.on)(c.Event.SOURCE_LOADED).stayIn(a.READY),{name:c.Event.READY,from:[a.SETUP,a.ERROR],to:a.READY},{name:c.Event.PLAY,from:a.READY,to:a.STARTUP},{name:c.Event.ERROR,from:a.STARTUP,to:a.STARTUP_FAILURE},{name:c.Event.UNLOAD,from:a.STARTUP,to:a.STARTUP_FAILURE},{name:c.Event.VIDEOSTART_TIMEOUT,from:a.STARTUP,to:a.STARTUP_FAILURE},(0,f.on)(c.Event.START_BUFFERING).stayIn(a.STARTUP),(0,f.on)(c.Event.END_BUFFERING).stayIn(a.STARTUP),(0,f.on)(c.Event.VIDEO_CHANGE).stayIn(a.STARTUP),(0,f.on)(c.Event.AUDIO_CHANGE).stayIn(a.STARTUP),{name:c.Event.TIMECHANGED,from:a.STARTUP,to:a.PLAYING},(0,f.on)(c.Event.TIMECHANGED).stayIn(a.PLAYING),(0,f.on)(c.Event.END_BUFFERING).stayIn(a.PLAYING),{name:c.Event.START_BUFFERING,from:a.PLAYING,to:a.REBUFFERING},(0,f.on)(c.Event.START_BUFFERING).stayIn(a.REBUFFERING),{name:c.Event.TIMECHANGED,from:a.REBUFFERING,to:a.PLAYING},(0,f.on)(c.Event.SEEK).stayIn(a.STARTUP),{name:c.Event.SEEK,from:a.PLAYING,to:a.PLAY_SEEKING},(0,f.on)(c.Event.TIMECHANGED).stayIn(a.PLAY_SEEKING),(0,f.on)(c.Event.TIMECHANGED).stayIn(a.PAUSED_SEEKING),{name:c.Event.PAUSE,from:a.PLAYING,to:a.PAUSE},{name:c.Event.PAUSE,from:a.REBUFFERING,to:a.PAUSE},(0,f.on)(c.Event.TIMECHANGED).stayIn(a.PAUSE),{name:c.Event.PLAY,from:a.PAUSE,to:a.PLAYING},{name:c.Event.VIDEO_CHANGE,from:a.PLAYING,to:a.QUALITYCHANGE},{name:c.Event.AUDIO_CHANGE,from:a.PLAYING,to:a.QUALITYCHANGE},(0,f.on)(c.Event.VIDEO_CHANGE).stayIn(a.QUALITYCHANGE),(0,f.on)(c.Event.AUDIO_CHANGE).stayIn(a.QUALITYCHANGE),{name:"FINISH_QUALITYCHANGE",from:a.QUALITYCHANGE,to:a.PLAYING},{name:c.Event.VIDEO_CHANGE,from:a.PAUSE,to:a.QUALITYCHANGE_PAUSE},{name:c.Event.AUDIO_CHANGE,from:a.PAUSE,to:a.QUALITYCHANGE_PAUSE},(0,f.on)(c.Event.VIDEO_CHANGE).stayIn(a.QUALITYCHANGE_PAUSE),(0,f.on)(c.Event.AUDIO_CHANGE).stayIn(a.QUALITYCHANGE_PAUSE),{name:"FINISH_QUALITYCHANGE_PAUSE",from:a.QUALITYCHANGE_PAUSE,to:a.PAUSE},{name:c.Event.SEEK,from:a.PAUSE,to:a.PAUSED_SEEKING},(0,f.on)(c.Event.SEEK).stayIn(a.PAUSED_SEEKING),(0,f.on)(c.Event.AUDIO_CHANGE).stayIn(a.PAUSED_SEEKING),(0,f.on)(c.Event.VIDEO_CHANGE).stayIn(a.PAUSED_SEEKING),(0,f.on)(c.Event.START_BUFFERING).stayIn(a.PAUSED_SEEKING),(0,f.on)(c.Event.END_BUFFERING).stayIn(a.PAUSED_SEEKING),{name:c.Event.SEEKED,from:a.PAUSED_SEEKING,to:a.PAUSE},{name:c.Event.PLAY,from:a.PAUSED_SEEKING,to:a.PLAYING},{name:c.Event.PAUSE,from:a.PAUSED_SEEKING,to:a.PAUSE},{name:"PLAY_SEEK",from:a.PAUSE,to:a.PLAY_SEEKING},{name:"PLAY_SEEK",from:a.PAUSED_SEEKING,to:a.PLAY_SEEKING},(0,f.on)("PLAY_SEEK").stayIn(a.PLAY_SEEKING),(0,f.on)(c.Event.SEEK).stayIn(a.PLAY_SEEKING),(0,f.on)(c.Event.AUDIO_CHANGE).stayIn(a.PLAY_SEEKING),(0,f.on)(c.Event.VIDEO_CHANGE).stayIn(a.PLAY_SEEKING),(0,f.on)(c.Event.START_BUFFERING).stayIn(a.PLAY_SEEKING),(0,f.on)(c.Event.END_BUFFERING).stayIn(a.PLAY_SEEKING),(0,f.on)(c.Event.SEEKED).stayIn(a.PLAY_SEEKING),{name:c.Event.SEEKED,from:a.PLAY_SEEKING,to:a.END_PLAY_SEEKING},(0,f.on)(c.Event.START_BUFFERING).stayIn(a.END_PLAY_SEEKING),(0,f.on)(c.Event.END_BUFFERING).stayIn(a.END_PLAY_SEEKING),(0,f.on)(c.Event.SEEKED).stayIn(a.END_PLAY_SEEKING),{name:c.Event.TIMECHANGED,from:a.END_PLAY_SEEKING,to:a.PLAYING},{name:c.Event.END,from:a.PLAY_SEEKING,to:a.END},{name:c.Event.END,from:a.PAUSED_SEEKING,to:a.END},{name:c.Event.END,from:a.PLAYING,to:a.END},{name:c.Event.END,from:a.PAUSE,to:a.END},(0,f.on)(c.Event.SEEK).stayIn(a.END),(0,f.on)(c.Event.SEEKED).stayIn(a.END),(0,f.on)(c.Event.TIMECHANGED).stayIn(a.END),(0,f.on)(c.Event.END_BUFFERING).stayIn(a.END),(0,f.on)(c.Event.START_BUFFERING).stayIn(a.END),(0,f.on)(c.Event.END).stayIn(a.END),(0,f.on)(c.Event.SEEKED).stayIn(a.PLAYING),{name:c.Event.PLAY,from:a.END,to:a.PLAYING},{name:c.Event.ERROR,from:this.getAllStatesBut(a.STARTUP),to:a.ERROR},{name:c.Event.PAUSE,from:a.ERROR,to:a.ERROR},{name:c.Event.SEEK,from:a.END_PLAY_SEEKING,to:a.PLAY_SEEKING},{name:"FINISH_PLAY_SEEKING",from:a.END_PLAY_SEEKING,to:a.PLAYING},{name:c.Event.UNLOAD,from:this.getAllStatesBut(a.STARTUP),to:a.END},{name:c.Event.START_AD,from:a.PLAYING,to:a.AD},{name:c.Event.END_AD,from:a.AD,to:a.PLAYING},(0,f.on)(c.Event.MUTE).stayIn(a.SETUP),{name:c.Event.MUTE,from:a.READY,to:a.MUTING_READY},{name:c.Event.UN_MUTE,from:a.READY,to:a.MUTING_READY},{name:"FINISH_MUTING",from:a.MUTING_READY,to:a.READY},{name:c.Event.MUTE,from:a.PLAYING,to:a.MUTING_PLAY},{name:c.Event.UN_MUTE,from:a.PLAYING,to:a.MUTING_PLAY},{name:"FINISH_MUTING",from:a.MUTING_PLAY,to:a.PLAYING},{name:c.Event.MUTE,from:a.PAUSE,to:a.MUTING_PAUSE},{name:c.Event.UN_MUTE,from:a.PAUSE,to:a.MUTING_PAUSE},{name:"FINISH_MUTING",from:a.MUTING_PAUSE,to:a.PAUSE},{name:c.Event.START_CAST,from:[a.READY,a.PAUSE],to:a.CASTING},(0,f.on)(c.Event.PAUSE).stayIn(a.CASTING),(0,f.on)(c.Event.PLAY).stayIn(a.CASTING),(0,f.on)(c.Event.TIMECHANGED).stayIn(a.CASTING),(0,f.on)(c.Event.MUTE).stayIn(a.CASTING),(0,f.on)(c.Event.SEEK).stayIn(a.CASTING),(0,f.on)(c.Event.SEEKED).stayIn(a.CASTING),{name:c.Event.END_CAST,from:a.CASTING,to:a.READY},(0,f.on)(c.Event.SEEK).stayIn(a.READY),(0,f.on)(c.Event.SEEKED).stayIn(a.READY),{name:c.Event.SEEKED,from:a.STARTUP,to:a.STARTUP},{name:c.Event.AUDIOTRACK_CHANGED,from:a.PLAYING,to:a.AUDIOTRACK_CHANGED_PLAYING},{name:"FINISH_AUDIOTRACK_CHANGING",from:a.AUDIOTRACK_CHANGED_PLAYING,to:a.PLAYING},(0,f.on)(c.Event.AUDIOTRACK_CHANGED).stayIn(a.PAUSE),(0,f.on)(c.Event.AUDIOTRACK_CHANGED).stayIn(a.READY),(0,f.on)(c.Event.AUDIOTRACK_CHANGED).stayIn(a.REBUFFERING),(0,f.on)(c.Event.AUDIOTRACK_CHANGED).stayIn(a.END_PLAY_SEEKING),{name:c.Event.AUDIOTRACK_CHANGED,from:a.AUDIOTRACK_CHANGING,to:a.AUDIOTRACK_CHANGING},{name:c.Event.SUBTITLE_CHANGE,from:a.PLAYING,to:a.SUBTITLE_CHANGED_PLAYING},{name:"FINISH_SUBTITLE_CHANGING",from:a.SUBTITLE_CHANGED_PLAYING,to:a.PLAYING},(0,f.on)(c.Event.SUBTITLE_CHANGE).stayIn(a.PAUSE),(0,f.on)(c.Event.SUBTITLE_CHANGE).stayIn(a.READY),(0,f.on)(c.Event.SUBTITLE_CHANGE).stayIn(a.REBUFFERING),(0,f.on)(c.Event.SUBTITLE_CHANGE).stayIn(a.END_PLAY_SEEKING),(0,f.on)(c.Event.SUBTITLE_CHANGE).stayIn(a.SOURCE_CHANGING),(0,f.on)(c.Event.SUBTITLE_CHANGE).stayIn(a.SUBTITLE_CHANGING),{name:c.Event.MANUAL_SOURCE_CHANGE,from:this.getAllStatesBut(a.READY),to:a.SOURCE_CHANGING},(0,f.on)(c.Event.MANUAL_SOURCE_CHANGE).stayIn(a.READY),(0,f.on)(c.Event.MANUAL_SOURCE_CHANGE).stayIn(a.SETUP),(0,f.on)(c.Event.TIMECHANGED).stayIn(a.SOURCE_CHANGING),{name:c.Event.PLAY,from:a.SOURCE_CHANGING,to:a.STARTUP},(0,f.on)(c.Event.SOURCE_LOADED).stayIn(a.STARTUP),{name:c.Event.VIDEO_CHANGE,from:a.REBUFFERING,to:a.QUALITYCHANGE_REBUFFERING},{name:c.Event.AUDIO_CHANGE,from:a.REBUFFERING,to:a.QUALITYCHANGE_REBUFFERING},(0,f.on)(c.Event.VIDEO_CHANGE).stayIn(a.QUALITYCHANGE_REBUFFERING),(0,f.on)(c.Event.AUDIO_CHANGE).stayIn(a.QUALITYCHANGE_REBUFFERING),{name:"FINISH_QUALITYCHANGE_REBUFFERING",from:a.QUALITYCHANGE_REBUFFERING,to:a.REBUFFERING},{name:c.Event.CUSTOM_DATA_CHANGE,from:[a.PLAYING,a.PAUSE],to:a.CUSTOMDATACHANGE},{name:c.Event.PLAYING,from:a.CUSTOMDATACHANGE,to:a.PLAYING},{name:c.Event.PAUSE,from:a.CUSTOMDATACHANGE,to:a.PAUSE}],callbacks:(t={onafterevent:function(e,t,i,r){i===a.QUALITYCHANGE&&n.stateMachine.FINISH_QUALITYCHANGE(r),i!==a.MUTING_READY&&i!==a.MUTING_PLAY&&i!==a.MUTING_PAUSE||n.stateMachine.FINISH_MUTING(r),i===a.AUDIOTRACK_CHANGED_PLAYING&&n.stateMachine.FINISH_AUDIOTRACK_CHANGING(r),i===a.SUBTITLE_CHANGED_PLAYING&&n.stateMachine.FINISH_SUBTITLE_CHANGING(r)}},t["onenter".concat(a.PLAYING)]=function(){n.playingHeartbeatService.startHeartbeat()},t.onenterstate=function(t,i,r,o,s){"none"===i&&e.starttime?n.onEnterStateTimestamp=e.starttime:n.onEnterStateTimestamp=o||(new Date).getTime(),u.logger.log("[ENTER] "+(0,u.padRight)(r,20)+"EVENT: "+(0,u.padRight)(t,20)+" from "+(0,u.padRight)(i,14)),s&&r!==a.PAUSED_SEEKING&&r!==a.PLAY_SEEKING&&r!==a.END_PLAY_SEEKING&&n.stateMachineCallbacks.setVideoTimeStartFromEvent(s),t===c.Event.SEEK&&n.stateMachineCallbacks.setVideoTimeStartFromEvent(s),t===c.Event.SEEKED&&n.stateMachineCallbacks.setVideoTimeEndFromEvent(s),"PLAY_SEEK"===t&&r===a.PLAY_SEEKING&&r!==a.PLAY_SEEKING&&r!==a.END_PLAY_SEEKING&&(n.seekTimestamp=n.onEnterStateTimestamp),t===c.Event.START_CAST&&r===a.CASTING&&n.stateMachineCallbacks.startCasting(o,s),r===a.REBUFFERING&&n.startRebufferingHeartbeatInterval()},t["onleave".concat(a.PLAYING)]=function(){n.playingHeartbeatService.stopHeartbeat()},t.onleavestate=function(e,t,i,r,o){if(t===a.REBUFFERING&&n.resetRebufferingHelpers(),r){u.logger.log("[LEAVE] ".concat((0,u.padRight)(t,20)," EVENT: ").concat((0,u.padRight)(e,20)," to ").concat((0,u.padRight)(i,20)))
var s=r-n.onEnterStateTimestamp
if(o&&i!==a.PAUSED_SEEKING&&i!==a.END_PLAY_SEEKING&&n.stateMachineCallbacks.setVideoTimeEndFromEvent(o),"PLAY_SEEK"===e&&t===a.PAUSE)return!0
t===a.READY&&i===a.STARTUP?n.setVideoStartTimeout():t!==a.STARTUP||i!==a.PLAYING&&i!==a.STARTUP_FAILURE||n.clearVideoStartTimeout()
var d=String(t).toLowerCase()
if(i===a.STARTUP_FAILURE)n.clearVideoStartTimeout(),n.stateMachineCallbacks.videoStartupFailed((0,l.createStartupFailureReason)(e))
else if(t===a.PAUSED_SEEKING){var p=r-n.seekTimestamp
n.stateMachineCallbacks.paused_seeking(p,d)}else if(t===a.END_PLAY_SEEKING)p=n.seekedTimestamp-n.seekTimestamp,n.stateMachineCallbacks.end_play_seeking(p,d)
else if(e===c.Event.UNLOAD)n.stateMachineCallbacks.unload(s,d)
else if(t===a.PAUSE&&i!==a.PAUSED_SEEKING)n.stateMachineCallbacks.setVideoTimeStartFromEvent(e),n.stateMachineCallbacks.pause(s,d)
else{var h=n.stateMachineCallbacks[d]
"function"==typeof h?h(s,d,o):(0,f.logMissingCallbackWarning)(t,[a.READY,a.SOURCE_CHANGING,a.MUTING_PAUSE,a.MUTING_PLAY,a.AUDIOTRACK_CHANGED_PLAYING,a.SUBTITLE_CHANGED_PLAYING])}o&&i!==a.PAUSED_SEEKING&&i!==a.PLAY_SEEKING&&i!==a.END_PLAY_SEEKING&&n.stateMachineCallbacks.setVideoTimeStartFromEvent(o),e===c.Event.VIDEO_CHANGE?n.stateMachineCallbacks.videoChange(o):e===c.Event.AUDIO_CHANGE?n.stateMachineCallbacks.audioChange(o):e===c.Event.MUTE?n.stateMachineCallbacks.mute():e===c.Event.UN_MUTE?n.stateMachineCallbacks.unMute():e===c.Event.MANUAL_SOURCE_CHANGE&&n.stateMachineCallbacks.manualSourceChange(o)}},t.onseek=function(e,t,i,r){n.seekTimestamp=r},t.onseeked=function(e,t,i,r){n.seekedTimestamp=r},t.onplayerError=function(e,t,i,r,o){n.stateMachineCallbacks.error(o)},t)})},t.prototype.callEvent=function(e,t,n){var i=this.stateMachine[e]
i?i.call(this.stateMachine,n,t):u.logger.log("Ignored Event: "+e)},t.prototype.onSsaiPlaybackInteraction=function(e,t){},t.prototype.onHeartbeat=function(e){var t=Date.now()
this.sendCurrentStateSample(t,e)},t.prototype.sendCurrentStateSample=function(e,t){this.stateMachineCallbacks.setVideoTimeEndFromEvent(t)
var n=e-this.onEnterStateTimestamp,i=this.stateMachine.current.toLowerCase(),r=(0,f.createHeartbeatPayload)(n,i)
this.stateMachineCallbacks.heartbeat(n,i,r),this.onEnterStateTimestamp=e,this.stateMachineCallbacks.setVideoTimeStartFromEvent(t)},t}(d.AnalyticsStateMachine)
t.VideojsAnalyticsStateMachine=p},5241:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeSessionMetadataAudioLanguage=function(e){if(!(0,i.isNullish)(e))return String(e).substring(0,50)},t.sanitizeSessionMetadataSubtitleEnabled=function(e){if(!(0,i.isNullish)(e))return(0,i.toBoolean)(e)},t.sanitizeSessionMetadataSubtitleLanguage=function(e){if(!(0,i.isNullish)(e))return String(e).substring(0,100)}
var i=n(5063)},5248:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.getSourceInfoFromBitmovinSourceConfig=void 0
var i=n(5063)
t.getSourceInfoFromBitmovinSourceConfig=function(e,t){if(!e)return{progBitrate:void 0,progUrl:void 0}
if("string"==typeof e)return{progBitrate:0,progUrl:e}
if(Array.isArray(e)&&e.length>0){var n=t.getPlaybackVideoData(),r=0
return(0,i.isNotNullish)(n)&&!isNaN(+n.id)&&(r=+n.id),{progBitrate:e[r].bitrate||0,progUrl:e[r].url}}return"object"!=typeof e||Array.isArray(e)?{progBitrate:void 0,progUrl:void 0}:{progBitrate:e.bitrate||0,progUrl:e.url}}},5253:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.LicenseCall=function(e,t,n,o){var a=(0,r.joinUrls)(o,"/licensing"),s={analyticsVersion:n,domain:t,key:e}
return new Promise((function(e){(0,i.post)(a,s,(function(t){e(t)}))}))}
var i=n(92),r=n(5063)},5406: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}),t.BitmovinPwxAnalyticsStateMachine=t.State=void 0
var o,a=n(2595),s=n(7596),c=n(8253),l=n(2361),u=n(1652),d=n(1916)
!function(e){e.END="END",e.ERROR="ERROR",e.PAUSE="PAUSE",e.PLAYING="PLAYING",e.READY="READY",e.SETUP="SETUP",e.SOURCE_LOADED="SOURCE_LOADED",e.STARTUP="STARTUP",e.STARTUP_FAILURE="STARTUP_FAILURE"}(o||(t.State=o={}))
var f=function(e){function t(t,n,i){var r=e.call(this,t,i)||this
return r.enabledDebugging=!1,r.debuggingStates=[],r.playingHeartbeatService=n,r}return r(t,e),t.prototype.getAllStatesBut=function(e){return this.getAllStates().filter((function(t){return e.indexOf(t)<0}))},t.prototype.getAllStates=function(){return Object.keys(o).map((function(e){return o[e]}))},t.prototype.callEvent=function(e,t,n){var i=this.stateMachine[e]
if(i)try{i.call(this.stateMachine,n,t)}catch(n){d.logger.error("Exception occured in State Machine callback "+e,i,t,n)}else d.logger.log("Ignored Event: "+e)},t.prototype.onSsaiPlaybackInteraction=function(e,t){},t.prototype.createStateMachine=function(e){var t,n=this
return a.StateMachine.create({initial:o.SETUP,error:c.customStateMachineErrorCallback,events:[{name:l.Event.SOURCE_LOADED,from:[o.SETUP,o.ERROR],to:o.READY},(0,c.on)(l.Event.READY).stayIn(o.READY),(0,c.on)(l.Event.PAUSE).stayIn(o.READY),(0,c.on)(l.Event.TIMECHANGED).stayIn(o.READY),{name:l.Event.PLAY,from:o.READY,to:o.STARTUP},{name:l.Event.PLAYING,from:o.READY,to:o.PLAYING},(0,c.on)(l.Event.PLAY).stayIn(o.STARTUP),(0,c.on)(l.Event.PLAYING).stayIn(o.STARTUP),{name:l.Event.TIMECHANGED,from:o.STARTUP,to:o.PLAYING},(0,c.on)(l.Event.READY).stayIn(o.STARTUP),{name:l.Event.PAUSE,from:o.STARTUP,to:o.READY},(0,c.on)(l.Event.PLAYING).stayIn(o.PLAYING),(0,c.on)(l.Event.TIMECHANGED).stayIn(o.PLAYING),{name:l.Event.PAUSE,from:o.PLAYING,to:o.PAUSE},(0,c.on)(l.Event.TIMECHANGED).stayIn(o.PAUSE),(0,c.on)(l.Event.PAUSE).stayIn(o.PAUSE),{name:l.Event.PLAY,from:o.PAUSE,to:o.PLAYING},{name:l.Event.PLAYING,from:o.PAUSE,to:o.PLAYING},{name:l.Event.END,from:o.PLAYING,to:o.END},{name:l.Event.END,from:o.PAUSE,to:o.END},{name:l.Event.PLAYING,from:o.END,to:o.STARTUP},(0,c.on)(l.Event.TIMECHANGED).stayIn(o.END),(0,c.on)(l.Event.END).stayIn(o.END),{name:l.Event.PLAY,from:o.END,to:o.STARTUP},{name:l.Event.ERROR,from:o.STARTUP,to:o.STARTUP_FAILURE},{name:l.Event.ERROR,from:this.getAllStatesBut([o.STARTUP]),to:o.ERROR},{name:l.Event.UNLOAD,from:this.getAllStatesBut([o.STARTUP]),to:o.END},{name:l.Event.UNLOAD,from:[o.STARTUP],to:o.STARTUP_FAILURE}],callbacks:(t={},t["onenter".concat(o.PLAYING)]=function(){n.playingHeartbeatService.startHeartbeat()},t.onenterstate=function(t,i,r,o,a){"none"===i&&e.starttime?n.onEnterStateTimestamp=e.starttime:n.onEnterStateTimestamp=o||(new Date).getTime(),d.logger.log("[ENTER ".concat(o,"] ").concat((0,d.padRight)(r,20)," EVENT: ").concat((0,d.padRight)(t,20)," from: ").concat((0,d.padRight)(i,14)))},t["onleave".concat(o.PLAYING)]=function(){n.playingHeartbeatService.stopHeartbeat()},t.onleavestate=function(e,t,i,r,a){if(r){d.logger.log("[LEAVE ".concat(r,"] ").concat((0,d.padRight)(t,20)," EVENT: ").concat((0,d.padRight)(e,20)," to: ").concat((0,d.padRight)(i,20))),n.addStatesToLog(e,t,i,r,a)
var s=r-n.onEnterStateTimestamp,c=String(t).toLowerCase(),u=t===o.STARTUP&&i===o.PLAYING
n.maybeSetOrClearVideoStartTimeouts(t,i),u&&n.stateMachineCallbacks.startup(s,o.STARTUP.toLowerCase()),e===l.Event.UNLOAD?n.stateMachineCallbacks.unload(s,c):t===o.SETUP?n.stateMachineCallbacks.setup(1,o.SETUP.toLowerCase()):e===l.Event.PAUSE&&t===o.STARTUP&&i===o.READY?n.clearVideoStartTimeout():t===o.ERROR||u||n.handleRestOfTheCallbacks(c,s,a,t)}},t.onplayerError=function(e,t,i,r,o){n.stateMachineCallbacks.error(o)},t)})},t.prototype.sourceChange=function(e,t,n){throw new Error("Method not implemented.")},t.prototype.onHeartbeat=function(e){var t=Date.now()
this.sendCurrentStateSample(t,e)},t.prototype.addStatesToLog=function(e,t,n,i,r){this.enabledDebugging&&this.debuggingStates.push(new u.EventDebugging(e,t,n,i,r))},t.prototype.getStates=function(){return this.debuggingStates},t.prototype.setEnabledDebugging=function(e){this.enabledDebugging=e},t.prototype.handleRestOfTheCallbacks=function(e,t,n,i){var r=this.stateMachineCallbacks[e]
if("function"==typeof r)try{r(t,e,n)}catch(t){d.logger.error("Exception occurred in State Machine callback "+e,n,t)}else(0,c.logMissingCallbackWarning)(i,[o.READY])},t.prototype.maybeSetOrClearVideoStartTimeouts=function(e,t){e===o.READY&&t===o.STARTUP?this.setVideoStartTimeout():e===o.STARTUP&&t===o.PLAYING&&this.clearVideoStartTimeout()},t.prototype.sendCurrentStateSample=function(e,t,n){void 0===n&&(n=!1),this.stateMachineCallbacks.setVideoTimeEndFromEvent(t)
var i=e-this.onEnterStateTimestamp,r=this.stateMachine.current.toLowerCase(),o=(0,c.createHeartbeatPayload)(i,r,n)
this.stateMachineCallbacks.heartbeat(i,r,o),this.onEnterStateTimestamp=e,this.stateMachineCallbacks.setVideoTimeStartFromEvent(t)},t}(s.AnalyticsStateMachine)
t.BitmovinPwxAnalyticsStateMachine=f},5426:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.AnalyticsCall=void 0
var i=n(7906),r=n(92),o=n(5063),a=function(){function e(e){this.analyticsServerUrl=(0,o.joinUrls)(e,"analytics"),this.adAnalyticsServerUrl=(0,o.joinUrls)(e,"analytics/a")}return e.prototype.sendRequest=function(e,t){var n=this.analyticsServerUrl;(0,i.isSsaiRelatedSample)(e)&&(n=(0,i.appendSsaiRoutingParam)(n)),(0,r.post)(n,e,t)},e.prototype.sendUnloadRequest=function(e){var t=this,n=this.analyticsServerUrl;(0,i.isSsaiRelatedSample)(e)&&(n=(0,i.appendSsaiRoutingParam)(n)),this.trySendBeacon((function(e){return t.sendRequestSynchronous(e,o.noOp)}),n,e)},e.prototype.trySendBeacon=function(e,t,n,i){if(void 0===i&&(i={}),void 0===navigator.sendBeacon)e(n)
else{var r=new Blob([JSON.stringify(n)],i)
navigator.sendBeacon(t,r)||e(n)}},e.prototype.sendRequestSynchronous=function(e,t){var n=this.analyticsServerUrl;(0,i.isSsaiRelatedSample)(e)&&(n=(0,i.appendSsaiRoutingParam)(n)),(0,r.post)(n,e,t,!1)},e.prototype.sendAdRequest=function(e){var t=this.adAnalyticsServerUrl;(0,i.isSsaiRelatedSample)(e)&&(t=(0,i.appendSsaiRoutingParam)(t)),this.trySendBeacon((function(e){return(0,r.post)(t,e,o.noOp)}),t,e)},e}()
t.AnalyticsCall=a},5440:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.AmazonIVSPlayerContext=void 0
var n=function(){function e(e){this.player=e}return Object.defineProperty(e.prototype,"position",{get:function(){return this.player.getPosition()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLive",{get:function(){return this.player.getDuration()===1/0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentQuality",{get:function(){return this.player.getQuality()},enumerable:!1,configurable:!0}),e}()
t.AmazonIVSPlayerContext=n},5517:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.AdCallbacks=void 0
t.AdCallbacks=function(){this.onAdStarted=function(e){},this.onAdFinished=function(e){},this.onAdBreakStarted=function(e){},this.onAdBreakFinished=function(e){},this.onAdClicked=function(e){},this.onAdError=function(e){},this.onAdManifestLoaded=function(e){},this.onAdQuartile=function(e){},this.onAdSkipped=function(e){},this.onPlay=function(e){},this.onPause=function(e){},this.onBeforeUnload=function(){}}},5529:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.extractCustomDataFieldsOnly=t.customDataFieldCount=t.customDataValuesKeys=void 0,t.customDataValuesKeys=["customData1","customData2","customData3","customData4","customData5","customData6","customData7","customData8","customData9","customData10","customData11","customData12","customData13","customData14","customData15","customData16","customData17","customData18","customData19","customData20","customData21","customData22","customData23","customData24","customData25","customData26","customData27","customData28","customData29","customData30","customData31","customData32","customData33","customData34","customData35","customData36","customData37","customData38","customData39","customData40","customData41","customData42","customData43","customData44","customData45","customData46","customData47","customData48","customData49","customData50","experimentName"],t.customDataFieldCount=t.customDataValuesKeys.filter((function(e){return e.match("customData\\d+")})).length,t.extractCustomDataFieldsOnly=function(e){var n={}
return t.customDataValuesKeys.forEach((function(t){e[t]&&(n[t]=e[t])})),n}},5611: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}),t.AmazonIVSStateMachine=void 0
var o,a=n(2595),s=n(2361),c=n(6608),l=n(1916),u=n(5063),d=n(7596),f=n(8253)
!function(e){e.ERROR="ERROR",e.PAUSE="PAUSE",e.PLAYING="PLAYING",e.QUALITY_CHANGE="QUALITY_CHANGE",e.READY="READY",e.REBUFFERING="REBUFFERING",e.SEEKING="SEEKING",e.SETUP="SETUP",e.STARTUP="STARTUP",e.STARTUP_FAILURE="STARTUP_FAILURE",e.UNLOADED="UNLOADED"}(o||(o={}))
var p=function(e){function t(t,n,i){var r=e.call(this,t,i)||this
return r.playingHeartbeatService=n,r.getStateHandler=function(){var e
return(e={})[o.SETUP]={onenterstate:function(){},onleavestate:function(e){r.stateMachineCallbacks.setup(e,o.SETUP.toLowerCase())}},e[o.READY]={onenterstate:function(){},onleavestate:function(){}},e[o.STARTUP]={onenterstate:function(){r.setVideoStartTimeout()},onleavestate:function(e,t){r.clearVideoStartTimeout(),t==o.PLAYING&&r.stateMachineCallbacks.startup(e,o.STARTUP.toLowerCase())}},e[o.PLAYING]={onenterstate:function(){r.playingHeartbeatService.startHeartbeat()},onleavestate:function(e){r.playingHeartbeatService.stopHeartbeat(),r.stateMachineCallbacks.playing(e,o.PLAYING.toLowerCase())}},e[o.PAUSE]={onenterstate:function(){},onleavestate:function(e){r.stateMachineCallbacks.pause(e,o.PAUSE.toLowerCase())}},e[o.REBUFFERING]={onenterstate:function(){r.startRebufferingHeartbeatInterval()},onleavestate:function(e){r.resetRebufferingHelpers(),r.stateMachineCallbacks.rebuffering(e,o.REBUFFERING.toLowerCase())}},e[o.STARTUP_FAILURE]={onenterstate:function(e,t){r.stateMachineCallbacks.videoStartupFailed((0,c.createStartupFailureReason)(e)),e===s.Event.ERROR&&r.stateMachineCallbacks.error(t)},onleavestate:function(){}},e[o.ERROR]={onenterstate:function(e,t){r.stateMachineCallbacks.error(t)},onleavestate:function(){}},e[o.UNLOADED]={onenterstate:function(){r.stateMachineCallbacks.unload(0,o.UNLOADED)},onleavestate:function(){}},e[o.QUALITY_CHANGE]={onenterstate:function(e,t){r.stateMachine.FINISH_QUALITYCHANGE(r.onEnterStateTimestamp,t)},onleavestate:function(){r.stateMachineCallbacks.qualitychange(0,o.QUALITY_CHANGE.toLowerCase())}},e[o.SEEKING]={onenterstate:function(){},onleavestate:function(e){r.stateMachineCallbacks.end_play_seeking(e,o.SEEKING.toLowerCase())}},e},r}return r(t,e),t.prototype.createStateMachine=function(e){var t=this
return this.onEnterStateTimestamp=e.starttime,a.StateMachine.create({initial:o.SETUP,error:f.customStateMachineErrorCallback,events:[{name:s.Event.READY,from:o.SETUP,to:o.READY},{name:s.Event.PLAY,from:o.READY,to:o.STARTUP},{name:s.Event.PLAYING,from:o.STARTUP,to:o.PLAYING},{name:s.Event.PAUSE,from:o.PLAYING,to:o.PAUSE},{name:s.Event.PLAYING,from:o.PAUSE,to:o.PLAYING},{name:s.Event.PLAY,from:o.PAUSE,to:o.PLAYING},{name:s.Event.UNLOAD,from:o.PLAYING,to:o.UNLOADED},{name:s.Event.PLAYING,from:o.ERROR,to:o.PLAYING},{name:s.Event.VIDEO_CHANGE,from:o.PLAYING,to:o.QUALITY_CHANGE},{name:"FINISH_QUALITYCHANGE",from:o.QUALITY_CHANGE,to:o.PLAYING},{name:s.Event.SEEK,from:o.PLAYING,to:o.SEEKING},{name:s.Event.SEEKED,from:o.SEEKING,to:o.PLAYING},{name:s.Event.PAUSE,from:o.SEEKING,to:o.PAUSE},{name:s.Event.START_BUFFERING,from:o.PLAYING,to:o.REBUFFERING},{name:s.Event.PLAYING,from:o.REBUFFERING,to:o.PLAYING},{name:s.Event.ERROR,from:o.STARTUP,to:o.STARTUP_FAILURE},{name:s.Event.UNLOAD,from:o.STARTUP,to:o.STARTUP_FAILURE},{name:s.Event.VIDEOSTART_TIMEOUT,from:o.STARTUP,to:o.STARTUP_FAILURE},{name:s.Event.ERROR,from:h([o.STARTUP,o.STARTUP_FAILURE]),to:o.ERROR},(0,f.on)(s.Event.PAUSE).stayIn(o.PAUSE),(0,f.on)(s.Event.PAUSE).stayIn(o.STARTUP),(0,f.on)(s.Event.PAUSE).stayIn(o.REBUFFERING),(0,f.on)(s.Event.PLAY).stayIn(o.PLAYING),(0,f.on)(s.Event.PLAYING).stayIn(o.PLAYING),(0,f.on)(s.Event.START_BUFFERING).stayIn(o.PAUSE),(0,f.on)(s.Event.START_BUFFERING).stayIn(o.REBUFFERING),(0,f.on)(s.Event.VIDEOSTART_TIMEOUT).stayIn(o.PLAYING),(0,f.on)(s.Event.VIDEOSTART_TIMEOUT).stayIn(o.PAUSE),(0,f.on)(s.Event.VIDEOSTART_TIMEOUT).stayIn(o.SEEKING),(0,f.on)(s.Event.UNLOAD).stayIn(o.READY),(0,f.on)(s.Event.UNLOAD).stayIn(o.SEEKING),(0,f.on)(s.Event.VIDEO_CHANGE).stayIn(o.QUALITY_CHANGE),(0,f.on)(s.Event.VIDEO_CHANGE).stayIn(o.STARTUP),(0,f.on)(s.Event.VIDEO_CHANGE).stayIn(o.REBUFFERING),(0,f.on)(s.Event.VIDEO_CHANGE).stayIn(o.PAUSE),(0,f.on)(s.Event.VIDEO_CHANGE).stayIn(o.ERROR),(0,f.on)(s.Event.VIDEO_CHANGE).stayIn(o.STARTUP_FAILURE),(0,f.on)(s.Event.VIDEO_CHANGE).stayIn(o.READY),(0,f.on)(s.Event.VIDEO_CHANGE).stayIn(o.SEEKING),(0,f.on)(s.Event.SEEK).stayIn(o.SEEKING),(0,f.on)(s.Event.SEEK).stayIn(o.PAUSE),(0,f.on)(s.Event.SEEK).stayIn(o.QUALITY_CHANGE),(0,f.on)(s.Event.SEEK).stayIn(o.REBUFFERING),(0,f.on)(s.Event.SEEK).stayIn(o.ERROR),(0,f.on)(s.Event.SEEK).stayIn(o.STARTUP),(0,f.on)(s.Event.SEEK).stayIn(o.READY),(0,f.on)(s.Event.SEEK).stayIn(o.STARTUP_FAILURE),(0,f.on)(s.Event.SEEKED).stayIn(o.PAUSE),(0,f.on)(s.Event.SEEKED).stayIn(o.QUALITY_CHANGE),(0,f.on)(s.Event.SEEKED).stayIn(o.REBUFFERING),(0,f.on)(s.Event.SEEKED).stayIn(o.ERROR),(0,f.on)(s.Event.SEEKED).stayIn(o.STARTUP),(0,f.on)(s.Event.SEEKED).stayIn(o.READY),(0,f.on)(s.Event.SEEKED).stayIn(o.STARTUP_FAILURE)],callbacks:{onenterstate:function(e,n,i,r,o){"none"!=n&&void 0!==i&&void 0!==e&&(o&&t.stateMachineCallbacks.setVideoTimeStartFromEvent(o),l.logger.log("[ENTER ".concat(r,"] EVENT: ").concat(e," \nfrom: ").concat(n,"\t to: ").concat(i)),t.onEnterStateTimestamp=r||u.getCurrentTimestamp(),t.getStateHandler()[i].onenterstate(e,o))},onleavestate:function(e,n,i,r,o){if(r&&"none"!=n&&void 0!==n&&void 0!==i){o&&t.stateMachineCallbacks.setVideoTimeEndFromEvent(o)
var a=r-t.onEnterStateTimestamp
t.getStateHandler()[n].onleavestate(a,i)}}}})},t.prototype.callEvent=function(e,t,n){var i=this.stateMachine[e]
i?i.call(this.stateMachine,n,t):l.logger.log("Ignored Event: "+e)},t.prototype.onSsaiPlaybackInteraction=function(e,t){},t.prototype.onHeartbeat=function(e){this.stateMachineCallbacks.setVideoTimeEndFromEvent(e)
var t=u.getCurrentTimestamp(),n=t-this.onEnterStateTimestamp
this.stateMachineCallbacks.heartbeat(n,"playing",{played:n}),this.onEnterStateTimestamp=t,this.stateMachineCallbacks.setVideoTimeStartFromEvent(e)},t}(d.AnalyticsStateMachine)
t.AmazonIVSStateMachine=p
var h=function(e){return g().filter((function(t){return e.indexOf(t)<0}))},g=function(){return Object.keys(o).map((function(e){return o[e]}))}},5626:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.isVideoCodec=function(e){return!!e&&-1!==n.findIndex((function(t){return e.startsWith(t)}))},t.isAudioCodec=function(e){return!!e&&-1!==i.findIndex((function(t){return e.startsWith(t)}))}
var n=["avc1","avc3","hvc1","av01","av1","hev1","vp9"],i=["mp4a","ec-3","ac-3","opus","audio/mp4"]},5766:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.Converter=void 0
var n=function(){function e(){}return e.bytesToBits=function(e){return 8*e},e.bitsToBytes=function(e){return Math.round(e/8)},e.kiloBitsToBits=function(e){return 1e3*e},e}()
t.Converter=n},5791:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.AdAnalyticsSample=void 0
var i=n(5063)
t.AdAnalyticsSample=function(e){this.platform="web",e&&(this.videoImpressionId=e.impressionId,this.userAgent=e.userAgent,this.language=e.language,this.cdnProvider=e.cdnProvider,i.transferCustomDataFields(e,this),this.customUserId=e.customUserId,this.domain=e.domain,this.experimentName=e.experimentName,this.key=e.key,this.path=e.path,this.player=e.player,this.playerKey=e.playerKey,this.playerTech=e.playerTech,this.screenHeight=e.screenHeight,this.screenWidth=e.screenWidth,this.version=e.version,this.size=e.size,this.userId=e.userId,this.videoId=e.videoId,this.videoTitle=e.videoTitle,this.videoWindowHeight=e.videoWindowHeight,this.videoWindowWidth=e.videoWindowWidth,this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec)}},5878:function(e,t){"use strict"
var n
Object.defineProperty(t,"__esModule",{value:!0}),t.CastTech=void 0,function(e){e.AirPlay="AirPlay",e.GoogleCast="GoogleCast",e.WebSocket="WebSocket"}(n||(t.CastTech=n={}))},6235:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.SegmentTracker=void 0
var n=function(){function e(){this.segments=[]}return e.prototype.reset=function(){this.segments=[]},e.prototype.addSegment=function(e){this.segments.push(e)},e.prototype.removeSegment=function(e){this.segments=this.segments.filter((function(t){return t.url!==e}))},e.prototype.getSegments=function(){return this.segments},e}()
t.SegmentTracker=n},6398:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.isAdPosition=s,t.hasValidSsaiAdBreakMetadataStructure=function(e){if((0,a.isNullish)(e))return!0
if(!(0,a.isPlainObject)(e))return r.logger.errorMessageToUser("Invalid SsaiAdBreakMetadata: not a plain object"),!1
var t=e
return!((0,a.isNotNullish)(t.adPosition)&&!s(t.adPosition)&&(r.logger.errorMessageToUser("Invalid SsaiAdBreakMetadata: 'adPosition' property is not valid"),1))},t.simplySanitizeSsaiAdBreakMetadata=function(e){if(!(0,a.isNullish)(e))return{adPosition:e.adPosition}},t.hasValidSsaiAdMetadataStructure=function(e){if((0,a.isNullish)(e))return!0
if(!(0,a.isPlainObject)(e))return r.logger.errorMessageToUser("Invalid SsaiAdMetadata: not a plain object"),!1
var t=e
return(0,a.isNotNullish)(t.adId)&&!(0,o.isValidString)(t.adId)?(r.logger.errorMessageToUser("Invalid SsaiAdMetadata: 'adId' property is not string"),!1):(0,a.isNotNullish)(t.adSystem)&&!(0,o.isValidString)(t.adSystem)?(r.logger.errorMessageToUser("Invalid SsaiAdMetadata: 'adSystem' property is not string"),!1):!((0,a.isNotNullish)(t.customData)&&!(0,a.isPlainObject)(t.customData)&&(r.logger.errorMessageToUser("Invalid SsaiAdMetadata: 'customData' property is not a plain object"),1))},t.simplySanitizeSsaiAdMetadata=function(e){if(!(0,a.isNullish)(e)){var t=void 0
if((0,a.isNotNullish)(e.customData)){var n=(0,i.extractCustomDataFieldsOnly)(e.customData)
t={},(0,a.transferCustomDataFields)(n,t)}return{adId:e.adId,adSystem:e.adSystem,customData:t}}},t.isSsaiAdQuartile=c,t.hasValidSsaiAdQuartileStructure=function(e){return!!c(e)||(r.logger.errorMessageToUser("Invalid SsaiAdQuartile"),!1)},t.sanitizeSsaiAdQuartileMetadata=function(e){if((0,a.isNullish)(e))return{}
if(!(0,a.isPlainObject)(e))return r.logger.errorMessageToUser("Invalid SsaiAdQuartileMetadata: not a plain object"),{}
var t={failedBeaconUrl:e.failedBeaconUrl}
return(0,o.isValidString)(t.failedBeaconUrl)?t.failedBeaconUrl=t.failedBeaconUrl.substring(0,500):(r.logger.errorMessageToUser("Invalid SsaiAdQuartileMetadata: 'failedBeaconUrl' property is not string"),t.failedBeaconUrl=void 0),t}
var i=n(5529),r=n(1916),o=n(1820),a=n(5063)
function s(e){return"preroll"===e||"midroll"===e||"postroll"===e}function c(e){return"first"===e||"midpoint"===e||"third"===e||"completed"===e}},6596: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)}),o=this&&this.__assign||function(){return o=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},o.apply(this,arguments)}
Object.defineProperty(t,"__esModule",{value:!0}),t.Bitmovin8InternalAdapter=void 0
var a,s=n(2403),c=n(9664),l=n(2663),u=n(6235),d=n(4916),f=n(6743),p=n(5878),h=n(3458),g=n(2361),m=n(556),v=n(8525),y=n(7614),b=n(9557),E=n(7881),_=n(3413),k=n(5248),T=n(1916),S=n(4649),A=n(5063),C=n(2647),I=n(887),w=n(7543),x=n(8676),R=n(665)
!function(e){e.Fullscreen="fullscreen",e.Inline="inline",e.PictureInPicture="pictureinpicture"}(a||(a={}))
var N=function(e){function t(t,n,i,r,o,a,c){var u=e.call(this,c)||this
u.player=t,u.speedMeter=n,u.segmentTracker=i,u.videoCompletionTracker=r,u.httpRequestTrackingAdapter=o,u.onBeforeUnLoadEvent=!1,u.getPlayerVersion=function(){return u.player.version},u.getPlayerName=function(){return m.Player.BITMOVIN},u.getPlayerTech=function(){return u.player.getPlayerType()},u.getDrmPerformanceInfo=function(){return u.drmPerformanceInfo}
var d=new l.HeartbeatService((function(){return t.getCurrentTime()})),f=new s.Bitmovin8AnalyticsStateMachine(u.stateMachineCallbacks,d,u.opts)
return d.setListener(f),u.sourceInfoFallbackService=a,u.stateMachine=f,u}return r(t,e),Object.defineProperty(t.prototype,"downloadSpeedInfo",{get:function(){return this.speedMeter.getInfo()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"segments",{get:function(){return this.segmentTracker.getSegments()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"adModule",{get:function(){return this._adModule},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"supportsDeferredLicenseLoading",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentTime",{get:function(){var e
try{if((0,A.isNotNullish)(null===(e=this.player)||void 0===e?void 0:e.getCurrentTime)&&!this.isAdPlaying)return this.player.getCurrentTime()}catch(e){T.logger.warn("Analytics Collector attempted to access player, but player is not available anymore")}return this.lastTrackedCurrentTime?this.lastTrackedCurrentTime:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAdPlaying",{get:function(){var e=this.player.ads&&this.player.ads.getActiveAd()
return(0,A.isNotNullish)(e)},enumerable:!1,configurable:!0}),t.prototype.initialize=function(e){var t=this
this.registerPlayerEventListeners(),this.registerUnloadEventListeners(),this._adModule=new I.Bitmovin8AdModule(this.player,this.windowEventTracker),this.ssaiService.activate({getPlayerCurrentTime:function(){return t.currentTime},reportEngagementInteraction:function(t){e.sendSsaiEngagementAdSample(t)},reportPlaybackInteraction:function(e,n){return t.stateMachine.onSsaiPlaybackInteraction(e,n)}})
var n=new E.HttpRequestTracking([this.httpRequestTrackingAdapter])
return[new b.ErrorDetailTracking(e.errorDetailTrackingSettingsProvider,new y.ErrorDetailBackend(e.errorDetailTrackingSettingsProvider.collectorConfig),[e.errorDetailSubscribable],n)]},t.prototype.clearValues=function(){this.speedMeter.reset()},t.prototype.clearSegments=function(){this.segmentTracker.reset()},t.prototype.resetSourceRelatedState=function(){this.ssaiService.resetSourceRelatedState(),e.prototype.resetSourceRelatedState.call(this)},t.prototype.getAutoPlay=function(){return this.player.getConfig().playback&&this.player.getConfig().playback.autoplay||!1},t.prototype.getCurrentPlaybackInfo=function(){var t,n=o(o({},e.prototype.getCommonPlaybackInfo.call(this)),{size:this.player.getViewMode()===a.Fullscreen?v.PlayerSize.Fullscreen:v.PlayerSize.Window,playerTech:this.getPlayerTech(),isLive:this.player.isLive(),videoDuration:(0,_.normalizeVideoDuration)(this.videoDuration),streamFormat:this.player.getStreamType(),videoWindowWidth:this.player.getContainer().offsetWidth,videoWindowHeight:this.player.getContainer().offsetHeight,isMuted:this.player.isMuted(),isCasting:this.player.isCasting(),audioLanguage:(0,A.isNotNullish)(this.player.getAudio())?null===(t=this.player.getAudio())||void 0===t?void 0:t.lang:void 0,subtitleEnabled:!1,droppedFrames:(0,A.isNotNullish)(this.player.getSource())?this.player.getDroppedVideoFrames():0})
return this.applySubtitleProperties(n),this.applyPlaybackQualityProperties(n),this.applyCastingProperties(n),this.applySourceProperties(n),((0,A.isNullish)(n.streamFormat)||"unknown"===n.streamFormat)&&this.sourceInfoFallbackService.applyStreamFormat(n),n},t.prototype.sourceChange=function(e){this.stateMachine.callManualSourceChangeEvent(e,this.currentTime)},t.prototype.onError=function(){this.clearSegments()},t.prototype.registerPlayerEventListeners=function(){var e=this
this.player.on(this.player.exports.PlayerEvent.SourceUnloaded,(function(t){e.segmentTracker.reset(),e.eventCallback(g.Event.SOURCE_UNLOADED,{currentTime:e.currentTime})})),this.player.on(this.player.exports.PlayerEvent.SourceLoaded,(function(t){e.videoCompletionTracker.reset(),e.videoDuration=e.player.getDuration(),e.videoCompletionTracker.setVideoDuration(e.player.getDuration()),e.sourceInfoFallbackService.setStreamFormat(e.player.getStreamType()),e.eventCallback(g.Event.SOURCE_LOADED,{})})),this.player.on(this.player.exports.PlayerEvent.CastStarted,(function(t){e.eventCallback(g.Event.START_CAST,t)})),this.player.on(this.player.exports.PlayerEvent.CastStopped,(function(){e.eventCallback(g.Event.END_CAST,{currentTime:e.currentTime})})),this.player.on(this.player.exports.PlayerEvent.Play,(function(t){"ui-seek"!==t.issuer&&e.eventCallback(g.Event.PLAY,{currentTime:e.currentTime})})),this.player.on(this.player.exports.PlayerEvent.Playing,(function(t){"advertising-api"!==t.issuer&&e.eventCallback(g.Event.PLAYING,{currentTime:e.currentTime})})),this.player.on(this.player.exports.PlayerEvent.Paused,(function(t){"ui-seek"!==t.issuer&&e.eventCallback(g.Event.PAUSE,{currentTime:e.currentTime})})),this.player.on(this.player.exports.PlayerEvent.TimeChanged,(function(t){e.isAdPlaying||(e.lastTrackedCurrentTime=e.player.getCurrentTime()),e.eventCallback(g.Event.TIMECHANGED,{currentTime:e.lastTrackedCurrentTime})})),this.player.on(this.player.exports.PlayerEvent.Seek,(function(t){e.allowSeeking(t)&&e.eventCallback(g.Event.SEEK,{currentTime:e.currentTime})})),this.player.on(this.player.exports.PlayerEvent.Seeked,(function(){e.eventCallback(g.Event.SEEKED,{currentTime:e.currentTime})})),this.player.on(this.player.exports.PlayerEvent.StallStarted,(function(){e.eventCallback(g.Event.START_BUFFERING,{currentTime:e.currentTime})})),this.player.on(this.player.exports.PlayerEvent.StallEnded,(function(){e.eventCallback(g.Event.END_BUFFERING,{currentTime:e.currentTime})})),this.player.on(this.player.exports.PlayerEvent.AudioPlaybackQualityChanged,(function(t){var n=t,i=n.sourceQuality,r=n.targetQuality;(0,A.isNullish)(r)||((0,A.isNullish)(i)||e.qualityChangeService.shouldAllowAudioQualityChange(r.bitrate)&&e.eventCallback(g.Event.AUDIO_CHANGE,{bitrate:r.bitrate,currentTime:e.currentTime,codec:r.codec}),e.qualityChangeService.setAudioBitrate(r.bitrate))})),this.player.on(this.player.exports.PlayerEvent.VideoPlaybackQualityChanged,(function(t){var n=t,i=n.sourceQuality,r=n.targetQuality;(0,A.isNullish)(r)||((0,A.isNullish)(i)||e.qualityChangeService.shouldAllowVideoQualityChange(r.bitrate)&&e.eventCallback(g.Event.VIDEO_CHANGE,{width:r.width,height:r.height,bitrate:r.bitrate,currentTime:e.currentTime,codec:r.codec}),e.qualityChangeService.setVideoBitrate(r.bitrate))})),this.player.on(this.player.exports.PlayerEvent.ViewModeChanged,(function(t){"fullscreen"===t.to?e.eventCallback(g.Event.START_FULLSCREEN,{currentTime:e.currentTime}):"fullscreen"===t.from&&e.eventCallback(g.Event.END_FULLSCREEN,{currentTime:e.currentTime})})),this.player.on(this.player.exports.PlayerEvent.AdStarted,(function(t){e.eventCallback(g.Event.START_AD,{currentTime:e.currentTime})})),this.player.on(this.player.exports.PlayerEvent.AdFinished,(function(t){e.eventCallback(g.Event.END_AD,{currentTime:e.currentTime})})),this.player.on(this.player.exports.PlayerEvent.AdSkipped,(function(t){e.eventCallback(g.Event.END_AD,{currentTime:e.currentTime})})),this.player.on(this.player.exports.PlayerEvent.AdError,(function(t){e.eventCallback(g.Event.END_AD,{currentTime:e.currentTime})})),this.player.on(this.player.exports.PlayerEvent.Muted,(function(){e.eventCallback(g.Event.MUTE,{currentTime:e.currentTime})})),this.player.on(this.player.exports.PlayerEvent.Unmuted,(function(){e.eventCallback(g.Event.UN_MUTE,{currentTime:e.currentTime})})),this.player.on(this.player.exports.PlayerEvent.Error,(function(t){e.eventCallback(g.Event.ERROR,{code:t.code,message:t.name,legacyData:t.data,currentTime:e.currentTime,data:{additionalData:JSON.stringify(t.data)}}),t.code!==h.ErrorCode.BITMOVIN_PLAYER_LICENSING_ERROR.code&&t.code!==h.ErrorCode.SETUP_MISSING_LICENSE_WHITELIST.code||e._onLicenseCallFailed.dispatch({}),e.ssaiService.sendAdEngagementErrorSample(t.code,t.name)})),this.player.on(this.player.exports.PlayerEvent.PlaybackFinished,(function(){e.eventCallback(g.Event.END,{currentTime:e.currentTime})})),this.player.on(this.player.exports.PlayerEvent.DownloadFinished,(function(t){0===t.downloadType.indexOf("drm/license/")&&(e.drmPerformanceInfo={drmType:t.downloadType.replace("drm/license/",""),drmLoadTime:1e3*t.downloadTime})})),this.player.on(this.player.exports.PlayerEvent.AudioChanged,(function(t){e.eventCallback(g.Event.AUDIOTRACK_CHANGED,{currentTime:e.currentTime})})),this.player.on(this.player.exports.PlayerEvent.SubtitleEnabled,(function(t){e.eventCallback(g.Event.SUBTITLE_CHANGE,{currentTime:e.currentTime})})),this.player.on(this.player.exports.PlayerEvent.SubtitleDisabled,(function(t){e.eventCallback(g.Event.SUBTITLE_CHANGE,{currentTime:e.currentTime})})),this.player.on(this.player.exports.PlayerEvent.LicenseValidated,(function(t){t.data.analytics&&void 0!==t.data.analytics.key?e._onLicenseKeyReceived.dispatch({licenseKey:t.data.analytics.key}):e._onLicenseCallFailed.dispatch({})}))},t.prototype.registerUnloadEventListeners=function(){var e=this,t=function(){if(!e.onBeforeUnLoadEvent){e.onBeforeUnLoadEvent=!0
var t=e.lastTrackedCurrentTime
e.eventCallback(g.Event.UNLOAD,{currentTime:t})}e.release()}
t=t.bind(!0),this.player.on(this.player.exports.PlayerEvent.Destroy,t),this.windowEventTracker.addEventListener("beforeunload",t),this.windowEventTracker.addEventListener("unload",t)},t.prototype.applySourceProperties=function(e){var t=this.player.getSource()
if(!(0,A.isNullish)(t)){e.videoTitle=t.title,e.mpdUrl=t.dash,e.m3u8Url=t.hls
var n=(0,k.getSourceInfoFromBitmovinSourceConfig)(t.progressive,this.player)
e.progUrl=n.progUrl,"progressive"===this.player.getStreamType()&&(e.videoBitrate=n.progBitrate)}},t.prototype.applySubtitleProperties=function(e){var t
this.player.subtitles&&(t=this.player.subtitles.list().find((function(e){return!0===e.enabled}))),e.subtitleEnabled=(0,A.isNotNullish)(t),e.subtitleLanguage=(0,A.isNotNullish)(t)?t.lang:null},t.prototype.applyPlaybackQualityProperties=function(e){var t=this.player.getPlaybackVideoData();(0,A.isNotNullish)(t)&&(e.videoBitrate=t.bitrate,e.videoPlaybackHeight=t.height,e.videoPlaybackWidth=t.width,e.videoCodec=t.codec)
var n=this.player.getPlaybackAudioData();(0,A.isNotNullish)(n)&&(e.audioBitrate=n.bitrate,e.audioCodec=n.codec)},t.prototype.applyCastingProperties=function(e){var t=this.player.isCasting()||this.player.isAirplayActive()||!1
if(e.isCasting=t,t)if(this.player.isAirplayActive())e.castTech=p.CastTech.AirPlay
else{var n=this.player.getConfig().remotecontrol
if(!(0,A.isNullish)(n))switch(n.type){case"googlecast":e.castTech=p.CastTech.GoogleCast
break
case"websocket":e.castTech=p.CastTech.WebSocket}}},t.prototype.allowSeeking=function(e){var t=e
return Math.abs(t.position-t.seekTarget)>S.ANALYTICS_MIN_SEEK_DIFFERENCE_THRESHOLD},t.create=function(e,n){var i=new R.SpeedMeterAdapter(e,new c.DownloadSpeedMeter).getDownloadSpeedMeter(),r=new x.SegmentTrackerAdapter(e,new u.SegmentTracker).getSegmentTracker(),o=new w.HttpRequestTrackingAdapter(e)
return new t(e,i,r,new f.default,o,new d.SourceInfoFallbackService,n)},t}(C.InternalAdapter)
t.Bitmovin8InternalAdapter=N},6608:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.StartupFailureReason=void 0,t.createStartupFailureReason=function(e){switch(e){case r.Event.ERROR:return i.PLAYER_ERROR
case r.Event.UNLOAD:return i.PAGE_CLOSED
case r.Event.VIDEOSTART_TIMEOUT:return i.TIMEOUT
default:return i.UNKNOWN}}
var i,r=n(2361)
!function(e){e.PAGE_CLOSED="PAGE_CLOSED",e.PLAYER_ERROR="PLAYER_ERROR",e.TIMEOUT="TIMEOUT",e.UNKNOWN="UNKNOWN"}(i||(t.StartupFailureReason=i={}))},6743:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var i,r=n(5063)
!function(e){e[e.None=0]="None",e[e.Overlapping=1]="Overlapping",e[e.FirstContainedInSecond=2]="FirstContainedInSecond",e[e.SecondContainedInFirst=3]="SecondContainedInFirst"}(i||(i={}))
var o=function(){function e(){this.watched=[],this.videoDuration=null}return e.prototype.reset=function(){this.watched=[]},e.prototype.setVideoDuration=function(e){this.videoDuration=1e3*e},e.prototype.addWatched=function(e){if((0,r.isNullish)(this.videoDuration))throw new Error("no video duration set for completion tracker")
this.watched.push(e)
var t=this.mergeWatched(this.watched)
return(this.getDuration(e)-t)/this.videoDuration},e.prototype.getCompletionPercentage=function(){if((0,r.isNullish)(this.videoDuration))throw new Error("no video duration set for completion tracker")
for(var e=0,t=0,n=this.watched;t<n.length;t++){var i=n[t]
e+=this.getDuration(i)}return e/this.videoDuration},e.prototype.mergeWatched=function(e){for(var t=0;t<e.length;t++)for(var n=e[t],r=t+1;r<e.length;r++){var o=e[r],a=0,s=this.getOverlappingType(n,o)
if(s===i.Overlapping?(this.mergeAndReplace(n,t,o,r),a=this.getOverlappingTimespan(n,o)):s===i.FirstContainedInSecond?(this.watched.splice(t,1),a=this.getDuration(n)):s===i.SecondContainedInFirst&&(this.watched.splice(r,1),a=this.getDuration(o)),s!==i.None)return a+this.mergeWatched(this.watched)}return 0},e.prototype.getOverlappingType=function(e,t){return this.isMomentInTimespan(e.end,t)&&e.start<t.start||this.isMomentInTimespan(e.start,t)&&e.end>t.end?i.Overlapping:this.isMomentInTimespan(e.start,t)&&this.isMomentInTimespan(e.end,t)?i.FirstContainedInSecond:this.isMomentInTimespan(t.start,e)&&this.isMomentInTimespan(t.end,e)?i.SecondContainedInFirst:i.None},e.prototype.isMomentInTimespan=function(e,t){return e>=t.start&&e<t.end},e.prototype.mergeAndReplace=function(e,t,n,i){var r=e.end>n.end?e.end:n.end,o={start:e.start<n.start?e.start:n.start,end:r}
this.watched.splice(t,1,o),this.watched.splice(i,1)},e.prototype.getOverlappingTimespan=function(e,t){return(e.end<t.end?e.end:t.end)-(e.start>=t.start?e.start:t.start)},e.prototype.getDuration=function(e){return Math.abs(e.end-e.start)},e}()
t.default=o},6845:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.FeatureManager=void 0
var i=n(1916),r=function(){function e(){this.features=[]}return e.prototype.registerFeatures=function(e){this.features=e},e.prototype.unregisterFeatures=function(){this.features.forEach((function(e){return e.disable()})),this.features=[]},e.prototype.resetFeatures=function(){this.features.forEach((function(e){return e.reset()}))},e.prototype.configureFeatures=function(e,t){this.features=this.features.filter((function(n){var r=n.configure(e,t)
return!(!e||!0!==(null==r?void 0:r.enabled))||(i.logger.log("Disabling feature ".concat(n.constructor.name," as it isn't enabled according to license callback.")),n.disable(),!1)})),this.features.forEach((function(e){return e.enabled()}))},e}()
t.FeatureManager=r},7124: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)}),o=this&&this.__assign||function(){return o=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},o.apply(this,arguments)}
Object.defineProperty(t,"__esModule",{value:!0}),t.HTML5InternalAdapter=void 0
var a=n(3674),s=n(2663),c=n(6743),l=n(2361),u=n(2168),d=n(556),f=n(8525),p=n(7224),h=n(3413),g=n(1916),m=n(5063),v=n(2647),y=n(8510),b=function(e){function t(t,n){var i=e.call(this,n)||this
i.needsFirstPlayIntent=!0,i.onBeforeUnLoadEvent=!1,i.isBuffering=!1,i.isPaused=!1,i.isSeeking=!1,i.previousMediaTimeInSeconds=0,i.previousMutedValue=!1,i.getPlayerName=function(){return d.Player.HTML5},i.getPlayerTech=function(){return"html5"},i.getAutoPlay=function(){return!!i.mediaElement&&i.mediaElement.autoplay},i.getDrmPerformanceInfo=function(){return i.drmPerformanceInfo},i.isLive=function(){if(i.mediaElement&&!isNaN(i.mediaElement.duration))return i.mediaElement.duration===1/0}
var r=new s.HeartbeatService((function(){var e
return null!==(e=null==t?void 0:t.currentTime)&&void 0!==e?e:0})),o=new a.HTML5AnalyticsStateMachine(i.stateMachineCallbacks,r,i.opts)
return r.setListener(o),i.stateMachine=o,i.mediaElement=t,i.mediaElementEventHandlers=[],i.mediaElementOriginalLoadFn=void 0,i.bufferingTimeout=void 0,i.isBuffering=!1,i.isPaused=!1,i.isSeeking=!1,i.previousMediaTimeInSeconds=0,i.previousClientTime=0,i.needsReadyEvent=!0,i.needsFirstPlayIntent=!0,i.videoCompletionTracker=new c.default,i.playerStatisticsProvider=new y.default(t),i}return r(t,e),Object.defineProperty(t.prototype,"segments",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.resetSourceRelatedState=function(){e.prototype.resetSourceRelatedState.call(this),this.playerStatisticsProvider.reset(),this.needsFirstPlayIntent=!0,this.isBuffering=!1,this.isPaused=!1,this.isSeeking=!1,this.previousMediaTimeInSeconds=0,clearTimeout(this.bufferingTimeout)},t.prototype.release=function(){this.unregisterMediaElement(),e.prototype.release.call(this)},t.prototype.initialize=function(e){return this.mediaElement&&this.setMediaElement(),this.registerWindowEvents(),[]},t.prototype.getStreamSources=function(e){if(!e)return{}
switch(this.getStreamType()){case"hls":return{m3u8Url:e}
case"dash":return{mpdUrl:e}
default:return{progUrl:e}}},t.prototype.getCurrentPlaybackInfo=function(){var e=o(o(o({},this.getCommonPlaybackInfo()),this.getStreamSources(this.getStreamURL())),{isLive:this.isLive(),size:(0,m.isVideoInFullscreen)()?f.PlayerSize.Fullscreen:f.PlayerSize.Window,playerTech:this.getPlayerTech(),droppedFrames:this.playerStatisticsProvider.getDroppedFrames()})
this.mediaElement&&(e=o(o({},e),{videoDuration:(0,h.normalizeVideoDuration)(this.mediaElement.duration),isMuted:this.mediaElement.muted,videoWindowHeight:this.mediaElement.height,videoWindowWidth:this.mediaElement.width}))
var t=this.getCurrentQualityLevelInfo()
t&&(e=o(o({},e),{videoPlaybackHeight:t.height,videoPlaybackWidth:t.width,videoBitrate:t.bitrate}))
var n=this.getStreamType()
return(0,m.isNotNullish)(n)&&this.sourceInfoFallbackService.setStreamFormat(n),this.sourceInfoFallbackService.applyStreamFormat(e),e},Object.defineProperty(t.prototype,"currentTime",{get:function(){if(!this.mediaElement)throw new Error("No media attached")
return this.mediaElement.currentTime},enumerable:!1,configurable:!0}),t.prototype.setMediaElement=function(e){if(void 0===e&&(e=null),e&&(this.mediaElement&&this.unregisterMediaElement(),this.mediaElement=e),!this.mediaElement)throw new Error("No media element owned")
if(this.mediaElementEventHandlers.length>0)throw new Error("Media element already set (only call this once)")
this.registerMediaElement(),this.onMaybeReady()},t.prototype.getMIMEType=function(){var e=this.getStreamURL()
if(e&&void 0!==e)return(0,u.getMIMETypeFromFileExtension)(e)},t.prototype.getStreamType=function(){var e=this.getMIMEType()
if(e)return(0,p.getStreamTypeFromMIMEType)(e)},t.prototype.getStreamURL=function(){var e=this.mediaElement
if(e)return e.src},t.prototype.registerMediaElement=function(){var e=this,t=this.mediaElement
if(t){this.mediaElementOriginalLoadFn=t.load
var n=this.mediaElementOriginalLoadFn
t.load=function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r]
e.sourceChange({}),n.apply(t,i)},this.listenToMediaElementEvent("loadstart",(function(){E("loadstart ".concat(t.currentTime)),e.sourceChange({})})),this.listenToMediaElementEvent("loadedmetadata",(function(){E("loadedmetadata time:".concat(t.currentTime," / readyState: ").concat(t.readyState)),e.checkQualityLevelAttributes(!0)
var n=e.getStreamType();(0,m.isNotNullish)(n)&&e.sourceInfoFallbackService.setStreamFormat(n),(0,m.isNotNullish)(e.mediaElement)&&(e.videoCompletionTracker.reset(),e.videoCompletionTracker.setVideoDuration(e.mediaElement.duration),e.previousMutedValue=e.mediaElement.muted),e.eventCallback(l.Event.SOURCE_LOADED,{})})),this.listenToMediaElementEvent("play",(function(){E("play ".concat(t.currentTime))
var n=t.currentTime
e.needsFirstPlayIntent&&(e.previousMediaTimeInSeconds=n),e.needsFirstPlayIntent=!1,e.eventCallback(l.Event.PLAY,{currentTime:n})})),this.listenToMediaElementEvent("pause",(function(){E("pause ".concat(t.currentTime)),e.onPaused()})),this.listenToMediaElementEvent("playing",(function(){E("playing ".concat(t.currentTime)),clearTimeout(e.bufferingTimeout),e.isPaused=!1,e.needsFirstPlayIntent=!1})),this.registerMediaElementErrorEvent(t),this.listenToMediaElementEvent("volumechange",(function(){E("volumechange ".concat(t.currentTime))
var n=t.muted,i=t.currentTime,r=t.volume,o=e.isAudioMuted(n,r)
e.previousMutedValue!==o&&(o?e.eventCallback(l.Event.MUTE,{currentTime:i}):e.eventCallback(l.Event.UN_MUTE,{currentTime:i}),e.previousMutedValue=o)})),this.listenToMediaElementEvent("seeking",(function(){E("seeking ".concat(t.currentTime))
var n=t.currentTime
e.eventCallback(l.Event.SEEK,{currentTime:n})})),this.listenToMediaElementEvent("seeked",(function(){E("seeked ".concat(t.currentTime))
var n=t.currentTime
clearTimeout(e.bufferingTimeout),e.eventCallback(l.Event.SEEKED,{currentTime:n})})),this.listenToMediaElementEvent("timeupdate",(function(){E("timeupdate ".concat(t.currentTime))
var n=t.currentTime
e.isBuffering=!1,e.isSeeking=!1,e.needsFirstPlayIntent||(e.isPaused||1e3*Math.abs(n-e.previousMediaTimeInSeconds)>0&&e.eventCallback(l.Event.TIMECHANGED,{currentTime:n}),e.checkQualityLevelAttributes(),e.checkSeeking(),e.checkPlayheadProgress(),e.previousMediaTimeInSeconds=n)})),this.listenToMediaElementEvent("stalled",(function(){})),this.listenToMediaElementEvent("waiting",(function(){E("waiting ".concat(t.currentTime)),e.checkSeeking(),e.onBuffering()}))}},t.prototype.registerMediaElementErrorEvent=function(e){var t=this
this.listenToMediaElementEvent("error",(function(){var n,i
E("error ".concat(e.currentTime))
var r=e.currentTime,o=e.error
t.eventCallback(l.Event.ERROR,{currentTime:r,code:null!==(n=null==o?void 0:o.code)&&void 0!==n?n:void 0,message:null!==(i=null==o?void 0:o.message)&&void 0!==i?i:void 0,data:{}})}))},t.prototype.listenToMediaElementEvent=function(e,t){if(!this.mediaElement)throw new Error("No media attached")
var n=t.bind(this)
this.mediaElementEventHandlers.push({event:e,handler:n}),this.mediaElement.addEventListener(e,n,!1)},t.prototype.onMaybeReady=function(){this.needsReadyEvent&&this.mediaElement&&(this.needsReadyEvent=!1,this.getCurrentPlaybackInfo(),this.videoCompletionTracker.reset(),this.videoCompletionTracker.setVideoDuration(this.mediaElement.duration))},t.prototype.unregisterMediaElement=function(){if(!this.mediaElement)throw new Error("No media element attached")
var e=this.mediaElement
this.mediaElementEventHandlers.forEach((function(t){e.removeEventListener(t.event,t.handler)}))
var t=this.mediaElementOriginalLoadFn;(0,m.isNotNullish)(t)&&(e.load=t),this.mediaElement=void 0,this.mediaElementEventHandlers=[],this.mediaElementOriginalLoadFn=void 0,window.clearTimeout(this.bufferingTimeout)},t.prototype.registerWindowEvents=function(){this.windowEventTracker.addEventListener("beforeunload",this.onPageClose.bind(this)),this.windowEventTracker.addEventListener("unload",this.onPageClose.bind(this))},t.prototype.onPageClose=function(){if(!this.onBeforeUnLoadEvent){this.onBeforeUnLoadEvent=!0
var e=this.mediaElement,t=void 0;(0,m.isNotNullish)(e)&&(t=e.currentTime),this.eventCallback(l.Event.UNLOAD,{currentTime:t})}this.release()},t.prototype.checkQualityLevelAttributes=function(e){if(void 0===e&&(e=!1),!this.mediaElement)throw new Error("No media attached")
var t=this.mediaElement,n=this.getCurrentQualityLevelInfo()
if(n){var i=n.bitrate,r=n.width,o=n.height
if((0,m.isNotNullish)(i))if(this.qualityChangeService.shouldAllowVideoQualityChange(i)){this.qualityChangeService.setVideoBitrate(i)
var a={width:r,height:o,bitrate:i,currentTime:t.currentTime}
e||this.eventCallback(l.Event.VIDEO_CHANGE,a)}else this.qualityChangeService.setVideoBitrate(i)}},t.prototype.sourceChange=function(e){var t
this.stateMachine.callManualSourceChangeEvent(e,null===(t=this.mediaElement)||void 0===t?void 0:t.currentTime)},t.prototype.getSelectedSubtitleFromMediaElement=function(e){if(!(0,m.isNullish)(e.textTracks)){for(var t=0,n=e.textTracks;t<n.length;t++){var i=n[t]
if((0,m.isNotNullish)(i.mode)&&"showing"===i.mode){var r=(0,m.isNotNullish)(i.language)&&i.language.length>0
return{enabled:r,language:r?i.language:void 0}}}return{enabled:!1}}},t.prototype.onPaused=function(e){if(!this.isPaused){if(!this.mediaElement)throw new Error("No media attached")
e||(e=this.mediaElement.currentTime),this.eventCallback(l.Event.PAUSE,{currentTime:e}),this.isPaused=!0}},t.prototype.onBuffering=function(){if(!this.mediaElement)throw new Error("No media attached")
var e=this.mediaElement.currentTime
this.isBuffering||this.isPaused&&!this.isSeeking||(this.isSeeking?this.eventCallback(l.Event.SEEK,{currentTime:e}):this.eventCallback(l.Event.START_BUFFERING,{currentTime:e}),this.isBuffering=!0)},t.prototype.checkPlayheadProgress=function(){var e=this
if(!this.mediaElement)throw new Error("No media attached")
var n=this.mediaElement
n.paused&&this.onPaused(),clearTimeout(this.bufferingTimeout),this.bufferingTimeout=window.setTimeout((function(){n.paused||n.ended&&!e.isBuffering||n.currentTime-e.previousMediaTimeInSeconds<t.BUFFERING_TIMECHANGED_TIMEOUT_IN_MS/1e3*.8&&e.onBuffering()}),t.BUFFERING_TIMECHANGED_TIMEOUT_IN_MS)},t.prototype.checkSeeking=function(){if(!this.mediaElement)throw new Error("No media attached")
var e=this.mediaElement.currentTime,t=Math.abs(e-this.previousMediaTimeInSeconds)
if(t<1)this.previousClientTime=Date.now()
else{var n=(Date.now()-this.previousClientTime)/1e3
t>n*(this.mediaElement.playbackRate+.5)&&(this.isSeeking=!0,this.onPaused(this.previousMediaTimeInSeconds+n)),this.previousClientTime=Date.now()}},t.BUFFERING_TIMECHANGED_TIMEOUT_IN_MS=1e3,t}(v.InternalAdapter)
t.HTML5InternalAdapter=b
var E=function(e){var t=(new Date).toISOString().substring(11),n="".concat(t,"[HTML5InternalAdapter]"),i="".concat(n,": ").concat(e)
g.logger.log(i)}},7224:function(e,t,n){"use strict"
var i
Object.defineProperty(t,"__esModule",{value:!0}),t.StreamTypes=void 0,t.getStreamTypeFromMIMEType=function(e){return u[e]}
var r,o=n(2168),a=o.MIMETypes.MP4,s=o.MIMETypes.WEBM,c=o.MIMETypes.HLS,l=o.MIMETypes.DASH,u=((i={})[a]="progressive",i[s]="progressive",i[c]="hls",i[l]="dash",i)
!function(e){e.dash="dash",e.hls="hls",e.prog="progressive"}(r||(t.StreamTypes=r={}))},7232:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.AdBreakSample=void 0
var i=n(5063)
t.AdBreakSample=function(e,t){this.adFallbackIndex=0,t&&(this.manifestDownloadTime=i.calculateTime(t.downloadTiming.downloadTime)),e&&(this.adReplaceContentDuration=i.calculateTimeWithUndefined(e.replaceContentDuration),this.adFallbackIndex=(e.currentFallbackIndex||-1)+1)
var n=e
n&&("pre"===n.position||"post"===n.position?this.adPosition=n.position:(this.adPosition="mid",this.adOffset=n.position),this.adPreloadOffset=i.calculateTimeWithUndefined(n.preloadOffset))
var r=e
if(r){this.adIsPersistent=r.persistent
var o=r.tag
if(this.adFallbackIndex>0&&r.fallbackTags&&r.fallbackTags.length>=this.adFallbackIndex&&(o=r.fallbackTags[this.adFallbackIndex-1]),o&&(this.adTagType=o.type,this.adTagUrl=o.url),this.adTagUrl){var a=i.getHostnameAndPathFromUrl(this.adTagUrl)
this.adTagServer=a.hostname,this.adTagPath=a.path}}var s=e
s&&(this.adScheduleTime=i.calculateTimeWithUndefined(s.scheduleTime),this.adIdPlayer=s.id)}},7238: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}),t.HTMLVideoElementInternalAdapter=void 0
var o=n(556),a=function(e){function t(t,n,i){var r=e.call(this,t,n)||this
return r.sessionData={},r.getPlayerName=function(){return o.Player.HTML5},r.getPlayerVersion=function(){return""},r.sessionData.streamFormat=null==i?void 0:i.streamFormat,r.sessionData.audioCodec=null==i?void 0:i.audioCodec,r.sessionData.videoCodec=null==i?void 0:i.videoCodec,r.sessionData.audioLanguage=null==i?void 0:i.audioLanguage,r}return r(t,e),t.prototype.getStreamURL=function(){return this.mediaElement?this.mediaElement.currentSrc:void 0},t.prototype.getCurrentQualityLevelInfo=function(){return{bitrate:void 0,width:this.mediaElement?this.mediaElement.videoWidth:void 0,height:this.mediaElement?this.mediaElement.videoHeight:void 0}},t.prototype.getCurrentPlaybackInfo=function(){var t,n,i,r,o,a,s=e.prototype.getCurrentPlaybackInfo.call(this)
s.streamFormat=null!==(t=this.sessionData.streamFormat)&&void 0!==t?t:s.streamFormat,s.audioCodec=null!==(n=this.sessionData.audioCodec)&&void 0!==n?n:s.audioCodec,s.videoCodec=null!==(i=this.sessionData.videoCodec)&&void 0!==i?i:s.videoCodec,s.subtitleEnabled=null!==(r=this.sessionData.subtitleEnabled)&&void 0!==r?r:s.subtitleEnabled
var c=null!==(o=this.sessionData.subtitleLanguage)&&void 0!==o?o:s.subtitleLanguage
return s.subtitleLanguage=!0===s.subtitleEnabled?c:void 0,s.audioLanguage=null!==(a=this.sessionData.audioLanguage)&&void 0!==a?a:s.audioLanguage,s},t.prototype.resetSourceRelatedState=function(){e.prototype.resetSourceRelatedState.call(this),this.sessionData={}},t}(n(7124).HTML5InternalAdapter)
t.HTMLVideoElementInternalAdapter=a},7299:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.SourcesApiExportNames=t.SourceExportNames=t.PlaybackApiEventsPackageExportNames=t.CoreExportNames=t.BundleExportNames=void 0,t.BundleExportNames={Logger:"logger",PlayerConfig:"player-config"},t.CoreExportNames={Utils:"utils",Constants:"constants",CoreEffects:"core-effects",CoreStateAtoms:"core-state-atoms"},t.PlaybackApiEventsPackageExportNames={PlaybackEvent:"playback-event"},t.SourceExportNames={CreateSourceStateAtom:"create-source-state-atom",CreateSourceReference:"create-source-reference",SourceReferences:"source-references",SourceState:"source-state-atom"},t.SourcesApiExportNames={SourceApiManager:"source-api-manager",VideoElementUtils:"video-element-utils",SourceEventBus:"source-event-bus"}},7390:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.SequenceNumberBackend=void 0
var i=n(4649),r=function(){function e(e){this.sequenceNumber=0,this.nextBackend=e}return e.prototype.sendRequest=function(e){this.updateSampleBeforeSending(e),this.isSequenceNumberAboveThreshold(e)||this.nextBackend.sendRequest(e)},e.prototype.sendUnloadRequest=function(e){this.updateSampleBeforeSending(e),this.isSequenceNumberAboveThreshold(e)||this.nextBackend.sendUnloadRequest(e)},e.prototype.sendRequestSynchronous=function(e){this.updateSampleBeforeSending(e),this.isSequenceNumberAboveThreshold(e)||this.nextBackend.sendRequestSynchronous(e)},e.prototype.sendAdRequest=function(e){this.isSequenceNumberAboveThreshold(e)||this.nextBackend.sendAdRequest(e)},e.prototype.updateSampleBeforeSending=function(e){e.sequenceNumber=this.sequenceNumber++},e.prototype.isSequenceNumberAboveThreshold=function(e){var t
return(null!==(t=e.sequenceNumber)&&void 0!==t?t:0)>i.SEQUENCE_NUMBER_LIMIT},e}()
t.SequenceNumberBackend=r},7540:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.DebuggingBackend=void 0
var i=n(1916),r=function(){function e(e,t){this.underlying=t,e.debug&&e.debug.fields&&(this.debugFields=e.debug.fields)}return e.prototype.sendRequest=function(e){this.printFields(e),this.underlying.sendRequest(e)},e.prototype.sendUnloadRequest=function(e){this.printFields(e),this.underlying.sendUnloadRequest(e)},e.prototype.sendRequestSynchronous=function(e){this.printFields(e),this.underlying.sendRequestSynchronous(e)},e.prototype.sendAdRequest=function(e){this.underlying.sendAdRequest(e)},e.prototype.printFields=function(e){if(this.debugFields&&this.debugFields.length){var t={}
this.debugFields.forEach((function(n){return t[n]=e[n]})),i.logger.table([t])}},e}()
t.DebuggingBackend=r},7543:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.HttpRequestTrackingAdapter=void 0
var i=n(675),r=n(5063),o=n(4438),a=function(){function e(e){var t=this
this.eventDispatcher=new i.EventDispatcher,this.playerExports=e.exports,e.on(this.playerExports.PlayerEvent.DownloadFinished,(function(e){return t.onDownloadFinished(e)}))}return e.prototype.subscribe=function(e){return this.eventDispatcher.subscribe(e)},e.prototype.unsubscribe=function(e){this.eventDispatcher.unsubscribe(e)},e.prototype.onDownloadFinished=function(e){var t,n,i
this.eventDispatcher.dispatch({httpRequest:{downloadTime:null!==(t=(0,r.calculateTimeWithUndefined)(null==e?void 0:e.downloadTime))&&void 0!==t?t:0,httpStatus:null!==(n=null==e?void 0:e.httpStatus)&&void 0!==n?n:0,success:null!==(i=null==e?void 0:e.success)&&void 0!==i&&i,timestamp:(0,r.getCurrentTimestamp)(),url:null==e?void 0:e.url,size:null==e?void 0:e.size,timeToFirstByte:(0,r.calculateTimeWithUndefined)(null==e?void 0:e.timeToFirstByte),type:this.mapHttpRequestType(null==e?void 0:e.downloadType)}})},e.prototype.mapHttpRequestType=function(e){return Object.values(o.HttpRequestType).includes(e)?e:o.HttpRequestType.UNKNOWN},e}()
t.HttpRequestTrackingAdapter=a},7596: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}),t.AnalyticsStateMachine=void 0
var r=n(3458),o=n(2361),a=n(4649),s=n(5063),c=n(5063),l=[3e3,5e3,1e4,3e4,59700],u=function(){function e(e,t){this.stateMachineCallbacks=e,this.onEnterStateTimestamp=0,this.videoStartupTimeoutMs=a.ANALYTICS_VIDEOSTART_TIMEOUT,this.rebufferTimeoutMs=a.ANALYTICS_REBUFFER_TIMEOUT,this.currentRebufferingIntervalIndex=0,this.stateMachine=this.createStateMachine(t)}return e.prototype.callManualSourceChangeEvent=function(e,t){this.callEvent(o.Event.MANUAL_SOURCE_CHANGE,{config:e,currentTime:t},Date.now())},Object.defineProperty(e.prototype,"currentState",{get:function(){return this.stateMachine.current},enumerable:!1,configurable:!0}),e.prototype.resetIntervals=function(){this.clearVideoStartTimeout(),this.clearRebufferingTimeoutHandle(!0),this.clearRebufferingHeartbeatHandle()},e.prototype.startRebufferingHeartbeatInterval=function(e){var t=this
void 0===e&&(e=!0),this.resetRebufferingHelpers(e),this.startRebufferingTimeoutHandle(),this.rebufferingHeartbeatIntervalHandle=window.setInterval((function(){if("rebuffering"===t.stateMachine.current.toLowerCase()){var e=(new Date).getTime(),n=e-t.onEnterStateTimestamp
t.stateMachineCallbacks.heartbeat(n,t.stateMachine.current.toLowerCase(),{buffered:n}),t.onEnterStateTimestamp=e,t.currentRebufferingIntervalIndex=Math.min(t.currentRebufferingIntervalIndex+1,l.length-1),t.startRebufferingHeartbeatInterval(!1)}else t.resetRebufferingHelpers()}),l[this.currentRebufferingIntervalIndex])},e.prototype.resetRebufferingHelpers=function(e){void 0===e&&(e=!0),e&&(this.currentRebufferingIntervalIndex=0),this.clearRebufferingHeartbeatHandle(),this.clearRebufferingTimeoutHandle(e)},e.prototype.clearRebufferingHeartbeatHandle=function(){(0,c.isNotNullish)(this.rebufferingHeartbeatIntervalHandle)&&(window.clearInterval(this.rebufferingHeartbeatIntervalHandle),this.rebufferingHeartbeatIntervalHandle=void 0)},e.prototype.startRebufferingTimeoutHandle=function(){var e=this
this.currentRebufferingIntervalIndex>0||(this.rebufferingTimeoutHandle=window.setTimeout((function(){e.callEvent(o.Event.ERROR,i(i({},r.ErrorCode.BUFFERING_TIMEOUT_REACHED),{data:{additionalData:"StateMachine timed out after ".concat(e.rebufferTimeoutMs," ms of consecutive buffering.")}}),s.getCurrentTimestamp()),e.stateMachineCallbacks.release()}),this.rebufferTimeoutMs))},e.prototype.clearRebufferingTimeoutHandle=function(e){e&&(0,c.isNotNullish)(this.rebufferingTimeoutHandle)&&(window.clearTimeout(this.rebufferingTimeoutHandle),this.rebufferingTimeoutHandle=void 0)},e.prototype.setVideoStartTimeout=function(){var e=this;(0,c.isNotNullish)(this.videoStartTimeout)&&this.clearVideoStartTimeout(),this.videoStartTimeout=window.setTimeout((function(){e.callEvent(o.Event.VIDEOSTART_TIMEOUT,{},s.getCurrentTimestamp()),e.stateMachineCallbacks.release()}),this.videoStartupTimeoutMs)},e.prototype.clearVideoStartTimeout=function(){window.clearTimeout(this.videoStartTimeout),this.videoStartTimeout=void 0},e}()
t.AnalyticsStateMachine=u},7614: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)},r=this&&this.__spreadArray||function(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))}
Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorDetailBackend=void 0
var o=n(92),a=n(4649),s=n(5063),c=function(){function e(e){var t
this._queue=[],this._enabled=!1,this.backendUrl=(0,s.joinUrls)(null!==(t=null==e?void 0:e.backendUrl)&&void 0!==t?t:a.ANALYTICS_BACKEND_BASE_URL,"/analytics/error")}return Object.defineProperty(e.prototype,"queue",{get:function(){return this._queue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=e},enumerable:!1,configurable:!0}),e.copyErrorDetailTruncateStringsAndUrls=function(e,t,n){var r,o,a=this
return i(i({},e),{message:null===(r=e.message)||void 0===r?void 0:r.substr(0,t),data:this.copyErrorDataTruncateStrings(e.data,t),httpRequests:null===(o=e.httpRequests)||void 0===o?void 0:o.map((function(e){return a.copyHttpRequestTruncateUrls(e,n)}))})},e.copyHttpRequestTruncateUrls=function(e,t){var n,r
return i(i({},e),{url:null===(n=e.url)||void 0===n?void 0:n.substr(0,t),lastRedirectLocation:null===(r=e.lastRedirectLocation)||void 0===r?void 0:r.substr(0,t)})},e.copyErrorDataTruncateStrings=function(e,t){var n,r
return i(i({},e),{exceptionMessage:null===(n=e.exceptionMessage)||void 0===n?void 0:n.substr(0,t),additionalData:null===(r=e.additionalData)||void 0===r?void 0:r.substr(0,t)})},e.copyErrorDetailTruncateHttpRequests=function(e,t){var n
return i(i({},e),{httpRequests:null===(n=e.httpRequests)||void 0===n?void 0:n.slice(-t)})},e.prototype.limitHttpRequestsOfQueuedErrorDetails=function(t){var n=this
this._queue.forEach((function(i,r){n._queue[r]=e.copyErrorDetailTruncateHttpRequests(i,t)}))},e.prototype.send=function(t){var n=e.copyErrorDetailTruncateStringsAndUrls(t,e.MAX_STRING_LENGTH,e.MAX_URL_LENGTH)
this.enabled?(0,o.post)(this.backendUrl,n,(function(){})):this._queue.push(n)},e.prototype.flush=function(){for(var e=r([],this._queue,!0),t=e.shift();(0,s.isNotNullish)(t);)this.removeFromQueue(t),this.send(t),t=e.shift()},e.prototype.clear=function(){this._queue.splice(0,this._queue.length)},e.prototype.removeFromQueue=function(e){var t=this._queue.findIndex((function(t){return t===e}))
t>=0&&this._queue.splice(t,1)},e.MAX_URL_LENGTH=450,e.MAX_STRING_LENGTH=400,e}()
t.ErrorDetailBackend=c},7881:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.HttpRequestTracking=void 0
var i=n(1916),r=n(3129),o=function(){function e(t){var n=this
this.subscribables=t,this._maxRequests=e.DEFAULT_MAX_REQUESTS,this._httpRequestQueue=new r.Queue,this.onDownloadFinishedHandler=function(e){try{n.addRequest(e.httpRequest)}catch(e){i.logger.error("HttpRequestTracking.onDownloadFinished: Error in handler",e)}},t.forEach((function(e){return e.subscribe(n.onDownloadFinishedHandler)}))}return Object.defineProperty(e.prototype,"maxRequests",{get:function(){return this._maxRequests},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"httpRequests",{get:function(){return this._httpRequestQueue.items},enumerable:!1,configurable:!0}),e.prototype.configure=function(e){this._maxRequests=e,this._httpRequestQueue.limit(e)},e.prototype.disable=function(){var e=this
this.subscribables.forEach((function(t){return t.unsubscribe(e.onDownloadFinishedHandler)})),this._httpRequestQueue.clear()},e.prototype.reset=function(){this._httpRequestQueue.clear()},e.prototype.addRequest=function(e){this._httpRequestQueue.offer(e),this._httpRequestQueue.limit(this._maxRequests)},e.DEFAULT_MAX_REQUESTS=10,e}()
t.HttpRequestTracking=o},7906: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}),t.ROUTING_URL_PARAM_VALUE_SSAI=t.ROUTING_URL_PARAM=t.SSAI_RELATED_SAMPLE_MARKER=void 0,t.isSsaiRelatedSample=function(e){return e[t.SSAI_RELATED_SAMPLE_MARKER]?(delete e[t.SSAI_RELATED_SAMPLE_MARKER],!0):2===e.adType},t.appendSsaiRoutingParam=function(e){return"".concat(e,"?").concat(t.ROUTING_URL_PARAM,"=").concat(t.ROUTING_URL_PARAM_VALUE_SSAI)},t.createErrorAdSample=function(e,t){return a({playbackSample:e,currentAdImpressionId:t.currentAdImpressionId,adIndex:t.adIndex,currentAdMetadata:t.currentAdMetadata,quartile:void 0,quartileMetadata:void 0,errorCode:t.errorCode,errorMessage:t.errorMessage,timeSinceAdStartedInMs:t.timeSinceAdStartedInMs})},t.createStartedAdSample=function(e,t){return a({playbackSample:e,currentAdImpressionId:t.currentAdImpressionId,adIndex:t.adIndex,currentAdMetadata:t.currentAdMetadata,quartile:"started",quartileMetadata:void 0,errorCode:void 0,errorMessage:void 0,timeSinceAdStartedInMs:void 0})},t.createQuartileAdSample=function(e,t){return a({playbackSample:e,currentAdImpressionId:t.currentAdImpressionId,adIndex:t.adIndex,currentAdMetadata:t.currentAdMetadata,quartile:t.quartile,quartileMetadata:t.quartileMetadata,timeSinceAdStartedInMs:t.timeSinceAdStartedInMs,errorCode:void 0,errorMessage:void 0})},t.getCurrentMonotonicTimestampInMs=s,t.getMonotonicTimestampInMsSince=function(e){if(!(0,o.isNullish)(e))return s()-e}
var r=n(5529),o=n(5063)
function a(e){var t,n=e.playbackSample,a=e.currentAdImpressionId,s=e.adIndex,c=e.currentAdMetadata,l=e.quartile,u=e.quartileMetadata,d=e.errorCode,f=e.errorMessage,p=e.timeSinceAdStartedInMs,h=i(i({},{audioBitrate:null==(t=n)?void 0:t.audioBitrate,audioCodec:null==t?void 0:t.audioCodec,analyticsVersion:null==t?void 0:t.analyticsVersion,adPlaybackHeight:null==t?void 0:t.videoPlaybackHeight,adPlaybackWidth:null==t?void 0:t.videoPlaybackWidth,cdnProvider:null==t?void 0:t.cdnProvider,customData1:null==t?void 0:t.customData1,customData2:null==t?void 0:t.customData2,customData3:null==t?void 0:t.customData3,customData4:null==t?void 0:t.customData4,customData5:null==t?void 0:t.customData5,customData6:null==t?void 0:t.customData6,customData7:null==t?void 0:t.customData7,customData8:null==t?void 0:t.customData8,customData9:null==t?void 0:t.customData9,customData10:null==t?void 0:t.customData10,customData11:null==t?void 0:t.customData11,customData12:null==t?void 0:t.customData12,customData13:null==t?void 0:t.customData13,customData14:null==t?void 0:t.customData14,customData15:null==t?void 0:t.customData15,customData16:null==t?void 0:t.customData16,customData17:null==t?void 0:t.customData17,customData18:null==t?void 0:t.customData18,customData19:null==t?void 0:t.customData19,customData20:null==t?void 0:t.customData20,customData21:null==t?void 0:t.customData21,customData22:null==t?void 0:t.customData22,customData23:null==t?void 0:t.customData23,customData24:null==t?void 0:t.customData24,customData25:null==t?void 0:t.customData25,customData26:null==t?void 0:t.customData26,customData27:null==t?void 0:t.customData27,customData28:null==t?void 0:t.customData28,customData29:null==t?void 0:t.customData29,customData30:null==t?void 0:t.customData30,customData31:null==t?void 0:t.customData31,customData32:null==t?void 0:t.customData32,customData33:null==t?void 0:t.customData33,customData34:null==t?void 0:t.customData34,customData35:null==t?void 0:t.customData35,customData36:null==t?void 0:t.customData36,customData37:null==t?void 0:t.customData37,customData38:null==t?void 0:t.customData38,customData39:null==t?void 0:t.customData39,customData40:null==t?void 0:t.customData40,customData41:null==t?void 0:t.customData41,customData42:null==t?void 0:t.customData42,customData43:null==t?void 0:t.customData43,customData44:null==t?void 0:t.customData44,customData45:null==t?void 0:t.customData45,customData46:null==t?void 0:t.customData46,customData47:null==t?void 0:t.customData47,customData48:null==t?void 0:t.customData48,customData49:null==t?void 0:t.customData49,customData50:null==t?void 0:t.customData50,customUserId:null==t?void 0:t.customUserId,domain:null==t?void 0:t.domain,experimentName:null==t?void 0:t.experimentName,key:null==t?void 0:t.key,language:null==t?void 0:t.language,path:null==t?void 0:t.path,platform:null==t?void 0:t.platform,player:null==t?void 0:t.player,playerKey:null==t?void 0:t.playerKey,playerTech:null==t?void 0:t.playerTech,size:null==t?void 0:t.size,screenHeight:null==t?void 0:t.screenHeight,screenWidth:null==t?void 0:t.screenWidth,streamFormat:null==t?void 0:t.streamFormat,userAgent:null==t?void 0:t.userAgent,userId:null==t?void 0:t.userId,version:null==t?void 0:t.version,videoBitrate:null==t?void 0:t.videoBitrate,videoCodec:null==t?void 0:t.videoCodec,videoId:null==t?void 0:t.videoId,videoImpressionId:null==t?void 0:t.impressionId,videoTitle:null==t?void 0:t.videoTitle,videoWindowHeight:null==t?void 0:t.videoWindowHeight,videoWindowWidth:null==t?void 0:t.videoWindowWidth}),{adId:null==c?void 0:c.adId,adImpressionId:a,adIndex:s,adPosition:null==c?void 0:c.adPosition,adSystem:null==c?void 0:c.adSystem,adType:2,errorCode:d,errorMessage:f,time:Date.now(),timeSinceAdStartedInMs:p})
switch(l){case"started":h.started=1
break
case"first":h.quartile1=1,h.quartile1FailedBeaconUrl=null==u?void 0:u.failedBeaconUrl
break
case"midpoint":h.midpoint=1,h.midpointFailedBeaconUrl=null==u?void 0:u.failedBeaconUrl
break
case"third":h.quartile3=1,h.quartile3FailedBeaconUrl=null==u?void 0:u.failedBeaconUrl
break
case"completed":h.completed=1,h.completedFailedBeaconUrl=null==u?void 0:u.failedBeaconUrl}var g=null==c?void 0:c.customData
return(0,o.isNotNullish)(g)&&r.customDataValuesKeys.forEach((function(e){g[e]&&(h[e]=g[e])})),h}function s(){var e
return(0,o.isNullish)(null===(e=window.performance)||void 0===e?void 0:e.now)||"function"!=typeof window.performance.now?Date.now():Math.floor(performance.now())}t.SSAI_RELATED_SAMPLE_MARKER="triggeredBySsai",t.ROUTING_URL_PARAM="routingParam",t.ROUTING_URL_PARAM_VALUE_SSAI="ssai"},7922:function(e,t){"use strict"
var n
Object.defineProperty(t,"__esModule",{value:!0}),t.HLS_PLAYER_EVENT=t.PlaylistLevelType=void 0,function(e){e.AUDIO="audio",e.MAIN="main",e.SUBTITLE="subtitle"}(n||(t.PlaylistLevelType=n={})),t.HLS_PLAYER_EVENT={MEDIA_ATTACHING:"hlsMediaAttaching",MEDIA_DETACHING:"hlsMediaDetaching",MANIFEST_LOADING:"hlsManifestLoading",AUDIO_TRACK_SWITCHED:"hlsAudioTrackSwitched",SUBTITLE_TRACK_SWITCH:"hlsSubtitleTrackSwitch",DESTROYING:"hlsDestroying",ERROR:"hlsError"}},8253:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.logMissingCallbackWarning=t.createHeartbeatPayload=t.customStateMachineErrorCallback=void 0,t.on=function(e){return{stayIn:function(t){return{name:e,from:t,to:t}}}}
var i=n(7906),r=n(1916),o=n(5063)
t.customStateMachineErrorCallback=function(e,t,n,i,a,s,c){var l="StateMachine error callback: ".concat(s)
l+=", eventName: ".concat(e,", from: ").concat(t,", to: ").concat(n),(0,o.isNotNullish)(i)&&(l+=", args: ".concat(JSON.stringify(i))),l+=", errorCode: ".concat(a),r.logger.warn(l)},t.createHeartbeatPayload=function(e,t,n){void 0===n&&(n=!1)
var r={}
switch(t){case"playing":r={played:e}
break
case"buffering":r={buffered:e}
break
case"paused":r={paused:e}}return n&&(r[i.SSAI_RELATED_SAMPLE_MARKER]=!0),r},t.logMissingCallbackWarning=function(e,t){void 0===t&&(t=[]),(0,o.isNullish)(e)||(0,o.isNullish)(t.find((function(t){return e===t})))&&r.logger.warn("Could not find callback function for "+e)}},8331: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}),t.sanitizeAnalyticsConfig=function(e){return(0,s.isNullish)(e)?{}:(a.isBoolean(e.isLive)||(e.isLive=!1),e)},t.guardConfigChangeAgainstMissingTitle=function(e,t){(0,s.isNullish)(e)||(0,s.isNullish)(t)||e.title&&(0,o.isBlank)(t.title)&&r.logger.error("The new analytics configuration does not contain the field `title`")},t.guardConfigChangeAgainstMissingIsLive=function(e,t){(0,s.isNullish)(e)||(0,s.isNullish)(t)||e.isLive&&(0,s.isNullish)(t.isLive)&&r.logger.error("The new analytics configuration does not contain the field `isLive`. It will default to `false` which might be unintended? Once stream playback information is available the type will be populated.")},t.guardAgainstDuplicatedUserId=function(e){(0,s.isNullish)(e)||(0,s.isNotNullish)(e.customUserId)&&(0,s.isNotNullish)(e.userId)&&r.logger.warn("Configuration Warning: \nCustomUserId and UserId are set in the config \nValue of UserId will be used in sample \nPlease only use one configuration field to set your userId")},t.getDeviceInformationFromAnalyticsConfig=function(e){if(!(0,s.isNullish)(e)){var t={}
if((0,o.isValidString)(e.deviceType)&&!(0,o.isBlank)(e.deviceType)&&(t.model=e.deviceType),(0,o.isValidString)(e.deviceClass)&&!(0,o.isBlank)(e.deviceClass)&&(t.deviceClass=e.deviceClass),0!==Object.keys(t).length)return t}},t.getDomainFromAnalyticsConfig=function(e){var t,n
return null!==(n=null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.origin)&&void 0!==n?n:a.sanitizePath(window.location.hostname)},t.mergeAnalyticsConfig=function(e,t){var n=function(e){var t=["cdnProvider","videoId","title","isLive","experimentName"],n=/customData\d{1,2}$/g
for(var i in e)((0,s.isNotNullish)(i.match(n))||t.includes(i))&&delete e[i]
return e}(e),r=function(e,t){return(0,s.isNotNullish)(t)?i(i(i({},e),{enabled:!0}),t):null!=e?e:{}}(e.config,t.config)
return i(i(i({},n),t),{config:r})}
var r=n(1916),o=n(1820),a=n(5063),s=n(5063)},8510:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var n=function(){function e(e){this.videoElement=e,this.previousTotalDroppedFrames=0}return e.prototype.getDroppedFrames=function(){if(null==this.videoElement)return 0
if(void 0===this.videoElement.getVideoPlaybackQuality)return 0
var e=this.videoElement.getVideoPlaybackQuality().droppedVideoFrames,t=e-this.previousTotalDroppedFrames
return this.previousTotalDroppedFrames=e,t},e.prototype.reset=function(){this.previousTotalDroppedFrames=0},e}()
t.default=n},8525:function(e,t){"use strict"
var n
Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerSize=void 0,function(e){e.Fullscreen="FULLSCREEN",e.Window="WINDOW"}(n||(t.PlayerSize=n={}))},8676:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.SegmentTrackerAdapter=void 0
var i=n(5063),r=function(){function e(e,t){var n=this
this.handleSegmentPlaybackEvent=function(e){n.segmentTracker.removeSegment(e.url)},this.segmentTracker=t,e.on(e.exports.PlayerEvent.DownloadFinished,(function(e){return n.handleOnDownloadFinishEvent(e)})),e.on(e.exports.PlayerEvent.SegmentPlayback,(function(e){return n.handleSegmentPlaybackEvent(e)}))}return e.prototype.getSegmentTracker=function(){return this.segmentTracker},e.prototype.handleOnDownloadFinishEvent=function(e){if(0===e.downloadType.indexOf("media/video")){var t=e.url,n={name:i.getURLResourceName(t),url:t,timestamp:e.timestamp}
this.segmentTracker.addSegment(n)}},e}()
t.SegmentTrackerAdapter=r},8917: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}),t.AdAnalytics=void 0
var r,o=n(5791),a=n(7232),s=n(4439),c=n(1916),l=n(5063),u=n(2982),d=n(4926),f=n(3612)
!function(e){e.FIRST_QUARTILE="firstQuartile",e.MIDPOINT="midpoint",e.THIRD_QUARTILE="thirdQuartile"}(r||(r={}))
var p=function(){function e(e,t){var n=this
this.onBeforeUnLoadEvent=!1,this.adManifestLoadedEvents=[],this.isPlaying=!1,this.adPodPosition=0,this.analytics=e,this.adapter=t,this.adapter.adCallbacks.onAdStarted=function(e){return n.onAdStarted(e)},this.adapter.adCallbacks.onAdFinished=function(e){return n.onAdFinished(e)},this.adapter.adCallbacks.onAdBreakStarted=function(e){return n.onAdBreakStarted(e)},this.adapter.adCallbacks.onAdBreakFinished=function(e){return n.onAdBreakFinished(e)},this.adapter.adCallbacks.onAdClicked=function(e){return n.onAdClicked(e)},this.adapter.adCallbacks.onAdError=function(e){return n.onAdError(e)},this.adapter.adCallbacks.onAdManifestLoaded=function(e){return n.onAdManifestLoaded(e)},this.adapter.adCallbacks.onPlay=function(){return n.onPlay()},this.adapter.adCallbacks.onPause=function(){return n.onPause()},this.adapter.adCallbacks.onBeforeUnload=function(){return n.onBeforeUnload()},this.adapter.adCallbacks.onAdSkipped=function(e){return n.onAdSkipped(e)},this.adapter.adCallbacks.onAdQuartile=function(e){return n.onAdQuartile(e)},this.viewportTracker=new f.ViewportTracker(this.adapter.getContainer(),(function(){return n.onIntersectionChanged()}),.5)}return e.prototype.release=function(){this.clearCurrentTimeInterval(),this.viewportTracker.dispose()},e.prototype.onIntersectionChanged=function(){this.activeAdSample&&(this.isContainerInViewport()?this.enterViewportTimestamp=l.getCurrentTimestamp():this.enterViewportTimestamp&&(this.activeAdSample.timeInViewport=(this.activeAdSample.timeInViewport||0)+l.getCurrentTimestamp()-this.enterViewportTimestamp))},e.prototype.isContainerInViewport=function(){return!this.viewportTracker||this.viewportTracker.isInViewport()},e.prototype.onPlay=function(){if(this.adapter&&this.adapter.isLinearAdActive()&&this.activeAdSample){var e=l.getCurrentTimestamp()
this.beginPlayingTimestamp=e,this.enterViewportTimestamp=e,this.isPlaying=!0}},e.prototype.onPause=function(){this.adapter&&this.adapter.isLinearAdActive()&&this.activeAdSample&&(this.updatePlayingTime(this.activeAdSample),this.isPlaying=!1)},e.prototype.onAdManifestLoaded=function(e){var t=e.adConfig
t&&t.tag&&"vmap"===t.tag.type?this.sendAnalyticsRequest(new a.AdBreakSample(e.adConfig,e)):e.adBreak&&this.adManifestLoadedEvents.push(e)},e.prototype.onAdBreakStarted=function(e){this.adPodPosition=0,this.activeAdBreakSample=new a.AdBreakSample(e.adBreak,this.getAdManifestLoadedEvent(e.adBreak)),this.adStartupTimestamp=l.getCurrentTimestamp()},e.prototype.onAdBreakFinished=function(e){this.resetActiveAd(),this.activeAdBreakSample=void 0},e.prototype.onAdStarted=function(e){e.ad.isLinear&&(this.resetActiveAd(),this.activeAdSample=new s.AdSample(e.ad),this.currentTime=void 0,this.activeAdSample.adStartupTime=this.adStartupTimestamp?l.getCurrentTimestamp()-this.adStartupTimestamp:void 0,this.startAd(this.activeAdSample))},e.prototype.onAdFinished=function(e){if(this.activeAdBreakSample&&this.activeAdSample){var t=i({},this.activeAdSample)
t.completed=1,this.resetActiveAd(),this.completeAd(this.activeAdBreakSample,t,t.adDuration)}},e.prototype.onAdSkipped=function(e){if(this.activeAdBreakSample&&this.activeAdSample){var t=i({},this.activeAdSample)
t.skipped=1,t.skipPosition=this.currentTime,t.skipPercentage=l.calculatePercentage(this.activeAdSample.skipPosition,this.activeAdSample.adDuration),this.resetActiveAd(),this.completeAd(this.activeAdBreakSample,t,t.skipPosition)}},e.prototype.onAdError=function(e){var t,n,i=this,r=e.data||{adBreak:void 0,adConfig:void 0,code:void 0,message:void 0},o=r.adConfig,s=r.adBreak,c=r.code,u=r.message,d=new a.AdBreakSample(s||o,s?this.getAdManifestLoadedEvent(s):void 0)
d.errorCode=c||e.code,d.errorData=JSON.stringify(e.data),d.errorMessage=u||e.name,this.activeAdSample&&s&&s.ads&&s.ads.includes((function(e){return e.id===i.activeAdSample.adId}))&&(n=(t=this.activeAdSample).errorPosition=this.currentTime,t.errorPercentage=l.calculatePercentage(t.errorPosition,t.adDuration)),this.completeAd(d,t,n)},e.prototype.onAdClicked=function(e){this.activeAdSample&&(this.activeAdSample.adClickthroughUrl=e.clickThroughUrl,this.activeAdSample.clicked=1,this.activeAdSample.clickPosition=this.currentTime,this.activeAdSample.clickPercentage=l.calculatePercentage(this.activeAdSample.clickPosition,this.activeAdSample.adDuration))},e.prototype.onAdQuartile=function(e){this.activeAdSample&&(e.quartile===r.FIRST_QUARTILE?this.activeAdSample.quartile1=1:e.quartile===r.MIDPOINT?this.activeAdSample.midpoint=1:e.quartile===r.THIRD_QUARTILE&&(this.activeAdSample.quartile3=1))},e.prototype.onBeforeUnload=function(){if(!this.onBeforeUnLoadEvent&&(this.onBeforeUnLoadEvent=!0,this.activeAdSample&&this.activeAdBreakSample)){var e=i({},this.activeAdSample)
e.closed=1,e.closePosition=this.currentTime,e.closePercentage=l.calculatePercentage(e.closePosition,e.adDuration),this.resetActiveAd(),this.completeAd(this.activeAdBreakSample,e,e.closePosition)}},e.prototype.createNewAdAnalyticsSample=function(e){var t=this.adapter.getAdModuleInfo()
return i(i({},new o.AdAnalyticsSample(e)),{analyticsVersion:d.VERSION,adModule:t.name,adModuleVersion:t.version,playerStartupTime:this.analytics.playerStartupTime,pageLoadTime:this.analytics.pageLoadTime,autoplay:this.analytics.autoplay,pageLoadType:l.getPageLoadType()})},e.prototype.getAdManifestLoadedEvent=function(e){if(e)return this.adManifestLoadedEvents.find((function(t){return t.adBreak&&t.adBreak.id===e.id}))},e.prototype.sendAnalyticsRequest=function(e,t){var n=i(i(i({},this.createNewAdAnalyticsSample(this.analytics.sample)),e),t||new s.AdSample)
n.time=l.getCurrentTimestamp(),n.adImpressionId=(0,u.generateUUID)(),n.percentageInViewport=l.calculatePercentage(n.timeInViewport,n.timePlayed),this.analytics.backend.sendAdRequest(n)},e.prototype.updatePlayingTime=function(e){var t=l.getCurrentTimestamp()
this.beginPlayingTimestamp&&this.isPlaying&&(void 0!==e.timePlayed&&(e.timePlayed+=t-this.beginPlayingTimestamp),this.isContainerInViewport()&&this.enterViewportTimestamp&&void 0!==e.timeInViewport&&(e.timeInViewport+=t-this.enterViewportTimestamp))},e.prototype.startAd=function(t){var n=this
t.started=1,t.timePlayed=0,t.timeInViewport=0,t.adPodPosition=this.adPodPosition
var i=l.getCurrentTimestamp()
this.beginPlayingTimestamp=i,this.enterViewportTimestamp=this.isContainerInViewport()?i:void 0,this.isPlaying=!0,this.currentTime=0,this.adPodPosition++,this.currentTimeInterval=window.setInterval((function(){try{t&&void 0!==t.adDuration&&t.adDuration>0&&n.adapter.isLinearAdActive()&&(n.currentTime=l.calculateTime(Math.max(n.adapter.currentTime(),0)))}catch(e){c.logger.log("AdStarted monitoring interval failed and got cleared",e),n.resetActiveAd()}}),e.TIMEOUT_CURRENT_TIME_INTERVAL)},e.prototype.completeAd=function(e,t,n){void 0===t&&(t=new s.AdSample),t.exitPosition=n,t.playPercentage=l.calculatePercentage(t.exitPosition,t.adDuration),this.adStartupTimestamp=l.getCurrentTimestamp(),this.updatePlayingTime(t),this.isPlaying=!1,this.sendAnalyticsRequest(e,t)},e.prototype.resetActiveAd=function(){this.clearCurrentTimeInterval(),this.activeAdSample=void 0},e.prototype.clearCurrentTimeInterval=function(){window.clearInterval(this.currentTimeInterval),delete this.currentTime},e.MODULE_NAME="ads",e.TIMEOUT_CURRENT_TIME_INTERVAL=100,e}()
t.AdAnalytics=p},8918:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.isSsaiEngagementErrorData=function(e){return"error"===e.type},t.isSsaiEngagementQuartileData=function(e){return"quartile"===e.type},t.isSsaiEngagementStartedData=function(e){return"started"===e.type}},9027:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.WindowEventListener=void 0
var i,r=n(2361),o=n(9653)
!function(e){e[e.IDLE=0]="IDLE",e[e.UNLOADED=1]="UNLOADED"}(i||(i={}))
var a=function(){function e(e,t,n){var a=this
this.windowEventTracker=e,this.dispatcher=t,this.playerContext=n,this.state=i.IDLE,this.onPageUnload=function(){a.state==i.IDLE&&(a.dispatcher.eventCallback(r.Event.UNLOAD,{currentTime:a.playerContext.position}),a.state=i.UNLOADED,o.default.RELEASE.trigger())}}return e.prototype.startMonitoring=function(){this.windowEventTracker.addEventListener("beforeunload",this.onPageUnload),this.windowEventTracker.addEventListener("unload",this.onPageUnload)},e}()
t.WindowEventListener=a},9557: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)}),o=this&&this.__spreadArray||function(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))}
Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorDetailTracking=void 0
var a=n(1916),s=n(5063),c=n(4926),l=function(e){function t(t,n,i,r){var l=e.call(this)||this
return l.settingsProvider=t,l.backend=n,l.subscribables=i,l.httpRequestTracking=r,l.errorIndex=0,l.onErrorHandler=function(e){var t,n
try{if(!l.isEnabled)return
var i=null===(t=l.httpRequestTracking)||void 0===t?void 0:t.httpRequests,r=(0,s.isNullish)(i)?void 0:o([],i,!0),u=l.errorIndex
l.errorIndex++
var d={platform:"web",licenseKey:l.settingsProvider.licenseKey,domain:l.settingsProvider.domain,impressionId:l.settingsProvider.impressionId,analyticsVersion:c.VERSION,errorId:u,timestamp:(0,s.getCurrentTimestamp)(),code:e.code,message:e.message,data:null!==(n=e.errorData)&&void 0!==n?n:{additionalData:void 0,exceptionMessage:void 0,exceptionStacktrace:void 0},httpRequests:r}
a.logger.log("ErrorDetailTracking.onError: ".concat(JSON.stringify(d))),l.backend.send(d)}catch(e){a.logger.error("ErrorDetailTracking.onError: Error in handler",e)}},i.forEach((function(e){return e.subscribe(l.onErrorHandler)})),l}return r(t,e),t.prototype.reset=function(){var e
null===(e=this.httpRequestTracking)||void 0===e||e.reset(),this.errorIndex=0},t.prototype.enabled=function(){this.backend.enabled=!0,this.backend.flush()},t.prototype.disabled=function(){var e,t=this
this.errorIndex=0,null===(e=this.httpRequestTracking)||void 0===e||e.disable(),this.backend.clear(),this.subscribables.forEach((function(e){return e.unsubscribe(t.onErrorHandler)}))},t.prototype.configured=function(e,t){var n,i,r=Math.max(null!==(n=null==t?void 0:t.numberOfHttpRequests)&&void 0!==n?n:0,0)
null===(i=this.httpRequestTracking)||void 0===i||i.configure(r),this.backend.limitHttpRequestsOfQueuedErrorDetails(r)},t.prototype.extractConfig=function(e){return e.errorDetails},t}(n(348).Feature)
t.ErrorDetailTracking=l},9566:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.HlsAdapter=void 0
var i=n(4350),r=n(8331),o=n(1916),a=n(2108),s=n(4926),c=n(1601),l=function(){function e(e,t,n){if((0,a.hasPlayerAlreadyBeenAugmented)(t))o.logger.errorMessageToUser("Bitmovin Analytics is already hooked up to this player instance")
else{(0,a.markPlayerInstanceAsAugmented)(t)
var s=(0,r.sanitizeAnalyticsConfig)(e);(0,r.guardAgainstDuplicatedUserId)(s),this.internalAdapter=new c.HlsInternalAdapter(t,n),this.analytics=i.Analytics.create(s,this.internalAdapter)}}return Object.defineProperty(e.prototype,"version",{get:function(){return s.VERSION},enumerable:!1,configurable:!0}),e.prototype.getCurrentImpressionId=function(){if((0,a.isDefined)(this.analytics))return this.analytics.getCurrentImpressionId()},e.prototype.getUserId=function(){if((0,a.isDefined)(this.analytics))return this.analytics.getUserId()},e.prototype.setCustomData=function(e){(0,a.isDefined)(this.internalAdapter)&&this.internalAdapter.setCustomData(e)},e.prototype.setCustomDataOnce=function(e){(0,a.isDefined)(this.analytics)&&this.analytics.setCustomDataOnce(e)},e.prototype.sourceChange=function(e){(0,a.isDefined)(this.analytics)&&this.analytics.sourceChange(e)},e.version=s.VERSION,e}()
t.HlsAdapter=l},9653:function(e,t){"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var n,i="RELEASE",r=function(){function e(){var e
this.observer=((e={})[i]=[],e)}return e.prototype.subscribe=function(e,t){this.observer[e].push(t)},e.prototype.trigger=function(e){this.observer[e].forEach((function(e){e()}))},e}(),o=new r,a={RELEASE:(n=i,{subscribe:function(e){o.subscribe(n,e)},trigger:function(){o.trigger(n)}})}
t.default=a},9664:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadSpeedMeter=void 0
var i=n(5766),r=n(3786),o=function(){function e(){this.measures=[]}return e.prototype.reset=function(){this.measures=[]},e.prototype.addMeasurement=function(e){if(!(e.httpStatus>=400)){var t=new r.Measure(e),n=i.Converter.bitsToBytes(3e8)
t.speed>=n||this.measures.push(t)}},e.prototype.getInfo=function(){return{segmentsDownloadCount:this.measures.length,segmentsDownloadSize:this.measures.map((function(e){return e.size})).reduce(this.add,0),segmentsDownloadTime:Math.ceil(1e3*this.totalTime()),avgDownloadSpeed:this.avgSpeed(),minDownloadSpeed:this.minSpeed(),maxDownloadSpeed:this.maxSpeed(),avgTimeToFirstByte:this.avgTimeToFirstByte()}},e.prototype.add=function(e,t){return e+t},e.prototype.avgSpeed=function(){if(0===this.measures.length)return 0
var e=this.speeds().reduce((function(e,t){return e+t}),0),t=this.measures.length
return this.bytePerSecondToBitPerSecond(e/t)},e.prototype.bytePerSecondToBitPerSecond=function(e){return i.Converter.bytesToBits(e)},e.prototype.minSpeed=function(){return 0===this.measures.length?0:this.bytePerSecondToBitPerSecond(Math.min.apply(Math,this.speeds()))},e.prototype.speeds=function(){return this.measures.map((function(e){return e.speed}))},e.prototype.maxSpeed=function(){return 0===this.measures.length?0:this.bytePerSecondToBitPerSecond(Math.max.apply(Math,this.speeds()))},e.prototype.totalTime=function(){return 0===this.measures.length?0:this.measures.reduce((function(e,t){return e+t.duration}),0)},e.prototype.avgTimeToFirstByte=function(){if(0===this.measures.length)return 0
var e=this.measures.reduce((function(e,t){return e+1e3*t.timeToFirstByte}),0)/this.measures.length
return Math.ceil(e)},e}()
t.DownloadSpeedMeter=o},9796:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0})
var i=n(4649),r=n(4649),o=n(5063),a=function(){function e(e){void 0===e&&(e=i.ANALYTICS_QUALITY_CHANGE_COUNT_THRESHOLD),this.qualityChangeThreshold=e,this.qualityChangeCount=0,this.previousVideoBitrate=0,this.previousAudioBitrate=0,this.startupHasFinished=!1}return e.prototype.resetValues=function(){this.qualityChangeCount=0,this.previousAudioBitrate=0,this.previousVideoBitrate=0,this.startupHasFinished=!1,this.stopResetInterval()},e.prototype.isQualityChangeEventEnabled=function(){return this.qualityChangeCount<=this.qualityChangeThreshold},e.prototype.increaseCounter=function(){this.qualityChangeCount++},e.prototype.shouldAllowVideoQualityChange=function(e){return this.startupHasFinished&&(0,o.isNotNullish)(e)&&!isNaN(e)&&0!==this.previousVideoBitrate&&this.previousVideoBitrate!==e&&this.isQualityChangeEventEnabled()},e.prototype.setVideoBitrate=function(e){this.startupHasFinished&&(this.previousVideoBitrate=e)},e.prototype.setStartupHasFinished=function(){this.startupHasFinished=!0},e.prototype.shouldAllowAudioQualityChange=function(e){return this.startupHasFinished&&(0,o.isNotNullish)(e)&&!isNaN(e)&&0!==this.previousAudioBitrate&&this.previousAudioBitrate!==e&&this.isQualityChangeEventEnabled()},e.prototype.setAudioBitrate=function(e){this.startupHasFinished&&(this.previousAudioBitrate=e)},e.prototype.startResetInterval=function(){var e=this
void 0===this.resetIntervalId&&(this.resetIntervalId=window.setInterval((function(){e.resetCounter()}),r.ANALYTICS_QUALITY_CHANGE_COUNT_RESET_INTERVAL))},e.prototype.stopResetInterval=function(){void 0!==this.resetIntervalId&&(window.clearInterval(this.resetIntervalId),delete this.resetIntervalId)},e.prototype.resetCounter=function(){this.qualityChangeCount=0},e}()
t.default=a},9810:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.PlaybackService=void 0
var i=n(2361),r=n(3003),o=function(){function e(e,t,n,i){this.dispatcher=e,this.playerContext=t,this.pauseDispatcher=n,this.qualityChangeService=i,this.ignorePause=!1}return e.prototype.onStartupPlaying=function(){var e=this
this.ignorePause=!0,setTimeout((function(){e.ignorePause=!1}),100)},e.prototype.onPause=function(){this.ignorePause||this.pauseDispatcher.schedulePauseEvent()},e.prototype.onPlaying=function(){this.pauseDispatcher.cancelPause(),this.playing()},e.prototype.onRebuffering=function(){this.pauseDispatcher.cancelPause(),this.startBuffering()},e.prototype.onQualityChange=function(e){this.qualityChange(e)},e.prototype.onSeek=function(){this.seek()},e.prototype.onSeeked=function(){this.seeked()},e.prototype.startBuffering=function(){var e=this.playerContext.position
this.dispatcher.eventCallback(i.Event.START_BUFFERING,{currentTime:e})},e.prototype.playing=function(){var e=this.playerContext.position
this.dispatcher.eventCallback(i.Event.PLAYING,{currentTime:e})},e.prototype.qualityChange=function(e){if(this.qualityChangeService.shouldAllowVideoQualityChange(e.bitrate)){this.qualityChangeService.setVideoBitrate(e.bitrate)
var t=this.playerContext.position
this.dispatcher.eventCallback(i.Event.VIDEO_CHANGE,{currentTime:t})}else this.qualityChangeService.setVideoBitrate(e.bitrate)},e.prototype.seek=function(){if(!this.playerContext.isLive){this.pauseDispatcher.cancelPause()
var e=this.playerContext.position
this.dispatcher.eventCallback(i.Event.SEEK,{currentTime:e})}},e.prototype.seeked=function(){if(!this.playerContext.isLive){this.pauseDispatcher.cancelPause()
var e=this.playerContext.position
this.dispatcher.eventCallback(i.Event.SEEKED,{currentTime:e})}},e.create=function(t,n,i){return new e(t,n,new r.PauseEventDispatcher(t,n),i)},e}()
t.PlaybackService=o},9876: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)}),o=this&&this.__assign||function(){return o=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},o.apply(this,arguments)}
Object.defineProperty(t,"__esModule",{value:!0}),t.AmazonIVSInternalAdapter=void 0
var a=n(5611),s=n(2663),c=n(556),l=n(8525),u=n(7224),d=n(3413),f=n(5063),p=n(8510),h=n(2647),g=n(5440),m=n(2751),v=n(9653),y=n(9027),b=function(e){function t(t,n,i){var r=e.call(this,i)||this
r.player=t,r.sourceUrlProvider=n,r.supportsDeferredLicenseLoading=!1,r.getPlayerVersion=function(){return r.player.getVersion()},r.getPlayerName=function(){return c.Player.AMAZON_IVS},r.getPlayerTech=function(){return"html5"},r.getAutoPlay=function(){return r.player.isAutoplay()},r.getDrmPerformanceInfo=function(){}
var o=new s.HeartbeatService((function(){return r.player.getPosition()})),l=new a.AmazonIVSStateMachine(r.stateMachineCallbacks,o,r.opts)
o.setListener(l),r.stateMachine=l
var u=new g.AmazonIVSPlayerContext(t)
return r.listener=m.AmazonIVSPlayerEventListener.create(r,u,r.qualityChangeService),r.playerStatisticsProvider=new p.default(t.getHTMLVideoElement()),r.windowEventListener=new y.WindowEventListener(r.windowEventTracker,r,u),r}return r(t,e),t.prototype.initialize=function(e){var t=this
return this.listener.startMonitoring(this.player),this.windowEventListener.startMonitoring(),v.default.RELEASE.subscribe((function(){t.release()})),[]},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.player.getPosition()},enumerable:!1,configurable:!0}),t.prototype.resetSourceRelatedState=function(){this.drmPerformanceInfo=void 0,this.playerStatisticsProvider.reset()},t.prototype.getCurrentPlaybackInfo=function(){var e=this.player.getHTMLVideoElement()
return o(o(o({droppedFrames:this.playerStatisticsProvider.getDroppedFrames(),isLive:this.player.getDuration()===1/0,isMuted:this.player.isMuted(),playerTech:this.getPlayerTech(),videoWindowWidth:e.clientWidth,videoWindowHeight:e.clientHeight,videoPlaybackHeight:e.videoHeight,videoPlaybackWidth:e.videoWidth,videoBitrate:this.player.getQuality().bitrate,videoDuration:(0,d.normalizeVideoDuration)(this.player.getDuration()),size:f.isVideoInFullscreen()?l.PlayerSize.Fullscreen:l.PlayerSize.Window},this.getVideoAndAudioCodecs()),this.getCommonPlaybackInfo()),{streamFormat:u.StreamTypes.hls,m3u8Url:this.sourceUrlProvider.m3u8Url})},t.prototype.sourceChange=function(e){throw new Error("Method not implemented.")},t.prototype.getVideoAndAudioCodecs=function(){var e=this.player.getQuality().codecs.split(",")
return 2==e.length?{videoCodec:e[0],audioCodec:e[1]}:{}},t}(h.InternalAdapter)
t.AmazonIVSInternalAdapter=b},9946:function(e,t){"use strict"
var n
Object.defineProperty(t,"__esModule",{value:!0}),t.PAGE_LOAD_TYPE=void 0,function(e){e[e.FOREGROUND=1]="FOREGROUND",e[e.BACKGROUND=2]="BACKGROUND"}(n||(t.PAGE_LOAD_TYPE=n={}))},9991:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.getCodecInfo=t.getQualityLevelInfo=void 0
var i=n(5766),r=n(1820),o=n(5063)
t.getQualityLevelInfo=function(e){if(function(e){return"function"==typeof e.getBitrateInfoListFor&&"function"==typeof e.getQualityFor}(e)){var t=e.getBitrateInfoListFor("video")[e.getQualityFor("video")]
return(0,o.isNullish)(t)?null:{width:t.width,height:t.height,bitrate:t.bitrate}}var n=e.getCurrentRepresentationForType("video")
return(0,o.isNullish)(n)?null:{width:n.width,height:n.height,bitrate:(0,o.isNumber)(n.bitrateInKbit)?i.Converter.kiloBitsToBits(n.bitrateInKbit):0}},t.getCodecInfo=function(e){var t,n,i,o,a=new RegExp(/codecs="(.*)"/)
try{var s=null===(t=e.getCurrentTrackFor("video"))||void 0===t?void 0:t.codec;(0,r.isValidString)(s)&&!(0,r.isBlank)(s)&&(i=null==(c=a.exec(s))?void 0:c[1])}catch(e){i=void 0}try{var c,l=null===(n=e.getCurrentTrackFor("audio"))||void 0===n?void 0:n.codec;(0,r.isValidString)(l)&&!(0,r.isBlank)(l)&&(o=null==(c=a.exec(l))?void 0:c[1])}catch(e){o=void 0}return{videoCodec:i,audioCodec:o}}},9999:function(e,t,n){"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.DashjsAdapter=void 0
var i=n(4350),r=n(8331),o=n(1916),a=n(2108),s=n(4926),c=n(236),l=function(){function e(e,t,n){if((0,a.hasPlayerAlreadyBeenAugmented)(t))o.logger.errorMessageToUser("Bitmovin Analytics is already hooked up to this player instance")
else{(0,a.markPlayerInstanceAsAugmented)(t)
var s=(0,r.sanitizeAnalyticsConfig)(e);(0,r.guardAgainstDuplicatedUserId)(s),this.internalAdapter=new c.DashjsInternalAdapter(t,n),this.analytics=i.Analytics.create(s,this.internalAdapter)}}return Object.defineProperty(e.prototype,"version",{get:function(){return s.VERSION},enumerable:!1,configurable:!0}),e.prototype.getCurrentImpressionId=function(){if((0,a.isDefined)(this.analytics))return this.analytics.getCurrentImpressionId()},e.prototype.getUserId=function(){if((0,a.isDefined)(this.analytics))return this.analytics.getUserId()},e.prototype.setCustomData=function(e){(0,a.isDefined)(this.internalAdapter)&&this.internalAdapter.setCustomData(e)},e.prototype.setCustomDataOnce=function(e){(0,a.isDefined)(this.analytics)&&this.analytics.setCustomDataOnce(e)},e.prototype.sourceChange=function(e){(0,a.isDefined)(this.analytics)&&this.analytics.sourceChange(e)},e.version=s.VERSION,e}()
t.DashjsAdapter=l}},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 function(){"use strict"
var e=i
Object.defineProperty(e,"__esModule",{value:!0}),e.PlayerModule=e.BitmovinPwxAnalyticsPackage=e.adapters=e.VideojsAdapter=e.ShakaAdapter=e.HlsAdapter=e.HTMLVideoElementAdapter=e.DashjsAdapter=e.CAFv3Adapter=e.Bitmovin8Adapter=e.AmazonIVSAdapter=e.CdnProviders=e.Players=e.version=void 0
var t=n(3703)
Object.defineProperty(e,"AmazonIVSAdapter",{enumerable:!0,get:function(){return t.AmazonIVSAdapter}})
var r=n(4679)
Object.defineProperty(e,"Bitmovin8Adapter",{enumerable:!0,get:function(){return r.Bitmovin8Adapter}})
var o=n(681)
Object.defineProperty(e,"PlayerModule",{enumerable:!0,get:function(){return o.PlayerModule}})
var a=n(2506)
Object.defineProperty(e,"BitmovinPwxAnalyticsPackage",{enumerable:!0,get:function(){return a.BitmovinPwxAnalyticsPackage}})
var s=n(5127)
Object.defineProperty(e,"CAFv3Adapter",{enumerable:!0,get:function(){return s.CAFv3Adapter}})
var c=n(9999)
Object.defineProperty(e,"DashjsAdapter",{enumerable:!0,get:function(){return c.DashjsAdapter}})
var l=n(9566)
Object.defineProperty(e,"HlsAdapter",{enumerable:!0,get:function(){return l.HlsAdapter}})
var u=n(701)
Object.defineProperty(e,"HTMLVideoElementAdapter",{enumerable:!0,get:function(){return u.HTMLVideoElementAdapter}})
var d=n(2063)
Object.defineProperty(e,"ShakaAdapter",{enumerable:!0,get:function(){return d.ShakaAdapter}})
var f=n(4179)
Object.defineProperty(e,"VideojsAdapter",{enumerable:!0,get:function(){return f.VideojsAdapter}})
var p=n(4355)
Object.defineProperty(e,"CdnProviders",{enumerable:!0,get:function(){return p.CdnProvider}})
var h=n(556)
Object.defineProperty(e,"Players",{enumerable:!0,get:function(){return h.Player}})
var g=n(4926)
Object.defineProperty(e,"version",{enumerable:!0,get:function(){return g.VERSION}}),e.adapters={AmazonIVSAdapter:t.AmazonIVSAdapter,Bitmovin8Adapter:r.Bitmovin8Adapter,CAFv3Adapter:s.CAFv3Adapter,DashjsAdapter:c.DashjsAdapter,HTMLVideoElementAdapter:u.HTMLVideoElementAdapter,HlsAdapter:l.HlsAdapter,ShakaAdapter:d.ShakaAdapter,VideojsAdapter:f.VideojsAdapter},e.default={PlayerModule:o.PlayerModule}}(),i}()},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,t.canBeUsed=k,t.cleanOldMessages=g,t.close=b,t.create=m,t.createDatabase=u,t.default=void 0,t.getAllMessages=function(e){var t=e.transaction(c).objectStore(c),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=l,t.getMessagesHigherThan=f,t.getOldMessages=h,t.microSeconds=void 0,t.onMessage=_,t.postMessage=E,t.removeMessageById=p,t.type=void 0,t.writeMessage=d
var i=n(79774),r=n(63583),o=n(67229),a=i.microSeconds
t.microSeconds=a
var s="pubkey.broadcast-channel-0-",c="messages"
function l(){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 u(e){var t=l(),n=s+e,i=t.open(n,1)
return i.onupgradeneeded=function(e){e.target.result.createObjectStore(c,{keyPath:"id",autoIncrement:!0})},new Promise((function(e,t){i.onerror=function(e){return t(e)},i.onsuccess=function(){e(i.result)}}))}function d(e,t,n){var i={uuid:t,time:(new Date).getTime(),data:n},r=e.transaction([c],"readwrite")
return new Promise((function(e,t){r.oncomplete=function(){return e()},r.onerror=function(e){return t(e)},r.objectStore(c).add(i)}))}function f(e,t){var n=e.transaction(c).objectStore(c),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 p(e,t){var n=e.transaction([c],"readwrite").objectStore(c).delete(t)
return new Promise((function(e){n.onsuccess=function(){return e()}}))}function h(e,t){var n=(new Date).getTime()-t,i=e.transaction(c).objectStore(c),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 g(e,t){return h(e,t).then((function(t){return Promise.all(t.map((function(t){return p(e,t.id)})))}))}function m(e,t){return t=(0,o.fillOptionsWithDefaults)(t),u(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()},v(o),o}))}function v(e){e.closed||y(e).then((function(){return(0,i.sleep)(e.options.idb.fallbackInterval)})).then((function(){return v(e)}))}function y(e){return e.closed?i.PROMISE_RESOLVED_VOID:e.messagesCallback?f(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 b(e){e.closed=!0,e.db.close()}function E(e,t){return e.writeBlockPromise=e.writeBlockPromise.then((function(){return d(e.db,e.uuid,t)})).then((function(){0===(0,i.randomInt)(0,10)&&g(e.db,e.options.idb.ttl)})),e.writeBlockPromise}function _(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,y(e)}function k(){return!i.isNode&&!!l()}function T(e){return 2*e.idb.fallbackInterval}t.type="idb"
var S={create:m,close:b,onMessage:_,postMessage:E,canBeUsed:k,type:"idb",averageResponseTime:T,microSeconds:a}
t.default=S},1095:(e,t,n)=>{"use strict"
Object.defineProperty(t,"__esModule",{value:!0}),t.addStorageEventListener=f,t.averageResponseTime=y,t.canBeUsed=v,t.close=g,t.create=h,t.default=void 0,t.getLocalStorage=l,t.microSeconds=void 0,t.onMessage=m,t.postMessage=d,t.removeStorageEventListener=p,t.storageKey=u,t.type=void 0
var i=n(63583),r=n(67229),o=n(79774),a=o.microSeconds
t.microSeconds=a
var s="pubkey.broadcastChannel-",c="localstorage"
function l(){var e
if("undefined"==typeof window)return null
try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch(e){}return e}function u(e){return s+e}function d(e,t){return new Promise((function(n){(0,o.sleep)().then((function(){var i=u(e.channelName),r={token:(0,o.randomToken)(),time:(new Date).getTime(),data:t,uuid:e.uuid},a=JSON.stringify(r)
l().setItem(i,a)
var s=document.createEvent("Event")
s.initEvent("storage",!0,!0),s.key=i,s.newValue=a,window.dispatchEvent(s),n()}))}))}function f(e,t){var n=u(e),i=function(e){e.key===n&&t(JSON.parse(e.newValue))}
return window.addEventListener("storage",i),i}function p(e){window.removeEventListener("storage",e)}function h(e,t){if(t=(0,r.fillOptionsWithDefaults)(t),!v())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=f(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 g(e){p(e.listener)}function m(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function v(){if(o.isNode)return!1
var e=l()
if(!e)return!1
try{var t="__broadcastchannel_check"
e.setItem(t,"works"),e.removeItem(t)}catch(e){return!1}return!0}function y(){var e=navigator.userAgent.toLowerCase()
return e.includes("safari")&&!e.includes("chrome")?240:120}t.type=c
var b={create:h,close:g,onMessage:m,postMessage:d,canBeUsed:v,type:c,averageResponseTime:y,microSeconds:a}
t.default=b},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},55578:(e,t,n)=>{"use strict"
function i(e,t,n,i,r){var o={}
return Object.keys(i).forEach((function(e){o[e]=i[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,i){return i(e,t,n)||n}),o),r&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(r):void 0,o.initializer=void 0),void 0===o.initializer?(Object.defineProperty(e,t,o),null):o}function r(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}n.d(t,{_:()=>i,a:()=>r,b:()=>o})},78104:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{default:()=>C})
var i=n(55578),r=n(25831),o=n.n(r),a=n(37219)
function s(e,t){return function(n){return n.key===e||n.keyCode===t}}const c=s("Enter",13),l=s("Escape",27),u=s("Space",32),d=s("ArrowLeft",37),f=s("ArrowUp",38),p=s("ArrowRight",39),h=s("ArrowDown",40)
var g=n(54362)
const m={ACTIVATE(e){let{a11yItemName:t,index:n,maxLength:i,direction:r}=e,o=`${t} at position, ${n+1} of ${i}, is activated to be repositioned.`
return o+="y"===r?"Press up and down keys to change position,":"Press left and right keys to change position,",o+=" Space to confirm new position, Escape to cancel.",o},MOVE(e){let{a11yItemName:t,index:n,maxLength:i,delta:r}=e
return`${t} is moved to position, ${n+1+r} of ${i}. Press Space to confirm new position, Escape to cancel.`},CONFIRM(e){let{a11yItemName:t}=e
return`${t} is successfully repositioned.`},CANCEL(e){let{a11yItemName:t}=e
return`Cancelling ${t} repositioning`}}
var v,y,b,E,_=n(98773),k=n(88574),T=n(19341)
const S=k.service??k.inject,A={}
let C=(v=S("ember-sortable-internal-state"),y=(0,a.computed)("direction","sortedItems"),b=class extends(o()){get disabled(){return this.named.disabled||!1}get handleVisualClass(){return this.named.handleVisualClass||A}get a11yAnnouncementConfig(){return this.named.a11yAnnouncementConfig||m}get itemVisualClass(){return this.named.itemVisualClass||"is-activated"}get a11yItemName(){return this.named.a11yItemName||"item"}focusOut(){this.isRetainingFocus||this._isElementWithinHandle(document.activeElement)||this.cancelKeyboardSelection()}keyDown(e){if(!this.isKeyDownEnabled)return
const t=this.isKeyboardReorderModeEnabled
if(!t&&(c(e)||u(e))){const t=this._selectedItem
if(!t)return
return this._prepareKeyboardReorderMode(),this._announceAction(g.jk.ACTIVATE),this._updateItemVisualIndicators(t,!0),this._updateHandleVisualIndicators(t,!0),this.isRetainingFocus=!0,(0,_.scheduleOnce)("render",this,(()=>{this.element.focus(),this.isRetainingFocus=!1})),void e.preventDefault()}t&&(this._handleKeyboardReorder(e),e.preventDefault())}_isElementWithinHandle(e){return!(null==e||!e.closest("[data-sortable-handle]"))}_move(e,t){const n=this.direction,i=this.sortedItems,r=i[e],o=i[t]
if(!o||!r)return
let s
const c="y"===n?"height":"width"
if(t>e)if("grid"===n){const e=r.x,t=r.y
r.x=o.x+(o.width-r.width),r.y=o.y+(o.height-r.height),o.x=e,o.y=t}else s=r[n],(0,a.set)(r,n,o[n]+(o[c]-r[c])),(0,a.set)(o,n,s)
else if("grid"===n){const e=o.x,t=o.y
o.x=r.x+(r.width-o.width),o.y=r.y+(r.height-o.height),r.x=e,r.y=t}else s=o[n],(0,a.set)(o,n,r[n]+(r[c]-o[c])),(0,a.set)(r,n,s)}_handleKeyboardReorder(e){const t=this.direction,n=this._selectedItem
if(n)if("y"===t&&h(e))this.moveItem(n,1)
else if("y"===t&&f(e))this.moveItem(n,-1)
else if("x"!==t&&"grid"!==t||!d(e))if("x"!==t&&"grid"!==t||!p(e)){if(c(e)||u(e)){const e=n.element
this._announceAction(g.jk.CONFIRM),this.confirmKeyboardSelection(),this.isRetainingFocus=!0,(0,_.scheduleOnce)("render",this,(()=>this._focusItem(e)))}else if(l(e)){const e=n.element
this._announceAction(g.jk.CANCEL),this.cancelKeyboardSelection(),this.isRetainingFocus=!0,(0,_.scheduleOnce)("render",this,(()=>{const t=this.moves
if(t&&t[0]){var n
const e=null===(n=this.sortedItems[t[0][1]])||void 0===n?void 0:n.element
e&&this._focusItem(e)}else this._focusItem(e)
this.isRetainingFocus=!1}))}}else this.moveItem(n,1)
else this.moveItem(n,-1)}moveItem(e,t){const n=this.sortedItems,i=this.moves,r=n.indexOf(e),o=r+t
o<0||o>=n.length||(this._announceAction(g.jk.MOVE,t),(0,_.scheduleOnce)("render",this,(()=>{this._move(r,o),this._updateHandleVisualIndicators(e,!0),i.push([r,o])})))}cancelKeyboardSelection(){const e=this._selectedItem
if(!e)return
this._disableKeyboardReorderMode()
const t=this.moves
for(;t.length>0;){const e=t.pop(),n=e?e[1]:0,i=e?e[0]:0
this._move(n,i)}this._tearDownA11yApplicationContainer(),this._updateItemVisualIndicators(e,!1),this._updateHandleVisualIndicators(e,!1),this._resetItemSelection()}confirmKeyboardSelection(){const e=this._selectedItem
e&&(this.moves=[],this._disableKeyboardReorderMode(),this._tearDownA11yApplicationContainer(),(0,a.set)(e,"wasDropped",!0),this.commit(),this._updateItemVisualIndicators(e,!1),this._updateHandleVisualIndicators(e,!1),this._resetItemSelection())}_announceAction(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0
const n=this.a11yAnnouncementConfig,i=this.a11yItemName
if(!i||!(e in n))return
const r=this.sortedItems,o=this._selectedItem
if(!o)return
const a=r.indexOf(o),s=this.announcer
if(!s)return
const c={a11yItemName:i,index:a,maxLength:r.length,direction:this.direction,delta:t},l=n[e](c)
s.textContent=l,(0,_.later)((()=>{s.textContent=""}),1e3)}_resetItemSelection(){this._selectedItem=null}_updateItemVisualIndicators(e,t){const n=this.itemVisualClass
n&&e&&(t?e.element.classList.add(n):e.element.classList.remove(n))}_updateHandleVisualIndicators(e,t){const n=this.handleVisualClass
if(n===A||!e)return
const i=this.sortedItems,r=this.direction,o=i.indexOf(e),a=e.element.querySelector("[data-sortable-handle")||e.element,s="y"===r?["UP","DOWN"]:["LEFT","RIGHT"]
s.forEach((e=>{a.classList.remove(n[e]??"")})),t&&(o>0&&s[0]&&a.classList.add(n[s[0]]??""),o<i.length-1&&s[1]&&a.classList.add(n[s[1]]??""))}_focusItem(e){const t=e.querySelector("[data-sortable-handle]")
t?t.focus():e.focus()}_enableKeyboardReorderMode(){this.isKeyboardReorderModeEnabled=!0}_disableKeyboardReorderMode(){this.isKeyboardReorderModeEnabled=!1}_setupA11yApplicationContainer(){this.element.setAttribute("role","application"),this.element.tabIndex=-1}_tearDownA11yApplicationContainer(){this.element.removeAttribute("role"),this.element.removeAttribute("tabIndex")}_prepareKeyboardReorderMode(){this._enableKeyboardReorderMode(),this._setupA11yApplicationContainer()}get direction(){return this.named.direction||"y"}get onChange(){return this.named.onChange}get groupName(){return this.named.groupName||"_EmberSortableGroup"}get items(){return this._groupDef.items}set(e){this._groupDef.items=e}get firstItemPosition(){const e=this.sortedItems[0]
return e?{x:e.x-e.spacing,y:e.y-e.spacing}:{x:0,y:0}}get sortedItems(){const e=this.direction,t=getComputedStyle(this.element),n=parseFloat(t.width)
return this.items.sort(((t,i)=>{if("grid"===e){const{ax:e,ay:r,bx:o,by:a}=this._calculateGridPosition(t,i,n)
return r==a?e-o:r-a}return t[e]-i[e]}))}activateKeyDown(e){this._selectedItem=e,this.isKeyDownEnabled=!0}deactivateKeyDown(){this.isKeyDownEnabled=!1}registerGroup(e){this._group=e}deregisterGroup(e){this._group===e&&(this._group=null)}prepare(){this._firstItemPosition=this.firstItemPosition}update(e){e||(e=this.sortedItems)
let t=this._firstItemPosition
void 0===t&&(t=this.firstItemPosition)
const n=this.direction
let i=0,r=0,o=0,s=0
if("grid"===n){i=t.x,o=t.y
const e=getComputedStyle(this.element)
r=i+parseFloat(e.width)}else i=t[n]
e.forEach((e=>{"grid"===n&&i+e.width>r&&(o+=s,i=t.x,s=0),(0,T.isDestroyed)(e)||e.isDragging||("grid"===n?(e.x=i,e.y=o):(0,a.set)(e,n,i)),e.isBusy&&(i+=2*e.spacing),"grid"===n&&(e.height>s&&(s=e.height),i+=e.width),"x"===n&&(i+=e.width),"y"===n&&(i+=e.height)}))}commit(){const e=this.sortedItems,t=e.map((e=>e.model)),n=e.find((e=>e.wasDropped))
let i
n&&(n.wasDropped=!1,i=n.model),this._updateItems(),this._onChange(t,i)}_onChange(e,t){this.onChange&&this.onChange(e,t)}_updateItems(){const e=this.sortedItems
delete this._firstItemPosition,(0,_.schedule)("render",(()=>{e.forEach((e=>e.freeze()))})),(0,_.schedule)("afterRender",(()=>{e.forEach((e=>e.reset()))})),(0,_.next)((()=>{(0,_.schedule)("render",(()=>{e.forEach((e=>e.thaw()))}))}))}_createAnnouncer(){const e=document.createElement("span")
return e.setAttribute("aria-live","polite"),e.classList.add("visually-hidden"),e}_calculateGridPosition(e,t,n){var i,r
const o=(null===(i=e.element.parentNode)||void 0===i?void 0:i.offsetTop)??0,a=(null===(r=e.element.parentNode)||void 0===r?void 0:r.offsetLeft)??0,s={ax:e.x,ay:e.y,bx:t.x,by:t.y}
if(e.isDragging){const i=this._calculateGridDragItemPos(s.ax,s.ay,s.bx,s.by,t.width,t.height,e.moveDirection,o,a,n)
s.ax=i.x,s.ay=i.y}else if(t.isDragging){const i=this._calculateGridDragItemPos(s.bx,s.by,s.ax,s.ay,e.width,e.height,t.moveDirection,o,a,n)
s.bx=i.x,s.by=i.y}return e.isDragging&&s.ax<=0&&(s.ax=0,s.bx=1),t.isDragging&&s.bx<=0&&(s.bx=0,s.ax=1),s}_calculateGridDragItemPos(e,t,n,i,r,o,a,s,c,l){const u=r/4,d=e
if(a.left&&(e-=u),a.right){e+=u
const t=(Math.floor(l/r)-1)*r+c
n>d&&e+r>t-1&&(e=t-1)}t<s&&(t=s)
const f=o/4
return(a.top&&t-o+f<=i&&t>=i||a.top&&t>=i-f&&t<=i)&&(t=i),(a.bottom&&t<=i+o-f&&t>=i||a.bottom&&t>i-f&&t<=i)&&(t=i),{x:e,y:t}}addEventListener(){this.element.addEventListener("keydown",this.keyDown),this.element.addEventListener("focusout",this.focusOut)}removeEventListener(){this.element.removeEventListener("keydown",this.keyDown),this.element.removeEventListener("focusout",this.focusOut)}constructor(e,t){super(e,t),(0,i.a)(this,"_selectedItem",null),(0,i.a)(this,"_group",null),(0,i.a)(this,"_firstItemPosition",void 0),(0,i.a)(this,"_groupDef",void 0),(0,i.a)(this,"move",null),(0,i.a)(this,"moves",[]),(0,i.a)(this,"isKeyboardReorderModeEnabled",!1),(0,i.a)(this,"isKeyDownEnabled",!1),(0,i.a)(this,"isRetainingFocus",!1),(0,i.b)(this,"sortableService",E,this),(0,i.a)(this,"announcer",null),(0,i.a)(this,"element",void 0),(0,i.a)(this,"didSetup",!1),(0,i.a)(this,"named",void 0),(0,T.registerDestructor)(this,I)}modify(e,t,n){this.element=e,this.named=n,this.removeEventListener(),this.didSetup||(this._groupDef=this.sortableService.fetchGroup(this.groupName),this.announcer=this._createAnnouncer(),this.element.insertAdjacentElement("afterend",this.announcer),this.sortableService.registerGroup(this.groupName,this),this.didSetup=!0),this.disabled||this.addEventListener()}},(0,i._)(b.prototype,"focusOut",[a.action],Object.getOwnPropertyDescriptor(b.prototype,"focusOut"),b.prototype),(0,i._)(b.prototype,"keyDown",[a.action],Object.getOwnPropertyDescriptor(b.prototype,"keyDown"),b.prototype),(0,i._)(b.prototype,"cancelKeyboardSelection",[a.action],Object.getOwnPropertyDescriptor(b.prototype,"cancelKeyboardSelection"),b.prototype),E=(0,i._)(b.prototype,"sortableService",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i._)(b.prototype,"firstItemPosition",[y],Object.getOwnPropertyDescriptor(b.prototype,"firstItemPosition"),b.prototype),(0,i._)(b.prototype,"activateKeyDown",[a.action],Object.getOwnPropertyDescriptor(b.prototype,"activateKeyDown"),b.prototype),(0,i._)(b.prototype,"deactivateKeyDown",[a.action],Object.getOwnPropertyDescriptor(b.prototype,"deactivateKeyDown"),b.prototype),(0,i._)(b.prototype,"registerGroup",[a.action],Object.getOwnPropertyDescriptor(b.prototype,"registerGroup"),b.prototype),(0,i._)(b.prototype,"deregisterGroup",[a.action],Object.getOwnPropertyDescriptor(b.prototype,"deregisterGroup"),b.prototype),(0,i._)(b.prototype,"prepare",[a.action],Object.getOwnPropertyDescriptor(b.prototype,"prepare"),b.prototype),(0,i._)(b.prototype,"update",[a.action],Object.getOwnPropertyDescriptor(b.prototype,"update"),b.prototype),(0,i._)(b.prototype,"commit",[a.action],Object.getOwnPropertyDescriptor(b.prototype,"commit"),b.prototype),(0,i._)(b.prototype,"_onChange",[a.action],Object.getOwnPropertyDescriptor(b.prototype,"_onChange"),b.prototype),(0,i._)(b.prototype,"_createAnnouncer",[a.action],Object.getOwnPropertyDescriptor(b.prototype,"_createAnnouncer"),b.prototype),b)
function I(e){var t
null!==(t=e.announcer)&&void 0!==t&&t.parentNode&&e.announcer.parentNode.removeChild(e.announcer),e.removeEventListener(),e.sortableService.deregisterGroup(e.groupName)}},6693:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{default:()=>a})
var i=n(55578),r=n(25831),o=n.n(r)
class a extends(o()){constructor(){super(...arguments),(0,i.a)(this,"didSetup",!1)}modify(e){this.didSetup||(e.dataset.sortableHandle="true",e.setAttribute("tabIndex","0"),e.setAttribute("role","button"),this.didSetup=!0)}}},62042:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{default:()=>Ee})
var i=n(55578),r=n(25831),o=n.n(r)
function a(e){var t=e._promiseCallbacks
return t||(t=e._promiseCallbacks={}),t}var s={mixin:function(e){return e.on=this.on,e.off=this.off,e.trigger=this.trigger,e._promiseCallbacks=void 0,e},on:function(e,t){if("function"!=typeof t)throw new TypeError("Callback must be a function")
var n=a(this),i=n[e]
i||(i=n[e]=[]),-1===i.indexOf(t)&&i.push(t)},off:function(e,t){var n=a(this)
if(t){var i=n[e],r=i.indexOf(t);-1!==r&&i.splice(r,1)}else n[e]=[]},trigger:function(e,t,n){var i=a(this)[e]
if(i)for(var r=0;r<i.length;r++)(0,i[r])(t,n)}},c={instrument:!1}
s.mixin(c)
var l=[]
function u(e,t,n){1===l.push({name:e,payload:{key:t._guidKey,id:t._id,eventName:e,detail:t._result,childId:n&&n._id,label:t._label,timeStamp:Date.now(),error:c["instrument-with-stack"]?new Error(t._label):null}})&&setTimeout((function(){for(var e=0;e<l.length;e++){var t=l[e],n=t.payload
n.guid=n.key+n.id,n.childGuid=n.key+n.childId,n.error&&(n.stack=n.error.stack),c.trigger(t.name,t.payload)}l.length=0}),50)}function d(e,t){if(e&&"object"==typeof e&&e.constructor===this)return e
var n=new this(f,t)
return k(n,e),n}function f(){}var p=void 0,h=1,g=2,m={error:null}
function v(e){try{return e.then}catch(e){return m.error=e,m}}var y=void 0
function b(){try{var e=y
return y=null,e.apply(this,arguments)}catch(e){return m.error=e,m}}function E(e){return y=e,b}function _(e,t,n){if(t.constructor===e.constructor&&n===x&&e.constructor.resolve===d)!function(e,t){t._state===h?S(e,t._result):t._state===g?(t._onError=null,A(e,t._result)):C(t,void 0,(function(n){t===n?S(e,n):k(e,n)}),(function(t){return A(e,t)}))}(e,t)
else if(n===m){var i=m.error
m.error=null,A(e,i)}else"function"==typeof n?function(e,t,n){c.async((function(e){var i=!1,r=E(n).call(t,(function(n){i||(i=!0,t===n?S(e,n):k(e,n))}),(function(t){i||(i=!0,A(e,t))}),"Settle: "+(e._label||" unknown promise"))
if(!i&&r===m){i=!0
var o=m.error
m.error=null,A(e,o)}}),e)}(e,t,n):S(e,t)}function k(e,t){var n,i
e===t?S(e,t):(i=typeof(n=t),null===n||"object"!==i&&"function"!==i?S(e,t):_(e,t,v(t)))}function T(e){e._onError&&e._onError(e._result),I(e)}function S(e,t){e._state===p&&(e._result=t,e._state=h,0===e._subscribers.length?c.instrument&&u("fulfilled",e):c.async(I,e))}function A(e,t){e._state===p&&(e._state=g,e._result=t,c.async(T,e))}function C(e,t,n,i){var r=e._subscribers,o=r.length
e._onError=null,r[o]=t,r[o+h]=n,r[o+g]=i,0===o&&e._state&&c.async(I,e)}function I(e){var t=e._subscribers,n=e._state
if(c.instrument&&u(n===h?"fulfilled":"rejected",e),0!==t.length){for(var i=void 0,r=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a],r=t[a+n],i?w(n,i,r,o):r(o)
e._subscribers.length=0}}function w(e,t,n,i){var r,o="function"==typeof n
if(r=o?E(n)(i):i,t._state!==p);else if(r===t)A(t,new TypeError("A promises callback cannot return that same promise."))
else if(r===m){var a=m.error
m.error=null,A(t,a)}else o?k(t,r):e===h?S(t,r):e===g&&A(t,r)}function x(e,t,n){var i=this,r=i._state
if(r===h&&!e||r===g&&!t)return c.instrument&&u("chained",i,i),i
i._onError=null
var o=new i.constructor(f,n),a=i._result
if(c.instrument&&u("chained",i,o),r===p)C(i,o,e,t)
else{var s=r===h?e:t
c.async((function(){return w(r,o,s,a)}))}return o}var R=function(){function e(e,t,n,i){this._instanceConstructor=e,this.promise=new e(f,i),this._abortOnReject=n,this._isUsingOwnPromise=e===P,this._isUsingOwnResolve=e.resolve===d,this._init.apply(this,arguments)}return e.prototype._init=function(e,t){var n=t.length||0
this.length=n,this._remaining=n,this._result=new Array(n),this._enumerate(t)},e.prototype._enumerate=function(e){for(var t=this.length,n=this.promise,i=0;n._state===p&&i<t;i++)this._eachEntry(e[i],i,!0)
this._checkFullfillment()},e.prototype._checkFullfillment=function(){if(0===this._remaining){var e=this._result
S(this.promise,e),this._result=null}},e.prototype._settleMaybeThenable=function(e,t,n){var i=this._instanceConstructor
if(this._isUsingOwnResolve){var r=v(e)
if(r===x&&e._state!==p)e._onError=null,this._settledAt(e._state,t,e._result,n)
else if("function"!=typeof r)this._settledAt(h,t,e,n)
else if(this._isUsingOwnPromise){var o=new i(f)
_(o,e,r),this._willSettleAt(o,t,n)}else this._willSettleAt(new i((function(t){return t(e)})),t,n)}else this._willSettleAt(i.resolve(e),t,n)},e.prototype._eachEntry=function(e,t,n){null!==e&&"object"==typeof e?this._settleMaybeThenable(e,t,n):this._setResultAt(h,t,e,n)},e.prototype._settledAt=function(e,t,n,i){var r=this.promise
r._state===p&&(this._abortOnReject&&e===g?A(r,n):(this._setResultAt(e,t,n,i),this._checkFullfillment()))},e.prototype._setResultAt=function(e,t,n,i){this._remaining--,this._result[t]=n},e.prototype._willSettleAt=function(e,t,n){var i=this
C(e,void 0,(function(e){return i._settledAt(h,t,e,n)}),(function(e){return i._settledAt(g,t,e,n)}))},e}()
function N(e,t,n){this._remaining--,this._result[t]=e===h?{state:"fulfilled",value:n}:{state:"rejected",reason:n}}var O="rsvp_"+Date.now()+"-",D=0,P=function(){function e(t,n){this._id=D++,this._label=n,this._state=void 0,this._result=void 0,this._subscribers=[],c.instrument&&u("created",this),f!==t&&("function"!=typeof t&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof e?function(e,t){var n=!1
try{t((function(t){n||(n=!0,k(e,t))}),(function(t){n||(n=!0,A(e,t))}))}catch(t){A(e,t)}}(this,t):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return e.prototype._onError=function(e){var t=this
c.after((function(){t._onError&&c.trigger("error",e,t._label)}))},e.prototype.catch=function(e,t){return this.then(void 0,e,t)},e.prototype.finally=function(e,t){var n=this,i=n.constructor
return"function"==typeof e?n.then((function(t){return i.resolve(e()).then((function(){return t}))}),(function(t){return i.resolve(e()).then((function(){throw t}))})):n.then(e,e)},e}()
P.cast=d,P.all=function(e,t){return Array.isArray(e)?new R(this,e,!0,t).promise:this.reject(new TypeError("Promise.all must be called with an array"),t)},P.race=function(e,t){var n=new this(f,t)
if(!Array.isArray(e))return A(n,new TypeError("Promise.race must be called with an array")),n
for(var i=0;n._state===p&&i<e.length;i++)C(this.resolve(e[i]),void 0,(function(e){return k(n,e)}),(function(e){return A(n,e)}))
return n},P.resolve=d,P.reject=function(e,t){var n=new this(f,t)
return A(n,e),n},P.prototype._guidKey=O,P.prototype.then=x,function(e){function t(t,n,i){return function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,t,n,!1,i))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(R).prototype._setResultAt=N,function(e){function t(t,n,i){return function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,t,n,!1,i))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(function(e){function t(t,n){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments[3]
return function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,t,n,i,r))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._init=function(e,t){this._result={},this._enumerate(t)},t.prototype._enumerate=function(e){var t=Object.keys(e),n=t.length,i=this.promise
this._remaining=n
for(var r=void 0,o=void 0,a=0;i._state===p&&a<n;a++)o=e[r=t[a]],this._eachEntry(o,r,!0)
this._checkFullfillment()},t}(R)).prototype._setResultAt=N
var M=function(e){function t(t,n,i,r){return function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,t,n,!0,r,i))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._init=function(e,t,n,i,r){var o=t.length||0
this.length=o,this._remaining=o,this._result=new Array(o),this._mapFn=r,this._enumerate(t)},t.prototype._setResultAt=function(e,t,n,i){if(i){var r=E(this._mapFn)(n,t)
r===m?this._settledAt(g,t,r.error,!1):this._eachEntry(r,t,!1)}else this._remaining--,this._result[t]=n},t}(R),j={}
!function(e){function t(){return function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)})(t,e),t.prototype._checkFullfillment=function(){if(0===this._remaining&&null!==this._result){var e=this._result.filter((function(e){return e!==j}))
S(this.promise,e),this._result=null}},t.prototype._setResultAt=function(e,t,n,i){if(i){this._result[t]=n
var r=E(this._mapFn)(n,t)
r===m?this._settledAt(g,t,r.error,!1):this._eachEntry(r,t,!1)}else this._remaining--,n||(this._result[t]=j)}}(M)
var L=0,U=void 0,F="undefined"!=typeof window?window:void 0,B=F||{},G=B.MutationObserver||B.WebKitMutationObserver,H="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),V="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel
function q(){return function(){return setTimeout(W,1)}}var K=new Array(1e3)
function W(){for(var e=0;e<L;e+=2)(0,K[e])(K[e+1]),K[e]=void 0,K[e+1]=void 0
L=0}var Y,z,X,Q,J,$,Z=void 0
function ee(){c.on.apply(c,arguments)}if(H?(J=process.nextTick,$=process.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/),Array.isArray($)&&"0"===$[1]&&"10"===$[2]&&(J=setImmediate),Z=function(){return J(W)}):G?(z=0,X=new G(W),Q=document.createTextNode(""),X.observe(Q,{characterData:!0}),Z=function(){return Q.data=z=++z%2}):V?((Y=new MessageChannel).port1.onmessage=W,Z=function(){return Y.port2.postMessage(0)}):Z=void 0===F?function(){try{var e=Function("return this")().require("vertx")
return void 0!==(U=e.runOnLoop||e.runOnContext)?function(){U(W)}:q()}catch(e){return q()}}():q(),c.async=function(e,t){K[L]=e,K[L+1]=t,2===(L+=2)&&Z()},c.after=function(e){return setTimeout(e,0)},"undefined"!=typeof window&&"object"==typeof window.__PROMISE_INSTRUMENTATION__){var te=window.__PROMISE_INSTRUMENTATION__
for(var ne in function(e,t){if(2!==arguments.length)return c[e]
c[e]=t}("instrument",!0),te)te.hasOwnProperty(ne)&&ee(ne,te[ne])}var ie=n(37219),re=n(54362),oe=n(98773),ae=n(51495)
function se(e){const t=e.changedTouches,n=t&&t[0]
return n?n.screenY:e.clientY}function ce(e){const t=e.changedTouches,n=t&&t[0]
return n?n.screenX:e.clientX}function le(e){const t=getComputedStyle(e).borderSpacing,[n,i]=t.split(" "),r=void 0===i?n:i
return{horizontal:parseFloat(n??""),vertical:parseFloat(r??"")}}var ue,de,fe,pe=n(7456),he=n(88574),ge=n(3353),me=n(19341)
class ve{constructor(e){if((0,i.a)(this,"element",void 0),(0,i.a)(this,"isWindow",void 0),(0,i.a)(this,"top",void 0),(0,i.a)(this,"left",void 0),(0,i.a)(this,"width",void 0),(0,i.a)(this,"height",void 0),(0,i.a)(this,"scrollWidth",void 0),(0,i.a)(this,"scrollHeight",void 0),(0,i.a)(this,"maxScrollTop",void 0),(0,i.a)(this,"maxScrollLeft",void 0),this.isWindow=e===document,this.element=this.isWindow?document.documentElement:e,this.isWindow)this.top=0,this.left=0,this.width=document.documentElement.clientWidth,this.height=document.documentElement.clientHeight
else{const{top:e,left:t}=this.element.getBoundingClientRect()
this.top=e,this.left=t,this.width=parseFloat(getComputedStyle(this.element).width),this.height=parseFloat(getComputedStyle(this.element).height)}this.scrollWidth=this.element.scrollWidth,this.scrollHeight=this.element.scrollHeight,this.maxScrollTop=this.scrollHeight-this.height,this.maxScrollLeft=this.scrollWidth-this.width}get bottom(){return this.top+this.height}get right(){return this.left+this.width}scrollTop(e){return e?(e=Math.max(0,Math.min(this.maxScrollTop,e)),this.element.scrollTop=e,e):this.element.scrollTop}scrollLeft(e){return e?(e=Math.max(0,Math.min(this.maxScrollLeft,e)),this.element.scrollLeft=e,e):this.element.scrollLeft}}const ye=he.service??he.inject,be=(0,pe.buildWaiter)("sortable-item-waiter")
let Ee=(ue=ye("ember-sortable-internal-state"),de=class extends(o()){get sortableGroup(){return void 0===this._sortableGroup&&(this._sortableGroup=this.sortableService.fetchGroup(this.groupName),(0,ge.assert)(`No sortable group named ${this.groupName} found. Please check that the groups and items have the same groupName`,void 0!==this._sortableGroup)),this._sortableGroup.groupModifier}get model(){return this.named.model}get direction(){var e
return null===(e=this.sortableGroup)||void 0===e?void 0:e.direction}get groupDisabled(){var e
return null===(e=this.sortableGroup)||void 0===e?void 0:e.disabled}get groupName(){return this.named.groupName||"_EmberSortableGroup"}get updateInterval(){return this.named.updateInterval||125}get spacing(){return this.named.spacing||0}get isDisabled(){return(0,ge.deprecate)('"isDraggingDisabled" is deprecated.  Please migrate to "disabled" named argument',!("isDraggingDisabled"in this.named),{id:"ember-sortable.is-dragging-disabled",url:"https://github.com/adopted-ember-addons/ember-sortable#readme",until:"3.0.0",for:"ember-sortable",since:{available:"2.2.6",enabled:"2.2.6"}}),this.groupDisabled||this.named.disabled||this.named.isDraggingDisabled||!1}get handle(){return this.named.handle||"[data-sortable-handle]"}get distance(){return this.named.distance||0}get isDragging(){return this._isDragging}set isDragging(e){e?this.element.classList.add("is-dragging"):this.element.classList.remove("is-dragging"),this._isDragging=e}get moveDirection(){const e={left:!1,right:!1,top:!1,bottom:!1}
if(!this.isDragging)return e
const t=this._dragOriginX,n=this._dragOriginY
return t&&this._pageX&&t>this._pageX&&(e.left=!0),t&&this._pageX&&t<this._pageX&&(e.right=!0),n&&this._pageY&&n>this._pageY&&(e.top=!0),n&&this._pageY&&n<this._pageY&&(e.bottom=!0),e}get onDragStart(){return this.named.onDragStart||(e=>e)}get onDragStop(){return this.named.onDragStop||(e=>e)}get isDropping(){return this._isDropping}set isDropping(e){e?this.element.classList.add("is-dropping"):this.element.classList.remove("is-dropping"),this._isDropping=e}get isBusy(){return this.isDragging||this.isDropping}get disableCheckScrollBounds(){return void 0!==this.named.disableCheckScrollBounds&&this.named.disableCheckScrollBounds}mouseDown(e){1===e.which&&(e.ctrlKey||this._primeDrag(e))}keyDown(e){this.isDisabled||(this.setupHandleElement(),e.target===this.handleElement||e.target===this.element?this.sortableGroup.activateKeyDown(this):this.sortableGroup.deactivateKeyDown())}touchStart(e){this._primeDrag(e)}freeze(){const e=this.element
e&&(e.style.transition="none")}reset(){const e=this.element
e&&(delete this._y,delete this._x,e.style.transform="")}thaw(){const e=this.element
e&&(e.style.transition="")}_primeDrag(e){var t
if(this.isDisabled)return
if(this.handleElement&&(null===(t=e.target)||void 0===t||!t.closest(this.handle)))return
e.preventDefault(),e.stopPropagation(),this._prepareDragListener=(0,oe.bind)(this,this._prepareDrag,e),re.Sm.forEach((e=>window.addEventListener(e,this._prepareDragListener))),this._cancelStartDragListener=()=>{re.Sm.forEach((e=>window.removeEventListener(e,this._prepareDragListener)))}
const n=()=>{re.Fl.forEach((e=>window.removeEventListener(e,n))),this._cancelStartDragListener()}
re.Fl.forEach((e=>window.addEventListener(e,n)))}_prepareDrag(e,t){if(this.sortableGroup.sortedItems.some((e=>e.isBusy)))return
const n=this.distance,i=Math.abs(ce(e)-ce(t)),r=Math.abs(se(e)-se(t));(n<=i||n<=r)&&(re.Sm.forEach((e=>window.removeEventListener(e,this._prepareDragListener))),this._startDrag(e))}_startDrag(e){if(this.isBusy)return
const t=this._makeDragHandler(e),n=e=>(0,oe.throttle)(this,t,e,16,!1),i=()=>{re.Sm.forEach((e=>window.removeEventListener(e,n))),re.Fl.forEach((e=>window.removeEventListener(e,i))),(0,oe.run)((()=>{this._drop()}))}
re.Sm.forEach((e=>window.addEventListener(e,n))),re.Fl.forEach((e=>window.addEventListener(e,i))),this.sortableGroup.prepare(),(0,ie.set)(this,"isDragging",!0),this.onDragStart(this.model),this._scrollOnEdges(t)}_scrollOnEdges(e){const t=this.direction,n=this.element,i=new ve(function(e){const t="absolute"===getComputedStyle(e).position
let n=function(e){const t=[]
if(!e)return t
let n=e.parentElement
for(;null!==n;)t.push(n),n=n.parentElement
return t}(e).filter((function(e){const n=getComputedStyle(e)
if(t&&"static"===n.position)return!1
const{overflow:i,overflowX:r,overflowY:o}=n
return/(auto|scroll)/.test(i+r+o)}))[0]
return n&&n!==document.body||(n=document),n}(n)),r={width:parseInt(getComputedStyle(n).width,10),get height(){return parseInt(getComputedStyle(n).height,10)},get left(){return n.getBoundingClientRect().left},get right(){return this.left+this.width},get top(){return n.getBoundingClientRect().top},get bottom(){return this.top+this.height}}
let o,a,s,c
"grid"===t||"x"===t?(o="left",a="right",s="scrollLeft",c="pageX"):(o="top",a="bottom",s="scrollTop",c="pageY")
const l=()=>{if(null!=this._pageX||null!=this._pageY)return{pageX:this._pageX??0,pageY:this._pageY??0,clientX:this._pageX??0,clientY:this._pageY??0}},u=()=>{const t=r[o],n=r[a],d=i[s]()
let f=0
if(n>=i[a]?f=n-i[a]:t<=i[o]&&(f=t-i[o]),0!==f){const t=this.maxScrollSpeed
f=Math.min(Math.max(f,-1*t),t),f=i[s](d+f)-d
const n=l()
n&&(i.isWindow&&(n[c]+=f),(0,oe.run)((()=>e(n))))}this.isDragging&&requestAnimationFrame(u)}
this.disableCheckScrollBounds||requestAnimationFrame(u)}_makeDragHandler(e){const t=this.direction
let n,i,r
const o=this.element.parentNode
if(!o)return()=>{}
if("grid"===t){this.startEvent=e
const t=ce(e)
this._dragOriginX=ce(e)
const n=this.x,i=o.getBoundingClientRect().left,r=se(e)
this._dragOriginY=r
const a=this.y,s=o.getBoundingClientRect().top
return e=>{this._pageX=ce(e)
const c=this._pageX-t,l=o.getBoundingClientRect().left,u=n+c+(i-l)
this._pageY=se(e)
const d=this._pageY-r,f=o.getBoundingClientRect().top,p=a+d+(s-f)
this._drag(u,p)}}return"x"===t?(n=ce(e),i=this.x,r=o.getBoundingClientRect().left,e=>{this._pageX=ce(e)
const t=this._pageX-n,a=o.getBoundingClientRect().left,s=i+t+(r-a)
this._drag(s,0)}):"y"===t?(n=se(e),i=this.y,r=o.getBoundingClientRect().top,e=>{this._pageY=se(e)
const t=this._pageY-n,a=o.getBoundingClientRect().top,s=i+t+(r-a)
this._drag(0,s)}):()=>{}}_scheduleApplyPosition(){(0,oe.scheduleOnce)("render",this,this._applyPosition)}_applyPosition(){if(!this.element||!this.element)return
const e=this.direction
if("grid"===e){const e=this.x-this.element.offsetLeft+parseFloat(getComputedStyle(this.element).marginLeft),t=this.y-this.element.offsetTop
this.element.style.transform=`translate(${e}px, ${t}px)`}if("x"===e){const e=this.x-this.element.offsetLeft+parseFloat(getComputedStyle(this.element).marginLeft)
this.element.style.transform=`translateX(${e}px)`}if("y"===e){const e=this.y-this.element.offsetTop
this.element.style.transform=`translateY(${e}px)`}}_drag(e,t){if(!this.isDragging)return
const n=this.updateInterval
this.x=e,this.y=t,(0,oe.throttle)(this,this.sortableGroup.update,n)}_drop(){if(!this.element)return
const e=this._waitForTransition()
this._preventClick()
const t=this.sortableGroup.sortedItems;(0,ie.set)(this,"isDragging",!1),(0,ie.set)(this,"isDropping",!0),this.sortableGroup.update(t)
const n=this._waitForAllTransitions()
P.all([e,n]).then((()=>this._complete()))}_preventClick(){const e=t=>{this.element.removeEventListener(re.g$,e),this._preventClickHandler(t)}
this.element.addEventListener(re.g$,e)}_preventClickHandler(e){e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()}_waitForTransition(){let e,t
if(ae.DEBUG&&(e=be.beginAsync()),this.isAnimated){const e=function(){var e={resolve:void 0,reject:void 0}
return e.promise=new P((function(t,n){e.resolve=t,e.reject=n}),void 0),e}()
this.element.addEventListener("transitionend",e.resolve),t=e.promise.finally((()=>{this.element.removeEventListener("transitionend",e.resolve)}))}else{const e=this.isAnimated?this.transitionDuration:200
t=new P((t=>(0,oe.later)(t,e)))}return ae.DEBUG&&(t=t.finally((()=>{be.endAsync(e)}))),t}_waitForAllTransitions(){let e,t
if(ae.DEBUG&&(e=be.beginAsync()),this.isAnimated){const e=this.sortableGroup.sortedItems.map((e=>e.element.getAnimations())).map((e=>e.every((e=>e.finished))))
t=P.all(e)}else{const e=this.isAnimated?this.transitionDuration:200
t=new P((t=>(0,oe.later)(t,e)))}return ae.DEBUG&&(t=t.finally((()=>{be.endAsync(e)}))),t}_complete(){this.onDragStop(this.model),(0,ie.set)(this,"isDropping",!1),(0,ie.set)(this,"wasDropped",!0),this.sortableGroup.commit()}get isAnimated(){if(!this.element)return
const e=this.element,t=getComputedStyle(e).transitionProperty
return/all|transform/.test(t)&&this.transitionDuration>0}get transitionDuration(){var e
const t=(null===(e=this.sortableGroup.sortedItems.filter((e=>!e.isDragging&&!e.isDropping))[0])||void 0===e?void 0:e.element)??this.element,n=getComputedStyle(t).transitionDuration.match(/([\d.]+)([ms]*)/)
if(n){let e=parseFloat(n[1]??"")
return"s"===n[2]&&(e*=1e3),e}return 0}get x(){if(void 0===this._x){const e=parseFloat(getComputedStyle(this.element).marginLeft)
this._x=this.element.scrollLeft+this.element.offsetLeft-e}return this._x}set x(e){e!==this._x&&(this._x=e,this._scheduleApplyPosition())}get y(){return void 0===this._y&&(this._y=this.element.offsetTop),this._y}set y(e){e!==this._y&&(this._y=e,this._scheduleApplyPosition())}get width(){const e=this.element
let t=e.offsetWidth
const n=getComputedStyle(e)
return t+=parseInt(n.marginLeft)+parseInt(n.marginRight),t+=le(e).horizontal,t}get height(){const e=this.element
let t=e.offsetHeight
const n=getComputedStyle(e)
return"grid"===this.direction&&(t+=parseFloat(n.marginTop)),t+=parseFloat(n.marginBottom),t+=le(e).vertical,t}addEventListener(){this.element.addEventListener("keydown",this.keyDown),this.element.addEventListener("mousedown",this.mouseDown),this.element.addEventListener("touchstart",this.touchStart),this.listenersRegistered=!0}removeEventListener(){this.element.removeEventListener("keydown",this.keyDown),this.element.removeEventListener("mousedown",this.mouseDown),this.element.removeEventListener("touchstart",this.touchStart),this.listenersRegistered=!1}setupHandleElement(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0]
this.handleElement=this.element.querySelector(this.handle)
const t=e?"initial":"none"
this.handleElement?this.handleElement.style.touchAction=t:this.element.style.touchAction=t}constructor(e,t){super(e,t),(0,i.a)(this,"className","sortable-item"),(0,i.b)(this,"sortableService",fe,this),(0,i.a)(this,"startEvent",void 0),(0,i.a)(this,"_sortableGroup",void 0),(0,i.a)(this,"_x",void 0),(0,i.a)(this,"_y",void 0),(0,i.a)(this,"_dragOriginX",void 0),(0,i.a)(this,"_dragOriginY",void 0),(0,i.a)(this,"_pageX",void 0),(0,i.a)(this,"_pageY",void 0),(0,i.a)(this,"handleElement",void 0),(0,i.a)(this,"_isDragging",!1),(0,i.a)(this,"_isDropping",!1),(0,i.a)(this,"wasDropped",!1),(0,i.a)(this,"_prepareDragListener",void 0),(0,i.a)(this,"_cancelStartDragListener",void 0),(0,i.a)(this,"maxScrollSpeed",20),(0,i.a)(this,"element",void 0),(0,i.a)(this,"didSetup",!1),(0,i.a)(this,"named",void 0),(0,i.a)(this,"listenersRegistered",!1),(0,me.registerDestructor)(this,_e)}modify(e,t,n){this.element=e,this.named=n,this.element.classList.add(this.className),this.setupHandleElement(this.named.disabled),this.didSetup||(this.element.dataset.sortableItem="true",this.sortableService.registerItem(this.groupName,this),this.didSetup=!0),this.named.disabled&&this.listenersRegistered?this.removeEventListener():this.named.disabled||this.listenersRegistered||this.addEventListener()}},fe=(0,i._)(de.prototype,"sortableService",[ue],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i._)(de.prototype,"mouseDown",[ie.action],Object.getOwnPropertyDescriptor(de.prototype,"mouseDown"),de.prototype),(0,i._)(de.prototype,"keyDown",[ie.action],Object.getOwnPropertyDescriptor(de.prototype,"keyDown"),de.prototype),(0,i._)(de.prototype,"touchStart",[ie.action],Object.getOwnPropertyDescriptor(de.prototype,"touchStart"),de.prototype),de)
function _e(e){e.removeEventListener(),e.sortableService.deregisterItem(e.groupName,e)}},95363:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{default:()=>a})
var i=n(55578),r=n(88574),o=n.n(r)
class a extends(o()){constructor(){super(...arguments),(0,i.a)(this,"groups",{})}registerGroup(e,t){void 0===this.groups[e]?this.groups[e]={groupModifier:t,items:[]}:this.groups[e].groupModifier=t}deregisterGroup(e){delete this.groups[e]}registerItem(e,t){const n=this.fetchGroup(e)
if(!n)return
let i=n.items;-1===i.indexOf(t)&&(i=[...i,t]),n.items=i}deregisterItem(e,t){const n=this.fetchGroup(e)
if(!n)return
const i=n.items,r=i.indexOf(t)
if(-1!==r){const e=[...i.slice(0,r),...i.slice(r+1)]
n.items=e}}fetchGroup(e){return void 0===this.groups[e]&&this.registerGroup(e,void 0),this.groups[e]}}},54362:(e,t,n)=>{"use strict"
n.d(t,{Fl:()=>o,Sm:()=>i,g$:()=>r,jk:()=>a})
const i=["mousemove","touchmove"],r="click",o=["click","mouseup","touchend"],a={ACTIVATE:"ACTIVATE",MOVE:"MOVE",CONFIRM:"CONFIRM",CANCEL:"CANCEL"}},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}},20689:(e,t,n)=>{"use strict"
let i
n.r(t),n.d(t,{_setCurrentHandler:()=>{},default:()=>r}),i=window
const r=i},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="[iFrameSizer]",d=null,f=window.requestAnimationFrame,p=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),h={},g=null,m=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(){S("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),v={}
window.jQuery!==o&&((a=window.jQuery).fn?a.fn.iFrameResize||(a.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,n){U(n,e)})).end()}):T("","Unable to bind to jQuery, it is not fully loaded.")),i=[],(r="function"==typeof(n=H)?n.apply(t,i):n)===o||(e.exports=r),window.iFrameResize=window.iFrameResize||H()}function y(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function b(e,t,n){e.addEventListener(t,n,!1)}function E(e,t,n){e.removeEventListener(t,n,!1)}function _(e){return h[e]?h[e].log:c}function k(e,t){A("log",e,t,_(e))}function T(e,t){A("info",e,t,_(e))}function S(e,t){A("warn",e,t,!0)}function A(e,t,n,i){!0===i&&"object"==typeof window.console&&console[e](function(e){return u+"["+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 C(e){function t(){n("Height"),n("Width"),M((function(){P(C),N(w),l("onResized",C)}),C,"init")}function n(e){var t=Number(h[w]["max"+e]),n=Number(h[w]["min"+e]),i=e.toLowerCase(),r=Number(C[i])
k(w,"Checking "+i+" is in range "+n+"-"+t),r<n&&(r=n,k(w,"Set "+i+" to min value")),r>t&&(r=t,k(w,"Set "+i+" to max value")),C[i]=""+r}function i(e){return A.slice(A.indexOf(":")+7+e)}function r(e,t){var n,i
n=function(){var n,i
j("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),i=C.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)},v[i=t]||(v[i]=setTimeout((function(){v[i]=null,n()}),32))}function o(e){var t=e.getBoundingClientRect()
return R(w),{x:Math.floor(Number(t.left)+Number(d.x)),y:Math.floor(Number(t.top)+Number(d.y))}}function a(e){var t=e?o(C.iframe):{x:0,y:0},n={x:Number(C.width)+t.x,y:Number(C.height)+t.y}
k(w,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top===window.self?(d=n,s(),k(w,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):S(w,"Unable to scroll to requested position, window.parentIFrame not found")}function s(){!1===l("onScroll",d)?O():N(w)}function c(e){var t={}
if(0===Number(C.width)&&0===Number(C.height)){var n=i(9).split(":")
t={x:n[1],y:n[0]}}else t={x:C.width,y:C.height}
l(e,{iframe:C.iframe,screenX:Number(t.x),screenY:Number(t.y),type:C.type})}function l(e,t){return I(w,e,t)}var f,p,g,m,y,_,A=e.data,C={},w=null
"[iFrameResizerChild]Ready"===A?function(){for(var e in h)j("iFrame requested init",L(e),h[e].iframe,e)}():u===(""+A).slice(0,13)&&A.slice(13).split(":")[0]in h?(m=(g=A.slice(13).split(":"))[1]?parseInt(g[1],10):0,y=h[g[0]]&&h[g[0]].iframe,_=getComputedStyle(y),C={iframe:y,id:g[0],height:m+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}(_)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(_),width:g[2],type:g[3]},w=C.id,h[w]&&(h[w].loaded=!0),(p=C.type in{true:1,false:1,undefined:1})&&k(w,"Ignoring init message from meta parent page"),!p&&function(e){var t=!0
return h[e]||(t=!1,S(C.type+" No settings for "+e+". Message was: "+A)),t}(w)&&(k(w,"Received: "+A),f=!0,null===C.iframe&&(S(w,"IFrame ("+C.id+") not found"),f=!1),f&&function(){var t,n=e.origin,i=h[w]&&h[w].checkOrigin
if(i&&""+n!="null"&&!(i.constructor===Array?function(){var e=0,t=!1
for(k(w,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===n){t=!0
break}return t}():(t=h[w]&&h[w].remoteHost,k(w,"Checking connection is from: "+t),n===t)))throw new Error("Unexpected message received from: "+n+" for "+C.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(h[w]&&h[w].firstRun&&h[w]&&(h[w].firstRun=!1),C.type){case"close":x(C.iframe)
break
case"message":e=i(6),k(w,"onMessage passed: {iframe: "+C.iframe.id+", message: "+e+"}"),l("onMessage",{iframe:C.iframe,message:JSON.parse(e)}),k(w,"--")
break
case"mouseenter":c("onMouseEnter")
break
case"mouseleave":c("onMouseLeave")
break
case"autoResize":h[w].autoResize=JSON.parse(i(9))
break
case"scrollTo":a(!1)
break
case"scrollToOffset":a(!0)
break
case"pageInfo":r(h[w]&&h[w].iframe,w),function(){function e(e,i){function o(){h[n]?r(h[n].iframe,n):t()}["scroll","resize"].forEach((function(t){k(n,e+t+" listener for sendPageInfo"),i(window,t,o)}))}function t(){e("Remove ",E)}var n=w
e("Add ",b),h[n]&&(h[n].stopPageInfo=t)}()
break
case"pageInfoStop":h[w]&&h[w].stopPageInfo&&(h[w].stopPageInfo(),delete h[w].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),k(w,"Moving to in page link (#"+n+") at x: "+t.x+" y: "+t.y),d={x:t.x,y:t.y},s(),k(w,"--")):window.top===window.self?k(w,"In page link #"+n+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(n):k(w,"In page link #"+n+" not found and window.parentIFrame not found")}(i(9))
break
case"reset":D(C)
break
case"init":t(),l("onInit",C.iframe)
break
default:0===Number(C.width)&&0===Number(C.height)?S("Unsupported message received ("+C.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):t()}var e}())):T(w,"Ignored: "+A)}function I(e,t,n){var i=null,r=null
if(h[e]){if("function"!=typeof(i=h[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function")
r=i(n)}return r}function w(e){var t=e.id
delete h[t]}function x(e){var t=e.id
if(!1!==I(t,"onClose",t)){k(t,"Removing iFrame: "+t)
try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){S(e)}I(t,"onClosed",t),k(t,"--"),w(e)}else k(t,"Close iframe cancelled by onClose event")}function R(e){null===d&&k(e,"Get page position: "+(d={x:window.pageXOffset===o?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===o?document.documentElement.scrollTop:window.pageYOffset}).x+","+d.y)}function N(e){null!==d&&(window.scrollTo(d.x,d.y),k(e,"Set page position: "+d.x+","+d.y),O())}function O(){d=null}function D(e){k(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),R(e.id),M((function(){P(e),j("reset","reset",e.iframe,e.id)}),e,"reset")}function P(e){function t(t){!function(t){e.id?(e.iframe.style[t]=e[t]+"px",k(e.id,"IFrame ("+n+") "+t+" set to "+e[t]+"px")):k("undefined","messageData id not set")}(t),function(t){l||"0"!==e[t]||(l=!0,k(n,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(h).forEach((function(e){!function(e){function t(t){return"0px"===(h[e]&&h[e].iframe.style[t])}h[e]&&null!==h[e].iframe.offsetParent&&(t("height")||t("width"))&&j("Visibility change","resize",h[e].iframe,e)}(e)}))}var t,n=y()
n&&(t=document.querySelector("body"),new n((function(t){k("window","Mutation observed: "+t[0].target+" "+t[0].type),F(e,16)})).observe(t,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}(t)}var n=e.iframe.id
h[n]&&(h[n].sizeHeight&&t("height"),h[n].sizeWidth&&t("width"))}function M(e,t,n){n!==t.type&&f&&!window.jasmine?(k(t.id,"Requesting animation frame"),f(e)):e()}function j(e,t,n,i,r){var o,a=!1
i=i||n.id,h[i]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(o=h[i]&&h[i].targetOrigin,k(i,"["+e+"] Sending msg to iframe["+i+"] ("+t+") targetOrigin: "+o),n.contentWindow.postMessage(u+t,o)):S(i,"["+e+"] IFrame("+i+") not found"),r&&h[i]&&h[i].warningTimeout&&(h[i].msgTimeout=setTimeout((function(){!h[i]||h[i].loaded||a||(a=!0,S(i,"IFrame has not responded within "+h[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."))}),h[i].warningTimeout)))}function L(e){return e+":"+h[e].bodyMarginV1+":"+h[e].sizeWidth+":"+h[e].log+":"+h[e].interval+":"+h[e].enablePublicMethods+":"+h[e].autoResize+":"+h[e].bodyMargin+":"+h[e].heightCalculationMethod+":"+h[e].bodyBackground+":"+h[e].bodyPadding+":"+h[e].tolerance+":"+h[e].inPageLinks+":"+h[e].resizeFrom+":"+h[e].widthCalculationMethod+":"+h[e].mouseEvents}function U(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],S(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||m.id+s++,null!==document.getElementById(i)&&(i+=s++),n=i),c=(t||{}).log,k(n,"Added missing iframe ID: "+n+" ("+e.src+")")),n}(e.id)
i in h&&"iFrameResizer"in e?S(i,"Ignored iFrame, already setup."):(function(t){var r
t=t||{},h[i]=Object.create(null),h[i].iframe=e,h[i].firstRun=!0,h[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 m)Object.prototype.hasOwnProperty.call(m,t)&&(h[i][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:m[t])}(t),h[i]&&(h[i].targetOrigin=!0===h[i].checkOrigin?""===(r=h[i].remoteHost)||null!==r.match(/^(about:blank|javascript:|file:\/\/)/)?"*":r:"*")}(t),function(){switch(k(i,"IFrame scrolling "+(h[i]&&h[i].scrolling?"enabled":"disabled")+" for "+i),e.style.overflow=!1===(h[i]&&h[i].scrolling)?"hidden":"auto",h[i]&&h[i].scrolling){case"omit":break
case!0:e.scrolling="yes"
break
case!1:e.scrolling="no"
break
default:e.scrolling=h[i]?h[i].scrolling:"no"}}(),function(){function t(t){var n=h[i][t]
1/0!==n&&0!==n&&(e.style[t]="number"==typeof n?n+"px":n,k(i,"Set "+t+" = "+e.style[t]))}function n(e){if(h[i]["min"+e]>h[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(h[i]&&h[i].bodyMargin)&&"0"!==(h[i]&&h[i].bodyMargin)||(h[i].bodyMarginV1=h[i].bodyMargin,h[i].bodyMargin=h[i].bodyMargin+"px"),function(t){var n=y()
n&&function(t){e.parentNode&&new t((function(t){t.forEach((function(t){Array.prototype.slice.call(t.removedNodes).forEach((function(t){t===e&&x(e)}))}))})).observe(e.parentNode,{childList:!0})}(n),b(e,"load",(function(){var n,r
j("iFrame.onload",t,e,o,!0),n=h[i]&&h[i].firstRun,r=h[i]&&h[i].heightCalculationMethod in p,!n&&r&&D({iframe:e,height:0,width:0,type:"init"})})),j("init",t,e,o,!0)}(L(i)),h[i]&&(h[i].iframe.iFrameResizer={close:x.bind(null,h[i].iframe),removeListeners:w.bind(null,h[i].iframe),resize:j.bind(null,"Window resize","resize",h[i].iframe),moveToAnchor:function(e){j("Move to anchor","moveToAnchor:"+e,h[i].iframe,i)},sendMessage:function(e){j("Send Message","message:"+(e=JSON.stringify(e)),h[i].iframe,i)}}))}function F(e,t){null===g&&(g=setTimeout((function(){g=null,e()}),t))}function B(){"hidden"!==document.visibilityState&&(k("document","Trigger event: Visibility change"),F((function(){G("Tab Visible","resize")}),16))}function G(e,t){Object.keys(h).forEach((function(n){(function(e){return h[e]&&"parent"===h[e].resizeFrom&&h[e].autoResize&&!h[e].firstRun})(n)&&j(e,t,h[n].iframe,n)}))}function H(){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+">")}(),U(n,e),t.push(n))}var t
return function(){var e,t=["moz","webkit","o","ms"]
for(e=0;e<t.length&&!f;e+=1)f=window[t[e]+"RequestAnimationFrame"]
f?f=f.bind(window):k("setup","RequestAnimationFrame not supported")}(),b(window,"message",C),b(window,"resize",(function(){k("window","Trigger event: resize"),F((function(){G("Window resize","resize")}),16)})),b(document,"visibilitychange",B),b(document,"-webkit-visibilitychange",B),function(n,i){switch(t=[],function(e){e&&e.enablePublicMethods&&S("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 _=f+=y
for(v!==m&&(n[f++]=E),b=v;y--;)b=h[b],n[--_]=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(!((w=e[t++])>=0))throw Error("Invalid block size")
if(0===w)break
t+=w}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++],1&m||(p=null),h=m>>2&7,t++
break
case 254:for(;;){if(!((w=e[t++])>=0))throw Error("Invalid block size")
if(0===w)break
t+=w}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,_=e[t++],k=_>>6&1,T=1<<1+(7&_),S=c,A=l,C=!1
_>>7&&(C=!0,S=t,A=T,t+=3*T)
var I=t
for(t++;;){var w
if(!((w=e[t++])>=0))throw Error("Invalid block size")
if(0===w)break
t+=w}d.push({x:v,y:y,width:b,height:E,has_local_palette:C,palette_offset:S,palette_size:A,data_offset:I,data_length:t-I,transparent_index:p,interlaced:!!k,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 _=e[c+3*E],k=e[c+3*E+1],T=e[c+3*E+2]
r[g++]=T,r[g++]=k,r[g++]=_,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 _=e[c+3*E],k=e[c+3*E+1],T=e[c+3*E+2]
r[g++]=_,r[g++]=k,r[g++]=T,r[g++]=255}--f}}}}catch(e){}},72690:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{default:()=>r})
var i=n(91210)
const r={name:"maxSize",enabled:!0,phase:"main",requiresIfExists:["offset","preventOverflow","flip"],fn:function(e){var t=e.state,n=e.name,r=e.options,o=(0,i.Z)(t,r),a=t.modifiersData.preventOverflow||{x:0,y:0},s=a.x,c=a.y,l=t.rects.popper,u=l.width,d=l.height,f=t.placement.split("-")[0],p="left"===f?"left":"right",h="top"===f?"top":"bottom"
t.modifiersData[n]={width:u-o[p]-s,height:d-o[h]-c}}}},79103:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{default:()=>Me})
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 _=[]
_[0]=function(e){return e.value},_[1]=function(e,t){var n=y(t,e.value)
return N.ENCODE_AND_DECODE_PATH_SEGMENTS?h(n):n},_[2]=function(e,t){return y(t,e.value)},_[4]=function(){return""}
var k=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(!!(4&s))),14&s&&n[c]++,e.push({type:c,value:f(l)})}return{names:r||T,shouldDecodes:o||T}}function A(e,t,n){return e.char===t&&e.negate===n}var C=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 I(e,t){return e.negate?e.char!==t&&-1!==e.char:e.char===t||-1===e.char}function w(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}C.prototype.regex=function(){return this._regex||(this._regex=new RegExp(this.pattern)),this._regex},C.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(A(r,e,t))return r}else{var o=this.states[n]
if(A(o,e,t))return o}},C.prototype.put=function(e,t,n){var i
if(i=this.get(e,t))return i
var r=this.states
return i=new C(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},C.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]]
I(r,e)&&n.push(r)}else{var o=this.states[t]
I(o,e)&&n.push(o)}return n}
var x=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}x.prototype.splice=Array.prototype.splice,x.prototype.slice=Array.prototype.slice,x.prototype.push=Array.prototype.push
var N=function(){this.names=r()
var e=[],t=new C(e,0,-1,!0,!1)
e[0]=t,this.states=e,this.rootState=t}
N.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})},N.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},N.prototype.hasRoute=function(e){return!!this.names[e]},N.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+=_[a.type](a,t))}return"/"!==i.charAt(0)&&(i="/"+i),t&&t.queryParams&&(i+=this.generateQueryString(t.queryParams)),i},N.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("&")},N.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},N.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
N.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=w(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 x(n)
s.length=i.length
for(var c=0;c<i.length;c++){var l=i[c],u=l.names,d=l.shouldDecodes,f=k,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===k&&(f={}),N.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},N.VERSION="0.3.4",N.ENCODE_AND_DECODE_PATH_SEGMENTS=!0,N.Normalizer={normalizeSegment:f,normalizePath:u,encodePathSegment:h},N.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 O=N
var D=function(e,t,n,i){this.type=e,this.bubbles=t,this.cancelable=n,this.target=i}
D.prototype={stopPropagation:function(){},preventDefault:function(){this.defaultPrevented=!0}}
var P={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"},M={"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 j(e,t){t.addEventListener(e,(function(n){var i=t["on"+e]
i&&"function"==typeof i&&i.call(n.target,n)}))}function L(){this._eventListeners={}
for(var e=["loadstart","progress","load","abort","loadend"],t=e.length-1;t>=0;t--)j(e[t],this)}function U(){L.call(this),this.readyState=U.UNSENT,this.requestHeaders={},this.requestBody=null,this.status=0,this.statusText="",this.upload=new L,this.onabort=null,this.onerror=null,this.onload=null,this.onloadend=null,this.onloadstart=null,this.onprogress=null,this.onreadystatechange=null,this.ontimeout=null}L.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 D("progress")
i.target=this,i.lengthComputable=e,i.loaded=t,i.total=n,this.dispatchEvent(i)}},U.prototype=new L,U.UNSENT=0,U.OPENED=1,U.HEADERS_RECEIVED=2,U.LOADING=3,U.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(U.OPENED)},setRequestHeader:function(e,t){if(G(this),M[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(G(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(U.OPENED),"function"==typeof this.onSend&&this.onSend(this),this.dispatchEvent(new D("loadstart",!1,!1,this))},abort:function(){this.aborted=!0,this.responseText=null,this.response=this.responseText,this.errorFlag=!0,this.requestHeaders={},this.dispatchEvent(new D("abort",!1,!1,this)),this.readyState>U.UNSENT&&this.sendFlag&&(this._readyStateChange(U.UNSENT),this.sendFlag=!1),"function"==typeof this.onerror&&this.onerror()},getResponseHeader:function(e){if(this.readyState<U.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<U.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 D("readystatechange")),this.dispatchEvent(new D("readystatechange")),this.readyState==U.DONE&&this.dispatchEvent(new D("load",!1,!1,this)),this.readyState!=U.UNSENT&&this.readyState!=U.DONE||this.dispatchEvent(new D("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(U.HEADERS_RECEIVED):this.readyState=U.HEADERS_RECEIVED},_setResponseBody:function(e){!function(e){if(e.readyState==U.DONE)throw new Error("Request done")}(this),function(e){if(e.async&&e.readyState!=U.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(U.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(U.DONE):this.readyState=U.DONE},respond:function(e,t,n){this._setResponseHeaders(t||{}),this.status="number"==typeof e?e:200,this.statusText=P[this.status],this._setResponseBody(n||"")}}
for(var B in F)U.prototype[B]=F[B]
function G(e){if(e.readyState!==U.OPENED)throw new Error("INVALID_STATE_ERR")
if(e.sendFlag)throw new Error("INVALID_STATE_ERR")}const H=U
var V="URLSearchParams"in self,q="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,Y="ArrayBuffer"in self
if(Y)var z=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],X=ArrayBuffer.isView||function(e){return e&&z.indexOf(Object.prototype.toString.call(e))>-1}
function Q(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 J(e){return"string"!=typeof e&&(e=String(e)),e}function $(e){var t={next:function(){var t=e.shift()
return{done:void 0===t,value:t}}}
return q&&(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:V&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Y&&K&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=ie(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Y&&(ArrayBuffer.prototype.isPrototypeOf(e)||X(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):V&&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=Q(e),t=J(t)
var n=this.map[e]
this.map[e]=n?n+", "+t:t},Z.prototype.delete=function(e){delete this.map[Q(e)]},Z.prototype.get=function(e){return e=Q(e),this.has(e)?this.map[e]:null},Z.prototype.has=function(e){return this.map.hasOwnProperty(Q(e))},Z.prototype.set=function(e,t){this.map[Q(e)]=J(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)})),$(e)},Z.prototype.values=function(){var e=[]
return this.forEach((function(t){e.push(t)})),$(e)},Z.prototype.entries=function(){var e=[]
return this.forEach((function(t,n){e.push([n,t])})),$(e)},q&&(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 _e(e){return(e||"").toString().replace(Ee,"")}var ke=[["#","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 Ce(unescape(e.pathname),{})
else if("string"===r)for(t in i=new Ce(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 Ae(e){e=_e(e)
var t=be.exec(e)
return{protocol:t[1]?t[1].toLowerCase():"",slashes:!!t[2],rest:t[3]}}function Ce(e,t,n){if(e=_e(e),!(this instanceof Ce))return new Ce(e,t,n)
var i,r,o,a,s,c,l=ke.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=Ae(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()}Ce.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<ke.length;o++){var a=ke[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}},Ce.extractProtocol=Ae,Ce.location=Se,Ce.trimLeft=_e,Ce.qs=ve
var Ie=Ce
function we(e){var t=new Ie(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 xe=function(){this.verbs={GET:new O,PUT:new O,POST:new O,DELETE:new O,PATCH:new O,HEAD:new O,OPTIONS:new O}},Re=function(){function e(){this.registries={}}return e.prototype.forURL=function(e){var t=we(e).host,n=this.registries[t]
return void 0===n&&(n=this.registries[t]=new xe),n.verbs},e}()
function Ne(){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=function(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}(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 Oe(e){return function(t,n,i){return this.register(e,t,n,i)}}function De(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),De(e,t,n)}}),50)}var Pe={}
Ne.prototype={get:Oe("GET"),post:Oe("POST"),put:Oe("PUT"),delete:Oe("DELETE"),patch:Oe("PATCH"),head:Oe("HEAD"),options:Oe("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:we(t).fullpath,handler:n}]),n},passthrough:Pe,checkPassthrough:function(e){var t=e.method.toUpperCase(),n=we(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&&(De(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(we(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}},Ne.parseURL=we,Ne.Hosts=Re,Ne.Registry=xe
const Me=Ne},9516:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{decode:()=>v,default:()=>_,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}))},_={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))===(_=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),_=t.slice(a-v)
if(y===E&&b===_)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,_=(C=b===-y||b!==y&&l[E-1]<l[E+1]?l[E+1]:l[E-1]+1)-b;C<r&&_<o&&e.charAt(C)===n.charAt(_);)C++,_++
if(l[E]=C,C>r)g+=2
else if(_>o)h+=2
else if(p&&(S=s+f-b)>=0&&S<c&&-1!==u[S]&&C>=(T=r-u[S]))return i(e,n,C,_)}for(var k=-y+m;k<=y-v;k+=2){for(var T,S=s+k,A=(T=k===-y||k!==y&&u[S-1]<u[S+1]?u[S+1]:u[S-1]+1)-k;T<r&&A<o&&e.charAt(r-T-1)===n.charAt(o-A-1);)T++,A++
if(u[S]=T,T>r)v+=2
else if(A>o)m+=2
else if(!p){var C
if((E=s+f-k)>=0&&E<c&&-1!==l[E]&&(_=s+(C=l[E])-E,C>=(T=r-T)))return i(e,n,C,_)}}}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]",_="[object Float32Array]",k="[object Float64Array]",T="[object Int8Array]",S="[object Int16Array]",A="[object Int32Array]",C="[object Uint8Array]",I="[object Uint8ClampedArray]",w="[object Uint16Array]",x="[object Uint32Array]",R=/\w*$/,N=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,D={}
D[o]=D["[object Array]"]=D[b]=D[E]=D[a]=D[s]=D[_]=D[k]=D[T]=D[S]=D[A]=D[u]=D[d]=D[f]=D[h]=D[g]=D[m]=D[v]=D[C]=D[I]=D[w]=D[x]=!0,D["[object Error]"]=D[c]=D[y]=!1
var P="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,M="object"==typeof self&&self&&self.Object===Object&&self,j=P||M||Function("return this")(),L=t&&!t.nodeType&&t,U=L&&e&&!e.nodeType&&e,F=U&&U.exports===L
function B(e,t){return e.set(t[0],t[1]),e}function G(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 V(e){var t=!1
if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function q(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 Y,z=Array.prototype,X=Function.prototype,Q=Object.prototype,J=j["__core-js_shared__"],$=(Y=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||""))?"Symbol(src)_1."+Y:"",Z=X.toString,ee=Q.hasOwnProperty,te=Q.toString,ne=RegExp("^"+Z.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ie=F?j.Buffer:void 0,re=j.Symbol,oe=j.Uint8Array,ae=K(Object.getPrototypeOf,Object),se=Object.create,ce=Q.propertyIsEnumerable,le=z.splice,ue=Object.getOwnPropertySymbols,de=ie?ie.isBuffer:void 0,fe=K(Object.keys,Object),pe=je(j,"DataView"),he=je(j,"Map"),ge=je(j,"Promise"),me=je(j,"Set"),ve=je(j,"WeakMap"),ye=je(Object,"create"),be=Ge(pe),Ee=Ge(he),_e=Ge(ge),ke=Ge(me),Te=Ge(ve),Se=re?re.prototype:void 0,Ae=Se?Se.valueOf:void 0
function Ce(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 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){this.__data__=new Ie(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 Ne(e,t){for(var n=e.length;n--;)if(He(e[n][0],t))return n
return-1}function Oe(e,t,n,i,r,p,y){var N
if(i&&(N=p?i(e,r,p,y):i(e)),void 0!==N)return N
if(!Ye(e))return e
var O=Ve(e)
if(O){if(N=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,N)}else{var P=Ue(e),M=P==c||P==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(P==f||P==o||M&&!p){if(V(e))return p?e:{}
if(N=function(e){return"function"!=typeof e.constructor||Be(e)?{}:Ye(t=ae(e))?se(t):{}
var t}(M?{}:e),!t)return function(e,t){return Pe(e,Le(e),t)}(e,function(e,t){return e&&Pe(t,ze(t),e)}(N,e))}else{if(!D[P])return p?e:{}
N=function(e,t,n,i){var r,o=e.constructor
switch(t){case b:return De(e)
case a:case s:return new o(+e)
case E:return function(e,t){var n=t?De(e.buffer):e.buffer
return new e.constructor(n,e.byteOffset,e.byteLength)}(e,i)
case _:case k:case T:case S:case A:case C:case I:case w:case x:return function(e,t){var n=t?De(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(q(e),!0):q(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),G,new e.constructor)}(e,i,n)
case v:return r=e,Ae?Object(Ae.call(r)):{}}}(e,P,Oe,t)}}y||(y=new xe)
var j=y.get(e)
if(j)return j
if(y.set(e,N),!O)var L=n?function(e){return function(e,t,n){var i=t(e)
return Ve(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,ze,Le)}(e):ze(e)
return function(e,t){for(var n=-1,i=e?e.length:0;++n<i&&!1!==t(e[n],n););}(L||e,(function(r,o){L&&(r=e[o=r]),Re(N,o,Oe(r,t,n,i,o,e,y))})),N}function De(e){var t=new e.constructor(e.byteLength)
return new oe(t).set(new oe(e)),t}function Pe(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 Me(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 je(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t)
return function(e){return!(!Ye(e)||(t=e,$&&$ in t))&&(We(e)||V(e)?ne:N).test(Ge(e))
var t}(n)?n:void 0}Ce.prototype.clear=function(){this.__data__=ye?ye(null):{}},Ce.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ce.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},Ce.prototype.has=function(e){var t=this.__data__
return ye?void 0!==t[e]:ee.call(t,e)},Ce.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?i:t,this},Ie.prototype.clear=function(){this.__data__=[]},Ie.prototype.delete=function(e){var t=this.__data__,n=Ne(t,e)
return!(n<0||(n==t.length-1?t.pop():le.call(t,n,1),0))},Ie.prototype.get=function(e){var t=this.__data__,n=Ne(t,e)
return n<0?void 0:t[n][1]},Ie.prototype.has=function(e){return Ne(this.__data__,e)>-1},Ie.prototype.set=function(e,t){var n=this.__data__,i=Ne(n,e)
return i<0?n.push([e,t]):n[i][1]=t,this},we.prototype.clear=function(){this.__data__={hash:new Ce,map:new(he||Ie),string:new Ce}},we.prototype.delete=function(e){return Me(this,e).delete(e)},we.prototype.get=function(e){return Me(this,e).get(e)},we.prototype.has=function(e){return Me(this,e).has(e)},we.prototype.set=function(e,t){return Me(this,e).set(e,t),this},xe.prototype.clear=function(){this.__data__=new Ie},xe.prototype.delete=function(e){return this.__data__.delete(e)},xe.prototype.get=function(e){return this.__data__.get(e)},xe.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.set=function(e,t){var n=this.__data__
if(n instanceof Ie){var i=n.__data__
if(!he||i.length<199)return i.push([e,t]),this
n=this.__data__=new we(i)}return n.set(e,t),this}
var Le=ue?K(ue,Object):function(){return[]},Ue=function(e){return te.call(e)}
function Fe(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||O.test(e))&&e>-1&&e%1==0&&e<t}function Be(e){var t=e&&e.constructor
return e===("function"==typeof t&&t.prototype||Q)}function Ge(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&&Ue(new pe(new ArrayBuffer(1)))!=E||he&&Ue(new he)!=u||ge&&Ue(ge.resolve())!=p||me&&Ue(new me)!=g||ve&&Ue(new ve)!=y)&&(Ue=function(e){var t=te.call(e),n=t==f?e.constructor:void 0,i=n?Ge(n):void 0
if(i)switch(i){case be:return E
case Ee:return u
case _e:return p
case ke:return g
case Te:return y}return t})
var Ve=Array.isArray
function qe(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=Ye(e)?te.call(e):""
return t==c||t==l}function Ye(e){var t=typeof e
return!!e&&("object"==t||"function"==t)}function ze(e){return qe(e)?function(e){var t=Ve(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&qe(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):[],n=t.length,i=!!n
for(var r in e)!ee.call(e,r)||i&&("length"==r||Fe(r,n))||t.push(r)
return t}(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 Oe(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]",_=/^\[object .+?Constructor\]$/,k=/^(?: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,A="object"==typeof self&&self&&self.Object===Object&&self,C=S||A||Function("return this")(),I=t&&!t.nodeType&&t,w=I&&e&&!e.nodeType&&e,x=w&&w.exports===I,R=x&&S.process,N=function(){try{return R&&R.binding&&R.binding("util")}catch(e){}}(),O=N&&N.isTypedArray
function D(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 P(e){var t=-1,n=Array(e.size)
return e.forEach((function(e,i){n[++t]=[i,e]})),n}function M(e){var t=-1,n=Array(e.size)
return e.forEach((function(e){n[++t]=e})),n}var j,L,U,F=Array.prototype,B=Function.prototype,G=Object.prototype,H=C["__core-js_shared__"],V=B.toString,q=G.hasOwnProperty,K=(j=/[^.]+$/.exec(H&&H.keys&&H.keys.IE_PROTO||""))?"Symbol(src)_1."+j:"",W=G.toString,Y=RegExp("^"+V.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),z=x?C.Buffer:void 0,X=C.Symbol,Q=C.Uint8Array,J=G.propertyIsEnumerable,$=F.splice,Z=X?X.toStringTag:void 0,ee=Object.getOwnPropertySymbols,te=z?z.isBuffer:void 0,ne=(L=Object.keys,U=Object,function(e){return L(U(e))}),ie=we(C,"DataView"),re=we(C,"Map"),oe=we(C,"Promise"),ae=we(C,"Set"),se=we(C,"WeakMap"),ce=we(Object,"create"),le=Oe(ie),ue=Oe(re),de=Oe(oe),fe=Oe(ae),pe=Oe(se),he=X?X.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 _e(e,t){for(var n=e.length;n--;)if(De(e[n][0],t))return n
return-1}function ke(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Z&&Z in Object(e)?function(e){var t=q.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)&&ke(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=Me(e),y=Me(t),_=h?a:Re(e),k=y?a:Re(t),T=(_=_==o?p:_)==p,S=(k=k==o?p:k)==p,A=_==k
if(A&&je(e)){if(!je(t))return!1
h=!0,T=!1}if(A&&!T)return u||(u=new Ee),h||Ge(e)?Ae(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 Q(e),new Q(t)))
case s:case c:case f:return De(+e,+t)
case l:return e.name==t.name&&e.message==t.message
case g:case v:return e==t+""
case d:var u=P
case m:var p=1&i
if(u||(u=M),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=Ae(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,_,n,i,r,u)
if(!(1&n)){var C=T&&q.call(e,"__wrapped__"),I=S&&q.call(t,"__wrapped__")
if(C||I){var w=C?e.value():e,x=I?t.value():t
return u||(u=new Ee),r(w,x,n,i,u)}}return!!A&&(u||(u=new Ee),function(e,t,n,i,r,o){var a=1&n,s=Ce(e),c=s.length
if(c!=Ce(t).length&&!a)return!1
for(var l=c;l--;){var u=s[l]
if(!(a?u in t:q.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 Ae(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(!D(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 Ce(e){return function(e,t,n){var i=t(e)
return Me(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,xe)}function Ie(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 we(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))&&(Le(e)?Y:_).test(Oe(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 q.call(t,e)?t[e]:void 0},me.prototype.has=function(e){var t=this.__data__
return ce?void 0!==t[e]:q.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=_e(t,e)
return!(n<0||(n==t.length-1?t.pop():$.call(t,n,1),--this.size,0))},ve.prototype.get=function(e){var t=this.__data__,n=_e(t,e)
return n<0?void 0:t[n][1]},ve.prototype.has=function(e){return _e(this.__data__,e)>-1},ve.prototype.set=function(e,t){var n=this.__data__,i=_e(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=Ie(this,e).delete(e)
return this.size-=t?1:0,t},ye.prototype.get=function(e){return Ie(this,e).get(e)},ye.prototype.has=function(e){return Ie(this,e).has(e)},ye.prototype.set=function(e,t){var n=Ie(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 xe=ee?function(e){return null==e?[]:(e=Object(e),function(t){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var a=t[n]
s=a,J.call(e,s)&&(o[r++]=a)}var s
return o}(ee(e)))}:function(){return[]},Re=ke
function Ne(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||k.test(e))&&e>-1&&e%1==0&&e<t}function Oe(e){if(null!=e){try{return V.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function De(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=ke(e),n=t==p?e.constructor:void 0,i=n?Oe(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 Pe=Te(function(){return arguments}())?Te:function(e){return Be(e)&&q.call(e,"callee")&&!J.call(e,"callee")},Me=Array.isArray,je=te||function(){return!1}
function Le(e){if(!Fe(e))return!1
var t=ke(e)
return t==u||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ue(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 Ge=O?function(e){return function(t){return e(t)}}(O):function(e){return Be(e)&&Ue(e.length)&&!!T[ke(e)]}
function He(e){return null!=(t=e)&&Ue(t.length)&&!Le(t)?function(e){var t=Me(e),n=!t&&Pe(e),i=!t&&!n&&je(e),r=!t&&!n&&!i&&Ge(e),o=t||n||i||r,a=o?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n)
return i}(e.length,String):[],s=a.length
for(var c in e)!q.call(e,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ne(c,s))||a.push(c)
return a}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||G))return ne(e)
var t,n,i=[]
for(var r in Object(e))q.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:()=>k})
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){var t=!1,n=!1,i=0
function r(){t&&(t=!1,e()),n&&s()}function o(){a(r)}function s(){var e=Date.now()
if(t){if(e-i<2)return
n=!0}else t=!0,n=!1,setTimeout(o,20)
i=e}return s}(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,_=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){_.prototype[e]=function(){var t
return(t=E.get(this))[e].apply(t,arguments)}}))
const k=void 0!==o.ResizeObserver?o.ResizeObserver:_},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=O.rgb.exec(n))?{r:i[1],g:i[2],b:i[3]}:(i=O.rgba.exec(n))?{r:i[1],g:i[2],b:i[3],a:i[4]}:(i=O.hsl.exec(n))?{h:i[1],s:i[2],l:i[3]}:(i=O.hsla.exec(n))?{h:i[1],s:i[2],l:i[3],a:i[4]}:(i=O.hsv.exec(n))?{h:i[1],s:i[2],v:i[3]}:(i=O.hsva.exec(n))?{h:i[1],s:i[2],v:i[3],a:i[4]}:(i=O.hex8.exec(n))?{r:S(i[1]),g:S(i[2]),b:S(i[3]),a:w(i[4]),format:r?"name":"hex8"}:(i=O.hex6.exec(n))?{r:S(i[1]),g:S(i[2]),b:S(i[3]),format:r?"name":"hex"}:(i=O.hex4.exec(n))?{r:S(i[1]+""+i[1]),g:S(i[2]+""+i[2]),b:S(i[3]+""+i[3]),a:w(i[4]+""+i[4]),format:r?"name":"hex8"}:!!(i=O.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&&(D(n.r)&&D(n.g)&&D(n.b)?(i=n.r,r=n.g,o=n.b,a={r:255*k(i,255),g:255*k(r,255),b:255*k(o,255)},d=!0,f="%"===String(n.r).substr(-1)?"prgb":"rgb"):D(n.h)&&D(n.s)&&D(n.v)?(c=C(n.s),l=C(n.v),a=function(e,t,n){e=6*k(e,360),t=k(t,100),n=k(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"):D(n.h)&&D(n.s)&&D(n.l)&&(c=C(n.s),u=C(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=k(e,360),t=k(t,100),n=k(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=_(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=k(e,255),t=k(t,255),n=k(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=k(e,255),t=k(t,255),n=k(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=[A(Math.round(e).toString(16)),A(Math.round(t).toString(16)),A(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[A(I(i)),A(Math.round(e).toString(16)),A(Math.round(t).toString(16)),A(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=_(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=[A(Math.round(e).toString(16)),A(Math.round(t).toString(16)),A(Math.round(n).toString(16)),A(I(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*k(this._r,255))+"%",g:Math.round(100*k(this._g,255))+"%",b:Math.round(100*k(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*k(this._r,255))+"%, "+Math.round(100*k(this._g,255))+"%, "+Math.round(100*k(this._b,255))+"%)":"rgba("+Math.round(100*k(this._r,255))+"%, "+Math.round(100*k(this._g,255))+"%, "+Math.round(100*k(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]:C(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 _(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function k(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 A(e){return 1==e.length?"0"+e:""+e}function C(e){return e<=1&&(e=100*e+"%"),e}function I(e){return Math.round(255*parseFloat(e)).toString(16)}function w(e){return S(e)/255}var x,R,N,O=(R="[\\s|\\(]+("+(x="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+x+")[,|\\s]+("+x+")\\s*\\)?",N="[\\s|\\(]+("+x+")[,|\\s]+("+x+")[,|\\s]+("+x+")[,|\\s]+("+x+")\\s*\\)?",{CSS_UNIT:new RegExp(x),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+N),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+N),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+N),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 D(e){return!!O.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++)k=m?g(t[S],S):t[S],u(y,S,k)
else for(y=n?new this:[],_=(E=d(t,T)).next;!(b=r(_,E)).done;S++)k=m?a(E,g,[b.value,S],!0):b.value,u(y,S,k)
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),_=o(E),k=s(_),T=i(g,m),S=0,A=v||c,C=t?A(h,k):n||f?A(h,0):void 0;k>S;S++)if((p||S in _)&&(b=T(y=_[S],S,E),e))if(t)C[S]=b
else if(b)switch(e){case 3:return!0
case 5:return y
case 6:return S
case 2:l(C,y)}else switch(e){case 4:return!1
case 7:l(C,y)}return d?-1:r||u?u:C}}
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,_=h("iterator"),k="keys",T="values",S="entries",A=function(){return this}
e.exports=function(e,t,n,a,h,m,C){c(n,t,a)
var I,w,x,R=function(e){if(e===h&&M)return M
if(!E&&e&&e in D)return D[e]
switch(e){case k:case T:case S:return function(){return new n(this,e)}}return function(){return new n(this)}},N=t+" Iterator",O=!1,D=e.prototype,P=D[_]||D["@@iterator"]||h&&D[h],M=!E&&P||R(h),j="Array"===t&&D.entries||P
if(j&&(I=l(j.call(new e)))!==Object.prototype&&I.next&&(o||l(I)===b||(u?u(I,b):s(I[_])||p(I,_,A)),d(I,N,!0,!0),o&&(g[N]=A)),v&&h===T&&P&&P.name!==T&&(!o&&y?f(D,"name",T):(O=!0,M=function(){return r(P,this)})),h)if(w={values:R(T),keys:m?M:R(k),entries:R(S)},C)for(x in w)(E||O||!(x in D))&&p(D,x,w[x])
else i({target:t,proto:!0,forced:E||O},w)
return o&&!C||D[_]===M||p(D,_,M,{name:h}),g[t]=M,w}},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),_=a("".slice),k=(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];(k||S||T||p||h)&&(v=function(e){var t,n,i,r,a,l,u,p=this,h=f(p),A=s(e),C=h.raw
if(C)return C.lastIndex=p.lastIndex,t=o(v,C,A),p.lastIndex=C.lastIndex,t
var I=h.groups,w=T&&p.sticky,x=o(c,p),R=p.source,N=0,O=A
if(w&&(x=E(x,"y",""),-1===b(x,"g")&&(x+="g"),O=_(A,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==y(A,p.lastIndex-1))&&(R="(?: "+R+")",O=" "+O,N++),n=new RegExp("^(?:"+R+")",x)),S&&(n=new RegExp("^"+R+"$(?!\\s)",x)),k&&(i=p.lastIndex),r=o(m,w?n:p,O),w?r?(r.input=_(r.input,N),r[0]=_(r[0],N),r.index=p.lastIndex,p.lastIndex+=r[0].length):p.lastIndex=0:k&&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&&I)for(r.groups=l=d(null),a=0;a<I.length;a++)l[(u=I[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)})),_=u((function(){v.sort(null)})),k=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),_=o(e,E),k=arguments.length
for(0===k?n=i=0:1===k?(n=0,i=E-_):(n=k-2,i=g(h(a(t),0),E-_)),l(E+n-i),p=u(b,i),m=0;m<i;m++)(v=_+m)in b&&d(p,m,b[v])
if(p.length=i,n<i){for(m=_;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>_;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+_]=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),_=/[\uD800-\uDFFF]/g,k=/^[\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))})),A=c((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),C=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)},I=function(e,t,n){var i=v(n,t-1),r=v(n,t+1)
return m(k,e)&&!m(T,r)||m(T,e)&&!m(k,i)?"\\u"+E(y(e,0),16):e}
g&&i({target:"JSON",stat:!0,arity:3,forced:S||A},{stringify:function(e,t,n){var i=d(arguments),r=o(S?C:g,null,i)
return A&&"string"==typeof r?b(r,_,I):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,_="Number",k=a[_],T=s[_],S=k.prototype,A=a.TypeError,C=c("".slice),I=c("".charCodeAt),w=l(_,!k(" 0o1")||!k("0b1")||k("+0x1")),x=function(e){var t,n=arguments.length<1?0:k(function(e){var t=h(e,"number")
return"bigint"==typeof t?t:function(e){var t,n,i,r,o,a,s,c,l=h(e,"number")
if(p(l))throw new A("Cannot convert a Symbol value to a number")
if("string"==typeof l&&l.length>2)if(l=E(l),43===(t=I(l,0))||45===t){if(88===(n=I(l,2))||120===n)return NaN}else if(48===t){switch(I(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=C(l,2)).length,s=0;s<a;s++)if((c=I(o,s))<48||c>r)return NaN
return parseInt(o,i)}return+l}(t)}(e))
return f(S,t=this)&&g((function(){b(t)}))?d(Object(n),this,x):n}
x.prototype=S,w&&!r&&(S.constructor=x),i({global:!0,constructor:!0,wrap:!0,forced:w},{Number:x})
var R=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&&R(s[_],T),(w||r)&&R(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,_=n(7633),k=n(8227),T=n(3635),S=n(8814),A=k("match"),C=r.RegExp,I=C.prototype,w=r.SyntaxError,x=o(I.exec),R=o("".charAt),N=o("".replace),O=o("".indexOf),D=o("".slice),P=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,j=/a/g,L=new C(M)!==M,U=g.MISSED_STICKY,F=g.UNSUPPORTED_Y
if(a("RegExp",i&&(!L||U||T||S||y((function(){return j[A]=!1,C(M)!==M||C(j)===j||"/a/i"!==String(C(M,"i"))}))))){for(var B=function(e,t){var n,i,r,o,a,u,g=d(I,this),m=f(e),v=void 0===t,y=[],_=e
if(!g&&m&&v&&e.constructor===B)return e
if((m||d(I,e))&&(e=e.source,v&&(t=h(_))),e=void 0===e?"":p(e),t=void 0===t?"":p(t),_=e,T&&"dotAll"in M&&(i=!!t&&O(t,"s")>-1)&&(t=N(t,/s/g,"")),n=t,U&&"sticky"in M&&(r=!!t&&O(t,"y")>-1)&&F&&(t=N(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:x(P,D(e,i+1))&&(i+=2,c=!0),r+=t,u++
continue
case">"===t&&c:if(""===d||b(a,d))throw new w("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(C(e,t),g?this:I,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!==_)try{c(a,"source",""===_?"(?:)":_)}catch(e){}return a},G=u(C),H=0;G.length>H;)m(B,C,G[H++])
I.constructor=B,B.prototype=I,v(r,"RegExp",B,{constructor:!0})}_("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),_=n(7829),k=n(6682),T=n(1181),S=n(6395),A=b("matchAll"),C="RegExp String",I=C+" Iterator",w=T.set,x=T.getterFor(I),R=RegExp.prototype,N=TypeError,O=o("".indexOf),D=o("".matchAll),P=!!D&&!y((function(){D("a",/./)})),M=a((function(e,t,n,i){w(this,{type:I,regexp:e,string:t,global:n,unicode:i,done:!1})}),C,(function(){var e=x(this)
if(e.done)return s(void 0,!0)
var t=e.regexp,n=e.string,i=k(t,n)
return null===i?(e.done=!0,s(void 0,!0)):e.global?(""===u(i[0])&&(t.lastIndex=_(n,l(t.lastIndex),e.unicode)),s(i,!1)):(e.done=!0,s(i,!1))})),j=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=!!~O(s,"g"),i=!!~O(s,"u"),t.lastIndex=l(r.lastIndex),new M(t,o,n,i)}
i({target:"String",proto:!0,forced:P},{matchAll:function(e){var t,n,i,o,a=c(this)
if(f(e)){if(P)return D(a,e)}else{if(h(e)&&(t=u(c(g(e))),!~O(t,"g")))throw new N("`.matchAll` does not allow non-global regexes")
if(P)return D(a,e)
if(void 0===(i=m(e,A))&&S&&"RegExp"===p(e)&&(i=j),i)return r(i,e,a)}return n=u(a),o=new RegExp(e,"g"),S?r(j,o,n):o[A](n)}}),S||A in R||v(R,A,j)},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,_=Math.min,k=o([].concat),T=o([].push),S=o("".indexOf),A=o("".slice),C="$0"==="a".replace(/./,"$0"),I=!!/./[b]&&""===/./[b]("a","$0")
a("replace",(function(e,t,n){var o=I?"$":"$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 C,I=[];null!==(C=y(a,s))&&(T(I,C),b);)""===p(C[0])&&(a.lastIndex=g(s,f(a.lastIndex),m))
for(var w,x="",R=0,N=0;N<I.length;N++){for(var O,D=p((C=I[N])[0]),P=E(_(d(C.index),s.length),0),M=[],j=1;j<C.length;j++)T(M,void 0===(w=C[j])?w:String(w))
var L=C.groups
if(h){var U=k([D],M,P,s)
void 0!==L&&T(U,L),O=p(i(r,void 0,U))}else O=v(D,s,P,M,L,r)
P>=R&&(x+=A(s,R,P)+O,R=P+D.length)}return x+A(s,R)}]}),!!s((function(){var e=/./
return e.exec=function(){var e=[]
return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!C||I)},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),_=!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]})),k="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(!k){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"),_=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(_,s)?[s]:[]
for(var S=0,A=0,C=[];A<s.length;){_.lastIndex=v?0:A
var I,w=h(_,v?E(s,A):s)
if(null===w||(I=y(d(_.lastIndex+(v?A:0)),s.length))===S)A=u(s,A,g)
else{if(b(C,E(s,S,A)),C.length===T)return C
for(var x=1;x<=w.length-1;x++)if(b(C,w[x]),C.length===T)return C
A=S=I}}return b(C,E(s,S)),C}]}),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),_=n(298),k=n(3717),T=n(7347),S=n(4913),A=n(6801),C=n(8773),I=n(6840),w=n(2106),x=n(5745),R=n(6119),N=n(421),O=n(3392),D=n(8227),P=n(1951),M=n(511),j=n(8242),L=n(687),U=n(1181),F=n(9213).forEach,B=R("hidden"),G="Symbol",H="prototype",V=U.set,q=U.getterFor(G),K=Object[H],W=r.Symbol,Y=W&&W[H],z=r.RangeError,X=r.TypeError,Q=r.QObject,J=T.f,$=S.f,Z=_.f,ee=C.f,te=a([].push),ne=x("symbols"),ie=x("op-symbols"),re=x("wks"),oe=!Q||!Q[H]||!Q[H].findChild,ae=function(e,t,n){var i=J(K,t)
i&&delete K[t],$(e,t,n),i&&e!==K&&$(K,t,i)},se=c&&u((function(){return 7!==y($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?ae:$,ce=function(e,t){var n=ne[e]=y(Y)
return V(n,{type:G,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)||$(e,B,v(1,y(null))),e[B][i]=!0),se(e,i,n)):$(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=J(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(N,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(Y,this))throw new X("Symbol is not a constructor")
var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=O(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 z))throw e
ae(i,t,a)}}
return c&&oe&&se(K,t,{configurable:!0,set:n}),ce(t,e)},I(Y=W[H],"toString",(function(){return q(this).tag})),I(W,"withoutSetter",(function(e){return ce(O(e),e)})),C.f=de,S.f=le,A.f=ue,T.f=fe,E.f=_.f=pe,k.f=he,P.f=function(e){return ce(D(e),e)},c&&(w(Y,"description",{configurable:!0,get:function(){return q(this).description}}),s||I(K,"propertyIsEnumerable",de,{unsafe:!0}))),i({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:W}),F(b(re),(function(e){M(e)})),i({target:G,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}),j(),L(W,G),N[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\((.*)\)[^)]+$/,_=a("".replace),k=a("".slice)
d(h,"description",{configurable:!0,get:function(){var e=y(this)
if(s(g,e))return""
var t=b(e),n=v?k(t,7,-1):_(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){if("object"!=a(e)||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=a(n))return n
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 w},default:function(){return x}}),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){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(!t){if(Array.isArray(e)||(t=r(e))){t&&(e=t)
var n=0,i=function(){}
return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1
return{s:function(){t=t.call(e)},n:function(){var e=t.next()
return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(s)throw o}}}}(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){if("object"!=f(e)||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=f(n))return n
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){if("object"!=m(e)||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=m(n))return n
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 _(e){return function(e){if(Array.isArray(e))return k(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 k(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)?k(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 k(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 A(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 C(e){var t=function(e){if("object"!=T(e)||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=T(n))return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==T(t)?t:t+""}var I=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),A(this,"input",void 0),A(this,"options",void 0),A(this,"utilities",void 0),A(this,"caretPosition",void 0),A(this,"caretPositionEnd",void 0),A(this,"keyboardDOM",void 0),A(this,"keyboardPluginClasses",void 0),A(this,"keyboardDOMClass",void 0),A(this,"buttonElements",void 0),A(this,"currentInstanceName",void 0),A(this,"allKeyboardInstances",void 0),A(this,"keyboardInstanceNames",void 0),A(this,"isFirstKeyboardInstance",void 0),A(this,"physicalKeyboard",void 0),A(this,"modules",void 0),A(this,"activeButtonClass",void 0),A(this,"holdInteractionTimeout",void 0),A(this,"holdTimeout",void 0),A(this,"isMouseHold",void 0),A(this,"initialized",void 0),A(this,"candidateBox",void 0),A(this,"keyboardRowsDOM",void 0),A(this,"defaultName","default"),A(this,"activeInputElement",null),A(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}})),A(this,"getOptions",(function(){return i.options})),A(this,"getCaretPosition",(function(){return i.caretPosition})),A(this,"getCaretPositionEnd",(function(){return i.caretPositionEnd})),A(this,"registerModule",(function(e,t){i.modules[e]||(i.modules[e]={}),t(i.modules[e])})),A(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){A(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!!_(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(_(n),_(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,_(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,C(i.key),i)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e
var e,t}(),w=I,x=w
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}},72714:(e,t)=>{"use strict"
function n(e,t){(null==t||t>e.length)&&(t=e.length)
for(var n=0,i=Array(t);n<t;n++)i[n]=e[n]
return i}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,l(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){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(!n){if(Array.isArray(e)||(n=u(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 s(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 c(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)||u(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 l(e){var t=function(e){if("object"!=typeof e||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:t+""}function u(e,t){if(e){if("string"==typeof e)return n(e,t)
var i={}.toString.call(e).slice(8,-1)
return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}Object.defineProperty(t,"__esModule",{value:!0}),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self
var d={};({get exports(){return d},set exports(e){d=e}}).exports=function(){var e=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?"),t=/^fs_/
function n(n){if("string"!=typeof n)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+typeof n+".")
var i,r,o=e.exec(n)
return o&&(i=o[1].replace(t,""),r=o[2]),{id:r,type:i}}var i=/(?![^(]*\)),/
return{checkForEntityId:function(t){var n=e.exec(t)
return n?n[2]:t},extractEntityInfoFromUrn:n,urnToObject:function e(t){var r=n(t),o=r.id,a=r.type,s={}
if("("===o.charAt(0)){for(var c,l=o.substring(1,o.length-1).split(i),u=0;c=l[u];++u)0===c.indexOf("urn")&&(l[u]=e(c))
o=l}return s[a]=o,s}}}()
var f=d,p=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")))
return n&&n.length>1?n[1]:null},h={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},g="GUEST",m="MEMBER",v="ENTERPRISE_UNBOUND",y=s(s(s({},g,"li_gc"),m,"li_mc"),v,"li_ec")
s(s(s({},g,"mypreferences/g/guest-cookies"),m,"settings/member-cookies"),v,"mypreferences/e/enterprise-cookies"),Object.freeze(["dark","light"])
var b,E,_,k,T=o((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={},h)t[a]=t[a]||0,0!==t[a]&&(this.consentAvailable=!0),this.optedInConsentMap[a]=1===t[a]||0===t[a]&&1===o})),S=(b=[h.ADVERTISING,h.ANALYTICS_AND_RESEARCH,h.FUNCTIONAL],E=[0,1,2,0],_=function(e){for(var t={},n=0;n<b.length;n++)t[b[n]]=E[e>>2*n&3]
return t},k=function(e){var t=0
return e>=0&&e<=3&&(t=E[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 T}
var r=_(parseInt(i[1],10)),o=new Date(1e3*parseInt(i[2],10)),a=k(parseInt(i[3],10))
return{error:null,consent:new T(r,o,t,a)}},parseConsentBodyEnterpriseUnbound:function(e,t,n){var i=function(e){try{var t=f.urnToObject(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 T}
var r=i.enterpriseAccountId,o=i.enterpriseProfileId,a=new RegExp(["^((?:\\d+,\\d+,\\d+,\\d+,\\d+)(?:\\|(?:\\d+,\\d+,\\d+,\\d+,\\d+))*)","(\\d+)","(\\d+)","(?:(?:.|\\s)+)$"].join(";")),s=e.match(a)
if(!s)return{error:"Invalid consent body encoding",consent:new T}
var l=s[1].split("|").map((function(e){return e.split(",").map((function(e){return parseInt(e,10)}))})).filter((function(e){var t=c(e,4),i=t[1],a=t[2],s=t[3]
return i===r&&a===o&&s===n}))[0]
if(!l)return{error:null,consent:new T}
var u=_(l[0]),d=new Date(1e3*parseInt(s[2],10)),p=k(parseInt(s[3],10))
return{error:null,consent:new T(u,d,v,p)}}}),A=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),C=function(e){var t={}
for(var n in h)t[n]=e
return{error:null,consent:new T(t,null,null,e)}},I=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,o=null
try{o=(r=e,"undefined"==typeof atob&&"undefined"!=typeof Buffer?Buffer.from(r,"base64").toString("binary"):atob(r)).match(A)}catch(e){}if(!o)return{error:"Invalid consent encoding",consent:new T}
var a=parseInt(o[1],10),s=o[2]
return 1===a?t===v?S.parseConsentBodyEnterpriseUnbound(s,n,i):S.parseConsentBody(s,t):{error:"Invalid encoded consent version ".concat(a),consent:new T}},w=o((function e(){i(this,e),this.consent=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("undefined"==typeof document)return{error:"cookie string must be provided in SSR mode",consent:new T}
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 T}
if(!(e!==v||i&&r))return{error:"enterpriseProfileUrn and enterpriseAppInstanceId are required for unbound userMode",consent:new T}
if(!e){var o=p(y[v],t)
if(o&&i&&r){var a=I(o,v,i,r)
if(a.consent.userMode===v||a.error)return a}e=p("liap",t)?p(y[m],t)?m:g:p(y[g],t)?g:m}return function(e,t,n,i){var r=p(y[e],t)
return r?I(r,e,n,i):p(y[g],t)||p(y[m],t)||p(y[v],t)?C(2):C(1)}(e,t,i,r)}()}),[{key:"isAccessAllowedForCategory",value:function(e){return!(this.consent&&!this.consent.error)||!Object.values(h).some((function(t){return t===e}))||this.consent.consent.optedInConsentMap[e]}}]),x="BROWSER_LOCAL_STORAGE",R="BROWSER_SESSION_STORAGE",N=function(e){return e.NONE="NONE",e.AUDIT="AUDIT",e.ENFORCE="ENFORCE",e}({}),O="DATA_BLOCKED",D="DATA_FILTERED",P="DATA_ALLOWED",M="UNAPPROVED_KEY",j="WebStorageTrackerPrivacyEnforcementEvent",L=o((function e(t,n,r){i(this,e),this.trackingCore=t,this.jetCore=n,this.auditCache=new Map,this.isAuditEventEnabled=r}),[{key:"fireJetForErrorEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]
this.jetCore.reportError(new Error(e),t)}},{key:"fireEnforcementAuditEvent",value:function(e,t,n){var i,r,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"UNKNOWN"
!this.isAuditEventEnabled||this.auditCache.has(e)&&null!==(i=this.auditCache.get(e))&&void 0!==i&&i.has(n)||(this.trackingCore.fireEvent(j,{trackerName:e,trackerDomain:window.location.origin,trackerType:t,enforcementAction:n,isReportOnly:o,accessDenialReason:a}),this.auditCache.has(e)?null===(r=this.auditCache.get(e))||void 0===r||r.add(n):this.auditCache.set(e,new Set([n])),console.debug("firing ".concat(j," with ").concat(n," for ").concat(e," [Report-only:").concat(o,"]")))}}])
function U(e){return Array.isArray(e)&&e.every((function(e){return"string"==typeof e.type&&"string"==typeof e.enforcementMode&&Array.isArray(e.trackers)&&e.trackers.every((function(e){return"string"==typeof e.key&&"boolean"==typeof e.isWildCard&&"boolean"==typeof e.isEssential&&Array.isArray(e.categories)}))}))}function F(e){for(var t,n=null!==(t=document.getElementsByTagName("meta"))&&void 0!==t?t:[],i=0;i<n.length;i++){var r=n[i]
if("storage-inventory"===r.getAttribute("name"))try{var o,a=JSON.parse(null!==(o=r.getAttribute("content"))&&void 0!==o?o:"[]")
if(!U(a))throw new SyntaxError("Parsed inventory is not of type Array<StorageTrackerInventory>: ".concat(JSON.stringify(a)))
return a.find((function(t){return t.type===e}))}catch(e){throw new SyntaxError("Failed to parse inventory from meta tag: ".concat(e))}}}var B=o((function e(t){i(this,e),this.type=t?t.type:"UNKNOWN",this.mode=t?t.enforcementMode:N.NONE,this.essentialTrackerWithStaticKey=t?new Set(t.trackers.filter((function(e){return e.isEssential&&!e.isWildCard})).map((function(e){return e.key}))):new Set,this.essentialTrackerWithDynamicKey=t?t.trackers.filter((function(e){return e.isEssential&&e.isWildCard})).map((function(e){return e.key})):new Array,this.nonEssentialTrackerWithStaticKey=t?t.trackers.filter((function(e){return!e.isEssential&&!e.isWildCard})).reduce((function(e,t){return e.set(t.key,t.categories)}),new Map):new Map,this.nonEssentialTrackerWithDynamicKey=t?t.trackers.filter((function(e){return!e.isEssential&&e.isWildCard})).map((function(e){return[e.key,e.categories]})):new Array}),[{key:"_matchesPattern",value:function(e,t){return new RegExp(t).test(e)}},{key:"getType",value:function(){return this.type}},{key:"getMode",value:function(){return this.mode}},{key:"isEssential",value:function(e){if(this.essentialTrackerWithStaticKey.has(e))return!0
var t,n=a(this.essentialTrackerWithDynamicKey)
try{for(n.s();!(t=n.n()).done;){var i=t.value
if(this._matchesPattern(e,i))return!0}}catch(e){n.e(e)}finally{n.f()}return!1}},{key:"getNonEssentialCategories",value:function(e){var t
if(this.nonEssentialTrackerWithStaticKey.has(e))return new Set(null!==(t=this.nonEssentialTrackerWithStaticKey.get(e))&&void 0!==t?t:new Array)
var n,i=a(this.nonEssentialTrackerWithDynamicKey)
try{for(i.s();!(n=i.n()).done;){var r=c(n.value,2),o=r[0],s=r[1]
if(this._matchesPattern(e,o))return new Set(s)}}catch(e){i.e(e)}finally{i.f()}return new Set}},{key:"isApproved",value:function(e){if(this.essentialTrackerWithStaticKey.has(e))return!0
if(this.nonEssentialTrackerWithStaticKey.has(e))return!0
var t,n=a(this.essentialTrackerWithDynamicKey)
try{for(n.s();!(t=n.n()).done;){var i=t.value
if(this._matchesPattern(e,i))return!0}}catch(e){n.e(e)}finally{n.f()}var r,o=a(this.nonEssentialTrackerWithDynamicKey)
try{for(o.s();!(r=o.n()).done;){var s=c(r.value,2),l=s[0]
if(s[1],this._matchesPattern(e,l))return!0}}catch(e){o.e(e)}finally{o.f()}return!1}}]),G=o((function e(){i(this,e)}),[{key:"createService",value:function(e){if(e===x)return new B(F(x))
if(e===R)return new B(F(R))
throw new Error("Tracker type ".concat(e," is not supported"))}}])
t.startWebStorageEnforcement=function(e,t,n,i){var r,o,a=new w,s=new L(e,t,i)
try{r=(new G).createService(x),o=(new G).createService(R)}catch(e){return void s.fireJetForErrorEvent("failed to get tracker inventory from meta tag: ".concat(e))}var c=Storage.prototype.getItem,l=Storage.prototype.setItem
function u(e,t){if(t.getMode()===N.NONE)return{allowed:!0}
if(!t.isApproved(e))return{allowed:!1,reason:M}
if(t.isEssential(e))return{allowed:!0}
var n=t.getNonEssentialCategories(e)
return Array.from(n).some((function(e){return!a.isAccessAllowedForCategory(e)}))?{allowed:!1,reason:"USER_NOT_CONSENTED"}:{allowed:!0}}function d(e,t,n){var i=u(t,n)
return i.allowed?(s.fireEnforcementAuditEvent(t,n.getType(),P,n.getMode()===N.AUDIT),c.apply(e,[t])):n.getMode()===N.AUDIT?(p(t,i.reason),s.fireEnforcementAuditEvent(t,n.getType(),D,!0,i.reason),c.apply(e,[t])):(p(t,i.reason),s.fireEnforcementAuditEvent(t,n.getType(),D,n.getMode()===N.AUDIT,i.reason),null)}function f(e,t,n,i){var r=u(t,i)
r.allowed?(s.fireEnforcementAuditEvent(t,i.getType(),P,i.getMode()===N.AUDIT),l.apply(e,[t,n])):i.getMode()===N.AUDIT?(p(t,r.reason),s.fireEnforcementAuditEvent(t,i.getType(),O,!0,r.reason),l.apply(e,[t,n])):(p(t,r.reason),s.fireEnforcementAuditEvent(t,i.getType(),O,!1,r.reason))}function p(e,t){t===M&&console.warn("Access to the browser storage for the unapproved key ".concat(e," was blocked. If you own this key, please visit https://go/userprivacy for more details on how to register it."))}Storage.prototype.getItem=function(e){return this===window.localStorage&&r.getMode()!=N.NONE?d(this,e,r):this===window.sessionStorage&&o.getMode()!=N.NONE?d(this,e,o):c.apply(this,[e])},Storage.prototype.setItem=function(e,t){return this===window.localStorage&&r.getMode()!=N.NONE?f(this,e,t,r):this===window.sessionStorage&&o.getMode()!=N.NONE?f(this,e,t,o):l.apply(this,[e,t])}}},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){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 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 function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return e}(e)}(this,n)}}function p(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)||g(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 h(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(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 g(e,t){if(e){if("string"==typeof e)return m(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)?m(e,t):void 0}}function m(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 v(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)}var y,b,E,_="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",k=["b","del","em","i","s","strong","sub","sup"],T=k.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"]),S=[_,"alt|checked|selected|colgroup|cols|colspan|disabled|height|hidden|maxlength|method|multiple|name|placeholder|readonly|rel|required|rows|rowspan|spellcheck|target|title|width","border|caption|color|controls|coords|hreflang|label|lang|loop|marginheight|marginwidth|preload|reversed|type|usemap|clear|headers|ismap|start|datetime|accept|max|min|size|step|style|cellspacing|cellpadding|attributionsrc"].join("|"),A=o((function e(){i(this,e)})),C="[ \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||T,n=e.attrs||S,i=e.checkUrlAttrs||!1,0!==a&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+=C,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+=")"+C+")+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function w(e){return I({tags:e=e||T,checkUrlAttrs:!0})}function x(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?!w(n).test(e):i?!x.R_UNSAFE_CUSTOM_ELEMENT.test(e):!x.R_UNSAFE_HTML.test(e)}function R(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function N(e,t){var n=String(null!=e?e:""),i=n
return x(n,t)||(i=R(i),v("Content contains tags or attributes that are not allowed:\nContent: "+n,"error")),i}x.R_UNSAFE_HTML=w(),x.R_UNSAFE_CUSTOM_ELEMENT=I([{tags:T,checkUrlAttrs:!0},{tags:[(y={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[_,y.attrs].join("|"),checkUrlAttrs:!1}])
var O,D,P=function(){if("undefined"!=typeof window){var e=window.trustedTypes
if(e&&e.createPolicy&&e.isHTML)return e}}()
if(P){var M=P.createPolicy("jSecure",{createHTML:function(e){return e}})
b=function(e){return M.createHTML(e)},E=function(e){return P.isHTML(e)}}else{var j=function(e){a(n,e)
var t=f(n)
function n(){return i(this,n),t.apply(this,arguments)}return o(n,[{key:"toHTML",value:function(){return this.toString()}}]),n}(d(String))
b=function(e){return new j(e)},E=function(e){return null!==e&&"object"===n(e)&&"toHTML"in e&&"function"==typeof e.toHTML}}function L(e){return b(String(e))}function U(){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 E(e)?t:N(t)})).join(""))}function F(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r]
return function(e,t){return Array.isArray(e)&&Object.prototype.hasOwnProperty.call(e,"raw")&&Object.isFrozen(e)&&e.length===t.length+1}(e,i)?String.raw.apply(String,[{raw:e}].concat(h(function(e){return e.map((function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:""
if(t&&"object"===n(t)&&"__html"in t){if(E(t.__html))return t.__html
t=t.__html}var i=String(null!==(e=t)&&void 0!==e?e:"")
return E(t)&&(i=z(i)),K(function(){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​:")}(i))}))}(i)))):U.apply(void 0,[e].concat(i))}function B(){return(O=O||document.implementation.createHTMLDocument("")).createElement("template")}function G(e){var t
return(D=D||B()).innerHTML=L(e),null!==(t=D.content.textContent)&&void 0!==t?t:""}var H=/[&<>"'\u0000\\=]/g,V="�",q={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":V,"\\":"&#92;","=":"&#61;"}
function K(e){return null===(null!=e?e:null)?null:String(e).replace(H,(function(e){return q[e]}))}var W=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi,Y={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"',apos:"'"}
function z(e){return null===(null!=e?e:null)?null:String(e).replace(W,(function(e,n,i,r){return n?function(e){if(t(Y,e))return Y[e]
if("undefined"==typeof document)return e
var n=G("&".concat(e,";"))
return Y[e]=n,n}(n):i||r?String.fromCodePoint(parseInt(i||r,i?16:10)||65533):V}))}var X={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,"",""]},Q=/<([\w:]+)/
function J(e){return e in X}function $(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=p(Q.exec(i)||["",""],2)[1]
if(void 0!==l){var u=l.toLowerCase(),d=J(u)&&X[u]||X._default
for(te(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,h(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 Z(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 A||"number"==typeof a))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.")
return a?(a=s?"".concat(K(String(null!==(o=a)&&void 0!==o?o:""))):a.toString(),i[r]=a,a):e}return e}))}(e,n):e
return N(r,i)}var ee=Z
function te(e,t,n){var i=Z(t,n)
return i&&/[<&]/.test(i)?e.innerHTML=L(i):i&&(e.textContent=i),i}var ne=function(e){a(n,e)
var t=f(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:(x(e,{allowTags:this.tags,hasCustomElementMarkup:this.options.hasCustomElementMarkup})||(n=e,e=R(e),v("UnsafeString contains tags or attributes that are not allowed.\nString: "+n,"error")),this.strValue=e,e)}}]),n}(A),ie=/ /g,re=/[\s\u0000<>"]|%00/,oe=/\\/,ae=/([/\\]|^)([.]|%2e){2}([/\\]|$)/i,se=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 ce(e){var t,n="invalid://"
if("string"!=typeof e)return v("jSecure Warning: url must be a string","error"),n
if((t=e.trim()).indexOf(" ")>-1&&(v("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(ie,"+")),!se.test(t))return v("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),n
if(re.test(t))return v("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),ae.test(i))return v("jSecure Error: malicious data found in url path: "+r,"error"),n}catch(e){o=!0}if(o)return v("jSecure Error: malformed url path detected: "+r),n
if(oe.test(r)||ae.test(r))return v("jSecure Error: malicious data found in url path: "+r,"error"),n}return e}var le={redirect:function(e){window&&window.location&&(window.location.href=e)}},ue={ALLOWED_TAGS:T,FORMATTING_TAGS:k,createTrustedHTML:U,getTrustedHTML:function(){for(var e,t=B(),n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r]
return(e=t.content).append.apply(e,h(i.map((function(e){return e.cloneNode(!0)})))),L(t.innerHTML)},parse:function(e,t){var n="string"==typeof e&&t?L(t(e)):U(e),i=B()
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 U(F.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(F.apply(void 0,[e].concat(n)))},getText:function(e){var t
return"undefined"==typeof document?null!==(t=z(function(e){return e.replace(/<[^>]*>|<|>/g,"")}(String(e))))&&void 0!==t?t:"":G(e)},htmlEncode:K,htmlUnencode:z,reEncode:function(e){return K(z(e))},sanitizeHTML:N,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 ne?o+=r:o+=K(String(null!==(i=r)&&void 0!==i?i:"")))})),"".concat(N(o))},_redirector:le,redirect:function(e){var t=ce(e)
t===e&&le.redirect(t)},sanitizeUrl:ce,log:v,parseHTML:function(e,t){var n
if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=$([e],t)
else{if(!Array.isArray(e))return e
n=$(e,t)}return Array.from(n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:ee,setElementContent:te,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 ne(t,n)}}
e.exports=ue},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-android",displayName:"Groups"},hiring:{email:"ask_online_jobs",displayName:"Hiring (LTS/Jobs team: job creation and management)"},"infra-ux":{email:"ask_infra_ux_bugs",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:{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)"},lss:{email:"ask_lss",displayName:"LSS (Sales Navigator)"},seekerCoach:{email:"ask_seeker_coach",displayName:"Seeker Coach"},uapeVendor:{email:"ask_uapevendor",displayName:"UAPe x Vendor"}},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-ios",displayName:"Groups"},hiring:{email:"ask_online_jobs",displayName:"Hiring (LTS/Jobs team: job creation and management)"},"infra-ux":{email:"ask_infra_ux_bugs",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:{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)"},lss:{email:"ask_lss",displayName:"LSS (Sales Navigator)"},seekerCoach:{email:"ask_seeker_coach",displayName:"Seeker Coach"},uapeVendor:{email:"ask_uapevendor",displayName:"UAPe x Vendor"}},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"},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-web",displayName:"Groups: Create, discover, view, admin"},guide:{email:"ask_guide",displayName:"Guide: Core",titlePrefix:"[Guide]",jiraComponent:"Guide",labels:["guide_feedback_web"]},guideSeller:{email:"ask_guide_seller",displayName:"Guide Seller",titlePrefix:"[Guide Seller]",jiraComponent:"voyager-web",labels:["guide_seller_feedback_web"]},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_bugs",displayName:"Infra UX: Components, layout, consistency",jiraComponent:"ux"},internal:{email:"ask_infra_ux_bugs",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"},"jobs-semantic-search":{email:"voyager-careers-feedback",displayName:"Semantic Job Search",titlePrefix:"Semantic Job Search",jiraComponent:"voyager-web",labels:["seeker-semantic-search-feedback"]},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"},lss:{email:"ask_lss",displayName:"LSS (Sales Navigator)"},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)"},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"},uapeVendor:{email:"ask_uapevendor",displayName:"UAPe x Vendor"}}},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 _(e){const t=JSON.parse(JSON.stringify(e))
return function(e){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 k(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 A=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 C="application/x-www-form-urlencoded"
function I(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: "+C,"",n,"--"+t,"Content-Type: application/json","",e.body,"--"+t+"--"].join("\r\n")}else o=C,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 w(e,t={}){return x(e)?R(e,t):{url:e,request:t}}function x(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=I(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=k,t.checkAndEncodeLongUrl=w,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=I,t.extractOriginAndRestFromUrl=s,t.extractPathAndQueryStringFromUrl=a,t.httpStatus=A,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=_,t.queryTunnel=function(e){const{origin:t,rest:n}=s(e.url)
if(x(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}()?w(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=x},78640:(e,t,n)=>{"use strict"
var i=n(51745),r=n(1882),o=function(e){return e.MultivariantPlaylist="MULTIVARIANT_PLAYLIST",e.VariantPlaylist="VARIANT_PLAYLIST",e.InitSegment="INIT_SEGMENT",e.Segment="SEGMENT",e}({})
function a(e,t){(null==t||t>e.length)&&(t=e.length)
for(var n=0,i=Array(t);n<t;n++)i[n]=e[n]
return i}function s(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n
throw new TypeError("Private element is not present on this object")}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(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){return e.get(s(e,t))}function p(e,t,n){u(e,t),t.set(e,n)}function h(e,t,n){return e.set(s(e,t),n),n}function g(e,t){u(e,t),t.add(e)}function m(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,b(i.key),i)}}function v(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function y(){y=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 N(i||[])
return r(a,"_invoke",{value:I(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}}}t.wrap=u
var f="suspendedStart",p="suspendedYield",h="executing",g="completed",m={}
function v(){}function b(){}function E(){}var _={}
l(_,a,(function(){return this}))
var k=Object.getPrototypeOf,T=k&&k(k(O([])))
T&&T!==n&&i.call(T,a)&&(_=T)
var S=E.prototype=v.prototype=Object.create(_)
function A(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=d(e[r],e,o)
if("throw"!==c.type){var l=c.arg,u=l.value
return u&&"object"==typeof 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 I(t,n,i){var r=f
return function(o,a){if(r===h)throw 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=w(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===f)throw r=g,i.arg
i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg)
r=h
var l=d(t,n,i)
if("normal"===l.type){if(r=i.done?g:p,l.arg===m)continue
return{value:l.arg,done:i.done}}"throw"===l.type&&(r=g,i.method="throw",i.arg=l.arg)}}}function w(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,w(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=d(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 x(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 N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function O(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(typeof t+" is not iterable")}return b.prototype=E,r(S,"constructor",{value:E,configurable:!0}),r(E,"constructor",{value:b,configurable:!0}),b.displayName=l(E,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor
return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,l(e,c,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},A(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()}))},A(S),l(S,c,"Generator"),l(S,a,(function(){return this})),l(S,"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=O,N.prototype={constructor:N,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 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 Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:O(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),m}},t}function b(e){var t=function(e){if("object"!=typeof e||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==typeof t?t:t+""}var E="media-infra-prefetch-cache",_="media-infra-cache-metadata"
function k(){var e,t,n=function(){if(!window.localStorage)return null
var e=window.localStorage.getItem("videojs-vhs")
if(!e)return null
try{return JSON.parse(e)}catch(e){return null}}(),i=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection,r=null!=i&&i.downlink?1e3*i.downlink*1e3:null
return null!==(e=null!==(t=null==n?void 0:n.bandwidth)&&void 0!==t?t:r)&&void 0!==e?e:8e6}function T(){try{var e=window.localStorage.getItem(_)
return e?JSON.parse(e):{cachedItems:[]}}catch(e){return null}}function S(e){window.localStorage.setItem(_,JSON.stringify(e))}function A(e){var t=T()
t&&(t.cachedItems=t.cachedItems.filter((function(t){return t.url!==e.url})),S(t))}var C=["application/vnd.apple.mpegurl","application/x-mpegurl"]
function I(e,t){var n=new r.Parser
n.push(e),n.end()
var o=n.manifest
return o.resolvedUri=t,o.segments.forEach((function(e){return function(e,t){e.resolvedUri=i.resolveUrl(t,e.uri)
var n=e.key,r=e.map
n&&(n.resolvedUri=i.resolveUrl(t,n.uri)),r&&(r.resolvedUri=i.resolveUrl(t,r.uri))}(e,o.resolvedUri)})),o.playlists&&o.playlists.forEach((function(e){e.resolvedUri=i.resolveUrl(o.resolvedUri,e.uri)})),o}function w(e,t){return!(!e||!C.includes(e.toLowerCase())||!t.split("\n").find((function(e){return e.trim().startsWith("#EXTINF:")})))}function x(e,t){for(var n=e.cachedItems,i=0,r=[],o=0;o<n.length;o++){var a=n[o]
if(r.push(a),(i+=a.contentLength)>=t)break}return r}function R(e,t){return N.apply(this,arguments)}function N(){return(N=l(y().mark((function e(t,n){var i,r,o,a,s,c
return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t>=n)){e.next=2
break}return e.abrupt("return",!0)
case 2:if(null!==(i=window.navigator.storage)&&void 0!==i&&i.estimate){e.next=4
break}return e.abrupt("return",!1)
case 4:return e.next=6,window.navigator.storage.estimate()
case 6:return r=e.sent,o=r.quota,a=void 0===o?0:o,s=r.usage,c=void 0===s?0:s,e.abrupt("return",a-c<=0)
case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var O=new WeakMap,D=new WeakSet,P=function(){return v((function e(){d(this,e),g(this,D),p(this,O,void 0)}),[{key:"add",value:(e=l(y().mark((function e(t,n,i){var r,a,c,l,u,d
return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s(D,this,B).call(this)
case 2:return e.next=4,s(D,this,M).call(this)
case 4:return r=e.sent,e.next=7,r.match(t.asset.url)
case 7:if(!(a=e.sent)){e.next=11
break}return null==i||i(a),e.abrupt("return")
case 11:return e.prev=11,e.next=14,r.add(t.asset.url)
case 14:e.next=20
break
case 16:return e.prev=16,e.t0=e.catch(11),null==i||i(),e.abrupt("return")
case 20:return e.next=22,r.match(t.asset.url)
case 22:if(c=e.sent,null==i||i(null==c?void 0:c.clone()),!c){e.next=44
break}return e.next=27,c.text()
case 27:if(l=e.sent,s(D,this,H).call(this,c,l,t.asset.url),t.assetType!==o.MultivariantPlaylist||!t.shouldFetchVariantPlaylist){e.next=33
break}return(u=s(D,this,V).call(this,{contentType:c.headers.get("content-type"),responseText:l,multivariantUrl:t.asset.url}))&&n({asset:{url:u},assetType:o.VariantPlaylist,shouldFetchVariantPlaylist:!1,shouldFetchFirstSegment:t.shouldFetchFirstSegment,minBandwidthForSegmentPrefetch:t.minBandwidthForSegmentPrefetch,index:t.index}),e.abrupt("return")
case 33:if(t.assetType!==o.VariantPlaylist||!t.shouldFetchFirstSegment){e.next=44
break}return e.next=36,s(D,this,q).call(this,t.asset.url)
case 36:if(null!=(d=e.sent)&&d.initSegmentUrl&&n({asset:{url:d.initSegmentUrl},assetType:o.InitSegment,shouldFetchVariantPlaylist:!1,shouldFetchFirstSegment:!1,index:t.index}),!t.minBandwidthForSegmentPrefetch){e.next=42
break}if(!(k()<t.minBandwidthForSegmentPrefetch)){e.next=42
break}return e.abrupt("return")
case 42:return null!=d&&d.segmentUrl&&n({asset:{url:d.segmentUrl},assetType:o.Segment,shouldFetchVariantPlaylist:!1,shouldFetchFirstSegment:!1,index:t.index}),e.abrupt("return")
case 44:case"end":return e.stop()}}),e,this,[[11,16]])}))),function(t,n,i){return e.apply(this,arguments)})}])
var e}()
function M(){return j.apply(this,arguments)}function j(){return(j=l(y().mark((function e(){var t
return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=f(O,this))||void 0===t){e.next=4
break}e.next=11
break
case 4:return e.t0=h,e.t1=O,e.t2=this,e.next=9,window.caches.open(E)
case 9:e.t3=e.sent,(0,e.t0)(e.t1,e.t2,e.t3)
case 11:return e.abrupt("return",f(O,this))
case 12:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function L(){var e=T()
return e?e.cachedItems.reduce((function(e,t){return e+t.contentLength}),0):0}function U(){return F.apply(this,arguments)}function F(){return F=l(y().mark((function e(){var t,n,i
return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=T()){e.next=3
break}return e.abrupt("return")
case 3:return n=x(t,2621440),e.next=6,s(D,this,M).call(this)
case 6:return i=e.sent,e.next=9,Promise.all(n.map(function(){var e=l(y().mark((function e(t){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.delete(t.url)
case 2:A(t)
case 3:case"end":return e.stop()}}),e)})))
return function(t){return e.apply(this,arguments)}}()))
case 9:case"end":return e.stop()}}),e,this)}))),F.apply(this,arguments)}function B(){return G.apply(this,arguments)}function G(){return(G=l(y().mark((function e(){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,R(s(D,this,L).call(this),10485760)
case 2:if(!e.sent){e.next=5
break}return e.next=5,s(D,this,U).call(this)
case 5:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function H(e,t,n){var i=e.headers.get("content-length"),r={contentLength:i?parseInt(i):t.length,url:n},o=T()
o&&(o.cachedItems.push(r),S(o))}function V(e){var t=e.contentType,n=e.responseText,r=e.multivariantUrl,o=function(e,t){return!(!e||!C.includes(e.toLowerCase())||!t.split("\n").find((function(e){return e.trim().startsWith("#EXT-X-STREAM-INF:")})))}(t,n)
if(o){var a=function(e,t){var n=I(e,t).playlists
if(n.length){var r=k()
n.sort((function(e,t){return t.attributes.BANDWIDTH-e.attributes.BANDWIDTH}))
var o=n.filter((function(e){var t=e.attributes.CODECS
return!t||i.codecs.browserSupportsCodec(t)})),a=o.filter((function(e){return 1.2*e.attributes.BANDWIDTH<=r}))[0]
return a?a.resolvedUri:o.at(-1).resolvedUri}}(n,r)
if(a)return a}}function q(e){return K.apply(this,arguments)}function K(){return(K=l(y().mark((function e(t){var n,i,r,o,a,c,l,u
return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s(D,this,M).call(this)
case 2:return i=e.sent,e.next=5,i.match(t)
case 5:if(r=e.sent){e.next=8
break}return e.abrupt("return")
case 8:return o=r.headers.get("content-type"),e.next=11,r.text()
case 11:if(a=e.sent,w(o,a)){e.next=15
break}return e.abrupt("return")
case 15:if(c=I(a,t).segments[0]){e.next=18
break}return e.abrupt("return")
case 18:return l=null===(n=c.map)||void 0===n?void 0:n.resolvedUri,u=c.resolvedUri,e.abrupt("return",{initSegmentUrl:l,segmentUrl:u})
case 21:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}var W=new WeakMap,Y=v((function e(){d(this,e),p(this,W,[])}),[{key:"enqueue",value:function(e){var t=f(W,this).findIndex((function(t){return t.index>=e.index}));-1!==t?f(W,this).splice(t,0,e):f(W,this).push(e)}},{key:"dequeue",value:function(){return f(W,this).shift()}},{key:"remove",value:function(e){h(W,this,f(W,this).filter((function(t){return t.asset.url!==e})))}},{key:"dequeueType",value:function(e){for(var t=0;t<f(W,this).length;t++){var n=f(W,this)[t]
if(n&&e.includes(n.assetType))return f(W,this).splice(t,1),n}}},{key:"peekType",value:function(e){return f(W,this).find((function(t){return e.includes(null==t?void 0:t.assetType)}))}}]),z=[o.MultivariantPlaylist,o.VariantPlaylist,o.InitSegment],X=[o.MultivariantPlaylist,o.VariantPlaylist],Q=new WeakMap,J=new WeakMap,$=new WeakMap,Z=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,ie=new WeakMap,re=new WeakMap,oe=new WeakMap,ae=new WeakSet,se=v((function e(){d(this,e),g(this,ae),p(this,Q,void 0),p(this,J,void 0),p(this,$,void 0),p(this,Z,void 0),p(this,ee,0),p(this,te,void 0),p(this,ne,void 0),p(this,ie,void 0),p(this,re,void 0),p(this,oe,void 0),h(Q,this,new P),h(J,this,new Y),h($,this,[]),h(Z,this,[]),h(re,this,0)}),[{key:"updateConfig",value:function(e){var t
h(te,this,e.maxParallelRequests),h(ne,this,e.maxParallelSegmentRequests),h(ie,this,e.maxParallelSmallFileRequests),h(re,this,null!==(t=e.maxBlockingSegmentSlots)&&void 0!==t?t:0),h(oe,this,e.minBandwidthForSegmentPrefetch)}},{key:"push",value:function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3]
window.caches&&window.localStorage&&(f(J,this).enqueue({asset:e,assetType:t,index:f(ee,this),shouldFetchVariantPlaylist:i,shouldFetchFirstSegment:r,minBandwidthForSegmentPrefetch:f(oe,this)}),h(ee,this,(n=f(ee,this),++n)),s(ae,this,le).call(this))}},{key:"isActiveRequest",value:function(e){return!!f($,this).find((function(t){return t.asset.url===e.url}))||!!f(Z,this).find((function(t){return t.asset.url===e.url}))}},{key:"removeRequestFromQueue",value:function(e){f(J,this).remove(e.url)}},{key:"registerActiveRequestCallback",value:function(e,t){var n=s(ae,this,fe).call(this,e)
n&&(n.callbacks?n.callbacks.push(t):n.callbacks=[t])}},{key:"getActiveUrl",value:function(e){var t,n=f($,this).find((function(t){var n=t.asset
return e.includes(n.url)}))||f(Z,this).find((function(t){var n=t.asset
return e.includes(n.url)}))
return(null==n||null===(t=n.asset)||void 0===t?void 0:t.url)||void 0}}])
function ce(){if("number"!=typeof f(ne,this)||"number"!=typeof f(ie,this))return"number"==typeof f(te,this)?f($,this).length+f(Z,this).length<f(te,this)?f(J,this).dequeue():void 0:0===f($,this).length&&0===f(Z,this).length?f(J,this).dequeue():void 0
var e,t=f(ne,this)-f($,this).length
if(t>0){var n=f(J,this).peekType([o.Segment]),i=(e=f(Z,this),function(e){if(Array.isArray(e))return a(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 a(e,t)
var n={}.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)?a(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.")}()).filter((function(e){return X.includes(e.assetType)})).sort((function(e,t){return e.index-t.index})),r=f(re,this)&&f(re,this)>=t&&i[0]&&n&&i[0].index<n.index
if(n&&!r)return f(J,this).dequeueType([o.Segment])}if(f(Z,this).length<f(ie,this)){var s=f(J,this).dequeueType(z)
if(s)return s}}function le(){var e=s(ae,this,ce).call(this)
e&&(e.assetType===o.Segment?f($,this).push(e):f(Z,this).push(e),s(ae,this,ue).call(this,e),s(ae,this,le).call(this))}function ue(e){return de.apply(this,arguments)}function de(){return(de=l(y().mark((function e(t){var n=this
return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f(Q,this).add(t,(function(e){f(J,n).enqueue(e)}),(function(e){var n
null===(n=t.callbacks)||void 0===n||n.forEach((function(t){t(e)}))}))
case 2:t.assetType===o.Segment?h($,this,f($,this).filter((function(e){return e!==t}))):h(Z,this,f(Z,this).filter((function(e){return e!==t}))),s(ae,this,le).call(this)
case 4:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function fe(e){return f($,this).find((function(t){return t.asset.url===e.url}))||f(Z,this).find((function(t){return t.asset.url===e.url}))}var pe,he=new WeakMap,ge=new WeakMap,me=function(){return v((function e(t){d(this,e),p(this,he,void 0),p(this,ge,void 0),h(ge,this,t)}),[{key:"getResponse",value:(e=l(y().mark((function e(t){var n
return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(n=f(he,this))||void 0===n){e.next=4
break}e.next=11
break
case 4:return e.t0=h,e.t1=he,e.t2=this,e.next=9,window.caches.open(E)
case 9:e.t3=e.sent,(0,e.t0)(e.t1,e.t2,e.t3)
case 11:return e.next=13,f(he,this).match(t)
case 13:return e.abrupt("return",e.sent)
case 14:case"end":return e.stop()}}),e,this)}))),function(t){return e.apply(this,arguments)})},{key:"isActiveRequest",value:function(e){return f(ge,this).isActiveRequest(e)}},{key:"registerActiveRequestCallback",value:function(e,t){f(ge,this).registerActiveRequestCallback(e,t)}},{key:"removeRequestFromQueue",value:function(e){f(ge,this).removeRequestFromQueue(e)}},{key:"getPrefetchUrl",value:function(e){var t=T()
if(t){var n=t.cachedItems.find((function(t){var n=t.url
return e.includes(n)}))
if(n)return n.url}return f(ge,this).getActiveUrl(e)}}])
var e}()
t.registerAsset=function(e,t,n,i){var r,a,s
null!==(r=pe)&&void 0!==r||(pe=new se),null!==(s=(a=window).mediaInfraWebMediaPrefetching)&&void 0!==s||(a.mediaInfraWebMediaPrefetching=new me(pe)),i&&pe.updateConfig(i),pe.push(e,o.MultivariantPlaylist,t,n)}},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:()=>r,CommonFeaturesAccessor:()=>i,EXTENSION_PREFIX:()=>u,compressToBase64:()=>U,dfpAndroidFeaturesKeyEncodingMap:()=>N,dfpAndroidTopLevelKeyEncodingMap:()=>O,dfpIosFeaturesKeyEncodingMap:()=>D,dfpIosPayloadKeysEncodingMap:()=>P,dnaTopLevelKeyEncodingMap:()=>R,encodeDFPAndroid:()=>j,encodeDFPIos:()=>L,encodeDNA:()=>M,fetchExtensions:()=>c,fireExtensionDetectedEvents:()=>l,fireSpectroscopyEvent:()=>h,getDocument:()=>d,isBrowser:()=>a,isUserAgentChrome:()=>s,parseFoundString:()=>f,scanDOMForPrefix:()=>p}),function(){class e{static x64Add(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 x64Multiply(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 x64Rotl(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 x64LeftShift(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 x64Xor(e,t){return[e[0]^t[0],e[1]^t[1]]}static x64Fmix(t){return t=e.x64Xor(t,[0,t[0]>>>1]),t=e.x64Multiply(t,[4283543511,3981806797]),t=e.x64Xor(t,[0,t[0]>>>1]),t=e.x64Multiply(t,[3301882366,444984403]),e.x64Xor(t,[0,t[0]>>>1])}static x64hash128(t,n){n=n||0
const i=(t=t||"").length%16,r=t.length-i
let o=[0,n],a=[0,n],s=[0,0],c=[0,0]
const l=[2277735313,289559509],u=[1291169091,658871167]
let d
for(d=0;d<r;d+=16)s=[255&t.charCodeAt(d+4)|(255&t.charCodeAt(d+5))<<8|(255&t.charCodeAt(d+6))<<16|(255&t.charCodeAt(d+7))<<24,255&t.charCodeAt(d)|(255&t.charCodeAt(d+1))<<8|(255&t.charCodeAt(d+2))<<16|(255&t.charCodeAt(d+3))<<24],c=[255&t.charCodeAt(d+12)|(255&t.charCodeAt(d+13))<<8|(255&t.charCodeAt(d+14))<<16|(255&t.charCodeAt(d+15))<<24,255&t.charCodeAt(d+8)|(255&t.charCodeAt(d+9))<<8|(255&t.charCodeAt(d+10))<<16|(255&t.charCodeAt(d+11))<<24],s=e.x64Multiply(s,l),s=e.x64Rotl(s,31),s=e.x64Multiply(s,u),o=e.x64Xor(o,s),o=e.x64Rotl(o,27),o=e.x64Add(o,a),o=e.x64Add(e.x64Multiply(o,[0,5]),[0,1390208809]),c=e.x64Multiply(c,u),c=e.x64Rotl(c,33),c=e.x64Multiply(c,l),a=e.x64Xor(a,c),a=e.x64Rotl(a,31),a=e.x64Add(a,o),a=e.x64Add(e.x64Multiply(a,[0,5]),[0,944331445])
switch(s=[0,0],c=[0,0],i){case 15:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(d+14)],48))
case 14:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(d+13)],40))
case 13:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(d+12)],32))
case 12:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(d+11)],24))
case 11:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(d+10)],16))
case 10:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(d+9)],8))
case 9:c=e.x64Xor(c,[0,t.charCodeAt(d+8)]),c=e.x64Multiply(c,u),c=e.x64Rotl(c,33),c=e.x64Multiply(c,l),a=e.x64Xor(a,c)
case 8:s=e.x64Xor(s,e.x64LeftShift([0,t.charCodeAt(d+7)],56))
case 7:s=e.x64Xor(s,e.x64LeftShift([0,t.charCodeAt(d+6)],48))
case 6:s=e.x64Xor(s,e.x64LeftShift([0,t.charCodeAt(d+5)],40))
case 5:s=e.x64Xor(s,e.x64LeftShift([0,t.charCodeAt(d+4)],32))
case 4:s=e.x64Xor(s,e.x64LeftShift([0,t.charCodeAt(d+3)],24))
case 3:s=e.x64Xor(s,e.x64LeftShift([0,t.charCodeAt(d+2)],16))
case 2:s=e.x64Xor(s,e.x64LeftShift([0,t.charCodeAt(d+1)],8))
case 1:s=e.x64Xor(s,[0,t.charCodeAt(d)]),s=e.x64Multiply(s,l),s=e.x64Rotl(s,31),s=e.x64Multiply(s,u),o=e.x64Xor(o,s)}return o=e.x64Xor(o,[0,t.length]),a=e.x64Xor(a,[0,t.length]),o=e.x64Add(o,a),a=e.x64Add(a,o),o=e.x64Fmix(o),a=e.x64Fmix(a),o=e.x64Add(o,a),a=e.x64Add(a,o),("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)}}class t{static each(e,t){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach)e.forEach(t)
else if(e.length===+e.length)for(let n=0,i=e.length;n<i;n++)t(e[n],n,e)
else for(let n in e)e.hasOwnProperty(n)&&t(e[n],n,e)}static map(e,n){let i=[]
return null==e?i:Array.prototype.map&&e.map===Array.prototype.map?e.map(n):(t.each(e,(function(e,t,r){i.push(n(e,t,r))})),i)}static getIPs(e,t){let n={},i=new(window.RTCPeerConnection||window.webkitRTCPeerConnection||window.mozRTCPeerConnection||window.msRTCPeerConnection)({iceServers:[{urls:"stun:stun.l.google.com:19302"}]},{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})/.exec(e)[1]
n[t]=!0}catch(e){}}
let o=!1
const a=function(){if(!0===o)return
o=!0
const e=i.localDescription
null!==e&&e.sdp.split("\n").forEach((function(e){0!==e.indexOf("a=candidate:")&&0!==e.indexOf("c=IN")||r(e)})),t(Object.keys(n))}
i.onicecandidate=function(e){e.candidate&&r(e.candidate.candidate)},i.onicegatheringstatechange=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.setLocalDescription(e,(function(){}),(function(){}))}),(function(){}))}setTimeout((function(){a()}),2e3)}static automationKey(e,n){if(t.getHasLiedBrowser())return void e("undetected, fake browser")
const i=t.getBrowserNameAndVersion().split(" ")[0]
"Chrome"!==i||!0!==navigator.webdriver?"Firefox"===i&&window.document.documentElement.getAttribute("webdriver")||"_Selenium_IDE_Recorder"in window||"__webdriver_script_fn"in document?e("Selenium"):window.callPhantom||window._phantom?e("PhantomJS"):e(n.NOT_AVAILABLE):e("Selenium")}static webRtcKey(e,n){try{t.getIPs(n,(t=>{e({ips:t})}))}catch(t){e({exception:{name:t.name,message:t.message}})}}static enumerateDevicesKey(e,n){if(!t.isEnumerateDevicesSupported())return e(n.NOT_AVAILABLE)
navigator.mediaDevices.enumerateDevices().then((function(t){e(t.map((function(e){let t={}
return t.id=e.deviceId,t.gid=e.groupId,t.kind=e.kind,t.label=e.label,t})))})).catch((function(t){e(t)}))}static isEnumerateDevicesSupported(){return navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices}static audioKey(e,n){let i=n.audio
if(i.excludeIOS11&&navigator.userAgent.match(/OS 11.+Version\/11.+Safari/))return e(n.EXCLUDED)
const r=window.OfflineAudioContext||window.webkitOfflineAudioContext
if(null==r)return e(n.NOT_AVAILABLE)
let o=new r(1,44100,44100),a=o.createOscillator()
a.type="triangle",a.frequency.setValueAtTime(1e4,o.currentTime)
let s=o.createDynamicsCompressor()
t.each([["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]],(function(e){void 0!==s[e[0]]&&"function"==typeof s[e[0]].setValueAtTime&&s[e[0]].setValueAtTime(e[1],o.currentTime)})),a.connect(s),s.connect(o.destination),a.start(0),o.startRendering()
let c=setTimeout((function(){return o.oncomplete=function(){},o=null,e("audioTimeout")}),i.timeout)
o.oncomplete=function(t){let n
try{clearTimeout(c),n=t.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce((function(e,t){return e+Math.abs(t)}),0).toString(),a.disconnect(),s.disconnect()}catch(t){return void e(t)}e(n)}}static UserAgent(e){e(navigator.userAgent)}static webdriver(e,t){e(void 0===navigator.webdriver||null===navigator.webdriver?t.NOT_AVAILABLE:navigator.webdriver)}static languageKey(e,t){e(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||t.NOT_AVAILABLE)}static colorDepthKey(e,t){e(window.screen.colorDepth||t.NOT_AVAILABLE)}static deviceMemoryKey(e,t){let n=navigator.deviceMemory||t.NOT_AVAILABLE
n!==t.NOT_AVAILABLE&&(n+=" GB"),e(n)}static pixelDepthKey(e,t){e(window.screen.pixelDepth||t.NOT_AVAILABLE)}static pixelRatioKey(e,t){e(window.devicePixelRatio||t.NOT_AVAILABLE)}static screenResolutionKey(e,n){e(t.getScreenResolution(n))}static screenOrientationKey(e,t){if(!t.screen.detectScreenOrientation)return void e(t.EXCLUDED)
let n={}
n.Enabled=void 0!==screen.orientation,n.Orientation=screen.msOrientation||screen.mozOrientation||(screen.orientation||{}).type,e(n)}static getScreenResolution(){return{w:window.screen.width,h:window.screen.height}}static availableScreenResolutionKey(e,n){e(t.getAvailableScreenResolution(n))}static getAvailableScreenResolution(e){return window.screen.availWidth&&window.screen.availHeight?{w:window.screen.availWidth,h:window.screen.availHeight}:e.NOT_AVAILABLE}static timezoneOffset(e){e((new Date).getTimezoneOffset()/60)}static timezone(e,t){window.Intl&&window.Intl.DateTimeFormat?e((new window.Intl.DateTimeFormat).resolvedOptions().timeZone):e(t.NOT_AVAILABLE)}static sessionStorageKey(e,n){e(t.hasSessionStorage(n))}static localStorageKey(e,n){e(t.hasLocalStorage(n))}static indexedDbKey(e,n){e(t.hasIndexedDB(n))}static addBehaviorKey(e){e(!(!document.body||!document.body.addBehavior))}static openDatabaseKey(e){e(!!window.openDatabase)}static cpuClassKey(e,n){e(t.getNavigatorCpuClass(n))}static oscpuKey(e,t){e(navigator.oscpu||t.NOT_AVAILABLE)}static appNameKey(e,t){e(navigator.appName||t.NOT_AVAILABLE)}static appVersionKey(e,t){e(navigator.appVersion||t.NOT_AVAILABLE)}static appCodeNameKey(e,t){e(navigator.appCodeName||t.NOT_AVAILABLE)}static seedKey(e,t){e(Date.now())}static platformKey(e,n){e(t.getNavigatorPlatform(n))}static productKey(e,t){e(navigator.product||t.NOT_AVAILABLE)}static productSubKey(e,t){e(navigator.productSub||t.NOT_AVAILABLE)}static vendorKey(e,t){e(navigator.vendor||t.NOT_AVAILABLE)}static vendorSubKey(e,t){e(navigator.vendorSub||t.NOT_AVAILABLE)}static doNotTrackKey(e,n){e(t.getDoNotTrack(n))}static incognitoKey(e,n){const i=t.getBrowserNameAndVersion().split(" "),r=i[0],o=i[1]
let a=n.NOT_AVAILABLE
if("Chrome"===r)if(parseInt(o)<=74){const t=window.RequestFileSystem||window.webkitRequestFileSystem
t?t(window.TEMPORARY,100,(function(t){e(!1)}),(function(t){e(!0)})):e(a)}else"storage"in navigator&&"estimate"in navigator.storage?navigator.storage.estimate().then((function(t){const n=t.quota
a=n<125829120,e(a)})):e(a)
else if("Safari"===r){if(a=!1,window.safariIncognito)a=!0
else{try{window.openDatabase(null,null,null,null)}catch(e){a=!0}try{window.localStorage.setItem("test",1)}catch(e){a=!0}}void 0===a&&(a=!1,window.localStorage.removeItem("test")),e(a)}else if("Firefox"===r){let t=indexedDB.open("test")
t.onerror=function(){e(!0)},t.onsuccess=function(){e(!1)}}else e("IE"===r||"EDGE"===r?!window.indexedDB&&(window.PointerEvent||window.MSPointerEvent):a)}static getBrowserNameAndVersion(){let e,t=navigator.userAgent,n=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[]
return/trident/i.test(n[1])?(e=/\brv[ :]+(\d+)/g.exec(t)||[],"IE "+(e[1]||"")):"Chrome"===n[1]&&(e=t.match(/\b(OPR|Edge)\/(\d+)/),null!=e)?e.slice(1).join(" ").replace("OPR","Opera"):(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],e=t.match(/version\/(\d+)/i),null!=e&&n.splice(1,1,e[1]),n.join(" "))}static canvasKey(e,n){t.isCanvasSupported()?e(t.getCanvasFp(n)):e(n.NOT_AVAILABLE)}static webglKey(e,n){t.isWebGlSupported()?e(t.getWebglFp(n)):e(n.NOT_AVAILABLE)}static javascriptsKey(e,t){if(void 0===document.scripts||null===document.scripts)return e(t.NOT_AVAILABLE)
e([])}static locationKey(e,t){e({hash:location.hash||t.NOT_AVAILABLE,host:location.host||t.NOT_AVAILABLE,hostname:location.hostname||t.NOT_AVAILABLE,href:location.href||t.NOT_AVAILABLE,origin:location.origin||t.NOT_AVAILABLE,pathname:location.pathname||t.NOT_AVAILABLE,port:location.port||t.NOT_AVAILABLE,protocol:location.protocol||t.NOT_AVAILABLE})}static signalsKey(e){e(t.getSignals())}static getSignals(){const e={adBlockInstalled:function(){return t.getAdBlock()},liedLanguages:function(){return t.getHasLiedLanguages()},liedResolution:function(){return t.getHasLiedResolution()},liedOS:function(){return t.getHasLiedOs()},liedBrowser:function(){return t.getHasLiedBrowser()}},n={}
for(const t in e)if(e.hasOwnProperty(t)){const i=e[t]
n[t]=i(t)}return n}static flashFontsKey(e,n){return t.hasSwfObjectLoaded()?t.hasMinFlashInstalled()?n.fonts.swfPath?void t.loadSwfAndDetectFonts((function(t){e(t)}),n):e("missing options.fonts.swfPath"):e("flash not installed"):e("swf object not loaded")}static jsFontsKey(t,n){const i=["monospace","sans-serif","serif"]
let r=["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","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","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 Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"]
void 0!==n.fonts&&void 0!==n.fonts.extendedJsFonts&&(r=r.concat(n.fonts.extendedJsFonts)),void 0!==n.fonts&&void 0!==n.fonts.userDefinedFonts&&(r=r.concat(n.fonts.userDefinedFonts)),r=r.filter((function(e,t){return r.indexOf(e)===t}))
const o=document.getElementsByTagName("body")[0],a=document.createElement("div"),s=document.createElement("div"),c={},l={},u=function(){const e=document.createElement("span")
return e.style.position="absolute",e.style.left="-9999px",e.style.fontSize="72px",e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="normal",e.style.lineBreak="auto",e.style.lineHeight="normal",e.style.textTransform="none",e.style.textAlign="left",e.style.textDecoration="none",e.style.textShadow="none",e.style.whiteSpace="normal",e.style.wordBreak="normal",e.style.wordSpacing="normal",e.textContent="mmmmmmmmmmlli",e},d=function(e,t){const n=u()
return n.style.fontFamily="'"+e+"',"+t,n},f=function(e){let t=!1
for(let n=0;n<i.length;n++)if(t=e[n].offsetWidth!==c[i[n]]||e[n].offsetHeight!==l[i[n]],t)return t
return t},p=function(){const e=[]
for(let t=0,n=i.length;t<n;t++){const n=u()
n.style.fontFamily=i[t],a.appendChild(n),e.push(n)}return e}()
o.appendChild(a)
for(let e=0,t=i.length;e<t;e++)c[i[e]]=p[e].offsetWidth,l[i[e]]=p[e].offsetHeight
const h=function(){const e={}
for(let t=0,n=r.length;t<n;t++){const n=[]
for(let e=0,o=i.length;e<o;e++){const o=d(r[t],i[e])
s.appendChild(o),n.push(o)}e[r[t]]=n}return e}()
o.appendChild(s)
const g=[]
for(let e=0,t=r.length;e<t;e++)f(h[r[e]])&&g.push(r[e])
o.removeChild(s),o.removeChild(a)
const m={}
m.fontsHash=e.x64hash128(g.join(),23),n.fonts.hashOnly||(m.lists=g),t(m)}static mimetypesComponent(e,t){if(void 0===navigator.mimeTypes||null===navigator.mimeTypes)return void e(t.NOT_AVAILABLE)
const n=navigator.mimeTypes,i=[]
for(let e=0;e<n.length;e++){const t={}
t.type=n[e].type,t.suffixes=n[e].suffixes,t.description=n[e].description,i.push(t)}e(i)}static pluginsComponent(e,n){t.isIE()?n.plugins.excludeIE?e(n.EXCLUDED):e(t.getIEPlugins(n)):e(t.getRegularPlugins(n))}static getRegularPlugins(e){if(void 0===navigator.plugins||null===navigator.plugins)return e.NOT_AVAILABLE
let n=[]
for(let e=0,t=navigator.plugins.length;e<t;e++)navigator.plugins[e]&&n.push(navigator.plugins[e])
return n.length>0&&t.pluginsShouldBeSorted(e)&&(n=n.sort((function(e,t){return e.name>t.name?1:e.name<t.name?-1:0}))),t.map(n,(function(e){const n=t.map(e,(function(e){return[e.type,e.suffixes]}))
return[e.name,e.description,n]}))}static getIEPlugins(e){let n=[]
if(Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window){const i=["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","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","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"]
n=t.map(i,(function(t){try{return new window.ActiveXObject(t),t}catch(t){return e.ERROR}}))}else n.push(e.NOT_AVAILABLE)
return navigator.plugins&&(n=n.concat(t.getRegularPlugins(e))),n}static pluginsShouldBeSorted(e){let t=!1
for(let n=0,i=e.plugins.sortPluginsFor.length;n<i;n++){const i=e.plugins.sortPluginsFor[n]
if(navigator.userAgent.match(i)){t=!0
break}}return t}static batteryKey(e,t){void 0!==navigator.getBattery?navigator.getBattery().then((function(t){const n={}
n.level=t.level,n.charging=t.charging,n.chargingTime=t.chargingTime,n.dischargingTime=t.dischargingTime,e(n)})):e(t.NOT_AVAILABLE)}static networkInfoKey(e,t){const n=navigator.connection
e(void 0!==n?{downlink:n.downlink,downlinkMax:n.downlinkMax,type:n.type,effectiveType:n.effectiveType,rtt:n.rtt,saveData:n.saveData}:t.NOT_AVAILABLE)}static touchSupportKey(e){e(t.getTouchSupport())}static hardwareConcurrencyKey(e,n){e(t.getHardwareConcurrency(n))}static hasSessionStorage(e){try{return!!window.sessionStorage}catch(t){return e.ERROR}}static hasLocalStorage(e){try{return!!window.localStorage}catch(t){return e.ERROR}}static hasIndexedDB(e){try{return!!window.indexedDB}catch(t){return e.ERROR}}static getHardwareConcurrency(e){return navigator.hardwareConcurrency?navigator.hardwareConcurrency:e.NOT_AVAILABLE}static getNavigatorCpuClass(e){return navigator.cpuClass||e.NOT_AVAILABLE}static getNavigatorPlatform(e){return navigator.platform?navigator.platform:e.NOT_AVAILABLE}static getDoNotTrack(e){return navigator.doNotTrack?navigator.doNotTrack:navigator.msDoNotTrack?navigator.msDoNotTrack:window.doNotTrack?window.doNotTrack:e.NOT_AVAILABLE}static getTouchSupport(){let e,t=0
void 0!==navigator.maxTouchPoints?t=navigator.maxTouchPoints:void 0!==navigator.msMaxTouchPoints&&(t=navigator.msMaxTouchPoints)
try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return{maxTouchPoints:t,touchEvent:e,touchStart:"ontouchstart"in window}}static getCanvasFp(t){const n={},i=document.createElement("canvas")
i.width=2e3,i.height=200,i.style.display="inline"
const r=i.getContext("2d")
return r.rect(0,0,10,10),r.rect(2,2,6,6),n.canvasWinding=!1===r.isPointInPath(5,5,"evenodd")?"yes":"no",r.textBaseline="alphabetic",r.fillStyle="#f60",r.fillRect(125,1,62,20),r.fillStyle="#069",t.dontUseFakeFontInCanvas?r.font="11pt Arial":r.font="11pt no-real-font-123",r.fillText("Cwm fjordbank glyphs vext quiz, 😃",2,15),r.fillStyle="rgba(102, 204, 0, 0.2)",r.font="18pt Arial",r.fillText("Cwm fjordbank glyphs vext quiz, 😃",4,45),r.globalCompositeOperation="multiply",r.fillStyle="rgb(255,0,255)",r.beginPath(),r.arc(50,50,50,0,2*Math.PI,!0),r.closePath(),r.fill(),r.fillStyle="rgb(0,255,255)",r.beginPath(),r.arc(100,50,50,0,2*Math.PI,!0),r.closePath(),r.fill(),r.fillStyle="rgb(255,255,0)",r.beginPath(),r.arc(75,100,50,0,2*Math.PI,!0),r.closePath(),r.fill(),r.fillStyle="rgb(255,0,255)",r.arc(75,75,75,0,2*Math.PI,!0),r.arc(75,75,25,0,2*Math.PI,!0),r.fill("evenodd"),i.toDataURL&&(n.canvasHash=e.x64hash128(i.toDataURL(),23)),n}static getWebglFp(n){let i
const r=function(e){return i.clearColor(0,0,0,1),i.enable(i.DEPTH_TEST),i.depthFunc(i.LEQUAL),i.clear(i.COLOR_BUFFER_BIT|i.DEPTH_BUFFER_BIT),"["+e[0]+", "+e[1]+"]"}
if(i=t.getWebglCanvas(),!i)return null
const o={},a=i.createBuffer()
i.bindBuffer(i.ARRAY_BUFFER,a)
const s=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0])
i.bufferData(i.ARRAY_BUFFER,s,i.STATIC_DRAW),a.itemSize=3,a.numItems=3
const c=i.createProgram(),l=i.createShader(i.VERTEX_SHADER)
i.shaderSource(l,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}"),i.compileShader(l)
const u=i.createShader(i.FRAGMENT_SHADER)
i.shaderSource(u,"precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}"),i.compileShader(u),i.attachShader(c,l),i.attachShader(c,u),i.linkProgram(c),i.useProgram(c),c.vertexPosAttrib=i.getAttribLocation(c,"attrVertex"),c.offsetUniform=i.getUniformLocation(c,"uniformOffset"),i.enableVertexAttribArray(c.vertexPosArray),i.vertexAttribPointer(c.vertexPosAttrib,a.itemSize,i.FLOAT,!1,0,0),i.uniform2f(c.offsetUniform,1,1),i.drawArrays(i.TRIANGLE_STRIP,0,a.numItems)
try{o.webglHash=e.x64hash128(i.canvas.toDataURL(),23)}catch(e){}if(n.webgl.hashOnly)return o
o.vendorAndRenderer=t.getWebglVendorAndRenderer(),o.extensions=i.getSupportedExtensions()||[],o["webgl aliased line width range"]=r(i.getParameter(i.ALIASED_LINE_WIDTH_RANGE)),o["webgl aliased point size range"]=r(i.getParameter(i.ALIASED_POINT_SIZE_RANGE)),o["webgl alpha bits"]=i.getParameter(i.ALPHA_BITS),o["webgl antialiasing"]=i.getContextAttributes().antialias?"yes":"no",o["webgl blue bits"]=i.getParameter(i.BLUE_BITS),o["webgl depth bits"]=i.getParameter(i.DEPTH_BITS),o["webgl green bits"]=i.getParameter(i.GREEN_BITS),o["webgl max anisotropy"]=function(e){const t=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")
if(t){let n=e.getParameter(t.MAX_TEXTURE_MAX_ANISOTROPY_EXT)
return 0===n&&(n=2),n}return null}(i),o["webgl max combined texture image units"]=i.getParameter(i.MAX_COMBINED_TEXTURE_IMAGE_UNITS),o["webgl max cube map texture size"]=i.getParameter(i.MAX_CUBE_MAP_TEXTURE_SIZE),o["webgl max fragment uniform vectors"]=i.getParameter(i.MAX_FRAGMENT_UNIFORM_VECTORS),o["webgl max render buffer size"]=i.getParameter(i.MAX_RENDERBUFFER_SIZE),o["webgl max texture image units"]=i.getParameter(i.MAX_TEXTURE_IMAGE_UNITS),o["webgl max texture size"]=i.getParameter(i.MAX_TEXTURE_SIZE),o["webgl max varying vectors"]=i.getParameter(i.MAX_VARYING_VECTORS),o["webgl max vertex attribs"]=i.getParameter(i.MAX_VERTEX_ATTRIBS),o["webgl max vertex texture image units"]=i.getParameter(i.MAX_VERTEX_TEXTURE_IMAGE_UNITS),o["webgl max vertex uniform vectors"]=i.getParameter(i.MAX_VERTEX_UNIFORM_VECTORS),o["webgl max viewport dims"]=r(i.getParameter(i.MAX_VIEWPORT_DIMS)),o["webgl red bits"]=i.getParameter(i.RED_BITS),o["webgl renderer"]=i.getParameter(i.RENDERER),o["webgl shading language version"]=i.getParameter(i.SHADING_LANGUAGE_VERSION),o["webgl stencil bits"]=i.getParameter(i.STENCIL_BITS),o["webgl vendor"]=i.getParameter(i.VENDOR),o["webgl version"]=i.getParameter(i.VERSION)
try{const e=i.getExtension("WEBGL_debug_renderer_info")
e&&(o["webgl unmasked vendor"]=i.getParameter(e.UNMASKED_VENDOR_WEBGL),o["webgl unmasked renderer"]=i.getParameter(e.UNMASKED_RENDERER_WEBGL))}catch(e){}return i.getShaderPrecisionFormat?(t.each(["FLOAT","INT"],(function(e){t.each(["VERTEX","FRAGMENT"],(function(n){t.each(["HIGH","MEDIUM","LOW"],(function(r){t.each(["precision","rangeMin","rangeMax"],(function(t){const a=i.getShaderPrecisionFormat(i[n+"_SHADER"],i[r+"_"+e])[t]
"precision"!==t&&(t="precision "+t)
const s=["webgl ",n.toLowerCase()," shader ",r.toLowerCase()," ",e.toLowerCase()," ",t].join("")
o[s]=a}))}))}))})),o):o}static getWebglVendorAndRenderer(){try{const e=t.getWebglCanvas(),n=e.getExtension("WEBGL_debug_renderer_info")
return e.getParameter(n.UNMASKED_VENDOR_WEBGL)+"~"+e.getParameter(n.UNMASKED_RENDERER_WEBGL)}catch(e){return null}}static getAdBlock(){const e=document.createElement("div")
e.innerHTML="&nbsp;",e.className="adsbox"
let t=!1
try{document.body.appendChild(e),t=0===document.getElementsByClassName("adsbox")[0].offsetHeight,document.body.removeChild(e)}catch(e){t=!1}return t}static getHasLiedLanguages(){if(void 0!==navigator.languages)try{if(navigator.languages[0].substr(0,2)!==navigator.language.substr(0,2))return!0}catch(e){return!0}return!1}static getHasLiedResolution(){return window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight}static getHasLiedOs(){const e=navigator.userAgent.toLowerCase()
let t=navigator.oscpu
const n=navigator.platform.toLowerCase()
let i
if(i=e.indexOf("windows phone")>=0?"Windows Phone":e.indexOf("win")>=0?"Windows":e.indexOf("android")>=0?"Android":e.indexOf("linux")>=0||e.indexOf("cros")>=0?"Linux":e.indexOf("iphone")>=0||e.indexOf("ipad")>=0?"iOS":e.indexOf("mac")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows Phone"!==i&&"Android"!==i&&"iOS"!==i&&"Other"!==i)return!0
if(void 0!==t){if(t=t.toLowerCase(),t.indexOf("win")>=0&&"Windows"!==i&&"Windows Phone"!==i)return!0
if(t.indexOf("linux")>=0&&"Linux"!==i&&"Android"!==i)return!0
if(t.indexOf("mac")>=0&&"Mac"!==i&&"iOS"!==i)return!0
if((-1===t.indexOf("win")&&-1===t.indexOf("linux")&&-1===t.indexOf("mac"))!=("Other"===i))return!0}return n.indexOf("win")>=0&&"Windows"!==i&&"Windows Phone"!==i||(n.indexOf("linux")>=0||n.indexOf("android")>=0||n.indexOf("pike")>=0)&&"Linux"!==i&&"Android"!==i||(n.indexOf("mac")>=0||n.indexOf("ipad")>=0||n.indexOf("ipod")>=0||n.indexOf("iphone")>=0)&&"Mac"!==i&&"iOS"!==i||(n.indexOf("win")<0&&n.indexOf("linux")<0&&n.indexOf("mac")<0&&n.indexOf("iphone")<0&&n.indexOf("ipad")<0)!=("Other"===i)||void 0===navigator.plugins&&"Windows"!==i&&"Windows Phone"!==i}static getHasLiedBrowser(){const e=navigator.userAgent.toLowerCase(),t=navigator.productSub
let n
if(n=e.indexOf("firefox")>=0?"Firefox":e.indexOf("opera")>=0||e.indexOf("opr")>=0?"Opera":e.indexOf("chrome")>=0?"Chrome":e.indexOf("safari")>=0?"Safari":e.indexOf("trident")>=0?"Internet Explorer":"Other",("Chrome"===n||"Safari"===n||"Opera"===n)&&"20030107"!==t)return!0
const i=eval.toString().length
if(37===i&&"Safari"!==n&&"Firefox"!==n&&"Other"!==n)return!0
if(39===i&&"Internet Explorer"!==n&&"Other"!==n)return!0
if(33===i&&"Chrome"!==n&&"Opera"!==n&&"Other"!==n)return!0
let r
try{throw"a"}catch(e){try{e.toSource(),r=!0}catch(e){r=!1}}return r&&"Firefox"!==n&&"Other"!==n}static isCanvasSupported(){const e=document.createElement("canvas")
return!(!e.getContext||!e.getContext("2d"))}static isWebGlSupported(){if(!t.isCanvasSupported())return!1
const e=t.getWebglCanvas()
return!!window.WebGLRenderingContext&&!!e}static isIE(){return"Microsoft Internet Explorer"===navigator.appName||!("Netscape"!==navigator.appName||!/Trident/.test(navigator.userAgent))}static hasSwfObjectLoaded(){return void 0!==window.swfobject}static hasMinFlashInstalled(){return window.swfobject.hasFlashPlayerVersion("9.0.0")}static addFlashDivNode(e){const t=document.createElement("div")
t.setAttribute("id",e.fonts.swfContainerId),document.body.appendChild(t)}static loadSwfAndDetectFonts(e,n){window.___fp_swf_loaded=function(t){e(t)}
const i=n.fonts.swfContainerId
t.addFlashDivNode(),window.swfobject.embedSWF(n.fonts.swfPath,i,"1","1","9.0.0",!1,{onReady:"___fp_swf_loaded"},{allowScriptAccess:"always",menu:"false"},{})}static getWebglCanvas(){const e=document.createElement("canvas")
let t=null
try{t=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}return t||(t=null),t}constructor(){this.components=[{key:"webrtc",getData:t.webRtcKey,shouldEnforceDataLimit:!0,dataLimit:1e3},{key:"enumerateDevices",getData:t.enumerateDevicesKey,shouldEnforceDataLimit:!0,dataLimit:22e3},{key:"appName",getData:t.appNameKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"tsSeed",getData:t.seedKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"appVersion",getData:t.appVersionKey,shouldEnforceDataLimit:!0,dataLimit:300},{key:"appCodeName",getData:t.appCodeNameKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"location",getData:t.locationKey,shouldEnforceDataLimit:!0,dataLimit:1500},{key:"javascripts",getData:t.javascriptsKey,shouldEnforceDataLimit:!0,dataLimit:2200},{key:"platform",getData:t.platformKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"product",getData:t.productKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"productSub",getData:t.productSubKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"cpuClass",getData:t.cpuClassKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"oscpu",getData:t.oscpuKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"hardwareConcurrency",getData:t.hardwareConcurrencyKey,alias:"numOfCores",shouldEnforceDataLimit:!0,dataLimit:100},{key:"deviceMemory",getData:t.deviceMemoryKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"vendor",getData:t.vendorKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"vendorSub",getData:t.vendorSubKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"language",getData:t.languageKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"timezoneOffset",getData:t.timezoneOffset,shouldEnforceDataLimit:!0,dataLimit:100},{key:"timezone",getData:t.timezone,shouldEnforceDataLimit:!0,dataLimit:100},{key:"userAgent",getData:t.UserAgent,shouldEnforceDataLimit:!0,dataLimit:1500},{key:"webdriver",getData:t.webdriver,shouldEnforceDataLimit:!0,dataLimit:100},{key:"doNotTrack",getData:t.doNotTrackKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"incognito",getData:t.incognitoKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"colorDepth",getData:t.colorDepthKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"pixelDepth",getData:t.pixelDepthKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"pixelRatio",getData:t.pixelRatioKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"screenResolution",getData:t.screenResolutionKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"screenOrientation",getData:t.screenOrientationKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"availableScreenResolution",getData:t.availableScreenResolutionKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"sessionStorage",getData:t.sessionStorageKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"localStorage",getData:t.localStorageKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"indexedDb",getData:t.indexedDbKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"addBehavior",getData:t.addBehaviorKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"openDatabase",getData:t.openDatabaseKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"canvas",getData:t.canvasKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"webgl",getData:t.webglKey,shouldEnforceDataLimit:!0,dataLimit:6e3},{key:"signals",getData:t.signalsKey,shouldEnforceDataLimit:!0,dataLimit:150},{key:"touchSupport",getData:t.touchSupportKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"networkInfo",getData:t.networkInfoKey,shouldEnforceDataLimit:!0,dataLimit:150},{key:"battery",getData:t.batteryKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"audio",getData:t.audioKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"automation",getData:t.automationKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"plugins",getData:t.pluginsComponent,shouldEnforceDataLimit:!0,dataLimit:17e3},{key:"mimetyps",getData:t.mimetypesComponent,shouldEnforceDataLimit:!0,dataLimit:27e3},{key:"fonts",getData:t.jsFontsKey,shouldEnforceDataLimit:!0,dataLimit:1500},{key:"fontsFlash",getData:t.flashFontsKey,shouldEnforceDataLimit:!0,dataLimit:100}]}getFeatures(e,t){if("function"!=typeof e)return
if(!t)return e({error:"Options not provided"})
let n={data:{latency:{acq_time:{}},errors:{}}},i=Date.now(),r={},o=0,a=0
this.components.forEach((function(s){if(t.excludes[s.key])return
let c=s.key
void 0!==s.alias&&null!==s.alias&&s.alias.length>0&&(c=s.alias),o++
const l=()=>{r[c]=Date.now()
try{s.getData((function(t){if(!1!==s.shouldEnforceDataLimit){let e=s.hasOwnProperty("dataLimit")&&"number"==typeof s.dataLimit?s.dataLimit:1e3
const i=JSON.stringify(t).length
i>e&&(n.data.errors[c]="Exceeded current data limit:"+e+" Data length for:"+c+" was found to be:"+i,t={})}n.data[c]=t,n.data.latency.acq_time[c]=Date.now()-r[c],a++,a>=o&&(n.data.latency.acq_time.allFeatures=Date.now()-i,n.data.allFeaturesCollectionAt=Date.now(),e(n.data,!0))}),t)}catch(e){n.data.errors[c]=String(e)}}
"function"==typeof window.requestIdleCallback&&!1!==t.useRequestIdleCallBack?window.requestIdleCallback(l):l()})),n.data.latency.acq_time.allFeatures=Date.now()-i,e(n.data,!1)}}var n={getItem(e){const t=this.getCookieString().match(this._cookieRegEx(e))
return t?t[1].replace(/^"(.*)"$/,"$1"):""},getBcookie(){try{let e=document.cookie.split(/\s*;\s*/)
for(let t=0;t<e.length;t++){const n=e[t].split("=")
if(n.length>1&&"bcookie"===n[0]){const e=n[n.length-1]
return e.substring(2,e.length-1)}}}catch(e){return""}return""},setItem(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.getDomain()
if(n){let r=[`${e}=${t}; path=${arguments.length>4&&void 0!==arguments[4]?arguments[4]:"/"}; secure=true`]
"string"==typeof i&&i.length>0&&r.push("domain="+i),r.push("expires="+(n instanceof Date?n.toUTCString():n)),document.cookie=r.join("; ")}},deleteItem(e){this.setItem(e,"",new Date(0)),this.setItem(e,"",new Date(0),"")
let t=this.getDomain().split(".")
t.length>2&&(t=t.slice(t.length-2))
let n=t.join(".")
this.setItem(e,"",new Date(0),n)},_cookieRegEx:e=>new RegExp(e+"=([^;]*)"),getCookieString:()=>document.cookie,getDomain:()=>window.location?window.location.hostname:""}
const i="HUMAN",r="DFP_WEB",o="RECAPTCHA_V3_WEB"
function a(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0
const i=n?n.querySelector("#"+e):document.getElementById(e)
if(i){const n=i.firstChild.nodeValue
if(t&&i.parentNode.removeChild(i),n)try{return JSON.parse(n)}catch(e){return}}}function s(e,t,n){let i=new XMLHttpRequest,r=n?"https://www.linkedin.com":"https://www.linkedin-ei.com"
r+=String(t),i.open("POST",r),i.setRequestHeader("Content-Type","application/json"),i.send(e)}function c(e){let t=document.getElementsByClassName(e)
return void 0!==t&&t.length>=1}function l(){const e=location&&location.host
return e&&e.indexOf(".linkedin.com")>-1&&!e.startsWith("pemberly")}class u{static str2ab(e){const t=new ArrayBuffer(e.length),n=new Uint8Array(t)
for(let t=0,i=e.length;t<i;t++)n[t]=e.charCodeAt(t)
return t}static encode(e){return window.btoa(String.fromCharCode.apply(null,e))}static importPk(e,t,n){const i=window.atob(t),r=u.str2ab(i)
return window.crypto.subtle.importKey(e,r,{name:"RSA-OAEP",hash:"SHA-256"},!0,n)}static wrap(e,t){return u.importPk("spki",t,["wrapKey"]).then((t=>window.crypto.subtle.wrapKey("raw",e,t,{name:"RSA-OAEP"}))).then((e=>u.encode(new Uint8Array(e))))}static wrapErrorResult(e){const t={a:null,b:null,c:null}
return t.error=e,t}static encryptWithKey(e,t,n){const i={a:null,b:null,c:null}
try{let r=Date.now()
if("string"!=typeof t||"number"!=typeof n)throw new Error("ec1")
const o=window.crypto.getRandomValues(new Uint8Array(16))
i.a=u.encode(o)
const a=(new TextEncoder).encode(e),s="AES-CBC"
return window.crypto.subtle.generateKey({name:s,length:256},!0,["encrypt","decrypt"]).then((e=>window.crypto.subtle.encrypt({name:s,iv:o},e,a).then((o=>u.wrap(e,t).then((e=>(i.b=e,i.c=u.encode(new Uint8Array(o)),i.d=Date.now()-r,i.e=n,i))))))).catch((e=>(i.error=String(e),i)))}catch(e){return i.error=String(e),Promise.resolve(i)}}static encryptWithKeyIds(e,t,n,i){if("string"!=typeof t||"string"!=typeof n)return Promise.resolve(u.wrapErrorResult("Error: ec2"))
let r=a(t),o=parseInt(a(n))
return(""===r||"string"!=typeof r||"number"!=typeof o||Number.isNaN(o))&&(r=i?"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",o=i?2:1),u.encryptWithKey(e,r,o)}static encryptWithKeyFromDifferentSources(e,t,n,i,r){return null!=i&&"string"==typeof i.publicKey&&"number"==typeof i.publicKeyVersion?u.encryptWithKey(e,i.publicKey,i.publicKeyVersion):u.encryptWithKeyIds(e,t,n,r)}static uuidv4(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^window.crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))}static generateSha256HashOrDefault(e){const t=(new TextEncoder).encode(e)
return crypto.subtle.digest("SHA-256",t).then((e=>Array.from(new Uint8Array(e)).map((e=>("00"+e.toString(16)).slice(-2))).join(""))).catch((()=>""))}}var d=function(){var e={compressToBase64:function(t){if(null==t)return""
var n=e._compress(t,6,(function(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e)}))
switch(n.length%4){default:case 0:return n
case 1:return n+"==="
case 2:return n+"=="
case 3:return n+"="}},_compress:function(e,t,n){if(null==e)return""
var i,r,o,a={},s={},c="",l="",u="",d=2,f=3,p=2,h=[],g=0,m=0
for(o=0;o<e.length;o+=1)if(c=e.charAt(o),Object.prototype.hasOwnProperty.call(a,c)||(a[c]=f++,s[c]=!0),l=u+c,Object.prototype.hasOwnProperty.call(a,l))u=l
else{if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(i=0;i<p;i++)g<<=1,m==t-1?(m=0,h.push(n(g)),g=0):m++
for(r=u.charCodeAt(0),i=0;i<8;i++)g=g<<1|1&r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r>>=1}else{for(r=1,i=0;i<p;i++)g=g<<1|r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r=0
for(r=u.charCodeAt(0),i=0;i<16;i++)g=g<<1|1&r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r>>=1}0==--d&&(d=Math.pow(2,p),p++),delete s[u]}else for(r=a[u],i=0;i<p;i++)g=g<<1|1&r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r>>=1
0==--d&&(d=Math.pow(2,p),p++),a[l]=f++,u=String(c)}if(""!==u){if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(i=0;i<p;i++)g<<=1,m==t-1?(m=0,h.push(n(g)),g=0):m++
for(r=u.charCodeAt(0),i=0;i<8;i++)g=g<<1|1&r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r>>=1}else{for(r=1,i=0;i<p;i++)g=g<<1|r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r=0
for(r=u.charCodeAt(0),i=0;i<16;i++)g=g<<1|1&r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r>>=1}0==--d&&(d=Math.pow(2,p),p++),delete s[u]}else for(r=a[u],i=0;i<p;i++)g=g<<1|1&r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r>>=1
0==--d&&(d=Math.pow(2,p),p++)}for(r=2,i=0;i<p;i++)g=g<<1|1&r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r>>=1
for(;;){if(g<<=1,m==t-1){h.push(n(g))
break}m++}return h.join("")}}
return e}()
const f={apfcTypes:1,collectionType:2,trackingId:3},p={protocol:1,hostname:2,port:3,origin:4,host:5,href:6,hash:7,pathname:8},h={saveData:1,effectiveType:2,rtt:3,downlink:4,downlinkMax:5,type:6},g={liedOS:1,liedBrowser:2,liedResolution:3,adBlockInstalled:4,liedLanguages:5},m={type:1,description:2,suffixes:3},v={canvasHash:1,canvasWinding:2},y={label:1,gid:2,id:3,kind:4},b={lists:1,fontsHash:2},E={Orientation:1,Enabled:2},_={charging:1,dischargingTime:2,level:3,chargingTime:4},k={touchStart:1,touchEvent:2,maxTouchPoints:3},T={"webgl stencil bits":1,"webgl vertex shader high float precision rangeMax":2,"webgl antialiasing":3,"webgl max vertex texture image units":4,"webgl fragment shader medium int precision rangeMax":5,"webgl fragment shader low int precision rangeMin":6,"webgl max vertex uniform vectors":7,"webgl renderer":8,"webgl vertex shader high float precision":9,"webgl green bits":10,"webgl fragment shader medium int precision rangeMin":11,"webgl fragment shader low int precision rangeMax":12,"webgl fragment shader medium int precision":13,"webgl blue bits":14,"webgl max viewport dims":15,"webgl unmasked vendor":16,"webgl vertex shader medium float precision":17,"webgl fragment shader low int precision":18,"webgl vertex shader high int precision":19,"webgl vertex shader medium int precision rangeMax":20,"webgl unmasked renderer":21,"webgl fragment shader high int precision":22,"webgl aliased point size range":23,"webgl vertex shader medium float precision rangeMax":24,"webgl vertex shader low int precision rangeMax":25,"webgl fragment shader low float precision":26,"webgl fragment shader high int precision rangeMin":27,"webgl vertex shader high float precision rangeMin":28,"webgl red bits":29,vendorAndRenderer:30,"webgl vertex shader medium int precision rangeMin":31,"webgl vertex shader low float precision":32,"webgl vertex shader medium int precision":33,"webgl fragment shader medium float precision rangeMax":34,"webgl max texture image units":35,"webgl vertex shader medium float precision rangeMin":36,"webgl fragment shader high float precision rangeMin":37,"webgl fragment shader high int precision rangeMax":38,"webgl vertex shader high int precision rangeMax":39,webglHash:40,"webgl max varying vectors":41,"webgl fragment shader medium float precision rangeMin":42,"webgl vertex shader low int precision":43,"webgl fragment shader low float precision rangeMin":44,"webgl aliased line width range":45,"webgl max combined texture image units":46,"webgl shading language version":47,"webgl vertex shader high int precision rangeMin":48,"webgl max anisotropy":49,"webgl max render buffer size":50,"webgl vendor":51,"webgl vertex shader low int precision rangeMin":52,"webgl max fragment uniform vectors":53,"webgl fragment shader high float precision rangeMax":54,"webgl version":55,"webgl fragment shader high float precision":56,"webgl max texture size":57,"webgl max cube map texture size":58,"webgl fragment shader medium float precision":59,"webgl vertex shader low float precision rangeMin":60,"webgl max vertex attribs":61,"webgl alpha bits":62,"webgl vertex shader low float precision rangeMax":63,"webgl fragment shader low float precision rangeMax":64,"webgl depth bits":65,extensions:66},S={ANGLE_instanced_arrays:67,EXT_blend_minmax:68,EXT_clip_control:69,EXT_color_buffer_float:70,EXT_color_buffer_half_float:71,EXT_conservative_depth:72,EXT_depth_clamp:73,EXT_disjoint_timer_query:74,EXT_disjoint_timer_query_webgl2:75,EXT_float_blend:76,EXT_frag_depth:77,EXT_polygon_offset_clamp:78,EXT_render_snorm:79,EXT_shader_texture_lod:80,EXT_texture_compression_bptc:81,EXT_texture_compression_rgtc:82,EXT_texture_filter_anisotropic:83,EXT_texture_mirror_clamp_to_edge:84,EXT_texture_norm16:85,EXT_sRGB:86,KHR_parallel_shader_compile:87,NV_shader_noperspective_interpolation:88,OES_draw_buffers_indexed:89,OES_element_index_uint:90,OES_fbo_render_mipmap:91,OES_sample_variables:92,OES_shader_multisample_interpolation:93,OVR_multiview2:94,OES_standard_derivatives:95,OES_texture_float:96,OES_texture_float_linear:97,OES_texture_half_float:98,OES_texture_half_float_linear:99,OES_vertex_array_object:100,WEBGL_blend_func_extended:101,WEBGL_clip_cull_distance:102,WEBGL_color_buffer_float:103,WEBGL_compressed_texture_astc:104,WEBGL_compressed_texture_etc:105,WEBGL_compressed_texture_etc1:106,WEBGL_compressed_texture_pvrtc:107,WEBGL_compressed_texture_s3tc:108,WEBGL_compressed_texture_s3tc_srgb:109,WEBGL_debug_renderer_info:110,WEBGL_debug_shaders:111,WEBGL_depth_texture:112,WEBGL_draw_buffers:113,WEBGL_lose_context:114,WEBGL_multi_draw:115,WEBGL_polygon_mode:116,WEBGL_provoking_vertex:117,WEBGL_render_shared_exponent:118,WEBGL_stencil_texturing:119},A={"American Typewriter":1,"Andale Mono":2,Arial:3,"Arial Black":4,"Arial Hebrew":5,"Arial Narrow":6,"Arial Rounded MT Bold":7,"Arial Unicode MS":8,Avenir:9,"Avenir Next":10,"Avenir Next Condensed":11,Bahnschrift:12,Baskerville:13,"Big Caslon":14,"Bodoni 72":15,"Bodoni 72 Oldstyle":16,"Bodoni 72 Smallcaps":17,"Bradley Hand":18,"Brush Script MT":19,Calibri:20,Cambria:21,"Cambria Math":22,Candara:23,Chalkboard:24,"Chalkboard SE":25,Chalkduster:26,Charter:27,Cochin:28,"Comic Sans MS":29,Consolas:30,Constantia:31,Corbel:32,Copperplate:33,Courier:34,"Courier New":35,Didot:36,"DIN Alternate":37,"DIN Condensed":38,Ebrima:39,"Franklin Gothic Medium":40,Futura:41,Gabriola:42,Gadugi:43,Geneva:44,Georgia:45,"Gill Sans":46,Helvetica:47,"Helvetica Neue":48,Herculanum:49,"Hoefler Text":50,"HoloLens MDL2 Assets":51,Impact:52,"Ink Free":53,"Javanese Text":54,"Leelawadee UI":55,"Lucida Console":56,"LUCIDA GRANDE":57,"Lucida Grande":58,"Lucida Sans Unicode":59,Luminari:60,"Malgun Gothic":61,"Marker Felt":62,Marlett:63,Menlo:64,"Microsoft Himalaya":65,"Microsoft JhengHei":66,"Microsoft New Tai Lue":67,"Microsoft PhagsPa":68,"Microsoft Sans Serif":69,"Microsoft Tai Le":70,"Microsoft YaHei":71,"Microsoft Yi Baiti":72,"MingLiU-ExtB":73,Monaco:74,"Mongolian Baiti":75,"MS Gothic":76,"MV Boli":77,"Myanmar Text":78,"Nirmala UI":79,Noteworthy:80,Optima:81,Palatino:82,"Palatino Linotype":83,Papyrus:84,Phosphate:85,Rockwell:86,"Savoye LET":87,"Segoe MDL2 Assets":88,"Segoe Print":89,"Segoe Script":90,"Segoe UI":91,"Segoe UI Historic":92,"Segoe UI Emoji":93,"Segoe UI Symbol":94,SignPainter:95,SimSun:96,Sitka:97,Skia:98,"Snell Roundhand":99,Sylfaen:100,Symbol:101,Tahoma:102,Times:103,"Times New Roman":104,Trattatello:105,"Trebuchet MS":106,Verdana:107,Webdings:108,Wingdings:109,"Wingdings 2":110,"Wingdings 3":111,"Yu Gothic":112,Zapfino:113},C={appVersion:1,numOfCores:2,webrtc:3,touchSupport:4,webgl:5,timezone:6,plugins:7,localStorage:8,incognito:9,language:10,appCodeName:11,battery:12,platform:13,javascripts:14,automation:15,pixelDepth:16,screenOrientation:17,availableScreenResolution:18,timezoneOffset:19,oscpu:20,fonts:21,vendor:22,sessionStorage:23,webdriver:24,audio:25,openDatabase:26,screenResolution:27,vendorSub:28,enumerateDevices:29,product:30,canvas:31,appName:32,mimetyps:33,cpuClass:34,indexedDb:35,userAgent:36,deviceMemory:37,productSub:38,addBehavior:39,signals:40,networkInfo:41,location:42,colorDepth:43,FPDataCookie:44,tsSeed:45,errors:46,pixelRatio:47}
function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(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 x,R,N=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?"),O=/^fs_/,D=/(?![^(]*\)),/,P=function e(t){var n=function(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=N.exec(e)
return i&&(t=i[1].replace(O,""),n=i[2]),{id:n,type:t}}(t),i=n.id,r=n.type,o={}
if("("===i.charAt(0)){for(var a,s=i.substring(1,i.length-1).split(D),c=0;a=s[c];++c)0===a.indexOf("urn")&&(s[c]=e(a))
i=s}return o[r]=i,o},M=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")))
return n&&n.length>1?n[1]:null},j={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},L="GUEST",U="MEMBER",F="ENTERPRISE_UNBOUND",B=(I(x={},L,"li_gc"),I(x,U,"li_mc"),I(x,F,"li_ec"),x)
I(R={},L,"mypreferences/g/guest-cookies"),I(R,U,"settings/member-cookies"),I(R,F,"mypreferences/e/enterprise-cookies")
var G,H,V,q,K=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null
for(var o in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},j)t[o]=t[o]||0,0!==t[o]&&(this.consentAvailable=!0),this.optedInConsentMap[o]=1===t[o]||0===t[o]&&1===r},W=(G=[j.ADVERTISING,j.ANALYTICS_AND_RESEARCH,j.FUNCTIONAL],H=[0,1,2,0],V=function(e){for(var t={},n=0;n<G.length;n++)t[G[n]]=H[e>>2*n&3]
return t},q=function(e){var t=0
return e>=0&&e<=3&&(t=H[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 K}
var r=V(parseInt(i[1],10)),o=new Date(1e3*parseInt(i[2],10)),a=q(parseInt(i[3],10))
return{error:null,consent:new K(r,o,t,a)}},parseConsentBodyEnterpriseUnbound:function(e,t,n){var i=function(e){try{var t=P(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 K}
var r=i.enterpriseAccountId,o=i.enterpriseProfileId,a=new RegExp(["^((?:\\d+,\\d+,\\d+,\\d+,\\d+)(?:\\|(?:\\d+,\\d+,\\d+,\\d+,\\d+))*)","(\\d+)","(\\d+)","(?:(?:.|\\s)+)$"].join(";")),s=e.match(a)
if(!s)return{error:"Invalid consent body encoding",consent:new K}
var c=s[1].split("|").map((function(e){return e.split(",").map((function(e){return parseInt(e,10)}))})).filter((function(e){var t=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,i=!1,r=void 0
try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done)&&(t.push(o.value),4!==t.length);n=!0);}catch(e){i=!0,r=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw r}}return t}}(e)||function(e){if(e){if("string"==typeof e)return w(e,4)
var t=Object.prototype.toString.call(e).slice(8,-1)
return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?w(e,4):void 0}}(e)||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),i=t[1],a=t[2],s=t[3]
return i===r&&a===o&&s===n}))[0]
if(!c)return{error:null,consent:new K}
var l=V(c[0]),u=new Date(1e3*parseInt(s[2],10)),d=q(parseInt(s[3],10))
return{error:null,consent:new K(l,u,F,d)}}}),Y=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),z=function(e){var t={}
for(var n in j)t[n]=e
return{error:null,consent:new K(t,null,null,e)}},X=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,o=null
try{o=(r=e,"undefined"==typeof atob&&"undefined"!=typeof Buffer?Buffer.from(r,"base64").toString("binary"):atob(r)).match(Y)}catch(e){}if(!o)return{error:"Invalid consent encoding",consent:new K}
var a=parseInt(o[1],10),s=o[2]
return 1===a?t===F?W.parseConsentBodyEnterpriseUnbound(s,n,i):W.parseConsentBody(s,t):{error:"Invalid encoded consent version ".concat(a),consent:new K}}
const Q=new Map([["/voyager/api/voyagerSocialDashNormComments","createComment"],["/signup/cold-join","createAccount"],["/signup/api/createAccount","createAccount"],["/signup/api/cors/createAccount","createAccount"]]),J=new Map([["/signup/cold-join","createAccount"],["/signup/api/createAccount","createAccount"],["/signup/api/cors/createAccount","createAccount"]])
function $(e){let t
try{t=new URL(e)}catch(n){t=new URL(e,window.location.origin)}return t.pathname}class Z{constructor(e,t){this.callback=e,this.config=t,this.setupInterceptorForFetch(),this.setupInterceptorForOpen()}setupInterceptorForFetch(){const e=window.fetch,t=this
window.fetch=function(n,i){try{let e=$(n)
t.runActionInterceptorLogic(e)
const r=new Headers(i.headers||{})
t.runHeaderInjectionInterceptorLogic(e,r,t.config),i.headers=r}catch(e){}return e(n,i)}}setupInterceptorForOpen(){const e=XMLHttpRequest.prototype.open,t=XMLHttpRequest.prototype.send,n=this
XMLHttpRequest.prototype.open=function(t,n){try{this._sanitizedPath=$(n)}catch(e){}e.apply(this,arguments)},XMLHttpRequest.prototype.send=function(e){try{if(this._sanitizedPath){const e=new Map
e.set=(e,t)=>this.setRequestHeader(e,t),n.runHeaderInjectionInterceptorLogic(this._sanitizedPath,e,n.config)}n.runActionInterceptorLogic(this._sanitizedPath)}catch(e){}t.apply(this,arguments)}}runActionInterceptorLogic(e){if(!e)return
const t=Q.get(e)
let n=this.callback
void 0!==t&&window.grecaptcha&&window.grecaptcha.enterprise&&window.grecaptcha.enterprise.ready&&window.grecaptcha.enterprise.execute&&window.grecaptcha.enterprise.ready((function(){let e=t||"default"
window.grecaptcha.enterprise.execute("6LcIy_MqAAAAAMKiupFSbmzW3xjGSlIfRzNWYMjC",{action:e}).then((function(t){const i={token:t,expectedAction:e}
n(o,JSON.stringify(i))})).catch((function(e){const t={error:e}
n(o,JSON.stringify(t))}))}))}runHeaderInjectionInterceptorLogic(e,t,n){if(n&&n.isSyncEnabledWithHeaders&&e&&t&&void 0!==J.get(e)&&globalThis.apfcDfAllH)try{let e=JSON.stringify(globalThis.apfcDfAllH)
e.length>6e3&&(e=e.substring(0,6e3)),t.set("X-Li-Apfc-Data",e)}catch(e){}}}class ee{constructor(e,t){this.config=e,this.featureCollectionOptions=t,this.payloads={},globalThis.apfcDfAllH={},this.intervalId=null,this.dirtyBit=!1,this.maxAttempts=30,this.attemptCount=0,this.intervalInMillis=200,this.overwriteFromConfigIfNeeded(this.config)}setEncryptedDNAPayload(e){this.payloads[btoa("DNA_ENCRYPTED")]=e,this.dirtyBit=!0}setDfpJsPayload(e){this.payloads[btoa("DFP_JS_PLAINTEXT")]=e,globalThis.apfcDfAllH[btoa("DFP_JS_PLAINTEXT")]=e,this.dirtyBit=!0}setHumanJsPayload(e){this.payloads[btoa("HUMAN_JS_PLAINTEXT")]=e,globalThis.apfcDfAllH[btoa("HUMAN_JS_PLAINTEXT")]=e,this.dirtyBit=!0}setReCaptchaV3Payload(e){this.payloads[btoa("RECAPTCHA_V3_PLAINTEXT")]=e,globalThis.apfcDfAllH[btoa("RECAPTCHA_V3_PLAINTEXT")]=e,this.dirtyBit=!0}setEncodedDNAPayload(e){globalThis.apfcDfAllH[btoa("DNA_ENCODED")]=e}startPeriodicSending(){this.config.isSyncEnabledWithCb&&(this.intervalId&&clearInterval(this.intervalId),this.attemptCount=0,this.intervalId=setInterval((()=>{this.attemptCount++,this.dirtyBit&&(this.triggerSyncCollectionWithCb(this.featureCollectionOptions),this.dirtyBit=!1),(this.areAllPayloadsCollected()&&!1===this.dirtyBit||this.attemptCount>=this.maxAttempts)&&this.stopPeriodicSending()}),this.intervalInMillis))}stopPeriodicSending(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)}triggerSyncCollectionWithCb(e){const t=l(),n=this.constructApfcEndpointRequestBody(this.payloads)
s(JSON.stringify(n),e.gloablIntegrationDataCollectionPath,t)}areAllPayloadsCollected(){return 4===Object.keys(this.payloads).length}constructApfcEndpointRequestBody(e){let t={}
return t.payload=e,t.browserId=n.getBcookie(),t}overwriteFromConfigIfNeeded(e){if("string"==typeof e.syncHandlerConfig&&e.syncHandlerConfig.includes(":")){const[t,n]=e.syncHandlerConfig.split(":"),i=parseInt(t,10),r=parseInt(n,10)
this.maxAttempts=Number.isInteger(i)?i:this.maxAttempts,this.intervalInMillis=Number.isInteger(r)?r:this.intervalInMillis}}}const te={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"apfcDf",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:void 0,hashOnly:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},webgl:{hashOnly:!1},telemetryCollectPath:"/platform-telemetry/li/apfcDf",gloablIntegrationDataCollectionPath:"/apfc/collect",extraComponents:[],excludes:{pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},debug:!1,NOT_AVAILABLE:"n/a",ERROR:"err",EXCLUDED:"excluded",useRequestIdleCallBack:!0}
let ne=!1
try{const e=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("undefined"==typeof document)return{error:"cookie string must be provided in SSR mode",consent:new K}
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 K}
if(!(e!==F||i&&r))return{error:"enterpriseProfileUrn and enterpriseAppInstanceId are required for unbound userMode",consent:new K}
if(!e){var o=M(B[F],t)
if(o&&i&&r){var a=X(o,F,i,r)
if(a.consent.userMode===F||a.error)return a}e=M("liap",t)?M(B[U],t)?U:L:M(B[L],t)?L:U}return function(e,t,n,i){var r=M(B[e],t)
return r?X(r,e,n,i):M(B[L],t)||M(B[U],t)||M(B[F],t)?z(2):z(1)}(e,t,i,r)}().consent.optedInConsentMap
ne=e[j.FUNCTIONAL]}catch(e){}class ie{constructor(e,t,n){if(void 0!==t&&void 0!==e&&"enabled"===e.globalIntegration)"complete"===document.readyState?this.initializeGlobalIntegration(t,n):window.addEventListener("load",(()=>{this.initializeGlobalIntegration(t,n)}))
else if(void 0!==e){const t=JSON.parse(JSON.stringify(te))
c("settings-iframe")||c("setting-headline")||(t.useRequestIdleCallBack=!1),this.initialize(t,e)}else{const e=JSON.parse(JSON.stringify(te))
c("settings-iframe")||c("setting-headline")||(e.useRequestIdleCallBack=!1),"complete"===document.readyState?this.initialize(e):window.addEventListener("load",(()=>{this.initialize(e)}))}}initializeGlobalIntegration(e,t){t.enableNetworkInterceptor&&!globalThis.apfcInterceptorInitialized&&(new Z(e,t),globalThis.apfcInterceptorInitialized=!0),!0!==t.isSyncEnabledWithCb&&!0!==t.isSyncEnabledWithHeaders||globalThis.syncCollectionHandlerInitialized||(this.syncCollectionHandler=new ee(t,te),this.syncCollectionHandler.startPeriodicSending(),globalThis.syncCollectionHandlerInitialized=!0),this.checkConfigAndInitializeAllIntegration(e,t)}isDfCollectionRequired(e){return"number"!=typeof e.samplingTimeWindowInMillis||e.samplingTimeWindowInMillis<=0||""===n.getItem("df_ts")}checkConfigAndInitializeAllIntegration(e,t){!0!==globalThis.pauseApfc&&(globalThis.pauseApfc=!0,setTimeout((function(){globalThis.pauseApfc=!1}),3e4),!0===t.enableOnDemandMode?(this.checkConfigAndInitializeGlobalIntegration(e,t),this.checkConfigAndInitializeThirdPartyIntegration(e,t)):(this.deleteDfCookieIfRequired(t),this.isDfCollectionRequired(t)&&(this.checkConfigAndInitializeGlobalIntegration(e,t),this.checkConfigAndInitializeThirdPartyIntegration(e,t),this.addDfCookieIfRequired(t))))}checkConfigAndInitializeGlobalIntegration(e,t){(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes("DNA")||!0===t.dnaIntegrationEnabled&&!0!==globalThis.dnaIntegrationCompleted)&&this.intializeGlobalIntegration(te,e,t)}checkConfigAndInitializeThirdPartyIntegration(e,t){(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes(o)||!0===t.recaptchaV3IntegrationEnabled&&!0!==globalThis.reCaptchaV3InitializationComplete)&&(this.initializeReCaptchaV3Integration(e,t),globalThis.reCaptchaV3InitializationComplete=!0),(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes(i)||!0===t.humanIntegrationEnabled&&!0!==globalThis.humanIntegrationCompleted)&&this.initializeHumanIntegration(e,t),(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes(r)||!0===t.dfpIntegrationEnabled&&!0!==globalThis.dfpIntegrationCompleted)&&this.intializeDfpIntegration(e,t)}deleteDfCookieIfRequired(e){const t="number"!=typeof e.samplingTimeWindowInMillis?0:e.samplingTimeWindowInMillis
if(""!==n.getItem("df_ts")){const e=Date.now(),i=Number(n.getItem("df_ts"));(!1===ne||e-i>t)&&n.deleteItem("df_ts")}}addDfCookieIfRequired(e){if(!0===ne&&"number"==typeof e.samplingTimeWindowInMillis&&e.samplingTimeWindowInMillis>0){const t=Date.now(),i=new Date
i.setTime(t+e.samplingTimeWindowInMillis),n.setItem("df_ts",t,i)}}initialize(e,n){if(null!=n||null!=a("apfcDfPK")){var i=this.reqid,r=this.pageInstance,o=this.isProd()
return(new t).getFeatures((function(t,a){t.reqid=i,t.pageInstance=r,t.fullFeatureCollection=a,u.encryptWithKeyFromDifferentSources(JSON.stringify(t),"apfcDfPK","apfcDfPKV",n,o).then((t=>{globalThis.apfcDf=t,!0===a&&s(JSON.stringify(t),e.telemetryCollectPath,o)}))}),e)}globalThis.triggerApfc=this.reentry}intializeGlobalIntegration(e,n,i){let r=function(e,t){if(!0===t){if(ie.prototype.populateFpDataCookie(e,i),void 0!==this.syncCollectionHandler){const t=JSON.stringify(function(e){let t={}
return function(e){let t=e.webgl,n={}
if(void 0!==t&&void 0!==t.extensions&&null!==t&&null!==t.extensions){let e=t.extensions,n=[]
for(var i=0;i<e.length;i++){let t=e[i]
n[i]=S.hasOwnProperty(t)?S[t]:t}t.extensions=n}null!=t&&(Object.keys(T).forEach((e=>{n[T[e]]=t[e]})),e.webgl=n)}(e),function(e){let t=e.touchSupport,n={}
null!=t&&(Object.keys(k).forEach((e=>{n[k[e]]=t[e]})),e.touchSupport=n)}(e),function(e){let t=e.battery,n={}
null!=t&&(Object.keys(_).forEach((e=>{n[_[e]]=t[e]})),e.battery=n)}(e),function(e){let t=e.screenOrientation,n={}
null!=t&&(Object.keys(E).forEach((e=>{n[E[e]]=t[e]})),e.screenOrientation=n)}(e),function(e){let t=e.fonts,n={}
if(void 0!==t&&void 0!==t.lists&&null!==t&&null!==t.lists){let e=t.lists,n=[]
for(var i=0;i<e.length;i++){let t=e[i]
n[i]=A.hasOwnProperty(t)?A[t]:t}t.lists=n}null!=t&&(Object.keys(b).forEach((e=>{n[b[e]]=t[e]})),e.fonts=n)}(e),function(e){let t=e.enumerateDevices,n=[]
if(null!=t){for(var i=0;i<t.length;i++){let e=t[i],r={}
Object.keys(y).forEach((t=>{r[y[t]]=e[t]})),n[i]=r}e.enumerateDevices=n}}(e),function(e){let t=e.canvas,n={}
null!=t&&(Object.keys(v).forEach((e=>{n[v[e]]=t[e]})),e.canvas=n)}(e),function(e){let t=e.mimetyps,n=[]
if(null!=t){for(var i=0;i<t.length;i++){let e=t[i],r={}
Object.keys(m).forEach((t=>{r[m[t]]=e[t]})),n[i]=r}e.mimetyps=n}}(e),function(e){let t=e.signals,n={}
null!=t&&(Object.keys(g).forEach((e=>{n[g[e]]=t[e]})),e.signals=n)}(e),function(e){let t=e.networkInfo,n={}
null!=t&&(Object.keys(h).forEach((e=>{n[h[e]]=t[e]})),e.networkInfo=n)}(e),function(e){let t=e.location,n={}
null!=t&&(Object.keys(p).forEach((e=>{n[p[e]]=t[e]})),e.location=n)}(e),function(e){let t=e.FPDataCookie,n={}
null!=t&&(Object.keys(f).forEach((e=>{n[f[e]]=t[e]})),e.FPDataCookie=n)}(e),Object.keys(C).forEach((n=>{t[C[n]]=e[n]})),t}(e))
globalThis.apfcDfH=(r=t,d.compressToBase64(r)),this.syncCollectionHandler.setEncodedDNAPayload(globalThis.apfcDfH)}u.encryptWithKeyIds(JSON.stringify(e),"apfcDfPK","apfcDfPKV").then((e=>{globalThis.apfcDf=e,void 0!==this.syncCollectionHandler&&this.syncCollectionHandler.setEncryptedDNAPayload(JSON.stringify(e)),n("DNA",JSON.stringify(e))})),globalThis.dnaIntegrationCompleted=!0}var r}.bind(this)
return(new t).getFeatures(r,e)}intializeDfpIntegration(e,t){let i=n.getBcookie(),o=this.isProd()?"fb6bbd47-fa7c-4264-b4e9-b25948407586":"ee078acd-0704-4344-9e5b-6b84b480c30a"
try{if(RegExp("^[\\w-]*$").test(i)){const n=`https://merchantpool1.linkedin.com/mdt.js?session_id=${i}&instanceId=${o}`
let a=document.createElement("script")
a.setAttribute("src",n),a.setAttribute("id","dfpIframeScript"),a.addEventListener("load",(()=>window.dfp.doFpt(document))),document.getElementsByTagName("head")[0].appendChild(a)
const s={sessionId:i,instanceId:o}
ie.prototype.populateFpDataCookie(s,t),globalThis.apfcDfDfp=JSON.stringify(s),void 0!==this.syncCollectionHandler&&this.syncCollectionHandler.setDfpJsPayload(globalThis.apfcDfDfp),e(r,globalThis.apfcDfDfp)}else{const t={error:"Invalid session_id: "+i}
e(r,JSON.stringify(t))}}catch(t){const n={error:t}
e(r,JSON.stringify(n))}globalThis.dfpIntegrationCompleted=!0}initializeHumanIntegration(e,t){let r=t.treeId,o=Date.now(),a=this.isProd()?"PXdOjV695v":"PXgoH0hfKu",s=n.getBcookie(),c="https://li.protechts.net/index.html?ts="+o+"&r_id="+encodeURIComponent(r)+"&app_id="+a+"&uc=scraping"
u.generateSha256HashOrDefault(s).then((n=>{s=n,""!==s&&(c+="&d_id="+s)
try{let n=document.createElement("iframe")
n.setAttribute("id","humanThirdPartyIframe"),n.setAttribute("src",c),n.setAttribute("sandbox","allow-same-origin allow-scripts"),n.setAttribute("aria-hidden","true"),n.style.height="0px",n.style.width="0px",n.style.border="none",n.style.position="absolute",n.style.left="-9999px",document.body.appendChild(n)
const l={app_id:a,ts:o,d_id:s,r_id:r,uc:"scraping"}
ie.prototype.populateFpDataCookie(l,t),globalThis.apfcDfHuman=JSON.stringify(l),void 0!==this.syncCollectionHandler&&this.syncCollectionHandler.setHumanJsPayload(globalThis.apfcDfHuman),e(i,globalThis.apfcDfHuman)}catch(t){const n={error:t}
e(i,JSON.stringify(n))}})),globalThis.humanIntegrationCompleted=!0}initializeReCaptchaV3Integration(e,t){const n=new MutationObserver((()=>{const e=document.querySelector(".grecaptcha-badge")
e&&(e.style.display="none",n.disconnect())}))
n.observe(document.body,{childList:!0,subtree:!0})
let i="6LcIy_MqAAAAAMKiupFSbmzW3xjGSlIfRzNWYMjC"
const r=document.createElement("script")
r.src="https://www.google.com/recaptcha/enterprise.js?render="+i,document.head.appendChild(r),!0===t.recaptchaV3OnPageLoadEnabled&&r.addEventListener("load",(()=>{if(window.grecaptcha&&window.grecaptcha.enterprise&&window.grecaptcha.enterprise.ready){let t="onPageLoad"
window.grecaptcha.enterprise.ready((()=>{window.grecaptcha.enterprise.execute(i,{action:t}).then((n=>{const i={token:n,expectedAction:t}
globalThis.apfcDfRV3=JSON.stringify(i),void 0!==this.syncCollectionHandler&&this.syncCollectionHandler.setReCaptchaV3Payload(globalThis.apfcDfRV3),e(o,globalThis.apfcDfRV3)})).catch((t=>{const n={error:t}
e(o,JSON.stringify(n))}))}))}}))}}if(ie.prototype.reentry=function(e){globalThis.triggerApfc=null,new ie(e)},ie.prototype.reentryGlobalIntegration=function(e,t){globalThis.triggerDnaApfcEvent=null,new ie({globalIntegration:"enabled"},e,t)},ie.prototype.reentryGlobalIntegrationOnDemand=function(e,t){if(void 0===t||void 0===e)return
let n=ie.prototype.extractDataCookie()
!0===t.onlyOnDemandFlow&&null===n||(t.fpDataCookie=n,null!==n&&(t.enableOnDemandMode=!0),ie.prototype.reentryGlobalIntegration(e,t))},ie.prototype.extractDataCookie=function(){let e=n.getItem("li_apfcdc")
if(n.deleteItem("li_apfcdc"),!e||""===e)return null
e=atob(e)
let t=e.split(":::")
if(t.length<5)return null
const i={}
return i.trackingId=t[0],i.memberId=t[1],i.sessionUrn=t[2],i.collectionType=t[3],i.apfcTypes=t[4].split(","),i},ie.prototype.populateFpDataCookie=function(e,t){"object"==typeof e&&"object"==typeof t&&(e.FPDataCookie=t.fpDataCookie)},ie.prototype.isProd=function(){return l()},ie.prototype.isEmpty=function(e){return e&&0===Object.keys(e).length},"undefined"!=typeof globalThis&&"undefined"!=typeof document&&"undefined"!=typeof window){const e=4
void 0===globalThis.triggerDnaApfcEvent&&(globalThis.triggerDnaApfcEvent=ie.prototype.reentryGlobalIntegration),void 0===globalThis.triggerDnaApfcEventOnDemand&&(globalThis.triggerDnaApfcEventOnDemand=ie.prototype.reentryGlobalIntegrationOnDemand),(void 0===globalThis.maxApfcVersion||e>globalThis.maxApfcVersion)&&(globalThis.maxApfcVersion=e,globalThis.triggerDnaApfcEventOnDemandVersioned=ie.prototype.reentryGlobalIntegrationOnDemand),new ie}}()
class i{static isInitialized(){return Boolean("undefined"!=typeof globalThis&&void 0!==globalThis.triggerApfc&&null!==globalThis.triggerApfc)}static setDf(e){globalThis.triggerApfc(e)}}class r{static collectFeatures(e,t){try{"undefined"!=typeof globalThis&&"undefined"!=typeof document&&"undefined"!=typeof window&&"undefined"!==globalThis.triggerDnaApfcEventOnDemandVersioned&&globalThis.triggerDnaApfcEventOnDemandVersioned(t,e)}catch(e){}}}const o=[{id:"aaidboaeckiboobjhialkmehjganhbgk",file:"mmt-srcwl-lnhvnslulpnfrvcp/icon128.png"},{id:"aaiicdofoildjkenjdeoenfhdmajchlm",file:"css/popup.css"},{id:"aajeioaakaifilihejpjaohomikfinhj",file:"assets/icons/close.svg"},{id:"aaklholmlihjgaamiolhapadfdbbpoep",file:"assets/endpoints-648827be.js"},{id:"abdalefggkmddnicfhgngmdoggcbopai",file:"images/sync webhooks.svg"},{id:"abekedpmkgndeflcidpkkddapnjnocjp",file:"logo.png"},{id:"abfehdblmlodmieppijjflnfbjhedcde",file:"static/twitter_lib.js"},{id:"abgngiafkeiflpophlalfljcoaebhjcg",file:"contentscripts/GmailApi.js"},{id:"abijkldnhhcihcfdalfmpbehenfnecmo",file:"jobs-search-filter.7f007489.png"},{id:"ablfgphjibcgmjcflkflckpoeojilojg",file:"images/flowq-icon-white.png"},{id:"abmlacmengcbgmnbcodefiefmalhdlnb",file:"check.png"},{id:"abmmhliaihcohbhbnonjdemkiinbplki",file:"icon64.plasmo.40ede470.png"},{id:"abnlpffeopccdjacjnjbpokhphbncfoo",file:"img/19.png"},{id:"abpgbcahebodigblhhmldopobepeaohg",file:"content.css"},{id:"acabidngelopojhikjgkacpbjhgjebog",file:"js/refresh.js"},{id:"acackkdpiddedeionboakefkpfflkcfc",file:"assets/bg-dots.svg"},{id:"acahdkapjdnbbljnfpgdmlgmlbihlffh",file:"css/main.css"},{id:"acajjofblcpdnfgofcmhgnpcbfhmfldc",file:"html/sandbox.html"},{id:"aceohhcgmceafglcfiobamlbeklffhna",file:"assets/wp-linkedin-main.js-B-nmK22z.js"},{id:"acgbggfkaphffpbcljiibhfipmmpboep",file:"icons/logo.png"},{id:"achggfpaahjmndigmakfebpjlmfjmmfj",file:"popup.html"},{id:"ackaoollelfpemlphemonchbdflegfan",file:"browser.4ceded9e.js"},{id:"aclgcfmciekojimhckimdcapkejceili",file:"index.html"},{id:"acmbfggokaabfndehodmoekhccfnphel",file:"dist/updates.html"},{id:"acnkkaihdkcocdoenhgdcgnmpobjmgdo",file:"images/modalIcon.svg"},{id:"acoghllfancelnlokfebfojbkoeblann",file:"options.html"},{id:"acpmbealinmmhiideffdijdfmhbenail",file:"assets/linkedin.js-8dRDnjB_.js"},{id:"acpngnlieelljdlljmenkagbonaicccj",file:"nik_components/angular/index.js"},{id:"adcdekdoblmapmohiejneabifojccdoh",file:"images/icon-48.png"},{id:"adfdjhchgaagmbpiobdijaemefkdkndm",file:"content.styles.css"},{id:"adgnjhngogijkkppficiiepmjebijinl",file:"page.js"},{id:"adiikgmaiadcllnhkeclpacjoaaepanl",file:"popup.css"},{id:"adkamkdaglbaejnfobbahegfiinjonme",file:"content-scripts/messageBox.html"},{id:"adknclagpadmdnjepbfddpplgmfginnb",file:"js/tinymce/models/dom/index.js"},{id:"adlljmlbangmeenndganepfkilcdihnm",file:"html/dialog.html"},{id:"admhojmcphjknfpifjchkpbbhphnndgo",file:"green_circle_small.png"},{id:"aebjdjjodmkdnmejakflnfpkadblfmdh",file:"assets/opensauced-icon.1c00b909.svg"},{id:"aecjjmldidhgndpccgokjgbkmcipfdmj",file:"assets/inject.css"},{id:"aeeccphegbhmemmjncggcjlieanbkcmg",file:"sidebar.html"},{id:"aeidadjdhppdffggfgjpanbafaedankd",file:"inject.js"},{id:"afemibdfbljmhkcbdppaibiipnbkioom",file:"mmt-srcwl-ghjwegsv--qvbjmu/icon128.png"},{id:"afgjokfmplfblobgdmddbmoflaajljjf",file:"dist/js/index.js"},{id:"afgkobjcdllpijcjchikjamjipbnjjgn",file:"contentStyle.css"},{id:"afiiebkndlkhnpbekkheibhfjfnbcnem",file:"content.css"},{id:"aflfcbhlpjnhjolcddebeoedcekilmhj",file:"dist/contentScripts.bundle.js"},{id:"agbbbanmddhembghpamggfdjknafcbka",file:"popup.html"},{id:"agdddnmdjmljkjeglnidfpmpenbimmmn",file:"imgs/final.png"},{id:"agdiliklplmnemefmlglajpdaimembli",file:"src/popup.html"},{id:"agghbaheofcoecndkbflbnggdjcmiaml",file:"images/hide-n-seek-icon-16.png"},{id:"aghocgidojdkghacmpmhbifanfkfddbe",file:"mmt-srcwl-jdzbprfndkbl-jge/icon128.png"},{id:"agiilkigodfhimkdcjgbjdlajpjdhaig",file:"assets/ico/icon128.png"},{id:"ahbaomfclkbgaadpmlcmlchhcgfibfld",file:"mmt-srcwl-kziavstsaicuwsbn/icon128.png"},{id:"aheakoghjhpbianljiemepkpklndnogn",file:"white-bg.png"},{id:"ahfgeclknnjfgbefcblahelikidbgehh",file:"camera.min.css"},{id:"ahfilmopkkfaehndncopogaohdkddjjd",file:"assets/common.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:"aigllmlnbjkmoionidfjkbljebahaiib",file:"library/xhr-interceptor.js"},{id:"aihgkhchhecmambgbonicffgneidgclh",file:"icons/share.png"},{id:"aihojinhpngojiaghgoekajdhcjenbce",file:"data.json"},{id:"aijkbfcgfacnbgaladlemlbonnddphdf",file:"utils/select-arrow.svg"},{id:"aijnakmdgcopgeldfcolbikeckpbhkcg",file:"icon16.plasmo.6c567d50.png"},{id:"aikhclibkhmmkpafjdchlnmemagbjgdk",file:"resources/img/copy_button.png"},{id:"ajadiionajfkakpiicnmhegfabihnglj",file:"contentStyle.css"},{id:"ajceemkmbgjolpocnkfccjmplcbbppel",file:"index.html"},{id:"ajcfhmjfhpbeefcnfmbheidefdodhcfa",file:"img/caret-up.png"},{id:"ajddacgankfijplgnfdoknldbidfnaba",file:"share-image.png"},{id:"ajehfdojkciheocnmhkbelgefjpepkde",file:"assets/icon.png"},{id:"ajlpdbecccidmafdojjahlkdjpangdda",file:"handle.html"},{id:"ajmlcdlcagmkcfbomfchikkkkabomeda",file:"assets/inject"},{id:"ajoickdlofadbaooambnlnlbcpdnkkck",file:"icon.png"},{id:"akafamnmbhpopdnbgpabgjhmjgbcjnag",file:"mmt-srcwl-xmpnhtgtkatvddep/icon128.png"},{id:"akbanfdgkegjhlhilkiikcmcjgnmgden",file:"dist/auth.bundle.js"},{id:"akeepikolhaikilagiekmegfhefcbohd",file:"src/iframe.html"},{id:"akemecbhkcopeeicihindnjgfihkkgdi",file:"modules/webhook_response.json"},{id:"akkfaafpbljjdmpekeoippmgdlhidgmm",file:"icons/icon16.png"},{id:"aklejaaicklpmejgidjjmjpecadhhojd",file:"app/immutable/chunks/misc-db50ee82.js"},{id:"alanhknkkgbmjcifaecnihemjmcofaid",file:"images/icon.png"},{id:"albldfiohnhdonffjdbiohejiofaahpe",file:"frame.html"},{id:"aleoomdhnjddjlmfocibikjdpkdpadko",file:"contentStyle.css"},{id:"alfpbpbopicnfllpimeniedbhdinhnla",file:"images/no-ads-emoji-16.png"},{id:"algadbfmljcppohmcckpdemkjklapibd",file:"content-swarm-logo.png"},{id:"alhgpfoeiimagjlnfekdhkjlkiomcapa",file:"img/empty-states/google_calendar_empty_state_block1.svg"},{id:"alicgiickdepegihbonmofbeicfpleca",file:"3d1819e7-4594-4707-b887-7a184e4f4474.html"},{id:"amaihgbibhcjibijmmhbjcflhcebjcdb",file:"assets/buster-icon-16.png"},{id:"amapllhcnbchdgmokdpepldjnahakkhp",file:"check.js"},{id:"amcdijdgmckgkkahhcobikllddfbfidi",file:"assets/theme.css-38f128d9.js"},{id:"amegdihgpgkempfnaijolncbklcabjno",file:"images/icon16.png"},{id:"amfgppaiaaledghabgegkikijjkckeea",file:"assets/loader-circle-CRJ55fjJ.js"},{id:"amfklcoihehamimgfemijdpmapoamlak",file:"js/Whatslly.js"},{id:"amflmabcccmopealakhfpopchgpfkimg",file:"icons/logo_16.png"},{id:"amlpnkfionniifnajgcalfndolieichk",file:"assets/dex-icon.png"},{id:"amnbnhabnpcpjegbelaknhfkohkdfjdl",file:"css/main.css"},{id:"ampdncancbacehgbghpfhgfllclcinnp",file:"react-ui/ui/build/static/js/main.f889e797.js"},{id:"ancbpbjhhcnaaommbadhfnaplbokllnb",file:"popup.html"},{id:"anibbblaeamdcgglangaglnkdeobafpk",file:"img/Zufu16.png"},{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:"apcnfdilodafoeafgdhaiidgfnipeehh",file:"confirmation.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_icon16.png"},{id:"bagehhhbomldefdlofnacnbbhnehaffj",file:"lib/supabase-client.js"},{id:"bahdhdbpmfjgaibpbhecghjalioepncg",file:"assets/Images/plus.svg"},{id:"bahdmeamifckdmdpaclbpkijamkddnje",file:"src/assets/highlight.css"},{id:"bailjfhocoiopbliiaolbbhgfeemckfn",file:"icon/keatsai_icon.png"},{id:"baklmcppcppgaaonaebenllkajjoipod",file:"content.styles.css"},{id:"bakndeimacanehmkddjhnjjmigngcjem",file:"images/dad.png"},{id:"bakpgcfeijiedgkdoppkjflmkhhipnec",file:"drawer.html"},{id:"bakpglgljlidccopnnpcdnfbijaelbfc",file:"Image/arrowDown copy.svg"},{id:"bamhjalcljafbmifkcdjhlgellecndfb",file:"images/add.svg"},{id:"baocnjdknemddengejjojkbjdndlgdoj",file:"assets/images/16x16.png"},{id:"baoncfneddpbobeaainaianmomifjdeo",file:"dist/contentScripts.bundle.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/1.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:"bbmdjlmdgkmgppeobhnigpnjpelfhmki",file:"mmt-srcwl-pzyoeotnttfljjhl/icon128.png"},{id:"bbnldngeobpjnlnnfiapghebkhenlcpc",file:"content/x/capture-headers.js"},{id:"bbogfailgecdbikllcnbdldlkdneolen",file:"sidebar.html"},{id:"bboobhaeifmkebdnagpdjdhbdjacabag",file:"assets/sounds/new_alert.mp3"},{id:"bcaclmklbiocjohhooaaldkbelkaogod",file:"popup.js"},{id:"bcafihlmeiigdbomiojfeeddffpbngje",file:"assets/env-VmtmKc4P.js"},{id:"bcjfmlopjjfknkcdebfeacmfmpndjkad",file:"image/blank.png"},{id:"bdfgdkfdldpohakbalfbolkhacncaodn",file:"logo.png"},{id:"bdhnjcphicbeinfhflojlmichehflmhd",file:"src/css/connection.css"},{id:"bdiohckpogchppdldbckcdjlklanhkfc",file:"static/media/qr-code.181c8eeb065bb04f416d.png"},{id:"bdjldnjdcagaopcdjcpkgfolfldpeckj",file:"popup.html"},{id:"bdkameljhephalfojkpanegoekmbkhom",file:"popup.js"},{id:"bdlajpgcmpfhdjjlldcfheibbnbcpegj",file:"static/css/content.css"},{id:"bdllamkambdegiopkjjdpeckieecckkc",file:"dist/icons/drag_indicator.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:"befoleoiljghfclfoifidljpmbhijngp",file:"options.html"},{id:"beghjaadnlgdjblgimcnidhipangdlob",file:"requestPermissions.html"},{id:"begilfboibeiingmandhfeebipngobaa",file:"images/delfi-logo.png"},{id:"begpcdlgbbjihlilieokcgnlcmeondog",file:"icons/realeyes-ai-icon.png"},{id:"bekneflnoddpbfddnibalhcclcpeppim",file:"popup.html"},{id:"belhombhbdodpmoadjgljnndhhafbkkf",file:"js/jquery-3.6.0.min.js"},{id:"bepabeobdmmefhhhkonppcppgodhjdno",file:"icon16.png"},{id:"bfanalaldfhlcadlkmjpbiaieophgpgn",file:"core/SideBar/SideBar.html"},{id:"bfflbfpjfhicaboicheecmgkjcgmngai",file:"src/popup.html"},{id:"bfgiokcmicogmegplikmeoolagfkehfk",file:"assets/icons/vectordrop.svg"},{id:"bfgkgjjcgcfdjdcdcicnekhhldinkkhk",file:"dist/_locales/en/messages.json"},{id:"bfklgdbpeojhdbpnbkehomjlahaeijik",file:"assets/state-0743f7cc.js"},{id:"bfoibfacnnabealdgagkkmdbkinbjoem",file:"js/inject.js"},{id:"bgaiinkldeidiiphcbipeomcajmndomh",file:"nonews.html"},{id:"bgdjlbjaemhokfkkjiplclhjjbmlhlof",file:"dist/contentScripts/style.css"},{id:"bgjdlgmiabfgkdcpkomfpejcddaccdlm",file:"hermes-logo.png"},{id:"bgkalnkemmojlglhakebbpjecigamgii",file:"images/logo.svg"},{id:"bgmocpjdgcjmdjbklijdgnalkleckpbf",file:"enableScrolling.mjs"},{id:"bgniimmgelhhbmnfoklafdfhdogadlhm",file:"gmailGlobals.js"},{id:"bgpdabnppijhmmgpnnooghpglmjkmnbl",file:"click.mp3"},{id:"bhbcbkonalnjkflmdkdodieehnmmeknp",file:"assets/img//extension/icon16.png"},{id:"bheokphafjambacdhielfpiobmibjofi",file:"icons/icon16.png"},{id:"bhfmpjhgipllgcjahaipdgemafjemojd",file:"icons/icon128.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:"bihljdccljlpiphamgnjhndeoalkmclk",file:"images/icon-side-48.png"},{id:"biicfpflnfpfdiahfekdanbgihkkibem",file:"images/logo.png"},{id:"biihmgacgicpcofihcijpffndeehmdga",file:"popup.html"},{id:"bijpaomiojnjdklgbomeoenfegpjljfk",file:"icon16.png"},{id:"bimcfejflejokcknelbmenleeknchchg",file:"content.styles.css"},{id:"bimgikcfhcjibdaaamjlogpndceajhii",file:"sidepanel.html"},{id:"bimmbgomanhpkfodmiomjgfakleojpia",file:"static/js/main.js"},{id:"binfkcmklghbjkbiaknecnheepdiagfl",file:"popup.html"},{id:"bjaegbkiponlhjibpdbjhdfjehijmdca",file:"cflogo.png"},{id:"bjahjijchjnokbgbahdmfcjoblkicank",file:"index.js"},{id:"bjckcfdgnmppdohidoknphenoflgdapd",file:"favicon-16x16.png"},{id:"bjdlhnaghjcjihjiojhpnimlmfnehbga",file:"contents.ded88a91.css"},{id:"bjflephcegdkcngbcakfgoeejcmkocep",file:"popup.html"},{id:"bjginahbhcpmjhjmfgebfpneegkdcobe",file:"injected.js"},{id:"bjibimlhliikdlklncdgkpdmgkpieplj",file:"static/media/divider.svg"},{id:"bjoeldmfpoffkjdknipkjnbbiocadffa",file:"dist/styles.css"},{id:"bjpbahfcadiieifmkpdhkpbecnkbbflh",file:"login.htm"},{id:"bkacpmlkpojmkbheofkfgcoddmfoblce",file:"embed.html"},{id:"bkbipadjogdmmnajfplbllmglobaiapc",file:"js/Whatslly.js"},{id:"bkcibcjcbhgjoddeldfmgkbaipjkidpf",file:"assets/32x32.png"},{id:"bkkbcggnhapdmkeljlodobbkopceiche",file:"message.html"},{id:"bkljmpppcfepdfokbjlocdhipammabkm",file:"assets/icons/icon16.png"},{id:"bkomhhlgldmokcopilckjiggodoehkco",file:"prospect.png"},{id:"bkpkgidmenpdlkoklchjijhmkjfjpaae",file:"popup.js"},{id:"blbkhhmhnbnlmbnloahekpdngbondmog",file:"shortcuts.html"},{id:"blcckdeodojeihpjahngbabalhiiofjk",file:"dist/contentScripts.bundle.js"},{id:"blcddfbfkinmhmokhpjiiljjfafjpgom",file:"vendor/jquery/jquery-3.6.0.min.js.LICENSE.txt"},{id:"blegkbedbdcoocieacjmpchfmcmdhfce",file:"popup.js"},{id:"bleihlnmbokeimikncokphpgdobmkhfa",file:"img/warn.png"},{id:"blimjkpadkhcpmkeboeknjcmiaogbkph",file:"assets/icon-loader.svg"},{id:"bljigloeikaihodehchnpcnpgbhplcdp",file:"settings/js/foundation/foundation.js"},{id:"blkniannnkeafpapkaojddhemhhcpfmf",file:"css/versions/v1/default/maimai.css"},{id:"bllnefaigeffjgfhpgkpacnlbbldbblm",file:"emailModal.html"},{id:"blndoopcfepmdfbbajpbldigolihligc",file:"success.html"},{id:"blngdibglkefnkigjmfhnfineimdhpdk",file:"assets/images/check_0.png"},{id:"bmaobmmbobbmddkdjilonehnhopdgbkj",file:"images/icon-16.png"},{id:"bmcdakblhbjfdnmgpnmlohlhdfpdlhcb",file:"images/logo-grid-128.png"},{id:"bmcooeoofkmnbmlbnkhlfiepoekipkcj",file:"content_scripts/inject_style.js"},{id:"bmdjphpepbkfmgaphblghfocmoiglagd",file:"images/icon-16.png"},{id:"bmfdbienklancpahjiadlnpnhedipnok",file:"assets/index.tsx-Lu7gwQxU.js"},{id:"bmilkimafelnhekidknkamkhkbeciijg",file:"js/langs.json"},{id:"bmjenpefcodngbhgmlegfiflgalgkmgm",file:"index.html"},{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:"dist/contentScripts.bundle.js"},{id:"bomddfcanochfdhopndjibndlgpakdlg",file:"ext/index.html"},{id:"bpdglghjfejdbgpnimibgacmgadmdfoi",file:"icons/info.png"},{id:"bpepnldejpbbhooofgclkhghkgkjflpi",file:"standalone.html"},{id:"bplfjdcehflmipacbghiaknhadlnlpfj",file:"dist/contentScripts/style.css"},{id:"bpoadpcobdbakpgkgpfhlggfapdkiijm",file:"browser_action/libs/jquery-3.4.1.min.js"},{id:"caadopicojbkljdpeafepckmnjikaolb",file:"images/button.png"},{id:"caaobcolmgkhjnaibfhmecgcpnlgkpha",file:"config.js"},{id:"cabkgifjkffnepkcnhikfphnnmbblhbp",file:"dist/contentScripts.bundle.js"},{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:"cajpfncojbfhppoebogbdkkdkfbjkdjf",file:"image/input_check_ex.svg"},{id:"camppjleccjaphfdbohjdohecfnoikec",file:"assets/index-cebfbf65.js"},{id:"canpneabbfipaelecfibpmmjbdkiaolf",file:"inject/js/location.js"},{id:"caoebkpcoieoneniagdligghacpekdgo",file:"icon-342.png"},{id:"capgbfgnklakdedfbjkacmjpkebanifk",file:"assets/getHtmlContentScript.ts-Dy3lTXi5.js"},{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:"cbibgdcbkoikdkeahemkjkpacmgicaco",file:"assets/logger-41bd24c2.js"},{id:"cbkmdhgnkppdjfklkekngofhedeollmh",file:"assets/logo.2cd9ed0d.svg"},{id:"cblepcoiecnbipofhldchjldhoipifja",file:"img/edit.svg"},{id:"cbphmmiacdapdjkdimoehkllfmgadgdj",file:"icon-128.png"},{id:"ccabkgkocobdhpnlofbdonmdnpnnjaga",file:"myscript.js"},{id:"ccadakhkcohjjbnlicnknnhihifhcmoo",file:"assets/content-script.tsx-Uvhr6ByV.js"},{id:"ccaijeloniehecfmfegfgdplpahbccid",file:"dist/overlay/translations/de.json"},{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:"cdajdkllejidncafegbgnaahdjhlobga",file:"index.html"},{id:"cdaknpfogiemnhdlkjflcbcfldnecjac",file:"selectors.json"},{id:"cdbhbadfpeckodkjefohagjajdggmcpn",file:"dist/contentScripts/style.css"},{id:"cdcijolehmceilpkfiailgenbajjhgnn",file:"content-scripts/content.css"},{id:"cdfjbkbddpfnoplfhceolpopfoepleco",file:"icon_48.png"},{id:"cdjncbceanblcefebknhkmhgkhfoofmm",file:"icon.c766bb78.png"},{id:"cdknobbdmhicddgkenemmmbmnbdnhhkl",file:"icon-128.png"},{id:"cdldadgdheoccmpjaclanmhckmgkhmlg",file:"js/extension_injected_google_docs.js"},{id:"cdlngbighhgakdhnikmfndhojnmcfebm",file:"content_scripts/shared.js"},{id:"cdmmpngppebpilcajoikplkjbelbimim",file:"icons/icon-128x128.png"},{id:"ceaieellonhoiaielfdbelnpblojpecd",file:"css/sidebar.css"},{id:"cebjkdeabhiafpmbhjlbnpkpclomjgko",file:"onboarding.6e038a4b.css"},{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:"cejoekcmiibagmpkiepdnkpibhhgmdgj",file:"tabs/loginSuccess.html"},{id:"cenlnghioejfjidkaigndnhaalfbofad",file:"scripts/libs/jquery-1.7.2.js"},{id:"ceplokfhfeekddamgoaojabdhkggafnk",file:"assets/icons/extension-blue-16.png"},{id:"cfeapkdondjeoahbecaapmbipkjagabj",file:"static/linkedin.js"},{id:"cfhejgpppblnpbdielbedpkidgajplko",file:"injected-script.js"},{id:"cfjdbjoghkckljhpmehahoingaokbdfk",file:"www/assets/MainLayout.b488c9a8.css"},{id:"cgdjipjplklipnlfbglgkjlnhfkpihfd",file:"content/browserextension.config.json"},{id:"cgekhbhgoiinffledgpopabbdancibcn",file:"js/constants.js"},{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:"cgikbmpnchlhjohhbglcpcahabbjboan",file:"popup.html"},{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:"chddbpembfkengmfmffinnnghooaohmc",file:"icons/warning_orange.png"},{id:"chhgomfjadniehakfodegblpbkfancgk",file:"dist/assets/32.png"},{id:"chmpifjjfpeodjljjadlobceoiflhdid",file:"img/tracking.gif"},{id:"cidpfpmlbbgijnebifbmgangefjbhfed",file:"logos/128.svg"},{id:"ciiaaeopfhhhghglhdfbphciifbgcmeh",file:"images/default_icon_128.png"},{id:"cipldkajkmnlacipikeninoncpdehlfi",file:"loading.gif"},{id:"cjafanjojiojlmedfjmdmkbgeekigmcc",file:"assets/img/link-bg.png"},{id:"cjbfcdliecdglkplnbhgphjffjpjmllf",file:"index.html"},{id:"cjfcggkodegcngbhenjoppjagififcpk",file:"options/index.html"},{id:"cjhohccbpbkcealndpfanpclfgcekell",file:"fonts/SlatePro-MediumCondensed.woff2"},{id:"cjjmbkhojiejmhecfphfopjppihdncjo",file:"assets/images/logo.png"},{id:"cjkcfphfjfplmlppnpdlcodnfikjldap",file:"js/consts.js"},{id:"cjkojpkgnjjkjpcjemjhfignbicaodfi",file:"gtmbHook.js"},{id:"ckdplebejgnoiilfmabhpjlhmhgmhgdg",file:"images/icon16.png"},{id:"ckgfapcnbapncgdjbhneanpbjcegigin",file:"settings.json"},{id:"ckgpicdidnjcheaacnadgefpbgmclgll",file:"popup/index.html"},{id:"ckheedjclgkpfccemlljhcepjjflfbfd",file:"images/get_started16.png"},{id:"ckkfaobbhgehdldcbdnnidninlcelajf",file:"images/icon-16.png"},{id:"ckkkojciahjkgnncioclffoneobeliaa",file:"images/bestfoot-action-16.png"},{id:"ckpjfjiebhabcggefamfdpiooknocdac",file:"static/js/main.js"},{id:"clbgjbelhimbljjcmndgbjbngbgclboa",file:"icon/128.png"},{id:"clfeejjmcegnmnhoaaffboddkajhenep",file:"utils/annotated-canvas.js"},{id:"clfhdepcpeniidgdidhdaempocnmmfdm",file:"iconbw.png"},{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:"cmapfncifiebldglinkabkhamgoflmdl",file:"bookmarkIcon.svg"},{id:"cmapiaejeihjngekanombmnhbfggdali",file:"build/floater.bundle.js"},{id:"cmcmfolcnbomgnneklpnlhmmeinihpgd",file:"portallogin.html"},{id:"cmdbjekfhiakemgocapffboifcdbgbhf",file:"img/loader.svg"},{id:"cmdcmljghmolhiphapkhgodlgebfgefb",file:"images/icon.png"},{id:"cmdgdghfledlbkbciggfjblphiafkcgg",file:"web_accessible_resources/noopcss.css"},{id:"cmdlhjmdbnkfjepmmmcbapmgmpckdnkm",file:"dist/contentScripts.bundle.js"},{id:"cmehejndjobjogbmncfcchedokimijfl",file:"dist/contentScripts.bundle.js"},{id:"cmkicojchpmgdakmdjfhjjibbfmfplep",file:"icon-16.png"},{id:"cmlngncglcblbobiehdpjcgbpoemidho",file:"images/Logo16.png"},{id:"cmmmhbianacbeffhdimooggkpjkbfjoh",file:"icon.png"},{id:"cmmobbgebjbhjieiflhlcgfpibdfkgjn",file:"icons/share.png"},{id:"cnafldpjebmpkibjdogkhifhnljdifae",file:"content/inject.html"},{id:"cnjglfcbjpabeldeimjodphnkhkibhle",file:"extension.js"},{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:"icons/16pixel.png"},{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/WebcamCanvas-C4pj0MK-.css"},{id:"comlhlhadkibegigjnfebklaalpbphni",file:"noBS.png"},{id:"coojeglmpbefodeopdopljhghbbjlbge",file:"icons/image.png"},{id:"cpafneaobbnfdmhmmgjaflofjjlffmko",file:"libs/pdf-config.js"},{id:"cpcjjojbnmjaioodineaagmbhabhcmfe",file:"img/close.png"},{id:"cplhlgabfijoiabgkigdafklbhhdkahj",file:"Src/js/content/permission_request.js"},{id:"cpmkbhhgnoehojjojlkndjoepmnipkin",file:"icons/_tw64g3i14.png"},{id:"cpmmpeojckmlhcalhblefdlllhmmpjen",file:"assets/sleep.js"},{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:"dbahmmgmghbkihpobhkhkjaeajgbdjce",file:"js/refresh.js"},{id:"dbbnklfnnlgpdepiepmbddippahnlofo",file:"html/audio/audio.css"},{id:"dbcllnegglfpapjcfhfndakmajhhbdfd",file:"icons/icon128.png"},{id:"dbepenphjfofmnjmlacfcdehikakmaap",file:"flyout.html"},{id:"dbgkddmniehogfdodkjakibnejobdgge",file:"dist/contentScripts.bundle.js"},{id:"dbhldcdbjidmagngffpohjobclekgjng",file:"assets/inject.css"},{id:"dbidcampmdmehcelnafncjnbcpobdajl",file:"assets/index.5815227a.js"},{id:"dbkabjeliahdblphpbgljbngijgknjfj",file:"index.html"},{id:"dboceidahklphhjpfbpnicodnbkoiokn",file:"css/blocker/facebook/hideNotifications.css"},{id:"dbpiijgjfgnelhkmnklfebcnhdlecodc",file:"fonts/OFL.txt"},{id:"dcdpkefhmpgpnogeddkpjjmioaeopche",file:"frame/frame.html"},{id:"dcjdhicepiklefpimapdkbaeoocniemc",file:"chatgpt-active.8bb4c33a.svg"},{id:"dcjmfapnfmimecgdbkgdnfbapdnhmnmn",file:"icons/logo_48.png"},{id:"dclggbdhjehnnlkpdnaoldlhpehpgjlc",file:"assets/contentdrips-logo-48.png"},{id:"dcobodbibhecmhnamioljhlnaeoimbcd",file:"packages/tooltipster.bundle.min.js.LICENSE.txt"},{id:"dddpkdpmdfdphmjnbpmnjaajedhjddpf",file:"images/images/logo_32x32.png"},{id:"ddfjghnfnibgfpjpncgcpjieibgmphef",file:"assets/img/128.png"},{id:"ddfpmipfajpdnpakkplbjkkdnibipalf",file:"images/64fb7dccc577aa25e5be02d4-Linky_Leads-1694534196223-small_icon.png"},{id:"ddgjfcnlnalnclndfbicegaffehlnlnl",file:"images/ghost.png"},{id:"ddgjkhpdbpeiifciiijfbcfcodmiicfi",file:"pages/markup.html"},{id:"ddiljkpieefnblkkkehigdfjhjgbfnbf",file:"src/resources/popup_iframe_html.html"},{id:"ddlbpiadoechcolndfeaonajmngmhblj",file:"assets/expandableCaret-right.svg"},{id:"ddmjhdbknfidiopmbaceghhhbgbpenmm",file:"offscreen.html"},{id:"ddndchbffgdgedjaehmipolebhoaacmk",file:"content-script.js"},{id:"decehdgnikepnangkendclmiomkcnpjh",file:"icon-logo-handle.svg"},{id:"deengjgdmmglkkamfghghippkmblkedl",file:"page/runScript.js"},{id:"dejnnmbpnbcblfhkomdkmldiajpfhngl",file:"js/jquery/jquery.min.js"},{id:"delakdmnpanaclafnplfomddhlhlcloe",file:"img/bg-home.svg"},{id:"denfchfjdgfekgapbjmpmkgaiapfjbep",file:"css/main.css"},{id:"deofojifdhnbpkhfpjpnjdplfallmnbf",file:"simple-logo-xs.png"},{id:"deoolbnamlbffcceodhghnljbncffpio",file:"public/grabber/grab_likes_count.js"},{id:"depaplpjbfhdinjpalmggipdgeldmmfh",file:"assets/css/styles_2.css"},{id:"dfcfifdniniafdhnblehebkcnkoncdpj",file:"injected/define/define.css"},{id:"dfehhiielnibpekdcfhpdbnejknennnn",file:"src/public/popup/popup.css"},{id:"dfghcacipmajmklekdkbiihllpfdjnpl",file:"images/aelize_logo_btn.png"},{id:"dfkifgphcnihlpdndohichmfjpobmked",file:"img/ds-send.svg"},{id:"dfkoahlhkhmkedkljhgochhlmoggkdje",file:"popups/sidebar.html"},{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:"dgbnleicggffnbkonbieadlglgbcojii",file:"assets/lightning.png"},{id:"dggmapjanngfjjakfgeoegfmgpmcamfh",file:"index.html"},{id:"dghfdniicjefmeegfhpmikkjnbfkifgo",file:"media/rounded.png"},{id:"dgjmddhfbnpglcapblagdlgnehjnmlpn",file:"assets/main.ts-DQ-BUf9Y.js"},{id:"dglcfjbiogcogpkmmmojbhpbmmoaghcb",file:"iconlogo.png"},{id:"dgllhmcgnfaiemgnjmbdgfeapohjnkop",file:"assets/opener-b78ae03f.svg"},{id:"dhcenlmiiomefodpnckhfkmidbpfpgnm",file:"img/logo-xs.png"},{id:"dhdkiojkefbmghfckhklfnlajbmadkbh",file:"index.html"},{id:"dhhfgcgahkeogalndpamojpnelapegom",file:"assets/vendor/bootstrap/scss/utilities/_clearfix.scss"},{id:"dhhfhngocmgfabekphbehbeneelmimoo",file:"assets/icon-16.png"},{id:"dhhpghgfencmfkcmdjjjdinbaiapabbd",file:"style.css"},{id:"dhikhoidbejcgjohpbicofehjfkbhpan",file:"Drag.d2240f5c.png"},{id:"dhjljpenmfiobmpgihfdjgngigegggkf",file:"popup.html"},{id:"dhjmppadianhldlphobplaonacldgakp",file:"genius-ai-logo.png"},{id:"dhkkipdcahoikdahaeidlafflbillaoh",file:"logo-blue.png"},{id:"dhmeacbamnkenejkmdneghjndaihdhdc",file:"comment_button.svg"},{id:"dhogfpnpeafodclcnigbfedmcnmahefc",file:"linkedin.6e038a4b.css"},{id:"dhpjlnldbcebgbepifjmlcjfadkffkam",file:"assets/logo_16.png"},{id:"dibfbemhegmnkjbpgdemgobiknmdhhpj",file:"css/search/content/bottom-block/bottom-block.scss"},{id:"difoiogjjojoaoomphldepapgpbgkhkb",file:"assets/cross-cursor-Y4XPJ37V.png"},{id:"diildhkepekdlholonjgkamnmafogkig",file:"pages/popup/popup.html"},{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:"djcmkdkjdchgplhaadeffehffgjcbohe",file:"icons/dotBulletPointIcon.svg"},{id:"djmienebkjmfcelnfkcnlbdomapjbgfh",file:"assets/img/double-up.png"},{id:"djpeecijcbigpoijldkimmkilekocdao",file:"js/word365PrintView.js"},{id:"dkfgebgfmdiljakjlliddfpoiaehceah",file:"dist/contentScripts/style.css"},{id:"dkfmadebibibgfogainfmieipbgffomp",file:"icons/stop.svg"},{id:"dkidnpakjajkpdllkcnaniimpojnohmd",file:"parser-configs/gmail-parser-config.yml"},{id:"dkkmpkpjimkollpfgbbglcikcmgmdlhn",file:"js/guest_script.js"},{id:"dkpapmejcaildkecfhcffgjhfaehhigf",file:"content-scripts/content.css"},{id:"dlanhacghegnnloapoliciamiiabbepo",file:"assets/mirwork.png"},{id:"dlcnbdemimiedcapkncdfmmnidobcpmi",file:"logo.png"},{id:"dldadkjlkldanpbaicclkikgkgpgpflj",file:"lib/trigger.js"},{id:"dliepjhilkeflchmcmkkjkcnjfedfjfe",file:"assets/img/favicon.png"},{id:"dlimgbmckofibmpkodcebmojebgbmbkm",file:"content.styles.css"},{id:"dlkollhfagpgcpbfhpldpcladffnbkdk",file:"icon-128.png"},{id:"dllmllkppgipkkojnmbcmpdjdbolepbj",file:"config.js"},{id:"dlpjlpfllppnmogmpfmhlekaoaipdoia",file:"background.js"},{id:"dmbccjgljjkfhmdcahcbgmkebhdbifjg",file:"src/content/sidebar.html"},{id:"dmcddloohffhmjngiieikfifpfneadcc",file:"pages/app.html"},{id:"dmclljmblkjlecmllmebaoidbkdnejbn",file:"options.html"},{id:"dmfjonjeonmaoehpjaonkjgfdjanapbe",file:"js/iframe/iframe.html"},{id:"dmgkiikdlhmpikkhpiplldicbnicmboc",file:"js/word365PrintView.js"},{id:"dmhgdnbkjkejeddddlklojinngaideac",file:"hider-menu.css"},{id:"dmibboeahipddbmdipdhfegijemhbmek",file:"icons/light/icon32.png"},{id:"dmkcllnjhiiaoiemkmnipapekhlooghb",file:"js/someWindow.js"},{id:"dmmimeopahncbliiagedfenjlgdlogee",file:"logo192.png"},{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:"dncilinodjpgloajbdolfcjjlhokbdan",file:"img/transparent.png"},{id:"dnffechahmhfhfjhjbaniflciceokghg",file:"img/pipedrive.png"},{id:"dnfhnfpngcdclcofckaailggoaomcecl",file:"content.styles.css"},{id:"dngeeinjngdpdpbglhnpaiegnedijmda",file:"libs/load-typekit.js"},{id:"dngochbmnapgigpkokeeilhbigmghcgi",file:"images/logo.png"},{id:"dnkdkcaoinocjiplogloocmbopfbbicp",file:"popup.js"},{id:"dnlkpnnglcjooohhgpjhmbcfgahcjbap",file:"showpadJS.js"},{id:"dnpodpiniddnejlhfheejkjdgnoacpnk",file:"css/global.css"},{id:"dobielmofoebpnaijanlimppdhjbfpcp",file:"16x16.png"},{id:"dodghoacmcolcigjioiapehcmpdadgmi",file:"manifest.json"},{id:"doflnonadfccnohhccjoholpmlibhjnd",file:"logo.png"},{id:"domfkeoiogehhokjcniohjnegjonabcl",file:"icon128.png"},{id:"donepnmknbdokidbmjmigbjeoefnfjol",file:"giaothy.html"},{id:"donhgkmejidpmaaaegcncggmplnpfcob",file:"stats.png"},{id:"dopfpijmhlmapmaofohaakejdhnmeelf",file:"bookmark-ribbon.png"},{id:"dpbbbjcogocehfjmeggcfncdmijbaimg",file:"icons/loading.gif"},{id:"dpbhcmkmgkcnifdjempfpbbjfiomifch",file:"linkedin-content.min.js"},{id:"dpgdmabjokbkbljikmjinflfohgpgppl",file:"images/friendli-icon-transparent.svg"},{id:"dpkbdbpmahebenenkkjenihgfophknbm",file:"lib/client/dist/robots.txt"},{id:"dpoidadgglgelbbfhnpecpldbodmidpc",file:"projects.html"},{id:"eaancnanphggbfliooildilcnjocggjm",file:"src/assets/index.css"},{id:"eafadncoenbcmghdgbooflkolmoaejed",file:"image/blank.png"},{id:"eafohddoagcglckeddlgldchfmjlldkj",file:"googleAnalytics.png"},{id:"eahedcimmiekdjjgiaagcjikacdahkol",file:"index.html"},{id:"eahibbaaiofgelaphhnhhbcodmoffabb",file:"dist/contentScripts/style.css"},{id:"eaiaifikpnmoafjlljhgakelanadngnk",file:"close.e95ff2ab.svg"},{id:"eakoekekaidgifkikhkpgplhbepkfhkb",file:"src/static/icon32.png"},{id:"eanggfilgoajaocelnaflolkadkeghjp",file:"img/commands/rate-f.svg"},{id:"eapcedpgnlmgkigiieacngkpdjikfgci",file:"src/css/inDoors-tippy.css"},{id:"ebaikcmadbhckgkehkfnpbagpfjnidml",file:"extension/images/icon128.png"},{id:"ebbmfdpjhighfdljkakcpbjpcekmfpeg",file:"index.html"},{id:"ebfhfdmncghemmnbecpblnbfejfpclcf",file:"presets.js"},{id:"ebhomdageggjbmomenipfbhcjamfkmbl",file:"assets/checkDotsvg.svg"},{id:"ebkhdmdkadbjecipaoocokoboianbpom",file:"icons/linkedin.png"},{id:"eccmikiogpenfpichmihomhjjgdfcank",file:"content.bundle.js"},{id:"ecdjnnnodhapkhgginpicggbmhmkjjbc",file:"popup.html"},{id:"ecdkpbkicjlngfopbbphejdlcogfnjdh",file:"icon-34.png"},{id:"ecihdehdpgefndecmjnlglemiekmcebc",file:"favicon-48.png"},{id:"ecjimoljgoibcphjbfheghdinifipbdh",file:"manifest.json"},{id:"eckgincbbakehpolnndoighkiaofjolp",file:"src/images/icon128.png"},{id:"eclnikmacpcandpbfjkjgnoicmlpkkdj",file:"images/quix-minus-icon.png"},{id:"ecncahfgpjboifohdafldhcgenjlfnfl",file:"images/pathrise_logo_16.png"},{id:"ecnepininffodhhimnlocaehgpmcnnlk",file:"popup.js"},{id:"eddfkoiohkjaehmcmmkachnkdjadicln",file:"dist/contentScripts.bundle.js"},{id:"eddokgnllajijhakdhhedgnipmcdmhbo",file:"assets/css/style.css"},{id:"edfegnmkjgjjpbmkoljghcpgjgddocon",file:"assets/images/avatar.jpg"},{id:"edfgdiieipdlhkmmanhakhibhomfdjip",file:"index.html"},{id:"edgbkmgojnjgheeinddonjamfegmneok",file:"contentscripts/GmailApi.js"},{id:"edgmppgmaklmaggkamddmgpphellcmhf",file:"bg.png"},{id:"edkibgpollgbhnjalcdlpmbjmdgohjko",file:"css/content-injected.css"},{id:"edkjiliccpdememipbkcngdajfpcimij",file:"popup.html"},{id:"edopjgcoalhcnmdnhlkcfjekhggmakea",file:"icons/icon16.png"},{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:"eeemlplommconacnmcopfaleaejongma",file:"content.styles.css"},{id:"eefggkocimjcilikhofpbinipkcllphd",file:"application/Tags/VDom/tags-utils.package.min.css"},{id:"eeibpfgnekehoogipmbkaaibcobhdmkc",file:"tabs/oauth.html"},{id:"eeijpelkaenoackceoiocmogijanikhj",file:"hello.html"},{id:"eekjlaadjflehfpomihbkhldphpnkbag",file:"index.html"},{id:"eelojdbiagbabehiijgghfmdgnggdfna",file:"contentScriptContainer.html"},{id:"efajnkcfjjkcodbhkhaigkffdleomnag",file:"addsiteframe.html"},{id:"efddnnnikgkbfilkoldcbgpaiknfbgol",file:"superagi_logo_chrome.png"},{id:"efdjbolloapdcnphaapdklojjenlgdbo",file:"app/content/menu.js"},{id:"efgpeeopaefknjnhcimdndfebnoboghh",file:"dist/contentScripts.bundle.js"},{id:"efinedpmbfjpmdkjnghhakkhhdipdbig",file:"popup.html"},{id:"efjkgaiaeenkkjpionegdpmieacopilg",file:"dist/contentScripts/style.css"},{id:"eflhgammlcofelhagioegonghdmhabmk",file:"assets/icons/icon16.png"},{id:"efmnkiklpnaekhleodlncoembopfmjca",file:"content.css"},{id:"efpmfikikojpigfhfgjjmbmkapboliio",file:"static/media/minus.eaf3f1d5e442550b1e0a344a3ace4ab2.svg"},{id:"efppejgeolihmhmmjdiabeanjcpmocfc",file:"static/linkedin.js"},{id:"eghahgiddjgocmehngcmdghojooiaakl",file:"views/inject.html"},{id:"eghccglgncfngboeiieppackdmdllijj",file:"style.17960098.css"},{id:"egpkmebnagjbfhblnoiljnkifplaboki",file:"content.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:"images/logo-16.png"},{id:"ehinojkdamkjmikpooempeibejdgalnk",file:"assets/icons/icon-16.png"},{id:"ehmpdpklpeligejpdglnhkceeccfhdkd",file:"sidebar.css"},{id:"ehonbahmapggcdiedkpkbmcaadlfgjpg",file:"assets/index.ts-1a675da8.js"},{id:"eiedlnmkmdpcjhaijngkcnmljgnofacd",file:"assets/icon16.png"},{id:"eigpceijfgcoknincjhkomfodneifcnp",file:"assets/media/manychat.png"},{id:"eijdpkmmfgaoannidkbgmhnmajhgngnm",file:"content.6e038a4b.css"},{id:"eijhljddcnalhcfcllphhopjkhnaiefe",file:"index.html"},{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:"ejfeogcolgcgfhbfjgbllcijcapaambo",file:"background.html"},{id:"ejgkoecoplficfiknpppeppjlendbnph",file:"assets/js/config.js"},{id:"ejleagldfkfleoeodaccdoglnhollcde",file:"assets/index.ts-Nkp5s7sy.js"},{id:"ekbmkecmfjahfomoafomalldaihhfjnh",file:"css/content.css"},{id:"ekcemckibekkdkdffjkhpdgkgjkbcfdf",file:"index.css"},{id:"ekhengbpbnchfnbollklngfhcjlhhcop",file:"assets/bookmark.png"},{id:"ekkcblhkmholaehgpiajkjgbgcmpipen",file:"icon.png"},{id:"ekolibgoaoffbjaggmgfkmbopmlmkfcp",file:"xhr.js"},{id:"elaobedgdmbhchnbjcfpkcgdjhfnemdk",file:"images/newspaper-emoji.png"},{id:"elfpefdipgelefmoagdhgjcdfhfkljpb",file:"logo16.png"},{id:"elgfcjbemdchphggeegglnmjoagoeial",file:"content.js"},{id:"elhkfmcodhgaoodhemkeempcihlcbpia",file:"files/sidebar.html"},{id:"eljnihppgmkopnpbbcnbobbkjoomdaje",file:"icons/ai-assist-icon.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:"enolknplonaemnnkejnpmlghdihelaea",file:"content.styles.css"},{id:"enpgehbiplcghjjmpmpbnjfbddfpkaja",file:"popup.html"},{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:"epbklomkmclcfchhiiogggcghmhaojej",file:"img/icon.png"},{id:"epbobagokhieoonfplomdklollconnkl",file:"pdf-injection.js"},{id:"epgedgihlplcfnpikplfjkjcnbdnhfgf",file:"mmt-srcwl-vzui-eixbhg-lqc-/icon128.png"},{id:"ephemhbclancbdpcidmdonpdiegbakek",file:"logo-128.png"},{id:"ephpplafielhglhfncpkcgnbjjddpjee",file:"mmt-srcwl-pzrkzenuebsgptqg/icon128.png"},{id:"epjadbhicnoefbjaahkmeaookakkpgnh",file:"html/toast.html"},{id:"epjelanlghmdblnenhaolkeelifhbgng",file:"icons/favicon-32.png"},{id:"epljmdbeelhhkllonphikmilmofkfffb",file:"assets/index-B0c-yOHC.js"},{id:"epoocblhpbnjpbdadcgcfbhbllepflnk",file:"contentStyle.css"},{id:"faaelikmijabbjanbeijlpflgadepdoa",file:"icon16.png"},{id:"fagakfichgmibajmbgbpgakliemjhljh",file:"img/icon_32.png"},{id:"faijbkbhlnconmeidaljhlmobmdgnfih",file:"mmt-srcore-lfoxuuadlpbxnu-u/icon128.png"},{id:"faikakhgnonckfnghfjhhcaamndofpao",file:"popup.html"},{id:"fbaccmibmbdppbofdglbfakjalaepkna",file:"assets/js/inject-eshop.js"},{id:"fbbjijdngocdplimineplmdllhjkaece",file:"_locales/he/messages.json"},{id:"fbccnclbchlcnpdlhdjfhbhdehoaafeg",file:"logo.png"},{id:"fbholmgghhfhbbigpcolkfmegpojfpei",file:"assets/icon16.png"},{id:"fbkoclehfhcogknaocejgijdhfidgklm",file:"icons/icon.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:"dist/contentScripts.bundle.js"},{id:"fcejihdhcioldopgcnbhjbmpmaigdpep",file:"src/pages/options/index.html"},{id:"fcfbdnejkoelajenklbcndfokempkclk",file:"icons/16.png"},{id:"fcffekbnfcfdemeekijbbmgmkognnmkd",file:"content-scripts/reply.css"},{id:"fckcmalnpnopeccbdcmdnejdlfigamai",file:"icon-32.png"},{id:"fcnihiaobenofhibkhfdflnpfogpcpbk",file:"scripts/query-pdf.js"},{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:"fdpleklbgmjcddlnfclbkcbnpoahodai",file:"panel.html"},{id:"fecgbkpogfcghjebjhpggnkmchofiolh",file:"settings.html"},{id:"fegckeofibpfccjdkolbondoogbdnici",file:"assets/content.jsx-BTEVqvv_.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/128x128.png"},{id:"fgabcemenocioinoofhpekkbfjflfbhf",file:"index.html"},{id:"fgeaeaohhhilmhmnnhiakoejocajcnnf",file:"images/logox16.png"},{id:"fgebgilnpibjfmjnfjfgcjoomdkecgob",file:"content/browserextension.config.json"},{id:"fggnebfeaknhlgjoedpghkcgbcbplebg",file:"assets/sleep-DO0dx4hm.js"},{id:"fghbfikeodjkbajmokiekipabfckcpgc",file:"popup.html"},{id:"fghidpcdlpnibijgebhbeconeclinjih",file:"content.styles.css"},{id:"fgkgomjogidilmegoonklmdkdehhjgjj",file:"img/icon128.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:"fhcjnbkogoaenmlnkfokfinbkblpldmk",file:"content.styles.css"},{id:"fhkgmddbaoefbcacbgmdcbfboefpbbdn",file:"icon128.png"},{id:"fhlcoakhfjadgagilgoamhjjggicpodp",file:"img/icons/16.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:"css/content.css"},{id:"filgiglcgpcggmdfefhkmjamlgjamhdl",file:"assets/css/popup.css"},{id:"fimipmppojdehhblcbmmmamekombpibj",file:"views/home.html"},{id:"finkajjgokfefcnpbpimedfidoopbdil",file:"sidePanel.html"},{id:"fjhkaepnddjhebachlonooioaiomfdel",file:"images/edit.png"},{id:"fjhnpnojmkagocpmdpjpdjfipfcljfib",file:"inline2.d5ab6069.css"},{id:"fjpfahimngpakmhecahbelocpdklkpco",file:"layout/html/pages/ctc-vipl-email-tracking.html"},{id:"fkajbcdnmbhlgdgbhcbppkipbgepopcj",file:"image/blank.png"},{id:"fkdncooeaoioahpjinnoackjafhajpgf",file:"mmt-srcwl-sbwcmtzoqdrcrfan/icon128.png"},{id:"fkhmoaolabaoddphndcpnkcemgaeoldb",file:"img/logo.png"},{id:"fkkpeaipjpjcokkoencfnkkflemodgpl",file:"assets/stynch.png"},{id:"fklcomfaadeokmjojeoaejbhkgigklhg",file:"content.html"},{id:"fklpnmgmbmbbclnkhamepifgoejghfhf",file:"icons/icon16.png"},{id:"fkmbgbgddogjgljfpiahdmhnchghlhhf",file:"content/browserextension.config.json"},{id:"fkpjpnkmnfiijljlfnokdcplllngoici",file:"icon-128.png"},{id:"fldfmjmhihoapjoomlbgfpjbkhfipnhg",file:"background.js"},{id:"fldhhgeogfadgaglpmcmgdkbilgpkhhd",file:"icon-128.png"},{id:"fleloaemgeopkjancpbiiflagoiihaak",file:"assets/favicon.png"},{id:"flhabflppadhfbfhhdldooihfkbkaaci",file:"icons/icon-128x128.png"},{id:"fljeaddfbchajbkjcjfflngmdfhpedae",file:"index.html"},{id:"fljmbeoepcgelhoofclbcapdehejknik",file:"js/button.js"},{id:"flliabcbdbflabolhpadhameneoejepd",file:"html/interruptor.html"},{id:"floofkpjijhgipeklkmpocopjjimfebm",file:"css/common.css"},{id:"fmadgcnjmfffcfihalbnfjdokbepipen",file:"assets/content-script.ts.e17fed53.js"},{id:"fmanjoeogdemcgapfmadpgcmigkefkkc",file:"templates/int_addcontactModal.html"},{id:"fmcaajfefcndfcnlbecaiapijbjpjfge",file:"mistral.webp"},{id:"fmeaifnhammljlbkkaekllolnphabpce",file:"Vigeash_Gobal_Resume_.pdf"},{id:"fmklchbkglfcamflgdhlclalanjkhpai",file:"img/icon16.png"},{id:"fmmkljmpghfdjaeinpgclkhgbjmkkhom",file:"README.md"},{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:"src/vite-env.d.ts"},{id:"fofjcndophjadilglgimelemjkjblgpf",file:"index.html"},{id:"fofjdonkemjmfkaapekcfakjocelcejk",file:"assets/Img/arrow.png"},{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:"fpehkdcdkjcabcjoncofkohieamglbif",file:"img/logo-16.png"},{id:"fpfbedjkhobnajcngggbojlfpapgagjl",file:"assets/favicon_doox.png"},{id:"fphmjhfemegbkklgbppokjckckngcmoc",file:"popup.css"},{id:"fpieanbcbflkkhljicblgbmndgblndgh",file:"assets/loading.gif"},{id:"fpjjdikjoldjlildbfifbbjbecedoopn",file:"content.css"},{id:"fpmfnhlniafpabplcacficlgmnnckggm",file:"dist/sidebar.html"},{id:"fpmhfgogalamnijkkcddamnobhdioedn",file:"images/pixel.png"},{id:"fppldfhlmphcfpiaimemopnnkjnpjkid",file:"css/versions/v1/default/yimaitongdao.css"},{id:"gaebambociaenblgbnljbimfeghelgjb",file:"icons/plus-solid.svg"},{id:"gafchcnohalkhohnedifhjblhdhoppkg",file:"content.css"},{id:"gaflhpfkjpfkkhefnddlpdceiibonehh",file:"_locales/de/messages.json"},{id:"gahcfmlnmednhnbkifdoffblfffpeljf",file:"options.html"},{id:"gbaeeknnjahomglejofmnkanndihoccn",file:"icons/icon48.png"},{id:"gbcfdjgipmpinkahpiambcikjkijimhi",file:"generated/clipboard-bundle.js.LICENSE.txt"},{id:"gbdkneglddbcbhnnllahpianalocmldf",file:"offscreen/offscreen.html"},{id:"gbeiphffnlkmgoclacceflphonplpigi",file:"contentStyle.css"},{id:"gbiokpgbipklfamljmahhmlldgdffikk",file:"content/index.js"},{id:"gbleadepbklogeaabdocokhgpfemkmdp",file:"content.styles.css"},{id:"gbnebpdekafhpcipejfhabfghccgfnbh",file:"content/web/images/toolbarButton-zoomOut.png"},{id:"gccdgolpgpfdmhiplanfhieenkefplkd",file:"css/versions/v1/default/yimaitongdao.css"},{id:"gccggnnicndmgdmpgckjongbhbocenmi",file:"css/versions/v1/default/lpt.css"},{id:"gccpdocceophgdahchpjclmnknkffifi",file:"static/images/transparent.gif"},{id:"gcecnlnmpidkanpnhpdcgfagpekjaihe",file:"lib/network.js"},{id:"gcjclcplhbhofcmchonaeajjkcieeieh",file:"U2TDTBMY.d4e452cd.js"},{id:"gcjhfhpimemdgjefcnolonlnhhjjplgp",file:"assets/chunk-0fa2d4f1.js"},{id:"gcmcheijhboepkfbgfibdihbkbbcgmgo",file:"icons/icon32.png"},{id:"gcmemiedfkhgibnmdljhojmgnoimjpcd",file:"options/options.html"},{id:"gddoffnommfblacbelhdogaooiediiol",file:"assets/img/social/twitter-circle.svg"},{id:"gdedjkkdniodndkclfkfhedlphajldog",file:"dist/contentScripts/style.css"},{id:"gdemompjdeepnjjgjcaabhckdhbgigfo",file:"mmt-srcwl-htlkkykkkzscjlzy/icon128.png"},{id:"gdhhcapaofinjmlambmbfhkicbpmidbn",file:"components/modal.html"},{id:"gdldfceehpabhcehoglbnfgkdpgnnelo",file:"assets/personHuntStore-B00kdLql.js"},{id:"gdoalfpalhcakecmmgcbfkligndcleff",file:"assets/index.tsx-DTTg6qtI.js"},{id:"gdohjpeeeiofdkomgklhpiademkaaajk",file:"popup.html"},{id:"gdoloobnfachpmddhhkdhgiggknddhgo",file:"styles.css"},{id:"geebjpiagpchjgjdanomkgjhcjnahjfe",file:"feedblocking-styles.css"},{id:"geibognnhplplidflnhpdbanjkekganc",file:"manifest.json"},{id:"geiifogbppillhakmonhkkihkghflodk",file:"stripeFrame.html"},{id:"gelgoaopfcabbigaimoeojnhbcijoalk",file:"content.css"},{id:"gellhckgdojdamobkoifbbmbcmhkebkn",file:"blocked.html"},{id:"gemcgnkghpnfbmlfimdbdgfepcgenphf",file:"images/close-x.png"},{id:"gempcojpejfhobcccooiifdoddlmokgj",file:"episopass.css"},{id:"gepanmdpmihmehobgpmjfipmglgnihkg",file:"content.styles.css"},{id:"geplbbbmdpmdodfmohpikfacgkfpkhec",file:"ext/common/scripti.js"},{id:"gfafbnncakpdpfildknkjpdlegpbmanb",file:"mmt-srcwl-dvcjqeiqrdpybscq/icon128.png"},{id:"gfajnhicopekhcnindcekjafiiafcnmg",file:"assets/ValidateCookieContentScript.js-5fe040bc.js"},{id:"gfcfbnbebdckhfhpkpkmhllcmgkpakfp",file:"assets/images/mocal-extension/icon_drag_vertical.svg"},{id:"gfcmbjmjadhcijjpbpoelmejbkhnbhia",file:"popup_error.html"},{id:"gfecljmddkaiphnmhgaeekgkadnooafb",file:"logo.png"},{id:"gffdjilagmdhamklghiabjiamneclhbp",file:"content.55a1ea7a.css"},{id:"gfiknpbgncejbppghbhmdhcgjdoojamb",file:"dist/contentScripts/style.css"},{id:"gfkjbjplehnonknlkbolekeijihfkoaf",file:"static/templates/cb_intel.html"},{id:"gfpkmnhcghpkddadjpomekllmdjcokjf",file:"popups.html"},{id:"gggpgnehaknpblhpclclaamdceolmkma",file:"icon.9d2e382f.png"},{id:"ggikeajofoaammldobamdfmcmieipebc",file:"icon-16x16.png"},{id:"ggkmpcannjbcepigghgdkbpmnglnpfjp",file:"images/LoadingCowGif.gif"},{id:"ggkoocfbkcdfbhlmahabmglaegilljal",file:"whatsappInject.js"},{id:"ggnikicjfklimmffbkhknndafpdlabib",file:"css/social-image-preview.css"},{id:"ggpfkaknfckpihiphiilfhkpoocijgei",file:"images/cluster_white_1.png"},{id:"ggpjjimomilfgjbnogliekghjfhadmog",file:"analytics.js"},{id:"ghbgceefnblijahnocfoddbdphjnindp",file:"dist/contentScripts/style.css"},{id:"ghgckghfpoemagikajhodjiefcnbmmek",file:"dist/contentScripts/style.css"},{id:"gibdobnmepamhkigmgacgcdmidpeckda",file:"public/templates/criteriaPopup.html"},{id:"gieodcfdokijnjhpajbeffgbpfjddnhm",file:"images/icon-16.png"},{id:"giheelaicikkopckgfaafoohacehpgdg",file:"markup/sourced-msg.html"},{id:"giidlnpcdhcldhfccdhkaicefhpokghc",file:"images/icon-16.png"},{id:"gijjkdcndbfldihmidochcfjpoalmifi",file:"pages/stripe_redirect/index.html"},{id:"gijnkelbkbmaekkkgoalpimggbmoahol",file:"icon-128.png"},{id:"gikkcegbhloogfdeojnapbickfadnkph",file:"popup.html"},{id:"ginbanomkganaajoncfabaoihjopfdmn",file:"icon/x.svg"},{id:"ginmcakbniahapoeapmbkcnjhbncgccb",file:"images/icon128.png"},{id:"gjbkaaflekcpeakkcoolahefhdmapgcp",file:"frame.html"},{id:"gjennbhoiojgmldlfddhmklegihhdeci",file:"css/versions/v1/default/yimaitongdao.css"},{id:"gjfehlcidibkbachipbggopmmphholkg",file:"index.html"},{id:"gjgpgmnngheliejjpmnmbiedakgjlnhj",file:"autoBrowser.js"},{id:"gjpdbigebbbdciapaflndjkbhapgpkpa",file:"errorModal.html"},{id:"gjpfmomcmpbkjfnmlbebcpbonahbdclh",file:"icon.png"},{id:"gkcdjgjhmpmjdikeokefahhecpbecldb",file:"manifest.json"},{id:"gkeibfnicgkidpgeiknainpmhgcglofd",file:"salesaction-128.png"},{id:"gkgjifhmaalomlfljikkncdkmhljajdg",file:"injectedWS.js"},{id:"gkhaokjljijoicfeblfolngmjieklihc",file:"domInjector.bundle.js"},{id:"gkhennmnjegbkbohlaehajpdmmjgbggb",file:"icon-32.png"},{id:"gkjnkapjmjfpipfcccnjbjcbgdnahpjp",file:"html/iframe-proxy.html"},{id:"gkkfmgeekiipgbldjnbggmkhleeknnng",file:"static/js/linkedin_overlay_element.js"},{id:"gkkggkihdjikhjchneilgkkmleaocjba",file:"filter.js"},{id:"gkkhkniggakfgioeeclbllpihmipkcmn",file:"assets/collapse-close.png"},{id:"gkmbefmceinncpamijjdheeiikaeehdn",file:"assets/logo-app.png"},{id:"gkmhbokfoedjgopeobgefpphfibepcjn",file:"assets/icon.png"},{id:"glabpcjnchdfbigknfmephmioiagpilm",file:"content.js"},{id:"glcbphgfncbkkdmloojkehhfjfkcogoj",file:"images/placeholder.png"},{id:"glcgkgjgcnflejnmkiilpemcojeclbej",file:"index.html"},{id:"glkcklonbpabcncmeglgapedhebgloia",file:"img/youtube-icon.svg"},{id:"gllbocgdcaigapeaedjinbkgjdjcghoj",file:"share-image.png"},{id:"glojmiionklojffhpdpeiadebepjbhoe",file:"mmt-srcwl-bnmbiricjezuvivb/icon128.png"},{id:"gmahhmpnjfpmjchcgfecclakcmbbbjpg",file:"images/arrow.svg"},{id:"gmcehfailpfakmipokpdbibjceppjeej",file:"assets/favicon-16x16.png"},{id:"gmfcioclpgapkckehifnidmomfcmocdh",file:"index.html"},{id:"gmigkpkjegnpmjpmnmgnkhmoinpgdnfc",file:"content.css"},{id:"gmjpligloeoamkgodhblocnbkmalgmpj",file:"menu/menu.css"},{id:"gmkdbhgoamopaogpaocnehcomajbkmkj",file:"images/active/icon_48-on.png"},{id:"gmlafenklffcmegjhklbpdkmglelbobb",file:"settings.html"},{id:"gnbbnmpkcojpiapjfchcjepnjgfonhna",file:"assets/ai-comments-block-sNY8E9sy.js"},{id:"gncdeciaplnakdjjkcbmlbbbnlpochik",file:"hiresweet-for-linkedin.html"},{id:"gnefgdnckhklhcbbeeimlbpelhgmmame",file:"content.styles.css"},{id:"gnfkfajglnnkaaiaaeheiinmcmniecni",file:"img/icon.png"},{id:"gnhoimmdfeclleccljjflgngepoicidi",file:"libs/load-typekit.js"},{id:"gnkbmaifcbniminbmbmiabamggncacag",file:"src/assets/logo_16x16.png"},{id:"gnkcdbnifaalehmghbbikidpigjocabg",file:"img/logo-16.png"},{id:"gnkjabhgjnhalhhbldfjdkejplmbbooc",file:"auth.html"},{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:"golhimfpdnalomfmilekedcpilegkifb",file:"src/img/close.png"},{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:"ui.15f5fd8d.png"},{id:"gpdcibinjnbkbocdlgeidbgblecljmnp",file:"images/logo.png"},{id:"gpdejadabihcgjbfjhpcgmapeieofijo",file:"icon48.png"},{id:"gpeeahfkpkinldndkiihnjgpegiccgcc",file:"content.styles.css"},{id:"gpiknbocmcgnemehpeoefgkmemjeogkp",file:"mmt-srcwl-ckuyov-klqfbexmo/icon128.png"},{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:"haanodfhmhigmfjcfakenjjjegfeamga",file:"images/icons/16.png"},{id:"habieibnkjbdpejgjgmcfmcllgkjggmd",file:"images/cross-icon.png"},{id:"hahkojdegblcccihngmgndhdfheheofe",file:"injectionDev.js"},{id:"haimnmmocillmcpbbdphhjnenigglknj",file:"contents.6e038a4b.css"},{id:"haiofogejpjmphinemcanjidbaibkebc",file:"components/find-button.html"},{id:"halhjoedleecobiodolkdhfpjhoealhf",file:"js/comeback.js"},{id:"haofdhibainigklcpcpcfkaigklnialk",file:"src/assets/folk_logoLarge.svg"},{id:"hapeajalaadipmfmkhokdpalcafbnope",file:"icons/loading.svg"},{id:"hbcdhdfokpdbnhfggebeeiokjjlfnffk",file:"icons/icon16.png"},{id:"hbceglllkikabcfijcaggiifofelnfik",file:"assets/icon16.png"},{id:"hbhdepogdnphlloancjiifodpchlkeam",file:"dist/contentScripts/style.css"},{id:"hbiilncfjnlmeconpkcdibjkjpjaibmk",file:"assets/content.js-2782ad37.js"},{id:"hbljfhndaonplbgjbcdinloomapidmod",file:"img/logo-16.png"},{id:"hbnechkcmnoeknlidkglipiggbdcnnbj",file:"content-scripts/content.css"},{id:"hbnjdgffjfjbkdoghlpkedjfoddlgbge",file:"browser_action/libs/jquery-3.4.1.min.js"},{id:"hcchnkjaddnfjffmoclhgjokcifkmgfe",file:"assets/fonts/Cabin-Regular.ttf"},{id:"hccpdnempecginkejcdpejcnhamidgdg",file:"assets/icons/icon_16.png"},{id:"hcdhidfbeddfdekjjedaofpiapihckcl",file:"index.html"},{id:"hcghganppfkplebfebpdnnihcjmjefep",file:"content-scripts/main.js"},{id:"hclhpnhohpmlbadmeieecaandnglfodm",file:"images/compare.svg"},{id:"hdappgahcgpifoabanfifjicfllpokgo",file:"assets/icon.png"},{id:"hdfpaoilmgadohecoopgobegjbljndfa",file:"icons/icon16.png"},{id:"hdhlcpggnhalhegdgaedpmkgdcbjmnnp",file:"images/128.png"},{id:"hdilpjjkebdcnokjkjnklplhjdidjdpf",file:"css/styles.css"},{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:"hepfjkaehdmhdgmckmcedckcainikmfi",file:"popup.js"},{id:"hfadalcgppcbffdnichplalnmhjbabbm",file:"images/icons/flu-finish-rc.png"},{id:"hfcbppmifjfaobchcpmoeinjdfdpgonh",file:"single.html"},{id:"hfdilejiecmablifdkololalnbbmdcdb",file:"js/perforator.js"},{id:"hfgoiloiogleeameljadaelidkcoieoh",file:"assets/Save.png"},{id:"hfidaegbdmikfkpckfbdhccgnohibhcm",file:"assets/logo.b1a88a03.png"},{id:"hfimfjackejkinihmjhfckgcgcjadhab",file:"html/innerframe.html"},{id:"hfjbmmdbcbbngiedidoobokfkbabhinm",file:"assets/logo.png"},{id:"hfjimamacnmcakocjkkabpmfkaomadja",file:"episopass.css"},{id:"hfjjfjnacekpboceighjfmhhclbljgid",file:"popup/logo-2.svg"},{id:"hfjnppljknigdnnpocjjgdcfmnodoafe",file:"assets/logo.svg"},{id:"hflhofhnkdimiinhhcdicdhdioddanha",file:"assets/chunk-G0iG9mIB.js"},{id:"hflnddaecnhmfgdemnhgepbjmmkclemh",file:"dist/contentScripts.bundle.js"},{id:"hfmfgjlnfcleegadbkpeeogklaabpcjp",file:"chrome/chrome-info.json"},{id:"hfmhadkhbkjnfkldmfholhihelodmapp",file:"options.html"},{id:"hgaoaibmbhjaafalgonmpdcedppfakhc",file:"assets/AppThemeProvider-0c65be51.js"},{id:"hgbplfnfmnkppncnjflhdbpmgnolkcii",file:"src/popup.html"},{id:"hgfjaoeaeojnfgjiddombbmphaajdmga",file:"CSS/test.css"},{id:"hgilmfmphmkjcjckecpifkgichfjdccc",file:"img/logo-16.png"},{id:"hgjbjiajkmjmaekmoopfmmnphpdfejcb",file:"adImg.png"},{id:"hhamhnceagjifnbfhmcfblhjphajlnjp",file:"dist/contentScripts.bundle.js"},{id:"hhbjgbogflofaoaniimemnlimmbdnlii",file:"OpenSans-SemiBold.ffd9dcc1.ttf"},{id:"hhbnckjhjihjangdepdebbnooibiphge",file:"styles.css"},{id:"hhddcmpnadjmcfokollldgfcmfemckof",file:"img/pay-secure.jpg"},{id:"hhdffcchnkhbhlppcnaomfonehjkaghm",file:"images/logo.gif"},{id:"hhkjmfiibaiefknhdilcjmhdhiphlpgc",file:"index.html"},{id:"hhnbfppcjpaacnjecideabahjbdgppaf",file:"startOverVideo.webm"},{id:"hhofkocnlefejficdipgkefgfmnenpbk",file:"images/minimize.png"},{id:"hhpkhdnchcdjiblbacngkiemjokmelcb",file:"assets/sentry-6d0a80de.js"},{id:"hiahhbhmchdkkbahlpfephhbekklgbog",file:"share-image.png"},{id:"hicchmdfaadkadnmmkdjmcilgaplfeoa",file:"assets/SellScale-Logo-d21c3f59.webp"},{id:"hiipkeebneejleanamjomjahgbgdcjnh",file:"content.styles.css"},{id:"hipaipboochmeeigakgdaigahaepeakh",file:"icon16.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:"hjfpocgphmgkajhfccdcmlnkjdjkjcnj",file:"assets/css/contentStyle1730154997310.chunk.css"},{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-uhcdezai-w-qtttw/icon128.png"},{id:"hkjpcgmahjcboogncjlmdfhleccolghf",file:"images/icon16.png"},{id:"hkkccgigcjlphhhaegpjojpgmlecgnnm",file:"icons/16.png"},{id:"hkkdclokefjmciimjjkblcbnolnhamfn",file:"images/1639852323233-smallLogo.png"},{id:"hlbaibgaahojknmakhlkgggicpapemkm",file:"plugin-preview.7e47eb44.png"},{id:"hlbfeoofdhffajlfcdnpohfbbelfeglm",file:"images/logo.png"},{id:"hlbjniodlfameclpjodmamnpppnppobk",file:"icons/mentions.svg"},{id:"hlhamhcoalpobolldigmfdmfijjjeeko",file:"SaveDataCanCon.html"},{id:"hlkiignknimkfafapmgpbnbnmkajgljh",file:"assets/16x16.png"},{id:"hloenmdpelegipdbonkepcnbapniondo",file:"html/gmail_infopane_proxy.html"},{id:"hmacaaocopciajocilmdjgalalafobho",file:"tiktok.fetch.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:"hmkkfmjfinbllbbkgabkeponkhckmijk",file:"assets/icon-93ec8a0f.png"},{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:"hnmblfmfigmopohlcmljjgkopaehpnbd",file:"icons/icon16.svg"},{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:"hodopfliobgdinadlhifpognegjphdip",file:"icons/icon16.png"},{id:"hohjiogaaddpcpakfaegfacbaggphald",file:"disabled.html"},{id:"hohnofgiopagfojkjalkjkgogpkjghpe",file:"smartreach.html"},{id:"hombkmjjoapdaclgaaioldnljmhhliai",file:"icons/SlikWhiteIcon.png"},{id:"honjbkobemifjkoagifihmdapbmpjifk",file:"public/modal.html"},{id:"honkfenocfnhdbpakgenabnlnpgccadm",file:"injectMessageResolver.js"},{id:"hpdljgcaglfpgdpkkkbimkocggbbgnjd",file:"assets/img/redesign/check.svg"},{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:"hpinghefcjjgfegpbpcigbgcdmboadjc",file:"static/css/main.7c1dae30.chunk.css"},{id:"hpjiegadeibcghpfefpfmmoaipliphke",file:"icons/16.png"},{id:"hpjloodfjfnoeekpikfdedoaiklofcgl",file:"assets/css/Index.chunk.css"},{id:"hpmgffjoemfiioplaalgbipfigadkejf",file:"iframe.html"},{id:"hpmofmhcflopelbdkalanmdbaifbmaek",file:"icon.png"},{id:"hpncohefniamkphainmdcghaljbiaiol",file:"icons/icon16.png"},{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:"icons/logo32.png"},{id:"iappacfejcfelnlnjfafgcinkfgnhkdm",file:"assets/auth.tsx.js"},{id:"ibafjkenepnaffhlmblanpmjcaihdhpo",file:"bottom_button/bottom_button.html"},{id:"ibalopmjfifikmkhimcbicfngnbbcimg",file:"static/linkedin.js"},{id:"ibceigdphgnafpcfcdieboohlikfglag",file:"images/16.png"},{id:"ibcihkpjgkjemhkeppidfeoeojomhdih",file:"css/_theme.css"},{id:"ibdhnmogbcjdikcenihpmhkdgjejbcpf",file:"icon128.png"},{id:"ibgcbgjnpaedoomkhclbjgnhnkmeplee",file:"assets/index.css"},{id:"ibjfdjcfhdgglpbdpegccaemlimpolef",file:"src/linkedin/style.css"},{id:"iblablhmfcdmlndolbcjdlkehfffpifi",file:"assets/css/Nurture-card-bg.chunk.css"},{id:"iblbbdgjelgbifffdijkboabbkoiokjn",file:"index.html"},{id:"iccnendanoohhggjcghonkandiogched",file:"icons/jarvis_16.png"},{id:"ichmnigkjinmjedillldopaolidofben",file:"salesnav_inject.js"},{id:"icinilhaogflbakipichgacjjaknklfn",file:"contentScripts/content.js"},{id:"ickdpcndpojjbppioibkgogogddnefnf",file:"content.styles.css"},{id:"idcdkjpekpkllkjecfaiibaigfhgedpc",file:"content.html"},{id:"iddhacapncjoppndphigglmfjjgihpjm",file:"icon.png"},{id:"iddhafibpfkgpdiafmelmaeghnbhhaga",file:"mmt-srcwl-otyeipjcbhemriid/icon128.png"},{id:"iddnbalhmdkipfcopclcnchagfbmcgjb",file:"html/sign-in.html"},{id:"idfblidcbbfkggckamnibfbngnbgjocf",file:"index.html"},{id:"idgadaccgipmpannjkmfddolnnhmeklj",file:"js/tbremap.js"},{id:"idjenhbacofplcjhmknabiejapilljaa",file:"data/comment_templates.json"},{id:"idkdpobomaapfgbeeplpanlklbfgjifj",file:"aa/aa.js"},{id:"ieclmcodiiodchgppgmdponbgpbfnbkj",file:"xhr.js"},{id:"iejedmednmnhjcllbndohfhfaonmihfk",file:"assets/index.tsx-5cd51a22.js"},{id:"iekjlpcdkebjakljpkmoconnebombfpi",file:"env.js"},{id:"iemknghbobacfkoamadfpofkdjahadoh",file:"iemknghbobacfkoamadfpofkdjahadoh.crx"},{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:"inject.js"},{id:"ihgcgneejcgpgjoebfbgmjdgnfphbbgj",file:"mmt-srcwl-icihtlah-eyweley/images/ios-arrow-down.svg"},{id:"ihhcpoojhilcobhcfgfchjebjfennnei",file:"css/versions/v1/default/maimai.css"},{id:"ihhkmalpkhkoedlmcnilbbhhbhnicjga",file:"boot-prompt.html"},{id:"ihhnkmnppmbhfaekemlmpnkjdllbdcfo",file:"styles.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:"login.html"},{id:"iieomcnmomejdefhjfdljckabjldeenb",file:"script.js"},{id:"iifbccjddikdmllicogfkanmdgckjckl",file:"Figtree-VariableFont_wght.6bac233a.ttf"},{id:"iifbgblakgpljhhnejbmfoajbbfoiocl",file:"icon512.png"},{id:"iihamopomflffiecicbgelncanmfionp",file:"chat.html"},{id:"iipcmlhlgeijkbcnoeengjononohcajp",file:"content.styles.css"},{id:"ijfmjempkpegmlhcacclfckeimbfgabp",file:"listIcon.png"},{id:"ijjpcllafkdhjkfenmkgnkklbnphalpj",file:"assets/logo.png"},{id:"ikaknegbbakceebibhjahcjcklaimfeo",file:"assets/constructFrom-CsNc9lvC.js"},{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.2e72c77d.js"},{id:"ilcboogoodfapcpcmajffjlpadjgfppf",file:"images/icon.svg"},{id:"ilcfiknebpekfhkfopbnpodlejfdnjem",file:"src/popup.html"},{id:"ilfckacnmnjlcboodahhojdnllfailhl",file:"assets/settings-fa859063.js"},{id:"ilocdbladnokjbbfnoigbjfboophlkda",file:"manifest.json"},{id:"ilojmippebcjlidjafibjflcpbcpffcb",file:"css/content-script.css"},{id:"ilpgiemienkecbgdhdbgdjkafodgfojl",file:"popup.html"},{id:"imafbmggflmbfhpehafcnekaoochndfp",file:"images/vaetas_logo.png"},{id:"imckcambjembkbogkipmbeiaakdojbnc",file:"iframe_stripe.html"},{id:"imdnndbagihjbfkeockcmcgdnnhjofim",file:"dist/contentScripts/style.css"},{id:"imemcjjdfiaphipleieldpoiaoejdofp",file:"assets/Fonts/fonts.d.ts"},{id:"imhapccmnelmiedljhnbncokemegngca",file:"main.css"},{id:"imhlnhlbiencamnbpigopiibddajimep",file:"Montserrat-ExtraLight.ttf"},{id:"imklnjmnoabnopdonkpakaghodoeolld",file:"images/DemandZen_Icon_16_x_16.png"},{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:"incfdogmfgbemelgfadiedakpejffpin",file:"content.styles.css"},{id:"ingbobkdhjknekjbokcdilfjbkcgfedi",file:"html/sources.html"},{id:"inhpghhdnhaijppompplkaghcobmgkhk",file:"pages/popup/browser/assets/fonts/README.md"},{id:"injanakciaoflbhcecmnpdekfflnllfd",file:"images/minus.png"},{id:"inloipbahbmhelpokmejailbmcegccal",file:"icons/plus-icon.png"},{id:"inmobcjjmmgmgnifapocjnojamigfhml",file:"options.html"},{id:"inpefkfjedjpkakiaiphlbdhobebocbh",file:"images/success.gif"},{id:"iobnjkpljkjbiaclomedldcjccfgledp",file:"install-script.js"},{id:"iodbiefeiiififbdcdckdbigakehaemb",file:"images/template.png"},{id:"iogffmglhkiajlbnlkfmfobhdhlfadkj",file:"img/obj-16x16.png"},{id:"iogkpjdnnjflpadjjgglebpekelgflfd",file:"background.js"},{id:"ioidlpnjclohlmjkkgedffcokmdcngdd",file:"manifest.json"},{id:"ioljcienoccoiegfgnfkjkgpcaeljlof",file:"dist/contentScripts/style.css"},{id:"ionnbdlogiaapopodiglgaakhiifihcl",file:"window-provider.js"},{id:"ionneecgcodkmanoicbemoldkaifljjj",file:"mmt-srcwl-ex-mivcrtsimcign/icon128.png"},{id:"iopdafdcollfgaoffingmahpffckmjni",file:"logo-white.svg"},{id:"ipfmgnpbnkpoldahphdepafpondmadmj",file:"dist/contentScripts.bundle.js"},{id:"iphdmkpjdmpccppgdejahkidlnekmnad",file:"extension.css"},{id:"ipinhelbmkmbjfpnoakfjillakpjdipe",file:"gmail-loader.js"},{id:"ipneaacohcghopimifbaihogkjbijalk",file:"dist/contentScripts.bundle.js"},{id:"ipnlgjelaphpmmbnemcelbkjomglkhbd",file:"css/versions/v1/default/lagou.css"},{id:"jabnaledogdghdbckajlnbipcdicinom",file:"assets/icon-16.png"},{id:"jaenghlnkaecgifeahciboglnpkcedme",file:"svg/billingExpired.svg"},{id:"jagmbpealgoigilnpaeimelnemdbeajb",file:"icon128.png"},{id:"jaijncdnkdmebcpgihfdmpibhkffddgi",file:"src/icon32.png"},{id:"jailicbgbonhmpbnednjdneepcdolndh",file:"requestPermissions.html"},{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:"jbbcjbklbhncdbmodibjgfghdopikgko",file:"bundle.js"},{id:"jbcegffcjkidpkmdhblmdgfaeehbbpmj",file:"mmt-srcwl-qelpkpv-dbya-ttw/icon128.png"},{id:"jbfgcelgldpkkmbmehaipaadfmdalfip",file:"index.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:"jcdbedpokbelckicmbhhkbdfmhdgegcj",file:"content.styles.css"},{id:"jcgholhpbpcnglbilaflciokdnhjlfgl",file:"assets/bookmark.png"},{id:"jcjhfdkgoknpajcmibcodfibkklpmknc",file:"css/versions/v1/default/maimai.css"},{id:"jcjoaknghkciioldhohcibcgekimfphb",file:"extras/github-markdown-dark.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:"jdianbbpnakhcmfkcckaboohfgnngfcc",file:"css/help.css"},{id:"jdipnochacbcbejeohicaelalloikhdk",file:"logo.png"},{id:"jdkdafpciaomelghgnhfpjjgjdnjljin",file:"chrome://favicon/"},{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:"content.styles.css"},{id:"jejkgijkhbdnekbbdonkikkfdmlfmdol",file:"images/icons/icon_16_dark.png"},{id:"jfbifdbbcibaaciendbkppkgggbnhpok",file:"assets/logo.png"},{id:"jfcmjbboehfdmgbhheahjlnoimbgfdbn",file:"central-logo.png"},{id:"jfhnfgfgbnbhcdiohboonlmoajklmijh",file:"src/popup/index.html"},{id:"jfjbcckhglfamaagobaibpjmnibmooko",file:"webcomponents-bundle.js"},{id:"jfkiabnhlipbmdpddmngalfjmjiaccof",file:"src/js/pages/setup.js"},{id:"jfmakahmfclplndeekkpolafgllnnnkk",file:"images/icon16.png"},{id:"jfmfcimcjckbdhbbbbdemfaaphhgljgo",file:"scripts/fps-block.js"},{id:"jfpjkgdpgdbddknpgplfkjjfncenlmkf",file:"masterconfig.bundle.js"},{id:"jgbnbeibkdooefdklbkcnfooggcoeifk",file:"assets/icons/stopPlaying.svg"},{id:"jgcndlaikgkhpbcekabcmnfeiaelgaon",file:"screen-recorder.html"},{id:"jgepegnfaffcfigfigjhjddfmombolon",file:"sidepanel.html"},{id:"jgiapobaigghdocinfndjifhkcnmbcan",file:"images/assets/ae-right-arrow.svg"},{id:"jgnajdgfiglbklecgloopjkdmhplnibg",file:"assets/web_ui.js"},{id:"jgodagonmjikmgkoppdlhnbmaajgaack",file:"linkedin-button.95bad065.css"},{id:"jgoehlldkhidfeafmomlncjhjmocldan",file:"assets/css/panelIndex.chunk.css"},{id:"jgoncjpgeegjhdecejnfnpjnfmhohgdf",file:"style.css"},{id:"jgpdgehciilekkfebfjakaemmkhfoicn",file:"icons/16.png"},{id:"jhaaipbjdjpkcdlmdepackpalbhjcfib",file:"styles.css"},{id:"jhbdbcidihgldcklaclefnkkaagdiipp",file:"meatballs menu.png"},{id:"jhdolbngdejbkjoneefkfhblechofbfo",file:"mmt-srcwl-cffhnhjpnfelypqm/images/ios-arrow-down.svg"},{id:"jheoiidiidhgdkcklkmaoblefdhokagl",file:"options_window.html"},{id:"jhmlphenakpfjkieogpinommlgjdjnhb",file:"libs/analytics.js"},{id:"jhpfjalgbbceohoiaahegpbibdelpaga",file:"img/logo-16.png"},{id:"jiagbhjgocclknkbjnlpgbenpnfldoii",file:"images/icon16.png"},{id:"jialfdhnklplgcdbjccgijagijpbbjgb",file:"icons/128.png"},{id:"jibnhgkinaiblapbfjeddmalaecacihb",file:"style.css"},{id:"jihallkndhjkkadalkipbhodlcencbpl",file:"proxy/proxyIframe.html"},{id:"jiihcciniecimeajcniapbngjjbonjan",file:"ckeInsertThumbnailLink.min.css"},{id:"jilkhjfakcninakdpdaphnljmkibpmki",file:"injectScript.js"},{id:"jincdjlcleealmgaiafdfcalgpopjddc",file:"assets/css/panel.chunk.css"},{id:"jjdlecgjgcejnobmljdmjolnadeplapb",file:"assets/skilled_worker.csv"},{id:"jjdobdnmjfjndlblfkcnbcjocdjihadf",file:"index.html"},{id:"jjghhkepijgakdammjldcbnjehfkfmha",file:"salesforce/onboarding.html"},{id:"jjhegjemibopoofknlmmffciolieodcj",file:"css/options.css"},{id:"jjmjickedeooblgpimknfghpfffncfhb",file:"content.c377e6e0.css"},{id:"jjmlbbndggneogioknejomjbdeebijmb",file:"index.html"},{id:"jjnbbklfpecnjcfehhebmfmibicklgdo",file:"sounds/License.txt"},{id:"jjngbiflnfmknkoafjahplcmcpjnheog",file:"options.html"},{id:"jjoobacipmlejjpkhhncbidhbbgmhogi",file:"service-worker-loader.js"},{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:"jkjkefnnnjgdcjppccpgonakkgjhelnn",file:"assets/img/icon-email.svg"},{id:"jkndcaeieneegkffkmfnkgehafphaicb",file:"vendors/linkedin/inject.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:"images/"},{id:"jlmhleoipeloancgdilegcelojacmpcm",file:"html/background.html"},{id:"jlnbkamgambebndfodgebpgpbeibbdpi",file:"check.html"},{id:"jmabnfpimkldhnonkdjbfklhhdgdijhk",file:"content.styles.css"},{id:"jmapgdmcamlapgpedipfadnjbjofffle",file:"image/close.png"},{id:"jmbjdkpfkhmfnbcpmegmiacnlbjkgfoc",file:"_metadata/verified_contents.json"},{id:"jmblkkkabhcfmhmhineokhffaleggoak",file:"globalnav.12a55277.png"},{id:"jmenhpddemdjghllfmicohijdiamneci",file:"assets/button.ts-Re1KX7SW.js"},{id:"jmgaijifelabedfhfnpgnkcneakpgcho",file:"contentStyle.css"},{id:"jmjaakkgomjbjbaohgpbgaeddaianeif",file:"sflip24.png"},{id:"jmmflbmookkbjenfkpnliehgcnbpjagd",file:"src/content_script.js"},{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:"jnicaejpjknkcdehdinboajeemegmibh",file:"html/ocr.html"},{id:"jnkmbfdaiaaannjdfippgbkmdebkeojc",file:"interview.html"},{id:"jnkmlfplkohhnccpjnlbaachnnbpldbg",file:"popup.html"},{id:"jnpmbfdgjcfanbnjkkcjdmdfpldpngal",file:"assets/icon.png"},{id:"jnppddecboanjhealppfjebfgmgepdlo",file:"assets/favicon_doox.png"},{id:"joainhjiflchdkpmfadbencgeedodiib",file:"browser.4ceded9e.js"},{id:"joamkiaiadhffogmbggnfnhogcjkfmgj",file:"options/js/initInAppPayment.js"},{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:"jopgfcfohiohhefkoehaaiobplokikkk",file:"icons/icon_recruit_mirapolis_16.png"},{id:"jpeclnaopigfmlphkbdigfipeongkfce",file:"enginesapply/indeed.js"},{id:"jpnappbebbldpfefhgfphjpjfcdkonac",file:"assets/logo16.png"},{id:"jpogcpmioehlanphknchgbpeihakgggh",file:"assets/icons/icon48.png"},{id:"kadobjiobmpmfpdflhnijfcocoddehll",file:"img/up_arrow.svg"},{id:"kaeigipjcamcanmmhgpniimjagdleoee",file:"pixel.gif"},{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:"kbamkiopkpgmcdggnogblondddcgabji",file:"welcome.html"},{id:"kbbdibmbjngifdgbmlleelghocpeimhe",file:"pencil.svg"},{id:"kbboikopeoelddjmonloojodkkdgmjfl",file:"assets/icons/table/sort.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/client-DEvButLx.js"},{id:"kblpicomajknkfebcjamjooomehcemcj",file:"assets/css/styles.css"},{id:"kbnclglbilajgngicamjdmgmlpgfeiik",file:"assets/content.js.49413623.js"},{id:"kcdhkdfbpchhkpfbkcjmkakekbgdhmkm",file:"styles.css"},{id:"kcgepaimjgkfioiepdjghaaieoihndkp",file:"prospectdaddy.html"},{id:"kchaponcodemjigejilffhfchecpgdpf",file:"css/content_wordpress.css"},{id:"kcpcbfahfmefacelkemejdcffhkmedgh",file:"images/icon-delete.svg"},{id:"kddodlkddhhhooabgkmjjhgfpemmcahi",file:"index.html"},{id:"kdedophecknmlhapplnlknmfonnjkffj",file:"assets/error.svg"},{id:"kdfieneakcjfaiglcfcgkidlkmlijjnh",file:"content/popups/contentPopup/index.html"},{id:"kdgdohgdbempjoicceeaaglaioadgfhe",file:"html/chat.html"},{id:"kdmcdkanhnbdcmadgljmhdimdlfpgple",file:"images/icon.png"},{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:"kehabnamkkjfeokppjfdpegpdimccjnf",file:"dist/contentScripts.bundle.js"},{id:"kehgpkpcnciipkmemljdgippdolecnee",file:"assets/content.js"},{id:"kejinlddafeicppcohfbjkpagoipapgg",file:"error-image.3f3cd679.svg"},{id:"kejpbbehabekboaiagdmljaclbiafdpi",file:"assets/electron-917d39d0.js"},{id:"kekchpijkaijdcppfehiplaghiokpcld",file:"assets/icon.48.png"},{id:"kencjkgapindpgehbgolojoocgpcepfk",file:"icons/arrow.svg"},{id:"kfddkkoaalomfadhnchpbkmpfjkhdhhh",file:"sso-signin.html"},{id:"kfecdommldaijnlifjpcgadeolaimhob",file:"assets/icon/work.png"},{id:"kfenlfbjdpdgblnoabpdehlabodakbmp",file:"content/recorder_inject.js"},{id:"kffkffdmgemiabignogacgnchalgdopo",file:"images/off.png"},{id:"kfhkikpdmehlpkaiplafjkaicdljldcf",file:"recorder.html"},{id:"kfihpeckbnofhbnaeeoilcokaaphpcfa",file:"injected.js"},{id:"kflhgfodmnljbkknojojmgipcbnlkilm",file:"index.html"},{id:"kfmcnbhcjcmfmjmnefhhmcjifakidfnp",file:"index.html"},{id:"kfpdickkjkkjpdjejlhhkjmjlhibclbd",file:"edit.29fb15ef.svg"},{id:"kgcafegfbpedfggfhjjajmkaefamdlnl",file:"layout/app.html"},{id:"kgdanddflfkghnmecnipidheakldbccb",file:"icons/eraser.png"},{id:"kghaecfhcmpomligednnpaoneefdneka",file:"css/versions/v1/default/zhipin.css"},{id:"kgnpbmdpjegcmoldomeongliiphbahak",file:"content_entry.js"},{id:"kgocljidhlcblmbfdphppolbelgihgng",file:"shared/img/icon16.png"},{id:"kgojhlllchdepinmopmlhihnipicpoah",file:"icons/128.png"},{id:"kgpckhbdfdhbkfkepcoebpabkmnbhoke",file:"icons/icon128.png"},{id:"khecmdcbcemodllaghjpckaihpdpopoj",file:"dist/images/close-icon.svg"},{id:"khgfclfejdekdjmmdbhhjjbdngipnkda",file:"btnLogo.png"},{id:"khggnjoomjjihbjjkpbhmpelgcdodjpj",file:"index.html"},{id:"khipicgpjplgcfnkcahnfkpbkoamigpc",file:"public/nerd48.png"},{id:"khnbclggeggefodgimdekejhipkeobnc",file:"src/app-iframe.html"},{id:"khoffajpcjjfopgajknfgobpgldnpjeb",file:"icons/expertise.png"},{id:"kialmgneflnabmjopnjadlildnlegklk",file:"templates/pexels-integration.css"},{id:"kidifhledoijjifmngjkaclhdoffdneg",file:"icons/16.png"},{id:"kidobhmjkffpcgdkhciodmkhbhbbdboe",file:"fonts/ABeeZee-latin-ext.woff2"},{id:"kifkfalljkcdikeobdhhbcfahaghpeci",file:"inject.html"},{id:"kifmbalmiephemignphdmcjdlhpbgpdi",file:"assets/css/style.css"},{id:"kigfnbfbpfpgphbocdkmeablbgdbpfke",file:"hider/hider-main.css"},{id:"kihdfipgbnhlckakgichedgelmkpagck",file:"images/logo16.png"},{id:"kiiagbbnplfcigoanejmdfoahipnkfil",file:"assets/chunk-b449a501.js"},{id:"kiidbbloiomikeedemgcgdelecalehkk",file:"icons/16.png"},{id:"kijbihhjhdiipiljfhboknmdipgphoel",file:"js/libraries/jquery-3.5.1.min.js.LICENSE.txt"},{id:"kijengemjcefglfhbkjhfnilepigfcop",file:"images/hide-emoji-16.png"},{id:"kilpocdjalhgghjolmbjnelcfankjgpg",file:"walking-dog.gif"},{id:"kioojceaphgplblnmcfdcfmgbehanioj",file:"img/logo_16.png"},{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:"kkfehaifnclhhfjdbplphgpalaekmmde",file:"sidebar.html"},{id:"kkfgenjfpmoegefcckjklfjieepogfhg",file:"assets/images/arrow.svg"},{id:"kkfikjdhbphaikdchcfgcpphfkfnjhel",file:"dist/contentScripts.bundle.js"},{id:"klamogllemkjoeehnppgondkandnmlpc",file:"icons/green-check.svg"},{id:"klfcbkagebjjiafdcbjopncmhlhaopkn",file:"res/close.png"},{id:"kljfdjngbjfhkfbmcjamofaipcmkbdmb",file:"src/sidebar/index.html"},{id:"kljjoeapehcmaphfcjkmbhkinoaopdnd",file:"content/gDocsAnnotatedCanvas.js"},{id:"kmchjegahcidgahijkjoaheobkjjgkfj",file:"icons/logo.png"},{id:"kmdcoegkocdjoahepejdopdijfgfpfem",file:"icons/icon_16.png"},{id:"kmijndmdcmdfhajeagolfiepokkdoilg",file:"images/icon-16.png"},{id:"knacnmcilhaokfhdllodhkfoamgcfiib",file:"js/inject.js"},{id:"kncpppankgokmpfbblafmeiallbehhel",file:"selectize.default.css"},{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:"ext.html"},{id:"komgobpflpejlpikjbcppdaicdpjeapl",file:"assets/icons/chat_gpt_right_icon_light.svg"},{id:"komohkkfnbgjojbglkikdfbkjpefkjem",file:"styles.css"},{id:"konopngjcahpohmaokfalonpkjebmmda",file:"js/main.js"},{id:"kpejmmgnnhlaolplbbpdnmmpfbjgkmfp",file:"assets/bg-bottom.svg"},{id:"kpijffcodpolapmmlifhipnnnodbcgaj",file:"panel.html"},{id:"kpjflgccfgdakjfijakkeofkigkegiff",file:"settings.html"},{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:"resources/favicon.png"},{id:"ladfahnjabkfoijncdafahcaaocdgfmc",file:"shared/hosts.js"},{id:"lagclghgckajeoincabkhkajfdpnjnaa",file:"assets/logger-13790085.js"},{id:"lakceobapabjoojjkcmopfjdbcakooha",file:"content.css"},{id:"lalffefmokfolfohddcmjopfamcahnad",file:"icon-48.png"},{id:"lamfphejfohdnnkhfcmhholhkffkeblb",file:"dist/contentScripts/style.css"},{id:"lanlmmgcjjmlbfbooodedgblillmnafb",file:"assets/chunk-BEtwhr0H.js"},{id:"laodojbdapdobcokabomggfohacghfce",file:"mmt-srcwl-uzgdqfmzg-ijnyyk/icon128.png"},{id:"lbaabbehhkjeoepfaenkfoljidjdghoa",file:"img/logo-16.png"},{id:"lbbikclloekpgbllggfbechgolanelaj",file:"content.styles.css"},{id:"lbdhaihbicbfdpklckolabhkhiiajjdd",file:"allyParent.css"},{id:"lbfabagnifhinlikbjkddkjindmabcfp",file:"tailwind.min.css"},{id:"lbimaakgddhmngbndebgpfbjbjppebpg",file:"img/white-logo-128.png"},{id:"lboeblhlbmaefeiehpifgiceemiledcg",file:"content.styles.css"},{id:"lcdapnpfkpolccabhfjephapeaabcood",file:"loading-light.gif"},{id:"lcolchipnfjkfmcpfngbpgklkfgmhgpg",file:"shared.css"},{id:"ldaebepnkfockfedaloedoelkjlmpnnl",file:"toastify.css"},{id:"lddobacmfjhpmcdapikgehklfonmnoeg",file:"html/audio/audio.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:"leilgdlodkfpinieickphnogonghaocc",file:"attract-logo-white.svg"},{id:"lejhdnpgccgidknkedecghdkamgmempj",file:"img/chevron-left.svg"},{id:"lenklbgimijbdjlffdebkepcgmdokdla",file:"page/getCookie.html"},{id:"lepjmlhanekpilpolpioolgmjmnenhbc",file:"modules/tabManager.js"},{id:"lfbajboiahaecepobmkcpadfeojchmmf",file:"dynamic/production.js"},{id:"lfepbhhhpfohfckldbjoohmplpebdmnd",file:"popup.html"},{id:"lfkfmfkndiknkfbggpldaijcifekgdgh",file:"icons/icon16.png"},{id:"lfliodmmpbihnbbjeibkgmnijcgoeojh",file:"assets/content-script.js"},{id:"lfngfmpnafmoeigbnpdfgfijmkdndmik",file:"popupMessageIframe.html"},{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:"lggohfbfkbnpgofmflaeboonadahfnim",file:"images/oldicons/icon_16.png"},{id:"lgkipoadghdedmdaheacnjcfabmheeck",file:"index.html"},{id:"lglepilbbkjakifhnkdkangjpgkdckpp",file:"mmt-srcwl-pfuapqhqtjjsqwpj/icon128.png"},{id:"lhbjielebhapffkjgfdieelmppghjgfd",file:"reframeIt-loader.gif"},{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:"lhmbpniocmaanlaegfhppbocjdiaehje",file:"pages/tooltip.js"},{id:"liapnfcdldggdhjdabfeocgnkccmmidi",file:"scripts/model.css"},{id:"libdlpglppigfkjnodgalifaeadfimlj",file:"results.json"},{id:"licbmjoeghamnnfmijbmeigilklhkhkg",file:"assets/styles/tailwind-without-preflight.css"},{id:"liecbddmkiiihnedobmlmillhodjkdmb",file:"html/bubble.html"},{id:"liembfglbhoaacklkmapenocnhckgcdk",file:"CBI_Color.png"},{id:"liioapdljdpeoakcpblhdnbmhkkjoohg",file:"pages/unauth.html"},{id:"lijchjgefodlogdmbglgfgelnceipkpm",file:"index.html"},{id:"lijdbieejfmoifapddolljfclangkeld",file:"icons/arrow-right.png"},{id:"limiipimgpcajfdmcdkkgolmgdelpaip",file:"images/link-solid.svg"},{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:"ljdobmomdgdljniojadhoplhkpialdid",file:"katalon/authenticated.html"},{id:"ljeghfdjlmgglokllcnjhgalplemhhkb",file:"options.html"},{id:"ljflkpelclefpamfbjlddphlmlnogdoe",file:"popup/index.html"},{id:"ljganmjpdpdhihlanmnioaldnbgpokep",file:"content.styles.css"},{id:"ljojfdakhenlgemojpcpicaklobeamhp",file:"svgs/close.svg"},{id:"lkacpincnpeaopanmojlgibodfibghjc",file:"assets/img/double-up.png"},{id:"lkcddhbpnghbonhlgcokbbdlmmcepjpk",file:"favicon-48x48.png"},{id:"lkednafbpioljonffpghgamfedkaiheb",file:"assets/empty.png"},{id:"lkicimekniagfoifhgkieaomcdhofpfn",file:"styles.css"},{id:"lkjblpoingopdeaofcaapmeoojjjnhnc",file:"assets/popup.html"},{id:"lkkihbadfiiojeknaipapjkhkpnomngm",file:"dashboard.html"},{id:"lkkpcbganppaejfanfblkblgnjflfcpd",file:"images/128.png"},{id:"lkomjnkfhbkjgnoljdnfhfmdoaillgim",file:"ziprecruiter/popup.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:"lmioaieijlgloooeehfdoogppbnggjbe",file:"images/button.png"},{id:"lmkfnhppofjfmjmiplljafpgapcpacdd",file:"assets/helpers.a1a54f99.js"},{id:"lmpkgnlloljdflfehhkckendfhpihjlj",file:"icon.png"},{id:"lneooekcaeecfedilhcmmcedgdockfof",file:"check.svg"},{id:"lnneoaiffaecjjidcokdmkjplggbpbie",file:"assets/img/appcore_calendar_black.svg"},{id:"lnofijhaaengkjpkldihfkjjddconokd",file:"images/revu-logo-16.png"},{id:"lnoohchdcmdgpjglcnkihgghijhgakce",file:"assets/prozpector-icon-exposed.svg"},{id:"lnpfjkleopcaojhabdaemndloghpbdnd",file:"icon.png"},{id:"lodchmjigmbiibplfmagekadbpomglad",file:"assets/_sentry-release-injection-file.92c63b5a.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:"lokjgaehpcnlmkebpmjiofccpklbmoci",file:"images/inline/bars.svg"},{id:"longjjhknfiahkcmoohjhlekcjplfpkg",file:"assets/logo512.png"},{id:"loojajlhdpckoegalihmfcfdigcdkjil",file:"logos/close.svg"},{id:"lopgldindmdepmbimbmakmcgahdifmip",file:"res/icons/16.png"},{id:"lpimmmaeigdcdjnficjondnknamdajli",file:"icon-34.png"},{id:"lpoeicnilddmbkbbfdjmldcgafnpgfhi",file:"icon-128.png"},{id:"maanaljajdhhnllllmhmiiboodmoffon",file:"src/icons/forbidden.svg"},{id:"macmkhpidamcjhclhdfaighfbikehipi",file:"content-script.css"},{id:"macmkmchfoclhpbncclinhjflmdkaoom",file:"content-scripts/content.css"},{id:"maeledjnimgpjecfhjchkdcecmboebjb",file:"mmt-srcwl-royrlrgycxjmmtsm/icon128.png"},{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:"images/logo_da.png"},{id:"mbjfnhoogachkgekbbdpfphelgkhocif",file:"content.styles.css"},{id:"mbjgbabnndiapebkfoenicelmacgabep",file:"assets/args.js"},{id:"mbnjnemapiheibpchdcgjkmkbcckkikp",file:"assets/dog.gif"},{id:"mbooipheihllljlmdencnhllhjonione",file:"assets/icons/btn-close-gray.svg"},{id:"mcebeofpilippmndlpcghpmghcljajna",file:"frame.html"},{id:"mcenndlcjhjfpnafccpbkkkkifajnfpc",file:"debug.js"},{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:"b4g_128.png"},{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:"mdgfmjpnplkelkeejpphncnpaelpgjnn",file:"dist/contentScripts.bundle.js"},{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:"mdofemaicgkeoboifigoadfhnifmkhnn",file:"assets/css/panel.chunk.css"},{id:"mecefkgphoclbiadaannooafhgnmmmhl",file:"content.css"},{id:"mechmfoiihmkiokjejfhemjdhganaafm",file:"setup.html"},{id:"megjnkaghfnmcoogjleiahoemiklobob",file:"assets/content-Bgvfrm1f.js"},{id:"meippelgkegmikkmofjfedjggnldnebn",file:"assets/images/weekday-white.svg"},{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:"icon-128.png"},{id:"mffeajkkfkeflkefiicmmmlkmcefhkef",file:"logo.png"},{id:"mfkiheojdlkamhimblpljacaeoncjock",file:"dist/assets/icon48.png"},{id:"mfldbojpjpgjlphijlbgefdjebkhdjom",file:"css/app.css"},{id:"mfmcakkhgmcedieeoahcnomefgigcnhm",file:"public/circle_exclamation_solid.png"},{id:"mfnihmhpikbpioclaalnljadjbmbcppo",file:"assets/selfieSegmentation/selfie_segmentation_solution_simd_wasm_bin.data"},{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-ayhrogvymevcvbxw/icon128.png"},{id:"mgdgfgmbkooegjdkbgnnplfcpgcekbjc",file:"offscreen.html"},{id:"mgeifigkimeabalmfmihcdniaiocajmf",file:"images/fr.svg"},{id:"mgfamkbdapacamnnmdnjpileonmgebpj",file:"content-script.css"},{id:"mgnkdppbhhknjlnielapfjamkmpoleoe",file:"sidepanel/sidepanel.js"},{id:"mgodnpglndjnfpddlamphecaheodnafc",file:"css/popup.css"},{id:"mgpbmhgfcphghdidhkamlbofnddbeflj",file:"icon16.png"},{id:"mgpmocfddaldjiccjhdhbdefmhjeedoa",file:"popup.css"},{id:"mhjgihnfhbkiplcbnoldjmjnfdemeaig",file:"svg/close.svg"},{id:"mhnlakgilnojmhinhkckjpncpbhabphi",file:"chunks/7NCZ736D.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:"miopoagbelhjmaaebgmckcggcopegdfd",file:"assets/rolodex-icon.png"},{id:"mjbgohkdnggchhabijfgbmiagmecjjke",file:"content.css"},{id:"mjbjdgajnigneaoankmolkojdbbnmjpm",file:"js/suggest.js"},{id:"mjcffemmfdpcjekgonelgmphacdhhbod",file:"inline-scripts/sandbox.js"},{id:"mjlfhbaadonmaeodaigiopkkdgdjemdn",file:"recruitbot.9ab7e3eb.css"},{id:"mjllncbijgeccmolnikpkbkpbjggcgij",file:"img/logo-128.png"},{id:"mjomlehmecgaojkpfaoihgikbkgjjcgj",file:"empty-avatar.png"},{id:"mkbdcbbpjljildicdmkmabknfbopghbg",file:"icon-128.png"},{id:"mkbdeemoekfnienlfhmjiffbbpaojpce",file:"content.css"},{id:"mkbffgipobpkmhbhappjodngcbopopmm",file:"js/content.js"},{id:"mkbiijndlaclmmaniflgfcogjhdgdjkc",file:"chrome/css/style.css"},{id:"mkckaghkaoiefkkldfkclbiknkiloiip",file:"views/html/button.html"},{id:"mkdcdjalnjnmmpooncnpbjdpficjhggo",file:"dist/options/index.html"},{id:"mkglodjadhkjjedlbeaiigfpokmimffb",file:"static/media/Triangle_with_Ratings.74d58197.svg"},{id:"mkjedhephckpdnpadogmilejdbgbbdfm",file:"indeedHomeInjectScript.bundle.js"},{id:"mkjlagdmklncmdcbbepengbmideknoij",file:"images/icons/logo-16.png"},{id:"mkkicnlinnjfgjkegiomemdeleniiojl",file:"src/assets/app.css"},{id:"mknhhiglieaelnppkbafchbpnpoplldh",file:"static/css/app.css"},{id:"mkojofmopfifcnldjdngoogjkcdgjffe",file:"dist/contentScripts.bundle.js"},{id:"mkpacpaiefefpcpipahlhlpoiibdjbjm",file:"mmt-srcwl-k-govfvumduxt-bw/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:"mlmdoemlloicjodcbilcjjhcgnlokdgh",file:"content-scripts/content.css"},{id:"mmengphjalefkdbbgfdeleaiibihhieo",file:"index.html"},{id:"mmfheoelhfiilejpkadbkjdcdljboipi",file:"css/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2"},{id:"mmfhhfjhpadoefoaahomoakamjcfcoil",file:"contentLoaded.js"},{id:"mmfiaikmjhpggojgalplfnlplbkglbjc",file:"bubble.html"},{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:"mnghkdmodopmkhlbfgnbhaojdgknijlc",file:"assets/onboarding-1-DBcnOwGZ.png"},{id:"mnkimbjlnjcggcdbhkfpadghelibbfkj",file:"public/modal.html"},{id:"mnkpjcgdlhenamhcbempiogjamdkbbgi",file:"inpage.js"},{id:"mnnkpffndmickbiakofclnpoiajlegmg",file:"inject.js"},{id:"mnnmkkjnpnmbfohnpbddndcmiioicpjl",file:"icon16.plasmo.6c567d50.png"},{id:"mnpfmcfgdahpdcdbaebpjlnhkanbphlk",file:"popups.html"},{id:"mnplmcgaklbhpennjinecnkjpedmfejc",file:"css/versions/v1/default/zhipin.css"},{id:"mocnjjhjgkdnjabffnohndepmolafham",file:"src/pages/AddToPipeline/index.js"},{id:"moeceekkkimhielmmomohdlllmjmjhda",file:"assets/css/panel.chunk.css"},{id:"mohjajgdccdncohjeglnacfdchccegcg",file:"Assets/Images/DownArrow.svg"},{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:"mpdnkjmjlmebfoobkfjkngdkgechghhn",file:"libs/xlsx.full.min.js"},{id:"mpfapjpddcieegpgkgfhehljgniokbpk",file:"icon.png"},{id:"mpgifldcehdaecljlhiifnljeeganpmg",file:"pages/sidebar.html"},{id:"mphkinhcenmlkpfddjojkoncjjpdjeal",file:"config.js"},{id:"mpiajcmbcnfbcaogpjbiopmfgpehpefh",file:"Move.png"},{id:"mpkfgkeapfgoamnbdopmdlgilhjhiini",file:"styles/snappify.css"},{id:"nacafojhpmfdnibnabiklmjocdgpgjin",file:"content-script.js"},{id:"nacbmbmlibonpmhhacnnliibhpdpkpjl",file:"images/logo16.png"},{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:"nahnomhhjhhmalmfhfeolghbonmgijjd",file:"frame.html"},{id:"namibaeakmnknolcnomfdhklhkabkchl",file:"assets/content.js-CT05Gyqb.js"},{id:"naooopefdfeangnkgmjpklgblnfmbaea",file:"icons/16.png"},{id:"napmllgbndmhlgobofkjkbclopkcpljc",file:"shared.js"},{id:"napoalfjgkpknedmcopcelgcpgkbohcm",file:"template.html"},{id:"nbbpignfbfknigiafgacjnlbddfhlcjn",file:"assets/storage.js"},{id:"nbliocdcjjlidgpcndenjiljnlbapbkc",file:"assets/icons/chatterworks/icon-16.png"},{id:"nbmmhcmajjdfjobnmgnkbdhfpnbhpkef",file:"images/Sequences/folder.png"},{id:"nbnlbmpbcdefpnhoobbipinegfebonba",file:"main/html/permissions.html"},{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:"nckljjenflcgklcbilohaopbnhphnpnd",file:"assets/sparklin-icon-16.png"},{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:"ndcehhfhbobpfbnkigpomgbaomabgcoa",file:"photos/icon-16.png"},{id:"ndfbfegjcohejllfjococichokofhigi",file:"mmt-srcwl-cqpefawa-xdpoklt/icon128.png"},{id:"ndhkkhcbkbnmcpohfgjndijdiglhpogm",file:"manifest.json"},{id:"ndooacohmedbanhjoappelfmmhkofigo",file:"assets/img/social/twitter-circle.svg"},{id:"neabdmkliomokekhgnogbeonopbjmajc",file:"recording-panel/assets/icons/icon27.png"},{id:"neamplaeghaioimdanffppbikdfcimko",file:"app.html"},{id:"nebafhfaccmdnfokjcpknfommfdflkac",file:"images/txt.png"},{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:"nenhoebjinjjdafpdledoabnaablagha",file:"deployment/ressources/logo_icon.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:"nffbjeledfbipmfmhphnhhacgchdhpki",file:"mmt-srcwl-thhmroxwlztxkcnk/icon128.png"},{id:"nffnpjfoalbhkebcmcckghhkcafjbaml",file:"assets/button-lFiM4608.js"},{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:"nfmnidlehoeodpoamcdahldbpekpchmf",file:"assets/content-script.js.d34ea0cd.js"},{id:"ngaoohdgcaeojdngpdhaafnccgcbhlgl",file:"cai128.png"},{id:"ngdjlkacliphopkcgcffflancnlbebnc",file:"assets/images/sidebar-logo.png"},{id:"ngeodglgpmplepchhghijjncnikifaed",file:"popup/index.html"},{id:"ngfogmhfacdkjpbahoplpnngmgkeemef",file:"images/gmail.svg"},{id:"nggfafecghkamhbcpcnoblcildgkjlnj",file:"js/sc_main.js"},{id:"ngincgodgniloepaokdljdadbanjjdab",file:"images/icon-38.png"},{id:"ngkfcpjmjfppkhefdbbmephnohgnnfgf",file:"images/readme.txt"},{id:"ngkkfkfmnclhjlaofbhifgepiogfkkll",file:"images/off.png"},{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:"niamgkmcfickcpmbdheldknknepgibed",file:"assets/message-Do_AbptX.js"},{id:"niepjjjanfklingfdpadkbnekdacgnpk",file:"config.json"},{id:"nijhgcgpkieehggfehcfelnpbpjbapap",file:"assets/edit.svg"},{id:"niklkimcnghcjhcecopeihlapofkplpa",file:"images/Chrome Extension.code-workspace"},{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:"njlakpfaimekjhgijkiohdcaoegbnilp",file:"robots.txt"},{id:"njlbkibahkompkmkkibinagceioogold",file:"assets/other/img/icon-16.png"},{id:"njlfglfdlifbodojfooeajdlfldggihb",file:"content-scripts/main.js"},{id:"nkckdjgcgphemcnhenhgengdphfbjabm",file:"frame/index.js"},{id:"nkcpocoicelbcnefnklplkgohpeaiooo",file:"assets/LeadPyramid.png"},{id:"nkdcniihpjkdjakenbfimcekjnjbdjkp",file:"lib/sql-wasm.wasm"},{id:"nkedbgifgajhhicbmabjgkkjifecajla",file:"css/all.css"},{id:"nkieifjcdjjacjgeejajlchaddeceihi",file:"assets/RollbarProvider-CZvsfioL.js"},{id:"nkipnpoebmbpljbmiijjnmkolichinpi",file:"icons/plus.png"},{id:"nkkchjgbhhgbmochpphoohfebbcifehj",file:"css/Metro/slider-v.gif"},{id:"nkmbdmlbfpmfabdhlbbiknhiojondakp",file:"images/icon.png"},{id:"nkmndmkcnjgddbpgjdbmndgepemlbahk",file:"style.css"},{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-B9qma_fj.js"},{id:"nlofjaolgiolnmpiekakhhdoflmijphj",file:"js/background.js"},{id:"nlonjnnlhajlljffkifbfdkgkhgakjee",file:"assets/track.svg"},{id:"nmaonghoefpmlfgaknnboiekjhfpmajh",file:"sidebar.html"},{id:"nmcepmjolcpckhpjgbmlaekpohfepnlk",file:"icons/icon16.png"},{id:"nmdenlkgkkgncmibclhckkhclilpfjap",file:"assets/css/global.css"},{id:"nmfngggbgdplnjfaofmfpkcehjnmokep",file:"mmt-srcwl-ldsnpgzmtrqugpoj/icon128.png"},{id:"nmijjdncbjddjjnebaanchfnjmhcfinj",file:"icons/postie-16.png"},{id:"nmlbdaeboelgpgcibkcpmijidglijfdd",file:"assets/Tooltip-fa1a4e3b.js"},{id:"nnbjdempfaipgaaipadfgfpnjnnflakl",file:"popup.html"},{id:"nndbennabmfpkofomdhobjbcfdagcmfc",file:"index.html"},{id:"nngilmldfeeehppbbapdngbkpipgnmlk",file:"assets/src/entries/background/main-CbRxZi2_.js"},{id:"nnhmgfbldlcfbokbppkhcopffpjlhnfe",file:"assets/core-f9756fd7.js"},{id:"nofnjjmmplhlanoilgimbmlggpmcbhnd",file:"images/icon-128.png"},{id:"nogdppkjhdnlpkbbdbgpmekmbfpkkogb",file:"images/icon16.png"},{id:"noglbipnalamijcpdffjihmepadieajn",file:"assets/css/tabs-BV9302hA.css"},{id:"nojeihlgmjphdimejcnmdieclhgckpie",file:"assets/runtime-d1b6eacd.js"},{id:"npalaoodncfdhppiblimmkcmfbhlghla",file:"icons/16.png"},{id:"npcfccjbkefemjkfogefnhojohpdjflg",file:"Views/elements/emptyTableDiv.js"},{id:"npekhmlmillbfcbohangleomoblkckih",file:"manifest.json"},{id:"npjbfpcicpkacgpefjhhdcfeflgpdbkl",file:"assets/pinning_illustration.png"},{id:"npjnmpmbngconkoohidgjmimldjgnoib",file:"icons/logo.png"},{id:"npofkafeajldomiogiiglkfebpnnaagn",file:"images/icon-extension.png"},{id:"oaanfnfogfibghojgandbkaemplgolhg",file:"js/simplicantIframe.js"},{id:"oacmmmjedhheaijfjidilonpngccnhdl",file:"icons/rec-pause.svg"},{id:"oafncfpeahkepmnpbeohblepbfecmfml",file:"static/js/inject.js"},{id:"oagkbgolfdnkknkjomnggnhmnlfmgdod",file:"images/file-import_14.png"},{id:"oagmhkbihjafidkgjdnphnlpebfegmem",file:"index.html"},{id:"oahjfinghkkolgfkbfanpmhpiafmnepn",file:"frame.html"},{id:"oaohpcolgdghlibnhcodikejaebniamh",file:"img/logo-16.png"},{id:"oapcfehdepgmglmilpeebdlkmnomikif",file:"mmt-srcwl-eiqnshjckjzwoqvs/icon128.png"},{id:"oapemmgkpemiijidhjngkhglcogfafna",file:"img/main-logo.png"},{id:"obcjlbhpiidmfcohobdeemabmkchjbib",file:"config.json"},{id:"obkjfcijfdhcnjhbomcfgaloojcphlla",file:"app.js"},{id:"obmkdnnpbekmdbcbmkchhpfiphoglnoe",file:"popup.html"},{id:"obnlgfpkidiggkobigcpifpcmpadkheb",file:"scripts/popup.js"},{id:"obolfpifkeiojdaeogeikmojgpkhikji",file:"content.styles.css"},{id:"obpcenkclppghkfpielmefegceegofeh",file:"assets/app-icon@16.png"},{id:"ocbnemplbdhaiamccedkmbgdlpjnlebk",file:"assets/js/modulepreload-polyfill.0c213636.js"},{id:"occdaalfehgmfljholnacfbldbbigocd",file:"index.html"},{id:"occmhhljphpdnjhpllcdamgcamnlbhoe",file:"assets/index-2ee40d1b.js"},{id:"occohfgiljdagdmklhpplgmcnliljmgi",file:"templates/popup.html"},{id:"ocfbdigfloenanlhapodlbeappedipog",file:"assets/bookmark.png"},{id:"ocgihmepobcgbfibaopggddieigbopja",file:"images/tick.svg"},{id:"ochleehcckobncbecepoccjhpjfgepae",file:"assets/arkose/index.html"},{id:"ocjimmpclopkeggnbpjhehmdphfcibfe",file:"linkedin-data-gatherer.js"},{id:"ocnbjodbddkaibocbcaobeclfmoepdfn",file:"opiniontrade_png.png"},{id:"ocopgnklkdgjomofiklloofpognlhgic",file:"dashboard.html"},{id:"ocpljaamllnldhepankaeljmeeeghnid",file:"loadable/5.75.0/styles-linkedin.css"},{id:"odfhegllgcagejmjbanonlofmllejfea",file:"templates/container.html"},{id:"odfkeponbonopbfofpgcpijpkfkoobce",file:"css/no-coupon-overlay.css"},{id:"odnlhpgfojmkjbpbhgbmkohlbeincomi",file:"images/icon-16.png"},{id:"oeafialjoahjmjobbkpedkdbjeejmcnf",file:"shared/img/selectEmpty.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:"overlay.6e038a4b.css"},{id:"oenahigafdpmlmaenjgiedobgooekkmp",file:"css/lib/ng-sortable.style.min.css"},{id:"oenbcmincgcghjccfmamdfaliakeofnj",file:"rocket.css"},{id:"ofahkjbhcadlldpoahogjikmdoibbejh",file:"frame.html"},{id:"ofeanjpmjdifbpdcjakglfiphhdibokg",file:"static/content/addon.js"},{id:"ofhkmogndcokchjnplcffgaibhlckomd",file:"assets/jsx-runtime.8815aa52.js"},{id:"ofhlminijomemliahkjjbgcbfoimjiaj",file:"src/offscreen.html"},{id:"ofimpbnookohfgbpjmldkglcenmijddn",file:"assets/images/multiply.png"},{id:"ofjpapfmglfjdhmadpegoeifocomaeje",file:"content.styles.css"},{id:"oflolfahklajghjkoidbgejfppemoglg",file:"fix.css"},{id:"ofmnafoeebefjkpogfdgpjiekfibjcgp",file:"assets/dom.utils-Dn6JsoAg.js"},{id:"ogaoafnkmioibffoejjhojlgdbnbhbkn",file:"src/popup/popup.html"},{id:"ogbeagkgddmdabmfglheibfllgjpojpc",file:"static/css/content.css"},{id:"ogcajcodaeoddheebcooklmgnmojdmlh",file:"css/versions/v1/default/yimaitongdao.css"},{id:"ogdcaeahliekpocibhfihgienjkmbkfj",file:"assets/changeDynamicField.svg"},{id:"ogefkjecchhbabkmfhenmpddlogencee",file:"images/blue-logo.svg"},{id:"ogjefnociaddjemkkajgmfpmhmpokmhj",file:"assets/icons/880efdae8333a77ffdf9.svg"},{id:"ogjhdkblgbaafbfladgioagekbpildck",file:"browserAction/connected.html"},{id:"ogkehgjliimpbbldnjnejkeolcfadlba",file:"assets/inject.css"},{id:"ogkjbhnliddbciinokocmhaknnjijeph",file:"icons/dp-ext-rectangle.svg"},{id:"ogooomoloidibgaefnkejnhamdcckcaj",file:"login.html"},{id:"ohafhojmjifocnichgidgmijbfkdpfce",file:"assets/index-Bj3i1uqQ.js"},{id:"ohfoafaaamjfbhmceahibpppkbnohaeg",file:"index.html"},{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:"Inter-Thin.60f36562.ttf"},{id:"oicchbdmkmdblmmcikdpahedjjagjepe",file:"img/logo-16-pre.png"},{id:"oiecklaabeielolbliiddlbokpfnmhba",file:"ui/content-script/index.js"},{id:"oifccemampjbdnhgackonchjligbchcn",file:"static/js/monitorAjax.js"},{id:"oifhlabcikkagomckldggmbfignkpnhn",file:"content.styles.css"},{id:"oifhpkdmngmgaemkbjalbbgnminihhai",file:"tooltip.html"},{id:"oiilonnoeenhflnpndfcfalpkhmidgfo",file:"assets/logo_16.png"},{id:"oinggjlocmfgmpfcbilglbadminjogbj",file:"views/slider.html"},{id:"ojcgkfpcbmikankjidlcmepjjjeecpfo",file:"dist/contentScripts/style.css"},{id:"ojcpemkflmgdghcdgccdhljokgnoghko",file:"icon-128.png"},{id:"ojencakindbmjhaehghemlfblglmajbi",file:"assets/flags/de.svg"},{id:"ojfkenmmieminleikclgocedgpggeecp",file:"hider/hider-main.css"},{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/getExtensionStatus-1ed3356e.js"},{id:"okljidbiljmlhmlpmaefgaegnobfjgib",file:"assets/fonts/fa-brands-400.eot"},{id:"olajffaddeocdebilcndnlkcckeigghh",file:"audioPlayer.js"},{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.js"},{id:"omabkfajllnmllnmkiiamfomifpcgdfn",file:"index.html"},{id:"omehanmapldmkfhkcpiigghpikigegol",file:"js/bootstrap.js"},{id:"omgcnaaimcjjnaiipgffdhgpdhbfhdjm",file:"about.html"},{id:"ommnnnfinbaemcankialpamigfppbpab",file:"index.html"},{id:"ondpfdkhmldanbengeccomhikbpolalh",file:"icons/snackbar/success-close.svg"},{id:"ongdflobmedlkdbngbdfgeidpgllonce",file:"img/icon32.png"},{id:"onhdhaeggcnlmjjeohfnfondehkpbdle",file:"index.html"},{id:"onihkndbaebcgmhgplpjcojcackojbko",file:"dist/contentScripts.bundle.js"},{id:"onilmncigdmmmanicghdoppnbgdoajkm",file:"js/backgroundPage.js.LICENSE.txt"},{id:"onipnmhgeammkmdpbbfpelcbdmdlpdeh",file:"tab/index.html"},{id:"onjifbpemkphnaibpiibbdcginjaeokn",file:"icons/icon128.png"},{id:"oochnpbokgnmfbbcmdiebflmbmflfjpl",file:"images/___toolbar-icon.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:"opdlaiekjnhknleegninehafenmjkppd",file:"img/favicon-16x16.png"},{id:"opeiecdnpgdmonckglnlkgelmicjohei",file:"amz-review-to-order-matching-enterprise-account-management.html"},{id:"opjnalnkbedcahnheieejogpbaiomojp",file:"inject.js"},{id:"opkeighmgcdkekpjdmcidgcpobhdopcc",file:"content.styles.css"},{id:"oplolbghaddhfckbgbnjeadnflmbahca",file:"images/d1f7a63448e3df.png"},{id:"opnkjppfhfgeigncclcfphoodaildlcd",file:"img/logo-16.png"},{id:"opnoobcmpioggidgaejfkbopdphbfkkk",file:"options/index.html"},{id:"oppdhakjlgmkpalafpamajajomiedmee",file:"assets/img/logo.png"},{id:"pacifckpofegbiddjcinckfidgankbel",file:"Asset 1.png"},{id:"paeleikfhjllfcdmkgnjmmkikchonnih",file:"img/loading.gif"},{id:"pafgbepjkpaijobljgeilcgkajffplbc",file:"html/first_view/welcome.html"},{id:"paggcadipfanhkldaakmnikgioplgece",file:"assets/content-script.ts-Cyt5rSl-.js"},{id:"paihdpncghiaifanpfaddgaphjdaijbo",file:"assets/images/icon-32.png"},{id:"pakpdfhkdddkpflmicmpgnogihokpjfh",file:"jquery.min.js"},{id:"paoeccckpgalcckjjeajohcofbacphdo",file:"index.html"},{id:"papnacbieidncdfbpabfchnlfcbdigjo",file:"resources/won-icon.svg"},{id:"pbglgmekagjpmeiifbhkdbabcinndalm",file:"icons/img_checkmark.svg"},{id:"pbnndmlekkboofhnbonilimejonapojg",file:"js/page-script.js"},{id:"pcambcbbejngpalfbdnlkgeaickjankc",file:"content_scripts/salesnav.js"},{id:"pcbmdiggonmiolmlnmnldclfnninaaci",file:"images/icon-16-gray.png"},{id:"pccckmaobkjjboncdfnnofkonhgpceea",file:"images/spectrogram.png"},{id:"pceedigolbgaoblpnekfeodfcpohhamn",file:"css/content.css"},{id:"pcobbcdoanadagdelmmjklpbjlgbgnna",file:"popup/index.html"},{id:"pcpopepajoicgemeoopcgkdafmcjkeid",file:"images/bootstrap-icons/circle-fill.svg"},{id:"pdbjmcdeejhgomfpkdkninlpdnneallg",file:"icon-128.png"},{id:"pdciaimcnfkdbboodbpfpmhimkdlbaja",file:"assets/scripts/ember/sales_nav/current_company.js"},{id:"pdhjdplaofbcmngkcihbokcednbgcbkc",file:"dist/contentScripts.bundle.js"},{id:"pdjlmgoncbmhinkijcklgdbjhfalddpl",file:"dist/contentScripts/style.css"},{id:"pdlcomibcikhgmoeemalafpdddlicapn",file:"assets/src/entries/contentScript/main-b9d61936.js"},{id:"pdlkpphleaimjjpnfgbhmjfbnpghknjl",file:"icons/delete.png"},{id:"peeecebkcdlibcfllbpmmkhggflcppem",file:"Content Script/Replacement Buttons/Facebook.svg"},{id:"pegifokgkfjelfkojpbonhnaobpljfci",file:"index.html"},{id:"peihjafefjfiagbbphhjbepceocnnagh",file:"dialoguebox.html"},{id:"peimgkadcinffebndofhpegopgdfgjda",file:"91fd0799c769cbfe451d.png"},{id:"pelpaakgpkphmafchifeaigefamllpam",file:"popup/index.html"},{id:"peoleidjbfidmgbhgjkfemaeonckankp",file:"images/star.svg"},{id:"peppchmkanmbabgfgoaaaopffhcgkaap",file:"dist/contentScripts.bundle.js"},{id:"pfgcpffbebicalfmjajbmacnfopgobom",file:"content.styles.css"},{id:"pfgdmbcgjhcnhegdbpnfcambagenamea",file:"styles.css"},{id:"pfjldacceamjoodnidfognkfnpdkfenb",file:"datakudo-icon.png"},{id:"pfklocmkegcafkfingmddalbdakhffbh",file:"content/inspection_mode.css"},{id:"pfmbhdbhllglinbdgfckkajcfcabeknl",file:"content.styles.css"},{id:"pgbnlealelcfkcefjdndafdhkilnkndo",file:"dist/contentScripts/style.css"},{id:"pgeaebijfkgfbjcacnnblkjaejmkkpfd",file:"images/___toolbar-icon.png"},{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:"icons/16x16.png"},{id:"pgnfaifdbfoiehcndkoeemaifhhbgkmm",file:"images/panda1.png"},{id:"pgojdgodkeeohblpemhanogocmonjelh",file:"assets/automationtool-icon-16.png"},{id:"pgopmiogichglkkggdlfieapemcobdle",file:"toolbar.html"},{id:"pgpighnkcmaoidkmnagniaaoomfcjdib",file:"icon-128.png"},{id:"phealodnoblgkcfbhpdebpihdbfmggpi",file:"js/js.js"},{id:"phkfbnoifgkadnjmelbnpemkphhgllkn",file:"sparkle.svg"},{id:"phnpbbhhpgcinodkajklaiedjdppdakj",file:"fonts/Poppins-Black.ttf"},{id:"phoialdjmhokaphaijlaaghdafbbgadk",file:"js/jquery.min.js"},{id:"phpabngjffcmjlceoeefjnmjllnbfake",file:"scrape-xing.344cd8a2.js"},{id:"piboogehnifdnfbniihlngohmpopdamo",file:"ps-upwork.css"},{id:"pieampkohkblkihmpejkmibaadambknj",file:"dist/contentScripts/style.css"},{id:"pijdhhmjpfojnaflabjgghhdjkapaoce",file:"lib/css/popup.css"},{id:"pijpdgfelkpobngnjholleebdlbkiood",file:"fonts/Graphik-Regular-Web.woff2"},{id:"pikicdbgibedakbonekcjbidijgkibkf",file:"cleanslate.css"},{id:"pikoeaffphpgbiffmfdofgkcjjlhgagb",file:"content.styles.css"},{id:"pipdpdjlndkpkoiodgpmjojceagonjjg",file:"preview.html"},{id:"pjbogjhlgnmeihajjkmbgcfileaapdld",file:"interceptor.js"},{id:"pjjkjaoojgmglgafnmkkckggbnabdpko",file:"content.styles.css"},{id:"pjkkoggjblglckljjmofcdeanebdaimd",file:"assets/chunk-78deadb9.js"},{id:"pjlnajjbbpjgimaidaoinoeebehkcboj",file:"content.styles.css"},{id:"pjmlkdacmaejhkdcflncbpcpidkggoio",file:"assets/utils-59b6fd0a.js"},{id:"pjojbbffkpdnffdbdficagjnpmjflifk",file:"manifest.json"},{id:"pjppchbggbednobkfiagkpmpcijkmojn",file:"contentscripts/GmailApi.js"},{id:"pkbmlamidkenakbhhialhdmmkijkhdee",file:"assets/css/custom.css"},{id:"pkeohopamnaclncnfadpgkldipmakgnh",file:"logo128.png"},{id:"pkhpccaeagckbkkenngbgijkkhcaejaa",file:"handlebars/gmail/inline/not-identified-icon.html"},{id:"pkioaceoacodhihonfjckpcldkgkdljb",file:"content.styles.css"},{id:"pkiobofgpkipcjginejbpaagnbffglal",file:"icon-128.png"},{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:"pmebegkjgfjjkphgdchhlafbhdagjhnb",file:"contentStyle.css"},{id:"pmilieofkcmpfkjfcghfjblbhdmncgba",file:"img/logo_80.png"},{id:"pmjdahplhbdapepangpblklhcbicdlja",file:"dist/inject.js"},{id:"pmnhcgfcafcnkbengdcanjablaabjplo",file:"sidebar.html"},{id:"pnbffadghcgnggdmpefiodonaiolfjgm",file:"images/briefcase128.png"},{id:"pncjbdpggmlfclmaifflmbidojgokban",file:"images/128.png"},{id:"pndgalpgljgnechbmgcjjbkahijedgej",file:"profileinboth.html"},{id:"pndokjccmhcdjopecnefdnhddhjpomif",file:"browser.b9f68bc3.js"},{id:"pnelhidginfmcljddkhflacemmcebpmk",file:"src/iframe/iframe.html"},{id:"pnelhjpkcdoajkfnpfdijbjofjejmicc",file:"assets/logo.png"},{id:"pnndeikagpndnokododcjjmmaahmjlhb",file:"icons/16.png"},{id:"pnnhlgjnopfddpbhompokohbffdjaafa",file:"content-style.css"},{id:"pnnlfndlmiholegbmmjigofdljaonhaj",file:"icons/logo/icon16.png"},{id:"pnpoodnmjibopedllgnageimndedamdd",file:"profile.html"},{id:"pobgpceaibihmcimpbaihinbbdclbiof",file:"dist/contentScripts.bundle.js"},{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:"signin.html"},{id:"ppbfhhgcdehhbjigifndnfmcihegokbb",file:"dist/static/popupV2.html"},{id:"ppbjfmdejofomgglmammnchkaabnklfe",file:"image/blank.png"},{id:"ppccbkbomokcjnpibpeibpmogjgpnfii",file:"assets/images/icon-16.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"},{id:"pppndnondekehijelkdnlihcfehjacfe",file:"jc.98ee31a0.css"},{id:"ppppdkjdnjpomdkpamemnhcebkbpbcma",file:"content.styles.css"}]
function a(){return"undefined"!=typeof window&&window&&"node"!==window.appEnvironment}function s(){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}async function c(){const e=[],t=o.map((e=>{let{id:t,file:n}=e
return fetch(`chrome-extension://${t}/${n}`)}))
return(await Promise.allSettled(t)).forEach(((t,n)=>{if("fulfilled"===t.status&&void 0!==t.value){const t=o[n]
t&&e.push(t.id)}})),e}async function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
if(!a()||!s())return
const n=await c()
Array.isArray(n)&&n.length>0&&e.fireTrackingPayload("AedEvent",{browserExtensionIds:n,...t})}const u="chrome-extension://"
function d(){return window.document}function f(e){const t=e.indexOf(u)
return-1===t?"":e.substring(t+u.length).split("/")[0]}function p(e,t,n){if(e.nodeType===Node.TEXT_NODE&&void 0!==e.textContent&&e.textContent.includes(t)&&n.push(f(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(f(r.value))}for(let i=0;i<e.childNodes.length;i++)p(e.childNodes[i],t,n)}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
if(!a()||!s())return
const n=[]
p(d(),u,n),Array.isArray(n)&&n.length>0&&e.fireTrackingPayload("SpectroscopyEvent",{browserExtensionIds:n,...t})}var g=function(){var e={compressToBase64:function(t){if(null==t)return""
var n=e._compress(t,6,(function(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e)}))
switch(n.length%4){default:case 0:return n
case 1:return n+"==="
case 2:return n+"=="
case 3:return n+"="}},_compress:function(e,t,n){if(null==e)return""
var i,r,o,a={},s={},c="",l="",u="",d=2,f=3,p=2,h=[],g=0,m=0
for(o=0;o<e.length;o+=1)if(c=e.charAt(o),Object.prototype.hasOwnProperty.call(a,c)||(a[c]=f++,s[c]=!0),l=u+c,Object.prototype.hasOwnProperty.call(a,l))u=l
else{if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(i=0;i<p;i++)g<<=1,m==t-1?(m=0,h.push(n(g)),g=0):m++
for(r=u.charCodeAt(0),i=0;i<8;i++)g=g<<1|1&r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r>>=1}else{for(r=1,i=0;i<p;i++)g=g<<1|r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r=0
for(r=u.charCodeAt(0),i=0;i<16;i++)g=g<<1|1&r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r>>=1}0==--d&&(d=Math.pow(2,p),p++),delete s[u]}else for(r=a[u],i=0;i<p;i++)g=g<<1|1&r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r>>=1
0==--d&&(d=Math.pow(2,p),p++),a[l]=f++,u=String(c)}if(""!==u){if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(i=0;i<p;i++)g<<=1,m==t-1?(m=0,h.push(n(g)),g=0):m++
for(r=u.charCodeAt(0),i=0;i<8;i++)g=g<<1|1&r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r>>=1}else{for(r=1,i=0;i<p;i++)g=g<<1|r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r=0
for(r=u.charCodeAt(0),i=0;i<16;i++)g=g<<1|1&r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r>>=1}0==--d&&(d=Math.pow(2,p),p++),delete s[u]}else for(r=a[u],i=0;i<p;i++)g=g<<1|1&r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r>>=1
0==--d&&(d=Math.pow(2,p),p++)}for(r=2,i=0;i<p;i++)g=g<<1|1&r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r>>=1
for(;;){if(g<<=1,m==t-1){h.push(n(g))
break}m++}return h.join("")}}
return e}()
const m={apfcTypes:1,collectionType:2,trackingId:3},v={protocol:1,hostname:2,port:3,origin:4,host:5,href:6,hash:7,pathname:8},y={saveData:1,effectiveType:2,rtt:3,downlink:4,downlinkMax:5,type:6},b={liedOS:1,liedBrowser:2,liedResolution:3,adBlockInstalled:4,liedLanguages:5},E={type:1,description:2,suffixes:3},_={canvasHash:1,canvasWinding:2},k={label:1,gid:2,id:3,kind:4},T={lists:1,fontsHash:2},S={Orientation:1,Enabled:2},A={charging:1,dischargingTime:2,level:3,chargingTime:4},C={touchStart:1,touchEvent:2,maxTouchPoints:3},I={"webgl stencil bits":1,"webgl vertex shader high float precision rangeMax":2,"webgl antialiasing":3,"webgl max vertex texture image units":4,"webgl fragment shader medium int precision rangeMax":5,"webgl fragment shader low int precision rangeMin":6,"webgl max vertex uniform vectors":7,"webgl renderer":8,"webgl vertex shader high float precision":9,"webgl green bits":10,"webgl fragment shader medium int precision rangeMin":11,"webgl fragment shader low int precision rangeMax":12,"webgl fragment shader medium int precision":13,"webgl blue bits":14,"webgl max viewport dims":15,"webgl unmasked vendor":16,"webgl vertex shader medium float precision":17,"webgl fragment shader low int precision":18,"webgl vertex shader high int precision":19,"webgl vertex shader medium int precision rangeMax":20,"webgl unmasked renderer":21,"webgl fragment shader high int precision":22,"webgl aliased point size range":23,"webgl vertex shader medium float precision rangeMax":24,"webgl vertex shader low int precision rangeMax":25,"webgl fragment shader low float precision":26,"webgl fragment shader high int precision rangeMin":27,"webgl vertex shader high float precision rangeMin":28,"webgl red bits":29,vendorAndRenderer:30,"webgl vertex shader medium int precision rangeMin":31,"webgl vertex shader low float precision":32,"webgl vertex shader medium int precision":33,"webgl fragment shader medium float precision rangeMax":34,"webgl max texture image units":35,"webgl vertex shader medium float precision rangeMin":36,"webgl fragment shader high float precision rangeMin":37,"webgl fragment shader high int precision rangeMax":38,"webgl vertex shader high int precision rangeMax":39,webglHash:40,"webgl max varying vectors":41,"webgl fragment shader medium float precision rangeMin":42,"webgl vertex shader low int precision":43,"webgl fragment shader low float precision rangeMin":44,"webgl aliased line width range":45,"webgl max combined texture image units":46,"webgl shading language version":47,"webgl vertex shader high int precision rangeMin":48,"webgl max anisotropy":49,"webgl max render buffer size":50,"webgl vendor":51,"webgl vertex shader low int precision rangeMin":52,"webgl max fragment uniform vectors":53,"webgl fragment shader high float precision rangeMax":54,"webgl version":55,"webgl fragment shader high float precision":56,"webgl max texture size":57,"webgl max cube map texture size":58,"webgl fragment shader medium float precision":59,"webgl vertex shader low float precision rangeMin":60,"webgl max vertex attribs":61,"webgl alpha bits":62,"webgl vertex shader low float precision rangeMax":63,"webgl fragment shader low float precision rangeMax":64,"webgl depth bits":65,extensions:66},w={ANGLE_instanced_arrays:67,EXT_blend_minmax:68,EXT_clip_control:69,EXT_color_buffer_float:70,EXT_color_buffer_half_float:71,EXT_conservative_depth:72,EXT_depth_clamp:73,EXT_disjoint_timer_query:74,EXT_disjoint_timer_query_webgl2:75,EXT_float_blend:76,EXT_frag_depth:77,EXT_polygon_offset_clamp:78,EXT_render_snorm:79,EXT_shader_texture_lod:80,EXT_texture_compression_bptc:81,EXT_texture_compression_rgtc:82,EXT_texture_filter_anisotropic:83,EXT_texture_mirror_clamp_to_edge:84,EXT_texture_norm16:85,EXT_sRGB:86,KHR_parallel_shader_compile:87,NV_shader_noperspective_interpolation:88,OES_draw_buffers_indexed:89,OES_element_index_uint:90,OES_fbo_render_mipmap:91,OES_sample_variables:92,OES_shader_multisample_interpolation:93,OVR_multiview2:94,OES_standard_derivatives:95,OES_texture_float:96,OES_texture_float_linear:97,OES_texture_half_float:98,OES_texture_half_float_linear:99,OES_vertex_array_object:100,WEBGL_blend_func_extended:101,WEBGL_clip_cull_distance:102,WEBGL_color_buffer_float:103,WEBGL_compressed_texture_astc:104,WEBGL_compressed_texture_etc:105,WEBGL_compressed_texture_etc1:106,WEBGL_compressed_texture_pvrtc:107,WEBGL_compressed_texture_s3tc:108,WEBGL_compressed_texture_s3tc_srgb:109,WEBGL_debug_renderer_info:110,WEBGL_debug_shaders:111,WEBGL_depth_texture:112,WEBGL_draw_buffers:113,WEBGL_lose_context:114,WEBGL_multi_draw:115,WEBGL_polygon_mode:116,WEBGL_provoking_vertex:117,WEBGL_render_shared_exponent:118,WEBGL_stencil_texturing:119},x={"American Typewriter":1,"Andale Mono":2,Arial:3,"Arial Black":4,"Arial Hebrew":5,"Arial Narrow":6,"Arial Rounded MT Bold":7,"Arial Unicode MS":8,Avenir:9,"Avenir Next":10,"Avenir Next Condensed":11,Bahnschrift:12,Baskerville:13,"Big Caslon":14,"Bodoni 72":15,"Bodoni 72 Oldstyle":16,"Bodoni 72 Smallcaps":17,"Bradley Hand":18,"Brush Script MT":19,Calibri:20,Cambria:21,"Cambria Math":22,Candara:23,Chalkboard:24,"Chalkboard SE":25,Chalkduster:26,Charter:27,Cochin:28,"Comic Sans MS":29,Consolas:30,Constantia:31,Corbel:32,Copperplate:33,Courier:34,"Courier New":35,Didot:36,"DIN Alternate":37,"DIN Condensed":38,Ebrima:39,"Franklin Gothic Medium":40,Futura:41,Gabriola:42,Gadugi:43,Geneva:44,Georgia:45,"Gill Sans":46,Helvetica:47,"Helvetica Neue":48,Herculanum:49,"Hoefler Text":50,"HoloLens MDL2 Assets":51,Impact:52,"Ink Free":53,"Javanese Text":54,"Leelawadee UI":55,"Lucida Console":56,"LUCIDA GRANDE":57,"Lucida Grande":58,"Lucida Sans Unicode":59,Luminari:60,"Malgun Gothic":61,"Marker Felt":62,Marlett:63,Menlo:64,"Microsoft Himalaya":65,"Microsoft JhengHei":66,"Microsoft New Tai Lue":67,"Microsoft PhagsPa":68,"Microsoft Sans Serif":69,"Microsoft Tai Le":70,"Microsoft YaHei":71,"Microsoft Yi Baiti":72,"MingLiU-ExtB":73,Monaco:74,"Mongolian Baiti":75,"MS Gothic":76,"MV Boli":77,"Myanmar Text":78,"Nirmala UI":79,Noteworthy:80,Optima:81,Palatino:82,"Palatino Linotype":83,Papyrus:84,Phosphate:85,Rockwell:86,"Savoye LET":87,"Segoe MDL2 Assets":88,"Segoe Print":89,"Segoe Script":90,"Segoe UI":91,"Segoe UI Historic":92,"Segoe UI Emoji":93,"Segoe UI Symbol":94,SignPainter:95,SimSun:96,Sitka:97,Skia:98,"Snell Roundhand":99,Sylfaen:100,Symbol:101,Tahoma:102,Times:103,"Times New Roman":104,Trattatello:105,"Trebuchet MS":106,Verdana:107,Webdings:108,Wingdings:109,"Wingdings 2":110,"Wingdings 3":111,"Yu Gothic":112,Zapfino:113},R={appVersion:1,numOfCores:2,webrtc:3,touchSupport:4,webgl:5,timezone:6,plugins:7,localStorage:8,incognito:9,language:10,appCodeName:11,battery:12,platform:13,javascripts:14,automation:15,pixelDepth:16,screenOrientation:17,availableScreenResolution:18,timezoneOffset:19,oscpu:20,fonts:21,vendor:22,sessionStorage:23,webdriver:24,audio:25,openDatabase:26,screenResolution:27,vendorSub:28,enumerateDevices:29,product:30,canvas:31,appName:32,mimetyps:33,cpuClass:34,indexedDb:35,userAgent:36,deviceMemory:37,productSub:38,addBehavior:39,signals:40,networkInfo:41,location:42,colorDepth:43,FPDataCookie:44,tsSeed:45,errors:46,pixelRatio:47},N={error:1,latency:2,is_device_emulator:3,android_id:4,gsf_id:5,total_memory:6,cpu_info:7,cpu_cores:8,cpu_min_freq:9,cpu_max_freq:10,total_internal_storage:11,advertising_id:12,is_device_rooted:13,supports_multiple_users:14,user_serial_number:15,app_directory_path:16,app_package_name:17,os_arch:18,os_name:19,app_label:20,app_version_name:21,app_version_code:22,system_up_time:23,build_board:24,build_boot_loader:25,build_brand:26,build_device_name:27,build_display:28,build_hardware:29,build_host:30,build_id:31,build_manufacturer:32,build_model:33,build_product:34,build_radio_version:35,build_type:36,build_tags:37,build_supported_abis:38,build_time:39,build_sdk_version:40,build_code_name:41,screen_res:42,screen_density:43,screen_xdpi:44,screen_ydpi:45,screen_dpi:46,screen_category:47,screen_refresh_rate:48,screen_rotation:49,available_memory:50,is_low_memory:51,available_internal_storage:52,is_external_storage_mounted:53,data_network_type:54,is_device_connected:55,is_device_roaming:56,is_wifi_enabled:57,wifi_line_speed:58,wifi_signal_strength:59,ipv4:60,bluetooth_state:61,sim_state:62,phone_type:63,network_operator:64,network_country_iso:65,sim_operator_name:66,sim_country_iso:67,cellular_data_state:68,sim_configured_count:69,battery_level:70,is_battery_charging:71,battery_charger_type:72,battery_temperature:73,battery_technology:74,battery_voltage:75,default_phone_ringtone:76,default_notification_ringtone:77,default_alarm_ringtone:78,launcher_package_name:79,launcher_package_name_list:80,default_browser_package_name:81,browser_packages_list:82,default_sms_package_name:83,sms_package_list:84,default_call_package_name:85,call_package_list:86,default_input_package_name:87,input_package_list:88,default_input_language:89,time_zone_offset:90,default_font_size:91,is_live_wallpaper_present:92,installer_package_name:93,is_accelerometer_rotation_enabled:94,is_adb_enabled:95,is_airplane_mode_enabled:96,is_auto_time_enabled:97,is_auto_time_zone_enabled:98,is_bluetooth_on:99,is_device_provisioned:100,is_dev_setting_enabled:101,is_dial_pad_enabled:102,end_call_behavior:103,font_scaling:104,is_haptic_feedback_enabled:105,ringer_mode:106,screen_brightness:107,is_auto_screen_brightness_enabled:108,screen_off_timeout:109,is_sound_effects_enabled:110,is_stay_on_enabled:111,is_auto_caps_enabled:112,is_auto_punctuate_enabled:113,is_auto_replaced_enabled:114,is_show_password_enabled:115,is_24_hours_clock_format:116,is_vibrate_on:117,text_to_speech_engine_rate:118,text_to_speech_engine_pitch:119,is_device_secure:120,gyroscope_name:121,gyroscope_vendor:122,gyroscope_power:123,gyroscope_version:124,android_gyroscope_reading:125,accelerometer_name:126,accelerometer_vendor:127,accelerometer_power:128,accelerometer_version:129,android_accelerometer_reading:130,device_id:131},O={sessionId:132},D={is_multi_tasking_supported:1,screen_native_scale:2,preferred_languages:3,device_system_name:4,is_mono_audio_enabled:5,error:6,current_locale:7,is_battery_charging:8,device_orientation:9,process_globally_unique_string:10,is_generating_device_orientation_notifcation:11,screen_supports_focus:12,advertising_id:13,active_processor_count:14,auto_updating_current_locale:15,memory_usage:16,ipv6:17,is_reduce_transparency_enabled:18,data_network_type:19,device_model_name:20,sim_network_type:21,process_name:22,app_version_name:23,is_device_rooted:24,is_speak_screen_enabled:25,device_system_version:26,is_assistive_touch_running:27,battery_level:28,is_reduce_motion_enabled:29,is_switch_control_running:30,kernel_sys_name:31,current_screen_size_pixels:32,device_id:33,screen_size_in_points:34,is_on_off_switch_labels_enabled:35,passcode_biometry_enabled:36,kernel_os_release_name:37,is_grayscale_enabled:38,process_os_version_string:39,screen_brightness:40,is_invert_colors_enabled:41,is_device_connected:42,total_memory:43,ios_cpu_usage:44,is_speak_selection_enabled:45,is_device_emulator:46,is_shake_to_undo_enabled:47,is_darker_system_colors_enabled:48,processor_count:49,current_time_zone:50,is_valid_interface_orientation:51,can_send_email:52,ipv4:53,is_bold_text_enabled:54,is_closed_captioning_enabled:55,latency:56,app_version_code:57,screen_pixel_aspect_ratio:58,is_low_power_enabled:59,auto_updating_current_time_zone:60,is_screen_captured:61,thermal_state:62,screen_wants_software_dimming:63,is_video_autoplay_enabled:64,is_guided_access_enabled:65,bundle_name:66,process_identifier:67,should_differentiate_without_color:68,identifier_for_vendor:69,screen_scale:70,screen_res:71,screen_refresh_rate:72,bundle_identifier:73,user_interface_idiom:74},P={features:1,errorDescription:2,sessionId:3}
function M(e){let t={}
return function(e){let t=e.webgl,n={}
if(void 0!==t&&void 0!==t.extensions&&null!==t&&null!==t.extensions){let e=t.extensions,n=[]
for(var i=0;i<e.length;i++){let t=e[i]
n[i]=w.hasOwnProperty(t)?w[t]:t}t.extensions=n}null!=t&&(Object.keys(I).forEach((e=>{let i=I[e]
n[i]=t[e]})),e.webgl=n)}(e),function(e){let t=e.touchSupport,n={}
null!=t&&(Object.keys(C).forEach((e=>{let i=C[e]
n[i]=t[e]})),e.touchSupport=n)}(e),function(e){let t=e.battery,n={}
null!=t&&(Object.keys(A).forEach((e=>{let i=A[e]
n[i]=t[e]})),e.battery=n)}(e),function(e){let t=e.screenOrientation,n={}
null!=t&&(Object.keys(S).forEach((e=>{let i=S[e]
n[i]=t[e]})),e.screenOrientation=n)}(e),function(e){let t=e.fonts,n={}
if(void 0!==t&&void 0!==t.lists&&null!==t&&null!==t.lists){let e=t.lists,n=[]
for(var i=0;i<e.length;i++){let t=e[i]
n[i]=x.hasOwnProperty(t)?x[t]:t}t.lists=n}null!=t&&(Object.keys(T).forEach((e=>{let i=T[e]
n[i]=t[e]})),e.fonts=n)}(e),function(e){let t=e.enumerateDevices,n=[]
if(null!=t){for(var i=0;i<t.length;i++){let e=t[i],r={}
Object.keys(k).forEach((t=>{let n=k[t]
r[n]=e[t]})),n[i]=r}e.enumerateDevices=n}}(e),function(e){let t=e.canvas,n={}
null!=t&&(Object.keys(_).forEach((e=>{let i=_[e]
n[i]=t[e]})),e.canvas=n)}(e),function(e){let t=e.mimetyps,n=[]
if(null!=t){for(var i=0;i<t.length;i++){let e=t[i],r={}
Object.keys(E).forEach((t=>{let n=E[t]
r[n]=e[t]})),n[i]=r}e.mimetyps=n}}(e),function(e){let t=e.signals,n={}
null!=t&&(Object.keys(b).forEach((e=>{let i=b[e]
n[i]=t[e]})),e.signals=n)}(e),function(e){let t=e.networkInfo,n={}
null!=t&&(Object.keys(y).forEach((e=>{let i=y[e]
n[i]=t[e]})),e.networkInfo=n)}(e),function(e){let t=e.location,n={}
null!=t&&(Object.keys(v).forEach((e=>{let i=v[e]
n[i]=t[e]})),e.location=n)}(e),function(e){let t=e.FPDataCookie,n={}
null!=t&&(Object.keys(m).forEach((e=>{let i=m[e]
n[i]=t[e]})),e.FPDataCookie=n)}(e),Object.keys(R).forEach((n=>{let i=R[n]
t[i]=e[n]})),t}function j(e){let t={}
Object.keys(O).forEach((n=>{let i=O[n]
t[i]=e[n]}))
let n=e.features
return null!=n&&Object.keys(N).forEach((e=>{let i=N[e]
t[i]=n[e]})),t}function L(e){let t={},n=e.DFPPayload
if(null!=n){let e=n.features,i={}
null!=e&&(Object.keys(D).forEach((t=>{let n=D[t]
i[n]=e[t]})),n.features=i)
let r={}
Object.keys(P).forEach((e=>{let t=P[e]
r[t]=n[e]})),t.DFPPayload=r}return t}function U(e){return g.compressToBase64(e)}},75023:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{Client:()=>ae,EXTENSION_FIELDS:()=>le,Task:()=>z,closeClient:()=>ce,getClient:()=>se})
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){if("object"!=typeof e||null===e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=typeof n)return n
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){if("object"!=typeof e)throw new Error("You must pass either an array or an object to the encode function.")}(t),C(t,!1)}function A(e){const t=JSON.parse(JSON.stringify(e))
return function(e){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]}`:`${I(e)}=${C(t[e],!1)}`)).join("&")}function C(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]=C(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=>`${I(n,t)}:${C(e[n],t)}`)).join(",")})`}(e,t):I(e,t)}function I(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
return""===e?"''":t&&"string"==typeof e&&T.test(e)?e.replace(k,escape):t?e:encodeURIComponent(e).replace(k,escape)}const w="application/x-www-form-urlencoded"
function x(e){if(!0===e.forceQueryTunnel){const{path:t,queryString:n}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:""
const t=_.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: "+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}const R=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?"),N=/^fs_/
function O(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(N,""),id:t[2]}}function D(e){return(e=>null!=e)(e.error)}const P=(e,t,n)=>n.indexOf(e)===t,M=e=>t=>!e.includes(t),j=(e,t,n)=>a(e)?t:Math.max(n,e),L=(e,t)=>`${e}${e.endsWith("/")||t.startsWith("/")?"":"/"}${t}`,U=e=>5===Math.floor(e/100),F=e=>L(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)}?${A({ids:a})}`,body:{entities:s},headers:n}},G=(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)}?${A({ids:r})}`,body:{entities:o},headers:n}}
var H,V,q,K,W
class Y{constructor(e,t,n){var i=this
H.add(this),this._serverClockTimeDiff=0,this._lastTimeClockSynced=0,this._recentServerClockTimeDiffs=[],V.set(this,(e=>this.connectionId?b(this,H,"m",K).call(this,G(this.connectionId,this._endpoint,this._requestHeaders,e)):Promise.reject({status:900,message:"API: subscribe cannot be performed because of missing connectionID"}))),q.set(this,(e=>null===this.connectionId?Promise.reject({status:900,message:"API: unsubscribe cannot be performed because of missing connectionID"}):b(this,H,"m",K).call(this,((e,t,n,i)=>f(f({},G(e,t,n,i)),{},{method:"DELETE"}))(this.connectionId,this._endpoint,this._requestHeaders,e)))),W.set(this,((e,t)=>{const n=e.errors??{},i=o(n).filter((t=>!U(e.errors[t].status))),r=o(n).filter((t=>U(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=>!U(e.errors[t].status))),r=o(n).filter((t=>U(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,L(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(((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,L(c,"realtime/realtimeFrontendClientConnectivityTracking")}?${A({action:"sendHeartbeat"})}`,body:s,headers:n}})(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,W,"f").call(this,n,e))})).catch((r=>{const{status:o}=r
412!==o&&U(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,q,"f").call(this,e).then((t=>{const i=b(this,W,"f").call(this,t,e)
n(i)})).catch((r=>{const{status:o}=r
412!==o&&U(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&&U(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&&U(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=x(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,q=new WeakMap,W=new WeakMap,H=new WeakSet,K=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=x(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 z{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 X=()=>(0,u.generateRfc4122UUID)()
class Q{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="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ee={exports:{}}
J=ee,$=ee.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 _(e){this._headers=e}function k(){}function T(){this._listeners=Object.create(null)}function S(e){t((function(){throw e}),0)}function A(e){this.type=e,this.target=void 0}function C(e,t){A.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function I(e,t){A.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function w(e,t){A.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},_.prototype.get=function(e){return this._headers.get(e)},k.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 _(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}},C.prototype=Object.create(A.prototype),I.prototype=Object.create(A.prototype),w.prototype=Object.create(A.prototype)
var x=/^text\/event\-stream(;.*)?$/i,R=function(e,t){var n=null==e?t:parseInt(e,10)
return n!=n&&(n=t),N(n)},N=function(e){return Math.min(Math.max(e,1e3),18e6)},O=function(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){S(e)}}
function D(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=N(1e3),u=R(a.heartbeatTimeout,45e3),d="",f=l,p=!1,h=0,g=a.headers||{},m=a.Transport,y=P&&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 k:new E,_=void 0,T=0,S=-1,A="",D="",M="",j="",L=0,U=0,F=0,B=function(t,n,i,r){if(0===S)if(200===t&&null!=i&&x.test(i)){S=1,p=Date.now(),f=l,e.readyState=1
var o=new I("open",{status:t,statusText:n,headers:r})
e.dispatchEvent(o),O(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.",V(),o=new I("error",{status:t,statusText:n,headers:r}),e.dispatchEvent(o),O(e,e.onerror,o),console.error(a)}},G=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?j:"")+i.slice(0,r+1)
j=(-1===r?j:"")+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===L&&c==="\n".charCodeAt(0))L=0
else if(-1===L&&(L=0),c==="\r".charCodeAt(0)||c==="\n".charCodeAt(0)){if(0!==L){1===L&&(F=s+1)
var g=a.slice(U,F-1),m=a.slice(F+(F<s&&a.charCodeAt(F)===" ".charCodeAt(0)?1:0),s)
"data"===g?(A+="\n",A+=m):"id"===g?D=m:"event"===g?M=m:"retry"===g?(l=R(m,l),f=l):"heartbeatTimeout"===g&&(u=R(m,u),0!==T&&(n(T),T=t((function(){q()}),u)))}if(0===L){if(""!==A){d=D,""===M&&(M="message")
var v=new C(M,{data:A.slice(1),lastEventId:D})
if(e.dispatchEvent(v),"open"===M?O(e,e.onopen,v):"message"===M?O(e,e.onmessage,v):"error"===M&&O(e,e.onerror,v),2===S)return}A="",M=""}L=c==="\r".charCodeAt(0)?-1:0}else 0===L&&(U=s,L=1),1===L?c===":".charCodeAt(0)&&(F=s+1,L=2):2===L&&(L=3)}}},H=function(i){if(1===S||0===S){S=-1,0!==T&&(n(T),T=0),T=t((function(){q()}),f),f=N(Math.min(16*l,2*f)),e.readyState=0
var r=new w("error",{error:i})
e.dispatchEvent(r),O(e,e.onerror,r),null!=i&&console.error(i)}},V=function(){S=2,null!=_&&(_.abort(),_=void 0),0!==T&&(n(T),T=0),e.readyState=2},q=function(){if(T=0,-1===S){p=!1,h=0,T=t((function(){q()}),u),S=0,A="",M="",D=d,j="",U=0,F=0,L=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{_=b.open(y,B,G,H,n,r,a)}catch(e){throw V(),e}}else if(p||null==_){var f=Math.max((p||Date.now())+u-Date.now(),1)
p=!1,T=t((function(){q()}),f)}else H(new Error("No activity within "+u+" milliseconds. "+(0===S?"No response received.":h+" chars received.")+" Reconnecting.")),null!=_&&(_.abort(),_=void 0)}
e.url=o,e.readyState=0,e.withCredentials=s,e.headers=g,e._close=V,q()}(this,e,o)}var P=null!=l&&null!=u&&"body"in u.prototype
D.prototype=Object.create(T.prototype),D.prototype.CONNECTING=0,D.prototype.OPEN=1,D.prototype.CLOSED=2,D.prototype.close=function(){this._close()},D.CONNECTING=0,D.OPEN=1,D.CLOSED=2,D.prototype.withCredentials=void 0
var M,j=a
null==i||null!=a&&"withCredentials"in a.prototype||(j=D),M=function(e){e.EventSourcePolyfill=D,e.NativeEventSource=a,e.EventSource=j}($),void 0!==M&&(J.exports=M)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:Z:globalThis)
var te,ne=(te=ee.exports)&&te.__esModule&&Object.prototype.hasOwnProperty.call(te,"default")?te.default:te
const ie={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:[]},re=m()?window.EventSource:void 0
function oe(e){"undefined"!=typeof globalThis?globalThis.EventSource=e:window.EventSource=e}class ae{static getOrUpdateClient(e){return ae.singleton?ae.singleton.updateOptions(e):ae.create(e),ae.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(oe(e.eventSource??ne.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),ae.singleton=new ae(e),ae.singleton}static close(){var e,t
let n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0]
if(!ae.singleton||!m())return Promise.resolve(!1)
let r=Promise.resolve()
const o=ae.singleton
return ae._connectivityTrackingTimer&&o&&(clearInterval(ae._connectivityTrackingTimer),ae._connectivityTrackingTimer=0,n&&(r=o._api.trackActiveConnection(o.sessionId,"FINAL_BEAT"))),null!==(e=o._experimentalValues)&&void 0!==e&&e.enableCloseConnectionOnPageHide&&o._boundPageHideHandler&&window.removeEventListener("pagehide",o._boundPageHideHandler),!(null!==(t=o._experimentalValues)&&void 0!==t&&t.enableCloseConnectionOnPageHide)&&o._boundUnloadHandler&&window.removeEventListener("beforeunload",o._boundUnloadHandler),window.removeEventListener("offline",o.handleLoseInternetConnection.bind(o)),window.removeEventListener("online",o.handleGainInternetConnection.bind(o)),o.disconnectAndClose(),o._autoReconnect="FAIL-ON-ERROR",o._realtimeTracking=null,o._contextUrns=[],ie.contextUrns=[],ae.singleton=null,m()&&re&&oe(re),i(r)}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 ae._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(P).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(M(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",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
return"RETRY"!==this._autoReconnect||t?(this._explicitlyConnected=!0,this._autoReconnect=e,this._internalConnect(e)):Promise.resolve()}_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(D(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._boundPageHideHandler=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=O(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(),D(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=()=>{var e
null!==(e=this._experimentalValues)&&void 0!==e&&e.enableCloseConnectionOnPageHide?(this._boundPageHideHandler&&window.removeEventListener("pagehide",this._boundPageHideHandler),this._boundPageHideHandler=this.pageHideHandler.bind(this),window.addEventListener("pagehide",this._boundPageHideHandler)):(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({},ie),e),this._options.connectHeaders["x-li-realtime-session"]=this.sessionId,this._options.sessionHeartbeat=j(this._options.sessionHeartbeat,null,6e4),this._options.reconnectGapThreshold=Math.max(0,this._options.reconnectGapThreshold??ie.reconnectGapThreshold),this._options.heartbeatGapThreshold=Math.max(2*this._options.heartbeatPollInterval,this.options.heartbeatGapThreshold),this._reconnectDelay=(()=>{let e=0
return()=>{e++
const t=e-Math.max(1,0)
if(t<=0)return 0
const n=4*Math.random()
return 1===t?1e3*(5+n):1e3*(10+n)}})(),this._api=new Y(this._options.domain,this._options.connectHeaders,this._options.mpInfo),this._heartBeatMonitor=new z(this._heartbeatCheck.bind(this)),this._reconnectTask=new z(this._reconnectHandler.bind(this)),this._lastTimeConnectionLost=null,this._realtimeChannelDisconnectedTime=null,this._options.tracking&&(this._realtimeTracking=new Q(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(X()),this.startConnectivityTracker()}setNewSessionId(e){ae._realtimeSessionId=e,this._options.connectHeaders["x-li-realtime-session"]=this.sessionId,this._api.setSessionId(this.sessionId)}updateOptions(e){if(ae.singleton){const t=this.options.sessionHeartbeat
this._options=f(f(f({},ae.singleton._options),c(e)),{},{tracking:ae.singleton._options.tracking,experimental:f(f({},ae.singleton._options.experimental),e.experimental),sessionHeartbeat:j(e.sessionHeartbeat,this.options.sessionHeartbeat,6e4)}),this._api.setMpInfo(this._options.mpInfo),t!==this.options.sessionHeartbeat&&this.startConnectivityTracker()}}startConnectivityTracker(){let e=!0
ae._connectivityTrackingTimer&&(clearInterval(ae._connectivityTrackingTimer),ae._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)}))),ae._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(){ae._connectivityTrackingTimer&&(clearInterval(ae._connectivityTrackingTimer),ae._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(X())}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=O(e)
return!t||!i.includes(t.type)})
var i
const r=M(t)
return(e instanceof Array?e:[e]).filter(P).filter(n).filter(r)}filterSubscriptionListForAuthTopics(e,t,n){const i=e instanceof Array?e:[e],r=n[t]
return r?i.filter(P).filter(M(r)):i.filter(P)}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(M(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(){ae.close()}pageHideHandler(e){e.persisted||ae.close()}}function se(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
return ae.getOrUpdateClient(e)}function ce(){return ae.close()}ae._realtimeSessionId=X(),ae._connectivityTrackingTimer=0
const le={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:()=>Hn,BrowserTransporter:()=>Gn,ClientBreadcrumb:()=>qn,ClientBreadcrumbType:()=>Vn,ErrorType:()=>Hr,FALLBACK_PAGEKEY:()=>M,FlushMode:()=>Qr,GENERIC_TRACER_LIX_PATTERN:()=>_i,GenericClientBreadcrumb:()=>Wn,Heap:()=>Zt,HttpProtocolType:()=>ci,JetCore:()=>si,OTEL_JET_ORIGIN_TAG:()=>ii,ParsedResponseHeaders:()=>Kr,PerfMeasurement:()=>eo,RESPONSE_HEADERS:()=>qr,ResourceProgressOriginalMetricsType:()=>ui,ResourceProgressType:()=>li,ResourceRequestType:()=>di,RumCore:()=>Jr,TrackingCore:()=>ni,_eventEmitter:()=>ft,allPromisesSettled:()=>qt,arrayFromSet:()=>Kt,castBreadcrumbIntoType:()=>zn,copyContext:()=>Lt,dedupeTrackingScopesAndExtractBreadcrumbs:()=>Qn,deepClone:()=>$t,deleteIDB:()=>Wt,determinErrorType:()=>Wr,emitJETError:()=>Qt,extractBreadcrumbInTrackingScope:()=>Xn,extractTransferInfo:()=>Jn,extractVersionFromConfig:()=>Vt,generateBase64UUID:()=>wt,generateByteUUID:()=>St,generateControlUrn:()=>Pt,generateNodeProcessJetPayload:()=>ri,generatePageInstance:()=>Dt,generatePageUrn:()=>Mt,generateResourceResponseContext:()=>Xr,generateRfc4122UUID:()=>Rt,generateTrackingId:()=>xt,generateUUID:()=>kt,getBase64FromBase64Url:()=>tn,getBsCookieInfo:()=>Jt,getDynamicTransporterSupportStatusFromLixValue:()=>on,getValidTransporterKeys:()=>nn,isBase64TrackingId:()=>Ct,isFlushOnCloseBrowserTabEnabled:()=>Xt,isObjectNonEmpty:()=>an,operateSequenceNumberViaIDB:()=>Yt,parseStringPageInstance:()=>jt,parseTrackingId:()=>Ot,queryStringToContext:()=>Ht,queryStringToControlUrn:()=>Gt,resolveCNDomain:()=>en,sanitizeURL:()=>sn,serializePageInstance:()=>Ut,shouldUseXHR:()=>zt,splitTrackingScopesByTransporters:()=>rn,stringifyTrackingId:()=>Nt,uint8ToBase64:()=>It,uint8ToByteString:()=>Tt})
var i,r=["transporterKeys"],o=["breadcrumb"],a=["$type"],s=["requestStart"],c=["requestTime","viewNames","requestType","requestTag"],l=["requestStart"],u=["requestStart"],d=["requestTime","viewNames","requestType"]
function f(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 p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
t%2?f(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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,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)||C(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,t,n){return t=y(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 m(e)}(e,v()?Reflect.construct(t,n||[],y(e).constructor):t.apply(e,n))}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return e}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(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&&E(e,t)}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function _(){_=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:I(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}}}t.wrap=u
var f="suspendedStart",p="suspendedYield",h="executing",g="completed",m={}
function v(){}function y(){}function b(){}var E={}
l(E,a,(function(){return this}))
var k=Object.getPrototypeOf,T=k&&k(k(D([])))
T&&T!==n&&i.call(T,a)&&(E=T)
var S=b.prototype=v.prototype=Object.create(E)
function A(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=d(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 I(t,n,i){var r=f
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=x(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===f)throw r=g,i.arg
i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg)
r=h
var l=d(t,n,i)
if("normal"===l.type){if(r=i.done?g:p,l.arg===m)continue
return{value:l.arg,done:i.done}}"throw"===l.type&&(r=g,i.method="throw",i.arg=l.arg)}}}function x(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,x(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=d(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 R(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 N(e){var t=e.completion||{}
t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,this),this.reset(!0)}function D(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(S,"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(S),e},t.awrap=function(e){return{__await:e}},A(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()}))},A(S),l(S,c,"Generator"),l(S,a,(function(){return this})),l(S,"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=D,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(N),!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),N(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
N(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:D(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),m}},t}function k(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 T(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 S(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(!n){if(Array.isArray(e)||(n=C(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 A(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||C(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 C(e,t){if(e){if("string"==typeof e)return I(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)?I(e,t):void 0}}function I(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 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,D(i.key),i)}}function N(e,t,n){return t&&R(e.prototype,t),n&&R(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function O(e,t,n){return(t=D(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(e){var t=function(e){if("object"!=w(e)||!e)return e
var t=e[Symbol.toPrimitive]
if(void 0!==t){var n=t.call(e,"string")
if("object"!=w(n))return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e)
return"symbol"==w(t)?t:String(t)}var P,M="unknown",j=new Uint8Array(16)
function L(){if(!P&&!(P="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 P(j)}var U=/^(?:[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 F(e){return"string"==typeof e&&U.test(e)}for(var B=[],G=0;G<256;++G)B.push((G+256).toString(16).slice(1))
function H(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0
return(B[e[t+0]]+B[e[t+1]]+B[e[t+2]]+B[e[t+3]]+"-"+B[e[t+4]]+B[e[t+5]]+"-"+B[e[t+6]]+B[e[t+7]]+"-"+B[e[t+8]]+B[e[t+9]]+"-"+B[e[t+10]]+B[e[t+11]]+B[e[t+12]]+B[e[t+13]]+B[e[t+14]]+B[e[t+15]]).toLowerCase()}function V(e){if(!F(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 q(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=V(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 H(s)}try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function K(e){return 14+(e+64>>>9<<4)+1}function W(e,t){var n=(65535&e)+(65535&t)
return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function Y(e,t,n,i,r,o){return W((a=W(W(t,e),W(i,o)))<<(s=r)|a>>>32-s,n)
var a,s}function z(e,t,n,i,r,o,a){return Y(t&n|~t&i,e,t,r,o,a)}function X(e,t,n,i,r,o,a){return Y(t&i|n&~i,e,t,r,o,a)}function Q(e,t,n,i,r,o,a){return Y(t^n^i,e,t,r,o,a)}function J(e,t,n,i,r,o,a){return Y(n^(t|~i),e,t,r,o,a)}q("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[K(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=z(n,i,r,o,e[a],7,-680876936),o=z(o,n,i,r,e[a+1],12,-389564586),r=z(r,o,n,i,e[a+2],17,606105819),i=z(i,r,o,n,e[a+3],22,-1044525330),n=z(n,i,r,o,e[a+4],7,-176418897),o=z(o,n,i,r,e[a+5],12,1200080426),r=z(r,o,n,i,e[a+6],17,-1473231341),i=z(i,r,o,n,e[a+7],22,-45705983),n=z(n,i,r,o,e[a+8],7,1770035416),o=z(o,n,i,r,e[a+9],12,-1958414417),r=z(r,o,n,i,e[a+10],17,-42063),i=z(i,r,o,n,e[a+11],22,-1990404162),n=z(n,i,r,o,e[a+12],7,1804603682),o=z(o,n,i,r,e[a+13],12,-40341101),r=z(r,o,n,i,e[a+14],17,-1502002290),n=X(n,i=z(i,r,o,n,e[a+15],22,1236535329),r,o,e[a+1],5,-165796510),o=X(o,n,i,r,e[a+6],9,-1069501632),r=X(r,o,n,i,e[a+11],14,643717713),i=X(i,r,o,n,e[a],20,-373897302),n=X(n,i,r,o,e[a+5],5,-701558691),o=X(o,n,i,r,e[a+10],9,38016083),r=X(r,o,n,i,e[a+15],14,-660478335),i=X(i,r,o,n,e[a+4],20,-405537848),n=X(n,i,r,o,e[a+9],5,568446438),o=X(o,n,i,r,e[a+14],9,-1019803690),r=X(r,o,n,i,e[a+3],14,-187363961),i=X(i,r,o,n,e[a+8],20,1163531501),n=X(n,i,r,o,e[a+13],5,-1444681467),o=X(o,n,i,r,e[a+2],9,-51403784),r=X(r,o,n,i,e[a+7],14,1735328473),n=Q(n,i=X(i,r,o,n,e[a+12],20,-1926607734),r,o,e[a+5],4,-378558),o=Q(o,n,i,r,e[a+8],11,-2022574463),r=Q(r,o,n,i,e[a+11],16,1839030562),i=Q(i,r,o,n,e[a+14],23,-35309556),n=Q(n,i,r,o,e[a+1],4,-1530992060),o=Q(o,n,i,r,e[a+4],11,1272893353),r=Q(r,o,n,i,e[a+7],16,-155497632),i=Q(i,r,o,n,e[a+10],23,-1094730640),n=Q(n,i,r,o,e[a+13],4,681279174),o=Q(o,n,i,r,e[a],11,-358537222),r=Q(r,o,n,i,e[a+3],16,-722521979),i=Q(i,r,o,n,e[a+6],23,76029189),n=Q(n,i,r,o,e[a+9],4,-640364487),o=Q(o,n,i,r,e[a+12],11,-421815835),r=Q(r,o,n,i,e[a+15],16,530742520),n=J(n,i=Q(i,r,o,n,e[a+2],23,-995338651),r,o,e[a],6,-198630844),o=J(o,n,i,r,e[a+7],10,1126891415),r=J(r,o,n,i,e[a+14],15,-1416354905),i=J(i,r,o,n,e[a+5],21,-57434055),n=J(n,i,r,o,e[a+12],6,1700485571),o=J(o,n,i,r,e[a+3],10,-1894986606),r=J(r,o,n,i,e[a+10],15,-1051523),i=J(i,r,o,n,e[a+1],21,-2054922799),n=J(n,i,r,o,e[a+8],6,1873313359),o=J(o,n,i,r,e[a+15],10,-30611744),r=J(r,o,n,i,e[a+6],15,-1560198380),i=J(i,r,o,n,e[a+13],21,1309151649),n=J(n,i,r,o,e[a+4],6,-145523070),o=J(o,n,i,r,e[a+11],10,-1120210379),r=J(r,o,n,i,e[a+2],15,718787259),i=J(i,r,o,n,e[a+9],21,-343485551),n=W(n,s),i=W(i,c),r=W(r,l),o=W(o,u)}return[n,i,r,o]}(function(e){if(0===e.length)return[]
for(var t=8*e.length,n=new Uint32Array(K(t)),i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32
return n}(e),8*e.length))}))
var $={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)}
function Z(e,t,n){if($.randomUUID&&!t&&!e)return $.randomUUID()
var i=(e=e||{}).random||(e.rng||L)()
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 H(i)}function ee(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 te(e,t){return e<<t|e>>>32-t}q("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]=te(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 _=Math.floor(E/20),k=te(g,5)+ee(_,m,v,y)+b+t[_]+f[E]>>>0
b=y,y=v,v=te(m,30)>>>0,m=g,g=k}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 ne=Uint8Array,ie=Uint16Array,re=Uint32Array,oe=new ne([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]),ae=new ne([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]),se=new ne([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ce=function(e,t){for(var n=new ie(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1]
var r=new re(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]},le=ce(oe,2),ue=le[0],de=le[1]
ue[28]=258,de[258]=28
for(var fe=ce(ae,0)[1],pe=new ie(32768),he=0;he<32768;++he){var ge=(43690&he)>>>1|(21845&he)<<1
ge=(61680&(ge=(52428&ge)>>>2|(13107&ge)<<2))>>>4|(3855&ge)<<4,pe[he]=((65280&ge)>>>8|(255&ge)<<8)>>>1}var me=function(e,t,n){for(var i=e.length,r=0,o=new ie(t);r<i;++r)e[r]&&++o[e[r]-1]
var a,s=new ie(t)
for(r=0;r<t;++r)s[r]=s[r-1]+o[r-1]<<1
if(n){a=new ie(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[pe[d]>>>c]=l}else for(a=new ie(i),r=0;r<i;++r)e[r]&&(a[r]=pe[s[e[r]-1]++]>>>15-e[r])
return a},ve=new ne(288)
for(he=0;he<144;++he)ve[he]=8
for(he=144;he<256;++he)ve[he]=9
for(he=256;he<280;++he)ve[he]=7
for(he=280;he<288;++he)ve[he]=8
var ye=new ne(32)
for(he=0;he<32;++he)ye[he]=5
var be=me(ve,9,0),Ee=me(ye,5,0),_e=function(e){return(e+7)/8|0},ke=function(e,t,n){n<<=7&t
var i=t/8|0
e[i]|=n,e[i+1]|=n>>>8},Te=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},Se=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[Ne,0]
if(1==r){var a=new ne(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 ie(f+1),h=Ae(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 ne(p),h]},Ae=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},Ce=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new ie(++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]},Ie=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=_e(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){ke(t,u++,n),++r[256]
for(var d=Se(r,15),f=d[0],p=d[1],h=Se(o,15),g=h[0],m=h[1],v=Ce(f),y=v[0],b=v[1],E=Ce(g),_=E[0],k=E[1],T=new ie(19),S=0;S<y.length;++S)T[31&y[S]]++
for(S=0;S<_.length;++S)T[31&_[S]]++
for(var A=Se(T,7),C=A[0],I=A[1],w=19;w>4&&!C[se[w-1]];--w);var x,R,N,O,D=l+5<<3,P=Ie(r,ve)+Ie(o,ye)+a,M=Ie(r,f)+Ie(o,g)+a+14+3*w+Ie(T,C)+(2*T[16]+3*T[17]+7*T[18])
if(D<=P&&D<=M)return we(t,u,e.subarray(c,c+l))
if(ke(t,u,1+(M<P)),u+=2,M<P){x=me(f,p,0),R=f,N=me(g,m,0),O=g
var j=me(C,I,0)
for(ke(t,u,b-257),ke(t,u+5,k-1),ke(t,u+10,w-4),u+=14,S=0;S<w;++S)ke(t,u+3*S,C[se[S]])
u+=3*w
for(var L=[y,_],U=0;U<2;++U){var F=L[U]
for(S=0;S<F.length;++S){var B=31&F[S]
ke(t,u,j[B]),u+=C[B],B>15&&(ke(t,u,F[S]>>>5&127),u+=F[S]>>>12)}}}else x=be,R=ve,N=Ee,O=ye
for(S=0;S<s;++S)if(i[S]>255){B=i[S]>>>18&31,Te(t,u,x[B+257]),u+=R[B+257],B>7&&(ke(t,u,i[S]>>>23&31),u+=oe[B])
var G=31&i[S]
Te(t,u,N[G]),u+=O[G],G>3&&(Te(t,u,i[S]>>>5&8191),u+=ae[G])}else Te(t,u,x[i[S]]),u+=R[i[S]]
return Te(t,u,x[256]),u+R[256]},Re=new re([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ne=new ne(0),Oe=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}(),De=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},Pe="undefined"!=typeof TextDecoder&&new TextDecoder
try{Pe.decode(Ne,{stream:!0})}catch(ir){}function Me(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function je(){try{return Me()&&"keepalive"in new Request("")}catch(e){return!1}}function Le(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=Oe[255&n^t[i]]^n>>>8
e=n},d:function(){return~e}}}(),i=e.length
n.p(e)
var r=function(e,t,n){return function(e,t,n,i,r,o){var a=e.length,s=new ne(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=Re[t-1],p=f>>>13,h=8191&f,g=(1<<n)-1,m=new ie(32768),v=new ie(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},_=new re(25e3),k=new ie(288),T=new ie(32),S=0,A=0,C=(u=0,0),I=0,w=0;u<a;++u){var x=E(u),R=32767&u,N=v[x]
if(m[R]=N,v[x]=R,I<=u){var O=a-u
if((S>7e3||C>24576)&&O>423){l=xe(e,c,0,_,k,T,A,C,w,u-w,l),C=S=A=0,w=u
for(var D=0;D<286;++D)k[D]=0
for(D=0;D<30;++D)T[D]=0}var P=2,M=0,j=h,L=R-N&32767
if(O>2&&x==E(u-L))for(var U=Math.min(p,O)-1,F=Math.min(32767,u),B=Math.min(258,O);L<=F&&--j&&R!=N;){if(e[u+P]==e[u+P-L]){for(var G=0;G<B&&e[u+G]==e[u+G-L];++G);if(G>P){if(P=G,M=L,G>U)break
var H=Math.min(L,G-2),V=0
for(D=0;D<H;++D){var q=u-L+D+32768&32767,K=q-m[q]+32768&32767
K>V&&(V=K,N=q)}}}L+=(R=N)-(N=m[R])+32768&32767}if(M){_[C++]=268435456|de[P]<<18|fe[M]
var W=31&de[P],Y=31&fe[M]
A+=oe[W]+ae[Y],++k[257+W],++T[Y],I=u+P,++S}else _[C++]=e[u],++k[e[u]]}}l=xe(e,c,o,_,k,T,A,C,w,u-w,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?ie:4==e.BYTES_PER_ELEMENT?re:ne)(n-t)
return i.set(e.subarray(t,n)),i}(s,0,i+_e(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&&De(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),De(r,o-8,n.d()),De(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 Ue(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var Fe,Be="undefined"!=typeof navigator&&"sendBeacon"in navigator,Ge=je()?function(e,t,n,i){return new Promise((function(r){fetch(e,Le({body:t,keepalive:!0,headers:n,compress:i})).catch((function(){return fetch(e,Le({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:Ue(e)})}))}))}:function(e,t,n,i){return new Promise((function(r){if(Be){var o=!1
try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void r({type:"unknown",drop:!1})}fetch(e,Le({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:Ue(e)})}))}))}
function He(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 Ve(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 qe(){return Fe||(Fe=Ve("idb-queue","default")),Fe}function Ke(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))},He(e.transaction)}var We=!1
function Ye(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]:qe()
return We?Promise.resolve():function(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]:qe()
return n("readwrite",(function(n){return n.put(e),He(n.count()).then((function(e){if(!(e<=t.maxNumber))return Ke(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]:qe())("readwrite",(function(t){return Ke(t,e)}))}(t,n)}))}(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())},He(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 Je(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 Ze=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
x(this,e),O(this,"config",void 0),O(this,"compress",void 0),O(this,"throttleControl",void 0),O(this,"withStore",void 0),O(this,"disablePersistence",!1),this.config=t,this.compress=i
var r,o,a,s=t.measureIDB
s&&performance.mark(s.createStartMark),this.withStore=Ve(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 N(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})),Ye(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),Qe((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,Je((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]:qe()
return We=!0,e("readwrite",(function(e){return e.clear(),He(e.transaction).finally((function(){return We=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,Je((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]:qe(),"next")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,Je((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]:qe(),"prev")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,Je((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){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())},He(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]:qe())}(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),Ge(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)})),Ye({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&&Je((function(){return"Replay entry failed: ".concat(t.message)}))}))}
this.config.useIdle?$e(t):t()}}}]),e}(),et=function(){function e(){x(this,e)}return N(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}(),tt=function(){function e(t,n){x(this,e),O(this,"queue",void 0),O(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new Ze(t,n.compress):new et}return N(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}()
O(tt,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB)
var nt=[502,504],it=[429,503],rt=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4]
x(this,e),O(this,"url",void 0),O(this,"body",void 0),O(this,"config",void 0),O(this,"persistenceConfig",void 0),O(this,"compress",void 0),O(this,"timestamp",void 0),O(this,"isClearQueuePending",!1),O(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 N(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 Ge(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}()
function ot(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Boolean(t.compress),i=Object.assign({attemptLimit:0,statusCodes:nt,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:it,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry)
r.headerName=r.headerName||i.headerName,e=new tt(r,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(r,o,a){var s
return Me()?new rt(r,o,i,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(s=t.persistenceRetry)||void 0===s?void 0:s.statusCodes)||it},n).send(a):Promise.resolve({type:"unknown",drop:!0})},database:e}}var at="internal:hide",st="internal:error"
function ct(e,t,n){var i=e.get(t)
i&&i.push(n)||e.set(t,[n])}function lt(e,t,n){var i=e.get(t)
i&&i.splice(i.indexOf(n)>>>0,1)}var ut,dt,ft=(ut=new Map,dt=new Map,{on:function(e,t){ct(ut,e,t)},before:function(e,t){ct(dt,e,t)},off:function(e,t){lt(ut,e,t)},offBefore:function(e,t){lt(dt,e,t)},emit:function(e,t){(dt.get(e)||[]).concat(ut.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){dt.clear(),ut.clear()}})
if("undefined"!=typeof document&&"undefined"!=typeof window){var pt=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||ft.emit(at,e)}
document.addEventListener("visibilitychange",pt),window.addEventListener("pagehide",pt)}var ht="https://www.linkedin.com/",gt="voyager.web.tracking-enable-observability",mt="enabled",vt=null
if(("undefined"==typeof crypto||!crypto.getRandomValues)&&"undefined"!=typeof require){var yt=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto")
if(yt){var bt=new Uint8Array(256),Et=bt.length
vt={rng:function(){return Et>bt.length-16&&(yt.randomFillSync(bt),Et=0),bt.slice(Et,Et+=16)}}}}var _t="object"===("undefined"==typeof crypto?"undefined":w(crypto))&&"function"==typeof crypto.randomUUID?function(){return crypto.randomUUID()}:function(){return Nt(kt())}
function kt(){return Z(vt,new Array(16),0)}function Tt(e){return A(e).map((function(e){return String.fromCharCode(e)})).join("")}function St(){return Tt(kt())}var At=/^[a-zA-Z0-9/+]+[=]+$/
function Ct(e){return"string"==typeof e&&!!e.match(At)}function It(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 wt(){return It(kt())}function xt(){return _t()}function Rt(){return _t()}function Nt(e){return function(e){var t=H(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)
if(!F(t))throw TypeError("Stringified UUID is invalid")
return t}(e)}function Ot(e){return V(e)}function Dt(e,t){return{pageUrn:Mt(e),trackingId:t||wt()}}function Pt(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function Mt(e){return"urn:li:page:".concat(e)}function jt(e){var t=decodeURIComponent(e).split(";")
if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}function Lt(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function Ut(e){return"".concat(e.pageUrn,";").concat(e.trackingId)}var Ft=new RegExp("[?&]lipi=([^&#]*)"),Bt=new RegExp("[?&]licu=([^&#]*)")
function Gt(e){var t=e.match(Bt)
return t?decodeURIComponent(t[1]):null}function Ht(e){var t=e.match(Ft)
if(t){var n=jt(t[1])
if(n)return{pageInstance:n,pageKey:""}}return null}function Vt(e){var t,n=null===(t=e.APP)||void 0===t?void 0:t.version
return(n="string"==typeof n?n.split("_").pop():"")||""}function qt(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 Kt(e){var t=[]
return e.forEach((function(e){return t.push(e)})),t}function Wt(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 Yt(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 zt(){return"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1||!Me()||"undefined"==typeof Promise}function Xt(){return!zt()&&(je()||"undefined"!=typeof navigator&&"sendBeacon"in navigator)}function Qt(e,t,n,i){var r=["core-web-tracking:".concat(e)]
null==i||i.forEach((function(e){return r.push(e)})),ft.emit(st,{tags:r,reason:t instanceof Error?t:new Error("".concat(e,": ").concat(t)),responseHeaders:n})}function Jt(e){var t,n={issueTime:0,browserId:""},i=S(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}function $t(e){var t=window.structuredClone
return t?t(e):JSON.parse(JSON.stringify(e))}var Zt=function(){function e(t){x(this,e),O(this,"heap",void 0),O(this,"comparator",void 0),this.comparator=t,this.heap=[]}return N(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=A(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 en(e,t){return/linkedin(?:-ei)?\.cn/.test(t)?e.replace(/\/\/(\S+?)\.linkedin(-ei)?\.com/,"//$1.linkedin$2.cn"):e}var tn=function(e){if(!e||0===e.length)return null
if((e=e.replace(/-/g,"+").replace(/_/g,"/")).length%4==1)return Qt("base64url-decoder",new Error("Invalid Base64URL input")),null
for(;e.length%4!=0;)e+="="
return e},nn=function(e){if(!an(e))return[]
for(var t=[],n=0,i=Object.keys(e);n<i.length;n++){var r=i[n]
"default"!==r&&t.push(r)}return t},rn=function(e,t){var n={},i=[]
if(0===e.length)return[n,e]
if(0===t.length)return[n,e]
var o,a=S(e)
try{for(a.s();!(o=a.n()).done;){var s=o.value,c=s.transporterKeys,l=T(s,r)
if(c&&c.length>0){var u,d=S(c)
try{for(d.s();!(u=d.n()).done;){var f,p=u.value
t.includes(p)?(null!==(f=n[p])&&void 0!==f||(n[p]=[]),n[p].push(l)):i.push(l)}}catch(e){d.e(e)}finally{d.f()}}else i.push(l)}}catch(e){a.e(e)}finally{a.f()}return[n,i]}
function on(e){return!(!e||"control"===e)}var an=function(e){return e&&void 0!==e&&Object.keys(e).length>0},sn=function(e,t){return(e.endsWith("/")?e:"".concat(e,"/"))+(t.startsWith("/")?t.slice(1):t)},cn="beacons"
function ln(e){return 1e3*Math.pow(2,e)}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&&je()&&t&&n}var dn=function(){function e(t){x(this,e),O(this,"host",void 0),this.host=t}return N(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 Wt(cn)
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 ln(e)}},disablePersistenceRetry:e.retryConfig.disablePersistence,persistenceRetry:{onBeforeRetry:null==r?void 0:r.onBeforeRetry,onResult:null==r?void 0:r.onResult,idbName:cn,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=ot(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){Qt("retry:idb",e)})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){Qt("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){Qt("retry:logout",e)}))}},{key:"sendPayload",value:function(e,t,n,i){var r,o=this.getRetryTreatment()
je()&&"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){Qt("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)&&(zt()?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}):Ge(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,pn=/JSESSIONID="?([^";]+)"?/,hn="",gn=0
function mn(){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?pn:i
if(!hn||Date.now()-gn>n){var o=fn&&document.cookie.match(r)
hn=o&&o[1]||"",gn=Date.now()}return hn}var vn={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"}},yn=function(){function e(t){x(this,e),O(this,"networkTransporter",void 0),O(this,"inactive",void 0),O(this,"mpName",void 0),O(this,"endpoint",void 0),O(this,"debug",void 0),this.networkTransporter=new dn(t),this.mpName=t.appId,this.inactive=t.inactive
var n=function(e){var t,n=!1
return vn.prod.pattern.test(e)?t=vn.prod.monitorEndpoint:vn.eiValidate.pattern.test(e)?(n=!0,t=vn.eiValidate.monitorEndpoint):vn.ei.pattern.test(e)?t=vn.ei.monitorEndpoint:(t=vn.ei.monitorEndpoint,n=!0),{endpoint:t,debug:n}}(t.endpoint)
this.endpoint=n.endpoint,this.debug=n.debug}return N(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":mn(),"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,A(t.failures)),e}),[]);[].concat(A(o),A(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 bn(e){return"string"==typeof e}function En(e){return bn(e)?e:e.topicName||e.eventName}function _n(e){return bn(e)?e:e.eventName}var kn,Tn,Sn=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
x(this,e),O(this,"host",void 0),O(this,"cmoTransporter",void 0),O(this,"clientMonitoringInstanceId",St()),O(this,"currentContext",{pageKey:M,pageInstance:Dt(M)}),O(this,"appState",{}),O(this,"estimatedFragmentSize",0),O(this,"fragmentSizeLimit",void 0),O(this,"activeFragmentEvent",void 0),O(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=i.cmoTransporter||new yn(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=Cn(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return N(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=S(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:_n(t),eventTopic:En(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=Cn(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=In(e.trackingId))
var t=this.currentContext.pageInstance
return t.trackingId=In(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:St(),memberId:0}}}}]),e}()
function An(e){return kn||(kn=new Sn(e)),{getCurrentInstanceId:function(){return kn.getCurrentInstanceId()},logEventGenerated:function(e){return kn.logEventGenerated(e)},logEventReadyToSend:function(e){kn.logEventReadyToSend(e)},logEventSent:function(e){kn.logEventSent(e)},logPersistedEventSent:function(e,t){kn.logEventSent(t,e)},logNetworkResponseCode:function(e){kn.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n
null===(n=kn)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,i){kn.logFailedEvent(e,t,n,i)},logPersistedFailedEvent:function(e,t,n,i,r){kn.logFailedEvent(t,n,i,r,e)},flush:function(){kn.flush()},destroy:function(){kn=void 0},isDestroyed:function(){return void 0===kn},setCurrentContext:function(e){kn.setCurrentContext(e)},updateAppState:function(e){kn.updateAppState(e)}}}function Cn(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 In(e){return Array.isArray(e)?Tt(e):16===e.length?e:Ct(e)?atob(e):Tt(Ot(e))}function wn(e){console.error("An error occurred in the `".concat(e,"` method of the callback multiplexer."))}!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"}(Tn||(Tn={}))
var xn="default",Rn="-",Nn=function(){function e(){x(this,e),O(this,"TelemetryRetryIDB","metricsBeacons"),O(this,"beaconFunc",void 0)}return N(e,[{key:"getOrCreateBeaconFunc",value:function(){return this.beaconFunc||(this.beaconFunc=this.createTelemetryMetricsBeacon()),this.beaconFunc}},{key:"getDefaultInMemoryConfig",value:function(){return{attemptLimit:4,statusCodes:[500]}}},{key:"getDefaultPersistConfig",value:function(){return{attemptLimit:3,statusCodes:[500],maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5}}},{key:"createTelemetryMetricsBeacon",value:function(){var e=this.getDefaultInMemoryConfig(),t=this.getDefaultPersistConfig()
return ot({compress:!0,inMemoryRetry:{attemptLimit:e.attemptLimit,statusCodes:e.statusCodes,calculateRetryDelay:function(e){return ln(e)}},disablePersistenceRetry:!1,persistenceRetry:{idbName:this.TelemetryRetryIDB,attemptLimit:t.attemptLimit,statusCodes:t.statusCodes,maxNumber:t.maxNumber,batchEvictionNumber:t.batchEvictionNumber,throttleWait:t.throttleWait,useIdle:!0}}).beacon}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}()
O(Nn,"instance",null)
var On=function(){function e(){x(this,e),O(this,"config",void 0),O(this,"observePath","li/observe"),this.config={endpoint:"".concat(ht,"li/observe"),platform:"Web"}}return N(e,[{key:"getConfig",value:function(){return this.config}},{key:"setAppId",value:function(e){this.config.appId=e}},{key:"setEnvironment",value:function(e){var t=e||"development"===e?"https://www.linkedin-ei.com/":ht
this.config.endpoint="".concat(t).concat(this.observePath)}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}()
O(On,"instance",void 0)
var Dn=function(){function e(){x(this,e)}return N(e,null,[{key:"buildTrackingSdkEventMetric",value:function(e,t,n){return{attributes:[{key:"EventName",value:{value:{stringValue:e.eventName}}},{key:"ViewName",value:{value:{stringValue:e.viewName}}},{key:"Platform",value:{value:{stringValue:n}}},{key:"TransportKey",value:{value:{stringValue:e.transportKey}}},{key:"AppId",value:{value:{stringValue:t}}}],metrics:{eventsReceived:e.receivedCount,eventsDropped:e.droppedCount,eventsSynced:e.syncedCount,queueLatencies:e.latencies,totalRetries:e.retries.reduce((function(e,t){return e+t}),0)},observedTimestamp:Date.now()}}}]),e}(),Pn=function(){function e(){x(this,e),O(this,"beaconFunc",void 0),O(this,"endpoint",void 0),O(this,"flushDebounceTimer",void 0),O(this,"localCounterMap",new Map),O(this,"flushPromise",Promise.resolve())
var t=On.getInstance().getConfig()
this.endpoint=t.endpoint,this.beaconFunc=Nn.getInstance().getOrCreateBeaconFunc()}return N(e,[{key:"generateId",value:function(e,t,n){return"".concat(e,"_").concat(t,"_").concat(n)}},{key:"incrementEventReceived",value:function(e,t,n){this.mutate(e,t,n,"receivedCount")}},{key:"incrementEventDropped",value:function(e,t,n,i){var r=this.calculateLatency(i)
this.mutate(e,t,n,"droppedCount",r,void 0)}},{key:"incrementEventSynced",value:function(e,t,n,i){var r=this.calculateLatency(i)
this.mutate(e,t,n,"syncedCount",r,void 0)}},{key:"calculateLatency",value:function(e){var t=void 0
return null!=e&&0!==e&&(t=Date.now()-e),t}},{key:"incrementEventRetried",value:function(e,t,n){this.mutate(e,t,n,void 0,void 0,1)}},{key:"mutate",value:function(e,t,n,i,r,o){var a=this.generateId(e,t,n),s=this.localCounterMap.get(a)
s||(s={eventName:e,viewName:t,transportKey:n,receivedCount:0,droppedCount:0,syncedCount:0,latencies:[],retries:[]},this.localCounterMap.set(a,s)),null!=i&&(s[i]+=1),void 0!==r&&s.latencies.push(r),void 0!==o&&s.retries.push(o),this.attemptToFlush()}},{key:"buildMetricsPayload",value:function(e){var t,n=[],i=On.getInstance().getConfig(),r=i.appId,o=i.platform,a=S(e)
try{for(a.s();!(t=a.n()).done;){var s=t.value
try{var c=Dn.buildTrackingSdkEventMetric(s,r,o)
n.push(c)}catch(e){console.error("Error converting metric [".concat(JSON.stringify(s),"] - [").concat("EC101","]:"),e)}}}catch(e){a.e(e)}finally{a.f()}return n}},{key:"attemptToFlush",value:function(){var e=this
this.localCounterMap.size>=20?this.flushMetrics():(this.flushDebounceTimer&&clearTimeout(this.flushDebounceTimer),this.flushDebounceTimer=setTimeout((function(){return e.flushMetrics()}),4e3))}},{key:"flushMetrics",value:function(){var e=this
this.flushPromise=this.flushPromise.then(function(e){return function(){var t=this,n=arguments
return new Promise((function(i,r){var o=e.apply(t,n)
function a(e){k(o,i,r,a,s,"next",e)}function s(e){k(o,i,r,a,s,"throw",e)}a(void 0)}))}}(_().mark((function t(){var n,i
return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e.localCounterMap.size){t.next=2
break}return t.abrupt("return")
case 2:return n=Array.from(e.localCounterMap.values()),e.localCounterMap.clear(),i=e.buildMetricsPayload(n),t.prev=5,t.next=8,e.beaconFunc(e.endpoint,JSON.stringify(i))
case 8:t.next=13
break
case 10:t.prev=10,t.t0=t.catch(5),console.error("Error - [".concat("EC102","]"))
case 13:case"end":return t.stop()}}),t,null,[[5,10]])}))))}},{key:"forceFlush",value:function(){this.flushMetrics()}}]),e}(),Mn=new Set(["GenericImpressionEvent","GenericActionEvent","GenericMultiImpressionEvent","GenericMediaStateChangeEvent"])
function jn(e){try{return JSON.parse(e||"[]").map(Ln)}catch(e){return[]}}function Ln(e){var t,n,i,r,o=e.eventInfo,a=null!==(t=null===(n=e.eventBody)||void 0===n||null===(n=n.header)||void 0===n||null===(n=n.viewHierarchy)||void 0===n?void 0:n[0])&&void 0!==t?t:Rn,s=null!==(i=null===(r=e.eventBody)||void 0===r||null===(r=r.header)||void 0===r?void 0:r.time)&&void 0!==i?i:Date.now()
return{eventName:o.eventName,viewName:a,enqueuedTime:s}}var Un=function(){function e(){x(this,e),O(this,"metricsManager",void 0),this.metricsManager=new Pn}return N(e,[{key:"onEventReceived",value:function(e){var t=this
this.executeWithTryCatch((function(){var n,i,r=_n(e.id)
if(t.isTelemetryEnabledForEventName(r)){var o=(null===(n=e.meta.header)||void 0===n||null===(n=n.viewHierarchy)||void 0===n?void 0:n[0])||Rn,a=e.meta.transporterKey||xn
null===(i=t.metricsManager)||void 0===i||i.incrementEventReceived(r,o,a)}}))}},{key:"onEventRetried",value:function(e,t,n){var i=this
this.executeWithTryCatch((function(){var r
i.isTelemetryEnabledForEventName(e)&&(null===(r=i.metricsManager)||void 0===r||r.incrementEventRetried(e,t||Rn,n||xn))}))}},{key:"onEventSynced",value:function(e,t,n,i){var r=this
this.executeWithTryCatch((function(){var o
r.isTelemetryEnabledForEventName(e)&&(null===(o=r.metricsManager)||void 0===o||o.incrementEventSynced(e,t||Rn,n||xn,i))}))}},{key:"onEventDropped",value:function(e,t,n,i){var r=this
this.executeWithTryCatch((function(){var o
r.isTelemetryEnabledForEventName(e)&&(null===(o=r.metricsManager)||void 0===o||o.incrementEventDropped(e,t||Rn,n||xn,i))}))}},{key:"forceFlush",value:function(){var e
null===(e=this.metricsManager)||void 0===e||e.forceFlush()}},{key:"onDestroy",value:function(){this.metricsManager=void 0}},{key:"onResultCallbackHook",value:function(e){var t=this
return{onIntermediateResult:function(n,i){var r=jn(i)
t.handleResult(n,r,e)},onBeforeRetry:function(n){jn(n).forEach((function(n){var i=n.eventName,r=n.viewName
t.onEventRetried(i,r,e)}))},onResult:function(n,i){var r=jn(i)
t.handleResult(n,r,e)}}}},{key:"clientMonitoringCallbackHook",value:function(e){var t=this
return{onResult:function(n,i){var r=i.map(Ln)
t.handleResult(n,r,e)}}}},{key:"handleResult",value:function(e,t,n){var i=this
200===e.statusCode||400===e.statusCode?t.forEach((function(e){var t=e.eventName,r=e.viewName,o=e.enqueuedTime
i.onEventSynced(t,r,n,o)})):e.drop&&t.forEach((function(e){var t=e.eventName,r=e.viewName,o=e.enqueuedTime
i.onEventDropped(t,r,n,o)}))}},{key:"isTelemetryEnabledForEventName",value:function(e){return!!e&&function(e){return Mn.has(e)}(e)}},{key:"executeWithTryCatch",value:function(e){try{return e()}catch(e){return}}}],[{key:"getInstance",value:function(t){if(!e.instance){var n=On.getInstance()
n.setAppId(t.appId),n.setEnvironment(t.environment),e.instance=new e}return e.instance}}]),e}()
O(Un,"instance",void 0)
var Fn=["PageViewEvent","SponsoredImpressionEvent","JobViewEvent"],Bn="PageViewEvent",Gn=function(){function e(t){var n,i,r,o,a=this
x(this,e),O(this,"host",void 0),O(this,"queue",void 0),O(this,"preContextQueue",void 0),O(this,"debounceTimer",void 0),O(this,"unloadHandlers",void 0),O(this,"maxQueueSize",void 0),O(this,"flushDebounceTime",void 0),O(this,"trackingEventListeners",[]),O(this,"onHideHandler",(function(){a.forceFlush()})),O(this,"networkTransporter",void 0),O(this,"clientMonitoringConn",void 0),O(this,"clientGlobalSequenceNumberCounter",void 0),O(this,"clientTopicLocalSequenceNumberCountersMap",{}),O(this,"isTimerRunning",void 0),O(this,"trackingEndpoint",void 0),O(this,"isEvenBatchEnabled",void 0),O(this,"transportKey",void 0),O(this,"telemetry",void 0),this.host=t,this.queue=[],this.preContextQueue=[],this.unloadHandlers=[]
var s=t.batching,c=null!==(n=null==s?void 0:s.evenBatchEnabled)&&void 0!==n&&n,l="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=en(l,null===(r=t.api)||void 0===r||null===(r=r.location)||void 0===r?void 0:r.host),this.maxQueueSize=s&&s.maxSize||1,this.flushDebounceTime=s&&s.debounceTime||0,ft.on(at,this.onHideHandler),this.networkTransporter=new dn(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=An(t)),this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1,this.isEvenBatchEnabled=this.isLixEnabled("pemberly.tracking.even-batch")||c,(t.observabilityEnabled||(null===(o=t.__getLixTreatment)||void 0===o?void 0:o.call(t,gt))===mt)&&(this.telemetry=Un.getInstance(t))}return N(e,[{key:"checkAndEnablePersistentRetry",value:function(e){var t,n,i=(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(Tn.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,Tn.UNKNOWN_EXECUTION_ERROR,{eventName:i,topicName:o},s,n.eventBody.header.clientMonitoringInstanceEventNumber)}))}catch(e){}}})
this.telemetry&&(i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
return{onIntermediateResult:function(e,n){for(var i=0,r=t;i<r.length;i++){var o=r[i]
try{var a
null==o||null===(a=o.onIntermediateResult)||void 0===a||a.call(o,e,n)}catch(e){wn("onIntermediateResult")}}},onBeforeRetry:function(e){for(var n=0,i=t;n<i.length;n++){var r=i[n]
try{var o
null==r||null===(o=r.onBeforeRetry)||void 0===o||o.call(r,e)}catch(e){wn("onBeforeRetry")}}},onResult:function(e,n){for(var i=0,r=t;i<r.length;i++){var o=r[i]
try{var a
null==o||null===(a=o.onResult)||void 0===a||a.call(o,e,n)}catch(e){wn("onResult")}}}}}(i,null===(n=this.telemetry)||void 0===n?void 0:n.onResultCallbackHook(this.transportKey))),this.networkTransporter.checkAndEnablePersistentRetry(e,i)}},{key:"setTransportKey",value:function(e){this.transportKey=e}},{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(En(e.id)))
var n=this.host,i=n.api.Promise,r=n.batching
if(function(e){return!!e.meta.context}(t)){var o,a,s=this.prepareCompleteEnvelopeQueue(t)
return null===(o=this.clientMonitoringConn)||void 0===o||o.logEventReadyToSend(1),null===(a=this.telemetry)||void 0===a||a.onEventReceived(s),this.queue.push(s),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,ft.off(at,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,t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1
this.populatePreContextQueue({pageInstance:Dt(M),pageKey:M}).forEach((function(e){var n
t.queue.push(e),null===(n=t.telemetry)||void 0===n||n.onEventReceived(e)})),this.isEvenBatchEnabled?1===n?this.sendPayload(void 0,!0):this.sendPayload():this.flush(!0),null===(e=this.telemetry)||void 0===e||e.forceFlush()}},{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
Yt("read").then((function(t){var n
e.clientGlobalSequenceNumberCounter=null!==(n=null==t?void 0:t.sequenceNumber)&&void 0!==n?n:0,Fn.forEach((function(n){var i
e.clientTopicLocalSequenceNumberCountersMap[n]=null!==(i=null==t?void 0:t[n])&&void 0!==i?i:0}))})).catch((function(e){Qt("sequence-number:idb-read",e)}))}},{key:"updateSequenceNumberToIDB",value:function(){Yt("update",this.clientGlobalSequenceNumberCounter,this.clientTopicLocalSequenceNumberCountersMap).catch((function(e){Qt("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=Lt(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){var n
t.queue.push(e),null===(n=t.telemetry)||void 0===n||n.onEventReceived(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===Bn:e.eventName===Bn}(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:Xt(),isBrowserPersistentRetryEnabled:this.networkTransporter.isBrowserPersistentRetryEnabled(),clientDeviceType:"DESKTOP",timeZoneOffsetMinutes:-1*(new Date).getTimezoneOffset()},y={pageInstance:d,time:e.meta.time,version:i,server:"",service:"",guid:St(),memberId:0}
"number"==typeof this.clientGlobalSequenceNumberCounter&&c(y,{clientGlobalSequenceNumber:this.clientGlobalSequenceNumberCounter})
var b=En(e.id)
if(Fn.includes(b)){var E=this.clientTopicLocalSequenceNumberCountersMap[b]
"number"==typeof E&&c(y,{clientTopicLocalSequenceNumber:E})}var _={header:c(y,e.meta.header||{}),requestHeader:c(v,e.meta.requestHeader||{})},k=e.meta.clientMonitoringInstanceId,T=e.meta.clientMonitoringInstanceEventNumber
return k&&c(_.header,{clientMonitoringInstanceId:k,clientMonitoringInstanceEventNumber:T}),c(e.body,_)}},{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=[],l=[]
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?c.push(r):l.push(r),"number"==typeof n.clientGlobalSequenceNumberCounter&&n.clientGlobalSequenceNumberCounter++
var a=En(e.id)
Fn.includes(a)&&"number"==typeof n.clientTopicLocalSequenceNumberCountersMap[a]&&n.clientTopicLocalSequenceNumberCountersMap[a]++})),this.host.inactive||(this.clientMonitoringConn&&(this.clientMonitoringConn.logEventSent(c.length+l.length),o=this.clientMonitoringConn,a={onResult:function(e,t){o&&!o.isDestroyed()&&(e.statusCode&&o.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",a=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(r)].join(", ")
null==o||o.logFailedEvent(Tn.UNKNOWN_EXECUTION_ERROR,{eventName:n,topicName:i},a,t.eventBody.header.clientMonitoringInstanceEventNumber||-1)})))}}),this.telemetry&&(a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
return{onResult:function(e,n){t.forEach((function(t){try{null==t||t.onResult(e,n)}catch(e){wn("onResult")}}))}}}(a,null===(s=this.telemetry)||void 0===s?void 0:s.clientMonitoringCallbackHook(this.transportKey))),this.networkTransporter.sendPayloadFireForget(this.trackingEndpoint,c,void 0,a),this.networkTransporter.sendPayload(this.trackingEndpoint,l,void 0,a))}}},{key:"getTrackingEndpoint",value:function(){return this.trackingEndpoint}}]),e}()
function Hn(){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 Vn,qn=function(){function e(t,n){x(this,e),this.clientBreadcrumbType=t,this.id=n}return N(e,[{key:"builder",get:function(){return Hn().id(this.id).clientBreadcrumbType(this.clientBreadcrumbType)}}],[{key:"toPointer",value:function(e){return{id:e.id,type:e.clientBreadcrumbType}}}]),e}()
!function(e){e.FEED_UPDATE_SERVED="FEED_UPDATE_SERVED",e.GUIDE_ENTRYPOINT="GUIDE_ENTRYPOINT",e.GUIDE_FEEDBACK="GUIDE_FEEDBACK",e.JOB_VIEW="JOB_VIEW",e.MEDIA="MEDIA",e.MESSAGE_SEND_CLIENT_FAILURE="MESSAGE_SEND_CLIENT_FAILURE",e.MESSAGE_SEND_CLIENT_SUCCESS="MESSAGE_SEND_CLIENT_SUCCESS",e.MESSAGE_SEND_FUNNEL="MESSAGE_SEND_FUNNEL",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION",e.SPONSORED_DOCUMENT_PAGE_SERVED="SPONSORED_DOCUMENT_PAGE_SERVED",e.SPONSORED_UPDATE_SERVED="SPONSORED_UPDATE_SERVED",e.SPONSORED_VIDEO_VIEW="SPONSORED_VIDEO_VIEW",e.UNKNOWN="UNKNOWN"}(Vn||(Vn={}))
var Kn=function(){function e(){return x(this,e),g(this,e,[Vn.FEED_UPDATE_SERVED,St()])}return b(e,qn),N(e)}(),Wn=function(){function e(){var t
return x(this,e),O(m(t=g(this,e,[Vn.UNKNOWN,St()])),"content",void 0),O(m(t),"featureBreadcrumbType",void 0),t}return b(e,qn),N(e)}(),Yn=function(){function e(){return x(this,e),g(this,e,[Vn.SPONSORED_UPDATE_SERVED,St()])}return b(e,qn),N(e)}()
function zn(e,t){var n
switch(t){case"proto.sdui.breadcrumbs.feed.FeedUpdateServedBreadcrumb":n=(new Kn).builder
break
case"proto.sdui.breadcrumbs.feed.SponsoredUpdateServedBreadcrumb":n=(new Yn).builder
break
case"proto.sdui.tracking.TrackingBreadcrumb":n=(new Wn).builder
var i,r=e
try{if(void 0!==r.content.type)i=(new TextDecoder).decode(new Uint8Array(r.content.data))
else{if(!(r.content instanceof Uint8Array))throw new Error("Invalid breadcrumb content type")
i=(new TextDecoder).decode(r.content)}for(var o=null==e?void 0:e.breadcrumbType,a={content:JSON.parse(i),breadcrumbType:o},s=0,c=Object.entries(a);s<c.length;s++){var l=h(c[s],2),u=l[0],d=l[1]
an(d)&&n[u](d)}return n.build()}catch(e){throw new Error("Error parsing breadcrumb content: ".concat(e))}default:throw new Error("breadcrumb class ".concat(t," needs to be defined in core-web-tracking."))}if(!n)throw new Error("breadcrumb class ".concat(t," needs to be defined in core-web-tracking."))
for(var f in e){var p=e[f]
null!=p&&n[f](p)}return n.build()}function Xn(e){var t,n=[],i=[],r=S(e)
try{for(r.s();!(t=r.n()).done;){var s=t.value,c=s.breadcrumb,l=T(s,o)
if(i.push(l),c){var u=void 0
if(c&&"$type"in c){var d=c.$type
u=zn(T(c,a),d)}else{if(!c.id)throw new Error("Missing breadcrumb id")
if(!c.clientBreadcrumbType)throw new Error("clientBreadcrumbType is a mandatory field in ClientBreadcrumbObject")
if(!Object.values(Vn).includes(c.clientBreadcrumbType))throw new Error("Invalid breadcrumb type: ".concat(c.clientBreadcrumbType))
if(!c.data||!an(c.data))throw new Error("Missing breadcrumb data")
u=p({id:c.id,clientBreadcrumbType:c.clientBreadcrumbType},c.data)}n.push(u)}}}catch(e){r.e(e)}finally{r.f()}return{extractedBreadcrumbs:n,trackingScopesWithoutBreadcrumbs:i}}function Qn(e){var t,n=new Set,i=[],r=S(e)
try{for(r.s();!(t=r.n()).done;){var o=t.value,a="".concat(o.contentTrackingId,"-").concat(o.topicName)
n.has(a)||(n.add(a),i.push(o))}}catch(e){r.e(e)}finally{r.f()}var s=Xn(i)
return{breadcrumbs:s.extractedBreadcrumbs,trackingScopes:s.trackingScopesWithoutBreadcrumbs}}function Jn(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&&jt(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}}var $n=Object.freeze({__proto__:null,voyagerTransporterConfig:{sponsored:{endpoint:"li/tscp/sct",batching:!1,disableCompression:!1,retryConfig:{persist:{attemptLimit:4,statusCodes:[429,431,401,403,404,500,405,501,406,502,407,503,408,504,409,505,506,507,508,413,509,510,511]},inMemory:{attemptLimit:4,statusCodes:[429,431,401,403,404,500,405,501,406,502,407,503,408,504,409,505,506,507,508,413,509,510,511]}}},default:{endpoint:"li/track",batching:{evenBatchEnabled:!0,maxSize:29},disableCompression:!1,retryConfig:{persist:{attemptLimit:4,statusCodes:[429,431,401,403,404,500,405,501,406,502,407,503,408,504,409,505,506,507,508,413,509,510,511]},inMemory:{attemptLimit:4,statusCodes:[429,431,401,403,404,500,405,501,406,502,407,503,408,504,409,505,506,507,508,413,509,510,511]}}}}})
function Zn(e){return"retryConfig"in e.host}function ei(e){return"location"in e.api}var ti,ni=function(){function e(t,n,i,r,o,a,s,c){var l,u,d,f,g,m,v=arguments.length>8&&void 0!==arguments[8]&&arguments[8]
if(x(this,e),O(this,"transporter",void 0),O(this,"delegate",void 0),O(this,"viewSpecs",void 0),O(this,"transportConfig",void 0),O(this,"dynamicTransporterSupportLixKey",void 0),O(this,"domain",void 0),O(this,"trackingAppName",void 0),O(this,"dynamicTransporterSupportLixValue",void 0),O(this,"observabilityEnabled",void 0),O(this,"currentContext",void 0),O(this,"appState",void 0),O(this,"referrer",void 0),O(this,"previousAppContext",void 0),O(this,"customTransporters",void 0),O(this,"clientMonitoringConn",void 0),O(this,"dynamicTransporterSupportEnabled",void 0),O(this,"telemetry",void 0),this.transporter=t,this.delegate=n,this.viewSpecs=i,this.transportConfig=r,this.dynamicTransporterSupportLixKey=o,this.domain=a,this.trackingAppName=s,this.dynamicTransporterSupportLixValue=c,this.observabilityEnabled=v,this.appState={},this.customTransporters={},this.transportConfig={},this.dynamicTransporterSupportEnabled=!1,o?this.dynamicTransporterSupportEnabled=on(null===(g=(m=t.host).__getLixTreatment)||void 0===g?void 0:g.call(m,o)):c&&(this.dynamicTransporterSupportEnabled=!!s&&c),this.dynamicTransporterSupportEnabled){var y=null==$n?void 0:$n["".concat(null==s?void 0:s.toLowerCase(),"TransporterConfig")]
an(y)?this.transportConfig=y:this.transportConfig=r}(v||(null===(l=(u=t.host).__getLixTreatment)||void 0===l?void 0:l.call(u,gt))===mt)&&(this.telemetry=Un.getInstance(t.host))
var b={observabilityEnabled:!!this.telemetry}
if(n&&n.customTransporterHosts)for(var E in n.customTransporterHosts)if(Object.prototype.hasOwnProperty.call(n.customTransporterHosts,E)){var _=this.transporter.host.api.assign({},this.transporter.host)
this.customTransporters[E]=new Gn(this.transporter.host.api.assign(_,n.customTransporterHosts[E],b))}if(this.dynamicTransporterSupportEnabled&&an(this.transportConfig))for(var k=0,T=Object.entries(this.transportConfig);k<T.length;k++){var S,A,C=h(T[k],2),I=C[0],w=C[1]
w=p(p({},w),{},{endpoint:a&&null!==(S=w)&&void 0!==S&&S.endpoint?"".concat(sn(a,null===(A=w)||void 0===A?void 0:A.endpoint)):"https://linkedin.com/li/track"})
var R=this.transporter.host.api.assign({},this.transporter.host)
this.customTransporters[I]=new Gn(this.transporter.host.api.assign(R,w,b)),this.telemetry&&this.customTransporters[I].setTransportKey(I)}"enabled"===(null===(d=(f=t.host).__getLixTreatment)||void 0===d?void 0:d.call(f,"pemberly.tracking.monitoring"))&&t.host.clientMonitoringConfig&&!t.host.inactive&&ei(t.host)&&(this.clientMonitoringConn=An(t.host)),an(i)&&(this.viewSpecs=i)}return N(e,[{key:"host",get:function(){return this.transporter.host}},{key:"addBeforeHandlerToHideEvent",value:function(e){ft.before(at,e)}},{key:"removeBeforeHandlerToHideEvent",value:function(e){ft.offBefore(at,e)}},{key:"checkAndEnablePersistentRetry",value:function(){Zn(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush()
var e=Zn(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null
return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return Lt(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,Jn(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=Lt(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(Lt(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=Pt(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:"getViewTrackingScope",value:function(e){for(var t=[],n=e;n instanceof Element&&"body"!==n.tagName.toLowerCase();){var i=n.closest("[data-view-tracking-scope]")
if(i){var r=i.getAttribute("data-view-tracking-scope")
if(r)try{var o=JSON.parse(r)
o&&o.length&&t.push.apply(t,A(o))}catch(e){Qt("getViewTrackingScope","Error parsing trackingScope ".concat(r))}}n=null==i?void 0:i.parentElement}return t}},{key:"fireInteraction",value:function(e){var t,n=e.manualFireReason,i=e.interactionType,r=e.targetView,o=e.viewHierarchy,a=void 0===o?[]:o,s=e.viewTrackingScope,c=void 0===s?[]:s,l=e.verticalPosition,u=e.horizontalPosition,d=e.controlUrn,f=void 0===d?"":d,g=e.actionType,m=e.contentTrackingId,v=void 0===m?void 0:m,y=e.clientBreadcrumbs,b=void 0===y?[]:y,E=e.isShadowEvent,_=e.cooloffToken,k=e.testId,T=e.mediaStateInfo,S=e.entityUrn,C=e.actorType,I=void 0===C?"USER":C,w=r?this.getViewHierarchy(r):[],x=w.length>0?w:a
0!==x.length&&(!this.viewSpecs||null!==(t=this.viewSpecs)&&void 0!==t&&t.some((function(e){return e.viewName==x[0]})))||console.warn("No viewHierarchy provided or found from element.")
var R=c.length>0?c:this.getViewTrackingScope(r)
if(this.dynamicTransporterSupportEnabled){var N=nn(this.transportConfig),O=h(rn(R,N),2),D=O[0],P=O[1],M="GenericActionEvent",j={verticalPosition:l,horizontalPosition:u,controlUrn:f,interactionType:i,actionType:g,contentTrackingId:""===v?void 0:v,manualFireReason:n,cooloffToken:_,mediaStateInfo:T,actorType:I,entityUrn:S}
if(an(D)){for(var L=0,U=Object.entries(D);L<U.length;L++){var F=h(U[L],2),B=F[0],G=Qn(F[1]),H=G.breadcrumbs,V=G.trackingScopes
this.fireEvent(M,p(p({},j),{},{trackingScopeHierarchy:{entries:V}}),{header:{viewHierarchy:x,testId:k},transporterKey:B},H,E)}if(0===P.length)return Promise.resolve(!0)}var q=Qn(P),K=q.breadcrumbs,W=q.trackingScopes
return this.fireEvent(M,{verticalPosition:l,horizontalPosition:u,controlUrn:f,interactionType:i,actionType:g,contentTrackingId:""===v?void 0:v,manualFireReason:n,cooloffToken:_,trackingScopeHierarchy:{entries:W},mediaStateInfo:T,entityUrn:S},{header:{viewHierarchy:x,testId:k}},[].concat(A(b),A(K)),E)}var Y=Qn(R),z=Y.breadcrumbs,X=Y.trackingScopes
return this.fireEvent("GenericActionEvent",{verticalPosition:l,horizontalPosition:u,controlUrn:f||"",interactionType:i,actionType:g,contentTrackingId:""===v?void 0:v,manualFireReason:n,cooloffToken:_,trackingScopeHierarchy:{entries:X},mediaStateInfo:T,entityUrn:S,actorType:I},{header:{viewHierarchy:x,testId:k}},[].concat(A(b),A(z)),E)}},{key:"fireImpression",value:function(e,t){var n,i=e.manualFireReason,r=e.targetView,o=e.viewHierarchy,a=void 0===o?[]:o,s=e.viewTrackingScope,c=void 0===s?[]:s,l=e.viewDurationInMilliseconds,u=void 0===l?0:l,d=e.contentViewFraction,f=void 0===d?1:d,g=e.width,m=void 0===g?-1:g,v=e.height,y=void 0===v?-1:v,b=e.verticalPosition,E=e.horizontalPosition,_=e.impressionTime,k=e.contentTrackingId,T=e.clientBreadcrumbs,S=void 0===T?[]:T,C=e.isShadowEvent,I=e.cooloffToken,w=e.testId,x=e.mediaStateInfo,R=e.entityUrn,N=r?this.getViewHierarchy(r):[],O=N.length>0?N:a
0!==O.length&&(!this.viewSpecs||null!==(n=this.viewSpecs)&&void 0!==n&&n.some((function(e){return e.viewName==O[0]})))||console.warn("No viewHierarchy provided or found from element.")
var D=c.length>0?c:this.getViewTrackingScope(r)
if(this.dynamicTransporterSupportEnabled){var P=nn(this.transportConfig),M=h(rn(D,P),2),j=M[0],L=M[1],U="GenericImpressionEvent",F={viewDurationInMilliseconds:u,contentViewFraction:f,width:m,height:y,verticalPosition:b,horizontalPosition:E,impressionTime:_,contentTrackingId:""===k?void 0:k,manualFireReason:i,cooloffToken:I,mediaStateInfo:x,entityUrn:R},B={header:{viewHierarchy:O,testId:w},context:null==t?void 0:t.context}
if(an(j)){for(var G=0,H=Object.entries(j);G<H.length;G++){var V=h(H[G],2),q=V[0],K=Qn(V[1]),W=K.breadcrumbs,Y=K.trackingScopes
this.fireEvent(U,p(p({},F),{},{trackingScopeHierarchy:{entries:Y}}),p(p({},B),{},{transporterKey:q}),W,C)}if(0===L.length)return Promise.resolve(!0)}var z=Qn(L),X=z.breadcrumbs,Q=z.trackingScopes
return this.fireEvent(U,{viewDurationInMilliseconds:u,contentViewFraction:f,width:m,height:y,verticalPosition:b,horizontalPosition:E,impressionTime:_,contentTrackingId:""===k?void 0:k,manualFireReason:i,cooloffToken:I,trackingScopeHierarchy:{entries:Q},mediaStateInfo:x,entityUrn:R},B,[].concat(A(S),A(X)),C)}var J=Qn(D),$=J.breadcrumbs,Z=J.trackingScopes,ee={header:{viewHierarchy:O,testId:w},context:null==t?void 0:t.context}
return this.fireEvent("GenericImpressionEvent",{viewDurationInMilliseconds:u,contentViewFraction:f,width:m,height:y,verticalPosition:b,horizontalPosition:E,impressionTime:_,contentTrackingId:""===k?void 0:k,manualFireReason:i,cooloffToken:I,trackingScopeHierarchy:{entries:Z},mediaStateInfo:x,entityUrn:R},ee,[].concat(A(S),A($)),C)}},{key:"fireMediaStateChangeEvent",value:function(e){var t=e.trackingScopeHierarchyData,n=void 0===t?[]:t,i=e.objectUrn,r=e.trackingId,o=e.playableMediaState,a=e.clientBreadcrumbs,s=void 0===a?[]:a
if(this.dynamicTransporterSupportEnabled){var c=nn(this.transportConfig),l=h(rn(n,c),2),u=l[0],d=l[1],f="GenericMediaStateChangeEvent",g={trackingObject:{trackingId:r,objectUrn:i},playableMediaState:o}
if(an(u)){for(var m=0,v=Object.entries(u);m<v.length;m++){var y=h(v[m],2),b=y[0],E=Qn(y[1]),_=E.breadcrumbs,k=E.trackingScopes
this.fireEvent(f,p(p({},g),{},{trackingScopeHierarchy:{entries:k}}),{transporterKey:b},_)}if(0===d.length)return Promise.resolve(!0)}var T=Qn(d),S=T.breadcrumbs,C=T.trackingScopes
return this.fireEvent(f,{trackingObject:{trackingId:r,objectUrn:i},playableMediaState:o,trackingScopeHierarchy:{entries:C}},void 0,[].concat(A(s),A(S)))}var I=Qn(n),w=I.breadcrumbs,x=I.trackingScopes
return this.fireEvent("GenericMediaStateChangeEvent",{trackingObject:{trackingId:r,objectUrn:i},playableMediaState:o,trackingScopeHierarchy:{entries:x}},void 0,[].concat(A(s),A(w)))}},{key:"fireEvent",value:function(e,t,n,i,r){var o=this
if(!t){var a,s=En(e),c=void 0===t?"undefined":null===t?"null":w(t),l='Firing tracking event "'.concat(s,'" with invalid body, you fired "').concat(c,'"')
if(this.clientMonitoringConn){var u=this.clientMonitoringConn.logEventGenerated(s)
this.clientMonitoringConn.logFailedEvent(Tn.MISSING_REQUIRED_PROPERTIES,e,l,u)}throw null===(a=this.telemetry)||void 0===a||a.onEventDropped(s,void 0,null==n?void 0:n.transporterKey,void 0),new Error(l)}var d=i||[]
if(d.length>0){var f=(d=d.map((function(e){return o.transformBreadcrumb(e)}))).map((function(e){return qn.toPointer(e)}))
this.host.api.assign(t,{clientBreadcrumbPointers:f})}var p=d.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,d,r):this.generateEnvelope(e,t,n,r)
return this.fireEnvelope(p)}},{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:"transformBreadcrumb",value:function(e){try{if(an(e.content))return p({id:e.id,clientBreadcrumbType:e.breadcrumbType},e.content)}catch(e){console.error("Error transforming breadcrumb:",e)}return e}},{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(bn(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,c=En(r.id),l="Could not find custom transporter: ".concat(o)
if(this.clientMonitoringConn){var u=this.clientMonitoringConn.logEventGenerated(c)
this.clientMonitoringConn.logFailedEvent(Tn.UNKNOWN_EXECUTION_ERROR,r.id,l,u)}throw null===(s=this.telemetry)||void 0===s||s.onEventDropped(c,void 0,o,void 0),new Error(l)}return a.fireEvent(r)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return Dt(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),ft.clear(),this.telemetry&&(this.telemetry.forceFlush(),this.telemetry.onDestroy(),this.telemetry=void 0)}},{key:"forceFlush",value:function(){for(var e in this.transporter.forceFlush(),this.customTransporters)this.customTransporters[e].forceFlush()}},{key:"generateControlUrn",value:function(e,t){return Pt((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 t.fromExternalApp||(this.referrer="https://www.linkedin.com"),{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,i,r,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c={directive:a.directive,transporterKey:a.transporterKey,context:a.context||this.currentContext&&Lt(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},a.requestHeader||{},ei(this.host)?{path:"".concat(this.host.api.location.pathname).concat(this.host.api.location.search),referer:"enabled"===(null===(n=(i=this.host).__getLixTreatment)||void 0===n?void 0:n.call(i,"pai.referrer.fix.subsquent"))?this.referrer?this.referrer:null===(r=this.host.api.document)||void 0===r?void 0:r.referrer:null===(o=this.host.api.document)||void 0===o?void 0:o.referrer}:{}),header:this.host.api.assign({applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:this.appState.clientApplicationInstance,isShadowEvent:s},a.header||{})}
return{body:"function"==typeof t?t:function(){return t},id:e,meta:c}}}]),e}()
!function(e){e.INTERNAL_OTEL_JET_EVENT="internal:otel:jet",e.INTERNAL_OTEL_RESOURCE="internal:otel:resource",e.INTERNAL_OTEL_LARGEST_CONTENTFUL_PAINT="internal:otel:lcp",e.INTERNAL_OTEL_CUMULATIVE_LAYOUT_SHIFT="internal:otel:cls",e.INTERNAL_OTEL_FIRST_INPUT_DELAY="internal:otel:fid"}(ti||(ti={}))
var ii="otel-origin-jet-tag"
function ri(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,_=void 0===E?t:E,k=i.serviceInstance,T=void 0===k?t:k,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:_,pageKey:void 0===S?t:S},eventInfo:{appId:l,eventName:f,topicName:f}}}))
return n}var oi,ai,si=function(){function e(t,n){var i,r,o=this
x(this,e),O(this,"core",void 0),O(this,"protocol",void 0),O(this,"throttleKeySet",new Set),O(this,"config",void 0),O(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},ft.on(st,this.reportTransporterError)}return N(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=r.sduiScreenId,u=r.componentKey,d=e.message,f=e.name,p=e.stack,h=void 0===p?"":p,g=e.fileName,m=void 0===g?"":g,v=e.lineNumber,y=void 0===v?0:v,b=e.columnNumber,E=void 0===b?0:b,_=this.core.host,k=_.appId,T=_.appVersion,S=_.service,A=_.serviceInstance,C=_.treeID,I=void 0===C?"":C,w=_.api,x=w.Promise,R=w.location,N=R.host,O=R.pathname,D=R.search,P=R.hash,M=void 0===P?"":P
if(this.config.useOTel&&!i.includes(ii)&&ft.emit(ti.INTERNAL_OTEL_JET_EVENT,{error:e,tags:i,callTreeId:a,responseHeaders:c}),c){t={}
var j=new Map
Object.keys(c).forEach((function(e){j.set(e.toLowerCase(),c[e])})),t.callTreeId=j.get("x-li-uuid"),t.microsoftEdgeReference=j.get("x-msedge-ref"),t.pointOfPresenceId=j.get("x-li-pop"),t.fabric=j.get("x-li-fabric")}var L=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:k,e:{c:E,l:y,m:d,s:h,t:f,u:m},h:M,l:n.protocol,o:N,p:O,pageKey:e.pageKey,q:D,service:S,serviceInstance:A,serviceVersion:T,t:i,trackingID:e.pageInstance.trackingId,treeID:I,callTreeId:a,responseTraceHeaders:t,sduiScreenId:l,componentKey:u}}))}
if(this.config.throttleTime<0)return L()
var U=(f+d+h+i.join("")+a).split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0)
return this.throttleKeySet.has(U)?x.resolve(!1):(this.throttleKeySet.add(U),setTimeout((function(){return n.throttleKeySet.delete(U)}),this.config.throttleTime),L())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),ft.off(st,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"}(oi||(oi={})),function(e){e.PageLoadStartEvent="PageLoadStartEvent",e.PageLoadEndEvent="PageLoadEndEvent",e.ResourceLoadEvent="ResourceLoadEvent",e.ViewLoadEvent="ViewLoadEvent",e.PEMTracer="PEMTracer"}(ai||(ai={}))
var ci,li,ui,di,fi,pi,hi,gi=(O(O(O(O(O(O(O(O(O(O(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),O(O(O(O(O(O(i,"beacon-timeout",3e4),"enable-memory-measurement",!1),"pageKeyPrefix",""),"enable-pem-tracking-3",!1),"enable-tracking-3",!1),"enable-otel",!1)),mi=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"],vi={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"},yi={"http/0.9":"HTTP0_9","http/1.0":"HTTP1_0","http/1.1":"HTTP1_1",h2:"HTTP2"},bi="pageLoadId does not exist",Ei="rum token passed is invalid",_i=new RegExp(/batch-(\d+)$|enabled$/),ki=function(){function e(){x(this,e),O(this,"userTimingEntries",[]),O(this,"longTasks",[]),O(this,"resourceTimingEntries",[]),O(this,"cdnData",void 0)}return N(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 Ai(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}
pi=Object.assign(Object.assign({},n),t),hi=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(pi.root,n)
var i=Ci(e,fi.All,(function(){return Ci(e,fi.Two,(function(){return Ci(e,fi.One)}))}))
if(i){var r=ji(Li(i,e))
return r.length>0&&(i=r[0]),wi(i)}throw new Error("Selector was not found.")}function Ci(e,t,n){for(var i=null,r=[],o=e,a=0,s=function(){var e=Di(function(e){var t=e.getAttribute("id")
return t&&pi.idName(t)?{name:"#"+Vi(t,{isIdentifier:!0}),penalty:0}:null}(o))||Di.apply(void 0,A(function(e){return Array.from(e.attributes).filter((function(e){return pi.attr(e.name,e.value)})).map((function(e){return{name:"["+Vi(e.name,{isIdentifier:!0})+'="'+Vi(e.value)+'"]',penalty:.5}}))}(o)))||Di.apply(void 0,A(function(e){return Array.from(e.classList).filter(pi.className).map((function(e){return{name:"."+Vi(e,{isIdentifier:!0}),penalty:1}}))}(o)))||Di(function(e){var t=e.tagName.toLowerCase()
return pi.tagName(t)?{name:t,penalty:2}:null}(o))||[{name:"*",penalty:3}],s=function(e){var t=e.parentNode
if(!t)return null
var n=t.firstChild
if(!n)return null
for(var i=0;n&&(n.nodeType===Node.ELEMENT_NODE&&i++,n!==e);)n=n.nextSibling
return i}(o)
if(t===fi.All)s&&(e=e.concat(e.filter(Oi).map((function(e){return Ni(e,s)}))))
else if(t===fi.Two)e=e.slice(0,1),s&&(e=e.concat(e.filter(Oi).map((function(e){return Ni(e,s)}))))
else if(t===fi.One){var c=h(e=e.slice(0,1),1)[0]
s&&Oi(c)&&(e=[Ni(c,s)])}var l,u=S(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>=pi.seedMinLength&&(i=Ii(r,n)))return 1
o=o.parentElement,a++};o&&o!==pi.root.parentElement&&!s(););return i||(i=Ii(r,n)),i}function Ii(e,t){var n=ji(Mi(e))
if(n.length>pi.threshold)return t?t():null
var i,r=S(n)
try{for(r.s();!(i=r.n()).done;){var o=i.value
if(Ri(o))return o}}catch(e){r.e(e)}finally{r.f()}return null}function wi(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 xi(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function Ri(e){switch(hi.querySelectorAll(wi(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(wi(e)))
case 1:return!0
default:return!1}}function Ni(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 Di(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]
var i=t.filter(Pi)
return i.length>0?i:null}function Pi(e){return null!=e}function Mi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]
if(e.length>0){var n,i=[],r=S(e[0])
try{for(r.s();!(n=r.n()).done;){var o=n.value
i=i.concat(Mi(e.slice(1,e.length),t.concat(o)))}}catch(e){r.e(e)}finally{r.f()}return i}return[t]}function ji(e){return Array.from(e).sort((function(e,t){return xi(e)-xi(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>pi.optimizedMinLength)for(var r=1;r<e.length-1;r++){if(n.counter>pi.maxNumberOfTries)return i
n.counter+=1
var o=A(e)
o.splice(r,1)
var a=wi(o)
if(n.visited.has(a))return i
Ri(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 hi.querySelector(wi(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"}(ci||(ci={})),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"}(li||(li={})),function(e){e.redirectStart="redirectStart",e.redirectEnd="redirectEnd",e.fetchStart="fetchStart",e.domainLookupStart="domainLookupStart",e.domainLookupEnd="domainLookupEnd",e.connectStart="connectStart",e.connectEnd="connectEnd",e.secureConnectionStart="secureConnectionStart",e.requestStart="requestStart",e.responseStart="responseStart",e.responseEnd="responseEnd",e.workerStart="workerStart"}(ui||(ui={})),function(e){e.DEFAULT="DEFAULT",e.INITIAL="INITIAL",e.SUBSEQUENT="SUBSEQUENT",e.PAGINATED="PAGINATED"}(di||(di={})),function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(fi||(fi={}))
var Fi=/[ -,\.\/:-@\[-\^`\{-~]/,Bi=/[ -,\.\/:-@\[\]\^`\{-~]/,Gi=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Hi={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1}
function Vi(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(Gi,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!r&&n.wrap?i+a+i:a}var qi,Ki=[{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 Wi(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 Yi(e){var t=e||performance
return Math.round(t.now())}function zi(e){if(!e)return"null"
if(e.nodeType===Node.ELEMENT_NODE)try{return Ai(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=zi(e.parentElement||void 0)
return"".concat(t," > nodeType(").concat(e.nodeType,")")}function Xi(e,t,n){var i=[]
return e&&"function"==typeof e.getEntriesByType&&(t["user-timing-measure-enabled"]&&e.getEntriesByType("measure").forEach((function(e){var t=e.name,n=e.startTime,r=e.duration
i.push({entryType:"MEASURE",name:t,startTime:n,duration:r})})),t["user-timing-mark-enabled"]&&e.getEntriesByType("mark").forEach((function(e){var t=e.name,n=e.startTime,r=e.duration
i.push({entryType:"MARK",name:t,startTime:n,duration:r})})),n&&(e.clearMeasures(),e.clearMarks())),i}function Qi(e){var t=[]
return e.forEach((function(e){return t.push(e)})),t}var Ji=function(){function e(t){x(this,e),O(this,"hostApis",void 0),O(this,"hostnameProperties",void 0),O(this,"usedHostnames",void 0),O(this,"abortController",void 0),O(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 N(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this
return Kt(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=qt(Kt(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,(qi=qi||i.createElement("a")).href=n,qi.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}()
!function(){var e=function(){function e(){x(this,e)}return N(e,null,[{key:"x64Add",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:"x64Rotl",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:"x64Xor",value:function(e,t){return[e[0]^t[0],e[1]^t[1]]}},{key:"x64Fmix",value:function(t){return t=e.x64Xor(t,[0,t[0]>>>1]),t=e.x64Multiply(t,[4283543511,3981806797]),t=e.x64Xor(t,[0,t[0]>>>1]),t=e.x64Multiply(t,[3301882366,444984403]),e.x64Xor(t,[0,t[0]>>>1])}},{key:"x64hash128",value:function(t,n){n=n||0
var i,r=(t=t||"").length%16,o=t.length-r,a=[0,n],s=[0,n],c=[0,0],l=[0,0],u=[2277735313,289559509],d=[1291169091,658871167]
for(i=0;i<o;i+=16)c=[255&t.charCodeAt(i+4)|(255&t.charCodeAt(i+5))<<8|(255&t.charCodeAt(i+6))<<16|(255&t.charCodeAt(i+7))<<24,255&t.charCodeAt(i)|(255&t.charCodeAt(i+1))<<8|(255&t.charCodeAt(i+2))<<16|(255&t.charCodeAt(i+3))<<24],l=[255&t.charCodeAt(i+12)|(255&t.charCodeAt(i+13))<<8|(255&t.charCodeAt(i+14))<<16|(255&t.charCodeAt(i+15))<<24,255&t.charCodeAt(i+8)|(255&t.charCodeAt(i+9))<<8|(255&t.charCodeAt(i+10))<<16|(255&t.charCodeAt(i+11))<<24],c=e.x64Multiply(c,u),c=e.x64Rotl(c,31),c=e.x64Multiply(c,d),a=e.x64Xor(a,c),a=e.x64Rotl(a,27),a=e.x64Add(a,s),a=e.x64Add(e.x64Multiply(a,[0,5]),[0,1390208809]),l=e.x64Multiply(l,d),l=e.x64Rotl(l,33),l=e.x64Multiply(l,u),s=e.x64Xor(s,l),s=e.x64Rotl(s,31),s=e.x64Add(s,a),s=e.x64Add(e.x64Multiply(s,[0,5]),[0,944331445])
switch(c=[0,0],l=[0,0],r){case 15:l=e.x64Xor(l,e.x64LeftShift([0,t.charCodeAt(i+14)],48))
case 14:l=e.x64Xor(l,e.x64LeftShift([0,t.charCodeAt(i+13)],40))
case 13:l=e.x64Xor(l,e.x64LeftShift([0,t.charCodeAt(i+12)],32))
case 12:l=e.x64Xor(l,e.x64LeftShift([0,t.charCodeAt(i+11)],24))
case 11:l=e.x64Xor(l,e.x64LeftShift([0,t.charCodeAt(i+10)],16))
case 10:l=e.x64Xor(l,e.x64LeftShift([0,t.charCodeAt(i+9)],8))
case 9:l=e.x64Xor(l,[0,t.charCodeAt(i+8)]),l=e.x64Multiply(l,d),l=e.x64Rotl(l,33),l=e.x64Multiply(l,u),s=e.x64Xor(s,l)
case 8:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(i+7)],56))
case 7:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(i+6)],48))
case 6:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(i+5)],40))
case 5:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(i+4)],32))
case 4:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(i+3)],24))
case 3:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(i+2)],16))
case 2:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(i+1)],8))
case 1:c=e.x64Xor(c,[0,t.charCodeAt(i)]),c=e.x64Multiply(c,u),c=e.x64Rotl(c,31),c=e.x64Multiply(c,d),a=e.x64Xor(a,c)}return a=e.x64Xor(a,[0,t.length]),s=e.x64Xor(s,[0,t.length]),a=e.x64Add(a,s),s=e.x64Add(s,a),a=e.x64Fmix(a),s=e.x64Fmix(s),a=e.x64Add(a,s),s=e.x64Add(s,a),("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}}]),e}(),t=function(){function t(){x(this,t),this.components=[{key:"webrtc",getData:t.webRtcKey,shouldEnforceDataLimit:!0,dataLimit:1e3},{key:"enumerateDevices",getData:t.enumerateDevicesKey,shouldEnforceDataLimit:!0,dataLimit:22e3},{key:"appName",getData:t.appNameKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"tsSeed",getData:t.seedKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"appVersion",getData:t.appVersionKey,shouldEnforceDataLimit:!0,dataLimit:300},{key:"appCodeName",getData:t.appCodeNameKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"location",getData:t.locationKey,shouldEnforceDataLimit:!0,dataLimit:1500},{key:"javascripts",getData:t.javascriptsKey,shouldEnforceDataLimit:!0,dataLimit:2200},{key:"platform",getData:t.platformKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"product",getData:t.productKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"productSub",getData:t.productSubKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"cpuClass",getData:t.cpuClassKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"oscpu",getData:t.oscpuKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"hardwareConcurrency",getData:t.hardwareConcurrencyKey,alias:"numOfCores",shouldEnforceDataLimit:!0,dataLimit:100},{key:"deviceMemory",getData:t.deviceMemoryKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"vendor",getData:t.vendorKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"vendorSub",getData:t.vendorSubKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"language",getData:t.languageKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"timezoneOffset",getData:t.timezoneOffset,shouldEnforceDataLimit:!0,dataLimit:100},{key:"timezone",getData:t.timezone,shouldEnforceDataLimit:!0,dataLimit:100},{key:"userAgent",getData:t.UserAgent,shouldEnforceDataLimit:!0,dataLimit:1500},{key:"webdriver",getData:t.webdriver,shouldEnforceDataLimit:!0,dataLimit:100},{key:"doNotTrack",getData:t.doNotTrackKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"incognito",getData:t.incognitoKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"colorDepth",getData:t.colorDepthKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"pixelDepth",getData:t.pixelDepthKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"pixelRatio",getData:t.pixelRatioKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"screenResolution",getData:t.screenResolutionKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"screenOrientation",getData:t.screenOrientationKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"availableScreenResolution",getData:t.availableScreenResolutionKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"sessionStorage",getData:t.sessionStorageKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"localStorage",getData:t.localStorageKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"indexedDb",getData:t.indexedDbKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"addBehavior",getData:t.addBehaviorKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"openDatabase",getData:t.openDatabaseKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"canvas",getData:t.canvasKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"webgl",getData:t.webglKey,shouldEnforceDataLimit:!0,dataLimit:6e3},{key:"signals",getData:t.signalsKey,shouldEnforceDataLimit:!0,dataLimit:150},{key:"touchSupport",getData:t.touchSupportKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"networkInfo",getData:t.networkInfoKey,shouldEnforceDataLimit:!0,dataLimit:150},{key:"battery",getData:t.batteryKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"audio",getData:t.audioKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"automation",getData:t.automationKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"plugins",getData:t.pluginsComponent,shouldEnforceDataLimit:!0,dataLimit:17e3},{key:"mimetyps",getData:t.mimetypesComponent,shouldEnforceDataLimit:!0,dataLimit:27e3},{key:"fonts",getData:t.jsFontsKey,shouldEnforceDataLimit:!0,dataLimit:1500},{key:"fontsFlash",getData:t.flashFontsKey,shouldEnforceDataLimit:!0,dataLimit:100}]}return N(t,[{key:"getFeatures",value:function(e,t){if("function"==typeof e){if(!t)return e({error:"Options not provided"})
var n={data:{latency:{acq_time:{}},errors:{}}},i=Date.now(),r={},o=0,a=0
this.components.forEach((function(s){if(!t.excludes[s.key]){var c=s.key
void 0!==s.alias&&null!==s.alias&&s.alias.length>0&&(c=s.alias),o++
var l=function(){r[c]=Date.now()
try{s.getData((function(t){if(!1!==s.shouldEnforceDataLimit){var l=s.hasOwnProperty("dataLimit")&&"number"==typeof s.dataLimit?s.dataLimit:1e3,u=JSON.stringify(t).length
u>l&&(n.data.errors[c]="Exceeded current data limit:"+l+" Data length for:"+c+" was found to be:"+u,t={})}n.data[c]=t,n.data.latency.acq_time[c]=Date.now()-r[c],++a>=o&&(n.data.latency.acq_time.allFeatures=Date.now()-i,n.data.allFeaturesCollectionAt=Date.now(),e(n.data,!0))}),t)}catch(e){n.data.errors[c]=String(e)}}
"function"==typeof window.requestIdleCallback&&!1!==t.useRequestIdleCallBack?window.requestIdleCallback(l):l()}})),n.data.latency.acq_time.allFeatures=Date.now()-i,e(n.data,!1)}}}],[{key:"each",value:function(e,t){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach)e.forEach(t)
else if(e.length===+e.length)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:"map",value:function(e,n){var i=[]
return null==e?i:Array.prototype.map&&e.map===Array.prototype.map?e.map(n):(t.each(e,(function(e,t,r){i.push(n(e,t,r))})),i)}},{key:"getIPs",value:function(e,t){var n={},i=new(window.RTCPeerConnection||window.webkitRTCPeerConnection||window.mozRTCPeerConnection||window.msRTCPeerConnection)({iceServers:[{urls:"stun:stun.l.google.com:19302"}]},{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})/.exec(e)[1]
n[t]=!0}catch(e){}},o=!1,a=function(){if(!0!==o){o=!0
var e=i.localDescription
null!==e&&e.sdp.split("\n").forEach((function(e){0!==e.indexOf("a=candidate:")&&0!==e.indexOf("c=IN")||r(e)})),t(Object.keys(n))}}
i.onicecandidate=function(e){e.candidate&&r(e.candidate.candidate)},i.onicegatheringstatechange=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.setLocalDescription(e,(function(){}),(function(){}))}),(function(){}))}setTimeout((function(){a()}),2e3)}},{key:"automationKey",value:function(e,n){if(t.getHasLiedBrowser())e("undetected, fake browser")
else{var i=t.getBrowserNameAndVersion().split(" ")[0]
"Chrome"!==i||!0!==navigator.webdriver?"Firefox"===i&&window.document.documentElement.getAttribute("webdriver")||"_Selenium_IDE_Recorder"in window||"__webdriver_script_fn"in document?e("Selenium"):window.callPhantom||window._phantom?e("PhantomJS"):e(n.NOT_AVAILABLE):e("Selenium")}}},{key:"webRtcKey",value:function(e,n){try{t.getIPs(n,(function(t){e({ips:t})}))}catch(t){e({exception:{name:t.name,message:t.message}})}}},{key:"enumerateDevicesKey",value:function(e,n){if(!t.isEnumerateDevicesSupported())return e(n.NOT_AVAILABLE)
navigator.mediaDevices.enumerateDevices().then((function(t){e(t.map((function(e){var t={}
return t.id=e.deviceId,t.gid=e.groupId,t.kind=e.kind,t.label=e.label,t})))})).catch((function(t){e(t)}))}},{key:"isEnumerateDevicesSupported",value:function(){return navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices}},{key:"audioKey",value:function(e,n){var i=n.audio
if(i.excludeIOS11&&navigator.userAgent.match(/OS 11.+Version\/11.+Safari/))return e(n.EXCLUDED)
var r=window.OfflineAudioContext||window.webkitOfflineAudioContext
if(null==r)return e(n.NOT_AVAILABLE)
var o=new r(1,44100,44100),a=o.createOscillator()
a.type="triangle",a.frequency.setValueAtTime(1e4,o.currentTime)
var s=o.createDynamicsCompressor()
t.each([["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]],(function(e){void 0!==s[e[0]]&&"function"==typeof s[e[0]].setValueAtTime&&s[e[0]].setValueAtTime(e[1],o.currentTime)})),a.connect(s),s.connect(o.destination),a.start(0),o.startRendering()
var c=setTimeout((function(){return o.oncomplete=function(){},o=null,e("audioTimeout")}),i.timeout)
o.oncomplete=function(t){var n
try{clearTimeout(c),n=t.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce((function(e,t){return e+Math.abs(t)}),0).toString(),a.disconnect(),s.disconnect()}catch(t){return void e(t)}e(n)}}},{key:"UserAgent",value:function(e){e(navigator.userAgent)}},{key:"webdriver",value:function(e,t){e(void 0===navigator.webdriver||null===navigator.webdriver?t.NOT_AVAILABLE:navigator.webdriver)}},{key:"languageKey",value:function(e,t){e(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||t.NOT_AVAILABLE)}},{key:"colorDepthKey",value:function(e,t){e(window.screen.colorDepth||t.NOT_AVAILABLE)}},{key:"deviceMemoryKey",value:function(e,t){var n=navigator.deviceMemory||t.NOT_AVAILABLE
n!==t.NOT_AVAILABLE&&(n+=" GB"),e(n)}},{key:"pixelDepthKey",value:function(e,t){e(window.screen.pixelDepth||t.NOT_AVAILABLE)}},{key:"pixelRatioKey",value:function(e,t){e(window.devicePixelRatio||t.NOT_AVAILABLE)}},{key:"screenResolutionKey",value:function(e,n){e(t.getScreenResolution(n))}},{key:"screenOrientationKey",value:function(e,t){if(t.screen.detectScreenOrientation){var n={}
n.Enabled=void 0!==screen.orientation,n.Orientation=screen.msOrientation||screen.mozOrientation||(screen.orientation||{}).type,e(n)}else e(t.EXCLUDED)}},{key:"getScreenResolution",value:function(){return{w:window.screen.width,h:window.screen.height}}},{key:"availableScreenResolutionKey",value:function(e,n){e(t.getAvailableScreenResolution(n))}},{key:"getAvailableScreenResolution",value:function(e){return window.screen.availWidth&&window.screen.availHeight?{w:window.screen.availWidth,h:window.screen.availHeight}:e.NOT_AVAILABLE}},{key:"timezoneOffset",value:function(e){e((new Date).getTimezoneOffset()/60)}},{key:"timezone",value:function(e,t){window.Intl&&window.Intl.DateTimeFormat?e((new window.Intl.DateTimeFormat).resolvedOptions().timeZone):e(t.NOT_AVAILABLE)}},{key:"sessionStorageKey",value:function(e,n){e(t.hasSessionStorage(n))}},{key:"localStorageKey",value:function(e,n){e(t.hasLocalStorage(n))}},{key:"indexedDbKey",value:function(e,n){e(t.hasIndexedDB(n))}},{key:"addBehaviorKey",value:function(e){e(!(!document.body||!document.body.addBehavior))}},{key:"openDatabaseKey",value:function(e){e(!!window.openDatabase)}},{key:"cpuClassKey",value:function(e,n){e(t.getNavigatorCpuClass(n))}},{key:"oscpuKey",value:function(e,t){e(navigator.oscpu||t.NOT_AVAILABLE)}},{key:"appNameKey",value:function(e,t){e(navigator.appName||t.NOT_AVAILABLE)}},{key:"appVersionKey",value:function(e,t){e(navigator.appVersion||t.NOT_AVAILABLE)}},{key:"appCodeNameKey",value:function(e,t){e(navigator.appCodeName||t.NOT_AVAILABLE)}},{key:"seedKey",value:function(e,t){e(Date.now())}},{key:"platformKey",value:function(e,n){e(t.getNavigatorPlatform(n))}},{key:"productKey",value:function(e,t){e(navigator.product||t.NOT_AVAILABLE)}},{key:"productSubKey",value:function(e,t){e(navigator.productSub||t.NOT_AVAILABLE)}},{key:"vendorKey",value:function(e,t){e(navigator.vendor||t.NOT_AVAILABLE)}},{key:"vendorSubKey",value:function(e,t){e(navigator.vendorSub||t.NOT_AVAILABLE)}},{key:"doNotTrackKey",value:function(e,n){e(t.getDoNotTrack(n))}},{key:"incognitoKey",value:function(e,n){var i=t.getBrowserNameAndVersion().split(" "),r=i[0],o=i[1],a=n.NOT_AVAILABLE
if("Chrome"===r)if(parseInt(o)<=74){var s=window.RequestFileSystem||window.webkitRequestFileSystem
s?s(window.TEMPORARY,100,(function(t){e(!1)}),(function(t){e(!0)})):e(a)}else"storage"in navigator&&"estimate"in navigator.storage?navigator.storage.estimate().then((function(t){var n=t.quota
e(a=n<125829120)})):e(a)
else if("Safari"===r){if(a=!1,window.safariIncognito)a=!0
else{try{window.openDatabase(null,null,null,null)}catch(e){a=!0}try{window.localStorage.setItem("test",1)}catch(e){a=!0}}void 0===a&&(a=!1,window.localStorage.removeItem("test")),e(a)}else if("Firefox"===r){var c=indexedDB.open("test")
c.onerror=function(){e(!0)},c.onsuccess=function(){e(!1)}}else e("IE"===r||"EDGE"===r?!window.indexedDB&&(window.PointerEvent||window.MSPointerEvent):a)}},{key:"getBrowserNameAndVersion",value:function(){var e,t=navigator.userAgent,n=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[]
return/trident/i.test(n[1])?"IE "+((e=/\brv[ :]+(\d+)/g.exec(t)||[])[1]||""):"Chrome"===n[1]&&null!=(e=t.match(/\b(OPR|Edge)\/(\d+)/))?e.slice(1).join(" ").replace("OPR","Opera"):(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(e=t.match(/version\/(\d+)/i))&&n.splice(1,1,e[1]),n.join(" "))}},{key:"canvasKey",value:function(e,n){t.isCanvasSupported()?e(t.getCanvasFp(n)):e(n.NOT_AVAILABLE)}},{key:"webglKey",value:function(e,n){t.isWebGlSupported()?e(t.getWebglFp(n)):e(n.NOT_AVAILABLE)}},{key:"javascriptsKey",value:function(e,t){if(void 0===document.scripts||null===document.scripts)return e(t.NOT_AVAILABLE)
e([])}},{key:"locationKey",value:function(e,t){e({hash:location.hash||t.NOT_AVAILABLE,host:location.host||t.NOT_AVAILABLE,hostname:location.hostname||t.NOT_AVAILABLE,href:location.href||t.NOT_AVAILABLE,origin:location.origin||t.NOT_AVAILABLE,pathname:location.pathname||t.NOT_AVAILABLE,port:location.port||t.NOT_AVAILABLE,protocol:location.protocol||t.NOT_AVAILABLE})}},{key:"signalsKey",value:function(e){e(t.getSignals())}},{key:"getSignals",value:function(){var e={adBlockInstalled:function(){return t.getAdBlock()},liedLanguages:function(){return t.getHasLiedLanguages()},liedResolution:function(){return t.getHasLiedResolution()},liedOS:function(){return t.getHasLiedOs()},liedBrowser:function(){return t.getHasLiedBrowser()}},n={}
for(var i in e)if(e.hasOwnProperty(i)){var r=e[i]
n[i]=r(i)}return n}},{key:"flashFontsKey",value:function(e,n){return t.hasSwfObjectLoaded()?t.hasMinFlashInstalled()?n.fonts.swfPath?void t.loadSwfAndDetectFonts((function(t){e(t)}),n):e("missing options.fonts.swfPath"):e("flash not installed"):e("swf object not loaded")}},{key:"jsFontsKey",value:function(t,n){var i=["monospace","sans-serif","serif"],r=["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","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","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 Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"]
void 0!==n.fonts&&void 0!==n.fonts.extendedJsFonts&&(r=r.concat(n.fonts.extendedJsFonts)),void 0!==n.fonts&&void 0!==n.fonts.userDefinedFonts&&(r=r.concat(n.fonts.userDefinedFonts)),r=r.filter((function(e,t){return r.indexOf(e)===t}))
var o=document.getElementsByTagName("body")[0],a=document.createElement("div"),s=document.createElement("div"),c={},l={},u=function(){var e=document.createElement("span")
return e.style.position="absolute",e.style.left="-9999px",e.style.fontSize="72px",e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="normal",e.style.lineBreak="auto",e.style.lineHeight="normal",e.style.textTransform="none",e.style.textAlign="left",e.style.textDecoration="none",e.style.textShadow="none",e.style.whiteSpace="normal",e.style.wordBreak="normal",e.style.wordSpacing="normal",e.textContent="mmmmmmmmmmlli",e},d=function(e,t){var n=u()
return n.style.fontFamily="'"+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].offsetHeight!==l[i[n]])return t
return t},p=function(){for(var e=[],t=0,n=i.length;t<n;t++){var r=u()
r.style.fontFamily=i[t],a.appendChild(r),e.push(r)}return e}()
o.appendChild(a)
for(var h=0,g=i.length;h<g;h++)c[i[h]]=p[h].offsetWidth,l[i[h]]=p[h].offsetHeight
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.appendChild(l),o.push(l)}e[r[t]]=o}return e}()
o.appendChild(s)
for(var v=[],y=0,b=r.length;y<b;y++)f(m[r[y]])&&v.push(r[y])
o.removeChild(s),o.removeChild(a)
var E={}
E.fontsHash=e.x64hash128(v.join(),23),n.fonts.hashOnly||(E.lists=v),t(E)}},{key:"mimetypesComponent",value:function(e,t){if(void 0!==navigator.mimeTypes&&null!==navigator.mimeTypes){for(var n=navigator.mimeTypes,i=[],r=0;r<n.length;r++){var o={}
o.type=n[r].type,o.suffixes=n[r].suffixes,o.description=n[r].description,i.push(o)}e(i)}else e(t.NOT_AVAILABLE)}},{key:"pluginsComponent",value:function(e,n){t.isIE()?n.plugins.excludeIE?e(n.EXCLUDED):e(t.getIEPlugins(n)):e(t.getRegularPlugins(n))}},{key:"getRegularPlugins",value:function(e){if(void 0===navigator.plugins||null===navigator.plugins)return e.NOT_AVAILABLE
for(var n=[],i=0,r=navigator.plugins.length;i<r;i++)navigator.plugins[i]&&n.push(navigator.plugins[i])
return n.length>0&&t.pluginsShouldBeSorted(e)&&(n=n.sort((function(e,t){return e.name>t.name?1:e.name<t.name?-1:0}))),t.map(n,(function(e){var n=t.map(e,(function(e){return[e.type,e.suffixes]}))
return[e.name,e.description,n]}))}},{key:"getIEPlugins",value:function(e){var n=[]
return Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window?n=t.map(["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","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","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"],(function(t){try{return new window.ActiveXObject(t),t}catch(t){return e.ERROR}})):n.push(e.NOT_AVAILABLE),navigator.plugins&&(n=n.concat(t.getRegularPlugins(e))),n}},{key:"pluginsShouldBeSorted",value:function(e){for(var t=!1,n=0,i=e.plugins.sortPluginsFor.length;n<i;n++){var r=e.plugins.sortPluginsFor[n]
if(navigator.userAgent.match(r)){t=!0
break}}return t}},{key:"batteryKey",value:function(e,t){void 0!==navigator.getBattery?navigator.getBattery().then((function(t){var n={}
n.level=t.level,n.charging=t.charging,n.chargingTime=t.chargingTime,n.dischargingTime=t.dischargingTime,e(n)})):e(t.NOT_AVAILABLE)}},{key:"networkInfoKey",value:function(e,t){var n=navigator.connection
e(void 0!==n?{downlink:n.downlink,downlinkMax:n.downlinkMax,type:n.type,effectiveType:n.effectiveType,rtt:n.rtt,saveData:n.saveData}:t.NOT_AVAILABLE)}},{key:"touchSupportKey",value:function(e){e(t.getTouchSupport())}},{key:"hardwareConcurrencyKey",value:function(e,n){e(t.getHardwareConcurrency(n))}},{key:"hasSessionStorage",value:function(e){try{return!!window.sessionStorage}catch(t){return e.ERROR}}},{key:"hasLocalStorage",value:function(e){try{return!!window.localStorage}catch(t){return e.ERROR}}},{key:"hasIndexedDB",value:function(e){try{return!!window.indexedDB}catch(t){return e.ERROR}}},{key:"getHardwareConcurrency",value:function(e){return navigator.hardwareConcurrency?navigator.hardwareConcurrency:e.NOT_AVAILABLE}},{key:"getNavigatorCpuClass",value:function(e){return navigator.cpuClass||e.NOT_AVAILABLE}},{key:"getNavigatorPlatform",value:function(e){return navigator.platform?navigator.platform:e.NOT_AVAILABLE}},{key:"getDoNotTrack",value:function(e){return navigator.doNotTrack?navigator.doNotTrack:navigator.msDoNotTrack?navigator.msDoNotTrack:window.doNotTrack?window.doNotTrack:e.NOT_AVAILABLE}},{key:"getTouchSupport",value:function(){var e,t=0
void 0!==navigator.maxTouchPoints?t=navigator.maxTouchPoints:void 0!==navigator.msMaxTouchPoints&&(t=navigator.msMaxTouchPoints)
try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return{maxTouchPoints:t,touchEvent:e,touchStart:"ontouchstart"in window}}},{key:"getCanvasFp",value:function(t){var n={},i=document.createElement("canvas")
i.width=2e3,i.height=200,i.style.display="inline"
var r=i.getContext("2d")
return r.rect(0,0,10,10),r.rect(2,2,6,6),n.canvasWinding=!1===r.isPointInPath(5,5,"evenodd")?"yes":"no",r.textBaseline="alphabetic",r.fillStyle="#f60",r.fillRect(125,1,62,20),r.fillStyle="#069",t.dontUseFakeFontInCanvas?r.font="11pt Arial":r.font="11pt no-real-font-123",r.fillText("Cwm fjordbank glyphs vext quiz, 😃",2,15),r.fillStyle="rgba(102, 204, 0, 0.2)",r.font="18pt Arial",r.fillText("Cwm fjordbank glyphs vext quiz, 😃",4,45),r.globalCompositeOperation="multiply",r.fillStyle="rgb(255,0,255)",r.beginPath(),r.arc(50,50,50,0,2*Math.PI,!0),r.closePath(),r.fill(),r.fillStyle="rgb(0,255,255)",r.beginPath(),r.arc(100,50,50,0,2*Math.PI,!0),r.closePath(),r.fill(),r.fillStyle="rgb(255,255,0)",r.beginPath(),r.arc(75,100,50,0,2*Math.PI,!0),r.closePath(),r.fill(),r.fillStyle="rgb(255,0,255)",r.arc(75,75,75,0,2*Math.PI,!0),r.arc(75,75,25,0,2*Math.PI,!0),r.fill("evenodd"),i.toDataURL&&(n.canvasHash=e.x64hash128(i.toDataURL(),23)),n}},{key:"getWebglFp",value:function(n){var i,r=function(e){return i.clearColor(0,0,0,1),i.enable(i.DEPTH_TEST),i.depthFunc(i.LEQUAL),i.clear(i.COLOR_BUFFER_BIT|i.DEPTH_BUFFER_BIT),"["+e[0]+", "+e[1]+"]"}
if(!(i=t.getWebglCanvas()))return null
var o={},a=i.createBuffer()
i.bindBuffer(i.ARRAY_BUFFER,a)
var s=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0])
i.bufferData(i.ARRAY_BUFFER,s,i.STATIC_DRAW),a.itemSize=3,a.numItems=3
var c=i.createProgram(),l=i.createShader(i.VERTEX_SHADER)
i.shaderSource(l,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}"),i.compileShader(l)
var u=i.createShader(i.FRAGMENT_SHADER)
i.shaderSource(u,"precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}"),i.compileShader(u),i.attachShader(c,l),i.attachShader(c,u),i.linkProgram(c),i.useProgram(c),c.vertexPosAttrib=i.getAttribLocation(c,"attrVertex"),c.offsetUniform=i.getUniformLocation(c,"uniformOffset"),i.enableVertexAttribArray(c.vertexPosArray),i.vertexAttribPointer(c.vertexPosAttrib,a.itemSize,i.FLOAT,!1,0,0),i.uniform2f(c.offsetUniform,1,1),i.drawArrays(i.TRIANGLE_STRIP,0,a.numItems)
try{o.webglHash=e.x64hash128(i.canvas.toDataURL(),23)}catch(e){}if(n.webgl.hashOnly)return o
o.vendorAndRenderer=t.getWebglVendorAndRenderer(),o.extensions=i.getSupportedExtensions()||[],o["webgl aliased line width range"]=r(i.getParameter(i.ALIASED_LINE_WIDTH_RANGE)),o["webgl aliased point size range"]=r(i.getParameter(i.ALIASED_POINT_SIZE_RANGE)),o["webgl alpha bits"]=i.getParameter(i.ALPHA_BITS),o["webgl antialiasing"]=i.getContextAttributes().antialias?"yes":"no",o["webgl blue bits"]=i.getParameter(i.BLUE_BITS),o["webgl depth bits"]=i.getParameter(i.DEPTH_BITS),o["webgl green bits"]=i.getParameter(i.GREEN_BITS),o["webgl max anisotropy"]=function(e){var t=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")
if(t){var n=e.getParameter(t.MAX_TEXTURE_MAX_ANISOTROPY_EXT)
return 0===n&&(n=2),n}return null}(i),o["webgl max combined texture image units"]=i.getParameter(i.MAX_COMBINED_TEXTURE_IMAGE_UNITS),o["webgl max cube map texture size"]=i.getParameter(i.MAX_CUBE_MAP_TEXTURE_SIZE),o["webgl max fragment uniform vectors"]=i.getParameter(i.MAX_FRAGMENT_UNIFORM_VECTORS),o["webgl max render buffer size"]=i.getParameter(i.MAX_RENDERBUFFER_SIZE),o["webgl max texture image units"]=i.getParameter(i.MAX_TEXTURE_IMAGE_UNITS),o["webgl max texture size"]=i.getParameter(i.MAX_TEXTURE_SIZE),o["webgl max varying vectors"]=i.getParameter(i.MAX_VARYING_VECTORS),o["webgl max vertex attribs"]=i.getParameter(i.MAX_VERTEX_ATTRIBS),o["webgl max vertex texture image units"]=i.getParameter(i.MAX_VERTEX_TEXTURE_IMAGE_UNITS),o["webgl max vertex uniform vectors"]=i.getParameter(i.MAX_VERTEX_UNIFORM_VECTORS),o["webgl max viewport dims"]=r(i.getParameter(i.MAX_VIEWPORT_DIMS)),o["webgl red bits"]=i.getParameter(i.RED_BITS),o["webgl renderer"]=i.getParameter(i.RENDERER),o["webgl shading language version"]=i.getParameter(i.SHADING_LANGUAGE_VERSION),o["webgl stencil bits"]=i.getParameter(i.STENCIL_BITS),o["webgl vendor"]=i.getParameter(i.VENDOR),o["webgl version"]=i.getParameter(i.VERSION)
try{var d=i.getExtension("WEBGL_debug_renderer_info")
d&&(o["webgl unmasked vendor"]=i.getParameter(d.UNMASKED_VENDOR_WEBGL),o["webgl unmasked renderer"]=i.getParameter(d.UNMASKED_RENDERER_WEBGL))}catch(e){}return i.getShaderPrecisionFormat?(t.each(["FLOAT","INT"],(function(e){t.each(["VERTEX","FRAGMENT"],(function(n){t.each(["HIGH","MEDIUM","LOW"],(function(r){t.each(["precision","rangeMin","rangeMax"],(function(t){var a=i.getShaderPrecisionFormat(i[n+"_SHADER"],i[r+"_"+e])[t]
"precision"!==t&&(t="precision "+t)
var s=["webgl ",n.toLowerCase()," shader ",r.toLowerCase()," ",e.toLowerCase()," ",t].join("")
o[s]=a}))}))}))})),o):o}},{key:"getWebglVendorAndRenderer",value:function(){try{var e=t.getWebglCanvas(),n=e.getExtension("WEBGL_debug_renderer_info")
return e.getParameter(n.UNMASKED_VENDOR_WEBGL)+"~"+e.getParameter(n.UNMASKED_RENDERER_WEBGL)}catch(e){return null}}},{key:"getAdBlock",value:function(){var e=document.createElement("div")
e.innerHTML="&nbsp;",e.className="adsbox"
var t=!1
try{document.body.appendChild(e),t=0===document.getElementsByClassName("adsbox")[0].offsetHeight,document.body.removeChild(e)}catch(e){t=!1}return t}},{key:"getHasLiedLanguages",value:function(){if(void 0!==navigator.languages)try{if(navigator.languages[0].substr(0,2)!==navigator.language.substr(0,2))return!0}catch(e){return!0}return!1}},{key:"getHasLiedResolution",value:function(){return window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight}},{key:"getHasLiedOs",value:function(){var e,t=navigator.userAgent.toLowerCase(),n=navigator.oscpu,i=navigator.platform.toLowerCase()
if(e=t.indexOf("windows phone")>=0?"Windows Phone":t.indexOf("win")>=0?"Windows":t.indexOf("android")>=0?"Android":t.indexOf("linux")>=0||t.indexOf("cros")>=0?"Linux":t.indexOf("iphone")>=0||t.indexOf("ipad")>=0?"iOS":t.indexOf("mac")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows Phone"!==e&&"Android"!==e&&"iOS"!==e&&"Other"!==e)return!0
if(void 0!==n){if((n=n.toLowerCase()).indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e)return!0
if(n.indexOf("linux")>=0&&"Linux"!==e&&"Android"!==e)return!0
if(n.indexOf("mac")>=0&&"Mac"!==e&&"iOS"!==e)return!0
if((-1===n.indexOf("win")&&-1===n.indexOf("linux")&&-1===n.indexOf("mac"))!=("Other"===e))return!0}return i.indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e||(i.indexOf("linux")>=0||i.indexOf("android")>=0||i.indexOf("pike")>=0)&&"Linux"!==e&&"Android"!==e||(i.indexOf("mac")>=0||i.indexOf("ipad")>=0||i.indexOf("ipod")>=0||i.indexOf("iphone")>=0)&&"Mac"!==e&&"iOS"!==e||(i.indexOf("win")<0&&i.indexOf("linux")<0&&i.indexOf("mac")<0&&i.indexOf("iphone")<0&&i.indexOf("ipad")<0)!=("Other"===e)||void 0===navigator.plugins&&"Windows"!==e&&"Windows Phone"!==e}},{key:"getHasLiedBrowser",value:function(){var e,t=navigator.userAgent.toLowerCase(),n=navigator.productSub
if(("Chrome"==(e=t.indexOf("firefox")>=0?"Firefox":t.indexOf("opera")>=0||t.indexOf("opr")>=0?"Opera":t.indexOf("chrome")>=0?"Chrome":t.indexOf("safari")>=0?"Safari":t.indexOf("trident")>=0?"Internet Explorer":"Other")||"Safari"===e||"Opera"===e)&&"20030107"!==n)return!0
var i,r=eval.toString().length
if(37===r&&"Safari"!==e&&"Firefox"!==e&&"Other"!==e)return!0
if(39===r&&"Internet Explorer"!==e&&"Other"!==e)return!0
if(33===r&&"Chrome"!==e&&"Opera"!==e&&"Other"!==e)return!0
try{throw"a"}catch(t){try{t.toSource(),i=!0}catch(t){i=!1}}return i&&"Firefox"!==e&&"Other"!==e}},{key:"isCanvasSupported",value:function(){var e=document.createElement("canvas")
return!(!e.getContext||!e.getContext("2d"))}},{key:"isWebGlSupported",value:function(){if(!t.isCanvasSupported())return!1
var e=t.getWebglCanvas()
return!!window.WebGLRenderingContext&&!!e}},{key:"isIE",value:function(){return"Microsoft Internet Explorer"===navigator.appName||!("Netscape"!==navigator.appName||!/Trident/.test(navigator.userAgent))}},{key:"hasSwfObjectLoaded",value:function(){return void 0!==window.swfobject}},{key:"hasMinFlashInstalled",value:function(){return window.swfobject.hasFlashPlayerVersion("9.0.0")}},{key:"addFlashDivNode",value:function(e){var t=document.createElement("div")
t.setAttribute("id",e.fonts.swfContainerId),document.body.appendChild(t)}},{key:"loadSwfAndDetectFonts",value:function(e,n){window.___fp_swf_loaded=function(t){e(t)}
var i=n.fonts.swfContainerId
t.addFlashDivNode(),window.swfobject.embedSWF(n.fonts.swfPath,i,"1","1","9.0.0",!1,{onReady:"___fp_swf_loaded"},{allowScriptAccess:"always",menu:"false"},{})}},{key:"getWebglCanvas",value:function(){var e=document.createElement("canvas"),t=null
try{t=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}return t||(t=null),t}}]),t}(),n={getItem:function(e){var t=this.getCookieString().match(this._cookieRegEx(e))
return t?t[1].replace(/^"(.*)"$/,"$1"):""},getBcookie:function(){try{for(var e=document.cookie.split(/\s*;\s*/),t=0;t<e.length;t++){var n=e[t].split("=")
if(n.length>1&&"bcookie"===n[0]){var i=n[n.length-1]
return i.substring(2,i.length-1)}}}catch(e){return""}return""},setItem:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.getDomain(),r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"/"
if(n){var o=["".concat(e,"=").concat(t,"; path=").concat(r,"; secure=true")]
"string"==typeof i&&i.length>0&&o.push("domain="+i),o.push("expires="+(n instanceof Date?n.toUTCString():n)),document.cookie=o.join("; ")}},deleteItem:function(e){this.setItem(e,"",new Date(0)),this.setItem(e,"",new Date(0),"")
var t=this.getDomain().split(".")
t.length>2&&(t=t.slice(t.length-2))
var n=t.join(".")
this.setItem(e,"",new Date(0),n)},_cookieRegEx:function(e){return new RegExp(e+"=([^;]*)")},getCookieString:function(){return document.cookie},getDomain:function(){return window.location?window.location.hostname:""}},i="HUMAN",r="DFP_WEB",o="RECAPTCHA_V3_WEB"
function a(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,i=n?n.querySelector("#"+e):document.getElementById(e)
if(i){var r=i.firstChild.nodeValue
if(t&&i.parentNode.removeChild(i),r)try{return JSON.parse(r)}catch(e){return}}}function s(e,t,n){var i=new XMLHttpRequest,r=n?"https://www.linkedin.com":"https://www.linkedin-ei.com"
r+=String(t),i.open("POST",r),i.setRequestHeader("Content-Type","application/json"),i.send(e)}function c(e){var t=document.getElementsByClassName(e)
return void 0!==t&&t.length>=1}var l=function(){function e(){x(this,e)}return N(e,null,[{key:"str2ab",value:function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),i=0,r=e.length;i<r;i++)n[i]=e.charCodeAt(i)
return t}},{key:"encode",value:function(e){return window.btoa(String.fromCharCode.apply(null,e))}},{key:"importPk",value:function(t,n,i){var r=window.atob(n),o=e.str2ab(r)
return window.crypto.subtle.importKey(t,o,{name:"RSA-OAEP",hash:"SHA-256"},!0,i)}},{key:"wrap",value:function(t,n){return e.importPk("spki",n,["wrapKey"]).then((function(e){return window.crypto.subtle.wrapKey("raw",t,e,{name:"RSA-OAEP"})})).then((function(t){return e.encode(new Uint8Array(t))}))}},{key:"wrapErrorResult",value:function(e){var t={a:null,b:null,c:null}
return t.error=e,t}},{key:"encryptWithKey",value:function(t,n,i){var r={a:null,b:null,c:null}
try{var o=Date.now()
if("string"!=typeof n||"number"!=typeof i)throw new Error("ec1")
var a=window.crypto.getRandomValues(new Uint8Array(16))
r.a=e.encode(a)
var s=(new TextEncoder).encode(t),c="AES-CBC"
return window.crypto.subtle.generateKey({name:c,length:256},!0,["encrypt","decrypt"]).then((function(t){return window.crypto.subtle.encrypt({name:c,iv:a},t,s).then((function(a){return e.wrap(t,n).then((function(t){return r.b=t,r.c=e.encode(new Uint8Array(a)),r.d=Date.now()-o,r.e=i,r}))}))})).catch((function(e){return r.error=String(e),r}))}catch(t){return r.error=String(t),Promise.resolve(r)}}},{key:"encryptWithKeyIds",value:function(t,n,i,r){if("string"!=typeof n||"string"!=typeof i)return Promise.resolve(e.wrapErrorResult("Error: ec2"))
var o=a(n),s=parseInt(a(i))
return(""===o||"string"!=typeof o||"number"!=typeof s||Number.isNaN(s))&&(o=r?"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",s=r?2:1),e.encryptWithKey(t,o,s)}},{key:"encryptWithKeyFromDifferentSources",value:function(t,n,i,r,o){return null!=r&&"string"==typeof r.publicKey&&"number"==typeof r.publicKeyVersion?e.encryptWithKey(t,r.publicKey,r.publicKeyVersion):e.encryptWithKeyIds(t,n,i,o)}},{key:"uuidv4",value:function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){return(e^window.crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)}))}},{key:"generateSha256HashOrDefault",value:function(e){var t=(new TextEncoder).encode(e)
return crypto.subtle.digest("SHA-256",t).then((function(e){return Array.from(new Uint8Array(e)).map((function(e){return("00"+e.toString(16)).slice(-2)})).join("")})).catch((function(){return""}))}}]),e}(),u=function(){var e={compressToBase64:function(t){if(null==t)return""
var n=e._compress(t,6,(function(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e)}))
switch(n.length%4){default:case 0:return n
case 1:return n+"==="
case 2:return n+"=="
case 3:return n+"="}},_compress:function(e,t,n){if(null==e)return""
var i,r,o,a={},s={},c="",l="",u="",d=2,f=3,p=2,h=[],g=0,m=0
for(o=0;o<e.length;o+=1)if(c=e.charAt(o),Object.prototype.hasOwnProperty.call(a,c)||(a[c]=f++,s[c]=!0),l=u+c,Object.prototype.hasOwnProperty.call(a,l))u=l
else{if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(i=0;i<p;i++)g<<=1,m==t-1?(m=0,h.push(n(g)),g=0):m++
for(r=u.charCodeAt(0),i=0;i<8;i++)g=g<<1|1&r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r>>=1}else{for(r=1,i=0;i<p;i++)g=g<<1|r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r=0
for(r=u.charCodeAt(0),i=0;i<16;i++)g=g<<1|1&r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r>>=1}0==--d&&(d=Math.pow(2,p),p++),delete s[u]}else for(r=a[u],i=0;i<p;i++)g=g<<1|1&r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r>>=1
0==--d&&(d=Math.pow(2,p),p++),a[l]=f++,u=String(c)}if(""!==u){if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(i=0;i<p;i++)g<<=1,m==t-1?(m=0,h.push(n(g)),g=0):m++
for(r=u.charCodeAt(0),i=0;i<8;i++)g=g<<1|1&r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r>>=1}else{for(r=1,i=0;i<p;i++)g=g<<1|r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r=0
for(r=u.charCodeAt(0),i=0;i<16;i++)g=g<<1|1&r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r>>=1}0==--d&&(d=Math.pow(2,p),p++),delete s[u]}else for(r=a[u],i=0;i<p;i++)g=g<<1|1&r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r>>=1
0==--d&&(d=Math.pow(2,p),p++)}for(r=2,i=0;i<p;i++)g=g<<1|1&r,m==t-1?(m=0,h.push(n(g)),g=0):m++,r>>=1
for(;;){if(g<<=1,m==t-1){h.push(n(g))
break}m++}return h.join("")}}
return e}(),d={apfcTypes:1,collectionType:2,trackingId:3},f={protocol:1,hostname:2,port:3,origin:4,host:5,href:6,hash:7,pathname:8},p={saveData:1,effectiveType:2,rtt:3,downlink:4,downlinkMax:5,type:6},h={liedOS:1,liedBrowser:2,liedResolution:3,adBlockInstalled:4,liedLanguages:5},g={type:1,description:2,suffixes:3},m={canvasHash:1,canvasWinding:2},v={label:1,gid:2,id:3,kind:4},y={lists:1,fontsHash:2},b={Orientation:1,Enabled:2},E={charging:1,dischargingTime:2,level:3,chargingTime:4},_={touchStart:1,touchEvent:2,maxTouchPoints:3},k={"webgl stencil bits":1,"webgl vertex shader high float precision rangeMax":2,"webgl antialiasing":3,"webgl max vertex texture image units":4,"webgl fragment shader medium int precision rangeMax":5,"webgl fragment shader low int precision rangeMin":6,"webgl max vertex uniform vectors":7,"webgl renderer":8,"webgl vertex shader high float precision":9,"webgl green bits":10,"webgl fragment shader medium int precision rangeMin":11,"webgl fragment shader low int precision rangeMax":12,"webgl fragment shader medium int precision":13,"webgl blue bits":14,"webgl max viewport dims":15,"webgl unmasked vendor":16,"webgl vertex shader medium float precision":17,"webgl fragment shader low int precision":18,"webgl vertex shader high int precision":19,"webgl vertex shader medium int precision rangeMax":20,"webgl unmasked renderer":21,"webgl fragment shader high int precision":22,"webgl aliased point size range":23,"webgl vertex shader medium float precision rangeMax":24,"webgl vertex shader low int precision rangeMax":25,"webgl fragment shader low float precision":26,"webgl fragment shader high int precision rangeMin":27,"webgl vertex shader high float precision rangeMin":28,"webgl red bits":29,vendorAndRenderer:30,"webgl vertex shader medium int precision rangeMin":31,"webgl vertex shader low float precision":32,"webgl vertex shader medium int precision":33,"webgl fragment shader medium float precision rangeMax":34,"webgl max texture image units":35,"webgl vertex shader medium float precision rangeMin":36,"webgl fragment shader high float precision rangeMin":37,"webgl fragment shader high int precision rangeMax":38,"webgl vertex shader high int precision rangeMax":39,webglHash:40,"webgl max varying vectors":41,"webgl fragment shader medium float precision rangeMin":42,"webgl vertex shader low int precision":43,"webgl fragment shader low float precision rangeMin":44,"webgl aliased line width range":45,"webgl max combined texture image units":46,"webgl shading language version":47,"webgl vertex shader high int precision rangeMin":48,"webgl max anisotropy":49,"webgl max render buffer size":50,"webgl vendor":51,"webgl vertex shader low int precision rangeMin":52,"webgl max fragment uniform vectors":53,"webgl fragment shader high float precision rangeMax":54,"webgl version":55,"webgl fragment shader high float precision":56,"webgl max texture size":57,"webgl max cube map texture size":58,"webgl fragment shader medium float precision":59,"webgl vertex shader low float precision rangeMin":60,"webgl max vertex attribs":61,"webgl alpha bits":62,"webgl vertex shader low float precision rangeMax":63,"webgl fragment shader low float precision rangeMax":64,"webgl depth bits":65,extensions:66},T={ANGLE_instanced_arrays:67,EXT_blend_minmax:68,EXT_clip_control:69,EXT_color_buffer_float:70,EXT_color_buffer_half_float:71,EXT_conservative_depth:72,EXT_depth_clamp:73,EXT_disjoint_timer_query:74,EXT_disjoint_timer_query_webgl2:75,EXT_float_blend:76,EXT_frag_depth:77,EXT_polygon_offset_clamp:78,EXT_render_snorm:79,EXT_shader_texture_lod:80,EXT_texture_compression_bptc:81,EXT_texture_compression_rgtc:82,EXT_texture_filter_anisotropic:83,EXT_texture_mirror_clamp_to_edge:84,EXT_texture_norm16:85,EXT_sRGB:86,KHR_parallel_shader_compile:87,NV_shader_noperspective_interpolation:88,OES_draw_buffers_indexed:89,OES_element_index_uint:90,OES_fbo_render_mipmap:91,OES_sample_variables:92,OES_shader_multisample_interpolation:93,OVR_multiview2:94,OES_standard_derivatives:95,OES_texture_float:96,OES_texture_float_linear:97,OES_texture_half_float:98,OES_texture_half_float_linear:99,OES_vertex_array_object:100,WEBGL_blend_func_extended:101,WEBGL_clip_cull_distance:102,WEBGL_color_buffer_float:103,WEBGL_compressed_texture_astc:104,WEBGL_compressed_texture_etc:105,WEBGL_compressed_texture_etc1:106,WEBGL_compressed_texture_pvrtc:107,WEBGL_compressed_texture_s3tc:108,WEBGL_compressed_texture_s3tc_srgb:109,WEBGL_debug_renderer_info:110,WEBGL_debug_shaders:111,WEBGL_depth_texture:112,WEBGL_draw_buffers:113,WEBGL_lose_context:114,WEBGL_multi_draw:115,WEBGL_polygon_mode:116,WEBGL_provoking_vertex:117,WEBGL_render_shared_exponent:118,WEBGL_stencil_texturing:119},S={"American Typewriter":1,"Andale Mono":2,Arial:3,"Arial Black":4,"Arial Hebrew":5,"Arial Narrow":6,"Arial Rounded MT Bold":7,"Arial Unicode MS":8,Avenir:9,"Avenir Next":10,"Avenir Next Condensed":11,Bahnschrift:12,Baskerville:13,"Big Caslon":14,"Bodoni 72":15,"Bodoni 72 Oldstyle":16,"Bodoni 72 Smallcaps":17,"Bradley Hand":18,"Brush Script MT":19,Calibri:20,Cambria:21,"Cambria Math":22,Candara:23,Chalkboard:24,"Chalkboard SE":25,Chalkduster:26,Charter:27,Cochin:28,"Comic Sans MS":29,Consolas:30,Constantia:31,Corbel:32,Copperplate:33,Courier:34,"Courier New":35,Didot:36,"DIN Alternate":37,"DIN Condensed":38,Ebrima:39,"Franklin Gothic Medium":40,Futura:41,Gabriola:42,Gadugi:43,Geneva:44,Georgia:45,"Gill Sans":46,Helvetica:47,"Helvetica Neue":48,Herculanum:49,"Hoefler Text":50,"HoloLens MDL2 Assets":51,Impact:52,"Ink Free":53,"Javanese Text":54,"Leelawadee UI":55,"Lucida Console":56,"LUCIDA GRANDE":57,"Lucida Grande":58,"Lucida Sans Unicode":59,Luminari:60,"Malgun Gothic":61,"Marker Felt":62,Marlett:63,Menlo:64,"Microsoft Himalaya":65,"Microsoft JhengHei":66,"Microsoft New Tai Lue":67,"Microsoft PhagsPa":68,"Microsoft Sans Serif":69,"Microsoft Tai Le":70,"Microsoft YaHei":71,"Microsoft Yi Baiti":72,"MingLiU-ExtB":73,Monaco:74,"Mongolian Baiti":75,"MS Gothic":76,"MV Boli":77,"Myanmar Text":78,"Nirmala UI":79,Noteworthy:80,Optima:81,Palatino:82,"Palatino Linotype":83,Papyrus:84,Phosphate:85,Rockwell:86,"Savoye LET":87,"Segoe MDL2 Assets":88,"Segoe Print":89,"Segoe Script":90,"Segoe UI":91,"Segoe UI Historic":92,"Segoe UI Emoji":93,"Segoe UI Symbol":94,SignPainter:95,SimSun:96,Sitka:97,Skia:98,"Snell Roundhand":99,Sylfaen:100,Symbol:101,Tahoma:102,Times:103,"Times New Roman":104,Trattatello:105,"Trebuchet MS":106,Verdana:107,Webdings:108,Wingdings:109,"Wingdings 2":110,"Wingdings 3":111,"Yu Gothic":112,Zapfino:113},A={appVersion:1,numOfCores:2,webrtc:3,touchSupport:4,webgl:5,timezone:6,plugins:7,localStorage:8,incognito:9,language:10,appCodeName:11,battery:12,platform:13,javascripts:14,automation:15,pixelDepth:16,screenOrientation:17,availableScreenResolution:18,timezoneOffset:19,oscpu:20,fonts:21,vendor:22,sessionStorage:23,webdriver:24,audio:25,openDatabase:26,screenResolution:27,vendorSub:28,enumerateDevices:29,product:30,canvas:31,appName:32,mimetyps:33,cpuClass:34,indexedDb:35,userAgent:36,deviceMemory:37,productSub:38,addBehavior:39,signals:40,networkInfo:41,location:42,colorDepth:43,FPDataCookie:44,tsSeed:45,errors:46,pixelRatio:47}
function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(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 R,O,D=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?"),P=/^fs_/,M=/(?![^(]*\)),/,j=function e(t){var n=function(e){if("string"!=typeof e)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+w(e)+".")
var t,n,i=D.exec(e)
return i&&(t=i[1].replace(P,""),n=i[2]),{id:n,type:t}}(t),i=n.id,r=n.type,o={}
if("("===i.charAt(0)){for(var a,s=i.substring(1,i.length-1).split(M),c=0;a=s[c];++c)0===a.indexOf("urn")&&(s[c]=e(a))
i=s}return o[r]=i,o},L=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")))
return n&&n.length>1?n[1]:null},U={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},F="GUEST",B="MEMBER",G="ENTERPRISE_UNBOUND",H=(C(R={},F,"li_gc"),C(R,B,"li_mc"),C(R,G,"li_ec"),R)
C(O={},F,"mypreferences/g/guest-cookies"),C(O,B,"settings/member-cookies"),C(O,G,"mypreferences/e/enterprise-cookies")
var V,q,K,W,Y=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null
for(var o in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},U)t[o]=t[o]||0,0!==t[o]&&(this.consentAvailable=!0),this.optedInConsentMap[o]=1===t[o]||0===t[o]&&1===r},z=(V=[U.ADVERTISING,U.ANALYTICS_AND_RESEARCH,U.FUNCTIONAL],q=[0,1,2,0],K=function(e){for(var t={},n=0;n<V.length;n++)t[V[n]]=q[e>>2*n&3]
return t},W=function(e){var t=0
return e>=0&&e<=3&&(t=q[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 Y}
var r=K(parseInt(i[1],10)),o=new Date(1e3*parseInt(i[2],10)),a=W(parseInt(i[3],10))
return{error:null,consent:new Y(r,o,t,a)}},parseConsentBodyEnterpriseUnbound:function(e,t,n){var i=function(e){try{var t=j(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 Y}
var r=i.enterpriseAccountId,o=i.enterpriseProfileId,a=new RegExp(["^((?:\\d+,\\d+,\\d+,\\d+,\\d+)(?:\\|(?:\\d+,\\d+,\\d+,\\d+,\\d+))*)","(\\d+)","(\\d+)","(?:(?:.|\\s)+)$"].join(";")),s=e.match(a)
if(!s)return{error:"Invalid consent body encoding",consent:new Y}
var c=s[1].split("|").map((function(e){return e.split(",").map((function(e){return parseInt(e,10)}))})).filter((function(e){var t=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,i=!1,r=void 0
try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done)&&(t.push(o.value),4!==t.length);n=!0);}catch(e){i=!0,r=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw r}}return t}}(e)||function(e){if(e){if("string"==typeof e)return I(e,4)
var t=Object.prototype.toString.call(e).slice(8,-1)
return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?I(e,4):void 0}}(e)||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),i=t[1],a=t[2],s=t[3]
return i===r&&a===o&&s===n}))[0]
if(!c)return{error:null,consent:new Y}
var l=K(c[0]),u=new Date(1e3*parseInt(s[2],10)),d=W(parseInt(s[3],10))
return{error:null,consent:new Y(l,u,G,d)}}}),X=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),Q=function(e){var t={}
for(var n in U)t[n]=e
return{error:null,consent:new Y(t,null,null,e)}},J=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,o=null
try{o=(r=e,"undefined"==typeof atob&&"undefined"!=typeof Buffer?Buffer.from(r,"base64").toString("binary"):atob(r)).match(X)}catch(e){}if(!o)return{error:"Invalid consent encoding",consent:new Y}
var a=parseInt(o[1],10),s=o[2]
return 1===a?t===G?z.parseConsentBodyEnterpriseUnbound(s,n,i):z.parseConsentBody(s,t):{error:"Invalid encoded consent version ".concat(a),consent:new Y}},$=new Map([["/voyager/api/voyagerSocialDashNormComments","createComment"],["/signup/cold-join","createAccount"],["/signup/api/createAccount","createAccount"],["/signup/api/cors/createAccount","createAccount"]])
function Z(e){var t
try{t=new URL(e)}catch(n){t=new URL(e,window.location.origin)}return t.pathname}var ee=function(){function e(t,n){x(this,e),this.callback=t,this.config=n,this.setupInterceptorForFetch(),this.setupInterceptorForOpen()}return N(e,[{key:"setupInterceptorForFetch",value:function(){var e=window.fetch,t=this
window.fetch=function(n,i){try{var r=Z(n)
t.runActionInterceptorLogic(r)}catch(e){}return e(n,i)}}},{key:"setupInterceptorForOpen",value:function(){var e=XMLHttpRequest.prototype.open,t=XMLHttpRequest.prototype.send,n=this
XMLHttpRequest.prototype.open=function(t,n){try{this._sanitizedPath=Z(n)}catch(e){}e.apply(this,arguments)},XMLHttpRequest.prototype.send=function(e){try{n.runActionInterceptorLogic(this._sanitizedPath)}catch(e){}t.apply(this,arguments)}}},{key:"runActionInterceptorLogic",value:function(e){if(e){var t=$.get(e),n=this.callback
void 0!==t&&window.grecaptcha&&window.grecaptcha.enterprise&&window.grecaptcha.enterprise.ready&&window.grecaptcha.enterprise.execute&&window.grecaptcha.enterprise.ready((function(){var e=t||"default"
window.grecaptcha.enterprise.execute("6LcIy_MqAAAAAMKiupFSbmzW3xjGSlIfRzNWYMjC",{action:e}).then((function(t){var i={token:t,expectedAction:e}
n(o,JSON.stringify(i))})).catch((function(e){var t={error:e}
n(o,JSON.stringify(t))}))}))}}}]),e}(),te={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"apfcDf",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:void 0,hashOnly:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},webgl:{hashOnly:!1},telemetryCollectPath:"/platform-telemetry/li/apfcDf",gloablIntegrationDataCollectionPath:"/apfc/collect",extraComponents:[],excludes:{pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},debug:!1,NOT_AVAILABLE:"n/a",ERROR:"err",EXCLUDED:"excluded",useRequestIdleCallBack:!0},ne=!1
try{var ie=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("undefined"==typeof document)return{error:"cookie string must be provided in SSR mode",consent:new Y}
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 Y}
if(!(e!==G||i&&r))return{error:"enterpriseProfileUrn and enterpriseAppInstanceId are required for unbound userMode",consent:new Y}
if(!e){var o=L(H[G],t)
if(o&&i&&r){var a=J(o,G,i,r)
if(a.consent.userMode===G||a.error)return a}e=L("liap",t)?L(H[B],t)?B:F:L(H[F],t)?F:B}return function(e,t,n,i){var r=L(H[e],t)
return r?J(r,e,n,i):L(H[F],t)||L(H[B],t)||L(H[G],t)?Q(2):Q(1)}(e,t,i,r)}().consent.optedInConsentMap
ne=ie[U.FUNCTIONAL]}catch(e){}var re=function(){function e(t,n,i){var r=this
if(x(this,e),void 0!==n&&void 0!==t&&"enabled"===t.globalIntegration)"complete"===document.readyState?this.initializeGlobalIntegration(n,i):window.addEventListener("load",(function(){r.initializeGlobalIntegration(n,i)}))
else if(void 0!==t){var o=JSON.parse(JSON.stringify(te))
c("settings-iframe")||c("setting-headline")||(o.useRequestIdleCallBack=!1),this.initialize(o,t)}else{var a=JSON.parse(JSON.stringify(te))
c("settings-iframe")||c("setting-headline")||(a.useRequestIdleCallBack=!1),"complete"===document.readyState?this.initialize(a):window.addEventListener("load",(function(){r.initialize(a)}))}}return N(e,[{key:"initializeGlobalIntegration",value:function(e,t){t.enableNetworkInterceptor&&!globalThis.apfcInterceptorInitialized&&(new ee(e,t),globalThis.apfcInterceptorInitialized=!0),this.checkConfigAndInitializeAllIntegration(e,t)}},{key:"isDfCollectionRequired",value:function(e){return"number"!=typeof e.samplingTimeWindowInMillis||e.samplingTimeWindowInMillis<=0||""===n.getItem("df_ts")}},{key:"checkConfigAndInitializeAllIntegration",value:function(e,t){!0!==globalThis.pauseApfc&&(globalThis.pauseApfc=!0,setTimeout((function(){globalThis.pauseApfc=!1}),3e4),!0===t.enableOnDemandMode?(this.checkConfigAndInitializeGlobalIntegration(e,t),this.checkConfigAndInitializeThirdPartyIntegration(e,t)):(this.deleteDfCookieIfRequired(t),this.isDfCollectionRequired(t)&&(this.checkConfigAndInitializeGlobalIntegration(e,t),this.checkConfigAndInitializeThirdPartyIntegration(e,t),this.addDfCookieIfRequired(t))))}},{key:"checkConfigAndInitializeGlobalIntegration",value:function(e,t){(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes("DNA")||!0===t.dnaIntegrationEnabled&&!0!==globalThis.dnaIntegrationCompleted)&&this.intializeGlobalIntegration(te,e,t)}},{key:"checkConfigAndInitializeThirdPartyIntegration",value:function(e,t){(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes(o)||!0===t.recaptchaV3IntegrationEnabled&&!0!==globalThis.reCaptchaV3InitializationComplete)&&(this.initializeReCaptchaV3Integration(),globalThis.reCaptchaV3InitializationComplete=!0),(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes(i)||!0===t.humanIntegrationEnabled&&!0!==globalThis.humanIntegrationCompleted)&&this.initializeHumanIntegration(e,t),(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes(r)||!0===t.dfpIntegrationEnabled&&!0!==globalThis.dfpIntegrationCompleted)&&this.intializeDfpIntegration(e,t)}},{key:"deleteDfCookieIfRequired",value:function(e){var t="number"!=typeof e.samplingTimeWindowInMillis?0:e.samplingTimeWindowInMillis
if(""!==n.getItem("df_ts")){var i=Date.now(),r=Number(n.getItem("df_ts"));(!1===ne||i-r>t)&&n.deleteItem("df_ts")}}},{key:"addDfCookieIfRequired",value:function(e){if(!0===ne&&"number"==typeof e.samplingTimeWindowInMillis&&e.samplingTimeWindowInMillis>0){var t=Date.now(),i=new Date
i.setTime(t+e.samplingTimeWindowInMillis),n.setItem("df_ts",t,i)}}},{key:"initialize",value:function(e,n){if(null!=n||null!=a("apfcDfPK")){var i=this.reqid,r=this.pageInstance,o=this.isProd()
return(new t).getFeatures((function(t,a){t.reqid=i,t.pageInstance=r,t.fullFeatureCollection=a,l.encryptWithKeyFromDifferentSources(JSON.stringify(t),"apfcDfPK","apfcDfPKV",n,o).then((function(t){globalThis.apfcDf=t,!0===a&&s(JSON.stringify(t),e.telemetryCollectPath,o)}))}),e)}globalThis.triggerApfc=this.reentry}},{key:"intializeGlobalIntegration",value:function(i,r,o){var a=this.isProd()
return(new t).getFeatures((function(t,c){if(!0===c){if(e.prototype.populateFpDataCookie(t,o),!0===o.isSyncEnabledWithHeaders){var C=JSON.stringify(function(e){var t={}
return function(e){var t=e.webgl,n={}
if(void 0!==t&&void 0!==t.extensions&&null!==t&&null!==t.extensions){for(var i=t.extensions,r=[],o=0;o<i.length;o++){var a=i[o]
r[o]=T.hasOwnProperty(a)?T[a]:a}t.extensions=r}null!=t&&(Object.keys(k).forEach((function(e){n[k[e]]=t[e]})),e.webgl=n)}(e),function(e){var t=e.touchSupport,n={}
null!=t&&(Object.keys(_).forEach((function(e){n[_[e]]=t[e]})),e.touchSupport=n)}(e),function(e){var t=e.battery,n={}
null!=t&&(Object.keys(E).forEach((function(e){n[E[e]]=t[e]})),e.battery=n)}(e),function(e){var t=e.screenOrientation,n={}
null!=t&&(Object.keys(b).forEach((function(e){n[b[e]]=t[e]})),e.screenOrientation=n)}(e),function(e){var t=e.fonts,n={}
if(void 0!==t&&void 0!==t.lists&&null!==t&&null!==t.lists){for(var i=t.lists,r=[],o=0;o<i.length;o++){var a=i[o]
r[o]=S.hasOwnProperty(a)?S[a]:a}t.lists=r}null!=t&&(Object.keys(y).forEach((function(e){n[y[e]]=t[e]})),e.fonts=n)}(e),function(e){var t=e.enumerateDevices,n=[]
if(null!=t){for(var i=function(){var e=t[r],i={}
Object.keys(v).forEach((function(t){i[v[t]]=e[t]})),n[r]=i},r=0;r<t.length;r++)i()
e.enumerateDevices=n}}(e),function(e){var t=e.canvas,n={}
null!=t&&(Object.keys(m).forEach((function(e){n[m[e]]=t[e]})),e.canvas=n)}(e),function(e){var t=e.mimetyps,n=[]
if(null!=t){for(var i=function(){var e=t[r],i={}
Object.keys(g).forEach((function(t){i[g[t]]=e[t]})),n[r]=i},r=0;r<t.length;r++)i()
e.mimetyps=n}}(e),function(e){var t=e.signals,n={}
null!=t&&(Object.keys(h).forEach((function(e){n[h[e]]=t[e]})),e.signals=n)}(e),function(e){var t=e.networkInfo,n={}
null!=t&&(Object.keys(p).forEach((function(e){n[p[e]]=t[e]})),e.networkInfo=n)}(e),function(e){var t=e.location,n={}
null!=t&&(Object.keys(f).forEach((function(e){n[f[e]]=t[e]})),e.location=n)}(e),function(e){var t=e.FPDataCookie,n={}
null!=t&&(Object.keys(d).forEach((function(e){n[d[e]]=t[e]})),e.FPDataCookie=n)}(e),Object.keys(A).forEach((function(n){t[A[n]]=e[n]})),t}(t))
globalThis.apfcDfH=(I=C,u.compressToBase64(I))}l.encryptWithKeyIds(JSON.stringify(t),"apfcDfPK","apfcDfPKV").then((function(e){if(globalThis.apfcDf=e,!0===o.isSyncEnabledWithHeaders||!0===o.isSyncEnabledWithCb){var t=function(e){var t={}
t[btoa("DNA_ENCRYPTED")]=e
var i={}
return i.payload=t,i.browserId=n.getBcookie(),i}(e)
s(JSON.stringify(t),i.gloablIntegrationDataCollectionPath,a)}r("DNA",JSON.stringify(e))})),globalThis.dnaIntegrationCompleted=!0}var I}),i)}},{key:"intializeDfpIntegration",value:function(t,i){var o=n.getBcookie(),a=this.isProd()?"fb6bbd47-fa7c-4264-b4e9-b25948407586":"ee078acd-0704-4344-9e5b-6b84b480c30a"
try{if(RegExp("^[\\w-]*$").test(o)){var s="https://merchantpool1.linkedin.com/mdt.js?session_id=".concat(o,"&instanceId=").concat(a),c=document.createElement("script")
c.setAttribute("src",s),c.setAttribute("id","dfpIframeScript"),c.addEventListener("load",(function(){return window.dfp.doFpt(document)})),document.getElementsByTagName("head")[0].appendChild(c)
var l={sessionId:o,instanceId:a}
e.prototype.populateFpDataCookie(l,i),t(r,JSON.stringify(l))}else{var u={error:"Invalid session_id: "+o}
t(r,JSON.stringify(u))}}catch(i){var d={error:i}
t(r,JSON.stringify(d))}globalThis.dfpIntegrationCompleted=!0}},{key:"initializeHumanIntegration",value:function(t,r){var o=r.treeId,a=Date.now(),s=this.isProd()?"PXdOjV695v":"PXgoH0hfKu",c=n.getBcookie(),u="https://li.protechts.net/index.html?ts="+a+"&r_id="+encodeURIComponent(o)+"&app_id="+s+"&uc=scraping"
l.generateSha256HashOrDefault(c).then((function(n){""!==(c=n)&&(u+="&d_id="+c)
try{var l=document.createElement("iframe")
l.setAttribute("id","humanThirdPartyIframe"),l.setAttribute("src",u),l.setAttribute("sandbox","allow-same-origin allow-scripts"),l.setAttribute("aria-hidden","true"),l.style.height="0px",l.style.width="0px",l.style.border="none",l.style.position="absolute",l.style.left="-9999px",document.body.appendChild(l)
var d={app_id:s,ts:a,d_id:c,r_id:o,uc:"scraping"}
e.prototype.populateFpDataCookie(d,r),t(i,JSON.stringify(d))}catch(e){var f={error:e}
t(i,JSON.stringify(f))}})),globalThis.humanIntegrationCompleted=!0}},{key:"initializeReCaptchaV3Integration",value:function(){var e=new MutationObserver((function(){var t=document.querySelector(".grecaptcha-badge")
t&&(t.style.display="none",e.disconnect())}))
e.observe(document.body,{childList:!0,subtree:!0})
var t=document.createElement("script")
t.src="https://www.google.com/recaptcha/enterprise.js?render=6LcIy_MqAAAAAMKiupFSbmzW3xjGSlIfRzNWYMjC",document.head.appendChild(t)}}]),e}()
re.prototype.reentry=function(e){globalThis.triggerApfc=null,new re(e)},re.prototype.reentryGlobalIntegration=function(e,t){globalThis.triggerDnaApfcEvent=null,new re({globalIntegration:"enabled"},e,t)},re.prototype.reentryGlobalIntegrationOnDemand=function(e,t){if(void 0!==t&&void 0!==e){var n=re.prototype.extractDataCookie()
!0===t.onlyOnDemandFlow&&null===n||(t.fpDataCookie=n,null!==n&&(t.enableOnDemandMode=!0),re.prototype.reentryGlobalIntegration(e,t))}},re.prototype.extractDataCookie=function(){var e=n.getItem("li_apfcdc")
if(n.deleteItem("li_apfcdc"),!e||""===e)return null
var t=(e=atob(e)).split(":::")
if(t.length<5)return null
var i={}
return i.trackingId=t[0],i.memberId=t[1],i.sessionUrn=t[2],i.collectionType=t[3],i.apfcTypes=t[4].split(","),i},re.prototype.populateFpDataCookie=function(e,t){"object"==w(e)&&"object"==w(t)&&(e.FPDataCookie=t.fpDataCookie)},re.prototype.isProd=function(){var e=location&&location.host
return e&&e.indexOf(".linkedin.com")>-1&&!e.startsWith("pemberly")},re.prototype.isEmpty=function(e){return e&&0===Object.keys(e).length},"undefined"!=typeof globalThis&&"undefined"!=typeof document&&"undefined"!=typeof window&&(void 0===globalThis.triggerDnaApfcEvent&&(globalThis.triggerDnaApfcEvent=re.prototype.reentryGlobalIntegration),void 0===globalThis.triggerDnaApfcEventOnDemand&&(globalThis.triggerDnaApfcEventOnDemand=re.prototype.reentryGlobalIntegrationOnDemand),(void 0===globalThis.maxApfcVersion||2>globalThis.maxApfcVersion)&&(globalThis.maxApfcVersion=2,globalThis.triggerDnaApfcEventOnDemandVersioned=re.prototype.reentryGlobalIntegrationOnDemand),new re)}()
var $i=function(){function e(){x(this,e)}return N(e,null,[{key:"collectFeatures",value:function(e,t){try{"undefined"!=typeof globalThis&&"undefined"!=typeof document&&"undefined"!=typeof window&&"undefined"!==globalThis.triggerDnaApfcEventOnDemandVersioned&&globalThis.triggerDnaApfcEventOnDemandVersioned(t,e)}catch(e){}}}]),e}(),Zi=function(){function e(t,n,i,r,o,a,s,c,l,u){x(this,e),O(this,"hostApis",void 0),O(this,"statics",void 0),O(this,"options",void 0),O(this,"allowTimingOrigin",void 0),O(this,"fireResourceLoadEvent",void 0),O(this,"isTracerEnabled",void 0),O(this,"responseRleCache",void 0),O(this,"fireApfcEvent",void 0),O(this,"abuseDeviceSignalCollectionConfig",void 0),O(this,"trackingEndpoint",void 0),O(this,"collectResourceTimings",void 0),O(this,"collectCdnData",void 0),O(this,"perfObserver",void 0),O(this,"renderTimings",new Map),O(this,"urlToTreeId",new Map),O(this,"cdnDataProvider",void 0),O(this,"observables",new ki),O(this,"trackingEndpointPattern",void 0),this.hostApis=t,this.statics=n,this.options=i,this.allowTimingOrigin=r,this.fireResourceLoadEvent=o,this.isTracerEnabled=a,this.responseRleCache=s,this.fireApfcEvent=c,this.abuseDeviceSignalCollectionConfig=l,this.trackingEndpoint=u,this.collectResourceTimings=i["enable-rs-timing"],this.collectCdnData=i["enable-cdn-tracking"],this.collectCdnData&&(this.cdnDataProvider=new Ji(t)),this.trackingEndpointPattern=function(e){if(!e)return"/li/track"
try{return new URL(e).pathname}catch(t){return e}}(this.trackingEndpoint)}return N(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(qi=qi||t.createElement("a")).href=e,qi.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:Wi(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e,t,n){var i=this.renderTimings.get(e)
if(i&&(i.renderEnd=i.renderEnd||Wi(this.hostApis.performance,this.allowTimingOrigin),t))return n?this.collectViewLoadEventData(i,n):void Qt("ViewLoadEvent",bi)}},{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=tr(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,mi.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(vi).forEach((function(t){var n
t in ui&&void 0!==e[t]&&u.push({resourceProgressType:vi[t],duration:null!==(n=e[t])&&void 0!==n?n:-1})})),l.resourceProgressStates=u
var d={},f=yi[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),Qt("ResourceLoadEvent",e)):Qt("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=Xi(this.hostApis.performance,this.options,!0),this.collectResourceTimings&&this.processNewResourceTimings()),this.observables.attachTreeIds(this.urlToTreeId),this.urlToTreeId.clear(),n(r,this.observables.getData(),this.snapshot,this.statics),e&&n(r,tr(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?qt(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,c=n.isSyncFingerprintingWithHeadersLixEnabled,l=n.isSyncFingerprintingWithCbLixEnabled,u=n.isRecaptchaV3IntegrationEnabled,d=n.isNetworkInterceptorEnabled
if(r||o||i||c||l||u||d){var f,p,h={treeId:null!==(f=null===(p=this.statics.treeId)||void 0===p?void 0:p.toString())&&void 0!==f?f:"",humanIntegrationEnabled:r,dfpIntegrationEnabled:o,dnaIntegrationEnabled:i,samplingTimeWindowInMillis:a,onlyOnDemandFlow:t,isSyncEnabledWithHeaders:c,isSyncEnabledWithCb:l,recaptchaV3IntegrationEnabled:u,enableNetworkInterceptor:d};(!t||t&&s||c||l)&&$i.collectFeatures(h,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}),"mark_meaningful_paint_end"!==o||i||n.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:!1})):"measure"===r?n.observables.userTimingEntries.push({entryType:"MEASURE",name:o,startTime:a,duration:s}):"longtask"===r&&n.observables.longTasks.push({duration:s,name:o,startTime:a})}))})),this.observables.userTimingEntries=Xi(this.hostApis.performance,this.options,!1)
var i=["longtask"];(this.collectResourceTimings||this.collectCdnData)&&i.push("resource"),this.options["user-timing-mark-enabled"]&&i.push("mark"),this.options["user-timing-measure-enabled"]&&i.push("measure"),this.perfObserver.observe({entryTypes:i})}},{key:"emulateResourceTimingObserver",value:function(e){var t=this
e&&"function"==typeof e.setResourceTimingBufferSize&&"function"==typeof e.onresourcetimingbufferfull&&(e.setResourceTimingBufferSize(100),e.onresourcetimingbufferfull=function(){return t.processNewResourceTimings()})}},{key:"processNewResourceTimings",value:function(){var e=this,t=this.hostApis.performance
"function"==typeof t.getEntriesByType&&"function"==typeof t.clearResourceTimings&&(t.getEntriesByType("resource").forEach((function(n){return e.processSingleResourceTiming(n,t.timeOrigin)})),t.clearResourceTimings())}},{key:"processSingleResourceTiming",value:function(e,t){var n=this
if(this.collectResourceTimings){this.options["enable-otel"]&&ft.emit(ti.INTERNAL_OTEL_RESOURCE,{resourceTiming:e}),this.observables.resourceTimingEntries.push(e)
var i=-1!==e.name.indexOf(this.trackingEndpointPattern)
if(this.isTracerEnabled&&!i&&!function(e){for(var t=0,n=Ki;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:Qi(this.renderTimings),networkInformationMetrics:er(this.hostApis.connection)}
return this.renderTimings.clear(),e}}]),e}()
function er(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 tr(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,mi.forEach((function(e){e in i&&(t[e]=i[e])})),t.navigationType=r.type,t.redirectCount=r.redirectCount):t.navigationTimingApi=!1,t}var nr=function(){function e(t,n,i){x(this,e),O(this,"featureName",void 0),O(this,"trackingCore",void 0),O(this,"rumConfig",void 0),O(this,"observing",!1),O(this,"basePageTreeId",void 0),O(this,"startPageInstance",void 0),O(this,"startMemory",void 0),O(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=i}return N(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)||Dt(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:Yi(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}()
O(nr,"checkpoints",[1,3,10,30,90,180,300])
var ir,rr,or,ar,sr,cr=N((function e(t,n,i){x(this,e),O(this,"webUIFramework",void 0),O(this,"timeSource",void 0),O(this,"isSinglePageApp",void 0),O(this,"appRenderMode",void 0),O(this,"isAppRenderFailed",void 0),O(this,"pageLoadMode","INITIAL"),O(this,"isSSL",void 0),O(this,"treeId",void 0),O(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})),lr=function(){function e(t){x(this,e),O(this,"isPEMTracerEnabled",void 0),O(this,"responseContextMap",new Map),O(this,"resourceLoadEventsMap",new Map),this.isPEMTracerEnabled=t}return N(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 Zt((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 Zt((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=T(e,s),i=(t.requestTime,t.viewNames),r=t.requestType,o=t.requestTag,a=T(t,c)
return n.targetViewNames=i||[],r&&(n.requestType=r),o&&(n.requestTag=o),n.resourceNetworkContext=p(p({},n.resourceNetworkContext),a),$t(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=S(e)
try{for(i.s();!(n=i.n()).done;){var r=n.value
t=[].concat(A(t),A(this.flushCacheByUrl(r)))}}catch(e){i.e(e)}finally{i.f()}}var o=this.resourceLoadEventsMap.keys()
if(o){var a,s=S(o)
try{for(s.s();!(a=s.n()).done;){var c,u=a.value,d=null===(c=this.resourceLoadEventsMap.get(u))||void 0===c?void 0:c.heapClear()
d&&(t=[].concat(A(t),A(d.map((function(e){return e.requestStart,$t(T(e,l))})))))}}catch(e){s.e(e)}finally{s.f()}}return t}},{key:"flushCacheByUrl",value:function(e){var t,n=[]
if(!e)return n
if(!this.isPEMTracerEnabled)return(null===(t=this.resourceLoadEventsMap)||void 0===t||null===(t=t.get(e))||void 0===t||null===(t=t.heapClear())||void 0===t?void 0:t.map((function(e){return e.requestStart,$t(T(e,u))})))||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}(),ur=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)}},dr=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){}},fr=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)},pr=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},hr=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)))}},gr=-1,mr=function(){return"hidden"===document.visibilityState?0:1/0},vr=function(){fr((function(e){var t=e.timeStamp
gr=t}),!0)},yr=function(){return gr<0&&(gr=mr(),vr(),pr((function(){setTimeout((function(){gr=mr(),vr()}),0)}))),{get firstHiddenTime(){return gr}}},br=!1,Er=-1,_r=function(e,t){br||(function(e,t){var n,i=yr(),r=ur("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:dr("paint",o);(a||s)&&(n=hr(e,r,t),a&&o(a),pr((function(i){r=ur("FCP"),n=hr(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,n(!0)}))}))})))}((function(e){Er=e.value})),br=!0)
var n,i=function(t){Er>-1&&e(t)},r=ur("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=dr("layout-shift",s)
c&&(n=hr(i,r,t),fr((function(){c.takeRecords().map(s),n(!0)})),pr((function(){o=0,Er=-1,r=ur("CLS",0),n=hr(i,r,t)})))},kr={passive:!0,capture:!0},Tr=new Date,Sr=function(e,t){ir||(ir=t,rr=e,or=new Date,Ir(removeEventListener),Ar())},Ar=function(){if(rr>=0&&rr<or-Tr){var e={entryType:"first-input",name:ir.type,target:ir.target,cancelable:ir.cancelable,startTime:ir.timeStamp,processingStart:ir.timeStamp+rr}
ar.forEach((function(t){t(e)})),ar=[]}},Cr=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(){Sr(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,kr),removeEventListener("pointercancel",i,kr)}
addEventListener("pointerup",n,kr),addEventListener("pointercancel",i,kr)}(t,e):Sr(t,e)}},Ir=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,Cr,kr)}))},wr=function(e,t){var n,i=yr(),r=ur("FID"),o=function(e){e.startTime<i.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},a=dr("first-input",o)
n=hr(e,r,t),a&&fr((function(){a.takeRecords().map(o),a.disconnect()}),!0),a&&pr((function(){var i
r=ur("FID"),n=hr(e,r,t),ar=[],rr=-1,ir=null,Ir(addEventListener),i=o,ar.push(i),Ar()}))},xr={},Rr=function(e,t){var n,i=yr(),r=ur("LCP"),o=function(e){var t=e.startTime
t<i.firstHiddenTime&&(r.value=t,r.entries.push(e),n())},a=dr("largest-contentful-paint",o)
if(a){n=hr(e,r,t)
var s=function(){xr[r.id]||(a.takeRecords().map(o),a.disconnect(),xr[r.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,s,{once:!0,capture:!0})})),fr(s,!0),pr((function(i){r=ur("LCP"),n=hr(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,xr[r.id]=!0,n(!0)}))}))}))}},Nr=["LCP","FID","CLS"],Or={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},Dr={},Pr=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}(),Mr=!1,jr=new Set,Lr={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"}
function Ur(){var e=!0===window.__test__resetWebVitalsState
if(!Mr||e){e&&(jr=new Set),Nr.forEach(Fr)
var t=Symbol()
sr=t,[Rr,wr,_r].forEach((function(e){return e(Br.bind(null,t),!0)})),[Rr,wr,_r].forEach((function(e){return e(Gr.bind(null,t))})),Mr=!0}}function Fr(e){Dr[e]={name:e,verboseName:Or[e]||e,value:-1,updateHistory:[]}
var t=Lr[e]
"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(Dr[e].value=-2)}function Br(e,t){if(e===sr){var n=Dr[t.name],i=Yi()
n&&(n.updateHistory.push({time:i,data:t}),n.value=t.value),jr.forEach((function(e){return e(t,i,!1)}))}}function Gr(e,t){e===sr&&jr.forEach((function(e){return e(t,Yi(),!0)}))}var Hr,Vr=function(){function e(t,n){var i=this
x(this,e),O(this,"basePageTreeId",void 0),O(this,"basePageKey",void 0),O(this,"observing",!1),O(this,"appContextMap",new Map),O(this,"rumConfig",void 0),O(this,"trackingCore",void 0),O(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 N(e,[{key:"startObserving",value:function(){var e,t,n=this
Ur(),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",Nr.forEach((function(e){var t;-2===(null===(t=Dr[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=Dr[e]
if(t){var n={name:Or[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:Pr},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:zi(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:zi(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":zi(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]}
if(this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"ClientPerfMetricsEvent"},r),this.rumConfig["enable-otel"])if("LCP"===e){var o={value:n.longValue,metadata:i}
ft.emit(ti.INTERNAL_OTEL_LARGEST_CONTENTFUL_PAINT,o)}else if("CLS"===e){var a={value:n.doubleValue,metadata:i}
ft.emit(ti.INTERNAL_OTEL_CUMULATIVE_LAYOUT_SHIFT,a)}else if("FID"===e){var s={value:n.longValue,metadata:i}
ft.emit(ti.INTERNAL_OTEL_FIRST_INPUT_DELAY,s)}}}}]),e}(),qr={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),O(this,"_callTreeId",void 0),O(this,"_fabric",void 0),O(this,"_msEdgeRef",void 0),O(this,"_pointOfPresenceId",void 0),O(this,"_responseMetadata",void 0),O(this,"_contentType",void 0),O(this,"_cdnCacheMetadata",void 0),O(this,"_downstreamAvailability",void 0)
var n=new Map
null==t||t.forEach((function(e,t){n.set(t.toLowerCase(),e)})),this._callTreeId=n.get(qr.CALL_TREE_ID)||null,this._pointOfPresenceId=n.get(qr.POINT_OF_PRESENCE_ID)||null,this._msEdgeRef=n.get(qr.MICROSOFT_EDGE_REFERENCE)||null,this._fabric=n.get(qr.FABRIC)||null,this._responseMetadata=n.get(qr.PEM_RESPONSE_METADATA)||null,this._contentType=n.get(qr.CONTENT_TYPE)||null,this._cdnCacheMetadata=n.get(qr.CDN_CACHE)||null,this._downstreamAvailability=function(e){if(null==e)return 1
var t,n=S(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 N(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 Wr(e,t,n){if(t){if(429===t||999===t)return Hr.TOO_MANY_REQUESTS
if(e&&!e.hasAnyLinkedInHeaders()&&t&&t>=400&&t<600)return Hr.BLOCKED_BY_CLIENT_PROXY
if((i=t)>=400&&i<500)return Hr.CLIENT_ERROR
if(function(e){return e>=500&&e<600}(t))return function(e){if(e){if(e.fabric)return Hr.SERVER_ERROR
if(e.pointOfPresenceId)return Hr.TRAFFIC_LI_POP_TO_DC_ERROR
if(e.microsoftEdgeReference)return Hr.TRAFFIC_AFD_TO_LI_POP_ERROR}return Hr.SERVER_ERROR}(e)
if(function(e,t){return!!(e>=200&&e<300&&t&&t.downstreamAvailability<1)}(t,e))return Hr.DOWNSTREAM_GRACEFUL_DEGRADATION
if(!n)return null}var i
if(n instanceof Error){if("AbortError"===n.name)return Hr.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 Hr.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 Hr.CLIENT_TIMEOUT
if(0===n.status&&"abort"===n.statusText)return Hr.CLIENT_ABORTED
if("readyState"in n&&0===n.readyState)return Hr.NETWORK_ERROR}return Hr.UNCLASSIFIED}!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"}(Hr||(Hr={}))
var Yr="tracer-unclassified-error",zr="resource-load-tracer"
function Xr(e,t,n,i,r){var o=new Kr(i),a=Wr(o,n,r),s=null
return a&&(s={errorType:a},a===Hr.UNCLASSIFIED&&r&&(s.errorMessage=r.message,function(e,t,n){var i,r=[Yr]
null==n||n.forEach((function(e){return r.push("target-view-name-".concat(e))})),i=e instanceof Error||"string"==typeof e?e:JSON.stringify(e),Qt(zr,i,Object.fromEntries(t||[]),r)}(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}}var Qr,Jr=function(){function e(t,n,i){var r,o,a,s,c,l,u=this
x(this,e),O(this,"core",void 0),O(this,"config",void 0),O(this,"collector",void 0),O(this,"boomerangStart",-1),O(this,"webVitalsObserver",void 0),O(this,"appMemoryObserver",void 0),O(this,"pageMemoryObserver",void 0),O(this,"liveTokens",new Set),O(this,"stateWM",new WeakMap),O(this,"activeToken",void 0),O(this,"isInitial",void 0),O(this,"pageLoadId",void 0),O(this,"initialResourcesEvents",[]),O(this,"responseRleCache",void 0),O(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),O(this,"fireApfcEventBound",this.fireApfcEvent.bind(this)),O(this,"isTracerEnabled",void 0),O(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({},gi),n)
var d="enabled"===(null===(r=(o=i.host).__getLixTreatment)||void 0===r?void 0:r.call(o,"pemberly.tracking.time-origin-epoch-time")),f=this.getAbuseDeviceSignalCollectionConfig(i),p=null===(a=(s=i.host).__getLixTreatment)||void 0===a?void 0:a.call(s,"pemberly.tracking.generic-tracers"),h=!!p&&_i.test(p)
this.isTracerEnabled=h||this.config["enable-tracking-3"]
var g="enabled"===(null===(c=(l=i.host).__getLixTreatment)||void 0===c?void 0:c.call(l,"pemberly.tracking.pem-tracers"))
this.isPEMTracerEnabled=g||this.config["enable-pem-tracking-3"],this.responseRleCache=new lr(this.isPEMTracerEnabled),this.collector=new Zi(i.host.api,new cr(t,this.config,i.host),this.config,d,(function(e){return u.fireResourceLoadEvent(e,u.activeToken)}),this.isTracerEnabled,this.responseRleCache,this.fireApfcEventBound,f,i.host.endpoint),this.collector.startObserving(),ft.before(at,this.beforeHideHandlerBound)}return N(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:Wi(this.core.host.api.performance,o),pageKey:e}),this.firePageLoadStartEvent(r)):this.stateWM.set(r,{isInitial:this.isInitial,startTime:Wi(this.core.host.api.performance,o)}),this.config["enable-memory-measurement"]&&(null===(i=this.pageMemoryObserver)||void 0===i||i.stopObserving(),this.pageMemoryObserver=new nr("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new nr("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),r}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new Vr(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=Wi(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 Qt("rum-end",Ei)}},{key:"onDataResponse",value:function(e,t,n,i,r,o,a){var s=Xr(t,n,i,r,o)
if(null!=a&&a.serverSideResponse){var c=this.generateResourceLoadEventFromResponseContext(e,p({nextHopProtocol:ci.UNKNOWN},s))
this.fireResourceLoadEvent(c,this.activeToken)}else this.provisionNetworkResponse(e,s)}},{key:"onOopsPage",value:function(e,t){Qt("rum-oops",e,Object.fromEntries(t||[]),["oops-page"])}},{key:"firePageLoadStartEvent",value:function(e){if(e&&this.activeToken&&this.activeToken===e){var t=this.stateWM.get(e)
this.pageLoadId=St(),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 Qt("PageLoadStartEvent",Ei)}},{key:"destroy",value:function(){var e,t,n
ft.offBefore(at,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:Qt("PageLoadEndEvent",bi),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)}))}else this.abort(t)}}},{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=Jt(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:p({},T(t,d)),resourceProgressStates:[],timeOrigin:n}
return r&&(o.loadType=r),o}},{key:"triggerDeviceSignalCollection",value:function(e){var t=e.onlyTriggerOnDemandFlow
this.collector.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:t})}},{key:"getAbuseDeviceSignalCollectionConfig",value:function(e){var t,n,i,r,o,a,s,c,l,u,d,f,p,h,g,m,v,y,b,E,_,k,T,S,A,C,I,w,x,R=null===(t=(n=e.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.fireApfcEvent"),N=!1,O=!1,D=!1,P=!1,M=!1,j=!1
if("enabled"===R)N=!0
else if(null!=R&&R.startsWith("v2:")){var L=R.split(":")
if(2===L.length){var U=new Set(L[1].split(","))
N=U.has("a"),P=U.has("b"),M=U.has("c"),O=U.has("d"),D=U.has("e"),j=U.has("f")}}return{isDnaIntegrationLixEnabled:N=N||"enabled"===(null===(i=e.host.abuseDeviceSignalCollectionConfig)||void 0===i?void 0:i.webviewDnaMemberLixTreatment)||"enabled"===(null===(r=e.host.abuseDeviceSignalCollectionConfig)||void 0===r?void 0:r.dnaMemberLixTreatment),isHumanIntegrationLixEnabled:O=O||"enabled"===(null===(o=(a=e.host).__getLixTreatment)||void 0===o?void 0:o.call(a,"pemberly.tracking.human.integration"))||"enabled"===(null===(s=e.host.abuseDeviceSignalCollectionConfig)||void 0===s?void 0:s.webviewHumanMemberLixTreatment)||"enabled"===(null===(c=e.host.abuseDeviceSignalCollectionConfig)||void 0===c?void 0:c.humanMemberLixTreatment),isDfpIntegrationLixEnabled:D=D||"enabled"===(null===(l=(u=e.host).__getLixTreatment)||void 0===l?void 0:l.call(u,"pemberly.tracking.dfp.integration"))||"enabled"===(null===(d=e.host.abuseDeviceSignalCollectionConfig)||void 0===d?void 0:d.webviewDfpMemberLixTreatment)||"enabled"===(null===(f=e.host.abuseDeviceSignalCollectionConfig)||void 0===f?void 0:f.dfpMemberLixTreatment),disablePerfMarkerOptimization:e.host.abuseDeviceSignalCollectionConfig&&e.host.abuseDeviceSignalCollectionConfig.disablePerfMarkerOptimization||"enabled"===(null===(p=(h=e.host).__getLixTreatment)||void 0===p?void 0:p.call(h,"fingerprinting.collection.skip.performance.marker.check")),samplingTimeWindowInMillis:null===(g=e.host.abuseDeviceSignalCollectionConfig)||void 0===g?void 0:g.samplingTimeWindowInMillis,isOnDemandFingerprintingEnabled:j=j||"enabled"===(null===(m=(v=e.host).__getLixTreatment)||void 0===m?void 0:m.call(v,"pemberly.web.ondemand")),isSyncFingerprintingWithHeadersLixEnabled:"enabled"===(null===(y=(b=e.host).__getLixTreatment)||void 0===y?void 0:y.call(b,"sync.apfc.headers"))||"enabled"===(null===(E=e.host.abuseDeviceSignalCollectionConfig)||void 0===E?void 0:E.syncFingerprintingEnabledWithHeadersLixTreatment),isSyncFingerprintingWithCbLixEnabled:"enabled"===(null===(_=(k=e.host).__getLixTreatment)||void 0===_?void 0:_.call(k,"sync.apfc.couchbase"))||"enabled"===(null===(T=e.host.abuseDeviceSignalCollectionConfig)||void 0===T?void 0:T.syncFingerprintingEnabledWithCbLixTreatment),isRecaptchaV3IntegrationEnabled:P=P||"enabled"===(null===(S=(A=e.host).__getLixTreatment)||void 0===S?void 0:S.call(A,"pemberly.tracking.recaptcha.v3"))||"enabled"===(null===(C=e.host.abuseDeviceSignalCollectionConfig)||void 0===C?void 0:C.recaptchaV3IntegrationLixValue),isNetworkInterceptorEnabled:M=M||"enabled"===(null===(I=(w=e.host).__getLixTreatment)||void 0===I?void 0:I.call(w,"pemberly.tracking.apfc.network.interceptor"))||"enabled"===(null===(x=e.host.abuseDeviceSignalCollectionConfig)||void 0===x?void 0:x.networkInterceptorLixValue)}}}]),e}(),$r="undefined"!=typeof window&&"undefined"!=typeof performance,Zr="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG"),eo=function(){function e(t,n){x(this,e),O(this,"trackingCore",void 0),O(this,"endPageInstance",void 0),O(this,"startPageInstance",void 0),O(this,"featureIdentifier",void 0),O(this,"marks",[]),O(this,"spans",[]),O(this,"spanStarts",new Map),O(this,"started",!1),O(this,"ended",!1),O(this,"featureKey",void 0),O(this,"productName",void 0),O(this,"flushOnEnd",void 0),O(this,"basePageTreeId",void 0),O(this,"debounceFlush",void 0),O(this,"disableAutoFlush",void 0),O(this,"isCanceled",!1),O(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 N(e,[{key:"start",value:function(e){var t
if($r){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($r){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){$r&&(this.marks.push({name:e,startTime:Yi()}),Zr&&(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){$r&&(this.spanStarts.set(e,Yi()),Zr&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if($r&&this.spanStarts.has(e)){var n=this.spanStarts.get(e),i=t||e
this.spans.push({name:i,startTime:n,duration:Yi()-n}),Zr&&(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){$r&&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 Yi()}},{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||Dt(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($r){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"}(Qr||(Qr={}))},78176:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{camelize:()=>I,capitalize:()=>R,classify:()=>w,dasherize:()=>C,decamelize:()=>A,getString:()=>s,getStrings:()=>a,setStrings:()=>o,underscore:()=>x,w:()=>S})
class i{constructor(e,t,n){this.limit=e,this.func=t,this.store=n,this.size=0,this.misses=0,this.hits=0,this.store=n||new Map}get(e){let t=this.store.get(e)
return this.store.has(e)?(this.hits++,this.store.get(e)):(this.misses++,t=this.set(e,this.func(e)),t)}set(e,t){return this.limit>this.size&&(this.size++,this.store.set(e,t)),t}purge(){this.store.clear(),this.size=0,this.hits=0,this.misses=0}}let r={}
function o(e){r=e}function a(){return r}function s(e){return r[e]}const c=/[ _]/g,l=new i(1e3,(e=>A(e).replace(c,"-"))),u=/(\-|\_|\.|\s)+(.)?/g,d=/(^|\/)([A-Z])/g,f=new i(1e3,(e=>e.replace(u,((e,t,n)=>n?n.toUpperCase():"")).replace(d,(e=>e.toLowerCase())))),p=/^(\-|_)+(.)?/,h=/(.)(\-|\_|\.|\s)+(.)?/g,g=/(^|\/|\.)([a-z])/g,m=new i(1e3,(e=>{const t=(e,t,n)=>n?`_${n.toUpperCase()}`:"",n=(e,t,n,i)=>t+(i?i.toUpperCase():""),i=e.split("/")
for(let e=0;e<i.length;e++)i[e]=i[e].replace(p,t).replace(h,n)
return i.join("/").replace(g,(e=>e.toUpperCase()))})),v=/([a-z\d])([A-Z]+)/g,y=/\-|\s+/g,b=new i(1e3,(e=>e.replace(v,"$1_$2").replace(y,"_").toLowerCase())),E=/(^|\/)([a-z\u00C0-\u024F])/g,_=new i(1e3,(e=>e.replace(E,(e=>e.toUpperCase())))),k=/([a-z\d])([A-Z])/g,T=new i(1e3,(e=>e.replace(k,"$1_$2").toLowerCase()))
function S(e){return e.split(/\s+/)}function A(e){return T.get(e)}function C(e){return l.get(e)}function I(e){return f.get(e)}function w(e){return m.get(e)}function x(e){return b.get(e)}function R(e){return _.get(e)}},8080:(e,t,n)=>{"use strict"
n.r(t),n.d(t,{BionicMessagingManager:()=>Mt,BionicMessagingTopics:()=>K,BionicUseCases:()=>jt,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{k(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)k(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 _(e){return e instanceof b||e&&"closed"in e&&g(e.remove)&&g(e.add)&&g(e.unsubscribe)}function k(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 A(e){e()}var C=function(e){function t(t){var n=e.call(this)||this
return n.isStopped=!1,t?(n.destination=t,_(t)&&t.add(n)):n.destination=R,n}return d(t,e),t.create=function(e,t,n){return new w(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 I=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){x(e)}},e.prototype.error=function(e){var t=this.partialObserver
if(t.error)try{t.error(e)}catch(e){x(e)}else x(e)},e.prototype.complete=function(){var e=this.partialObserver
if(e.complete)try{e.complete()}catch(e){x(e)}},e}(),w=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 I(r),o}return d(t,e),t}(C)
function x(e){!function(e){T.setTimeout((function(){throw e}))}(e)}var R={closed:!0,next:S,error:function(e){throw e},complete:S},N="function"==typeof Symbol&&Symbol.observable||"@@observable"
function O(e){return e}var D=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 C||function(e){return e&&g(e.next)&&g(e.error)&&g(e.complete)}(e)&&_(e)}(e)?e:new w(e,t,n)
return A((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 w({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[N]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]
return function(e){return 0===e.length?O:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}(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 M(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 j(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}(C),U=m((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),F=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 B(this,this)
return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new U},t.prototype.next=function(e){var t=this
A((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
A((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
A((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 D
return e.source=this,e},t.create=function(e,t){return new B(e,t)},t}(D),B=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}(F),G=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}(F),H=m((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}))
function V(e,t){return new Promise((function(t,n){var i=new w({next:function(e){t(e),i.unsubscribe()},error:n,complete:function(){n(new H)}})
e.subscribe(i)}))}function q(e,t){return M((function(n,i){var r=0
n.subscribe(j(i,(function(n){i.next(e.call(t,n,r++))})))}))}const K={MessagesBroadcastTopic:"MessagesBroadcastTopic",MessagingStreamingBroadcastTopic:"MessagingStreamingBroadcastTopic",MessageStreamingUpdatesBroadcastTopic:"MessageStreamingUpdatesBroadcastTopic",ConversationsBroadcastTopic:"ConversationsBroadcastTopic",ConversationDeletesBroadcastTopic:"ConversationDeletesBroadcastTopic"}
var W
class Y{constructor(){s(this,W,void 0),c(this,W,new Map)}register(e){a(this,W).set(e.useCase,e)}get(e){return a(this,W).get(e)}unregister(e){a(this,W).delete(e)}clear(){a(this,W).clear()}}W=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)},Q=/EventSource error - No activity within 45000 milliseconds\. (No response)|(\d+ chars) received. Reconnecting./
var J,$,Z,ee,te,ne,ie,re,oe,ae,se,ce,le,ue,de,fe,pe,he,ge,me,ve,ye,be,Ee,_e,ke,Te,Se,Ae,Ce,Ie,we,xe,Re,Ne,Oe,De,Pe,Me,je,Le,Ue,Fe,Be,Ge,He,Ve,qe,Ke,We,Ye,ze,Xe,Qe,Je,$e,Ze,et,tt,nt,it,rt,ot,at,st,ct,lt,ut,dt,ft,pt,ht,gt,mt,vt,yt,bt,Et,_t,kt,Tt,St,At,Ct,It
class wt{constructor(e){let{hostProvider:t,mailboxProviderRegistry:n}=e
s(this,fe),s(this,he),s(this,me),s(this,ye),s(this,Ee),s(this,ke),s(this,Se),s(this,J,void 0),s(this,$,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),s(this,oe,void 0),s(this,ae,void 0),s(this,se,void 0),s(this,ce,void 0),s(this,le,void 0),s(this,ue,void 0),s(this,de,void 0),c(this,J,n),c(this,le,new Map),c(this,ne,l(this,Ee,_e).bind(this)),c(this,ee,l(this,me,ve).bind(this)),c(this,Z,l(this,he,ge).bind(this)),c(this,te,l(this,ye,be).bind(this)),c(this,re,new F),c(this,ie,new F),c(this,oe,new F),c(this,ae,new F),c(this,se,new Set([])),c(this,ce,new F),c(this,$,t.realtimeSystemManager),a(this,$).addEventListener("authSubscribeFailed",a(this,ee)),a(this,$).addEventListener("topic",a(this,ne)),a(this,$).addEventListener("subscribe",a(this,Z)),a(this,$).addEventListener("error",a(this,te)),c(this,de,0)}get eventConversationsStream(){return a(this,ie).asObservable()}get eventForcedSyncStream(){return a(this,re).asObservable()}get eventMessagesStream(){return a(this,oe).asObservable()}get eventStreamingUpdatesStream(){return a(this,ae).asObservable()}get subscriptionStream(){return a(this,ce).asObservable()}subscribe(e,t){return a(this,J).register(e),l(this,ke,Te).call(this,e,t).catch((e=>{if(!("status"in e)||417!==e.status)throw new Error(e.message)
if(a(this,de)>=1)throw new Error(e.message)}))}unsubscribe(e){a(this,J).unregister(e)
const t=[]
for(const[n,i]of a(this,le))i.mailboxProvider.useCase===e&&t.push(a(this,$).unsubscribe([i.realtimeConfig.topicConfig]))
return Promise.all(t)}}J=new WeakMap,$=new WeakMap,Z=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,ie=new WeakMap,re=new WeakMap,oe=new WeakMap,ae=new WeakMap,se=new WeakMap,ce=new WeakMap,le=new WeakMap,ue=new WeakMap,de=new WeakMap,fe=new WeakSet,pe=function(e,t,n,i){return{mailboxProvider:e,realtimeConfig:{...t,topicConfig:{topicUrn:n,authToken:i,graphQLQueryParams:t.topicConfig.graphQLQueryParams}}}},he=new WeakSet,ge=function(e,t){X("subscribeHandler called",t)
const n=a(this,le).get(t)
n&&(c(this,de,0),a(this,ce).next(n))},me=new WeakSet,ve=function(e,t){X("authSubscribeFailedHanlder called",t)
let n=""
for(const[e,i]of a(this,le))if(i.realtimeConfig.topicConfig.authToken===t){n=e
break}const i=a(this,le).get(n)
i&&l(this,ke,Te).call(this,i.mailboxProvider,[i.realtimeConfig])},ye=new WeakSet,be=async function(e,t){const{connected:n}=a(this,$),{message:i}=t
if("status"in t&&417==t.status&&(a(this,de)<1?(a(this,$).disconnectAndClose(),await a(this,$).connect("RETRY",!0),((e,t)=>({set _(n){c(e,t,n,void 0)},get _(){return a(e,t,void 0)}}))(this,de)._++):X("Error 417, reach max connection retry: 1")),!n&&Q.test(i)){if(!a(this,ue))return
const e=a(this,J).get(a(this,ue))
if(!e)return
a(this,re).next({useCase:e.useCase,forcedSyncConversationUrns:a(this,se)})}},Ee=new WeakSet,_e=function(e,t){X("topic eventData",t)
const n=a(this,le).get(t.topic)
if(n){const{realtimeConfig:e}=n
switch(n.realtimeConfig.topicType){case K.MessagesBroadcastTopic:{const i=e.builder(t)
if(i){const e=n.mailboxProvider.mapToMessage(i)
a(this,oe).next(e)}break}case K.ConversationsBroadcastTopic:case K.ConversationDeletesBroadcastTopic:{const i=e.builder(t)
if(i){const e=n.mailboxProvider.mapToConversation(i)
a(this,ie).next({entity:e,topic:n.realtimeConfig.topicType})}break}case K.MessageStreamingUpdatesBroadcastTopic:{const i=e.builder(t)
if(i){const e=n.mailboxProvider.mapToMessage(i)
a(this,ae).next(e)}break}default:X("No subscription found")}}},ke=new WeakSet,Te=async function(e,t){const{useCase:n}=e
c(this,ue,n)
const i=await e.mailboxNetworkStore.getRealtimeAuthorization(n)
if(!i)return
t.forEach((e=>{let{forceSyncConversationUrn:t}=e
return!!t&&a(this,se).add(t)}))
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,fe,pe).call(this,e,o,t,i.authToken))}}})),r.length?await l(this,Se,Ae).call(this,r):void 0},Se=new WeakSet,Ae=async function(e){X("Request subscription from Realtime-FE"),X(e)
const t=e.map((e=>(a(this,le).set(e.realtimeConfig.topicConfig.topicUrn,e),a(this,$).subscribe([e.realtimeConfig.topicConfig]))))
return X("****************"),Promise.all(t)}
class xt{constructor(){s(this,Ce,new Map),s(this,Ie,void 0),s(this,we,void 0),s(this,xe,void 0),s(this,Re,new Map),s(this,Ne,void 0),s(this,Oe,void 0),s(this,De,void 0),s(this,Pe,void 0),s(this,Me,void 0),c(this,Ie,new Map),c(this,we,new G(a(this,Ie))),c(this,Ne,new Map),c(this,Oe,new G(a(this,Ne))),c(this,Me,new G(void 0)),c(this,De,new Map),c(this,Pe,new G(a(this,De))),c(this,xe,new F)}get mailboxes(){return a(this,Ce)}get conversations(){return a(this,we)}get forcedSyncTriggered(){return a(this,xe)}get messages(){return a(this,Oe)}get paginationMetadata(){return a(this,Pe)}get streamingUpdates(){return a(this,Me)}stop(){a(this,we).unsubscribe(),a(this,Oe).unsubscribe(),a(this,Pe).unsubscribe(),a(this,Me).unsubscribe(),a(this,xe).unsubscribe()}hasConversation(e,t){var n
return!![...(null==(n=a(this,Ie).get(e))?void 0:n.values())??[]].filter((e=>e.entityUrn===t)).length}getMessage(e,t){const n=a(this,Ne).get(e)
if(!n)return
let i
return n.forEach((e=>{e.entityUrn===t&&(i=e)})),i}getSyncToken(e){return a(this,Re).get(e)}saveSyncToken(e,t){a(this,Re).set(e,t)}saveConversations(e,t){X(`Adding ${t.length} conversations(s) to the store`),a(this,Ie).get(e)||a(this,Ie).set(e,new Set)
const n=a(this,Ie).get(e)
n&&(t.every((e=>n.add(e))),a(this,we).next(a(this,Ie)))}clearConversations(e){var t
null==(t=a(this,Ie).get(e))||t.clear()}clearMessages(e){var t
null==(t=a(this,Ne).get(e))||t.clear()}deleteConversations(e,t){const n=a(this,Ie).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,we).next(a(this,Ie))}saveMessages(e,t,n){a(this,Ne).has(t)||a(this,Ne).set(t,new Set)
const i=a(this,Ne).get(t)
if(i){let e=0
n.forEach((t=>{Array.from(i).find((e=>e.entityUrn===t.entityUrn))?(i.delete(t),i.add(t)):(e++,i.add(t))})),X(`Adding ${e} message(s) to the store! hooray!`),a(this,Oe).next(a(this,Ne))}}deleteMessages(e,t){X(`Removing ${t.length} messages(s) from the store`)
const n=a(this,Ne).get(e)
null==n||n.forEach((e=>{t.includes(e.entityUrn)&&n.delete(e)})),a(this,Oe).next(a(this,Ne))}handleForcedSyncMailboxUpdate(e){a(this,xe).next(e)}handleStreamingUpdatesMessageUpdate(e){a(this,Me).next(e)}getPaginationMetadata(e){return a(this,De).get(e)}savePaginationMetadata(e,t){a(this,De).set(e,t),a(this,Pe).next(a(this,De))}}Ce=new WeakMap,Ie=new WeakMap,we=new WeakMap,xe=new WeakMap,Re=new WeakMap,Ne=new WeakMap,Oe=new WeakMap,De=new WeakMap,Pe=new WeakMap,Me=new WeakMap
class Rt{constructor(e){let{store:t,useCase:n,conversationUrn:i,conversationsRepository:o,messagesRepository:l}=e
r(this,"useCase"),r(this,"conversationUrn"),s(this,je,void 0),s(this,Le,void 0),s(this,Ue,void 0),s(this,Fe,void 0),s(this,Be,void 0),s(this,Ge,void 0),s(this,He,void 0),s(this,Ve,void 0),s(this,qe,void 0),this.useCase=n,this.conversationUrn=i,c(this,je,t),c(this,Le,o),c(this,Ue,l),c(this,Fe,new G(void 0)),c(this,Ge,new G(new Set)),c(this,Ve,new G(!0)),c(this,Be,this.messages.subscribe((e=>{const t=a(this,Fe).getValue(),n=[...e].pop();(null==t?void 0:t.entityUrn)!==(null==n?void 0:n.entityUrn)&&a(this,Fe).next(n)}))),c(this,He,a(this,je).messages.subscribe((e=>{const t=a(this,Ge).getValue(),n=e.get(this.conversationUrn)
if(null==n||!n.size)return void a(this,Ge).next(new Set)
const i=[...n.values()].sort(((e,t)=>e.deliveredAt-t.deliveredAt))
t.size!==n.size&&a(this,Ge).next(new Set(i))}))),c(this,qe,a(this,je).paginationMetadata.subscribe((e=>{let t
if(e.forEach(((e,n)=>{n===this.conversationUrn&&(t=e)})),!t)return
const{prevCursor:n,nextCursor:i}=t,r=!(!n&&!i)
a(this,Ve).getValue()!==r&&(X("conversationDataSource hasMoreOlderMessages: subscribe update for conversation:",this.conversationUrn,"metadata",t),a(this,Ve).next(r))})))}get conversation(){return a(this,je).conversations.pipe(q((e=>{const t=e.get(this.useCase)
if(t)return Array.from(t.values()).find((e=>e.entityUrn===this.conversationUrn))})))}get messages(){return a(this,Ge).asObservable()}get latestMessage(){return a(this,Fe).asObservable()}get paginationMetadata(){return a(this,je).paginationMetadata.pipe(q((e=>e.get(this.conversationUrn))))}get hasMoreOlderMessages(){return a(this,Ve).asObservable()}async loadOlderMessages(){const e=await V(this.messages),[t]=e.values()
if(!t)return
const n=await V(this.hasMoreOlderMessages)
return X("loadOlderMessages: hasMoreOlderMessages value",n),n?a(this,Ue).loadOlderMessages(this.useCase,this.conversationUrn,t):void 0}syncMessages(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0]
a(this,Ue).syncMessages(this.useCase,this.conversationUrn,e)}sendMessage(e,t,n){return a(this,Le).sendMessage(this.useCase,this.conversationUrn,e,t,n)}cleanup(){a(this,Be).unsubscribe(),a(this,He).unsubscribe(),a(this,qe).unsubscribe()}}je=new WeakMap,Le=new WeakMap,Ue=new WeakMap,Fe=new WeakMap,Be=new WeakMap,Ge=new WeakMap,He=new WeakMap,Ve=new WeakMap,qe=new WeakMap
class Nt{constructor(e){let{useCase:t,store:n,conversationsRepository:i,messagesRepository:o}=e
s(this,Je),s(this,Ze),r(this,"useCase"),s(this,Ke,void 0),s(this,We,void 0),s(this,Ye,void 0),s(this,ze,void 0),s(this,Xe,void 0),s(this,Qe,void 0),this.useCase=t,c(this,Ke,n),c(this,We,i),c(this,Ye,o),c(this,ze,new Map),c(this,Xe,new G(!0)),c(this,Qe,a(this,Ke).paginationMetadata.subscribe((e=>{let t
if(e.forEach(((e,n)=>{n===this.useCase&&(t=e)})),!t)return
const{prevCursor:n,nextCursor:i}=t,r=!(!n&&!i)
a(this,Xe).getValue()!==r&&(X("mailboxDataSource hasMoreOlderConversations: update for useCase:",this.useCase,"metadata",t),a(this,Xe).next(r))})))}get conversations(){return a(this,Ke).conversations.pipe(q((e=>e.get(this.useCase))),(e=e=>!!e,M((function(t,n){var i=0
t.subscribe(j(n,(function(t){return e.call(void 0,t,i++)&&n.next(t)})))}))),q((e=>{const t=[...e.values()]
if(!t.length){const e=[]
return a(this,ze).forEach((t=>{e.push(t.conversationUrn)})),e.forEach((e=>{if(a(this,ze).has(e)){const t=a(this,ze).get(e)
null==t||t.cleanup(),a(this,ze).delete(e)}})),new Set(a(this,ze).values())}return t.forEach((e=>{l(this,Je,$e).call(this,e.entityUrn)})),new Set(a(this,ze).values())})))
var e}get hasMoreOlderConversations(){return a(this,Xe).asObservable()}get paginationMetadata(){return a(this,Ke).paginationMetadata.pipe(q((e=>e.get(this.useCase))))}get streamingUpdatesMessage(){return a(this,Ke).streamingUpdates.asObservable()}get forcedSyncTriggered(){return a(this,Ke).forcedSyncTriggered.asObservable()}async getConversationDataSource(e){let t
if(this.conversations&&a(this,ze).has(e))t=a(this,ze).get(e)
else{const n=await a(this,We).getConversation(this.useCase,e)
n&&(t=l(this,Je,$e).call(this,n.entityUrn))}return Promise.resolve(t)}async loadOlderConversations(){const e=await V(this.hasMoreOlderConversations),t=await l(this,Ze,et).call(this)
if(!e||!t)return[]
const n=await a(this,We).loadOlderConversations(this.useCase,t)
return(null==n?void 0:n.map((e=>l(this,Je,$e).call(this,e.entityUrn))))??[]}cleanup(){a(this,Qe).unsubscribe()}}Ke=new WeakMap,We=new WeakMap,Ye=new WeakMap,ze=new WeakMap,Xe=new WeakMap,Qe=new WeakMap,Je=new WeakSet,$e=function(e){return a(this,ze).has(e)||a(this,ze).set(e,new Rt({conversationUrn:e,useCase:this.useCase,store:a(this,Ke),conversationsRepository:a(this,We),messagesRepository:a(this,Ye)})),a(this,ze).get(e)},Ze=new WeakSet,et=async function(){const e=[]
return await V(this.conversations.pipe(q((e=>[...e.values()])),q((t=>t.map((async t=>{const n=await V(t.conversation)
return n&&e.push(n),!!n})))),q((()=>{e.sort(((e,t)=>e.lastActivityAt-t.lastActivityAt))})))),e[e.length-1]}
class Ot{constructor(e){let{store:t,realtimeManager:n,conversationsRepository:i,messagesRepository:r}=e
s(this,tt,void 0),s(this,nt,void 0),s(this,it,void 0),s(this,rt,void 0),s(this,ot,void 0),s(this,at,void 0),s(this,st,void 0),s(this,ct,void 0),s(this,lt,void 0),c(this,ct,t),c(this,it,n),c(this,tt,i),c(this,nt,r)}start(){c(this,rt,a(this,it).eventConversationsStream.subscribe((e=>this.handleRealtimeConversationsEvent(e)))),c(this,ot,a(this,it).eventForcedSyncStream.subscribe((e=>this.handleForcedSyncStream(e)))),c(this,at,a(this,it).eventMessagesStream.subscribe((e=>this.handleRealtimeMessagesEvent(e)))),c(this,st,a(this,it).eventStreamingUpdatesStream.subscribe((e=>this.handleRealtimeStreamingUpdatesEvent(e)))),c(this,lt,a(this,it).subscriptionStream.subscribe((e=>this.handleSubscription(e))))}stop(){var e,t,n,i,r
null==(e=a(this,rt))||e.unsubscribe(),c(this,rt,void 0),null==(t=a(this,ot))||t.unsubscribe(),c(this,ot,void 0),null==(n=a(this,at))||n.unsubscribe(),c(this,at,void 0),null==(i=a(this,st))||i.unsubscribe(),c(this,st,void 0),null==(r=a(this,lt))||r.unsubscribe(),c(this,lt,void 0)}async syncMailbox(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]
const n=(await a(this,tt).syncConversations(e,t)).map((e=>e.entityUrn))
await a(this,nt).batchSyncMessages(e,n,t)}async handleForcedSyncStream(e){const{useCase:t,forcedSyncConversationUrns:n}=e
if(X("Sync Manager: handleForcedSyncStream",n),n.size){const e=[]
n.forEach((t=>e.push(t))),await a(this,nt).batchSyncMessages(t,e,!1)}else await this.syncMailbox(t)
a(this,ct).handleForcedSyncMailboxUpdate(e)}handleSubscription(e){X("Sync Manager: Subscription",e),this.syncMailbox(e.mailboxProvider.useCase),X("****************")}async handleRealtimeConversationsEvent(e){switch(X("Sync Manager: RealtimeConversationsEvent",e),e.topic){case K.ConversationsBroadcastTopic:a(this,ct).saveConversations(e.entity.useCase,[e.entity])
break
case K.ConversationDeletesBroadcastTopic:a(this,ct).deleteConversations(e.entity.useCase,[e.entity.entityUrn])
break
default:X("Unknown conversation topic!")}X("****************")}async handleRealtimeMessagesEvent(e){X("Sync Manager: RealtimeMessagesEvent",e),a(this,ct).hasConversation(e.useCase,e.conversationUrn)||await a(this,tt).getConversation(e.useCase,e.conversationUrn),await a(this,nt).saveMessage(e),X("****************")}async handleRealtimeStreamingUpdatesEvent(e){X("Sync Manager: RealtimeStreamingUpdatesEvent",e)
const{conversationUrn:t,entityUrn:n,streamingPosition:i}=e,r=a(this,ct).getMessage(t,n);(!r||i>(null==r?void 0:r.streamingPosition))&&(await this.handleRealtimeMessagesEvent(e),a(this,ct).handleStreamingUpdatesMessageUpdate(e)),X("****************")}}tt=new WeakMap,nt=new WeakMap,it=new WeakMap,rt=new WeakMap,ot=new WeakMap,at=new WeakMap,st=new WeakMap,ct=new WeakMap,lt=new WeakMap
class Dt{constructor(e){let{store:t,mailboxProviderRegistry:n}=e
s(this,ut,void 0),s(this,dt,void 0),c(this,ut,t),c(this,dt,n)}async batchSyncMessages(e,t,n){var i,r,o
try{const s=await(null==(o=null==(i=a(this,dt).get(e))?void 0:(r=i.messageNetworkStore).batchSyncMessages)?void 0:o.call(r,{useCase:e,syncRequests:t.map((e=>({conversationUrn:e,syncToken:n?void 0:a(this,ut).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 useCase: ${e}, conversationUrns: ${t}`)}}async syncMessages(e,t,n){var i,r,o
try{const s=await(null==(o=null==(i=a(this,dt).get(e))?void 0:(r=i.messageNetworkStore).syncMessages)?void 0:o.call(r,{useCase:e,conversationUrn:t,syncToken:n?void 0:a(this,ut).getSyncToken(t)}))
return null!=s&&s.data&&(this.handleSyncMetaData(t,s.metadata),a(this,ut).saveMessages(e,t,s.data)),(null==s?void 0:s.data)??[]}catch{throw new Error(`MessagesRepository: syncMessages failed for useCase: ${e}, conversationUrn: ${t}`)}}async loadOlderMessages(e,t,n){var i,r,o
try{const{deliveredAt:s}=n,{prevCursor:c}=a(this,ut).getPaginationMetadata(t)??{},l=await(null==(o=null==(i=a(this,dt).get(e))?void 0:(r=i.messageNetworkStore).loadOlderMessages)?void 0:o.call(r,e,t,s,{prevCursor:c}))
return null!=l&&l.data&&(a(this,ut).savePaginationMetadata(t,l.metadata),a(this,ut).saveMessages(e,t,l.data)),(null==l?void 0:l.data)??[]}catch{throw new Error(`MessagesRepository: loadOlderMessages failed for useCase: ${e}, conversationUrn: ${t}`)}}handleBatchSyncMetaData(e){e.forEach(((e,t)=>{this.handleSyncMetaData(t,e)}))}handleSyncMetaData(e,t){t.shouldClearCache&&a(this,ut).clearMessages(e),t.deletedUrns.length&&a(this,ut).deleteMessages(e,t.deletedUrns),t.nextSyncToken&&a(this,ut).saveSyncToken(e,t.nextSyncToken)}batchSaveMessages(e,t){for(const[n,i]of t)a(this,ut).saveMessages(e,n,i)}async saveMessage(e){a(this,ut).saveMessages(e.useCase,e.conversationUrn,[e])}}ut=new WeakMap,dt=new WeakMap
class Pt{constructor(e){let{store:t,mailboxProviderRegistry:n}=e
s(this,ft,void 0),s(this,pt,void 0),c(this,ft,t),c(this,pt,n)}async sendMessage(e,t,n,i,r){var o
const s=null==(o=a(this,pt).get(e))?void 0:o.messageNetworkStore
return s&&s.sendMessage?s.sendMessage({useCase:e,conversationUrn:t,message:n,sendMetadata:i,userContext:r}):Promise.resolve(void 0)}async getConversation(e,t){var n
try{const i=await(null==(n=a(this,pt).get(e))?void 0:n.conversationNetworkStore.getConversation(e,t))
if(i)return a(this,ft).saveConversations(e,[i]),i}catch{throw Error(`ConversationsRepository: getConversation failed for useCase: ${e}, conversationUrn: ${t}`)}}async loadOlderConversations(e,t){var n,i,r
const{nextCursor:o}=a(this,ft).getPaginationMetadata(e)??{}
try{const s=await(null==(r=null==(n=a(this,pt).get(e))?void 0:(i=n.conversationNetworkStore).loadOlderConversations)?void 0:r.call(i,e,t.lastActivityAt,{nextCursor:o}))
return null!=s&&s.data&&(a(this,ft).savePaginationMetadata(e,s.metadata),a(this,ft).saveConversations(e,s.data)),(null==s?void 0:s.data)??[]}catch(t){throw X("ConversationsRepository: loadOlderConversations failed",t),new Error(`ConversationsRepository: loadOlderConversations failed for useCase: ${e}`)}}async syncConversations(e,t){var n
try{const i=await(null==(n=a(this,pt).get(e))?void 0:n.conversationNetworkStore.syncConversations({useCase:e,syncToken:t?void 0:a(this,ft).getSyncToken(e)}))
return null!=i&&i.data&&(this.handleSyncMetaData(e,i.metadata),a(this,ft).saveConversations(e,i.data)),(null==i?void 0:i.data)??[]}catch{throw new Error(`ConversationsRepository: syncConversations failed for useCase: ${e}`)}}handleSyncMetaData(e,t){t.shouldClearCache&&a(this,ft).clearConversations(e),t.deletedUrns.length&&a(this,ft).deleteConversations(e,t.deletedUrns),t.nextSyncToken&&a(this,ft).saveSyncToken(e,t.nextSyncToken)}saveConversation(e){a(this,ft).saveConversations(e.useCase,[e])}}ft=new WeakMap,pt=new WeakMap
class Mt{constructor(e){s(this,kt),s(this,St),s(this,Ct),s(this,ht,void 0),s(this,gt,void 0),s(this,mt,void 0),s(this,vt,void 0),s(this,yt,void 0),s(this,bt,void 0),s(this,Et,void 0),s(this,_t,void 0),c(this,ht,e.hostProvider),c(this,gt,new xt),c(this,mt,new Y),c(this,_t,new Map),c(this,vt,new Pt({store:a(this,gt),mailboxProviderRegistry:a(this,mt)})),c(this,yt,new Dt({store:a(this,gt),mailboxProviderRegistry:a(this,mt)})),c(this,bt,new wt({hostProvider:a(this,ht),mailboxProviderRegistry:a(this,mt)})),c(this,Et,new Ot({store:a(this,gt),realtimeManager:a(this,bt),conversationsRepository:a(this,vt),messagesRepository:a(this,yt)}))}onUserSignin(){l(this,St,At).call(this)}onUserSignout(){l(this,Ct,It).call(this)}async subscribeToMailbox(e,t){const{useCase:n}=e
return a(this,_t).has(n)||(l(this,St,At).call(this),await a(this,bt).subscribe(e,t),a(this,_t).set(n,new Nt({useCase:e.useCase,conversationsRepository:a(this,vt),messagesRepository:a(this,yt),store:a(this,gt)}))),a(this,_t).get(n)}unsubscribeFromMailbox(e){return l(this,kt,Tt).call(this),a(this,bt).unsubscribe(e)}}ht=new WeakMap,gt=new WeakMap,mt=new WeakMap,vt=new WeakMap,yt=new WeakMap,bt=new WeakMap,Et=new WeakMap,_t=new WeakMap,kt=new WeakSet,Tt=function(){a(this,_t).forEach((e=>{e.cleanup()}))},St=new WeakSet,At=function(){a(this,Et).start()},Ct=new WeakSet,It=function(){a(this,Et).stop()}
const jt={DragonSwarm:"DragonSwarm",Liha:"Liha",Guide:"Guide",Hero:"Hero",SellerAgent:"SellerAgent",LearnerAgent:"LearnerAgent",...z()?{Pages:"Pages"}:{}}}}])

//# sourceMappingURL=chunk.698.9cf2e1d221282fc8c1cf.map