PageSourceSearch

https://www.lemonde.fr/bucket/resources/front/js/5978.2d349a3e3da3fb5e.js

js lemonde.fr collected 2026-10-01 06:34:21 UTC 248,426 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5978,2326],{73593:(e,t,n)=>{n.d(t,{A:()=>s,Q:()=>o});var r=n(22214),i=n(1150),o=function(){var e=new i.K;return{init:(0,r.nA)(e.init.bind(e),"init",(0,r.WI)(e),(0,r.av)(e,["config"])),add:(0,r.nA)(e.add.bind(e),"add",(0,r.WI)(e),(0,r.av)(e,["config.apiKey","timeline.plugins"])),remove:(0,r.nA)(e.remove.bind(e),"remove",(0,r.WI)(e),(0,r.av)(e,["config.apiKey","timeline.plugins"])),track:(0,r.nA)(e.track.bind(e),"track",(0,r.WI)(e),(0,r.av)(e,["config.apiKey","timeline.queue.length"])),logEvent:(0,r.nA)(e.logEvent.bind(e),"logEvent",(0,r.WI)(e),(0,r.av)(e,["config.apiKey","timeline.queue.length"])),identify:(0,r.nA)(e.identify.bind(e),"identify",(0,r.WI)(e),(0,r.av)(e,["config.apiKey","timeline.queue.length"])),groupIdentify:(0,r.nA)(e.groupIdentify.bind(e),"groupIdentify",(0,r.WI)(e),(0,r.av)(e,["config.apiKey","timeline.queue.length"])),setGroup:(0,r.nA)(e.setGroup.bind(e),"setGroup",(0,r.WI)(e),(0,r.av)(e,["config.apiKey","timeline.queue.length"])),revenue:(0,r.nA)(e.revenue.bind(e),"revenue",(0,r.WI)(e),(0,r.av)(e,["config.apiKey","timeline.queue.length"])),flush:(0,r.nA)(e.flush.bind(e),"flush",(0,r.WI)(e),(0,r.av)(e,["config.apiKey","timeline.queue.length"])),getUserId:(0,r.nA)(e.getUserId.bind(e),"getUserId",(0,r.WI)(e),(0,r.av)(e,["config","config.userId"])),setUserId:(0,r.nA)(e.setUserId.bind(e),"setUserId",(0,r.WI)(e),(0,r.av)(e,["config","config.userId"])),getDeviceId:(0,r.nA)(e.getDeviceId.bind(e),"getDeviceId",(0,r.WI)(e),(0,r.av)(e,["config","config.deviceId"])),setDeviceId:(0,r.nA)(e.setDeviceId.bind(e),"setDeviceId",(0,r.WI)(e),(0,r.av)(e,["config","config.deviceId"])),reset:(0,r.nA)(e.reset.bind(e),"reset",(0,r.WI)(e),(0,r.av)(e,["config","config.userId","config.deviceId"])),getSessionId:(0,r.nA)(e.getSessionId.bind(e),"getSessionId",(0,r.WI)(e),(0,r.av)(e,["config"])),setSessionId:(0,r.nA)(e.setSessionId.bind(e),"setSessionId",(0,r.WI)(e),(0,r.av)(e,["config"])),extendSession:(0,r.nA)(e.extendSession.bind(e),"extendSession",(0,r.WI)(e),(0,r.av)(e,["config"])),setOptOut:(0,r.nA)(e.setOptOut.bind(e),"setOptOut",(0,r.WI)(e),(0,r.av)(e,["config"])),setTransport:(0,r.nA)(e.setTransport.bind(e),"setTransport",(0,r.WI)(e),(0,r.av)(e,["config"]))}};const s=o()},1150:(e,t,n)=>{n.d(t,{K:()=>k});var r=n(55823),i=n(27093),o=n(44848),s=n(12318),a=n(11991),u=n(25531),c=n(18002),l=n(92726),d=n(45927),f=n(14742),v=n(61425),h=n(34340),p=n(77615),g=n(35226),y=n(87952),m=n(56812),b=n(51212),w=n(70854),S=n(93540),E=n(29950),I=n(14477),T=n(32857),_=n(82131),C=n(1627
17),P=n(64662),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.init=function(e,t,n){var o,s;return void 0===e&&(e=""),arguments.length>2?(o=t,s=n):"string"==typeof t?(o=t,s=void 0):(o=null==t?void 0:t.userId,s=t),(0,i.m)(this._init((0,r.Cl)((0,r.Cl)({},s),{userId:o,apiKey:e})))},t.prototype._init=function(t){var n,i,s;return(0,r.sH)(this,void 0,void 0,(function(){var a,u,c,p,y,I=this;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return this.initializing?[2]:(this.initializing=!0,[4,(0,b.K$)(t.apiKey,t,this)]);case 1:return a=r.sent(),t.fetchRemoteConfig?[4,(0,C.$)(a)]:[3,4];case 2:return[4,r.sent().generateJoinedConfig()];case 3:a=r.sent(),r.label=4;case 4:return[4,e.prototype._init.call(this,a)];case 5:return r.sent(),this.logBrowserOptions(a),(0,l.uI)(this.config.defaultTracking)?(u=(0,l.$S)(this.config),this.webAttribution=new d.M(u,this.config),[4,this.webAttribution.init()]):[3,7];case 6:r.sent(),r.label=7;case 7:return c=(0,f.v)(),p=Number.isNaN(Number(c.ampSessionId))?void 0:Number(c.ampSessionId),this.setSessionId(null!==(s=null!==(i=null!==(n=t.sessionId)&&void 0!==n?n:p)&&void 0!==i?i:this.config.sessionId)&&void 0!==s?s:Date.now()),(y=(0,v.w$)(t.instanceName)).identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),this.config.offline===g.I?[3,9]:[4,this.add((0,_.w)()).promise];case 8:r.sent(),r.label=9;case 9:return[4,this.add(new o.D).promise];case 10:return r.sent(),[4,this.add(new m.o).promise];case 11:return r.sent(),[4,this.add(new h.e).promise];case 12:return r.sent(),(0,T.V)(this.config),(0,l.ND)(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add((0,E.W)()).promise]):[3,14];case 13:r.sent(),r.label=14;case 14:return(0,l.Fu)(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add((0,S.i)()).promise]):[3,16];case 15:r.sent(),r.label=16;case 16:return(0,l.Ps)(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add((0,w.Dl)((0,l.Ao)(this.config))).promise]):[3,18];case 17:r.sent(),r.label=18;case 18:return(0,l.F1)(this.config.autocapture)?(this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add((0,P.zk)((0,l.MC)(this.config))).promise]):[3,20];case 19:r.sent(),r.label=20;case 20:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 21:return r.sent(),y.eventBridge.setEventReceiver((function(e){I.track(e.eventType,e.eventProperties)})),[2]}}))}))},t.prototype.getUserId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.userId},t.prototype.setUserId=function(e){this.config?(this.config.loggerProvider.debug("function setUserId: ",e),e===this.config.userId&&void 0!==e||(this.config.userId=e,(0,v.yo)(e,this.config.instanceName))):this.q.push(this.setUserId.bind(this,e))},t.prototype.getDeviceId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.deviceId},t.prototype.setDeviceId=function(e){this.config?(this.config.loggerProvider.debug("function setDeviceId: ",e),this.config.deviceId=e,(0,v.rb)(e,this.config.instanceName)):this.q.push(this.setDeviceId.bind(this,e))},t.prototype.reset=function(){this.setDeviceId((0,s.k)()),this.setUserId(void 0)},t.prototype.getSessionId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.sessionId},t.prototype.setSessionId=function(e){var t,n=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,e)),(0,i.m)(Promise.resolve());if(e===this.config.sessionId)return(0,i.m)(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",e);var r=this.getSessionId(),o=this.config.lastEventTime,s=null!==(t=this.config.lastEventId)&&void 0!==t?t:-1;this.config.sessionId=e,this.config.lastEventTime=void 0,this.config.pageCounter=0,(0,l.VH)(this.config.defaultTracking)&&(r&&o&&n.push(this.track(I.GE,void 0,{device_id:this.previousSessionDeviceId,event_id:++s,session_id:r,time:o+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var a=this.trackCampaignEventIfNeeded(++s,n);return(0,l.VH)(this.config.defaultTracking)&&n.push(this.track(I.RO,void 0,{event_id:a?++s:s,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,(0,i.m)(Promise.all(n))},t.prototype.extendSession=function(){this.config?this.config.lastEventTime=
1Date.now():this.q.push(this.extendSession.bind(this))},t.prototype.setTransport=function(e){this.config?this.config.transportProvider=(0,b.oO)(e):this.q.push(this.setTransport.bind(this,e))},t.prototype.identify=function(t,n){if((0,y.GF)(t)){var r=t._q;t._q=[],t=(0,y.Db)(new a.T,r)}return(null==n?void 0:n.user_id)&&this.setUserId(n.user_id),(null==n?void 0:n.device_id)&&this.setDeviceId(n.device_id),e.prototype.identify.call(this,t,n)},t.prototype.groupIdentify=function(t,n,r,i){if((0,y.GF)(r)){var o=r._q;r._q=[],r=(0,y.Db)(new a.T,o)}return e.prototype.groupIdentify.call(this,t,n,r,i)},t.prototype.revenue=function(t,n){if((0,y.GF)(t)){var r=t._q;t._q=[],t=(0,y.Db)(new u.n,r)}return e.prototype.revenue.call(this,t,n)},t.prototype.trackCampaignEventIfNeeded=function(e,t){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var n=this.webAttribution.generateCampaignEvent(e);return t?t.push(this.track(n).promise):this.track(n),this.config.loggerProvider.log("Tracking attribution."),!0},t.prototype.process=function(t){return(0,r.sH)(this,void 0,void 0,(function(){var n,i,o;return(0,r.YH)(this,(function(r){return n=Date.now(),i=(0,p.t)(this.config.sessionTimeout,this.config.lastEventTime),o=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),t.event_type===I.RO||t.event_type===I.GE||t.session_id&&t.session_id!==this.getSessionId()||(i||o?(this.setSessionId(n),o&&this.config.loggerProvider.log("Created a new session for new campaign.")):i||this.trackCampaignEventIfNeeded()),[2,e.prototype.process.call(this,t)]}))}))},t.prototype.logBrowserOptions=function(e){try{var t=(0,r.Cl)((0,r.Cl)({},e),{apiKey:e.apiKey.substring(0,10)+"********"});this.config.loggerProvider.debug("Initialized Amplitude with BrowserConfig:",JSON.stringify(t))}catch(e){this.config.loggerProvider.error("Error logging browser config",e)}},t}(c.n)},51212:(e,t,n)=>{n.d(t,{K$:()=>w,oO:()=>E});var r=n(55823),i=n(61429),o=n(98610),s=n(35767),a=n(917),u=n(12318),c=n(54889),l=n(14742),d=n(31363),f=n(1910),v=n(91225),h=n(16490),p=n(52213),g=n(14938),y=n(89610),m=n(14477),b=function(e){function t(t,n,r,a,u,c,l,d,f,h,p,g,y,b,w,S,I,T,_,C,P,k,O,R,A,x,N,H,L,D,M,U,q,j){void 0===r&&(r=new o.X),void 0===a&&(a={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),void 0===d&&(d=1e3),void 0===f&&(f=5),void 0===h&&(h=30),void 0===p&&(p=m.Pi),void 0===S&&(S=new s.V),void 0===I&&(I=i.$.Warn),void 0===_&&(_=!1),void 0===C&&(C=!1),void 0===O&&(O=""),void 0===R&&(R=m.HY),void 0===x&&(x=18e5),void 0===N&&(N=new v.D({loggerProvider:S})),void 0===H&&(H={ipAddress:!0,language:!0,platform:!0}),void 0===L&&(L="fetch"),void 0===D&&(D=!1),void 0===M&&(M=!1);var Y=e.call(this,{apiKey:t,storageProvider:N,transportProvider:E(L)})||this;return Y.apiKey=t,Y.appVersion=n,Y.cookieOptions=a,Y.defaultTracking=u,Y.autocapture=c,Y.flushIntervalMillis=d,Y.flushMaxRetries=f,Y.flushQueueSize=h,Y.identityStorage=p,Y.ingestionMetadata=g,Y.instanceName=y,Y.loggerProvider=S,Y.logLevel=I,Y.minIdLength=T,Y.offline=_,Y.partnerId=P,Y.plan=k,Y.serverUrl=O,Y.serverZone=R,Y.sessionTimeout=x,Y.storageProvider=N,Y.trackingOptions=H,Y.transport=L,Y.useBatch=D,Y.fetchRemoteConfig=M,Y._optOut=!1,Y._cookieStorage=r,Y.deviceId=l,Y.lastEventId=b,Y.lastEventTime=w,Y.optOut=C,Y.sessionId=A,Y.pageCounter=q,Y.userId=U,Y.debugLogsEnabled=j,Y.loggerProvider.enable(j?i.$.Debug:Y.logLevel),Y}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(e){this._cookieStorage!==e&&(this._cookieStorage=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(e){this._deviceId!==e&&(this._deviceId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(e){this._userId!==e&&(this._userId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(e){this._sessionId!==e&&(this._sessionId=e,this.updateStorage())}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut!==e&&(this._optOut=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(e){this._lastEventTime!==e&&(this._lastEventTime=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(e){this._lastEventId!==e&&(this._lastEventId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(e){this._pageCounter!==e&&(this._pageCounter=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugLogsEnabled",{set:function(e){this._debugLogsEnabled!==e&&(this._debugLogsEnabled=e,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var e={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled};this.cookieStorage.set((0,c.I)(this.apiKey),e)},t}(a.TS),w=function(e,t,n){return void 0===t&&(t={}),(0,r.sH)(void 0,void 0,void 0,(function(){var i,s,a,d,f,v,h,p,g,w,E,T,_,C,P,k,O,R,A,x,N,H,L,D,M,U,q,j,Y,F,$,z,B,W,K,V,X,J,G,Q,Z,ee,te;return(0,r.YH)(this,(function(ne){switch(ne.label){case 0:return i=t.identityStorage||m.Pi,A={},i===m.Pi?[3,1]:(a="",[3,5]);case 1:return null===(N=null===(x=t.cookieOptions)||void 0===x?void 0:x.domain)||void 0===N?[3,2]:(d=N,[3,4]);case 2:return[4,I()];case 3:d=ne.sent(),ne.label=4;case 4:a=d,ne.label=5;case 5:return s=r.Cl.apply(void 0,[(A.domain=a,A.expiration=365,A.sameSite="Lax",A.secure=!1,A.upgrade=!0,A),t.cookieOptions]),f=S(t.identityStorage,s),[4,(0,y.Gn)(e,f,null===(L=null===(H=t.cookieOptions)||void 0===H?void 0:H.upgrade)||void 0===L||L)];case 6:return v=ne.sent(),[4,f.get((0,c.I)(e))];case 7:return h=ne.sent(),p=(0,l.v)(),g=null!==(j=null!==(q=null!==(U=null!==(M=null!==(D=t.deviceId)&&void 0!==D?D:p.ampDeviceId)&&void 0!==M?M:p.deviceId)&&void 0!==U?U:null==h?void 0:h.deviceId)&&void 0!==q?q:v.deviceId)&&void 0!==j?j:(0,u.k)(),w=null!==(Y=null==h?void 0:h.lastEventId)&&void 0!==Y?Y:v.lastEventId,E=null!==(F=null==h?void 0:h.lastEventTime)&&void 0!==F?F:v.lastEventTime,T=null!==(z=null!==($=t.optOut)&&void 0!==$?$:null==h?void 0:h.optOut)&&void 0!==z?z:v.optOut,_=null!==(B=null==h?void 0:h.sessionId)&&void 0!==B?B:v.sessionId,C=null!==(K=null!==(W=t.userId)&&void 0!==W?W:null==h?void 0:h.userId)&&void 0!==K?K:v.userId,n.previousSessionDeviceId=null!==(V=null==h?void 0:h.deviceId)&&void 0!==V?V:v.deviceId,n.previousSessionUserId=null!==(X=null==h?void 0:h.userId)&&void 0!==X?X:v.userId,P={ipAddress:null===(G=null===(J=t.trackingOptions)||void 0===J?void 0:J.ipAddress)||void 0===G||G,language:null===(Z=null===(Q=t.trackingOptions)||void 0===Q?void 0:Q.language)||void 0===Z||Z,platform:null===(te=null===(ee=t.trackingOptions)||void 0===ee?void 0:ee.platform)||void 0===te||te},k=null==h?void 0:h.pageCounter,O=null==h?void 0:h.debugLogsEnabled,void 0!==t.autocapture&&(t.defaultTracking=t.autocapture),[4,(R=new b(e,t.appVersion,f,s,t.defaultTracking,t.autocapture,g,t.flushIntervalMillis,t.flushMaxRetries,t.flushQueueSize,i,t.ingestionMetadata,t.instanceName,w,E,t.loggerProvider,t.logLevel,t.minIdLength,t.offline,T,t.partnerId,t.plan,t.serverUrl,t.serverZone,_,t.sessionTimeout,t.storageProvider,P,t.transport,t.useBatch,t.fetchRemoteConfig,C,k,O)).storageProvider.isEnabled()];case 8:return ne.sent()||(R.loggerProvider.warn("Storage provider ".concat(R.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),R.storageProvider=new o.X),[2,R]}}))}))},S=function(e,t){switch(void 0===e&&(e=m.Pi),void 0===t&&(t={}),e){case"localStorage":return new v.D;case"sessionStorage":return new h.u;case"none":return new o.X;default:return new d.W((0,r.Cl)((0,r.Cl)({},t),{expirationDays:t.expiration}))}},E=function(e){return"xhr"===e?new p.u:"beacon"===e?new g.y:new f.m},I=function(e){return(0,r.sH)(void 0,void 0,void 0,(function(){var t,n,i,o,s,a,u,c;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,(ne
1w d.W).isEnabled()];case 1:if(!r.sent()||!e&&("undefined"==typeof location||!location.hostname))return[2,""];for(t=null!=e?e:location.hostname,n=t.split("."),i=[],o="AMP_TLDTEST",s=n.length-2;s>=0;--s)i.push(n.slice(s).join("."));s=0,r.label=2;case 2:return s<i.length?(a=i[s],u={domain:"."+a},[4,(c=new d.W(u)).set(o,1)]):[3,7];case 3:return r.sent(),[4,c.get(o)];case 4:return r.sent()?[4,c.remove(o)]:[3,6];case 5:return r.sent(),[2,"."+a];case 6:return s++,[3,2];case 7:return[2,""]}}))}))}},16277:(e,t,n)=>{n.d(t,{$:()=>a});var r=n(55823),i=n(20267),o=n(917),s=function(){function e(e){this.config=e,this.config.loggerProvider.debug("Local configuration before merging with remote config",JSON.stringify(this.config,null,2))}return e.prototype.initialize=function(){return(0,r.sH)(this,void 0,void 0,(function(){var e;return(0,r.YH)(this,(function(t){switch(t.label){case 0:return e=this,[4,(0,i.B)({localConfig:this.config,configKeys:["analyticsSDK"]})];case 1:return e.remoteConfigFetch=t.sent(),[2]}}))}))},e.prototype.generateJoinedConfig=function(){var e,t,n,i;return(0,r.sH)(this,void 0,void 0,(function(){var s,a,u;return(0,r.YH)(this,(function(c){switch(c.label){case 0:return c.trys.push([0,3,,4]),(a=this.remoteConfigFetch)?[4,this.remoteConfigFetch.getRemoteConfig("analyticsSDK","browserSDK",this.config.sessionId)]:[3,2];case 1:a=c.sent(),c.label=2;case 2:return s=a,this.config.loggerProvider.debug("Remote configuration:",JSON.stringify(s,null,2)),s&&"autocapture"in s&&("boolean"==typeof s.autocapture&&(this.config.autocapture=s.autocapture),"object"==typeof s.autocapture&&(void 0===this.config.autocapture&&(this.config.autocapture=s.autocapture),"boolean"==typeof this.config.autocapture&&(this.config.autocapture=(0,r.Cl)({attribution:this.config.autocapture,fileDownloads:this.config.autocapture,formInteractions:this.config.autocapture,pageViews:this.config.autocapture,sessions:this.config.autocapture,elementInteractions:this.config.autocapture},s.autocapture)),"object"==typeof this.config.autocapture&&(this.config.autocapture=(0,r.Cl)((0,r.Cl)({},this.config.autocapture),s.autocapture))),this.config.defaultTracking=this.config.autocapture),this.config.loggerProvider.debug("Joined configuration: ",JSON.stringify(this.config,null,2)),null!==(e=(i=this.config).requestMetadata)&&void 0!==e||(i.requestMetadata=new o.vG),(null===(t=this.remoteConfigFetch)||void 0===t?void 0:t.metrics.fetchTimeAPISuccess)&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_success",this.remoteConfigFetch.metrics.fetchTimeAPISuccess),(null===(n=this.remoteConfigFetch)||void 0===n?void 0:n.metrics.fetchTimeAPIFail)&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_fail",this.remoteConfigFetch.metrics.fetchTimeAPIFail),[3,4];case 3:return u=c.sent(),this.config.loggerProvider.error("Failed to fetch remote configuration because of error: ",u),[3,4];case 4:return[2,this.config]}}))}))},e}(),a=function(e){return(0,r.sH)(void 0,void 0,void 0,(function(){var t;return(0,r.YH)(this,(function(n){switch(n.label){case 0:return[4,(t=new s(e)).initialize()];case 1:return n.sent(),[2,t]}}))}))}},14477:(e,t,n)=>{n.d(t,{$0:()=>d,B8:()=>s,GE:()=>u,HY:()=>m,J0:()=>f,LV:()=>o,P0:()=>v,Pi:()=>y,RO:()=>a,Sk:()=>g,X9:()=>i,Xh:()=>c,fA:()=>p,py:()=>h,zE:()=>l});var r="[Amplitude]",i=("".concat(r," Page Viewed"),"".concat(r," Form Started")),o="".concat(r," Form Submitted"),s="".concat(r," File Downloaded"),a="session_start",u="session_end",c="".concat(r," File Extension"),l="".concat(r," File Name"),d="".concat(r," Link ID"),f="".concat(r," Link Text"),v="".concat(r," Link URL"),h="".concat(r," Form ID"),p="".concat(r," Form Name"),g="".concat(r," Form Destination"),y="cookie",m="US"},89610:(e,t,n)=>{n.d(t,{Gn:()=>o});var r=n(55823),i=n(54889),o=function(e,t,n){return void 0===n&&(n=!0),(0,r.sH)(void 0,void 0,void 0,(function(){var o,u,c,l,d,f,v,h,p;return(0,r.YH)(this,(function(g){switch(g.label){case 0:return o=(0,i.l)(e),[4,t.getRaw(o)];case 1:return(u=g.sent())?n?[4,t.remove(o)]:[3,3]:[2,{optOut:!1}];case 2:g.sent(),g.label=3;
1case 3:return c=(0,r.zs)(u.split("."),6),l=c[0],d=c[1],f=c[2],v=c[3],h=c[4],p=c[5],[2,{deviceId:l,userId:a(d),sessionId:s(v),lastEventId:s(p),lastEventTime:s(h),optOut:Boolean(f)}]}}))}))},s=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},a=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(e){return}}},32857:(e,t,n)=>{n.d(t,{V:()=>i});var r=!1,i=function(e){r||void 0!==e.defaultTracking||(e.loggerProvider.warn("`options.defaultTracking` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to `options.defaultTracking`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:\n\namplitude.init(<YOUR_API_KEY>, {\n  defaultTracking: true,\n});\n\nVisit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details."),r=!0)}},95192:(e,t,n)=>{n.r(t),n.d(t,{Identify:()=>s.T,Revenue:()=>o.n,Types:()=>a,add:()=>u,createInstance:()=>r.Q,extendSession:()=>c,flush:()=>l,getDeviceId:()=>d,getSessionId:()=>f,getUserId:()=>v,groupIdentify:()=>h,identify:()=>p,init:()=>g,logEvent:()=>y,remove:()=>m,reset:()=>b,revenue:()=>w,runQueuedFunctions:()=>i.UV,setDeviceId:()=>S,setGroup:()=>E,setOptOut:()=>I,setSessionId:()=>T,setTransport:()=>_,setUserId:()=>C,track:()=>P});var r=n(73593),i=n(87952),o=n(25531),s=n(11991),a=n(73405),u=r.A.add,c=r.A.extendSession,l=r.A.flush,d=r.A.getDeviceId,f=r.A.getSessionId,v=r.A.getUserId,h=r.A.groupIdentify,p=r.A.identify,g=r.A.init,y=r.A.logEvent,m=r.A.remove,b=r.A.reset,w=r.A.revenue,S=r.A.setDeviceId,E=r.A.setGroup,I=r.A.setOptOut,T=r.A.setSessionId,_=r.A.setTransport,C=r.A.setUserId,P=r.A.track},84732:(e,t,n)=>{n.d(t,{a:()=>r});var r="amplitude-ts"},56812:(e,t,n)=>{n.d(t,{o:()=>u});var r=n(55823),i=n(12318),o=n(21225),s=n(42244),a=n(84732),u=function(){function e(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat(a.a,"/").concat(s.x),"undefined"!=typeof navigator&&(this.userAgent=navigator.userAgent)}return e.prototype.setup=function(e){return this.config=e,Promise.resolve(void 0)},e.prototype.execute=function(e){var t,n;return(0,r.sH)(this,void 0,void 0,(function(){var s,a,u;return(0,r.YH)(this,(function(c){return s=(new Date).getTime(),a=null!==(t=this.config.lastEventId)&&void 0!==t?t:-1,u=null!==(n=e.event_id)&&void 0!==n?n:a+1,this.config.lastEventId=u,e.time||(this.config.lastEventTime=s),[2,(0,r.Cl)((0,r.Cl)((0,r.Cl)((0,r.Cl)((0,r.Cl)((0,r.Cl)((0,r.Cl)((0,r.Cl)({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:s},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:"Web"}),this.config.trackingOptions.language&&{language:(0,o.Z)()}),this.config.trackingOptions.ipAddress&&{ip:"$remote"}),{insert_id:(0,i.k)(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),e),{event_id:u,library:this.library,user_agent:this.userAgent})]}))}))},e}()},29950:(e,t,n)=>{n.d(t,{W:()=>s});var r=n(55823),i=n(14477),o=n(47993),s=function(){var e,t=[];return{name:"@amplitude/plugin-file-download-tracking-browser",type:"enrichment",setup:function(n,s){return(0,r.sH)(void 0,void 0,void 0,(function(){var a;return(0,r.YH)(this,(function(r){return null===(a=(0,o.m)())||void 0===a||a.addEventListener("load",(function(){if(s){if("undefined"!=typeof document){var r=function(e){var n;try{n=new URL(e.href,window.location.href)}catch(e){return}var r,a,u,c=o.exec(n.href),l=null==c?void 0:c[1];l&&(a="click",u=function(){var t;l&&s.track(i.B8,((t={})[i.Xh]=l,t[i.zE]=n.pathname,t[i.$0]=e.id,t[i.J0]=e.text,t[i.P0]=e.href,t))},(r=e).addEventListener(a,u),t.push({element:r,type:a,handler:u}))},o=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/;
1Array.from(document.getElementsByTagName("a")).forEach(r),"undefined"!=typeof MutationObserver&&(e=new MutationObserver((function(e){e.forEach((function(e){e.addedNodes.forEach((function(e){"A"===e.nodeName&&r(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("a")).map(r)}))}))}))).observe(document.body,{subtree:!0,childList:!0})}}else n.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.")})),[2]}))}))},execute:function(e){return(0,r.sH)(void 0,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){return[2,e]}))}))},teardown:function(){return(0,r.sH)(void 0,void 0,void 0,(function(){return(0,r.YH)(this,(function(n){return null==e||e.disconnect(),t.forEach((function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)})),t=[],[2]}))}))}}}},93540:(e,t,n)=>{n.d(t,{i:()=>s});var r=n(55823),i=n(14477),o=n(47993),s=function(){var e,t=[],n=function(e,n,r){e.addEventListener(n,r),t.push({element:e,type:n,handler:r})};return{name:"@amplitude/plugin-form-interaction-tracking-browser",type:"enrichment",setup:function(t,s){return(0,r.sH)(void 0,void 0,void 0,(function(){var u;return(0,r.YH)(this,(function(r){return null===(u=(0,o.m)())||void 0===u||u.addEventListener("load",(function(){if(s){if("undefined"!=typeof document){var r=function(e){var t=!1;n(e,"change",(function(){var n;t||s.track(i.X9,((n={})[i.py]=a(e.id),n[i.fA]=a(e.name),n[i.Sk]=e.action,n)),t=!0})),n(e,"submit",(function(){var n,r;t||s.track(i.X9,((n={})[i.py]=a(e.id),n[i.fA]=a(e.name),n[i.Sk]=e.action,n)),s.track(i.LV,((r={})[i.py]=a(e.id),r[i.fA]=a(e.name),r[i.Sk]=e.action,r)),t=!1}))};Array.from(document.getElementsByTagName("form")).forEach(r),"undefined"!=typeof MutationObserver&&(e=new MutationObserver((function(e){e.forEach((function(e){e.addedNodes.forEach((function(e){"FORM"===e.nodeName&&r(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("form")).map(r)}))}))}))).observe(document.body,{subtree:!0,childList:!0})}}else t.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.")})),[2]}))}))},execute:function(e){return(0,r.sH)(void 0,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){return[2,e]}))}))},teardown:function(){return(0,r.sH)(void 0,void 0,void 0,(function(){return(0,r.YH)(this,(function(n){return null==e||e.disconnect(),t.forEach((function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)})),t=[],[2]}))}))}}},a=function(e){if("string"==typeof e)return e}},82131:(e,t,n)=>{n.d(t,{w:()=>o});var r=n(55823),i=n(47993),o=function(){var e=(0,i.m)(),t=[],n=function(n,r){e&&(e.addEventListener(n,r),t.push({type:n,handler:r}))};return{name:"@amplitude/plugin-network-checker-browser",type:"before",setup:function(e,t){return(0,r.sH)(void 0,void 0,void 0,(function(){return(0,r.YH)(this,(function(r){return"undefined"==typeof navigator?(e.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),e.offline=!1,[2]):(e.offline=!navigator.onLine,n("online",(function(){e.loggerProvider.debug("Network connectivity changed to online."),e.offline=!1,setTimeout((function(){t.flush()}),e.flushIntervalMillis)})),n("offline",(function(){e.loggerProvider.debug("Network connectivity changed to offline."),e.offline=!0})),[2])}))}))},teardown:function(){return(0,r.sH)(void 0,void 0,void 0,(function(){return(0,r.YH)(this,(function(n){return t.forEach((function(t){var n=t.type,r=t.handler;e&&e.removeEventListener(n,r)})),t=[],[2]}))}))}}}},84054:(e,t,n)=>{n.d(t,{s:()=>i});var r=n(55823),i=function(){function e(e){this.storage=e}return e.prototype.isEnabled=function(){return(0,r.sH)(this,void 0,void 0,(function(){var t,n,i;return(0,r.YH)(this,(function(r){switch(r.label){case 0:if(!this.storage)return[2,!1];t=String(Date.now()),n=new e(this.storage),i="AMP_TEST",r.label=1;case 1:return r.trys.push([1,4,5,7]),[4,n.set(i,t)];case 2:return r.sent(),[4,n.get(i)];case 3:return[2,r.sent()===t];case 4:return r.sent(),[2,!1];case 5:return[4,n.remove(i)];case 6:return r.sent(),[7];case 7:return[2]}}
1))}))},e.prototype.get=function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t;return(0,r.YH)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.getRaw(e)];case 1:return(t=n.sent())?[2,JSON.parse(t)]:[2,void 0];case 2:return n.sent(),console.error("[Amplitude] Error: Could not get value from storage"),[2,void 0];case 3:return[2]}}))}))},e.prototype.getRaw=function(e){var t;return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(n){return[2,(null===(t=this.storage)||void 0===t?void 0:t.getItem(e))||void 0]}))}))},e.prototype.set=function(e,t){var n;return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(r){try{null===(n=this.storage)||void 0===n||n.setItem(e,JSON.stringify(t))}catch(e){}return[2]}))}))},e.prototype.remove=function(e){var t;return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(n){try{null===(t=this.storage)||void 0===t||t.removeItem(e)}catch(e){}return[2]}))}))},e.prototype.reset=function(){var e;return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){try{null===(e=this.storage)||void 0===e||e.clear()}catch(e){}return[2]}))}))},e}()},91225:(e,t,n)=>{n.d(t,{D:()=>a});var r=n(55823),i=n(47993),o=n(84054),s=1e3,a=function(e){function t(t){var n,r=this;return(r=e.call(this,null===(n=(0,i.m)())||void 0===n?void 0:n.localStorage)||this).loggerProvider=null==t?void 0:t.loggerProvider,r}return(0,r.C6)(t,e),t.prototype.set=function(t,n){var i;return(0,r.sH)(this,void 0,void 0,(function(){var o;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return Array.isArray(n)&&n.length>s?(o=n.length-s,[4,e.prototype.set.call(this,t,n.slice(0,s))]):[3,2];case 1:return r.sent(),null===(i=this.loggerProvider)||void 0===i||i.error("Failed to save ".concat(o," events because the queue length exceeded ").concat(s,".")),[3,4];case 2:return[4,e.prototype.set.call(this,t,n)];case 3:r.sent(),r.label=4;case 4:return[2]}}
1))}))},t}(o.s)},16490:(e,t,n)=>{n.d(t,{u:()=>o});var r=n(55823),i=n(47993),o=function(e){function t(){var t;return e.call(this,null===(t=(0,i.m)())||void 0===t?void 0:t.sessionStorage)||this}return(0,r.C6)(t,e),t}(n(84054).s)},14938:(e,t,n)=>{n.d(t,{y:()=>o});var r=n(55823),i=n(47993),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.send=function(e,t){return(0,r.sH)(this,void 0,void 0,(function(){var n=this;return(0,r.YH)(this,(function(r){return[2,new Promise((function(r,o){var s=(0,i.m)();if(!(null==s?void 0:s.navigator.sendBeacon))throw new Error("SendBeaconTransport is not supported");try{var a=JSON.stringify(t);return r(s.navigator.sendBeacon(e,JSON.stringify(t))?n.buildResponse({code:200,events_ingested:t.events.length,payload_size_bytes:a.length,server_upload_time:Date.now()}):n.buildResponse({code:500}))}catch(e){o(e)}}))]}))}))},t}(n(80393).j)},52213:(e,t,n)=>{n.d(t,{u:()=>i});var r=n(55823),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={done:4},t}return(0,r.C6)(t,e),t.prototype.send=function(e,t){return(0,r.sH)(this,void 0,void 0,(function(){var n=this;return(0,r.YH)(this,(function(r){return[2,new Promise((function(r,i){"undefined"==typeof XMLHttpRequest&&i(new Error("XHRTransport is not supported."));var o=new XMLHttpRequest;o.open("POST",e,!0),o.onreadystatechange=function(){if(o.readyState===n.state.done){var e=o.responseText;try{r(n.buildResponse(JSON.parse(e)))}catch(e){r(n.buildResponse({code:o.status}))}}},o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("Accept","*/*"),o.send(JSON.stringify(t))}))]}))}))},t}(n(80393).j)},87952:(e,t,n)=>{n.d(t,{Db:()=>i,GF:()=>o,UV:()=>r});var r=function(e,t){i(e,t)},i=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.name,o=r.args,s=r.resolve,a=e&&e[i];if("function"==typeof a){var u=a.apply(e,o);"function"==typeof s&&s(null==u?void 0:u.promise)}}return e},o=function(e){return e&&void 0!==e._q}},42244:(e,t,n)=>{n.d(t,{x:()=>r});var r="2.11.11"},61425:(e,t,n)=>{n.d(t,{rb:()=>s,w$:()=>i,yo:()=>o});var r=n(76459),i=function(e){return void 0===e&&(e="$default_instance"),r.i.getInstance(e)},o=function(e,t){i(t).identityStore.editIdentity().setUserId(e).commit()},s=function(e,t){i(t).identityStore.editIdentity().setDeviceId(e).commit()}},71775:(e,t,n)=>{n.d(t,{E:()=>s});var r=n(55823),i=n(14742),o=n(48656),s=function(){function e(){}return e.prototype.parse=function(){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){return[2,(0,r.Cl)((0,r.Cl)((0,r.Cl)((0,r.Cl)({},o.F3),this.getUtmParam()),this.getReferrer()),this.getClickIds())]}))}))},e.prototype.getUtmParam=function(){var e=(0,i.v)();return{utm_campaign:e[o._9],utm_content:e[o.fL],utm_id:e[o.j7],utm_medium:e[o.Jn],utm_source:e[o.VU],utm_term:e[o.Wx]}},e.prototype.getReferrer=function(){var e,t,n={referrer:void 0,referring_domain:void 0};try{n.referrer=document.referrer||void 0,n.referring_domain=null!==(t=null===(e=n.referrer)||void 0===e?void 0:e.split("/")[2])&&void 0!==t?t:void 0}catch(e){}return n},e.prototype.getClickIds=function(){var e,t=(0,i.v)();return(e={})[o.h2]=t[o.h2],e[o.lT]=t[o.lT],e[o.wX]=t[o.wX],e[o.q2]=t[o.q2],e[o.KY]=t[o.KY],e[o.Ct]=t[o.Ct],e[o.qr]=t[o.qr],e[o.wu]=t[o.wu],e[o.tt]=t[o.tt],e[o.Gp]=t[o.Gp],e[o.SO]=t[o.SO],e},e}()},48656:(e,t,n)=>{n.d(t,{Ct:()=>h,F3:()=>w,Gp:()=>m,Jn:()=>s,KY:()=>v,SO:()=>b,VU:()=>a,Wx:()=>u,_9:()=>r,fL:()=>i,h2:()=>c,j7:()=>o,lT:()=>l,q2:()=>f,qr:()=>p,tt:()=>y,wX:()=>d,wu:()=>g});var r="utm_campaign",i="utm_content",o="utm_id",s="utm_medium",a="utm_source",u="utm_term",c="dclid",l="fbclid",d="gbraid",f="gclid",v="ko_click_id",h="li_fat_id",p="msclkid",g="rtd_cid",y="ttclid",m="twclid",b="wbraid",w={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0}},3860:(e,t,n)=>{n.d(t,{H2:()=>u,gk:()=>d,lO:()=>l});var r=n(55823),i=n(11991),o=n(3283),s=n(48656),a=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},u=function(e,t,n,i,o){void 0===o&&(o=!0),e.referrer;var s=e.referring_domain,u=(0,r.Tt)(e,["referrer","referring_domain"]),l=t||{},d=(l.referrer,l.referring_domain),f=(0,r.Tt)(l,["referrer","referring_domain"]);if(c(n.excludeReferrers,e.referring_domain))return i.debug("This is not a new campaign because ".concat(e.referring_domain," is in the exclude referrer list.")),!1;if(!o&&function(e){return Object.values(e).every((function(e){return!e}))}(e)&&t)return i.debug("This is not a new campaign because this is a direct traffic in the same session."),!1;var v=JSON.stringify(u)!==JSON.stringify(f),h=a(s||"")!==a(d||""),p=!t||v||h;return p?i.debug("This is a new campaign. An $identify event will be sent."):i.debug("This is not a new campaign because it's the same as the previous one."),p},c=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=""),e.some((function(e){return e instanceof RegExp?e.test(t):e===t}))},l=function(e,t){var n=(0,r.Cl)((0,r.Cl)({},s.F3),e),a=Object.entries(n).reduce((function(e,n){var i,o=(0,r.zs)(n,2),s=o[0],a=o[1];return e.setOnce("initial_".concat(s),null!==(i=null!=a?a:t.initialEmptyValue)&&void 0!==i?i:"EMPTY"),a?e.set(s,a):e.unset(s)}),new i.T);return(0,o.rA)(a)},d=function(e){var t=e;
1return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]}},45927:(e,t,n)=>{n.d(t,{M:()=>c});var r=n(55823),i=n(3860),o=n(56080),s=n(71775),a=n(48656),u=n(77615),c=function(){function e(e,t){var n;this.shouldTrackNewCampaign=!1,this.options=(0,r.Cl)({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:(0,i.gk)(null===(n=t.cookieOptions)||void 0===n?void 0:n.domain)},e),this.storage=t.cookieStorage,this.storageKey=(0,o.F)(t.apiKey,"MKTG"),this.currentCampaign=a.F3,this.sessionTimeout=t.sessionTimeout,this.lastEventTime=t.lastEventTime,this.logger=t.loggerProvider,t.loggerProvider.log("Installing web attribution tracking.")}return e.prototype.init=function(){return(0,r.sH)(this,void 0,void 0,(function(){var e,t;return(0,r.YH)(this,(function(n){switch(n.label){case 0:return[4,this.fetchCampaign()];case 1:return t=r.zs.apply(void 0,[n.sent(),2]),this.currentCampaign=t[0],this.previousCampaign=t[1],e=!this.lastEventTime||(0,u.t)(this.sessionTimeout,this.lastEventTime),(0,i.H2)(this.currentCampaign,this.previousCampaign,this.options,this.logger,e)?(this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)]):[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}}
1))}))},e.prototype.fetchCampaign=function(){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){switch(e.label){case 0:return[4,Promise.all([(new s.E).parse(),this.storage.get(this.storageKey)])];case 1:return[2,e.sent()]}}))}))},e.prototype.generateCampaignEvent=function(e){this.shouldTrackNewCampaign=!1;var t=(0,i.lO)(this.currentCampaign,this.options);return e&&(t.event_id=e),t},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}()},54889:(e,t,n)=>{n.d(t,{I:()=>i,l:()=>o});var r=n(46338),i=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=10),[r.r,t,e.substring(0,n)].filter(Boolean).join("_")},o=function(e){return"".concat(r.r.toLowerCase(),"_").concat(e.substring(0,6))}},92726:(e,t,n)=>{n.d(t,{$S:()=>v,Ao:()=>f,F1:()=>l,Fu:()=>a,MC:()=>d,ND:()=>s,Ps:()=>u,VH:()=>c,uI:()=>o});var r=n(55823),i=function(e,t){return"boolean"==typeof e?e:!1!==(null==e?void 0:e[t])},o=function(e){return i(e,"attribution")},s=function(e){return i(e,"fileDownloads")},a=function(e){return i(e,"formInteractions")},u=function(e){return i(e,"pageViews")},c=function(e){return i(e,"sessions")},l=function(e){return"boolean"==typeof e?e:"object"==typeof e&&(!0===e.elementInteractions||"object"==typeof e.elementInteractions)},d=function(e){if(l(e.autocapture)&&"object"==typeof e.autocapture&&"object"==typeof e.autocapture.elementInteractions)return e.autocapture.elementInteractions},f=function(e){var t,n=function(){return!1},r=void 0,i=e.pageCounter;return u(e.defaultTracking)&&(n=void 0,t=void 0,e.defaultTracking&&"object"==typeof e.defaultTracking&&e.defaultTracking.pageViews&&"object"==typeof e.defaultTracking.pageViews&&("trackOn"in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(r=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(t=e.defaultTracking.pageViews.eventType))),{trackOn:n,trackHistoryChanges:r,eventType:t,pageCounter:i}},v=function(e){return o(e.defaultTracking)&&e.defaultTracking&&"object"==typeof e.defaultTracking&&e.defaultTracking.attribution&&"object"==typeof e.defaultTracking.attribution?(0,r.Cl)({},e.defaultTracking.attribution):{}}},47993:(e,t,n)=>{n.d(t,{m:()=>r});var r=function(){var e="ampIntegrationContext";return"undefined"!=typeof globalThis&&void 0!==globalThis[e]?globalThis[e]:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==n.g?n.g:void 0}},21225:(e,t,n)=>{n.d(t,{Z:()=>r});var r=function(){var e,t,n,r;if("undefined"==typeof navigator)return"";var i=navigator.userLanguage;return null!==(r=null!==(n=null!==(t=null===(e=navigator.languages)||void 0===e?void 0:e[0])&&void 0!==t?t:navigator.language)&&void 0!==n?n:i)&&void 0!==r?r:""}},34340:(e,t,n)=>{n.d(t,{e:()=>o});var r=n(55823),i=n(61425),o=function(){function e(){this.name="identity",this.type="before",this.identityStore=(0,i.w$)().identityStore}return e.prototype.execute=function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t;return(0,r.YH)(this,(function(n){return(t=e.user_properties)&&this.identityStore.editIdentity().updateUserProperties(t).commit(),[2,e]}))}))},e.prototype.setup=function(e){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){return e.instanceName&&(this.identityStore=(0,i.w$)(e.instanceName).identityStore),[2]}))}))},e}()},14742:(e,t,n)=>{n.d(t,{v:()=>i});var r=n(47993),i=function(){var e,t=(0,r.m)();return(null===(e=null==t?void 0:t.location)||void 0===e?void 0:e.search)?t.location.search.substring(1).split("&").filter(Boolean).reduce((function(e,t){var n=t.split("=",2),r=o(n[0]),i=o(n[1]);return i?(e[r]=i,e):e}),{}):{}},o=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}}},77615:(e,t,n)=>{n.d(t,{t:()=>r});var r=function(e,t){return void 0===t&&(t=Date.now()),Date.now()-t>e}},31363:(e,t,n)=>{n.d(t,{W:()=>o});var r=n(55823),i=n(47993),o=function(){function e(e){this.options=(0,r.Cl)({},e)}return e.prototype.isEnabled=function(){return(0,r.sH)(this,void 0,void 0,(function(){var t,n;return(0,r.YH)(this,(function(r){switch(r.label){case 0:if(!(0,i.m)())return[2,!1];e.testValue=String(Date.now()),t=new e(this.options),n="AMP_TEST",r.label=1;case 1:return r.trys.push([1,4,5,7]),[4,t.set(n,e.testValue)];case 2:return r.sent(),[4,t.get(n)];case 3:return[2,r.sent()===e.testValue];case 4:return r.sent(),[2,!1];case 5:return[4,t.remove(n)];case 6:return r.sent(),[7];case 7:return[2]}}
1))}))},e.prototype.get=function(e){var t;return(0,r.sH)(this,void 0,void 0,(function(){var n,i;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,this.getRaw(e)];case 1:if(!(n=r.sent()))return[2,void 0];try{return void 0===(i=null!==(t=s(n))&&void 0!==t?t:a(n))?(console.error("Amplitude Logger [Error]: Failed to decode cookie value for key: ".concat(e,", value: ").concat(n)),[2,void 0]):[2,JSON.parse(i)]}catch(t){return console.error("Amplitude Logger [Error]: Failed to parse cookie value for key: ".concat(e,", value: ").concat(n)),[2,void 0]}return[2]}}))}))},e.prototype.getRaw=function(e){var t,n;return(0,r.sH)(this,void 0,void 0,(function(){var o,s,a;return(0,r.YH)(this,(function(r){return o=(0,i.m)(),s=null!==(n=null===(t=null==o?void 0:o.document)||void 0===t?void 0:t.cookie.split("; "))&&void 0!==n?n:[],(a=s.find((function(t){return 0===t.indexOf(e+"=")})))?[2,a.substring(e.length+1)]:[2,void 0]}))}))},e.prototype.set=function(e,t){var n;return(0,r.sH)(this,void 0,void 0,(function(){var o,s,a,u,c,l,d;return(0,r.YH)(this,(function(r){try{o=null!==(n=this.options.expirationDays)&&void 0!==n?n:0,a=void 0,(s=null!==t?o:-1)&&((u=new Date).setTime(u.getTime()+24*s*60*60*1e3),a=u),c="".concat(e,"=").concat(btoa(encodeURIComponent(JSON.stringify(t)))),a&&(c+="; expires=".concat(a.toUTCString())),c+="; path=/",this.options.domain&&(c+="; domain=".concat(this.options.domain)),this.options.secure&&(c+="; Secure"),this.options.sameSite&&(c+="; SameSite=".concat(this.options.sameSite)),(l=(0,i.m)())&&(l.document.cookie=c)}catch(t){d=t instanceof Error?t.message:String(t),console.error("Amplitude Logger [Error]: Failed to set cookie for key: ".concat(e,". Error: ").concat(d))}return[2]}))}))},e.prototype.remove=function(e){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){switch(t.label){case 0:return[4,this.set(e,null)];case 1:return t.sent(),[2]}}))}))},e.prototype.reset=function(){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){return[2]}))}))},e}(),s=function(e){try{return decodeURIComponent(atob(e))}catch(e){return}},a=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch(e){return}}},56080:(e,t,n)=>{n.d(t,{F:()=>i});var r=n(46338),i=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=10),[r.r,t,e.substring(0,n)].filter(Boolean).join("_")}},1910:(e,t,n)=>{n.d(t,{m:()=>i});var r=n(55823),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.send=function(e,t){return(0,r.sH)(this,void 0,void 0,(function(){var n,i,o;return(0,r.YH)(this,(function(r){switch(r.label){case 0:if("undefined"==typeof fetch)throw new Error("FetchTransport is not supported");return n={headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(t),method:"POST"},[4,fetch(e,n)];case 1:return[4,(i=r.sent()).text()];case 2:o=r.sent();try{return[2,this.buildResponse(JSON.parse(o))]}catch(e){return[2,this.buildResponse({code:i.status})]}return[2]}}
vendor: 5,729 bytes, line 1
1))}))},t}(n(80393).j)},76459:(e,t,n)=>{n.d(t,{i:()=>f});var r=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:i(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),i=function(){return"undefined"!=typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},o=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},e.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach((function(t){e(t)})),this.queue=[])},e}(),s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)};function a(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}"function"==typeof SuppressedError&&SuppressedError;var c=function(e,t){var n,r,i=typeof e;if(i!==typeof t)return!1;try{for(var o=a(["string","number","boolean","undefined"]),s=o.next();!s.done;s=o.next())if(s.value===i)return e===t}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}if(null==e&&null==t)return!0;if(null==e||null==t)return!1;if(e.length!==t.length)return!1;var u=Array.isArray(e),l=Array.isArray(t);if(u!==l)return!1;if(!u||!l){var d=Object.keys(e).sort(),f=Object.keys(t).sort();if(!c(d,f))return!1;var v=!0;return Object.keys(e).forEach((function(n){c(e[n],t[n])||(v=!1)})),v}for(var h=0;h<e.length;h++)if(!c(e[h],t[h]))return!1;return!0};Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r});var l=function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var e=this,t=s({},this.identity.userProperties),n=s(s({},this.identity),{userProperties:t});return{setUserId:function(e){return n.userId=e,this},setDeviceId:function(e){return n.deviceId=e,this},setUserProperties:function(e){return n.userProperties=e,this},setOptOut:function(e){return n.optOut=e,this},updateUserProperties:function(e){var t,r,i,o,s,c,l=n.userProperties||{};try{for(var d=a(Object.entries(e)),f=d.next();!f.done;f=d.next()){var v=u(f.value,2),h=v[0],p=v[1];switch(h){case"$set":try{for(var g=(i=void 0,a(Object.entries(p))),y=g.next();!y.done;y=g.next()){var m=u(y.value,2),b=m[0],w=m[1];l[b]=w}}catch(e){i={error:e}}finally{try{y&&!y.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}break;case"$unset":try{for(var S=(s=void 0,a(Object.keys(p))),E=S.next();!E.done;E=S.next())delete l[b=E.value]}catch(e){s={error:e}}finally{try{E&&!E.done&&(c=S.return)&&c.call(S)}finally{if(s)throw s.error}}break;case"$clearAll":l={}}}}catch(e){t={error:e}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(t)throw t.error}}return n.userProperties=l,this},commit:function(){return e.setIdentity(n),this}}},e.prototype.getIdentity=function(){return s({},this.identity)},e.prototype.setIdentity=function(e){var t=s({},this.identity);this.identity=s({},e),c(t,this.identity)||this.listeners.forEach((function(t){t(e)}))},e.prototype.addIdentityListener=function(e){this.listeners.add(e)},e.prototype.removeIdentityListener=function(e){this.listeners.delete(e)},e}(),d="undefined"!=typeof globalThis?globalThis:void 0!==n.g?n.g:self,f=function(){function e(){this.identityStore=new l,this.eventBridge=new o,this.applicationContextProvider=new r}return e.getInstance=function(t){return d.analyticsConnectorInstances||(d.analyticsConnectorInstances={}),d.analyticsConnectorInstances[t]||(d.analyticsConnectorInstances[t]=new e),d.analyticsConnectorInstances[t]},e}()},917:(e,t,n)=>{n.d(t,{Ql:()=>c,TS:()=>a,vG:()=>l});var r=n(61429),i=n(46338),o=n(35767),s=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:"$default_instance",logLevel:r.$.Warn,loggerProvider:new o.V,offline:!1,optOut:!1,serverUrl:i.mJ,serverZone:"US",useBatch:!1}},a=function(){function e(e){var t,n,r,i;this._optOut=!1;var o=s();this.apiKey=e.apiKey,this.flushIntervalMillis=null!==(t=e.flushIntervalMillis)&&void 0!==t?t:o.flushIntervalMillis,this.flushMaxRetries=e.flushMaxRetries||o.flushMaxRetries,this.flushQueueSize=e.flushQueueSize||o.flushQueueSize,this.instanceName=e.instanceName||o.instanceName,this.loggerProvider=e.loggerProvider||o.loggerProvider,this.logLevel=null!==(n=e.logLevel)&&void 0!==n?n:o.logLevel,this.minIdLength=e.minIdLength,this.plan=e.plan,this.ingestionMetadata=e.ingestionMetadata,this.offline=void 0!==e.offline?e.offline:o.offline,this.optOut=null!==(r=e.optOut)&&void 0!==r?r:o.optOut,this.serverUrl=e.serverUrl,this.serverZone=e.serverZone||o.serverZone,this.storageProvider=e.storageProvider,this.transportProvider=e.transportProvider,this.useBatch=null!==(i=e.useBatch)&&void 0!==i?i:o.useBatch,this.loggerProvider.enable(this.logLevel);var a=c(e.serverUrl,e.serverZone,e.useBatch);this.serverZone=a.serverZone,this.serverUrl=a.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut=e}
1,enumerable:!1,configurable:!0}),e}(),u=function(e,t){return"EU"===e?t?i.OP:i.bu:t?i.pL:i.mJ},c=function(e,t,n){if(void 0===e&&(e=""),void 0===t&&(t=s().serverZone),void 0===n&&(n=s().useBatch),e)return{serverUrl:e,serverZone:void 0};var r=["US","EU"].includes(t)?t:s().serverZone;return{serverZone:r,serverUrl:u(r,n)}},l=function(){function e(){this.sdk={metrics:{histogram:{}}}}return e.prototype.recordHistogram=function(e,t){this.sdk.metrics.histogram[e]=t},e}()},46338:(e,t,n)=>{n.d(t,{OP:()=>c,bu:()=>a,fS:()=>o,mG:()=>r,mJ:()=>s,pL:()=>u,r:()=>i});var r="-",i="AMP",o="".concat(i,"_unsent"),s="https://api2.amplitude.com/2/httpapi",a="https://api.eu.amplitude.com/2/httpapi",u="https://api2.amplitude.com/batch",c="https://api.eu.amplitude.com/batch"},18002:(e,t,n)=>{n.d(t,{n:()=>c});var r=n(55823),i=n(17903),o=n(19860),s=n(3283),a=n(74286),u=n(27093),c=function(){function e(e){void 0===e&&(e="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new o.K(this),this.name=e}return e.prototype._init=function(e){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){switch(t.label){case 0:return this.config=e,this.timeline.reset(this),[4,this.runQueuedFunctions("q")];case 1:return t.sent(),this.isReady=!0,[2]}}))}))},e.prototype.runQueuedFunctions=function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t,n,i,o,s,a,u,c;return(0,r.YH)(this,(function(l){switch(l.label){case 0:t=this[e],this[e]=[],l.label=1;case 1:l.trys.push([1,8,9,10]),n=(0,r.Ju)(t),i=n.next(),l.label=2;case 2:return i.done?[3,7]:(o=i.value,(s=o())&&"promise"in s?[4,s.promise]:[3,4]);case 3:return l.sent(),[3,6];case 4:return[4,s];case 5:l.sent(),l.label=6;case 6:return i=n.next(),[3,2];case 7:return[3,10];case 8:return a=l.sent(),u={error:a},[3,10];case 9:try{i&&!i.done&&(c=n.return)&&c.call(n)}finally{if(u)throw u.error}return[7];case 10:return this[e].length?[4,this.runQueuedFunctions(e)]:[3,12];case 11:l.sent(),l.label=12;case 12:return[2]}}
1))}))},e.prototype.track=function(e,t,n){var r=(0,s.M1)(e,t,n);return(0,u.m)(this.dispatch(r))},e.prototype.identify=function(e,t){var n=(0,s.rA)(e,t);return(0,u.m)(this.dispatch(n))},e.prototype.groupIdentify=function(e,t,n,r){var i=(0,s.mc)(e,t,n,r);return(0,u.m)(this.dispatch(i))},e.prototype.setGroup=function(e,t,n){var r=(0,s.u4)(e,t,n);return(0,u.m)(this.dispatch(r))},e.prototype.revenue=function(e,t){var n=(0,s.dG)(e,t);return(0,u.m)(this.dispatch(n))},e.prototype.add=function(e){return this.isReady?this._addPlugin(e):(this.q.push(this._addPlugin.bind(this,e)),(0,u.m)())},e.prototype._addPlugin=function(e){return(0,u.m)(this.timeline.register(e,this.config))},e.prototype.remove=function(e){return this.isReady?this._removePlugin(e):(this.q.push(this._removePlugin.bind(this,e)),(0,u.m)())},e.prototype._removePlugin=function(e){return(0,u.m)(this.timeline.deregister(e,this.config))},e.prototype.dispatchWithCallback=function(e,t){if(!this.isReady)return t((0,a.C)(e,0,i.z7));this.process(e).then(t)},e.prototype.dispatch=function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t=this;return(0,r.YH)(this,(function(n){return this.isReady?[2,this.process(e)]:[2,new Promise((function(n){t.dispatchQ.push(t.dispatchWithCallback.bind(t,e,n))}))]}))}))},e.prototype.process=function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t,n,o;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),this.config.optOut?[2,(0,a.C)(e,0,i.xQ)]:[4,this.timeline.push(e)];case 1:return 200===(o=r.sent()).code?this.config.loggerProvider.log(o.message):100===o.code?this.config.loggerProvider.warn(o.message):this.config.loggerProvider.error(o.message),[2,o];case 2:return t=r.sent(),n=String(t),this.config.loggerProvider.error(n),[2,o=(0,a.C)(e,0,n)];case 3:return[2]}}
1))}))},e.prototype.setOptOut=function(e){this.isReady?this._setOptOut(e):this.q.push(this._setOptOut.bind(this,Boolean(e)))},e.prototype._setOptOut=function(e){this.config.optOut=Boolean(e)},e.prototype.flush=function(){return(0,u.m)(this.timeline.flush())},e}()},11991:(e,t,n)=>{n.d(t,{T:()=>a});var r=n(55823),i=n(26309),o=n(46338),s=n(81645),a=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return(0,r.Cl)({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(i.eX.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(i.eX.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(i.eX.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(i.eX.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(i.eX.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(i.eX.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(i.eX.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(i.eX.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(i.eX.UNSET,e,o.mG),this},e.prototype.clearAll=function(){return this._properties={},this._properties[i.eX.CLEAR_ALL]=o.mG,this},e.prototype._safeSet=function(e,t,n){if(this._validate(e,t,n)){var r=this._properties[e];return void 0===r&&(r={},this._properties[e]=r),r[t]=n,this._propertySet.add(t),!0}return!1},e.prototype._validate=function(e,t,n){return void 0===this._properties[i.eX.CLEAR_ALL]&&!this._propertySet.has(t)&&(e===i.eX.ADD?"number"==typeof n:e===i.eX.UNSET||e===i.eX.REMOVE||(0,s.E)(t,n))},e}()},35767:(e,t,n)=>{n.d(t,{V:()=>o});var r=n(61429),i="Amplitude Logger ",o=function(){function e(){this.logLevel=r.$.None}return e.prototype.disable=function(){this.logLevel=r.$.None},e.prototype.enable=function(e){void 0===e&&(e=r.$.Warn),this.logLevel=e},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<r.$.Verbose||console.log("".concat(i,"[Log]: ").concat(e.join(" ")))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<r.$.Warn||console.warn("".concat(i,"[Warn]: ").concat(e.join(" ")))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<r.$.Error||console.error("".concat(i,"[Error]: ").concat(e.join(" ")))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<r.$.Debug||console.log("".concat(i,"[Debug]: ").concat(e.join(" ")))},e}()},17903:(e,t,n)=>{n.d(t,{$k:()=>i,CS:()=>r,a_:()=>o,ot:()=>a,pL:()=>u,xQ:()=>s,z7:()=>c});var r="Event tracked successfully",i="Unexpected error occurred",o="Event rejected due to exceeded retry count",s="Event skipped due to optOut config",a="Event rejected due to missing API key",u="Invalid API key",c="Client not initialized"},44848:(e,t,n)=>{n.d(t,{D:()=>f});var r=n(55823),i=n(61487),o=n(17903),s=n(46338),a=n(69524),u=n(74286),c=n(917),l=n(12318);function d(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch(e){}return t}var f=function(){function e(){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduled=null,this.queue=[]}return e.prototype.setup=function(e){var t;return(0,r.sH)(this,void 0,void 0,(function(){var n,i=this;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return this.config=e,this.storageKey="".concat(s.fS,"_").concat(this.config.apiKey.substring(0,10)),[4,null===(t=this.config.storageProvider)||void 0===t?void 0:t.get(this.storageKey)];case 1:return(n=r.sent())&&n.length>0&&Promise.all(n.map((function(e){return i.execute(e)}))).catch(),[2,Promise.resolve(void 0)]}}))}))},e.prototype.execute=function(e){var t=this;return e.insert_id||(e.insert_id=(0,l.k)()),new Promise((function(n){var r={event:e,attempts:0,callback:function(e){return n(e)},timeout:0};t.addToQueue(r)}))},e.prototype.getTryableList=function(e){var t=this;return e.filter((function(e){return e.attempts<t.config.flushMaxRetries?(e.attempts+=1,!0):(t.fulfillRequest([e],500,o.a_),!1)}))},e.prototype.scheduleTryable=function(e,t){var n=this;void 0===t&&(t=!1),e.forEach((function(e){t&&(n.queue=n.queue.concat(e)),0!==e.timeout?setTimeout((function(){e.timeout=0,n.schedule(0)}),e.timeout):n.schedule(n.config.flushIntervalMillis)}))},e.prototype.addToQueue=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.getTryableList(e);this.scheduleTryable(n,!0),this.saveEvents()},e.prototype.schedule=function(e){var t=this;this.scheduled||this.config.offline||(this.scheduled=setTimeout((function(){t.flush(!0).then((function(){t.queue.length>0&&t.schedule(e)}))}),e))},e.prototype.flush=function(e){return void 0===e&&(e=!1),(0,r.sH)(this,void 0,void 0,(function(){var t,n,i=this;return(0,r.YH)(this,(function(o){switch(o.label){case 0:return this.config.offline?(this.config.loggerProvider.debug("Skipping flush while offline."),[2]):(t=[],n=[],this.queue.forEach((function(e){return 0===e.timeout?t.push(e):n.push(e)})),this.scheduled&&(clearTimeout(this.scheduled),this.scheduled=null),[4,(0,a.i)(t,this.config.flushQueueSize).reduce((function(t,n){return(0,r.sH)(i,void 0,void 0,(function(){return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,t];case 1:return r.sent(),[4,this.send(n,e)];case 2:return[2,r.sent()]}}))}))}),Promise.resolve())]);case 1:return o.sent(),this.scheduleTryable(n),[2]}}))}))},e.prototype.send=function(e,t){return void 0===t&&(t=!0),(0,r.sH)(this,void 0,void 0,(function(){var n,s,a,u,l;return(0,r.YH)(this,(function(f){switch(f.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(e,400,o.ot)];n={api_key:this.config.apiKey,events:e.map((function(e){var t=e.event;return t.extra,(0,r.Tt)(t,["extra"])})),options:{min_id_length:this.config.minIdLength},client_upload_time:(new Date).toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new c.vG,f.label=1;case 1:return f.trys.push([1,3,,4]),s=(0,c.Ql)(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(s,n)];case 2:return null===(a=f.sent())?(this.fulfillRequest(e,0,o.$k),[2]):t?(this.handleResponse(a,e),[3,4]):("body"in a?this.fulfillRequest(e,a.statusCode,"".concat(a.status,": ").concat(d(a))):this.fulfillRequest(e,a.statusCode,a.status),[2]);case 3:return u=f.sent(),l=(v=u)instanceof Error?v.message:String(v),this.config.loggerProvider.error(l),this.handleResponse({status:i.n.Failed,statusCode:0},e),[3,4];case 4:return[2]}var v}))}))},e.prototype.handleResponse=function(e,t){var n=e.status;switch(n){case i.n.Success:this.handleSuccessResponse(e,t);break;case i.n.Invalid:this.handleInvalidResponse(e,t);break;case i.n.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case i.n.RateLimit:this.handleRateLimitResponse(e,t);break;default:this.config.loggerProvider.warn("{code: 0, error: \"Status '".concat(n,"' provided for ").concat(t.length,' events"}')),this.handleOtherResponse(t)}},e.prototype.handleSuccessResponse=function(e,t){this.fulfillRequest(t,e.statusCode,o.CS)},e.prototype.handleInvalidResponse=function(e,t){var n=this;if(e.body.missingField||e.body.error.startsWith(o.pL))this.fulfillRequest(t,e.statusCode,e.body.error);else{var i=(0,r.fX)((0,r.fX)((0,r.fX)((0,r.fX)([],(0,r.zs)(Object.values(e.body.eventsWithInvalidFields)),!1),(0,r.zs)(Object.values(e.body.eventsWithMissingFields)),!1),(0,r.zs)(Object.values(e.body.eventsWithInvalidIdLengths)),!1),(0,r.zs)(e.body.silencedEvents),!1).flat(),s=new Set(i),a=t.filter((function(t,r){if(!s.has(r))return!0;n.fulfillRequest([t],e.statusCode,e.body.error)}));a.length>0&&this.config.loggerProvider.warn(d(e));var u=this.getTryableList(a);this.scheduleTryable(u)}},e.prototype.handlePayloadTooLargeResponse=function(e,t){if(1!==t.length){this.config.loggerProvider.warn(d(e)),this.config.flushQueueSize/=2;var n=this.getTryableList(t);this.scheduleTryable(n)}else this.fulfillRequest(t,e.statusCode,e.body.error)},e.prototype.handleRateLimitResponse=function(e,t){var n=this,r=Object.keys(e.body.exceededDailyQuotaUsers),i=Object.keys(e.body.exceededDailyQuotaDevices),o=e.body.throttledEvents,s=new Set(r),a=new Set(i),u=new Set(o),c=t.filter((function(t,r){if(!(t.event.user_id&&s.has(t.event.user_id)||t.event.device_id&&a.has(t.event.device_id)))return u.has(r)&&(t.timeout=n.throttleTimeout),!0;n.fulfillRequest([t],e.statusCode,e.body.error)}));c.length>0&&this.config.loggerProvider.warn(d(e));var l=this.getTryableList(c);this.scheduleTryable(l)},e.prototype.handleOtherResponse=function(e){var t=this,n=e.map((function(e){return e.timeout=e.attempts*t.retryTimeout,e})),r=this.getTryableList(n);this.scheduleTryable(r)},e.prototype.fulfillRequest=function(e,t,n){this.removeEvents(e),e.forEach((function(e){return e.callback((0,u.C)(e.event,t,n))}))},e.prototype.saveEvents=function(){if(this.config.storageProvider){var e=this.queue.map((function(e){return e.event}));this.config.storageProvider.set(this.storageKey,e)}},e.prototype.removeEvents=function(e){this.queue=this.queue.filter((function(t){return!e.s
1ome((function(e){return e.event.insert_id===t.event.insert_id}))})),this.saveEvents()},e}()},25531:(e,t,n)=>{n.d(t,{n:()=>s});var r=n(55823),i=n(26309),o=n(81645),s=function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(e){return this.productId=e,this},e.prototype.setQuantity=function(e){return e>0&&(this.quantity=e),this},e.prototype.setPrice=function(e){return this.price=e,this},e.prototype.setRevenueType=function(e){return this.revenueType=e,this},e.prototype.setRevenue=function(e){return this.revenue=e,this},e.prototype.setEventProperties=function(e){return(0,o.a)(e)&&(this.properties=e),this},e.prototype.getEventProperties=function(){var e=this.properties?(0,r.Cl)({},this.properties):{};return e[i.Kl.REVENUE_PRODUCT_ID]=this.productId,e[i.Kl.REVENUE_QUANTITY]=this.quantity,e[i.Kl.REVENUE_PRICE]=this.price,e[i.Kl.REVENUE_TYPE]=this.revenueType,e[i.Kl.REVENUE]=this.revenue,e},e}()},98610:(e,t,n)=>{n.d(t,{X:()=>i});var r=n(55823),i=function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){return[2,!0]}))}))},e.prototype.get=function(e){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){return[2,this.memoryStorage.get(e)]}))}))},e.prototype.getRaw=function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t;return(0,r.YH)(this,(function(n){switch(n.label){case 0:return[4,this.get(e)];case 1:return[2,(t=n.sent())?JSON.stringify(t):void 0]}}))}))},e.prototype.set=function(e,t){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(n){return this.memoryStorage.set(e,t),[2]}))}))},e.prototype.remove=function(e){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){return this.memoryStorage.delete(e),[2]}))}))},e.prototype.reset=function(){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){return this.memoryStorage.clear(),[2]}))}))},e}()},19860:(e,t,n)=>{n.d(t,{K:()=>s});var r=n(55823),i=n(74286),o=n(12318),s=function(){function e(e){this.client=e,this.queue=[],this.applying=!1,this.plugins=[]}return e.prototype.register=function(e,t){var n,i;return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(r){switch(r.label){case 0:return this.plugins.some((function(t){return t.name===e.name}))?(t.loggerProvider.warn("Plugin with name ".concat(e.name," already exists, skipping registration")),[2]):(void 0===e.name&&(e.name=(0,o.k)(),t.loggerProvider.warn("Plugin name is undefined. \n      Generating a random UUID for plugin name: ".concat(e.name,". \n      Set a name for the plugin to prevent it from being added multiple times."))),e.type=null!==(n=e.type)&&void 0!==n?n:"enrichment",[4,null===(i=e.setup)||void 0===i?void 0:i.call(e,t,this.client)]);case 1:return r.sent(),this.plugins.push(e),[2]}}))}))},e.prototype.deregister=function(e,t){var n;return(0,r.sH)(this,void 0,void 0,(function(){var i,o;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return i=this.plugins.findIndex((function(t){return t.name===e})),-1===i?(t.loggerProvider.warn("Plugin with name ".concat(e," does not exist, skipping deregistration")),[2]):(o=this.plugins[i],this.plugins.splice(i,1),[4,null===(n=o.teardown)||void 0===n?void 0:n.call(o)]);case 1:return r.sent(),[2]}}))}))},e.prototype.reset=function(e){this.applying=!1,this.plugins.map((function(e){var t;return null===(t=e.teardown)||void 0===t?void 0:t.call(e)})),this.plugins=[],this.client=e},e.prototype.push=function(e){var t=this;return new Promise((function(n){t.queue.push([e,n]),t.scheduleApply(0)}))},e.prototype.scheduleApply=function(e){var t=this;this.applying||(this.applying=!0,setTimeout((function(){t.apply(t.queue.shift()).then((function(){t.applying=!1,t.queue.length>0&&t.scheduleApply(0)}))}),e))},e.prototype.apply=function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t,n,o,s,a,u,c,l,d,f,v,h,p,g,y,m,b,w,S,E;return(0,r.YH)(this,(function(I){switch(I.label){case 0:if(!e)return[2];t=(0,r.zs)(e,1),n=t[0],o=(0,r.zs)(e,2),s=o[1],a=this.plugins.filter((function(e){return"before"===e.type})),I.label=1;case 1:I.trys.push([1,6,7,8]),u=(0,r.Ju)(a),c=u.next(),I.label=2;case 2:return c.done?[3,5]:(h=c.value).execute?[4,h.execute((0,r.Cl)({},n))]:[3,4];case 3:if(null===(p=I.sent()))return s({event:n,code:0,message:""}),[2];n=p,I.label=4;case 4:return c=u.next(),[3,2];case 5:return[3,8];case 6:return l=I.sent(),b={error:l},[3,8];case 7:try{c&&!c.done&&(w=u.return)&&w.call(u)}finally{if(b)throw b.error}
1return[7];case 8:d=this.plugins.filter((function(e){return"enrichment"===e.type||void 0===e.type})),I.label=9;case 9:I.trys.push([9,14,15,16]),f=(0,r.Ju)(d),v=f.next(),I.label=10;case 10:return v.done?[3,13]:(h=v.value).execute?[4,h.execute((0,r.Cl)({},n))]:[3,12];case 11:if(null===(p=I.sent()))return s({event:n,code:0,message:""}),[2];n=p,I.label=12;case 12:return v=f.next(),[3,10];case 13:return[3,16];case 14:return g=I.sent(),S={error:g},[3,16];case 15:try{v&&!v.done&&(E=f.return)&&E.call(f)}finally{if(S)throw S.error}return[7];case 16:return y=this.plugins.filter((function(e){return"destination"===e.type})),m=y.map((function(e){var t=(0,r.Cl)({},n);return e.execute(t).catch((function(e){return(0,i.C)(t,0,String(e))}))})),Promise.all(m).then((function(e){var t=(0,r.zs)(e,1)[0]||(0,i.C)(n,100,"Event not tracked, no destination plugins on the instance");s(t)})),[2]}}))}))},e.prototype.flush=function(){return(0,r.sH)(this,void 0,void 0,(function(){var e,t,n,i=this;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return e=this.queue,this.queue=[],[4,Promise.all(e.map((function(e){return i.apply(e)})))];case 1:return r.sent(),t=this.plugins.filter((function(e){return"destination"===e.type})),n=t.map((function(e){return e.flush&&e.flush()})),[4,Promise.all(n)];case 2:return r.sent(),[2]}}))}))},e}()},80393:(e,t,n)=>{n.d(t,{j:()=>i});var r=n(61487),i=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){var t,n,i,o,s,a,u,c,l,d,f,v,h,p,g,y,m,b,w,S,E,I;if("object"!=typeof e)return null;var T=e.code||0,_=this.buildStatus(T);switch(_){case r.n.Success:return{status:_,statusCode:T,body:{eventsIngested:null!==(t=e.events_ingested)&&void 0!==t?t:0,payloadSizeBytes:null!==(n=e.payload_size_bytes)&&void 0!==n?n:0,serverUploadTime:null!==(i=e.server_upload_time)&&void 0!==i?i:0}};case r.n.Invalid:return{status:_,statusCode:T,body:{error:null!==(o=e.error)&&void 0!==o?o:"",missingField:null!==(s=e.missing_field)&&void 0!==s?s:"",eventsWithInvalidFields:null!==(a=e.events_with_invalid_fields)&&void 0!==a?a:{},eventsWithMissingFields:null!==(u=e.events_with_missing_fields)&&void 0!==u?u:{},eventsWithInvalidIdLengths:null!==(c=e.events_with_invalid_id_lengths)&&void 0!==c?c:{},epsThreshold:null!==(l=e.eps_threshold)&&void 0!==l?l:0,exceededDailyQuotaDevices:null!==(d=e.exceeded_daily_quota_devices)&&void 0!==d?d:{},silencedDevices:null!==(f=e.silenced_devices)&&void 0!==f?f:[],silencedEvents:null!==(v=e.silenced_events)&&void 0!==v?v:[],throttledDevices:null!==(h=e.throttled_devices)&&void 0!==h?h:{},throttledEvents:null!==(p=e.throttled_events)&&void 0!==p?p:[]}};case r.n.PayloadTooLarge:return{status:_,statusCode:T,body:{error:null!==(g=e.error)&&void 0!==g?g:""}};case r.n.RateLimit:return{status:_,statusCode:T,body:{error:null!==(y=e.error)&&void 0!==y?y:"",epsThreshold:null!==(m=e.eps_threshold)&&void 0!==m?m:0,throttledDevices:null!==(b=e.throttled_devices)&&void 0!==b?b:{},throttledUsers:null!==(w=e.throttled_users)&&void 0!==w?w:{},exceededDailyQuotaDevices:null!==(S=e.exceeded_daily_quota_devices)&&void 0!==S?S:{},exceededDailyQuotaUsers:null!==(E=e.exceeded_daily_quota_users)&&void 0!==E?E:{},throttledEvents:null!==(I=e.throttled_events)&&void 0!==I?I:[]}};case r.n.Timeout:default:return{status:_,statusCode:T}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?r.n.Success:429===e?r.n.RateLimit:413===e?r.n.PayloadTooLarge:408===e?r.n.Timeout:e>=400&&e<500?r.n.Invalid:e>=500?r.n.Failed:r.n.Unknown},e}()},69524:(e,t,n)=>{n.d(t,{i:()=>r});var r=function(e,t){var n=Math.max(t,1);return e.reduce((function(e,t,r){var i=Math.floor(r/n);return e[i]||(e[i]=[]),e[i].push(t),e}),[])}},22214:(e,t,n)=>{n.d(t,{WI:()=>o,av:()=>a,nA:()=>u});var r=n(55823),i=n(61429),o=function(e){return function(){var t=(0,r.Cl)({},e.config);return{logger:t.loggerProvider,logLevel:t.logLevel}}},s=function(e,t){var n,i;t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"");try{for(var o=(0,r.Ju)(t.split(".")),s=o.next();!s.done;s=o.next()){var a=s.value;if(!(a in e))return;e=e[a]}}catch(e){n={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return e},a=function(e,t){return function(){var n,i,o={};try{for(var a=(0,r.Ju)(t),u=a.next();!u.done;u=a.next()){var c=u.value;o[c]=s(e,c)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return o}},u=function(e,t,n,r,o){return void 0===o&&(o=null),function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];var u=n(),c=u.logger,l=u.logLevel;if(l&&l<i.$.Debug||!l||!c)return e.apply(o,s);var d,f={type:"invoke public method",name:t,args:s,stacktrace:(d=1,void 0===d&&(d=0),((new Error).stack||"").split("\n").slice(2+d).map((function(e){return e.trim()}))),time:{start:(new Date).toISOString()},states:{}};r&&f.states&&(f.states.before=r());var v=e.apply(o,s);return v&&v.promise?v.promise.then((function(){r&&f.states&&(f.states.after=r()),f.time&&(f.time.end=(new Date).toISOString()),c.debug(JSON.stringify(f,null,2))})):(r&&f.states&&(f.states.after=r()),f.time&&(f.time.end=(new Date).toISOString()),c.debug(JSON.stringify(f,null,2))),v}}}
1,3283:(e,t,n)=>{n.d(t,{M1:()=>s,dG:()=>l,mc:()=>u,rA:()=>a,u4:()=>c});var r=n(55823),i=n(26309),o=n(11991),s=function(e,t,n){var i="string"==typeof e?{event_type:e}:e;return(0,r.Cl)((0,r.Cl)((0,r.Cl)({},i),n),t&&{event_properties:t})},a=function(e,t){return(0,r.Cl)((0,r.Cl)({},t),{event_type:i.SE.IDENTIFY,user_properties:e.getUserProperties()})},u=function(e,t,n,o){var s;return(0,r.Cl)((0,r.Cl)({},o),{event_type:i.SE.GROUP_IDENTIFY,group_properties:n.getUserProperties(),groups:(s={},s[e]=t,s)})},c=function(e,t,n){var s,a=new o.T;return a.set(e,t),(0,r.Cl)((0,r.Cl)({},n),{event_type:i.SE.IDENTIFY,user_properties:a.getUserProperties(),groups:(s={},s[e]=t,s)})},l=function(e,t){return(0,r.Cl)((0,r.Cl)({},t),{event_type:i.SE.REVENUE,event_properties:e.getEventProperties()})}},74286:(e,t,n)=>{n.d(t,{C:()=>i});var r=n(61487),i=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=r.n.Unknown),{event:e,code:t,message:n}}},27093:(e,t,n)=>{n.d(t,{m:()=>r});var r=function(e){return{promise:e||Promise.resolve()}}},12318:(e,t,n)=>{n.d(t,{k:()=>r});var r=function(e){return e?(e^16*Math.random()>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,r)}},81645:(e,t,n)=>{n.d(t,{E:()=>o,a:()=>i});var r=n(55823),i=function(e){if(Object.keys(e).length>1e3)return!1;for(var t in e){var n=e[t];if(!o(t,n))return!1}return!0},o=function(e,t){var n,o;if("string"!=typeof e)return!1;if(Array.isArray(t)){var s=!0;try{for(var a=(0,r.Ju)(t),u=a.next();!u.done;u=a.next()){var c=u.value;if(Array.isArray(c))return!1;if("object"==typeof c)s=s&&i(c);else if(!["number","string"].includes(typeof c))return!1;if(!s)return!1}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}}else{if(null==t)return!1;if("object"==typeof t)return i(t);if(!["number","string","boolean"].includes(typeof t))return!1}return!0}},20267:(e,t,n)=>{n.d(t,{B:()=>r});var r=n(85576).Bp},85576:(e,t,n)=>{n.d(t,{Bp:()=>l});var r=n(55823),i=n(80393),o=n(61487),s=n(42885),a="Remote config fetch rejected due to timeout after 5 seconds",u="Unexpected error occurred",c=function(){function e(e){var t=e.localConfig,n=e.configKeys,s=this;this.retryTimeout=1e3,this.attempts=0,this.sessionTargetingMatch=!1,this.metrics={},this.getRemoteConfig=function(e,t,n){return(0,r.sH)(s,void 0,void 0,(function(){var i,o,s;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return i=Date.now(),[4,this.fetchWithTimeout(n)];case 1:return(o=r.sent())&&(s=o.configs&&o.configs[e])?(this.metrics.fetchTimeAPISuccess=Date.now()-i,[2,s[t]]):(this.metrics.fetchTimeAPIFail=Date.now()-i,[2,void 0])}}))}))},this.fetchWithTimeout=function(e){return(0,r.sH)(s,void 0,void 0,(function(){var t,n,i;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return t=new AbortController,n=setTimeout((function(){return t.abort()}),5e3),[4,this.fetchRemoteConfig(t.signal,e)];case 1:return i=r.sent(),clearTimeout(n),[2,i]}}))}))},this.fetchRemoteConfig=function(e,t){return(0,r.sH)(s,void 0,void 0,(function(){var n,s,c,l,d,f,v,h,p,g,y,m;return(0,r.YH)(this,(function(b){switch(b.label){case 0:if(t===this.lastFetchedSessionId&&this.attempts>=this.localConfig.flushMaxRetries)return[2,this.completeRequest({err:"Remote config fetch rejected due to exceeded retry count"})];if(e.aborted)return[2,this.completeRequest({err:a})];t!==this.lastFetchedSessionId&&(this.lastFetchedSessionId=t,this.attempts=0),b.label=1;case 1:b.trys.push([1,3,,4]),n=new URLSearchParams({api_key:this.localConfig.apiKey});try{for(s=(0,r.Ju)(this.configKeys),c=s.next();!c.done;c=s.next())l=c.value,n.append("config_keys",l)}catch(e){g={error:e}}finally{try{c&&!c.done&&(y=s.return)&&y.call(s)}finally{if(g)throw g.error}}return t&&n.set("session_id",String(t)),d={headers:{Accept:"*/*"},method:"GET"},f="".concat(this.getServerUrl(),"?").concat(n.toString()),this.attempts+=1,[4,fetch(f,(0,r.Cl)((0,r.Cl)({},d),{signal:e}))];case 2:if(null===(v=b.sent()))return[2,this.completeRequest({err:u})];switch((new i.j).buildStatus(v.status)){case o.n.Success:return this.attempts=0,[2,this.parseAndStore
1Config(v)];case o.n.Failed:return[2,this.retryFetch(e,t)];default:return[2,this.completeRequest({err:"Network error occurred, remote config fetch failed"})]}return[3,4];case 3:return h=b.sent(),p=h,e.aborted?[2,this.completeRequest({err:a})]:[2,this.completeRequest({err:null!==(m=p.message)&&void 0!==m?m:u})];case 4:return[2]}}))}))},this.retryFetch=function(e,t){return(0,r.sH)(s,void 0,void 0,(function(){var n=this;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,new Promise((function(e){return setTimeout(e,n.attempts*n.retryTimeout)}))];case 1:return r.sent(),[2,this.fetchRemoteConfig(e,t)]}}))}))},this.parseAndStoreConfig=function(e){return(0,r.sH)(s,void 0,void 0,(function(){var t;return(0,r.YH)(this,(function(n){switch(n.label){case 0:return[4,e.json()];case 1:return t=n.sent(),this.completeRequest({success:"Remote config successfully fetched"}),[2,t]}}))}))},this.localConfig=t,this.configKeys=n}return e.prototype.getServerUrl=function(){return this.localConfig.serverZone===s.e.STAGING?"https://sr-client-cfg.stag2.amplitude.com/config":this.localConfig.serverZone===s.e.EU?"https://sr-client-cfg.eu.amplitude.com/config":"https://sr-client-cfg.amplitude.com/config"},e.prototype.completeRequest=function(e){var t=e.err,n=e.success;if(t)throw new Error(t);n&&this.localConfig.loggerProvider.log(n)},e}(),l=function(e){var t=e.localConfig,n=e.configKeys;return(0,r.sH)(void 0,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){return[2,new c({localConfig:t,configKeys:n})]}))}))}},69731:(e,t,n)=>{n.d(t,{PL:()=>i,W:()=>o,sH:()=>r});var r=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],i="data-amp-track-",o=["div","span","h1","h2","h3","h4","h5","h6"]},26309:(e,t,n)=>{var r,i,o;n.d(t,{Kl:()=>i,SE:()=>o,eX:()=>r}),function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"}(r||(r={})),function(e){e.REVENUE_PRODUCT_ID="$productId",e.REVENUE_QUANTITY="$quantity",e.REVENUE_PRICE="$price",e.REVENUE_TYPE="$revenueType",e.REVENUE="$revenue"}(i||(i={})),function(e){e.IDENTIFY="$identify",e.GROUP_IDENTIFY="$groupidentify",e.REVENUE="revenue_amount"}(o||(o={}))},73405:(e,t,n)=>{n.r(t),n.d(t,{DEFAULT_ACTION_CLICK_ALLOWLIST:()=>u.W,DEFAULT_CSS_SELECTOR_ALLOWLIST:()=>u.sH,DEFAULT_DATA_ATTRIBUTE_PREFIX:()=>u.PL,IdentifyOperation:()=>r.eX,LogLevel:()=>i.$,OfflineDisabled:()=>a.I,RevenueProperty:()=>r.Kl,ServerZone:()=>o.e,SpecialEventType:()=>r.SE,Status:()=>s.n});var r=n(26309),i=n(61429),o=n(42885),s=n(61487),a=n(35226),u=n(69731)},61429:(e,t,n)=>{var r;n.d(t,{$:()=>r}),function(e){e[e.None=0]="None",e[e.Error=1]="Error",e[e.Warn=2]="Warn",e[e.Verbose=3]="Verbose",e[e.Debug=4]="Debug"}(r||(r={}))},35226:(e,t,n)=>{n.d(t,{I:()=>r});var r=null},42885:(e,t,n)=>{var r;n.d(t,{e:()=>r}),function(e){e.US="US",e.EU="EU"}(r||(r={}))},61487:(e,t,n)=>{var r;n.d(t,{n:()=>r}),function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.PayloadTooLarge="payload_too_large",e.Invalid="invalid",e.Failed="failed",e.Timeout="Timeout",e.SystemError="SystemError"}(r||(r={}))},64662:(e,t,n)=>{n.d(t,{zk:()=>g});var r,i=n(55823),o=n(69731),s=n(46082),a=n(40342),u=n(28138),c=n(82377),l=n(68686),d=n(27139),f=n(5588),v=n(58069),h=n(42505),p=n(78730);!function(e){e.ClickObservable="clickObservable",e.ChangeObservable="changeObservable",e.NavigateObservable="navigateObservable",e.MutationObservable="mutationObservable"}(r||(r={}));var g=function(e){var t,n,g;void 0===e&&(e={});var y=e.dataAttributePrefix,m=void 0===y?o.PL:y,b=e.visualTaggingOptions,w=void 0===b?{enabled:!0,messenger:new d.C}:b;e.cssSelectorAllowlist=null!==(t=e.cssSelectorAllowlist)&&void 0!==t?t:o.sH,e.actionClickAllowlist=null!==(n=e.actionClickAllowlist)&&void 0!==n?n:o.W,e.debounceTime=null!==(g=e.debounceTime)&&void 0!==g?g:0;var S=s.AF,E=[],I=void 0,T=function(e,t){var n,r,i,o=null===(i=null===(r=null==t?void 0:t.tagName)||void 0===r?void 0:r.toLowerCase)||void 0===i?void 0:i.call(r),a="function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{left:null,top:null},u=t.getAttribute("aria-label"),c=(0,l.iH)(t,m),d=(0,l.h$)(t),v=(0,l.go)(t,I),h=((n={})[s.uc]=t.getAttribute("id")||"",n[s.T]=t.getAttribute("class"),n[s.oV]=(0,f.q1)(t),n[s.lT]=o,n[s.qp]=(0,l.q4)(t),n[s._9]=null==a.left?null:Math.round(a.left),n[s.iZ]=null==a.top?null:Math.round(a.top),n[s.lk]=u,n[s.E9]=c,n[s.GU]=v,n[s.It]=d,n[s.lE]=window.location.href.split("?")[0],n[s.qv]="undefined"!=typeof document&&document.title||"",n[s.Ux]=window.innerHeight,n[s.bF]=window.innerWidth,n);return"a"===o&&"click"===e&&t instanceof HTMLAnchorElement&&(h[s.Mt]=t.href),(0,l.$_)(h)},_=function(t,n){var r={event:t,timestamp:Date.now(),type:n};if(function(e){return"click"===e.type||"change"===e.type}(r)&&null!==r.event.target){var i=(0,l.el)(r.event.target,e.cssSelectorAllowlist);return i&&(r.closestTrackedAncestor=i,r.targetElementProperties=T(r.type,i)),r}return r};return{name:S,type:"enrichment",setup:function(t,n){return(0,i.sH)(void 0,void 0,void 0,(function(){var o,d,f,g,y,m,b,C,P,k;return(0,i.YH)(this,(function(O){return I=t.loggerProvider,"undefined"==typeof document||(o=(0,l.PC)(e,e.cssSelectorAllowlist),d=(0,l.PC)(e,e.actionClickAllowlist),f=function(){var e,t,n=(0,a.R)(document,"click",{capture:!0}).pipe((0,u.T)((function(e){return _(e,"click")}))),i=(0,a.R)(document,"change",{capture:!0}).pipe((0,u.T)((function(e){return _(e,"change")})));window.navigation&&(t=(0,a.R)(window.navigation,"navigate").pipe((0,u.T)((function(e){return _(e,"navigate")}))));var o=new c.c((function(e){var t=new MutationObserver((function(t){e.next(t)}));return t.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return t.disconnect()}})).pipe((0,u.T)((function(e){return _(e,"mutation")})));return(e={}
1)[r.ClickObservable]=n,e[r.ChangeObservable]=i,e[r.NavigateObservable]=t,e[r.MutationObservable]=o,e}(),g=(0,v.x)({allObservables:f,options:e,amplitude:n,shouldTrackEvent:o}),E.push(g),y=(0,h.g)({allObservables:f,getEventProperties:T,amplitude:n,shouldTrackEvent:o}),E.push(y),m=(0,p.S)({allObservables:f,options:e,getEventProperties:T,amplitude:n,shouldTrackEvent:o,shouldTrackActionClick:d}),E.push(m),null===(P=null==t?void 0:t.loggerProvider)||void 0===P||P.log("".concat(S," has been successfully added.")),window.opener&&w.enabled&&(b=e.cssSelectorAllowlist,C=e.actionClickAllowlist,null===(k=w.messenger)||void 0===k||k.setup((0,i.Cl)((0,i.Cl)({logger:null==t?void 0:t.loggerProvider},(null==t?void 0:t.serverZone)&&{endpoint:s.ht[t.serverZone]}),{isElementSelectable:(0,l.PC)(e,(0,i.fX)((0,i.fX)([],(0,i.zs)(b),!1),(0,i.zs)(C),!1)),cssSelectorAllowlist:b,actionClickAllowlist:C})))),[2]}))}))},execute:function(e){return(0,i.sH)(void 0,void 0,void 0,(function(){return(0,i.YH)(this,(function(t){return[2,e]}))}))},teardown:function(){return(0,i.sH)(void 0,void 0,void 0,(function(){var e,t,n,r;return(0,i.YH)(this,(function(o){try{for(e=(0,i.Ju)(E),t=e.next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){n={error:e}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(n)throw n.error}}return[2]}))}))}}}},78730:(e,t,n)=>{n.d(t,{S:()=>v});var r=n(55823),i=n(53940),o=n(28138),s=n(34578),a=n(84190),u=n(56177),c=n(23567),l=n(56607),d=n(68686),f=n(46082);function v(e){var t=e.amplitude,n=e.allObservables,v=e.options,h=e.getEventProperties,p=e.shouldTrackEvent,g=e.shouldTrackActionClick,y=n.clickObservable,m=n.mutationObservable,b=n.navigateObservable,w=y.pipe((0,i.p)((function(e){return!p("click",e.closestTrackedAncestor)})),(0,o.T)((function(e){var t=(0,d.el)(e.event.target,v.actionClickAllowlist);return e.closestTrackedAncestor=t,null!==e.closestTrackedAncestor&&(e.targetElementProperties=h(e.type,e.closestTrackedAncestor)),e})),(0,i.p)(d.kC),(0,i.p)((function(e){return g("click",e.closestTrackedAncestor)}))),S=[m];b&&S.push(b);var E=s.h.apply(void 0,(0,r.fX)([],(0,r.zs)(S),!1));return w.pipe((0,a.n)((function(e){return E.pipe((0,u.s)(1),(0,c.w)({first:500,with:function(){return l.w}}),(0,o.T)((function(){return e})))}))).subscribe((function(e){null==t||t.track(f.yY,h("click",e.closestTrackedAncestor),{time:e.timestamp})}))}},42505:(e,t,n)=>{n.d(t,{g:()=>s});var r=n(53940),i=n(68686),o=n(46082);function s(e){var t=e.amplitude,n=e.allObservables,s=e.getEventProperties,a=e.shouldTrackEvent;return n.changeObservable.pipe((0,r.p)(i.kC),(0,r.p)((function(e){return a("change",e.closestTrackedAncestor)}))).subscribe((function(e){null==t||t.track(o.vX,s("change",e.closestTrackedAncestor))}))}},58069:(e,t,n)=>{n.d(t,{x:()=>v});var r=n(55823),i=n(50626),o=n(53940),s=n(41392),a=n(28138),u=n(34578),c=n(81831),l=n(39136),d=n(68686),f=n(46082);function v(e){var t=e.amplitude,n=e.allObservables,v=e.options,h=e.shouldTrackEvent,p=n.clickObservable,g=p.pipe((0,i.J)(),(0,o.p)((function(e){var t=(0,r.zs)(e,2),n=t[0],i=t[1],o=n.event.target!==i.event.target,s=Math.abs(i.event.screenX-n.event.screenX)<=20&&Math.abs(i.event.screenY-n.event.screenY)<=20;return o&&!s}))),y=p.pipe((0,s.B)(v.debounceTime),(0,a.T)((function(){return"timeout"}))),m=(0,u.h)(g,y);return p.pipe((0,c.c)(0),(0,o.p)(d.kC),(0,o.p)((function(e){return h("click",e.closestTrackedAncestor)})),(0,l.r)(m)).subscribe((function(e){var n,i,o=(e.length,f.yY);try{for(var s=(0,r.Ju)(e),a=s.next();!a.done;a=s.next()){var u=a.value;null==t||t.track(o,u.targetElementProperties,{time:u.timestamp})}}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}}))}},46082:(e,t,n)=>{n.d(t,{AF:()=>r,E9:()=>p,GU:()=>g,It:()=>y,Mt:()=>d,Nz:()=>T,PU:()=>_,T:()=>a,Ux:()=>w,_9:()=>f,bF:()=>S,ht:()=>I,iZ:()=>v,l:()=>E,lE:()=>m,lT:()=>u,lk:()=>h,oV:()=>l,qp:()=>c,qv:()=>b,uc:()=>s,vX:()=>o,yY:()=>i});var r="@amplitude/plugin-autocapture-browser",i="[Amplitude] Element Clicked",o="[Amplitude] Element Changed",s="[Amplitude] Element ID",a="[Amplitude] Element Class",u="[Amplitude] Element Tag",c="[Amplitude] Element Text",l="[Amplitude] Element Hierarchy",d="[Amplitude] Element Href",f="[Amplitude] Element Position Left",v="[Amplitude] Element Position Top",h="[Amplitude] Element Aria Label",p="[Amplitude] Element Attributes",g="[Amplitude] Element Selector",y="[Amplitude] Element Parent Label",m="[Amplitude] Page URL",b="[Amplitude] Page Title",w="[Amplitude] Viewport Height",S="[Amplitude] Viewport Width",E="https://app.amplitude.com",I={US:E,EU:"https://app.eu.amplitude.com",STAGING:"https://apps.stag2.amplitude.com"},T="https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz",_="amp-visual-tagging-selector-highlight"},68686:(e,t,n)=>{n.d(t,{$_:()=>v,Ij:()=>m,It:()=>u,M$:()=>y,PC:()=>s,el:()=>p,go:()=>l,h$:()=>h,hf:()=>g,iH:()=>f,kC:()=>b,q4:()=>c});var r=n(39950),i=n(46082),o=["input","select","textarea"],s=function(e,t){return function(n,r){var i,o,s,a=e.pageUrlAllowlist,u=e.shouldTrackEventResolver,c=null===(o=null===(i=null==r?void 0:r.tagName)||void 0===i?void 0:i.toLowerCase)||void 0===o?void 0:o.call(i);if(!c)return!1;if(u)return u(n,r);if(!d(window.location.href,a))return!1;var l=String(null==r?void 0:r.getAttribute("type"))||"";if("string"==typeof l)switch(l.toLowerCase()){case"hidden":case"password":return!1}if(t){var f=t.some((function(e){var t;return!!(null===(t=null==r?void 0:r.matches)||void 0===t?void 0:t.call(r,e))}));if(!f)return!1}switch(c){case"input":case"select":case"textarea":return"change"===n||"click"===n;default:var v=null===(s=null===window||void 0===window?void 0:window.getComputedStyle)||void 0===s?void 0:s.call(window,r);return!(!v||"pointer"!==v.getPropertyValue("cursor")||"click"!==n)||"click"===n}}},a=function(e){if(null==e)return!1;if("string"==typeof e){if(/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11}
1)|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,"")))return!1;if(/(^\d{3}-?\d{2}-?\d{4}$)/.test(e))return!1}return!0},u=function(e){var t,n,r,i=null===(n=null===(t=null==e?void 0:e.tagName)||void 0===t?void 0:t.toLowerCase)||void 0===n?void 0:n.call(t),s=e instanceof HTMLElement&&"true"===(null===(r=e.getAttribute("contenteditable"))||void 0===r?void 0:r.toLowerCase());return!o.includes(i)&&!s},c=function(e){var t="";return u(e)&&e.childNodes&&e.childNodes.length&&e.childNodes.forEach((function(e){var n,r="";(n=e)&&3===n.nodeType?e.textContent&&(r=e.textContent):r=c(e),t+=r.split(/(\s+)/).filter(a).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)})),t},l=function(e,t){var n,o,s="";try{return(0,r.n)(e,{className:function(e){return e!==i.PU},maxNumberOfTries:1e3})}catch(e){if(t){var a=e;t.warn("Failed to get selector with finder, use fallback strategy instead: ".concat(a.toString()))}}var u=null===(o=null===(n=null==e?void 0:e.tagName)||void 0===n?void 0:n.toLowerCase)||void 0===o?void 0:o.call(n);u&&(s=u);var c=e.getAttribute("id"),l=e.getAttribute("class");if(c)s="#".concat(c);else if(l){var d=l.split(" ").filter((function(e){return e!==i.PU})).join(".");d&&(s="".concat(s,".").concat(d))}return s},d=function(e,t){return!t||!t.length||t.some((function(t){return"string"==typeof t?e===t:e.match(t)}))},f=function(e,t){return e.getAttributeNames().reduce((function(n,r){if(r.startsWith(t)){var i=r.replace(t,""),o=e.getAttribute(r);i&&(n[i]=o||"")}return n}),{})},v=function(e){return Object.keys(e).reduce((function(t,n){var r=e[n];return function(e){return null==e||"object"==typeof e&&0===Object.keys(e).length||"string"==typeof e&&0===e.trim().length}(r)||(t[n]=r),t}),{})},h=function(e){var t,n=e.parentElement;if(!n)return"";try{t=n.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch(e){t=null}if(t){var r=t.textContent||"";return a(r)?r:""}return h(n)},p=function(e,t){return e?t.some((function(t){var n;return null===(n=null==e?void 0:e.matches)||void 0===n?void 0:n.call(e,t)}))?e:p(null==e?void 0:e.parentElement,t):null},g=function(e,t){var n,r,o;if(!e)return{};var s=null===(o=null===(r=null==e?void 0:e.tagName)||void 0===r?void 0:r.toLowerCase)||void 0===o?void 0:o.call(r),a=l(e,t),u=((n={})[i.lT]=s,n[i.qp]=c(e),n[i.GU]=a,n[i.lE]=window.location.href.split("?")[0],n);return v(u)},y=function(e){return new Promise((function(t,n){var r;try{var i=document.createElement("script");i.type="text/javascript",i.async=!0,i.src=e,i.addEventListener("load",(function(){t({status:!0})}),{once:!0}),i.addEventListener("error",(function(){n({status:!1,message:"Failed to load the script ".concat(e)})})),null===(r=document.head)||void 0===r||r.appendChild(i)}catch(e){n(e)}}))};function m(){return"".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9))}var b=function(e){return!(null===e.event.target||!e.closestTrackedAncestor)}}
1,5588:(e,t,n)=>{n.d(t,{q1:()=>c});var r=n(55823),i=n(68686),o=["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot"],s=["type"],a=["svg","path","g"],u=["password","hidden"],c=function(e){var t;return e?(t=function(e){for(var t=0,n=0;n<e.length;n++){var r=e[n];if(null===r)t+=4;else{var i=l(r);t+=i?Array.from(i).length:4}if(t>1024)return e.slice(0,n)}return e}(function(e){var t=[];if(!e)return t;t.push(e);for(var n=e.parentElement;n&&"HTML"!==n.tagName;)t.push(n),n=n.parentElement;return t}(e).map((function(e){return function(e){var t,n,c,l,d,f;if(null===e)return null;var v=String(e.tagName).toLowerCase(),h={tag:v},p=Array.from(null!==(l=null===(c=e.parentElement)||void 0===c?void 0:c.children)&&void 0!==l?l:[]);p.length&&(h.index=p.indexOf(e),h.indexOfType=p.filter((function(t){return t.tagName===e.tagName})).indexOf(e));var g=null===(f=null===(d=e.previousElementSibling)||void 0===d?void 0:d.tagName)||void 0===f?void 0:f.toLowerCase();g&&(h.prevSib=String(g));var y=e.getAttribute("id");y&&(h.id=String(y));var m=Array.from(e.classList);m.length&&(h.classes=m);var b={},w=Array.from(e.attributes).filter((function(e){return!o.includes(e.name)})),S=!(0,i.It)(e);if(!u.includes(String(e.getAttribute("type")))&&!a.includes(v))try{for(var E=(0,r.Ju)(w),I=E.next();!I.done;I=E.next()){var T=I.value;S&&!s.includes(T.name)||(b[T.name]=String(T.value).substring(0,128))}}catch(e){t={error:e}}finally{try{I&&!I.done&&(n=E.return)&&n.call(E)}finally{if(t)throw t.error}}return Object.keys(b).length&&(h.attrs=b),h}(e)}))),t):[]};function l(e,t){void 0===t&&(t=!1);try{if(null==e)return t?"None":null;if("string"==typeof e)return t?(e=e.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r")).includes('"')?"'".concat(e,"'"):e.includes("'")?'"'.concat(e.replace(/'/g,"\\'"),'"'):"'".concat(e,"'"):e;if("boolean"==typeof e)return e?"True":"False";if(Array.isArray(e)){var n=e.map((function(e){return l(e,!0)}));return"[".concat(n.join(", "),"]")}if("object"==typeof e){var i=Object.entries(e).filter((function(e){return null!=(0,r.zs)(e,1)[0]})).map((function(e){var t=(0,r.zs)(e,2),n=t[0],i=t[1];return"".concat(String(l(n,!0)),": ").concat(String(l(i,!0)))})),o="{".concat(i.join(", "),"}");return o.includes("\\'")&&(o=o.replace(/'/g,"'").replace(/'/g,"\\'")),o}return e.toString()}catch(e){return null}}},39950:(e,t,n)=>{n.d(t,{n:()=>s});var r,i,o=n(55823);function s(e,t){if(e.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.");if("html"===e.tagName.toLowerCase())return"html";var n={root:document.body,idName:function(e){return!0},className:function(e){return!0},tagName:function(e){return!0},attr:function(e,t){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4};r=(0,o.Cl)((0,o.Cl)({},n),t),i=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(r.root,n);var s=a(e,"all",(function(){return a(e,"two",(function(){return a(e,"one",(function(){return a(e,"none")}))}))}));if(s){var u=y(m(s,e));return u.length>0&&(s=u[0]),c(s)}throw new Error("Selector was not found.")}function a(e,t,n){for(var i=null,s=[],a=e,c=0,l=function(){var e,l,d=h(function(e){var t=e.getAttribute("id");return t&&r.idName(t)?{name:"#"+CSS.escape(t),penalty:0}:null}(a))||h.apply(void 0,(0,o.fX)([],(0,o.zs)(function(e){return Array.from(e.attributes).filter((function(e){return r.attr(e.name,e.value)})).map((function(e){return{name:"[".concat(CSS.escape(e.name),'="').concat(CSS.escape(e.value),'"]'),penalty:.5}}))}(a)),!1))||h.apply(void 0,(0,o.fX)([],(0,o.zs)(function(e){return Array.from(e.classList).filter(r.className).map((function(e){return{name:"."+CSS.escape(e),penalty:1}}))}(a)),!1))||h(function(e){var t=e.tagName.toLowerCase();return r.tagName(t)?{name:t,penalty:2}:null}(a))||[{name:"*",penalty:3}],p=function(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;for(var r=0;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling;return r}(a);if("all"==t)p&&(d=d.concat(d.filter(v).map((function(e){return f(e,p)}))));else if("two"==t)d=d.slice(0,1),p&&(d=d.concat(d.filter(v).map((function(e){return f(e,p)}))));else if("one"==t){var g=(0,o.zs)(d=d.slice(0,1),1)[0];p&&v(g)&&(d=[f(g,p)])}else"none"==t&&(d=[{name:"*",penalty:3}],p&&(d=[f(d[0],p)]));try{for(var y=(e=void 0,(0,o.Ju)(d)),m=y.next();!m.done;m=y.next())(g=m.value).level=c}catch(t){e={error:t}}finally{try{m&&!m.done&&(l=y.return)&&l.call(y)}finally{if(e)throw e.error}}if(s.push(d),s.length>=r.seedMinLength&&(i=u(s,n)))return"break";a=a.parentElement,c++};a&&"break"!==l(););
1return i||(i=u(s,n)),!i&&n?n():i}function u(e,t){var n,i;if(e.reduce((function(e,t){return e*t.length}),1)>r.threshold)return t?t():null;var s=y(g(e));try{for(var a=(0,o.Ju)(s),u=a.next();!u.done;u=a.next()){var c=u.value;if(d(c))return c}}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return null}function c(e){for(var t=e[0],n=t.name,r=1;r<e.length;r++){var i=e[r].level||0;n=t.level===i-1?"".concat(e[r].name," > ").concat(n):"".concat(e[r].name," ").concat(n),t=e[r]}return n}function l(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function d(e){var t=c(e);switch(i.querySelectorAll(t).length){case 0:throw new Error("Can't select any node with this selector: ".concat(t));case 1:return!0;default:return!1}}function f(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function v(e){return"html"!==e.name&&!e.name.startsWith("#")}function h(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter(p);return n.length>0?n:null}function p(e){return null!=e}function g(e,t){var n,r,i,s,a,u;return void 0===t&&(t=[]),(0,o.YH)(this,(function(c){switch(c.label){case 0:if(!(e.length>0))return[3,9];c.label=1;case 1:c.trys.push([1,6,7,8]),n=(0,o.Ju)(e[0]),r=n.next(),c.label=2;case 2:return r.done?[3,5]:(i=r.value,[5,(0,o.Ju)(g(e.slice(1,e.length),t.concat(i)))]);case 3:c.sent(),c.label=4;case 4:return r=n.next(),[3,2];case 5:return[3,8];case 6:return s=c.sent(),a={error:s},[3,8];case 7:try{r&&!r.done&&(u=n.return)&&u.call(n)}finally{if(a)throw a.error}return[7];case 8:return[3,11];case 9:return[4,t];case 10:c.sent(),c.label=11;case 11:return[2]}}
1))}function y(e){return(0,o.fX)([],(0,o.zs)(e),!1).sort((function(e,t){return l(e)-l(t)}))}function m(e,t,n){var s,a,u;return void 0===n&&(n={counter:0,visited:new Map}),(0,o.YH)(this,(function(l){switch(l.label){case 0:if(!(e.length>2&&e.length>r.optimizedMinLength))return[3,5];s=1,l.label=1;case 1:return s<e.length-1?n.counter>r.maxNumberOfTries?[2]:(n.counter+=1,(a=(0,o.fX)([],(0,o.zs)(e),!1)).splice(s,1),u=c(a),n.visited.has(u)?[2]:d(a)&&function(e,t){return i.querySelector(c(e))===t}(a,t)?[4,a]:[3,4]):[3,5];case 2:return l.sent(),n.visited.set(u,!0),[5,(0,o.Ju)(m(a,t,n))];case 3:l.sent(),l.label=4;case 4:return s++,[3,1];case 5:return[2]}}))}},27139:(e,t,n)=>{n.d(t,{C:()=>o});var r=n(46082),i=n(68686),o=function(){function e(e){var t=(void 0===e?{}:e).origin,n=void 0===t?r.l:t,i=this;this.endpoint=r.l,this.requestCallbacks={},this.onSelect=function(e){i.notify({action:"element-selected",data:e})},this.onTrack=function(e,t){"selector-mode-changed"===e?i.notify({action:"track-selector-mode-changed",data:t}):"selector-moved"===e&&i.notify({action:"track-selector-moved",data:t})},this.endpoint=n}return e.prototype.notify=function(e){var t,n,r,i;null===(n=null===(t=this.logger)||void 0===t?void 0:t.debug)||void 0===n||n.call(t,"Message sent: ",JSON.stringify(e)),null===(i=null===(r=window.opener)||void 0===r?void 0:r.postMessage)||void 0===i||i.call(r,e,this.endpoint)},e.prototype.sendRequest=function(e,t,n){var r=this;void 0===n&&(n={timeout:15e3});var o=(0,i.Ij)(),s={id:o,action:e,args:t};return new Promise((function(t,i){r.requestCallbacks[o]={resolve:t,reject:i},r.notify(s),(null==n?void 0:n.timeout)>0&&setTimeout((function(){i(new Error("".concat(e," timed out (id: ").concat(o,")"))),delete r.requestCallbacks[o]}),n.timeout)}))},e.prototype.handleResponse=function(e){var t;this.requestCallbacks[e.id]?(this.requestCallbacks[e.id].resolve(e.responseData),delete this.requestCallbacks[e.id]):null===(t=this.logger)||void 0===t||t.warn("No callback found for request id: ".concat(e.id))},e.prototype.setup=function(e){var t=this,n=void 0===e?{}:e,o=n.logger,s=n.endpoint,a=n.isElementSelectable,u=n.cssSelectorAllowlist,c=n.actionClickAllowlist;this.logger=o,s&&this.endpoint===r.l&&(this.endpoint=s);var l=null;window.addEventListener("message",(function(e){var n,o,s,d,f;if(null===(o=null===(n=t.logger)||void 0===n?void 0:n.debug)||void 0===o||o.call(n,"Message received: ",JSON.stringify(e)),t.endpoint===e.origin){var v=null==e?void 0:e.data,h=null==v?void 0:v.action;if(h)if("id"in v)null===(d=null===(s=t.logger)||void 0===s?void 0:s.debug)||void 0===d||d.call(s,"Received Response to previous request: ",JSON.stringify(e)),t.handleResponse(v);else if("ping"===h)t.notify({action:"pong"});else if("initialize-visual-tagging-selector"===h){var p=null==v?void 0:v.data;(0,i.M$)(r.Nz).then((function(){var e;l=null===(e=null===window||void 0===window?void 0:window.amplitudeVisualTaggingSelector)||void 0===e?void 0:e.call(window,{getEventTagProps:i.hf,isElementSelectable:function(e){return!a||a((null==p?void 0:p.actionType)||"click",e)},onTrack:t.onTrack,onSelect:t.onSelect,visualHighlightClass:r.PU,messenger:t,cssSelectorAllowlist:u,actionClickAllowlist:c}),t.notify({action:"selector-loaded"})})).catch((function(){var e;
1null===(e=t.logger)||void 0===e||e.warn("Failed to initialize visual tagging selector")}))}else"close-visual-tagging-selector"===h&&(null===(f=null==l?void 0:l.close)||void 0===f||f.call(l))}})),this.notify({action:"page-loaded"})},e}()},70854:(e,t,n)=>{n.d(t,{Dl:()=>c});var r=n(55823),i=n(47993),o=n(71775),s=n(26309),a=n(48656),u=n(60608),c=function(e){var t;void 0===e&&(e={});var n,o,s=(0,i.m)(),a=void 0,u=e.trackOn,c=e.trackHistoryChanges,v=e.eventType,h=void 0===v?"[Amplitude] Page Viewed":v,p=function(e){var t=e;try{t=decodeURI(e)}catch(e){null==a||a.error("Malformed URI sequence: ",e)}return t},g=function(){return(0,r.sH)(void 0,void 0,void 0,(function(){var e,t,n;return(0,r.YH)(this,(function(i){switch(i.label){case 0:return e=p("undefined"!=typeof location&&location.href||""),n={event_type:h},t=[{}],[4,l()];case 1:return[2,(n.event_properties=r.Cl.apply(void 0,[r.Cl.apply(void 0,t.concat([i.sent()])),{"[Amplitude] Page Domain":"undefined"!=typeof location&&location.hostname||"","[Amplitude] Page Location":e,"[Amplitude] Page Path":"undefined"!=typeof location&&p(location.pathname)||"","[Amplitude] Page Title":"undefined"!=typeof document&&document.title||"","[Amplitude] Page URL":e.split("?")[0]}]),n)]}}))}))},y=function(){return void 0===u||"function"==typeof u&&u()},m="undefined"!=typeof location?location.href:null,b=function(){return(0,r.sH)(void 0,void 0,void 0,(function(){var e,n,i,o;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return e=location.href,n=f(c,e,m||"")&&y(),m=e,n?(null==a||a.log("Tracking page view event"),null!=t?[3,1]:[3,3]):[3,4];case 1:return o=(i=t).track,[4,g()];case 2:o.apply(i,[r.sent()]),r.label=3;case 3:r.label=4;case 4:return[2]}}
1))}))},w=function(){b()},S={name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(e,i){return(0,r.sH)(void 0,void 0,void 0,(function(){var u,c;return(0,r.YH)(this,(function(l){switch(l.label){case 0:return t=i,o=e,(a=e.loggerProvider).log("Installing @amplitude/plugin-page-view-tracking-browser"),s&&(s.addEventListener("popstate",w),n=s.history.pushState,s.history.pushState=new Proxy(s.history.pushState,{apply:function(e,t,n){var i=(0,r.zs)(n,3),o=i[0],s=i[1],a=i[2];e.apply(t,[o,s,a]),b()}})),y()?(a.log("Tracking page view event"),c=(u=t).track,[4,g()]):[3,2];case 1:c.apply(u,[l.sent()]),l.label=2;case 2:return[2]}}))}))},execute:function(e){return(0,r.sH)(void 0,void 0,void 0,(function(){var t;return(0,r.YH)(this,(function(n){switch(n.label){case 0:return"attribution"===u&&d(e)?(null==a||a.log("Enriching campaign event to page view event with campaign parameters"),[4,g()]):[3,2];case 1:t=n.sent(),e.event_type=t.event_type,e.event_properties=(0,r.Cl)((0,r.Cl)({},e.event_properties),t.event_properties),n.label=2;case 2:return o&&e.event_type===h&&(o.pageCounter=o.pageCounter?o.pageCounter+1:1,e.event_properties=(0,r.Cl)((0,r.Cl)({},e.event_properties),{"[Amplitude] Page Counter":o.pageCounter})),[2,e]}}))}))},teardown:function(){return(0,r.sH)(void 0,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){return s&&(s.removeEventListener("popstate",w),n&&(s.history.pushState=n)),[2]}))}))}};return S},l=function(){return(0,r.sH)(void 0,void 0,void 0,(function(){var e;return(0,r.YH)(this,(function(t){switch(t.label){case 0:return e=u.O,[4,(new o.E).parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}}))}))},d=function(e){if("$identify"===e.event_type&&e.user_properties){var t=e.user_properties,n=t[s.eX.SET]||{},i=t[s.eX.UNSET]||{},o=(0,r.fX)((0,r.fX)([],(0,r.zs)(Object.keys(n)),!1),(0,r.zs)(Object.keys(i)),!1);return Object.keys(a.F3).every((function(e){return o.includes(e)}))}return!1},f=function(e,t,n){if("pathOnly"===e){if(""==n)return!0;var r=new URL(t),i=new URL(n);return r.origin+r.pathname!==i.origin+i.pathname}return t!==n}},60608:(e,t,n)=>{n.d(t,{O:()=>r});var r=function(e){var t={};for(var n in e){var r=e[n];r&&(t[n]=r)}return t}},82719:(e,t,n)=>{n.d(t,{$:()=>i});var r=n(85920),i=[r.eX.SET,r.eX.SET_ONCE,r.eX.ADD,r.eX.APPEND,r.eX.PREPEND,r.eX.POSTINSERT]},78204:(e,t,n)=>{n.d(t,{O:()=>o});var r=n(55823),i=n(82719),o=function(e){if(e.user_properties){var t={};return Object.keys(e.user_properties).forEach((function(n){if(i.$.includes(n)){var o=e.user_properties&&e.user_properties[n];t=(0,r.Cl)((0,r.Cl)({},t),o)}})),t}}},73496:(e,t,n)=>{n.d(t,{j:()=>l});var r=n(55823),i=n(78585),o=n(95621),s=n(25868),a=n(78204),u=n(88762),c=function(){function e(t){this.name=e.pluginName,this.type="enrichment",this.sessionReplay={flush:o.bX,getSessionId:o.u0,getSessionReplayProperties:o.Lc,init:o.Ts,setSessionId:o.mY,shutdown:o.n_,evaluateTargetingAndCapture:o.S8},this.options=(0,r.Cl)({forceSessionTracking:!1},t),this.srInitOptions=this.options}return e.prototype.setup=function(e,t){var n,i,o,a,c;return(0,r.sH)(this,void 0,void 0,(function(){var t,l,d;return(0,r.YH)(this,(function(f){switch(f.label){case 0:return f.trys.push([0,2,,3]),null==e||e.loggerProvider.log("Installing @amplitude/plugin-session-replay, version ".concat(u.x,".")),this.config=e,this.options.forceSessionTracking&&("boolean"==typeof e.defaultTracking?!1===e.defaultTracking&&(e.defaultTracking={pageViews:!1,formInteractions:!1,fileDownloads:!1,sessions:!0}):e.defaultTracking=(0,r.Cl)((0,r.Cl)({},e.defaultTracking),{sessions:!0})),t=(0,s.w$)(this.config.instanceName).identityStore,l=t.getIdentity().userProperties,this.srInitOptions={instanceName:this.config.instanceName,deviceId:null!==(n=this.options.deviceId)&&void 0!==n?n:this.config.deviceId,optOut:this.config.optOut,sessionId:this.options.customSessionId?void 0:this.config.sessionId,loggerProvider:this.config.loggerProvider,logLevel:this.config.logLevel,flushMaxRetries:this.config.flushMaxRetries,serverZone:this.config.serverZone,configServerUrl:this.options.configServerUrl,trackServerUrl:this.options.trackServerUrl,sampleRate:this.options.sampleRate,privacyConfig:{blockSelector:null===(i=this.options.privacyConfig)||void 0===i?void 0:i.blockSelector,maskSelector:null===(o=this.options.privacyConfig)||void 0===o?void 0:o.maskSelector,unmaskSelector:null===(a=this.options.privacyConfig)||void 0===a?void 0:a.unmaskSelector,defaultMaskLevel:null===(c=this.options.privacyConfig)||void 0===c?void 0:c.defaultMaskLevel},debugMode:this.options.debugMode,shouldInlineStylesheet:this.options.shouldInlineStylesheet,version:{type:"plugin",version:u.x},performanceConfig:this.options.performanceConfig,storeType:this.options.storeType,experimental:this.options.experimental,userProperties:l,omitElementTags:this.options.omitElementTags,applyBackgroun
1dColorToBlockedElements:this.options.applyBackgroundColorToBlockedElements,interactionConfig:this.options.interactionConfig,captureDocumentTitle:this.options.captureDocumentTitle,enableUrlChangePolling:this.options.enableUrlChangePolling,urlChangePollingInterval:this.options.urlChangePollingInterval},[4,this.sessionReplay.init(e.apiKey,this.srInitOptions).promise];case 1:return f.sent(),[3,3];case 2:return d=f.sent(),null==e||e.loggerProvider.error("Session Replay: Failed to initialize due to ".concat(d.message)),[3,3];case 3:return[2]}}))}))},e.prototype.onSessionIdChanged=function(e){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){switch(t.label){case 0:return this.config.loggerProvider.debug("Analytics session id is changed to ".concat(e,", SR session id is ").concat(String(this.sessionReplay.getSessionId()),".")),[4,this.sessionReplay.setSessionId(e).promise];case 1:return t.sent(),[2]}}))}))},e.prototype.onOptOutChanged=function(e){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){switch(t.label){case 0:return this.config.loggerProvider.debug("optOut is changed to ".concat(String(e),", calling ").concat(e?"sessionReplay.shutdown()":"sessionReplay.init()",".")),e?(this.sessionReplay.shutdown(),[3,3]):[3,1];case 1:return[4,this.sessionReplay.init(this.config.apiKey,this.srInitOptions).promise];case 2:t.sent(),t.label=3;case 3:return[2]}}
1))}))},e.prototype.execute=function(e){var t;return(0,r.sH)(this,void 0,void 0,(function(){var n,o,s,u;return(0,r.YH)(this,(function(c){switch(c.label){case 0:return c.trys.push([0,9,,10]),this.options.customSessionId?(n=this.options.customSessionId(e))?n===this.sessionReplay.getSessionId()?[3,2]:[4,this.sessionReplay.setSessionId(n).promise]:[3,3]:[3,4];case 1:c.sent(),c.label=2;case 2:s=this.sessionReplay.getSessionReplayProperties(),e.event_properties=(0,r.Cl)((0,r.Cl)({},e.event_properties),s),c.label=3;case 3:return[3,8];case 4:return(n=this.config.sessionId)&&n!==this.sessionReplay.getSessionId()?[4,this.sessionReplay.setSessionId(n).promise]:[3,6];case 5:c.sent(),c.label=6;case 6:return n&&n===e.session_id?(o=void 0,e.event_type===i.S.IDENTIFY&&(o=(0,a.O)(e)),[4,this.sessionReplay.evaluateTargetingAndCapture({event:e,userProperties:o})]):[3,8];case 7:c.sent(),s=this.sessionReplay.getSessionReplayProperties(),e.event_properties=(0,r.Cl)((0,r.Cl)({},e.event_properties),s),c.label=8;case 8:return[2,Promise.resolve(e)];case 9:return u=c.sent(),null===(t=this.config)||void 0===t||t.loggerProvider.error("Session Replay: Failed to enrich event due to ".concat(u.message)),[2,Promise.resolve(e)];case 10:return[2]}}
1))}))},e.prototype.teardown=function(){var e;return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){try{this.sessionReplay.shutdown(),this.config=null}catch(t){null===(e=this.config)||void 0===e||e.loggerProvider.error("Session Replay: teardown failed due to ".concat(t.message))}return[2]}))}))},e.prototype.getSessionReplayProperties=function(){return this.sessionReplay.getSessionReplayProperties()},e.pluginName="@amplitude/plugin-session-replay-browser",e}(),l=function(e){return new c(e)}},88762:(e,t,n)=>{n.d(t,{x:()=>r});var r="1.22.10"},25868:(e,t,n)=>{n.d(t,{w$:()=>i});var r=n(76459),i=function(e){return void 0===e&&(e="$default_instance"),r.i.getInstance(e)}},78585:(e,t,n)=>{var r,i;n.d(t,{S:()=>i}),function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"}(r||(r={})),function(e){e.IDENTIFY="$identify",e.GROUP_IDENTIFY="$groupidentify",e.REVENUE="revenue_amount"}(i||(i={}))},85920:(e,t,n)=>{var r,i,o;n.d(t,{eX:()=>r}),function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"}(r||(r={})),function(e){e.REVENUE_PRODUCT_ID="$productId",e.REVENUE_QUANTITY="$quantity",e.REVENUE_PRICE="$price",e.REVENUE_TYPE="$revenueType",e.REVENUE_CURRENCY="$currency",e.REVENUE="$revenue"}(i||(i={})),function(e){e.IDENTIFY="$identify",e.GROUP_IDENTIFY="$groupidentify",e.REVENUE="revenue_amount"}(o||(o={}))},77088:(e,t,n)=>{n.d(t,{U:()=>o});var r=n(70556),i=n(70643),o=function(){function e(e,t){var n=(0,r.m)();n&&n.navigator&&"function"==typeof n.navigator.sendBeacon?this.sendBeacon=function(e,t){try{if(n.navigator.sendBeacon(e,JSON.stringify(t)))return!0}catch(e){}return!1}:this.sendBeacon=function(){return!1},this.sendXhr=function(e,t){var n=new XMLHttpRequest;return n.open("POST",e,!0),n.setRequestHeader("Accept","*/*"),n.send(JSON.stringify(t)),!0},this.basePageUrl=(0,i.Tt)(t.serverZone,t.trackServerUrl),this.apiKey=t.apiKey,this.context=e}return e.prototype.send=function(e,t){var n=this.context,r=n.sessionId,i=n.type,o=new URLSearchParams({device_id:e,session_id:String(r),type:String(i),api_key:this.apiKey}),s="".concat(this.basePageUrl,"?").concat(o.toString());this.sendBeacon(s,t)||this.sendXhr(s,t)},e}()},87735:(e,t,n)=>{n.d(t,{ie:()=>u});var r=n(55823),i=n(59590),o=n(70643),s=n(43461),a=function(){function e(e,t){this.localConfig=t,this.remoteConfigFetch=e}return e.prototype.generateJoinedConfig=function(e){var t,n,i,s;return(0,r.sH)(this,void 0,void 0,(function(){var a,u,c,l,d,f,v,h,p,g,y,m,b,w,S,E,I,T,_,C,P,k,O;return(0,r.YH)(this,(function(R){switch(R.label){case 0:(a=(0,r.Cl)({},this.localConfig)).optOut=this.localConfig.optOut,a.captureEnabled=!0,R.label=1;case 1:return R.trys.push([1,3,,4]),[4,this.remoteConfigFetch.getRemoteNamespaceConfig("sessionReplay",e)];case 2:return(c=R.sent())&&(l=c.sr_sampling_config,d=c.sr_privacy_config,f=c.sr_targeting_config,v=null===(t=a.interactionConfig)||void 0===t?void 0:t.ugcFilterRules,a.interactionConfig=c.sr_interaction_config,a.interactionConfig&&v&&(a.interactionConfig.ugcFilterRules=v),a.loggingConfig=c.sr_logging_config,(l||d||f)&&(u={},l&&(u.sr_sampling_config=l),d&&(u.sr_privacy_config=d),f&&(u.sr_targeting_config=f))),[3,4];case 3:return h=R.sent(),p=h,this.localConfig.loggerProvider.warn(p.message),a.captureEnabled=!1,[3,4];case 4:if(!u)return[2,{localConfig:this.localConfig,joinedConfig:a,remoteConfig:u}];if(g=u.sr_sampling_config,y=u.sr_privacy_config,m=u.sr_targeting_config,g&&Object.keys(g).length>0?(Object.prototype.hasOwnProperty.call(g,"capture_enabled")?a.captureEnabled=g.capture_enabled:a.captureEnabled=!1,Object.prototype.hasOwnProperty.call(g,"sample_rate")&&(a.sampleRate=g.sample_rate)):(a.captureEnabled=!0,this.localConfig.loggerProvider.debug("Remote config successfully fetched, but no values set for project, Session Replay capture enabled.")),y){b=null!==(n=a.privacyConfig)&&void 0!==n?n:{},w={defaultMaskLevel:null!==(s=null!==(i=y.defaultMaskLevel)&&void 0!==i?i:b.defaultMaskLevel)&&void 0!==s?s:"medium",blockSelector:[],maskSelector:[],unmaskSelector:[]},S=function(e){var t,n,i,o,s,a,u,c,l,d={};"string"==typeof e.blockSelector&&(e.blockSelector=[e.blockSelector]);try{for(var f=(0,r.Ju)(null!==(u=e.blockSelector)&&void 0!==u?u:[]),v=f.next();!v.done;v=f.next())d[v.value]="block"}catch(e){t={error:e}}finally{try{v&&!v.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}try{for(var h=(0,r.Ju)(null!==(c=e.maskSelector)&&void 0!==c?c:[]),p=h.next();!p.done;p=h.next())d[p.value]="mask"}catch(e){i={error:e}}
1finally{try{p&&!p.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}try{for(var g=(0,r.Ju)(null!==(l=e.unmaskSelector)&&void 0!==l?l:[]),y=g.next();!y.done;y=g.next())d[y.value]="unmask"}catch(e){s={error:e}}finally{try{y&&!y.done&&(a=g.return)&&a.call(g)}finally{if(s)throw s.error}}return d},E=(0,r.Cl)((0,r.Cl)({},S(b)),S(y));try{for(I=(0,r.Ju)(Object.entries(E)),T=I.next();!T.done;T=I.next())_=(0,r.zs)(T.value,2),C=_[0],"mask"===(P=_[1])?w.maskSelector.push(C):"block"===P?w.blockSelector.push(C):"unmask"===P&&w.unmaskSelector.push(C)}catch(e){k={error:e}}finally{try{T&&!T.done&&(O=I.return)&&O.call(I)}finally{if(k)throw k.error}}a.privacyConfig=function(e,t){var n=document.createDocumentFragment(),r=function(e){if(void 0===e&&(e=[]),"string"==typeof e&&(e=[e]),0!==(e=e.filter((function(e){try{n.querySelector(e)}catch(n){return t.warn('[session-replay-browser] omitting selector "'.concat(e,'" because it is invalid')),!1}return!0}))).length)return e};return e.blockSelector=r(e.blockSelector),e.maskSelector=r(e.maskSelector),e.unmaskSelector=r(e.unmaskSelector),e}(w,this.localConfig.loggerProvider)}return m&&Object.keys(m).length>0&&(a.targetingConfig=m),this.localConfig.loggerProvider.debug(JSON.stringify({name:"session replay joined config",config:(0,o.QP)(a)},null,2)),[2,{localConfig:this.localConfig,joinedConfig:a,remoteConfig:u}]}}))}))},e}(),u=function(e,t){return(0,r.sH)(void 0,void 0,void 0,(function(){var n,o;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return n=new s.P(e,t),[4,(0,i.B)({localConfig:n,configKeys:["sessionReplay"]})];case 1:return o=r.sent(),[2,new a(o,n)]}}))}))}},43461:(e,t,n)=>{n.d(t,{P:()=>f,Y:()=>d});var r=n(55823),i=n(20),o=n(94478),s=n(2483),a=n(73620),u=n(9571),c=n(83608),l=n(70643),d=function(){return{flushMaxRetries:2,logLevel:i.$.Warn,loggerProvider:new o.V,transportProvider:new s.m}},f=function(e){function t(t,n){var i,o,s,a,f,v=this,h=d();return(v=e.call(this,(0,r.Cl)((0,r.Cl)({transportProvider:h.transportProvider,loggerProvider:new c.R(n.loggerProvider||h.loggerProvider)},n),{apiKey:t}))||this).flushMaxRetries=void 0!==n.flushMaxRetries&&n.flushMaxRetries<=h.flushMaxRetries?n.flushMaxRetries:h.flushMaxRetries,v.apiKey=t,v.sampleRate=n.sampleRate||u.kX,v.serverZone=n.serverZone||u.HY,v.configServerUrl=n.configServerUrl,v.trackServerUrl=n.trackServerUrl,v.shouldInlineStylesheet=n.shouldInlineStylesheet,v.version=n.version,v.performanceConfig=n.performanceConfig||u.qV,v.storeType=null!==(i=n.storeType)&&void 0!==i?i:"idb",v.applyBackgroundColorToBlockedElements=null!==(o=n.applyBackgroundColorToBlockedElements)&&void 0!==o&&o,v.enableUrlChangePolling=null!==(s=n.enableUrlChangePolling)&&void 0!==s&&s,v.urlChangePollingInterval=null!==(a=n.urlChangePollingInterval)&&void 0!==a?a:u.nM,v.captureDocumentTitle=null!==(f=n.captureDocumentTitle)&&void 0!==f&&f,n.privacyConfig&&(v.privacyConfig=n.privacyConfig),n.interactionConfig&&(v.interactionConfig=n.interactionConfig,v.interactionConfig.ugcFilterRules&&(0,l.dO)(v.interactionConfig.ugcFilterRules)),n.debugMode&&(v.debugMode=n.debugMode),n.experimental&&(v.experimental=n.experimental),n.omitElementTags&&(v.omitElementTags=n.omitElementTags),v}return(0,r.C6)(t,e),t}(a.TS)},62120:(e,t,n)=>{n.d(t,{_:()=>r});var r="medium"},9571:(e,t,n)=>{n.d(t,{Fh:()=>m,G2:()=>T,HY:()=>c,Hw:()=>I,KW:()=>r,M9:()=>y,Ot:()=>S,RK:()=>E,fd:()=>g,gq:()=>h,j7:()=>v,kX:()=>u,m2:()=>_,nM:()=>d,nS:()=>p,qV:()=>l,rv:()=>b,sD:()=>w,vC:()=>a,xE:()=>f});var r,i=n(90306),o=n(66383),s="[Amplitude]",a="".concat(s," Session Replay ID"),u=0,c=i.e.US,l={enabled:!0},d=1e3,f="".concat(s," Session Replay Debug"),v="amp-block",h="amp-mask",p="amp-unmask",g="https://api-sr.amplitude.com/sessions/v2/track",y="https://api-sr.eu.amplitude.com/sessions/v2/track",m="https://api-sr.stag2.amplitude.com/sessions/v2/track",b=("".concat(o.r,"_replay_unsent"),1e6),w=3e4,S=6e4,E=500,I=1e4,T=1024,_=1e3;!function(e){e.GET_SR_PROPS="get-sr-props",e.DEBUG_INFO="debug-info",e.FETCH_REQUEST="fetch-request",e.METADATA="metadata",e.TARGETING_DECISION="targeting-decision"}(r||(r={}))},1375:(e,t,n)=>{n.d(t,{S:()=>o});var r=n(55823),i=n(9571),o=function(){function e(e){var t,n,r,o=this;
1this.minInterval=i.RK,this.maxInterval=i.Hw,this.maxPersistedEventsSize=i.rv,this.interval=this.minInterval,this._timeAtLastSplit=Date.now(),this.shouldSplitEventsList=function(e,t){var n=o.getStringSize(t);return o.getEventsArraySize(e)+n>=o.maxPersistedEventsSize||!!(Date.now()-o.timeAtLastSplit>o.interval&&e.length)&&(o.interval=Math.min(o.maxInterval,o.interval+o.minInterval),o._timeAtLastSplit=Date.now(),!0)},this.loggerProvider=e.loggerProvider,this.minInterval=null!==(t=e.minInterval)&&void 0!==t?t:this.minInterval,this.maxInterval=null!==(n=e.maxInterval)&&void 0!==n?n:this.maxInterval,this.maxPersistedEventsSize=null!==(r=e.maxPersistedEventsSize)&&void 0!==r?r:this.maxPersistedEventsSize}return Object.defineProperty(e.prototype,"timeAtLastSplit",{get:function(){return this._timeAtLastSplit},enumerable:!1,configurable:!0}),e.prototype.getStringSize=function(e){return e.length},e.prototype.getEventsArraySize=function(e){var t,n,i=0;try{for(var o=(0,r.Ju)(e),s=o.next();!s.done;s=o.next()){var a=s.value;i+=this.getStringSize(a)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i+(2+Math.max(0,e.length-1)+2*e.length)},e}()},50166:(e,t,n)=>{n.d(t,{i:()=>o});var r=n(70556),i=n(52566),o=function(){function e(e,t,n,o){var s,a,u,c=this;this.taskQueue=[],this.isProcessing=!1,this.compressEvent=function(e){var t=(0,i.q)(e);return JSON.stringify(t)},this.addCompressedEventToManager=function(e,t){c.eventsManager&&c.deviceId&&c.eventsManager.addEvent({event:{type:"replay",data:e},sessionId:t,deviceId:c.deviceId})},this.addCompressedEvent=function(e,t){if(c.worker)c.worker.postMessage({event:e,sessionId:t});else{var n=c.compressEvent(e);c.addCompressedEventToManager(n,t)}},this.terminate=function(){var e;null===(e=c.worker)||void 0===e||e.terminate()};var l=(0,r.m)();this.canUseIdleCallback=l&&"requestIdleCallback"in l,this.eventsManager=e,this.config=t,this.deviceId=n,this.timeout=(null===(s=t.performanceConfig)||void 0===s?void 0:s.timeout)||2e3;var d=null!==(a={}.COMPRESSION_WEBWORKER_BODY)&&void 0!==a?a:o;if((null===(u=this.config.experimental)||void 0===u?void 0:u.useWebWorker)&&l&&l.Worker&&d){t.loggerProvider.log("[Experimental] Enabling web worker for compression");var f=new Worker(URL.createObjectURL(new Blob([d],{type:"application/javascript"})));f.onerror=function(e){t.loggerProvider.error(e)},f.onmessage=function(e){var t=e.data,n=t.compressedEvent,r=t.sessionId;c.addCompressedEventToManager(n,r)},this.worker=f}}return e.prototype.scheduleIdleProcessing=function(){var e=this;this.isProcessing||(this.isProcessing=!0,requestIdleCallback((function(t){e.processQueue(t)}),{timeout:this.timeout}))},e.prototype.enqueueEvent=function(e,t){var n;this.canUseIdleCallback&&(null===(n=this.config.performanceConfig)||void 0===n?void 0:n.enabled)?(this.config.loggerProvider.debug("Enqueuing event for processing during idle time."),this.taskQueue.push({event:e,sessionId:t}),this.scheduleIdleProcessing()):(this.config.loggerProvider.debug("Processing event without idle callback."),this.addCompressedEvent(e,t))},e.prototype.processQueue=function(e){for(var t=this;this.taskQueue.length>0&&(e.timeRemaining()>0||e.didTimeout);){var n=this.taskQueue.shift();if(n){var r=n.event,i=n.sessionId;this.addCompressedEvent(r,i)}}this.taskQueue.length>0?requestIdleCallback((function(e){t.processQueue(e)}),{timeout:this.timeout}):this.isProcessing=!1},e}()},92121:(e,t,n)=>{n.d(t,{d5:()=>g});var r=n(55823),i=n(70556),o=n(66383),s=n(32927),a=n(38912),u=n(1375),c=n(56903),l="sessionCurrentSequence",d="sequencesToSend",f=function(){var e=(0,i.m)();return new Promise((function(t,n){if(!e)return n(new Error("Global scope not found"));if(!e.indexedDB)return n(new Error("Session Replay: cannot find indexedDB"));try{var r=e.indexedDB.open("keyval-store");r.onupgradeneeded=function(){1===r.result.version&&(r.result.close(),r.transaction&&r.transaction.abort(),e.indexedDB.deleteDatabase("keyval-store"),t())},r.onsuccess=function(){t(r.result)},r.onerror=function(){n(r.error)}}catch(e){n(e)}}))},v=function(e){return(0,r.sH)(void 0,void 0,void 0,(function(){var t;return(0,r.YH)(this,(function(n){switch(n.label){case 0:return e.length>0?(t=e.splice(0,10),[4,Promise.all(t)]):[3,2];case 1:return n.sent(),[3,0];case 2:return[2]}}
1))}))},h=function(e){var t,n;return e.objectStoreNames.contains(l)||(n=e.createObjectStore(l,{keyPath:"sessionId"})),e.objectStoreNames.contains(d)||(t=e.createObjectStore(d,{keyPath:"sequenceId",autoIncrement:!0})).createIndex("sessionId","sessionId"),{sequencesStore:t,currentSequenceStore:n}},p=function(e){return(0,r.sH)(void 0,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){switch(t.label){case 0:return[4,(0,s.P2)(e,1,{upgrade:h})];case 1:return[2,t.sent()]}}))}))},g=function(e){function t(t){var n=e.call(this,t)||this;return n.getSequencesToSend=function(){return(0,r.sH)(n,void 0,void 0,(function(){var e,t,n,i,o,s;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,5,,6]),e=[],[4,this.db.transaction("sequencesToSend").store.openCursor()];case 1:t=r.sent(),r.label=2;case 2:return t?(n=t.value,i=n.sessionId,o=n.events,e.push({events:o,sequenceId:t.key,sessionId:i}),[4,t.continue()]):[3,4];case 3:return t=r.sent(),[3,2];case 4:return[2,e];case 5:return s=r.sent(),this.loggerProvider.warn("".concat(a.nM,": ").concat(s)),[3,6];case 6:return[2,void 0]}}))}))},n.storeCurrentSequence=function(e){return(0,r.sH)(n,void 0,void 0,(function(){var t,n,i;return(0,r.YH)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,4,,5]),[4,this.db.get(l,e)];case 1:return(t=o.sent())?[4,this.db.put(d,{sessionId:e,events:t.events})]:[2,void 0];case 2:return n=o.sent(),[4,this.db.put(l,{sessionId:e,events:[]})];case 3:return o.sent(),[2,(0,r.Cl)((0,r.Cl)({},t),{sessionId:e,sequenceId:n})];case 4:return i=o.sent(),this.loggerProvider.warn("".concat(a.nM,": ").concat(i)),[3,5];case 5:return[2,void 0]}}))}))},n.addEventToCurrentSequence=function(e,t){return(0,r.sH)(n,void 0,void 0,(function(){var n,i,o,s,u,c;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,10,,11]),[4,(n=this.db.transaction(l,"readwrite")).store.get(e)];case 1:return(i=r.sent())?[3,3]:[4,n.store.put({sessionId:e,events:[t]})];case 2:return r.sent(),[2];case 3:return o=void 0,this.shouldSplitEventsList(i.events,t)?(o=i.events,[4,n.store.put({sessionId:e,events:[t]})]):[3,5];case 4:return r.sent(),[3,7];case 5:return s=i.events.concat(t),[4,n.store.put({sessionId:e,events:s})];case 6:r.sent(),r.label=7;case 7:return[4,n.done];case 8:return r.sent(),o?[4,this.storeSendingEvents(e,o)]:[2,void 0];case 9:return(u=r.sent())?[2,{events:o,sessionId:e,sequenceId:u}]:[2,void 0];case 10:return c=r.sent(),this.loggerProvider.warn("".concat(a.nM,": ").concat(c)),[3,11];case 11:return[2,void 0]}}))}))},n.storeSendingEvents=function(e,t){return(0,r.sH)(n,void 0,void 0,(function(){var n;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.db.put(d,{sessionId:e,events:t})];case 1:return[2,r.sent()];case 2:return n=r.sent(),this.loggerProvider.warn("".concat(a.nM,": ").concat(n)),[3,3];case 3:return[2,void 0]}}))}))},n.cleanUpSessionEventsStore=function(e,t){return(0,r.sH)(n,void 0,void 0,(function(){var e;return(0,r.YH)(this,(function(n){switch(n.label){case 0:if(!t)return[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.db.delete(d,t)];case 2:return n.sent(),[3,4];case 3:return e=n.sent(),this.loggerProvider.warn("".concat(a.nM,": ").concat(e)),[3,4];case 4:return[2]}}
1))}))},n.transitionFromKeyValStore=function(e){return(0,r.sH)(n,void 0,void 0,(function(){var t,n,s,a,u,l,d,h,p=this;return(0,r.YH)(this,(function(g){switch(g.label){case 0:return g.trys.push([0,6,,7]),[4,f()];case 1:if(!(t=g.sent()))return[2];n=function(e,t){return(0,r.sH)(p,void 0,void 0,(function(){var n,i,o=this;return(0,r.YH)(this,(function(s){switch(s.label){case 0:return n=t.sessionSequences,i=[],Object.keys(n).forEach((function(s){var a=parseInt(s,10),u=n[a];if(a===t.currentSequenceId){var l=u.events.map((function(t){return(0,r.sH)(o,void 0,void 0,(function(){return(0,r.YH)(this,(function(n){return[2,this.addEventToCurrentSequence(e,t)]}))}))}));i.push.apply(i,(0,r.fX)([],(0,r.zs)(l),!1))}else u.status!==c.k.SENT&&i.push(o.storeSendingEvents(e,u.events))})),[4,v(i)];case 1:return s.sent(),[2]}}))}))},s="".concat(o.fS,"_").concat(this.apiKey.substring(0,10)),g.label=2;case 2:return g.trys.push([2,4,,5]),a=t.transaction("keyval").objectStore("keyval").getAll(s),u=new Promise((function(t){a.onsuccess=function(i){return(0,r.sH)(p,void 0,void 0,(function(){var o,s,a,u=this;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return o=i&&i.target.result,(s=o&&o[0])?(a=[],Object.keys(s).forEach((function(t){var r=parseInt(t,10),i=s[r];if(e===r)a.push(n(r,i));else{var o=i.sessionSequences;Object.keys(o).forEach((function(e){var t=parseInt(e,10);o[t].status!==c.k.SENT&&a.push(u.storeSendingEvents(r,o[t].events))}))}})),[4,v(a)]):[3,2];case 1:r.sent(),r.label=2;case 2:return t(),[2]}}))}))}})),[4,u];case 3:return g.sent(),(l=(0,i.m)())&&l.indexedDB.deleteDatabase("keyval-store"),[3,5];case 4:return d=g.sent(),this.loggerProvider.warn("Failed to transition session replay events from keyval to new store: ".concat(d)),[3,5];case 5:return[3,7];case 6:return h=g.sent(),this.loggerProvider.warn("Failed to access keyval store: ".concat(h,". For more information, visit: https://www.docs.developers.amplitude.com/session-replay/sdks/standalone/#indexeddb-best-practices")),[3,7];case 7:return[2]}}
1))}))},n.apiKey=t.apiKey,n.db=t.db,n}return(0,r.C6)(t,e),t.new=function(e,n,i){return(0,r.sH)(this,void 0,void 0,(function(){var o,s,u,c,l;return(0,r.YH)(this,(function(d){switch(d.label){case 0:return d.trys.push([0,3,,4]),o="replay"===e?"":"_".concat(e),s="".concat(n.apiKey.substring(0,10),"_amp_session_replay_events").concat(o),[4,p(s)];case 1:return u=d.sent(),[4,(c=new t((0,r.Cl)((0,r.Cl)({},n),{db:u}))).transitionFromKeyValStore(i)];case 2:return d.sent(),[2,c];case 3:return l=d.sent(),n.loggerProvider.warn("".concat(a.nM,": ").concat(l)),[3,4];case 4:return[2]}}))}))},t.prototype.getCurrentSequenceEvents=function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t,n,i,o,s,a,u;return(0,r.YH)(this,(function(c){switch(c.label){case 0:return e?[4,this.db.get("sessionCurrentSequence",e)]:[3,2];case 1:return(o=c.sent())?[2,[o]]:[2,void 0];case 2:t=[],c.label=3;case 3:return c.trys.push([3,8,9,10]),[4,this.db.getAll("sessionCurrentSequence")];case 4:n=r.Ju.apply(void 0,[c.sent()]),i=n.next(),c.label=5;case 5:if(i.done)return[3,7];o=i.value,t.push(o),c.label=6;case 6:return i=n.next(),[3,5];case 7:return[3,10];case 8:return s=c.sent(),a={error:s},[3,10];case 9:try{i&&!i.done&&(u=n.return)&&u.call(n)}finally{if(a)throw a.error}return[7];case 10:return[2,t]}}))}))},t}(u.S)},50015:(e,t,n)=>{n.d(t,{z:()=>u});var r=n(55823),i=n(70643),o=n(21204),s=n(92121),a=n(29953),u=function(e){var t=e.config,n=e.sessionId,u=e.minInterval,c=e.maxInterval,l=e.type,d=e.payloadBatcher,f=e.storeType;return(0,r.sH)(void 0,void 0,void 0,(function(){function e(e){return void 0===e&&(e=!1),(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){return[2,v.flush(e)]}))}))}var v,h,p,g,y,m,b,w,S;return(0,r.YH)(this,(function(E){switch(E.label){case 0:return v=new o.b((0,r.Cl)((0,r.Cl)({},t),{loggerProvider:t.loggerProvider,payloadBatcher:d})),h=function(){return new a.Z({loggerProvider:t.loggerProvider,maxInterval:c,minInterval:u})},p=function(){return(0,r.sH)(void 0,void 0,void 0,(function(){var e;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,s.d5.new(l,{loggerProvider:t.loggerProvider,minInterval:u,maxInterval:c,apiKey:t.apiKey},n)];case 1:return e=r.sent(),t.loggerProvider.log("Failed to initialize idb store, falling back to memory store."),[2,null!=e?e:h()]}}))}))},"idb"!==f?[3,2]:[4,p()];case 1:return y=E.sent(),[3,3];case 2:y=h(),E.label=3;case 3:return g=y,m=function(e){var n=e.events,o=e.sessionId,s=e.deviceId,a=e.sequenceId;t.debugMode&&(0,i.zr)().then((function(e){var n=e.totalStorageSize,r=e.percentOfQuota,i=e.usageDetails;t.loggerProvider.debug("Total storage size: ".concat(n," KB, percentage of quota: ").concat(r,"%, usage details: ").concat(i))})).catch((function(){})),v.sendEventsList({events:n,sessionId:o,flushMaxRetries:t.flushMaxRetries,apiKey:t.apiKey,deviceId:s,sampleRate:t.sampleRate,serverZone:t.serverZone,version:t.version,type:l,onComplete:function(){return(0,r.sH)(void 0,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){switch(e.label){case 0:return[4,g.cleanUpSessionEventsStore(o,a)];case 1:return e.sent(),[2]}}))}))}})},b=function(e){var n=e.sessionId,r=e.deviceId;g.storeCurrentSequence(n).then((function(e){e&&m({sequenceId:e.sequenceId,events:e.events,sessionId:e.sessionId,deviceId:r})})).catch((function(e){t.loggerProvider.warn("Failed to get current sequence of session replay events for session:",e)}))},w=function(e){var t=e.deviceId;return(0,r.sH)(void 0,void 0,void 0,(function(){var e;return(0,r.YH)(this,(function(n){switch(n.label){case 0:return[4,g.getSequencesToSend()];case 1:return(e=n.sent())&&e.forEach((function(e){m({sequenceId:e.sequenceId,events:e.events,sessionId:e.sessionId,deviceId:t})})),[2]}}))}))},S=function(e){var n=e.event,r=e.sessionId,i=e.deviceId;g.addEventToCurrentSequence(r,n.data).then((function(e){return e&&m({sequenceId:e.sequenceId,events:e.events,sessionId:e.sessionId,deviceId:i})})).catch((function(e){t.loggerProvider.warn("Failed to add event to session replay capture:",e)}))},[2,{sendCurrentSequenceEvents:b,addEvent:S,sendStoredEvents:w,flush:e}]}}))}))}},29953:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(55823),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.finalizedSequences={},t.sequences={},t.sequenceId=0,t}return(0,r.C6)(t,e),t.prototype.resetCurrentSequence=function(e){this.sequences[e]=[]},t.prototype.addSequence=function(e){var t=this.sequenceId++,n=(0,r.fX)([],(0,r.zs)(this.sequences[e]),!1);return this.finalizedSequences[t]={sessionId:e,events:n},this.resetCurrentSequence(e),{sequenceId:t,events:n,sessionId:e}},t.prototype.getSequencesToSend=function(){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){return[2,Object.entries(this.finalizedSequences).map((function(e){var t=(0,r.zs)(e,2),n=t[0],i=t[1],o=i.sessionId,s=i.events;return{sequenceId:Number(n),sessionId:o,events:s}}))]}))}))},t.prototype.storeCurrentSequence=function(e){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){return this.sequences[e]?[2,this.addSequence(e)]:[2,void 0]}))}))},t.prototype.addEventToCurrentSequence=function(e,t){return(0,r.sH)(this,void 0,void 0,(function(){var n;return(0,r.YH)(this,(function(r){return this.sequences[e]||this.resetCurrentSequence(e),this.shouldSplitEventsList(this.sequences[e],t)&&(n=this.addSequence(e)),this.sequences[e].push(t),[2,n]}))}))},t.prototype.storeSendingEvents=function(e,t){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(n){return this.finalizedSequences[this.sequenceId]={sessionId:e,events:t},[2,this.sequenceId++]}))}))},t.prototype.cleanUpSessionEventsStore=function(e,t){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){return void 0!==t&&delete this.finalizedSequences[t],[2]}))}
1))},t}(n(1375).S)},56903:(e,t,n)=>{var r;n.d(t,{k:()=>r}),function(e){e.RECORDING="recording",e.SENT="sent"}(r||(r={}))},42973:(e,t,n)=>{n.d(t,{F:()=>i});var r=n(55823),i=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=new Map;e.forEach((function(e){n.set(e.name,e.manager)})),this.managers=n}return e.prototype.sendStoredEvents=function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t;return(0,r.YH)(this,(function(n){switch(n.label){case 0:return t=[],this.managers.forEach((function(n){t.push(n.sendStoredEvents(e))})),[4,Promise.all(t)];case 1:return n.sent(),[2]}}))}))},e.prototype.addEvent=function(e){var t,n=e.sessionId,r=e.event,i=e.deviceId;null===(t=this.managers.get(r.type))||void 0===t||t.addEvent({sessionId:n,event:r,deviceId:i})},e.prototype.sendCurrentSequenceEvents=function(e){var t=e.sessionId,n=e.deviceId;this.managers.forEach((function(e){e.sendCurrentSequenceEvents({sessionId:t,deviceId:n})}))},e.prototype.flush=function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t;return(0,r.YH)(this,(function(n){switch(n.label){case 0:return t=[],this.managers.forEach((function(n){t.push(n.flush(e))})),[4,Promise.all(t)];case 1:return n.sent(),[2]}}))}))},e}()},70643:(e,t,n)=>{n.d(t,{GB:()=>f,J0:()=>l,QP:()=>b,Tt:()=>p,bp:()=>v,dO:()=>g,fI:()=>d,mW:()=>h,pO:()=>y,zr:()=>m});var r=n(55823),i=n(70556),o=n(90306),s=n(62120),a=n(9571),u=n(52706),c=function(e,t,n){switch(t){case"light":if("input"!==e)return!0;var r=n?(0,u.B)(n):"";return!(!r||!["password","hidden","email","tel"].includes(r)&&!n.autocomplete.startsWith("cc-"));case"medium":case"conservative":return!0;default:return c(e,s._,n)}},l=function(e,t){return function(n,r){return function(e,t,n){var r,i,o;if(void 0===t&&(t={defaultMaskLevel:s._}),n){if(n.closest("."+a.gq))return!0;if((null!==(r=t.maskSelector)&&void 0!==r?r:[]).some((function(e){return n.closest(e)})))return!0;if(n.closest("."+a.nS))return!1;if((null!==(i=t.unmaskSelector)&&void 0!==i?i:[]).some((function(e){return n.closest(e)})))return!1}return c(e,null!==(o=t.defaultMaskLevel)&&void 0!==o?o:s._,n)}(e,t,r)?n.replace(/[^\s]/g,"*"):n}},d=function(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t},f=function(e,t){var n=d(e.toString());return 31*Math.abs(n)%1e6/1e6<t},v=function(){var e=(0,i.m)();return(null==e?void 0:e.location)?e.location.href:""},h=function(e,t){return"".concat(t,"/").concat(e)},p=function(e,t){return t||(e===o.e.STAGING?a.Fh:e===o.e.EU?a.M9:a.fd)},g=function(e){if(!e.every((function(e){return"string"==typeof e.selector&&"string"==typeof e.replacement})))throw new Error("ugcFilterRules must be an array of objects with selector and replacement properties");if(!e.every((function(e){return"string"==typeof(t=e.selector)&&""!==t.trim()&&!!/^\/|^https?:\/\/[^\s]+$/.test(t);var t})))throw new Error("ugcFilterRules must be an array of objects with valid globs")},y=function(e,t){var n,i,o,s;try{for(var a=(0,r.Ju)(t),u=a.next();!u.done;u=a.next()){var c=u.value,l=(o=c.selector,void 0,s=o.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,"."),new RegExp("^".concat(s,"$")));if(l.test(e))return e.replace(l,c.replacement)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return e},m=function(){return(0,r.sH)(void 0,void 0,void 0,(function(){var e,t,n,o,s,u,c;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),(e=(0,i.m)())?[4,e.navigator.storage.estimate()]:[3,2];case 1:return t=r.sent(),n=t.usage,o=t.quota,s=t.usageDetails,u=n?Math.round(n/a.G2):0,c=n&&o?Math.round(1e3*(n/o+Number.EPSILON))/1e3:0,[2,{totalStorageSize:u,percentOfQuota:c,usageDetails:JSON.stringify(s)}];case 2:return[3,4];case 3:return r.sent(),[3,4];case 4:return[2,{totalStorageSize:0,percentOfQuota:0,usageDetails:""}]}}))}))},b=function(e){var t=(0,r.Cl)({},e),n=t.apiKey;return t.apiKey="****".concat(n.substring(n.length-4)),t}},15225:(e,t,n)=>{n.d(t,{Cd:()=>l,qm:()=>d,tU:()=>c});var r=n(55823),i=n(50583),o=n(55526),s=n(75251),a=n(70556),u=n(70643),c=function(e){var t=e.version,n=e.events,r=[];
1return n.forEach((function(e){var t=JSON.parse(e);t.count=1,"click"===t.type&&r.push(t)})),{version:t,events:r}},l=function(e){var t=e.version,n=e.events,i=[];n.forEach((function(e){var t=JSON.parse(e);"click"===t.type&&i.push(t)}));var o=i.reduce((function(e,t){var n=t.x,i=t.y,o=t.selector,s=t.timestamp,a=s-s%36e5,u="".concat(n,":").concat(i,":").concat(null!=o?o:"",":").concat(a);return e[u]?e[u].count+=1:e[u]=(0,r.Cl)((0,r.Cl)({},t),{timestamp:a,count:1}),e}),{});return{version:t,events:Object.values(o)}},d=function(e,t){var n=t.eventsManager,r=t.sessionId,c=t.deviceIdFn,l=t.mirror,d=t.ugcFilterRules;return function(t){if(t.type===i.T7.Click){var f=(0,a.m)();if(f){var v=f.location,h=f.innerHeight,p=f.innerWidth;if(v){var g=t.x,y=t.y;if(void 0!==g&&void 0!==y){var m,b=l.getNode(t.id);if(b)try{m=(0,s.n)(b)}catch(t){e.debug("error resolving selector from finder")}var w=(0,o.sq)(f),S={x:g+w.left,y:y+w.top,selector:m,viewportHeight:h,viewportWidth:p,pageUrl:(0,u.pO)(v.href,d),timestamp:Date.now(),type:"click"},E=c();E&&n.addEvent({sessionId:r,event:{type:"interaction",data:JSON.stringify(S)},deviceId:E})}}}}}}},57876:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(55526),i=n(77088),o=n(70556),s=n(70643),a=function(){function e(e,t){var n=this;this.timestamp=Date.now(),this.hook=function(e){n.update(e)},this.send=function(e){return function(t){var i,a,u=e(),c=(0,o.m)();c&&u&&n.transport.send(u,{version:1,events:[{maxScrollX:n._maxScrollX,maxScrollY:n._maxScrollY,maxScrollWidth:n._maxScrollWidth,maxScrollHeight:n._maxScrollHeight,viewportHeight:(0,r.MR)(),viewportWidth:(0,r.No)(),pageUrl:(0,s.pO)(c.location.href,null!==(a=null===(i=n.config.interactionConfig)||void 0===i?void 0:i.ugcFilterRules)&&void 0!==a?a:[]),timestamp:n.timestamp,type:"scroll"}]})}},this._maxScrollX=0,this._maxScrollY=0,this._maxScrollWidth=(0,r.No)(),this._maxScrollHeight=(0,r.MR)(),this.config=t,this.transport=e}return e.default=function(t,n){return new e(new i.U(t,n),n)},Object.defineProperty(e.prototype,"maxScrollX",{get:function(){return this._maxScrollX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollY",{get:function(){return this._maxScrollY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollWidth",{get:function(){return this._maxScrollWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollHeight",{get:function(){return this._maxScrollHeight},enumerable:!1,configurable:!0}),e.prototype.update=function(e){var t=Date.now();if(e.x>this._maxScrollX){var n=(0,r.No)();this._maxScrollX=e.x;var i=e.x+n;i>this._maxScrollWidth&&(this._maxScrollWidth=i),this.timestamp=t}if(e.y>this._maxScrollY){var o=(0,r.MR)();this._maxScrollY=e.y;var s=e.y+o;s>this._maxScrollHeight&&(this._maxScrollHeight=s),this.timestamp=t}},e}()},82626:(e,t,n)=>{n.d(t,{P:()=>i});var r=n(70643),i=function(e){var t=e.sessionId,n=e.deviceId;this.deviceId=n,this.sessionId=t,t&&n&&(this.sessionReplayId=(0,r.mW)(t,n))}},95621:(e,t,n)=>{n.d(t,{Lc:()=>a,S8:()=>l,Ts:()=>i,bX:()=>u,mY:()=>o,n_:()=>c,u0:()=>s});var r=n(44983),i=r.A.init,o=r.A.setSessionId,s=r.A.getSessionId,a=r.A.getSessionReplayProperties,u=r.A.flush,c=r.A.shutdown,l=r.A.evaluateTargetingAndCapture},75251:(e,t,n)=>{n.d(t,{n:()=>a});var r,i,o,s=n(55823);function a(e,t){if(o=new Date,e.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.");if("html"===e.tagName.toLowerCase())return"html";var n={root:document.body,idName:function(e){return!0},className:function(e){return!0},tagName:function(e){return!0},attr:function(e,t){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4,timeoutMs:void 0};r=(0,s.Cl)((0,s.Cl)({},n),t),i=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(r.root,n);var a=u(e,"all",(function(){return u(e,"two",(function(){return u(e,"one",(function(){return u(e,"none")}))}))}));if(a){var c=m(b(a,e));return c.length>0&&(a=c[0]),l(a)}throw new Error("Selector was not found.")}function u(e,t,n){for(var i=null,a=[],u=e,l=0,d=function(){var e,d,f=(new Date).getTime()-o.getTime();if(void 0!==r.timeoutMs&&f>r.timeoutMs)throw new Error("Timeout: Can't find a unique selector after ".concat(f,"ms"));var g=p(function(e){var t=e.getAttribute("id");return t&&r.idName(t)?{name:"#"+CSS.escape(t),penalty:0}:null}(u))||p.apply(void 0,(0,s.fX)([],(0,s.zs)(function(e){return Array.from(e.attributes).filter((function(e){return r.attr(e.name,e.value)})).map((function(e){return{name:"[".concat(CSS.escape(e.name),'="').concat(CSS.escape(e.value),'"]'),penalty:.5}}))}(u)),!1))||p.apply(void 0,(0,s.fX)([],(0,s.zs)(function(e){return Array.from(e.classList).filter(r.className).map((function(e){return{name:"."+CSS.escape(e),penalty:1}}))}(u)),!1))||p(function(e){var t=e.tagName.toLowerCase();return r.tagName(t)?{name:t,penalty:2}:null}(u))||[{name:"*",penalty:3}],y=function(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;for(var r=0;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling;return r}(u);if("all"==t)y&&(g=g.concat(g.filter(h).map((function(e){return v(e,y)}))));else if("two"==t)g=g.slice(0,1),y&&(g=g.concat(g.filter(h).map((function(e){return v(e,y)}))));else if("one"==t){var m=(0,s.zs)(g=g.slice(0,1),1)[0];y&&h(m)&&(g=[v(m,y)])}else"none"==t&&(g=[{name:"*",penalty:3}],y&&(g=[v(g[0],y)]));try{for(var b=(e=void 0,(0,s.Ju)(g)),w=b.next();!w.done;w=b.next())(m=w.value).level=l}catch(t){e={error:t}}finally{try{w&&!w.done&&(d=b.return)&&d.call(b)}finally{if(e)throw e.error}}if(a.push(g),a.length>=r.seedMinLength&&(i=c(a,n)))return"break";u=u.parentElement,l++};u&&"break"!==d(););
1return i||(i=c(a,n)),!i&&n?n():i}function c(e,t){var n,i,o=m(y(e));if(o.length>r.threshold)return t?t():null;try{for(var a=(0,s.Ju)(o),u=a.next();!u.done;u=a.next()){var c=u.value;if(f(c))return c}}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return null}function l(e){for(var t=e[0],n=t.name,r=1;r<e.length;r++){var i=e[r].level||0;n=t.level===i-1?"".concat(e[r].name," > ").concat(n):"".concat(e[r].name," ").concat(n),t=e[r]}return n}function d(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function f(e){var t=l(e);switch(i.querySelectorAll(t).length){case 0:throw new Error("Can't select any node with this selector: ".concat(t));case 1:return!0;default:return!1}}function v(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function h(e){return"html"!==e.name&&!e.name.startsWith("#")}function p(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter(g);return n.length>0?n:null}function g(e){return null!=e}function y(e,t){var n,r,i,o,a,u;return void 0===t&&(t=[]),(0,s.YH)(this,(function(c){switch(c.label){case 0:if(!(e.length>0))return[3,9];c.label=1;case 1:c.trys.push([1,6,7,8]),n=(0,s.Ju)(e[0]),r=n.next(),c.label=2;case 2:return r.done?[3,5]:(i=r.value,[5,(0,s.Ju)(y(e.slice(1,e.length),t.concat(i)))]);case 3:c.sent(),c.label=4;case 4:return r=n.next(),[3,2];case 5:return[3,8];case 6:return o=c.sent(),a={error:o},[3,8];case 7:try{r&&!r.done&&(u=n.return)&&u.call(n)}finally{if(a)throw a.error}return[7];case 8:return[3,11];case 9:return[4,t];case 10:c.sent(),c.label=11;case 11:return[2]}}
1))}function m(e){return(0,s.fX)([],(0,s.zs)(e),!1).sort((function(e,t){return d(e)-d(t)}))}function b(e,t,n){var o,a,u;return void 0===n&&(n={counter:0,visited:new Map}),(0,s.YH)(this,(function(c){switch(c.label){case 0:if(!(e.length>2&&e.length>r.optimizedMinLength))return[3,5];o=1,c.label=1;case 1:return o<e.length-1?n.counter>r.maxNumberOfTries?[2]:(n.counter+=1,(a=(0,s.fX)([],(0,s.zs)(e),!1)).splice(o,1),u=l(a),n.visited.has(u)?[2]:f(a)&&function(e,t){return i.querySelector(l(e))===t}(a,t)?[4,a]:[3,4]):[3,5];case 2:return c.sent(),n.visited.set(u,!0),[5,(0,s.Ju)(b(a,t,n))];case 3:c.sent(),c.label=4;case 4:return o++,[3,1];case 5:return[2]}}))}},83608:(e,t,n)=>{n.d(t,{R:()=>r});var r=function(){function e(e){this.logger=e,this.log=this.getSafeMethod("log"),this.warn=this.getSafeMethod("warn"),this.error=this.getSafeMethod("error"),this.debug=this.getSafeMethod("debug")}return e.prototype.getSafeMethod=function(e){var t;if(!this.logger)return function(){};var n=this.logger[e];return"function"==typeof n?(null!==(t=n.__rrweb_original__)&&void 0!==t?t:n).bind(this.logger):function(){}},e.prototype.enable=function(e){this.logger.enable(e)},e.prototype.disable=function(){this.logger.disable()},e}()},38912:(e,t,n)=>{n.d(t,{$k:()=>r,Kr:()=>a,a_:()=>o,nM:()=>s,ot:()=>u,wg:()=>i});var r="Unexpected error occurred",i="Network error occurred, event batch rejected",o="Session replay event batch rejected due to exceeded retry count",s="Failed to store session replay events in IndexedDB",a="Session replay event batch not sent due to missing device ID",u="Session replay event batch not sent due to missing api key"},29322:(e,t,n)=>{n.d(t,{g:()=>s});var r=n(55823),i=n(70643),o=n(9571);function s(e){return void 0===e&&(e={}),{name:"amplitude/url-tracking@1",observer:function(t,n,s){var a,u,c,l=(0,r.Cl)((0,r.Cl)({},e),s),d=l.ugcFilterRules||[],f=null!==(a=l.enablePolling)&&void 0!==a&&a,v=null!==(u=l.pollingInterval)&&void 0!==u?u:o.nM,h=null!==(c=l.captureDocumentTitle)&&void 0!==c&&c;if(!n)return function(){};var p=void 0,g=function(){return n.location&&n.location.href||""},y=function(){var e=g();if(void 0===p||e!==p){p=e;var r=function(){var e=n.innerHeight,t=n.innerWidth,r=n.document,o=g(),s="";return h&&(s=(null==r?void 0:r.title)||""),{href:d.length>0?(0,i.pO)(o,d):o,title:s,viewportHeight:e,viewportWidth:t,type:"url-change-event"}}();t(r)}},m=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=e.apply(this,t);return y(),r}},b=function(){y()};if(f){var w=n.setInterval((function(){y()}),v);return y(),function(){w&&n.clearInterval(w)}}if(n.history){var S=n.history.pushState.bind(n.history),E=n.history.replaceState.bind(n.history);return n.history.pushState=m(S),n.history.replaceState=m(E),n.addEventListener("popstate",y),n.addEventListener("hashchange",b),y(),function(){n.history.pushState=S,n.history.replaceState=E,n.removeEventListener("popstate",y),n.removeEventListener("hashchange",b)}}return n.addEventListener("hashchange",b),y(),function(){n.removeEventListener("hashchange",b)}},options:e}}s()},44983:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(53797),i=n(43461),o=function(e){return function(){var t=e.config||(0,i.Y)();return{logger:t.loggerProvider,logLevel:t.logLevel}}};const s=(a=new(n(75148).I),{init:(0,r.nA)(a.init.bind(a),"init",o(a)),evaluateTargetingAndCapture:(0,r.nA)(a.evaluateTargetingAndCapture.bind(a),"evaluateTargetingAndRecord",o(a)),setSessionId:(0,r.nA)(a.setSessionId.bind(a),"setSessionId",o(a)),getSessionId:(0,r.nA)(a.getSessionId.bind(a),"getSessionId",o(a)),getSessionReplayProperties:(0,r.nA)(a.getSessionReplayProperties.bind(a),"getSessionReplayProperties",o(a)),flush:(0,r.nA)(a.flush.bind(a),"flush",o(a)),shutdown:(0,r.nA)(a.shutdown.bind(a),"shutdown",o(a))});var a},75148:(e,t,n)=>{n.d(t,{I:()=>I});var r=n(55823),i=n(70556),o=n(94541),s=n(94478),a=n(94396),u=n(59750),c=n(50583),l=n(87735),d=n(9571),f=n(50166),v=n(50015),h=n(42973),p=n(70643),g=n(15225),y=n(57876),m=n(82626),b=n(83608),w=n(3999),S=n(62150),E=n(29322),I=function(){function e(){var e=this;this.name="@amplitude/session-replay-browser",this.recordCancelCallback=null,this.eventCount=0,this.sessionTargetingMatch=!1,this.pageLeaveFns=[],this.recordFunction=null,this.teardownEventListeners=function(t){var n=(0,i.m)();n&&(n.removeEventListener("blur",e.blurListener),n.removeEventListener("focus",e.focusListener),!t&&n.addEventListener("blur",e.blurListener),!t&&n.addEventListener("focus",e.focusListener),n.self&&"onpagehide"in n.self?(n.removeEventListener("pagehide",e.pageLeaveListener),!t&&n.addEventListener("pagehide",e.pageLeaveListener)):(n.removeEventListener("beforeunload",e.pageLeaveListener),!t&&n.addEventListener("beforeunload",e.pageLeaveListener)))},this.blurListener=function(){e.sendEvents()},this.focusListener=function(){e.recordEvents(!1)},this.pageLeaveListener=function(t){e.pageLeaveFns.forEach((function(e){e(t)}))},this.evaluateTargetingAndCapture=function(t,n){return void 0===n&&(n=!1),(0,r.sH)(e,void 0,void 0,(function(){var e,i;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return this.identifiers&&this.identifiers.sessionId&&this.config?(this.lastTargetingParams=t,!this.config.targetingConfig||this.sessionTargetingMatch?[3,2]:((e=t.event)&&Object.values(o.S).includes(e.event_type)&&(e=void 0),i=this,[4,(0,w.n)({sessionId:this.identifiers.sessionId,targetingConfig:this.config.targetingConfig,loggerProvider:this.loggerProvider,apiKey:this.config.apiKey,targetingParams:{userProperties:t.userProperties,event:e}})])):(this.identifiers&&!this.identifiers.sessionId?this.loggerProvider.log("Session ID has not been set yet, cannot evaluate targeting for Session Replay."):this.loggerProvider.warn("Session replay init has not been called, cannot evaluate targeting."),[2]);case 1:i.sessionTargetingMatch=r.sent(),this.loggerProvider.debug(JSON.stringify({name:"targeted replay capture config",sessionTargetingMatch:this.sessionTargetingMatch,event:e,targetingParams:t},null,2)),r.label=2;case 2:return n?(this.initialize(!0),[3,5]):[3,3];case 3:return[4,this.recordEvents()];case 4:r.sent(),r.label=5;case 5:return[2]}}
1))}))},this.addCustomRRWebEvent=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i=!0),(0,r.sH)(e,void 0,void 0,(function(){var e,o,s,a;return(0,r.YH)(this,(function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),e=void 0,(o=this.config)&&t!==d.KW.METADATA?(e={config:(0,p.QP)(o),version:S.x},i?[4,(0,p.zr)()]:[3,2]):[3,2];case 1:s=u.sent(),e=(0,r.Cl)((0,r.Cl)({},s),e),u.label=2;case 2:return this.recordCancelCallback&&this.recordFunction?this.recordFunction.addCustomEvent(t,(0,r.Cl)((0,r.Cl)({},n),e)):this.loggerProvider.debug("Not able to add custom replay capture event ".concat(t," due to no ongoing recording.")),[3,4];case 3:return a=u.sent(),this.loggerProvider.debug("Error while adding custom replay capture event: ",a),[3,4];case 4:return[2]}}))}))},this.stopRecordingEvents=function(){var t;try{e.loggerProvider.log("Session Replay capture stopping."),e.recordCancelCallback&&e.recordCancelCallback(),e.recordCancelCallback=null,null===(t=e.networkObservers)||void 0===t||t.stop()}catch(t){var n=t;e.loggerProvider.warn("Error occurred while stopping replay capture: ".concat(n.toString()))}},this.loggerProvider=new b.R(new s.V)}return e.prototype.init=function(e,t){return(0,a.m)(this._init(e,t))},e.prototype._init=function(e,t){var n,o,a,u,c,p;return(0,r.sH)(this,void 0,void 0,(function(){var w,E,I,T,_,C,P,k,O,R,A,x,N,H;return(0,r.YH)(this,(function(L){switch(L.label){case 0:return this.loggerProvider=new b.R(t.loggerProvider||new s.V),Object.prototype.hasOwnProperty.call(t,"logLevel")&&this.loggerProvider.enable(t.logLevel),this.identifiers=new m.P({sessionId:t.sessionId,deviceId:t.deviceId}),w=this,[4,(0,l.ie)(e,t)];case 1:return w.joinedConfigGenerator=L.sent(),[4,this.joinedConfigGenerator.generateJoinedConfig(this.identifiers.sessionId)];case 2:E=L.sent(),I=E.joinedConfig,T=E.localConfig,_=E.remoteConfig,this.config=I,this.setMetadata(t.sessionId,I,T,_,null===(n=t.version)||void 0===n?void 0:n.version,S.x,null===(o=t.version)||void 0===o?void 0:o.type),t.sessionId&&(null===(a=this.config.interactionConfig)||void 0===a?void 0:a.enabled)&&(C=y.A.default({sessionId:t.sessionId,type:"interaction"},this.config),this.pageLeaveFns=[C.send(this.getDeviceId.bind(this)).bind(C)],this.scrollHook=C.hook.bind(C)),P=[],"idb"!==(k=this.config.storeType)||(null===(u=(0,i.m)())||void 0===u?void 0:u.indexedDB)||(k="memory",this.loggerProvider.warn("Could not use preferred indexedDB storage, reverting to in memory option.")),this.loggerProvider.log("Using ".concat(k," for event storage.")),L.label=3;case 3:return L.trys.push([3,5,,6]),[4,(0,v.z)({config:this.config,sessionId:this.identifiers.sessionId,type:"replay",storeType:k})];case 4:return O=L.sent(),P.push({name:"replay",manager:O}),[3,6];case 5:return R=L.sent(),H=R,this.loggerProvider.warn("Error occurred while creating replay events manager: ".concat(H.toString())),[3,6];case 6:if(!(null===(c=this.config.interactionConfig)||void 0===c?void 0:c.enabled))return[3,10];A=this.config.interactionConfig.batch?g.Cd:g.tU,L.label=7;case 7:return L.trys.push([7,9,,10]),[4,(0,v.z)({config:this.config,sessionId:this.identifiers.sessionId,type:"interaction",minInterval:null!==(p=this.config.interactionConfig.trackEveryNms)&&void 0!==p?p:d.sD,maxInterval:d.Ot,payloadBatcher:A,storeType:k})];case 8:return x=L.sent(),P.push({name:"interaction",manager:x}),[3,10];case 9:return N=L.sent(),H=N,this.loggerProvider.warn("Error occurred while creating interaction events manager: ".concat(H.toString())),[3,10];case 10:return this.eventsManager=new(h.F.bind.apply(h.F,(0,r.fX)([void 0],(0,r.zs)(P),!1))),this.eventCompressor&&this.eventCompressor.terminate(),this.eventCompressor=new f.i(this.eventsManager,this.config,this.getDeviceId()),[4,this.initializeNetworkObservers()];case 11:return L.sent(),this.loggerProvider.log("Installing @amplitude/session-replay-browser."),this.teardownEventListeners(!1),[4,this.evaluateTargetingAndCapture({userProperties:t.userProperties},!0)];case 12:return L.sent(),[2]}}))}))},e.prototype.setSessionId=function(e,t){return(0,a.m)(this.asyncSetSessionId(e,t))},e.prototype.asyncSetSessionId=function(e,t,n){return(0,r.sH)(this,void 0,void 0,(function(){var i,o,s;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return this.sessionTargetingMatch=!1,this.lastShouldRecordDecision=void 0,(i=this.identifiers&&this.identifiers.sessionId)&&this.sendEvents(i),o=t||this.getDeviceId(),this.identifiers=new m.P({sessionId:e,deviceId:o}),this.joinedConfigGenerator&&i?[4,this.joinedConfigGenerator.generateJoinedConfig(this.identifiers.sessionId)]:[3,2];case 1:s=r.sent().joinedConfig,this.config=s,r.label=2;case 2:return[4,this.evaluateTargetingAndCapture({userProperties:null==n?void 0:n.userProperties})];case 3:return r.sent(),[2]}}))}))},e.prototype.getSessionReplayProperties=function(){var e,t=this.config,n=this.identifiers;if(!t||!n)return this.loggerProvider.warn("Session replay init has not been called, cannot get session replay properties."),{};var r=this.getShouldRecord(),i={};return r&&((e={})[d.vC]=n.sessionReplayId?n.sessionReplayId:null,i=e,t.debugMode&&(i[d.xE]=JSON.stringify({appHash:(0,p.fI)(t.apiKey).toString()}))),this.addCustomRRWebEvent(d.KW.GET_SR_PROPS,{shouldRecord:r,eventProperties:i},10===this.eventCount),10===this.eventCount&&(this.eventCount=0),this.eventCount++,i},e.prototype.sendEvents=function(e){var t,n=e||(null===(t=this.identifiers)||void 0===t?void 0:t.sessionId),r=this.getDeviceId();this.eventsManager&&n&&r&&this.eventsManager.sendCurrentSequenceEvents({sessionId:n,deviceId:r})},e.prototype.initialize=function(e){var t;return void 0===e&&(e=!1),(0,r.sH)(this,void 0,void 0,(function(){var n;return(0,r.YH)(this,(function(r){return(null===(t=this.identifiers)||void 0===t?void 0:t.sessionId)?(n=this.getDeviceId())?(this.eventsManager&&e&&this.eventsManager.sendStoredEvents({deviceId:n}),[2,this.recordEvents()]):(this.loggerProvider.log("Session is not being recorded due to lack of device id."),[2,Promise.resolve()]):(this.loggerProvider.log("Session is not being recorded due to lack of session id."),[2,Promise.resolve()])}))}))},e.prototype.shouldOptOut=function(){var e,t,n;return(null===(e=this.config)||void 0===e?void 0:e.instanceName)&&(n=(0,u.w$)(this.config.instanceName).identityStore.getIdentity().optOut),void 0!==n?n:null===(t=this.config)||void 0===t?void 0:t.optOut},e.prototype.getShouldRecord=function(){if(!this.identifiers||!this.config||!this.identifiers.sessionId)return this.loggerProvider.warn("Session is not being recorded due to lack of config, please call sessionReplay.init."),!1;if(!this.config.captureEnabled)return this.loggerProvider.log("Session ".concat(this.identifiers.sessionId," not being captured due to capture being disabled for project or because the remote config could not be fetched.")),!1;if(this.shouldOptOut())return this.loggerProvider.log("Opting session ".concat(this.identifiers.sessionId," out of recording due to optOut config.")),!1;var e=!1,t="",n=!1;return this.config.targetingConfig?this.sessionTargetingMatch?(t="Capturing replays for session ".concat(this.identifiers.sessionId," due to matching targeting conditions."),this.loggerProvider.log(t),e=!0,n=!0):(t="Not capturing replays for session ".concat(this.identifiers.sessionId," due to not matching targeting conditions."),this.loggerProvider.log(t),e=!1,n=!1):(0,p.GB)(this.identifiers.sessionId,this.config.sampleRate)?(e=!0,n=!0):(t="Opting session ".concat(this.identifiers.sessionId," out of recording due to sample rate."),this.loggerProvider.log(t),e=!1,n=!1),this.lastShouldRecordDecision!==e&&this.config.targetingConfig&&(this.addCustomRRWebEvent(d.KW.TARGETING_DECISION,{message:t,sessionId:this.identifiers.sessionId,matched:n,targetingParams:this.lastTargetingParams}),this.lastShouldRecordDecision=e),e},e.prototype.getBlockSelectors=function(){var e,t,n,r=null!==(n=null===(t=null===(e=this.config)||void 0===e?void 0:e.privacyConfig)||void 0===t?void 0:t.blockSelector)&&void 0!==n?n:[];if(0!==r.length)return r},e.prototype.getMaskTextSelectors=function(){var e,t,n,r;return"conservative"===(null===(t=null===(e=this.config)||void 0===e?void 0:e.privacyConfig)||void 0===t?void 0:t.defaultMaskLevel)?"*":(null===(r=null===(n=this.config)||void 0===n?void 0:n.privacyConfig)||void 0===r?void 0:r.maskSelector)||void 0},e.prototype.getRecordingPlugins=function(e){var t,i,o,s,a,u;return(0,r.sH)(this,void 0,void 0,(function(){var c,l,d,f;return(0,r.YH)(this,(function(r){switch(r.label){case 0:c=[];try{l=(0,E.g)({ugcFilterRules:(null===(i=null===(t=this.config)||void 0===t?void 0:t.interactionConfig)||void 0===i?void 0:i.ugcFilterRules)||[],enablePolling:(null===(o=this.config)||void 0===o?void 0:o.enableUrlChangePolling)||!1,pollingInterval:null===(s=this.config)||void 0===s?void 0:s.urlChangePollingInterval,captureDocumentTitle:null===(a=this.config)||void 0===a?void 0:a.captureDocumentTitle}),c.push(l)}catch(e){this.loggerProvider.warn("Failed to create URL tracking plugin:",e)}if(!(null===(u=null==e?void 0:e.console)||void 0===u?void 0:u.enabled))return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,n.e(7743).then(n.bind(n,67743))];case 2:return d=r.sent().getRecordConsolePlugin,c.push(d({level:e.console.levels})),[3,4];case 3:return f=r.sent(),this.loggerProvider.warn("Failed to load console plugin:",f),[3,4];case 4:return[2,c.length>0?c:void 0]}}))}))},e.prototype.getRecordFunction=function(){return(0,r.sH)(this,void 0,void 0,(function(){var e,t;return(0,r.YH)(this,(function(r){switch(r.label){case 0:if(this.recordFunction)return[2,this.recordFunction];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,n.e(2295).then(n.bind(n,52295))];case 2:return e=r.sent().record,this.recordFunction=e,[2,e];case 3:return t=r.sent(),this.loggerProvider.warn("Failed to load rrweb-record module:",t),[2,null];case 4:return[2]}}
1))}))},e.prototype.recordEvents=function(e){var t,n,i,o,s;return void 0===e&&(e=!0),(0,r.sH)(this,void 0,void 0,(function(){var a,u,l,f,v,h,y,m,b,w,S,E,I,T=this;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return a=this.config,u=this.getShouldRecord(),l=null===(t=this.identifiers)||void 0===t?void 0:t.sessionId,u&&l&&a?(this.stopRecordingEvents(),[4,this.getRecordFunction()]):[2];case 1:return(f=r.sent())?[4,this.initializeNetworkObservers()]:[2];case 2:r.sent(),null===(n=this.networkObservers)||void 0===n||n.start((function(e){T.addCustomRRWebEvent(d.KW.FETCH_REQUEST,e)})),v=a.privacyConfig,h=a.interactionConfig,y=a.loggingConfig,m=(null==h?void 0:h.enabled)?{mouseInteraction:this.eventsManager&&(0,g.qm)(this.loggerProvider,{eventsManager:this.eventsManager,sessionId:l,deviceIdFn:this.getDeviceId.bind(this),mirror:f.mirror,ugcFilterRules:null!==(i=h.ugcFilterRules)&&void 0!==i?i:[]}),scroll:this.scrollHook}:{},b=(null==h?void 0:h.enabled)&&h.ugcFilterRules?h.ugcFilterRules:[],this.loggerProvider.log("Session Replay capture beginning for ".concat(l,".")),r.label=3;case 3:return r.trys.push([3,5,,6]),w=this,S=f,I={emit:function(e){if(T.shouldOptOut())return T.loggerProvider.log("Opting session ".concat(l," out of recording due to optOut config.")),T.stopRecordingEvents(),void T.sendEvents();e.type===c.Bx.Meta&&(e.data.href=(0,p.pO)(e.data.href,b)),T.eventCompressor&&T.eventCompressor.enqueueEvent(e,l)},inlineStylesheet:a.shouldInlineStylesheet,hooks:m,maskAllInputs:!0,maskTextClass:d.gq,blockClass:d.j7,blockSelector:this.getBlockSelectors(),applyBackgroundColorToBlockedElements:a.applyBackgroundColorToBlockedElements,maskInputFn:(0,p.J0)("input",v),maskTextFn:(0,p.J0)("text",v),maskTextSelector:this.getMaskTextSelectors(),recordCanvas:!1,slimDOMOptions:{script:null===(o=a.omitElementTags)||void 0===o?void 0:o.script,comment:null===(s=a.omitElementTags)||void 0===s?void 0:s.comment},errorHandler:function(e){var t=e;if(t.message.includes("insertRule")&&t.message.includes("CSSStyleSheet"))throw t;if(t._external_)throw t;return T.loggerProvider.warn("Error while capturing replay: ",t.toString()),!0}},[4,this.getRecordingPlugins(y)];case 4:return w.recordCancelCallback=S.apply(void 0,[(I.plugins=r.sent(),I)]),this.addCustomRRWebEvent(d.KW.DEBUG_INFO),e&&this.addCustomRRWebEvent(d.KW.METADATA,this.metadata),[3,6];case 5:return E=r.sent(),this.loggerProvider.warn("Failed to initialize session replay:",E),[3,6];case 6:return[2]}}
1))}))},e.prototype.getDeviceId=function(){var e;return null===(e=this.identifiers)||void 0===e?void 0:e.deviceId},e.prototype.getSessionId=function(){var e;return null===(e=this.identifiers)||void 0===e?void 0:e.sessionId},e.prototype.flush=function(e){var t;return void 0===e&&(e=!1),(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(n){return[2,null===(t=this.eventsManager)||void 0===t?void 0:t.flush(e)]}))}))},e.prototype.shutdown=function(){this.teardownEventListeners(!0),this.stopRecordingEvents(),this.sendEvents()},e.prototype.mapSDKType=function(e){return"plugin"===e?"@amplitude/plugin-session-replay-browser":"segment"===e?"@amplitude/segment-session-replay-plugin":null},e.prototype.setMetadata=function(e,t,n,r,i,o,s){var a=(null==e?void 0:e.toString())?(0,p.fI)(e.toString()):void 0;this.metadata={joinedConfig:t,localConfig:n,remoteConfig:r,sessionId:e,hashValue:a,sampleRate:t.sampleRate,replaySDKType:this.mapSDKType(s),replaySDKVersion:i,standaloneSDKType:"@amplitude/session-replay-browser",standaloneSDKVersion:o}},e.prototype.initializeNetworkObservers=function(){var e,t,i;return(0,r.sH)(this,void 0,void 0,(function(){var o,s;return(0,r.YH)(this,(function(r){switch(r.label){case 0:if(!(null===(i=null===(t=null===(e=this.config)||void 0===e?void 0:e.loggingConfig)||void 0===t?void 0:t.network)||void 0===i?void 0:i.enabled)||this.networkObservers)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,n.e(7373).then(n.bind(n,77373))];case 2:return o=r.sent().NetworkObservers,this.networkObservers=new o,[3,4];case 3:return s=r.sent(),this.loggerProvider.warn("Failed to import or instantiate NetworkObservers:",s),[3,4];case 4:return[2]}}
1))}))},e}()},26905:(e,t,n)=>{n.d(t,{uD:()=>o});var r=n(55823),i=n(32927),o=new function(){var e=this;this.dbs={},this.createStore=function(t){return(0,r.sH)(e,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){switch(e.label){case 0:return[4,(0,i.P2)(t,1,{upgrade:function(e){e.objectStoreNames.contains("sessionTargetingMatch")||e.createObjectStore("sessionTargetingMatch",{keyPath:"sessionId"})}})];case 1:return[2,e.sent()]}}))}))},this.openOrCreateDB=function(t){return(0,r.sH)(e,void 0,void 0,(function(){var e,n;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return this.dbs&&this.dbs[t]?[2,this.dbs[t]]:(e="".concat(t.substring(0,10),"_amp_session_replay_targeting"),[4,this.createStore(e)]);case 1:return n=r.sent(),this.dbs[t]=n,[2,n]}}))}))},this.getTargetingMatchForSession=function(t){var n=t.loggerProvider,i=t.apiKey,o=t.sessionId;return(0,r.sH)(e,void 0,void 0,(function(){var e,t,s,a;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,this.openOrCreateDB(i)];case 1:return e=r.sent(),t=String(o),[4,e.get("sessionTargetingMatch",t)];case 2:return[2,null==(s=r.sent())?void 0:s.targetingMatch];case 3:return a=r.sent(),n.warn("Failed to get targeting match for session id ".concat(o,": ").concat(a)),[3,4];case 4:return[2,void 0]}}))}))},this.storeTargetingMatchForSession=function(t){var n=t.loggerProvider,i=t.apiKey,o=t.sessionId,s=t.targetingMatch;return(0,r.sH)(e,void 0,void 0,(function(){var e,t,a;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,this.openOrCreateDB(i)];case 1:return e=r.sent(),t=String(o),[4,e.put("sessionTargetingMatch",{targetingMatch:s,sessionId:t,lastUpdated:Date.now()})];case 2:return[2,r.sent()];case 3:return a=r.sent(),n.warn("Failed to store targeting match for session id ".concat(o,": ").concat(a)),[3,4];case 4:return[2,void 0]}}))}))},this.clearStoreOfOldSessions=function(t){var n=t.loggerProvider,i=t.apiKey,o=t.currentSessionId;return(0,r.sH)(e,void 0,void 0,(function(){var e,t,s,a,u,c,l,d;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,8,,9]),[4,this.openOrCreateDB(i)];case 1:return e=r.sent(),t=String(o),[4,(s=e.transaction("sessionTargetingMatch","readwrite")).store.getAll()];case 2:a=r.sent(),u=0,r.label=3;case 3:return u<a.length?(c=a[u],l=Date.now()-c.lastUpdated,c.sessionId!==t&&l>1728e5?[4,s.store.delete(c.sessionId)]:[3,5]):[3,6];case 4:r.sent(),r.label=5;case 5:return u++,[3,3];case 6:return[4,s.done];case 7:return r.sent(),[3,9];case 8:return d=r.sent(),n.warn("Failed to clear old targeting matches for sessions: ".concat(d)),[3,9];case 9:return[2]}}
1))}))}}},3999:(e,t,n)=>{n.d(t,{n:()=>o});var r=n(55823),i=n(26905),o=function(e){var t=e.sessionId,o=e.targetingConfig,s=e.loggerProvider,a=e.apiKey,u=e.targetingParams;return(0,r.sH)(void 0,void 0,void 0,(function(){var e,c,l,d;return(0,r.YH)(this,(function(f){switch(f.label){case 0:return[4,i.uD.clearStoreOfOldSessions({loggerProvider:s,apiKey:a,currentSessionId:t})];case 1:return f.sent(),[4,i.uD.getTargetingMatchForSession({loggerProvider:s,apiKey:a,sessionId:t})];case 2:if(!0===f.sent())return[2,!0];e=!0,f.label=3;case 3:return f.trys.push([3,6,,7]),[4,n.e(8812).then(n.bind(n,88812))];case 4:return[4,(0,f.sent().evaluateTargeting)((0,r.Cl)((0,r.Cl)({},u),{flag:o,sessionId:t,apiKey:a,loggerProvider:s}))];case 5:return(c=f.sent())&&c.sr_targeting_config&&(e="on"===c.sr_targeting_config.key),i.uD.storeTargetingMatchForSession({loggerProvider:s,apiKey:a,sessionId:t,targetingMatch:e}),[3,7];case 6:return l=f.sent(),d=l,s.warn(d.message),[3,7];case 7:return[2,e]}}))}))}},21204:(e,t,n)=>{n.d(t,{b:()=>l});var r=n(55823),i=n(89794),o=n(63618),s=n(70643),a=n(38912),u=n(62150),c=n(9571),l=function(){function e(e){var t=e.trackServerUrl,n=e.loggerProvider,r=e.payloadBatcher;this.storageKey="",this.retryTimeout=1e3,this.scheduled=null,this.queue=[],this.loggerProvider=n,this.payloadBatcher=r||function(e){return e},this.trackServerUrl=t}return e.prototype.sendEventsList=function(e){this.addToQueue((0,r.Cl)((0,r.Cl)({},e),{attempts:0,timeout:0}))},e.prototype.addToQueue=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.filter((function(t){return t.attempts<(t.flushMaxRetries||0)?(t.attempts+=1,!0):(e.completeRequest({context:t,err:a.a_}),!1)})).forEach((function(t){e.queue=e.queue.concat(t),0!==t.timeout?setTimeout((function(){t.timeout=0,e.schedule(0)}),t.timeout):e.schedule(0)}))},e.prototype.schedule=function(e){var t=this;this.scheduled||(this.scheduled=setTimeout((function(){t.flush(!0).then((function(){t.queue.length>0&&t.schedule(e)}))}),e))},e.prototype.flush=function(e){return void 0===e&&(e=!1),(0,r.sH)(this,void 0,void 0,(function(){var t,n,i=this;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return t=[],n=[],this.queue.forEach((function(e){return 0===e.timeout?t.push(e):n.push(e)})),this.queue=n,this.scheduled&&(clearTimeout(this.scheduled),this.scheduled=null),[4,Promise.all(t.map((function(t){return i.send(t,e)})))];case 1:return r.sent(),[2]}}))}))},e.prototype.send=function(e,t){var n,i;return void 0===t&&(t=!0),(0,r.sH)(this,void 0,void 0,(function(){var o,l,d,f,v,h,p,g,y,m,b,w,S;return(0,r.YH)(this,(function(r){switch(r.label){case 0:if(!(o=e.apiKey))return[2,this.completeRequest({context:e,err:a.ot})];if(!(l=e.deviceId))return[2,this.completeRequest({context:e,err:a.Kr})];if(d=(0,s.bp)(),f=u.x,v=e.sampleRate,h=new URLSearchParams({device_id:l,session_id:"".concat(e.sessionId),type:"".concat(e.type)}),p="".concat((null===(n=e.version)||void 0===n?void 0:n.type)||"standalone","/").concat((null===(i=e.version)||void 0===i?void 0:i.version)||f),0===(g=this.payloadBatcher({version:1,events:e.events})).events.length)return this.completeRequest({context:e}),[2];r.label=1;case 1:return r.trys.push([1,3,,4]),y={headers:{"Content-Type":"application/json",Accept:"*/*",Authorization:"Bearer ".concat(o),"X-Client-Version":f,"X-Client-Library":p,"X-Client-Url":d.substring(0,c.m2),"X-Client-Sample-Rate":"".concat(v)},body:JSON.stringify(g),method:"POST"},m="".concat((0,s.Tt)(e.serverZone,this.trackServerUrl),"?").concat(h.toString()),[4,fetch(m,y)];case 2:if(null===(b=r.sent()))return this.completeRequest({context:e,err:a.$k}),[2];if(t)this.handleReponse(b.status,e);else{w="";try{w=JSON.stringify(b.body,null,2)}catch(e){}this.completeRequest({context:e,success:"".concat(b.status,": ").concat(w)})}return[3,4];case 3:return S=r.sent(),this.completeRequest({context:e,err:S}),[3,4];case 4:return[2]}}
1))}))},e.prototype.handleReponse=function(e,t){switch((new i.j).buildStatus(e)){case o.n.Success:this.handleSuccessResponse(t);break;case o.n.Failed:this.handleOtherResponse(t);break;default:this.completeRequest({context:t,err:a.wg})}},e.prototype.handleSuccessResponse=function(e){var t=Math.round(new Blob(e.events).size/c.G2);this.completeRequest({context:e,success:"Session replay event batch tracked successfully for session id ".concat(e.sessionId,", size of events: ").concat(t," KB")})},e.prototype.handleOtherResponse=function(e){this.addToQueue((0,r.Cl)((0,r.Cl)({},e),{timeout:e.attempts*this.retryTimeout}))},e.prototype.completeRequest=function(e){var t=e.context,n=e.err,r=e.success;t.onComplete(),n?this.loggerProvider.warn(n):r&&this.loggerProvider.log(r)},e}()},52706:(e,t,n)=>{function r(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?t.toLowerCase():null}n.d(t,{B:()=>r})},55526:(e,t,n)=>{n.d(t,{MR:()=>s,No:()=>a,sq:()=>o});var r=n(70556),i=n(81631);function o(e){var t,n,r,o,s=e.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:s.documentElement.scrollLeft||(null==s?void 0:s.body)&&(null===(t=i.Ay.parentElement(s.body))||void 0===t?void 0:t.scrollLeft)||(null===(n=null==s?void 0:s.body)||void 0===n?void 0:n.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==s?void 0:s.documentElement.scrollTop)||(null==s?void 0:s.body)&&(null===(r=i.Ay.parentElement(s.body))||void 0===r?void 0:r.scrollTop)||(null===(o=null==s?void 0:s.body)||void 0===o?void 0:o.scrollTop)||0}}function s(){var e=(0,r.m)();return(null==e?void 0:e.innerHeight)||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight||0}function a(){var e=(0,r.m)();return(null==e?void 0:e.innerWidth)||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth||0}},62150:(e,t,n)=>{n.d(t,{x:()=>r});var r="1.28.8"},59750:(e,t,n)=>{n.d(t,{w$:()=>o});var r=n(61406),i=n(66383),o=function(e){return void 0===e&&(e=i.e5),r.i.getInstance(e)}},73620:(e,t,n)=>{n.d(t,{TS:()=>a});var r=n(66383),i=n(94478),o=n(20),s=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:r.e5,logLevel:o.$.Warn,loggerProvider:new i.V,offline:!1,optOut:!1,serverUrl:r.mJ,serverZone:"US",useBatch:!1}},a=function(){function e(e){var t,n,r,i;this._optOut=!1;var o=s();this.apiKey=e.apiKey,this.flushIntervalMillis=null!==(t=e.flushIntervalMillis)&&void 0!==t?t:o.flushIntervalMillis,this.flushMaxRetries=e.flushMaxRetries||o.flushMaxRetries,this.flushQueueSize=e.flushQueueSize||o.flushQueueSize,this.instanceName=e.instanceName||o.instanceName,this.loggerProvider=e.loggerProvider||o.loggerProvider,this.logLevel=null!==(n=e.logLevel)&&void 0!==n?n:o.logLevel,this.minIdLength=e.minIdLength,this.plan=e.plan,this.ingestionMetadata=e.ingestionMetadata,this.offline=void 0!==e.offline?e.offline:o.offline,this.optOut=null!==(r=e.optOut)&&void 0!==r?r:o.optOut,this.serverUrl=e.serverUrl,this.serverZone=e.serverZone||o.serverZone,this.storageProvider=e.storageProvider,this.transportProvider=e.transportProvider,this.useBatch=null!==(i=e.useBatch)&&void 0!==i?i:o.useBatch,this.loggerProvider.enable(this.logLevel);var a=c(e.serverUrl,e.serverZone,e.useBatch);this.serverZone=a.serverZone,this.serverUrl=a.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut=e},enumerable:!1,configurable:!0}),e}(),u=function(e,t){return"EU"===e?t?r.OP:r.bu:t?r.pL:r.mJ},c=function(e,t,n){if(void 0===e&&(e=""),void 0===t&&(t=s().serverZone),void 0===n&&(n=s().useBatch),e)return{serverUrl:e,serverZone:void 0};var r=["US","EU"].includes(t)?t:s().serverZone;return{serverZone:r,serverUrl:u(r,n)}}},70556:(e,t,n)=>{n.d(t,{m:()=>r});var r=function(){var e="ampIntegrationContext";return"undefined"!=typeof globalThis&&void 0!==globalThis[e]?globalThis[e]:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==n.g?n.g:void 0}},94478:(e,t,n)=>{n.d(t,{V:()=>o});var r=n(20),i="Amplitude Logger ",o=function(){function e(){this.logLevel=r.$.None}return e.prototype.disable=function(){this.logLevel=r.$.None},e.prototype.enable=function(e){void 0===e&&(e=r.$.Warn),this.logLevel=e},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<r.$.Verbose||console.log("".concat(i,"[Log]: ").concat(e.join(" ")))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<r.$.Warn||console.warn("".concat(i,"[Warn]: ").concat(e.join(" ")))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<r.$.Error||console.error("".concat(i,"[Error]: ").concat(e.join(" ")))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<r.$.Debug||console.log("".concat(i,"[Debug]: ").concat(e.join(" ")))},e}()},89794:(e,t,n)=>{n.d(t,{j:()=>i});var r=n(63618),i=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){var t,n,i,o,s,a,u,c,l,d,f,v,h,p,g,y,m,b,w,S,E,I;if("object"!=typeof e)return null;var T=e.code||0,_=this.buildStatus(T);switch(_){case r.n.Success:return{status:_,statusCode:T,body:{eventsIngested:null!==(t=e.events_ingested)&&void 0!==t?t:0,payloadSizeBytes:null!==(n=e.payload_size_bytes)&&void 0!==n?n:0,serverUploadTime:null!==(i=e.server_upload_time)&&void 0!==i?i:0}};case r.n.Invalid:return{status:_,statusCode:T,body:{error:null!==(o=e.error)&&void 0!==o?o:"",missingField:null!==(s=e.missing_field)&&void 0!==s?s:"",eventsWithInvalidFields:null!==(a=e.events_with_invali
1d_fields)&&void 0!==a?a:{},eventsWithMissingFields:null!==(u=e.events_with_missing_fields)&&void 0!==u?u:{},eventsWithInvalidIdLengths:null!==(c=e.events_with_invalid_id_lengths)&&void 0!==c?c:{},epsThreshold:null!==(l=e.eps_threshold)&&void 0!==l?l:0,exceededDailyQuotaDevices:null!==(d=e.exceeded_daily_quota_devices)&&void 0!==d?d:{},silencedDevices:null!==(f=e.silenced_devices)&&void 0!==f?f:[],silencedEvents:null!==(v=e.silenced_events)&&void 0!==v?v:[],throttledDevices:null!==(h=e.throttled_devices)&&void 0!==h?h:{},throttledEvents:null!==(p=e.throttled_events)&&void 0!==p?p:[]}};case r.n.PayloadTooLarge:return{status:_,statusCode:T,body:{error:null!==(g=e.error)&&void 0!==g?g:""}};case r.n.RateLimit:return{status:_,statusCode:T,body:{error:null!==(y=e.error)&&void 0!==y?y:"",epsThreshold:null!==(m=e.eps_threshold)&&void 0!==m?m:0,throttledDevices:null!==(b=e.throttled_devices)&&void 0!==b?b:{},throttledUsers:null!==(w=e.throttled_users)&&void 0!==w?w:{},exceededDailyQuotaDevices:null!==(S=e.exceeded_daily_quota_devices)&&void 0!==S?S:{},exceededDailyQuotaUsers:null!==(E=e.exceeded_daily_quota_users)&&void 0!==E?E:{},throttledEvents:null!==(I=e.throttled_events)&&void 0!==I?I:[]}};case r.n.Timeout:default:return{status:_,statusCode:T}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?r.n.Success:429===e?r.n.RateLimit:413===e?r.n.PayloadTooLarge:408===e?r.n.Timeout:e>=400&&e<500?r.n.Invalid:e>=500?r.n.Failed:r.n.Unknown},e}()},2483:(e,t,n)=>{n.d(t,{m:()=>i});var r=n(55823),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.send=function(e,t){return(0,r.sH)(this,void 0,void 0,(function(){var n,i,o;return(0,r.YH)(this,(function(r){switch(r.label){case 0:if("undefined"==typeof fetch)throw new Error("FetchTransport is not supported");return n={headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(t),method:"POST"},[4,fetch(e,n)];case 1:return[4,(i=r.sent()).text()];case 2:o=r.sent();try{return[2,this.buildResponse(JSON.parse(o))]}catch(e){return[2,this.buildResponse({code:i.status})]}return[2]}}
1))}))},t}(n(89794).j)},66383:(e,t,n)=>{n.d(t,{OP:()=>c,bu:()=>a,e5:()=>o,fS:()=>i,mJ:()=>s,pL:()=>u,r:()=>r});var r="AMP",i="".concat(r,"_unsent"),o="$default_instance",s="https://api2.amplitude.com/2/httpapi",a="https://api.eu.amplitude.com/2/httpapi",u="https://api2.amplitude.com/batch",c="https://api.eu.amplitude.com/batch"},94541:(e,t,n)=>{var r,i;n.d(t,{S:()=>i}),function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"}(r||(r={})),function(e){e.IDENTIFY="$identify",e.GROUP_IDENTIFY="$groupidentify",e.REVENUE="revenue_amount"}(i||(i={}))},20:(e,t,n)=>{var r;n.d(t,{$:()=>r}),function(e){e[e.None=0]="None",e[e.Error=1]="Error",e[e.Warn=2]="Warn",e[e.Verbose=3]="Verbose",e[e.Debug=4]="Debug"}(r||(r={}))},90306:(e,t,n)=>{var r;n.d(t,{e:()=>r}),function(e){e.US="US",e.EU="EU",e.STAGING="STAGING"}(r||(r={}))},63618:(e,t,n)=>{var r;n.d(t,{n:()=>r}),function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.PayloadTooLarge="payload_too_large",e.Invalid="invalid",e.Failed="failed",e.Timeout="Timeout",e.SystemError="SystemError"}(r||(r={}))},53797:(e,t,n)=>{n.d(t,{nA:()=>i});var r=n(20),i=function(e,t,n,i,o){return void 0===o&&(o=null),function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];var u=n(),c=u.logger,l=u.logLevel;if(l&&l<r.$.Debug||!l||!c)return e.apply(o,s);var d,f={type:"invoke public method",name:t,args:s,stacktrace:(d=1,void 0===d&&(d=0),((new Error).stack||"").split("\n").slice(2+d).map((function(e){return e.trim()}))),time:{start:(new Date).toISOString()},states:{}};i&&f.states&&(f.states.before=i());var v=e.apply(o,s);return v&&v.promise?v.promise.then((function(){i&&f.states&&(f.states.after=i()),f.time&&(f.time.end=(new Date).toISOString()),c.debug(JSON.stringify(f,null,2))})):(i&&f.states&&(f.states.after=i()),f.time&&(f.time.end=(new Date).toISOString()),c.debug(JSON.stringify(f,null,2))),v}}},94396:(e,t,n)=>{n.d(t,{m:()=>r});var r=function(e){return{promise:e||Promise.resolve()}}},61406:(e,t,n)=>{n.d(t,{i:()=>f});var r=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:i(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),i=function(){return"undefined"!=typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},o=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},e.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach((function(t){e(t)})),this.queue=[])},e}(),s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)};function a(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}"function"==typeof SuppressedError&&SuppressedError;var c=function(e,t){var n,r,i=typeof e;if(i!==typeof t)return!1;try{for(var o=a(["string","number","boolean","undefined"]),s=o.next();!s.done;s=o.next())if(s.value===i)return e===t}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}if(null==e&&null==t)return!0;if(null==e||null==t)return!1;if(e.length!==t.length)return!1;var u=Array.isArray(e),l=Array.isArray(t);if(u!==l)return!1;if(!u||!l){var d=Object.keys(e).sort(),f=Object.keys(t).sort();if(!c(d,f))return!1;var v=!0;return Object.keys(e).forEach((function(n){c(e[n],t[n])||(v=!1)})),v}for(var h=0;h<e.length;h++)if(!c(e[h],t[h]))return!1;return!0};Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r});var l=function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var e=this,t=s({},this.identity.userProperties),n=s(s({},this.identity),{userProperties:t});return{setUserId:function(e){return n.userId=e,this},setDeviceId:function(e){return n.deviceId=e,this},setUserProperties:function(e){return n.userProperties=e,this},setOptOut:function(e){return n.optOut=e,this},updateUserProperties:function(e){var t,r,i,o,s,c,l=n.userProperties||{};try{for(var d=a(Object.entries(e)),f=d.next();!f.done;f=d.next()){var v=u(f.value,2),h=v[0],p=v[1];switch(h){case"$set":try{for(var g=(i=void 0,a(Object.entries(p))),y=g.next();!y.done;y=g.next()){var m=u(y.value,2),b=m[0],w=m[1];l[b]=w}}catch(e){i={error:e}}
1finally{try{y&&!y.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}break;case"$unset":try{for(var S=(s=void 0,a(Object.keys(p))),E=S.next();!E.done;E=S.next())delete l[b=E.value]}catch(e){s={error:e}}finally{try{E&&!E.done&&(c=S.return)&&c.call(S)}finally{if(s)throw s.error}}break;case"$clearAll":l={}}}}catch(e){t={error:e}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(t)throw t.error}}return n.userProperties=l,this},commit:function(){return e.setIdentity(n),this}}},e.prototype.getIdentity=function(){return s({},this.identity)},e.prototype.setIdentity=function(e){var t=s({},this.identity);this.identity=s({},e),c(t,this.identity)||this.listeners.forEach((function(t){t(e)}))},e.prototype.addIdentityListener=function(e){this.listeners.add(e)},e.prototype.removeIdentityListener=function(e){this.listeners.delete(e)},e}(),d="undefined"!=typeof globalThis?globalThis:void 0!==n.g?n.g:self,f=function(){function e(){this.identityStore=new l,this.eventBridge=new o,this.applicationContextProvider=new r}return e.getInstance=function(t){return d.analyticsConnectorInstances||(d.analyticsConnectorInstances={}),d.analyticsConnectorInstances[t]||(d.analyticsConnectorInstances[t]=new e),d.analyticsConnectorInstances[t]},e}()},59590:(e,t,n)=>{n.d(t,{B:()=>r});var r=n(36961).Bp},36961:(e,t,n)=>{n.d(t,{Bp:()=>l});var r=n(55823),i=n(22598),o=n(89384),s=n(5784),a="Remote config fetch rejected due to timeout after 5 seconds",u="Unexpected error occurred",c=function(){function e(e){var t=e.localConfig,n=e.configKeys,s=this;this.retryTimeout=1e3,this.attempts=0,this.sessionTargetingMatch=!1,this.metrics={},this.getRemoteNamespaceConfig=function(e,t){return(0,r.sH)(s,void 0,void 0,(function(){var n,i,o;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return n=Date.now(),[4,this.fetchWithTimeout(t)];case 1:return(i=r.sent())&&(o=i.configs&&i.configs[e])?(this.metrics.fetchTimeAPISuccess=Date.now()-n,[2,o]):(this.metrics.fetchTimeAPIFail=Date.now()-n,[2,void 0])}}))}))},this.getRemoteConfig=function(e,t,n){return(0,r.sH)(s,void 0,void 0,(function(){var i;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,this.getRemoteNamespaceConfig(e,n)];case 1:return[2,null==(i=r.sent())?void 0:i[t]]}}))}))},this.fetchWithTimeout=function(e){return(0,r.sH)(s,void 0,void 0,(function(){var t,n,i;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return t=new AbortController,n=setTimeout((function(){return t.abort()}),5e3),[4,this.fetchRemoteConfig(t.signal,e)];case 1:return i=r.sent(),clearTimeout(n),[2,i]}}))}))},this.fetchRemoteConfig=function(e,t){return(0,r.sH)(s,void 0,void 0,(function(){var n,s,c,l,d,f,v,h,p,g,y,m;return(0,r.YH)(this,(function(b){switch(b.label){case 0:if(t===this.lastFetchedSessionId&&this.attempts>=this.localConfig.flushMaxRetries)return[2,this.completeRequest({err:"Remote config fetch rejected due to exceeded retry count"})];if(e.aborted)return[2,this.completeRequest({err:a})];t!==this.lastFetchedSessionId&&(this.lastFetchedSessionId=t,this.attempts=0),b.label=1;case 1:b.trys.push([1,3,,4]),n=new URLSearchParams({api_key:this.localConfig.apiKey});try{for(s=(0,r.Ju)(this.configKeys),c=s.next();!c.done;c=s.next())l=c.value,n.append("config_keys",l)}catch(e){g={error:e}}finally{try{c&&!c.done&&(y=s.return)&&y.call(s)}finally{if(g)throw g.error}}return t&&n.set("session_id",String(t)),d={headers:{Accept:"*/*"},method:"GET"},f="".concat(this.getServerUrl(),"?").concat(n.toString()),this.attempts+=1,[4,fetch(f,(0,r.Cl)((0,r.Cl)({},d),{signal:e}))];case 2:if(null===(v=b.sent()))return[2,this.completeRequest({err:u})];switch((new i.j).buildStatus(v.status)){case o.n.Success:return this.attempts=0,[2,this.parseAndStoreConfig(v)];case o.n.Failed:return[2,this.retryFetch(e,t)];default:return[2,this.completeRequest({err:"Network error occurred, remote config fetch failed"})]}return[3,4];case 3:return h=b.sent(),p=h,e.aborted?[2,this.completeRequest({err:a})]:[2,this.completeRequest({err:null!==(m=p.message)&&void 0!==m?m:u})];case 4:return[2]}}
1))}))},this.retryFetch=function(e,t){return(0,r.sH)(s,void 0,void 0,(function(){var n=this;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,new Promise((function(e){return setTimeout(e,n.attempts*n.retryTimeout)}))];case 1:return r.sent(),[2,this.fetchRemoteConfig(e,t)]}}))}))},this.parseAndStoreConfig=function(e){return(0,r.sH)(s,void 0,void 0,(function(){var t;return(0,r.YH)(this,(function(n){switch(n.label){case 0:return[4,e.json()];case 1:return t=n.sent(),this.completeRequest({success:"Remote config successfully fetched"}),[2,t]}}))}))},this.localConfig=t,this.configKeys=n}return e.prototype.getServerUrl=function(){return this.localConfig.configServerUrl?this.localConfig.configServerUrl:this.localConfig.serverZone===s.e.STAGING?"https://sr-client-cfg.stag2.amplitude.com/config":this.localConfig.serverZone===s.e.EU?"https://sr-client-cfg.eu.amplitude.com/config":"https://sr-client-cfg.amplitude.com/config"},e.prototype.completeRequest=function(e){var t=e.err,n=e.success;if(t)throw new Error(t);n&&this.localConfig.loggerProvider.log(n)},e}(),l=function(e){var t=e.localConfig,n=e.configKeys;return(0,r.sH)(void 0,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){return[2,new c({localConfig:t,configKeys:n})]}))}))}},22598:(e,t,n)=>{n.d(t,{j:()=>i});var r=n(89384),i=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){var t,n,i,o,s,a,u,c,l,d,f,v,h,p,g,y,m,b,w,S,E,I;if("object"!=typeof e)return null;var T=e.code||0,_=this.buildStatus(T);switch(_){case r.n.Success:return{status:_,statusCode:T,body:{eventsIngested:null!==(t=e.events_ingested)&&void 0!==t?t:0,payloadSizeBytes:null!==(n=e.payload_size_bytes)&&void 0!==n?n:0,serverUploadTime:null!==(i=e.server_upload_time)&&void 0!==i?i:0}};case r.n.Invalid:return{status:_,statusCode:T,body:{error:null!==(o=e.error)&&void 0!==o?o:"",missingField:null!==(s=e.missing_field)&&void 0!==s?s:"",eventsWithInvalidFields:null!==(a=e.events_with_invalid_fields)&&void 0!==a?a:{},eventsWithMissingFields:null!==(u=e.events_with_missing_fields)&&void 0!==u?u:{},eventsWithInvalidIdLengths:null!==(c=e.events_with_invalid_id_lengths)&&void 0!==c?c:{},epsThreshold:null!==(l=e.eps_threshold)&&void 0!==l?l:0,exceededDailyQuotaDevices:null!==(d=e.exceeded_daily_quota_devices)&&void 0!==d?d:{},silencedDevices:null!==(f=e.silenced_devices)&&void 0!==f?f:[],silencedEvents:null!==(v=e.silenced_events)&&void 0!==v?v:[],throttledDevices:null!==(h=e.throttled_devices)&&void 0!==h?h:{},throttledEvents:null!==(p=e.throttled_events)&&void 0!==p?p:[]}};case r.n.PayloadTooLarge:return{status:_,statusCode:T,body:{error:null!==(g=e.error)&&void 0!==g?g:""}};case r.n.RateLimit:return{status:_,statusCode:T,body:{error:null!==(y=e.error)&&void 0!==y?y:"",epsThreshold:null!==(m=e.eps_threshold)&&void 0!==m?m:0,throttledDevices:null!==(b=e.throttled_devices)&&void 0!==b?b:{},throttledUsers:null!==(w=e.throttled_users)&&void 0!==w?w:{},exceededDailyQuotaDevices:null!==(S=e.exceeded_daily_quota_devices)&&void 0!==S?S:{},exceededDailyQuotaUsers:null!==(E=e.exceeded_daily_quota_users)&&void 0!==E?E:{},throttledEvents:null!==(I=e.throttled_events)&&void 0!==I?I:[]}};case r.n.Timeout:default:return{status:_,statusCode:T}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?r.n.Success:429===e?r.n.RateLimit:413===e?r.n.PayloadTooLarge:408===e?r.n.Timeout:e>=400&&e<500?r.n.Invalid:e>=500?r.n.Failed:r.n.Unknown},e}()},5784:(e,t,n)=>{var r;n.d(t,{e:()=>r}),function(e){e.US="US",e.EU="EU",e.STAGING="STAGING"}(r||(r={}))},89384:(e,t,n)=>{var r;n.d(t,{n:()=>r}),function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.PayloadTooLarge="payload_too_large",e.Invalid="invalid",e.Failed="failed",e.Timeout="Timeout",e.SystemError="SystemError"}(r||(r={}))},64349:(e,t,n)=>{n.d(t,{A2:()=>i,M7:()=>r,ro:()=>o});var r=s("C",void 0,void 0);function i(e){return s("E",void 0,e)}function o(e){return s("N",e,void 0)}function s(e,t,n){return{kind:e,value:t,error:n}}},82377:(e,t,n)=>{n.d(t,{c:()=>l});var r=n(26846),i=n(31969),o=n(43006),s=n(22571),a=n(32906),u=n(37407),c=n(10834),l=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var o,s=this,a=(o=e)&&o instanceof r.vU||function(e){return e&&(0,u.T)(e.next)&&(0,u.T)(e.error)&&(0,u.T)(e.complete)}(o)&&(0,i.Uv)(o)?e:new r.Ms(e,t,n);return(0,c.Y)((function(){var e=s,t=e.operator,n=e.source;a.add(t?t.call(a,n):n?s._subscribe(a):s._trySubscribe(a))}
1)),a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=d(t))((function(t,i){var o=new r.Ms({next:function(t){try{e(t)}catch(e){i(e),o.unsubscribe()}},error:i,complete:t});n.subscribe(o)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[o.s]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.m)(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=d(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function d(e){var t;return null!==(t=null!=e?e:a.$.Promise)&&void 0!==t?t:Promise}},82727:(e,t,n)=>{n.d(t,{_:()=>i});var r=n(20953),i=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=r.U.now,e}()},26846:(e,t,n)=>{n.d(t,{Ms:()=>g,vU:()=>f});var r=n(24746),i=n(37407),o=n(31969),s=n(32906),a=n(4174),u=n(62407),c=n(64349),l=n(47438),d=n(10834),f=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,(0,o.Uv)(t)&&t.add(n)):n.destination=b,n}return(0,r.C6)(t,e),t.create=function(e,t,n){return new g(e,t,n)},t.prototype.next=function(e){this.isStopped?m((0,c.ro)(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?m((0,c.A2)(e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?m(c.M7,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(o.yU),v=Function.prototype.bind;function h(e,t){return v.call(e,t)}var p=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){y(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){y(e)}else y(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){y(e)}},e}(),g=function(e){function t(t,n,r){var o,a,u=e.call(this)||this;return(0,i.T)(t)||!t?o={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:u&&s.$.useDeprecatedNextContext?((a=Object.create(t)).unsubscribe=function(){return u.unsubscribe()},o={next:t.next&&h(t.next,a),error:t.error&&h(t.error,a),complete:t.complete&&h(t.complete,a)}):o=t,u.destination=new p(o),u}return(0,r.C6)(t,e),t}(f);function y(e){s.$.useDeprecatedSynchronousErrorHandling?(0,d.l)(e):(0,a.m)(e)}function m(e,t){var n=s.$.onStoppedNotification;n&&l.f.setTimeout((function(){return n(e,t)}))}var b={closed:!0,next:u.l,error:function(e){throw e},complete:u.l}},31969:(e,t,n)=>{n.d(t,{Uv:()=>u,yU:()=>a});var r=n(24746),i=n(37407),o=n(44455),s=n(32444),a=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,n,s,a;if(!this.closed){this.closed=!0;var u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var l=(0,r.Ju)(u),d=l.next();!d.done;d=l.next())d.value.remove(this)}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}else u.remove(this);var f=this.initialTeardown;if((0,i.T)(f))try{f()}catch(e){a=e instanceof o.Z?e.errors:[e]}var v=this._finalizers;if(v){this._finalizers=null;try{for(var h=(0,r.Ju)(v),p=h.next();!p.done;p=h.next()){var g=p.value;try{c(g)}catch(e){a=null!=a?a:[],e instanceof o.Z?a=(0,r.fX)((0,r.fX)([],(0,r.zs)(a)),(0,r.zs)(e.errors)):a.push(e)}}}catch(e){n={error:e}}finally{try{p&&!p.done&&(s=h.return)&&s.call(h)}finally{if(n)throw n.error}}}if(a)throw new o.Z(a)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)c(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&(0,s.o)(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&(0,s.o)(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}();function u(e){return e instanceof a||e&&"closed"in e&&(0,i.T)(e.remove)&&(0,i.T)(e.add)&&(0,i.T)(e.unsubscribe)}function c(e){(0,i.T)(e)?e():e.unsubscribe()}a.EMPTY},32906:(e,t,n)=>{n.d(t,{$:()=>r});var r={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNext
1Context:!1}},54504:(e,t,n)=>{n.d(t,{x:()=>s});var r=n(40339),i=n(17350),o=n(6340);function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,r.K)()((0,o.H)(e,(0,i.lI)(e)))}},56607:(e,t,n)=>{n.d(t,{w:()=>r});var r=new(n(82377).c)((function(e){return e.complete()}))},6340:(e,t,n)=>{n.d(t,{H:()=>o});var r=n(54969),i=n(8470);function o(e,t){return t?(0,r.c)(e,t):(0,i.Tg)(e)}},40342:(e,t,n)=>{n.d(t,{R:()=>v});var r=n(24746),i=n(8470),o=n(82377),s=n(14316),a=n(1897),u=n(37407),c=n(88634),l=["addListener","removeListener"],d=["addEventListener","removeEventListener"],f=["on","off"];function v(e,t,n,p){if((0,u.T)(n)&&(p=n,n=void 0),p)return v(e,t,n).pipe((0,c.I)(p));var g=(0,r.zs)(function(e){return(0,u.T)(e.addEventListener)&&(0,u.T)(e.removeEventListener)}(e)?d.map((function(r){return function(i){return e[r](t,i,n)}})):function(e){return(0,u.T)(e.addListener)&&(0,u.T)(e.removeListener)}(e)?l.map(h(e,t)):function(e){return(0,u.T)(e.on)&&(0,u.T)(e.off)}(e)?f.map(h(e,t)):[],2),y=g[0],m=g[1];if(!y&&(0,a.X)(e))return(0,s.Z)((function(e){return v(e,t,n)}))((0,i.Tg)(e));if(!y)throw new TypeError("Invalid event target");return new o.c((function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return y(t),function(){return m(t)}}))}function h(e,t){return function(n){return function(r){return e[n](t,r)}}}},8470:(e,t,n)=>{n.d(t,{Tg:()=>p});var r=n(24746),i=n(1897),o=n(71866),s=n(82377),a=n(95287),u=n(89113),c=n(82423),l=n(37885),d=n(19092),f=n(37407),v=n(4174),h=n(43006);function p(e){if(e instanceof s.c)return e;if(null!=e){if((0,a.l)(e))return m=e,new s.c((function(e){var t=m[h.s]();if((0,f.T)(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if((0,i.X)(e))return y=e,new s.c((function(e){for(var t=0;t<y.length&&!e.closed;t++)e.next(y[t]);e.complete()}));if((0,o.y)(e))return p=e,new s.c((function(e){p.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,v.m)}));if((0,u.T)(e))return g(e);if((0,l.x)(e))return n=e,new s.c((function(e){var t,i;try{for(var o=(0,r.Ju)(n),s=o.next();!s.done;s=o.next()){var a=s.value;if(e.next(a),e.closed)return}}catch(e){t={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(t)throw t.error}}e.complete()}));if((0,d.U)(e))return t=e,g((0,d.C)(t))}var t,n,p,y,m;throw(0,c.L)(e)}function g(e){return new s.c((function(t){(function(e,t){var n,i,o,s;return(0,r.sH)(this,void 0,void 0,(function(){var a,u;return(0,r.YH)(this,(function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),n=(0,r.xN)(e),c.label=1;case 1:return[4,n.next()];case 2:if((i=c.sent()).done)return[3,4];if(a=i.value,t.next(a),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return u=c.sent(),o={error:u},[3,11];case 6:return c.trys.push([6,,9,10]),i&&!i.done&&(s=n.return)?[4,s.call(n)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))}))})(e,t).catch((function(e){return t.error(e)}))}))}},34578:(e,t,n)=>{n.d(t,{h:()=>u});var r=n(63093),i=n(8470),o=n(56607),s=n(17350),a=n(6340);function u(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,s.lI)(e),u=(0,s.R0)(e,1/0),c=e;return c.length?1===c.length?(0,i.Tg)(c[0]):(0,r.U)(u)((0,a.H)(c,n)):o.w}},56823:(e,t,n)=>{n.d(t,{O:()=>a});var r=n(82377),i=n(51932),o=n(47142),s=n(27963);function a(e,t,n){void 0===e&&(e=0),void 0===n&&(n=i.b);var a=-1;return null!=t&&((0,o.m)(t)?n=t:a=t),new r.c((function(t){var r=(0,s.v)(e)?+e-n.now():e;r<0&&(r=0);var i=0;return n.schedule((function(){t.closed||(t.next(i++),0<=a?this.schedule(void 0,a):t.complete())}),r)}))}},8496:(e,t,n)=>{n.d(t,{_:()=>i});var r=n(24746);function i(e,t,n,r,i){return new o(e,t,n,r,i)}var o=function(e){function t(t,n,r,i,o,s){var a=e.call(this,t)||this;return a.onFinalize=o,a.shouldUnsubscribe=s,a._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return(0,r.C6)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(n(26846).vU)},39136:(e,t,n)=>{n.d(t,{r:()=>a});var r=n(28414),i=n(62407),o=n(8496),s=n(8470);function a(e){return(0,r.N)((function(t,n){var r=[];return t.subscribe((0,o._)(n,(function(e){return r.push(e)}),(function(){n.next(r),n.complete()}
1))),(0,s.Tg)(e).subscribe((0,o._)(n,(function(){var e=r;r=[],n.next(e)}),i.l)),function(){r=null}}))}},40339:(e,t,n)=>{n.d(t,{K:()=>i});var r=n(63093);function i(){return(0,r.U)(1)}},41392:(e,t,n)=>{n.d(t,{B:()=>s});var r=n(51932),i=n(28414),o=n(8496);function s(e,t){return void 0===t&&(t=r.E),(0,i.N)((function(n,r){var i=null,s=null,a=null,u=function(){if(i){i.unsubscribe(),i=null;var e=s;s=null,r.next(e)}};function c(){var n=a+e,o=t.now();if(o<n)return i=this.schedule(void 0,n-o),void r.add(i);u()}n.subscribe((0,o._)(r,(function(n){s=n,a=t.now(),i||(i=t.schedule(c,e),r.add(i))}),(function(){u(),r.complete()}),void 0,(function(){s=i=null})))}))}},81831:(e,t,n)=>{n.d(t,{c:()=>s});var r=n(51932),i=n(47367),o=n(56823);function s(e,t){void 0===t&&(t=r.E);var n=(0,o.O)(e,t);return(0,i.o)((function(){return n}))}},47367:(e,t,n)=>{n.d(t,{o:()=>c});var r=n(54504),i=n(56177),o=n(18909),s=n(97983),a=n(14316),u=n(8470);function c(e,t){return t?function(n){return(0,r.x)(t.pipe((0,i.s)(1),(0,o.w)()),n.pipe(c(e)))}:(0,a.Z)((function(t,n){return(0,u.Tg)(e(t,n)).pipe((0,i.s)(1),(0,s.u)(t))}))}},53940:(e,t,n)=>{n.d(t,{p:()=>o});var r=n(28414),i=n(8496);function o(e,t){return(0,r.N)((function(n,r){var o=0;n.subscribe((0,i._)(r,(function(n){return e.call(t,n,o++)&&r.next(n)})))}))}},18909:(e,t,n)=>{n.d(t,{w:()=>s});var r=n(28414),i=n(8496),o=n(62407);function s(){return(0,r.N)((function(e,t){e.subscribe((0,i._)(t,o.l))}))}},28138:(e,t,n)=>{n.d(t,{T:()=>o});var r=n(28414),i=n(8496);function o(e,t){return(0,r.N)((function(n,r){var o=0;n.subscribe((0,i._)(r,(function(n){r.next(e.call(t,n,o++))})))}))}},97983:(e,t,n)=>{n.d(t,{u:()=>i});var r=n(28138);function i(e){return(0,r.T)((function(){return e}))}},63093:(e,t,n)=>{n.d(t,{U:()=>o});var r=n(14316),i=n(89117);function o(e){return void 0===e&&(e=1/0),(0,r.Z)(i.D,e)}},4988:(e,t,n)=>{n.d(t,{h:()=>s});var r=n(8470),i=n(76641),o=n(8496);function s(e,t,n,s,a,u,c,l){var d=[],f=0,v=0,h=!1,p=function(){!h||d.length||f||t.complete()},g=function(e){return f<s?y(e):d.push(e)},y=function(e){u&&t.next(e),f++;var l=!1;(0,r.Tg)(n(e,v++)).subscribe((0,o._)(t,(function(e){null==a||a(e),u?g(e):t.next(e)}),(function(){l=!0}),void 0,(function(){if(l)try{f--;for(var e=function(){var e=d.shift();c?(0,i.N)(t,c,(function(){return y(e)})):y(e)};d.length&&f<s;)e();p()}catch(e){t.error(e)}})))};return e.subscribe((0,o._)(t,g,(function(){h=!0,p()}))),function(){null==l||l()}}},14316:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(28138),i=n(8470),o=n(28414),s=n(4988),a=n(37407);function u(e,t,n){return void 0===n&&(n=1/0),(0,a.T)(t)?u((function(n,o){return(0,r.T)((function(e,r){return t(n,e,o,r)}))((0,i.Tg)(e(n,o)))}),n):("number"==typeof t&&(n=t),(0,o.N)((function(t,r){return(0,s.h)(t,r,e,n)})))}},77813:(e,t,n)=>{n.d(t,{Q:()=>s});var r=n(76641),i=n(28414),o=n(8496);function s(e,t){return void 0===t&&(t=0),(0,i.N)((function(n,i){n.subscribe((0,o._)(i,(function(n){return(0,r.N)(i,e,(function(){return i.next(n)}),t)}),(function(){return(0,r.N)(i,e,(function(){return i.complete()}),t)}),(function(n){return(0,r.N)(i,e,(function(){return i.error(n)}),t)})))}))}},50626:(e,t,n)=>{n.d(t,{J:()=>o});var r=n(28414),i=n(8496);function o(){return(0,r.N)((function(e,t){var n,r=!1;e.subscribe((0,i._)(t,(function(e){var i=n;n=e,r&&t.next([i,e]),r=!0})))}))}},93681:(e,t,n)=>{n.d(t,{_:()=>i});var r=n(28414);function i(e,t){return void 0===t&&(t=0),(0,r.N)((function(n,r){r.add(e.schedule((function(){return n.subscribe(r)}),t))}))}},84190:(e,t,n)=>{n.d(t,{n:()=>s});var r=n(8470),i=n(28414),o=n(8496);function s(e,t){return(0,i.N)((function(n,i){var s=null,a=0,u=!1,c=function(){return u&&!s&&i.complete()};n.subscribe((0,o._)(i,(function(n){null==s||s.unsubscribe();var u=0,l=a++;(0,r.Tg)(e(n,l)).subscribe(s=(0,o._)(i,(function(e){return i.next(t?t(n,e,l,u++):e)}),(function(){s=null,c()})))}),(function(){u=!0,c()})))}))}},56177:(e,t,n)=>{n.d(t,{s:()=>s});var r=n(56607),i=n(28414),o=n(8496);function s(e){return e<=0?function(){return r.w}:(0,i.N)((function(t,n){var r=0;t.subscribe((0,o._)(n,(function(t){++r<=e&&(n.next(t),e<=r&&n.complete())})))}))}},23567:(e,t,n)=>{n.d(t,{w:()=>d});var r=n(51932),i=n(27963),o=n(28414),s=n(8470),a=n(21525),u=n(8496),c=n(76641),l=(0,a.L)((function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}}));function d(e,t){var n=(0,i.v)(e)?{first:e}:"number"==typeof e?{each:e}:e,a=n.first,l=n.each,d=n.with,v=void 0===d?f:d,h=n.scheduler,p=void 0===h?null!=t?t:r.E:h,g=n.meta,y=void 0===g?null:g;if(null==a&&null==l)throw new TypeError("No timeout provided.");return(0,o.N)((function(e,t){var n,r,i=null,o=0,d=function(e){r=(0,c.N)(t,p,(function(){try{n.unsubscribe(),(0,s.Tg)(v({meta:y,lastValue:i,seen:o})).subscribe(t)}catch(e){t.error(e)}}),e)};n=e.subscribe((0,u._)(t,(function(e){null==r||r.unsubscribe(),o++,t.next(i=e),l>0&&d(l)}),void 0,void 0,(function(){(null==r?void 0:r.closed)||null==r||r.unsubscribe(),i=null}))),!o&&d(null!=a?"number"==typeof a?a:+a-p.now():l)}))}function f(e){throw new l(e)}}
1,26028:(e,t,n)=>{n.d(t,{V:()=>i});var r=n(82377);function i(e,t){return new r.c((function(n){var r=0;return t.schedule((function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())}))}))}},34243:(e,t,n)=>{n.d(t,{M:()=>o});var r=n(82377),i=n(76641);function o(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.c((function(n){(0,i.N)(n,t,(function(){var r=e[Symbol.asyncIterator]();(0,i.N)(n,t,(function(){r.next().then((function(e){e.done?n.complete():n.next(e.value)}))}),0,!0)}))}))}},11527:(e,t,n)=>{n.d(t,{S:()=>a});var r=n(82377),i=n(41201),o=n(37407),s=n(76641);function a(e,t){return new r.c((function(n){var r;return(0,s.N)(n,t,(function(){r=e[i.l](),(0,s.N)(n,t,(function(){var e,t,i;try{t=(e=r.next()).value,i=e.done}catch(e){return void n.error(e)}i?n.complete():n.next(t)}),0,!0)})),function(){return(0,o.T)(null==r?void 0:r.return)&&r.return()}}))}},55364:(e,t,n)=>{n.d(t,{x:()=>s});var r=n(8470),i=n(77813),o=n(93681);function s(e,t){return(0,r.Tg)(e).pipe((0,o._)(t),(0,i.Q)(t))}},91916:(e,t,n)=>{n.d(t,{P:()=>s});var r=n(8470),i=n(77813),o=n(93681);function s(e,t){return(0,r.Tg)(e).pipe((0,o._)(t),(0,i.Q)(t))}},21802:(e,t,n)=>{n.d(t,{v:()=>o});var r=n(34243),i=n(19092);function o(e,t){return(0,r.M)((0,i.C)(e),t)}},54969:(e,t,n)=>{n.d(t,{c:()=>g});var r=n(55364),i=n(91916),o=n(26028),s=n(11527),a=n(34243),u=n(95287),c=n(71866),l=n(1897),d=n(37885),f=n(89113),v=n(82423),h=n(19092),p=n(21802);function g(e,t){if(null!=e){if((0,u.l)(e))return(0,r.x)(e,t);if((0,l.X)(e))return(0,o.V)(e,t);if((0,c.y)(e))return(0,i.P)(e,t);if((0,f.T)(e))return(0,a.M)(e,t);if((0,d.x)(e))return(0,s.S)(e,t);if((0,h.U)(e))return(0,p.v)(e,t)}throw(0,v.L)(e)}},61844:(e,t,n)=>{n.d(t,{r:()=>i});var r=n(24746),i=function(e){function t(t,n){return e.call(this)||this}return(0,r.C6)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(n(31969).yU)},96542:(e,t,n)=>{n.d(t,{R:()=>a});var r=n(24746),i=n(61844),o=n(52382),s=n(32444),a=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return(0,r.C6)(t,e),t.prototype.schedule=function(e,t){var n;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),o.f.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&o.f.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=e||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,(0,s.o)(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(i.r)},42827:(e,t,n)=>{n.d(t,{q:()=>o});var r=n(24746),i=n(82727),o=function(e){function t(t,n){void 0===n&&(n=i._.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return(0,r.C6)(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(i._)},51932:(e,t,n)=>{n.d(t,{E:()=>i,b:()=>o});var r=n(96542),i=new(n(42827).q)(r.R),o=i},20953:(e,t,n)=>{n.d(t,{U:()=>r});var r={now:function(){return(r.delegate||Date).now()},delegate:void 0}},52382:(e,t,n)=>{n.d(t,{f:()=>i});var r=n(24746),i={setInterval:function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var s=i.delegate;return(null==s?void 0:s.setInterval)?s.setInterval.apply(s,(0,r.fX)([e,t],(0,r.zs)(n))):setInterval.apply(void 0,(0,r.fX)([e,t],(0,r.zs)(n)))},clearInterval:function(e){var t=i.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0}}
1,47438:(e,t,n)=>{n.d(t,{f:()=>i});var r=n(24746),i={setTimeout:function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var s=i.delegate;return(null==s?void 0:s.setTimeout)?s.setTimeout.apply(s,(0,r.fX)([e,t],(0,r.zs)(n))):setTimeout.apply(void 0,(0,r.fX)([e,t],(0,r.zs)(n)))},clearTimeout:function(e){var t=i.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0}},41201:(e,t,n)=>{n.d(t,{l:()=>r});var r="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},43006:(e,t,n)=>{n.d(t,{s:()=>r});var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},44455:(e,t,n)=>{n.d(t,{Z:()=>r});var r=(0,n(21525).L)((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t}}))},17350:(e,t,n)=>{n.d(t,{R0:()=>s,lI:()=>o});var r=n(47142);function i(e){return e[e.length-1]}function o(e){return(0,r.m)(i(e))?e.pop():void 0}function s(e,t){return"number"==typeof i(e)?e.pop():t}},32444:(e,t,n)=>{function r(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}n.d(t,{o:()=>r})},21525:(e,t,n)=>{function r(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}n.d(t,{L:()=>r})},10834:(e,t,n)=>{n.d(t,{Y:()=>o,l:()=>s});var r=n(32906),i=null;function o(e){if(r.$.useDeprecatedSynchronousErrorHandling){var t=!i;if(t&&(i={errorThrown:!1,error:null}),e(),t){var n=i,o=n.errorThrown,s=n.error;if(i=null,o)throw s}}else e()}function s(e){r.$.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=e)}},76641:(e,t,n)=>{function r(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=!1);var o=t.schedule((function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()}),r);if(e.add(o),!i)return o}n.d(t,{N:()=>r})},89117:(e,t,n)=>{function r(e){return e}n.d(t,{D:()=>r})},1897:(e,t,n)=>{n.d(t,{X:()=>r});var r=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},89113:(e,t,n)=>{n.d(t,{T:()=>i});var r=n(37407);function i(e){return Symbol.asyncIterator&&(0,r.T)(null==e?void 0:e[Symbol.asyncIterator])}},27963:(e,t,n)=>{function r(e){return e instanceof Date&&!isNaN(e)}n.d(t,{v:()=>r})},37407:(e,t,n)=>{function r(e){return"function"==typeof e}n.d(t,{T:()=>r})},95287:(e,t,n)=>{n.d(t,{l:()=>o});var r=n(43006),i=n(37407);function o(e){return(0,i.T)(e[r.s])}},37885:(e,t,n)=>{n.d(t,{x:()=>o});var r=n(41201),i=n(37407);function o(e){return(0,i.T)(null==e?void 0:e[r.l])}},71866:(e,t,n)=>{n.d(t,{y:()=>i});var r=n(37407);function i(e){return(0,r.T)(null==e?void 0:e.then)}},19092:(e,t,n)=>{n.d(t,{C:()=>o,U:()=>s});var r=n(24746),i=n(37407);function o(e){return(0,r.AQ)(this,arguments,(function(){var t,n,i;return(0,r.YH)(this,(function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,(0,r.N3)(t.read())];case 3:return n=o.sent(),i=n.value,n.done?[4,(0,r.N3)(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,(0,r.N3)(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}
1))}))}function s(e){return(0,i.T)(null==e?void 0:e.getReader)}},47142:(e,t,n)=>{n.d(t,{m:()=>i});var r=n(37407);function i(e){return e&&(0,r.T)(e.schedule)}},28414:(e,t,n)=>{n.d(t,{N:()=>i});var r=n(37407);function i(e){return function(t){if(function(e){return(0,r.T)(null==e?void 0:e.lift)}(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}},88634:(e,t,n)=>{n.d(t,{I:()=>s});var r=n(24746),i=n(28138),o=Array.isArray;function s(e){return(0,i.T)((function(t){return function(e,t){return o(t)?e.apply(void 0,(0,r.fX)([],(0,r.zs)(t))):e(t)}(e,t)}))}},62407:(e,t,n)=>{function r(){}n.d(t,{l:()=>r})},22571:(e,t,n)=>{n.d(t,{m:()=>i});var r=n(89117);function i(e){return 0===e.length?r.D:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}},4174:(e,t,n)=>{n.d(t,{m:()=>o});var r=n(32906),i=n(47438);function o(e){i.f.setTimeout((function(){var t=r.$.onUnhandledError;if(!t)throw e;t(e)}))}},82423:(e,t,n)=>{function r(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}n.d(t,{L:()=>r})},24746:(e,t,n)=>{n.d(t,{AQ:()=>d,C6:()=>i,Ju:()=>a,N3:()=>l,YH:()=>s,fX:()=>c,sH:()=>o,xN:()=>f,zs:()=>u});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function o(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))}function s(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}function a(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function c(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function l(e){return this instanceof l?(this.v=e,this):new l(e)}function d(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof l?Promise.resolve(n.value.v).then(u,c):d(o[0][2],n)}catch(e){d(o[0][3],e)}var n}function u(e){a("next",e)}function c(e){a("throw",e)}function d(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function f(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=a(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}Object.create,Object.create},30878:(e,t,n)=>{var r=n(91417),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},59206:e=>{e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1}
vendor: 1,915 bytes, line 1
1,NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},87389:(e,t,n)=>{var r=n(2484),i=Error,o=r("".replace),s=String(new i("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,u=a.test(s);e.exports=function(e,t){if(u&&"string"==typeof e&&!i.prepareStackTrace)for(;t--;)e=o(e,a,"");return e}},19859:(e,t,n)=>{var r=n(321),i=n(94102),o=n(31715);e.exports=function(e,t,n){var s,a;return o&&r(s=t.constructor)&&s!==n&&i(a=s.prototype)&&a!==n.prototype&&o(e,a),e}},91417:(e,t,n)=>{var r=n(94102);e.exports=function(e){return r(e)||null===e}},50517:(e,t,n)=>{var r=n(93625),i=n(54334),o=n(10659),s=n(30779),a=n(61274),u=n(24035),c=a((function(){var e=this.iterator,t=o(r(this.next,e));if(!(this.done=!!t.done))return u(e,this.mapper,[t.value,this.counter++],!0)}));e.exports=function(e){return o(this),i(e),new c(s(this),{mapper:e})}},68687:(e,t,n)=>{var r=n(17267);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},31715:(e,t,n)=>{var r=n(18438),i=n(94102),o=n(64834),s=n(30878);
1e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),s(r),i(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},17267:(e,t,n)=>{var r=n(35719),i=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},90464:e=>{var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},1986:(e,t,n)=>{var r=n(88810),i=n(50517);r({target:"Iterator",proto:!0,real:!0,forced:n(36007)},{map:i})},25119:(e,t,n)=>{var r=n(88810),i=n(88052),o=n(33163),s=n(25936),a=n(86005).f,u=n(44461),c=n(55755),l=n(19859),d=n(68687),f=n(59206),v=n(87389),h=n(92128),p=n(36007),g="DOMException",y=o("Error"),m=o(g),b=function(){c(this,w);var e=arguments.length,t=d(e<1?void 0:arguments[0]),n=d(e<2?void 0:arguments[1],"Error"),r=new m(t,n),i=new y(t);return i.name=g,a(r,"stack",s(1,v(i.stack,1))),l(r,this,b),r},w=b.prototype=m.prototype,S="stack"in new y(g),E="stack"in new m(1,2),I=m&&h&&Object.getOwnPropertyDescriptor(i,g),T=!(!I||I.writable&&I.configurable),_=S&&!T&&!E;r({global:!0,constructor:!0,forced:p||_},{DOMException:_?b:m});var C=o(g),P=C.prototype;if(P.constructor!==C)for(var k in p||a(P,"constructor",s(1,C)),f)if(u(f,k)){var O=f[k],R=O.s;u(C,R)||a(C,R,s(6,O.c))}},21215:(e,t,n)=>{var r=n(25236),i=n(2484),o=n(17267),s=n(90464),a=URLSearchParams,u=a.prototype,c=i(u.append),l=i(u.delete),d=i(u.forEach),f=i([].push),v=new a("a=1&a=2&b=3");v.delete("a",1),v.delete("b",void 0),v+""!="a=2"&&r(u,"delete",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return l(this,e);var r=[];d(this,(function(e,t){f(r,{key:t,value:e})})),s(t,1);for(var i,a=o(e),u=o(n),v=0,h=0,p=!1,g=r.length;v<g;)i=r[v++],p||i.key===a?(p=!0,l(this,i.key)):h++;for(;h<g;)(i=r[h++]).key===a&&i.value===u||c(this,i.key,i.value)}),{enumerable:!0,unsafe:!0})},36538:(e,t,n)=>{var r=n(25236),i=n(2484),o=n(17267),s=n(90464),a=URLSearchParams,u=a.prototype,c=i(u.getAll),l=i(u.has),d=new a("a=1");!d.has("a",2)&&d.has("a",void 0)||r(u,"has",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return l(this,e);var r=c(this,e);s(t,1);for(var i=o(n),a=0;a<r.length;)if(r[a++]===i)return!0;return!1}),{enumerable:!0,unsafe:!0})},69565:(e,t,n)=>{var r=n(92128),i=n(2484),o=n(56038),s=URLSearchParams.prototype,a=i(s.forEach);r&&!("size"in s)&&o(s,"size",{get:function(){var e=0;return a(this,(function(){e++})),e},configurable:!0,enumerable:!0})},71319:(e,t,n)=>{n.d(t,{M:()=>Y,a:()=>q,s:()=>j,z:()=>U});var r=Uint8Array,i=Uint16Array,o=Uint32Array,s=new r([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),a=new r([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),u=new r([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=function(e,t){for(var n=new i(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var s=new o(n[30]);for(r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)s[a]=a-n[r]<<5|r;return[n,s]},l=c(s,2),d=l[0],f=l[1];d[28]=258,f[258]=28;for(var v=c(a,0),h=(v[0],v[1]),p=new i(32768),g=0;g<32768;++g){var y=(43690&g)>>>1|(21845&g)<<1;y=(61680&(y=(52428&y)>>>2|(13107&y)<<2))>>>4|(3855&y)<<4,p[g]=((65280&y)>>>8|(255&y)<<8)>>>1}var m=function(e,t,n){for(var r=e.length,o=0,s=new i(t);o<r;++o)++s[e[o]-1];var a,u=new i(t);for(o=0;o<t;
vendor: 4,273 bytes, line 1
1++o)u[o]=u[o-1]+s[o-1]<<1;if(n){a=new i(1<<t);var c=15-t;for(o=0;o<r;++o)if(e[o])for(var l=o<<4|e[o],d=t-e[o],f=u[e[o]-1]++<<d,v=f|(1<<d)-1;f<=v;++f)a[p[f]>>>c]=l}else for(a=new i(r),o=0;o<r;++o)a[o]=p[u[e[o]-1]++]>>>15-e[o];return a},b=new r(288);for(g=0;g<144;++g)b[g]=8;for(g=144;g<256;++g)b[g]=9;for(g=256;g<280;++g)b[g]=7;for(g=280;g<288;++g)b[g]=8;var w=new r(32);for(g=0;g<32;++g)w[g]=5;var S=m(b,9,0),E=m(w,5,0),I=function(e){return(e/8|0)+(7&e&&1)},T=function(e,t,n){(null==n||n>e.length)&&(n=e.length);var s=new(e instanceof i?i:e instanceof o?o:r)(n-t);return s.set(e.subarray(t,n)),s},_=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8},C=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},P=function(e,t){for(var n=[],o=0;o<e.length;++o)e[o]&&n.push({s:o,f:e[o]});var s=n.length,a=n.slice();if(!s)return[new r(0),0];if(1==s){var u=new r(n[0].s+1);return u[n[0].s]=1,[u,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var c=n[0],l=n[1],d=0,f=1,v=2;for(n[0]={s:-1,f:c.f+l.f,l:c,r:l};f!=s-1;)c=n[n[d].f<n[v].f?d++:v++],l=n[d!=f&&n[d].f<n[v].f?d++:v++],n[f++]={s:-1,f:c.f+l.f,l:c,r:l};var h=a[0].s;for(o=1;o<s;++o)a[o].s>h&&(h=a[o].s);var p=new i(h+1),g=k(n[f-1],p,0);if(g>t){o=0;var y=0,m=g-t,b=1<<m;for(a.sort((function(e,t){return p[t.s]-p[e.s]||e.f-t.f}));o<s;++o){var w=a[o].s;if(!(p[w]>t))break;y+=b-(1<<g-p[w]),p[w]=t}for(y>>>=m;y>0;){var S=a[o].s;p[S]<t?y-=1<<t-p[S]++-1:++o}for(;o>=0&&y;--o){var E=a[o].s;p[E]==t&&(--p[E],++y)}g=t}return[new r(p),g]},k=function(e,t,n){return-1==e.s?Math.max(k(e.l,t,n+1),k(e.r,t,n+1)):t[e.s]=n},O=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new i(++t),r=0,o=e[0],s=1,a=function(e){n[r++]=e},u=1;u<=t;++u)if(e[u]==o&&u!=t)++s;else{if(!o&&s>2){for(;s>138;s-=138)a(32754);s>2&&(a(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(a(o),--s;s>6;s-=6)a(8304);s>2&&(a(s-3<<5|8208),s=0)}for(;s--;)a(o);s=1,o=e[u]}return[n.subarray(0,r),t]},R=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},A=function(e,t,n){var r=n.length,i=I(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<r;++o)e[i+o+4]=n[o];return 8*(i+4+r)},x=function(e,t,n,r,o,c,l,d,f,v,h){_(t,h++,n),++o[256];for(var p=P(o,15),g=p[0],y=p[1],I=P(c,15),T=I[0],k=I[1],x=O(g),N=x[0],H=x[1],L=O(T),D=L[0],M=L[1],U=new i(19),q=0;q<N.length;++q)U[31&N[q]]++;for(q=0;q<D.length;++q)U[31&D[q]]++;for(var j=P(U,7),Y=j[0],F=j[1],$=19;$>4&&!Y[u[$-1]];--$);var z,B,W,K,V=v+5<<3,X=R(o,b)+R(c,w)+l,J=R(o,g)+R(c,T)+l+14+3*$+R(U,Y)+(2*U[16]+3*U[17]+7*U[18]);if(V<=X&&V<=J)return A(t,h,e.subarray(f,f+v));if(_(t,h,1+(J<X)),h+=2,J<X){z=m(g,y,0),B=g,W=m(T,k,0),K=T;var G=m(Y,F,0);for(_(t,h,H-257),_(t,h+5,M-1),_(t,h+10,$-4),h+=14,q=0;q<$;++q)_(t,h+3*q,Y[u[q]]);h+=3*$;for(var Q=[N,D],Z=0;Z<2;++Z){var ee=Q[Z];for(q=0;q<ee.length;++q){var te=31&ee[q];_(t,h,G[te]),h+=Y[te],te>15&&(_(t,h,ee[q]>>>5&127),h+=ee[q]>>>12)}}}else z=S,B=b,W=E,K=w;for(q=0;q<d;++q)if(r[q]>255){te=r[q]>>>18&31,C(t,h,z[te+257]),h+=B[te+257],te>7&&(_(t,h,r[q]>>>23&31),h+=s[te]);var ne=31&r[q];C(t,h,W[ne]),h+=K[ne],ne>3&&(C(t,h,r[q]>>>5&8191),h+=a[ne])}else C(t,h,z[r[q]]),h+=B[r[q]];return C(t,h,z[256]),h+B[256]},N=new o([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),H=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,o=n.length,s=0;s!=o;){for(var a=Math.min(s+5552,o);s<a;++s)i+=r+=n[s];r%=65521,i%=65521}e=r,t=i},d:function(){return(e>>>8<<16|(255&t)<<8|t>>>8)+2*((255&e)<<23)}}},L=function(e,t,n,u,c){return function(e,t,n,u,c,l){var d=e.length,v=new r(u+d+5*(1+Math.floor(d/7e3))+c),p=v.subarray(u,v.length-c),g=0;if(!t||d<8)for(var y=0;y<=d;y+=65535){var m=y+65535;m<d?g=A(p,g,e.subarray(y,m)):(p[y]=l,g=A(p,g,e.subarray(y,d)))}else{for(var b=N[t-1],w=b>>>13,S=8191&b,E=(1<<n)-1,_=new i(32768),C=new i(E+1),P=Math.ceil(n/3),k=2*P,O=function(t){return(e[t]^e[t+1]<<P^e[t+2]<<k)&E},R=new o(25e3),H=new i(288),L=new i(32),D=0,M=0,U=(y=0,0),q=0,j=0;y<d;++y){var Y=O(y),F=32767&y,$=C[Y];if(_[F]=$,C[Y]=F,q<=y){var z=d-y;if((D>7e3||U>24576)&&z>423){g=x(e,p,0,R,H,L,M,U,j,y-j,g),U=D=M=0,j=y;for(var B=0;B<286;++B)H[B]=0;for(B=0;B<30;++B)L[B]=0}var W=2,K=0,V=S,X=F-$&32767;if(z>2&&Y==O(y-X))for(var J=Math.min(w,z)-1,G=Math.min(32767,y),Q=Math.min(258,z);X<=G&&--V&&F!=$;
1){if(e[y+W]==e[y+W-X]){for(var Z=0;Z<Q&&e[y+Z]==e[y+Z-X];++Z);if(Z>W){if(W=Z,K=X,Z>J)break;var ee=Math.min(X,Z-2),te=0;for(B=0;B<ee;++B){var ne=y-X+B+32768&32767,re=ne-_[ne]+32768&32767;re>te&&(te=re,$=ne)}}}X+=(F=$)-($=_[F])+32768&32767}if(K){R[U++]=268435456|f[W]<<18|h[K];var ie=31&f[W],oe=31&h[K];M+=s[ie]+a[oe],++H[257+ie],++L[oe],q=y+W,++D}else R[U++]=e[y],++H[e[y]]}}g=x(e,p,l,R,H,L,M,U,j,y-j,g)}return T(v,0,u+I(g)+c)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,u,!c)},D=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},M=function(e,t){var n=t.level,r=0==n?0:n<6?1:9==n?3:2;e[0]=120,e[1]=r<<6|(r?32-2*r:1)};function U(e,t){void 0===t&&(t={});var n=H();n.p(e);var r=L(e,t,2,4);return M(r,t),D(r,r.length-4,n.d()),r}function q(e,t){var n=e.length;if(!t&&"undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var i=new r(e.length+(e.length>>>1)),o=0,s=function(e){i[o++]=e},a=0;a<n;++a){if(o+5>i.length){var u=new r(o+8+(n-a<<1));u.set(i),i=u}var c=e.charCodeAt(a);c<128||t?s(c):c<2048?(s(192|c>>>6),s(128|63&c)):c>55295&&c<57344?(s(240|(c=65536+(1047552&c)|1023&e.charCodeAt(++a))>>>18),s(128|c>>>12&63),s(128|c>>>6&63),s(128|63&c)):(s(224|c>>>12),s(128|c>>>6&63),s(128|63&c))}return T(i,0,o)}function j(e,t){var n="";if(!t&&"undefined"!=typeof TextDecoder)return(new TextDecoder).decode(e);for(var r=0;r<e.length;){var i=e[r++];i<128||t?n+=String.fromCharCode(i):i<224?n+=String.fromCharCode((31&i)<<6|63&e[r++]):i<240?n+=String.fromCharCode((15&i)<<12|(63&e[r++])<<6|63&e[r++]):(i=((15&i)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536,n+=String.fromCharCode(55296|i>>10,56320|1023&i))}return n}const Y="v1"},87773:(e,t,n)=>{n.d(t,{q:()=>i});var r=n(71319);const i=e=>{const t={...e,v:r.M};return(0,r.s)((0,r.z)((0,r.a)(JSON.stringify(t))),!0)}},52566:(e,t,n)=>{n.d(t,{q:()=>r.q});var r=n(87773);n(95306)},95306:(e,t,n)=>{n(71319)},50583:(e,t,n)=>{n.d(t,{Bx:()=>r,T7:()=>i});var r=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(r||{}),i=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(i||{})},81631:(e,t,n)=>{n.d(t,{Ay:()=>d});const r={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},i={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},o={};function s(e){if(o[e])return o[e];const t=function(e){var t,n;const r=null==(n=null==(t=null==globalThis?void 0:globalThis.Zone)?void 0:t.__symbol__)?void 0:n.call(t,e);return r&&globalThis[r]?globalThis[r]:void 0}
1(e)||globalThis[e],n=t.prototype,s=e in r?r[e]:void 0,a=Boolean(s&&s.every((e=>{var t,r;return Boolean(null==(r=null==(t=Object.getOwnPropertyDescriptor(n,e))?void 0:t.get)?void 0:r.toString().includes("[native code]"))}))),u=e in i?i[e]:void 0,c=Boolean(u&&u.every((e=>{var t;return"function"==typeof n[e]&&(null==(t=n[e])?void 0:t.toString().includes("[native code]"))})));if(a&&c)return o[e]=t.prototype,t.prototype;try{const r=document.createElement("iframe");document.body.appendChild(r);const i=r.contentWindow;if(!i)return t.prototype;const s=i[e].prototype;return document.body.removeChild(r),s?o[e]=s:n}catch{return n}}const a={};function u(e,t,n){var r;const i=`${e}.${String(n)}`;if(a[i])return a[i].call(t);const o=s(e),u=null==(r=Object.getOwnPropertyDescriptor(o,n))?void 0:r.get;return u?(a[i]=u,u.call(t)):t[n]}const c={};function l(e,t,n){const r=`${e}.${String(n)}`;if(c[r])return c[r].bind(t);const i=s(e)[n];return"function"!=typeof i?t[n]:(c[r]=i,i.bind(t))}const d={childNodes:function(e){return u("Node",e,"childNodes")},parentNode:function(e){return u("Node",e,"parentNode")},parentElement:function(e){return u("Node",e,"parentElement")},textContent:function(e){return u("Node",e,"textContent")},contains:function(e,t){return l("Node",e,"contains")(t)},getRootNode:function(e){return l("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?u("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?u("Element",e,"shadowRoot"):null},querySelector:function(e,t){return u("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return u("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return s("MutationObserver").constructor}}},32927:(e,t,n)=>{n.d(t,{P2:()=>h});const r=(e,t)=>t.some((t=>e instanceof t));let i,o;const s=new WeakMap,a=new WeakMap,u=new WeakMap;let c={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return s.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return f(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function l(e){c=e(c)}function d(e){return"function"==typeof e?(t=e,(o||(o=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(v(this),e),f(this.request)}:function(...e){return f(t.apply(v(this),e))}):(e instanceof IDBTransaction&&function(e){if(s.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),r()},o=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)}));s.set(e,t)}(e),r(e,i||(i=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,c):e);var t}function f(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(f(e.result)),r()},o=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",o)}));return u.set(t,e),t}(e);if(a.has(e))return a.get(e);const t=d(e);return t!==e&&(a.set(e,t),u.set(t,e)),t}const v=e=>u.get(e);function h(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const s=indexedDB.open(e,t),a=f(s);return r&&s.addEventListener("upgradeneeded",(e=>{r(f(s.result),e.oldVersion,e.newVersion,f(s.transaction),e)})),n&&s.addEventListener("blocked",(e=>n(e.oldVersion,e.newVersion,e))),a.then((e=>{o&&e.addEventListener("close",(()=>o())),i&&e.addEventListener("versionchange",(e=>i(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),a}const p=["get","getKey","getAll","getAllKeys","count"],g=["put","add","delete","clear"],y=new Map;function m(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(y.get(t))return y.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=g.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!p.includes(n))return;const o=async function(e,...t){const o=this.transaction(e,i?"readwrite":"readonly");let s=o.store;
1return r&&(s=s.index(t.shift())),(await Promise.all([s[n](...t),i&&o.done]))[0]};return y.set(t,o),o}l((e=>({...e,get:(t,n,r)=>m(t,n)||e.get(t,n,r),has:(t,n)=>!!m(t,n)||e.has(t,n)})));const b=["continue","continuePrimaryKey","advance"],w={},S=new WeakMap,E=new WeakMap,I={get(e,t){if(!b.includes(t))return e[t];let n=w[t];return n||(n=w[t]=function(...e){S.set(this,E.get(this)[t](...e))}),n}};async function*T(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;const n=new Proxy(t,I);for(E.set(n,t),u.set(n,v(t));t;)yield n,t=await(S.get(n)||t.continue()),S.delete(n)}function _(e,t){return t===Symbol.asyncIterator&&r(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&r(e,[IDBIndex,IDBObjectStore])}l((e=>({...e,get:(t,n,r)=>_(t,n)?T:e.get(t,n,r),has:(t,n)=>_(t,n)||e.has(t,n)})))},39229:(e,t,n)=>{n.d(t,{A:()=>r});const r=n(25801).A.Symbol},77564:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(39229),i=n(40831),o=n(81674),s=r.A?r.A.toStringTag:void 0;const a=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?(0,i.A)(e):(0,o.A)(e)}},94236:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(31532),i=/^\s+/;const o=function(e){return e?e.slice(0,(0,r.A)(e)+1).replace(i,""):e}},42692:(e,t,n)=>{n.d(t,{A:()=>r});const r="object"==typeof global&&global&&global.Object===Object&&global},40831:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(39229),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r.A?r.A.toStringTag:void 0;const u=function(e){var t=o.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var i=s.call(e);return r&&(t?e[a]=n:delete e[a]),i}},81674:(e,t,n)=>{n.d(t,{A:()=>i});var r=Object.prototype.toString;const i=function(e){return r.call(e)}},25801:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(42692),i="object"==typeof self&&self&&self.Object===Object&&self;const o=r.A||i||Function("return this")()},31532:(e,t,n)=>{n.d(t,{A:()=>i});var r=/\s/;const i=function(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t}},65681:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(40345),i=n(39520),o=n(25922),s=Math.max,a=Math.min;const u=function(e,t,n){var u,c,l,d,f,v,h=0,p=!1,g=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var n=u,r=c;return u=c=void 0,h=t,d=e.apply(r,n)}function b(e){var n=e-v;return void 0===v||n>=t||n<0||g&&e-h>=l}function w(){var e=(0,i.A)();if(b(e))return S(e);f=setTimeout(w,function(e){var n=t-(e-v);return g?a(n,l-(e-h)):n}(e))}function S(e){return f=void 0,y&&u?m(e):(u=c=void 0,d)}function E(){var e=(0,i.A)(),n=b(e);if(u=arguments,c=this,v=e,n){if(void 0===f)return function(e){return h=e,f=setTimeout(w,t),p?m(e):d}(v);if(g)return clearTimeout(f),f=setTimeout(w,t),m(v)}return void 0===f&&(f=setTimeout(w,t)),d}return t=(0,o.A)(t)||0,(0,r.A)(n)&&(p=!!n.leading,l=(g="maxWait"in n)?s((0,o.A)(n.maxWait)||0,t):l,y="trailing"in n?!!n.trailing:y),E.cancel=function(){void 0!==f&&clearTimeout(f),h=0,u=v=c=f=void 0},E.flush=function(){return void 0===f?d:S((0,i.A)())},E}},40345:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},43046:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e){return null!=e&&"object"==typeof e}},89990:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(77564),i=n(43046);const o=function(e){return"symbol"==typeof e||(0,i.A)(e)&&"[object Symbol]"==(0,r.A)(e)}},39520:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(25801);const i=function(){return r.A.Date.now()}},4906:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(65681),i=n(40345);const o=function(e,t,n){var o=!0,s=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return(0,i.A)(n)&&(o="leading"in n?!!n.leading:o,s="trailing"in n?!!n.trailing:s),(0,r.A)(e,t,{leading:o,maxWait:t,trailing:s})}},25922:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(94236),i=n(40345),o=n(89990),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;const l=function(e){if("number"==typeof e)return e;if((0,o.A)(e))return NaN;if((0,i.A)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,i.A)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=(0,r.A)(e);var n=a.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?NaN:+e}}
vendor: 3,399 bytes, line 1
1,55823:(e,t,n)=>{n.d(t,{C6:()=>i,Cl:()=>o,Ju:()=>c,Tt:()=>s,YH:()=>u,fX:()=>d,sH:()=>a,zs:()=>l});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function a(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))}function u(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}function c(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function d(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.