(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{42510:function(t,e,n){"use strict";let{FetchHTTPClient:r}=n(64167);class o{constructor(t,e,n,r){this.success=t,this.statusCode=e,this.message=n,this.eventResponseList=r}}class i{constructor(t,e,n){this.messageId=t,this.results=e,this.segmentEvent=n}}class a{static toAnalyticsResponse(t,e,n){let r=JSON.parse(JSON.stringify(t.batch)),a=[],[u,s,c]=[n.success,e.status,e.statusText];if(s>=200&&s<=299){let t=JSON.parse(JSON.stringify(n));return"validationReports"in t&&t.validationReports.forEach(t=>{let e=r.find(e=>e.messageId===t.messageId);e&&a.push(new i(e.messageId,t.results,e))}),new o(u,s,c,a)}if(s>=400&&s<=499){let t=JSON.parse(JSON.stringify(n)).message,e="error"in t?t.error:c;return r.forEach(t=>{a.push(new i(t.messageId,[],t))}),new o(u,s,e,a)}return r.forEach(t=>{a.push(new i(t.messageId,[],t))}),new o(u,s,c,a)}}class u extends r{constructor(t,e){super(),this.httpClient="function"==typeof t?new r(t):null!=t?t:new r,this.analyticsClient=e}async makeRequest(t){let e=this.httpClient.makeRequest(t),n=await e;if(429===n.status)return e;let r=this.analyticsClient.getResponseCallback();if(null!==r){let e=await n.clone().json();r(a.toAnalyticsResponse(t.data,n,e))}return e}}t.exports={AnalyticsFetchHTTPClient:u}},34479:function(t,e,n){"use strict";let r=n(96486),{Analytics:o}=n(64167),{AnalyticsFetchHTTPClient:i}=n(42510),{requireValue:a,validateTrackEvent:u,validateTraitEvent:s,validateUIEvent:c,validateScreenEvent:l,validateOperationalEvent:f,validateAliasType:h,validateGroupType:d,validateEnvOverrideIfPresent:p}=n(29941),g="prod";function v(t,e){return void 0===t?e:t}class y{static callback(t){let e=t.statusCode;e>=200&&e<=299?0===t.eventResponseList.length?console.debug("Event(s) submitted to GASv3"):t.eventResponseList.forEach(t=>{console.warn("Validation report for event with message ID %s:\n",t.messageId,JSON.stringify(t,null,2))}):400===e||404===e?(console.warn("GASv3 submission failed with HTTP Status Code %d: %s",t.statusCode,t.message),t.eventResponseList.forEach(t=>{console.warn("Event with message ID %s:\n",t.messageId,JSON.stringify(t,null,2))})):(console.info("GASv3 submission failed with HTTP Status Code %d: %s",t.statusCode,t.message),t.eventResponseList.forEach(t=>{console.debug("Event with message ID %s:\n",t.messageId,JSON.stringify(t,null,2))}))}}class m{static _buildProperties({userIdType:t,tenantIdType:e,tenantId:n,event:o,subproduct:i,product:a,env:u,datacenter:s,version:c,origin:l,orgId:f,workspaceId:h,aliases:d,groups:p},g){return r.merge({},o,{product:a,env:u,datacenter:s,version:c,eventType:g,subproduct:i,userIdType:t,tenantIdType:e,tenantId:n,origin:l,orgId:f,workspaceId:h,aliases:d,groups:p})}constructor({env:t,product:e,subproduct:n,sendEventHook:r,datacenter:u,version:s,origin:c,maxEventsInBatch:l,flushInterval:f,baseUrl:h,logger:d,errorHandler:m,perimeter:b,httpClient:_,httpRequestTimeout:w,maxRetries:E,envOverride:S}){var x,k;a(t,"env"),a(e,"product"),p(S),this.console=v(d,console),this.config={env:t,product:e,subproduct:n,sendEventHook:r,datacenter:u,origin:v(c,"server"),version:s},this.validationMode=t===g?"quiet":"complete",this.responseCallback=y.callback,this.analyticsClient=new o({writeKey:"BLANK",flushAt:l||250,flushInterval:f||1e4,maxRetries:E||3,host:h||(x=t,(k=b)&&"fedramp-moderate"===k?x===g?"https://as.atlassian-us-gov-mod.com/api":"https://as.staging.atl-paas-us-gov-mod.net/api":x===g?"https://as.atlassian.com/api":"https://as.staging.atl-paas.net/api"),path:"/api/v1/batch",httpRequestTimeout:w,httpClient:new i(_,this)}),m&&"function"==typeof m&&this.analyticsClient.on("error",m),this.groups=void 0,this.aliases=void 0}_getTimeoutMilliseconds(t){let e=v(t,6e4);return e<5e3?(this.console.warn(`timeoutMilliseconds was set less than the allowed minimum of 5000. Using the minimum allowed value instead.`),5e3):e}_eventCallback(t){this.config.sendEventHook&&this.config.sendEventHook(t)}_buildCompleteTrackEvent({userIdType:t,userId:e,anonymousId:n,tenantIdType:o,tenantId:i,trackEvent:a,subproduct:u,product:s,os:c,timestamp:l,orgId:f,workspaceId:h,groups:d,validationMode:p}){let g=r.merge({},this.groups,d);return{userId:e,anonymousId:n,event:a.actionSubject+" "+a.action,properties:m._buildProperties({userIdType:t,tenantIdType:o,tenantId:i,event:a,subproduct:v(u,this.config.subproduct),product:v(s,this.config.product),env:this.config.env,datacenter:this.config.datacenter,version:this.config.version,origin:v(a.origin,this.config.origin),orgId:f,workspaceId:h,aliases:this.aliases,groups:r.isEmpty(g)?void 0:g},"track"),timestamp:l,context:{os:c,validationMode:null!=p?p:this.validationMode}}}_buildCompleteTraitEvent({entityType:t,entityId:e,entityTraits:n,os:r,timestamp:o,tenantId:i,tenantIdType:a,validationMode:u}){return{anonymousId:"dummy-id",traits:{entityId:e,entityTraits:n,entityType:t},timestamp:o,context:{os:r,validationMode:null!=u?u:this.validationMode},tenantId:i,tenantIdType:a}}_buildCompleteOperationalEvent({userIdType:t,userId:e,anonymousId:n,tenantIdType:r,tenantId:o,operationalEvent:i,subproduct:a,product:u,os:s,timestamp:c,orgId:l,workspaceId:f,validationMode:h}){return{userId:e,anonymousId:n,event:i.actionSubject+" "+i.action,properties:m._buildProperties({userIdType:t,tenantIdType:r,tenantId:o,event:i,subproduct:v(a,this.config.subproduct),product:v(u,this.config.product),env:this.config.env,datacenter:this.config.datacenter,version:this.config.version,origin:v(i.origin,this.config.origin),orgId:l,workspaceId:f,aliases:this.aliases,groups:this.groups},"operational"),timestamp:c,context:{os:s,validationMode:null!=h?h:this.validationMode}}}_buildCompleteUIEvent({userIdType:t,userId:e,anonymousId:n,tenantIdType:r,tenantId:o,uiEvent:i,subproduct:a,product:u,os:s,timestamp:c,orgId:l,workspaceId:f,validationMode:h}){return{userId:e,anonymousId:n,event:i.actionSubject+" "+i.action,properties:m._buildProperties({userIdType:t,tenantIdType:r,tenantId:o,event:i,subproduct:v(a,this.config.subproduct),product:v(u,this.config.product),env:this.config.env,datacenter:this.config.datacenter,version:this.config.version,origin:v(i.origin,this.config.origin),orgId:l,workspaceId:f,aliases:this.aliases,groups:this.groups},"ui"),timestamp:c,context:{os:s,validationMode:null!=h?h:this.validationMode}}}_buildScreenEvent({userIdType:t,userId:e,anonymousId:n,tenantIdType:r,tenantId:o,name:i,screenEvent:a,subproduct:u,product:s,os:c,timestamp:l,orgId:f,workspaceId:h,validationMode:d}){return{userId:e,anonymousId:n,name:i,properties:m._buildProperties({userIdType:t,tenantIdType:r,tenantId:o,event:a,subproduct:v(u,this.config.subproduct),product:v(s,this.config.product),env:this.config.env,datacenter:this.config.datacenter,version:this.config.version,origin:v(a.origin,this.config.origin),orgId:f,workspaceId:h,aliases:this.aliases,groups:this.groups},"screen"),timestamp:l,context:{os:c,validationMode:null!=d?d:this.validationMode}}}sendOperationalEvent({userIdType:t,userId:e,anonymousId:n,tenantIdType:r,tenantId:o,operationalEvent:i,subproduct:a,product:u,os:s,timestamp:c,orgId:l,workspaceId:h,validationMode:d}){return f({userIdType:t,userId:e,anonymousId:n,tenantIdType:r,tenantId:o,timestamp:c,operationalEvent:i}).then(()=>new Promise((f,p)=>{let g=this._buildCompleteOperationalEvent({userIdType:t,userId:e,anonymousId:n,tenantIdType:r,tenantId:o,operationalEvent:i,subproduct:a,product:u,os:s,timestamp:c,orgId:l,workspaceId:h,validationMode:d});this.analyticsClient.track(g,(t,e)=>{t?p(t):(this._eventCallback(g,e),f(e))})}))}sendTrackEvent({userIdType:t,userId:e,anonymousId:n,tenantIdType:r,tenantId:o,trackEvent:i,groups:a,subproduct:s,product:c,os:l,timestamp:f,orgId:h,workspaceId:d,validationMode:p}){return u({userIdType:t,userId:e,anonymousId:n,tenantIdType:r,tenantId:o,timestamp:f,trackEvent:i,groups:a}).then(()=>new Promise((u,g)=>{let v=this._buildCompleteTrackEvent({userIdType:t,userId:e,anonymousId:n,tenantIdType:r,tenantId:o,trackEvent:i,subproduct:s,product:c,os:l,timestamp:f,orgId:h,workspaceId:d,groups:a,validationMode:p});this.analyticsClient.track(v,(t,e)=>{t?g(t):(this._eventCallback(v,e),u(e))})}))}sendTraitEvent({entityType:t,entityId:e,entityTraits:n,os:r,timestamp:o,tenantId:i,tenantIdType:a,validationMode:u}){return s({entityType:t,entityId:e,entityTraits:n,timestamp:o,tenantId:i,tenantIdType:a}).then(()=>new Promise((s,c)=>{let l=this._buildCompleteTraitEvent({entityType:t,entityId:e,entityTraits:n,os:r,timestamp:o,tenantId:i,tenantIdType:a,validationMode:u});this.analyticsClient.identify(l,(t,e)=>{t?c(t):(this._eventCallback(l,e),s(e))})}))}sendUIEvent({userIdType:t,userId:e,anonymousId:n,tenantIdType:r,tenantId:o,uiEvent:i,subproduct:a,product:u,os:s,timestamp:l,orgId:f,workspaceId:h,validationMode:d}){return c({userIdType:t,userId:e,anonymousId:n,tenantIdType:r,tenantId:o,timestamp:l,uiEvent:i}).then(()=>new Promise((c,p)=>{let g=this._buildCompleteUIEvent({userIdType:t,userId:e,anonymousId:n,tenantIdType:r,tenantId:o,uiEvent:i,subproduct:a,product:u,os:s,timestamp:l,orgId:f,workspaceId:h,validationMode:d});this.analyticsClient.track(g,(t,e)=>{t?p(t):(this._eventCallback(g,e),c(e))})}))}sendScreenEvent({userIdType:t,userId:e,anonymousId:n,tenantIdType:r,tenantId:o,name:i,screenEvent:a,subproduct:u,product:s,os:c,timestamp:f,orgId:h,workspaceId:d,validationMode:p}){return l({userIdType:t,userId:e,anonymousId:n,tenantIdType:r,tenantId:o,name:i,timestamp:f,screenEvent:a}).then(()=>new Promise((l,g)=>{let v=this._buildScreenEvent({userIdType:t,userId:e,anonymousId:n,tenantIdType:r,tenantId:o,name:i,screenEvent:a,subproduct:u,product:s,os:c,timestamp:f,orgId:h,workspaceId:d,validationMode:p});this.analyticsClient.page(v,(t,e)=>{t?g(t):(this._eventCallback(v,e),l(e))})}))}gracefulShutdown(){return new Promise((t,e)=>{this.analyticsClient.closeAndFlush().then(e=>{t(e)}).catch(t=>{e(t)})})}setGroup(t,e){this.groups||(this.groups={}),d(t),this.groups[t]=e}clearGroups(){this.groups=void 0}setAlias(t,e){this.aliases||(this.aliases={}),h(t),this.aliases[t]=e}clearAliases(){this.aliases=void 0}setResponseCallback(t){this.responseCallback=t}getResponseCallback(){return this.responseCallback}setEventValidationMode(t){this.validationMode=t}}t.exports={AnalyticsClient:m}},7796:function(t){"use strict";let e={};t.exports={isAllowedAliasType:function(t){return Object.values(e).includes(t)},ALIAS_TYPE:e}},69385:function(t){"use strict";let e="type",n=["id",e];t.exports={CONTAINER_OBJECT_FIELDS_ALLOWED:n,CONTAINER_OBJECT_FIELDS_MANDATORY:["id"],CONTAINER_OBJECT_FIELD_ID:"id",CONTAINER_OBJECT_FIELD_TYPE:e,isAllowedContainerObjectField:function(t){return n.some(e=>e===t)},isValidContainerObjectField:function(t,e){return n.some(e=>e===t)&&"string"==typeof e}}},24427:function(t,e,n){"use strict";let r=n(96486),o="AJS_ANONYMOUS_USER",i="ATLASSIAN_ACCOUNT",a="EMAIL_UUID",u="SITE",s="SITE_USER",c="TRELLO_USER",l="TRELLO_WORKSPACE",f=[o,i,a,"ORG",u,s,c,l];t.exports={AJS_ANONYMOUS_USER:o,ATLASSIAN_ACCOUNT:i,EMAIL_UUID:a,ORG:"ORG",SITE:u,SITE_USER:s,TRELLO_USER:c,TRELLO_WORKSPACE:l,isValidEntityType:function(t){return f.includes(t)},isValidEntityTraitValue:function(t){return r.isFinite(t)||r.isString(t)&&!r.isEmpty(t)||r.isDate(t)||r.isBoolean(t)}}},79743:function(t){"use strict";let e={FEDRAMP_MODERATE_SANDBOX:"fedramp-moderate-sandbox"};t.exports={isAllowedEnvOverride:function(t){return Object.values(e).includes(t)},ENV_OVERRIDES:e}},10309:function(t){"use strict";let e={TRANSACTION_ACCOUNT_ID:"transactionAccountId",PRODUCT_INTEGRATIONS_VENDOR_ID:"productIntegrationsVendorId"};t.exports={isAllowedGroupType:function(t){return Object.values(e).includes(t)},GROUP_TYPE:e}},57343:function(t){"use strict";let e="cloudId",n="halpTeamId",r="loomOrgId",o="trelloWorkspaceId",i="none",a=[e,n,r,o,i];t.exports={CLOUD_ID:e,HALP_TEAM_ID:n,NONE:i,LOOM_ORG_ID:r,TRELLO_WORKSPACE_ID:o,isValidTenantType:function(t){return a.includes(t)}}},74272:function(t){"use strict";let e="atlassianAccount",n="trello",r="hashedEmail",o="opsgenie",i="halp",a="customerAccount",u="loom";t.exports={ATLASSIAN_ACCOUNT:e,TRELLO:n,HASHED_EMAIL:r,OPSGENIE:o,HALP:i,CUSTOMER_ACCOUNT:a,LOOM:u,isValidUserIdType:function(t){return[e,n,r,o,i,a,u].includes(t)}}},99979:function(t,e,n){"use strict";let{AnalyticsClient:r}=n(34479),o=n(57343),i=n(74272),a=n(24427),{GROUP_TYPE:u}=n(10309),{ALIAS_TYPE:s}=n(7796),{ENV_OVERRIDES:c}=n(79743);t.exports={analyticsClient:function(t){return new r(t)},AnalyticsClient:r,tenantTypes:o,userTypes:i,entityTypes:a,aliasTypes:s,groupTypes:u,envOverrides:c}},29941:function(t,e,n){"use strict";let r=n(96486),o=n(57343),i=n(74272),a=n(24427),{CONTAINER_OBJECT_FIELDS_MANDATORY:u,isAllowedContainerObjectField:s,isValidContainerObjectField:c}=n(69385),{isPlainObject:l}=n(3291),{isAllowedAliasType:f}=n(7796),{isAllowedGroupType:h}=n(10309),{isAllowedEnvOverride:d}=n(79743),p="properties.containers";function g({entityType:t,entityTraits:e}){if(!a.isValidEntityType(t))throw Error(`Unknown entityType ${t}`);if(!r.isObject(e))throw Error("traits.entityTraits should be Object");r.forEach(e,(t,e)=>{if(!a.isValidEntityTraitValue(t))throw Error(`entityTraits.${e}: ${t} should be one of [String|Number|Boolean|Date]`)})}function v({tenantId:t,tenantIdType:e}){if(t&&m(e,"tenantIdType"),e){if(!o.isValidTenantType(e))throw Error(`Unknown tenantIdType ${e}`);e!==o.NONE&&m(t,"tenantId")}}function y({userIdType:t,userId:e,anonymousId:n}){if(function({userIdType:t,userId:e}){if(e&&m(t,"userIdType"),t){if(!i.isValidUserIdType(t))throw Error(`Unknown userIdType ${t}`);m(e,"userId")}}({userIdType:t,userId:e}),!e&&!n)throw Error("At least one set of identifiers must be passed - userIdType and userId, or anonymousId")}function m(t,e){if(!t)throw Error(`Value ${e} cannot be undefined`);return t}function b(t){if(t&&t.containers){let e=t.containers;if(l(e)){let n={};Object.keys(e).forEach(t=>{n[t]=function(t,e){let n=e[t];if(n){if(l(n)){let t={};return r.merge(t,function(t){let e={};return u.forEach(n=>{let r=t[n];if(c(n,r))e[n]=r;else throw Error(`Mandatory ContainerObject field "${n}" is not valid: "${r}" ; expected a value of type "string"`)}),e}(n)),r.merge(t,function(t){let e={};return Object.keys(t).forEach(n=>{let r=t[n];if(s(n)){if(c(n,r))e[n]=r;else throw Error(`ContainerObject field "${n}" is not valid: "${r}" ; expected a value of type "string"`)}}),e}(n)),t}throw Error(`ContainerObject "${p}.${t}" is not an object.`)}throw Error(`Container Key "${p}.${t}" has no ContainerObject.`)}(t,e)}),t.containers=n}else throw Error(`"${p}" is not an object.`)}}t.exports={requireValue:m,validateOperationalEvent:function({userIdType:t,userId:e,anonymousId:n,tenantIdType:r,tenantId:o,operationalEvent:i}){try{return y({userIdType:t,userId:e,anonymousId:n}),v({tenantId:o,tenantIdType:r}),m(i,"operationalEvent"),m(i.source,"operationalEvent.source"),m(i.action,"operationalEvent.action"),m(i.actionSubject,"operationalEvent.actionSubject"),b(i),Promise.resolve()}catch(t){return Promise.reject(t)}},validateTrackEvent:function({userIdType:t,userId:e,anonymousId:n,tenantIdType:r,tenantId:o,trackEvent:i,groups:a}){try{return y({userIdType:t,userId:e,anonymousId:n}),v({tenantId:o,tenantIdType:r}),m(i,"trackEvent"),m(i.source,"trackEvent.source"),m(i.action,"trackEvent.action"),m(i.actionSubject,"trackEvent.actionSubject"),b(i),a&&Object.keys(a).forEach(t=>{if(!h(t))throw Error(`groups object has unsupported groupKey: ${t}`)}),Promise.resolve()}catch(t){return Promise.reject(t)}},validateUIEvent:function({userIdType:t,userId:e,anonymousId:n,tenantIdType:r,tenantId:o,uiEvent:i}){try{return y({userIdType:t,userId:e,anonymousId:n}),v({tenantId:o,tenantIdType:r}),m(i,"uiEvent"),m(i.action,"uiEvent.action"),m(i.actionSubject,"uiEvent.actionSubject"),b(i),Promise.resolve()}catch(t){return Promise.reject(t)}},validateScreenEvent:function({userIdType:t,userId:e,anonymousId:n,tenantIdType:r,tenantId:o,name:i,screenEvent:a}){try{return y({userIdType:t,userId:e,anonymousId:n}),v({tenantId:o,tenantIdType:r}),m(i,"name"),m(a,"screenEvent"),m(a.platform,"screenEvent.platform"),b(a),Promise.resolve()}catch(t){return Promise.reject(t)}},validateTraitEvent:function({entityType:t,entityId:e,entityTraits:n,tenantId:r,tenantIdType:o}){try{return m(t,"entityType"),m(e,"entityId"),m(n,"entityTraits"),g({entityType:t,entityTraits:n}),v({tenantId:r,tenantIdType:o}),Promise.resolve()}catch(t){return Promise.reject(t)}},requireValidEntityData:g,requireValidUserData:y,requireValidTenantData:v,requireValidContainers:b,validateAliasType:function(t){if(m(t,"aliasType"),!f(t))throw Error(`Unknown aliasType ${t}`)},validateGroupType:function(t){if(m(t,"groupType"),!h(t))throw Error(`Unknown groupType ${t}`)},validateEnvOverrideIfPresent:function(t){if(t&&!d(t))throw Error(`Unknown envOverrides value ${t}`)},CONTAINERS_PATH_PREFIX:p}},3291:function(t){"use strict";function e(t){return!0==(null!==t&&"object"==typeof t&&!1===Array.isArray(t))&&"[object Object]"===Object.prototype.toString.call(t)}t.exports={isPlainObject:function(t){if(!1===e(t))return!1;let n=t.constructor;if("function"!=typeof n)return!1;let r=n.prototype;return!1!==e(r)&&!1!==Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")}}},64167:function(t,e,n){"use strict";function r(t,e){return new Promise(function(n,r){var o=setTimeout(function(){r(Error("Promise timed out"))},e);t.then(function(t){return clearTimeout(o),n(t)}).catch(r)})}n.r(e),n.d(e,{Analytics:function(){return ta},Context:function(){return W},FetchHTTPClient:function(){return ti},default:function(){return tu}});var o=function(t,e){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var a=function(){return(a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&o[o.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]{if(!t.writeKey)throw new l("writeKey","writeKey is missing.")},h="1.3.0";function d(t){var e=t.minTimeout,n=t.factor,r=t.attempt,o=t.maxTimeout;return Math.min((Math.random()+1)*(void 0===e?500:e)*Math.pow(void 0===n?2:n,r),void 0===o?1/0:o)}let p=t=>t.replace(/\/$/,""),g=(t,e)=>p(new URL(e||"",t).href);for(var v,y=function(){var t,e,n=new Promise(function(n,r){t=n,e=r});return{resolve:t,reject:e,promise:n}},m=256,b=[];m--;)b[m]=(m+256).toString(16).substring(1);function _(){var t,e=0,n="";if(!v||m+16>256){for(v=Array(e=256);e--;)v[e]=256*Math.random()|0;e=m=0}for(;e<16;e++)t=v[m+e],6==e?n+=b[15&t|64]:8==e?n+=b[63&t|128]:n+=b[t],1&e&&e>1&&e<11&&(n+="-");return m++,n}class w{constructor(t){this.id=_(),this.items=[],this.sizeInBytes=0,this.maxEventCount=Math.max(1,t)}tryAdd(t){if(this.length===this.maxEventCount)return{success:!1,message:`Event limit of ${this.maxEventCount} has been exceeded.`};let e=this.calculateSize(t.context);return e>32768?{success:!1,message:"Event exceeds maximum event size of 32 KB"}:this.sizeInBytes+e>491520?{success:!1,message:"Event has caused batch size to exceed 480 KB"}:(this.items.push(t),this.sizeInBytes+=e,{success:!0})}get length(){return this.items.length}calculateSize(t){return encodeURI(JSON.stringify(t.event)).split(/%..|i/).length}getEvents(){return this.items.map(({context:t})=>t.event)}getContexts(){return this.items.map(t=>t.context)}resolveEvents(){this.items.forEach(({resolver:t,context:e})=>t(e))}}var E=n(66784);let S=t=>E.lW.from(t).toString("base64");function x(){}class k{constructor({host:t,path:e,maxRetries:n,flushAt:r,flushInterval:o,writeKey:i,httpRequestTimeout:a,httpClient:u,disable:s},c){this._emitter=c,this._maxRetries=n,this._flushAt=Math.max(r,1),this._flushInterval=o,this._auth=S(`${i}:`),this._url=g(t??"https://api.segment.io",e??"/v1/batch"),this._httpRequestTimeout=a??1e4,this._disable=!!s,this._httpClient=u}createBatch(){this.pendingFlushTimeout&&clearTimeout(this.pendingFlushTimeout);let t=new w(this._flushAt);return this._batch=t,this.pendingFlushTimeout=setTimeout(()=>{t===this._batch&&(this._batch=void 0),this.pendingFlushTimeout=void 0,t.length&&this.send(t).catch(x)},this._flushInterval),t}clearBatch(){this.pendingFlushTimeout&&clearTimeout(this.pendingFlushTimeout),this._batch=void 0}flush(t){t&&(this._flushPendingItemsCount=t,this._batch&&this._batch.length===t&&(this.send(this._batch).catch(x),this.clearBatch()))}enqueue(t){let e=this._batch??this.createBatch(),{promise:n,resolve:r}=y(),o={context:t,resolver:r};if(e.tryAdd(o).success){let t=e.length===this._flushPendingItemsCount;return(e.length===this._flushAt||t)&&(this.send(e).catch(x),this.clearBatch()),n}e.length&&(this.send(e).catch(x),this.clearBatch());let i=this.createBatch(),a=i.tryAdd(o);return a.success?(i.length===this._flushPendingItemsCount&&(this.send(i).catch(x),this.clearBatch()),n):(t.setFailedDelivery({reason:Error(a.message)}),Promise.resolve(t))}async send(t){this._flushPendingItemsCount&&(this._flushPendingItemsCount-=t.length);let e=t.getEvents(),n=this._maxRetries+1,r=0;for(;r=200&&r.status<300){t.resolveEvents();return}if(400===r.status){A(t,Error(`[${r.status}] ${r.statusText}`));return}o=Error(`[${r.status}] ${r.statusText}`)}catch(t){o=t}if(r===n){A(t,o);return}await function(t){return new Promise(e=>setTimeout(e,t))}(d({attempt:r,minTimeout:25,maxTimeout:1e3}))}}}function A(t,e){t.getContexts().forEach(t=>t.setFailedDelivery({reason:e})),t.resolveEvents()}var C=n(83454);let T=()=>"object"==typeof C&&C&&"object"==typeof C.env&&C.env&&"string"==typeof C.version?"node":"object"==typeof window?"browser":"undefined"!=typeof WebSocketPair?"cloudflare-worker":"string"==typeof EdgeRuntime?"vercel-edge":"undefined"!=typeof WorkerGlobalScope&&"function"==typeof importScripts?"web-worker":"unknown";var O=n(83454);let I=(t,e)=>{let n=new k(t,e);return{publisher:n,plugin:function(t){function e(e){return!function(t){t.updateEvent("context.library.name","@segment/analytics-node"),t.updateEvent("context.library.version",h);let e=T();"node"===e&&t.updateEvent("_metadata.nodeVersion",O.version),t.updateEvent("_metadata.jsRuntime",e)}(e),t.enqueue(e)}return{name:"Segment.io",type:"destination",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),alias:e,group:e,identify:e,page:e,screen:e,track:e}}(n)}};function j(t,e,n){e.split&&(e=e.split("."));for(var r,o,i=0,a=e.length,u=t;ie.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(t);oe.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}(t,["options"]),d=a(a(a({timestamp:new Date},h),{integrations:u,context:c}),f),p=a(a({},d),{messageId:this.createMessageId()});return function(t){if(!(null!=t))throw new l("Event",P);if("object"!=typeof t)throw new l("Event",$)}(p),function(t){if(!R(t.type))throw new l(".type",B)}(p),"track"===p.type&&(function(t){if(!R(t.event))throw new l(".event",B)}(p),function(t){if(!L(t.properties))throw new l(".properties",$)}(p)),["group","identify"].includes(p.type)&&function(t){if(!L(t.traits))throw new l(".traits",$)}(p),function(t){var e,n,r,o=".userId/anonymousId/previousId/groupId",i=null!==(r=null!==(n=null!==(e=t.userId)&&void 0!==e?e:t.anonymousId)&&void 0!==n?n:t.groupId)&&void 0!==r?r:t.previousId;if(null!=i){if(!R(i))throw new l(o,B)}else throw new l(o,P)}(p),p},t}();let D=()=>`node-next-${Date.now()}-${_()}`;class N extends U{constructor(){super({createMessageId:D})}}var M=function(){function t(){this._logs=[]}return t.prototype.log=function(t,e,n){var r=new Date;this._logs.push({level:t,message:e,time:r,extras:n})},Object.defineProperty(t.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),t.prototype.flush=function(){if(this.logs.length>1){var t=this._logs.reduce(function(t,e){var n,r,o,i=a(a({},e),{json:JSON.stringify(e.extras,null," "),extras:e.extras});delete i.time;var u=null!==(o=null===(r=e.time)||void 0===r?void 0:r.toISOString())&&void 0!==o?o:"";return t[u]&&(u="".concat(u,"-").concat(Math.random())),a(a({},t),((n={})[u]=i,n))},{});console.table?console.table(t):console.log(t)}else this.logs.forEach(function(t){var e=t.level,n=t.message,r=t.extras;"info"===e||"debug"===e?console.log(n,null!=r?r:""):console[e](n,null!=r?r:"")});this._logs=[]},t}(),F=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.gauge=function(){for(var t=[],e=0;ee=>{let n=e.failedDelivery();return n?t(n.reason,e):t(void 0,e)},H=async(t,e,n,o)=>{try{let i=new W(t),a=await function(t,e,n,o){return u(this,void 0,void 0,function(){var i,a;return s(this,function(u){switch(u.label){case 0:if(n.emit("dispatch_start",t),i=Date.now(),!e.isEmpty())return[3,2];return[4,e.dispatchSingle(t)];case 1:return a=u.sent(),[3,4];case 2:return[4,e.dispatch(t)];case 3:a=u.sent(),u.label=4;case 4:var s,c,l,f,h,d;if(!(null==o?void 0:o.callback))return[3,6];return[4,(l=a,f=o.callback,s=i,h=Math.max((null!=(c=o.timeout)?c:300)-(Date.now()-s),0),d=function(){try{return Promise.resolve(f(l))}catch(t){return Promise.reject(t)}},new Promise(function(t){return setTimeout(t,h)}).then(function(){return r(d(),1e3)}).catch(function(t){null==l||l.log("warn","Callback Error",{error:t}),null==l||l.stats.increment("callback_error")}).then(function(){return l}))];case 5:a=u.sent(),u.label=6;case 6:return(null==o?void 0:o.debug)&&a.flush(),[2,a]}})})}(i,e,n,{...o?{callback:G(o)}:{}}),c=a.failedDelivery();c?n.emit("error",{code:"delivery_failure",reason:c.reason,ctx:a}):n.emit(t.type,a)}catch(t){n.emit("error",{code:"unknown",reason:t})}};var V=function(){function t(t){var e;this.callbacks={},this.warned=!1,this.maxListeners=null!==(e=null==t?void 0:t.maxListeners)&&void 0!==e?e:10}return t.prototype.warnIfPossibleMemoryLeak=function(t){!this.warned&&this.maxListeners&&this.callbacks[t].length>this.maxListeners&&(console.warn("Event Emitter: Possible memory leak detected; ".concat(String(t)," has exceeded ").concat(this.maxListeners," listeners.")),this.warned=!0)},t.prototype.on=function(t,e){return this.callbacks[t]?(this.callbacks[t].push(e),this.warnIfPossibleMemoryLeak(t)):this.callbacks[t]=[e],this},t.prototype.once=function(t,e){var n=this,r=function(){for(var o=[],i=0;it.maxAttempts||t.includes(e))&&(t.queue.push(e),!0)});return this.queue=this.queue.sort(function(e,n){return t.getAttempts(e)-t.getAttempts(n)}),r},e.prototype.pushWithBackoff=function(t){var e=this;if(0===this.getAttempts(t))return this.push(t)[0];var n=this.updateAttempts(t);return!(n>this.maxAttempts||this.includes(t))&&(setTimeout(function(){e.queue.push(t),e.future=e.future.filter(function(e){return e.id!==t.id}),e.emit(Z)},d({attempt:n-1})),this.future.push(t),!0)},e.prototype.getAttempts=function(t){var e;return null!==(e=this.seen[t.id])&&void 0!==e?e:0},e.prototype.updateAttempts=function(t){return this.seen[t.id]=this.getAttempts(t)+1,this.getAttempts(t)},e.prototype.includes=function(t){return this.queue.includes(t)||this.future.includes(t)||!!this.queue.find(function(e){return e.id===t.id})||!!this.future.find(function(e){return e.id===t.id})},e.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(e.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),e}(V),Y=function(){var t,e,n=0;return{done:function(){return t},run:function(r){var o=r();return"object"==typeof o&&null!==o&&"then"in o&&"function"==typeof o.then&&(1==++n&&(t=new Promise(function(t){return e=t})),o.finally(function(){return 0==--n&&e()})),o}}};function X(t,e){t.log("debug","plugin",{plugin:e.name});var n=new Date().getTime(),r=e[t.event.type];return void 0===r?Promise.resolve(t):(function(t){return u(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,t()];case 1:return[2,e.sent()];case 2:return[2,Promise.reject(e.sent())];case 3:return[2]}})})})(function(){return r.apply(e,[t])}).then(function(t){var r=new Date().getTime()-n;return t.stats.gauge("plugin_time",r,["plugin:".concat(e.name)]),t}).catch(function(n){if(n instanceof q&&"middleware_cancellation"===n.type)throw n;return n instanceof q?t.log("warn",n.type,{plugin:e.name,error:n}):(t.log("error","plugin Error",{plugin:e.name,error:n}),t.stats.increment("plugin_error",1,["plugin:".concat(e.name)])),n})}var Q=function(t){function e(e){var n=t.call(this)||this;return n.criticalTasks=Y(),n.plugins=[],n.failedInitializations=[],n.flushing=!1,n.queue=e,n.queue.on(Z,function(){n.scheduleFlush(0)}),n}return i(e,t),e.prototype.register=function(t,e,n){return u(this,void 0,void 0,function(){var r=this;return s(this,function(o){switch(o.label){case 0:return[4,Promise.resolve(e.load(t,n)).then(function(){r.plugins.push(e)}).catch(function(n){if("destination"===e.type){r.failedInitializations.push(e.name),console.warn(e.name,n),t.log("warn","Failed to load destination",{plugin:e.name,error:n});return}throw n})];case 1:return o.sent(),[2]}})})},e.prototype.deregister=function(t,e,n){return u(this,void 0,void 0,function(){var r;return s(this,function(o){switch(o.label){case 0:if(o.trys.push([0,3,,4]),!e.unload)return[3,2];return[4,Promise.resolve(e.unload(t,n))];case 1:o.sent(),o.label=2;case 2:return this.plugins=this.plugins.filter(function(t){return t.name!==e.name}),[3,4];case 3:return r=o.sent(),t.log("warn","Failed to unload destination",{plugin:e.name,error:r}),[3,4];case 4:return[2]}})})},e.prototype.dispatch=function(t){return u(this,void 0,void 0,function(){var e;return s(this,function(n){return t.log("debug","Dispatching"),t.stats.increment("message_dispatched"),this.queue.push(t),e=this.subscribeToDelivery(t),this.scheduleFlush(0),[2,e]})})},e.prototype.subscribeToDelivery=function(t){return u(this,void 0,void 0,function(){var e=this;return s(this,function(n){return[2,new Promise(function(n){var r=function(o,i){o.isSame(t)&&(e.off("flush",r),n(o))};e.on("flush",r)})]})})},e.prototype.dispatchSingle=function(t){return u(this,void 0,void 0,function(){var e=this;return s(this,function(n){return t.log("debug","Dispatching"),t.stats.increment("message_dispatched"),this.queue.updateAttempts(t),t.attempts=1,[2,this.deliver(t).catch(function(n){return e.enqueuRetry(n,t)?e.subscribeToDelivery(t):(t.setFailedDelivery({reason:n}),t)})]})})},e.prototype.isEmpty=function(){return 0===this.queue.length},e.prototype.scheduleFlush=function(t){var e=this;void 0===t&&(t=500),this.flushing||(this.flushing=!0,setTimeout(function(){e.flush().then(function(){setTimeout(function(){e.flushing=!1,e.queue.length&&e.scheduleFlush(0)},0)})},t))},e.prototype.deliver=function(t){return u(this,void 0,void 0,function(){var e,n,r,o;return s(this,function(i){switch(i.label){case 0:return[4,this.criticalTasks.done()];case 1:i.sent(),e=Date.now(),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,this.flushOne(t)];case 3:return t=i.sent(),n=Date.now()-e,this.emit("delivery_success",t),t.stats.gauge("delivered",n),t.log("debug","Delivered",t.event),[2,t];case 4:throw o=r=i.sent(),t.log("error","Failed to deliver",o),this.emit("delivery_failure",t,o),t.stats.increment("delivery_failed"),r;case 5:return[2]}})})},e.prototype.enqueuRetry=function(t,e){return(!(t instanceof q)||!!t.retry)&&this.queue.pushWithBackoff(e)},e.prototype.flush=function(){return u(this,void 0,void 0,function(){var t,e;return s(this,function(n){switch(n.label){case 0:if(0===this.queue.length||!(t=this.queue.pop()))return[2,[]];t.attempts=this.queue.getAttempts(t),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.deliver(t)];case 2:return t=n.sent(),this.emit("flush",t,!0),[3,4];case 3:return e=n.sent(),this.enqueuRetry(e,t)||(t.setFailedDelivery({reason:e}),this.emit("flush",t,!1)),[2,[]];case 4:return[2,[t]]}})})},e.prototype.isReady=function(){return!0},e.prototype.availableExtensions=function(t){var e,n,r=(e="type",n={},this.plugins.filter(function(e){if("destination"!==e.type&&"Segment.io"!==e.name)return!0;var n,r,o,i=void 0;return null===(n=e.alternativeNames)||void 0===n||n.forEach(function(e){void 0!==t[e]&&(i=t[e])}),null!==(o=null!==(r=t[e.name])&&void 0!==r?r:i)&&void 0!==o?o:!1!==("Segment.io"===e.name||t.All)}).forEach(function(t){var r,o=void 0;if("string"==typeof e){var i=t[e];o="string"!=typeof i?JSON.stringify(i):i}else e instanceof Function&&(o=e(t));void 0!==o&&(n[o]=c(c([],null!==(r=n[o])&&void 0!==r?r:[],!0),[t],!1))}),n),o=r.before,i=r.enrichment,a=r.destination,u=r.after;return{before:void 0===o?[]:o,enrichment:void 0===i?[]:i,destinations:void 0===a?[]:a,after:void 0===u?[]:u}},e.prototype.flushOne=function(t){var e,n;return u(this,void 0,void 0,function(){var r,o,i,a,u,c,l,f,h,d,p,g,v;return s(this,function(s){switch(s.label){case 0:if(!this.isReady())throw Error("Not ready");t.attempts>1&&this.emit("delivery_retry",t),o=(r=this.availableExtensions(null!==(e=t.event.integrations)&&void 0!==e?e:{})).before,i=r.enrichment,a=0,u=o,s.label=1;case 1:var y;if(!(a{if("cloudflare-worker"===T())return[];let e=new(globalThis.AbortController||tn),n=setTimeout(()=>{e.abort()},t);return n?.unref?.(),[e.signal,n]},to=async(...t)=>{if(globalThis.fetch)return globalThis.fetch(...t);if("string"!=typeof EdgeRuntime)return(await n.e(1068).then(n.t.bind(n,1068,23))).default(...t);throw Error("Invariant: an edge runtime that does not support fetch should not exist")};class ti{constructor(t){this._fetch=t??to}async makeRequest(t){let[e,n]=tr(t.httpRequestTimeout),r={url:t.url,method:t.method,headers:t.headers,body:JSON.stringify(t.data),signal:e};return this._fetch(t.url,r).finally(()=>clearTimeout(n))}}class ta extends J{constructor(t){super(),this._isClosed=!1,this._pendingEvents=0,this._isFlushing=!1,f(t),this._eventFactory=new N,this._queue=new te;let e=t.flushInterval??1e4;this._closeAndFlushDefaultTimeout=1.25*e;let{plugin:n,publisher:r}=I({writeKey:t.writeKey,host:t.host,path:t.path,maxRetries:t.maxRetries??3,flushAt:t.flushAt??t.maxEventsInBatch??15,httpRequestTimeout:t.httpRequestTimeout,disable:t.disable,flushInterval:e,httpClient:"function"==typeof t.httpClient?new ti(t.httpClient):t.httpClient??new ti},this);this._publisher=r,this.ready=this.register(n).then(()=>void 0),this.emit("initialize",t),function(t){for(var e=t.constructor.prototype,n=0,r=Object.getOwnPropertyNames(e);n{this._pendingEvents?this.once("drained",()=>{t()}):t()}).finally(()=>{this._isFlushing=!1});return t?r(n,t).catch(()=>void 0):n}_dispatch(t,e){if(this._isClosed){this.emit("call_after_close",t);return}this._pendingEvents++,H(t,this._queue,this,e).catch(t=>t).finally(()=>{this._pendingEvents--,this._pendingEvents||this.emit("drained")})}alias({userId:t,previousId:e,context:n,timestamp:r,integrations:o},i){let a=this._eventFactory.alias(t,e,{context:n,integrations:o,timestamp:r});this._dispatch(a,i)}group({timestamp:t,groupId:e,userId:n,anonymousId:r,traits:o={},context:i,integrations:a},u){let s=this._eventFactory.group(e,o,{context:i,anonymousId:r,userId:n,timestamp:t,integrations:a});this._dispatch(s,u)}identify({userId:t,anonymousId:e,traits:n={},context:r,timestamp:o,integrations:i},a){let u=this._eventFactory.identify(t,n,{context:r,anonymousId:e,userId:t,timestamp:o,integrations:i});this._dispatch(u,a)}page({userId:t,anonymousId:e,category:n,name:r,properties:o,context:i,timestamp:a,integrations:u},s){let c=this._eventFactory.page(n??null,r??null,o,{context:i,anonymousId:e,userId:t,timestamp:a,integrations:u});this._dispatch(c,s)}screen({userId:t,anonymousId:e,category:n,name:r,properties:o,context:i,timestamp:a,integrations:u},s){let c=this._eventFactory.screen(n??null,r??null,o,{context:i,anonymousId:e,userId:t,timestamp:a,integrations:u});this._dispatch(c,s)}track({userId:t,anonymousId:e,event:n,properties:r,context:o,timestamp:i,integrations:a},u){let s=this._eventFactory.track(n,r,{context:o,userId:t,anonymousId:e,timestamp:i,integrations:a});this._dispatch(s,u)}register(...t){return this._queue.criticalTasks.run(async()=>{let e=W.system(),n=t.map(t=>this._queue.register(e,t,this));await Promise.all(n),this.emit("register",t.map(t=>t.name))})}async deregister(...t){let e=W.system(),n=t.map(t=>{let n=this._queue.plugins.find(e=>e.name===t);if(n)return this._queue.deregister(e,n,this);e.log("warn",`plugin ${t} not found`)});await Promise.all(n),this.emit("deregister",t)}}var tu=ta},66784:function(t,e,n){"use strict";let r=n(79742),o=n(80645),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(t){if(t>2147483647)throw RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,n){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return l(t)}return s(t,e,n)}function s(t,e,n){if("string"==typeof t)return function(t,e){if(("string"!=typeof e||""===e)&&(e="utf8"),!u.isEncoding(e))throw TypeError("Unknown encoding: "+e);let n=0|p(t,e),r=a(n),o=r.write(t,e);return o!==n&&(r=r.slice(0,o)),r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(U(t,Uint8Array)){let e=new Uint8Array(t);return h(e.buffer,e.byteOffset,e.byteLength)}return f(t)}(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(U(t,ArrayBuffer)||t&&U(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(U(t,SharedArrayBuffer)||t&&U(t.buffer,SharedArrayBuffer)))return h(t,e,n);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');let r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return u.from(r,e,n);let o=function(t){var e;if(u.isBuffer(t)){let e=0|d(t.length),n=a(e);return 0===n.length||t.copy(n,0,0,e),n}return void 0!==t.length?"number"!=typeof t.length||(e=t.length)!=e?a(0):f(t):"Buffer"===t.type&&Array.isArray(t.data)?f(t.data):void 0}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return c(t),a(t<0?0:0|d(t))}function f(t){let e=t.length<0?0:0|d(t.length),n=a(e);for(let r=0;r=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||U(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return B(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(t).length;default:if(o)return r?-1:B(t).length;e=(""+e).toLowerCase(),o=!0}}function g(t,e,n){let o=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,n){let r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);let o="";for(let r=e;r2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(i=n=+n)!=i&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return -1;n=t.length-1}else if(n<0){if(!o)return -1;n=0}if("string"==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:m(t,e,n,r,o);if("number"==typeof e)return(e&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):m(t,[e],n,r,o);throw TypeError("val must be string, number or Buffer")}function m(t,e,n,r,o){let i,a=1,u=t.length,s=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return -1;a=2,u/=2,s/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){let r=-1;for(i=n;iu&&(n=u-s),i=n;i>=0;i--){let n=!0;for(let r=0;r239?4:e>223?3:e>191?2:1;if(o+a<=n){let n,r,u,s;switch(a){case 1:e<128&&(i=e);break;case 2:(192&(n=t[o+1]))==128&&(s=(31&e)<<6|63&n)>127&&(i=s);break;case 3:n=t[o+1],r=t[o+2],(192&n)==128&&(192&r)==128&&(s=(15&e)<<12|(63&n)<<6|63&r)>2047&&(s<55296||s>57343)&&(i=s);break;case 4:n=t[o+1],r=t[o+2],u=t[o+3],(192&n)==128&&(192&r)==128&&(192&u)==128&&(s=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&u)>65535&&s<1114112&&(i=s)}}null===i?(i=65533,a=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=a}return function(t){let e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);let n="",r=0;for(;rn)throw RangeError("Trying to access beyond buffer length")}function w(t,e,n,r,o,i){if(!u.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw RangeError("Index out of range")}function E(t,e,n,r,o){I(e,r,o,t,n,7);let i=Number(e&BigInt(4294967295));t[n++]=i,i>>=8,t[n++]=i,i>>=8,t[n++]=i,i>>=8,t[n++]=i;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,n}function S(t,e,n,r,o){I(e,r,o,t,n,7);let i=Number(e&BigInt(4294967295));t[n+7]=i,i>>=8,t[n+6]=i,i>>=8,t[n+5]=i,i>>=8,t[n+4]=i;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=a,a>>=8,t[n+2]=a,a>>=8,t[n+1]=a,a>>=8,t[n]=a,n+8}function x(t,e,n,r,o,i){if(n+r>t.length||n<0)throw RangeError("Index out of range")}function k(t,e,n,r,i){return e=+e,n>>>=0,i||x(t,e,n,4,34028234663852886e22,-34028234663852886e22),o.write(t,e,n,r,23,4),n+4}function A(t,e,n,r,i){return e=+e,n>>>=0,i||x(t,e,n,8,17976931348623157e292,-17976931348623157e292),o.write(t,e,n,r,52,8),n+8}e.lW=u,e.h2=50,u.TYPED_ARRAY_SUPPORT=function(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,e,n){return s(t,e,n)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,e,n){return(c(t),t<=0)?a(t):void 0!==e?"string"==typeof n?a(t).fill(e,n):a(t).fill(e):a(t)},u.allocUnsafe=function(t){return l(t)},u.allocUnsafeSlow=function(t){return l(t)},u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,e){if(U(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),U(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(t)||!u.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,r=e.length;for(let o=0,i=Math.min(n,r);or.length?(u.isBuffer(e)||(e=u.from(e)),e.copy(r,o)):Uint8Array.prototype.set.call(r,e,o);else if(u.isBuffer(e))e.copy(r,o);else throw TypeError('"list" argument must be an Array of Buffers');o+=e.length}return r},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){let t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;en&&(t+=" ... "),""},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(t,e,n,r,o){if(U(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return -1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,o>>>=0,this===t)return 0;let i=o-r,a=n-e,s=Math.min(i,a),c=this.slice(r,o),l=t.slice(e,n);for(let t=0;t>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let h=this.length-e;if((void 0===n||n>h)&&(n=h),t.length>0&&(n<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let d=!1;for(;;)switch(r){case"hex":return function(t,e,n,r){let o;n=Number(n)||0;let i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;let a=e.length;for(r>a/2&&(r=a/2),o=0;o>8,o.push(n%256),o.push(r);return o}(t,this.length-l),this,l,f);default:if(d)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),d=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(t,e){let n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||_(t,e,this.length);let r=this[t],o=1,i=0;for(;++i>>=0,e>>>=0,n||_(t,e,this.length);let r=this[t+--e],o=1;for(;e>0&&(o*=256);)r+=this[t+--e]*o;return r},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||_(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||_(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||_(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||_(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||_(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readBigUInt64LE=N(function(t){j(t>>>=0,"offset");let e=this[t],n=this[t+7];(void 0===e||void 0===n)&&R(t,this.length-8);let r=e+256*this[++t]+65536*this[++t]+16777216*this[++t],o=this[++t]+256*this[++t]+65536*this[++t]+16777216*n;return BigInt(r)+(BigInt(o)<>>=0,"offset");let e=this[t],n=this[t+7];(void 0===e||void 0===n)&&R(t,this.length-8);let r=16777216*e+65536*this[++t]+256*this[++t]+this[++t],o=16777216*this[++t]+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<>>=0,e>>>=0,n||_(t,e,this.length);let r=this[t],o=1,i=0;for(;++i=(o*=128)&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||_(t,e,this.length);let r=e,o=1,i=this[t+--r];for(;r>0&&(o*=256);)i+=this[t+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},u.prototype.readInt8=function(t,e){return(t>>>=0,e||_(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||_(t,2,this.length);let n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){t>>>=0,e||_(t,2,this.length);let n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||_(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||_(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readBigInt64LE=N(function(t){j(t>>>=0,"offset");let e=this[t],n=this[t+7];return(void 0===e||void 0===n)&&R(t,this.length-8),(BigInt(this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24))<>>=0,"offset");let e=this[t],n=this[t+7];return(void 0===e||void 0===n)&&R(t,this.length-8),(BigInt((e<<24)+65536*this[++t]+256*this[++t]+this[++t])<>>=0,e||_(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||_(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||_(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||_(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){let r=Math.pow(2,8*n)-1;w(this,t,e,n,r,0)}let o=1,i=0;for(this[e]=255&t;++i>>=0,n>>>=0,!r){let r=Math.pow(2,8*n)-1;w(this,t,e,n,r,0)}let o=n-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||w(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||w(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||w(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||w(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||w(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigUInt64LE=N(function(t,e=0){return E(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=N(function(t,e=0){return S(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){let r=Math.pow(2,8*n-1);w(this,t,e,n,r-1,-r)}let o=0,i=1,a=0;for(this[e]=255&t;++o>0)-a&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){let r=Math.pow(2,8*n-1);w(this,t,e,n,r-1,-r)}let o=n-1,i=1,a=0;for(this[e+o]=255&t;--o>=0&&(i*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/i>>0)-a&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||w(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||w(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||w(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||w(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||w(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigInt64LE=N(function(t,e=0){return E(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=N(function(t,e=0){return S(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(t,e,n){return k(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return k(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return A(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return A(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(!u.isBuffer(t))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function I(t,e,n,r,o,i){if(t>n||t3?0===e||e===BigInt(0)?`>= 0${o} and < 2${o} ** ${(i+1)*8}${o}`:`>= -(2${o} ** ${(i+1)*8-1}${o}) and < 2 ** ${(i+1)*8-1}${o}`:`>= ${e}${o} and <= ${n}${o}`,new C.ERR_OUT_OF_RANGE("value",r,t)}j(o,"offset"),(void 0===r[o]||void 0===r[o+i])&&R(o,r.length-(i+1))}function j(t,e){if("number"!=typeof t)throw new C.ERR_INVALID_ARG_TYPE(e,"number",t)}function R(t,e,n){if(Math.floor(t)!==t)throw j(t,n),new C.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new C.ERR_BUFFER_OUT_OF_BOUNDS;throw new C.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}T("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),T("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),T("ERR_OUT_OF_RANGE",function(t,e,n){let r=`The value of "${t}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>4294967296?o=O(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=O(o)),o+="n"),r+=` It must be ${e}. Received ${o}`},RangeError);let L=/[^+/0-9A-Za-z-_]/g;function B(t,e){let n;e=e||1/0;let r=t.length,o=null,i=[];for(let a=0;a55295&&n<57344){if(!o){if(n>56319||a+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return i}function $(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(L,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function P(t,e,n,r){let o;for(o=0;o=e.length)&&!(o>=t.length);++o)e[o+n]=t[o];return o}function U(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}let D=function(){let t="0123456789abcdef",e=Array(256);for(let n=0;n<16;++n){let r=16*n;for(let o=0;o<16;++o)e[r+o]=t[n]+t[o]}return e}();function N(t){return"undefined"==typeof BigInt?M:t}function M(){throw Error("BigInt not supported")}},79742:function(t,e){"use strict";e.byteLength=function(t){var e=s(t),n=e[0],r=e[1];return(n+r)*3/4-r},e.toByteArray=function(t){var e,n,i=s(t),a=i[0],u=i[1],c=new o((a+u)*3/4-u),l=0,f=u>0?a-4:a;for(n=0;n>16&255,c[l++]=e>>8&255,c[l++]=255&e;return 2===u&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,c[l++]=255&e),1===u&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,c[l++]=e>>8&255,c[l++]=255&e),c},e.fromByteArray=function(t){for(var e,r=t.length,o=r%3,i=[],a=0,u=r-o;a>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return i.join("")}(t,a,a+16383>u?u:a+16383));return 1===o?i.push(n[(e=t[r-1])>>2]+n[e<<4&63]+"=="):2===o&&i.push(n[(e=(t[r-2]<<8)+t[r-1])>>10]+n[e>>4&63]+n[e<<2&63]+"="),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=i.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},80645:function(t,e){e.read=function(t,e,n,r,o){var i,a,u=8*o-r-1,s=(1<>1,l=-7,f=n?o-1:0,h=n?-1:1,d=t[e+f];for(f+=h,i=d&(1<<-l)-1,d>>=-l,l+=u;l>0;i=256*i+t[e+f],f+=h,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+t[e+f],f+=h,l-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),i-=c}return(d?-1:1)*a*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var a,u,s,c=8*i-o-1,l=(1<>1,h=23===o?5960464477539062e-23:0,d=r?0:i-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(isNaN(e=Math.abs(e))||e===1/0?(u=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),a+f>=1?e+=h/s:e+=h*Math.pow(2,1-f),e*s>=2&&(a++,s/=2),a+f>=l?(u=0,a=l):a+f>=1?(u=(e*s-1)*Math.pow(2,o),a+=f):(u=e*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;t[n+d]=255&u,d+=p,u/=256,o-=8);for(a=a<0;t[n+d]=255&a,d+=p,a/=256,c-=8);t[n+d-p]|=128*g}},62705:function(t,e,n){var r=n(55639).Symbol;t.exports=r},44239:function(t,e,n){var r=n(62705),o=n(89607),i=n(2333),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},27561:function(t,e,n){var r=n(67990),o=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t}},31957:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},89607:function(t,e,n){var r=n(62705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),n=t[u];try{t[u]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[u]=n:delete t[u]),o}},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},55639:function(t,e,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},67990:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},23279:function(t,e,n){var r=n(13218),o=n(7771),i=n(14841),a=Math.max,u=Math.min;t.exports=function(t,e,n){var s,c,l,f,h,d,p=0,g=!1,v=!1,y=!0;if("function"!=typeof t)throw TypeError("Expected a function");function m(e){var n=s,r=c;return s=c=void 0,p=e,f=t.apply(r,n)}function b(t){var n=t-d,r=t-p;return void 0===d||n>=e||n<0||v&&r>=l}function _(){var t,n,r,i=o();if(b(i))return w(i);h=setTimeout(_,(t=i-d,n=i-p,r=e-t,v?u(r,l-n):r))}function w(t){return(h=void 0,y&&s)?m(t):(s=c=void 0,f)}function E(){var t,n=o(),r=b(n);if(s=arguments,c=this,d=n,r){if(void 0===h)return p=t=d,h=setTimeout(_,e),g?m(t):f;if(v)return clearTimeout(h),h=setTimeout(_,e),m(d)}return void 0===h&&(h=setTimeout(_,e)),f}return e=i(e)||0,r(n)&&(g=!!n.leading,l=(v="maxWait"in n)?a(i(n.maxWait)||0,e):l,y="trailing"in n?!!n.trailing:y),E.cancel=function(){void 0!==h&&clearTimeout(h),p=0,s=d=c=h=void 0},E.flush=function(){return void 0===h?f:w(o())},E}},13218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},37005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},33448:function(t,e,n){var r=n(44239),o=n(37005);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==r(t)}},96486:function(t,e,n){var r;t=n.nmd(t),(function(){var o,i="Expected a function",a="__lodash_hash_undefined__",u="__lodash_placeholder__",s=1/0,c=0/0,l=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],f="[object Arguments]",h="[object Array]",d="[object Boolean]",p="[object Date]",g="[object Error]",v="[object Function]",y="[object GeneratorFunction]",m="[object Map]",b="[object Number]",_="[object Object]",w="[object Promise]",E="[object RegExp]",S="[object Set]",x="[object String]",k="[object Symbol]",A="[object WeakMap]",C="[object ArrayBuffer]",T="[object DataView]",O="[object Float32Array]",I="[object Float64Array]",j="[object Int8Array]",R="[object Int16Array]",L="[object Int32Array]",B="[object Uint8Array]",$="[object Uint8ClampedArray]",P="[object Uint16Array]",U="[object Uint32Array]",D=/\b__p \+= '';/g,N=/\b(__p \+=) '' \+/g,M=/(__e\(.*?\)|\b__t\)) \+\n'';/g,F=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,z=RegExp(F.source),W=RegExp(q.source),G=/<%-([\s\S]+?)%>/g,H=/<%([\s\S]+?)%>/g,V=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,K=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/[\\^$.*+?()[\]{}|]/g,X=RegExp(Y.source),Q=/^\s+/,tt=/\s/,te=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,tn=/\{\n\/\* \[wrapped with (.+)\] \*/,tr=/,? & /,to=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ti=/[()=,{}\[\]\/\s]/,ta=/\\(\\)?/g,tu=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ts=/\w*$/,tc=/^[-+]0x[0-9a-f]+$/i,tl=/^0b[01]+$/i,tf=/^\[object .+?Constructor\]$/,th=/^0o[0-7]+$/i,td=/^(?:0|[1-9]\d*)$/,tp=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tg=/($^)/,tv=/['\n\r\u2028\u2029\\]/g,ty="\ud800-\udfff",tm="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",tb="\\u2700-\\u27bf",t_="a-z\\xdf-\\xf6\\xf8-\\xff",tw="A-Z\\xc0-\\xd6\\xd8-\\xde",tE="\\ufe0e\\ufe0f",tS="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tx="['’]",tk="["+tS+"]",tA="["+tm+"]",tC="["+t_+"]",tT="[^"+ty+tS+"\\d+"+tb+t_+tw+"]",tO="\ud83c[\udffb-\udfff]",tI="[^"+ty+"]",tj="(?:\ud83c[\udde6-\uddff]){2}",tR="[\ud800-\udbff][\udc00-\udfff]",tL="["+tw+"]",tB="\\u200d",t$="(?:"+tC+"|"+tT+")",tP="(?:"+tx+"(?:d|ll|m|re|s|t|ve))?",tU="(?:"+tx+"(?:D|LL|M|RE|S|T|VE))?",tD="(?:"+tA+"|"+tO+")?",tN="["+tE+"]?",tM="(?:"+tB+"(?:"+[tI,tj,tR].join("|")+")"+tN+tD+")*",tF=tN+tD+tM,tq="(?:"+["["+tb+"]",tj,tR].join("|")+")"+tF,tz="(?:"+[tI+tA+"?",tA,tj,tR,"["+ty+"]"].join("|")+")",tW=RegExp(tx,"g"),tG=RegExp(tA,"g"),tH=RegExp(tO+"(?="+tO+")|"+tz+tF,"g"),tV=RegExp([tL+"?"+tC+"+"+tP+"(?="+[tk,tL,"$"].join("|")+")","(?:"+tL+"|"+tT+")+"+tU+"(?="+[tk,tL+t$,"$"].join("|")+")",tL+"?"+t$+"+"+tP,tL+"+"+tU,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",tq].join("|"),"g"),tJ=RegExp("["+tB+ty+tm+tE+"]"),tZ=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tK=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],tY=-1,tX={};tX[O]=tX[I]=tX[j]=tX[R]=tX[L]=tX[B]=tX[$]=tX[P]=tX[U]=!0,tX[f]=tX[h]=tX[C]=tX[d]=tX[T]=tX[p]=tX[g]=tX[v]=tX[m]=tX[b]=tX[_]=tX[E]=tX[S]=tX[x]=tX[A]=!1;var tQ={};tQ[f]=tQ[h]=tQ[C]=tQ[T]=tQ[d]=tQ[p]=tQ[O]=tQ[I]=tQ[j]=tQ[R]=tQ[L]=tQ[m]=tQ[b]=tQ[_]=tQ[E]=tQ[S]=tQ[x]=tQ[k]=tQ[B]=tQ[$]=tQ[P]=tQ[U]=!0,tQ[g]=tQ[v]=tQ[A]=!1;var t0={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},t1=parseFloat,t2=parseInt,t3="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,t6="object"==typeof self&&self&&self.Object===Object&&self,t4=t3||t6||Function("return this")(),t5=e&&!e.nodeType&&e,t8=t5&&t&&!t.nodeType&&t,t9=t8&&t8.exports===t5,t7=t9&&t3.process,et=function(){try{var t=t8&&t8.require&&t8.require("util").types;if(t)return t;return t7&&t7.binding&&t7.binding("util")}catch(t){}}(),ee=et&&et.isArrayBuffer,en=et&&et.isDate,er=et&&et.isMap,eo=et&&et.isRegExp,ei=et&&et.isSet,ea=et&&et.isTypedArray;function eu(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function es(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o-1}function ed(t,e,n){for(var r=-1,o=null==t?0:t.length;++r-1;);return n}function eP(t,e){for(var n=t.length;n--&&eE(e,t[n],0)>-1;);return n}var eU=eC({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),eD=eC({"&":"&","<":"<",">":">",'"':""","'":"'"});function eN(t){return"\\"+t0[t]}function eM(t){return tJ.test(t)}function eF(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function eq(t,e){return function(n){return t(e(n))}}function ez(t,e){for(var n=-1,r=t.length,o=0,i=[];++n",""":'"',"'":"'"}),eZ=function t(e){var n,r,tt,ty,tm=(e=null==e?t4:eZ.defaults(t4.Object(),e,eZ.pick(t4,tK))).Array,tb=e.Date,t_=e.Error,tw=e.Function,tE=e.Math,tS=e.Object,tx=e.RegExp,tk=e.String,tA=e.TypeError,tC=tm.prototype,tT=tw.prototype,tO=tS.prototype,tI=e["__core-js_shared__"],tj=tT.toString,tR=tO.hasOwnProperty,tL=0,tB=(n=/[^.]+$/.exec(tI&&tI.keys&&tI.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",t$=tO.toString,tP=tj.call(tS),tU=t4._,tD=tx("^"+tj.call(tR).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tN=t9?e.Buffer:o,tM=e.Symbol,tF=e.Uint8Array,tq=tN?tN.allocUnsafe:o,tz=eq(tS.getPrototypeOf,tS),tH=tS.create,tJ=tO.propertyIsEnumerable,t0=tC.splice,t3=tM?tM.isConcatSpreadable:o,t6=tM?tM.iterator:o,t5=tM?tM.toStringTag:o,t8=function(){try{var t=oh(tS,"defineProperty");return t({},"",{}),t}catch(t){}}(),t7=e.clearTimeout!==t4.clearTimeout&&e.clearTimeout,et=tb&&tb.now!==t4.Date.now&&tb.now,eb=e.setTimeout!==t4.setTimeout&&e.setTimeout,eC=tE.ceil,eK=tE.floor,eY=tS.getOwnPropertySymbols,eX=tN?tN.isBuffer:o,eQ=e.isFinite,e0=tC.join,e1=eq(tS.keys,tS),e2=tE.max,e3=tE.min,e6=tb.now,e4=e.parseInt,e5=tE.random,e8=tC.reverse,e9=oh(e,"DataView"),e7=oh(e,"Map"),nt=oh(e,"Promise"),ne=oh(e,"Set"),nn=oh(e,"WeakMap"),nr=oh(tS,"create"),no=nn&&new nn,ni={},na=oU(e9),nu=oU(e7),ns=oU(nt),nc=oU(ne),nl=oU(nn),nf=tM?tM.prototype:o,nh=nf?nf.valueOf:o,nd=nf?nf.toString:o;function np(t){if(iH(t)&&!i$(t)&&!(t instanceof nm)){if(t instanceof ny)return t;if(tR.call(t,"__wrapped__"))return oD(t)}return new ny(t)}var ng=function(){function t(){}return function(e){if(!iG(e))return{};if(tH)return tH(e);t.prototype=e;var n=new t;return t.prototype=o,n}}();function nv(){}function ny(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=o}function nm(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function nb(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function nB(t,e,n,r,i,a){var u,s=1&e,c=2&e,l=4&e;if(n&&(u=i?n(t,r,i,a):n(t)),o!==u)return u;if(!iG(t))return t;var h=i$(t);if(h){if(g=t.length,w=new t.constructor(g),g&&"string"==typeof t[0]&&tR.call(t,"index")&&(w.index=t.index,w.input=t.input),u=w,!s)return rM(t,u)}else{var g,w,A,D,N,M=og(t),F=M==v||M==y;if(iN(t))return rB(t,s);if(M==_||M==f||F&&!i){if(u=c||F?{}:oy(t),!s)return c?(A=(N=u)&&rF(t,ad(t),N),rF(t,op(t),A)):(D=nI(u,t),rF(t,od(t),D))}else{if(!tQ[M])return i?t:{};u=function(t,e,n){var r,o,i=t.constructor;switch(e){case C:return r$(t);case d:case p:return new i(+t);case T:return r=n?r$(t.buffer):t.buffer,new t.constructor(r,t.byteOffset,t.byteLength);case O:case I:case j:case R:case L:case B:case $:case P:case U:return rP(t,n);case m:return new i;case b:case x:return new i(t);case E:return(o=new t.constructor(t.source,ts.exec(t))).lastIndex=t.lastIndex,o;case S:return new i;case k:return nh?tS(nh.call(t)):{}}}(t,M,s)}}a||(a=new nS);var q=a.get(t);if(q)return q;a.set(t,u),iY(t)?t.forEach(function(r){u.add(nB(r,e,n,r,t,a))}):iV(t)&&t.forEach(function(r,o){u.set(o,nB(r,e,n,o,t,a))});var z=l?c?oi:oo:c?ad:ah,W=h?o:z(t);return ec(W||t,function(r,o){W&&(r=t[o=r]),nC(u,o,nB(r,e,n,o,t,a))}),u}function n$(t,e,n){var r=n.length;if(null==t)return!r;for(t=tS(t);r--;){var i=n[r],a=e[i],u=t[i];if(o===u&&!(i in t)||!a(u))return!1}return!0}function nP(t,e,n){if("function"!=typeof t)throw new tA(i);return oI(function(){t.apply(o,n)},e)}function nU(t,e,n,r){var o=-1,i=eh,a=!0,u=t.length,s=[],c=e.length;if(!u)return s;n&&(e=ep(e,eR(n))),r?(i=ed,a=!1):e.length>=200&&(i=eB,a=!1,e=new nE(e));t:for(;++o-1},n_.prototype.set=function(t,e){var n=this.__data__,r=nT(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},nw.prototype.clear=function(){this.size=0,this.__data__={hash:new nb,map:new(e7||n_),string:new nb}},nw.prototype.delete=function(t){var e=ol(this,t).delete(t);return this.size-=e?1:0,e},nw.prototype.get=function(t){return ol(this,t).get(t)},nw.prototype.has=function(t){return ol(this,t).has(t)},nw.prototype.set=function(t,e){var n=ol(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},nE.prototype.add=nE.prototype.push=function(t){return this.__data__.set(t,a),this},nE.prototype.has=function(t){return this.__data__.has(t)},nS.prototype.clear=function(){this.__data__=new n_,this.size=0},nS.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},nS.prototype.get=function(t){return this.__data__.get(t)},nS.prototype.has=function(t){return this.__data__.has(t)},nS.prototype.set=function(t,e){var n=this.__data__;if(n instanceof n_){var r=n.__data__;if(!e7||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new nw(r)}return n.set(t,e),this.size=n.size,this};var nD=rW(nH),nN=rW(nV,!0);function nM(t,e){var n=!0;return nD(t,function(t,r,o){return n=!!e(t,r,o)}),n}function nF(t,e,n){for(var r=-1,i=t.length;++r0&&n(u)?e>1?nz(u,e-1,n,r,o):eg(o,u):r||(o[o.length]=u)}return o}var nW=rG(),nG=rG(!0);function nH(t,e){return t&&nW(t,e,ah)}function nV(t,e){return t&&nG(t,e,ah)}function nJ(t,e){return ef(e,function(e){return iq(t[e])})}function nZ(t,e){e=rj(e,t);for(var n=0,r=e.length;null!=t&&ne}function nQ(t,e){return null!=t&&tR.call(t,e)}function n0(t,e){return null!=t&&e in tS(t)}function n1(t,e,n){for(var r=n?ed:eh,i=t[0].length,a=t.length,u=a,s=tm(a),c=1/0,l=[];u--;){var f=t[u];u&&e&&(f=ep(f,eR(e))),c=e3(f.length,c),s[u]=!n&&(e||i>=120&&f.length>=120)?new nE(u&&f):o}f=t[0];var h=-1,d=s[0];t:for(;++h=u)return s;return s*("desc"==n[r]?-1:1)}}return t.index-e.index}(t,e,n)})}function ra(t,e,n){for(var r=-1,o=e.length,i={};++r-1;)u!==t&&t0.call(u,s,1),t0.call(t,s,1);return t}function rs(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;ob(o)?t0.call(t,o,1):rS(t,o)}}return t}function rc(t,e){return t+eK(e5()*(e-t+1))}function rl(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do e%2&&(n+=t),(e=eK(e/2))&&(t+=t);while(e);return n}function rf(t,e){return oj(oA(t,e,aD),t+"")}function rh(t,e,n,r){if(!iG(t))return t;e=rj(e,t);for(var i=-1,a=e.length,u=a-1,s=t;null!=s&&++io?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=tm(o);++r>>1,a=t[i];null!==a&&!iQ(a)&&(n?a<=e:a=200){var c=e?null:r5(t);if(c)return eW(c);a=!1,o=eB,s=new nE}else s=e?[]:u;t:for(;++r=r?t:rg(t,e,n)}var rL=t7||function(t){return t4.clearTimeout(t)};function rB(t,e){if(e)return t.slice();var n=t.length,r=tq?tq(n):new t.constructor(n);return t.copy(r),r}function r$(t){var e=new t.constructor(t.byteLength);return new tF(e).set(new tF(t)),e}function rP(t,e){var n=e?r$(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function rU(t,e){if(t!==e){var n=o!==t,r=null===t,i=t==t,a=iQ(t),u=o!==e,s=null===e,c=e==e,l=iQ(e);if(!s&&!l&&!a&&t>e||a&&u&&c&&!s&&!l||r&&u&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&t1?n[i-1]:o,u=i>2?n[2]:o;for(a=t.length>3&&"function"==typeof a?(i--,a):o,u&&o_(n[0],n[1],u)&&(a=i<3?o:a,i=1),e=tS(e);++r-1?i[a?e[u]:u]:o}}function rK(t){return or(function(e){var n=e.length,r=n,a=ny.prototype.thru;for(t&&e.reverse();r--;){var u=e[r];if("function"!=typeof u)throw new tA(i);if(a&&!s&&"wrapper"==ou(u))var s=new ny([],!0)}for(r=s?r:n;++r1&&b.reverse(),f&&cs))return!1;var l=a.get(t),f=a.get(e);if(l&&f)return l==e&&f==t;var h=-1,d=!0,p=2&n?new nE:o;for(a.set(t,e),a.set(e,t);++h-1&&t%1==0&&t1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(te,"{\n/* [wrapped with "+e+"] */\n")}(i,(r=(o=i.match(tn))?o[1].split(tr):[],ec(l,function(t){var e="_."+t[0];n&t[1]&&!eh(r,e)&&r.push(e)}),r.sort())))}function oL(t){var e=0,n=0;return function(){var r=e6(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(o,arguments)}}function oB(t,e){var n=-1,r=t.length,i=r-1;for(e=o===e?r:e;++n1?t[e-1]:o;return n="function"==typeof n?(t.pop(),n):o,o6(t,n)});function ie(t){var e=np(t);return e.__chain__=!0,e}function ir(t,e){return e(t)}var io=or(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return nR(e,t)};return!(e>1)&&!this.__actions__.length&&r instanceof nm&&ob(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:ir,args:[i],thisArg:o}),new ny(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(o),t})):this.thru(i)}),ii=rq(function(t,e,n){tR.call(t,n)?++t[n]:nj(t,n,1)}),ia=rZ(oq),iu=rZ(oz);function is(t,e){return(i$(t)?ec:nD)(t,oc(e,3))}function ic(t,e){return(i$(t)?function(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}:nN)(t,oc(e,3))}var il=rq(function(t,e,n){tR.call(t,n)?t[n].push(e):nj(t,n,[e])}),ih=rf(function(t,e,n){var r=-1,o="function"==typeof e,i=iU(t)?tm(t.length):[];return nD(t,function(t){i[++r]=o?eu(e,t,n):n2(t,e,n)}),i}),id=rq(function(t,e,n){nj(t,n,e)});function ip(t,e){return(i$(t)?ep:rt)(t,oc(e,3))}var ig=rq(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),iv=rf(function(t,e){if(null==t)return[];var n=e.length;return n>1&&o_(t,e[0],e[1])?e=[]:n>2&&o_(e[0],e[1],e[2])&&(e=[e[0]]),ri(t,nz(e,1),[])}),iy=et||function(){return t4.Date.now()};function im(t,e,n){return e=n?o:e,e=t&&null==e?t.length:e,r9(t,128,o,o,o,o,e)}function ib(t,e){var n;if("function"!=typeof e)throw new tA(i);return t=i4(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=o),n}}var i_=rf(function(t,e,n){var r=1;if(n.length){var o=ez(n,os(i_));r|=32}return r9(t,r,e,n,o)}),iw=rf(function(t,e,n){var r=3;if(n.length){var o=ez(n,os(iw));r|=32}return r9(e,r,t,n,o)});function iE(t,e,n){var r,a,u,s,c,l,f=0,h=!1,d=!1,p=!0;if("function"!=typeof t)throw new tA(i);function g(e){var n=r,i=a;return r=a=o,f=e,s=t.apply(i,n)}function v(t){var n=t-l,r=t-f;return o===l||n>=e||n<0||d&&r>=u}function y(){var t,n,r,o=iy();if(v(o))return m(o);c=oI(y,(t=o-l,n=o-f,r=e-t,d?e3(r,u-n):r))}function m(t){return(c=o,p&&r)?g(t):(r=a=o,s)}function b(){var t,n=iy(),i=v(n);if(r=arguments,a=this,l=n,i){if(o===c)return f=t=l,c=oI(y,e),h?g(t):s;if(d)return rL(c),c=oI(y,e),g(l)}return o===c&&(c=oI(y,e)),s}return e=i8(e)||0,iG(n)&&(h=!!n.leading,u=(d="maxWait"in n)?e2(i8(n.maxWait)||0,e):u,p="trailing"in n?!!n.trailing:p),b.cancel=function(){o!==c&&rL(c),f=0,r=l=a=c=o},b.flush=function(){return o===c?s:m(iy())},b}var iS=rf(function(t,e){return nP(t,1,e)}),ix=rf(function(t,e,n){return nP(t,i8(e)||0,n)});function ik(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new tA(i);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(ik.Cache||nw),n}function iA(t){if("function"!=typeof t)throw new tA(i);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}ik.Cache=nw;var iC=rf(function(t,e){var n=(e=1==e.length&&i$(e[0])?ep(e[0],eR(oc())):ep(nz(e,1),eR(oc()))).length;return rf(function(r){for(var o=-1,i=e3(r.length,n);++o=e}),iB=n3(function(){return arguments}())?n3:function(t){return iH(t)&&tR.call(t,"callee")&&!tJ.call(t,"callee")},i$=tm.isArray,iP=ee?eR(ee):function(t){return iH(t)&&nY(t)==C};function iU(t){return null!=t&&iW(t.length)&&!iq(t)}function iD(t){return iH(t)&&iU(t)}var iN=eX||aY,iM=en?eR(en):function(t){return iH(t)&&nY(t)==p};function iF(t){if(!iH(t))return!1;var e=nY(t);return e==g||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!iZ(t)}function iq(t){if(!iG(t))return!1;var e=nY(t);return e==v||e==y||"[object AsyncFunction]"==e||"[object Proxy]"==e}function iz(t){return"number"==typeof t&&t==i4(t)}function iW(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function iG(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function iH(t){return null!=t&&"object"==typeof t}var iV=er?eR(er):function(t){return iH(t)&&og(t)==m};function iJ(t){return"number"==typeof t||iH(t)&&nY(t)==b}function iZ(t){if(!iH(t)||nY(t)!=_)return!1;var e=tz(t);if(null===e)return!0;var n=tR.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&tj.call(n)==tP}var iK=eo?eR(eo):function(t){return iH(t)&&nY(t)==E},iY=ei?eR(ei):function(t){return iH(t)&&og(t)==S};function iX(t){return"string"==typeof t||!i$(t)&&iH(t)&&nY(t)==x}function iQ(t){return"symbol"==typeof t||iH(t)&&nY(t)==k}var i0=ea?eR(ea):function(t){return iH(t)&&iW(t.length)&&!!tX[nY(t)]},i1=r3(n7),i2=r3(function(t,e){return t<=e});function i3(t){if(!t)return[];if(iU(t))return iX(t)?eH(t):rM(t);if(t6&&t[t6])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[t6]());var e=og(t);return(e==m?eF:e==S?eW:aw)(t)}function i6(t){return t?(t=i8(t))===s||t===-s?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0}function i4(t){var e=i6(t),n=e%1;return e==e?n?e-n:e:0}function i5(t){return t?nL(i4(t),0,4294967295):0}function i8(t){if("number"==typeof t)return t;if(iQ(t))return c;if(iG(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=iG(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=ej(t);var n=tl.test(t);return n||th.test(t)?t2(t.slice(2),n?2:8):tc.test(t)?c:+t}function i9(t){return rF(t,ad(t))}function i7(t){return null==t?"":rw(t)}var at=rz(function(t,e){if(ox(e)||iU(e)){rF(e,ah(e),t);return}for(var n in e)tR.call(e,n)&&nC(t,n,e[n])}),ae=rz(function(t,e){rF(e,ad(e),t)}),an=rz(function(t,e,n,r){rF(e,ad(e),t,r)}),ar=rz(function(t,e,n,r){rF(e,ah(e),t,r)}),ao=or(nR),ai=rf(function(t,e){t=tS(t);var n=-1,r=e.length,i=r>2?e[2]:o;for(i&&o_(e[0],e[1],i)&&(r=1);++n1),e}),rF(t,oi(t),n),r&&(n=nB(n,7,oe));for(var o=e.length;o--;)rS(n,e[o]);return n}),ay=or(function(t,e){return null==t?{}:ra(t,e,function(e,n){return as(t,n)})});function am(t,e){if(null==t)return{};var n=ep(oi(t),function(t){return[t]});return e=oc(e),ra(t,n,function(t,n){return e(t,n[0])})}var ab=r8(ah),a_=r8(ad);function aw(t){return null==t?[]:eL(t,ah(t))}var aE=rV(function(t,e,n){return e=e.toLowerCase(),t+(n?aS(e):e)});function aS(t){return aj(i7(t).toLowerCase())}function ax(t){return(t=i7(t))&&t.replace(tp,eU).replace(tG,"")}var ak=rV(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),aA=rV(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),aC=rH("toLowerCase"),aT=rV(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),aO=rV(function(t,e,n){return t+(n?" ":"")+aj(e)}),aI=rV(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),aj=rH("toUpperCase");function aR(t,e,n){if(t=i7(t),e=n?o:e,o===e){var r;return(r=t,tZ.test(r))?t.match(tV)||[]:t.match(to)||[]}return t.match(e)||[]}var aL=rf(function(t,e){try{return eu(t,o,e)}catch(t){return iF(t)?t:new t_(t)}}),aB=or(function(t,e){return ec(e,function(e){nj(t,e=oP(e),i_(t[e],t))}),t});function a$(t){return function(){return t}}var aP=rK(),aU=rK(!0);function aD(t){return t}function aN(t){return n8("function"==typeof t?t:nB(t,1))}var aM=rf(function(t,e){return function(n){return n2(n,t,e)}}),aF=rf(function(t,e){return function(n){return n2(t,n,e)}});function aq(t,e,n){var r=ah(e),o=nJ(e,r);null!=n||iG(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=nJ(e,ah(e)));var i=!(iG(n)&&"chain"in n)||!!n.chain,a=iq(t);return ec(o,function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(i||e){var n=t(this.__wrapped__);return(n.__actions__=rM(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,eg([this.value()],arguments))})}),t}function az(){}var aW=r0(ep),aG=r0(el),aH=r0(em);function aV(t){return ow(t)?eA(oP(t)):function(e){return nZ(e,t)}}var aJ=r2(),aZ=r2(!0);function aK(){return[]}function aY(){return!1}var aX=rQ(function(t,e){return t+e},0),aQ=r4("ceil"),a0=rQ(function(t,e){return t/e},1),a1=r4("floor"),a2=rQ(function(t,e){return t*e},1),a3=r4("round"),a6=rQ(function(t,e){return t-e},0);return np.after=function(t,e){if("function"!=typeof e)throw new tA(i);return t=i4(t),function(){if(--t<1)return e.apply(this,arguments)}},np.ary=im,np.assign=at,np.assignIn=ae,np.assignInWith=an,np.assignWith=ar,np.at=ao,np.before=ib,np.bind=i_,np.bindAll=aB,np.bindKey=iw,np.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return i$(t)?t:[t]},np.chain=ie,np.chunk=function(t,e,n){e=(n?o_(t,e,n):o===e)?1:e2(i4(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var i=0,a=0,u=tm(eC(r/e));ii?0:i+n),(r=o===r||r>i?i:i4(r))<0&&(r+=i),r=n>r?0:i5(r);n>>0)?(t=i7(t))&&("string"==typeof e||null!=e&&!iK(e))&&!(e=rw(e))&&eM(t)?rR(eH(t),0,n):t.split(e,n):[]},np.spread=function(t,e){if("function"!=typeof t)throw new tA(i);return e=null==e?0:e2(i4(e),0),rf(function(n){var r=n[e],o=rR(n,0,e);return r&&eg(o,r),eu(t,this,o)})},np.tail=function(t){var e=null==t?0:t.length;return e?rg(t,1,e):[]},np.take=function(t,e,n){return t&&t.length?rg(t,0,(e=n||o===e?1:i4(e))<0?0:e):[]},np.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?rg(t,(e=r-(e=n||o===e?1:i4(e)))<0?0:e,r):[]},np.takeRightWhile=function(t,e){return t&&t.length?rk(t,oc(e,3),!1,!0):[]},np.takeWhile=function(t,e){return t&&t.length?rk(t,oc(e,3)):[]},np.tap=function(t,e){return e(t),t},np.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new tA(i);return iG(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),iE(t,e,{leading:r,maxWait:e,trailing:o})},np.thru=ir,np.toArray=i3,np.toPairs=ab,np.toPairsIn=a_,np.toPath=function(t){return i$(t)?ep(t,oP):iQ(t)?[t]:rM(o$(i7(t)))},np.toPlainObject=i9,np.transform=function(t,e,n){var r=i$(t),o=r||iN(t)||i0(t);if(e=oc(e,4),null==n){var i=t&&t.constructor;n=o?r?new i:[]:iG(t)&&iq(i)?ng(tz(t)):{}}return(o?ec:nH)(t,function(t,r,o){return e(n,t,r,o)}),n},np.unary=function(t){return im(t,1)},np.union=o0,np.unionBy=o1,np.unionWith=o2,np.uniq=function(t){return t&&t.length?rE(t):[]},np.uniqBy=function(t,e){return t&&t.length?rE(t,oc(e,2)):[]},np.uniqWith=function(t,e){return e="function"==typeof e?e:o,t&&t.length?rE(t,o,e):[]},np.unset=function(t,e){return null==t||rS(t,e)},np.unzip=o3,np.unzipWith=o6,np.update=function(t,e,n){return null==t?t:rx(t,e,rI(n))},np.updateWith=function(t,e,n,r){return r="function"==typeof r?r:o,null==t?t:rx(t,e,rI(n),r)},np.values=aw,np.valuesIn=function(t){return null==t?[]:eL(t,ad(t))},np.without=o4,np.words=aR,np.wrap=function(t,e){return iT(rI(e),t)},np.xor=o5,np.xorBy=o8,np.xorWith=o9,np.zip=o7,np.zipObject=function(t,e){return rT(t||[],e||[],nC)},np.zipObjectDeep=function(t,e){return rT(t||[],e||[],rh)},np.zipWith=it,np.entries=ab,np.entriesIn=a_,np.extend=ae,np.extendWith=an,aq(np,np),np.add=aX,np.attempt=aL,np.camelCase=aE,np.capitalize=aS,np.ceil=aQ,np.clamp=function(t,e,n){return o===n&&(n=e,e=o),o!==n&&(n=(n=i8(n))==n?n:0),o!==e&&(e=(e=i8(e))==e?e:0),nL(i8(t),e,n)},np.clone=function(t){return nB(t,4)},np.cloneDeep=function(t){return nB(t,5)},np.cloneDeepWith=function(t,e){return nB(t,5,e="function"==typeof e?e:o)},np.cloneWith=function(t,e){return nB(t,4,e="function"==typeof e?e:o)},np.conformsTo=function(t,e){return null==e||n$(t,e,ah(e))},np.deburr=ax,np.defaultTo=function(t,e){return null==t||t!=t?e:t},np.divide=a0,np.endsWith=function(t,e,n){t=i7(t),e=rw(e);var r=t.length,i=n=o===n?r:nL(i4(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},np.eq=ij,np.escape=function(t){return(t=i7(t))&&W.test(t)?t.replace(q,eD):t},np.escapeRegExp=function(t){return(t=i7(t))&&X.test(t)?t.replace(Y,"\\$&"):t},np.every=function(t,e,n){var r=i$(t)?el:nM;return n&&o_(t,e,n)&&(e=o),r(t,oc(e,3))},np.find=ia,np.findIndex=oq,np.findKey=function(t,e){return e_(t,oc(e,3),nH)},np.findLast=iu,np.findLastIndex=oz,np.findLastKey=function(t,e){return e_(t,oc(e,3),nV)},np.floor=a1,np.forEach=is,np.forEachRight=ic,np.forIn=function(t,e){return null==t?t:nW(t,oc(e,3),ad)},np.forInRight=function(t,e){return null==t?t:nG(t,oc(e,3),ad)},np.forOwn=function(t,e){return t&&nH(t,oc(e,3))},np.forOwnRight=function(t,e){return t&&nV(t,oc(e,3))},np.get=au,np.gt=iR,np.gte=iL,np.has=function(t,e){return null!=t&&ov(t,e,nQ)},np.hasIn=as,np.head=oG,np.identity=aD,np.includes=function(t,e,n,r){t=iU(t)?t:aw(t),n=n&&!r?i4(n):0;var o=t.length;return n<0&&(n=e2(o+n,0)),iX(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&eE(t,e,n)>-1},np.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return -1;var o=null==n?0:i4(n);return o<0&&(o=e2(r+o,0)),eE(t,e,o)},np.inRange=function(t,e,n){var r,i,a;return e=i6(e),o===n?(n=e,e=0):n=i6(n),(r=t=i8(t))>=e3(i=e,a=n)&&r=-9007199254740991&&t<=9007199254740991},np.isSet=iY,np.isString=iX,np.isSymbol=iQ,np.isTypedArray=i0,np.isUndefined=function(t){return o===t},np.isWeakMap=function(t){return iH(t)&&og(t)==A},np.isWeakSet=function(t){return iH(t)&&"[object WeakSet]"==nY(t)},np.join=function(t,e){return null==t?"":e0.call(t,e)},np.kebabCase=ak,np.last=oZ,np.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return -1;var i=r;return o!==n&&(i=(i=i4(n))<0?e2(r+i,0):e3(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--&&t[r]!==e;);return r}(t,e,i):ew(t,ex,i,!0)},np.lowerCase=aA,np.lowerFirst=aC,np.lt=i1,np.lte=i2,np.max=function(t){return t&&t.length?nF(t,aD,nX):o},np.maxBy=function(t,e){return t&&t.length?nF(t,oc(e,2),nX):o},np.mean=function(t){return ek(t,aD)},np.meanBy=function(t,e){return ek(t,oc(e,2))},np.min=function(t){return t&&t.length?nF(t,aD,n7):o},np.minBy=function(t,e){return t&&t.length?nF(t,oc(e,2),n7):o},np.stubArray=aK,np.stubFalse=aY,np.stubObject=function(){return{}},np.stubString=function(){return""},np.stubTrue=function(){return!0},np.multiply=a2,np.nth=function(t,e){return t&&t.length?ro(t,i4(e)):o},np.noConflict=function(){return t4._===this&&(t4._=tU),this},np.noop=az,np.now=iy,np.pad=function(t,e,n){t=i7(t);var r=(e=i4(e))?eG(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return r1(eK(o),n)+t+r1(eC(o),n)},np.padEnd=function(t,e,n){t=i7(t);var r=(e=i4(e))?eG(t):0;return e&&re){var r=t;t=e,e=r}if(n||t%1||e%1){var i=e5();return e3(t+i*(e-t+t1("1e-"+((i+"").length-1))),e)}return rc(t,e)},np.reduce=function(t,e,n){var r=i$(t)?ev:eT,o=arguments.length<3;return r(t,oc(e,4),n,o,nD)},np.reduceRight=function(t,e,n){var r=i$(t)?ey:eT,o=arguments.length<3;return r(t,oc(e,4),n,o,nN)},np.repeat=function(t,e,n){return e=(n?o_(t,e,n):o===e)?1:i4(e),rl(i7(t),e)},np.replace=function(){var t=arguments,e=i7(t[0]);return t.length<3?e:e.replace(t[1],t[2])},np.result=function(t,e,n){e=rj(e,t);var r=-1,i=e.length;for(i||(i=1,t=o);++r9007199254740991)return[];var n=4294967295,r=e3(t,4294967295);e=oc(e),t-=4294967295;for(var o=eI(r,e);++n=a)return t;var s=n-eG(r);if(s<1)return r;var c=u?rR(u,0,s).join(""):t.slice(0,s);if(o===i)return c+r;if(u&&(s+=c.length-s),iK(i)){if(t.slice(s).search(i)){var l,f=c;for(i.global||(i=tx(i.source,i7(ts.exec(i))+"g")),i.lastIndex=0;l=i.exec(f);)var h=l.index;c=c.slice(0,o===h?s:h)}}else if(t.indexOf(rw(i),s)!=s){var d=c.lastIndexOf(i);d>-1&&(c=c.slice(0,d))}return c+r},np.unescape=function(t){return(t=i7(t))&&z.test(t)?t.replace(F,eJ):t},np.uniqueId=function(t){var e=++tL;return i7(t)+e},np.upperCase=aI,np.upperFirst=aj,np.each=is,np.eachRight=ic,np.first=oG,aq(np,(ty={},nH(np,function(t,e){tR.call(np.prototype,e)||(ty[e]=t)}),ty),{chain:!1}),np.VERSION="4.17.21",ec(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){np[t].placeholder=np}),ec(["drop","take"],function(t,e){nm.prototype[t]=function(n){n=o===n?1:e2(i4(n),0);var r=this.__filtered__&&!e?new nm(this):this.clone();return r.__filtered__?r.__takeCount__=e3(n,r.__takeCount__):r.__views__.push({size:e3(n,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},nm.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),ec(["filter","map","takeWhile"],function(t,e){var n=e+1,r=1==n||3==n;nm.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:oc(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),ec(["head","last"],function(t,e){var n="take"+(e?"Right":"");nm.prototype[t]=function(){return this[n](1).value()[0]}}),ec(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");nm.prototype[t]=function(){return this.__filtered__?new nm(this):this[n](1)}}),nm.prototype.compact=function(){return this.filter(aD)},nm.prototype.find=function(t){return this.filter(t).head()},nm.prototype.findLast=function(t){return this.reverse().find(t)},nm.prototype.invokeMap=rf(function(t,e){return"function"==typeof t?new nm(this):this.map(function(n){return n2(n,t,e)})}),nm.prototype.reject=function(t){return this.filter(iA(oc(t)))},nm.prototype.slice=function(t,e){t=i4(t);var n=this;return n.__filtered__&&(t>0||e<0)?new nm(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),o!==e&&(n=(e=i4(e))<0?n.dropRight(-e):n.take(e-t)),n)},nm.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},nm.prototype.toArray=function(){return this.take(4294967295)},nH(nm.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=np[r?"take"+("last"==e?"Right":""):e],a=r||/^find/.test(e);i&&(np.prototype[e]=function(){var e=this.__wrapped__,u=r?[1]:arguments,s=e instanceof nm,c=u[0],l=s||i$(e),f=function(t){var e=i.apply(np,eg([t],u));return r&&h?e[0]:e};l&&n&&"function"==typeof c&&1!=c.length&&(s=l=!1);var h=this.__chain__,d=!!this.__actions__.length,p=a&&!h,g=s&&!d;if(!a&&l){e=g?e:new nm(this);var v=t.apply(e,u);return v.__actions__.push({func:ir,args:[f],thisArg:o}),new ny(v,h)}return p&&g?t.apply(this,u):(v=this.thru(f),p?r?v.value()[0]:v.value():v)})}),ec(["pop","push","shift","sort","splice","unshift"],function(t){var e=tC[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);np.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(i$(o)?o:[],t)}return this[n](function(n){return e.apply(i$(n)?n:[],t)})}}),nH(nm.prototype,function(t,e){var n=np[e];if(n){var r=n.name+"";tR.call(ni,r)||(ni[r]=[]),ni[r].push({name:e,func:n})}}),ni[rY(o,2).name]=[{name:"wrapper",func:o}],nm.prototype.clone=function(){var t=new nm(this.__wrapped__);return t.__actions__=rM(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=rM(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=rM(this.__views__),t},nm.prototype.reverse=function(){if(this.__filtered__){var t=new nm(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t},nm.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=i$(t),r=e<0,o=n?t.length:0,i=function(t,e,n){for(var r=-1,o=n.length;++r=this.__values__.length,e=t?o:this.__values__[this.__index__++];return{done:t,value:e}},np.prototype.plant=function(t){for(var e,n=this;n instanceof nv;){var r=oD(n);r.__index__=0,r.__values__=o,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},np.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof nm){var e=t;return this.__actions__.length&&(e=new nm(this)),(e=e.reverse()).__actions__.push({func:ir,args:[oQ],thisArg:o}),new ny(e,this.__chain__)}return this.thru(oQ)},np.prototype.toJSON=np.prototype.valueOf=np.prototype.value=function(){return rA(this.__wrapped__,this.__actions__)},np.prototype.first=np.prototype.head,t6&&(np.prototype[t6]=function(){return this}),np}();t4._=eZ,o!==(r=(function(){return eZ}).call(e,n,e,t))&&(t.exports=r)}).call(this)},7771:function(t,e,n){var r=n(55639);t.exports=function(){return r.Date.now()}},14841:function(t,e,n){var r=n(27561),o=n(13218),i=n(33448),a=0/0,u=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return a;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=s.test(t);return n||c.test(t)?l(t.slice(2),n?2:8):u.test(t)?a:+t}},83454:function(t,e,n){"use strict";var r,o;t.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(o=n.g.process)?void 0:o.env)?n.g.process:n(77663)},91118:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(62123)}])},38772:function(t,e,n){"use strict";n.d(e,{Ht:function(){return s},WR:function(){return d},et:function(){return c},lB:function(){return f},oZ:function(){return h}});var r,o=n(248),i=function(t,e){return Math.round(t*e/100)},a=function(t,e){return Object.assign(Object.assign({},t),{l:t.l-i(t.l,e)})},u=function(t,e){return Object.assign(Object.assign({},t),{a:e})},s={red:{h:11,s:80,l:45,a:1},blurpleLight:{h:240,s:83.3,l:95.3,a:1},blurpleMedium:{h:242,s:81,l:87.6,a:1},blurple:{h:242,s:88.4,l:66.3,a:1},blurpleDark:{h:242,s:87.6,l:62,a:1},offWhite:{h:45,s:36.4,l:95.7,a:1},blueLight:{h:206,s:58.3,l:85.9,a:1},blue:{h:206,s:100,l:73.3,a:1},blueDark:{h:206,s:29.5,l:33.9,a:1},orangeLight:{h:6,s:100,l:89.6,a:1},orange:{h:11,s:100,l:62.2,a:1},orangeDark:{h:11,s:79.9,l:64.9,a:1},tealLight:{h:180,s:20,l:67.6,a:1},teal:{h:180,s:51.4,l:51.6,a:1},tealDark:{h:180,s:16.2,l:22.9,a:1},yellowLight:{h:39,s:100,l:87.8,a:1},yellow:{h:50,s:100,l:57.3,a:1},yellowDark:{h:39,s:100,l:68,a:1}},c={grey8:{h:0,s:0,l:13,a:1},grey7:{h:246,s:16,l:26,a:1},grey6:{h:252,s:13,l:46,a:1},grey5:{h:240,s:7,l:62,a:1},grey4:{h:259,s:12,l:75,a:1},grey3:{h:260,s:11,l:85,a:1},grey2:{h:260,s:11,l:95,a:1},grey1:{h:240,s:7,l:97,a:1},white:{h:0,s:0,l:100,a:1}},l={focusRing:u(s.blurple,.5),record:s.orange,recordHover:a(s.orange,15.8),recordActive:a(s.orange,31.6),info:s.blue,success:s.teal,warning:s.yellowDark,danger:s.red,dangerHover:a(s.red,15.8),dangerActive:a(s.red,31.6),backdrop:u(c.grey8,.5),backdropDark:u(c.grey8,.9),backdropTwilight:u({h:245,s:44.8,l:46.9,a:1},.8),disabledContent:c.grey5,highlight:{h:s.blurpleLight.h,s:s.blurpleLight.s,l:66.3,a:.15}},f={light:Object.assign(Object.assign({primary:s.blurple,primaryHover:a(s.blurple,15.8),primaryActive:a(s.blurple,31.6),body:c.grey8,bodyDimmed:c.grey6,background:c.white,backgroundHover:u(c.grey7,.1),backgroundActive:u(c.grey7,.3),backgroundSecondary:u(c.grey7,.04),backgroundSecondary2:{h:45,s:34,l:78,a:.2},overlay:c.white,border:u(c.grey6,.2)},l),{disabledBackground:c.grey2,formFieldBorder:c.grey3,formFieldBackground:c.white,buttonBorder:u(c.grey6,.25),upgrade:{h:206,s:100,l:93,a:1},upgradeHover:a({h:206,s:100,l:93,a:1},9),upgradeActive:a({h:206,s:100,l:93,a:1},17),tabBackground:u(c.grey6,.15),discoveryBackground:{h:206,s:100,l:93,a:1},discoveryLightBackground:{h:206,s:100,l:97,a:1},discoveryTitle:c.grey8,discoveryHighlight:{h:206,s:100,l:77,a:.3}}),dark:Object.assign(Object.assign({primary:{h:242,s:87,l:73,a:1},primaryHover:a(s.blurple,15.8),primaryActive:a(s.blurple,31.6),body:c.grey1,bodyDimmed:c.grey5,background:c.grey8,backgroundHover:u(c.white,.1),backgroundActive:u(c.white,.2),backgroundSecondary:u(c.white,.04),backgroundSecondary2:{h:45,s:13,l:44,a:.2},overlay:Object.assign(Object.assign({},r=c.grey8),{l:r.l+i(r.l,50)}),border:u(c.grey4,.2)},l),{disabledBackground:a(c.grey6,50),formFieldBorder:c.grey6,formFieldBackground:c.grey8,buttonBorder:u(c.white,.25),upgrade:{h:206,s:92,l:81,a:1},upgradeHover:a({h:206,s:92,l:81,a:1},9),upgradeActive:a({h:206,s:92,l:81,a:1},17),tabBackground:u(c.white,.15),discoveryBackground:{h:206,s:92,l:81,a:1},discoveryLightBackground:c.grey8,discoveryTitle:s.blue,discoveryHighlight:{h:206,s:100,l:77,a:.3}})},h=Object.assign(Object.assign({},s),c),d=(0,o._)(Object.keys(h)).concat((0,o._)(Object.keys(f.light)))},42462:function(t,e,n){"use strict";n.d(e,{b0:function(){return x},f1:function(){return S},tc:function(){return A}});var r,o,i,a,u=n(24043),s=n(248),c=n(34383),l=n(38772),f=n(66013),h=function(t,e){var n={};return Object.entries(e).forEach(function(e){var r=(0,u._)(e,2),o=r[0],i=r[1];n["--lns-".concat((t?"".concat(t,"-"):"")+o)]=i}),n},d=h(void 0,{unit:"".concat(c.bf/16,"rem")}),p=h("fontWeight",c.vC),g=h(void 0,(r={},Object.entries(c.iH).forEach(function(t){var e=(0,u._)(t,2),n=e[0],o=e[1],i={};i["fontSize-".concat(n)]=(0,f.u)(o.fontSize),i["lineHeight-".concat(n)]=o.lineHeight,Object.assign(r,i,{})}),r)),v=h("radius",c.pD),y=h("shadow",c.q),m=h(void 0,(o={},Object.entries(c.RZ).forEach(function(t){var e=(0,u._)(t,2),n=e[0],r=e[1];o["space-".concat(n)]=(0,f.u)(r)}),o)),b=h(void 0,{formFieldBorderWidth:"1px",formFieldBorderWidthFocus:"2px",formFieldHeight:(0,f.u)(4.5),formFieldRadius:(0,f.u)(2.25),formFieldHorizontalPadding:(0,f.u)(2),formFieldBorderShadow:"\n inset 0 0 0 var(--lns-formFieldBorderWidth) var(--lns-color-formFieldBorder)\n ",formFieldBorderShadowFocus:"\n inset 0 0 0 var(--lns-formFieldBorderWidthFocus) var(--lns-color-blurple),\n 0 0 0 var(--lns-formFieldBorderWidthFocus) var(--lns-color-focusRing)\n "}),_=h("color",(i={},Object.keys(Object.assign(Object.assign({},l.Ht),l.et)).forEach(function(t){i[t]="hsla(".concat(l.oZ[t].h,",").concat(l.oZ[t].s,"%,").concat(l.oZ[t].l,"%,").concat(l.oZ[t].a,")")}),i)),w=h(void 0,Object.assign(Object.assign({},(a=function(t,e){return Object.keys(t).reduce(function(n,r){var o=t[r];return n["".concat(e,"-color-").concat(r)]="hsla(".concat(o.h,",").concat(o.s,"%,").concat(o.l,"%,").concat(o.a,")"),n},{})})(l.lB.light,"themeLight")),a(l.lB.dark,"themeDark"))),E=[d,g,v,y,m,b],S=function(){var t;return(t=Object).assign.apply(t,[{},p].concat((0,s._)(E)))},x=function(){return Object.assign(Object.assign({},_),w)},k=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":root";return"\n ".concat(t||":root",',\n .theme-light,\n [data-lens-theme="light"] {\n ').concat(Object.keys(l.lB.light).map(function(t){return"--lns-color-".concat(t,": var(--lns-themeLight-color-").concat(t,");")}).join(""),'\n }\n\n .theme-dark,\n [data-lens-theme="dark"] {\n ').concat(Object.keys(l.lB.dark).map(function(t){return"--lns-color-".concat(t,": var(--lns-themeDark-color-").concat(t,");")}).join(""),"\n }\n ")},A=function(){var t=document.createElement("style");t.innerHTML=k(),document.head.appendChild(t)}},69863:function(t,e,n){"use strict";n(23279),n(67294)},66013:function(t,e,n){"use strict";n.d(e,{nl:function(){return i.nl},hb:function(){return i.hb},Rv:function(){return o},yb:function(){return f},On:function(){return c},x_:function(){return h},H5:function(){return s},$C:function(){return i.$C},av:function(){return i.av},W1:function(){return i.W1},Xj:function(){return l},ap:function(){return a.a},TX:function(){return a.T},y3:function(){return u},w3:function(){return d},u:function(){return a.u}});var r=n(38772),o=function(t){if(t)return t in r.oZ||t in r.lB.light?"var(--lns-color-".concat(t,")"):t},i=n(93985),a=n(56330),u=function(t){return t&&"\n font-size: var(--lns-fontSize-".concat(t,");\n line-height: var(--lns-lineHeight-").concat(t,");\n")},s=function(t){return t&&"border-radius: var(--lns-radius-".concat(t,");")},c=function(t){return t&&"font-weight: var(--lns-fontWeight-".concat(t,");")},l=function(t){return t&&"box-shadow: var(--lns-shadow-".concat(t,");")},f=function(t,e){var n=t||o("focusRing");return"box-shadow:".concat(e||""," 0 0 0 2px ").concat(n,";")},h=function(t,e){return({center:{bottom:0,top:"calc((100vh - ".concat(t,") / 2)"),position:"relative"},bottom:{bottom:0,top:"unset",position:"absolute"},undefined:{bottom:void 0,top:"15vh",position:"relative"}})[e]},d=function(t){return t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}},93985:function(t,e,n){"use strict";n.d(e,{$C:function(){return f},$n:function(){return s},Uw:function(){return p},W1:function(){return c},av:function(){return h},hb:function(){return l},nl:function(){return u}});var r=n(24043),o=n(34383),i=n(56330);n(69863);var a=function(t,e,n){return"@media(".concat(t,": ").concat(e,"){").concat(n,"}")},u=function(t){return a("max-width",Object.values(o.AV)[0],t[0])+t.reduce(function(t,e,n){return t+a("min-width","".concat(Object.values(o.AV)[n]),e)},"")},s=function(t,e){var n=[];return e.default&&n.push("".concat(t,": ").concat(e.default,";")),delete e.default,Object.entries(e).forEach(function(e){var i=(0,r._)(e,2),a=i[0],u=i[1],s=a in o.AV?o.AV[a]:a;n.push("@media(min-width: ".concat(s,"){ ").concat(t,": ").concat(u," }"))}),n.join(" ")},c=function(t,e){return Array.isArray(e)?u(e.map(function(e){return"".concat(t,": ").concat(e,";")})):"object"==typeof e?s(t,e):"".concat(t,": ").concat(e,";")},l=function(t,e){if(t){if(Array.isArray(t)){var n=[];return t.map(function(t){n.push(e[t])}),c("align-items",n)}return"align-items ".concat(e[t],";")}},f=function(t,e,n){return Array.isArray(n)?u(n.map(function(n){var r=!0===n?e[0]:e[1];return"".concat(t,": ").concat(r,";")})):"".concat(t,": ").concat(e[0],";")},h=function(t,e){if(e||0===e)return Array.isArray(e)?u(e.map(function(e){return"".concat(t,": ").concat(e)})):"object"!=typeof e||Array.isArray(e)?"".concat(t,": ").concat(e,";"):s(t,e)},d=function(t){return Array.isArray(t)?t.map(function(t){return(0,i.T)(t)}).join(" "):t},p=function(t,e){if(t){if("object"==typeof t&&!Array.isArray(t)){var n={};return Object.entries(t).forEach(function(t){var e=(0,r._)(t,2),o=e[0],i=e[1];return n[o]=d(i)}),s("grid-template-".concat(e),n)}return"grid-template-".concat(e,": ").concat(d(t),";")}}},56330:function(t,e,n){"use strict";n.d(e,{T:function(){return s},a:function(){return c},u:function(){return u}});var r=n(24043),o=n(66013),i=n(34383),a=n(93985),u=function(t){return t&&"calc(".concat(t," * var(--lns-unit, ").concat(i.bf,"px))")},s=function(t){return t in i.RZ?"var(--lns-space-".concat(t,")"):t&&isNaN(t)?"".concat(t):0===t?"0":t?"".concat(u(t)):void 0},c=function(t,e){if(e||0===e){if(Array.isArray(e)){var n=e.map(function(e){return"".concat(t,": ").concat(s(e))});return(0,o.nl)(n)}if("object"==typeof e){var i={};return Object.entries(e).forEach(function(t){var e=(0,r._)(t,2),n=e[0],o=e[1];return i[n]=s(o)}),(0,a.$n)(t,i)}return"".concat(t,": ").concat(s(e),";")}}},34383:function(t,e,n){"use strict";n.d(e,{AV:function(){return l},RZ:function(){return c},bf:function(){return o},iH:function(){return i},pD:function(){return u},q:function(){return s},vC:function(){return a}});var r=n(66013),o=8,i={small:{fontSize:1.5,lineHeight:1.5},"body-sm":{fontSize:1.5,lineHeight:1.5},medium:{fontSize:1.75,lineHeight:1.6},"body-md":{fontSize:1.75,lineHeight:1.6},large:{fontSize:2.25,lineHeight:1.45},"body-lg":{fontSize:2.25,lineHeight:1.45},xlarge:{fontSize:3,lineHeight:1.35},"heading-sm":{fontSize:3,lineHeight:1.35},xxlarge:{fontSize:4,lineHeight:1.2},"heading-md":{fontSize:4,lineHeight:1.2},xxxlarge:{fontSize:6,lineHeight:1.15},"heading-lg":{fontSize:6,lineHeight:1.15}},a={book:400,bold:700},u={medium:(0,r.u)(1),large:(0,r.u)(2),xlarge:(0,r.u)(3),full:(0,r.u)(999)},s={small:"0 ".concat((0,r.u)(.5)," ").concat((0,r.u)(1.25)," hsla(0, 0%, 0%, 0.05)"),medium:"0 ".concat((0,r.u)(.5)," ").concat((0,r.u)(1.25)," hsla(0, 0%, 0%, 0.1)"),large:"0 ".concat((0,r.u)(.75)," ").concat((0,r.u)(3)," hsla(0, 0%, 0%, 0.1)")},c={xsmall:.5,small:1,medium:2,large:3,xlarge:5,xxlarge:8},l={xsmall:"31em",small:"48em",medium:"64em",large:"75em"}},69355:function(t,e,n){"use strict";n.d(e,{$6:function(){return A},$v:function(){return l},A0:function(){return i},BN:function(){return P},Dy:function(){return L},EK:function(){return p},Eq:function(){return E},Fv:function(){return a},Gp:function(){return O},HF:function(){return k},Hl:function(){return q},Hr:function(){return z},Ir:function(){return U},Jw:function(){return F},Ll:function(){return x},Mk:function(){return m},Mo:function(){return T},PQ:function(){return y},TX:function(){return N},VD:function(){return s},ZK:function(){return W},Zd:function(){return g},bN:function(){return v},c0:function(){return b},e$:function(){return d},eB:function(){return C},g8:function(){return h},hB:function(){return _},kW:function(){return $},lJ:function(){return c},mK:function(){return I},mu:function(){return M},o$:function(){return D},oG:function(){return w},pO:function(){return R},r9:function(){return u},s2:function(){return S},sR:function(){return f},sZ:function(){return o},th:function(){return j},xe:function(){return r},zW:function(){return B}});var r="Sign Up CTA Click",o="App Store Click",i="Google Play Click",a="Contact Sales CTA Click",u="Learn to Loom Grid Card Click",s="Community Loom Video Page Visit",c="Community Loom Collection Page Visit",l="Contact Sales Page Visit",f="Experiment eligibility precheck failed",h="Header Menu Hover",d="Header Menu Focus",p="Header Menu Click",g="Banner Click",v="appInstallButton",y="appStore",m="banner",b="communityLoomCollectionPage",_="communityLoomVideoPage",w="contactSalesCta",E="contactSalesPage",S="downloadCta",x="experimentEligibilityPrecheck",k="exploreLoomForSales",A="freeTrialCta",C="getLoomAICta",T="getLoomCta",O="getLoomForFreeCta",I="getStartedCta",j="getStartedSdkCustomCta",R="getVerified",L="getVerifiedCta",B="googlePlay",$="headerMenu",P="learnToLoomGridCard",U="loomAIWorkflowsHomepage",D="loomSdkApiCta",N="pricingHeroCardEnterprise",M="registerSdkCta",F="sdkDeveloperPortalCta",q="sdkGetStarted",z="signUpCta",W="translatorDetected"},60150:function(t,e,n){"use strict";n.d(e,{B3:function(){return c},M$:function(){return o},Ss:function(){return u},Uc:function(){return a},cZ:function(){return i},td:function(){return s}});var r,o="production";r=window.location.hostname;var i="production"===o,a="stage.loom.com"===r,u="preview"===o,s="development"===o,c=window.location.toString().includes("stage.loom.com")?"https://stage.loom.com/graphql":"https://mulligan.indiedemos.com/graphql"},9301:function(t,e,n){"use strict";n.d(e,{Sl:function(){return o},dn:function(){return a},gF:function(){return c},mX:function(){return s}});var r=n(60150),o='function loadExternalJS(url, location, callback) {\n var scriptTag = document.createElement("script");\n scriptTag.src = url;\n scriptTag.type = "text/javascript";\n scriptTag.onreadystatechange = callback;\n scriptTag.onload = callback;\n window.atlGlobalLoadStart = new Date();\n location.appendChild(scriptTag);\n}',i=r.cZ?"https://atl-global.atlassian.com/js/atl-global.min.js":"https://atl-global.stg.atlassian.com/js/atl-global.min.js",a='\n loadExternalJS("'.concat(i,'", document.body, initializeATLAnalytics);\n function initializeATLAnalytics() {\n window.ace.analytics.Initializer.initGAS({\n gasv3Product: \'loom\',\n });\n setTimeout(function() {\n window.ace.analytics.GASv3.sendTrackEvent("view", "page", "", {\n eventSource: document.title,\n pathname: window.location.pathname,\n eventContainer: "loom-content",\n });\n }, 1500);\n }'),u="mllYsZ0rym6Ar4fuuJjAMsrZpK5LwmUR";'\n!function(){var i="segmentAnalytics",analytics=window[i]=window[i]||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","screen","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware","register"];analytics.factory=function(e){return function(){if(window[i].initialized)return window[i][e].apply(window[i],arguments);var n=Array.prototype.slice.call(arguments);if(["track","screen","alias","group","page","identify"].indexOf(e)>-1){var c=document.querySelector("link[rel=\'canonical\']");n.push({__t:"bpc",c:c&&c.getAttribute("href")||void 0,p:location.pathname,u:location.href,s:location.search,t:document.title,r:document.referrer})}n.unshift(e);analytics.push(n);return analytics}};for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(!t||!(null===(e=window)||void 0===e?void 0:e.segmentAnalytics)){c.u("Missing consent: Segment pageEvent",{name:t,props:n});return}window.dataLayer=window.dataLayer||[];var o=v().anonID;window.segmentAnalytics.page(t,(0,r._)({name:t,anon_swimlane:h(o)},n))}},89762:function(t,e,n){"use strict";n.d(e,{y:function(){return m},_:function(){return y}});var r,o=n(11010),i=n(72253),a=n(14932),u=n(70655),s=n(99979),c=n(60150),l=n(13414),f=c.cZ?"prod":"stg",h=null,d=n(28969),p=n(60740),g=n(26331),v=n(69355),y=(r=(0,o._)(function(t,e){var n,r,o,c,v,y,b;return(0,u.Jh)(this,function(u){if(!t||!e.action)return l.u("Analytics event: Invalid event or properties",{event:t,properties:e}),[2];if(!window.OptanonActiveGroups||!window.OptanonActiveGroups.includes(",2,"))return l.u("Analytics event: Missing consent",{event:t,properties:e}),[2];r={userId:(n=(0,d.NA)(p.b)).id?"".concat(n.id):void 0,userIdType:n.id?"loom":void 0,anonymousId:(0,g.tW)(),workspaceId:n.id?n.default_workspace_id:void 0},o=e.actionSubject?m(e.actionSubject):null,y={source:"loom-content",action:null!==(c=e.action)&&void 0!==c?c:null,actionSubject:o,actionSubjectId:null!==(v=null==e?void 0:e.actionSubjectId)&&void 0!==v?v:null,attributes:(0,a._)((0,i._)({},e.attributes),{anonSwimlane:(0,g.J5)(r.anonymousId),userId:r.userId})};try{switch(h||(h=(0,s.analyticsClient)({env:f,version:"1.0.0",product:"loom",errorHandler:function(t){console.log("[Atlassian Analytics] Error sending event via atlassian node client",t),l.v("Atlassian Analytics: Error",t)},sendEventHook:function(t){console.log("[Atlassian Analytics] Event sent via atlassian node client",t),l.u("Atlassian Analytics: Send success",t)}})),b=h,t){case"track":b.sendTrackEvent((0,a._)((0,i._)({},r),{trackEvent:y}));break;case"operational":b.sendOperationalEvent((0,a._)((0,i._)({},r),{operationalEvent:y}));break;case"ui":b.sendUIEvent((0,a._)((0,i._)({},r),{uiEvent:y}))}}catch(n){l.v("Error sending event via atlassian node client",(0,i._)({event:t,segmentEventName:e.actionSubject,error:n},r,y))}return[2]})}),function(t,e){return r.apply(this,arguments)});function m(t){var e;switch(t){case"App Install Button Click":e=v.bN;break;case v.sZ:e=v.PQ;break;case v.Zd:e=v.Mk;break;case v.lJ:e=v.c0;case v.VD:e=v.hB;break;case v.Fv:e=v.oG;break;case v.$v:e=v.Eq;break;case"Download CTA Click":e=v.s2;break;case v.sR:e=v.Ll;break;case"Explore Loom for Sales Click":e=v.HF;break;case"Free Trial CTA Click":e=v.$6;break;case"Get Loom AI CTA Click":e=v.eB;break;case"Get Loom CTA Click":e=v.Mo;break;case"Get Loom for Free CTA Click":e=v.Gp;break;case"Get Started CTA Click":e=v.mK;break;case"Get Started SDK Custom CTA":e=v.th;break;case"Get Verified":e=v.pO;break;case"Get Verified CTA Click":e=v.Dy;break;case v.A0:e=v.zW;break;case v.r9:e=v.BN;break;case"Loom AI workflows homepage click":e=v.Ir;break;case"Loom SDK API CTA Click":e=v.o$;break;case"Pricing Hero Card Enterprise":e=v.TX;break;case"Register SDK CTA Click":e=v.mu;break;case"SDK Developer Portal CTA Click":e=v.Jw;break;case"SDK Get Started Click":e=v.Hl;break;case v.xe:case"Sign Up CTA":e=v.Hr;break;default:e=t}return e}},13414:function(t,e,n){"use strict";let r,o,i,a,u,s,c,l,f;n.d(e,{v:function(){return e6},u:function(){return e3}});var h,d,p=n(72253),g=n(14932);let v={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},y=console,m={};Object.keys(v).forEach(t=>{m[t]=y[t]});let b="Datadog Browser SDK:",_={debug:m.debug.bind(y,b),log:m.log.bind(y,b),info:m.info.bind(y,b),warn:m.warn.bind(y,b),error:m.error.bind(y,b)},w="https://docs.datadoghq.com",E=`${w}/real_user_monitoring/browser/troubleshooting`,S="More details:";function x(t,e){return(...n)=>{try{return t(...n)}catch(t){_.error(e,t)}}}let k=!1;function A(t){k=t}function C(t){return function(){return T(t,this,arguments)}}function T(t,e,n){try{return t.apply(e,n)}catch(t){O(t)}}function O(t){if(I(t),r)try{r(t)}catch(t){I(t)}}function I(...t){k&&_.error("[MONITOR]",...t)}function j(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get(){return this},configurable:!0});let t=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof t&&("object"==typeof self?t=self:t="object"==typeof window?window:{}),t}function R(t){return null===t?"null":Array.isArray(t)?"array":typeof t}function L(t,e,n=function(){if("undefined"!=typeof WeakSet){let t=new WeakSet;return{hasAlreadyBeenSeen(e){let n=t.has(e);return n||t.add(e),n}}}let t=[];return{hasAlreadyBeenSeen(e){let n=t.indexOf(e)>=0;return n||t.push(e),n}}}()){if(void 0===e)return t;if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=e.flags||[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.sticky?"y":"",e.unicode?"u":""].join("");return new RegExp(e.source,t)}if(n.hasAlreadyBeenSeen(e))return;if(Array.isArray(e)){let r=Array.isArray(t)?t:[];for(let t=0;t"}finally{r(),o(),i(),a()}}function W(t){let e=t.toJSON;return e?(delete t.toJSON,()=>{t.toJSON=e}):q}function G(t,e=225280){let n=W(Object.prototype),r=W(Array.prototype),o=[],i=new WeakMap,a=H(t,"$",void 0,o,i),u=JSON.stringify(a),s=u?u.length:0;if(s>e){V(e,"discarded",t);return}for(;o.length>0&&se){V(e,"truncated",t);break}n.target[a]=u}else for(let a in n.source)if(Object.prototype.hasOwnProperty.call(n.source,a)){let u=H(n.source[a],n.path,a,o,i);if(void 0!==u&&(s+=JSON.stringify(u).length+r+a.length+3,r=1),s>e){V(e,"truncated",t);break}n.target[a]=u}}return n(),r(),a}function H(t,e,n,r,o){let i=function(t){if(t&&"function"==typeof t.toJSON)try{return t.toJSON()}catch(t){}return t}(t);if(!i||"object"!=typeof i)return"bigint"==typeof i?`[BigInt] ${i.toString()}`:"function"==typeof i?`[Function] ${i.name||"unknown"}`:"symbol"==typeof i?`[Symbol] ${i.description||i.toString()}`:i;let a=function t(e){try{if(e instanceof Event)return{type:e.type,isTrusted:e.isTrusted,currentTarget:e.currentTarget?t(e.currentTarget):null,target:e.target?t(e.target):null};if(e instanceof RegExp)return`[RegExp] ${e.toString()}`;let n=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(n&&n[1])return`[${n[1]}]`}catch(t){}return"[Unserializable]"}(i);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;if(o.has(t))return`[Reference seen at ${o.get(t)}]`;let u=void 0!==n?`${e}.${n}`:e,s=Array.isArray(i)?[]:{};return o.set(t,u),r.push({source:i,target:s,path:u}),s}function V(t,e,n){_.warn(`The data provided has been ${e} as it is over the limit of ${t} characters:`,n)}class J{constructor(t){this.onFirstSubscribe=t,this.observers=[]}subscribe(t){return this.observers.push(t),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),{unsubscribe:()=>{this.observers=this.observers.filter(e=>t!==e),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}}}notify(t){this.observers.forEach(e=>e(t))}}function Z(...t){return new J(e=>{let n=t.map(t=>t.subscribe(t=>e.notify(t)));return()=>n.forEach(t=>t.unsubscribe())})}function K(t,e,n){let r={...t};for(let[t,{required:o,type:i}]of Object.entries(e))"string"!==i||Y(r[t])||(r[t]=String(r[t])),o&&Y(r[t])&&_.warn(`The property ${t} of ${n} is required; context will not be sent to the intake.`);return r}function Y(t){return null==t||""===t}function X(t="",{propertiesConfig:e={}}={}){let n={},r=new J,o={getContext:()=>L(void 0,n),setContext:i=>{!function(t){let e="object"===R(t);return e||_.error("Unsupported context:",t),e}(i)?o.clearContext():n=G(K(i,e,t)),r.notify()},setContextProperty:(o,i)=>{n=G(K({...n,[o]:i},e,t)),r.notify()},removeContextProperty:o=>{delete n[o],K(n,e,t),r.notify()},clearContext:()=>{n={},r.notify()},changeObservable:r};return o}let Q={GRANTED:"granted",NOT_GRANTED:"not-granted"};function tt(t,e,n,r,{once:o,capture:i,passive:a}={}){let u=C(e=>{(e.isTrusted||e.__ddIsTrusted||t.allowUntrustedEvents)&&(o&&f(),r(e))}),s=a?{capture:i,passive:a}:i,c=window.EventTarget&&e instanceof EventTarget?window.EventTarget.prototype:e,l=U(c,"addEventListener");function f(){let t=U(c,"removeEventListener");n.forEach(n=>t.call(e,n,u,s))}return n.forEach(t=>l.call(e,t,u,s)),{stop:f}}function te(t,e){return Object.keys(t).some(n=>t[n]===e)}function tn(t){return 0===Object.keys(t).length}let tr=[];function to(t,e,n,r){let o=`_dd_c_${n}_${r}`;tr.push(tt(t,window,["storage"],({key:t})=>{o===t&&e.setContext(a())},void 0)),e.changeObservable.subscribe(function(){localStorage.setItem(o,JSON.stringify(e.getContext()))});let i=B(a(),e.getContext());function a(){let t=localStorage.getItem(o);return t?JSON.parse(t):{}}tn(i)||e.setContext(i)}function ti(t){let e=[],n=tp(t,"stack"),r=String(t);return n&&n.startsWith(r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach(t=>{let n=function(t){let e=ts.exec(t);if(!e)return;let n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),o=tc.exec(e[2]);return r&&o&&(e[2]=o[1],e[3]=o[2],e[4]=o[3]),{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||"?",line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){let e=tl.exec(t);if(e)return{args:[],column:e[3]?+e[3]:void 0,func:"?",line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){let e=tf.exec(t);if(e)return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||"?",line:+e[3],url:e[2]}}(t)||function(t){let e=th.exec(t);if(!e)return;let n=e[3]&&e[3].indexOf(" > eval")>-1,r=td.exec(e[3]);return n&&r&&(e[3]=r[1],e[4]=r[2],e[5]=void 0),{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||"?",line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func="?"),e.push(n))}),{message:tp(t,"message"),name:tp(t,"name"),stack:e}}let ta="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet||\\w+\\.|\\/).*?)",tu="(?::(\\d+))",ts=RegExp(`^\\s*at (.*?) ?\\(${ta}${tu}?${tu}?\\)?\\s*$`,"i"),tc=RegExp(`\\((\\S*)${tu}${tu}\\)`),tl=RegExp(`^\\s*at ?${ta}${tu}?${tu}??\\s*$`,"i"),tf=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,th=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?\s*$/i,td=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function tp(t,e){if("object"!=typeof t||!t||!(e in t))return;let n=t[e];return"string"==typeof n?n:void 0}let tg=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function tv(t){let e;let n=Error(t);return n.name="HandlingStack",T(()=>{let t=ti(n);t.stack=t.stack.slice(2),e=ty(t)}),e}function ty(t){let e=tm(t);return t.stack.forEach(t=>{let n="?"===t.func?"":t.func,r=t.args&&t.args.length>0?`(${t.args.join(", ")})`:"",o=t.line?`:${t.line}`:"",i=t.line&&t.column?`:${t.column}`:"";e+=` at ${n}${r} @ ${t.url}${o}${i}`}),e}function tm(t){return`${t.name||"Error"}: ${t.message}`}let tb="No stack, consider using an instance of Error";function t_({stackTrace:t,originalError:e,handlingStack:n,componentStack:r,startClocks:o,nonErrorPrefix:i,useFallbackStack:a=!0,source:u,handling:s}){var c;let l=tw(e);return!t&&l&&(t=ti(e)),{startClocks:o,source:u,handling:s,handlingStack:n,componentStack:r,originalError:e,type:t?t.name:void 0,message:(null==(c=t)?void 0:c.message)&&(null==c?void 0:c.name)?c.message:l?"Empty message":`${i} ${z(G(e))}`,stack:t?ty(t):a?tb:void 0,causes:l?function(t,e){let n=t,r=[];for(;tw(null==n?void 0:n.cause)&&r.length<10;){let t=ti(n.cause);r.push({message:n.cause.message,source:e,type:null==t?void 0:t.name,stack:t&&ty(t)}),n=n.cause}return r.length?r:void 0}(e,u):void 0,fingerprint:tw(e)&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0,context:function(t){if(null!==t&&"object"==typeof t&&"dd_context"in t)return t.dd_context}(e)}}function tw(t){return t instanceof Error||"[object Error]"===Object.prototype.toString.call(t)}(h=d||(d={})).PROFILING="profiling",h.TRACK_INTAKE_REQUESTS="track_intake_requests",h.WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",h.DOM_MUTATION_IGNORING="dom_mutation_ignoring";let tE=new Set,tS="datadoghq.com",tx=["ddsource","ddtags"];function tk(){return new Date().getTime()}function tA(){return performance.now()}function tC(){return{relative:tA(),timeStamp:tk()}}function tT(){return void 0===o&&(o=performance.timing.navigationStart),o}function tO(t,e){let n=window.__ddBrowserSdkExtensionCallback;n&&n({type:t,payload:e})}function tI(t){return 0!==t&&100*Math.random()<=t}function tj(t,e){let n=t.indexOf(e);n>=0&&t.splice(n,1)}function tR(){let t=[];return{add:e=>{t.push(e)>500&&t.splice(0,1)},remove:e=>{tj(t,e)},drain:e=>{t.forEach(t=>t(e)),t.length=0}}}let tL="configuration",tB="usage",t$=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost",""],tP=["ddog-gov.com"],tU=tR(),tD=t=>{tU.add(()=>tD(t))};function tN(t,e){I(v.debug,t,e),tD({type:"log",message:t,status:"debug",...e})}function tM(t,e){tD({type:"log",status:"error",...function(t){if(tw(t)){let e=ti(t);return{error:{kind:e.name,stack:ty((e.stack=e.stack.filter(t=>!t.url||t$.some(e=>t.url.startsWith(e))),e))},message:e.message}}return{error:{stack:tb},message:`Uncaught ${z(t)}`}}(t),...e})}function tF(t,e){e.silentMultipleInit||_.error(`${t} is already initialized.`)}let tq={AGENT:"agent",CONSOLE:"console",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function tz(t,e,n){let r=n.getHandler(),o=Array.isArray(r)?r:[r];return tG[t]>=tG[n.getLevel()]&&o.includes(e)}let tW={ok:"ok",debug:"debug",info:"info",notice:"notice",warn:"warn",error:"error",critical:"critical",alert:"alert",emerg:"emerg"},tG={[tW.ok]:0,[tW.debug]:1,[tW.info]:2,[tW.notice]:4,[tW.warn]:5,[tW.error]:6,[tW.critical]:7,[tW.alert]:8,[tW.emerg]:9};function tH(t,{includeMessage:e=!1}={}){return{stack:t.stack,kind:t.type,message:e?t.message:void 0,causes:t.causes,fingerprint:t.fingerprint,handling:t.handling}}let tV="http",tJ=Object.keys(tW);class tZ{constructor(t,e,n=tV,r=tW.debug,o={}){this.handleLogStrategy=t,this.handlerType=n,this.level=r,this.contextManager=X("logger"),this.contextManager.setContext(o),e&&this.contextManager.setContextProperty("logger",{name:e})}logImplementation(t,e,n=tW.info,r,o){let i;let a=G(e);i=null!=r?B({error:tH(t_({originalError:r,nonErrorPrefix:"Provided",source:tq.LOGGER,handling:"handled",startClocks:tC()}),{includeMessage:!0})},a):a,this.handleLogStrategy({message:G(t),context:i,status:n},this,o)}log(t,e,n=tW.info,r){let o;tz(n,tV,this)&&(o=tv("log")),this.logImplementation(t,e,n,r,o)}setContext(t){this.contextManager.setContext(t)}getContext(){return this.contextManager.getContext()}setContextProperty(t,e){this.contextManager.setContextProperty(t,e)}removeContextProperty(t){this.contextManager.removeContextProperty(t)}clearContext(){this.contextManager.clearContext()}setHandler(t){this.handlerType=t}getHandler(){return this.handlerType}setLevel(t){this.level=t}getLevel(){return this.level}}function tK(t){return function(e,n,r){let o;tz(t,tV,this)&&(o=tv("log")),this.logImplementation(e,n,t,r,o)}}function tY(){let t=j().DatadogEventBridge;if(t)return{getCapabilities(){var e;return JSON.parse((null===(e=t.getCapabilities)||void 0===e?void 0:e.call(t))||"[]")},getPrivacyLevel(){var e;return null===(e=t.getPrivacyLevel)||void 0===e?void 0:e.call(t)},getAllowedWebViewHosts:()=>JSON.parse(t.getAllowedWebViewHosts()),send(e,n,r){t.send(JSON.stringify({eventType:e,event:n,view:r?{id:r}:void 0}))}}}function tX(t){var e;void 0===t&&(t=null===(e=j().location)||void 0===e?void 0:e.hostname);let n=tY();return!!n&&n.getAllowedWebViewHosts().some(e=>t===e||t.endsWith(`.${e}`))}function tQ(t,e,n,{computeHandlingStack:r}={}){let o=t[e];if("function"!=typeof o){if(!(e in t&&e.startsWith("on")))return{stop:q};o=q}let i=!1,a=function(){let t;if(i)return o.apply(this,arguments);let e=Array.from(arguments);T(n,null,[{target:this,parameters:e,onPostCall:e=>{t=e},handlingStack:r?tv("instrumented method"):void 0}]);let a=o.apply(this,e);return t&&T(t,null,[a]),a};return t[e]=a,{stop:()=>{i=!0,t[e]===a&&(t[e]=o)}}}function t0(t){return function(t,e){let n=function(){if(void 0===i)try{let t=new t1("http://test/path");i="http://test/path"===t.href}catch(t){i=!1}return i?t1:void 0}();if(n)try{return void 0!==e?new n(t,e):new n(t)}catch(n){throw Error(`Failed to construct URL: ${String(n)} ${z({url:t,base:e})}`)}if(void 0===e&&!/:/.test(t))throw Error(`Invalid URL: '${t}'`);let r=document,o=r.createElement("a");if(void 0!==e){let t=(r=document.implementation.createHTMLDocument("")).createElement("base");t.href=e,r.head.appendChild(t),r.body.appendChild(o)}return o.href=t,o}(t,location.href).href}!function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);i>3&&a&&Object.defineProperty(e,n,a)}([function(t,e,n){let o=n.value;n.value=function(...t){return(r?C(o):o).apply(this,t)}}],tZ.prototype,"logImplementation",null),tZ.prototype.ok=tK(tW.ok),tZ.prototype.debug=tK(tW.debug),tZ.prototype.info=tK(tW.info),tZ.prototype.notice=tK(tW.notice),tZ.prototype.warn=tK(tW.warn),tZ.prototype.error=tK(tW.error),tZ.prototype.critical=tK(tW.critical),tZ.prototype.alert=tK(tW.alert),tZ.prototype.emerg=tK(tW.emerg);let t1=URL;function t2(){return a||(a=new J(t=>{if(!window.fetch)return;let{stop:e}=tQ(window,"fetch",e=>(function({parameters:t,onPostCall:e,handlingStack:n},r){let[o,i]=t,a=i&&i.method;void 0===a&&o instanceof Request&&(a=o.method);let u=void 0!==a?String(a).toUpperCase():"GET",s=o instanceof Request?o.url:t0(String(o)),c={state:"start",init:i,input:o,method:u,startClocks:tC(),url:s,handlingStack:n};r.notify(c),t[0]=c.input,t[1]=c.init,e(t=>(function(t,e,n){function r(e){n.state="resolve",Object.assign(n,e),t.notify(n)}e.then(C(t=>{r({response:t,responseType:t.type,status:t.status,isAborted:!1})}),C(t=>{var e,o;r({status:0,isAborted:(null===(o=null===(e=n.init)||void 0===e?void 0:e.signal)||void 0===o?void 0:o.aborted)||t instanceof DOMException&&t.code===DOMException.ABORT_ERR,error:t})}))})(r,t,c))})(e,t),{computeHandlingStack:!0});return e})),a}function t3(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,t3)}let t6=/([\w-]+)\s*=\s*([^;]+)/g;function t4(t,e,n=0,r){let o=new Date;o.setTime(o.getTime()+n);let i=`expires=${o.toUTCString()}`,a=r&&r.crossSite?"none":"strict",u=r&&r.domain?`;domain=${r.domain}`:"",s=r&&r.secure?";secure":"",c=r&&r.partitioned?";partitioned":"";document.cookie=`${t}=${e};${i};path=/;samesite=${a}${u}${s}${c}`}function t5(t){return function(t,e){for(t6.lastIndex=0;;){let n=t6.exec(t);if(n){if(n[1]===e)return n[2]}else break}}(document.cookie,t)}function t8(t){return s||(s=function(t){let e=new Map;for(t6.lastIndex=0;;){let n=t6.exec(t);if(n)e.set(n[1],n[2]);else break}return e}(document.cookie)),s.get(t)}let t9="_dd_s";function t7(t){return Object.values(t)}let et={COOKIE:"cookie",LOCAL_STORAGE:"local-storage"},ee=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function en(t,e){let n={isExpired:"1"};return e.trackAnonymousUser&&((null==t?void 0:t.anonymousId)?n.anonymousId=null==t?void 0:t.anonymousId:n.anonymousId=t3()),n}function er(t){return void 0!==t.isExpired||!((void 0===t.created||tk()-Number(t.created)<144e5)&&(void 0===t.expire||tk()"anonymousId"===t?`aid=${e}`:`${t}=${e}`).join("&")}function ea(t){let e={};return t&&(-1!==t.indexOf("&")||ee.test(t))&&t.split("&").forEach(t=>{let n=ee.exec(t);if(null!==n){let[,t,r]=n;"aid"===t?e.anonymousId=r:e[t]=r}}),e}function eu(t){let e=function(t){let e={};return e.secure=!!t.useSecureSessionCookie||!!t.usePartitionedCrossSiteSessionCookie,e.crossSite=!!t.usePartitionedCrossSiteSessionCookie,e.partitioned=!!t.usePartitionedCrossSiteSessionCookie,t.trackSessionAcrossSubdomains&&(e.domain=function(){if(void 0===c){let t=`dd_site_test_${t3()}`,e=window.location.hostname.split("."),n=e.pop();for(;e.length&&!t5(t);)t4(t,"test",1e3,{domain:n=`${e.pop()}.${n}`});t4(t,"",0,{domain:n}),c=n}return c}()),e}(t);return!function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{let e=`dd_cookie_test_${t3()}`,n="test";t4(e,n,6e4,t);let r=t5(e)===n;return t4(e,"",0,t),r}catch(t){return _.error(t),!1}}(e)?void 0:{type:et.COOKIE,cookieOptions:e}}function es(t,e,n,r){t4(t9,ei(n),e.trackAnonymousUser?31536e6:r,t)}function ec(){return ea(t5(t9))}function el(){try{let t=t3(),e=`_dd_test_${t}`;localStorage.setItem(e,t);let n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:et.LOCAL_STORAGE}:void 0}catch(t){return}}function ef(t){localStorage.setItem(t9,ei(t))}function eh(){return ea(localStorage.getItem(t9))}let ed=[];function ep(t,e,n=0){var r;let o;let{isLockEnabled:i,persistSession:a,expireSession:u}=e,s=t=>a({...t,lock:o}),c=()=>{let t=e.retrieveSession(),n=t.lock;return t.lock&&delete t.lock,{session:t,lock:n}};if(l||(l=t),t!==l){ed.push(t);return}if(i&&n>=100){ev(e);return}let f=c();if(i&&(f.lock||(o=t3(),s(f.session),(f=c()).lock!==o))){eg(t,e,n);return}let h=t.process(f.session);if(i&&(f=c()).lock!==o){eg(t,e,n);return}if(h&&(er(h)?u(h):(eo(h),i?s(h):a(h))),i&&!(h&&er(h))){if((f=c()).lock!==o){eg(t,e,n);return}a(f.session),h=f.session}null===(r=t.after)||void 0===r||r.call(t,h||f.session),ev(e)}function eg(t,e,n){D(()=>{ep(t,e,n+1)},10)}function ev(t){l=void 0;let e=ed.shift();e&&ep(e,t)}function ey(t,e,n){let r=function(t,e){let n=`/api/v2/${e}`,r=t.proxy;if("string"==typeof r){let t=t0(r);return e=>`${t}?ddforward=${encodeURIComponent(`${n}?${e}`)}`}if("function"==typeof r)return t=>r({path:n,parameters:t});let o=function(t,e){let{site:n=tS,internalAnalyticsSubdomain:r}=e;if("logs"===t&&e.usePciIntake&&n===tS)return"pci.browser-intake-datadoghq.com";if(r&&n===tS)return`${r}.${tS}`;if("dd0g-gov.com"===n)return`http-intake.logs.${n}`;let o=n.split("."),i=o.pop();return`browser-intake-${o.join("-")}.${i}`}(e,t);return t=>`https://${o}${n}?${t}`}(t,e);return{build:(o,i)=>r(function({clientToken:t,internalAnalyticsSubdomain:e},n,r,o,{retry:i,encoding:a}){let u=["sdk_version:6.8.0",`api:${o}`].concat(r);i&&u.push(`retry_count:${i.count}`,`retry_after:${i.lastFailureStatus}`);let s=["ddsource=browser",`ddtags=${encodeURIComponent(u.join(","))}`,`dd-api-key=${t}`,`dd-evp-origin-version=${encodeURIComponent("6.8.0")}`,"dd-evp-origin=browser",`dd-request-id=${t3()}`];return a&&s.push(`dd-evp-encoding=${a}`),"rum"===n&&s.push(`batch_time=${tk()}`),e&&s.reverse(),s.join("&")}(t,e,n,o,i)),tags:n,urlPrefix:r(""),trackType:e}}function em(t,e){let n=200-t.length-1;(e.length>n||function(){try{return RegExp("[\\p{Ll}]","u"),!0}catch(t){return!1}}()&&RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(e))&&_.warn(`${t} value doesn't meet tag requirements and will be sanitized. ${S} ${w}/getting_started/tagging/#defining-tags`);let r=e.replace(/,/g,"_");return`${t}:${r}`}function eb(t,e){return null==t||"string"==typeof t||(_.error(`${e} must be defined as a string`),!1)}function e_(t,e){return!!(void 0===t||"number"==typeof t&&t>=0&&t<=100)||(_.error(`${e} Sample Rate should be a number between 0 and 100`),!1)}let ew={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function eE(t){return{startClocks:tC(),source:tq.REPORT,handling:"unhandled",...t}}function eS(t,e,n,r,o){return n?ty({name:t,message:e,stack:[{func:"?",url:n,line:null!=r?r:void 0,column:null!=o?o:void 0}]}):void 0}function ex(t,e,n){if(void 0===t)return[];if(!("all"===t||Array.isArray(t)&&t.every(t=>e.includes(t)))){_.error(`${n} should be "all" or an array with allowed values "${e.join('", "')}"`);return}return"all"===t?e:function(t){let e=new Set;return t.forEach(t=>e.add(t)),Array.from(e)}(t)}let ek="logs",eA={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function eC(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||t8("datadog-synthetics-injects-rum"))}let eT=1/0,eO=null,eI=new Set,ej=[];function eR(t){return tI(t.sessionSampleRate)?"1":"0"}let eL={},eB={[v.log]:tW.info,[v.debug]:tW.debug,[v.info]:tW.info,[v.warn]:tW.warn,[v.error]:tW.error},e$=new WeakMap;function eP({target:t,parameters:[e,n]}){e$.set(t,{state:"open",method:String(e).toUpperCase(),url:t0(String(n))})}function eU({target:t}){let e=e$.get(t);e&&(e.isAborted=!0)}function eD(t,e){return t.length>e.requestErrorResponseLengthLimit?`${t.substring(0,e.requestErrorResponseLengthLimit)}...`:t}class eN{constructor(){this.callbacks={}}notify(t,e){let n=this.callbacks[t];n&&n.forEach(t=>t(e))}subscribe(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),{unsubscribe:()=>{this.callbacks[t]=this.callbacks[t].filter(t=>e!==t)}}}}let eM={[tW.ok]:v.debug,[tW.debug]:v.debug,[tW.info]:v.info,[tW.notice]:v.info,[tW.warn]:v.warn,[tW.error]:v.error,[tW.critical]:v.error,[tW.alert]:v.error,[tW.emerg]:v.error};function eF({encoder:t,request:e,flushController:n,messageBytesLimit:r}){let o={},i=n.flushObservable.subscribe(n=>(function(n){var r;let i=t7(o).join("\n");o={};let a=(r=n.reason,t7(eA).includes(r)),u=a?e.sendOnExit:e.send;if(a&&t.isAsync){let e=t.finishSync();e.outputBytesCount&&u(eq(e));let n=[e.pendingData,i].filter(Boolean).join("\n");n&&u({data:n,bytesCount:P(n)})}else i&&t.write(t.isEmpty?i:` ${i}`),t.finish(t=>{u(eq(t))})})(n));function a(e,i){let a=z(e),u=t.estimateEncodedBytesCount(a);if(u>=r){_.warn(`Discarded a message whose size was bigger than the maximum allowed size ${r}KB. ${S} ${E}/#technical-limitations`);return}void 0!==i&&void 0!==o[i]&&function(e){let r=o[e];delete o[e];let i=t.estimateEncodedBytesCount(r);n.notifyAfterRemoveMessage(i)}(i),n.notifyBeforeAddMessage(u),void 0!==i?(o[i]=a,n.notifyAfterAddMessage()):t.write(t.isEmpty?a:` ${a}`,t=>{n.notifyAfterAddMessage(t-u)})}return{flushController:n,add:a,upsert:a,stop:i.unsubscribe}}function eq(t){return{data:"string"==typeof t.output?t.output:new Blob([t.output],{type:"text/plain"}),bytesCount:t.outputBytesCount,encoding:t.encoding}}function ez(t,e,n,r,o){0===e.transportStatus&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?eW(t,e,n,{onSuccess:()=>eG(0,e,n,r,o),onFailure:()=>{e.queuedPayloads.enqueue(t),function t(e,n,r,o){2===e.transportStatus&&D(()=>{eW(e.queuedPayloads.first(),e,n,{onSuccess:()=>{e.queuedPayloads.dequeue(),e.currentBackoffTime=1e3,eG(1,e,n,r,o)},onFailure:()=>{e.currentBackoffTime=Math.min(6e4,2*e.currentBackoffTime),t(e,n,r,o)}})},e.currentBackoffTime)}(e,n,r,o)}}):e.queuedPayloads.enqueue(t)}function eW(t,e,n,{onSuccess:r,onFailure:o}){e.bandwidthMonitor.add(t),n(t,n=>{e.bandwidthMonitor.remove(t),"opaque"!==n.type&&(0===n.status&&!navigator.onLine||408===n.status||429===n.status||n.status>=500)?(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},o()):(e.transportStatus=0,r())})}function eG(t,e,n,r,o){0===t&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(o({message:`Reached max ${r} events size queued for upload: ${3}MiB`,source:tq.AGENT,startClocks:tC()}),e.queueFullReported=!0);let i=e.queuedPayloads;for(e.queuedPayloads=eH();i.size()>0;)ez(i.dequeue(),e,n,r,o)}function eH(){let t=[];return{bytesCount:0,enqueue(e){this.isFull()||(t.push(e),this.bytesCount+=e.bytesCount)},first:()=>t[0],dequeue(){let e=t.shift();return e&&(this.bytesCount-=e.bytesCount),e},size:()=>t.length,isFull(){return this.bytesCount>=3145728}}}let eV=!1;function eJ(t,e,n){fetch(t.build("fetch",e),{method:"POST",body:e.data,mode:"cors"}).then(C(t=>null==n?void 0:n({status:t.status,type:t.type}))).catch(C(()=>null==n?void 0:n({status:0})))}function eZ(t,e,n,r,o,i,a=eF){let u=c(t,e),s=n&&c(t,n);function c(t,{endpoint:e,encoder:n}){return a({encoder:n,request:function(t,e,n){let r={transportStatus:0,currentBackoffTime:1e3,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=81920&&this.ongoingRequestCount<32},add(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:eH(),queueFullReported:!1},o=(n,r)=>{(function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(t){return!1}})()&&n.bytesCountnull==r?void 0:r({status:t.status,type:t.type}))).catch(C(()=>eJ(t,n,r))):eJ(t,n,r)};return{send:e=>{ez(e,r,o,t.trackType,n)},sendOnExit:n=>{!function(t,e,n){if(navigator.sendBeacon&&n.bytesCountf(t.reason)),u=o.subscribe(()=>f("session_expire")),s=new J(()=>()=>{a.unsubscribe(),u.unsubscribe()}),c=0,l=0;function f(t){if(0===l)return;let e=l,n=c;l=0,c=0,h(),s.notify({reason:t,messagesCount:e,bytesCount:n})}function h(){N(i),i=void 0}return{flushObservable:s,get messagesCount(){return l},notifyBeforeAddMessage(t){c+t>=e&&f("bytes_limit"),l+=1,c+=t,void 0===i&&(i=D(()=>{f("duration_limit")},n))},notifyAfterAddMessage(n=0){c+=n,l>=t?f("messages_limit"):c>=e&&f("bytes_limit")},notifyAfterRemoveMessage(t){c-=t,0==(l-=1)&&h()}}}({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageMayExitObservable:o,sessionExpireObservable:i}),messageBytesLimit:t.messageBytesLimit})}return{flushObservable:u.flushController.flushObservable,add(t,e=!0){u.add(t),s&&e&&s.add(n.transformMessage?n.transformMessage(t):t)},upsert:(t,e)=>{u.upsert(t,e),s&&s.upsert(n.transformMessage?n.transformMessage(t):t,e)},stop:()=>{u.stop(),s&&s.stop()}}}function eK(){let t="",e=0;return{isAsync:!1,get isEmpty(){return!t},write(n,r){let o=P(n);e+=o,t+=n,r&&r(o)},finish(t){t(this.finishSync())},finishSync(){let n={output:t,outputBytesCount:e,rawBytesCount:e,pendingData:""};return t="",e=0,n},estimateEncodedBytesCount:t=>t.length}}let eY="DISCARDED",eX="SKIPPED",eQ=function(){let t={};return{register:(e,n)=>(t[e]||(t[e]=[]),t[e].push(n),{unregister:()=>{t[e]=t[e].filter(t=>t!==n)}}),triggerHook(e,n){let r=t[e]||[],o=[];for(let t of r){let e=t(n);if(e===eY)return eY;e!==eX&&o.push(e)}return B(...o)}}},e0=function(t){let e=X("global context"),n=X("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}}),r=X("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}}),o=function(t){let e=new J;return{tryToInit(e){t||(t=e)},update(n){t=n,e.notify()},isGranted:()=>t===Q.GRANTED,observable:e}}();function i(){return{view:{referrer:document.referrer,url:window.location.href},context:e.getContext(),user:n.getContext(),account:r.getContext()}}let a=function(t,e,n){let r,o;let i=tR(),a=e.observable.subscribe(u);function u(){if(!o||!r||!e.isGranted())return;a.unsubscribe();let t=n(r,o);i.drain(t)}return{init(t){var n;if(!t){_.error("Missing configuration");return}if(Array.isArray(n=t.enableExperimentalFeatures)&&function(t){t.forEach(t=>{tE.add(t)})}(n.filter(t=>te(d,t))),tX()&&(t={...t,clientToken:"empty"}),r=t,o){tF("DD_LOGS",t);return}let i=function(t){!0===t.usePciIntake&&t.site&&"datadoghq.com"!==t.site&&_.warn("PCI compliance for Logs is only available for Datadog organizations in the US1 site. Default intake will be used.");let e=function(t){var e,n,r,o,i,a,u;if(!t||!t.clientToken){_.error("Client Token is not configured, we will not send any data.");return}if((!(u=t.site)||"string"!=typeof u||/(datadog|ddog|datad0g|dd0g)/.test(u)||(_.error(`Site should be a valid Datadog site. ${S} ${w}/getting_started/site/.`),0))&&e_(t.sessionSampleRate,"Session")&&e_(t.telemetrySampleRate,"Telemetry")&&e_(t.telemetryConfigurationSampleRate,"Telemetry Configuration")&&e_(t.telemetryUsageSampleRate,"Telemetry Usage")&&eb(t.version,"Version")&&eb(t.env,"Env")&&eb(t.service,"Service")){if(void 0!==t.trackingConsent&&!te(Q,t.trackingConsent)){_.error('Tracking Consent should be either "granted" or "not-granted"');return}return{beforeSend:t.beforeSend&&x(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:function(t){switch(t.sessionPersistence){case et.COOKIE:return eu(t);case et.LOCAL_STORAGE:return el();case void 0:{let e=eu(t);return!e&&t.allowFallbackToLocalStorage&&(e=el()),e}default:_.error(`Invalid session persistence '${String(t.sessionPersistence)}'`)}}(t),sessionSampleRate:null!==(e=t.sessionSampleRate)&&void 0!==e?e:100,telemetrySampleRate:null!==(n=t.telemetrySampleRate)&&void 0!==n?n:20,telemetryConfigurationSampleRate:null!==(r=t.telemetryConfigurationSampleRate)&&void 0!==r?r:5,telemetryUsageSampleRate:null!==(o=t.telemetryUsageSampleRate)&&void 0!==o?o:5,service:t.service||void 0,silentMultipleInit:!!t.silentMultipleInit,allowUntrustedEvents:!!t.allowUntrustedEvents,trackingConsent:null!==(i=t.trackingConsent)&&void 0!==i?i:Q.GRANTED,trackAnonymousUser:null===(a=t.trackAnonymousUser)||void 0===a||a,storeContextsAcrossPages:!!t.storeContextsAcrossPages,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144,...function(t){let e=t.site||tS,n=function(t){let{env:e,service:n,version:r,datacenter:o}=t,i=[];return e&&i.push(em("env",e)),n&&i.push(em("service",n)),r&&i.push(em("version",r)),o&&i.push(em("datacenter",o)),i}(t),r={logsEndpointBuilder:ey(t,"logs",n),rumEndpointBuilder:ey(t,"rum",n),profilingEndpointBuilder:ey(t,"profile",n),sessionReplayEndpointBuilder:ey(t,"replay",n)};return{replica:function(t,e){if(!t.replica)return;let n={...t,site:tS,clientToken:t.replica.clientToken},r={logsEndpointBuilder:ey(n,"logs",e),rumEndpointBuilder:ey(n,"rum",e)};return{applicationId:t.replica.applicationId,...r}}(t,n),site:e,...r}}(t)}}}(t),n=ex(t.forwardConsoleLogs,t7(v),"Forward Console Logs"),r=ex(t.forwardReports,t7(ew),"Forward Reports");if(e&&n&&r)return t.forwardErrorsToLogs&&!n.includes(v.error)&&n.push(v.error),{forwardErrorsToLogs:!1!==t.forwardErrorsToLogs,forwardConsoleLogs:n,forwardReports:r,requestErrorResponseLengthLimit:32768,...e}}(t);i&&(o=i,t2().subscribe(q),e.tryToInit(i.trackingConsent),u())},get initConfiguration(){return r},getInternalContext:q,handleLog(e,n,r,o=t(),a=tk()){i.add(t=>t.handleLog(e,n,r,o,a))}}}(i,o,(u,s)=>{u.storeContextsAcrossPages&&(to(s,e,ek,2),to(s,n,ek,1),to(s,r,ek,4));let c=t(u,s,i,o);return a={init:t=>{tF("DD_LOGS",t)},initConfiguration:u,...c},c}),u={};return function(t){let e={version:"6.8.0",onReady(t){t()},...t};return Object.defineProperty(e,"_setDebug",{get:()=>A,enumerable:!1}),e}({logger:new tZ((...t)=>a.handleLog(...t)),init:C(t=>a.init(t)),setTrackingConsent:C(t=>{o.update(t),tD({type:tB,usage:{feature:"set-tracking-consent",tracking_consent:t}})}),getGlobalContext:C(()=>e.getContext()),setGlobalContext:C(t=>e.setContext(t)),setGlobalContextProperty:C((t,n)=>e.setContextProperty(t,n)),removeGlobalContextProperty:C(t=>e.removeContextProperty(t)),clearGlobalContext:C(()=>e.clearContext()),createLogger:C((t,e={})=>(u[t]=new tZ((...t)=>a.handleLog(...t),G(t),e.handler,e.level,G(e.context)),u[t])),getLogger:C(t=>u[t]),getInitConfiguration:C(()=>L(void 0,a.initConfiguration)),getInternalContext:C(t=>a.getInternalContext(t)),setUser:C(n.setContext),getUser:C(n.getContext),setUserProperty:C(n.setContextProperty),removeUserProperty:C(n.removeContextProperty),clearUser:C(n.clearContext),setAccount:C(r.setContext),getAccount:C(r.getContext),setAccountProperty:C(r.setContextProperty),removeAccountProperty:C(r.removeContextProperty),clearAccount:C(r.clearContext)})}(function(t,e,n,o){let i=new eN,a=eQ(),s=[];i.subscribe(1,t=>tO("logs",t));let c=t=>{i.notify(0,{rawLogsEvent:{message:t.message,date:t.startClocks.timeStamp,origin:tq.AGENT,status:tW.error}}),tN("Error reported to customer",{"error.message":t.message})},l=new J(t=>{let{stop:n}=tt(e,window,["visibilitychange","freeze"],e=>{"visibilitychange"===e.type&&"hidden"===document.visibilityState?t.notify({reason:eA.HIDDEN}):"freeze"===e.type&&t.notify({reason:eA.FROZEN})},{capture:!0}),r=tt(e,window,["beforeunload"],()=>{t.notify({reason:eA.UNLOADING})},void 0).stop;return()=>{n(),r()}}),h=!e.sessionStoreStrategyType||tX()||eC()?function(t){let e="1"===eR(t)?{}:void 0;return{findTrackedSession:()=>e,expireObservable:new J}}(e):function(t,e){let n=function(t,e,n,r){let o=new J,i=new J,a=function(t,e,n,r){var o,i,a;let s,c,l,f;let h=new J,d=new J,p=new J,g=t.type===et.COOKIE?function(t,e){let n={isLockEnabled:0===(null!=u?u:u=function(t=window){var e;let n=t.navigator.userAgent;return t.chrome||/HeadlessChrome/.test(n)?0:(null===(e=t.navigator.vendor)||void 0===e?void 0:e.indexOf("Apple"))===0||/safari/i.test(n)&&!/chrome|android/i.test(n)?1:2}()),persistSession:n=>es(e,t,n,9e5),retrieveSession:ec,expireSession:n=>es(e,t,en(n,t),144e5)};return!function(t){if(!t8(t9)){let e=t8("_dd"),n=t8("_dd_r"),r=t8("_dd_l"),o={};e&&(o.id=e),r&&/^[01]$/.test(r)&&(o.logs=r),n&&/^[012]$/.test(n)&&(o.rum=n),tn(o)||(eo(o),t.persistSession(o))}}(n),n}(e,t.cookieOptions):{isLockEnabled:!1,persistSession:ef,retrieveSession:eh,expireSession:t=>{ef(en(t,e))}},{expireSession:v}=g,y=M(function(){ep({process:t=>er(t)?en(t,e):void 0,after:_},g)},1e3);w();let{throttled:m,cancel:b}=(o=()=>{ep({process:t=>{if(tn(t))return;let e=_(t);return function(t){if(tn(t))return 0;let{trackingType:e,isTracked:o}=r(t[n]);t[n]=e,delete t.isExpired,o&&!t.id&&(t.id=t3(),t.created=String(tk()))}(e),e},after:t=>{tn(t)||E()||(s=t,h.notify()),s=t}},g)},i=0,f=!1,{throttled:(...t)=>{if(f){c=t;return}o(...t),f=!0,l=D(()=>{c&&o(...c),f=!1,c=void 0},1e3)},cancel:()=>{N(l),f=!1,c=void 0}});function _(t){var r;return er(t)&&(t=en(t,e)),E()&&((r=t,s.id!==r.id||s[n]!==r[n])?(s=en(s,e),d.notify()):(p.notify({previousState:s,newState:t}),s=t)),t}function w(){ep({process:t=>{if(tn(t))return en(t,e)},after:t=>{s=t}},g)}function E(){return void 0!==s[n]}return{expandOrRenewSession:m,expandSession:function(){ep({process:t=>E()?_(t):void 0},g)},getSession:()=>s,renewObservable:h,expireObservable:d,sessionStateUpdateObservable:p,restartSession:w,expire:()=>{b(),v(s),_(en(s,e))},stop:()=>{F(y)},updateSessionState:function(t){ep({process:e=>({...e,...t}),after:_},g)}}}(t.sessionStoreStrategyType,t,e,n);ej.push(()=>a.stop());let s=function({expireDelay:t,maxEntries:e}){let n=[];eO||(eO=M(()=>void eI.forEach(t=>t()),6e4));let r=()=>{let e=tA()-t;for(;n.length>0&&n[n.length-1].endTime{tj(n,o)},close:t=>{o.endTime=t}};return e&&n.length>=e&&n.pop(),n.unshift(o),o},find:function(t=eT,e={returnInactive:!1}){for(let r of n)if(r.startTime<=t){if(e.returnInactive||t<=r.endTime)return r.value;break}},closeActive:function(t){let e=n[0];e&&e.endTime===eT&&e.close(t)},findAll:function(t=eT,e=0){let r=t+e;return n.filter(e=>e.startTime<=r&&t<=e.endTime).map(t=>t.value)},reset:function(){n=[]},stop:function(){eI.delete(r),0===eI.size&&eO&&(F(eO),eO=null)}}}({expireDelay:144e5});function c(){return{id:a.getSession().id,trackingType:a.getSession()[e],isReplayForced:!!a.getSession().forcedReplay,anonymousId:a.getSession().anonymousId}}return ej.push(()=>s.stop()),a.renewObservable.subscribe(()=>{s.add(c(),tA()),o.notify()}),a.expireObservable.subscribe(()=>{i.notify(),s.closeActive(tA())}),a.expandOrRenewSession(),s.add(c(),{relative:0,timeStamp:tT()}.relative),r.observable.subscribe(()=>{r.isGranted()?a.expandOrRenewSession():a.expire()}),function(t,e){let{stop:n}=tt(t,window,["click","touchstart","keydown","scroll"],e,{capture:!0,passive:!0});ej.push(n)}(t,()=>{r.isGranted()&&a.expandOrRenewSession()}),function(t,e){let n=()=>{"visible"===document.visibilityState&&e()},{stop:r}=tt(t,document,["visibilitychange"],n,void 0);ej.push(r);let o=M(n,6e4);ej.push(()=>{F(o)})}(t,()=>a.expandSession()),function(t,e){let{stop:n}=tt(t,window,["resume"],e,{capture:!0});ej.push(n)}(t,()=>a.restartSession()),{findSession:(t,e)=>s.find(t,e),renewObservable:o,expireObservable:i,sessionStateUpdateObservable:a.sessionStateUpdateObservable,expire:a.expire,updateSessionState:a.updateSessionState}}(t,"logs",e=>(function(t,e){let n="0"===e||"1"===e?e:eR(t);return{trackingType:n,isTracked:"1"===n}})(t,e),e);return{findTrackedSession:(t,e={returnInactive:!1})=>{let r=n.findSession(t,e);return r&&"1"===r.trackingType?{id:r.id,anonymousId:r.anonymousId}:void 0},expireObservable:n.expireObservable}}(e,o),{stop:d,getRUMInternalContext:p}=function(t){let e=window,n=!1;function r(t){let r=eC(),o=function(t,e){if(e&&e.getInternalContext)return e.getInternalContext(t)}(t,r?e.DD_RUM_SYNTHETICS:e.DD_RUM);if(o)return o;r&&!n&&(n=!0,tN("Logs sent before RUM is injected by the synthetics worker",{testId:function(){let t=window._DATADOG_SYNTHETICS_PUBLIC_ID||t8("datadog-synthetics-public-id");return"string"==typeof t?t:void 0}(),resultId:function(){let t=window._DATADOG_SYNTHETICS_RESULT_ID||t8("datadog-synthetics-result-id");return"string"==typeof t?t:void 0}()}))}return t.register(0,({startTime:t})=>r(t)||eX),{getRUMInternalContext:r,stop:()=>{n=!1}}}(a),{stop:g}=function(t,e,n,o,i,a){var u;let s=function(t,e){let n;let o=new J,i=new Set,a=!tP.includes(e.site)&&tI(e.telemetrySampleRate),u={log:a,[tL]:a&&tI(e.telemetryConfigurationSampleRate),[tB]:a&&tI(e.telemetryUsageSampleRate)},s={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return tD=r=>{let a=z(r);if(u[r.type]&&i.size{n=t},observable:o,enabled:a}}("browser-logs-sdk",e);s.setContextProvider(()=>{var t,e,n,r,o,u;return{application:{id:null===(t=a())||void 0===t?void 0:t.application_id},session:{id:null===(e=i.findTrackedSession())||void 0===e?void 0:e.id},view:{id:null===(r=null===(n=a())||void 0===n?void 0:n.view)||void 0===r?void 0:r.id},action:{id:null===(u=null===(o=a())||void 0===o?void 0:o.user_action)||void 0===u?void 0:u.id}}});let c=[];if(tX()){let t=tY(),e=s.observable.subscribe(e=>t.send("internal_telemetry",e));c.push(()=>e.unsubscribe())}else{let t=eZ(e,{endpoint:e.rumEndpointBuilder,encoder:eK()},e.replica&&{endpoint:e.replica.rumEndpointBuilder,encoder:eK()},n,o,i.expireObservable);c.push(()=>t.stop());let r=s.observable.subscribe(n=>t.add(n,"datad0g.com"===e.site));c.push(()=>r.unsubscribe())}return tU.drain(),u=function(t){let e={session_sample_rate:t.sessionSampleRate,telemetry_sample_rate:t.telemetrySampleRate,telemetry_configuration_sample_rate:t.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:t.telemetryUsageSampleRate,use_before_send:!!t.beforeSend,use_partitioned_cross_site_session_cookie:t.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:t.useSecureSessionCookie,use_proxy:!!t.proxy,silent_multiple_init:t.silentMultipleInit,track_session_across_subdomains:t.trackSessionAcrossSubdomains,track_anonymous_user:t.trackAnonymousUser,session_persistence:t.sessionPersistence,allow_fallback_to_local_storage:!!t.allowFallbackToLocalStorage,store_contexts_across_pages:!!t.storeContextsAcrossPages,allow_untrusted_events:!!t.allowUntrustedEvents,tracking_consent:t.trackingConsent};return{forward_errors_to_logs:t.forwardErrorsToLogs,forward_console_logs:t.forwardConsoleLogs,forward_reports:t.forwardReports,use_pci_intake:t.usePciIntake,...e}}(t),tD({type:tL,configuration:u}),{telemetry:s,stop:()=>{c.forEach(t=>t())}}}(t,e,c,l,h,p);s.push(()=>g()),function(t,e){function n(n,r){var o,i;function a(t){let o={isAborted:r.isAborted,handlingStack:r.handlingStack};e.notify(0,{rawLogsEvent:{message:`${"xhr"===n?"XHR":"Fetch"} error ${r.method} ${r.url}`,date:r.startClocks.timeStamp,error:{stack:t||"Failed to load",handling:void 0},http:{method:r.method,status_code:r.status,url:r.url},status:tW.error,origin:tq.NETWORK},domainContext:o})}o=r.url,!tx.every(t=>o.includes(t))&&(0===r.status&&"opaque"!==r.responseType||r.status>=500)&&("xhr"in r?a("string"==typeof(i=r.xhr).response?eD(i.response,t):i.response):r.response?function(t,e,n){var r,o,i;let a=function(t){try{return t.clone()}catch(t){return}}(t);a&&a.body?window.TextDecoder?(r=a.body,o=e.requestErrorResponseLengthLimit,i=(t,e)=>{t?n(`Unable to retrieve response: ${t}`):n(e)},function(t,e,n){let r=t.getReader(),o=[],i=0;function a(){let t,a;if(r.cancel().catch(q),n.collectStreamBody){let e;if(1===o.length)e=o[0];else{e=new Uint8Array(i);let t=0;o.forEach(n=>{e.set(n,t),t+=n.length})}t=e.slice(0,n.bytesLimit),a=e.length>n.bytesLimit}e(void 0,t,a)}(function t(){r.read().then(C(e=>{if(e.done){a();return}n.collectStreamBody&&o.push(e.value),(i+=e.value.length)>n.bytesLimit?a():t()}),C(t=>e(t)))})()}(r,(t,e,n)=>{if(t)i(t);else{let t=new TextDecoder().decode(e);n&&(t+="..."),i(void 0,t)}},{bytesLimit:o,collectStreamBody:!0})):a.text().then(C(t=>n(eD(t,e))),C(t=>n(`Unable to retrieve response: ${t}`))):n()}(r.response,t,a):r.error&&a(eD(ty(ti(r.error)),t)))}t.forwardErrorsToLogs&&((f||(f=new J(e=>{let{stop:n}=tQ(XMLHttpRequest.prototype,"open",eP),{stop:r}=tQ(XMLHttpRequest.prototype,"send",n=>{(function({target:t,handlingStack:e},n,r){let o=e$.get(t);if(!o)return;o.state="start",o.startClocks=tC(),o.isAborted=!1,o.xhr=t,o.handlingStack=e;let i=!1,{stop:a}=tQ(t,"onreadystatechange",()=>{t.readyState===XMLHttpRequest.DONE&&u()}),u=()=>{var e;s(),a(),i||(i=!0,o.state="complete",o.duration=(e=o.startClocks.timeStamp,tk()-e),o.status=t.status,r.notify({...o}))},{stop:s}=tt(n,t,["loadend"],u,void 0);r.notify(o)})(n,t,e)},{computeHandlingStack:!0}),{stop:o}=tQ(XMLHttpRequest.prototype,"abort",eU);return()=>{n(),r(),o()}})),f).subscribe(t=>{"complete"===t.state&&n("xhr",t)}),t2().subscribe(t=>{"resolve"===t.state&&n("fetch",t)}))}(e,i),function(t,e){if(!t.forwardErrorsToLogs)return;let n=new J,{stop:r}=function(t){let e=(e,n)=>{let r=t_({stackTrace:n,originalError:e,startClocks:tC(),nonErrorPrefix:"Uncaught",source:tq.SOURCE,handling:"unhandled"});t.notify(r)},{stop:n}=tQ(window,"onerror",({parameters:[t,n,r,o,i]})=>{let a;tw(i)||(a=function(t,e,n,r){let o,i;if(void 0===e)return;let{name:a,message:u}=("[object String]"===({}).toString.call(t)&&([,o,i]=tg.exec(t)),{name:o,message:i});return{name:a,message:u,stack:[{url:e,column:r,line:n}]}}(t,n,r,o)),e(null!=i?i:t,a)}),{stop:r}=tQ(window,"onunhandledrejection",({parameters:[t]})=>{e(t.reason||"Empty reason")});return{stop:()=>{n(),r()}}}(n);n.subscribe(t=>{e.notify(0,{rawLogsEvent:{message:t.message,date:t.startClocks.timeStamp,error:tH(t),origin:tq.SOURCE,status:tW.error},messageContext:t.context})})}(e,i),function(t,e){Z(...t.forwardConsoleLogs.map(t=>(eL[t]||(eL[t]=new J(e=>{let n=y[t];return y[t]=(...r)=>{n.apply(console,r);let o=tv("console error");T(()=>{e.notify(function(t,e,n){let r=t.map(t=>"string"==typeof t?G(t):tw(t)?tm(ti(t)):z(G(t),void 0,2)).join(" ");if(e===v.error){let o=t_({originalError:t.find(tw),handlingStack:n,startClocks:tC(),source:tq.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return o.message=r,{api:e,message:r,handlingStack:n,error:o}}return{api:e,message:r,error:void 0,handlingStack:n}}(r,t,o))})},()=>{y[t]=n}})),eL[t]))).subscribe(t=>{var n;let r={rawLogsEvent:{date:tk(),message:t.message,origin:tq.CONSOLE,error:t.error&&tH(t.error),status:eB[t.api]},messageContext:null===(n=t.error)||void 0===n?void 0:n.context,domainContext:{handlingStack:t.handlingStack}};e.notify(0,r)})}(e,i),function(t,e){(function(t,e){let n=[];e.includes(ew.cspViolation)&&n.push(new J(e=>{let{stop:n}=tt(t,document,["securitypolicyviolation"],t=>{e.notify(function(t){let e=`'${t.blockedURI}' blocked by '${t.effectiveDirective}' directive`;return eE({type:t.effectiveDirective,message:`${ew.cspViolation}: ${e}`,originalError:t,csp:{disposition:t.disposition},stack:eS(t.effectiveDirective,t.originalPolicy?`${e} of the policy "${function(t,e,n=""){let r=t.charCodeAt(99),o=r>=55296&&r<=56319?101:100;return t.length<=o?t:`${t.slice(0,o)}${n}`}(t.originalPolicy,0,"...")}"`:"no policy",t.sourceFile,t.lineNumber,t.columnNumber)})}(t))},void 0);return n}));let r=e.filter(t=>t!==ew.cspViolation);return r.length&&n.push(new J(t=>{if(!window.ReportingObserver)return;let e=C((e,n)=>e.forEach(e=>t.notify(function(t){let{type:e,body:n}=t;return eE({type:n.id,message:`${e}: ${n.message}`,originalError:t,stack:eS(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)})}(e)))),n=new window.ReportingObserver(e,{types:r,buffered:!0});return n.observe(),()=>{n.disconnect()}})),Z(...n)})(t,t.forwardReports).subscribe(t=>{let n,r=t.message,o="deprecation"===t.originalError.type?tW.warn:tW.error;if(o===tW.error)n=tH(t);else if(t.stack){var i,a;r+=` Found in ${i=t.stack,null===(a=/@ (.+)/.exec(i))||void 0===a?void 0:a[1]}`}e.notify(0,{rawLogsEvent:{date:tk(),message:r,origin:tq.REPORT,error:n,status:o}})})}(e,i);let{handleLog:b}={handleLog:function(t,e,n,r,o){let a=B(e.getContext(),t.context);if(tz(t.status,"console",e)&&function({status:t,message:e},n){m[eM[t]].call(y,e,n)}(t,a),tz(t.status,tV,e)){let e={rawLogsEvent:{date:o||tk(),message:t.message,status:t.status,origin:tq.LOGGER},messageContext:a,savedCommonContext:r};n&&(e.domainContext={handlingStack:n}),i.notify(0,e)}}};if(!function(t,e,n,r,o,i){let a=tJ.concat(["custom"]),u={};a.forEach(t=>{var n;let r,o;u[t]=(n=e.eventRateLimiterThreshold,r=0,o=!1,{isLimitReached(){if(0===r&&D(()=>{r=0},6e4),(r+=1)<=n||o)return o=!1,!1;if(r===n+1){o=!0;try{i({message:`Reached max number of ${t}s by minute: ${n}`,source:tq.AGENT,startClocks:tC()})}finally{o=!1}}return!0}})}),n.subscribe(0,({rawLogsEvent:i,messageContext:a,savedCommonContext:s,domainContext:c})=>{var l,f;let h;let d=i.date-tT(),p=t.findTrackedSession(d);if(!t.findTrackedSession(d,{returnInactive:!0}))return;let g=s||o();!tn(g.account)&&g.account.id&&(h=g.account),p&&p.anonymousId&&!g.user.anonymous_id&&(g.user.anonymous_id=p.anonymousId);let v=r.triggerHook(0,{startTime:d}),y=B({service:e.service,session_id:p?p.id:void 0,session:p?{id:p.id}:void 0,usr:tn(g.user)?void 0:g.user,account:h,view:g.view},g.context,v,i,a);(null===(l=e.beforeSend)||void 0===l?void 0:l.call(e,y,c))===!1||y.origin!==tq.AGENT&&(null!==(f=u[y.status])&&void 0!==f?f:u.custom).isLimitReached()||n.notify(1,y)})}(h,e,i,a,n,c),tX())!function(t){let e=tY();t.subscribe(1,t=>{e.send("log",t)})}(i);else{let{stop:t}=function(t,e,n,r,o){let i=eZ(t,{endpoint:t.logsEndpointBuilder,encoder:eK()},t.replica&&{endpoint:t.replica.logsEndpointBuilder,encoder:eK()},n,r,o.expireObservable);return e.subscribe(1,t=>{i.add(t)}),i}(e,i,c,l,h);s.push(()=>t())}return{handleLog:b,getInternalContext:t=>{let e=h.findTrackedSession(t);if(e)return{session_id:e.id}},stop:()=>{s.forEach(t=>t()),d()}}});!function(t,e,n){let r=t[e];r&&!r.q&&r.version&&_.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),t[e]=n,r&&r.q&&r.q.forEach(t=>x(t,"onReady callback threw an error:")())}(j(),"DD_LOGS",e0);var e1=n(89762),e2="loom-marketing";e0.init({clientToken:"pubb1955571dc736e541b72313c6942242f",site:"datadoghq.com",forwardErrorsToLogs:!1,sessionSampleRate:100,telemetrySampleRate:0,env:"production"});var e3=function(t,e){e0.logger.info(t,(0,g._)((0,p._)({},e),{client:e2,gasV3EventName:e.segmentEventName?(0,e1.y)(e.segmentEventName):void 0}))},e6=function(t,e){e0.logger.error(t,(0,g._)((0,p._)({},e),{client:e2,gasV3EventName:e.segmentEventName?(0,e1.y)(e.segmentEventName):void 0}))}},45122:function(t,e,n){"use strict";n.d(e,{cA:function(){return u},sW:function(){return s}});var r=n(24043),o=n(85893),i=n(67294),a=(0,i.createContext)({color:"bg-grey-7",setColor:function(){}});function u(t){var e=t.children,n=(0,r._)((0,i.useState)(""),2),u=n[0],s=n[1];return(0,i.useEffect)(function(){s(a)},[]),(0,o.jsx)(a.Provider,{value:{color:u,setColor:s},children:e})}a.displayName="PageBgColor";var s=function(){var t=(0,i.useContext)(a);return{color:t.color,setColor:t.setColor}}},28969:function(t,e,n){"use strict";n.d(e,{NA:function(){return o},fZ:function(){return i}});var r=function(){return function(){}};function o(t){var e;return t.subscribe(function(t){return e=t})(),e}function i(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,o=[],i=function(n){if(t="function"==typeof n?n(t):n,e)for(var r=0;r-1&&o.splice(t,1),0===o.length&&(e=void e())}}}}},60740:function(t,e,n){"use strict";n.d(e,{b:function(){return c}});var r=n(11010),o=n(72253),i=n(14932),a=n(70655),u=n(60150),s=(0,n(28969).fZ)({userFetched:!1}),c={subscribe:s.subscribe};function l(){return(l=(0,r._)(function(){var t,e,n,r,c,l;return(0,a.Jh)(this,function(a){switch(a.label){case 0:if(!window.location.search.includes("login=true"))return[3,1];return s.set({id:11,first_name:"Usagi",last_name:"Tsukino",email:"usagi.tsukino@fake.fake",avatars:[{thumb:"avatars/default-avatar.svg"}],default_workspace_id:123,persona:{persona_v1:{use_case_plan:"work"}},userFetched:!0}),[3,5];case 1:return[4,fetch(u.B3,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:"\n {\n me {\n id\n first_name\n last_name\n email\n avatars {\n thumb\n }\n default_workspace_id\n persona\n }\n }\n "})})];case 2:if(!(t=a.sent()).ok)return[3,4];return[4,t.json()];case 3:return(r=null==(n=a.sent())?void 0:null===(e=n.data)||void 0===e?void 0:e.me)?(s.set((0,i._)((0,o._)({},r),{userFetched:!0})),null===(l=window.segmentAnalytics)||void 0===l||null===(c=l.identify)||void 0===c||c.call(l,r.id,{email:r.email,firstName:r.first_name,lastName:r.last_name})):s.set({userFetched:!0}),[3,5];case 4:s.set({userFetched:!0}),a.label=5;case 5:return[2]}})})).apply(this,arguments)}(function(){return l.apply(this,arguments)})().catch(function(){})},62123:function(t,e,n){"use strict";n.r(e),n.d(e,{MyApp:function(){return ti},default:function(){return ta}});var r=n(72253),o=n(85893);n(25433),n(11083);var i=n(67294);let a=(0,i.lazy)(()=>n.e(4922).then(n.bind(n,34922)));function u(t){return(0,o.jsx)(i.Suspense,{fallback:null,children:(0,o.jsx)(a,{...t})})}var s=n(42462);function c(){return(c=Object.assign?Object.assign.bind():function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n={mimeType:e.mimeType||null,onBeforeSend:e.onBeforeSend||Function.prototype,onSuccess:e.onSuccess||Function.prototype,onError:e.onError||Function.prototype,onComplete:e.onComplete||Function.prototype},r=Array.isArray(t)?t:[t],o=Array.apply(null,Array(r.length)).map(function(t){return null});function i(t){var e="string"==typeof t,n=e&&"<"===t.trim().charAt(0);return e&&!n}function a(t,e){n.onError(t,r[e],e)}function u(t,e){var i=n.onSuccess(t,r[e],e);t=!1===i?"":i||t,o[e]=t,-1===o.indexOf(null)&&n.onComplete(o)}var s=document.createElement("a");r.forEach(function(t,e){if(s.setAttribute("href",t),s.href=String(s.href),document.all&&!window.atob&&s.host.split(":")[0]!==location.host.split(":")[0]){if(s.protocol===location.protocol){var r=new XDomainRequest;r.open("GET",t),r.timeout=0,r.onprogress=Function.prototype,r.ontimeout=Function.prototype,r.onload=function(){var t=r.responseText;i(t)?u(t,e):a(r,e)},r.onerror=function(t){a(r,e)},setTimeout(function(){r.send()},0)}else console.warn("Internet Explorer 9 Cross-Origin (CORS) requests must use the same protocol (".concat(t,")")),a(null,e)}else{var o=new XMLHttpRequest;o.open("GET",t),n.mimeType&&o.overrideMimeType&&o.overrideMimeType(n.mimeType),n.onBeforeSend(o,t,e),o.onreadystatechange=function(){if(4===o.readyState){var t=o.responseText;o.status<400&&i(t)?u(t,e):0===o.status&&i(t)?u(t,e):a(o,e)}},o.send()}})}function f(t){var e=/\/\*[\s\S]+?\*\//g,n=/(?:@import\s*)(?:url\(\s*)?(?:['"])([^'"]*)(?:['"])(?:\s*\))?(?:[^;]*;)/g,r={rootElement:t.rootElement||document,include:t.include||'style,link[rel="stylesheet"]',exclude:t.exclude||null,filter:t.filter||null,skipDisabled:!1!==t.skipDisabled,useCSSOM:t.useCSSOM||!1,onBeforeSend:t.onBeforeSend||Function.prototype,onSuccess:t.onSuccess||Function.prototype,onError:t.onError||Function.prototype,onComplete:t.onComplete||Function.prototype},o=Array.apply(null,r.rootElement.querySelectorAll(r.include)).filter(function(t){var e;return e=r.exclude,!(t.matches||t.matchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector).call(t,e)}),i=Array.apply(null,Array(o.length)).map(function(t){return null});function a(){if(-1===i.indexOf(null)){i.reduce(function(t,e,n){return""===e&&t.push(n),t},[]).reverse().forEach(function(t){return[o,i].forEach(function(e){return e.splice(t,1)})});var t=i.join("");r.onComplete(t,i,o)}}function u(t,e,n,o){var u=r.onSuccess(t,n,o);!function t(e,n,o,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],c=s(e,o,u);c.rules.length?l(c.absoluteUrls,{onBeforeSend:function(t,e,o){r.onBeforeSend(t,n,e)},onSuccess:function(t,e,o){var i=r.onSuccess(t,n,e),a=s(t=!1===i?"":i||t,e,u);return a.rules.forEach(function(e,n){t=t.replace(e,a.absoluteRules[n])}),t},onError:function(r,s,l){a.push({xhr:r,url:s}),u.push(c.rules[l]),t(e,n,o,i,a,u)},onComplete:function(r){r.forEach(function(t,n){e=e.replace(c.rules[n],t)}),t(e,n,o,i,a,u)}}):i(e,a)}(t=void 0!==u&&!1==!!u?"":u||t,n,o,function(t,o){null===i[e]&&(o.forEach(function(t){return r.onError(t.xhr,n,t.url)}),!r.filter||r.filter.test(t)?i[e]=t:i[e]="",a())})}function s(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i={};return i.rules=(t.replace(e,"").match(n)||[]).filter(function(t){return -1===o.indexOf(t)}),i.urls=i.rules.map(function(t){return t.replace(n,"$1")}),i.absoluteUrls=i.urls.map(function(t){return h(t,r)}),i.absoluteRules=i.rules.map(function(t,e){var n=i.urls[e],o=h(i.absoluteUrls[e],r);return t.replace(n,o)}),i}o.length?o.forEach(function(t,e){var n=t.getAttribute("href"),o=t.getAttribute("rel"),s="link"===t.nodeName.toLowerCase()&&n&&o&&-1!==o.toLowerCase().indexOf("stylesheet"),c=!1!==r.skipDisabled&&t.disabled,f="style"===t.nodeName.toLowerCase();if(s&&!c){if(-1!==n.indexOf("data:text/css")){var d=decodeURIComponent(n.substring(n.indexOf(",")+1));r.useCSSOM&&(d=Array.apply(null,t.sheet.cssRules).map(function(t){return t.cssText}).join("")),u(d,e,t,location.href)}else l(n,{mimeType:"text/css",onBeforeSend:function(e,n,o){r.onBeforeSend(e,t,n)},onSuccess:function(r,o,i){u(r,e,t,h(n))},onError:function(n,o,u){i[e]="",r.onError(n,t,o),a()}})}else if(f&&!c){var p=t.textContent;r.useCSSOM&&(p=Array.apply(null,t.sheet.cssRules).map(function(t){return t.cssText}).join("")),u(p,e,t,location.href)}else i[e]="",a()}):r.onComplete("",[])}function h(t,e){var n=document.implementation.createHTMLDocument(""),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),r.href=e||document.baseURI||(document.querySelector("base")||{}).href||location.href,o.href=t,o.href}var d=p;function p(t,e,n){t instanceof RegExp&&(t=g(t,n)),e instanceof RegExp&&(e=g(e,n));var r=v(t,e,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+t.length,r[1]),post:n.slice(r[1]+e.length)}}function g(t,e){var n=e.match(t);return n?n[0]:null}function v(t,e,n){var r,o,i,a,u,s=n.indexOf(t),c=n.indexOf(e,s+1),l=s;if(s>=0&&c>0){if(t===e)return[s,c];for(r=[],i=n.length;l>=0&&!u;)l==s?(r.push(l),s=n.indexOf(t,l+1)):1==r.length?u=[r.pop(),c]:((o=r.pop())=0?s:c;r.length&&(u=[i,a])}return u}function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=c({},{preserveStatic:!0,removeComments:!1},e);function r(t){throw Error("CSS parse error: ".concat(t))}function o(e){var n=e.exec(t);if(n)return t=t.slice(n[0].length),n}function i(){return o(/^{\s*/)}function a(){o(/^\s*/)}function u(){for(var e,o=[];e=function(){if(a(),"/"===t[0]&&"*"===t[1]){for(var e=2;t[e]&&("*"!==t[e]||"/"!==t[e+1]);)e++;if(!t[e])return r("end of comment is missing");var n=t.slice(2,e);return t=t.slice(e+2),{type:"comment",comment:n}}}();)o.push(e);return n.removeComments?[]:o}function s(){for(a();"}"===t[0];)r("extra closing bracket");var e=o(/^(("(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^{])+)/);if(e){var n,i=e[0].trim();/\/\*/.test(i)&&(i=i.replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,""));var u=/["']\w*,\w*["']/.test(i);return u&&(i=i.replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(t){return t.replace(/,/g,"‌")})),n=/,/.test(i)?i.split(/\s*(?![^(]*\)),\s*/):[i],u&&(n=n.map(function(t){return t.replace(/\u200C/g,",")})),n}}function l(){if(!i())return r("missing '{'");for(var e,n=u();e=function(){if("@"===t[0])return f();o(/^([;\s]*)+/);var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=o(/^(\*?[-#/*\\\w.]+(\[[0-9a-z_-]+\])?)\s*/);if(n){if(n=n[0].trim(),!o(/^:\s*/))return r("property missing ':'");var i=o(/^((?:\/\*.*?\*\/|'(?:\\'|.)*?'|"(?:\\"|.)*?"|\((\s*'(?:\\'|.)*?'|"(?:\\"|.)*?"|[^)]*?)\s*\)|[^};])+)/),a={type:"declaration",property:n.replace(e,""),value:i?i[0].replace(e,"").trim():""};return o(/^[;\s]*/),a}}();)n.push(e),n=n.concat(u());return o(/^}/)?n:r("missing '}'")}function f(){if(a(),"@"===t[0]){var e=function(){var t=o(/^@(import|charset|namespace)\s*([^;]+);/);if(t)return{type:t[1],name:t[2].trim()}}()||function(){if(o(/^@font-face\s*/))return{type:"font-face",declarations:l()}}()||function(){var t=o(/^@media([^{]+)*/);if(t)return{type:"media",media:(t[1]||"").trim(),rules:h()}}()||function(){var t,e=o(/^@([-\w]+)?keyframes\s*/);if(e){var n=e[1];if(!(e=o(/^([-\w]+)\s*/)))return r("@keyframes missing name");var s=e[1];if(!i())return r("@keyframes missing '{'");for(var c=u();t=function(){a();for(var t,e=[];t=o(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)e.push(t[1]),o(/^,\s*/);if(e.length)return{type:"keyframe",values:e,declarations:l()}}();)c.push(t),c=c.concat(u());return o(/^}/)?{type:"keyframes",name:s,vendor:n,keyframes:c}:r("@keyframes missing '}'")}}()||function(){var t=o(/^@supports *([^{]+)/);if(t)return{type:"supports",supports:t[1].trim(),rules:h()}}()||function(){var t=o(/^@([-\w]+)?document *([^{]+)/);if(t)return{type:"document",document:t[2].trim(),vendor:t[1]?t[1].trim():null,rules:h()}}()||function(){var t=o(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return{type:"custom-media",name:t[1].trim(),media:t[2].trim()}}()||function(){if(o(/^@host\s*/))return{type:"host",rules:h()}}()||function(){if(o(/^@page */))return{type:"page",selectors:s()||[],declarations:l()}}()||function(){var t=o(/@(top|bottom|left|right)-(left|center|right|top|middle|bottom)-?(corner)?\s*/);if(t)return{type:"page-margin-box",name:"".concat(t[1],"-").concat(t[2])+(t[3]?"-".concat(t[3]):""),declarations:l()}}();return e&&!n.preserveStatic?(e.declarations?e.declarations.some(function(t){return/var\(/.test(t.value)}):(e.keyframes||e.rules||[]).some(function(t){return(t.declarations||[]).some(function(t){return/var\(/.test(t.value)})}))?e:{}:e}}function h(e){if(!e&&!i())return r("missing '{'");for(var a,c=u();t.length&&(e||"}"!==t[0])&&(a=f()||function(){if(!n.preserveStatic){var e=d("{","}",t);if(e){var o=/:(?:root|host)(?![.:#(])/.test(e.pre)&&/--\S*\s*:/.test(e.body),i=/var\(/.test(e.body);if(!o&&!i)return t=t.slice(e.end+1),{}}}var a=s()||[],u=n.preserveStatic?l():l().filter(function(t){var e=a.some(function(t){return/:(?:root|host)(?![.:#(])/.test(t)})&&/^--\S/.test(t.property),n=/var\(/.test(t.value);return e||n});return a.length||r("selector missing"),{type:"rule",selectors:a,declarations:u}}());)a.type&&c.push(a),c=c.concat(u());return e||o(/^}/)?c:r("missing '}'")}return{type:"stylesheet",stylesheet:{rules:h(!0),errors:[]}}}function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=c({},{parseHost:!1,store:{},onWarning:function(){}},e),r=new RegExp(":".concat(n.parseHost?"host":"root","$"));return"string"==typeof t&&(t=y(t,n)),t.stylesheet.rules.forEach(function(t){"rule"===t.type&&t.selectors.some(function(t){return r.test(t)})&&t.declarations.forEach(function(t,e){var r=t.property,o=t.value;r&&0===r.indexOf("--")&&(n.store[r]=o)})}),n.store}function b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r={charset:function(t){return"@charset "+t.name+";"},comment:function(t){return 0===t.comment.indexOf("__CSSVARSPONYFILL")?"/*"+t.comment+"*/":""},"custom-media":function(t){return"@custom-media "+t.name+" "+t.media+";"},declaration:function(t){return t.property+":"+t.value+";"},document:function(t){return"@"+(t.vendor||"")+"document "+t.document+"{"+o(t.rules)+"}"},"font-face":function(t){return"@font-face{"+o(t.declarations)+"}"},host:function(t){return"@host{"+o(t.rules)+"}"},import:function(t){return"@import "+t.name+";"},keyframe:function(t){return t.values.join(",")+"{"+o(t.declarations)+"}"},keyframes:function(t){return"@"+(t.vendor||"")+"keyframes "+t.name+"{"+o(t.keyframes)+"}"},media:function(t){return"@media "+t.media+"{"+o(t.rules)+"}"},namespace:function(t){return"@namespace "+t.name+";"},page:function(t){return"@page "+(t.selectors.length?t.selectors.join(", "):"")+"{"+o(t.declarations)+"}"},"page-margin-box":function(t){return"@"+t.name+"{"+o(t.declarations)+"}"},rule:function(t){var e=t.declarations;if(e.length)return t.selectors.join(",")+"{"+o(e)+"}"},supports:function(t){return"@supports "+t.supports+"{"+o(t.rules)+"}"}};function o(t){for(var o="",i=0;i0&&void 0!==arguments[0]?arguments[0]:{},e="cssVars(): ",n=c({},S,t);function r(t,r,o,i){!n.silent&&window.console&&console.error("".concat(e).concat(t,"\n"),r),n.onError(t,r,o,i)}function o(t){!n.silent&&window.console&&console.warn("".concat(e).concat(t)),n.onWarning(t)}function i(t){n.onFinally(!!t,w,L()-n.__benchmark)}if(_){if(n.watch){n.watch=S.watch,function(t){function e(t){var e=n(t)&&t.hasAttribute("disabled"),r=(t.sheet||{}).disabled;return e||r}function n(t){return"link"===t.nodeName.toLowerCase()&&-1!==(t.getAttribute("rel")||"").indexOf("stylesheet")}function r(t){return"style"===t.nodeName.toLowerCase()}window.MutationObserver&&(C&&(C.disconnect(),C=null),(C=new MutationObserver(function(o){o.some(function(o){var i,a;return function(r){var o=!1;if("attributes"===r.type&&n(r.target)&&!e(r.target)){var i="disabled"===r.attributeName,a="href"===r.attributeName,u="skip"===r.target.getAttribute("data-cssvars"),s="src"===r.target.getAttribute("data-cssvars");i?o=!u&&!s:a&&(u?r.target.setAttribute("data-cssvars",""):s&&B(t.rootElement,!0),o=!0)}return o}(o)||function(t){var e=!1;if("childList"===t.type){var n=r(t.target),o="out"===t.target.getAttribute("data-cssvars");e=n&&!o}return e}(o)||(i=!1,"childList"===o.type&&(i=[].slice.call(o.addedNodes).some(function(t){var o=1===t.nodeType&&t.hasAttribute("data-cssvars"),i=r(t)&&x.cssVars.test(t.textContent);return!o&&(n(t)||i)&&!e(t)})),i)||(a=!1,"childList"===o.type&&(a=[].slice.call(o.removedNodes).some(function(e){var n=1===e.nodeType,r=n&&"out"===e.getAttribute("data-cssvars"),o=n&&"src"===e.getAttribute("data-cssvars");if(o||r){var i=e.getAttribute("data-cssvars-group"),a=t.rootElement.querySelector('[data-cssvars-group="'.concat(i,'"]'));o&&B(t.rootElement,!0),a&&a.parentNode.removeChild(a)}return o})),a)})&&j(t)})).observe(document.documentElement,{attributes:!0,attributeFilter:["disabled","href"],childList:!0,subtree:!0}))}(n),j(n);return}if(!1===n.watch&&C&&(C.disconnect(),C=null),!n.__benchmark){if(A===n.rootElement){!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;clearTimeout(O),O=setTimeout(function(){t.__benchmark=null,j(t)},e)}(t);return}var a=[].slice.call(n.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])'));n.__benchmark=L(),n.exclude=[C?'[data-cssvars]:not([data-cssvars=""])':'[data-cssvars="out"]',"link[disabled]:not([data-cssvars])",n.exclude].filter(function(t){return t}).join(","),n.variables=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=/^-{2}/;return Object.keys(t).reduce(function(n,r){return n[e.test(r)?r:"--".concat(r.replace(/^-+/,""))]=t[r],n},{})}(n.variables),a.forEach(function(t){var e="style"===t.nodeName.toLowerCase()&&t.__cssVars.text,n=e&&t.textContent!==t.__cssVars.text;e&&n&&(t.sheet&&(t.sheet.disabled=!1),t.setAttribute("data-cssvars",""))}),!C&&([].slice.call(n.rootElement.querySelectorAll('[data-cssvars="out"]')).forEach(function(t){var e=t.getAttribute("data-cssvars-group");(e?n.rootElement.querySelector('[data-cssvars="src"][data-cssvars-group="'.concat(e,'"]')):null)||t.parentNode.removeChild(t)}),T&&a.length2&&void 0!==arguments[2]?arguments[2]:[],u=c({},k.dom,k.user);if(k.job={},a.forEach(function(t,i){var a=e[i];if(t.__cssVars=t.__cssVars||{},t.__cssVars.text=a,x.cssVars.test(a))try{var u=y(a,{preserveStatic:n.preserveStatic,removeComments:!0});m(u,{parseHost:!!n.rootElement.host,store:k.dom,onWarning:o}),t.__cssVars.tree=u}catch(e){r(e.message,t)}}),c(k.job,k.dom),n.updateDOM?(c(k.user,n.variables),c(k.job,k.user)):(c(k.job,k.user,n.variables),c(u,n.variables)),E.job>0&&(Object.keys(k.job).length>Object.keys(u).length||Object.keys(u).length&&Object.keys(k.job).some(function(t){return k.job[t]!==u[t]})))B(n.rootElement),j(n);else{var s=[],l=[],f=!1;if(n.updateDOM&&E.job++,a.forEach(function(t,i){var a=!t.__cssVars.tree;if(t.__cssVars.tree)try{!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=c({},{preserveStatic:!0,preserveVars:!1,variables:{},onWarning:function(){}},e);"string"==typeof t&&(t=y(t,n)),function t(e,n){e.rules.forEach(function(r){if(r.rules){t(r,n);return}if(r.keyframes){r.keyframes.forEach(function(t){"keyframe"===t.type&&n(t.declarations,r)});return}r.declarations&&n(r.declarations,e)})}(t.stylesheet,function(t,e){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2?arguments[2]:void 0;if(-1===e.indexOf("var("))return e;var l=d("(",")",e);return l?"var"!==l.pre.slice(-3)?l.pre+"(".concat(t(l.body,s),")")+t(l.post,s):0===l.body.trim().length?(s.onWarning("var() must contain a non-whitespace string"),e):l.pre.slice(0,-3)+(r=(n=l.body).split(",")[0].replace(/[\s\n\t]/g,""),o=(n.match(/(?:\s*,\s*){1}(.*)?/)||[])[1],a=(i=Object.prototype.hasOwnProperty.call(s.variables,r)?String(s.variables[r]):void 0)||(o?String(o):void 0),u=c||n,(i||s.onWarning('variable "'.concat(r,'" is undefined')),a&&"undefined"!==a&&a.length>0)?t(a,s,u):"var(".concat(u,")"))+t(l.post,s):(-1!==e.indexOf("var(")&&s.onWarning('missing closing ")" in the value "'.concat(e,'"')),e)}(u,n);s!==o.value&&(s=function(t){return(t.match(/calc\(([^)]+)\)/g)||[]).forEach(function(e){var n="calc".concat(e.split("calc").join(""));t=t.replace(e,n)}),t}(s),n.preserveVars?(t.splice(r,0,{type:i,property:a,value:s}),r++):o.value=s)}}}}),b(t)}(t.__cssVars.tree,c({},n,{variables:k.job,onWarning:o}));var u=b(t.__cssVars.tree);if(n.updateDOM){var h=e[i],p=x.cssVarFunc.test(h);if(t.getAttribute("data-cssvars")||t.setAttribute("data-cssvars","src"),u.length&&p){var g=t.getAttribute("data-cssvars-group")||++E.group,v=u.replace(/\s/g,""),m=n.rootElement.querySelector('[data-cssvars="out"][data-cssvars-group="'.concat(g,'"]'))||document.createElement("style");f=f||x.cssKeyframes.test(u),n.preserveStatic&&t.sheet&&(t.sheet.disabled=!0),m.hasAttribute("data-cssvars")||m.setAttribute("data-cssvars","out"),v===t.textContent.replace(/\s/g,"")?(a=!0,m&&m.parentNode&&(t.removeAttribute("data-cssvars-group"),m.parentNode.removeChild(m))):v===m.textContent.replace(/\s/g,"")||([t,m].forEach(function(t){t.setAttribute("data-cssvars-job",E.job),t.setAttribute("data-cssvars-group",g)}),m.textContent=u,s.push(u),l.push(m),m.parentNode||t.parentNode.insertBefore(m,t.nextSibling))}}else t.textContent.replace(/\s/g,"")!==u&&s.push(u)}catch(e){r(e.message,t)}a&&t.setAttribute("data-cssvars","skip"),t.hasAttribute("data-cssvars-job")||t.setAttribute("data-cssvars-job",E.job)}),T=n.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])').length,n.shadowDOM)for(var h,p=[].concat(n.rootElement).concat([].slice.call(n.rootElement.querySelectorAll("*"))),g=0;h=p[g];++g)h.shadowRoot&&h.shadowRoot.querySelector("style")&&j(c({},n,{rootElement:h.shadowRoot}));n.updateDOM&&f&&function(t){var e=["animation-name","-moz-animation-name","-webkit-animation-name"].filter(function(t){return getComputedStyle(document.body)[t]})[0];if(e){for(var n=[].slice.call(t.querySelectorAll("*")),r=[],o="__CSSVARSPONYFILL-KEYFRAMES__",i=0,a=n.length;i1&&void 0!==arguments[1]?arguments[1]:location.href,n=document.implementation.createHTMLDocument(""),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),r.href=e,o.href=t,o.href}function L(){return _&&(window.performance||{}).now?window.performance.now():(new Date).getTime()}function B(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];[].slice.call(t.querySelectorAll('[data-cssvars="skip"],[data-cssvars="src"]')).forEach(function(t){return t.setAttribute("data-cssvars","")}),e&&(k.dom={})}j.reset=function(){for(var t in E.job=0,E.group=0,A=!1,C&&(C.disconnect(),C=null),T=0,O=null,I=!1,k)k[t]={}};var $=n(9008),P=n.n($),U=n(60150),D=n(9301),N=n(45122),M=n(11010),F=n(24043),q=n(70655),z=(0,i.createContext)(null);function W(t){var e=t.children,n=(0,F._)((0,i.useState)(null),2),r=n[0],a=n[1];return(0,i.useEffect)(function(){var t;(t=(0,M._)(function(){var t,e,n,r,o,i;return(0,q.Jh)(this,function(u){switch(u.label){case 0:if(!(window.location.search.includes("login=true")||U.td))return[3,1];return a({id:0,first_name:"Usagi",last_name:"Tsukino",email:"usagi.tsukino@fake.fake",avatars:[{thumb:"avatars/default-avatar.svg"}],default_workspace_id:0,persona:{persona_v1:{use_case_plan:"work"}},userFetched:!0}),[3,4];case 1:return[4,fetch(U.B3,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:"\n {\n me {\n id\n first_name\n last_name\n email\n avatars {\n thumb\n }\n default_workspace_id\n persona\n }\n }\n "})})];case 2:if(!(t=u.sent()).ok)return[3,4];return[4,t.json()];case 3:return(r=null==(n=u.sent())?void 0:null===(e=n.data)||void 0===e?void 0:e.me)&&(a(r),null===(i=window.segmentAnalytics)||void 0===i||null===(o=i.identify)||void 0===o||o.call(i,r.id,{email:r.email,firstName:r.first_name,lastName:r.last_name})),[3,4];case 4:return[2]}})}),function(){return t.apply(this,arguments)})()},[]),(0,o.jsx)(z.Provider,{value:r,children:e})}z.displayName="User";var G=n(48564),H=n(248),V=n(26331),J={GOOGLE_TRANSLATE:{selectors:['[id*="goog-gt"]','[class*="goog-te"]','[class*="google-translate"]','[id*="google_translate"]',".goog-te-banner",".goog-te-gadget",".goog-te-combo",".goog-te-menu-value",".goog-te-banner-frame",".goog-te-menu-frame",'[class*="skiptranslate"]','[class*="notranslate"]',"[translate]","[data-google-translate]",'iframe[src*="translate.google.com"]','iframe[src*="translate.googleapis.com"]'],attributes:["data-google-translate","translate","data-translate"]},MICROSOFT_TRANSLATOR:{selectors:['[class*="ms-translator"]','[id*="ms-translator"]','[class*="microsoft-translator"]',".ms-translator-widget",".ms-translator-button"],attributes:["data-ms-translator"]},DEEPL_TRANSLATOR:{selectors:['[class*="deepl"]','[id*="deepl"]','[class*="deepl-translator"]',".deepl-translator-widget",".deepl-button"],attributes:["data-deepl"]},GENERIC_TRANSLATION:{selectors:['[class*="translate"]','[id*="translate"]','[class*="translation"]','[class*="translator"]',".translation-widget",".translate-button",".language-switcher",".locale-switcher"],attributes:["data-translate","data-translation"]}},Z=["lang","data-lang","data-language","data-translate","data-translation"],K=function(){if("undefined"!=typeof navigator){var t;return navigator.language||(null===(t=navigator.languages)||void 0===t?void 0:t[0])||"en"}return"en"},Y=function(){if("undefined"!=typeof navigator){var t;return(null===(t=navigator.languages)||void 0===t?void 0:t.slice().sort().join(","))||"en"}return"en"},X=function(){function t(e){(0,G._)(this,t),this.observer=null,this.detectedTranslators=new Set,this.languageChanges=[],this.lastLangAttribute=null,this.browserLanguage="en",this.acceptLanguage="en",this.onDetectionCallback=e,this.initializeDetection()}var e=t.prototype;return e.initializeDetection=function(){this.browserLanguage=K(),this.acceptLanguage=Y(),this.scanForTranslators(),this.setupMutationObserver(),this.monitorLanguageChanges()},e.scanForTranslators=function(){var t=this;Object.entries(J).forEach(function(e){var n=(0,F._)(e,2),r=n[0],o=n[1];o.selectors.forEach(function(e){if(document.querySelectorAll(e).length>0){t.detectedTranslators.add(r);return}}),o.attributes.filter(function(t){return!o.selectors.some(function(e){return e.includes("[".concat(t,"]"))||e.includes("[".concat(t,"="))})}).forEach(function(e){document.querySelectorAll("[".concat(e,"]")).length>0&&t.detectedTranslators.add(r)})})},e.setupMutationObserver=function(){var t=this;this.observer=new MutationObserver(function(e){var n=!1;e.forEach(function(e){if(e.addedNodes.forEach(function(e){e.nodeType===Node.ELEMENT_NODE&&Object.entries(J).forEach(function(r){var o=(0,F._)(r,2),i=o[0],a=o[1],u=!0,s=!1,c=void 0;try{for(var l,f=a.selectors[Symbol.iterator]();!(u=(l=f.next()).done);u=!0){var h=l.value;if(e.matches(h)||e.querySelector(h)){t.detectedTranslators.add(i),n=!0;break}}}catch(t){s=!0,c=t}finally{try{u||null==f.return||f.return()}finally{if(s)throw c}}})}),"attributes"===e.type){var r=e.target;if(e.attributeName&&Z.includes(e.attributeName)){var o=t.lastLangAttribute,i=r.getAttribute(e.attributeName);o!==i&&(t.languageChanges.push({from:o,to:i,timestamp:Date.now()}),t.lastLangAttribute=i)}Object.entries(J).forEach(function(r){var o=(0,F._)(r,2),i=o[0],a=o[1],u=a.attributes.filter(function(t){return!a.selectors.some(function(e){return e.includes("[".concat(t,"]"))||e.includes("[".concat(t,"="))})}),s=!0,c=!1,l=void 0;try{for(var f,h=u[Symbol.iterator]();!(s=(f=h.next()).done);s=!0){var d=f.value;if(e.attributeName===d){t.detectedTranslators.add(i),n=!0;break}}}catch(t){c=!0,l=t}finally{try{s||null==h.return||h.return()}finally{if(c)throw l}}})}}),n&&t.onTranslatorDetected()}),this.observer.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:(0,H._)(Z).concat(["class","id"])})},e.monitorLanguageChanges=function(){var t=this,e=document.documentElement;this.lastLangAttribute=e.getAttribute("lang"),setInterval(function(){var n=e.getAttribute("lang");if(n!==t.lastLangAttribute){var r=t.lastLangAttribute;t.languageChanges.push({from:r,to:n,timestamp:Date.now()}),t.lastLangAttribute=n,0===t.detectedTranslators.size&&t.detectedTranslators.add("GENERIC_TRANSLATION")}},1e3)},e.onTranslatorDetected=function(){var t=this.detectTextBasedTranslation();if(this.onDetectionCallback){var e=this.getDetectionResult();this.onDetectionCallback(e)}var n=this.languageChanges.length>0?this.languageChanges[this.languageChanges.length-1]:null;(0,V.L9)("Translator Detected",{translators:Array.from(this.detectedTranslators),languageChanges:this.languageChanges.length,currentLang:this.lastLangAttribute,lastLanguageChange:n?"".concat(n.from," → ").concat(n.to):null,textBasedDetection:t,detectedTargetLanguage:t.detectedTargetLanguage})},e.detectTextBasedTranslation=function(){var t={hasTranslationText:!1,hasLanguageIndicators:!1,hasTranslationUI:!1,detectedTargetLanguage:null},e=document.body.textContent||"";return t.hasTranslationText=["Google Translate","Translate this page","Original text","Show original","Translate","Translated"].some(function(t){return e.includes(t)}),t.hasLanguageIndicators=[/translated from [a-z]{2}/i,/original language/i,/translation/i].some(function(t){return t.test(e)}),t.hasTranslationUI=['[class*="translate"]:not([class*="goog-te"]):not([class*="google-translate"])','[class*="language"]:not([class*="goog-te"])','[class*="translation"]:not([class*="google-translate"])'].some(function(t){return document.querySelectorAll(t).length>0}),t.detectedTargetLanguage=this.detectTargetLanguage(),t},e.detectTargetLanguage=function(){var t=document.documentElement.getAttribute("lang");if(t&&"en"!==t)return t;var e=document.querySelectorAll('[class*="goog"], [id*="goog"], [class*="google"]'),n=!0,r=!1,o=void 0;try{for(var i,a=Array.from(e)[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var u=i.value,s=String(u.className||""),c=u.id||"",l=(s+" "+c).match(/([a-z]{2}(-[A-Z]{2})?)/g);if(l){var f=!0,h=!1,d=void 0;try{for(var p,g=l[Symbol.iterator]();!(f=(p=g.next()).done);f=!0){var v=p.value;if("en"!==v&&"en-US"!==v&&v.length>=2)return v}}catch(t){h=!0,d=t}finally{try{f||null==g.return||g.return()}finally{if(h)throw d}}}}}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}var y=document.querySelectorAll("[translate]"),m=!0,b=!1,_=void 0;try{for(var w,E=Array.from(y)[Symbol.iterator]();!(m=(w=E.next()).done);m=!0){var S=w.value,x=S.getAttribute("translate");if(x&&"no"!==x){var k=S.getAttribute("lang");if(k&&"en"!==k)return k}}}catch(t){b=!0,_=t}finally{try{m||null==E.return||E.return()}finally{if(b)throw _}}var A=document.querySelectorAll("*"),C=!0,T=!1,O=void 0;try{for(var I,j=Array.from(A)[Symbol.iterator]();!(C=(I=j.next()).done);C=!0){var R=I.value;if(R.hasAttributes())for(var L=R.attributes,B=0;B=2)return q}}catch(t){D=!0,N=t}finally{try{U||null==F.return||F.return()}finally{if(D)throw N}}}}}}}catch(t){T=!0,O=t}finally{try{C||null==j.return||j.return()}finally{if(T)throw O}}var z=document.body.textContent||"",W=!0,G=!1,H=void 0;try{for(var V,J=[/translated from ([a-z]{2})/i,/language: ([a-z]{2})/i,/([a-z]{2}) translation/i][Symbol.iterator]();!(W=(V=J.next()).done);W=!0){var Z=V.value,K=z.match(Z);if(K&&K[1]&&"en"!==K[1])return K[1]}}catch(t){G=!0,H=t}finally{try{W||null==J.return||J.return()}finally{if(G)throw H}}return null},e.getDetectionResult=function(){var t,e=this.detectedTranslators.size>0||this.languageChanges.length>0,n=0,r=[];this.detectedTranslators.size>0&&(t=Array.from(this.detectedTranslators)[0],n=.9,r.push("Detected ".concat(t," elements in DOM"))),this.languageChanges.length>0&&(n=Math.max(n,.7),r.push("".concat(this.languageChanges.length," language attribute changes detected")),this.languageChanges.forEach(function(t,e){r.push("Language change ".concat(e+1,": ").concat(t.from," → ").concat(t.to))})),this.lastLangAttribute&&"en"!==this.lastLangAttribute&&(n=Math.max(n,.6),r.push("Non-English language detected: ".concat(this.lastLangAttribute))),"en"!==this.browserLanguage&&"en-US"!==this.browserLanguage&&(n=Math.max(n,.5),r.push("Browser language: ".concat(this.browserLanguage))),this.acceptLanguage.startsWith("en")||(n=Math.max(n,.4),r.push("Accept-Language: ".concat(this.acceptLanguage)));var o=this.detectTextBasedTranslation(),i=this.languageChanges.length>0?this.languageChanges[this.languageChanges.length-1]:null;return{detected:e,translatorType:t,confidence:n,evidence:r,currentLang:this.lastLangAttribute,lastLanguageChange:i?"".concat(i.from," → ").concat(i.to):null,detectedTargetLanguage:o.detectedTargetLanguage,textBasedDetection:o}},e.destroy=function(){this.observer&&(this.observer.disconnect(),this.observer=null)},t}(),Q=null,tt=function(t){Q||(Q=new X(t))},te=n(89762),tn=n(69355),tr=function(){var t=(0,F._)((0,i.useState)({detected:!1,confidence:0,evidence:[]}),2),e=t[0],n=t[1],r=(0,F._)((0,i.useState)(!1),2),o=r[0],a=r[1];return(0,i.useEffect)(function(){tt(function(t){if(t.detected&&!o){var e,r;(0,V.L9)(tn.ZK,{translatorType:t.translatorType,confidence:t.confidence,evidence:t.evidence,currentLang:t.currentLang,lastLanguageChange:t.lastLanguageChange,detectedTargetLanguage:t.detectedTargetLanguage,textBasedDetection:t.textBasedDetection,browserLanguage:navigator.language,acceptLanguage:null===(e=navigator.languages)||void 0===e?void 0:e.slice().sort().join(",")}),(0,te._)("track",{action:"detect",actionSubject:tn.ZK,attributes:{translatorType:t.translatorType,confidence:t.confidence,evidence:t.evidence.join(", "),currentLang:t.currentLang,lastLanguageChange:t.lastLanguageChange,detectedTargetLanguage:t.detectedTargetLanguage,textBasedDetection:t.textBasedDetection,browserLanguage:navigator.language,acceptLanguage:null===(r=navigator.languages)||void 0===r?void 0:r.slice().sort().join(",")}}),a(!0)}n(t)})},[o]),{detectionResult:e,hasReported:o}};"undefined"!=typeof document&&j({variables:(0,r._)({},(0,s.b0)(),(0,s.f1)(),(0,s.tc)())});var to=(0,i.lazy)(function(){return Promise.all([n.e(7436),n.e(5567)]).then(n.bind(n,35567))});function ti(t){var e=t.Component,n=t.pageProps,i=n.draftMode,a=n.token;return i?(0,o.jsx)(to,{token:a,children:(0,o.jsx)(tu,{draftMode:i,children:(0,o.jsx)(e,(0,r._)({},n))})}):(0,o.jsx)(tu,{draftMode:i,children:(0,o.jsx)(e,(0,r._)({},n))})}var ta=ti;function tu(t){var e=t.children,n=t.draftMode;return tr(),(0,o.jsx)(W,{children:(0,o.jsxs)(N.cA,{children:[!n&&(0,o.jsxs)(P(),{children:[(0,o.jsx)("meta",{content:"width=device-width, initial-scale=1",name:"viewport"}),(0,o.jsx)("meta",{content:U.M$,name:"loom-environment"}),(0,o.jsx)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:D.Sl}}),(0,o.jsx)("script",{type:"text/plain",className:"optanon-category-2",dangerouslySetInnerHTML:{__html:D.dn}}),(0,o.jsx)("script",{type:"text/plain",className:"optanon-category-2",dangerouslySetInnerHTML:{__html:D.gF}})]}),e,n&&(0,o.jsx)(i.Suspense,{children:(0,o.jsx)(u,{})})]})})}},11083:function(){},25433:function(){},77663:function(t){!function(){var e={229:function(t){var e,n,r,o=t.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function u(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var s=[],c=!1,l=-1;function f(){c&&r&&(c=!1,r.length?s=r.concat(s):l=-1,s.length&&h())}function h(){if(!c){var t=u(f);c=!0;for(var e=s.length;e;){for(r=s,s=[];++l1)for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:0,n=(a[t[e+0]]+a[t[e+1]]+a[t[e+2]]+a[t[e+3]]+"-"+a[t[e+4]]+a[t[e+5]]+"-"+a[t[e+6]]+a[t[e+7]]+"-"+a[t[e+8]]+a[t[e+9]]+"-"+a[t[e+10]]+a[t[e+11]]+a[t[e+12]]+a[t[e+13]]+a[t[e+14]]+a[t[e+15]]).toLowerCase();if(!("string"==typeof n&&i.test(n)))throw TypeError("Stringified UUID is invalid");return n},c=function(t,e,n){var i=(t=t||{}).random||(t.rng||function(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)})();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){n=n||0;for(var a=0;a<16;++a)e[n+a]=i[a];return e}return s(i)}}},function(t){var e=function(e){return t(t.s=e)};t.O(0,[9774,179],function(){return e(91118),e(37253)}),_N_E=t.O()}]);