(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{758:function(t,e,n){"use strict";n.d(e,{r:function(){return s}});var r=n(5659),i=n(7850),o=n(1422);function s(){(0,i.T)(),(0,o.KV)()&&function(){let e=(0,r.cu)();if(!e.__SENTRY__)return;let n={mongodb:()=>new((0,o.l$)(t,"./node/integrations/mongo")).Mongo,mongoose:()=>new((0,o.l$)(t,"./node/integrations/mongo")).Mongo,mysql:()=>new((0,o.l$)(t,"./node/integrations/mysql")).Mysql,pg:()=>new((0,o.l$)(t,"./node/integrations/postgres")).Postgres},i=Object.keys(n).filter(t=>!!(0,o.$y)(t)).map(t=>{try{return n[t]()}catch(t){return}}).filter(t=>t);i.length>0&&(e.__SENTRY__.integrations=[...e.__SENTRY__.integrations||[],...i])}()}t=n.hmd(t)},1131:function(t,e,n){"use strict";n.d(e,{J:function(){return r}});let r="production"},1703:function(t,e,n){"use strict";n.d(e,{X:function(){return r}});let r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},1195:function(t,e,n){"use strict";n.d(e,{RP:function(){return function t(e,n,r,c=0){return new i.cW((i,u)=>{let l=e[c];if(null===n||"function"!=typeof l)i(n);else{let p=l({...n},r);a.X&&l.id&&null===p&&o.kg.log(`Event processor "${l.id}" dropped event`),(0,s.J8)(p)?p.then(n=>t(e,n,r,c+1).then(i)).then(null,u):t(e,p,r,c+1).then(i).then(null,u)}})}},cc:function(){return u},fH:function(){return c}});var r=n(1235),i=n(6893),o=n(2343),s=n(7597),a=n(1703);function c(){return(0,r.Y)("globalEventProcessors",()=>[])}function u(t){c().push(t)}},4487:function(t,e,n){"use strict";n.d(e,{$e:function(){return h},Tb:function(){return c},cg:function(){return v},eN:function(){return u},nZ:function(){return f},n_:function(){return l},s3:function(){return d},v:function(){return p},yj:function(){return g}});var r=n(1235),i=n(1131),o=n(5659),s=n(9015),a=n(8942);function c(t,e){return(0,o.Gd)().captureException(t,(0,a.U0)(e))}function u(t,e){return(0,o.Gd)().captureEvent(t,e)}function l(t,e){(0,o.Gd)().addBreadcrumb(t,e)}function p(t,e){(0,o.Gd)().setContext(t,e)}function h(...t){let e=(0,o.Gd)();if(2===t.length){let[n,r]=t;return n?e.withScope(()=>(e.getStackTop().scope=n,r(n))):e.withScope(r)}return e.withScope(t[0])}function d(){return(0,o.Gd)().getClient()}function f(){return(0,o.Gd)().getScope()}function g(t){let e=d(),n=(0,o.aF)(),a=f(),{release:c,environment:u=i.J}=e&&e.getOptions()||{},{userAgent:l}=r.GLOBAL_OBJ.navigator||{},p=(0,s.Hv)({release:c,environment:u,user:a.getUser()||n.getUser(),...l&&{userAgent:l},...t}),h=n.getSession();return h&&"ok"===h.status&&(0,s.CT)(h,{status:"exited"}),m(),n.setSession(p),a.setSession(p),p}function m(){let t=(0,o.aF)(),e=f(),n=e.getSession()||t.getSession();n&&(0,s.RJ)(n),y(),t.setSession(),e.setSession()}function y(){let t=(0,o.aF)(),e=f(),n=d(),r=e.getSession()||t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function v(t=!1){if(t){m();return}y()}},5659:function(t,e,n){"use strict";n.d(e,{Gd:function(){return m},Ok:function(){return v},aF:function(){return y},cu:function(){return f}});var r=n(7597),i=n(2844),o=n(1170),s=n(2343),a=n(1235),c=n(1131),u=n(1703),l=n(350),p=n(9015);let h=parseFloat(n(105).J);class d{constructor(t,e,n,r=h){let i,o;this._version=r,e?i=e:(i=new l.sX).setClient(t),n?o=n:(o=new l.sX).setClient(t),this._stack=[{scope:i}],t&&this.bindClient(t),this._isolationScope=o}isOlderThan(t){return this._version(this.popScope(),t),t=>{throw this.popScope(),t}):(this.popScope(),e)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,e){let n=this._lastEventId=e&&e.event_id?e.event_id:(0,i.DM)(),r=Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:r,...e,event_id:n}),n}captureMessage(t,e,n){let r=this._lastEventId=n&&n.event_id?n.event_id:(0,i.DM)(),o=Error(t);return this.getScope().captureMessage(t,e,{originalException:t,syntheticException:o,...n,event_id:r}),r}captureEvent(t,e){let n=e&&e.event_id?e.event_id:(0,i.DM)();return t.type||(this._lastEventId=n),this.getScope().captureEvent(t,{...e,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){let{scope:n,client:r}=this.getStackTop();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=100}=r.getOptions&&r.getOptions()||{};if(a<=0)return;let c={timestamp:(0,o.yW)(),...t},u=i?(0,s.Cf)(()=>i(c,e)):c;null!==u&&(r.emit&&r.emit("beforeAddBreadcrumb",u,e),n.addBreadcrumb(u,a))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,e){this.getScope().setTag(t,e),this.getIsolationScope().setTag(t,e)}setExtra(t,e){this.getScope().setExtra(t,e),this.getIsolationScope().setExtra(t,e)}setContext(t,e){this.getScope().setContext(t,e),this.getIsolationScope().setContext(t,e)}configureScope(t){let{scope:e,client:n}=this.getStackTop();n&&t(e)}run(t){let e=g(this);try{t(this)}finally{g(e)}}getIntegration(t){let e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return u.X&&s.kg.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,e){let n=this._callExtensionMethod("startTransaction",t,e);return u.X&&!n&&(this.getClient()?s.kg.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': Sentry.addTracingExtensions(); Sentry.init({...}); `):s.kg.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){let t=this.getStackTop().scope,e=t.getSession();e&&(0,p.RJ)(e),this._sendSessionUpdate(),t.setSession()}startSession(t){let{scope:e,client:n}=this.getStackTop(),{release:r,environment:i=c.J}=n&&n.getOptions()||{},{userAgent:o}=a.GLOBAL_OBJ.navigator||{},s=(0,p.Hv)({release:r,environment:i,user:e.getUser(),...o&&{userAgent:o},...t}),u=e.getSession&&e.getSession();return u&&"ok"===u.status&&(0,p.CT)(u,{status:"exited"}),this.endSession(),e.setSession(s),s}shouldSendDefaultPii(){let t=this.getClient(),e=t&&t.getOptions();return!!(e&&e.sendDefaultPii)}_sendSessionUpdate(){let{scope:t,client:e}=this.getStackTop(),n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}_callExtensionMethod(t,...e){let n=f().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);u.X&&s.kg.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function f(){return a.GLOBAL_OBJ.__SENTRY__=a.GLOBAL_OBJ.__SENTRY__||{extensions:{},hub:void 0},a.GLOBAL_OBJ}function g(t){let e=f(),n=_(e);return b(e,t),n}function m(){let t=f();if(t.__SENTRY__&&t.__SENTRY__.acs){let e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return function(t=f()){return(!(t&&t.__SENTRY__&&t.__SENTRY__.hub)||_(t).isOlderThan(h))&&b(t,new d),_(t)}(t)}function y(){return m().getIsolationScope()}function v(t,e={}){let n=f();return n.__SENTRY__&&n.__SENTRY__.acs?n.__SENTRY__.acs.runWithAsyncContext(t,e):t()}function _(t){return(0,a.Y)("hub",()=>new d,t)}function b(t,e){return!!t&&((t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0)}},5986:function(t,e,n){"use strict";let r;n.d(e,{y:function(){return o}});var i=n(535);function o(t){let e=r?r.get(t):void 0;if(!e)return;let n={};for(let[,[t,r]]of e)n[t]||(n[t]=[]),n[t].push((0,i.Jr)(r));return n}},350:function(t,e,n){"use strict";let r;n.d(e,{lW:function(){return h},sX:function(){return p}});var i=n(7597),o=n(1170),s=n(2844),a=n(2343),c=n(1195),u=n(9015),l=n(3379);class p{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=d()}static clone(t){return t?t.clone():new p}clone(){let t=new p;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&(0,u.CT)(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let e="function"==typeof t?t(this):t;if(e instanceof p){let t=e.getScopeData();this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&Object.keys(t.user).length&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint.length&&(this._fingerprint=t.fingerprint),e.getRequestSession()&&(this._requestSession=e.getRequestSession()),t.propagationContext&&(this._propagationContext=t.propagationContext)}else(0,i.PO)(e)&&(this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext));return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=d(),this}addBreadcrumb(t,e){let n="number"==typeof e?e:100;if(n<=0)return this;let r={timestamp:(0,o.yW)(),...t},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){let{_breadcrumbs:t,_attachments:e,_contexts:n,_tags:r,_extra:i,_user:o,_level:s,_fingerprint:a,_eventProcessors:c,_propagationContext:u,_sdkProcessingMetadata:l,_transactionName:p,_span:h}=this;return{breadcrumbs:t,attachments:e,contexts:n,tags:r,extra:i,user:o,level:s,fingerprint:a||[],eventProcessors:c,propagationContext:u,sdkProcessingMetadata:l,transactionName:p,span:h}}applyToEvent(t,e={},n=[]){(0,l.gi)(t,this.getScopeData());let r=[...n,...(0,c.fH)(),...this._eventProcessors];return(0,c.RP)(r,t,e)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){let n=e&&e.event_id?e.event_id:(0,s.DM)();if(!this._client)return a.kg.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){let r=n&&n.event_id?n.event_id:(0,s.DM)();if(!this._client)return a.kg.warn("No client configured on scope - will not capture message!"),r;let i=Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureEvent(t,e){let n=e&&e.event_id?e.event_id:(0,s.DM)();return this._client?this._client.captureEvent(t,{...e,event_id:n},this):a.kg.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function h(){return r||(r=new p),r}function d(){return{traceId:(0,s.DM)(),spanId:(0,s.DM)().substring(16)}}},6754:function(t,e,n){"use strict";n.d(e,{$J:function(){return o},S3:function(){return s},TE:function(){return i},Zj:function(){return r},p6:function(){return a}});let r="sentry.source",i="sentry.sample_rate",o="sentry.op",s="sentry.origin",a="profile_id"},9015:function(t,e,n){"use strict";n.d(e,{CT:function(){return a},Hv:function(){return s},RJ:function(){return c}});var r=n(1170),i=n(2844),o=n(535);function s(t){let e=(0,r.ph)(),n={sid:(0,i.DM)(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>(0,o.Jr)({sid:`${n.sid}`,init:n.init,started:new Date(1e3*n.started).toISOString(),timestamp:new Date(1e3*n.timestamp).toISOString(),status:n.status,errors:n.errors,did:"number"==typeof n.did||"string"==typeof n.did?`${n.did}`:void 0,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})};return t&&a(n,t),n}function a(t,e={}){if(!e.user||(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||(0,r.ph)(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:(0,i.DM)()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{let e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function c(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),a(t,n)}},454:function(t,e,n){"use strict";n.d(e,{_:function(){return c},j:function(){return u}});var r=n(535),i=n(1131),o=n(4487),s=n(5102),a=n(3371);function c(t,e,n){let o=e.getOptions(),{publicKey:s}=e.getDsn()||{},{segment:a}=n&&n.getUser()||{},c=(0,r.Jr)({environment:o.environment||i.J,release:o.release,user_segment:a,public_key:s,trace_id:t});return e.emit&&e.emit("createDsc",c),c}function u(t){let e=(0,o.s3)();if(!e)return{};let n=c((0,a.XU)(t).trace_id||"",e,(0,o.nZ)()),r=(0,s.G)(t);if(!r)return n;let i=r&&r._frozenDynamicSamplingContext;if(i)return i;let{sampleRate:u,source:l}=r.metadata;null!=u&&(n.sample_rate=`${u}`);let p=(0,a.XU)(r);return l&&"url"!==l&&(n.transaction=p.description),n.sampled=String((0,a.Tt)(r)),e.emit&&e.emit("createDsc",n),n}},7850:function(t,e,n){"use strict";n.d(e,{T:function(){return v},l:function(){return y}});var r=n(2343),i=n(1703),o=n(5659),s=n(3371),a=n(1674),c=n(7373),u=n(9791);let l=!1;function p(){let t=(0,u.x1)();if(t){let e="internal_error";i.X&&r.kg.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}p.tag="sentry_tracingErrorCallback";var h=n(5544),d=n(1221),f=n(8069);function g(){let t=this.getScope().getSpan();return t?{"sentry-trace":(0,s.Hb)(t)}:{}}function m(t,e){let n=this.getClient(),o=n&&n.getOptions()||{},s=o.instrumenter||"sentry",a=t.instrumenter||"sentry";s!==a&&(i.X&&r.kg.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${s}\` instrumenter. The transaction will not be sampled. Please use the ${s} instrumentation to start transactions.`),t.sampled=!1);let c=new f.Y(t,this);return(c=(0,d.f)(c,o,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...e})).isRecording()&&c.initSpanRecorder(o._experiments&&o._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",c),c}function y(t,e,n,r,i,o,s,a=!1){let c=t.getClient(),u=c&&c.getOptions()||{},l=new h.io(e,t,n,r,s,i,a);return(l=(0,d.f)(l,u,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...o})).isRecording()&&l.initSpanRecorder(u._experiments&&u._experiments.maxSpans),c&&c.emit&&c.emit("startTransaction",l),l}function v(){let t=(0,o.cu)();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=m),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=g),l||(l=!0,(0,a.V)(p),(0,c.h)(p)))}},5544:function(t,e,n){"use strict";n.d(e,{AT:function(){return u},io:function(){return p}});var r=n(2343),i=n(1170),o=n(1703),s=n(3371),a=n(8903),c=n(8069);let u={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3};class l extends a.g{constructor(t,e,n,r){super(r),this._pushActivity=t,this._popActivity=e,this.transactionSpanId=n}add(t){if(t.spanContext().spanId!==this.transactionSpanId){let e=t.end;t.end=(...n)=>(this._popActivity(t.spanContext().spanId),e.apply(t,n)),void 0===(0,s.XU)(t).timestamp&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class p extends c.Y{constructor(t,e,n=u.idleTimeout,i=u.finalTimeout,s=u.heartbeatInterval,a=!1,c=!1){super(t,e),this._idleHub=e,this._idleTimeout=n,this._finalTimeout=i,this._heartbeatInterval=s,this._onScope=a,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason="externalFinish",this._autoFinishAllowed=!c,a&&(o.X&&r.kg.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),e.getScope().setSpan(this)),c||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason="finalTimeout",this.end())},this._finalTimeout)}end(t){let e=(0,s.$k)(t);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){for(let t of(o.X&&r.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op),this._beforeFinishCallbacks))t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter(t=>{if(t.spanContext().spanId===this.spanContext().spanId)return!0;!(0,s.XU)(t).timestamp&&(t.setStatus("cancelled"),t.end(e),o.X&&r.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));let{start_timestamp:n,timestamp:i}=(0,s.XU)(t),a=n&&n{this._finished||this._pushActivity(t)},t=>{this._finished||this._popActivity(t)},this.spanContext().spanId,t),o.X&&r.kg.log("Starting heartbeat"),this._pingHeartbeat()),this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:e}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===e,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason="cancelled",this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(o.X&&r.kg.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason="idleTimeout",this.end(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),o.X&&r.kg.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,o.X&&r.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(o.X&&r.kg.log(`[Tracing] popActivity ${t}`),delete this.activities[t],o.X&&r.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){let t=(0,i.ph)();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason="cancelled",this.end(t)):this._restartIdleTimeout(t+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;let t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(o.X&&r.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason="heartbeatFailed",this.end()):this._pingHeartbeat()}_pingHeartbeat(){o.X&&r.kg.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}},1221:function(t,e,n){"use strict";n.d(e,{X:function(){return l},f:function(){return u}});var r=n(2343),i=n(7597),o=n(1703),s=n(6754),a=n(7522),c=n(3371);function u(t,e,n){let i;return(0,a.z)(e)?void 0!==t.sampled?t.setAttribute(s.TE,Number(t.sampled)):("function"==typeof e.tracesSampler?(i=e.tracesSampler(n),t.setAttribute(s.TE,Number(i))):void 0!==n.parentSampled?i=n.parentSampled:void 0!==e.tracesSampleRate?(i=e.tracesSampleRate,t.setAttribute(s.TE,Number(i))):(i=1,t.setAttribute(s.TE,i)),l(i))?i?(t.sampled=Math.random()1)||(o.X&&r.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${t}.`),!1)}},8903:function(t,e,n){"use strict";n.d(e,{D:function(){return f},g:function(){return d}});var r=n(2844),i=n(1170),o=n(2343),s=n(535),a=n(1703),c=n(5986),u=n(6754),l=n(5102),p=n(3371),h=n(7387);class d{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class f{constructor(t={}){this._traceId=t.traceId||(0,r.DM)(),this._spanId=t.spanId||(0,r.DM)().substring(16),this._startTime=t.startTimestamp||(0,i.ph)(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[u.S3]:t.origin||"manual",[u.$J]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp),void 0!==t.exclusiveTime&&(this._exclusiveTime=t.exclusiveTime),this._measurements=t.measurements?{...t.measurements}:{}}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[u.$J]}set op(t){this.setAttribute(u.$J,t)}get origin(){return this._attributes[u.S3]}set origin(t){this.setAttribute(u.S3,t)}spanContext(){let{_spanId:t,_traceId:e,_sampled:n}=this;return{spanId:t,traceId:e,traceFlags:n?p.i0:p.ve}}startChild(t){let e=new f({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});e.spanRecorder=this.spanRecorder,e.spanRecorder&&e.spanRecorder.add(e);let n=(0,l.G)(this);if(e.transaction=n,a.X&&n){let r=t&&t.op||"< unknown op >",i=(0,p.XU)(e).description||"< unknown name >",s=n.spanContext().spanId,a=`[Tracing] Starting '${r}' span on transaction '${i}' (${s}).`;o.kg.log(a),this._logMessage=a}return e}setTag(t,e){return this.tags={...this.tags,[t]:e},this}setData(t,e){return this.data={...this.data,[t]:e},this}setAttribute(t,e){void 0===e?delete this._attributes[t]:this._attributes[t]=e}setAttributes(t){Object.keys(t).forEach(e=>this.setAttribute(e,t[e]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return(0,h.Q0)(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return"ok"===this._status}finish(t){return this.end(t)}end(t){if(this._endTime)return;let e=(0,l.G)(this);if(a.X&&e&&e.spanContext().spanId!==this._spanId){let t=this._logMessage;t&&o.kg.log(t.replace("Starting","Finishing"))}this._endTime=(0,p.$k)(t)}toTraceparent(){return(0,p.Hb)(this)}toContext(){return(0,s.Jr)({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return(0,p.wy)(this)}getSpanJSON(){return(0,s.Jr)({data:this._getData(),description:this._name,op:this._attributes[u.$J],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[u.S3],_metrics_summary:(0,c.y)(this),profile_id:this._attributes[u.p6],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){let{data:t,_attributes:e}=this,n=Object.keys(t).length>0,r=Object.keys(e).length>0;return n||r?n&&r?{...t,...e}:n?t:e:void 0}}},7387:function(t,e,n){"use strict";var r,i;function o(t,e){t.setTag("http.status_code",String(e)),t.setData("http.response.status_code",e);let n=function(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);"unknown_error"!==n&&t.setStatus(n)}n.d(e,{Q0:function(){return o}}),(i=r||(r={})).Ok="ok",i.DeadlineExceeded="deadline_exceeded",i.Unauthenticated="unauthenticated",i.PermissionDenied="permission_denied",i.NotFound="not_found",i.ResourceExhausted="resource_exhausted",i.InvalidArgument="invalid_argument",i.Unimplemented="unimplemented",i.Unavailable="unavailable",i.InternalError="internal_error",i.UnknownError="unknown_error",i.Cancelled="cancelled",i.AlreadyExists="already_exists",i.FailedPrecondition="failed_precondition",i.Aborted="aborted",i.OutOfRange="out_of_range",i.DataLoss="data_loss"},2336:function(t,e,n){"use strict";n.d(e,{I1:function(){return m},qp:function(){return p},GK:function(){return l}});var r=n(535),i=n(5659),o=n(3371),s=n(454),a=n(4487),c=n(7597),u=n(7522);function l(t,e){let n=d(t);return(0,i.Ok)(()=>(0,a.$e)(t.scope,r=>{let s=(0,i.Gd)(),a=r.getSpan(),u=t.onlyIfParent&&!a?void 0:h(s,{parentSpan:a,spanContext:n,forceTransaction:t.forceTransaction,scope:r});return function(t,e,n=()=>{}){var r;let i;try{i=t()}catch(t){throw e(t),n(),t}return r=i,(0,c.J8)(r)?r.then(t=>(n(),t),t=>{throw e(t),n(),t}):(n(),r)}(()=>e(u),()=>{if(u){let{status:t}=(0,o.XU)(u);t&&"ok"!==t||u.setStatus("internal_error")}},()=>u&&u.end())}))}function p(t){if(!(0,u.z)())return;let e=d(t),n=(0,i.Gd)(),r=t.scope?t.scope.getSpan():(0,a.nZ)().getSpan();if(t.onlyIfParent&&!r)return;let o=(t.scope||(0,a.nZ)()).clone();return h(n,{parentSpan:r,spanContext:e,forceTransaction:t.forceTransaction,scope:o})}function h(t,{parentSpan:e,spanContext:n,forceTransaction:a,scope:c}){var l;let p;if(!(0,u.z)())return;let h=(0,i.aF)();if(e&&!a)p=e.startChild(n);else if(e){let r=(0,s.j)(e),{traceId:i,spanId:a}=e.spanContext(),c=(0,o.Tt)(e);p=t.startTransaction({traceId:i,parentSpanId:a,parentSampled:c,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}else{let{traceId:e,dsc:r,parentSpanId:i,sampled:o}={...h.getPropagationContext(),...c.getPropagationContext()};p=t.startTransaction({traceId:e,parentSpanId:i,parentSampled:o,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}return c.setSpan(p),(l=p)&&((0,r.xp)(l,g,h),(0,r.xp)(l,f,c)),p}function d(t){if(t.startTime){let e={...t};return e.startTimestamp=(0,o.$k)(t.startTime),delete e.startTime,e}return t}let f="_sentryScope",g="_sentryIsolationScope";function m(t){return{scope:t[f],isolationScope:t[g]}}},8069:function(t,e,n){"use strict";n.d(e,{Y:function(){return d}});var r=n(535),i=n(2343),o=n(1703),s=n(5659),a=n(5986),c=n(6754),u=n(3371),l=n(454),p=n(8903),h=n(2336);class d extends p.D{constructor(t,e){super(t),this._contexts={},this._hub=e||(0,s.Gd)(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;let n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[c.Zj]&&{source:this._attributes[c.Zj]},...this._attributes[c.TE]&&{sampleRate:this._attributes[c.TE]}}}set metadata(t){this._metadata=t}setName(t,e="custom"){this._name=t,this.setAttribute(c.Zj,e)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new p.g(t)),this.spanRecorder.add(this)}setContext(t,e){null===e?delete this._contexts[t]:this._contexts[t]=e}setMeasurement(t,e,n=""){this._measurements[t]={value:e,unit:n}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){let e=(0,u.$k)(t),n=this._finishTransaction(e);if(n)return this._hub.captureEvent(n)}toContext(){let t=super.toContext();return(0,r.Jr)({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return(0,l.j)(this)}setHub(t){this._hub=t}getProfileId(){if(void 0!==this._contexts&&void 0!==this._contexts.profile)return this._contexts.profile.profile_id}_finishTransaction(t){if(void 0!==this._endTime)return;this._name||(o.X&&i.kg.warn("Transaction has no name, falling back to ``."),this._name=""),super.end(t);let e=this._hub.getClient();if(e&&e.emit&&e.emit("finishTransaction",this),!0!==this._sampled){o.X&&i.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","transaction");return}let n=this.spanRecorder?this.spanRecorder.spans.filter(t=>t!==this&&(0,u.XU)(t).timestamp):[];if(this._trimEnd&&n.length>0){let t=n.map(t=>(0,u.XU)(t).timestamp).filter(Boolean);this._endTime=t.reduce((t,e)=>t>e?t:e)}let{scope:s,isolationScope:c}=(0,h.I1)(this),{metadata:p}=this,{source:d}=p,f={contexts:{...this._contexts,trace:(0,u.wy)(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...p,capturedSpanScope:s,capturedSpanIsolationScope:c,...(0,r.Jr)({dynamicSamplingContext:(0,l.j)(this)})},_metrics_summary:(0,a.y)(this),...d&&{transaction_info:{source:d}}};return Object.keys(this._measurements).length>0&&(o.X&&i.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),f.measurements=this._measurements),o.X&&i.kg.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),f}}},9791:function(t,e,n){"use strict";n.d(e,{x1:function(){return i}});var r=n(5659);function i(t){return(t||(0,r.Gd)()).getScope().getTransaction()}},3379:function(t,e,n){"use strict";n.d(e,{gi:function(){return c},yo:function(){return u}});var r=n(535),i=n(2844),o=n(454),s=n(5102),a=n(3371);function c(t,e){let{fingerprint:n,span:c,breadcrumbs:u,sdkProcessingMetadata:l}=e;(function(t,e){let{extra:n,tags:i,user:o,contexts:s,level:a,transactionName:c}=e,u=(0,r.Jr)(n);u&&Object.keys(u).length&&(t.extra={...u,...t.extra});let l=(0,r.Jr)(i);l&&Object.keys(l).length&&(t.tags={...l,...t.tags});let p=(0,r.Jr)(o);p&&Object.keys(p).length&&(t.user={...p,...t.user});let h=(0,r.Jr)(s);h&&Object.keys(h).length&&(t.contexts={...h,...t.contexts}),a&&(t.level=a),c&&(t.transaction=c)})(t,e),c&&function(t,e){t.contexts={trace:(0,a.wy)(e),...t.contexts};let n=(0,s.G)(e);if(n){t.sdkProcessingMetadata={dynamicSamplingContext:(0,o.j)(e),...t.sdkProcessingMetadata};let r=(0,a.XU)(n).description;r&&(t.tags={transaction:r,...t.tags})}}(t,c),t.fingerprint=t.fingerprint?(0,i.lE)(t.fingerprint):[],n&&(t.fingerprint=t.fingerprint.concat(n)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint,function(t,e){let n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,u),t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...l}}function u(t,e){let{extra:n,tags:r,user:i,contexts:o,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:p,attachments:h,propagationContext:d,transactionName:f,span:g}=e;l(t,"extra",n),l(t,"tags",r),l(t,"user",i),l(t,"contexts",o),l(t,"sdkProcessingMetadata",a),s&&(t.level=s),f&&(t.transactionName=f),g&&(t.span=g),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),p.length&&(t.eventProcessors=[...t.eventProcessors,...p]),h.length&&(t.attachments=[...t.attachments,...h]),t.propagationContext={...t.propagationContext,...d}}function l(t,e,n){if(n&&Object.keys(n).length)for(let r in t[e]={...t[e]},n)Object.prototype.hasOwnProperty.call(n,r)&&(t[e][r]=n[r])}},5102:function(t,e,n){"use strict";function r(t){return t.transaction}n.d(e,{G:function(){return r}})},7522:function(t,e,n){"use strict";n.d(e,{z:function(){return i}});var r=n(4487);function i(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let e=(0,r.s3)(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}},8942:function(t,e,n){"use strict";n.d(e,{R:function(){return d},U0:function(){return g}});var r=n(2844),i=n(1170),o=n(7321),s=n(1235),a=n(4754),c=n(1131),u=n(1195),l=n(350),p=n(3379),h=n(3371);function d(t,e,n,d,g,m){let{normalizeDepth:y=3,normalizeMaxBreadth:v=1e3}=t,_={...e,event_id:e.event_id||n.event_id||(0,r.DM)(),timestamp:e.timestamp||(0,i.yW)()},b=n.integrations||t.integrations.map(t=>t.name);(function(t,e){let{environment:n,release:r,dist:i,maxValueLength:s=250}=e;"environment"in t||(t.environment="environment"in e?n:c.J),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=(0,o.$G)(t.message,s));let a=t.exception&&t.exception.values&&t.exception.values[0];a&&a.value&&(a.value=(0,o.$G)(a.value,s));let u=t.request;u&&u.url&&(u.url=(0,o.$G)(u.url,s))})(_,t),b.length>0&&(_.sdk=_.sdk||{},_.sdk.integrations=[..._.sdk.integrations||[],...b]),void 0===e.type&&function(t,e){let n;let r=s.GLOBAL_OBJ._sentryDebugIds;if(!r)return;let i=f.get(e);i?n=i:(n=new Map,f.set(e,n));let o=Object.keys(r).reduce((t,i)=>{let o;let s=n.get(i);s?o=s:(o=e(i),n.set(i,o));for(let e=o.length-1;e>=0;e--){let n=o[e];if(n.filename){t[n.filename]=r[i];break}}return t},{});try{t.exception.values.forEach(t=>{t.stacktrace.frames.forEach(t=>{t.filename&&(t.debug_id=o[t.filename])})})}catch(t){}}(_,t.stackParser);let w=function(t,e){if(!e)return t;let n=t?t.clone():new l.sX;return n.update(e),n}(d,n.captureContext);n.mechanism&&(0,r.EG)(_,n.mechanism);let k=g&&g.getEventProcessors?g.getEventProcessors():[],S=(0,l.lW)().getScopeData();if(m){let t=m.getScopeData();(0,p.yo)(S,t)}if(w){let t=w.getScopeData();(0,p.yo)(S,t)}let x=[...n.attachments||[],...S.attachments];x.length&&(n.attachments=x),(0,p.gi)(_,S);let C=[...k,...(0,u.fH)(),...S.eventProcessors];return(0,u.RP)(C,_,n).then(t=>(t&&function(t){let e={};try{t.exception.values.forEach(t=>{t.stacktrace.frames.forEach(t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)})})}catch(t){}if(0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];let n=t.debug_meta.images;Object.keys(e).forEach(t=>{n.push({type:"sourcemap",code_file:t,debug_id:e[t]})})}(t),"number"==typeof y&&y>0)?function(t,e,n){if(!t)return null;let r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:(0,a.Fv)(t.data,e,n)}}))},...t.user&&{user:(0,a.Fv)(t.user,e,n)},...t.contexts&&{contexts:(0,a.Fv)(t.contexts,e,n)},...t.extra&&{extra:(0,a.Fv)(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=(0,a.Fv)(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(t=>{let r=(0,h.XU)(t).data;return r&&(t.data=(0,a.Fv)(r,e,n)),t})),r}(t,y,v):t)}let f=new WeakMap;function g(t){return t?t instanceof l.sX||"function"==typeof t||Object.keys(t).some(t=>m.includes(t))?{captureContext:t}:t:void 0}let m=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},3371:function(t,e,n){"use strict";n.d(e,{$k:function(){return l},Hb:function(){return u},Tt:function(){return d},XU:function(){return h},i0:function(){return a},ve:function(){return s},wy:function(){return c}});var r=n(535),i=n(7638),o=n(1170);let s=0,a=1;function c(t){let{spanId:e,traceId:n}=t.spanContext(),{data:i,op:o,parent_span_id:s,status:a,tags:c,origin:u}=h(t);return(0,r.Jr)({data:i,op:o,parent_span_id:s,span_id:e,status:a,tags:c,trace_id:n,origin:u})}function u(t){let{traceId:e,spanId:n}=t.spanContext(),r=d(t);return(0,i.$p)(e,n,r)}function l(t){return"number"==typeof t?p(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?p(t.getTime()):(0,o.ph)()}function p(t){return t>9999999999?t/1e3:t}function h(t){return"function"==typeof t.getSpanJSON?t.getSpanJSON():"function"==typeof t.toJSON?t.toJSON():{}}function d(t){let{traceFlags:e}=t.spanContext();return!!(e&a)}},105:function(t,e,n){"use strict";n.d(e,{J:function(){return r}});let r="7.120.3"},9181:function(t,e,n){"use strict";n.d(e,{EN:function(){return u},IQ:function(){return l},bU:function(){return s}});var r=n(3897),i=n(7597),o=n(2343);let s="baggage",a="sentry-",c=/^sentry-/;function u(t){if(!(0,i.HD)(t)&&!Array.isArray(t))return;let e={};if(Array.isArray(t))e=t.reduce((t,e)=>{let n=p(e);for(let e of Object.keys(n))t[e]=n[e];return t},{});else{if(!t)return;e=p(t)}let n=Object.entries(e).reduce((t,[e,n])=>(e.match(c)&&(t[e.slice(a.length)]=n),t),{});return Object.keys(n).length>0?n:void 0}function l(t){if(t)return function(t){if(0!==Object.keys(t).length)return Object.entries(t).reduce((t,[e,n],i)=>{let s=`${encodeURIComponent(e)}=${encodeURIComponent(n)}`,a=0===i?s:`${t},${s}`;return a.length>8192?(r.X&&o.kg.warn(`Not adding key: ${e} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):a},"")}(Object.entries(t).reduce((t,[e,n])=>(n&&(t[`${a}${e}`]=n),t),{}))}function p(t){return t.split(",").map(t=>t.split("=").map(t=>decodeURIComponent(t.trim()))).reduce((t,[e,n])=>(t[e]=n,t),{})}},8464:function(t,e,n){"use strict";n.d(e,{Rt:function(){return o},iY:function(){return c},l4:function(){return s},qT:function(){return a}});var r=n(7597);let i=(0,n(1235).R)();function o(t,e={}){if(!t)return"";try{let n,o=t,s=[],a=0,c=0,u=Array.isArray(e)?e:e.keyAttrs,l=!Array.isArray(e)&&e.maxStringLength||80;for(;o&&a++<5&&(n=function(t,e){let n,o,s,a,c;let u=[];if(!t||!t.tagName)return"";if(i.HTMLElement&&t instanceof HTMLElement&&t.dataset&&t.dataset.sentryComponent)return t.dataset.sentryComponent;u.push(t.tagName.toLowerCase());let l=e&&e.length?e.filter(e=>t.getAttribute(e)).map(e=>[e,t.getAttribute(e)]):null;if(l&&l.length)l.forEach(t=>{u.push(`[${t[0]}="${t[1]}"]`)});else if(t.id&&u.push(`#${t.id}`),(n=t.className)&&(0,r.HD)(n))for(c=0,o=n.split(/\s+/);c1)||!(c+3*s.length+n.length>=l)));)s.push(n),c+=n.length,o=o.parentNode;return s.reverse().join(" > ")}catch(t){return""}}function s(){try{return i.document.location.href}catch(t){return""}}function a(t){return i.document&&i.document.querySelector?i.document.querySelector(t):null}function c(t){if(!i.HTMLElement)return null;let e=t;for(let t=0;t<5&&e;t++){if(e instanceof HTMLElement&&e.dataset.sentryComponent)return e.dataset.sentryComponent;e=e.parentNode}return null}},3897:function(t,e,n){"use strict";n.d(e,{X:function(){return r}});let r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},8518:function(t,e,n){"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}n.d(e,{S:function(){return i},n:function(){return r}})},9729:function(t,e,n){"use strict";n.d(e,{D2:function(){return u},Hj:function(){return c},rK:function(){return l}});var r=n(3897),i=n(2343),o=n(360);let s={},a={};function c(t,e){s[t]=s[t]||[],s[t].push(e)}function u(t,e){a[t]||(e(),a[t]=!0)}function l(t,e){let n=t&&s[t];if(n)for(let s of n)try{s(e)}catch(e){r.X&&i.kg.error(`Error while triggering instrumentation handler. Type: ${t} Name: ${(0,o.$P)(s)} Error:`,e)}}},1674:function(t,e,n){"use strict";n.d(e,{V:function(){return s}});var r=n(1235),i=n(9729);let o=null;function s(t){let e="error";(0,i.Hj)(e,t),(0,i.D2)(e,a)}function a(){o=r.GLOBAL_OBJ.onerror,r.GLOBAL_OBJ.onerror=function(t,e,n,r,s){return(0,i.rK)("error",{column:r,error:s,line:n,msg:t,url:e}),!!o&&!o.__SENTRY_LOADER__&&o.apply(this,arguments)},r.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}},7373:function(t,e,n){"use strict";n.d(e,{h:function(){return s}});var r=n(1235),i=n(9729);let o=null;function s(t){let e="unhandledrejection";(0,i.Hj)(e,t),(0,i.D2)(e,a)}function a(){o=r.GLOBAL_OBJ.onunhandledrejection,r.GLOBAL_OBJ.onunhandledrejection=function(t){return(0,i.rK)("unhandledrejection",t),!o||!!o.__SENTRY_LOADER__||o.apply(this,arguments)},r.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},7597:function(t,e,n){"use strict";n.d(e,{Cy:function(){return y},HD:function(){return u},J8:function(){return m},Kj:function(){return g},Le:function(){return l},PO:function(){return h},TX:function(){return a},V9:function(){return _},VW:function(){return s},VZ:function(){return i},cO:function(){return d},fm:function(){return c},i2:function(){return v},kK:function(){return f},pt:function(){return p},y1:function(){return b}});let r=Object.prototype.toString;function i(t){switch(r.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return _(t,Error)}}function o(t,e){return r.call(t)===`[object ${e}]`}function s(t){return o(t,"ErrorEvent")}function a(t){return o(t,"DOMError")}function c(t){return o(t,"DOMException")}function u(t){return o(t,"String")}function l(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function p(t){return null===t||l(t)||"object"!=typeof t&&"function"!=typeof t}function h(t){return o(t,"Object")}function d(t){return"undefined"!=typeof Event&&_(t,Event)}function f(t){return"undefined"!=typeof Element&&_(t,Element)}function g(t){return o(t,"RegExp")}function m(t){return!!(t&&t.then&&"function"==typeof t.then)}function y(t){return h(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function v(t){return"number"==typeof t&&t!=t}function _(t,e){try{return t instanceof e}catch(t){return!1}}function b(t){return!!("object"==typeof t&&null!==t&&(t.__isVue||t._isVue))}},2343:function(t,e,n){"use strict";n.d(e,{Cf:function(){return a},LD:function(){return s},RU:function(){return o},kg:function(){return c}});var r=n(3897),i=n(1235);let o=["debug","info","warn","error","log","assert","trace"],s={};function a(t){if(!("console"in i.GLOBAL_OBJ))return t();let e=i.GLOBAL_OBJ.console,n={},r=Object.keys(s);r.forEach(t=>{let r=s[t];n[t]=e[t],e[t]=r});try{return t()}finally{r.forEach(t=>{e[t]=n[t]})}}let c=function(){let t=!1,e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return r.X?o.forEach(n=>{e[n]=(...e)=>{t&&a(()=>{i.GLOBAL_OBJ.console[n](`Sentry Logger [${n}]:`,...e)})}}):o.forEach(t=>{e[t]=()=>void 0}),e}()},2844:function(t,e,n){"use strict";n.d(e,{DM:function(){return o},Db:function(){return c},EG:function(){return u},YO:function(){return l},jH:function(){return a},lE:function(){return p}});var r=n(535),i=n(1235);function o(){let t=i.GLOBAL_OBJ,e=t.crypto||t.msCrypto,n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{let t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(t){}return"10000000100040008000100000000000".replace(/[018]/g,t=>(t^(15&n())>>t/4).toString(16))}function s(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function a(t){let{message:e,event_id:n}=t;if(e)return e;let r=s(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function c(t,e,n){let r=t.exception=t.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function u(t,e){let n=s(t);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){let t={...r&&r.data,...e.data};n.mechanism.data=t}}function l(t){if(t&&t.__sentry_captured__)return!0;try{(0,r.xp)(t,"__sentry_captured__",!0)}catch(t){}return!1}function p(t){return Array.isArray(t)?t:[t]}},1422:function(t,e,n){"use strict";n.d(e,{$y:function(){return a},KV:function(){return o},l$:function(){return s}});var r=n(8518);t=n.hmd(t);var i=n(3454);function o(){return!(0,r.n)()&&"[object process]"===Object.prototype.toString.call(void 0!==i?i:0)}function s(t,e){return t.require(e)}function a(e){let n;try{n=s(t,e)}catch(t){}try{let{cwd:r}=s(t,"process");n=s(t,`${r()}/node_modules/${e}`)}catch(t){}return n}},4754:function(t,e,n){"use strict";n.d(e,{Fv:function(){return s},Qy:function(){return function t(e,n=3,r=102400){let i=s(e,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?t(e,n-1,r):i}}});var r=n(7597),i=n(535),o=n(360);function s(t,e=100,s=Infinity){try{return function t(e,s,a=Infinity,c=Infinity,u=function(){let t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t=c){f[e]="[MaxProperties ~]";break}let n=m[e];f[e]=t(e,n,d-1,c,u),g++}return p(s),f}("",t,e,s)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}},535:function(t,e,n){"use strict";n.d(e,{$Q:function(){return l},HK:function(){return p},Jr:function(){return y},Sh:function(){return d},_j:function(){return h},hl:function(){return c},xp:function(){return u},zf:function(){return m}});var r=n(8464),i=n(3897),o=n(7597),s=n(2343),a=n(7321);function c(t,e,n){if(!(e in t))return;let r=t[e],i=n(r);"function"==typeof i&&l(i,r),t[e]=i}function u(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){i.X&&s.kg.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function l(t,e){try{let n=e.prototype||{};t.prototype=e.prototype=n,u(t,"__sentry_original__",e)}catch(t){}}function p(t){return t.__sentry_original__}function h(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function d(t){if((0,o.VZ)(t))return{message:t.message,name:t.name,stack:t.stack,...g(t)};if(!(0,o.cO)(t))return t;{let e={type:t.type,target:f(t.target),currentTarget:f(t.currentTarget),...g(t)};return"undefined"!=typeof CustomEvent&&(0,o.V9)(t,CustomEvent)&&(e.detail=t.detail),e}}function f(t){try{return(0,o.kK)(t)?(0,r.Rt)(t):Object.prototype.toString.call(t)}catch(t){return""}}function g(t){if("object"!=typeof t||null===t)return{};{let e={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}}function m(t,e=40){let n=Object.keys(d(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return(0,a.$G)(n[0],e);for(let t=n.length;t>0;t--){let r=n.slice(0,t).join(", ");if(!(r.length>e)){if(t===n.length)return r;return(0,a.$G)(r,e)}}return""}function y(t){return function t(e,n){if(function(t){if(!(0,o.PO)(t))return!1;try{let e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(t){return!0}}(e)){let r=n.get(e);if(void 0!==r)return r;let i={};for(let r of(n.set(e,i),Object.keys(e)))void 0!==e[r]&&(i[r]=t(e[r],n));return i}if(Array.isArray(e)){let r=n.get(e);if(void 0!==r)return r;let i=[];return n.set(e,i),e.forEach(e=>{i.push(t(e,n))}),i}return e}(t,new Map)}},360:function(t,e,n){"use strict";n.d(e,{$P:function(){return c},Sq:function(){return s},pE:function(){return o}});let r=/\(error: (.*)\)/,i=/captureMessage|captureException/;function o(...t){let e=t.sort((t,e)=>t[0]-e[0]).map(t=>t[1]);return(t,n=0)=>{let o=[],s=t.split("\n");for(let t=n;t1024)continue;let i=r.test(n)?n.replace(r,"$1"):n;if(!i.match(/\S*Error: /)){for(let t of e){let e=t(i);if(e){o.push(e);break}}if(o.length>=50)break}}return function(t){if(!t.length)return[];let e=Array.from(t);return/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop(),e.reverse(),i.test(e[e.length-1].function||"")&&(e.pop(),i.test(e[e.length-1].function||"")&&e.pop()),e.slice(0,50).map(t=>({...t,filename:t.filename||e[e.length-1].filename,function:t.function||"?"}))}(o)}}function s(t){return Array.isArray(t)?o(...t):t}let a="";function c(t){try{if(!t||"function"!=typeof t)return a;return t.name||a}catch(t){return a}}},7321:function(t,e,n){"use strict";n.d(e,{$G:function(){return i},U0:function(){return s},nK:function(){return o}});var r=n(7597);function i(t,e=0){return"string"!=typeof t||0===e?t:t.length<=e?t:`${t.slice(0,e)}...`}function o(t,e){if(!Array.isArray(t))return"";let n=[];for(let e=0;e(function(t,e,n=!1){return!!(0,r.HD)(t)&&((0,r.Kj)(e)?e.test(t):!!(0,r.HD)(e)&&(n?t===e:t.includes(e)))})(t,e,n))}},6893:function(t,e,n){"use strict";n.d(e,{$2:function(){return a},WD:function(){return s},cW:function(){return c}});var r,i,o=n(7597);function s(t){return new c(e=>{e(t)})}function a(t){return new c((e,n)=>{n(t)})}(r=i||(i={}))[r.PENDING=0]="PENDING",r[r.RESOLVED=1]="RESOLVED",r[r.REJECTED=2]="REJECTED";class c{constructor(t){c.prototype.__init.call(this),c.prototype.__init2.call(this),c.prototype.__init3.call(this),c.prototype.__init4.call(this),this._state=i.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new c((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this._executeHandlers()})}catch(t){return this.then(t=>t,t)}finally(t){return new c((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{if(i){n(r);return}e(r)})})}__init(){this._resolve=t=>{this._setResult(i.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(i.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{if(this._state===i.PENDING){if((0,o.J8)(e)){e.then(this._resolve,this._reject);return}this._state=t,this._value=e,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===i.PENDING)return;let t=this._handlers.slice();this._handlers=[],t.forEach(t=>{t[0]||(this._state===i.RESOLVED&&t[1](this._value),this._state===i.REJECTED&&t[2](this._value),t[0]=!0)})}}}},1170:function(t,e,n){"use strict";n.d(e,{Z1:function(){return s},ph:function(){return o},yW:function(){return i}});var r=n(1235);function i(){return Date.now()/1e3}let o=function(){let{performance:t}=r.GLOBAL_OBJ;if(!t||!t.now)return i;let e=Date.now()-t.now(),n=void 0==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/1e3}(),s=(()=>{let{performance:t}=r.GLOBAL_OBJ;if(!t||!t.now)return;let e=t.now(),n=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+e-n):36e5,o=t.timing&&t.timing.navigationStart,s="number"==typeof o?Math.abs(o+e-n):36e5;return i<36e5||s<36e5?i<=s?t.timeOrigin:o:n})()},7638:function(t,e,n){"use strict";n.d(e,{$p:function(){return a},pT:function(){return s}});var r=n(9181),i=n(2844);let o=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function s(t,e){let n=function(t){let e;if(!t)return;let n=t.match(o);if(n)return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}(t),s=(0,r.EN)(e),{traceId:a,parentSpanId:c,parentSampled:u}=n||{};return n?{traceId:a||(0,i.DM)(),parentSpanId:c||(0,i.DM)().substring(16),spanId:(0,i.DM)().substring(16),sampled:u,dsc:s||{}}:{traceId:a||(0,i.DM)(),spanId:(0,i.DM)().substring(16)}}function a(t=(0,i.DM)(),e=(0,i.DM)().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${t}-${e}${r}`}},1235:function(t,e,n){"use strict";function r(t){return t&&t.Math==Math?t:void 0}n.d(e,{GLOBAL_OBJ:function(){return i},R:function(){return o},Y:function(){return s}});let i="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function o(){return i}function s(t,e,n){let r=n||i,o=r.__SENTRY__=r.__SENTRY__||{};return o[t]||(o[t]=e())}},3454:function(t,e,n){"use strict";var r,i;t.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(7663)},1118:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(1437)}])},1211:function(t,e,n){"use strict";function r(t){let e="; ".concat(document.cookie).split("; ".concat(t,"="));if(2===e.length)return e.pop().split(";").shift()}function i(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:23;for(var e="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,i=0;i1?n[t]=e.getAll(t):n[t]=e.get(t);return n}function s(t,e){e||(e=window.location.href);var n=RegExp("[?&]"+(t=t.replace(/[\[\]]/g,"\\$&"))+"(=([^&#]*)|&|#|$)").exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}n.d(e,{YO:function(){return i},ak:function(){return s},ej:function(){return r},rz:function(){return o}})},639:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(1211),i=n(2641);let o={createFacebookEventProperties:function(t,e,n){let i=(0,r.ej)("_fbp"),o=(0,r.ej)("_fbc"),s=i&&JSON.stringify(i)!==JSON.stringify({})?i:null,a=o&&JSON.stringify(o)!==JSON.stringify({})?o:null,c=(0,r.ak)("fbclid"),u=Math.floor(new Date().getTime()/1e3);return{...e,userAgent:navigator.userAgent,pageUrl:window.location.href,referrer:document.referrer,eventDate:u,fbclid:c,fbc:a,fbp:s,eventName:t,eventId:n}}};function s(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;[...new Set(t.filter(Boolean))].forEach(t=>{!function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,o=(0,r.ej)("_fbp"),s=(0,r.ej)("_fbc"),a=(0,r.ak)("fbclid"),c=s;if(!s&&a){let t=Date.now();c="fb.".concat(1,".").concat(t,".").concat(a)}let u=new URLSearchParams;u.append("id",t),u.append("ev",e),u.append("dl",window.location.href),u.append("rl",document.referrer||""),u.append("ts",Date.now().toString()),u.append("noscript","1"),o&&u.append("fbp",o),c&&u.append("fbc",c),i&&u.append("eid",i);let l=["userAgent","pageUrl","referrer","eventDate","fbclid","fbc","fbp","eventName","eventId","brand","content","service","tourDate"];Object.entries(n).forEach(t=>{let[e,n]=t;if(null!=n&&""!==n&&!l.includes(e)){let t="object"==typeof n?JSON.stringify(n):String(n);u.append("cd[".concat(e,"]"),t)}});let p=new Image(1,1);p.style.display="none",p.src="".concat("https://www.facebook.com/tr","?").concat(u.toString())}(t,e,n,i)})}var a={fbAt:null,facebookInitialized:!0,keenEnabled:!0,googleAnalytics:!0,eventsQueue:{keen:[],fbPixel:[],snapPix:[],twitPix:[],gaPix:[],tiktokPixel:[]},addDefaultProps(t){let e=(0,r.rz)(window.location.search);return{referrer:document.referrer,userAgent:navigator.userAgent,current_url:window.location.href,...e,...t}},recordFacebookEvent(t){let{type:e,name:n,props:i,includeAdditional:a=[]}=t;try{let t=(0,r.YO)(),e=o.createFacebookEventProperties(n,i,t),{fbAt:c,fbPrimaryPixelId:u,fbq:l,fbPixelIds:p}=window;c&&u&&fetch("/api/fb-ss",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...e,fbAt:c,primaryPixelId:u})}).then(t=>t.json()).then(t=>{}).catch(t=>console.log("Error ss tracking fb",t));{let i=[...p||[],u];s(i,n,e,t),a.forEach(t=>{let e=(0,r.YO)(),n=o.createFacebookEventProperties(t.name,t.props,e);s(i,t.name,n,e)});return}}catch(t){console.error(t)}},recordTikTokEvent(t){let{name:e,props:n,includeAdditional:i=[]}=t;try{let t=(0,r.YO)(),s=o.createFacebookEventProperties(e,n,t),{ttq:a}=window;if(!(a||void 0!==a)){this.eventsQueue.tiktokPixel.push(()=>[e,{...n},{eventID:t}]),i.forEach(e=>{let{name:n,props:r}=e;this.eventsQueue.tiktokPixel.push(()=>[n,{...r},{eventID:t}])});return}a.track(e,{...s},{eventID:t}),i.forEach(t=>{let{name:e,props:n}=t,i=(0,r.YO)(),s=o.createFacebookEventProperties(e,n,i);a.track(e,{...s},{eventID:i})})}catch(t){console.error(t)}},recordKeenEvent(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};fetch("/api/orchestra",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:t,properties:e,distinct_id:i.Z.get_distinct_id()})}).then(t=>t.json()).then(t=>{}).catch(console.error)},recordGoogleAnalyticsEvent(t){let{name:e,event_category:n,event_label:r,props:i}=t;try{window.gtag||gtag?gtag("event",e,{event_category:n,event_label:r,...i}):this.eventsQueue.gaPix.push(()=>["event",e,{event_category:n,event_label:r,...i}])}catch(t){console.error(t)}},page(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.addDefaultProps(e),{brand:r,content:i,channelId:o}=n,s={...n,name:t};r&&(s.brandSlug=r.slug,s.brandName=r.name),i&&(s.contentSlug=i.slug,s.contentName=i.name,s.content_name=i.slug),o&&(s.channelId=o),this.recordKeenEvent("Page View",s),this.recordFacebookEvent({type:"trackCustom",name:"Loaded a Page",props:s}),this.recordTikTokEvent({name:"Loaded a Page",props:s})},socialLinkClicked(t){let{brand:e,content:n,service:r,properties:i={},websiteId:o}=t,s=this.addDefaultProps(i),a={brand:e,content:n,service:r,...s,brandSlug:e.slug,brandName:e.name,contentSlug:n.slug,contentName:n.name,serviceName:r.name,serviceUrl:r.url,content_name:n.slug,content_category:r.name,item_category:r.name,websiteId:o};s.channelId&&(a.channelId=s.channelId),this.recordKeenEvent("Social Link Clicked",a),this.recordFacebookEvent({type:"trackCustom",name:"SocialLinkClicked",props:a}),this.recordFacebookEvent({type:"trackCustom",name:"".concat(a.serviceName," SocialLinkClicked"),props:a}),this.recordGoogleAnalyticsEvent({name:"Social Link Clicked",event_category:n.name,event_label:r.name}),this.recordTikTokEvent({name:"ClickButton",props:{event:"Social Link Clicked",passedProps:a}})},subscribeEvent(t){let{brand:e,content:n,properties:r={},source:i,websiteId:o}=t,s={brand:e,content:n,...this.addDefaultProps(r),brandSlug:e.slug,brandName:e.name,contentSlug:n.slug,contentName:n.name,content_name:n.slug,source:i,websiteId:o};this.recordKeenEvent("Data Collector Submission",s),this.recordFacebookEvent({type:"trackCustom",name:"Data Collector Submission",props:s}),this.recordFacebookEvent({type:"track",name:"Subscribe",props:s}),this.recordFacebookEvent({type:"track",name:"Lead",props:s}),this.recordGoogleAnalyticsEvent({name:"Data Collector Submission",event_category:n.name}),this.recordTikTokEvent({name:"ClickButton",props:{event:"Data Collector Submission",passedProps:s}})},streamingLinkClicked(t){let{brand:e,content:n,service:r,properties:i={},websiteId:o}=t,s={websiteId:o,brand:e,content:n,service:r,...this.addDefaultProps(i),brandSlug:e.slug,brandName:e.name,contentSlug:n.slug,contentName:n.name,serviceName:r.name,serviceUrl:r.url,content_name:n.slug,content_category:r.name,item_category:r.name};this.recordKeenEvent("Streaming Link Clicked",s),this.recordFacebookEvent({type:"trackCustom",name:"StreamingLinkClicked",props:s}),this.recordFacebookEvent({type:"trackCustom",name:"".concat(s.serviceName," StreamingLinkClicked"),props:s}),this.recordGoogleAnalyticsEvent({name:"Streaming Link Clicked",event_category:n.name,event_label:r.name}),this.recordTikTokEvent({name:"ClickButton",props:{event:"Streaming Link Clicked",passedProps:s}}),"Spotify"===r.name&&this.recordTikTokEvent({name:"Download",props:{event:"Streaming Link Clicked",passedProps:s}})},tourLinkClicked(t){let{brand:e,content:n,tourDate:r,properties:i={},websiteId:o}=t,s={brand:e,content:n,tourDate:r,...this.addDefaultProps(i),brandSlug:e.slug,brandName:e.name,contentSlug:n.slug,contentName:n.name,content_name:n.slug,content_category:r.name,item_category:r.name,websiteId:o};this.recordKeenEvent("Tour Link Clicked",s),this.recordFacebookEvent({type:"trackCustom",name:"TourLinkClicked",props:s}),this.recordFacebookEvent({type:"trackCustom",name:"".concat(r.city," TourLinkClicked"),props:s}),this.recordGoogleAnalyticsEvent({name:"Tour Link Clicked",event_category:n.name,event_label:r.name}),this.recordTikTokEvent({name:"ClickButton",props:{event:"Tour Link Clicked",passedProps:s}})},tourPresaleActionTaken(t){let{brand:e,content:n,tourDate:r,properties:i={},websiteId:o}=t,s={brand:e,content:n,tourDate:r,...this.addDefaultProps(i),brandSlug:e.slug,brandName:e.name,contentSlug:n.slug,contentName:n.name,content_name:n.slug,content_category:r.name,item_category:r.name,presale_type:i.presale_type||"email",websiteId:o};this.recordKeenEvent("Tour Presale Action Taken",s),this.recordFacebookEvent({type:"trackCustom",name:"TourPresaleActionTaken",props:s}),this.recordFacebookEvent({type:"trackCustom",name:"".concat(r.city," TourPresaleActionTaken"),props:s}),this.recordGoogleAnalyticsEvent({name:"Tour Presale Action Taken",event_category:n.name,event_label:r.name}),this.recordTikTokEvent({name:"ClickButton",props:{event:"Tour Presale Action Taken",passedProps:s}})},websiteLinkClicked(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i={brand:t,content:e,...this.addDefaultProps(r),brandSlug:t.slug,brandName:t.name,contentSlug:e.slug,contentName:e.name,serviceName:n.name,serviceUrl:n.url,content_name:e.slug,content_category:n.name,item_category:n.name,type:n.type,url:n.url,name:n.name,preset:n.preset};this.recordKeenEvent("Streaming Link Clicked",i),this.recordFacebookEvent({type:"trackCustom",name:"StreamingLinkClicked",props:i}),this.recordFacebookEvent({type:"trackCustom",name:"".concat(i.serviceName," StreamingLinkClicked"),props:i}),this.recordGoogleAnalyticsEvent({name:"Streaming Link Clicked",event_category:e.name,event_label:n.name}),this.recordTikTokEvent({name:"StreamingLinkClicked",props:i}),this.recordTikTokEvent({name:"".concat(i.serviceName," StreamingLinkClicked"),props:i})},track(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={...this.addDefaultProps(e)};this.recordKeenEvent(t,n),this.recordFacebookEvent({type:"trackCustom",name:t,props:n}),this.recordGoogleAnalyticsEvent({name:t,event_category:null,event_label:null}),this.recordTikTokEvent({name:t,props:n})}}},2641:function(t,e,n){"use strict";n.d(e,{Z:function(){return aj}});var r,i,o,s,a,c,u,l,p,h,d,f,g,m,y,v,_=n(1876).Buffer,b=n(3454);if("undefined"==typeof window){var w={hostname:""};iy={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:w,referrer:""},screen:{width:0,height:0},location:w,addEventListener:function(){},removeEventListener:function(){}}}else iy=window;function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=0||(i[n]=t[n]);return i}function M(t,e){return(M=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function D(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function N(t){var e="function"==typeof Map?new Map:void 0;return(N=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return C(t,arguments,T(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),M(n,t)})(t)}function P(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(P=function(){return!!t})()}function L(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return k(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(t,void 0)}}(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function F(t,e){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(o){return function(a){return function(o){if(n)throw TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}var U=Object.defineProperty,B=function(t,e,n){var r;return(r=(void 0===e?"undefined":D(e))!=="symbol"?e+"":e)in t?U(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n},$=Object.defineProperty,q=function(t,e,n){var r;return(r=(void 0===e?"undefined":D(e))!=="symbol"?e+"":e)in t?$(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n},z=((ia=z||{})[ia.Document=0]="Document",ia[ia.DocumentType=1]="DocumentType",ia[ia.Element=2]="Element",ia[ia.Text=3]="Text",ia[ia.CDATA=4]="CDATA",ia[ia.Comment=5]="Comment",ia),G={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},W={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},J={},H={};function X(t,e,n){var r,i=t+"."+String(n);if(H[i])return H[i].call(e);var o=null==(r=Object.getOwnPropertyDescriptor(function(t){if(J[t])return J[t];var e=globalThis[t],n=e.prototype,r=t in G?G[t]:void 0,i=!!(r&&r.every(function(t){var e,r;return!!(null==(r=null==(e=Object.getOwnPropertyDescriptor(n,t))?void 0:e.get)?void 0:r.toString().includes("[native code]"))})),o=t in W?W[t]:void 0,s=!!(o&&o.every(function(t){var e;return"function"==typeof n[t]&&(null==(e=n[t])?void 0:e.toString().includes("[native code]"))}));if(i&&s&&!globalThis.Zone)return J[t]=e.prototype,e.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return e.prototype;var u=c[t].prototype;if(document.body.removeChild(a),!u)return n;return J[t]=u}catch(t){return n}}(t),n))?void 0:r.get;return o?(H[i]=o,o.call(e)):e[n]}var Y={childNodes:function(t){return X("Node",t,"childNodes")},parentNode:function(t){return X("Node",t,"parentNode")},parentElement:function(t){return X("Node",t,"parentElement")},textContent:function(t){return X("Node",t,"textContent")},host:function(t){return t&&"host"in t?X("ShadowRoot",t,"host"):null},shadowRoot:function(t){return t&&"shadowRoot"in t?X("Element",t,"shadowRoot"):null}};function V(t){return t.nodeType===t.ELEMENT_NODE}function Z(t){var e=t&&"host"in t&&"mode"in t&&Y.host(t)||null;return!!(e&&"shadowRoot"in e&&Y.shadowRoot(e)===t)}function K(t){return"[object ShadowRoot]"===Object.prototype.toString.call(t)}function Q(t){try{var e,n=t.rules||t.cssRules;if(!n)return null;var r=t.href;return!r&&t.ownerNode&&t.ownerNode.ownerDocument&&(r=t.ownerNode.ownerDocument.location.href),(e=Array.from(n,function(t){return tt(t,r)}).join("")).includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}catch(t){return null}}function tt(t,e){if("styleSheet"in t){var n;try{n=Q(t.styleSheet)||function(t){var e=t.cssText;if(e.split('"').length<3)return e;var n=["@import","url("+JSON.stringify(t.href)+")"];return""===t.layerName?n.push("layer"):t.layerName&&n.push("layer("+t.layerName+")"),t.supportsText&&n.push("supports("+t.supportsText+")"),t.media.length&&n.push(t.media.mediaText),n.join(" ")+";"}(t)}catch(e){n=t.cssText}return t.styleSheet.href?tp(n,t.styleSheet.href):n}var r=t.cssText;return("selectorText"in t&&t.selectorText.includes(":")&&(r=r.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),e)?tp(r,e):r}var te=function(){function t(){q(this,"idNodeMap",new Map),q(this,"nodeMetaMap",new WeakMap)}var e=t.prototype;return e.getId=function(t){if(!t)return -1;var e,n=null==(e=this.getMeta(t))?void 0:e.id;return null!=n?n:-1},e.getNode=function(t){return this.idNodeMap.get(t)||null},e.getIds=function(){return Array.from(this.idNodeMap.keys())},e.getMeta=function(t){return this.nodeMetaMap.get(t)||null},e.removeNodeFromMap=function(t){var e=this,n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(function(t){return e.removeNodeFromMap(t)})},e.has=function(t){return this.idNodeMap.has(t)},e.hasNode=function(t){return this.nodeMetaMap.has(t)},e.add=function(t,e){var n=e.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,e)},e.replace=function(t,e){var n=this.getNode(t);if(n){var r=this.nodeMetaMap.get(n);r&&this.nodeMetaMap.set(e,r)}this.idNodeMap.set(t,e)},e.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},t}();function tn(t){var e=t.element,n=t.maskInputOptions,r=t.tagName,i=t.type,o=t.value,s=t.maskInputFn,a=o||"",c=i&&tr(i);return(n[r.toLowerCase()]||c&&n[c])&&(a=s?s(a,e):"*".repeat(a.length)),a}function tr(t){return t.toLowerCase()}var ti="__rrweb_original__";function to(t){var e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?tr(e):null}function ts(t,e){try{n=new URL(t,null!=e?e:window.location.href)}catch(t){return null}var n,r,i=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(r=null==i?void 0:i[1])?r:null}var ta=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,tc=/^(?:[a-z+]+:)?\/\//i,tu=/^www\..*/i,tl=/^(data:)([^,]*),(.*)/i;function tp(t,e){return(t||"").replace(ta,function(t,n,r,i,o,s){var a=r||o||s,c=n||i||"";if(!a)return t;if(tc.test(a)||tu.test(a)||tl.test(a))return"url("+c+a+c+")";if("/"===a[0])return"url("+c+((e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]+a)+c+")";var u=e.split("/"),l=a.split("/");u.pop();for(var p,h=L(l);!(p=h()).done;){var d=p.value;"."!==d&&(".."===d?u.pop():u.push(d))}return"url("+c+u.join("/")+c+")"})}function th(t){return t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"")}var td=1,tf=RegExp("[^a-z0-9-_:]");function tg(){return td++}var tm=/^[^ \t\n\r\u000c]+/,ty=/^[, \t\n\r\u000c]+/,tv=new WeakMap;function t_(t,e){return e&&""!==e.trim()?tb(t,e):e}function tb(t,e){var n=tv.get(t);if(n||(n=t.createElement("a"),tv.set(t,n)),e){if(e.startsWith("blob:")||e.startsWith("data:"))return e}else e="";return n.setAttribute("href",e),n.href}function tw(t,e,n,r){return r?"src"!==n&&("href"!==n||"use"===e&&"#"===r[0])&&("xlink:href"!==n||"#"===r[0])&&("background"!==n||"table"!==e&&"td"!==e&&"th"!==e)?"srcset"===n?function(t,e){if(""===e.trim())return e;var n=0;function r(t){var r,i=t.exec(e.substring(n));return i?(r=i[0],n+=r.length,r):""}for(var i=[];r(ty),!(n>=e.length);){var o=r(tm);if(","===o.slice(-1))o=t_(t,o.substring(0,o.length-1)),i.push(o);else{var s="";o=t_(t,o);for(var a=!1;;){var c=e.charAt(n);if(""===c){i.push((o+s).trim());break}if(a)")"===c&&(a=!1);else{if(","===c){n+=1,i.push((o+s).trim());break}"("===c&&(a=!0)}s+=c,n+=1}}}return i.join(", ")}(t,r):"style"===n?tp(r,tb(t)):"object"===e&&"data"===n?t_(t,r):r:t_(t,r):r}function tk(t,e,n){return("video"===t||"audio"===t)&&"autoplay"===e}function tS(t,e,n){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return!!n&&tS(Y.parentNode(t),e,n);for(var r=t.classList.length;r--;){var i=t.classList[r];if(e.test(i))return!0}return!!n&&tS(Y.parentNode(t),e,n)}function tx(t,e,n,r){var i;if(V(t)){if(i=t,!Y.childNodes(i).length)return!1}else{if(null===Y.parentElement(t))return!1;i=Y.parentElement(t)}try{if("string"==typeof e){if(r){if(i.closest("."+e))return!0}else if(i.classList.contains(e))return!0}else if(tS(i,e,r))return!0;if(n){if(r){if(i.closest(n))return!0}else if(i.matches(n))return!0}}catch(t){}return!1}function tC(t){return null==t?"":t.toLowerCase()}function tE(t,e){var n=e.doc,r=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.maskTextClass,a=e.maskTextSelector,c=e.skipChild,u=void 0!==c&&c,l=e.inlineStylesheet,p=void 0===l||l,h=e.maskInputOptions,d=void 0===h?{}:h,f=e.maskTextFn,g=e.maskInputFn,m=e.slimDOMOptions,y=e.dataURLOptions,v=void 0===y?{}:y,_=e.inlineImages,b=void 0!==_&&_,w=e.recordCanvas,k=void 0!==w&&w,S=e.onSerialize,x=e.onIframeLoad,C=e.iframeLoadTimeout,E=void 0===C?5e3:C,I=e.onStylesheetLoad,T=e.stylesheetLoadTimeout,O=void 0===T?5e3:T,R=e.keepIframeSrcFn,M=void 0===R?function(){return!1}:R,D=e.newlyAddedElement,N=e.cssCaptured,P=e.needsMask,F=e.preserveWhiteSpace,j=void 0===F||F;P||(P=tx(t,s,a,void 0===P));var U=function(t,e){var n,r,i,o,s,a,c,u,l,p,h=e.doc,d=e.mirror,f=e.blockClass,g=e.blockSelector,m=e.needsMask,y=e.inlineStylesheet,v=e.maskInputOptions,_=e.maskTextFn,b=e.maskInputFn,w=e.dataURLOptions,k=e.inlineImages,S=e.recordCanvas,x=e.keepIframeSrcFn,C=e.newlyAddedElement,E=e.cssCaptured,I=function(t,e){if(e.hasNode(t)){var n=e.getId(t);return 1===n?void 0:n}}(h,d);switch(t.nodeType){case t.DOCUMENT_NODE:if("CSS1Compat"!==t.compatMode)return{type:z.Document,childNodes:[],compatMode:t.compatMode};return{type:z.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:z.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:I};case t.ELEMENT_NODE:return function(t,e){for(var n,r=e.doc,i=e.blockClass,o=e.blockSelector,s=e.inlineStylesheet,a=e.maskInputOptions,c=void 0===a?{}:a,u=e.maskInputFn,l=e.dataURLOptions,p=void 0===l?{}:l,h=e.inlineImages,d=e.recordCanvas,f=e.keepIframeSrcFn,g=e.newlyAddedElement,m=e.rootId,y=function(t,e,n){try{if("string"==typeof e){if(t.classList.contains(e))return!0}else for(var r=t.classList.length;r--;){var i=t.classList[r];if(e.test(i))return!0}if(n)return t.matches(n)}catch(t){}return!1}(t,i,o),v=function(t){if(A(t,HTMLFormElement))return"form";var e=tr(t.tagName);return tf.test(e)?"div":e}(t),_={},b=t.attributes.length,w=0;w1&&(C=(function(t,e){var n=Array.from(e.childNodes),r=[];if(n.length>1&&t&&"string"==typeof t){for(var i=th(t),o=1;o",M=t.crossOrigin,D=function(){t.removeEventListener("load",D);try{i_.width=t.naturalWidth,i_.height=t.naturalHeight,ib.drawImage(t,0,0),_.rr_dataURL=i_.toDataURL(p.type,p.quality)}catch(e){if("anonymous"!==t.crossOrigin){t.crossOrigin="anonymous",t.complete&&0!==t.naturalWidth?D():t.addEventListener("load",D);return}console.warn("Cannot inline img src="+R+"! Error: "+e)}"anonymous"===t.crossOrigin&&(M?_.crossOrigin=M:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?D():t.addEventListener("load",D)}if("audio"===v||"video"===v){var N=_;N.rr_mediaState=t.paused?"paused":"played",N.rr_mediaCurrentTime=t.currentTime,N.rr_mediaPlaybackRate=t.playbackRate,N.rr_mediaMuted=t.muted,N.rr_mediaLoop=t.loop,N.rr_mediaVolume=t.volume}if(!(void 0!==g&&g)&&(t.scrollLeft&&(_.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(_.rr_scrollTop=t.scrollTop)),y){var P=t.getBoundingClientRect(),L=P.width,F=P.height;_={class:_.class,rr_width:""+L+"px",rr_height:""+F+"px"}}"iframe"!==v||f(_.src)||(t.contentDocument||(_.rr_src=_.src),delete _.src);try{customElements.get(v)&&(n=!0)}catch(t){}return{type:z.Element,tagName:v,attributes:_,childNodes:[],isSVG:!!("svg"===t.tagName||t.ownerSVGElement)||void 0,needBlock:y,rootId:m,isCustom:n}}(t,{doc:h,blockClass:f,blockSelector:g,inlineStylesheet:y,maskInputOptions:void 0===v?{}:v,maskInputFn:b,dataURLOptions:void 0===w?{}:w,inlineImages:k,recordCanvas:S,keepIframeSrcFn:x,newlyAddedElement:void 0!==C&&C,rootId:I});case t.TEXT_NODE:return r=(n={doc:h,needsMask:m,maskTextFn:_,rootId:I,cssCaptured:void 0!==E&&E}).needsMask,i=n.maskTextFn,o=n.rootId,s=n.cssCaptured,c=(a=Y.parentNode(t))&&a.tagName,u="",l="STYLE"===c||void 0,(p="SCRIPT"===c||void 0)?u="SCRIPT_PLACEHOLDER":!s&&(u=Y.textContent(t),l&&u&&(u=tp(u,tb(n.doc)))),!l&&!p&&u&&r&&(u=i?i(u,Y.parentElement(t)):u.replace(/[\S]/g,"*")),{type:z.Text,textContent:u||"",rootId:o};case t.CDATA_SECTION_NODE:return{type:z.CDATA,textContent:"",rootId:I};case t.COMMENT_NODE:return{type:z.Comment,textContent:Y.textContent(t)||"",rootId:I};default:return!1}}(t,{doc:n,mirror:r,blockClass:i,blockSelector:o,needsMask:P,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:g,dataURLOptions:v,inlineImages:b,recordCanvas:k,keepIframeSrcFn:M,newlyAddedElement:void 0!==D&&D,cssCaptured:void 0!==N&&N});if(!U)return console.warn(t,"not serialized"),null;W=r.hasNode(t)?r.getId(t):!function(t,e){if(e.comment&&t.type===z.Comment)return!0;if(t.type===z.Element){if(e.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel||"modulepreload"===t.attributes.rel)&&"script"===t.attributes.as||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&"js"===ts(t.attributes.href))||e.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(tC(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===tC(t.attributes.name)||"icon"===tC(t.attributes.rel)||"apple-touch-icon"===tC(t.attributes.rel)||"shortcut icon"===tC(t.attributes.rel))))return!0;if("meta"===t.tagName){if(e.headMetaDescKeywords&&tC(t.attributes.name).match(/^description|keywords$/)||e.headMetaSocial&&(tC(t.attributes.property).match(/^(og|twitter|fb):/)||tC(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===tC(t.attributes.name)))return!0;if(e.headMetaRobots&&("robots"===tC(t.attributes.name)||"googlebot"===tC(t.attributes.name)||"bingbot"===tC(t.attributes.name)))return!0;if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;else if(e.headMetaAuthorship&&("author"===tC(t.attributes.name)||"generator"===tC(t.attributes.name)||"framework"===tC(t.attributes.name)||"publisher"===tC(t.attributes.name)||"progid"===tC(t.attributes.name)||tC(t.attributes.property).match(/^article:/)||tC(t.attributes.property).match(/^product:/)))return!0;else if(e.headMetaVerification&&("google-site-verification"===tC(t.attributes.name)||"yandex-verification"===tC(t.attributes.name)||"csrf-token"===tC(t.attributes.name)||"p:domain_verify"===tC(t.attributes.name)||"verify-v1"===tC(t.attributes.name)||"verification"===tC(t.attributes.name)||"shopify-checkout-api-token"===tC(t.attributes.name)))return!0}}return!1}(U,m)&&(j||U.type!==z.Text||U.textContent.replace(/^\s+|\s+$/gm,"").length)?tg():-2;var B=Object.assign(U,{id:W});if(r.add(t,B),-2===W)return null;S&&S(t);var $=!u;if(B.type===z.Element){$=$&&!B.needBlock,delete B.needBlock;var q=Y.shadowRoot(t);q&&K(q)&&(B.isShadowHost=!0)}if((B.type===z.Document||B.type===z.Element)&&$){m.headWhitespace&&B.type===z.Element&&"head"===B.tagName&&(j=!1);var G={doc:n,mirror:r,blockClass:i,blockSelector:o,needsMask:P,maskTextClass:s,maskTextSelector:a,skipChild:u,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:g,slimDOMOptions:m,dataURLOptions:v,inlineImages:b,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:I,stylesheetLoadTimeout:O,keepIframeSrcFn:M,cssCaptured:!1};if(B.type===z.Element&&"textarea"===B.tagName&&void 0!==B.attributes.value);else{B.type===z.Element&&void 0!==B.attributes._cssText&&"string"==typeof B.attributes._cssText&&(G.cssCaptured=!0);for(var W,J,H=L(Array.from(Y.childNodes(t)));!(J=H()).done;){var X=tE(J.value,G);X&&B.childNodes.push(X)}}var tt=null;if(V(t)&&(tt=Y.shadowRoot(t)))for(var te,ta=L(Array.from(Y.childNodes(tt)));!(te=ta()).done;){var tc=tE(te.value,G);tc&&(K(tt)&&(tc.isShadow=!0),B.childNodes.push(tc))}}var tu=Y.parentNode(t);return tu&&Z(tu)&&K(tu)&&(B.isShadow=!0),B.type===z.Element&&"iframe"===B.tagName&&function(t,e,n){var r,i=t.contentWindow;if(i){var o=!1;try{r=i.document.readyState}catch(t){return}if("complete"!==r){var s=setTimeout(function(){o||(e(),o=!0)},n);t.addEventListener("load",function(){clearTimeout(s),o=!0,e()});return}var a="about:blank";if(i.location.href!==a||t.src===a||""===t.src)return setTimeout(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}}(t,function(){var e=t.contentDocument;if(e&&x){var n=tE(e,{doc:e,mirror:r,blockClass:i,blockSelector:o,needsMask:P,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:g,slimDOMOptions:m,dataURLOptions:v,inlineImages:b,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:I,stylesheetLoadTimeout:O,keepIframeSrcFn:M});n&&x(t,n)}},E),B.type===z.Element&&"link"===B.tagName&&"string"==typeof B.attributes.rel&&("stylesheet"===B.attributes.rel||"preload"===B.attributes.rel&&"string"==typeof B.attributes.href&&"css"===ts(B.attributes.href))&&function(t,e,n){var r,i=!1;try{r=t.sheet}catch(t){return}if(!r){var o=setTimeout(function(){i||(e(),i=!0)},n);t.addEventListener("load",function(){clearTimeout(o),i=!0,e()})}}(t,function(){if(I){var e=tE(t,{doc:n,mirror:r,blockClass:i,blockSelector:o,needsMask:P,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:p,maskInputOptions:d,maskTextFn:f,maskInputFn:g,slimDOMOptions:m,dataURLOptions:v,inlineImages:b,recordCanvas:k,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:E,onStylesheetLoad:I,stylesheetLoadTimeout:O,keepIframeSrcFn:M});e&&I(t,e)}},O),B}var tI={exports:{}},tT=String,tO=function(){return{isColorSupported:!1,reset:tT,bold:tT,dim:tT,italic:tT,underline:tT,inverse:tT,hidden:tT,strikethrough:tT,black:tT,red:tT,green:tT,yellow:tT,blue:tT,magenta:tT,cyan:tT,white:tT,gray:tT,bgBlack:tT,bgRed:tT,bgGreen:tT,bgYellow:tT,bgBlue:tT,bgMagenta:tT,bgCyan:tT,bgWhite:tT}};tI.exports=tO(),tI.exports.createColors=tO;var tA=tI.exports,tR=function(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var n=function t(){return A(this,t)?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),n}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),tM=function(t){function e(n,r,i,o,s,a){var c;return(c=t.call(this,n)||this).name="CssSyntaxError",c.reason=n,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==r&&void 0!==i&&("number"==typeof r?(c.line=r,c.column=i):(c.line=r.line,c.column=r.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,e),c}O(e,t);var n=e.prototype;return n.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},n.showSourceCode=function(t){var e,n,r=this;if(!this.source)return"";var i=this.source;null==t&&(t=tA.isColorSupported),tR&&t&&(i=tR(i));var o=i.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(t){var u=tA.createColors(!0),l=u.bold,p=u.gray,h=u.red;e=function(t){return l(h(t))},n=function(t){return p(t)}}else e=n=function(t){return t};return o.slice(s,a).map(function(t,i){var o=s+1+i,a=" "+(" "+o).slice(-c)+" | ";if(o===r.line){var u=n(a.replace(/\d/g," "))+t.slice(0,r.column-1).replace(/[^\t]/g," ");return e(">")+n(a)+t+"\n "+u+e("^")}return" "+n(a)+t}).join("\n")},n.toString=function(){var t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t},e}(N(Error));tM.default=tM;var tD={};tD.isClean=Symbol("isClean"),tD.my=Symbol("my");var tN={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},tP=function(){function t(t){this.builder=t}var e=t.prototype;return e.atrule=function(t,e){var n="@"+t.name,r=t.params?this.rawValue(t,"params"):"";if(void 0!==t.raws.afterName?n+=t.raws.afterName:r&&(n+=" "),t.nodes)this.block(t,n+r);else{var i=(t.raws.between||"")+(e?";":"");this.builder(n+r+i,t)}},e.beforeAfter=function(t,e){n="decl"===t.type?this.raw(t,null,"beforeDecl"):"comment"===t.type?this.raw(t,null,"beforeComment"):"before"===e?this.raw(t,null,"beforeRule"):this.raw(t,null,"beforeClose");for(var n,r=t.parent,i=0;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){var o=this.raw(t,null,"indent");if(o.length)for(var s=0;s0&&"comment"===t.nodes[e].type;)e-=1;for(var n=this.raw(t,"semicolon"),r=0;r0&&void 0!==t.raws.after)return(e=t.raws.after).includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e},e.rawBeforeComment=function(t,e){var n;return t.walkComments(function(t){if(void 0!==t.raws.before)return(n=t.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(e,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n},e.rawBeforeDecl=function(t,e){var n;return t.walkDecls(function(t){if(void 0!==t.raws.before)return(n=t.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(e,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n},e.rawBeforeOpen=function(t){var e;return t.walk(function(t){if("decl"!==t.type&&void 0!==(e=t.raws.between))return!1}),e},e.rawBeforeRule=function(t){var e;return t.walk(function(n){if(n.nodes&&(n.parent!==t||t.first!==n)&&void 0!==n.raws.before)return(e=n.raws.before).includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e},e.rawColon=function(t){var e;return t.walkDecls(function(t){if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1}),e},e.rawEmptyBody=function(t){var e;return t.walk(function(t){if(t.nodes&&0===t.nodes.length&&void 0!==(e=t.raws.after))return!1}),e},e.rawIndent=function(t){var e;return t.raws.indent?t.raws.indent:(t.walk(function(n){var r=n.parent;if(r&&r!==t&&r.parent&&r.parent===t&&void 0!==n.raws.before){var i=n.raws.before.split("\n");return e=(e=i[i.length-1]).replace(/\S/g,""),!1}}),e)},e.rawSemicolon=function(t){var e;return t.walk(function(t){if(t.nodes&&t.nodes.length&&"decl"===t.last.type&&void 0!==(e=t.raws.semicolon))return!1}),e},e.rawValue=function(t,e){var n=t[e],r=t.raws[e];return r&&r.value===n?r.raw:n},e.root=function(t){this.body(t),t.raws.after&&this.builder(t.raws.after)},e.rule=function(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")},e.stringify=function(t,e){if(!this[t.type])throw Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)},t}();function tL(t,e){new tP(e).stringify(t)}tP.default=tP,tL.default=tL;var tF=tD.isClean,tj=tD.my,tU=function(){function t(t){for(var e in void 0===t&&(t={}),this.raws={},this[tF]=!1,this[tj]=!0,t)if("nodes"===e){this.nodes=[];for(var n,r=L(t[e]);!(n=r()).done;){var i=n.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[e]=t[e]}var e=t.prototype;return e.addToError=function(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){var e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,"$&"+e.input.from+":"+e.start.line+":"+e.start.column+"$&")}return t},e.after=function(t){return this.parent.insertAfter(this,t),this},e.assign=function(t){for(var e in void 0===t&&(t={}),t)this[e]=t[e];return this},e.before=function(t){return this.parent.insertBefore(this,t),this},e.cleanRaws=function(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between},e.clone=function(t){void 0===t&&(t={});var e=function t(e,n){var r=new e.constructor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&"proxyCache"!==i){var o=e[i],s=void 0===o?"undefined":D(o);"parent"===i&&"object"===s?n&&(r[i]=n):"source"===i?r[i]=o:Array.isArray(o)?r[i]=o.map(function(e){return t(e,r)}):("object"===s&&null!==o&&(o=t(o)),r[i]=o)}return r}(this);for(var n in t)e[n]=t[n];return e},e.cloneAfter=function(t){void 0===t&&(t={});var e=this.clone(t);return this.parent.insertAfter(this,e),e},e.cloneBefore=function(t){void 0===t&&(t={});var e=this.clone(t);return this.parent.insertBefore(this,e),e},e.error=function(t,e){if(void 0===e&&(e={}),this.source){var n=this.rangeBy(e),r=n.end,i=n.start;return this.source.input.error(t,{column:i.column,line:i.line},{column:r.column,line:r.line},e)}return new tM(t)},e.getProxyProcessor=function(){return{get:function(t,e){return"proxyOf"===e?t:"root"===e?function(){return t.root().toProxy()}:t[e]},set:function(t,e,n){return t[e]===n||(t[e]=n,("prop"===e||"value"===e||"name"===e||"params"===e||"important"===e||"text"===e)&&t.markDirty(),!0)}}},e.markDirty=function(){if(this[tF]){this[tF]=!1;for(var t=this;t=t.parent;)t[tF]=!1}},e.next=function(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t+1]}},e.positionBy=function(t,e){var n=this.source.start;if(t.index)n=this.positionInside(t.index,e);else if(t.word){var r=(e=this.toString()).indexOf(t.word);-1!==r&&(n=this.positionInside(r,e))}return n},e.positionInside=function(t,e){for(var n=e||this.toString(),r=this.source.start.column,i=this.source.start.line,o=0;o-1&&r>-1&&(this.annotation=this.getAnnotationURL(t.substring(n,r)))}},e.loadFile=function(t){if(this.root=tW(t),tz(t))return this.mapFile=t,tG(t,"utf-8").toString().trim()},e.loadMap=function(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"==typeof e){var n=e(t);if(n){var r=this.loadFile(n);if(!r)throw Error("Unable to load previous source map: "+n.toString());return r}}else if(A(e,t$))return tq.fromSourceMap(e).toString();else if(A(e,tq))return e.toString();else if(this.isMap(e))return JSON.stringify(e);else throw Error("Unsupported previous source map format: "+e.toString())}else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return t&&(i=tJ(tW(t),i)),this.loadFile(i)}},e.startWith=function(t,e){return!!t&&t.substr(0,e.length)===e},e.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t}();tH.default=tH;var tX=tR.SourceMapConsumer,tY=tR.SourceMapGenerator,tV=tR.fileURLToPath,tZ=tR.pathToFileURL,tK=tR.isAbsolute,tQ=tR.resolve,t0=function(t){void 0===t&&(t=21);for(var e="",n=t;n--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},t1=Symbol("fromOffsetCache"),t2=!!(tX&&tY),t3=!!(tQ&&tK),t5=function(){function t(t,e){if(void 0===e&&(e={}),null==t||(void 0===t?"undefined":D(t))==="object"&&!t.toString)throw Error("PostCSS received "+t+" instead of CSS string");if(this.css=t.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!t3||/^\w+:\/\//.test(e.from)||tK(e.from)?this.file=e.from:this.file=tQ(e.from)),t3&&t2){var n=new tH(this.css,e);if(n.text){this.map=n;var r=n.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}var e=t.prototype;return e.error=function(t,e,n,r){if(void 0===r&&(r={}),e&&(void 0===e?"undefined":D(e))==="object"){var i,o,s,a=e,c=n;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);e=u.line,n=u.col}else e=a.line,n=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!n){var p=this.fromOffset(e);e=p.line,n=p.col}var h=this.origin(e,n,o,s);return(i=h?new tM(t,void 0===h.endLine?h.line:{column:h.column,line:h.line},void 0===h.endLine?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,r.plugin):new tM(t,void 0===o?e:{column:n,line:e},void 0===o?n:{column:s,line:o},this.css,this.file,r.plugin)).input={column:n,endColumn:s,endLine:o,line:e,source:this.css},this.file&&(tZ&&(i.input.url=tZ(this.file).toString()),i.input.file=this.file),i},e.fromOffset=function(t){if(this[t1])a=this[t1];else{var e=this.css.split("\n");a=Array(e.length);for(var n=0,r=0,i=e.length;r=s)o=a.length-1;else for(var s,a,c,u=a.length-2;o>1)])u=c-1;else if(t>=a[c+1])o=c+1;else{o=c;break}return{col:t-a[o]+1,line:o+1}},e.mapResolve=function(t){return/^\w+:\/\//.test(t)?t:tQ(this.map.consumer().sourceRoot||this.map.root||".",t)},e.origin=function(t,e,n,r){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:e,line:t});if(!a.source)return!1;"number"==typeof n&&(i=s.originalPositionFor({column:r,line:n})),o=tK(a.source)?tZ(a.source):new URL(a.source,this.map.consumer().sourceRoot||tZ(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(tV)c.file=tV(o);else throw Error("file: protocol is not available in this PostCSS build")}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},e.toJSON=function(){for(var t={},e=0,n=["hasBOM","css","file","id"];e=0;e--)"comment"===(t=this.root.nodes[e]).type&&0===t.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(e);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}},e.generate=function(){if(this.clearAnnotation(),er&&en&&this.isMap())return this.generateMap();var t="";return this.stringify(this.root,function(e){t+=e}),[t]},e.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=t6.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new t6({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]},e.generateString=function(){var t,e,n=this;this.css="",this.map=new t6({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,i=1,o="",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(n.css+=a,c&&"end"!==u&&(s.generated.line=r,s.generated.column=i-1,c.source&&c.source.start?(s.source=n.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1):(s.source=o,s.original.line=1,s.original.column=0),n.map.addMapping(s)),(t=a.match(/\n/g))?(r+=t.length,e=a.lastIndexOf("\n"),i=a.length-e):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}};(!("decl"===c.type||"atrule"===c.type&&!c.nodes)||c!==l.last||l.raws.semicolon)&&(c.source&&c.source.end?(s.source=n.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=r,s.generated.column=i-2):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=r,s.generated.column=i-1),n.map.addMapping(s))}})},e.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(t){return t.annotation}))},e.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some(function(t){return t.inline}))},e.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},e.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(t){return t.withContent()})},e.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},e.path=function(t){if(this.mapOpts.absolute||60===t.charCodeAt(0)||/^\w+:\/\//.test(t))return t;var e=this.memoizedPaths.get(t);if(e)return e;var n=this.opts.to?t8(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=t8(t7(n,this.mapOpts.annotation)));var r=t9(n,t);return this.memoizedPaths.set(t,r),r},e.previous=function(){var t=this;if(!this.previousMaps){if(this.previousMaps=[],this.root)this.root.walk(function(e){if(e.source&&e.source.input.map){var n=e.source.input.map;t.previousMaps.includes(n)||t.previousMaps.push(n)}});else{var e=new t5(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}}return this.previousMaps},e.setSourcesContent=function(){var t=this,e={};if(this.root)this.root.walk(function(n){if(n.source){var r=n.source.input.from;if(r&&!e[r]){e[r]=!0;var i=t.usesFileUrls?t.toFileUrl(r):t.toUrl(t.path(r));t.map.setSourceContent(i,n.source.input.css)}}});else if(this.css){var n=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(n,this.css)}},e.sourcePath=function(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))},e.toBase64=function(t){return _?_.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))},e.toFileUrl=function(t){var e=this.memoizedFileURLs.get(t);if(e)return e;if(ee){var n=ee(t).toString();return this.memoizedFileURLs.set(t,n),n}throw Error("`map.absolute` option is not available in this PostCSS build")},e.toUrl=function(t){var e=this.memoizedURLs.get(t);if(e)return e;"\\"===et&&(t=t.replace(/\\/g,"/"));var n=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,n),n},t}(),eo=function(t){function e(e){var n;return(n=t.call(this,e)||this).type="comment",n}return O(e,t),e}(tU);eo.default=eo;var es=tD.isClean,ea=tD.my,ec=function(t){function e(){return t.apply(this,arguments)||this}O(e,t);var n=e.prototype;return n.append=function(){for(var t=arguments.length,e=Array(t),n=0;n1?e-1:0),i=1;i=t&&(this.indexes[n]=e-1);return this.markDirty(),this},n.replaceValues=function(t,e,n){return n||(n=e,e={}),this.walkDecls(function(r){(!e.props||e.props.includes(r.prop))&&(!e.fast||r.value.includes(e.fast))&&(r.value=r.value.replace(t,n))}),this.markDirty(),this},n.some=function(t){return this.nodes.some(t)},n.walk=function(t){return this.each(function(e,n){var r;try{r=t(e,n)}catch(t){throw e.addToError(t)}return!1!==r&&e.walk&&(r=e.walk(t)),r})},n.walkAtRules=function(t,e){return e?A(t,RegExp)?this.walk(function(n,r){if("atrule"===n.type&&t.test(n.name))return e(n,r)}):this.walk(function(n,r){if("atrule"===n.type&&n.name===t)return e(n,r)}):(e=t,this.walk(function(t,n){if("atrule"===t.type)return e(t,n)}))},n.walkComments=function(t){return this.walk(function(e,n){if("comment"===e.type)return t(e,n)})},n.walkDecls=function(t,e){return e?A(t,RegExp)?this.walk(function(n,r){if("decl"===n.type&&t.test(n.prop))return e(n,r)}):this.walk(function(n,r){if("decl"===n.type&&n.prop===t)return e(n,r)}):(e=t,this.walk(function(t,n){if("decl"===t.type)return e(t,n)}))},n.walkRules=function(t,e){return e?A(t,RegExp)?this.walk(function(n,r){if("rule"===n.type&&t.test(n.selector))return e(n,r)}):this.walk(function(n,r){if("rule"===n.type&&n.selector===t)return e(n,r)}):(e=t,this.walk(function(t,n){if("rule"===t.type)return e(t,n)}))},E(e,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),e}(tU);ec.registerParse=function(t){iw=t},ec.registerRule=function(t){ik=t},ec.registerAtRule=function(t){iS=t},ec.registerRoot=function(t){ix=t},ec.default=ec,ec.rebuild=function(t){"atrule"===t.type?Object.setPrototypeOf(t,iS.prototype):"rule"===t.type?Object.setPrototypeOf(t,ik.prototype):"decl"===t.type?Object.setPrototypeOf(t,tB.prototype):"comment"===t.type?Object.setPrototypeOf(t,eo.prototype):"root"===t.type&&Object.setPrototypeOf(t,ix.prototype),t[ea]=!0,t.nodes&&t.nodes.forEach(function(t){ec.rebuild(t)})};var eu=function(t){function e(e){var n;return(n=t.call(this,I({type:"document"},e))||this).nodes||(n.nodes=[]),n}return O(e,t),e.prototype.toResult=function(t){return void 0===t&&(t={}),new iC(new iE,this,t).stringify()},e}(ec);eu.registerLazyResult=function(t){iC=t},eu.registerProcessor=function(t){iE=t},eu.default=eu;var el=function(){function t(t,e){if(void 0===e&&(e={}),this.type="warning",this.text=t,e.node&&e.node.source){var n=e.node.rangeBy(e);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(var r in e)this[r]=e[r]}return t.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},t}();el.default=el;var ep=function(){function t(t,e,n){this.processor=t,this.messages=[],this.root=e,this.opts=n,this.css=void 0,this.map=void 0}var e=t.prototype;return e.toString=function(){return this.css},e.warn=function(t,e){void 0===e&&(e={}),!e.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);var n=new el(t,e);return this.messages.push(n),n},e.warnings=function(){return this.messages.filter(function(t){return"warning"===t.type})},E(t,[{key:"content",get:function(){return this.css}}]),t}();ep.default=ep;var eh=/[\t\n\f\r "#'()/;[\\\]{}]/g,ed=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ef=/.[\r\n"'(/\\]/,eg=/[\da-f]/i,em=function(t){function e(e){var n;return(n=t.call(this,e)||this).type="atrule",n}O(e,t);var n=e.prototype;return n.append=function(){for(var e,n=arguments.length,r=Array(n),i=0;i1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var o,s=L(i);!(o=s()).done;)o.value.raws.before=n.raws.before}return i},n.removeChild=function(e,n){var r=this.index(e);return!n&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),t.prototype.removeChild.call(this,e)},n.toResult=function(t){return void 0===t&&(t={}),new iI(new iT,this,t).stringify()},e}(ec);ey.registerLazyResult=function(t){iI=t},ey.registerProcessor=function(t){iT=t},ey.default=ey,ec.registerRoot(ey);var ev={comma:function(t){return ev.split(t,[","],!0)},space:function(t){return ev.split(t,[" ","\n"," "])},split:function(t,e,n){for(var r,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,p=L(t);!(r=p()).done;){var h=r.value;l?l=!1:"\\"===h?l=!0:c?h===u&&(c=!1):'"'===h||"'"===h?(c=!0,u=h):"("===h?a+=1:")"===h?a>0&&(a-=1):0===a&&e.includes(h)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=h}return(n||""!==o)&&i.push(o.trim()),i}};ev.default=ev;var e_=function(t){function e(e){var n;return(n=t.call(this,e)||this).type="rule",n.nodes||(n.nodes=[]),n}return O(e,t),E(e,[{key:"selectors",get:function(){return ev.comma(this.selector)},set:function(t){var e=this.selector?this.selector.match(/,\s*/):null,n=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(n)}}]),e}(ec);e_.default=e_,ec.registerRule(e_);var eb=function(t,e){void 0===e&&(e={});var n,r,i,o,s,a,c,u,l,p,h=t.css.valueOf(),d=e.ignoreErrors,f=h.length,g=0,m=[],y=[];function v(e){throw t.error("Unclosed "+e,g)}return{back:function(t){y.push(t)},endOfFile:function(){return 0===y.length&&g>=f},nextToken:function(t){if(y.length)return y.pop();if(!(g>=f)){var e=!!t&&t.ignoreUnclosed;switch(n=h.charCodeAt(g)){case 10:case 32:case 9:case 13:case 12:r=g;do r+=1,n=h.charCodeAt(r);while(32===n||10===n||9===n||13===n||12===n);p=["space",h.slice(g,r)],g=r-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:var _=String.fromCharCode(n);p=[_,_,g];break;case 40:if(u=m.length?m.pop()[1]:"",l=h.charCodeAt(g+1),"url"===u&&39!==l&&34!==l&&32!==l&&10!==l&&9!==l&&12!==l&&13!==l){r=g;do{if(a=!1,-1===(r=h.indexOf(")",r+1))){if(d||e){r=g;break}v("bracket")}for(c=r;92===h.charCodeAt(c-1);)c-=1,a=!a}while(a);p=["brackets",h.slice(g,r+1),g,r],g=r}else r=h.indexOf(")",g+1),o=h.slice(g,r+1),-1===r||ef.test(o)?p=["(","(",g]:(p=["brackets",o,g,r],g=r);break;case 39:case 34:i=39===n?"'":'"',r=g;do{if(a=!1,-1===(r=h.indexOf(i,r+1))){if(d||e){r=g+1;break}v("string")}for(c=r;92===h.charCodeAt(c-1);)c-=1,a=!a}while(a);p=["string",h.slice(g,r+1),g,r],g=r;break;case 64:eh.lastIndex=g+1,eh.test(h),r=0===eh.lastIndex?h.length-1:eh.lastIndex-2,p=["at-word",h.slice(g,r+1),g,r],g=r;break;case 92:for(r=g,s=!0;92===h.charCodeAt(r+1);)r+=1,s=!s;if(n=h.charCodeAt(r+1),s&&47!==n&&32!==n&&10!==n&&9!==n&&13!==n&&12!==n&&(r+=1,eg.test(h.charAt(r)))){for(;eg.test(h.charAt(r+1));)r+=1;32===h.charCodeAt(r+1)&&(r+=1)}p=["word",h.slice(g,r+1),g,r],g=r;break;default:47===n&&42===h.charCodeAt(g+1)?(0===(r=h.indexOf("*/",g+2)+1)&&(d||e?r=h.length:v("comment")),p=["comment",h.slice(g,r+1),g,r]):(ed.lastIndex=g+1,ed.test(h),r=0===ed.lastIndex?h.length-1:ed.lastIndex-2,p=["word",h.slice(g,r+1),g,r],m.push(p)),g=r}return g++,p}},position:function(){return g}}},ew={empty:!0,space:!0},ek=function(){function t(t){this.input=t,this.root=new ey,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}var e=t.prototype;return e.atrule=function(t){var e,n,r,i=new em;i.name=t[1].slice(1),""===i.name&&this.unnamedAtrule(i,t),this.init(i,t[2]);for(var o=!1,s=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(e=(t=this.tokenizer.nextToken())[0])||"["===e?c.push("("===e?")":"]"):"{"===e&&c.length>0?c.push("}"):e===c[c.length-1]&&c.pop(),0===c.length){if(";"===e){i.source.end=this.getPosition(t[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===e){s=!0;break}if("}"===e){if(a.length>0){for(r=a.length-1,n=a[r];n&&"space"===n[0];)n=a[--r];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(t);break}a.push(t)}else a.push(t);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(t=a[a.length-1],i.source.end=this.getPosition(t[3]||t[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},e.checkMissedSemicolon=function(t){var e,n=this.colon(t);if(!1!==n){for(var r=0,i=n-1;i>=0&&("space"===(e=t[i])[0]||2!==(r+=1));i--);throw this.input.error("Missed semicolon","word"===e[0]?e[3]+1:e[2])}},e.colon=function(t){for(var e,n,r,i=0,o=L(t.entries());!(r=o()).done;){var s=r.value,a=s[0],c=s[1];if("("===(e=c[0])&&(i+=1),")"===e&&(i-=1),0===i&&":"===e){if(n){if("word"===n[0]&&"progid"===n[1])continue;return a}this.doubleColon(c)}n=c}return!1},e.comment=function(t){var e=new eo;this.init(e,t[2]),e.source.end=this.getPosition(t[3]||t[2]),e.source.end.offset++;var n=t[1].slice(2,-2);if(/^\s*$/.test(n))e.text="",e.raws.left=n,e.raws.right="";else{var r=n.match(/^(\s*)([^]*\S)(\s*)$/);e.text=r[2],e.raws.left=r[1],e.raws.right=r[3]}},e.createTokenizer=function(){this.tokenizer=eb(this.input)},e.decl=function(t,e){var n,r,i=new tB;this.init(i,t[0][2]);var o=t[t.length-1];for(";"===o[0]&&(this.semicolon=!0,t.pop()),i.source.end=this.getPosition(o[3]||o[2]||function(t){for(var e=t.length-1;e>=0;e--){var n=t[e],r=n[3]||n[2];if(r)return r}}(t)),i.source.end.offset++;"word"!==t[0][0];)1===t.length&&this.unknownWord(t),i.raws.before+=t.shift()[1];for(i.source.start=this.getPosition(t[0][2]),i.prop="";t.length;){var s=t[0][0];if(":"===s||"space"===s||"comment"===s)break;i.prop+=t.shift()[1]}for(i.raws.between="";t.length;){if(":"===(n=t.shift())[0]){i.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),i.raws.between+=n[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var a=[];t.length&&("space"===(r=t[0][0])||"comment"===r);)a.push(t.shift());this.precheckMissedSemicolon(t);for(var c=t.length-1;c>=0;c--){if("!important"===(n=t[c])[1].toLowerCase()){i.important=!0;var u=this.stringFrom(t,c);" !important"!==(u=this.spacesFromEnd(t)+u)&&(i.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=t.slice(0),p="",h=c;h>0;h--){var d=l[h][0];if(0===p.trim().indexOf("!")&&"space"!==d)break;p=l.pop()[1]+p}0===p.trim().indexOf("!")&&(i.important=!0,i.raws.important=p,t=l)}if("space"!==n[0]&&"comment"!==n[0])break}t.some(function(t){return"space"!==t[0]&&"comment"!==t[0]})&&(i.raws.between+=a.map(function(t){return t[1]}).join(""),a=[]),this.raw(i,"value",a.concat(t),e),i.value.includes(":")&&!e&&this.checkMissedSemicolon(t)},e.doubleColon=function(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})},e.emptyRule=function(t){var e=new e_;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e},e.end=function(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)},e.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},e.freeSemicolon=function(t){if(this.spaces+=t[1],this.current.nodes){var e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}},e.getPosition=function(t){var e=this.input.fromOffset(t);return{column:e.col,line:e.line,offset:t}},e.init=function(t,e){this.current.push(t),t.source={input:this.input,start:this.getPosition(e)},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)},e.other=function(t){for(var e=!1,n=null,r=!1,i=null,o=[],s=t[1].startsWith("--"),a=[],c=t;c;){if(n=c[0],a.push(c),"("===n||"["===n)i||(i=c),o.push("("===n?")":"]");else if(s&&r&&"{"===n)i||(i=c),o.push("}");else if(0===o.length){if(";"===n){if(r){this.decl(a,s);return}break}if("{"===n){this.rule(a);return}if("}"===n){this.tokenizer.back(a.pop()),e=!0;break}":"===n&&(r=!0)}else n===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),o.length>0&&this.unclosedBracket(i),e&&r){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},e.parse=function(){for(var t;!this.tokenizer.endOfFile();)switch((t=this.tokenizer.nextToken())[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()},e.precheckMissedSemicolon=function(){},e.raw=function(t,e,n,r){for(var i,o,s,a,c=n.length,u="",l=!0,p=0;p0},e.runAsync=function(){var t=this;return x(function(){var e,n,r,i,o,s,a,c,u,l,p,h;return F(this,function(d){switch(d.label){case 0:t.plugin=0,e=0,d.label=1;case 1:if(!(e0))return[3,13];if(!eO(a=t.visitTick(s)))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,a];case 10:return d.sent(),[3,12];case 11:throw c=d.sent(),u=s[s.length-1].node,t.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!t.listeners.OnceExit)return[3,18];l=function(){var e,n,r,i;return F(this,function(s){switch(s.label){case 0:n=(e=h.value)[0],r=e[1],t.result.lastPlugin=n,s.label=1;case 1:if(s.trys.push([1,6,,7]),"document"!==o.type)return[3,3];return[4,Promise.all(o.nodes.map(function(e){return r(e,t.helpers)}))];case 2:return s.sent(),[3,5];case 3:return[4,r(o,t.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw i=s.sent(),t.handleError(i);case 7:return[2]}})},p=L(t.listeners.OnceExit),d.label=15;case 15:if((h=p()).done)return[3,18];return[5,j(l())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return t.processed=!0,[2,t.stringify()]}})})()},e.runOnRoot=function(t){var e=this;this.result.lastPlugin=t;try{if((void 0===t?"undefined":D(t))==="object"&&t.Once){if("document"===this.result.root.type){var n=this.result.root.nodes.map(function(n){return t.Once(n,e.helpers)});if(eO(n[0]))return Promise.all(n);return n}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(this.result.root,this.result)}catch(t){throw this.handleError(t)}},e.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var t=this.result.opts,e=tL;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);var n=new ei(e,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result},e.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var t,e=L(this.plugins);!(t=e()).done;){var n=t.value;if(eO(this.runOnRoot(n)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var r=this.result.root;!r[ex];)r[ex]=!0,this.walkSync(r);if(this.listeners.OnceExit){if("document"===r.type)for(var i,o=L(r.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,r)}}return this.result},e.then=function(t,e){return this.async().then(t,e)},e.toString=function(){return this.css},e.visitSync=function(t,e){for(var n,r=L(t);!(n=r()).done;){var i=n.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if(eO(a))throw this.getAsyncError()}},e.visitTick=function(t){var e=t[t.length-1],n=e.node,r=e.visitors;if("root"!==n.type&&"document"!==n.type&&!n.parent){t.pop();return}if(r.length>0&&e.visitorIndex",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},n.showSourceCode=function(t){var e,n,r=this;if(!this.source)return"";var i=this.source;null==t&&(t=eW.isColorSupported),eJ&&t&&(i=eJ(i));var o=i.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(t){var u=eW.createColors(!0),l=u.bold,p=u.gray,h=u.red;e=function(t){return l(h(t))},n=function(t){return p(t)}}else e=n=function(t){return t};return o.slice(s,a).map(function(t,i){var o=s+1+i,a=" "+(" "+o).slice(-c)+" | ";if(o===r.line){var u=n(a.replace(/\d/g," "))+t.slice(0,r.column-1).replace(/[^\t]/g," ");return e(">")+n(a)+t+"\n "+u+e("^")}return" "+n(a)+t}).join("\n")},n.toString=function(){var t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t},e}(N(Error));eH.default=eH;var eX={};eX.isClean=Symbol("isClean"),eX.my=Symbol("my");var eY={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},eV=function(){function t(t){this.builder=t}var e=t.prototype;return e.atrule=function(t,e){var n="@"+t.name,r=t.params?this.rawValue(t,"params"):"";if(void 0!==t.raws.afterName?n+=t.raws.afterName:r&&(n+=" "),t.nodes)this.block(t,n+r);else{var i=(t.raws.between||"")+(e?";":"");this.builder(n+r+i,t)}},e.beforeAfter=function(t,e){n="decl"===t.type?this.raw(t,null,"beforeDecl"):"comment"===t.type?this.raw(t,null,"beforeComment"):"before"===e?this.raw(t,null,"beforeRule"):this.raw(t,null,"beforeClose");for(var n,r=t.parent,i=0;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){var o=this.raw(t,null,"indent");if(o.length)for(var s=0;s0&&"comment"===t.nodes[e].type;)e-=1;for(var n=this.raw(t,"semicolon"),r=0;r0&&void 0!==t.raws.after)return(e=t.raws.after).includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e},e.rawBeforeComment=function(t,e){var n;return t.walkComments(function(t){if(void 0!==t.raws.before)return(n=t.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(e,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n},e.rawBeforeDecl=function(t,e){var n;return t.walkDecls(function(t){if(void 0!==t.raws.before)return(n=t.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(e,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n},e.rawBeforeOpen=function(t){var e;return t.walk(function(t){if("decl"!==t.type&&void 0!==(e=t.raws.between))return!1}),e},e.rawBeforeRule=function(t){var e;return t.walk(function(n){if(n.nodes&&(n.parent!==t||t.first!==n)&&void 0!==n.raws.before)return(e=n.raws.before).includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e},e.rawColon=function(t){var e;return t.walkDecls(function(t){if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1}),e},e.rawEmptyBody=function(t){var e;return t.walk(function(t){if(t.nodes&&0===t.nodes.length&&void 0!==(e=t.raws.after))return!1}),e},e.rawIndent=function(t){var e;return t.raws.indent?t.raws.indent:(t.walk(function(n){var r=n.parent;if(r&&r!==t&&r.parent&&r.parent===t&&void 0!==n.raws.before){var i=n.raws.before.split("\n");return e=(e=i[i.length-1]).replace(/\S/g,""),!1}}),e)},e.rawSemicolon=function(t){var e;return t.walk(function(t){if(t.nodes&&t.nodes.length&&"decl"===t.last.type&&void 0!==(e=t.raws.semicolon))return!1}),e},e.rawValue=function(t,e){var n=t[e],r=t.raws[e];return r&&r.value===n?r.raw:n},e.root=function(t){this.body(t),t.raws.after&&this.builder(t.raws.after)},e.rule=function(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")},e.stringify=function(t,e){if(!this[t.type])throw Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)},t}();function eZ(t,e){new eV(e).stringify(t)}eV.default=eV,eZ.default=eZ;var eK=eX.isClean,eQ=eX.my,e0=function(){function t(t){for(var e in void 0===t&&(t={}),this.raws={},this[eK]=!1,this[eQ]=!0,t)if("nodes"===e){this.nodes=[];for(var n,r=L(t[e]);!(n=r()).done;){var i=n.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[e]=t[e]}var e=t.prototype;return e.addToError=function(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){var e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,"$&"+e.input.from+":"+e.start.line+":"+e.start.column+"$&")}return t},e.after=function(t){return this.parent.insertAfter(this,t),this},e.assign=function(t){for(var e in void 0===t&&(t={}),t)this[e]=t[e];return this},e.before=function(t){return this.parent.insertBefore(this,t),this},e.cleanRaws=function(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between},e.clone=function(t){void 0===t&&(t={});var e=function t(e,n){var r=new e.constructor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&"proxyCache"!==i){var o=e[i],s=void 0===o?"undefined":D(o);"parent"===i&&"object"===s?n&&(r[i]=n):"source"===i?r[i]=o:Array.isArray(o)?r[i]=o.map(function(e){return t(e,r)}):("object"===s&&null!==o&&(o=t(o)),r[i]=o)}return r}(this);for(var n in t)e[n]=t[n];return e},e.cloneAfter=function(t){void 0===t&&(t={});var e=this.clone(t);return this.parent.insertAfter(this,e),e},e.cloneBefore=function(t){void 0===t&&(t={});var e=this.clone(t);return this.parent.insertBefore(this,e),e},e.error=function(t,e){if(void 0===e&&(e={}),this.source){var n=this.rangeBy(e),r=n.end,i=n.start;return this.source.input.error(t,{column:i.column,line:i.line},{column:r.column,line:r.line},e)}return new eH(t)},e.getProxyProcessor=function(){return{get:function(t,e){return"proxyOf"===e?t:"root"===e?function(){return t.root().toProxy()}:t[e]},set:function(t,e,n){return t[e]===n||(t[e]=n,("prop"===e||"value"===e||"name"===e||"params"===e||"important"===e||"text"===e)&&t.markDirty(),!0)}}},e.markDirty=function(){if(this[eK]){this[eK]=!1;for(var t=this;t=t.parent;)t[eK]=!1}},e.next=function(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t+1]}},e.positionBy=function(t,e){var n=this.source.start;if(t.index)n=this.positionInside(t.index,e);else if(t.word){var r=(e=this.toString()).indexOf(t.word);-1!==r&&(n=this.positionInside(r,e))}return n},e.positionInside=function(t,e){for(var n=e||this.toString(),r=this.source.start.column,i=this.source.start.line,o=0;o-1&&r>-1&&(this.annotation=this.getAnnotationURL(t.substring(n,r)))}},e.loadFile=function(t){if(this.root=e6(t),e5(t))return this.mapFile=t,e4(t,"utf-8").toString().trim()},e.loadMap=function(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"==typeof e){var n=e(t);if(n){var r=this.loadFile(n);if(!r)throw Error("Unable to load previous source map: "+n.toString());return r}}else if(A(e,e2))return e3.fromSourceMap(e).toString();else if(A(e,e3))return e.toString();else if(this.isMap(e))return JSON.stringify(e);else throw Error("Unsupported previous source map format: "+e.toString())}else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return t&&(i=e8(e6(t),i)),this.loadFile(i)}},e.startWith=function(t,e){return!!t&&t.substr(0,e.length)===e},e.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t}();e9.default=e9;var e7=eJ.SourceMapConsumer,nt=eJ.SourceMapGenerator,ne=eJ.fileURLToPath,nn=eJ.pathToFileURL,nr=eJ.isAbsolute,ni=eJ.resolve,no=function(t){void 0===t&&(t=21);for(var e="",n=t;n--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},ns=Symbol("fromOffsetCache"),na=!!(e7&&nt),nc=!!(ni&&nr),nu=function(){function t(t,e){if(void 0===e&&(e={}),null==t||(void 0===t?"undefined":D(t))==="object"&&!t.toString)throw Error("PostCSS received "+t+" instead of CSS string");if(this.css=t.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!nc||/^\w+:\/\//.test(e.from)||nr(e.from)?this.file=e.from:this.file=ni(e.from)),nc&&na){var n=new e9(this.css,e);if(n.text){this.map=n;var r=n.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}var e=t.prototype;return e.error=function(t,e,n,r){if(void 0===r&&(r={}),e&&(void 0===e?"undefined":D(e))==="object"){var i,o,s,a=e,c=n;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);e=u.line,n=u.col}else e=a.line,n=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!n){var p=this.fromOffset(e);e=p.line,n=p.col}var h=this.origin(e,n,o,s);return(i=h?new eH(t,void 0===h.endLine?h.line:{column:h.column,line:h.line},void 0===h.endLine?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,r.plugin):new eH(t,void 0===o?e:{column:n,line:e},void 0===o?n:{column:s,line:o},this.css,this.file,r.plugin)).input={column:n,endColumn:s,endLine:o,line:e,source:this.css},this.file&&(nn&&(i.input.url=nn(this.file).toString()),i.input.file=this.file),i},e.fromOffset=function(t){if(this[ns])a=this[ns];else{var e=this.css.split("\n");a=Array(e.length);for(var n=0,r=0,i=e.length;r=s)o=a.length-1;else for(var s,a,c,u=a.length-2;o>1)])u=c-1;else if(t>=a[c+1])o=c+1;else{o=c;break}return{col:t-a[o]+1,line:o+1}},e.mapResolve=function(t){return/^\w+:\/\//.test(t)?t:ni(this.map.consumer().sourceRoot||this.map.root||".",t)},e.origin=function(t,e,n,r){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:e,line:t});if(!a.source)return!1;"number"==typeof n&&(i=s.originalPositionFor({column:r,line:n})),o=nr(a.source)?nn(a.source):new URL(a.source,this.map.consumer().sourceRoot||nn(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(ne)c.file=ne(o);else throw Error("file: protocol is not available in this PostCSS build")}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},e.toJSON=function(){for(var t={},e=0,n=["hasBOM","css","file","id"];e=0;e--)"comment"===(t=this.root.nodes[e]).type&&0===t.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(e);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}},e.generate=function(){if(this.clearAnnotation(),nv&&ny&&this.isMap())return this.generateMap();var t="";return this.stringify(this.root,function(e){t+=e}),[t]},e.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=np.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new np({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]},e.generateString=function(){var t,e,n=this;this.css="",this.map=new np({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,i=1,o="",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(n.css+=a,c&&"end"!==u&&(s.generated.line=r,s.generated.column=i-1,c.source&&c.source.start?(s.source=n.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1):(s.source=o,s.original.line=1,s.original.column=0),n.map.addMapping(s)),(t=a.match(/\n/g))?(r+=t.length,e=a.lastIndexOf("\n"),i=a.length-e):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}};(!("decl"===c.type||"atrule"===c.type&&!c.nodes)||c!==l.last||l.raws.semicolon)&&(c.source&&c.source.end?(s.source=n.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=r,s.generated.column=i-2):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=r,s.generated.column=i-1),n.map.addMapping(s))}})},e.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(t){return t.annotation}))},e.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some(function(t){return t.inline}))},e.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},e.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(t){return t.withContent()})},e.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},e.path=function(t){if(this.mapOpts.absolute||60===t.charCodeAt(0)||/^\w+:\/\//.test(t))return t;var e=this.memoizedPaths.get(t);if(e)return e;var n=this.opts.to?nh(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=nh(nf(n,this.mapOpts.annotation)));var r=nd(n,t);return this.memoizedPaths.set(t,r),r},e.previous=function(){var t=this;if(!this.previousMaps){if(this.previousMaps=[],this.root)this.root.walk(function(e){if(e.source&&e.source.input.map){var n=e.source.input.map;t.previousMaps.includes(n)||t.previousMaps.push(n)}});else{var e=new nu(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}}return this.previousMaps},e.setSourcesContent=function(){var t=this,e={};if(this.root)this.root.walk(function(n){if(n.source){var r=n.source.input.from;if(r&&!e[r]){e[r]=!0;var i=t.usesFileUrls?t.toFileUrl(r):t.toUrl(t.path(r));t.map.setSourceContent(i,n.source.input.css)}}});else if(this.css){var n=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(n,this.css)}},e.sourcePath=function(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))},e.toBase64=function(t){return _?_.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))},e.toFileUrl=function(t){var e=this.memoizedFileURLs.get(t);if(e)return e;if(nm){var n=nm(t).toString();return this.memoizedFileURLs.set(t,n),n}throw Error("`map.absolute` option is not available in this PostCSS build")},e.toUrl=function(t){var e=this.memoizedURLs.get(t);if(e)return e;"\\"===ng&&(t=t.replace(/\\/g,"/"));var n=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,n),n},t}(),nb=function(t){function e(e){var n;return(n=t.call(this,e)||this).type="comment",n}return O(e,t),e}(e0);nb.default=nb;var nw=eX.isClean,nk=eX.my,nS=function(t){function e(){return t.apply(this,arguments)||this}O(e,t);var n=e.prototype;return n.append=function(){for(var t=arguments.length,e=Array(t),n=0;n1?e-1:0),i=1;i=t&&(this.indexes[n]=e-1);return this.markDirty(),this},n.replaceValues=function(t,e,n){return n||(n=e,e={}),this.walkDecls(function(r){(!e.props||e.props.includes(r.prop))&&(!e.fast||r.value.includes(e.fast))&&(r.value=r.value.replace(t,n))}),this.markDirty(),this},n.some=function(t){return this.nodes.some(t)},n.walk=function(t){return this.each(function(e,n){var r;try{r=t(e,n)}catch(t){throw e.addToError(t)}return!1!==r&&e.walk&&(r=e.walk(t)),r})},n.walkAtRules=function(t,e){return e?A(t,RegExp)?this.walk(function(n,r){if("atrule"===n.type&&t.test(n.name))return e(n,r)}):this.walk(function(n,r){if("atrule"===n.type&&n.name===t)return e(n,r)}):(e=t,this.walk(function(t,n){if("atrule"===t.type)return e(t,n)}))},n.walkComments=function(t){return this.walk(function(e,n){if("comment"===e.type)return t(e,n)})},n.walkDecls=function(t,e){return e?A(t,RegExp)?this.walk(function(n,r){if("decl"===n.type&&t.test(n.prop))return e(n,r)}):this.walk(function(n,r){if("decl"===n.type&&n.prop===t)return e(n,r)}):(e=t,this.walk(function(t,n){if("decl"===t.type)return e(t,n)}))},n.walkRules=function(t,e){return e?A(t,RegExp)?this.walk(function(n,r){if("rule"===n.type&&t.test(n.selector))return e(n,r)}):this.walk(function(n,r){if("rule"===n.type&&n.selector===t)return e(n,r)}):(e=t,this.walk(function(t,n){if("rule"===t.type)return e(t,n)}))},E(e,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),e}(e0);nS.registerParse=function(t){iO=t},nS.registerRule=function(t){iA=t},nS.registerAtRule=function(t){iR=t},nS.registerRoot=function(t){iM=t},nS.default=nS,nS.rebuild=function(t){"atrule"===t.type?Object.setPrototypeOf(t,iR.prototype):"rule"===t.type?Object.setPrototypeOf(t,iA.prototype):"decl"===t.type?Object.setPrototypeOf(t,e1.prototype):"comment"===t.type?Object.setPrototypeOf(t,nb.prototype):"root"===t.type&&Object.setPrototypeOf(t,iM.prototype),t[nk]=!0,t.nodes&&t.nodes.forEach(function(t){nS.rebuild(t)})};var nx=function(t){function e(e){var n;return(n=t.call(this,I({type:"document"},e))||this).nodes||(n.nodes=[]),n}return O(e,t),e.prototype.toResult=function(t){return void 0===t&&(t={}),new iD(new iN,this,t).stringify()},e}(nS);nx.registerLazyResult=function(t){iD=t},nx.registerProcessor=function(t){iN=t},nx.default=nx;var nC=function(){function t(t,e){if(void 0===e&&(e={}),this.type="warning",this.text=t,e.node&&e.node.source){var n=e.node.rangeBy(e);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(var r in e)this[r]=e[r]}return t.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},t}();nC.default=nC;var nE=function(){function t(t,e,n){this.processor=t,this.messages=[],this.root=e,this.opts=n,this.css=void 0,this.map=void 0}var e=t.prototype;return e.toString=function(){return this.css},e.warn=function(t,e){void 0===e&&(e={}),!e.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);var n=new nC(t,e);return this.messages.push(n),n},e.warnings=function(){return this.messages.filter(function(t){return"warning"===t.type})},E(t,[{key:"content",get:function(){return this.css}}]),t}();nE.default=nE;var nI=/[\t\n\f\r "#'()/;[\\\]{}]/g,nT=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,nO=/.[\r\n"'(/\\]/,nA=/[\da-f]/i,nR=function(t){function e(e){var n;return(n=t.call(this,e)||this).type="atrule",n}O(e,t);var n=e.prototype;return n.append=function(){for(var e,n=arguments.length,r=Array(n),i=0;i1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var o,s=L(i);!(o=s()).done;)o.value.raws.before=n.raws.before}return i},n.removeChild=function(e,n){var r=this.index(e);return!n&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),t.prototype.removeChild.call(this,e)},n.toResult=function(t){return void 0===t&&(t={}),new iP(new iL,this,t).stringify()},e}(nS);nM.registerLazyResult=function(t){iP=t},nM.registerProcessor=function(t){iL=t},nM.default=nM,nS.registerRoot(nM);var nD={comma:function(t){return nD.split(t,[","],!0)},space:function(t){return nD.split(t,[" ","\n"," "])},split:function(t,e,n){for(var r,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,p=L(t);!(r=p()).done;){var h=r.value;l?l=!1:"\\"===h?l=!0:c?h===u&&(c=!1):'"'===h||"'"===h?(c=!0,u=h):"("===h?a+=1:")"===h?a>0&&(a-=1):0===a&&e.includes(h)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=h}return(n||""!==o)&&i.push(o.trim()),i}};nD.default=nD;var nN=function(t){function e(e){var n;return(n=t.call(this,e)||this).type="rule",n.nodes||(n.nodes=[]),n}return O(e,t),E(e,[{key:"selectors",get:function(){return nD.comma(this.selector)},set:function(t){var e=this.selector?this.selector.match(/,\s*/):null,n=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(n)}}]),e}(nS);nN.default=nN,nS.registerRule(nN);var nP=function(t,e){void 0===e&&(e={});var n,r,i,o,s,a,c,u,l,p,h=t.css.valueOf(),d=e.ignoreErrors,f=h.length,g=0,m=[],y=[];function v(e){throw t.error("Unclosed "+e,g)}return{back:function(t){y.push(t)},endOfFile:function(){return 0===y.length&&g>=f},nextToken:function(t){if(y.length)return y.pop();if(!(g>=f)){var e=!!t&&t.ignoreUnclosed;switch(n=h.charCodeAt(g)){case 10:case 32:case 9:case 13:case 12:r=g;do r+=1,n=h.charCodeAt(r);while(32===n||10===n||9===n||13===n||12===n);p=["space",h.slice(g,r)],g=r-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:var _=String.fromCharCode(n);p=[_,_,g];break;case 40:if(u=m.length?m.pop()[1]:"",l=h.charCodeAt(g+1),"url"===u&&39!==l&&34!==l&&32!==l&&10!==l&&9!==l&&12!==l&&13!==l){r=g;do{if(a=!1,-1===(r=h.indexOf(")",r+1))){if(d||e){r=g;break}v("bracket")}for(c=r;92===h.charCodeAt(c-1);)c-=1,a=!a}while(a);p=["brackets",h.slice(g,r+1),g,r],g=r}else r=h.indexOf(")",g+1),o=h.slice(g,r+1),-1===r||nO.test(o)?p=["(","(",g]:(p=["brackets",o,g,r],g=r);break;case 39:case 34:i=39===n?"'":'"',r=g;do{if(a=!1,-1===(r=h.indexOf(i,r+1))){if(d||e){r=g+1;break}v("string")}for(c=r;92===h.charCodeAt(c-1);)c-=1,a=!a}while(a);p=["string",h.slice(g,r+1),g,r],g=r;break;case 64:nI.lastIndex=g+1,nI.test(h),r=0===nI.lastIndex?h.length-1:nI.lastIndex-2,p=["at-word",h.slice(g,r+1),g,r],g=r;break;case 92:for(r=g,s=!0;92===h.charCodeAt(r+1);)r+=1,s=!s;if(n=h.charCodeAt(r+1),s&&47!==n&&32!==n&&10!==n&&9!==n&&13!==n&&12!==n&&(r+=1,nA.test(h.charAt(r)))){for(;nA.test(h.charAt(r+1));)r+=1;32===h.charCodeAt(r+1)&&(r+=1)}p=["word",h.slice(g,r+1),g,r],g=r;break;default:47===n&&42===h.charCodeAt(g+1)?(0===(r=h.indexOf("*/",g+2)+1)&&(d||e?r=h.length:v("comment")),p=["comment",h.slice(g,r+1),g,r]):(nT.lastIndex=g+1,nT.test(h),r=0===nT.lastIndex?h.length-1:nT.lastIndex-2,p=["word",h.slice(g,r+1),g,r],m.push(p)),g=r}return g++,p}},position:function(){return g}}},nL={empty:!0,space:!0},nF=function(){function t(t){this.input=t,this.root=new nM,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}var e=t.prototype;return e.atrule=function(t){var e,n,r,i=new nR;i.name=t[1].slice(1),""===i.name&&this.unnamedAtrule(i,t),this.init(i,t[2]);for(var o=!1,s=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(e=(t=this.tokenizer.nextToken())[0])||"["===e?c.push("("===e?")":"]"):"{"===e&&c.length>0?c.push("}"):e===c[c.length-1]&&c.pop(),0===c.length){if(";"===e){i.source.end=this.getPosition(t[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===e){s=!0;break}if("}"===e){if(a.length>0){for(r=a.length-1,n=a[r];n&&"space"===n[0];)n=a[--r];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(t);break}a.push(t)}else a.push(t);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(t=a[a.length-1],i.source.end=this.getPosition(t[3]||t[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},e.checkMissedSemicolon=function(t){var e,n=this.colon(t);if(!1!==n){for(var r=0,i=n-1;i>=0&&("space"===(e=t[i])[0]||2!==(r+=1));i--);throw this.input.error("Missed semicolon","word"===e[0]?e[3]+1:e[2])}},e.colon=function(t){for(var e,n,r,i=0,o=L(t.entries());!(r=o()).done;){var s=r.value,a=s[0],c=s[1];if("("===(e=c[0])&&(i+=1),")"===e&&(i-=1),0===i&&":"===e){if(n){if("word"===n[0]&&"progid"===n[1])continue;return a}this.doubleColon(c)}n=c}return!1},e.comment=function(t){var e=new nb;this.init(e,t[2]),e.source.end=this.getPosition(t[3]||t[2]),e.source.end.offset++;var n=t[1].slice(2,-2);if(/^\s*$/.test(n))e.text="",e.raws.left=n,e.raws.right="";else{var r=n.match(/^(\s*)([^]*\S)(\s*)$/);e.text=r[2],e.raws.left=r[1],e.raws.right=r[3]}},e.createTokenizer=function(){this.tokenizer=nP(this.input)},e.decl=function(t,e){var n,r,i=new e1;this.init(i,t[0][2]);var o=t[t.length-1];for(";"===o[0]&&(this.semicolon=!0,t.pop()),i.source.end=this.getPosition(o[3]||o[2]||function(t){for(var e=t.length-1;e>=0;e--){var n=t[e],r=n[3]||n[2];if(r)return r}}(t)),i.source.end.offset++;"word"!==t[0][0];)1===t.length&&this.unknownWord(t),i.raws.before+=t.shift()[1];for(i.source.start=this.getPosition(t[0][2]),i.prop="";t.length;){var s=t[0][0];if(":"===s||"space"===s||"comment"===s)break;i.prop+=t.shift()[1]}for(i.raws.between="";t.length;){if(":"===(n=t.shift())[0]){i.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),i.raws.between+=n[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var a=[];t.length&&("space"===(r=t[0][0])||"comment"===r);)a.push(t.shift());this.precheckMissedSemicolon(t);for(var c=t.length-1;c>=0;c--){if("!important"===(n=t[c])[1].toLowerCase()){i.important=!0;var u=this.stringFrom(t,c);" !important"!==(u=this.spacesFromEnd(t)+u)&&(i.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=t.slice(0),p="",h=c;h>0;h--){var d=l[h][0];if(0===p.trim().indexOf("!")&&"space"!==d)break;p=l.pop()[1]+p}0===p.trim().indexOf("!")&&(i.important=!0,i.raws.important=p,t=l)}if("space"!==n[0]&&"comment"!==n[0])break}t.some(function(t){return"space"!==t[0]&&"comment"!==t[0]})&&(i.raws.between+=a.map(function(t){return t[1]}).join(""),a=[]),this.raw(i,"value",a.concat(t),e),i.value.includes(":")&&!e&&this.checkMissedSemicolon(t)},e.doubleColon=function(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})},e.emptyRule=function(t){var e=new nN;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e},e.end=function(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)},e.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},e.freeSemicolon=function(t){if(this.spaces+=t[1],this.current.nodes){var e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}},e.getPosition=function(t){var e=this.input.fromOffset(t);return{column:e.col,line:e.line,offset:t}},e.init=function(t,e){this.current.push(t),t.source={input:this.input,start:this.getPosition(e)},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)},e.other=function(t){for(var e=!1,n=null,r=!1,i=null,o=[],s=t[1].startsWith("--"),a=[],c=t;c;){if(n=c[0],a.push(c),"("===n||"["===n)i||(i=c),o.push("("===n?")":"]");else if(s&&r&&"{"===n)i||(i=c),o.push("}");else if(0===o.length){if(";"===n){if(r){this.decl(a,s);return}break}if("{"===n){this.rule(a);return}if("}"===n){this.tokenizer.back(a.pop()),e=!0;break}":"===n&&(r=!0)}else n===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),o.length>0&&this.unclosedBracket(i),e&&r){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},e.parse=function(){for(var t;!this.tokenizer.endOfFile();)switch((t=this.tokenizer.nextToken())[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()},e.precheckMissedSemicolon=function(){},e.raw=function(t,e,n,r){for(var i,o,s,a,c=n.length,u="",l=!0,p=0;p0},e.runAsync=function(){var t=this;return x(function(){var e,n,r,i,o,s,a,c,u,l,p,h;return F(this,function(d){switch(d.label){case 0:t.plugin=0,e=0,d.label=1;case 1:if(!(e0))return[3,13];if(!nG(a=t.visitTick(s)))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,a];case 10:return d.sent(),[3,12];case 11:throw c=d.sent(),u=s[s.length-1].node,t.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!t.listeners.OnceExit)return[3,18];l=function(){var e,n,r,i;return F(this,function(s){switch(s.label){case 0:n=(e=h.value)[0],r=e[1],t.result.lastPlugin=n,s.label=1;case 1:if(s.trys.push([1,6,,7]),"document"!==o.type)return[3,3];return[4,Promise.all(o.nodes.map(function(e){return r(e,t.helpers)}))];case 2:return s.sent(),[3,5];case 3:return[4,r(o,t.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw i=s.sent(),t.handleError(i);case 7:return[2]}})},p=L(t.listeners.OnceExit),d.label=15;case 15:if((h=p()).done)return[3,18];return[5,j(l())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return t.processed=!0,[2,t.stringify()]}})})()},e.runOnRoot=function(t){var e=this;this.result.lastPlugin=t;try{if((void 0===t?"undefined":D(t))==="object"&&t.Once){if("document"===this.result.root.type){var n=this.result.root.nodes.map(function(n){return t.Once(n,e.helpers)});if(nG(n[0]))return Promise.all(n);return n}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(this.result.root,this.result)}catch(t){throw this.handleError(t)}},e.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var t=this.result.opts,e=eZ;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);var n=new n_(e,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result},e.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var t,e=L(this.plugins);!(t=e()).done;){var n=t.value;if(nG(this.runOnRoot(n)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var r=this.result.root;!r[nU];)r[nU]=!0,this.walkSync(r);if(this.listeners.OnceExit){if("document"===r.type)for(var i,o=L(r.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,r)}}return this.result},e.then=function(t,e){return this.async().then(t,e)},e.toString=function(){return this.css},e.visitSync=function(t,e){for(var n,r=L(t);!(n=r()).done;){var i=n.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if(nG(a))throw this.getAsyncError()}},e.visitTick=function(t){var e=t[t.length-1],n=e.node,r=e.visitors;if("root"!==n.type&&"document"!==n.type&&!n.parent){t.pop();return}if(r.length>0&&e.visitorIndexe?(r&&(clearTimeout(r),r=null),i=c,t.apply(l,s)):r||!1===n.trailing||(r=setTimeout(function(){i=!1===n.leading?0:Date.now(),r=null,t.apply(l,s)},u))}}function ro(t,e,n,r,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(t,e);return i.Object.defineProperty(t,e,r?n:{set:function(t){var e=this;setTimeout(function(){n.set.call(e,t)},0),o&&o.set&&o.set.call(this,t)}}),function(){return ro(t,e,o||{},!0)}}function rs(t,e,n){try{if(!(e in t))return function(){};var r=t[e],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=i,function(){t[e]=r}}catch(t){return function(){}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(rr=new Proxy(rr,{get:function(t,e,n){return"map"===e&&console.error(rn),Reflect.get(t,e,n)}}));var ra=Date.now;function rc(t){var e,n,r,i,o=t.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==t.pageXOffset?t.pageXOffset:o.documentElement.scrollLeft||(null==o?void 0:o.body)&&(null==(e=rt.parentElement(o.body))?void 0:e.scrollLeft)||(null==(n=null==o?void 0:o.body)?void 0:n.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==t.pageYOffset?t.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(r=rt.parentElement(o.body))?void 0:r.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function ru(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function rl(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function rp(t){return t?t.nodeType===t.ELEMENT_NODE?t:rt.parentElement(t):null}function rh(t,e,n,r){if(!t)return!1;var i=rp(t);if(!i)return!1;try{if("string"==typeof e){if(i.classList.contains(e)||r&&null!==i.closest("."+e))return!0}else if(tS(i,e,r))return!0}catch(t){}return!!(n&&(i.matches(n)||r&&null!==i.closest(n)))}function rd(t,e,n){return"TITLE"===t.tagName&&!!n.headTitleMutations||-2===e.getId(t)}function rf(t){return!!t.changedTouches}function rg(t,e){return!!("IFRAME"===t.nodeName&&e.getMeta(t))}function rm(t,e){return!!("LINK"===t.nodeName&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&"stylesheet"===t.getAttribute("rel")&&e.getMeta(t))}function ry(t){return!!t&&(A(t,n1)&&"shadowRoot"in t?!!t.shadowRoot:!!rt.shadowRoot(t))}/[1-9][0-9]{12}/.test(Date.now().toString())||(ra=function(){return new Date().getTime()});var rv=function(){function t(){B(this,"id",1),B(this,"styleIDMap",new WeakMap),B(this,"idStyleMap",new Map)}var e=t.prototype;return e.getId=function(t){var e;return null!=(e=this.styleIDMap.get(t))?e:-1},e.has=function(t){return this.styleIDMap.has(t)},e.add=function(t,e){var n;return this.has(t)?this.getId(t):(n=void 0===e?this.id++:e,this.styleIDMap.set(t,n),this.idStyleMap.set(n,t),n)},e.getStyle=function(t){return this.idStyleMap.get(t)||null},e.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},e.generateId=function(){return this.id++},t}();function r_(t){var e,n=null;return"getRootNode"in t&&(null==(e=rt.getRootNode(t))?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&rt.host(rt.getRootNode(t))&&(n=rt.host(rt.getRootNode(t))),n}function rb(t){var e=t.ownerDocument;return!!e&&(rt.contains(e,t)||function(t){var e=t.ownerDocument;if(!e)return!1;var n=function(t){for(var e,n=t;e=r_(n);)n=e;return n}(t);return rt.contains(e,n)}(t))}var rw=((ic=rw||{})[ic.DomContentLoaded=0]="DomContentLoaded",ic[ic.Load=1]="Load",ic[ic.FullSnapshot=2]="FullSnapshot",ic[ic.IncrementalSnapshot=3]="IncrementalSnapshot",ic[ic.Meta=4]="Meta",ic[ic.Custom=5]="Custom",ic[ic.Plugin=6]="Plugin",ic),rk=((iu=rk||{})[iu.Mutation=0]="Mutation",iu[iu.MouseMove=1]="MouseMove",iu[iu.MouseInteraction=2]="MouseInteraction",iu[iu.Scroll=3]="Scroll",iu[iu.ViewportResize=4]="ViewportResize",iu[iu.Input=5]="Input",iu[iu.TouchMove=6]="TouchMove",iu[iu.MediaInteraction=7]="MediaInteraction",iu[iu.StyleSheetRule=8]="StyleSheetRule",iu[iu.CanvasMutation=9]="CanvasMutation",iu[iu.Font=10]="Font",iu[iu.Log=11]="Log",iu[iu.Drag=12]="Drag",iu[iu.StyleDeclaration=13]="StyleDeclaration",iu[iu.Selection=14]="Selection",iu[iu.AdoptedStyleSheet=15]="AdoptedStyleSheet",iu[iu.CustomElement=16]="CustomElement",iu),rS=((il=rS||{})[il.MouseUp=0]="MouseUp",il[il.MouseDown=1]="MouseDown",il[il.Click=2]="Click",il[il.ContextMenu=3]="ContextMenu",il[il.DblClick=4]="DblClick",il[il.Focus=5]="Focus",il[il.Blur=6]="Blur",il[il.TouchStart=7]="TouchStart",il[il.TouchMove_Departed=8]="TouchMove_Departed",il[il.TouchEnd=9]="TouchEnd",il[il.TouchCancel=10]="TouchCancel",il),rx=((ip=rx||{})[ip.Mouse=0]="Mouse",ip[ip.Pen=1]="Pen",ip[ip.Touch=2]="Touch",ip),rC=((ih=rC||{})[ih["2D"]=0]="2D",ih[ih.WebGL=1]="WebGL",ih[ih.WebGL2=2]="WebGL2",ih),rE=((id=rE||{})[id.Play=0]="Play",id[id.Pause=1]="Pause",id[id.Seeked=2]="Seeked",id[id.VolumeChange=3]="VolumeChange",id[id.RateChange=4]="RateChange",id),rI=((ig=rI||{})[ig.Document=0]="Document",ig[ig.DocumentType=1]="DocumentType",ig[ig.Element=2]="Element",ig[ig.Text=3]="Text",ig[ig.CDATA=4]="CDATA",ig[ig.Comment=5]="Comment",ig),rT=function(){function t(){B(this,"length",0),B(this,"head",null),B(this,"tail",null)}var e=t.prototype;return e.get=function(t){if(t>=this.length)throw Error("Position outside of list range");for(var e=this.head,n=0;nrU.indexOf(l)||rh(e,i,o,!0)||e.classList.contains(s)||a&&e.matches(a))){var h=e.value,f=!1,g=to(e)||"";"radio"===g||"checkbox"===g?f=e.checked:(c[l.toLowerCase()]||c[g])&&(h=tn({element:e,maskInputOptions:c,tagName:l,type:g,value:h,maskInputFn:u})),d(e,p?{text:h,isChecked:f,userTriggered:r}:{text:h,isChecked:f});var m=e.name;"radio"===g&&m&&f&&n.querySelectorAll('input[type="radio"][name="'+m+'"]').forEach(function(t){if(t!==e){var n=t.value;d(t,p?{text:n,isChecked:!f,userTriggered:!1}:{text:n,isChecked:!f})}})}}function d(t,n){var i=rB.get(t);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){rB.set(t,n);var o=r.getId(t);rN(e)(I({},n,{id:o}))}}var f=("last"===l.input?["change"]:["input","change"]).map(function(t){return re(t,rN(h),n)}),g=n.defaultView;if(!g)return function(){f.forEach(function(t){return t()})};var m=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),y=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];return m&&m.set&&f.push.apply(f,[].concat(y.map(function(t){return ro(t[0],t[1],{set:function(){rN(h)({target:this,isTrusted:!1})}},!1,g)}))),rN(function(){f.forEach(function(t){return t()})})}(t),c=(N=t.mediaInteractionCb,P=t.blockClass,F=t.blockSelector,j=t.mirror,U=t.sampling,B=t.doc,q=[re("play",($=rN(function(t){return ri(rN(function(e){var n=rL(e);if(!(!n||rh(n,P,F,!0))){var r=n.currentTime,i=n.volume,o=n.muted,s=n.playbackRate,a=n.loop;N({type:t,id:j.getId(n),currentTime:r,volume:i,muted:o,playbackRate:s,loop:a})}}),U.media||500)}))(rE.Play),B),re("pause",$(rE.Pause),B),re("seeked",$(rE.Seeked),B),re("volumechange",$(rE.VolumeChange),B),re("ratechange",$(rE.RateChange),B)],rN(function(){q.forEach(function(t){return t()})})),u=function(){},l=function(){},p=function(){},h=function(){};t.recordDOM&&(u=function(t,e){var n,r,i=t.styleSheetRuleCb,o=t.mirror,s=t.stylesheetManager,a=e.win;if(!a.CSSStyleSheet||!a.CSSStyleSheet.prototype)return function(){};var c=a.CSSStyleSheet.prototype.insertRule;a.CSSStyleSheet.prototype.insertRule=new Proxy(c,{apply:rN(function(t,e,n){var r=n[0],a=n[1],c=rq(e,o,s.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&i({id:u,styleId:l,adds:[{rule:r,index:a}]}),t.apply(e,n)})}),a.CSSStyleSheet.prototype.addRule=function(t,e,n){return void 0===n&&(n=this.cssRules.length),a.CSSStyleSheet.prototype.insertRule.apply(this,[t+" { "+e+" }",n])};var u=a.CSSStyleSheet.prototype.deleteRule;a.CSSStyleSheet.prototype.deleteRule=new Proxy(u,{apply:rN(function(t,e,n){var r=n[0],a=rq(e,o,s.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,removes:[{index:r}]}),t.apply(e,n)})}),a.CSSStyleSheet.prototype.removeRule=function(t){return a.CSSStyleSheet.prototype.deleteRule.apply(this,[t])},a.CSSStyleSheet.prototype.replace&&(n=a.CSSStyleSheet.prototype.replace,a.CSSStyleSheet.prototype.replace=new Proxy(n,{apply:rN(function(t,e,n){var r=n[0],a=rq(e,o,s.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,replace:r}),t.apply(e,n)})})),a.CSSStyleSheet.prototype.replaceSync&&(r=a.CSSStyleSheet.prototype.replaceSync,a.CSSStyleSheet.prototype.replaceSync=new Proxy(r,{apply:rN(function(t,e,n){var r=n[0],a=rq(e,o,s.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,replaceSync:r}),t.apply(e,n)})}));var l={};rJ("CSSGroupingRule")?l.CSSGroupingRule=a.CSSGroupingRule:(rJ("CSSMediaRule")&&(l.CSSMediaRule=a.CSSMediaRule),rJ("CSSConditionRule")&&(l.CSSConditionRule=a.CSSConditionRule),rJ("CSSSupportsRule")&&(l.CSSSupportsRule=a.CSSSupportsRule));var p={};return Object.entries(l).forEach(function(t){var e=t[0],n=t[1];p[e]={insertRule:n.prototype.insertRule,deleteRule:n.prototype.deleteRule},n.prototype.insertRule=new Proxy(p[e].insertRule,{apply:rN(function(t,e,n){var r=n[0],a=n[1],c=rq(e.parentStyleSheet,o,s.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&i({id:u,styleId:l,adds:[{rule:r,index:[].concat(r$(e),[a||0])}]}),t.apply(e,n)})}),n.prototype.deleteRule=new Proxy(p[e].deleteRule,{apply:rN(function(t,e,n){var r=n[0],a=rq(e.parentStyleSheet,o,s.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,removes:[{index:[].concat(r$(e),[r])}]}),t.apply(e,n)})})}),rN(function(){a.CSSStyleSheet.prototype.insertRule=c,a.CSSStyleSheet.prototype.deleteRule=u,n&&(a.CSSStyleSheet.prototype.replace=n),r&&(a.CSSStyleSheet.prototype.replaceSync=r),Object.entries(l).forEach(function(t){var e=t[0],n=t[1];n.prototype.insertRule=p[e].insertRule,n.prototype.deleteRule=p[e].deleteRule})})}(t,{win:n}),l=rz(t,t.doc),z={win:n},G=t.styleDeclarationCb,W=t.mirror,J=t.ignoreCSSAttributes,H=t.stylesheetManager,Y=(X=z.win).CSSStyleDeclaration.prototype.setProperty,X.CSSStyleDeclaration.prototype.setProperty=new Proxy(Y,{apply:rN(function(t,e,n){var r,i=n[0],o=n[1],s=n[2];if(J.has(i))return Y.apply(e,[i,o,s]);var a=rq(null==(r=e.parentRule)?void 0:r.parentStyleSheet,W,H.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&G({id:c,styleId:u,set:{property:i,value:o,priority:s},index:r$(e.parentRule)}),t.apply(e,n)})}),V=X.CSSStyleDeclaration.prototype.removeProperty,X.CSSStyleDeclaration.prototype.removeProperty=new Proxy(V,{apply:rN(function(t,e,n){var r,i=n[0];if(J.has(i))return V.apply(e,[i]);var o=rq(null==(r=e.parentRule)?void 0:r.parentStyleSheet,W,H.styleMirror),s=o.id,a=o.styleId;return(s&&-1!==s||a&&-1!==a)&&G({id:s,styleId:a,remove:{property:i},index:r$(e.parentRule)}),t.apply(e,n)})}),p=rN(function(){X.CSSStyleDeclaration.prototype.setProperty=Y,X.CSSStyleDeclaration.prototype.removeProperty=V}),t.collectFonts&&(h=function(t){var e=t.fontCb,n=t.doc,r=n.defaultView;if(!r)return function(){};var i=[],o=new WeakMap,s=r.FontFace;r.FontFace=function(t,e,n){var r=new s(t,e,n);return o.set(r,{family:t,buffer:"string"!=typeof e,descriptors:n,fontSource:"string"==typeof e?e:JSON.stringify(Array.from(new Uint8Array(e)))}),r};var a=rs(n.fonts,"add",function(t){return function(n){return setTimeout(rN(function(){var t=o.get(n);t&&(e(t),o.delete(n))}),0),t.apply(this,[n])}});return i.push(function(){r.FontFace=s}),i.push(a),rN(function(){i.forEach(function(t){return t()})})}(t)));for(var d,f,g,m,y,v,_,b,w,k,S,x,C,E,T,O,R,M,D,N,P,F,j,U,B,$,q,z,G,W,J,H,X,Y,V,Z,K,Q,tt,te,ti,ts,ta,tc,tu,tl,tp,th=(Z=t.doc,K=t.mirror,Q=t.blockClass,tt=t.blockSelector,te=t.selectionCb,ti=!0,(ts=rN(function(){var t=Z.getSelection();if(t&&(!ti||null==t||!t.isCollapsed)){ti=t.isCollapsed||!1;for(var e=[],n=t.rangeCount||0,r=0;r0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))},e.handleMessage=function(t){if("rrweb"===t.data.type&&t.origin===t.data.origin&&t.source){var e=this.crossOriginIframeMap.get(t.source);if(e){var n=this.transformCrossOriginEvent(e,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}}},e.transformCrossOriginEvent=function(t,e){var n,r=this;switch(e.type){case rw.FullSnapshot:this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(e.data.node,t);var i=e.data.node.id;return this.crossOriginIframeRootIdMap.set(t,i),this.patchRootIdOnNode(e.data.node,i),{timestamp:e.timestamp,type:rw.IncrementalSnapshot,data:{source:rk.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case rw.Meta:case rw.Load:case rw.DomContentLoaded:break;case rw.Plugin:return e;case rw.Custom:return this.replaceIds(e.data.payload,t,["id","parentId","previousId","nextId"]),e;case rw.IncrementalSnapshot:switch(e.data.source){case rk.Mutation:return e.data.adds.forEach(function(e){r.replaceIds(e,t,["parentId","nextId","previousId"]),r.replaceIdOnNode(e.node,t);var n=r.crossOriginIframeRootIdMap.get(t);n&&r.patchRootIdOnNode(e.node,n)}),e.data.removes.forEach(function(e){r.replaceIds(e,t,["parentId","id"])}),e.data.attributes.forEach(function(e){r.replaceIds(e,t,["id"])}),e.data.texts.forEach(function(e){r.replaceIds(e,t,["id"])}),e;case rk.Drag:case rk.TouchMove:case rk.MouseMove:return e.data.positions.forEach(function(e){r.replaceIds(e,t,["id"])}),e;case rk.ViewportResize:return!1;case rk.MediaInteraction:case rk.MouseInteraction:case rk.Scroll:case rk.CanvasMutation:case rk.Input:return this.replaceIds(e.data,t,["id"]),e;case rk.StyleSheetRule:case rk.StyleDeclaration:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleId"]),e;case rk.Font:return e;case rk.Selection:return e.data.ranges.forEach(function(e){r.replaceIds(e,t,["start","end"])}),e;case rk.AdoptedStyleSheet:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleIds"]),null==(n=e.data.styles)||n.forEach(function(e){r.replaceStyleIds(e,t,["styleId"])}),e}}return!1},e.replace=function(t,e,n,r){for(var i,o=L(r);!(i=o()).done;){var s=i.value;(Array.isArray(e[s])||"number"==typeof e[s])&&(Array.isArray(e[s])?e[s]=t.getIds(n,e[s]):e[s]=t.getId(n,e[s]))}return e},e.replaceIds=function(t,e,n){return this.replace(this.crossOriginIframeMirror,t,e,n)},e.replaceStyleIds=function(t,e,n){return this.replace(this.crossOriginIframeStyleMirror,t,e,n)},e.replaceIdOnNode=function(t,e){var n=this;this.replaceIds(t,e,["id","rootId"]),("childNodes"in t)&&t.childNodes.forEach(function(t){n.replaceIdOnNode(t,e)})},e.patchRootIdOnNode=function(t,e){var n=this;t.type===rI.Document||t.rootId||(t.rootId=e),("childNodes"in t)&&t.childNodes.forEach(function(t){n.patchRootIdOnNode(t,e)})},t}(),rY=function(){function t(t){B(this,"shadowDoms",new WeakSet),B(this,"mutationCb"),B(this,"scrollCb"),B(this,"bypassOptions"),B(this,"mirror"),B(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}var e=t.prototype;return e.init=function(){this.reset(),this.patchAttachShadow(Element,document)},e.addShadowRoot=function(t,e){var n=this;if(K(t)&&!this.shadowDoms.has(t)){this.shadowDoms.add(t);var r=rF(I({},this.bypassOptions,{doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(function(){return r.disconnect()}),this.restoreHandlers.push(rj(I({},this.bypassOptions,{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))),setTimeout(function(){t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&n.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,n.mirror.getId(rt.host(t))),n.restoreHandlers.push(rz({mirror:n.mirror,stylesheetManager:n.bypassOptions.stylesheetManager},t))},0)}},e.observeAttachShadow=function(t){t.contentWindow&&t.contentDocument&&this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)},e.patchAttachShadow=function(t,e){var n=this;this.restoreHandlers.push(rs(t.prototype,"attachShadow",function(t){return function(r){var i=t.call(this,r),o=rt.shadowRoot(this);return o&&rb(this)&&n.addShadowRoot(o,e),i}}))},e.reset=function(){this.restoreHandlers.forEach(function(t){try{t()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},t}(),rV="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rZ="undefined"==typeof Uint8Array?[]:new Uint8Array(256),rK=0;rK>2]+rV[(3&n[e])<<4|n[e+1]>>4]+rV[(15&n[e+1])<<2|n[e+2]>>6]+rV[63&n[e+2]];return r%3==2?i=i.substring(0,i.length-1)+"=":r%3==1&&(i=i.substring(0,i.length-2)+"=="),i},r0=new Map,r1=function(t,e,n){if(t&&(r3(t,e)||(void 0===t?"undefined":D(t))==="object")){var r,i=t.constructor.name,o=((r=r0.get(n))||(r=new Map,r0.set(n,r)),r.has(i)||r.set(i,[]),r.get(i)),s=o.indexOf(t);return -1===s&&(s=o.length,o.push(t)),s}},r2=function(t,e,n){return t.map(function(t){return function t(e,n,r){if(A(e,Array))return e.map(function(e){return t(e,n,r)});if(null===e);else if(A(e,Float32Array)||A(e,Float64Array)||A(e,Int32Array)||A(e,Uint32Array)||A(e,Uint8Array)||A(e,Uint16Array)||A(e,Int16Array)||A(e,Int8Array)||A(e,Uint8ClampedArray))return{rr_type:e.constructor.name,args:[Object.values(e)]};else if(A(e,ArrayBuffer))return{rr_type:e.constructor.name,base64:rQ(e)};else if(A(e,DataView))return{rr_type:e.constructor.name,args:[t(e.buffer,n,r),e.byteOffset,e.byteLength]};else if(A(e,HTMLImageElement))return{rr_type:e.constructor.name,src:e.src};else if(A(e,HTMLCanvasElement))return{rr_type:"HTMLImageElement",src:e.toDataURL()};else if(A(e,ImageData))return{rr_type:e.constructor.name,args:[t(e.data,n,r),e.width,e.height]};else if(r3(e,n)||(void 0===e?"undefined":D(e))==="object")return{rr_type:e.constructor.name,index:r1(e,n,r)};return e}(t,e,n)})},r3=function(t,e){return!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(t){return"function"==typeof e[t]}).find(function(n){return A(t,e[n])})};function r5(t,e,n,r){var i=[];try{var o=rs(t.HTMLCanvasElement.prototype,"getContext",function(t){return function(i){for(var o=arguments.length,s=Array(o>1?o-1:0),a=1;a0&&(i.styles=o),this.adoptedStyleSheetCb(i)}},e.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},e.trackStylesheetInLinkElement=function(t){},t}(),ie=function(){function t(){B(this,"nodeMap",new WeakMap),B(this,"active",!1)}var e=t.prototype;return e.inOtherBuffer=function(t,e){var n=this.nodeMap.get(t);return n&&Array.from(n).some(function(t){return t!==e})},e.add=function(t,e){var n=this;this.active||(this.active=!0,requestAnimationFrame(function(){n.nodeMap=new WeakMap,n.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(e))},e.destroy=function(){},t}(),ir=!1;try{if(2!==Array.from([1],function(t){return 2*t})[0]){var ii=document.createElement("iframe");document.body.appendChild(ii),Array.from=(null==(iv=ii.contentWindow)?void 0:iv.Array.from)||Array.from,document.body.removeChild(ii)}}catch(t){console.debug("Unable to override Array.from",t)}var io=new te;function is(t){void 0===t&&(t={});var e=t.emit,n=t.checkoutEveryNms,r=t.checkoutEveryNth,i=t.blockClass,o=void 0===i?"rr-block":i,s=t.blockSelector,a=void 0===s?null:s,c=t.ignoreClass,u=void 0===c?"rr-ignore":c,l=t.ignoreSelector,p=void 0===l?null:l,h=t.maskTextClass,d=void 0===h?"rr-mask":h,f=t.maskTextSelector,g=void 0===f?null:f,m=t.inlineStylesheet,y=void 0===m||m,v=t.maskAllInputs,_=t.maskInputOptions,b=t.slimDOMOptions,w=t.maskInputFn,k=t.maskTextFn,S=t.hooks,x=t.packFn,C=t.sampling,E=void 0===C?{}:C,T=t.dataURLOptions,O=void 0===T?{}:T,A=t.mousemoveWait,R=t.recordDOM,M=void 0===R||R,D=t.recordCanvas,N=void 0!==D&&D,P=t.recordCrossOriginIframes,F=void 0!==P&&P,j=t.recordAfter,U=void 0===j?"DOMContentLoaded"===t.recordAfter?t.recordAfter:"load":j,B=t.userTriggeredOnInput,$=void 0!==B&&B,q=t.collectFonts,z=void 0!==q&&q,G=t.inlineImages,W=void 0!==G&&G,J=t.plugins,H=t.keepIframeSrcFn,X=void 0===H?function(){return!1}:H,Y=t.ignoreCSSAttributes,V=void 0===Y?new Set([]):Y;iF=t.errorHandler;var Z=!F||window.parent===window,K=!1;if(!Z)try{window.parent.document&&(K=!1)}catch(t){K=!0}if(Z&&!e)throw Error("emit function is required");if(!Z&&!K)return function(){};void 0!==A&&void 0===E.mousemove&&(E.mousemove=A),io.reset();var Q=!0===v?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==_?_:{password:!0},tt=!0===b||"all"===b?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===b,headMetaDescKeywords:"all"===b,headTitleMutations:"all"===b}:b||{};void 0===ti&&(ti=window),"NodeList"in ti&&!ti.NodeList.prototype.forEach&&(ti.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in ti&&!ti.DOMTokenList.prototype.forEach&&(ti.DOMTokenList.prototype.forEach=Array.prototype.forEach);var tn=0,tr=function(t){for(var e,n=L(J||[]);!(e=n()).done;){var r=e.value;r.eventProcessor&&(t=r.eventProcessor(t))}return x&&!K&&(t=x(t)),t};ij=function(t,i){var o;if(t.timestamp=ra(),(null==(o=rP[0])?void 0:o.isFrozen())&&t.type!==rw.FullSnapshot&&!(t.type===rw.IncrementalSnapshot&&t.data.source===rk.Mutation)&&rP.forEach(function(t){return t.unfreeze()}),Z)null==e||e(tr(t),i);else if(K){var s={type:"rrweb",event:tr(t),origin:window.location.origin,isCheckout:i};window.parent.postMessage(s,"*")}if(t.type===rw.FullSnapshot)to=t,tn=0;else if(t.type===rw.IncrementalSnapshot){if(t.data.source===rk.Mutation&&t.data.isAttachIframe)return;tn++;var a=r&&tn>=r,c=n&&t.timestamp-to.timestamp>n;(a||c)&&iU(!0)}};for(var ti,to,ts,ta=function(t){ij({type:rw.IncrementalSnapshot,data:I({source:rk.Mutation},t)})},tc=function(t){return ij({type:rw.IncrementalSnapshot,data:I({source:rk.Scroll},t)})},tu=function(t){return ij({type:rw.IncrementalSnapshot,data:I({source:rk.CanvasMutation},t)})},tl=new it({mutationCb:ta,adoptedStyleSheetCb:function(t){return ij({type:rw.IncrementalSnapshot,data:I({source:rk.AdoptedStyleSheet},t)})}}),tp=new rX({mirror:io,mutationCb:ta,stylesheetManager:tl,recordCrossOriginIframes:F,wrappedEmit:ij}),th=L(J||[]);!(ts=th()).done;){var td=ts.value;td.getMirror&&td.getMirror({nodeMirror:io,crossOriginIframeMirror:tp.crossOriginIframeMirror,crossOriginIframeStyleMirror:tp.crossOriginIframeStyleMirror})}var tf=new ie;iB=new r7({recordCanvas:N,mutationCb:tu,win:window,blockClass:o,blockSelector:a,mirror:io,sampling:E.canvas,dataURLOptions:O});var tg=new rY({mutationCb:ta,scrollCb:tc,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:d,maskTextSelector:g,inlineStylesheet:y,maskInputOptions:Q,dataURLOptions:O,maskTextFn:k,maskInputFn:w,recordCanvas:N,inlineImages:W,sampling:E,slimDOMOptions:tt,iframeManager:tp,stylesheetManager:tl,canvasManager:iB,keepIframeSrcFn:X,processedNodeManager:tf},mirror:io});iU=function(t){if(void 0===t&&(t=!1),M){ij({type:rw.Meta,data:{href:window.location.href,width:rl(),height:ru()}},t),tl.reset(),tg.init(),rP.forEach(function(t){return t.lock()});var e,n,r,i,s,c,u,l,p,h,f,m,v,_,b,S,x,C,E,I,T,A,R,D=(e=document,i=void 0===(r=(n={mirror:io,blockClass:o,blockSelector:a,maskTextClass:d,maskTextSelector:g,inlineStylesheet:y,maskAllInputs:Q,maskTextFn:k,maskInputFn:w,slimDOM:tt,dataURLOptions:O,recordCanvas:N,inlineImages:W,onSerialize:function(t){rg(t,io)&&tp.addIframe(t),rm(t,io)&&tl.trackLinkElement(t),ry(t)&&tg.addShadowRoot(rt.shadowRoot(t),document)},onIframeLoad:function(t,e){tp.attachIframe(t,e),tg.observeAttachShadow(t)},onStylesheetLoad:function(t,e){tl.attachLinkElement(t,e)},keepIframeSrcFn:X}).mirror)?new te:r,s=n.blockClass,c=n.blockSelector,u=n.maskTextClass,l=n.maskTextSelector,p=n.inlineStylesheet,h=n.inlineImages,f=n.recordCanvas,v=void 0!==(m=n.maskAllInputs)&&m,_=n.maskTextFn,b=n.maskInputFn,x=void 0!==(S=n.slimDOM)&&S,C=n.dataURLOptions,E=n.preserveWhiteSpace,I=n.onSerialize,T=n.onIframeLoad,A=n.iframeLoadTimeout,tE(e,{doc:e,mirror:i,blockClass:void 0===s?"rr-block":s,blockSelector:void 0===c?null:c,maskTextClass:void 0===u?"rr-mask":u,maskTextSelector:void 0===l?null:l,skipChild:!1,inlineStylesheet:void 0===p||p,maskInputOptions:!0===v?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===v?{password:!0}:v,maskTextFn:_,maskInputFn:b,slimDOMOptions:!0===x||"all"===x?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===x,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===x?{}:x,dataURLOptions:C,inlineImages:void 0!==h&&h,recordCanvas:void 0!==f&&f,preserveWhiteSpace:E,onSerialize:I,onIframeLoad:T,iframeLoadTimeout:A,onStylesheetLoad:n.onStylesheetLoad,stylesheetLoadTimeout:n.stylesheetLoadTimeout,keepIframeSrcFn:void 0===(R=n.keepIframeSrcFn)?function(){return!1}:R,newlyAddedElement:!1}));if(!D)return console.warn("Failed to snapshot the document");ij({type:rw.FullSnapshot,data:{node:D,initialOffset:rc(window)}},t),rP.forEach(function(t){return t.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&tl.adoptStyleSheets(document.adoptedStyleSheets,io.getId(document))}};try{var tm=[],ty=function(t){var e;return rN(rG)({mutationCb:ta,mousemoveCb:function(t,e){return ij({type:rw.IncrementalSnapshot,data:{source:e,positions:t}})},mouseInteractionCb:function(t){return ij({type:rw.IncrementalSnapshot,data:I({source:rk.MouseInteraction},t)})},scrollCb:tc,viewportResizeCb:function(t){return ij({type:rw.IncrementalSnapshot,data:I({source:rk.ViewportResize},t)})},inputCb:function(t){return ij({type:rw.IncrementalSnapshot,data:I({source:rk.Input},t)})},mediaInteractionCb:function(t){return ij({type:rw.IncrementalSnapshot,data:I({source:rk.MediaInteraction},t)})},styleSheetRuleCb:function(t){return ij({type:rw.IncrementalSnapshot,data:I({source:rk.StyleSheetRule},t)})},styleDeclarationCb:function(t){return ij({type:rw.IncrementalSnapshot,data:I({source:rk.StyleDeclaration},t)})},canvasMutationCb:tu,fontCb:function(t){return ij({type:rw.IncrementalSnapshot,data:I({source:rk.Font},t)})},selectionCb:function(t){ij({type:rw.IncrementalSnapshot,data:I({source:rk.Selection},t)})},customElementCb:function(t){ij({type:rw.IncrementalSnapshot,data:I({source:rk.CustomElement},t)})},blockClass:o,ignoreClass:u,ignoreSelector:p,maskTextClass:d,maskTextSelector:g,maskInputOptions:Q,inlineStylesheet:y,sampling:E,recordDOM:M,recordCanvas:N,inlineImages:W,userTriggeredOnInput:$,collectFonts:z,doc:t,maskInputFn:w,maskTextFn:k,keepIframeSrcFn:X,blockSelector:a,slimDOMOptions:tt,dataURLOptions:O,mirror:io,iframeManager:tp,stylesheetManager:tl,shadowDomManager:tg,processedNodeManager:tf,canvasManager:iB,ignoreCSSAttributes:V,plugins:(null==(e=null==J?void 0:J.filter(function(t){return t.observer}))?void 0:e.map(function(t){return{observer:t.observer,options:t.options,callback:function(e){return ij({type:rw.Plugin,data:{plugin:t.name,payload:e}})}}}))||[]},S)};tp.addLoadListener(function(t){try{tm.push(ty(t.contentDocument))}catch(t){console.warn(t)}});var tv=function(){iU(),tm.push(ty(document)),ir=!0};return"interactive"===document.readyState||"complete"===document.readyState?tv():(tm.push(re("DOMContentLoaded",function(){ij({type:rw.DomContentLoaded,data:{}}),"DOMContentLoaded"===U&&tv()})),tm.push(re("load",function(){ij({type:rw.Load,data:{}}),"load"===U&&tv()},window))),function(){tm.forEach(function(t){return t()}),tf.destroy(),ir=!1,iF=void 0}}catch(t){console.warn(t)}}is.addCustomEvent=function(t,e){if(!ir)throw Error("please add custom event after start recording");ij({type:rw.Custom,data:{tag:t,payload:e}})},is.freezePage=function(){rP.forEach(function(t){return t.freeze()})},is.takeFullSnapshot=function(t){if(!ir)throw Error("please take full snapshot after start recording");iU(t)},is.mirror=io,(im=i$||(i$={}))[im.NotStarted=0]="NotStarted",im[im.Running=1]="Running",im[im.Stopped=2]="Stopped",is.addCustomEvent,is.freezePage,is.takeFullSnapshot;var ia,ic,iu,il,ip,ih,id,ig,im,iy,iv,i_,ib,iw,ik,iS,ix,iC,iE,iI,iT,iO,iA,iR,iM,iD,iN,iP,iL,iF,ij,iU,iB,i$,iq,iz,iG,iW=iy.setImmediate,iJ=Object.prototype.toString,iH=void 0!==iW?function(t){return iW(t)}:setTimeout;try{Object.defineProperty({},"x",{}),iq=function(t,e,n,r){return Object.defineProperty(t,e,{value:n,writable:!0,configurable:!1!==r})}}catch(t){iq=function(t,e,n){return t[e]=n,t}}function iX(t,e){iG.add(t,e),iz||(iz=iH(iG.drain))}function iY(t){var e,n=typeof t;return null!==t&&("object"===n||"function"===n)&&(e=t.then),"function"==typeof e&&e}function iV(){for(var t=0;t0&&iX(iV,n))}catch(t){iK.call(new i0(n),t)}}}function iK(t){var e=this;!e.triggered&&(e.triggered=!0,e.def&&(e=e.def),e.msg=t,e.state=2,e.chain.length>0&&iX(iV,e))}function iQ(t,e,n,r){for(var i=0;i0&&(e[n]=t)}),e},od.truncate=function(t,e){var n;return"string"==typeof t?n=t.slice(0,e):od.isArray(t)?(n=[],od.each(t,function(t){n.push(od.truncate(t,e))})):od.isObject(t)?(n={},od.each(t,function(t,r){n[r]=od.truncate(t,e)})):n=t,n},od.JSONEncode=function(t){var e=function(t){var e=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return e.lastIndex=0,e.test(t)?'"'+t.replace(e,function(t){var e=n[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'},n=function(t,r){var i="",o=0,s="",a="",c=0,u=i,l=[],p=r[t];switch(p&&"object"==typeof p&&"function"==typeof p.toJSON&&(p=p.toJSON(t)),typeof p){case"string":return e(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(i+=" ",l=[],"[object Array]"===i7.apply(p)){for(o=0,c=p.length;o="0"&&i<="9";)e+=i,u();if("."===i)for(e+=".";u()&&i>="0"&&i<="9";)e+=i;if("e"===i||"E"===i)for(e+=i,u(),("-"===i||"+"===i)&&(e+=i,u());i>="0"&&i<="9";)e+=i,u();if(isFinite(t=+e))return t;c("Bad number")},p=function(){var t,e,n,r="";if('"'===i)for(;u();){if('"'===i)return u(),r;if("\\"===i){if(u(),"u"===i){for(e=0,n=0;e<4&&isFinite(t=parseInt(u(),16));e+=1)n=16*n+t;r+=String.fromCharCode(n)}else if("string"==typeof a[i])r+=a[i];else break}else r+=i}c("Bad string")},h=function(){for(;i&&i<=" ";)u()},d=function(){switch(i){case"t":return u("t"),u("r"),u("u"),u("e"),!0;case"f":return u("f"),u("a"),u("l"),u("s"),u("e"),!1;case"n":return u("n"),u("u"),u("l"),u("l"),null}c('Unexpected "'+i+'"')},f=function(){var t=[];if("["===i){if(u("["),h(),"]"===i)return u("]"),t;for(;i;){if(t.push(s()),h(),"]"===i)return u("]"),t;u(","),h()}}c("Bad array")},g=function(){var t,e={};if("{"===i){if(u("{"),h(),"}"===i)return u("}"),e;for(;i;){if(t=p(),h(),u(":"),Object.hasOwnProperty.call(e,t)&&c('Duplicate key "'+t+'"'),e[t]=s(),h(),"}"===i)return u("}"),e;u(","),h()}}c("Bad object")},s=function(){switch(h(),i){case"{":return g();case"[":return f();case'"':return p();case"-":return l();default:return i>="0"&&i<="9"?l():d()}},function(t){var e;return o=t,r=0,i=" ",e=s(),h(),i&&c("Syntax error"),e}),od.base64Encode=function(t){var e,n,r,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,c=0,u="",l=[];if(!t)return t;t=od.utf8Encode(t);do e=(o=t.charCodeAt(a++)<<16|t.charCodeAt(a++)<<8|t.charCodeAt(a++))>>18&63,n=o>>12&63,r=o>>6&63,i=63&o,l[c++]=s.charAt(e)+s.charAt(n)+s.charAt(r)+s.charAt(i);while(a127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(n>e&&(i+=t.substring(e,n)),i+=a,e=n=r+1)}return n>e&&(i+=t.substring(e,t.length)),i},od.UUID=function(){try{return iy.crypto.randomUUID()}catch(n){for(var t=Array(36),e=0;e<36;e++)t[e]=Math.floor(16*Math.random());return t[14]=4,t[19]=t[19]&=-5,t[19]=t[19]|=8,t[8]=t[13]=t[18]=t[23]="-",od.map(t,function(t){return t.toString(16)}).join("")}};var o_=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];od.isBlockedUA=function(t){var e;for(e=0,t=t.toLowerCase();e-1){p=(l=u.split("#"))[0];var o=l[1],s=or.getElementById(o);if(!s||p&&s.nodeName.toLowerCase()!=p)return[];i=[s];continue}if(u.indexOf(".")>-1){p=(l=u.split("."))[0];var a=l[1];for(p||(p="*"),h=[],d=0,g=0;g=0&&(i[v++]=h[g]);continue}var c=u.match(oC);if(c){p=c[1];var u,l,p,h,d,f,g,m,y,v,_,b=c[2],w=c[3],k=c[4];for(p||(p="*"),h=[],d=0,g=0;g-1};break;default:_=function(t){return t.getAttribute(b)}}for(g=0,i=[],v=0;g=3?e[2]:""},currentUrl:function(){return iy.location.href},properties:function(t){return"object"!=typeof t&&(t={}),od.extend(od.strip_empty_properties({$os:od.info.os(),$browser:od.info.browser(os,on.vendor,oi),$referrer:or.referrer,$referring_domain:od.info.referringDomain(or.referrer),$device:od.info.device(os)}),{$current_url:od.info.currentUrl(),$browser_version:od.info.browserVersion(os,on.vendor,oi),$screen_height:oo.height,$screen_width:oo.width,mp_lib:"web",$lib_version:i5.LIB_VERSION,$insert_id:oO(),time:od.timestamp()/1e3},od.strip_empty_properties(t))},people_properties:function(){return od.extend(od.strip_empty_properties({$os:od.info.os(),$browser:od.info.browser(os,on.vendor,oi)}),{$browser_version:od.info.browserVersion(os,on.vendor,oi)})},mpPageViewProperties:function(){return od.strip_empty_properties({current_page_title:or.title,current_domain:iy.location.hostname,current_url_path:iy.location.pathname,current_url_protocol:iy.location.protocol,current_url_search:iy.location.search})}};var oT=function(t,e){var n=null,r=[];return function(i){var o=this;return r.push(i),n||(n=new m(function(i){setTimeout(function(){var e=t.apply(o,[r]);n=null,r=[],i(e)},e)})),n}},oO=function(t){var e=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return t?e.substring(0,t):e},oA=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,oR=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,oM=function(t){var e=oR,n=t.split("."),r=n[n.length-1];(r.length>4||"com"===r||"org"===r)&&(e=oA);var i=t.match(e);return i?i[0]:""},oD=function(){var t=iy.navigator.onLine;return od.isUndefined(t)||t},oN=function(){},oP=null,oL=null;"undefined"!=typeof JSON&&(oP=JSON.stringify,oL=JSON.parse),oP=oP||od.JSONEncode,oL=oL||od.JSONDecode,od.info=od.info,od.info.browser=od.info.browser,od.info.browserVersion=od.info.browserVersion,od.info.device=od.info.device,od.info.properties=od.info.properties,od.isBlockedUA=od.isBlockedUA,od.isEmptyObject=od.isEmptyObject,od.isObject=od.isObject,od.JSONDecode=od.JSONDecode,od.JSONEncode=od.JSONEncode,od.toArray=od.toArray,od.NPO=i2;var oF="mixpanelRecordingEvents",oj="mixpanelRecordingRegistry",oU=[oF,oj],oB=function(t){this.dbPromise=null,this.storeName=t};function o$(t,e){oK(!0,t,e)}function oq(t,e){oK(!1,t,e)}function oz(t,e){return"1"===oZ(t,e)}function oG(t,e){if(function(t){if(t&&t.ignoreDnt)return!1;var e=t&&t.window||iy,n=e.navigator||{},r=!1;return od.each([n.doNotTrack,n.msDoNotTrack,e.doNotTrack],function(t){od.includes([!0,1,"1","yes"],t)&&(r=!0)}),r}(e))return of.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var n="0"===oZ(t,e);return n&&of.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),n}function oW(t){return oQ(t,function(t){return this.get_config(t)})}function oJ(t){return oQ(t,function(t){return this._get_config(t)})}function oH(t){return oQ(t,function(t){return this._get_config(t)})}function oX(t,e){oY(e=e||{}).remove(oV(t,e),!!e.crossSubdomainCookie,e.cookieDomain)}function oY(t){return"localStorage"===(t=t||{}).persistenceType?od.localStorage:od.cookie}function oV(t,e){return((e=e||{}).persistencePrefix||"__mp_opt_in_out_")+t}function oZ(t,e){return oY(e).get(oV(t,e))}function oK(t,e,n){if(!od.isString(e)||!e.length){of.error("gdpr."+(t?"optIn":"optOut")+" called with an invalid token");return}oY(n=n||{}).set(oV(e,n),t?1:0,od.isNumber(n.cookieExpiration)?n.cookieExpiration:null,!!n.crossSubdomainCookie,!!n.secureCookie,!!n.crossSiteCookie,n.cookieDomain),n.track&&t&&n.track(n.trackEventName||"$opt_in",n.trackProperties,{send_immediately:!0})}function oQ(t,e){return function(){var n=!1;try{var r=e.call(this,"token"),i=e.call(this,"ignore_dnt"),o=e.call(this,"opt_out_tracking_persistence_type"),s=e.call(this,"opt_out_tracking_cookie_prefix"),a=e.call(this,"window");r&&(n=oG(r,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(t){of.error("Unexpected error when checking tracking opt-out status: "+t)}if(!n)return t.apply(this,arguments);var c=arguments[arguments.length-1];"function"==typeof c&&c(0)}}oB.prototype._openDb=function(){return new m(function(t,e){var n=iy.indexedDB.open("mixpanelBrowserDb",1);n.onerror=function(){e(n.error)},n.onsuccess=function(){t(n.result)},n.onupgradeneeded=function(t){var e=t.target.result;oU.forEach(function(t){e.createObjectStore(t)})}})},oB.prototype.init=function(){return iy.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(t){return t instanceof iy.IDBDatabase?m.resolve():m.reject(t)})):m.reject("indexedDB is not supported in this browser")},oB.prototype.makeTransaction=function(t,e){var n=this.storeName,r=function(r){return new m(function(i,o){var s=r.transaction(n,t);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){o(s.error)},e(s.objectStore(n))})};return this.dbPromise.then(r).catch((function(t){return t&&"InvalidStateError"===t.name?(this.dbPromise=this._openDb(),this.dbPromise.then(r)):m.reject(t)}).bind(this))},oB.prototype.setItem=function(t,e){return this.makeTransaction("readwrite",function(n){n.put(e,t)})},oB.prototype.getItem=function(t){var e;return this.makeTransaction("readonly",function(n){e=n.get(t)}).then(function(){return e.result})},oB.prototype.removeItem=function(t){return this.makeTransaction("readwrite",function(e){e.delete(t)})},oB.prototype.getAll=function(){var t;return this.makeTransaction("readonly",function(e){t=e.getAll()}).then(function(){return t.result})};var o0=om("lock"),o1=function(t,e){e=e||{},this.storageKey=t,this.storage=e.storage||iy.localStorage,this.pollIntervalMS=e.pollIntervalMS||100,this.timeoutMS=e.timeoutMS||2e3,this.promiseImpl=e.promiseImpl||m};o1.prototype.withLock=function(t,e){return new this.promiseImpl(od.bind(function(n,r){var i=e||new Date().getTime()+"|"+Math.random(),o=new Date().getTime(),s=this.storageKey,a=this.pollIntervalMS,c=this.timeoutMS,u=this.storage,l=s+":X",p=s+":Y",h=s+":Z",d=function(t){if(new Date().getTime()-o>c){o0.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),u.removeItem(h),u.removeItem(p),m();return}setTimeout(function(){try{t()}catch(t){r(t)}},a*(Math.random()+.1))},f=function(t,e){t()?e():d(function(){f(t,e)})},g=function(){var t=u.getItem(p);return(!t||t===i)&&(u.setItem(p,i),u.getItem(p)===i||(ok(u,!0)||r(Error("localStorage support dropped while acquiring lock")),!1))},m=function(){u.setItem(l,i),f(g,function(){if(u.getItem(l)===i){y();return}d(function(){if(u.getItem(p)!==i){m();return}f(function(){return!u.getItem(h)},y)})})},y=function(){u.setItem(h,"1");var e=function(){u.removeItem(h),u.getItem(p)===i&&u.removeItem(p),u.getItem(l)===i&&u.removeItem(l)};t().then(function(t){e(),n(t)}).catch(function(t){e(),r(t)})};try{if(ok(u,!0))m();else throw Error("localStorage support check failed")}catch(t){r(t)}},this))};var o2=function(t){this.storage=t||iy.localStorage};o2.prototype.init=function(){return m.resolve()},o2.prototype.setItem=function(t,e){return new m(od.bind(function(n,r){try{this.storage.setItem(t,oP(e))}catch(t){r(t)}n()},this))},o2.prototype.getItem=function(t){return new m(od.bind(function(e,n){var r;try{r=oL(this.storage.getItem(t))}catch(t){n(t)}e(r)},this))},o2.prototype.removeItem=function(t){return new m(od.bind(function(e,n){try{this.storage.removeItem(t)}catch(t){n(t)}e()},this))};var o3=om("batch"),o5=function(t,e){e=e||{},this.storageKey=t,this.usePersistence=e.usePersistence,this.usePersistence&&(this.queueStorage=e.queueStorage||new o2,this.lock=new o1(t,{storage:e.sharedLockStorage||iy.localStorage,timeoutMS:e.sharedLockTimeoutMS})),this.reportError=e.errorReporter||od.bind(o3.error,o3),this.pid=e.pid||null,this.memQueue=[],this.initialized=!1,e.enqueueThrottleMs?this.enqueuePersisted=oT(od.bind(this._enqueuePersisted,this),e.enqueueThrottleMs):this.enqueuePersisted=od.bind(function(t){return this._enqueuePersisted([t])},this)};o5.prototype.ensureInit=function(){return this.initialized?m.resolve():this.queueStorage.init().then(od.bind(function(){this.initialized=!0},this)).catch(od.bind(function(t){this.reportError("Error initializing queue persistence. Disabling persistence",t),this.initialized=!0,this.usePersistence=!1},this))},o5.prototype.enqueue=function(t,e){var n={id:oO(),flushAfter:new Date().getTime()+2*e,payload:t};return this.usePersistence?this.enqueuePersisted(n):(this.memQueue.push(n),m.resolve(!0))},o5.prototype._enqueuePersisted=function(t){var e=od.bind(function(){return this.ensureInit().then(od.bind(function(){return this.readFromStorage()},this)).then(od.bind(function(e){return this.saveToStorage(e.concat(t))},this)).then(od.bind(function(e){return e&&(this.memQueue=this.memQueue.concat(t)),e},this)).catch(od.bind(function(e){return this.reportError("Error enqueueing items",e,t),!1},this))},this);return this.lock.withLock(e,this.pid).catch(od.bind(function(t){return this.reportError("Error acquiring storage lock",t),!1},this))},o5.prototype.fillBatch=function(t){var e=this.memQueue.slice(0,t);return this.usePersistence&&e.lengtho.flushAfter&&!r[o.id]&&(o.orphaned=!0,e.push(o),e.length>=t))break}}return e},this)):m.resolve(e)};var o4=function(t,e){var n=[];return od.each(t,function(t){t.id&&!e[t.id]&&n.push(t)}),n};o5.prototype.removeItemsByID=function(t){var e={};if(od.each(t,function(t){e[t]=!0}),this.memQueue=o4(this.memQueue,e),!this.usePersistence)return m.resolve(!0);var n=od.bind(function(){return this.ensureInit().then(od.bind(function(){return this.readFromStorage()},this)).then(od.bind(function(t){return t=o4(t,e),this.saveToStorage(t)},this)).then(od.bind(function(){return this.readFromStorage()},this)).then(od.bind(function(t){for(var n=0;n5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:t,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[r]}),n=!1):this.reportError("[dupe] found item with no ID",{item:t}),n&&s.push(e)}a[t.id]=e},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),m.resolve();var c=od.bind(function(){return this.queue.removeItemsByID(od.map(i,function(t){return t.id})).then(od.bind(function(t){return(od.each(i,od.bind(function(t){var e=t.id;e?(this.itemIdsSentSuccessfully[e]=this.itemIdsSentSuccessfully[e]||0,this.itemIdsSentSuccessfully[e]++,this.itemIdsSentSuccessfully[e]>5&&this.reportError("[dupe] item ID sent too many times",{item:t,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[e]})):this.reportError("[dupe] found item with no ID while removing",{item:t})},this)),t)?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o)?(this.resetFlush(),m.resolve()):this.flush():(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),m.resolve())},this))},this),u=od.bind(function(o){this.requestInProgress=!1;try{if(t.unloading)return this.queue.updatePayloads(a);if(od.isObject(o)&&"timeout"===o.error&&new Date().getTime()-n>=e)return this.reportError("Network timeout; retrying"),this.flush();if(od.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&!oD()||"timeout"===o.error)){var s=2*this.flushInterval;return o.retryAfter&&(s=1e3*parseInt(o.retryAfter,10)||s),s=Math.min(6e5,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),m.resolve()}if(!od.isObject(o)||413!==o.httpStatusCode)return c();if(!(i.length>1))return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),c();var u=Math.max(1,Math.floor(r/2));return this.batchSize=Math.min(this.batchSize,u,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),m.resolve()}catch(t){this.reportError("Error handling API response",t),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:e};return t.unloading&&(l.transport="sendBeacon"),o8.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(u)},this)).catch(od.bind(function(t){this.reportError("Error flushing request queue",t),this.resetFlush()},this))},o9.prototype.reportError=function(t,e){if(o8.error.apply(o8.error,arguments),this.errorReporter)try{e instanceof Error||(e=Error(t)),this.errorReporter(t,e)}catch(t){o8.error(t)}};var o7=function(t){var e=Date.now();return!t||e>t.maxExpires||e>t.idleExpires},st=om("recorder"),se=iy.CompressionStream,sn={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},sr=new Set([rk.MouseMove,rk.MouseInteraction,rk.Scroll,rk.ViewportResize,rk.Input,rk.TouchMove,rk.MediaInteraction,rk.Drag,rk.Selection]),si=function(t){this._mixpanel=t.mixpanelInstance,this._onIdleTimeout=t.onIdleTimeout||oN,this._onMaxLengthReached=t.onMaxLengthReached||oN,this._onBatchSent=t.onBatchSent||oN,this._rrwebRecord=t.rrwebRecord||null,this._stopRecording=null,this.replayId=t.replayId,this.batchStartUrl=t.batchStartUrl||null,this.replayStartUrl=t.replayStartUrl||null,this.idleExpires=t.idleExpires||null,this.maxExpires=t.maxExpires||null,this.replayStartTime=t.replayStartTime||null,this.seqNo=t.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=864e5,this.recordMinMs=0;var e=ok(t.sharedLockStorage,!0);this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new oB(oF),this.batcher=new o9(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:sn,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:t.sharedLockStorage,usePersistence:e,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};si.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.batcher.flush().then((function(){return this.queueStorage.removeItem(this.batcherKey)}).bind(this))},si.prototype.getConfig=function(t){return this._mixpanel.get_config(t)},si.prototype.get_config=function(t){return this.getConfig(t)},si.prototype.startRecording=function(t){if(null===this._rrwebRecord){this.reportError("rrweb record function not provided. ");return}if(null!==this._stopRecording){st.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>864e5&&(this.recordMaxMs=864e5,st.critical("record_max_ms cannot be greater than 86400000ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>8e3&&(this.recordMinMs=8e3,st.critical("record_min_ms cannot be greater than 8000ms. Capping value.")),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=od.info.currentUrl(),this.replayStartUrl=od.info.currentUrl()),t||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var e=(function(){clearTimeout(this.idleTimeoutId);var t=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,t),this.idleExpires=new Date().getTime()+t}).bind(this);e();var n=this.getConfig("record_block_selector");(""===n||null===n)&&(n=void 0);try{this._stopRecording=this._rrwebRecord({emit:(function(t){if(this.idleExpires&&this.idleExpires=this.recordMinMs&&this.batcher.start(),e()),this.__enqueuePromise=this.batcher.enqueue(t)}).bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:n,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15}})}catch(t){this.reportError("Unexpected error when starting rrweb recording.",t)}if("function"!=typeof this._stopRecording){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var r=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),r)},si.prototype.stopRecording=function(t){var e;if(!this.isRrwebStopped()){try{this._stopRecording()}catch(t){this.reportError("Error with rrweb stopRecording",t)}this._stopRecording=null}return this.batcher.stopped?e=this.batcher.clear():t||(e=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),e},si.prototype.isRrwebStopped=function(){return null===this._stopRecording},si.prototype.flushEventsWithOptOut=function(t,e,n){var r=(function(t){0===t&&(this.stopRecording(),n({error:"Tracking has been opted out, stopping recording."}))}).bind(this);this._flushEvents(t,e,n,r)},si.prototype.serialize=function(){var t;try{t=this._mixpanel.get_tab_id()}catch(e){this.reportError("Error getting tab ID for serialization ",e),t=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:t}},si.deserialize=function(t,e){return new si(od.extend({},e,{replayId:t.replayId,batchStartUrl:t.batchStartUrl,replayStartUrl:t.replayStartUrl,idleExpires:t.idleExpires,maxExpires:t.maxExpires,replayStartTime:t.replayStartTime,seqNo:t.seqNo,sharedLockStorage:e.sharedLockStorage}))},si.prototype._sendRequest=function(t,e,n,r){var i=(function(e,n){200===e.status&&this.replayId===t&&(this.seqNo++,this.batchStartUrl=od.info.currentUrl()),this._onBatchSent(),r({status:0,httpStatusCode:e.status,responseBody:n,retryAfter:e.headers.get("Retry-After")})}).bind(this);iy.fetch(this.getConfig("api_host")+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(e),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:n}).then(function(t){t.json().then(function(e){i(t,e)}).catch(function(t){r({error:t})})}).catch(function(t){r({error:t,httpStatusCode:0})})},si.prototype._flushEvents=oW(function(t,e,n){var r=t.length;if(r>0){for(var i=this.replayId,o=1/0,s=-1/0,a=!1,c=0;cthis.lastScrollCheckpoint)for(var s=0;s=a&&this.lastScrollCheckpoint=0;p--)u=(c=this._mixpanel.persistence.load_queue(an)).pop(),a._mixpanel.persistence.save(),od.isEmptyObject(u)||a.append(u,l);var h=this._mixpanel.persistence.load_queue(ai);if(!od.isUndefined(h)&&od.isArray(h)&&h.length)for(var d,f=function(t,e){0===t&&a._mixpanel.persistence._add_to_people_queue(ai,d),od.isUndefined(s)||s(t,e)},g=h.length-1;g>=0;g--)d=(h=this._mixpanel.persistence.load_queue(ai)).pop(),a._mixpanel.persistence.save(),od.isEmptyObject(d)||a.remove(d,f)},aa.prototype._is_reserved_property=function(t){return"$distinct_id"===t||"$token"===t||"$device_id"===t||"$user_id"===t||"$had_persisted_distinct_id"===t},aa.prototype.set=aa.prototype.set,aa.prototype.set_once=aa.prototype.set_once,aa.prototype.unset=aa.prototype.unset,aa.prototype.increment=aa.prototype.increment,aa.prototype.append=aa.prototype.append,aa.prototype.remove=aa.prototype.remove,aa.prototype.union=aa.prototype.union,aa.prototype.track_charge=aa.prototype.track_charge,aa.prototype.clear_charges=aa.prototype.clear_charges,aa.prototype.delete_user=aa.prototype.delete_user,aa.prototype.toString=aa.prototype.toString;var ac="__mps",au="__mpso",al="__mpus",ap="__mpa",ah="__mpap",ad="__mpr",af="__mpu",ag="$people_distinct_id",am="__alias",ay="__timers",av=[ac,au,al,ap,ah,ad,af,ag,am,ay],a_=function(t){this.props={},this.campaign_params_saved=!1,t.persistence_name?this.name="mp_"+t.persistence_name:this.name="mp_"+t.token+"_mixpanel";var e=t.persistence;"cookie"!==e&&"localStorage"!==e&&(of.critical("Unknown persistence type "+e+"; falling back to cookie"),e=t.persistence="cookie"),"localStorage"===e&&od.localStorage.is_supported()?this.storage=od.localStorage:this.storage=od.cookie,this.load(),this.update_config(t),this.upgrade(),this.save()};a_.prototype.properties=function(){var t={};return this.load(),od.each(this.props,function(e,n){od.include(av,n)||(t[n]=e)}),t},a_.prototype.load=function(){if(!this.disabled){var t=this.storage.parse(this.name);t&&(this.props=od.extend({},t))}},a_.prototype.upgrade=function(){var t,e;this.storage===od.localStorage?(t=od.cookie.parse(this.name),od.cookie.remove(this.name),od.cookie.remove(this.name,!0),t&&this.register_once(t)):this.storage===od.cookie&&(e=od.localStorage.parse(this.name),od.localStorage.remove(this.name),e&&this.register_once(e))},a_.prototype.save=function(){this.disabled||this.storage.set(this.name,oP(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},a_.prototype.load_prop=function(t){return this.load(),this.props[t]},a_.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},a_.prototype.clear=function(){this.remove(),this.props={}},a_.prototype.register_once=function(t,e,n){return!!od.isObject(t)&&(void 0===e&&(e="None"),this.expire_days=void 0===n?this.default_expiry:n,this.load(),od.each(t,function(t,n){this.props.hasOwnProperty(n)&&this.props[n]!==e||(this.props[n]=t)},this),this.save(),!0)},a_.prototype.register=function(t,e){return!!od.isObject(t)&&(this.expire_days=void 0===e?this.default_expiry:e,this.load(),od.extend(this.props,t),this.save(),!0)},a_.prototype.unregister=function(t){this.load(),t in this.props&&(delete this.props[t],this.save())},a_.prototype.update_search_keyword=function(t){this.register(od.info.searchInfo(t))},a_.prototype.update_referrer_info=function(t){this.register_once({$initial_referrer:t||"$direct",$initial_referring_domain:od.info.referringDomain(t)||"$direct"},"")},a_.prototype.get_referrer_info=function(){return od.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},a_.prototype.update_config=function(t){this.default_expiry=this.expire_days=t.cookie_expiration,this.set_disabled(t.disable_persistence),this.set_cookie_domain(t.cookie_domain),this.set_cross_site(t.cross_site_cookie),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie)},a_.prototype.set_disabled=function(t){this.disabled=t,this.disabled?this.remove():this.save()},a_.prototype.set_cookie_domain=function(t){t!==this.cookie_domain&&(this.remove(),this.cookie_domain=t,this.save())},a_.prototype.set_cross_site=function(t){t!==this.cross_site&&(this.cross_site=t,this.remove(),this.save())},a_.prototype.set_cross_subdomain=function(t){t!==this.cross_subdomain&&(this.cross_subdomain=t,this.remove(),this.save())},a_.prototype.get_cross_subdomain=function(){return this.cross_subdomain},a_.prototype.set_secure=function(t){t!==this.secure&&(this.secure=!!t,this.remove(),this.save())},a_.prototype._add_to_people_queue=function(t,e){var n=this._get_queue_key(t),r=e[t],i=this._get_or_create_queue(s9),o=this._get_or_create_queue(s7),s=this._get_or_create_queue(at),a=this._get_or_create_queue(ae),c=this._get_or_create_queue(ar),u=this._get_or_create_queue(ai,[]),l=this._get_or_create_queue(an,[]);n===ac?(od.extend(i,r),this._pop_from_people_queue(ae,r),this._pop_from_people_queue(ar,r),this._pop_from_people_queue(at,r)):n===au?(od.each(r,function(t,e){e in o||(o[e]=t)}),this._pop_from_people_queue(at,r)):n===al?od.each(r,function(t){od.each([i,o,a,c],function(e){t in e&&delete e[t]}),od.each(l,function(e){t in e&&delete e[t]}),s[t]=!0}):n===ap?(od.each(r,function(t,e){e in i?i[e]+=t:(e in a||(a[e]=0),a[e]+=t)},this),this._pop_from_people_queue(at,r)):n===af?(od.each(r,function(t,e){od.isArray(t)&&(e in c||(c[e]=[]),od.each(t,function(t){od.include(c[e],t)||c[e].push(t)}))}),this._pop_from_people_queue(at,r)):n===ad?(u.push(r),this._pop_from_people_queue(an,r)):n===ah&&(l.push(r),this._pop_from_people_queue(at,r)),of.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),of.log(e),this.save()},a_.prototype._pop_from_people_queue=function(t,e){var n=this.props[this._get_queue_key(t)];od.isUndefined(n)||od.each(e,function(e,r){t===an||t===ai?od.each(n,function(t){t[r]===e&&delete t[r]}):delete n[r]},this)},a_.prototype.load_queue=function(t){return this.load_prop(this._get_queue_key(t))},a_.prototype._get_queue_key=function(t){return t===s9?ac:t===s7?au:t===at?al:t===ae?ap:t===an?ah:t===ai?ad:t===ar?af:void of.error("Invalid queue:",t)},a_.prototype._get_or_create_queue=function(t,e){var n=this._get_queue_key(t);return e=od.isUndefined(e)?{}:e,this.props[n]||(this.props[n]=e)},a_.prototype.set_event_timer=function(t,e){var n=this.load_prop(ay)||{};n[t]=e,this.props[ay]=n,this.save()},a_.prototype.remove_event_timer=function(t){var e=(this.load_prop(ay)||{})[t];return od.isUndefined(e)||(delete this.props[ay][t],this.save()),e};var ab=function(t,e){throw Error(t+" not available in this build.")},aw=function(t){return t},ak="mixpanel",aS="base64",ax="$device:",aC=iy.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,aE=!aC&&-1===os.indexOf("MSIE")&&-1===os.indexOf("Mozilla"),aI=null;on.sendBeacon&&(aI=function(){return on.sendBeacon.apply(on,arguments)});var aT={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},aO={api_host:"https://api-js.mixpanel.com",api_routes:aT,api_method:"POST",api_transport:"XHR",api_payload_format:aS,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:oN,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:oN,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video",record_canvas:!1,record_collect_fonts:!1,record_heatmap_data:!1,record_idle_timeout_ms:18e5,record_mask_text_class:RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:864e5,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},aA=!1,aR=function(){},aM=function(t,e,n){var r,i=n===ak?v:v[n];if(i&&0===y)r=i;else{if(i&&!od.isArray(i)){of.error("You have already initialized "+n);return}r=new aR}if(r._cached_groups={},r._init(t,e,n),r.people=new aa,r.people._init(r),!r.get_config("skip_first_touch_marketing")){var o=od.info.campaignParams(null),s={},a=!1;od.each(o,function(t,e){s["initial_"+e]=t,t&&(a=!0)}),a&&r.people.set_once(s)}return i5.DEBUG=i5.DEBUG||r.get_config("debug"),!od.isUndefined(i)&&od.isArray(i)&&(r._execute_array.call(r.people,i.people),r._execute_array(i)),r};aR.prototype.init=function(t,e,n){if(od.isUndefined(n)){this.report_error("You must name your new library: init(token, config, name)");return}if(n===ak){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var r=aM(t,e,n);return v[n]=r,r._loaded(),r},aR.prototype._init=function(t,e,n){e=e||{},this.__loaded=!0,this.config={};var r={};if(!("api_payload_format"in e)&&(e.api_host||aO.api_host).match(/\.mixpanel\.com/)&&(r.api_payload_format="json"),this.set_config(od.extend({},aO,r,e,{name:n,token:t,callback_fn:(n===ak?n:ak+"."+n)+"._jsc"})),this._jsc=oN,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests){if(od.localStorage.is_supported(!0)&&aC){if(this.init_batchers(),aI&&iy.addEventListener){var i=od.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);iy.addEventListener("pagehide",function(t){t.persisted&&i()}),iy.addEventListener("visibilitychange",function(){"hidden"===or.visibilityState&&i()})}}else this._batch_requests=!1,of.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),od.each(this.get_batcher_configs(),function(t){of.log("Clearing batch queue "+t.queue_key),od.localStorage.remove(t.queue_key)})}this.persistence=this.cookie=new a_(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=od.UUID();this.get_distinct_id()||this.register_once({distinct_id:ax+o,$device_id:o},""),this.flags=new s5({getConfigFunc:od.bind(this.get_config,this),getDistinctIdFunc:od.bind(this.get_distinct_id,this),trackingFunc:od.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new sK(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()},aR.prototype._init_tab_id=function(){if(od.sessionStorage.is_supported())try{var t=this.get_config("name")+"_"+this.get_config("token"),e="mp_tab_id_"+t,n="mp_gen_new_tab_id_"+t;(od.sessionStorage.get(n)||!od.sessionStorage.get(e))&&od.sessionStorage.set(e,"$tab-"+od.UUID()),od.sessionStorage.set(n,"1"),this.tab_id=od.sessionStorage.get(e),iy.addEventListener("beforeunload",function(){od.sessionStorage.remove(n)})}catch(t){this.report_error("Error initializing tab id",t)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},aR.prototype.get_tab_id=function(){return this.tab_id||null},aR.prototype._should_load_recorder=function(){var t=new oB(oj),e=this.get_tab_id();return t.init().then(function(){return t.getAll()}).then(function(t){for(var n=0;n0&&100*Math.random()<=this.get_config("record_sessions_percent");t||n?e(!0):this._should_load_recorder().then(function(t){t&&e(!1)})}),aR.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},aR.prototype.stop_session_recording=function(){this._recorder&&this._recorder.stopRecording()},aR.prototype.pause_session_recording=function(){this._recorder&&this._recorder.pauseRecording()},aR.prototype.resume_session_recording=function(){this._recorder&&this._recorder.resumeRecording()},aR.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},aR.prototype.get_session_recording_properties=function(){var t={},e=this._get_session_replay_id();return e&&(t.$mp_replay_id=e),t},aR.prototype.get_session_replay_url=function(){var t=null,e=this._get_session_replay_id();return e&&(t="https://mixpanel.com/projects/replay-redirect?"+od.HTTPBuildQuery({replay_id:e,distinct_id:this.get_distinct_id(),token:this.get_config("token")})),t},aR.prototype._get_session_replay_id=function(){var t=null;return this._recorder&&(t=this._recorder.replayId),t||null},aR.prototype.__get_recorder=function(){return this._recorder},aR.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var t=od.info.campaignParams(null);od.each(t,(function(t,e){this.unregister(e)}).bind(this))}},aR.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(or.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(od.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(or.referrer)},aR.prototype._dom_loaded=function(){od.each(this.__dom_loaded_queue,function(t){this._track_dom.apply(this,t)},this),this.has_opted_out_tracking()||od.each(this.__request_queue,function(t){this._send_request.apply(this,t)},this),delete this.__dom_loaded_queue,delete this.__request_queue},aR.prototype._track_dom=function(t,e){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!aA)return this.__dom_loaded_queue.push([t,e]),!1;var n=new t().init(this);return n.track.apply(n,e)},aR.prototype._prepare_callback=function(t,e){if(od.isUndefined(t))return null;if(aC)return function(n){t(n,e)};var n=this._jsc,r=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+r+"]";return n[r]=function(i){delete n[r],t(i,e)},i},aR.prototype._send_request=function(t,e,n,r){var i=!0;if(aE)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;!r&&(od.isFunction(n)||"string"==typeof n)&&(r=n,n=null),n=od.extend(o,n||{}),aC||(n.method="GET");var a="POST"===n.method,c=aI&&a&&"sendbeacon"===n.transport.toLowerCase(),u=n.verbose;e.verbose&&(u=!0),this.get_config("test")&&(e.test=1),u&&(e.verbose=1),this.get_config("img")&&(e.img=1),!aC&&(r?e.callback=r:(u||this.get_config("test"))&&(e.callback="(function(){})")),e.ip=this.get_config("ip")?1:0,e._=new Date().getTime().toString(),a&&(s="data="+encodeURIComponent(e.data),delete e.data),t+="?"+od.HTTPBuildQuery(e);var l=this;if("img"in e){var p=or.createElement("img");p.src=t,or.body.appendChild(p)}else if(c){try{i=aI(t,s)}catch(t){l.report_error(t),i=!1}try{r&&r(i?1:0)}catch(t){l.report_error(t)}}else if(aC)try{var h=new XMLHttpRequest;h.open(n.method,t,!0);var d=this.get_config("xhr_headers");if(a&&(d["Content-Type"]="application/x-www-form-urlencoded"),od.each(d,function(t,e){h.setRequestHeader(e,t)}),n.timeout_ms&&void 0!==h.timeout){h.timeout=n.timeout_ms;var f=new Date().getTime()}h.withCredentials=!0,h.onreadystatechange=function(){if(4===h.readyState){if(200===h.status){if(r){if(u){try{t=od.JSONDecode(h.responseText)}catch(e){if(l.report_error(e),!n.ignore_json_errors)return;t=h.responseText}r(t)}else r(Number(h.responseText))}}else if(e=h.timeout&&!h.status&&new Date().getTime()-f>=h.timeout?"timeout":"Bad HTTP status: "+h.status+" "+h.statusText,l.report_error(e),r){if(u){var t,e,i=h.responseHeaders||{};r({status:0,httpStatusCode:h.status,error:e,retryAfter:i["Retry-After"]})}else r(0)}}},h.send(s)}catch(t){l.report_error(t),i=!1}else{var g=or.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=t;var m=or.getElementsByTagName("script")[0];m.parentNode.insertBefore(g,m)}return i},aR.prototype._execute_array=function(t){var e,n=[],r=[],i=[];od.each(t,function(t){t&&(e=t[0],od.isArray(e)?i.push(t):"function"==typeof t?t.call(this):od.isArray(t)&&"alias"===e?n.push(t):od.isArray(t)&&-1!==e.indexOf("track")&&"function"==typeof this[e]?i.push(t):r.push(t))},this);var o=function(t,e){od.each(t,function(t){if(od.isArray(t[0])){var n=e;od.each(t,function(t){n=n[t[0]].apply(n,t.slice(1))})}else this[t[0]].apply(this,t.slice(1))},e)};o(n,this),o(r,this),o(i,this)},aR.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},aR.prototype.get_batcher_configs=function(){var t="__mpq_"+this.get_config("token"),e=this.get_config("api_routes");return this._batcher_configs=this._batcher_configs||{events:{type:"events",endpoint:"/"+e.track,queue_key:t+"_ev"},people:{type:"people",endpoint:"/"+e.engage,queue_key:t+"_pp"},groups:{type:"groups",endpoint:"/"+e.groups,queue_key:t+"_gr"}},this._batcher_configs},aR.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var t=od.bind(function(t){return new o9(t.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:od.bind(function(e,n,r){this._send_request(this.get_config("api_host")+t.endpoint,this._encode_data_for_request(e),n,this._prepare_callback(r,e))},this),beforeSendHook:od.bind(function(e){return this._run_hook("before_send_"+t.type,e)},this),stopAllBatchingFunc:od.bind(this.stop_batch_senders,this),usePersistence:!0})},this),e=this.get_batcher_configs();this.request_batchers={events:t(e.events),people:t(e.people),groups:t(e.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},aR.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,od.each(this.request_batchers,function(t){t.start()}))},aR.prototype.stop_batch_senders=function(){this._batch_requests=!1,od.each(this.request_batchers,function(t){t.stop(),t.clear()})},aR.prototype.push=function(t){this._execute_array([t])},aR.prototype.disable=function(t){void 0===t?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(t)},aR.prototype._encode_data_for_request=function(t){var e=oP(t);return this.get_config("api_payload_format")===aS&&(e=od.base64Encode(e)),{data:e}},aR.prototype._track_or_batch=function(t,e){var n=od.truncate(t.data,255),r=t.endpoint,i=t.batcher,o=t.should_send_immediately,s=t.send_request_options||{};e=e||oN;var a=!0,c=od.bind(function(){return(s.skip_hooks||(n=this._run_hook("before_send_"+t.type,n)),n)?(of.log("MIXPANEL REQUEST:"),of.log(n),this._send_request(r,this._encode_data_for_request(n),s,this._prepare_callback(e,n))):null},this);return this._batch_requests&&!o?i.enqueue(n).then(function(t){t?e(1,n):c()}):a=c(),a&&n},aR.prototype.track=oW(function(t,e,n,r){r||"function"!=typeof n||(r=n,n=null);var i=(n=n||{}).transport;i&&(n.transport=i);var o=n.send_immediately;if("function"!=typeof r&&(r=oN),od.isUndefined(t)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(t)){r(0);return}(e=od.extend({},e)).token=this.get_config("token");var s=this.persistence.remove_event_timer(t);if(!od.isUndefined(s)){var a=new Date().getTime()-s;e.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?od.info.marketingParams():{};e=od.extend({},od.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),e);var u=this.get_config("property_blacklist");od.isArray(u)?od.each(u,function(t){delete e[t]}):this.report_error("Invalid value for property_blacklist config: "+u);var l={event:t,properties:e};return this._track_or_batch({type:"events",data:l,endpoint:this.get_config("api_host")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:n},r)}),aR.prototype.set_group=oW(function(t,e,n){od.isArray(e)||(e=[e]);var r={};return r[t]=e,this.register(r),this.people.set(t,e,n)}),aR.prototype.add_group=oW(function(t,e,n){var r=this.get_property(t),i={};return void 0===r?(i[t]=[e],this.register(i)):-1===r.indexOf(e)&&(r.push(e),i[t]=r,this.register(i)),this.people.union(t,e,n)}),aR.prototype.remove_group=oW(function(t,e,n){var r=this.get_property(t);if(void 0!==r){var i=r.indexOf(e);i>-1&&(r.splice(i,1),this.register({group_key:r})),0===r.length&&this.unregister(t)}return this.people.remove(t,e,n)}),aR.prototype.track_with_groups=oW(function(t,e,n,r){var i=od.extend({},e||{});return od.each(n,function(t,e){null!=t&&(i[e]=t)}),this.track(t,i,r)}),aR.prototype._create_map_key=function(t,e){return t+"_"+JSON.stringify(e)},aR.prototype._remove_group_from_cache=function(t,e){delete this._cached_groups[this._create_map_key(t,e)]},aR.prototype.get_group=function(t,e){var n=this._create_map_key(t,e),r=this._cached_groups[n];return(void 0===r||r._group_key!==t||r._group_id!==e)&&((r=new as)._init(this,t,e),this._cached_groups[n]=r),r},aR.prototype.track_pageview=oW(function(t,e){"object"!=typeof t&&(t={});var n=(e=e||{}).event_name||"$mp_web_page_view",r=od.extend(od.info.mpPageViewProperties(),od.info.campaignParams(),od.info.clickParams()),i=od.extend({},r,t);return this.track(n,i)}),aR.prototype.track_links=function(){return this._track_dom.call(this,s6,arguments)},aR.prototype.track_forms=function(){return this._track_dom.call(this,s8,arguments)},aR.prototype.time_event=function(t){if(od.isUndefined(t)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(t)||this.persistence.set_event_timer(t,new Date().getTime())};var aD={persistent:!0},aN=function(t){var e;return e=od.isObject(t)?t:od.isUndefined(t)?{}:{days:t},od.extend({},aD,e)};aR.prototype.register=function(t,e){var n=aN(e);n.persistent?this.persistence.register(t,n.days):od.extend(this.unpersisted_superprops,t)},aR.prototype.register_once=function(t,e,n){var r=aN(n);r.persistent?this.persistence.register_once(t,e,r.days):(void 0===e&&(e="None"),od.each(t,function(t,n){this.unpersisted_superprops.hasOwnProperty(n)&&this.unpersisted_superprops[n]!==e||(this.unpersisted_superprops[n]=t)},this))},aR.prototype.unregister=function(t,e){(e=aN(e)).persistent?this.persistence.unregister(t):delete this.unpersisted_superprops[t]},aR.prototype._register_single=function(t,e){var n={};n[t]=e,this.register(n)},aR.prototype.identify=function(t,e,n,r,i,o,s,a){var c=this.get_distinct_id();if(t&&c!==t){if("string"==typeof t&&0===t.indexOf(ax))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:t})}this.get_property("$device_id")||this.register_once({$had_persisted_distinct_id:!0,$device_id:c},""),t!==c&&t!==this.get_property(am)&&(this.unregister(am),this.register({distinct_id:t})),this._flags.identify_called=!0,this.people._flush(e,n,r,i,o,s,a),t!==c&&this.track("$identify",{distinct_id:t,$anon_distinct_id:c},{skip_hooks:!0}),t!==c&&this.flags.fetchFlags()},aR.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var t=od.UUID();this.register_once({distinct_id:ax+t,$device_id:t},"")},aR.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},aR.prototype.alias=function(t,e){if(t===this.get_property(ag))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var n=this;return(od.isUndefined(e)&&(e=this.get_distinct_id()),t!==e)?(this._register_single(am,t),this.track("$create_alias",{alias:t,distinct_id:e},{skip_hooks:!0},function(){n.identify(t)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(t),-1)},aR.prototype.name_tag=function(t){this._register_single("mp_name_tag",t)},aR.prototype.set_config=function(t){od.isObject(t)&&(od.extend(this.config,t),t.batch_size&&od.each(this.request_batchers,function(t){t.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),i5.DEBUG=i5.DEBUG||this.get_config("debug"),("autocapture"in t||"record_heatmap_data"in t)&&this.autocapture&&this.autocapture.init())},aR.prototype.get_config=function(t){return this.config[t]},aR.prototype._run_hook=function(t){var e=(this.config.hooks[t]||aw).apply(this,i9.call(arguments,1));return void 0===e&&(this.report_error(t+" hook did not return a value"),e=null),e},aR.prototype.get_property=function(t){return this.persistence.load_prop([t])},aR.prototype.toString=function(){var t=this.get_config("name");return t!==ak&&(t=ak+"."+t),t},aR.prototype._event_is_disabled=function(t){return od.isBlockedUA(os)||this._flags.disable_all_events||od.include(this.__disabled_events,t)},aR.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&od.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config("opt_out_tracking_by_default")||od.cookie.get("mp_optout"))&&(od.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},aR.prototype._gdpr_update_persistence=function(t){var e;if(t&&t.clear_persistence)e=!0;else{if(!t||!t.enable_persistence)return;e=!1}this.get_config("disable_persistence")||this.persistence.disabled===e||this.persistence.set_disabled(e),e?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},aR.prototype._gdpr_call_func=function(t,e){return e=od.extend({track:od.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},e),od.localStorage.is_supported()||(e.persistence_type="cookie"),t(this.get_config("token"),{track:e.track,trackEventName:e.track_event_name,trackProperties:e.track_properties,persistenceType:e.persistence_type,persistencePrefix:e.cookie_prefix,cookieDomain:e.cookie_domain,cookieExpiration:e.cookie_expiration,crossSiteCookie:e.cross_site_cookie,crossSubdomainCookie:e.cross_subdomain_cookie,secureCookie:e.secure_cookie,ignoreDnt:e.ignore_dnt})},aR.prototype.opt_in_tracking=function(t){t=od.extend({enable_persistence:!0},t),this._gdpr_call_func(o$,t),this._gdpr_update_persistence(t)},aR.prototype.opt_out_tracking=function(t){(t=od.extend({clear_persistence:!0,delete_user:!0},t)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(oq,t),this._gdpr_update_persistence(t)},aR.prototype.has_opted_in_tracking=function(t){return this._gdpr_call_func(oz,t)},aR.prototype.has_opted_out_tracking=function(t){return this._gdpr_call_func(oG,t)},aR.prototype.clear_opt_in_out_tracking=function(t){t=od.extend({enable_persistence:!0},t),this._gdpr_call_func(oX,t),this._gdpr_update_persistence(t)},aR.prototype.report_error=function(t,e){of.error.apply(of.error,arguments);try{e||t instanceof Error||(t=Error(t)),this.get_config("error_reporter")(t,e)}catch(t){of.error(t)}},aR.prototype.init=aR.prototype.init,aR.prototype.reset=aR.prototype.reset,aR.prototype.disable=aR.prototype.disable,aR.prototype.time_event=aR.prototype.time_event,aR.prototype.track=aR.prototype.track,aR.prototype.track_links=aR.prototype.track_links,aR.prototype.track_forms=aR.prototype.track_forms,aR.prototype.track_pageview=aR.prototype.track_pageview,aR.prototype.register=aR.prototype.register,aR.prototype.register_once=aR.prototype.register_once,aR.prototype.unregister=aR.prototype.unregister,aR.prototype.identify=aR.prototype.identify,aR.prototype.alias=aR.prototype.alias,aR.prototype.name_tag=aR.prototype.name_tag,aR.prototype.set_config=aR.prototype.set_config,aR.prototype.get_config=aR.prototype.get_config,aR.prototype.get_property=aR.prototype.get_property,aR.prototype.get_distinct_id=aR.prototype.get_distinct_id,aR.prototype.toString=aR.prototype.toString,aR.prototype.opt_out_tracking=aR.prototype.opt_out_tracking,aR.prototype.opt_in_tracking=aR.prototype.opt_in_tracking,aR.prototype.has_opted_out_tracking=aR.prototype.has_opted_out_tracking,aR.prototype.has_opted_in_tracking=aR.prototype.has_opted_in_tracking,aR.prototype.clear_opt_in_out_tracking=aR.prototype.clear_opt_in_out_tracking,aR.prototype.get_group=aR.prototype.get_group,aR.prototype.set_group=aR.prototype.set_group,aR.prototype.add_group=aR.prototype.add_group,aR.prototype.remove_group=aR.prototype.remove_group,aR.prototype.track_with_groups=aR.prototype.track_with_groups,aR.prototype.start_batch_senders=aR.prototype.start_batch_senders,aR.prototype.stop_batch_senders=aR.prototype.stop_batch_senders,aR.prototype.start_session_recording=aR.prototype.start_session_recording,aR.prototype.stop_session_recording=aR.prototype.stop_session_recording,aR.prototype.pause_session_recording=aR.prototype.pause_session_recording,aR.prototype.resume_session_recording=aR.prototype.resume_session_recording,aR.prototype.get_session_recording_properties=aR.prototype.get_session_recording_properties,aR.prototype.get_session_replay_url=aR.prototype.get_session_replay_url,aR.prototype.get_tab_id=aR.prototype.get_tab_id,aR.prototype.DEFAULT_API_ROUTES=aT,aR.prototype.__get_recorder=aR.prototype.__get_recorder,a_.prototype.properties=a_.prototype.properties,a_.prototype.update_search_keyword=a_.prototype.update_search_keyword,a_.prototype.update_referrer_info=a_.prototype.update_referrer_info,a_.prototype.get_cross_subdomain=a_.prototype.get_cross_subdomain,a_.prototype.clear=a_.prototype.clear;var aP={},aL=function(){od.each(aP,function(t,e){e!==ak&&(v[e]=t)}),v._=od},aF=(ab=function(t,e){e()},y=0,(v=new aR).init=function(t,e,n){if(n)return v[n]||(v[n]=aP[n]=aM(t,e,n),v[n]._loaded()),v[n];var r=v;aP[ak]?r=aP[ak]:t&&((r=aM(t,e,ak))._loaded(),aP[ak]=r),v=r,1===y&&(iy[ak]=v),aL()},v.init(),function(){function t(){t.done||(t.done=!0,aA=!0,aE=!1,od.each(aP,function(t){t._dom_loaded()}))}if(or.addEventListener)"complete"===or.readyState?t():or.addEventListener("DOMContentLoaded",t,!1);else if(or.attachEvent){or.attachEvent("onreadystatechange",t);var e=!1;try{e=null===iy.frameElement}catch(t){}or.documentElement.doScroll&&e&&function e(){try{or.documentElement.doScroll("left")}catch(t){setTimeout(e,1);return}t()}()}od.register_event(iy,"load",t,!0)}(),v);aF.init("e0a68e5ff96c4dfa754aa1f2f58fb62e",{debug:!1,ignore_dnt:!0});var aj=aF},314:function(t,e,n){"use strict";n.d(e,{ZP:function(){return a}});var r=n(5893);n(639);var i=t=>{let{pixelIds:e,primaryPixelId:n,fbAt:i}=t;var o=[];return o.push((0,r.jsx)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:"\n // Check if Facebook Pixel is already loaded\n if(typeof fbq === 'undefined') {\n !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;\n n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;\n t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,\n document,'script','https://connect.facebook.net/en_US/fbevents.js');\n }\n\n // Initialize pixels after SDK loads\n if(typeof fbq !== 'undefined') {\n try {\n fbq('consent', 'grant')\n \n // Initialize tracking for loaded pixels\n window.initializedPixels = window.initializedPixels || new Set();\n \n // Initialize user pixels if provided\n ".concat(e&&e.length>0?e.map(t=>"fbq('init', '"+t+"');\n window.initializedPixels.add('"+t+"');").join("\n "):"// No user pixel IDs provided","\n } catch (error) {\n console.error('Facebook Pixel initialization error:', error);\n }\n }\n\n // Set global variables for server-side tracking\n window.fbAt = ").concat(i?"'".concat(i,"'"):null,";\n window.fbPixelIds = ").concat(e&&e.length>0?JSON.stringify(e):null,";\n window.fbPrimaryPixelId = ").concat(n?"'".concat(n,"'"):null,";\n \n // Global function to dynamically initialize additional pixels\n window.initializeFacebookPixels = function(tracking) {\n if (typeof window !== 'undefined' && window.fbq && tracking) {\n const { facebook_pixels, primary_ads_pixel, facebook_pixel_conversions_api_access_token } = tracking;\n \n if (facebook_pixels && facebook_pixels.length > 0) {\n try {\n // Keep track of already initialized pixels to prevent duplicates\n window.initializedPixels = window.initializedPixels || new Set();\n \n facebook_pixels.forEach(pixelId => {\n if (!window.initializedPixels.has(pixelId)) {\n window.fbq('init', pixelId);\n window.initializedPixels.add(pixelId);\n } else {\n console.log('Facebook pixel already initialized:', pixelId);\n }\n });\n\n // Update global variables\n window.fbAt = facebook_pixel_conversions_api_access_token || null;\n window.fbPixelIds = facebook_pixels;\n window.fbPrimaryPixelId = primary_ads_pixel || null;\n } catch (error) {\n console.error('Error dynamically initializing Facebook pixels:', error);\n }\n }\n } else {\n console.warn('Facebook Pixel SDK not loaded or tracking data missing');\n }\n };\n ")}},"facebook-pixel-script")),o},o=t=>{let{id:e}=t;var n=[];return n.push((0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("script",{src:"https://www.googletagmanager.com/gtag/js?id=".concat(e)}),(0,r.jsx)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:"\n var gtagId = '".concat(e,"'\n if(gtagId && gtagId !== \"\") {\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', gtagId);\n }\n ")}})]})),n},s=t=>{let{id:e}=t;var n=[];return n.push((0,r.jsx)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:'\n \n !function (w, d, t) {\n w.TiktokAnalyticsObject=t;var ttq=w[t]=w[t]||[];ttq.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie"],ttq.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};for(var i=0;i{let{facebook_pixels:e=[],google_analytics:n="",tiktok_pixel:a="",primary_ads_pixel:c=null,facebook_pixel_conversions_api_access_token:u=null}=t;return(0,r.jsxs)(r.Fragment,{children:[a&&(0,r.jsx)(s,{id:a}),(0,r.jsx)(i,{pixelIds:e,primaryPixelId:c,fbAt:u}),(0,r.jsx)(o,{id:n})]})}},1437:function(t,e,n){"use strict";let r,i,o,s,a,c,u,l,p,h,d,f,g,m;n.r(e),n.d(e,{default:function(){return n1}});var y=n(5893);n(3434);var v=n(314),_=n(9008),b=n.n(_),w=n(7294),k=n(2343),S=n(2844),x=n(7321),C=n(1703),E=n(1195),I=n(5659);let T=[];function O(t,e){for(let n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function A(t,e,n){if(n[e.name]){C.X&&k.kg.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,-1===T.indexOf(e.name)&&(e.setupOnce(E.cc,I.Gd),T.push(e.name)),e.setup&&"function"==typeof e.setup&&e.setup(t),t.on&&"function"==typeof e.preprocessEvent){let n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(e,r)=>n(e,r,t))}if(t.addEventProcessor&&"function"==typeof e.processEvent){let n=e.processEvent.bind(e),r=Object.assign((e,r)=>n(e,r,t),{id:e.name});t.addEventProcessor(r)}C.X&&k.kg.log(`Integration installed: ${e.name}`)}function R(t,e){return Object.assign(function(...t){return e(...t)},{id:t})}let M=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],D=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],N="InboundFilters",P=(t={})=>({name:N,setupOnce(){},processEvent:(e,n,r)=>{var i,o;return((i=function(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:M],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:D],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(t,r.getOptions())).ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(e)?(C.X&&k.kg.warn(`Event dropped due to being internal Sentry Error. Event: ${(0,S.jH)(e)}`),0):(o=i.ignoreErrors,!e.type&&o&&o.length&&(function(t){let e;let n=[];t.message&&n.push(t.message);try{e=t.exception.values[t.exception.values.length-1]}catch(t){}return e&&e.value&&(n.push(e.value),e.type&&n.push(`${e.type}: ${e.value}`)),C.X&&0===n.length&&k.kg.error(`Could not extract message for event ${(0,S.jH)(t)}`),n})(e).some(t=>(0,x.U0)(t,o)))?(C.X&&k.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${(0,S.jH)(e)}`),0):!function(t,e){if("transaction"!==t.type||!e||!e.length)return!1;let n=t.transaction;return!!n&&(0,x.U0)(n,e)}(e,i.ignoreTransactions)?!function(t,e){if(!e||!e.length)return!1;let n=L(t);return!!n&&(0,x.U0)(n,e)}(e,i.denyUrls)?function(t,e){if(!e||!e.length)return!0;let n=L(t);return!n||(0,x.U0)(n,e)}(e,i.allowUrls)||(C.X&&k.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${(0,S.jH)(e)}. Url: ${L(e)}`),0):(C.X&&k.kg.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${(0,S.jH)(e)}. Url: ${L(e)}`),0):(C.X&&k.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. Event: ${(0,S.jH)(e)}`),0))?e:null}});function L(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?function(t=[]){for(let e=t.length-1;e>=0;e--){let n=t[e];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(e):null}catch(e){return C.X&&k.kg.error(`Cannot extract url for event ${(0,S.jH)(t)}`),null}}R(N,P);var F=n(535),j=n(4487);let U="FunctionToString",B=new WeakMap,$=()=>({name:U,setupOnce(){r=Function.prototype.toString;try{Function.prototype.toString=function(...t){let e=(0,F.HK)(this),n=B.has((0,j.s3)())&&void 0!==e?e:this;return r.apply(n,t)}}catch(t){}},setup(t){B.set(t,!0)}});R(U,$);var q=n(360),z=n(3897),G=n(1235);let W=(0,G.R)();function J(){if(!("fetch"in W))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function H(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}let X=(0,G.R)();var Y=n(9729);let V=G.GLOBAL_OBJ;function Z(t){let e="history";(0,Y.Hj)(e,t),(0,Y.D2)(e,K)}function K(){if(!function(){let t=X.chrome,e=t&&t.app&&t.app.runtime,n="history"in X&&!!X.history.pushState&&!!X.history.replaceState;return!e&&n}())return;let t=V.onpopstate;function e(t){return function(...e){let n=e.length>2?e[2]:void 0;if(n){let t=i,e=String(n);i=e,(0,Y.rK)("history",{from:t,to:e})}return t.apply(this,e)}}V.onpopstate=function(...e){let n=V.location.href,r=i;if(i=n,(0,Y.rK)("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch(t){}},(0,F.hl)(V.history,"pushState",e),(0,F.hl)(V.history,"replaceState",e)}let Q=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function tt(t,e=!1){let{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${s}`}function te(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}var tn=n(7597),tr=n(6893),ti=n(4754);function to(t,e=[]){return[t,e]}function ts(t,e){for(let n of t[1]){let t=n[0].type;if(e(n,t))return!0}return!1}function ta(t,e){return(e||new TextEncoder).encode(t)}let tc={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function tu(t){if(!t||!t.sdk)return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}class tl extends Error{constructor(t,e="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}}var tp=n(9015),th=n(454),td=n(8942);let tf="Not capturing exception because it's already been captured.";class tg{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=function(t){let e="string"==typeof t?function(t){let e=Q.exec(t);if(!e){(0,k.Cf)(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}let[n,r,i="",o,s="",a]=e.slice(1),c="",u=a,l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){let t=u.match(/^\d+/);t&&(u=t[0])}return te({host:o,pass:i,path:c,projectId:u,port:s,protocol:n,publicKey:r})}(t):te(t);if(e&&function(t){if(!z.X)return!0;let{port:e,projectId:n,protocol:r}=t;return!["protocol","publicKey","host","projectId"].find(e=>!t[e]&&(k.kg.error(`Invalid Sentry Dsn: ${e} missing`),!0))&&(n.match(/^\d+$/)?"http"===r||"https"===r?!(e&&isNaN(parseInt(e,10)))||(k.kg.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):(k.kg.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(k.kg.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(e))return e}(t.dsn):C.X&&k.kg.warn("No DSN provided, client will not send events."),this._dsn){let e=function(t,e={}){let n="string"==typeof e?e:e.tunnel,r="string"!=typeof e&&e._metadata?e._metadata.sdk:void 0;return n||`${function(t){let e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}(t)}${t.projectId}/envelope/?${(0,F._j)({sentry_key:t.publicKey,sentry_version:"7",...r&&{sentry_client:`${r.name}/${r.version}`}})}`}(this._dsn,t);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}}captureException(t,e,n){if((0,S.YO)(t)){C.X&&k.kg.log(tf);return}let r=e&&e.event_id;return this._process(this.eventFromException(t,e).then(t=>this._captureEvent(t,e,n)).then(t=>{r=t})),r}captureMessage(t,e,n,r){let i=n&&n.event_id,o=(0,tn.Le)(t)?t:String(t),s=(0,tn.pt)(t)?this.eventFromMessage(o,e,n):this.eventFromException(t,n);return this._process(s.then(t=>this._captureEvent(t,n,r)).then(t=>{i=t})),i}captureEvent(t,e,n){if(e&&e.originalException&&(0,S.YO)(e.originalException)){C.X&&k.kg.log(tf);return}let r=e&&e.event_id,i=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,e,i||n).then(t=>{r=t})),r}captureSession(t){"string"!=typeof t.release?C.X&&k.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),(0,tp.CT)(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){let e=this._transport;return e?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(n=>e.flush(t).then(t=>n&&t))):(0,tr.WD)(!0)}close(t){return this.flush(t).then(t=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),t))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(e){return C.X&&k.kg.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){let e=this._integrations[t.name];A(this,t,this._integrations),e||O(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=function(t,e,n,r){var i;let o=tu(n),s=t.type&&"replay_event"!==t.type?t.type:"event";(i=n&&n.sdk)&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||i.name,t.sdk.version=t.sdk.version||i.version,t.sdk.integrations=[...t.sdk.integrations||[],...i.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...i.packages||[]]);let a=function(t,e,n,r){let i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:tt(r)},...i&&{trace:(0,F.Jr)({...i})}}}(t,o,r,e);return delete t.sdkProcessingMetadata,to(a,[[{type:s},t]])}(t,this._dsn,this._options._metadata,this._options.tunnel);for(let t of e.attachments||[])n=function(t,e){let[n,r]=t;return[n,[...r,e]]}(n,function(t,e){let n="string"==typeof t.data?ta(t.data,e):t.data;return[(0,F.Jr)({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}(t,this._options.transportOptions&&this._options.transportOptions.textEncoder));let r=this._sendEnvelope(n);r&&r.then(e=>this.emit("afterSendEvent",t,e),null)}sendSession(t){let e=function(t,e,n,r){let i=tu(n);return to({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&e&&{dsn:tt(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}recordDroppedEvent(t,e,n){if(this._options.sendClientReports){let r="number"==typeof n?n:1,i=`${t}:${e}`;C.X&&k.kg.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}captureAggregateMetrics(t){C.X&&k.kg.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);let e=function(t,e,n,r){let i={sent_at:new Date().toISOString()};return n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&e&&(i.dsn=tt(e)),to(i,[function(t){let e=function(t){let e="";for(let n of t){let t=Object.entries(n.tags),r=t.length>0?`|#${t.map(([t,e])=>`${t}:${e}`).join(",")}`:"";e+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp} `}return e}(t);return[{type:"statsd",length:e.length},e]}(t)])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}on(t,e){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(e)}emit(t,...e){this._hooks[t]&&this._hooks[t].forEach(t=>t(...e))}_setupIntegrations(){let{integrations:t}=this._options;this._integrations=function(t,e){let n={};return e.forEach(e=>{e&&A(t,e,n)}),n}(this,t),O(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,e){let n=!1,r=!1,i=e.exception&&e.exception.values;if(i)for(let t of(r=!0,i)){let e=t.mechanism;if(e&&!1===e.handled){n=!0;break}}let o="ok"===t.status;(o&&0===t.errors||o&&n)&&((0,tp.CT)(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new tr.cW(e=>{let n=0,r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),e(!0)):(n+=1,t&&n>=t&&(clearInterval(r),e(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(t,e,n,r=(0,I.aF)()){let i=this.getOptions(),o=Object.keys(this._integrations);return!e.integrations&&o.length>0&&(e.integrations=o),this.emit("preprocessEvent",t,e),(0,td.R)(i,t,e,n,this,r).then(t=>{if(null===t)return t;let e={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(t.contexts&&t.contexts.trace)&&e){let{traceId:r,spanId:i,parentSpanId:o,dsc:s}=e;t.contexts={trace:{trace_id:r,span_id:i,parent_span_id:o},...t.contexts};let a=s||(0,th._)(r,this,n);t.sdkProcessingMetadata={dynamicSamplingContext:a,...t.sdkProcessingMetadata}}return t})}_captureEvent(t,e={},n){return this._processEvent(t,e,n).then(t=>t.event_id,t=>{C.X&&("log"===t.logLevel?k.kg.log(t.message):k.kg.warn(t))})}_processEvent(t,e,n){let r=this.getOptions(),{sampleRate:i}=r,o=ty(t),s=tm(t),a=t.type||"error",c=`before send for type \`${a}\``;if(s&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),(0,tr.$2)(new tl(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let u="replay_event"===a?"replay":a,l=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,e,n,l).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,t),new tl("An event processor returned `null`, will not send event.","log");return e.data&&!0===e.data.__sentry__?n:function(t,e){let n=`${e} must return \`null\` or a valid event.`;if((0,tn.J8)(t))return t.then(t=>{if(!(0,tn.PO)(t)&&null!==t)throw new tl(n);return t},t=>{throw new tl(`${e} rejected with ${t}`)});if(!(0,tn.PO)(t)&&null!==t)throw new tl(n);return t}(function(t,e,n){let{beforeSend:r,beforeSendTransaction:i}=t;if(tm(e)&&r)return r(e,n);if(ty(e)&&i){if(e.spans){let t=e.spans.length;e.sdkProcessingMetadata={...e.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return i(e,n)}return e}(r,n,e),c)}).then(r=>{if(null===r){if(this.recordDroppedEvent("before_send",u,t),o){let e=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",e)}throw new tl(`${c} returned \`null\`, will not send event.`,"log")}let i=n&&n.getSession();if(!o&&i&&this._updateSessionFromEvent(i,r),o){let t=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}let s=r.transaction_info;return o&&s&&r.transaction!==t.transaction&&(r.transaction_info={...s,source:"custom"}),this.sendEvent(r,e),r}).then(null,t=>{if(t instanceof tl)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new tl(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. Reason: ${t}`)})}_process(t){this._numProcessing++,t.then(t=>(this._numProcessing--,t),t=>(this._numProcessing--,t))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,t=>{C.X&&k.kg.error("Error while sending event:",t)});C.X&&k.kg.error("Transport disabled")}_clearOutcomes(){let t=this._outcomes;return this._outcomes={},Object.keys(t).map(e=>{let[n,r]=e.split(":");return{reason:n,category:r,quantity:t[e]}})}}function tm(t){return void 0===t.type}function ty(t){return"transaction"===t.type}var tv=n(105);function t_(t,e,n=[e],r="npm"){let i=t._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${e}`,packages:n.map(t=>({name:`${r}:@sentry/${t}`,version:tv.J})),version:tv.J}),t._metadata=i}var tb=n(8518),tw=n(1170);let tk="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function tS(t,e){let n=tC(t,e),r={type:e&&e.name,value:function(t){let e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function tx(t,e){return{exception:{values:[tS(t,e)]}}}function tC(t,e){let n=e.stacktrace||e.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(tE.test(t.message))return 1}return 0}(e);try{return t(n,r)}catch(t){}return[]}let tE=/Minified React error #\d+;/i;function tI(t,e,n,r,i){let o;if((0,tn.VW)(e)&&e.error)return tx(t,e.error);if((0,tn.TX)(e)||(0,tn.fm)(e)){if("stack"in e)o=tx(t,e);else{let i=e.name||((0,tn.TX)(e)?"DOMError":"DOMException"),s=e.message?`${i}: ${e.message}`:i;o=tT(t,s,n,r),(0,S.Db)(o,s)}return"code"in e&&(o.tags={...o.tags,"DOMException.code":`${e.code}`}),o}return(0,tn.VZ)(e)?tx(t,e):((0,tn.PO)(e)||(0,tn.cO)(e)?o=function(t,e,n,r){let i=(0,j.s3)(),o=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:(0,tn.cO)(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:function(t,{isUnhandledRejection:e}){let n=(0,F.zf)(t),r=e?"promise rejection":"exception";if((0,tn.VW)(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if((0,tn.cO)(t)){let e=function(t){try{let e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch(t){}}(t);return`Event \`${e}\` (type=${t.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(e,{isUnhandledRejection:r})}]},extra:{__serialized__:(0,ti.Qy)(e,o)}};if(n){let e=tC(t,n);e.length&&(s.exception.values[0].stacktrace={frames:e})}return s}(t,e,n,i):(o=tT(t,e,n,r),(0,S.Db)(o,`${e}`,void 0)),(0,S.EG)(o,{synthetic:!0}),o)}function tT(t,e,n,r){let i={};if(r&&n){let r=tC(t,n);r.length&&(i.exception={values:[{value:e,stacktrace:{frames:r}}]})}if((0,tn.Le)(e)){let{__sentry_template_string__:t,__sentry_template_values__:n}=e;return i.logentry={message:t,params:n},i}return i.message=e,i}let tO=G.GLOBAL_OBJ,tA=0;function tR(t,e={},n){if("function"!=typeof t)return t;try{let e=t.__sentry_wrapped__;if(e){if("function"==typeof e)return e;return t}if((0,F.HK)(t))return t}catch(e){return t}let r=function(){let r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);let i=r.map(t=>tR(t,e));return t.apply(this,i)}catch(t){throw tA++,setTimeout(()=>{tA--}),(0,j.$e)(n=>{n.addEventProcessor(t=>(e.mechanism&&((0,S.Db)(t,void 0,void 0),(0,S.EG)(t,e.mechanism)),t.extra={...t.extra,arguments:r},t)),(0,j.Tb)(t)}),t}};try{for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}catch(t){}(0,F.$Q)(r,t),(0,F.xp)(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>t.name})}catch(t){}return r}class tM extends tg{constructor(t){t_(t,"browser",["browser"],tO.SENTRY_SDK_SOURCE||(0,tb.S)()),super(t),t.sendClientReports&&tO.document&&tO.document.addEventListener("visibilitychange",()=>{"hidden"===tO.document.visibilityState&&this._flushOutcomes()})}eventFromException(t,e){return function(t,e,n,r){let i=tI(t,e,n&&n.syntheticException||void 0,r);return(0,S.EG)(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),(0,tr.WD)(i)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",r,i){let o=tT(t,e,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),(0,tr.WD)(o)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){tk&&k.kg.warn("SDK not enabled, will not capture user feedback.");return}let e=function(t,{metadata:e,tunnel:n,dsn:r}){return to({event_id:t.event_id,sent_at:new Date().toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!r&&{dsn:tt(r)}},[[{type:"user_report"},t]])}(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(e)}_prepareEvent(t,e,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n)}_flushOutcomes(){var t;let e=this._clearOutcomes();if(0===e.length){tk&&k.kg.log("No outcomes to send");return}if(!this._dsn){tk&&k.kg.log("No dsn provided, will not send outcomes");return}tk&&k.kg.log("Sending outcomes:",e);let n=to((t=this._options.tunnel&&tt(this._dsn))?{dsn:t}:{},[[{type:"client_report"},{timestamp:(0,tw.yW)(),discarded_events:e}]]);this._sendEnvelope(n)}}function tD(){"console"in G.GLOBAL_OBJ&&k.RU.forEach(function(t){t in G.GLOBAL_OBJ.console&&(0,F.hl)(G.GLOBAL_OBJ.console,t,function(e){return k.LD[t]=e,function(...e){(0,Y.rK)("console",{args:e,level:t});let n=k.LD[t];n&&n.apply(G.GLOBAL_OBJ.console,e)}})})}let tN=G.GLOBAL_OBJ;function tP(){if(!tN.document)return;let t=Y.rK.bind(null,"dom"),e=tL(t,!0);tN.document.addEventListener("click",e,!1),tN.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(e=>{let n=tN[e]&&tN[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,F.hl)(n,"addEventListener",function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){let r=tL(t);o.handler=r,e.call(this,n,r,i)}o.refCount++}catch(t){}return e.call(this,n,r,i)}}),(0,F.hl)(n,"removeEventListener",function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[e];i&&(i.refCount--,i.refCount<=0&&(t.call(this,e,i.handler,r),i.handler=void 0,delete n[e]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,r)}}))})}function tL(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;let r=function(t){try{return t.target}catch(t){return null}}(n);if("keypress"===n.type&&(!r||!r.tagName||"INPUT"!==r.tagName&&"TEXTAREA"!==r.tagName&&!r.isContentEditable))return;(0,F.xp)(n,"_sentryCaptured",!0),r&&!r._sentryId&&(0,F.xp)(r,"_sentryId",(0,S.DM)());let i="keypress"===n.type?"input":n.type;!function(t){if(t.type!==s)return!1;try{if(!t.target||t.target._sentryId!==a)return!1}catch(t){}return!0}(n)&&(t({event:n,name:i,global:e}),s=n.type,a=r?r._sentryId:void 0),clearTimeout(o),o=tN.setTimeout(()=>{a=void 0,s=void 0},1e3)}}let tF=G.GLOBAL_OBJ,tj="__sentry_xhr_v3__";function tU(t){(0,Y.Hj)("xhr",t),(0,Y.D2)("xhr",tB)}function tB(){if(!tF.XMLHttpRequest)return;let t=XMLHttpRequest.prototype;(0,F.hl)(t,"open",function(t){return function(...e){let n=Date.now(),r=(0,tn.HD)(e[0])?e[0].toUpperCase():void 0,i=function(t){if((0,tn.HD)(t))return t;try{return t.toString()}catch(t){}}(e[1]);if(!r||!i)return t.apply(this,e);this[tj]={method:r,url:i,request_headers:{}},"POST"===r&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let o=()=>{let t=this[tj];if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}let e={args:[r,i],endTimestamp:Date.now(),startTimestamp:n,xhr:this};(0,Y.rK)("xhr",e)}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,F.hl)(this,"onreadystatechange",function(t){return function(...e){return o(),t.apply(this,e)}}):this.addEventListener("readystatechange",o),(0,F.hl)(this,"setRequestHeader",function(t){return function(...e){let[n,r]=e,i=this[tj];return i&&(0,tn.HD)(n)&&(0,tn.HD)(r)&&(i.request_headers[n.toLowerCase()]=r),t.apply(this,e)}}),t.apply(this,e)}}),(0,F.hl)(t,"send",function(t){return function(...e){let n=this[tj];if(!n)return t.apply(this,e);void 0!==e[0]&&(n.body=e[0]);let r={args:[n.method,n.url],startTimestamp:Date.now(),xhr:this};return(0,Y.rK)("xhr",r),t.apply(this,e)}})}function t$(t){let e="fetch";(0,Y.Hj)(e,t),(0,Y.D2)(e,tq)}function tq(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!J())return!1;if(H(W.fetch))return!0;let t=!1,e=W.document;if(e&&"function"==typeof e.createElement)try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=H(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){z.X&&k.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t})()&&(0,F.hl)(G.GLOBAL_OBJ,"fetch",function(t){return function(...e){let{method:n,url:r}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){let[e,n]=t;return{url:tG(e),method:tz(n,"method")?String(n.method).toUpperCase():"GET"}}let e=t[0];return{url:tG(e),method:tz(e,"method")?String(e.method).toUpperCase():"GET"}}(e),i={args:e,fetchData:{method:n,url:r},startTimestamp:Date.now()};return(0,Y.rK)("fetch",{...i}),t.apply(G.GLOBAL_OBJ,e).then(t=>{let e={...i,endTimestamp:Date.now(),response:t};return(0,Y.rK)("fetch",e),t},t=>{let e={...i,endTimestamp:Date.now(),error:t};throw(0,Y.rK)("fetch",e),t})}})}function tz(t,e){return!!t&&"object"==typeof t&&!!t[e]}function tG(t){return"string"==typeof t?t:t?tz(t,"url")?t.url:t.toString?t.toString():"":""}var tW=n(8464);let tJ=["fatal","error","warning","log","info","debug"];function tH(t){if(!t)return{};let e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};let n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}function tX(t){return t.split(/[\?#]/,1)[0]}function tY(t){return t.split(/\\?\//).filter(t=>t.length>0&&","!==t).length}let tV="Breadcrumbs",tZ=(t={})=>{let e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:tV,setupOnce(){},setup(t){var n,r;e.console&&function(t){let e="console";(0,Y.Hj)(e,t),(0,Y.D2)(e,tD)}(function(e){var n;if((0,j.s3)()!==t)return;let r={category:"console",data:{arguments:e.args,logger:"console"},level:"warn"===(n=e.level)?"warning":tJ.includes(n)?n:"log",message:(0,x.nK)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;r.message=`Assertion failed: ${(0,x.nK)(e.args.slice(1)," ")||"console.assert"}`,r.data.arguments=e.args.slice(1)}(0,j.n_)(r,{input:e.args,level:e.level})}),e.dom&&(r=e.dom,n=function(e){let n,i;if((0,j.s3)()!==t)return;let o="object"==typeof r?r.serializeAttribute:void 0,s="object"==typeof r&&"number"==typeof r.maxStringLength?r.maxStringLength:void 0;s&&s>1024&&(tk&&k.kg.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=1024),"string"==typeof o&&(o=[o]);try{let t=e.event,r=t&&t.target?t.target:t;n=(0,tW.Rt)(r,{keyAttrs:o,maxStringLength:s}),i=(0,tW.iY)(r)}catch(t){n=""}if(0===n.length)return;let a={category:`ui.${e.name}`,message:n};i&&(a.data={"ui.component_name":i}),(0,j.n_)(a,{event:e.event,name:e.name,global:e.global})},(0,Y.Hj)("dom",n),(0,Y.D2)("dom",tP)),e.xhr&&tU(function(e){if((0,j.s3)()!==t)return;let{startTimestamp:n,endTimestamp:r}=e,i=e.xhr[tj];if(!n||!r||!i)return;let{method:o,url:s,status_code:a,body:c}=i,u={xhr:e.xhr,input:c,startTimestamp:n,endTimestamp:r};(0,j.n_)({category:"xhr",data:{method:o,url:s,status_code:a},type:"http"},u)}),e.fetch&&t$(function(e){if((0,j.s3)()!==t)return;let{startTimestamp:n,endTimestamp:r}=e;if(!(!r||e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method)){if(e.error){let t=e.fetchData,i={data:e.error,input:e.args,startTimestamp:n,endTimestamp:r};(0,j.n_)({category:"fetch",data:t,level:"error",type:"http"},i)}else{let t=e.response,i={...e.fetchData,status_code:t&&t.status},o={input:e.args,response:t,startTimestamp:n,endTimestamp:r};(0,j.n_)({category:"fetch",data:i,type:"http"},o)}}}),e.history&&Z(function(e){if((0,j.s3)()!==t)return;let n=e.from,r=e.to,i=tH(tO.location.href),o=n?tH(n):void 0,s=tH(r);o&&o.path||(o=i),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),(0,j.n_)({category:"navigation",data:{from:n,to:r}})}),e.sentry&&t.on&&t.on("beforeSendEvent",function(e){(0,j.s3)()===t&&(0,j.n_)({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:(0,S.jH)(e)},{event:e})})}}};R(tV,tZ);let tK="Dedupe",tQ=()=>{let t;return{name:tK,setupOnce(){},processEvent(e){if(e.type)return e;try{var n;if((n=t)&&(function(t,e){let n=t.message,r=e.message;return!!((n||r)&&(!n||r)&&(n||!r)&&n===r&&t1(t,e)&&t0(t,e))}(e,n)||function(t,e){let n=t2(e),r=t2(t);return!!(n&&r&&n.type===r.type&&n.value===r.value&&t1(t,e)&&t0(t,e))}(e,n)))return tk&&k.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){}return t=e}}};function t0(t,e){let n=t3(t),r=t3(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let t=0;t{let e={onerror:!0,onunhandledrejection:!0,...t};return{name:t6,setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&((0,t5.V)(e=>{let{stackParser:n,attachStacktrace:r}=et();if((0,j.s3)()!==t||tA>0)return;let{msg:i,url:o,line:s,column:a,error:c}=e,u=void 0===c&&(0,tn.HD)(i)?function(t,e,n,r){let i=(0,tn.VW)(t)?t.message:t,o="Error",s=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return s&&(o=s[1],i=s[2]),t9({exception:{values:[{type:o,value:i}]}},e,n,r)}(i,o,s,a):t9(tI(n,c||i,void 0,r,!1),o,s,a);u.level="error",(0,j.eN)(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})}),t7("onerror")),e.onunhandledrejection&&((0,t4.h)(e=>{let{stackParser:n,attachStacktrace:r}=et();if((0,j.s3)()!==t||tA>0)return;let i=function(t){if((0,tn.pt)(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(t){}return t}(e),o=(0,tn.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:tI(n,i,void 0,r,!0);o.level="error",(0,j.eN)(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}),t7("onunhandledrejection"))}}};function t9(t,e,n,r){let i=t.exception=t.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,p=(0,tn.HD)(e)&&e.length>0?e:(0,tW.l4)();return 0===c.length&&c.push({colno:u,filename:p,function:"?",in_app:!0,lineno:l}),t}function t7(t){tk&&k.kg.log(`Global Handler attached: ${t}`)}function et(){let t=(0,j.s3)();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}R(t6,t8);let ee="HttpContext",en=()=>({name:ee,setupOnce(){},preprocessEvent(t){if(!tO.navigator&&!tO.location&&!tO.document)return;let e=t.request&&t.request.url||tO.location&&tO.location.href,{referrer:n}=tO.document||{},{userAgent:r}=tO.navigator||{},i={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...t.request,...e&&{url:e},headers:i};t.request=o}});function er(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,..."AggregateError"===t.type&&{is_exception_group:!0},exception_id:e}}function ei(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}R(ee,en);let eo="LinkedErrors",es=(t={})=>{let e=t.limit||5,n=t.key||"cause";return{name:eo,setupOnce(){},preprocessEvent(t,r,i){let o=i.getOptions();!function(t,e,n=250,r,i,o,s){if(!o.exception||!o.exception.values||!s||!(0,tn.V9)(s.originalException,Error))return;let a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=(function t(e,n,r,i,o,s,a,c){if(s.length>=r+1)return s;let u=[...s];if((0,tn.V9)(i[o],Error)){er(a,c);let s=e(n,i[o]),l=u.length;ei(s,o,l,c),u=t(e,n,r,i[o],o,[s,...u],s,l)}return Array.isArray(i.errors)&&i.errors.forEach((i,s)=>{if((0,tn.V9)(i,Error)){er(a,c);let l=e(n,i),p=u.length;ei(l,`errors[${s}]`,p,c),u=t(e,n,r,i,o,[l,...u],l,p)}}),u})(t,e,i,s.originalException,r,o.exception.values,a,0).map(t=>(t.value&&(t.value=(0,x.$G)(t.value,n)),t)))}(tS,o.stackParser,o.maxValueLength,n,e,t,r)}}};R(eo,es);let ea=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],ec="TryCatch",eu=(t={})=>{let e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:ec,setupOnce(){e.setTimeout&&(0,F.hl)(tO,"setTimeout",el),e.setInterval&&(0,F.hl)(tO,"setInterval",el),e.requestAnimationFrame&&(0,F.hl)(tO,"requestAnimationFrame",ep),e.XMLHttpRequest&&"XMLHttpRequest"in tO&&(0,F.hl)(XMLHttpRequest.prototype,"send",eh);let t=e.eventTarget;t&&(Array.isArray(t)?t:ea).forEach(ed)}}};function el(t){return function(...e){let n=e[0];return e[0]=tR(n,{mechanism:{data:{function:(0,q.$P)(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function ep(t){return function(e){return t.apply(this,[tR(e,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,q.$P)(t)},handled:!1,type:"instrument"}})])}}function eh(t){return function(...e){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(t=>{t in n&&"function"==typeof n[t]&&(0,F.hl)(n,t,function(e){let n={mechanism:{data:{function:t,handler:(0,q.$P)(e)},handled:!1,type:"instrument"}},r=(0,F.HK)(e);return r&&(n.mechanism.data.handler=(0,q.$P)(r)),tR(e,n)})}),t.apply(this,e)}}function ed(t){let e=tO[t]&&tO[t].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&((0,F.hl)(e,"addEventListener",function(e){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=tR(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,q.$P)(r),target:t},handled:!1,type:"instrument"}}))}catch(t){}return e.apply(this,[n,tR(r,{mechanism:{data:{function:"addEventListener",handler:(0,q.$P)(r),target:t},handled:!1,type:"instrument"}}),i])}}),(0,F.hl)(e,"removeEventListener",function(t){return function(e,n,r){try{let i=n&&n.__sentry_wrapped__;i&&t.call(this,e,i,r)}catch(t){}return t.call(this,e,n,r)}}))}function ef(t,e,n,r){let i={filename:t,function:e,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}R(ec,eu);let eg=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,em=/\((\S*)(?::(\d+))(?::(\d+))\)/,ey=[30,t=>{let e=eg.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){let t=em.exec(e[2]);t&&(e[2]=t[1],e[3]=t[2],e[4]=t[3])}let[t,n]=eS(e[1]||"?",e[2]);return ef(n,t,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],ev=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,e_=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,eb=[50,t=>{let e=ev.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){let t=e_.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||"?";return[n,t]=eS(n,t),ef(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],ew=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ek=(0,q.pE)(ey,eb,[40,t=>{let e=ew.exec(t);return e?ef(e[2],e[1]||"?",+e[3],e[4]?+e[4]:void 0):void 0}]),eS=(t,e)=>{let n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:"?",n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};function ex(t,e,n=function(t){let e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(r){if(!(void 0===t||e.lengthn(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(t){return new tr.cW((n,r)=>{let i=e.length;if(!i)return n(!0);let o=setTimeout(()=>{t&&t>0&&n(!1)},t);e.forEach(t=>{(0,tr.WD)(t).then(()=>{--i||(clearTimeout(o),n(!0))},r)})})}}}(t.bufferSize||30)){let r={};function i(i){let o=[];if(ts(i,(e,n)=>{let i=tc[n];if(function(t,e,n=Date.now()){return(t[e]||t.all||0)>n}(r,i)){let r=eC(e,n);t.recordDroppedEvent("ratelimit_backoff",i,r)}else o.push(e)}),0===o.length)return(0,tr.WD)();let s=to(i[0],o),a=e=>{ts(s,(n,r)=>{let i=eC(n,r);t.recordDroppedEvent(e,tc[r],i)})};return n.add(()=>e({body:function(t,e){let[n,r]=t,i=JSON.stringify(n);function o(t){"string"==typeof i?i="string"==typeof t?i+t:[ta(i,e),t]:i.push("string"==typeof t?ta(t,e):t)}for(let t of r){let[e,n]=t;if(o(` ${JSON.stringify(e)} `),"string"==typeof n||n instanceof Uint8Array)o(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify((0,ti.Fv)(n))}o(t)}}return"string"==typeof i?i:function(t){let e=new Uint8Array(t.reduce((t,e)=>t+e.length,0)),n=0;for(let r of t)e.set(r,n),n+=r.length;return e}(i)}(s,t.textEncoder)}).then(t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&C.X&&k.kg.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),r=function(t,{statusCode:e,headers:n},r=Date.now()){let i={...t},o=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(o)for(let t of o.trim().split(",")){let[e,n,,,o]=t.split(":",5),s=parseInt(e,10),a=(isNaN(s)?60:s)*1e3;if(n)for(let t of n.split(";"))"metric_bucket"===t?(!o||o.split(";").includes("custom"))&&(i[t]=r+a):i[t]=r+a;else i.all=r+a}else s?i.all=r+function(t,e=Date.now()){let n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}(s,r):429===e&&(i.all=r+6e4);return i}(r,t),t),t=>{throw a("network_error"),t})).then(t=>t,t=>{if(t instanceof tl)return C.X&&k.kg.error("Skipped sending event because buffer is full."),a("queue_overflow"),(0,tr.WD)();throw t})}return i.__sentry__baseTransport__=!0,{send:i,flush:t=>n.drain(t)}}function eC(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}function eE(t,e=function(){if(m)return m;if(H(tO.fetch))return m=tO.fetch.bind(tO);let t=tO.document,e=tO.fetch;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);let r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(t){tk&&k.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return m=e.bind(tO)}()){let n=0,r=0;return ex(t,function(i){let o=i.body.length;n+=o,r++;let s={body:i.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{return e(t.url,s).then(t=>(n-=o,r--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}}))}catch(t){return m=void 0,n-=o,r--,(0,tr.$2)(t)}})}function eI(t){return ex(t,function(e){return new tr.cW((n,r)=>{let i=new XMLHttpRequest;for(let e in i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",t.url),t.headers)Object.prototype.hasOwnProperty.call(t.headers,e)&&i.setRequestHeader(e,t.headers[e]);i.send(e.body)})})}let eT=[P(),$(),eu(),tZ(),t8(),es(),tQ(),en()];var eO=n(5544),eA=n(7850),eR=n(9791),eM=n(6754),eD=n(7638);let eN="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var eP=n(3371);let eL=G.GLOBAL_OBJ,eF=(t,e,n)=>{let r,i;return o=>{e.value>=0&&(o||n)&&((i=e.value-(r||0))||void 0===r)&&(r=e.value,e.delta=i,t(e))}},ej=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,eU=()=>{let t=eL.performance.timing,e=eL.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==e?"back_forward":1===e?"reload":"navigate"};for(let e in t)"navigationStart"!==e&&"toJSON"!==e&&(n[e]=Math.max(t[e]-t.navigationStart,0));return n},eB=()=>eL.__WEB_VITALS_POLYFILL__?eL.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||eU()):eL.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],e$=()=>{let t=eB();return t&&t.activationStart||0},eq=(t,e)=>{let n=eB(),r="navigate";return n&&(r=eL.document&&eL.document.prerendering||e$()>0?"prerender":n.type.replace(/_/g,"-")),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:ej(),navigationType:r}},ez=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){let r=new PerformanceObserver(t=>{e(t.getEntries())});return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch(t){}},eG=(t,e)=>{let n=r=>{("pagehide"===r.type||"hidden"===eL.document.visibilityState)&&(t(r),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};eL.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},eW=(t,e={})=>{let n;let r=eq("CLS",0),i=0,o=[],s=t=>{t.forEach(t=>{if(!t.hadRecentInput){let e=o[0],s=o[o.length-1];i&&0!==o.length&&t.startTime-s.startTime<1e3&&t.startTime-e.startTime<5e3?(i+=t.value,o.push(t)):(i=t.value,o=[t]),i>r.value&&(r.value=i,r.entries=o,n&&n())}})},a=ez("layout-shift",s);if(a){n=eF(t,r,e.reportAllChanges);let i=()=>{s(a.takeRecords()),n(!0)};return eG(i),i}},eJ=-1,eH=()=>{eL.document&&eL.document.visibilityState&&(eJ="hidden"!==eL.document.visibilityState||eL.document.prerendering?1/0:0)},eX=()=>{eG(({timeStamp:t})=>{eJ=t},!0)},eY=()=>(eJ<0&&(eH(),eX()),{get firstHiddenTime(){return eJ}}),eV=t=>{let e;let n=eY(),r=eq("FID"),i=t=>{t.startTime{t.forEach(i)},s=ez("first-input",o);e=eF(t,r),s&&eG(()=>{o(s.takeRecords()),s.disconnect()},!0)},eZ=0,eK=1/0,eQ=0,e0=t=>{t.forEach(t=>{t.interactionId&&(eK=Math.min(eK,t.interactionId),eZ=(eQ=Math.max(eQ,t.interactionId))?(eQ-eK)/7+1:0)})},e1=()=>c?eZ:performance.interactionCount||0,e2=()=>{"interactionCount"in performance||c||(c=ez("event",e0,{type:"event",buffered:!0,durationThreshold:0}))},e3=()=>e1(),e5=[],e4={},e6=t=>{let e=e5[e5.length-1],n=e4[t.interactionId];if(n||e5.length<10||t.duration>e.latency){if(n)n.entries.push(t),n.latency=Math.max(n.latency,t.duration);else{let e={id:t.interactionId,latency:t.duration,entries:[t]};e4[e.id]=e,e5.push(e)}e5.sort((t,e)=>e.latency-t.latency),e5.splice(10).forEach(t=>{delete e4[t.id]})}},e8=()=>{let t=Math.min(e5.length-1,Math.floor(e3()/50));return e5[t]},e9=(t,e)=>{let n;e=e||{},e2();let r=eq("INP"),i=t=>{t.forEach(t=>{t.interactionId&&e6(t),"first-input"!==t.entryType||e5.some(e=>e.entries.some(e=>t.duration===e.duration&&t.startTime===e.startTime))||e6(t)});let e=e8();e&&e.latency!==r.value&&(r.value=e.latency,r.entries=e.entries,n())},o=ez("event",i,{durationThreshold:e.durationThreshold||40});n=eF(t,r,e.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),eG(()=>{i(o.takeRecords()),r.value<0&&e3()>0&&(r.value=0,r.entries=[]),n(!0)}))},e7={},nt=t=>{let e;let n=eY(),r=eq("LCP"),i=t=>{let i=t[t.length-1];if(i){let t=Math.max(i.startTime-e$(),0);t{e7[r.id]||(i(o.takeRecords()),o.disconnect(),e7[r.id]=!0,e(!0))};return["keydown","click"].forEach(t=>{eL.document&&addEventListener(t,n,{once:!0,capture:!0})}),eG(n,!0),n}},ne=t=>{eL.document&&(eL.document.prerendering?addEventListener("prerenderingchange",()=>ne(t),!0):"complete"!==eL.document.readyState?addEventListener("load",()=>ne(t),!0):setTimeout(t,0))},nn=(t,e)=>{e=e||{};let n=eq("TTFB"),r=eF(t,n,e.reportAllChanges);ne(()=>{let t=eB();if(t){if(n.value=Math.max(t.responseStart-e$(),0),n.value<0||n.value>performance.now())return;n.entries=[t],r(!0)}})},nr={},ni={};function no(t,e){return nd(t,e),ni[t]||(function(t){let e={};"event"===t&&(e.durationThreshold=0),ez(t,e=>{ns(t,{entries:e})},e)}(t),ni[t]=!0),nf(t,e)}function ns(t,e){let n=nr[t];if(n&&n.length)for(let r of n)try{r(e)}catch(e){eN&&k.kg.error(`Error while triggering instrumentation handler. Type: ${t} Name: ${(0,q.$P)(r)} Error:`,e)}}function na(){return eW(t=>{ns("cls",{metric:t}),u=t},{reportAllChanges:!0})}function nc(){return eV(t=>{ns("fid",{metric:t}),l=t})}function nu(){return nt(t=>{ns("lcp",{metric:t}),p=t})}function nl(){return nn(t=>{ns("ttfb",{metric:t}),h=t})}function np(){return e9(t=>{ns("inp",{metric:t}),d=t})}function nh(t,e,n,r,i=!1){let o;return nd(t,e),ni[t]||(o=n(),ni[t]=!0),r&&e({metric:r}),nf(t,e,i?o:void 0)}function nd(t,e){nr[t]=nr[t]||[],nr[t].push(e)}function nf(t,e,n){return()=>{n&&n();let r=nr[t];if(!r)return;let i=r.indexOf(e);-1!==i&&r.splice(i,1)}}var ng=n(8903);function nm(t){return[{type:"span"},t]}var ny=n(7522),nv=n(1221);function n_(t){return"number"==typeof t&&isFinite(t)}function nb(t,{startTimestamp:e,...n}){return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild({startTimestamp:e,...n})}function nw(t){return t/1e3}function nk(){return eL&&eL.addEventListener&&eL.performance}let nS=0,nx={},nC={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function nE(t,e,n,r,i,o){let s=o?e[o]:e[`${n}End`],a=e[`${n}Start`];a&&s&&nb(t,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+nw(a),endTimestamp:r+nw(s)})}function nI(t,e,n,r){let i=e[n];null!=i&&i<2147483647&&(t[r]=i)}var nT=n(7387),nO=n(2336),nA=n(9181);let nR=["localhost",/^\/(?!\/)/],nM={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:nR,tracePropagationTargets:nR};function nD(t){let{url:e}=(0,eP.XU)(t).data||{};if(!e||"string"!=typeof e)return;let n=no("resource",({entries:r})=>{r.forEach(r=>{"resource"===r.entryType&&"initiatorType"in r&&"string"==typeof r.nextHopProtocol&&("fetch"===r.initiatorType||"xmlhttprequest"===r.initiatorType)&&r.name.endsWith(e)&&((function(t){let{name:e,version:n}=function(t){let e="unknown",n="unknown",r="";for(let i of t){if("/"===i){[e,n]=t.split("/");break}if(!isNaN(Number(i))){e="h"===r?"http":r,n=t.split(r)[1];break}r+=i}return r===t&&(e=r),{name:e,version:n}}(t.nextHopProtocol),r=[];return(r.push(["network.protocol.version",n],["network.protocol.name",e]),tw.Z1)?[...r,["http.request.redirect_start",nN(t.redirectStart)],["http.request.fetch_start",nN(t.fetchStart)],["http.request.domain_lookup_start",nN(t.domainLookupStart)],["http.request.domain_lookup_end",nN(t.domainLookupEnd)],["http.request.connect_start",nN(t.connectStart)],["http.request.secure_connection_start",nN(t.secureConnectionStart)],["http.request.connection_end",nN(t.connectEnd)],["http.request.request_start",nN(t.requestStart)],["http.request.response_start",nN(t.responseStart)],["http.request.response_end",nN(t.responseEnd)]]:r})(r).forEach(e=>t.setAttribute(...e)),setTimeout(n))})})}function nN(t=0){return((tw.Z1||performance.timeOrigin)+t)/1e3}function nP(t){try{return new URL(t,eL.location.origin).href}catch(t){return}}let nL={...eO.AT,markBackgroundTransactions:!0,routingInstrumentation:function(t,e=!0,n=!0){let r;if(!eL||!eL.location){eN&&k.kg.warn("Could not initialize routing instrumentation due to invalid location");return}let i=eL.location.href;e&&(r=t({name:eL.location.pathname,startTimestamp:tw.Z1?tw.Z1/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&Z(({to:e,from:n})=>{if(void 0===n&&i&&-1!==i.indexOf(e)){i=void 0;return}n!==e&&(i=void 0,r&&(eN&&k.kg.log(`[Tracing] Finishing current transaction with op: ${r.op}`),r.end()),r=t({name:eL.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...nM};class nF{constructor(t){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,(0,eA.T)(),eN&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...nL,...t},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=function(){let t=nk();if(t&&tw.Z1){t.mark&&eL.performance.mark("sentry-tracing-init");let e=nh("fid",({metric:t})=>{let e=t.entries[t.entries.length-1];if(!e)return;let n=nw(tw.Z1),r=nw(e.startTime);eN&&k.kg.log("[Measurements] Adding FID"),nx.fid={value:t.value,unit:"millisecond"},nx["mark.fid"]={value:n+r,unit:"second"}},nc,l),n=function(t,e=!1){return nh("cls",t,na,u,e)}(({metric:t})=>{let e=t.entries[t.entries.length-1];e&&(eN&&k.kg.log("[Measurements] Adding CLS"),nx.cls={value:t.value,unit:""},g=e)},!0),r=function(t,e=!1){return nh("lcp",t,nu,p,e)}(({metric:t})=>{let e=t.entries[t.entries.length-1];e&&(eN&&k.kg.log("[Measurements] Adding LCP"),nx.lcp={value:t.value,unit:"millisecond"},f=e)},!0),i=nh("ttfb",({metric:t})=>{t.entries[t.entries.length-1]&&(eN&&k.kg.log("[Measurements] Adding TTFB"),nx.ttfb={value:t.value,unit:"millisecond"})},nl,h);return()=>{e(),n(),r(),i()}}return()=>void 0}(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&function(t,e){if(nk()&&tw.Z1){let n=nh("inp",({metric:n})=>{let r;if(void 0===n.value)return;let i=n.entries.find(t=>t.duration===n.value&&void 0!==nC[t.name]),o=(0,j.s3)();if(!i||!o)return;let s=nC[i.name],a=o.getOptions(),c=nw(tw.Z1+i.startTime),u=nw(n.value),l=void 0!==i.interactionId?t[i.interactionId]:void 0;if(void 0===l)return;let{routeName:p,parentContext:h,activeTransaction:d,user:f,replayId:g}=l,m=void 0!==f?f.email||f.id||f.ip_address:void 0,y=void 0!==d?d.getProfileId():void 0,v=new ng.D({startTimestamp:c,endTimestamp:c+u,op:`ui.interaction.${s}`,name:(0,tW.Rt)(i.target),attributes:{release:a.release,environment:a.environment,transaction:p,...void 0!==m&&""!==m?{user:m}:{},...void 0!==y?{profile_id:y}:{},...void 0!==g?{replay_id:g}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),_=!!(0,ny.z)(a)&&((r=void 0!==h&&"function"==typeof a.tracesSampler?a.tracesSampler({transactionContext:h,name:h.name,parentSampled:h.parentSampled,attributes:{...h.data,...h.attributes},location:eL.location}):void 0!==h&&void 0!==h.sampled?h.sampled:void 0!==a.tracesSampleRate?a.tracesSampleRate:1,(0,nv.X)(r))?!0===r?e:!1===r?0:r*e:(eN&&k.kg.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1));if(_&&Math.random()<_){let t=v?function(t,e){let n={sent_at:new Date().toISOString()};return e&&(n.dsn=tt(e)),to(n,t.map(nm))}([v],o.getDsn()):void 0,e=o&&o.getTransport();e&&t&&e.send(t).then(null,t=>{eN&&k.kg.error("Error while sending interaction:",t)});return}},np,d)}}(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&no("longtask",({entries:t})=>{for(let e of t){let t=(0,eR.x1)();if(!t)return;let n=nw(tw.Z1+e.startTime),r=nw(e.duration);t.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}}),this.options._experiments.enableInteractions&&no("event",({entries:t})=>{for(let e of t){let t=(0,eR.x1)();if(!t)return;if("click"===e.name){let n=nw(tw.Z1+e.startTime),r=nw(e.duration),i={description:(0,tW.Rt)(e.target),op:`ui.interaction.${e.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r},o=(0,tW.iY)(e.target);o&&(i.attributes={"ui.component_name":o}),t.startChild(i)}}}),this._latestRoute={name:void 0,context:void 0}}setupOnce(t,e){this._getCurrentHub=e;let n=e().getClient(),r=n&&n.getOptions(),{routingInstrumentation:i,startTransactionOnLocationChange:o,startTransactionOnPageLoad:s,markBackgroundTransactions:a,traceFetch:c,traceXHR:u,shouldCreateSpanForRequest:l,enableHTTPTimings:p,_experiments:h}=this.options,d=r&&r.tracePropagationTargets,f=d||this.options.tracePropagationTargets;eN&&this._hasSetTracePropagationTargets&&d&&k.kg.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),i(t=>{let n=this._createRouteTransaction(t);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,t,e),n},s,o),a&&(eL.document?eL.document.addEventListener("visibilitychange",()=>{let t=(0,eR.x1)();if(eL.document.hidden&&t){let e="cancelled",{op:n,status:r}=(0,eP.XU)(t);eN&&k.kg.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.end()}}):eN&&k.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),h.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),function(t){let{traceFetch:e,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:o,enableHTTPTimings:s}={traceFetch:nM.traceFetch,traceXHR:nM.traceXHR,...t},a="function"==typeof o?o:t=>!0,c=t=>{var e;return e=r||i,(0,x.U0)(t,e||nR)},u={};e&&t$(t=>{let e=function(t,e,n,r,i="auto.http.browser"){if(!(0,ny.z)()||!t.fetchData)return;let o=e(t.fetchData.url);if(t.endTimestamp&&o){let e=t.fetchData.__span;if(!e)return;let n=r[e];n&&(function(t,e){if(e.response){(0,nT.Q0)(t,e.response.status);let n=e.response&&e.response.headers&&e.response.headers.get("content-length");if(n){let e=parseInt(n);e>0&&t.setAttribute("http.response_content_length",e)}}else e.error&&t.setStatus("internal_error");t.end()}(n,t),delete r[e]);return}let s=(0,j.nZ)(),a=(0,j.s3)(),{method:c,url:u}=t.fetchData,l=function(t){try{return new URL(t).href}catch(t){return}}(u),p=l?tH(l).host:void 0,h=o?(0,nO.qp)({name:`${c} ${u}`,onlyIfParent:!0,attributes:{url:u,type:"fetch","http.method":c,"http.url":l,"server.address":p,[eM.S3]:i},op:"http.client"}):void 0;if(h&&(t.fetchData.__span=h.spanContext().spanId,r[h.spanContext().spanId]=h),n(t.fetchData.url)&&a){let e=t.args[0];t.args[1]=t.args[1]||{};let n=t.args[1];n.headers=function(t,e,n,r,i){let o=i||n.getSpan(),{traceId:s,spanId:a,sampled:c,dsc:u}={...(0,I.aF)().getPropagationContext(),...n.getPropagationContext()},l=o?(0,eP.Hb)(o):(0,eD.$p)(s,a,c),p=(0,nA.IQ)(u||(o?(0,th.j)(o):(0,th._)(s,e,n))),h=r.headers||("undefined"!=typeof Request&&(0,tn.V9)(t,Request)?t.headers:void 0);if(!h)return{"sentry-trace":l,baggage:p};if("undefined"!=typeof Headers&&(0,tn.V9)(h,Headers)){let t=new Headers(h);return t.append("sentry-trace",l),p&&t.append(nA.bU,p),t}if(Array.isArray(h)){let t=[...h,["sentry-trace",l]];return p&&t.push([nA.bU,p]),t}{let t="baggage"in h?h.baggage:void 0,e=[];return Array.isArray(t)?e.push(...t):t&&e.push(t),p&&e.push(p),{...h,"sentry-trace":l,baggage:e.length>0?e.join(","):void 0}}}(e,a,s,n,h)}return h}(t,a,c,u);if(e){let n=nP(t.fetchData.url),r=n?tH(n).host:void 0;e.setAttributes({"http.url":n,"server.address":r})}s&&e&&nD(e)}),n&&tU(t=>{let e=function(t,e,n,r){let i=t.xhr,o=i&&i[tj];if(!(0,ny.z)()||!i||i.__sentry_own_request__||!o)return;let s=e(o.url);if(t.endTimestamp&&s){let t=i.__sentry_xhr_span_id__;if(!t)return;let e=r[t];e&&void 0!==o.status_code&&((0,nT.Q0)(e,o.status_code),e.end(),delete r[t]);return}let a=(0,j.nZ)(),c=(0,I.aF)(),u=nP(o.url),l=u?tH(u).host:void 0,p=s?(0,nO.qp)({name:`${o.method} ${o.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":o.method,"http.url":u,url:o.url,"server.address":l,[eM.S3]:"auto.http.browser"},op:"http.client"}):void 0;p&&(i.__sentry_xhr_span_id__=p.spanContext().spanId,r[i.__sentry_xhr_span_id__]=p);let h=(0,j.s3)();if(i.setRequestHeader&&n(o.url)&&h){let{traceId:t,spanId:e,sampled:n,dsc:r}={...c.getPropagationContext(),...a.getPropagationContext()};(function(t,e,n){try{t.setRequestHeader("sentry-trace",e),n&&t.setRequestHeader(nA.bU,n)}catch(t){}})(i,p?(0,eP.Hb)(p):(0,eD.$p)(t,e,n),(0,nA.IQ)(r||(p?(0,th.j)(p):(0,th._)(t,h,a))))}return p}(t,a,c,u);s&&e&&nD(e)})}({traceFetch:c,traceXHR:u,tracePropagationTargets:f,shouldCreateSpanForRequest:l,enableHTTPTimings:p})}_createRouteTransaction(t){let e;if(!this._getCurrentHub){eN&&k.kg.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}let n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:i,finalTimeout:o,heartbeatInterval:s}=this.options,a="pageload"===t.op;if(a){let n=a?nj("sentry-trace"):"",r=a?nj("baggage"):void 0,{traceId:i,dsc:o,parentSpanId:s,sampled:c}=(0,eD.pT)(n,r);e={traceId:i,parentSpanId:s,parentSampled:c,...t,metadata:{...t.metadata,dynamicSamplingContext:o},trimEnd:!0}}else e={trimEnd:!0,...t};let c="function"==typeof r?r(e):e,u=void 0===c?{...e,sampled:!1}:c;u.metadata=u.name!==e.name?{...u.metadata,source:"custom"}:u.metadata,this._latestRoute.name=u.name,this._latestRoute.context=u,!1===u.sampled&&eN&&k.kg.log(`[Tracing] Will not send ${u.op} transaction because of beforeNavigate.`),eN&&k.kg.log(`[Tracing] Starting ${u.op} transaction on scope`);let{location:l}=eL,p=(0,eA.l)(n,u,i,o,!0,{location:l},s,a);return a&&eL.document&&(eL.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(eL.document.readyState)&&p.sendAutoFinishSignal()}),["interactive","complete"].includes(eL.document.readyState)&&p.sendAutoFinishSignal()),p.registerBeforeFinishCallback(t=>{this._collectWebVitals(),function(t){let e=nk();if(!e||!eL.performance.getEntries||!tw.Z1)return;eN&&k.kg.log("[Tracing] Adding & adjusting spans using Performance API");let n=nw(tw.Z1),r=e.getEntries(),{op:i,start_timestamp:o}=(0,eP.XU)(t);if(r.slice(nS).forEach(e=>{let r=nw(e.startTime),i=nw(e.duration);if("navigation"!==t.op||!o||!(n+r{nE(t,e,r,n)}),nE(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),nE(t,e,"fetch",n,"cache","domainLookupStart"),nE(t,e,"domainLookup",n,"DNS"),e.responseEnd&&(nb(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+nw(e.requestStart),endTimestamp:n+nw(e.responseEnd)}),nb(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+nw(e.responseStart),endTimestamp:n+nw(e.responseEnd)}));break;case"mark":case"paint":case"measure":{(function(t,e,n,r,i){let o=i+n;nb(t,{description:e.name,endTimestamp:o+r,op:e.entryType,origin:"auto.resource.browser.metrics",startTimestamp:o})})(t,e,r,i,n);let o=eY(),s=e.startTime{if(!nx[t]||!o||n>=o)return;let e=nx[t].value,r=Math.abs((n+nw(e)-o)*1e3),i=r-e;eN&&k.kg.log(`[Measurements] Normalized ${t} from ${e} to ${r} (${i})`),nx[t].value=r});let e=nx["mark.fid"];e&&nx.fid&&(nb(t,{description:"first input delay",endTimestamp:e.value+nw(nx.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:e.value}),delete nx["mark.fid"]),"fcp"in nx||delete nx.cls,Object.keys(nx).forEach(t=>{!function(t,e,n){let r=(0,eR.x1)();r&&r.setMeasurement(t,e,n)}(t,nx[t].value,nx[t].unit)}),f&&(eN&&k.kg.log("[Measurements] Adding LCP Data"),f.element&&t.setTag("lcp.element",(0,tW.Rt)(f.element)),f.id&&t.setTag("lcp.id",f.id),f.url&&t.setTag("lcp.url",f.url.trim().slice(0,200)),t.setTag("lcp.size",f.size)),g&&g.sources&&(eN&&k.kg.log("[Measurements] Adding CLS Data"),g.sources.forEach((e,n)=>t.setTag(`cls.source.${n+1}`,(0,tW.Rt)(e.node))))}f=void 0,g=void 0,nx={}}(t)}),p}_registerInteractionListener(){let t;let e=()=>{let{idleTimeout:e,finalTimeout:n,heartbeatInterval:r}=this.options,i="ui.action.click",o=(0,eR.x1)();if(o&&o.op&&["navigation","pageload"].includes(o.op)){eN&&k.kg.warn(`[Tracing] Did not create ${i} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub){eN&&k.kg.warn(`[Tracing] Did not create ${i} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRoute.name){eN&&k.kg.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`);return}let s=this._getCurrentHub(),{location:a}=eL,c={name:this._latestRoute.name,op:i,trimEnd:!0,data:{[eM.Zj]:this._latestRoute.context?function(t){let e=t.attributes&&t.attributes[eM.Zj],n=t.data&&t.data[eM.Zj],r=t.metadata&&t.metadata.source;return e||n||r}(this._latestRoute.context):"url"}};t=(0,eA.l)(s,c,e,n,!0,{location:a},r)};["click"].forEach(t=>{eL.document&&addEventListener(t,e,{once:!1,capture:!0})})}_registerInpInteractionListener(){let t=({entries:t})=>{let e=(0,j.s3)(),n=void 0!==e&&void 0!==e.getIntegrationByName?e.getIntegrationByName("Replay"):void 0,r=void 0!==n?n.getReplayId():void 0,i=(0,eR.x1)(),o=(0,j.nZ)(),s=void 0!==o?o.getUser():void 0;t.forEach(t=>{if("duration"in t){let e=t.interactionId;if(void 0===e)return;let n=this._interactionIdToRouteNameMapping[e],o=t.duration,a=t.startTime,c=Object.keys(this._interactionIdToRouteNameMapping),u=c.length>0?c.reduce((t,e)=>this._interactionIdToRouteNameMapping[t].durationthis._interactionIdToRouteNameMapping[t]).some(t=>t.duration===o&&t.startTime===a))&&e){if(n)n.duration=Math.max(n.duration,o);else if(c.length<10||void 0===u||o>this._interactionIdToRouteNameMapping[u].duration){let t=this._latestRoute.name,n=this._latestRoute.context;t&&n&&(u&&Object.keys(this._interactionIdToRouteNameMapping).length>=10&&delete this._interactionIdToRouteNameMapping[u],this._interactionIdToRouteNameMapping[e]={routeName:t,duration:o,parentContext:n,user:s,activeTransaction:i,replayId:r,startTime:a})}}}})};no("event",t),no("first-input",t)}}function nj(t){let e=(0,tW.qT)(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}function nU(t){let e;let n=t[0],r=1;for(;rn.call(e,...t)),e=void 0)}return n}var nB=n(1422);function n$(t){let e=nU([t,"call",t=>t(),"access",t=>t.getClient,"call",t=>t(),"optionalAccess",t=>t.getOptions,"call",t=>t()]);return"sentry"!==(nU([e,"optionalAccess",t=>t.instrumenter])||"sentry")}class nq{static __initStatic(){this.id="Apollo"}constructor(t={useNestjs:!1}){this.name=nq.id,this._useNest=!!t.useNestjs}loadDependency(){return this._useNest?this._module=this._module||(0,nB.$y)("@nestjs/graphql"):this._module=this._module||(0,nB.$y)("apollo-server-core"),this._module}setupOnce(t,e){if(n$(e)){eN&&k.kg.log("Apollo Integration is skipped because of instrumenter configuration.");return}if(this._useNest){let t=this.loadDependency();if(!t){eN&&k.kg.error("Apollo-NestJS Integration was unable to require @nestjs/graphql package.");return}(0,F.hl)(t.GraphQLFactory.prototype,"mergeWithSchema",function(t){return function(...n){return(0,F.hl)(this.resolversExplorerService,"explore",function(t){return function(){return nz((0,S.lE)(t.call(this)),e)}}),t.call(this,...n)}})}else{let t=this.loadDependency();if(!t){eN&&k.kg.error("Apollo Integration was unable to require apollo-server-core package.");return}(0,F.hl)(t.ApolloServerBase.prototype,"constructSchema",function(t){return function(){if(!this.config.resolvers)return eN&&(this.config.schema?(k.kg.warn("Apollo integration is not able to trace `ApolloServer` instances constructed via `schema` property.If you are using NestJS with Apollo, please use `Sentry.Integrations.Apollo({ useNestjs: true })` instead."),k.kg.warn()):this.config.modules&&k.kg.warn("Apollo integration is not able to trace `ApolloServer` instances constructed via `modules` property."),k.kg.error("Skipping tracing as no resolvers found on the `ApolloServer` instance.")),t.call(this);let n=(0,S.lE)(this.config.resolvers);return this.config.resolvers=nz(n,e),t.call(this)}})}}}function nz(t,e){return t.map(t=>(Object.keys(t).forEach(n=>{Object.keys(t[n]).forEach(r=>{if("function"==typeof t[n][r])(0,F.hl)(t[n],r,function(t){return function(...i){let o=nU([e().getScope().getSpan(),"optionalAccess",t=>t.startChild,"call",t=>t({description:`${n}.${r}`,op:"graphql.resolve",origin:"auto.graphql.apollo"})]),s=t.call(this,...i);return(0,tn.J8)(s)?s.then(t=>(nU([o,"optionalAccess",t=>t.end,"call",t=>t()]),t)):(nU([o,"optionalAccess",t=>t.end,"call",t=>t()]),s)}})})}),t))}nq.__initStatic();class nG{static __initStatic(){this.id="Express"}constructor(t={}){this.name=nG.id,this._router=t.router||t.app,this._methods=(Array.isArray(t.methods)?t.methods:[]).concat("use")}setupOnce(t,e){if(!this._router){eN&&k.kg.error("ExpressIntegration is missing an Express instance");return}if(n$(e)){eN&&k.kg.log("Express Integration is skipped because of instrumenter configuration.");return}(function(t,e=[]){e.forEach(e=>(function(t,e){let n=t[e];return t[e]=function(...t){return n.call(this,...t.map(t=>"function"==typeof t?nW(t,e):Array.isArray(t)?t.map(t=>"function"==typeof t?nW(t,e):t):t))},t})(t,e))})(this._router,this._methods),function(t){let e="settings"in t;e&&void 0===t._router&&t.lazyrouter&&t.lazyrouter();let n=e?t._router:t;if(!n){eN&&k.kg.debug("Cannot instrument router for URL Parameterization (did not find a valid router)."),eN&&k.kg.debug("Routing instrumentation is currently only supported in Express 4.");return}let r=Object.getPrototypeOf(n),i=r.process_params;r.process_params=function(t,e,n,r,o){n._reconstructedRoute||(n._reconstructedRoute="");let{layerRoutePath:s,isRegex:a,isArray:c,numExtraSegments:u}=function(t){var e;let n=nU([t,"access",t=>t.route,"optionalAccess",t=>t.path]),r=(0,tn.Kj)(n),i=Array.isArray(n);if(!n){let[e]=G.GLOBAL_OBJ.process.versions.node.split(".").map(Number);e>=16&&(n=nJ(t.path,t.regexp,t.keys))}if(!n)return{isRegex:r,isArray:i,numExtraSegments:0};let o=i?Math.max(n.reduce((t,e)=>t+tY(e.toString()),0)-tY(t.path||""),0):0;return{layerRoutePath:(e=n,i?e.map(t=>t.toString()).join(","):e&&e.toString()),isRegex:r,isArray:i,numExtraSegments:o}}(t);(s||a||c)&&(n._hasParameters=!0);let l=(s||function(t,e,n){let r=nU([tX(t||""),"optionalAccess",t=>t.split,"call",t=>t("/"),"access",t=>t.filter,"call",t=>t(t=>!!t)]),i=0,o=nU([e,"optionalAccess",t=>t.split,"call",t=>t("/"),"access",t=>t.filter,"call",t=>t(t=>!!t),"access",t=>t.length])||0;return nU([n,"optionalAccess",t=>t.split,"call",t=>t("/"),"access",t=>t.filter,"call",t=>t(t=>nU([r,"optionalAccess",t=>t[o+i]])===t&&(i+=1,!0)),"access",t=>t.join,"call",t=>t("/")])}(n.originalUrl,n._reconstructedRoute,t.path)||"").split("/").filter(t=>t.length>0&&(a||c||!t.includes("*"))).join("/");if(l&&l.length>0&&(n._reconstructedRoute+=`/${l}${a?"/":""}`),tY(tX(n.originalUrl||""))+u===tY(n._reconstructedRoute)){n._hasParameters||n._reconstructedRoute===n.originalUrl||(n._reconstructedRoute=n.originalUrl?tX(n.originalUrl):n.originalUrl);let t=r.__sentry_transaction,e=t&&(0,eP.XU)(t).data||{};if(t&&"custom"!==e[eM.Zj]){let e=n._reconstructedRoute||"/",[r,i]=function(t,e={}){let n=t.method&&t.method.toUpperCase(),r="",i="url";e.customRoute||t.route?(r=e.customRoute||`${t.baseUrl||""}${t.route&&t.route.path}`,i="route"):(t.originalUrl||t.url)&&(r=tX(t.originalUrl||t.url||""));let o="";return e.method&&n&&(o+=n),e.method&&e.path&&(o+=" "),e.path&&r&&(o+=r),[o,i]}(n,{path:!0,method:!0,customRoute:e});t.updateName(r),t.setAttribute(eM.Zj,i)}}return i.call(this,t,e,n,r,o)}}(this._router)}}function nW(t,e){let n=t.length;switch(n){case 2:return function(n,r){let i=r.__sentry_transaction;if(i){let n=i.startChild({description:t.name,op:`middleware.express.${e}`,origin:"auto.middleware.express"});r.once("finish",()=>{n.end()})}return t.call(this,n,r)};case 3:return function(n,r,i){let o=nU([r.__sentry_transaction,"optionalAccess",t=>t.startChild,"call",n=>n({description:t.name,op:`middleware.express.${e}`,origin:"auto.middleware.express"})]);t.call(this,n,r,function(...t){nU([o,"optionalAccess",t=>t.end,"call",t=>t()]),i.call(this,...t)})};case 4:return function(n,r,i,o){let s=nU([i.__sentry_transaction,"optionalAccess",t=>t.startChild,"call",n=>n({description:t.name,op:`middleware.express.${e}`,origin:"auto.middleware.express"})]);t.call(this,n,r,i,function(...t){nU([s,"optionalAccess",t=>t.end,"call",t=>t()]),o.call(this,...t)})};default:throw Error(`Express middleware takes 2-4 arguments. Got: ${n}`)}}nG.__initStatic();let nJ=(t,e,n)=>{if(!t||!e||!n||0===Object.keys(n).length||void 0===nU([n,"access",t=>t[0],"optionalAccess",t=>t.offset])||null===nU([n,"access",t=>t[0],"optionalAccess",t=>t.offset]))return;let r=n.sort((t,e)=>t.offset-e.offset),i=RegExp(e,`${e.flags}d`).exec(t);if(!i||!i.indices)return;let[,...o]=i.indices;if(o.length!==r.length)return;let s=t,a=0;return o.forEach((t,e)=>{if(t){let[n,i]=t,o=s.substring(0,n-a),c=`:${r[e].name}`;s=o+c+s.substring(i-a),a+=i-n-c.length}}),s};class nH{static __initStatic(){this.id="GraphQL"}constructor(){this.name=nH.id}loadDependency(){return this._module=this._module||(0,nB.$y)("graphql/execution/execute.js")}setupOnce(t,e){if(n$(e)){eN&&k.kg.log("GraphQL Integration is skipped because of instrumenter configuration.");return}let n=this.loadDependency();if(!n){eN&&k.kg.error("GraphQL Integration was unable to require graphql/execution package.");return}(0,F.hl)(n,"execute",function(t){return function(...n){let r=e().getScope(),i=r.getSpan(),o=nU([i,"optionalAccess",t=>t.startChild,"call",t=>t({description:"execute",op:"graphql.execute",origin:"auto.graphql.graphql"})]);nU([r,"optionalAccess",t=>t.setSpan,"call",t=>t(o)]);let s=t.call(this,...n);return(0,tn.J8)(s)?s.then(t=>(nU([o,"optionalAccess",t=>t.end,"call",t=>t()]),nU([r,"optionalAccess",t=>t.setSpan,"call",t=>t(i)]),t)):(nU([o,"optionalAccess",t=>t.end,"call",t=>t()]),nU([r,"optionalAccess",t=>t.setSpan,"call",t=>t(i)]),s)}})}}nH.__initStatic();let nX=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","find","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"],nY={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],find:["query"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]};class nV{static __initStatic(){this.id="Mongo"}constructor(t={}){this.name=nV.id,this._operations=Array.isArray(t.operations)?t.operations:nX,this._describeOperations=!("describeOperations"in t)||t.describeOperations,this._useMongoose=!!t.useMongoose}loadDependency(){let t=this._useMongoose?"mongoose":"mongodb";return this._module=this._module||(0,nB.$y)(t)}setupOnce(t,e){if(n$(e)){eN&&k.kg.log("Mongo Integration is skipped because of instrumenter configuration.");return}let n=this.loadDependency();if(!n){let t=this._useMongoose?"mongoose":"mongodb";eN&&k.kg.error(`Mongo Integration was unable to require \`${t}\` package.`);return}this._instrumentOperations(n.Collection,this._operations,e)}_instrumentOperations(t,e,n){e.forEach(e=>this._patchOperation(t,e,n))}_patchOperation(t,e,n){if(!(e in t.prototype))return;let r=this._getSpanContextFromOperationArguments.bind(this);(0,F.hl)(t.prototype,e,function(t){return function(...i){let o=i[i.length-1],s=n(),a=s.getScope(),c=s.getClient(),u=a.getSpan(),l=nU([c,"optionalAccess",t=>t.getOptions,"call",t=>t(),"access",t=>t.sendDefaultPii]);if("function"!=typeof o||"mapReduce"===e&&2===i.length){let n=nU([u,"optionalAccess",t=>t.startChild,"call",t=>t(r(this,e,i,l))]),o=t.call(this,...i);if((0,tn.J8)(o))return o.then(t=>(nU([n,"optionalAccess",t=>t.end,"call",t=>t()]),t));if(!o||"object"!=typeof o||!o.once||"function"!=typeof o.once)return nU([n,"optionalAccess",t=>t.end,"call",t=>t()]),o;try{o.once("close",()=>{nU([n,"optionalAccess",t=>t.end,"call",t=>t()])})}catch(t){nU([n,"optionalAccess",t=>t.end,"call",t=>t()])}return o}let p=nU([u,"optionalAccess",t=>t.startChild,"call",t=>t(r(this,e,i.slice(0,-1)))]);return t.call(this,...i.slice(0,-1),function(t,e){nU([p,"optionalAccess",t=>t.end,"call",t=>t()]),o(t,e)})}})}_getSpanContextFromOperationArguments(t,e,n,r=!1){let i={"db.system":"mongodb","db.name":t.dbName,"db.operation":e,"db.mongodb.collection":t.collectionName},o={op:"db",origin:"auto.db.mongo",description:e,data:i},s=nY[e],a=Array.isArray(this._describeOperations)?this._describeOperations.includes(e):this._describeOperations;if(!s||!a||!r)return o;try{if("mapReduce"===e){let[t,e]=n;i[s[0]]="string"==typeof t?t:t.name||"",i[s[1]]="string"==typeof e?e:e.name||""}else for(let t=0;t(n||(n=e.config),t.apply(e,r))})}catch(t){eN&&k.kg.error("Mysql Integration was unable to instrument `mysql` config.")}function i(t){if(!t)return;let e=n?{"server.address":n.host,"server.port":n.port,"db.user":n.user}:{};Object.keys(e).forEach(n=>{t.setAttribute(n,e[n])}),t.end()}(0,F.hl)(r,"createQuery",function(t){return function(n,r,o){let s=nU([e().getScope().getSpan(),"optionalAccess",t=>t.startChild,"call",t=>t({description:"string"==typeof n?n:n.sql,op:"db",origin:"auto.db.mysql",data:{"db.system":"mysql"}})]);if("function"==typeof o)return t.call(this,n,r,function(t,e,n){i(s),o(t,e,n)});if("function"==typeof r)return t.call(this,n,function(t,e,n){i(s),r(t,e,n)});let a=t.call(this,n,r);return a.on("end",()=>{i(s)}),a}})}}nZ.__initStatic();class nK{static __initStatic(){this.id="Postgres"}constructor(t={}){this.name=nK.id,this._usePgNative=!!t.usePgNative,this._module=t.module}loadDependency(){return this._module=this._module||(0,nB.$y)("pg")}setupOnce(t,e){if(n$(e)){eN&&k.kg.log("Postgres Integration is skipped because of instrumenter configuration.");return}let n=this.loadDependency();if(!n){eN&&k.kg.error("Postgres Integration was unable to require `pg` package.");return}let r=this._usePgNative?nU([n,"access",t=>t.native,"optionalAccess",t=>t.Client]):n.Client;if(!r){eN&&k.kg.error("Postgres Integration was unable to access 'pg-native' bindings.");return}(0,F.hl)(r.prototype,"query",function(t){return function(n,r,i){let o=e().getScope().getSpan(),s={"db.system":"postgresql"};try{this.database&&(s["db.name"]=this.database),this.host&&(s["server.address"]=this.host),this.port&&(s["server.port"]=this.port),this.user&&(s["db.user"]=this.user)}catch(t){}let a=nU([o,"optionalAccess",t=>t.startChild,"call",t=>t({description:"string"==typeof n?n:n.text,op:"db",origin:"auto.db.postgres",data:s})]);if("function"==typeof i)return t.call(this,n,r,function(t,e){nU([a,"optionalAccess",t=>t.end,"call",t=>t()]),i(t,e)});if("function"==typeof r)return t.call(this,n,function(t,e){nU([a,"optionalAccess",t=>t.end,"call",t=>t()]),r(t,e)});let c=void 0!==r?t.call(this,n,r):t.call(this,n);return(0,tn.J8)(c)?c.then(t=>(nU([a,"optionalAccess",t=>t.end,"call",t=>t()]),t)):(nU([a,"optionalAccess",t=>t.end,"call",t=>t()]),c)}})}}nK.__initStatic();class nQ{static __initStatic(){this.id="Prisma"}constructor(t={}){var e;if(this.name=nQ.id,(e=t.client)&&e.$use&&!t.client._sentryInstrumented){(0,F.xp)(t.client,"_sentryInstrumented",!0);let e={};try{let n=t.client._engineConfig;if(n){let{activeProvider:t,clientVersion:r}=n;t&&(e["db.system"]=t),r&&(e["db.prisma.version"]=r)}}catch(t){}t.client.$use((t,n)=>{if(n$(I.Gd))return n(t);let r=t.action,i=t.model;return(0,nO.GK)({name:i?`${i} ${r}`:r,onlyIfParent:!0,op:"db.prisma",attributes:{[eM.S3]:"auto.db.prisma"},data:{...e,"db.operation":r}},()=>n(t))})}else eN&&k.kg.warn("Unsupported Prisma client provided to PrismaIntegration. Provided client:",t.client)}setupOnce(){}}nQ.__initStatic();var n0=n(758);("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,n0.r)(),function(t){let e={...t};t_(e,"react"),function(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=[...eT]),void 0===t.release&&("string"==typeof __SENTRY_RELEASE__&&(t.release=__SENTRY_RELEASE__),tO.SENTRY_RELEASE&&tO.SENTRY_RELEASE.id&&(t.release=tO.SENTRY_RELEASE.id)),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0),function(t,e){!0===e.debug&&(C.X?k.kg.enable():(0,k.Cf)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,j.nZ)().update(e.initialScope);let n=new t(e);(function(t){let e=(0,I.Gd)().getStackTop();e.client=t,e.scope.setClient(t)})(n),n.init?n.init():n.setupIntegrations&&n.setupIntegrations()}(tM,{...t,stackParser:(0,q.Sq)(t.stackParser||ek),integrations:function(t){let e=t.defaultIntegrations||[],n=t.integrations;e.forEach(t=>{t.isDefaultInstance=!0});let r=function(t){let e={};return t.forEach(t=>{let{name:n}=t,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)}),Object.keys(e).map(t=>e[t])}(Array.isArray(n)?[...e,...n]:"function"==typeof n?(0,S.lE)(n(e)):e),i=function(t,e){for(let n=0;n"Debug"===t.name);if(-1!==i){let[t]=r.splice(i,1);r.push(t)}return r}(t),transport:t.transport||(J()?eE:eI)}),t.autoSessionTracking&&function(){if(void 0===tO.document){tk&&k.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}(0,j.yj)({ignoreDuration:!0}),(0,j.cg)(),Z(({from:t,to:e})=>{void 0!==t&&t!==e&&((0,j.yj)({ignoreDuration:!0}),(0,j.cg)())})}()}(e)}({dsn:"https://e8397a037f774a988c974c4a65f2ebab@o1058756.ingest.sentry.io/6046993",integrations:[new({BrowserTracing:nF,Apollo:nq,Express:nG,GraphQL:nH,Mongo:nV,Mysql:nZ,Postgres:nK,Prisma:nQ}).BrowserTracing],tracesSampleRate:1});var n1=t=>{let{Component:e,pageProps:n}=t;var r='background: #8800FF;border: 1px solid #3E0E02;color: white;display: block;line-height: 30px;text-align: center;font-size: 0.7rem;font-weight: bold;font-family: "Monaco", monospace';(0,w.useEffect)(()=>{window&&(console.log("%c POWERED BY SYMPHONY \uD83D\uDEF0️\uD83D\uDEF0️\uD83D\uDEF0️",r),console.log("%c https://symphony.to",r))},[]);let{tracking:i}=n;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(b(),{children:(0,y.jsx)(v.ZP,{...i})}),(0,y.jsx)(e,{...n})]})}},1876:function(t){!function(){var e={675:function(t,e){"use strict";e.byteLength=function(t){var e=c(t),n=e[0],r=e[1];return(n+r)*3/4-r},e.toByteArray=function(t){var e,n,o=c(t),s=o[0],a=o[1],u=new i((s+a)*3/4-a),l=0,p=a>0?s-4:s;for(n=0;n>16&255,u[l++]=e>>8&255,u[l++]=255&e;return 2===a&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,u[l++]=255&e),1===a&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e),u},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],s=0,a=r-i;s>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(t,s,s+16383>a?a:s+16383));return 1===i?o.push(n[(e=t[r-1])>>2]+n[e<<4&63]+"=="):2===i&&o.push(n[(e=(t[r-2]<<8)+t[r-1])>>10]+n[e>>4&63]+n[e<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s0)throw Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},72:function(t,e,n){"use strict";var r=n(675),i=n(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(t){if(t>2147483647)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,a.prototype),e}function a(t,e,n){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return l(t)}return c(t,e,n)}function c(t,e,n){if("string"==typeof t)return function(t,e){if(("string"!=typeof e||""===e)&&(e="utf8"),!a.isEncoding(e))throw TypeError("Unknown encoding: "+e);var n=0|d(t,e),r=s(n),i=r.write(t,e);return i!==n&&(r=r.slice(0,i)),r}(t,e);if(ArrayBuffer.isView(t))return p(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(O(t,ArrayBuffer)||t&&O(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(O(t,SharedArrayBuffer)||t&&O(t.buffer,SharedArrayBuffer)))return function(t,e,n){var r;if(e<0||t.byteLength=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function d(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||O(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return C(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return I(t).length;default:if(i)return r?-1:C(t).length;e=(""+e).toLowerCase(),i=!0}}function f(t,e,n){var i,o,s=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(o=n=+n)!=o&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return -1;n=t.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof e&&(e=a.from(e,r)),a.isBuffer(e))return 0===e.length?-1:y(t,e,n,r,i);if("number"==typeof e)return(e&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,r,i);throw TypeError("val must be string, number or Buffer")}function y(t,e,n,r,i){var o,s=1,a=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return -1;s=2,a/=2,c/=2,n/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var l=-1;for(o=n;oa&&(n=a-c),o=n;o>=0;o--){for(var p=!0,h=0;h239?4:u>223?3:u>191?2:1;if(i+p<=n)switch(p){case 1:u<128&&(l=u);break;case 2:(192&(o=t[i+1]))==128&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=t[i+1],s=t[i+2],(192&o)==128&&(192&s)==128&&(c=(15&u)<<12|(63&o)<<6|63&s)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],(192&o)==128&&(192&s)==128&&(192&a)==128&&(c=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,p=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=p}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var n="",r=0;rn)throw RangeError("Trying to access beyond buffer length")}function b(t,e,n,r,i,o){if(!a.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw RangeError("Index out of range")}function w(t,e,n,r,i,o){if(n+r>t.length||n<0)throw RangeError("Index out of range")}function k(t,e,n,r,o){return e=+e,n>>>=0,o||w(t,e,n,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,n,r,23,4),n+4}function S(t,e,n,r,o){return e=+e,n>>>=0,o||w(t,e,n,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,n,r,52,8),n+8}e.Buffer=a,e.SlowBuffer=function(t){return+t!=t&&(t=0),a.alloc(+t)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(t,e,n){return c(t,e,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(t,e,n){return(u(t),t<=0)?s(t):void 0!==e?"string"==typeof n?s(t).fill(e,n):s(t).fill(e):s(t)},a.allocUnsafe=function(t){return l(t)},a.allocUnsafeSlow=function(t){return l(t)},a.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==a.prototype},a.compare=function(t,e){if(O(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),O(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);in&&(t+=" ... "),""},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(t,e,n,r,i){if(O(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return -1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var o=i-r,s=n-e,c=Math.min(o,s),u=this.slice(r,i),l=t.slice(e,n),p=0;p>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,s,a,c,u,l,p,h,d,f,g,m=this.length-e;if((void 0===n||n>m)&&(n=m),t.length>0&&(n<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var y=!1;;)switch(r){case"hex":return function(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;r>o/2&&(r=o/2);for(var s=0;s>8,i.push(n%256),i.push(r);return i}(t,this.length-f),this,f,g);default:if(y)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),y=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||_(t,e,this.length);for(var r=this[t],i=1,o=0;++o>>=0,e>>>=0,n||_(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},a.prototype.readUInt8=function(t,e){return t>>>=0,e||_(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return t>>>=0,e||_(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUInt16BE=function(t,e){return t>>>=0,e||_(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return t>>>=0,e||_(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},a.prototype.readUInt32BE=function(t,e){return t>>>=0,e||_(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||_(t,e,this.length);for(var r=this[t],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*e)),r},a.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||_(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},a.prototype.readInt8=function(t,e){return(t>>>=0,e||_(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},a.prototype.readInt16LE=function(t,e){t>>>=0,e||_(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(t,e){t>>>=0,e||_(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(t,e){return t>>>=0,e||_(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return t>>>=0,e||_(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t>>>=0,e||_(t,4,this.length),i.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t>>>=0,e||_(t,4,this.length),i.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t>>>=0,e||_(t,8,this.length),i.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t>>>=0,e||_(t,8,this.length),i.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;b(this,t,e,n,i,0)}var o=1,s=0;for(this[e]=255&t;++s>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;b(this,t,e,n,i,0)}var o=n-1,s=1;for(this[e+o]=255&t;--o>=0&&(s*=256);)this[e+o]=t/s&255;return e+n},a.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||b(this,t,e,1,255,0),this[e]=255&t,e+1},a.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||b(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||b(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||b(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},a.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||b(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var i=Math.pow(2,8*n-1);b(this,t,e,n,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o>0)-a&255;return e+n},a.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var i=Math.pow(2,8*n-1);b(this,t,e,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},a.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||b(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||b(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||b(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||b(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},a.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||b(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeFloatLE=function(t,e,n){return k(this,t,e,!0,n)},a.prototype.writeFloatBE=function(t,e,n){return k(this,t,e,!1,n)},a.prototype.writeDoubleLE=function(t,e,n){return S(this,t,e,!0,n)},a.prototype.writeDoubleBE=function(t,e,n){return S(this,t,e,!1,n)},a.prototype.copy=function(t,e,n,r){if(!a.isBuffer(t))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--o)t[o+e]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,r),e);return i},a.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===t.length){var i,o=t.charCodeAt(0);("utf8"===r&&o<128||"latin1"===r)&&(t=o)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i55295&&n<57344){if(!i){if(n>56319||s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function E(t){for(var e=[],n=0;n=e.length)&&!(i>=t.length);++i)e[i+n]=t[i];return i}function O(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var A=function(){for(var t="0123456789abcdef",e=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)e[r+i]=t[n]+t[i];return e}()},783:function(t,e){e.read=function(t,e,n,r,i){var o,s,a=8*i-r-1,c=(1<>1,l=-7,p=n?i-1:0,h=n?-1:1,d=t[e+p];for(p+=h,o=d&(1<<-l)-1,d>>=-l,l+=a;l>0;o=256*o+t[e+p],p+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+t[e+p],p+=h,l-=8);if(0===o)o=1-u;else{if(o===c)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),o-=u}return(d?-1:1)*s*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var s,a,c,u=8*o-i-1,l=(1<>1,h=23===i?5960464477539062e-23:0,d=r?0:o-1,f=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(isNaN(e=Math.abs(e))||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+p>=1?e+=h/c:e+=h*Math.pow(2,1-p),e*c>=2&&(s++,c/=2),s+p>=l?(a=0,s=l):s+p>=1?(a=(e*c-1)*Math.pow(2,i),s+=p):(a=e*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;t[n+d]=255&a,d+=f,a/=256,i-=8);for(s=s<0;t[n+d]=255&s,d+=f,s/=256,u-=8);t[n+d-f]|=128*g}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}},s=!0;try{e[t](o,o.exports,r),s=!1}finally{s&&delete n[t]}return o.exports}r.ab="//";var i=r(72);t.exports=i}()},3434:function(){},7663:function(t){!function(){var e={229:function(t){var e,n,r,i=t.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(t){n=s}}();var c=[],u=!1,l=-1;function p(){u&&r&&(u=!1,r.length?c=r.concat(c):l=-1,c.length&&h())}function h(){if(!u){var t=a(p);u=!0;for(var e=c.length;e;){for(r=c,c=[];++l1)for(var n=1;n