PageSourceSearch

https://www.testplus.com/_nuxt/BOn3tdqn.js

js testplus.com collected 2026-10-01 16:16:15 UTC 166,128 bytes, 1 lines download raw bytes

1var e,t,n;try{(n=(new(t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="6d5126cb-d82a-4544-a8cd-99f15497919f",t._sentryDebugIdIdentifier="sentry-dbid-6d5126cb-d82a-4544-a8cd-99f15497919f")}catch(t){}!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:member-web":!0})}catch(t){}}();import{ah as r,dl as s,dm as o,dn as i,dp as a,dq as c,dr as l,ds as u,dt as d,du as h,dv as p,dw as m,dx as f,dy as g,dz as y,dA as v,dB as S,dC as b,dD as _,dE as k,dF as w,dG as E,dH as x,dI as I,dJ as C,dK as T,dL as M,dM as R,dN as O,dO as A,dP as D,dQ as L,dR as N,dS as F,dT as P,dU as B,dV as $,dW as U,dX as z,dY as W,dZ as j,d_ as H,d$ as q,e0 as K,e1 as V,e2 as J,e3 as X,e4 as G,e5 as Y,e6 as Q,e7 as Z,e8 as ee,e9 as te,ea as ne,eb as re,ec as se,ed as oe,ee as ie,ef as ae,eg as ce,eh as le,ei as ue,ej as de,ek as he,el as pe,em as me,en as fe,eo as ge,ep as ye,eq as ve,er as Se,es as be,et as _e,eu as ke,ev as we,ew as Ee,ex as xe,ey as Ie,ez as Ce,eA as Te,eB as Me,eC as Re,eD as Oe,eE as Ae,eF as De,eG as Le,eH as Ne,eI as Fe,eJ as Pe,eK as Be,eL as $e,eM as Ue,eN as ze,eO as We,eP as je,eQ as He,eR as qe,eS as Ke,eT as Ve,eU as Je,eV as Xe,eW as Ge,eX as Ye,eY as Qe,eZ as Ze,e_ as et,e$ as tt,f0 as nt,f1 as rt,f2 as st,f3 as ot,f4 as it,f5 as at,f6 as ct,f7 as lt,f8 as ut,f9 as dt,fa as ht,fb as pt,a as mt}from"./CcRP24QD.js";import"./CmyANv5w.js";function ft(e,t){const n=t??function(e){return gt().get(e)}(e)??[];if(0===n.length)return;const r=e.getOptions(),i=function(e,t,n,r){const i={};return(null==t?void 0:t.sdk)&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=s(r)),o(i,[(a=e,[{type:"log",item_count:a.length,content_type:"application/vnd.sentry.items.log+json"},{items:a}])]);var a}(n,r._metadata,r.tunnel,e.getDsn());gt().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function gt(){return i("clientToLogBufferMap",(()=>new WeakMap))}function yt(e,t){const n=t??function(e){return vt().get(e)}(e)??[];if(0===n.length)return;const r=e.getOptions(),i=function(e,t,n,r){const i={};return(null==t?void 0:t.sdk)&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=s(r)),o(i,[(a=e,[{type:"trace_metric",item_count:a.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:a}])]);var a}(n,r._metadata,r.tunnel,e.getDsn());vt().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(i)}function vt(){return i("clientToMetricBufferMap",(()=>new WeakMap))}const St=Symbol.for("SentryBufferFullError");function bt(e=100){const t=new Set;function n(e){t.delete(e)}return{get $(){return Array.from(t)},add:function(r){if(!(t.size<e))return c(St);const s=r();return t.add(s),s.then((()=>n(s)),(()=>n(s))),s},drain:function(e){if(!t.size)return a(!0);const n=Promise.allSettled(Array.from(t)).then((()=>!0));if(!e)return n;const r=[n,new Promise((t=>setTimeout((()=>t(!1)),e)))];return Promise.race(r)}}}function _t(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}function kt(e,{statusCode:t,headers:n},r=Date.now()){const s={...e},o=null==n?void 0:n["x-sentry-rate-limits"],i=null==n?void 0:n["retry-after"];if(o)for(const a of o.trim().split(",")){const[e,t,,,n]=a.split(":",5),o=parseInt(e,10),i=1e3*(isNaN(o)?60:o);if(t)for(const a of t.split(";"))"metric_bucket"===a&&n&&!n.split(";").includes("custom")||(s[a]=r+i);else s.all=r+i}else i?s.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(i,r):429===t&&(s.all=r+6e4);return s}function wt(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];(null==n?void 0:n.value)&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}const Et="Not capturing exception because it's already been captured.",xt="Discarded session because of missing or non-string release",It=Symbol.for("SentryInternalError"),Ct=Symbol.for("SentryDoNotSendEventError");function Tt(e){return{message:e,[It]:!0}}function Mt(e){return{message:e,[Ct]:!0}}function Rt(e){return!!e&&"object"==typeof e&&It in e}function Ot(e){return!!e&&"object"==typeof e&&Ct in e}
1function At(e,t,n,r,s){let o,i=0,a=!1;e.on(n,(()=>{i=0,clearTimeout(o),a=!1})),e.on(t,(t=>{i+=r(t),i>=8e5?s(e):a||(a=!0,o=setTimeout((()=>{s(e)}),5e3))})),e.on("flush",(()=>{s(e)}))}class Dt{constructor(e){var t,n,r,s,o,i;if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=bt((null==(t=e.transportOptions)?void 0:t.bufferSize)??64),e.dsn?this._dsn=y(e.dsn):d&&h.warn("No DSN provided, client will not send events."),this._dsn){const t=(s=this._dsn,o=e.tunnel,i=e._metadata?e._metadata.sdk:void 0,o||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(s)}?${function(e,t){const n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(s,i)}`);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??(null==(n=this._options._experiments)?void 0:n.enableLogs),this._options.enableLogs&&At(this,"afterCaptureLog","flushLogs",Bt,ft),(this._options.enableMetrics??(null==(r=this._options._experiments)?void 0:r.enableMetrics)??1)&&At(this,"afterCaptureMetric","flushMetrics",Pt,yt)}captureException(e,t,n){const r=v();if(S(e))return d&&h.log(Et),r;const s={event_id:r,...t};return this._process((()=>this.eventFromException(e,s).then((e=>this._captureEvent(e,s,n))).then((e=>e))),"error"),s.event_id}captureMessage(e,t,n,r){const s={event_id:v(),...n},o=L(e)?e:String(e),i=N(e),a=i?this.eventFromMessage(o,t,s):this.eventFromException(e,s);return this._process((()=>a.then((e=>this._captureEvent(e,s,r)))),i?"unknown":"error"),s.event_id}captureEvent(e,t,n){const r=v();if((null==t?void 0:t.originalException)&&S(t.originalException))return d&&h.log(Et),r;const s={event_id:r,...t},o=e.sdkProcessingMetadata||{},i=o.capturedSpanScope,a=o.capturedSpanIsolationScope,c=Lt(e.type);return this._process((()=>this._captureEvent(e,s,i||n,a)),c),s.event_id}captureSession(e){this.sendSession(e),b(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){const t=this._transport;if(!t)return!0;this.emit("flush");const n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){const t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some((({name:e})=>e.startsWith("Spotlight"))))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];_(this,e,this._integrations),t||k(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=w(e,this._dsn,this._options._metadata,this._options.tunnel);for(const r of t.attachments||[])n=E(n,x(r));this.sendEnvelope(n).then((t=>this.emit("afterSendEvent",e,t)))}sendSession(e){const{release:t,environment:n=I}=this._options;if("aggregates"in e){const r=e.attrs||{};if(!r.release&&!t)return void(d&&h.warn(xt));r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t)return void(d&&h.warn(xt));e.release=e.release||t,e.environment=e.environment||n}this.emit("beforeSendSession",e);const r=C(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){const r=`${e}:${t}`;d&&h.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){const n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){const n=this._hooks[e];n&&n.forEach((e=>e(...t)))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(t){return d&&h.error("Error while sending envelope:",t),{}}return d&&h.error("Transport disabled"),{}}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=T(this,e),k(this,e)}_updateSessionFromEvent(e,t){var n,r;let s="fatal"===t.level,o=!1;const i=null==(n=t.exception)?void 0:n.values;if(i){o=!0,s=!1;for(const e of i)if(!1===(null==(r=e.mechanism)?void 0:r.handled)){s=!0;break}}const a="ok"===e.status;(a&&0===e.errors||a&&s)&&(b(e,{...s&&{status:"crashed"},errors:e.errors||Number(o||s)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise((e=>setTimeout(e,1))),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r){const s=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&(null==o?void 0:o.length)&&(t.integrations=o),this.emit
1("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),M(s,e,t,n,this,r).then((e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:R(n),...e.contexts};const r=O(this,n);return e.sdkProcessingMetadata={dynamicSamplingContext:r,...e.sdkProcessingMetadata},e}))}_captureEvent(e,t={},n=A(),r=D()){return d&&Nt(e)&&h.log(`Captured error event \`${wt(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,r).then((e=>e.event_id),(e=>{d&&(Ot(e)?h.log(e.message):Rt(e)?h.warn(e.message):h.warn(e))}))}_processEvent(e,t,n,r){const s=this.getOptions(),{sampleRate:o}=s,i=Ft(e),a=Nt(e),l=`before send for type \`${e.type||"error"}\``,u=void 0===o?void 0:F(o);if(a&&"number"==typeof u&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error"),c(Mt(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));const d=Lt(e.type);return this._prepareEvent(e,t,n,r).then((e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),Mt("An event processor returned `null`, will not send event.");if(t.data&&!0===t.data.__sentry__)return e;const n=function(e,t,n,r){const{beforeSend:s,beforeSendTransaction:o,beforeSendSpan:i,ignoreSpans:a}=t;let c=n;if(Nt(c)&&s)return s(c,r);if(Ft(c)){if(i||a){const t=function(e){var t;const{trace_id:n,parent_span_id:r,span_id:s,status:o,origin:i,data:a,op:c}=(null==(t=e.contexts)?void 0:t.trace)??{};return{data:a??{},description:e.transaction,op:c,parent_span_id:r,span_id:s??"",start_timestamp:e.start_timestamp??0,status:o,timestamp:e.timestamp,trace_id:n??"",origin:i,profile_id:null==a?void 0:a[g],exclusive_time:null==a?void 0:a[f],measurements:e.measurements,is_segment:!0}}(c);if((null==a?void 0:a.length)&&P(t,a))return null;if(i){const e=i(t);e?c=$(n,{type:"transaction",timestamp:(l=e).timestamp,start_timestamp:l.start_timestamp,transaction:l.description,contexts:{trace:{trace_id:l.trace_id,span_id:l.span_id,parent_span_id:l.parent_span_id,op:l.op,status:l.status,origin:l.origin,data:{...l.data,...l.profile_id&&{[g]:l.profile_id},...l.exclusive_time&&{[f]:l.exclusive_time}}}},measurements:l.measurements}):B()}if(c.spans){const t=[],n=c.spans;for(const e of n)if((null==a?void 0:a.length)&&P(e,a))U(n,e);else if(i){const n=i(e);n?t.push(n):(B(),t.push(e))}else t.push(e);const r=c.spans.length-t.length;r&&e.recordDroppedEvent("before_send","span",r),c.spans=t}}if(o){if(c.spans){const e=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(c,r)}}var l;return c}(this,s,e,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(z(e))return e.then((e=>{if(!W(e)&&null!==e)throw Tt(n);return e}),(e=>{throw Tt(`${t} rejected with ${e}`)}));if(!W(e)&&null!==e)throw Tt(n);return e}(n,l)})).then((s=>{var o;if(null===s){if(this.recordDroppedEvent("before_send",d),i){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw Mt(`${l} returned \`null\`, will not send event.`)}const c=n.getSession()||r.getSession();if(a&&c&&this._updateSessionFromEvent(c,s),i){const e=((null==(o=s.sdkProcessingMetadata)?void 0:o.spanCountBeforeProcessing)||0)-(s.spans?s.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const u=s.transaction_info;if(i&&u&&s.transaction!==e.transaction){const e="custom";s.transaction_info={...u,source:e}}return this.sendEvent(s,t),s})).then(null,(e=>{if(Ot(e)||Rt(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),Tt(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e===St&&this.recordDroppedEvent("queue_overflow",t),e)))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map((([e,t])=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t}}))}_flushOutcomes(){d&&h.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(d&&h.log("No outcomes to send"));if(!this._dsn)return void(d&&h.log("No dsn provided, will not send outcomes"));d&&h.log("Sending outcomes:",e);const t=function(e,t){const n=[{type:"client_report"},{timestamp:m(),discarded_events:e}];return o(t?{dsn:t}:{},[n])}(e,this._options.tunnel&&s(this._dsn));this.sendEnvelope(t)}}function Lt(e){return"replay_event"===e?"replay":e||"error"}function Nt(e){return void 0===e.type}function Ft(e){return"transaction"===e.type}function Pt(e){let t=0;return e.name&&(t+=2*e.name.length),t+=8,t+$t(e.attributes)}function Bt(e){let t=0;return e.message&&(t+=2*e.message.length),t+$t(e.attributes)}function $t(e){if(!e)return 0;let t=0;return Object.values(e).forEach((e=>{Array.isArray(e)?t+=e.length*Ut(e[0]):N(e)?t+=Ut(e):t+=100})),t}function Ut(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:"boolean"==typeof e?4:0}function zt(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function Wt(e){var t;"aggregates"in e?void 0===(null==(t=e.attrs)?void 0:t.ip_address)&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function jt(e,t,n=[t],r="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${r}:@sentry/${e}`,version:K}))),version:K}),e._metadata=s}const Ht=100;function qt(e,t){const n=V(),r=D();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=Ht}=n.getOptions();if(o<=0)return;const i={timestamp:m(),...e}
1,a=s?j((()=>s(i,t))):i;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,o))}let Kt;const Vt=new WeakMap,Jt=J((()=>({name:"FunctionToString",setupOnce(){Kt=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=X(this),n=Vt.has(V())&&void 0!==t?t:this;return Kt.apply(n,e)}}catch{}},setup(e){Vt.set(e,!0)}}))),Xt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],Gt=J(((e={})=>{let t;return{name:"EventFilters",setup(n){const r=n.getOptions();t=Qt(e,r)},processEvent(n,r,s){if(!t){const n=s.getOptions();t=Qt(e,n)}return function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!(null==t?void 0:t.length))return!1;const n=e.transaction;return!!n&&Y(n,t)}(e,t.ignoreTransactions))return d&&h.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${G(e)}`),!0}else{if(function(e,t){return!!(null==t?void 0:t.length)&&wt(e).some((e=>Y(e,t)))}(e,t.ignoreErrors))return d&&h.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${G(e)}`),!0;if(function(e){var t,n;return!!(null==(n=null==(t=e.exception)?void 0:t.values)?void 0:n.length)&&(!e.message&&!e.exception.values.some((e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)))}(e))return d&&h.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${G(e)}`),!0;if(function(e,t){if(!(null==t?void 0:t.length))return!1;const n=Zt(e);return!!n&&Y(n,t)}(e,t.denyUrls))return d&&h.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${G(e)}.\nUrl: ${Zt(e)}`),!0;if(!function(e,t){if(!(null==t?void 0:t.length))return!0;const n=Zt(e);return!n||Y(n,t)}(e,t.allowUrls))return d&&h.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${G(e)}.\nUrl: ${Zt(e)}`),!0}return!1}(n,t)?null:n}}})),Yt=J(((e={})=>({...Gt(e),name:"InboundFilters"})));function Qt(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Xt],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Zt(e){var t,n;try{const r=[...(null==(t=e.exception)?void 0:t.values)??[]].reverse().find((e=>{var t,n,r;return void 0===(null==(t=e.mechanism)?void 0:t.parent_id)&&(null==(r=null==(n=e.stacktrace)?void 0:n.frames)?void 0:r.length)})),s=null==(n=null==r?void 0:r.stacktrace)?void 0:n.frames;return s?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(s):null}catch{return d&&h.error(`Cannot extract url for event ${G(e)}`),null}}function en(e,t,n,r,s,o){var i;if(!(null==(i=s.exception)?void 0:i.values)||!o||!Q(o.originalException,Error))return;const a=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;a&&(s.exception.values=tn(e,t,r,o.originalException,n,s.exception.values,a,0))}function tn(e,t,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(Q(r[s],Error)){nn(i,a);const o=e(t,r[s]),l=c.length;rn(o,s,l,a),c=tn(e,t,n,r[s],s,[o,...c],o,l)}return Array.isArray(r.errors)&&r.errors.forEach(((r,o)=>{if(Q(r,Error)){nn(i,a);const l=e(t,r),u=c.length;rn(l,`errors[${o}]`,u,a),c=tn(e,t,n,r,s,[l,...c],l,u)}})),c}function nn(e,t){e.mechanism={handled:!0,type:"auto.core.linked_errors",...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function rn(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const sn=new Map,on=new Set;function an(){"console"in Z&&ne.forEach((function(e){e in Z.console&&re(Z.console,e,(function(t){return se[e]=t,function(...t){oe("console",{args:t,level:e});const n=se[e];null==n||n.apply(Z.console,t)}}))}))}function cn(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const ln=J((()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!dn(e,t)&&!!un(e,t))))}(e,t)||!!function(e,t){const n=hn(t),r=hn(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!dn(e,t)&&!!un(e,t)))}(e,t))}(t,e))return d&&h.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}));function un(e,t){let n=ie(e),r=ie(t);if(!n&&!r)return!0;
1if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let s=0;s<r.length;s++){const e=r[s],t=n[s];if(e.filename!==t.filename||e.lineno!==t.lineno||e.colno!==t.colno||e.function!==t.function)return!1}return!0}function dn(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch{return!1}}function hn(e){var t,n;return null==(n=null==(t=e.exception)?void 0:t.values)?void 0:n[0]}const pn=J((e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",(e=>{l(e,((e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&(function(e){var t,n;null==(n=null==(t=e.exception)?void 0:t.values)||n.forEach((e=>{var t,n;null==(n=null==(t=e.stacktrace)?void 0:t.frames)||n.forEach((e=>{delete e.module_metadata}))}))}(t),e[1]=t)}}))})),e.on("applyFrameMetadata",(t=>{t.type||function(e,t){var n,r;null==(r=null==(n=t.exception)?void 0:n.values)||r.forEach((t=>{var n,r;null==(r=null==(n=t.stacktrace)?void 0:n.frames)||r.forEach((t=>{if(!t.filename||t.module_metadata)return;const n=function(e,t){return function(e){if(Z._sentryModuleMetadata)for(const t of Object.keys(Z._sentryModuleMetadata)){const n=Z._sentryModuleMetadata[t];if(on.has(t))continue;on.add(t);const r=e(t);for(const e of r.reverse())if(e.filename){sn.set(e.filename,n);break}}}(e),sn.get(t)}(e,t.filename);n&&(t.module_metadata=n)}))}))}(e.getOptions().stackParser,t)}))},processEvent(t){const n=function(e){const t=ie(e);if(t)return t.filter((e=>!!e.filename&&null!=(e.lineno??e.colno))).map((e=>e.module_metadata?Object.keys(e.module_metadata).filter((e=>e.startsWith(mn))).map((e=>e.slice(mn.length))):[]))}(t);if(n&&n["drop-error-if-contains-third-party-frames"===e.behaviour||"apply-tag-if-contains-third-party-frames"===e.behaviour?"some":"every"]((t=>!t.some((t=>e.filterKeys.includes(t)))))){if("drop-error-if-contains-third-party-frames"===e.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===e.behaviour)return null;t.tags={...t.tags,third_party_code:!0}}return t}}))),mn="_sentryBundlerPluginAppKey:";function fn(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}function gn(e,t){const n=vn(e,t),r={type:_n(t),value:kn(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function yn(e,t){return{exception:{values:[gn(e,t)]}}}function vn(e,t){const n=t.stacktrace||t.stack||"",r=function(e){return e&&Sn.test(e.message)?1:0}(t),s=function(e){return"number"==typeof e.framesToPop?e.framesToPop:0}(t);try{return e(n,r,s)}catch{}return[]}const Sn=/Minified React error #\d+;/i;function bn(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function _n(e){const t=null==e?void 0:e.name;return!t&&bn(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}function kn(e){const t=null==e?void 0:e.message;return bn(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function wn(e,t,n,r,s){let o;if(ae(t)&&t.error)return yn(e,t.error);if(ce(t)||le(t)){const s=t;if("stack"in t)o=yn(e,t);else{const t=s.name||(ce(s)?"DOMError":"DOMException"),i=s.message?`${t}: ${s.message}`:t;o=En(e,i,n,r),ue(o,i)}return"code"in s&&(o.tags={...o.tags,"DOMException.code":`${s.code}`}),o}return de(t)?yn(e,t):W(t)||he(t)?(o=function(e,t,n,r){const s=V(),o=null==s?void 0:s.getOptions().normalizeDepth,i=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}(t),a={__serialized__:me(t,o)};if(i)return{exception:{values:[gn(e,i)]},extra:a};const c={exception:{values:[{type:he(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:xn(t,{isUnhandledRejection:r})}]},extra:a};if(n){const t=vn(e,n);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}(e,t,n,s),pe(o,{synthetic:!0}),o):(o=En(e,t,n,r),ue(o,`${t}`),pe(o,{synthetic:!0}),o)}function En(e,t,n,r){const s={};if(r&&n){const r=vn(e,n);r.length&&(s.exception={values:[{value:t,stacktrace:{frames:r}}]}),pe(s,{synthetic:!0})}
1if(L(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return s.logentry={message:e,params:n},s}return s.message=t,s}function xn(e,{isUnhandledRejection:t}){const n=fe(e),r=t?"promise rejection":"exception";return ae(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:he(e)?`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}class In extends Dt{constructor(e){var t;const n=function(e){var t;return{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:null==(t=ge.SENTRY_RELEASE)?void 0:t.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}(e);jt(n,"browser",["browser"],ge.SENTRY_SDK_SOURCE||ye()),(null==(t=n._metadata)?void 0:t.sdk)&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:r,sendClientReports:s,enableLogs:o,_experiments:i,enableMetrics:a}=this._options,c=a??(null==i?void 0:i.enableMetrics)??!0;ge.document&&(s||o||c)&&ge.document.addEventListener("visibilitychange",(()=>{"hidden"===ge.document.visibilityState&&(s&&this._flushOutcomes(),o&&ft(this),c&&yt(this))})),r&&this.on("beforeSendSession",Wt)}eventFromException(e,t){return function(e,t,n,r){const s=wn(e,t,(null==n?void 0:n.syntheticException)||void 0,r);return pe(s),s.level="error",(null==n?void 0:n.event_id)&&(s.event_id=n.event_id),a(s)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,s){const o=En(e,t,(null==r?void 0:r.syntheticException)||void 0,s);return o.level=n,(null==r?void 0:r.event_id)&&(o.event_id=r.event_id),a(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,r)}}let Cn,Tn,Mn;function Rn(e){ee("dom",e),te("dom",On)}function On(){if(!ve.document)return;const e=oe.bind(null,"dom"),t=An(e,!0);ve.document.addEventListener("click",t,!1),ve.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{var n,r;const s=null==(n=ve[t])?void 0:n.prototype;(null==(r=null==s?void 0:s.hasOwnProperty)?void 0:r.call(s,"addEventListener"))&&(re(s,"addEventListener",(function(t){return function(n,r,s){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){const r=An(e);o.handler=r,t.call(this,n,r,s)}o.refCount++}catch{}return t.call(this,n,r,s)}})),re(s,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},s=n[t];s&&(s.refCount--,s.refCount<=0&&(e.call(this,t,s.handler,r),s.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}})))}))}function An(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch{return null}}(n);if(function(e,t){return"keypress"===e&&(!(null==t?void 0:t.tagName)||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;Se(n,"_sentryCaptured",!0),r&&!r._sentryId&&Se(r,"_sentryId",v());const s="keypress"===n.type?"input":n.type;(function(e){if(e.type!==Tn)return!1;try{if(!e.target||e.target._sentryId!==Mn)return!1}catch{}return!0})(n)||(e({event:n,name:s,global:t}),Tn=n.type,Mn=r?r._sentryId:void 0),clearTimeout(Cn),Cn=ve.setTimeout((()=>{Mn=void 0,Tn=void 0}),1e3)}}const Dn={};function Ln(e){const n=Dn[e];if(n)return n;let r=ve[e];if(be(r))return Dn[e]=r.bind(ve);const s=ve.document;if(s&&"function"==typeof s.createElement)try{const t=s.createElement("iframe");t.hidden=!0,s.head.appendChild(t);const n=t.contentWindow;(null==n?void 0:n[e])&&(r=n[e]),s.head.removeChild(t)}catch(t){_e&&h.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return r?Dn[e]=r.bind(ve):r}function Nn(...e){return Ln("setTimeout")(...e)}
1function Fn(e,n=Ln("fetch")){let r=0,s=0;return function(e,t,n=bt(e.bufferSize||64)){let r={};return{send:function(s){const i=[];if(l(s,((t,n)=>{const s=u(n);_t(r,s)?e.recordDroppedEvent("ratelimit_backoff",s):i.push(t)})),0===i.length)return Promise.resolve({});const a=o(s[0],i),c=t=>{l(a,((n,r)=>{e.recordDroppedEvent(t,u(r))}))};return n.add((()=>t({body:p(a)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&d&&h.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=kt(r,e),e)),(e=>{throw c("network_error"),d&&h.error("Encountered error running transport request:",e),e})))).then((e=>e),(e=>{if(e===St)return d&&h.error("Skipped sending event because buffer is full."),c("queue_overflow"),Promise.resolve({});throw e}))},flush:e=>n.drain(e)}}(e,(async function(o){const i=o.body.length;r+=i,s++;const a={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&s<15,...e.fetchOptions};try{const t=await n(e.url,a);return{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}}}catch(t){throw Dn.fetch=void 0,t}finally{r-=i,s--}}),bt(e.bufferSize||40))}function Pn(e,t,n,r){const s={filename:e,function:"<anonymous>"===t?we:t,in_app:!0};return void 0!==n&&(s.lineno=n),void 0!==r&&(s.colno=r),s}const Bn=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,$n=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Un=/\((\S*)(?::(\d+))(?::(\d+))\)/,zn=/at (.+?) ?\(data:(.+?),/,Wn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,jn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Hn=ke([30,e=>{const t=e.match(zn);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=Bn.exec(e);if(n){const[,e,t,r]=n;return Pn(e,we,+t,+r)}const r=$n.exec(e);if(r){if(r[2]&&0===r[2].indexOf("eval")){const e=Un.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}const[e,t]=qn(r[1]||we,r[2]);return Pn(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],[50,e=>{const t=Wn.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=jn.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||we;return[n,e]=qn(n,e),Pn(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),qn=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:we,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Kn=J(((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){t.console&&function(e){const t="console";ee(t,e),te(t,an)}(function(e){return function(t){if(V()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:cn(t.level),message:Ae(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${Ae(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}qt(n,{input:t.args,level:t.level})}}(e)),t.dom&&Rn(function(e,t){return function(n){if(V()!==e)return;let r,s,o="object"==typeof t?t.serializeAttribute:void 0,i="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;i&&i>1024&&(Me&&h.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=1024),"string"==typeof o&&(o=[o]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=Re(t,{keyAttrs:o,maxStringLength:i}),s=Oe(t)}catch{r="<unknown>"}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};s&&(a.data={"ui.component_name":s}),qt(a,{event:n.event,name:n.name,global:n.global})}}(e,t.dom)),t.xhr&&Ee(function(e){return function(t){if(V()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,s=t.xhr[Ce];if(!n||!r||!s)return;const{method:o,url:i,status_code:a,body:c}=s,l={method:o,url:i,status_code:a},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:"xhr",data:l,type:"http",level:fn(a)};e.emit("beforeOutgoingRequestBreadcrumb",d,u),qt(d,u)}}(e)),t.fetch&&xe(function(e){return function(t){if(V()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;
1if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.fetchData.method,t.fetchData.url,t.error){const s=t.fetchData,o={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},i={category:"fetch",data:s,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",i,o),qt(i,o)}else{const s=t.response,o={...t.fetchData,status_code:null==s?void 0:s.status};t.fetchData.request_body_size,t.fetchData.response_body_size,null==s||s.status;const i={input:t.args,response:s,startTimestamp:n,endTimestamp:r},a={category:"fetch",data:o,type:"http",level:fn(o.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",a,i),qt(a,i)}}}(e)),t.history&&Ie(function(e){return function(t){if(V()!==e)return;let n=t.from,r=t.to;const s=Te(ge.location.href);let o=n?Te(n):void 0;const i=Te(r);(null==o?void 0:o.path)||(o=s),s.protocol===i.protocol&&s.host===i.host&&(r=i.relative),s.protocol===o.protocol&&s.host===o.host&&(n=o.relative),qt({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){V()===e&&qt({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:G(t)},{event:t})}}(e))}}})),Vn=["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"],Jn=J(((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&re(ge,"setTimeout",Xn),t.setInterval&&re(ge,"setInterval",Xn),t.requestAnimationFrame&&re(ge,"requestAnimationFrame",Gn),t.XMLHttpRequest&&"XMLHttpRequest"in ge&&re(XMLHttpRequest.prototype,"send",Yn);const e=t.eventTarget;e&&(Array.isArray(e)?e:Vn).forEach((e=>function(e,t){var n,r;const s=null==(n=ge[e])?void 0:n.prototype;(null==(r=null==s?void 0:s.hasOwnProperty)?void 0:r.call(s,"addEventListener"))&&(re(s,"addEventListener",(function(n){return function(r,s,o){try{"function"==typeof s.handleEvent&&(s.handleEvent=De(s.handleEvent,{mechanism:{data:{handler:Le(s),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&function(e,t,n){e&&"object"==typeof e&&"removeEventListener"in e&&"function"==typeof e.removeEventListener&&e.removeEventListener(t,n)}(this,r,s),n.apply(this,[r,De(s,{mechanism:{data:{handler:Le(s),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),o])}})),re(s,"removeEventListener",(function(e){return function(t,n,r){try{const s=n.__sentry_wrapped__;s&&e.call(this,t,s,r)}catch{}return e.call(this,t,n,r)}})))}(e,t)))}}}));function Xn(e){return function(...t){const n=t[0];return t[0]=De(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Le(e)}`}}),e.apply(this,t)}}function Gn(e){return function(t){return e.apply(this,[De(t,{mechanism:{data:{handler:Le(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function Yn(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&re(n,e,(function(t){const n={mechanism:{data:{handler:Le(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=X(t);return r&&(n.mechanism.data.handler=Le(r)),De(t,n)}))})),e.apply(this,t)}}const Qn=J((()=>({name:"BrowserSession",setupOnce(){void 0!==ge.document?(Ne({ignoreDuration:!0}),Fe(),Ie((({from:e,to:t})=>{void 0!==e&&e!==t&&(Ne({ignoreDuration:!0}),Fe())}))):Me&&h.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}}))),Zn=J(((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){Pe((t=>{const{stackParser:n,attachStacktrace:r}=tr();if(V()!==e||Be())return;const{msg:s,url:o,line:i,column:a,error:c}=t,l=function(e,t,n,r){const s=e.exception=e.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],l=r,u=n,d=function(e){if(We(e)&&0!==e.length){if(e.startsWith("data:")){const t=e.match(/^data:([^;
1]+)/);return`<data:${t?t[1]:"text/javascript"}${e.includes("base64,")?",base64":""}>`}return e}}(t)??ze();return 0===c.length&&c.push({colno:l,filename:d,function:we,in_app:!0,lineno:u}),e}(wn(n,c||s,void 0,r,!1),o,i,a);l.level="error",$e(l,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}))}(e),er("onerror")),t.onunhandledrejection&&(function(e){Ue((t=>{const{stackParser:n,attachStacktrace:r}=tr();if(V()!==e||Be())return;const s=function(e){if(N(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}(t),o=N(s)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(s)}`}]}}:wn(n,s,void 0,r,!0);o.level="error",$e(o,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}))}(e),er("onunhandledrejection"))}}}));function er(e){Me&&h.log(`Global Handler attached: ${e}`)}function tr(){const e=V();return(null==e?void 0:e.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}const nr=J((()=>({name:"HttpContext",preprocessEvent(e){var t;if(!ge.navigator&&!ge.location&&!ge.document)return;const n=je(),r={...n.headers,...null==(t=e.request)?void 0:t.headers};e.request={...n,...e.request,headers:r}}}))),rr=J(((e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,s){en(gn,s.getOptions().stackParser,n,t,e,r)}}}));function sr(e){return[Yt(),Jt(),Jn(),Kn(),Zn(),rr(),ln(),nr(),Qn()]}const or=Z,ir="sentryReplaySession",ar="Unable to send Replay",cr=15e4,lr=5e3,ur=2e7;
1var dr=Object.defineProperty,hr=(e,t,n)=>((e,t,n)=>t in e?dr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),pr=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(pr||{});function mr(e){const t=null==e?void 0:e.host;return Boolean((null==t?void 0:t.shadowRoot)===e)}function fr(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function gr(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,yr).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(n){return null}var t}function yr(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=gr(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(n){}else if(function(e){return"selectorText"in e}(e)){let t=e.cssText;const n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=function(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,s=r[n],o=r.getPropertyPriority(s);t+=`${s}:${r.getPropertyValue(s)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),n&&(t=t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),n||r)return t}return t||e.cssText}class vr{constructor(){hr(this,"idNodeMap",new Map),hr(this,"nodeMetaMap",new WeakMap)}getId(e){var t;return e?(null==(t=this.getMeta(e))?void 0:t.id)??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Sr({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function br({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function _r(e){return e.toLowerCase()}function kr(e){return e.toUpperCase()}const wr="__rrweb_original__";function Er(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?_r(t):null}function xr(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function Ir(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(s){return null}const r=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(null==r?void 0:r[1])??null}const Cr={};function Tr(e){const n=Cr[e];if(n)return n;const r=window.document;let s=window[e];if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const n=t.contentWindow;n&&n[e]&&(s=n[e]),r.head.removeChild(t)}catch(t){}return Cr[e]=s.bind(window)}function Mr(...e){return Tr("setTimeout")(...e)}function Rr(...e){return Tr("clearTimeout")(...e)}function Or(e){try{return e.contentDocument}catch(t){}}let Ar=1;const Dr=new RegExp("[^a-z0-9-_:]");function Lr(){return Ar++}let Nr,Fr;const Pr=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Br=/^(?:[a-z+]+:)?\/\//i,$r=/^www\..*/i,Ur=/^(data:)([^,]*),(.*)/i;function zr(e,t){return(e||"").replace(Pr,((e,n,r,s,o,i)=>{const a=r||o||i,c=n||s||"";if(!a)return e;if(Br.test(a)||$r.test(a))return`url(${c}${a}${c})`;if(Ur.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${c})`;const l=t.split("/"),u=a.split("/");l.pop();for(const t of u)"."!==t&&(".."===t?l.pop():l.push(t));return`url(${c}${l.join("/")}${c})`}))}const Wr=/^[^ \t\n\r\u000c]+/,jr=/^[, \t\n\r\u000c]+/,Hr=new WeakMap;function qr(e,t){return t&&""!==t.trim()?Kr(e,t):t}function Kr(e,t){let n=Hr.get(e);if(n||(n=e.createElement("a"),Hr.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function Vr(e,t,n,r,s,o,i){if(!r)return r;if("src"===n||"href"===n&&("use"!==t||"#"!==r[0]))return qr(e,r);if("xlink:href"===n&&"#"!==r[0])return qr(e,r);if("background"===n&&("table"===t||"td"===t||"th"===t))return qr(e,r);if("srcset"===n)return function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const s=e.exec(t.substring(n));return s?(r=s[0],n+=r.length,r):""}const s=[];for(;r(jr),!(n>=t.length);
1){let o=r(Wr);if(","===o.slice(-1))o=qr(e,o.substring(0,o.length-1)),s.push(o);else{let r="";o=qr(e,o);let i=!1;for(;;){const e=t.charAt(n);if(""===e){s.push((o+r).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,s.push((o+r).trim());break}"("===e&&(i=!0)}r+=e,n+=1}}}return s.join(", ")}(e,r);if("style"===n){let t=zr(r,Kr(e));return i&&i.size>0&&(t=function(e,t){if(!e||0===t.size)return e;try{const n=e.split(";"),r=[];for(let e of n){if(e=e.trim(),!e)continue;const n=e.indexOf(":");if(-1===n){r.push(e);continue}const s=e.slice(0,n).trim();t.has(s)||r.push(e)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(n){return e}}(t,i)),t}return"object"===t&&"data"===n?qr(e,r):"function"==typeof o?o(n,r,s):r}function Jr(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function Xr(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Xr(e.parentNode,t,n,r+1):-1}function Gr(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}function Yr(e,n,r,s,o,i){try{const t=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===t)return!1;if("INPUT"===t.tagName){const e=t.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,c=-1;if(i){if(c=Xr(t,Gr(s,o)),c<0)return!0;a=Xr(t,Gr(n,r),c>=0?c:1/0)}else{if(a=Xr(t,Gr(n,r)),a<0)return!1;c=Xr(t,Gr(s,o),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0||!i)}catch(t){}return!!i}function Qr(e){return null==e?"":e.toLowerCase()}function Zr(e,n){const{doc:r,mirror:s,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,skipChild:p=!1,inlineStylesheet:m=!0,maskInputOptions:f={},maskAttributeFn:g,maskTextFn:y,maskInputFn:v,slimDOMOptions:S,dataURLOptions:b={},inlineImages:_=!1,recordCanvas:k=!1,onSerialize:w,onIframeLoad:E,iframeLoadTimeout:x=5e3,onBlockedImageLoad:I,onStylesheetLoad:C,stylesheetLoadTimeout:T=5e3,keepIframeSrcFn:M=()=>!1,newlyAddedElement:R=!1,ignoreCSSAttributes:O}=n;let{preserveWhiteSpace:A=!0}=n;const D=function(e,n){const{doc:r,mirror:s,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:c,maskAttributeFn:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:h,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:f={},maskTextFn:g,maskInputFn:y,dataURLOptions:v={},inlineImages:S,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:k=!1,ignoreCSSAttributes:w}=n,E=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(r,s);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:pr.Document,childNodes:[],compatMode:e.compatMode}:{type:pr.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:pr.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return function(e,n){const{doc:r,blockClass:s,blockSelector:o,unblockSelector:i,inlineStylesheet:a,maskInputOptions:c={},maskAttributeFn:l,maskInputFn:u,dataURLOptions:d={},inlineImages:h,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:f=!1,rootId:g,maskTextClass:y,unmaskTextClass:v,maskTextSelector:S,unmaskTextSelector:b,ignoreCSSAttributes:_}=n,k=function(e,n,r,s){try{if(s&&e.matches(s))return!1;if("string"==typeof n){if(e.classList.contains(n))return!0}else for(let t=e.classList.length;t--;){const r=e.classList[t];if(n.test(r))return!0}if(r)return e.matches(r)}catch(t){}return!1}(e,s,o,i),w=function(e){if(e instanceof HTMLFormElement)return"form";const t=_r(e.tagName);return Dr.test(t)?"div":t}(e);let E={};const x=e.attributes.length;for(let t=0;t<x;t++){const n=e.attributes[t];n.name&&!Jr(w,n.name,n.value)&&(E[n.name]=Vr(r,w,_r(n.name),n.value,e,l,_))}if("link"===w&&a){const t=Array.from(r.styleSheets).find((t=>t.href===e.href));let n=null;t&&(n=gr(t)),n&&(E.rel=null,E.href=null,E.crossorigin=null,E._cssText=zr(n,t.href))}if("style"===w&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=gr(e.sheet);t&&(E._cssText=zr(t,Kr(r)))}if("input"===w||"textarea"===w||"select"===w||"option"===w){const t=e,n=Er(t),r=xr(t,kr(w),n),s=t.checked;if("submit"!==n&&"button"!==n&&r){const e=Yr(t,y,S,v,b,Sr({type:n,tagName:kr(w),maskInputOptions:c}));E.value=br({isMasked:e,element:t,value:r,maskInputFn:u})}s&&(E.checked=s)}if("option"===w&&(e.selected&&!c.select?E.selected=!0:delete E.selected),"canvas"===w&&p)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const s=t.getImageData,o=wr in s?s[wr]:s;
1if(new Uint32Array(o.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(E.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){const t=e.toDataURL(d.type,d.quality),n=r.createElement("canvas");n.width=e.width,n.height=e.height,t!==n.toDataURL(d.type,d.quality)&&(E.rr_dataURL=t)}if("img"===w&&h){Nr||(Nr=r.createElement("canvas"),Fr=Nr.getContext("2d"));const t=e,n=(t.currentSrc||t.getAttribute("src"),t.crossOrigin),s=()=>{t.removeEventListener("load",s);try{Nr.width=t.naturalWidth,Nr.height=t.naturalHeight,Fr.drawImage(t,0,0),E.rr_dataURL=Nr.toDataURL(d.type,d.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s))}"anonymous"===t.crossOrigin&&(n?E.crossOrigin=n:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s)}if("audio"!==w&&"video"!==w||(E.rr_mediaState=e.paused?"paused":"played",E.rr_mediaCurrentTime=e.currentTime),f||(e.scrollLeft&&(E.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(E.rr_scrollTop=e.scrollTop)),k){const{width:t,height:n}=e.getBoundingClientRect();E={class:E.class,rr_width:`${t}px`,rr_height:`${n}px`}}let I;"iframe"!==w||m(E.src)||(k||Or(e)||(E.rr_src=E.src),delete E.src);try{customElements.get(w)&&(I=!0)}catch(t){}return{type:pr.Element,tagName:w,attributes:E,childNodes:[],isSVG:(C=e,Boolean("svg"===C.tagName||C.ownerSVGElement)||void 0),needBlock:k,rootId:g,isCustom:I};var C}(e,{doc:r,blockClass:o,blockSelector:i,unblockSelector:a,inlineStylesheet:m,maskAttributeFn:l,maskInputOptions:f,maskInputFn:y,dataURLOptions:v,inlineImages:S,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:k,rootId:E,maskTextClass:u,unmaskTextClass:d,maskTextSelector:h,unmaskTextSelector:p,ignoreCSSAttributes:w});case e.TEXT_NODE:return function(e,t){var n;const{maskAllText:r,maskTextClass:s,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:a,maskTextFn:c,maskInputOptions:l,maskInputFn:u,rootId:d}=t,h=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const m="STYLE"===h||void 0,f="SCRIPT"===h||void 0,g="TEXTAREA"===h||void 0;if(m&&p){try{e.nextSibling||e.previousSibling||(null==(n=e.parentNode.sheet)?void 0:n.cssRules)&&(p=gr(e.parentNode.sheet))}catch(v){}p=zr(p,Kr(t.doc))}f&&(p="SCRIPT_PLACEHOLDER");const y=Yr(e,s,i,o,a,r);return m||f||g||!p||!y||(p=c?c(p,e.parentElement):p.replace(/[\S]/g,"*")),g&&p&&(l.textarea||y)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===h&&p&&(p=br({isMasked:Yr(e,s,i,o,a,Sr({type:null,tagName:h,maskInputOptions:l})),element:e,value:p,maskInputFn:u})),{type:pr.Text,textContent:p||"",isStyle:m,rootId:d}}(e,{doc:r,maskAllText:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:h,unmaskTextSelector:p,maskTextFn:g,maskInputOptions:f,maskInputFn:y,rootId:E});case e.CDATA_SECTION_NODE:return{type:pr.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:pr.Comment,textContent:e.textContent||"",rootId:E};default:return!1}}(e,{doc:r,mirror:s,blockClass:o,blockSelector:i,maskAllText:c,unblockSelector:a,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:m,maskInputOptions:f,maskAttributeFn:g,maskTextFn:y,maskInputFn:v,dataURLOptions:b,inlineImages:_,recordCanvas:k,keepIframeSrcFn:M,newlyAddedElement:R,ignoreCSSAttributes:O});if(!D)return null;let L;L=s.hasNode(e)?s.getId(e):!function(e,t){if(t.comment&&e.type===pr.Comment)return!0;if(e.type===pr.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===Ir(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Qr(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Qr(e.attributes.name)||"icon"===Qr(e.attributes.rel)||"apple-touch-icon"===Qr(e.attributes.rel)||"shortcut icon"===Qr(e.attributes.rel))))return!0;
1if("meta"===e.tagName){if(t.headMetaDescKeywords&&Qr(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Qr(e.attributes.property).match(/^(og|twitter|fb):/)||Qr(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Qr(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Qr(e.attributes.name)||"googlebot"===Qr(e.attributes.name)||"bingbot"===Qr(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Qr(e.attributes.name)||"generator"===Qr(e.attributes.name)||"framework"===Qr(e.attributes.name)||"publisher"===Qr(e.attributes.name)||"progid"===Qr(e.attributes.name)||Qr(e.attributes.property).match(/^article:/)||Qr(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Qr(e.attributes.name)||"yandex-verification"===Qr(e.attributes.name)||"csrf-token"===Qr(e.attributes.name)||"p:domain_verify"===Qr(e.attributes.name)||"verify-v1"===Qr(e.attributes.name)||"verification"===Qr(e.attributes.name)||"shopify-checkout-api-token"===Qr(e.attributes.name)))return!0}}return!1}(D,S)&&(A||D.type!==pr.Text||D.isStyle||D.textContent.replace(/^\s+|\s+$/gm,"").length)?Lr():-2;const N=Object.assign(D,{id:L});if(s.add(e,N),-2===L)return null;w&&w(e);let F=!p;if(N.type===pr.Element){F=F&&!N.needBlock;const t=e.shadowRoot;t&&fr(t)&&(N.isShadowHost=!0)}if((N.type===pr.Document||N.type===pr.Element)&&F){S.headWhitespace&&N.type===pr.Element&&"head"===N.tagName&&(A=!1);const t={doc:r,mirror:s,blockClass:o,blockSelector:i,maskAllText:c,unblockSelector:a,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,skipChild:p,inlineStylesheet:m,maskInputOptions:f,maskAttributeFn:g,maskTextFn:y,maskInputFn:v,slimDOMOptions:S,dataURLOptions:b,inlineImages:_,recordCanvas:k,preserveWhiteSpace:A,onSerialize:w,onIframeLoad:E,iframeLoadTimeout:x,onBlockedImageLoad:I,onStylesheetLoad:C,stylesheetLoadTimeout:T,keepIframeSrcFn:M,ignoreCSSAttributes:O},n=e.childNodes?Array.from(e.childNodes):[];for(const e of n){const n=Zr(e,t);n&&N.childNodes.push(n)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const r of Array.from(e.shadowRoot.childNodes)){const n=Zr(r,t);n&&(fr(e.shadowRoot)&&(n.isShadow=!0),N.childNodes.push(n))}}if(e.parentNode&&mr(e.parentNode)&&fr(e.parentNode)&&(N.isShadow=!0),N.type!==pr.Element||"iframe"!==N.tagName||N.needBlock||function(e,t,n){const r=e.contentWindow;if(!r)return;let s,o=!1;try{s=r.document.readyState}catch(a){return}if("complete"!==s){const r=Mr((()=>{o||(t(),o=!0)}),n);return void e.addEventListener("load",(()=>{Rr(r),o=!0,t()}))}const i="about:blank";if(r.location.href!==i||e.src===i||""===e.src)return Mr(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=Or(e);if(t&&E){const n=Zr(t,{doc:t,mirror:s,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:m,maskInputOptions:f,maskAttributeFn:g,maskTextFn:y,maskInputFn:v,slimDOMOptions:S,dataURLOptions:b,inlineImages:_,recordCanvas:k,preserveWhiteSpace:A,onSerialize:w,onIframeLoad:E,iframeLoadTimeout:x,onStylesheetLoad:C,stylesheetLoadTimeout:T,keepIframeSrcFn:M,ignoreCSSAttributes:O});n&&E(e,n)}}),x),N.type===pr.Element&&"img"===N.tagName&&!e.complete&&N.needBlock){const t=e,n=()=>{if(t.isConnected&&!t.complete&&I)try{const e=t.getBoundingClientRect();e.width>0&&e.height>0&&I(t,N,e)}catch(e){}t.removeEventListener("load",n)};t.isConnected&&t.addEventListener("load",n)}return N.type===pr.Element&&"link"===N.tagName&&"string"==typeof N.attributes.rel&&("stylesheet"===N.attributes.rel||"preload"===N.attributes.rel&&"string"==typeof N.attributes.href&&"css"===Ir(N.attributes.href))&&function(e,t,n){let r,s=!1;try{r=e.sheet}catch(i){return}if(r)return;const o=Mr((()=>{s||(t(),s=!0)}),n);e.addEventListener("load",(()=>{Rr(o),s=!0,t()}))}(e,(()=>{if(C){const t=Zr(e,{doc:r,mirror:s,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:m,maskInputOptions:f,maskAttributeFn:g,maskTextFn:y,maskInputFn:v,slimDOMOptions:S,dataURLOptions:b,inlineImages:_,recordCanvas:k,preserveWhiteSpace:A,onSerialize:w,onIframeLoad:E,iframeLoadTimeout:x,onStylesheetLoad:C,stylesheetLoadTimeout:T,keepIframeSrcFn:M,ignoreCSSAttributes:O});t&&C(e,t)}}),T),N.type===pr.Element&&delete N.needBlock,N}function es(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}let ts={map:{},getId:()=>-1,getNode:()=>null,removeNodeFromMap(){},has:()=>!1,reset(){}};function ns(e,t,n={}){let r=null,s=0;return function(...o){const i=Date.now();s||!1!==n.leading||(s=i);const a=t-(i-s),c=this;a<=0||a>t?(r&&(function(...e){_s("clearTimeout")(...e)}
1(r),r=null),s=i,e.apply(c,o)):r||!1===n.trailing||(r=ks((()=>{s=!1===n.leading?0:Date.now(),r=null,e.apply(c,o)}),a))}}function rs(e,t,n,r,s=window){const o=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(e){ks((()=>{n.set.call(this,e)}),0),o&&o.set&&o.set.call(this,e)}}),()=>rs(e,t,o||{},!0)}function ss(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(ts=new Proxy(ts,{get:(e,t,n)=>Reflect.get(e,t,n)}));let os=Date.now;function is(e){var t,n,r,s,o,i;const a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:(null==a?void 0:a.documentElement.scrollLeft)||(null==(n=null==(t=null==a?void 0:a.body)?void 0:t.parentElement)?void 0:n.scrollLeft)||(null==(r=null==a?void 0:a.body)?void 0:r.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==a?void 0:a.documentElement.scrollTop)||(null==(o=null==(s=null==a?void 0:a.body)?void 0:s.parentElement)?void 0:o.scrollTop)||(null==(i=null==a?void 0:a.body)?void 0:i.scrollTop)||0}}function as(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function cs(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ls(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(t){return null}}function us(e,t,n,r,s){if(!e)return!1;const o=ls(e);if(!o)return!1;const i=Gr(t,n);if(!s){const e=r&&o.matches(r);return i(o)&&!e}const a=Xr(o,i);let c=-1;return!(a<0)&&(r&&(c=Xr(o,Gr(null,r))),a>-1&&c<0||a<c)}function ds(e,t){return-2===t.getId(e)}function hs(e,t){if(mr(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||hs(e.parentNode,t))}function ps(e){return Boolean(e.changedTouches)}function ms(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function fs(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function gs(e){return Boolean(null==e?void 0:e.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(os=()=>(new Date).getTime());class ys{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function vs(e){var t,n;let r=null;return(null==(n=null==(t=e.getRootNode)?void 0:t.call(e))?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(r=e.getRootNode().host),r}function Ss(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=vs(n);)n=t;return n}(e);return t.contains(n)}(e))}const bs={};function _s(e){const n=bs[e];if(n)return n;const r=window.document;let s=window[e];if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const n=t.contentWindow;n&&n[e]&&(s=n[e]),r.head.removeChild(t)}catch(t){}return bs[e]=s.bind(window)}function ks(...e){return _s("setTimeout")(...e)}var ws=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(ws||{}),Es=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Es||{}),xs=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(xs||{}),Is=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Is||{}),Cs=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Cs||{});function Ts(e){try{return e.contentDocument}catch(t){}}function Ms(e){return"__ln"in e}class Rs{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=(null==t?void 0:t.next)||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Ms(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&
1(n.previous=t)}else if(e.nextSibling&&Ms(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const Os=(e,t)=>`${e}@${t}`;class As{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new Rs,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},s=s=>{if(!s.parentNode||!Ss(s))return;const o=mr(s.parentNode)?this.mirror.getId(vs(s)):this.mirror.getId(s.parentNode),i=r(s);if(-1===o||-1===i)return n.addNode(s);const a=Zr(s,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{ms(e,this.mirror)&&!us(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),fs(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),gs(s)&&this.shadowDomManager.addShadowRoot(s.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{us(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});a&&(e.push({parentId:o,nextId:i,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const a of this.movedSet)Ls(this.removes,a,this.mirror)&&!this.movedSet.has(a.parentNode)||s(a);for(const a of this.addedSet)Ns(this.droppedSet,a)||Ls(this.removes,a,this.mirror)?Ns(this.movedSet,a)?s(a):this.droppedSet.add(a):s(a);let o=null;for(;n.length;){let e=null;if(o){const t=this.mirror.getId(o.value.parentNode),n=r(o.value);-1!==t&&-1!==n&&(e=o)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}o=e.previous,n.removeNode(e.value),s(e.value)}const i={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(i.texts.length||i.attributes.length||i.removes.length||i.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(i))},this.processMutation=e=>{if(!ds(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;us(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:Yr(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,ls(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const n=e.target;let r=e.attributeName,s=e.target.getAttribute(r);if("value"===r){const t=Er(n),r=n.tagName;s=xr(n,r,t);const o=Sr({maskInputOptions:this.maskInputOptions,tagName:r,type:t});s=br({isMasked:Yr(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:n,value:s,maskInputFn:this.maskInputFn})}if(us(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||s===e.oldValue)return;let o=this.attributeMap.get(e.target);
1if("IFRAME"===n.tagName&&"src"===r&&!this.keepIframeSrcFn(s)){if(Ts(n))return;r="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===r&&"INPUT"===n.tagName&&"password"===(e.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!Jr(n.tagName,r)&&(o.attributes[r]=Vr(this.doc,_r(n.tagName),_r(r),s,n,this.maskAttributeFn),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){this.unattachedDoc=this.doc}const r=this.unattachedDoc.createElement("span");e.oldValue&&r.setAttribute("style",e.oldValue);for(const e of Array.from(n.style)){const t=n.style.getPropertyValue(e),s=n.style.getPropertyPriority(e);t!==r.style.getPropertyValue(e)||s!==r.style.getPropertyPriority(e)?o.styleDiff[e]=""===s?t:[t,s]:o._unchangedStyles[e]=[t,s]}for(const e of Array.from(r.style))""===n.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(us(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=mr(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);us(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||ds(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(Ds(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||hs(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Os(n,r)]?Ds(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!mr(e.target)||!fr(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(ds(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[Os(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);us(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes&&e.childNodes.forEach((e=>this.genAdds(e))),gs(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Ds(e,t){var n;e.delete(t),null==(n=t.childNodes)||n.forEach((t=>Ds(e,t)))}function Ls(e,t,n){return 0!==e.length&&function(e,t,n){let r=t.parentNode;for(;r;){const t=n.getId(r);if(e.some((e=>e.id===t)))return!0;r=r.parentNode}return!1}(e,t,n)}function Ns(e,t){return 0!==e.size&&Fs(e,t)}function Fs(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||Fs(e,n))}let Ps;const Bs=e=>Ps?(...t)=>{try{return e(...t)}catch(n){if(Ps&&!0===Ps(n))return()=>{};throw n}}:e,$s=[];function Us(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function zs(e,t){var n,r;const s=new As;$s.push(s),s.init(e);let o=window.MutationObserver||window.__rrMutationObserver;const i=null==(r=null==(n=null==window?void 0:window.Zone)?void 0:n.__symbol__)?void 0:r.call(n,"MutationObserver");i&&window[i]&&(o=window[i]);const a=new o(Bs((t=>{e.onMutation&&!1===e.onMutation(t)||s.processMutations.bind(s)(t)})));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function Ws({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){return es("scroll",Bs(ns(Bs((i=>{const a=Us(i);if(!a||us(a,r,s,o,!0))return;const c=n.getId(a);if(a===t&&t.defaultView){const n=is(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:a.scrollLeft,y:a.scrollTop})})),i.scroll||100)),t)}const js=["INPUT","TEXTAREA","SELECT"],Hs=new WeakMap;function qs({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,ignoreClass:i,ignoreSelector:a,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:d,maskTextClass:h,unmaskTextClass:p,maskTextSelector:m,unmaskTextSelector:f}){function g(e){let n=Us(e);const u=e.isTrusted,g=n&&kr(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||js.indexOf(g)<0||us(n,r,s,o,!0))return;const v=n;if(v.classList.contains(i)||a&&v.matches(a))return;const S=Er(n);let b=xr(v,g,S),_=!1;const k=Sr({maskInputOptions:c,tagName:g,type:S}),w=Yr(n,h,m,p,f,k);
vendor: 4,515 bytes, line 1
1"radio"!==S&&"checkbox"!==S||(_=n.checked),b=br({isMasked:w,element:n,value:b,maskInputFn:l}),y(n,d?{text:b,isChecked:_,userTriggered:u}:{text:b,isChecked:_});const E=n.name;"radio"===S&&E&&_&&t.querySelectorAll(`input[type="radio"][name="${E}"]`).forEach((e=>{if(e!==n){const t=br({isMasked:w,element:e,value:xr(e,g,S),maskInputFn:l});y(e,d?{text:t,isChecked:!_,userTriggered:!1}:{text:t,isChecked:!_})}}))}function y(t,r){const s=Hs.get(t);if(!s||s.text!==r.text||s.isChecked!==r.isChecked){Hs.set(t,r);const s=n.getId(t);Bs(e)({...r,id:s})}}const v=("last"===u.input?["change"]:["input","change"]).map((e=>es(e,Bs(g),t))),S=t.defaultView;if(!S)return()=>{v.forEach((e=>e()))};const b=S.Object.getOwnPropertyDescriptor(S.HTMLInputElement.prototype,"value"),_=[[S.HTMLInputElement.prototype,"value"],[S.HTMLInputElement.prototype,"checked"],[S.HTMLSelectElement.prototype,"value"],[S.HTMLTextAreaElement.prototype,"value"],[S.HTMLSelectElement.prototype,"selectedIndex"],[S.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&v.push(..._.map((e=>rs(e[0],e[1],{set(){Bs(g)({target:this,isTrusted:!1})}},!1,S)))),Bs((()=>{v.forEach((e=>e()))}))}function Ks(e){return function(e,t){if(Gs("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Gs("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Gs("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Gs("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Vs(e,t,n){let r,s;return e?(e.ownerNode?r=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:r}):{}}function Js({mirror:e,stylesheetManager:n},r){var s,o,i;let a=null;a="#document"===r.nodeName?e.getId(r):e.getId(r.host);const c="#document"===r.nodeName?null==(s=r.defaultView)?void 0:s.Document:null==(i=null==(o=r.ownerDocument)?void 0:o.defaultView)?void 0:i.ShadowRoot,l=(null==c?void 0:c.prototype)?Object.getOwnPropertyDescriptor(null==c?void 0:c.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&c&&l?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var e;return null==(e=l.get)?void 0:e.call(this)},set(e){var r;const s=null==(r=l.set)?void 0:r.call(this,e);if(null!==a&&-1!==a)try{n.adoptStyleSheets(e,a)}catch(t){}return s}}),Bs((()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))):()=>{}}function Xs(e,n={}){const r=e.doc.defaultView;if(!r)return()=>{};let s;e.recordDOM&&(s=zs(e,e.doc));const o=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const s="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,a=[];const c=ns(Bs((t=>{const n=Date.now()-i;e(a.map((e=>(e.timeOffset-=n,e))),t),a=[],i=null})),o),l=Bs(ns(Bs((e=>{const t=Us(e),{clientX:n,clientY:s}=ps(e)?e.changedTouches[0]:e;i||(i=os()),a.push({x:n,y:s,id:r.getId(t),timeOffset:os()-i}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?Es.Drag:e instanceof MouseEvent?Es.MouseMove:Es.TouchMove)})),s,{trailing:!1})),u=[es("mousemove",l,n),es("touchmove",l,n),es("drag",l,n)];return Bs((()=>{u.forEach((e=>e()))}))}(e),i=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const a=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,c=[];let l=null;return Object.keys(xs).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e])).forEach((i=>{let a=_r(i);const u=(t=>i=>{const a=Us(i);if(us(a,r,s,o,!0))return;let c=null,u=t;if("pointerType"in i){switch(i.pointerType){case"mouse":c=Is.Mouse;break;case"touch":c=Is.Touch;break;case"pen":c=Is.Pen}c===Is.Touch?xs[t]===xs.MouseDown?u="TouchStart":xs[t]===xs.MouseUp&&(u="TouchEnd"):Is.Pen}else ps(i)&&(c=Is.Touch);null!==c?(l=c,(u.startsWith("Touch")&&c===Is.Touch||u.startsWith("Mouse")&&c===Is.Mouse)&&(c=null)):xs[t]===xs.Click&&(c=l,l=null);const d=ps(i)?i.changedTouches[0]:i;if(!d)return;const h=n.getId(a),{clientX:p,clientY:m}=d;Bs(e)({type:xs[u],id:h,x:p,y:m,...null!==c&&{pointerType:c}})})(i);if(window.PointerEvent)switch(xs[i]){case xs.MouseDown:case xs.MouseUp:a=a.replace("mouse","pointer");break;case xs.TouchStart:case xs.TouchEnd:return}c.push(es(a,u,t))})),Bs((()=>
vendor: 5,599 bytes, line 1
1{c.forEach((e=>e()))}))}(e),a=Ws(e),c=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return es("resize",Bs(ns(Bs((()=>{const t=as(),s=cs();n===t&&r===s||(e({width:Number(s),height:Number(t)}),n=t,r=s)})),200)),t)}(e,{win:r}),l=qs(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:o,doc:i}){const a=Bs((i=>ns(Bs((o=>{const a=Us(o);if(!a||us(a,t,n,r,!0))return;const{currentTime:c,volume:l,muted:u,playbackRate:d}=a;e({type:i,id:s.getId(a),currentTime:c,volume:l,muted:u,playbackRate:d})})),o.media||500))),c=[es("play",a(Cs.Play),i),es("pause",a(Cs.Pause),i),es("seeked",a(Cs.Seeked),i),es("volumechange",a(Cs.VolumeChange),i),es("ratechange",a(Cs.RateChange),i)];return Bs((()=>{c.forEach((e=>e()))}))}(e);let d=()=>{},h=()=>{},p=()=>{},m=()=>{};e.recordDOM&&(d=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:Bs(((r,s,o)=>{const[i,a]=o,{id:c,styleId:l}=Vs(s,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:a}]}),r.apply(s,o)}))});const o=r.CSSStyleSheet.prototype.deleteRule;let i,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:Bs(((r,s,o)=>{const[i]=o,{id:a,styleId:c}=Vs(s,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:i}]}),r.apply(s,o)}))}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:Bs(((r,s,o)=>{const[i]=o,{id:a,styleId:c}=Vs(s,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:i}),r.apply(s,o)}))})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Bs(((r,s,o)=>{const[i]=o,{id:a,styleId:c}=Vs(s,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:i}),r.apply(s,o)}))}));const c={};Ys("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Ys("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Ys("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Ys("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(c).forEach((([r,s])=>{l[r]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=new Proxy(l[r].insertRule,{apply:Bs(((r,s,o)=>{const[i,a]=o,{id:c,styleId:l}=Vs(s.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:[...Ks(s),a||0]}]}),r.apply(s,o)}))}),s.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:Bs(((r,s,o)=>{const[i]=o,{id:a,styleId:c}=Vs(s.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...Ks(s),i]}]}),r.apply(s,o)}))})})),Bs((()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=o,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule}))}))}(e,{win:r}),h=Js(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const o=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:Bs(((s,i,a)=>{var c;const[l,u,d]=a;if(n.has(l))return o.apply(i,[l,u,d]);const{id:h,styleId:p}=Vs(null==(c=i.parentRule)?void 0:c.parentStyleSheet,t,r.styleMirror);return(h&&-1!==h||p&&-1!==p)&&e({id:h,styleId:p,set:{property:l,value:u,priority:d},index:Ks(i.parentRule)}),s.apply(i,a)}))});const i=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:Bs(((s,o,a)=>{var c;const[l]=a;if(n.has(l))return i.apply(o,[l]);const{id:u,styleId:d}=Vs(null==(c=o.parentRule)?void 0:c.parentStyleSheet,t,r.styleMirror);return(u&&-1!==u||d&&-1!==d)&&e({id:u,styleId:d,remove:{property:l},index:Ks(o.parentRule)}),s.apply(o,a)}))}),Bs((()=>{s.CSSStyleDeclaration.prototype.setProperty=o,s.CSSStyleDeclaration.prototype.removeProperty=i}))}(e,{win:r}),e.collectFonts&&(m=function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){const r=new o(e,t,n);return s.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const i=ss(t.fonts,"add",(function(t){return function(n){return ks(Bs((()=>{const t=s.get(n);t&&(e(t),s.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=o})),r.push(i),Bs((()=>{r.forEach((e=>e()))}))}(e)));const f=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,selectionCb:i}=e;let a=!0;const c=Bs((()=>{const e=t.getSelection();if(!e||a&&(null==e?void 0:e.isCollapsed))return;a=e.isCollapsed||!1;const c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const i=e.getRangeAt(t),{startContainer:a,startOffset:l,endContainer:u,endOffset:d}=i;us(a,r,s,o,!0)||us(u,r,s,o,!0)||c.push({start:n.getId(a),startOffset:l,end:n.getId(u),endOffset:d})}i({ranges:c})}));return c(),es("selectionchange",c)}(e),g=function({doc:e,customElementCb:n}){const r=e.defaultView;return r&&r.customElements?ss(r.customElements,"define",(function(e){return function(r,s,o){try{n({define:{name:r}})}catch(t){}return e.apply(this,[r,s,o])}})):()=>{}}(e),y=[];for(const t of e.plugins)y.push(t.observer(t.callback,r,t.options));return Bs((()=>
vendor: 4,532 bytes, line 1
1{$s.forEach((e=>e.reset())),null==s||s.disconnect(),o(),i(),a(),c(),l(),u(),d(),h(),p(),m(),f(),g(),y.forEach((e=>e()))}))}function Gs(e){return void 0!==window[e]}function Ys(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Qs{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const s=n||this.getIdToRemoteIdMap(e),o=r||this.getRemoteIdToIdMap(e);let i=s.get(t);return i||(i=this.generateIdFn(),s.set(t,i),o.set(i,t)),i}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,r)))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;return r.get(t)||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class Zs{constructor(){this.crossOriginIframeMirror=new Qs(Lr),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class eo{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Qs(Lr),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Qs(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var n,r;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(n=e.contentWindow)||n.addEventListener("message",this.handleMessage.bind(this))),null==(r=this.loadListener)||r.call(this,e);const s=Ts(e);s&&s.adoptedStyleSheets&&s.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(s.adoptedStyleSheets,this.mirror.getId(s))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){var n;switch(t.type){case ws.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:ws.IncrementalSnapshot,data:{source:Es.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case ws.Meta:case ws.Load:case ws.DomContentLoaded:return!1;case ws.Plugin:return t;case ws.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case ws.IncrementalSnapshot:switch(t.data.source){case Es.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Es.Drag:case Es.TouchMove:case Es.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Es.ViewportResize:return!1;case Es.MediaInteraction:case Es.MouseInteraction:case Es.Scroll:case Es.CanvasMutation:case Es.Input:return this.replaceIds(t.data,e,["id"]),t;case Es.StyleSheetRule:case Es.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Es.Font:return t;
1case Es.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case Es.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(n=t.data.styles)||n.forEach((t=>{this.replaceStyleIds(t,e,["styleId"])})),t}}return!1}replace(e,t,n,r){for(const s of r)(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(n,t[s]):t[s]=e.getId(n,t[s]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===pr.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class to{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class no{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!fr(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=zs({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(Ws({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),ks((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Js({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){const n=Ts(e),r=function(e){try{return e.contentWindow}catch(t){}}(e);n&&r&&this.patchAttachShadow(r.Element,n)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(ss(e.prototype,"attachShadow",(function(e){return function(r){const s=e.call(this,r);return this.shadowRoot&&Ss(this)&&n.addShadowRoot(this.shadowRoot,t),s}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(t){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var ro="undefined"==typeof Uint8Array?[]:new Uint8Array(256),so=0;so<64;so++)ro["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(so)]=so;class oo{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class io{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new ys,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const s of e){let e;this.styleMirror.has(s)?e=this.styleMirror.getId(s):(e=this.styleMirror.add(s),r.push({styleId:e,rules:Array.from(s.rules||CSSRule,((e,t)=>({rule:yr(e),index:t})))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class ao{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.active||(this.active=!0,function(...e){_s("requestAnimationFrame")(...e)}((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let co,lo;try{if(2!==Array.from([1],(e=>2*e))[0]){const t=document.createElement("iframe");document.body.appendChild(t),Array.from=(null==(e=t.contentWindow)?void 0:e.Array.from)||Array.from,document.body.removeChild(t)}}catch(Ki){}const uo=new vr;function ho(e={}){const{emit:n,checkoutEveryNms:r,checkoutEveryNth:s,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:a=null,ignoreClass:c="rr-ignore",ignoreSelector:l=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:h=null,maskTextSelector:p=null,unmaskTextSelector:m=null,inlineStylesheet:f=!0,maskAllInputs:g,maskInputOptions:y,slimDOMOptions:v,maskAttributeFn:S,maskInputFn:b,maskTextFn:_,maxCanvasSize:k=null,packFn:w,sampling:E={},dataURLOptions:x={},mousemoveWait:I,recordDOM:C=!0,recordCanvas:T=!1,recordCrossOriginIframes:M=!1,recordAfter:R=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:O=!1,collectFonts:A=!1,inlineImages:D=!1,plugins:L,keepIframeSrcFn:N=()=>!1,ignoreCSSAttributes:F=new Set([]),errorHandler:P,onMutation:B,getCanvasManager:$}=e;Ps=P;const U=!M||window.parent===window;let z=!1;if(!U)try{window.parent.document&&(z=!1)}catch(t){z=!0}if(U&&!n)throw new Error("emit function is required");if(!U&&!z)return()=>{};void 0!==I&&void 0===E.mousemove&&(E.mousemove=I),uo.reset();const W=!0===g?{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,radio:!0,checkbox:!0}:void 0!==y?y:{},j=!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===v,headMetaDescKeywords:"all"===v}:v||{};let H;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let q=0;const K=e=>{for(const t of L||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!z&&(e=w(e)),e};co=(e,t)=>{var o;const i=e;if(i.timestamp=os(),!(null==(o=$s[0])?void 0:o.isFrozen())||i.type===ws.FullSnapshot||i.type===ws.IncrementalSnapshot&&i.data.source===Es.Mutation||$s.forEac
1h((e=>e.unfreeze())),U)null==n||n(K(i),t);else if(z){const e={type:"rrweb",event:K(i),origin:window.location.origin,isCheckout:t};window.parent.postMessage(e,"*")}if(i.type===ws.FullSnapshot)H=i,q=0;else if(i.type===ws.IncrementalSnapshot){if(i.data.source===Es.Mutation&&i.data.isAttachIframe)return;q++;const e=s&&q>=s,t=r&&H&&i.timestamp-H.timestamp>r;(e||t)&&te(!0)}};const V=e=>{co({type:ws.IncrementalSnapshot,data:{source:Es.Mutation,...e}})},J=e=>co({type:ws.IncrementalSnapshot,data:{source:Es.Scroll,...e}}),X=e=>co({type:ws.IncrementalSnapshot,data:{source:Es.CanvasMutation,...e}}),G=new io({mutationCb:V,adoptedStyleSheetCb:e=>co({type:ws.IncrementalSnapshot,data:{source:Es.AdoptedStyleSheet,...e}})}),Y="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new Zs:new eo({mirror:uo,mutationCb:V,stylesheetManager:G,recordCrossOriginIframes:M,wrappedEmit:co});for(const t of L||[])t.getMirror&&t.getMirror({nodeMirror:uo,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});const Q=new ao,Z=function(e,t){try{return e?e(t):new oo}catch{return new oo}}($,{mirror:uo,win:window,mutationCb:e=>co({type:ws.IncrementalSnapshot,data:{source:Es.CanvasMutation,...e}}),recordCanvas:T,blockClass:o,blockSelector:i,unblockSelector:a,maxCanvasSize:k,sampling:E.canvas,dataURLOptions:x,errorHandler:P}),ee="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new to:new no({mutationCb:V,scrollCb:J,bypassOptions:{onMutation:B,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:f,maskInputOptions:W,dataURLOptions:x,maskAttributeFn:S,maskTextFn:_,maskInputFn:b,recordCanvas:T,inlineImages:D,sampling:E,slimDOMOptions:j,iframeManager:Y,stylesheetManager:G,canvasManager:Z,keepIframeSrcFn:N,processedNodeManager:Q,ignoreCSSAttributes:F},mirror:uo}),te=(e=!1)=>{if(!C)return;co({type:ws.Meta,data:{href:window.location.href,width:cs(),height:as()}},e),G.reset(),ee.init(),$s.forEach((e=>e.lock()));const t=function(e,t){const{mirror:n=new vr,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:o=null,maskAllText:i=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:h=!1,recordCanvas:p=!1,maskAllInputs:m=!1,maskAttributeFn:f,maskTextFn:g,maskInputFn:y,slimDOM:v=!1,dataURLOptions:S,preserveWhiteSpace:b,onSerialize:_,onIframeLoad:k,iframeLoadTimeout:w,onBlockedImageLoad:E,onStylesheetLoad:x,stylesheetLoadTimeout:I,keepIframeSrcFn:C=()=>!1,ignoreCSSAttributes:T=new Set([])}=t||{};return Zr(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,maskAllText:i,maskTextClass:a,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===m?{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}:!1===m?{}:m,maskAttributeFn:f,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:S,inlineImages:h,recordCanvas:p,preserveWhiteSpace:b,onSerialize:_,onIframeLoad:k,iframeLoadTimeout:w,onBlockedImageLoad:E,onStylesheetLoad:x,stylesheetLoadTimeout:I,keepIframeSrcFn:C,newlyAddedElement:!1,ignoreCSSAttributes:T})}(document,{mirror:uo,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:f,maskAllInputs:W,maskAttributeFn:S,maskInputFn:b,maskTextFn:_,slimDOM:j,dataURLOptions:x,recordCanvas:T,inlineImages:D,onSerialize:e=>{ms(e,uo)&&Y.addIframe(e),fs(e,uo)&&G.trackLinkElement(e),gs(e)&&ee.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Y.attachIframe(e,t),e.contentWindow&&Z.addWindow(e.contentWindow),ee.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{G.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{V({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},keepIframeSrcFn:N,ignoreCSSAttributes:F});t&&(co({type:ws.FullSnapshot,data:{node:t,initialOffset:is(window)}}
1),$s.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&G.adoptStyleSheets(document.adoptedStyleSheets,uo.getId(document)))};lo=te;try{const e=[],t=e=>{var t;return Bs(Xs)({onMutation:B,mutationCb:V,mousemoveCb:(e,t)=>co({type:ws.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>co({type:ws.IncrementalSnapshot,data:{source:Es.MouseInteraction,...e}}),scrollCb:J,viewportResizeCb:e=>co({type:ws.IncrementalSnapshot,data:{source:Es.ViewportResize,...e}}),inputCb:e=>co({type:ws.IncrementalSnapshot,data:{source:Es.Input,...e}}),mediaInteractionCb:e=>co({type:ws.IncrementalSnapshot,data:{source:Es.MediaInteraction,...e}}),styleSheetRuleCb:e=>co({type:ws.IncrementalSnapshot,data:{source:Es.StyleSheetRule,...e}}),styleDeclarationCb:e=>co({type:ws.IncrementalSnapshot,data:{source:Es.StyleDeclaration,...e}}),canvasMutationCb:X,fontCb:e=>co({type:ws.IncrementalSnapshot,data:{source:Es.Font,...e}}),selectionCb:e=>{co({type:ws.IncrementalSnapshot,data:{source:Es.Selection,...e}})},customElementCb:e=>{co({type:ws.IncrementalSnapshot,data:{source:Es.CustomElement,...e}})},blockClass:o,ignoreClass:c,ignoreSelector:l,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:m,maskInputOptions:W,inlineStylesheet:f,sampling:E,recordDOM:C,recordCanvas:T,inlineImages:D,userTriggeredOnInput:O,collectFonts:A,doc:e,maskAttributeFn:S,maskInputFn:b,maskTextFn:_,keepIframeSrcFn:N,blockSelector:i,unblockSelector:a,slimDOMOptions:j,dataURLOptions:x,mirror:uo,iframeManager:Y,stylesheetManager:G,shadowDomManager:ee,processedNodeManager:Q,canvasManager:Z,ignoreCSSAttributes:F,plugins:(null==(t=null==L?void 0:L.filter((e=>e.observer)))?void 0:t.map((e=>({observer:e.observer,options:e.options,callback:t=>co({type:ws.Plugin,data:{plugin:e.name,payload:t}})}))))||[]},{})};Y.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(r){}}));const n=()=>{te(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(es("DOMContentLoaded",(()=>{co({type:ws.DomContentLoaded,data:{}}),"DOMContentLoaded"===R&&n()}))),e.push(es("load",(()=>{co({type:ws.Load,data:{}}),"load"===R&&n()}),window))),()=>{e.forEach((e=>e())),Q.destroy(),lo=void 0,Ps=void 0}}catch(ne){}}var po,mo;function fo(e){return e>9999999999?e:1e3*e}function go(e){return e>9999999999?e/1e3:e}function yo(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:ws.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:st(t,10,1e3)}}),"console"===t.category))))}function vo(e){return e.closest("button,a")||e}function So(e){const t=bo(e);return t&&t instanceof Element?vo(t):t}function bo(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let _o;ho.mirror=uo,ho.takeFullSnapshot=function(e){if(!lo)throw new Error("please take full snapshot after start recording");lo(e)},(mo=po||(po={}))[mo.NotStarted=0]="NotStarted",mo[mo.Running=1]="Running",mo[mo.Stopped=2]="Stopped";const ko=new Set([Es.Mutation,Es.StyleSheetRule,Es.StyleDeclaration,Es.AdoptedStyleSheet,Es.CanvasMutation,Es.Selection,Es.MediaInteraction]);class wo{constructor(e,t,n=yo){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=(t=()=>{this._lastMutation=xo()},_o||(_o=[],re(or,"open",(function(e){return function(...t){if(_o)try{_o.forEach((e=>e()))}catch{}return e.apply(or,t)}}))),_o.push(t),()=>{const e=_o?_o.indexOf(t):-1;e>-1&&_o.splice(e,1)});var t;this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){return!Eo.includes(e.tagName)||("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||"")||(!("A"!==e.tagName||!(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))||!(!t||!e.matches(t))))}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const n={timestamp:go(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=go(e)}registerScroll(e=Date.now()){this._lastScroll=go(e)}registerClick(e){const t=vo(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=xo();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}));for(const n of e){const e=this._clicks.indexOf(n);e>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,s=!n&&!r,{clickCount:o,clickBreadcrumb:i}=e;if(s){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",s={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:or.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:o||1}};this._addBreadcrumbEvent(t,s)}else if(o>1){const e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:or.location.href,route:t.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Nn((()=>this._checkClicks()),1e3)}}const Eo=["A","BUTTON","INPUT"];function xo(){return Date.now()/1e3}function Io(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Co=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Co||{});const To=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Mo(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(To.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}function Ro(e,t){const n=ho.mirror.getId(e),r=n&&ho.mirror.getNode(n),s=r&&ho.mirror.getMeta(r),o=s&&function(e){return e.type===Co.Element}(s)?s:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map((e=>
1e.type===Co.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:Mo(o.attributes)}}:{}}}const Oo={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:o,decodedBodySize:i,encodedBodySize:a,responseStatus:c,transferSize:l}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Lo(o),end:Lo(s),name:r,data:{size:l,statusCode:c,decodedBodySize:i,encodedBodySize:a}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:s}=e,o=Lo(s);return{type:n,name:r,start:o,end:o+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:s,domComplete:o,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:h,startTime:p,transferSize:m,type:f}=e;return 0===s?null:{type:`${t}.${f}`,start:Lo(p),end:Lo(o),name:n,data:{size:m,decodedBodySize:r,encodedBodySize:i,duration:s,domInteractive:l,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:o,redirectCount:h}}}};function Ao(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function Do(e){const t=Oo[e.entryType];return t?t(e):null}function Lo(e){return((ct()||or.performance.timeOrigin)+e)/1e3}function No(e){const t=e.entries[e.entries.length-1];return $o(e,"largest-contentful-paint",(null==t?void 0:t.element)?[t.element]:void 0)}function Fo(e){return void 0!==e.sources}function Po(e){const t=[],n=[];for(const r of e.entries)if(Fo(r)){const e=[];for(const t of r.sources)if(t.node){n.push(t.node);const r=ho.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return $o(e,"cumulative-layout-shift",n,t)}function Bo(e){const t=e.entries[e.entries.length-1];return $o(e,"interaction-to-next-paint",(null==t?void 0:t.target)?[t.target]:void 0)}function $o(e,t,n,r){const s=e.value,o=e.rating,i=Lo(s);return{type:"web-vital",name:t,start:i,end:i,data:{value:s,size:s,rating:o,nodeIds:n?n.map((e=>ho.mirror.getId(e))):void 0,attributions:r}}}const Uo="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,zo=["log","warn","error"],Wo="[Replay] ";function jo(e,t="info"){qt({category:"console",data:{logger:"replay"},level:t,message:`${Wo}${e}`},{level:t})}const Ho=function(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=!!n.captureExceptions,t=!!n.traceInternals}};return Uo?(zo.forEach((e=>{n[e]=(...n)=>{h[e](Wo,...n),t&&jo(n.join(""),cn(e))}})),n.exception=(r,...s)=>{s.length&&n.error&&n.error(...s),h.error(Wo,r),e?ht(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&jo(r,"error")},n.infoTick=(...e)=>{h.log(Wo,...e),t&&setTimeout((()=>jo(e[0])),0)}):zo.forEach((e=>{n[e]=()=>{}})),n}();class qo extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class Ko{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>ur)throw new qo;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?fo(e):null}}class Vo{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){Uo&&Ho.log("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,s)=>{const o=({data:t})=>{const i=t;if(i.method===e&&i.id===n){if(this._worker.removeEventListener("message",o),!i.success)return Uo&&Ho.error("Error in compression worker: ",i.response),void s(new Error("Error in compression worker"));r(i.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class Jo{constructor(e){this._worker=new Vo(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}
1addEvent(e){const t=fo(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>ur?Promise.reject(new qo):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{Uo&&Ho.exception(e,'Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Xo{constructor(e){this._fallback=new Ko,this._compression=new Jo(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(Uo&&Ho.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(const o of e)r.push(this._compression.addEvent(o));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(s){Uo&&Ho.exception(s,"Failed to add events when switching buffers.")}}}function Go(){try{return"sessionStorage"in or&&!!or.sessionStorage}catch{return!1}}function Yo(e){return void 0!==e&&Math.random()<e}function Qo(e){if(Go())try{or.sessionStorage.setItem(ir,JSON.stringify(e))}catch{}}function Zo(e){const t=Date.now();return{id:e.id||v(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function ei({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const s=function(e,t){return Yo(e)?"session":!!t&&"buffer"}(e,t),o=Zo({sampled:s,previousSessionId:r});return n&&Qo(o),o}function ti(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function ni(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return ti(e.started,t,r)||ti(e.lastActivity,n,r)}function ri(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!ni(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function si({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const s=r.stickySession&&function(){if(!Go())return null;try{const e=or.sessionStorage.getItem(ir);if(!e)return null;const t=JSON.parse(e);return Uo&&Ho.infoTick("Loading existing session"),Zo(t)}catch{return null}}();return s?ri(s,{sessionIdleExpire:e,maxReplayDuration:t})?(Uo&&Ho.infoTick("Session in sessionStorage is expired, creating new one..."),ei(r,{previousSessionId:s.id})):s:(Uo&&Ho.infoTick("Creating new session"),ei(r,{previousSessionId:n}))}function oi(e,t,n){return!!ai(e,t)&&(ii(e,t,n),!0)}async function ii(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const s="buffer"===e.recordingMode;try{n&&s&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const o=function(e,t){try{if("function"==typeof t&&function(e){return e.type===ws.Custom}(e))return t(e)}catch(n){return Uo&&Ho.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!o)return;return await r.addEvent(o)}catch(o){const t=o&&o instanceof qo,n=t?"addEventSizeExceeded":"addEvent",i=V();if(i){const e=t?"buffer_overflow":"internal_sdk_error";i.recordDroppedEvent(e,"replay")}if(t&&s)return r.clear(),r.waitForCheckout=!0,null;e.handleException(o),await e.stop({reason:n})}}
1function ai(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=fo(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now()||n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration&&(Uo&&Ho.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),1))}function ci(e){return!e.type}function li(e){return"transaction"===e.type}function ui(e){return"feedback"===e.type}function di(e){return!!e.category}function hi(){const e=A().getPropagationContext().dsc;e&&delete e.replay_id;const t=Ve();t&&delete Ye(t).replay_id}function pi(e,t){return t.map((({type:t,start:n,end:r,name:s,data:o})=>{const i=e.throttledAddEvent({type:ws.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:s,startTimestamp:n,endTimestamp:r,data:o}}});return"string"==typeof i?Promise.resolve(null):i}))}function mi(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!Uo||!e.getOptions()._experiments.traceInternals)&&function(e,t){const n=null==t?void 0:t.getDsn(),r=null==t?void 0:t.getOptions().tunnel;return function(e,t){const n=H(e);return!(!n||q(n))&&!!t&&n.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(n.search)}(e,n)||function(e,t){return!!t&&zt(e)===zt(t)}(e,r)}(t,V())}(e,t.name)||e.addUpdate((()=>(pi(e,[t]),!0))))}function fi(e){if(!e)return;const t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=lt(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function gi(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function yi(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function vi(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:o,statusCode:i,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:s,data:{method:o,statusCode:i,request:a,response:c}}}function Si(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function bi(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:s,warnings:o}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>cr,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,cr);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(n);return r.body=s,(null==o?void 0:o.length)&&(r._meta={warnings:o}),r}function _i(e,t){return Object.entries(e).reduce(((n,[r,s])=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=s),n}),{})}function ki(e,t){const n=function(e,t=or.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(or.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(e);return Y(n,t)}function wi(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function Ei(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?wi(n,t):Array.isArray(n)?{}:_i(n,t):{}}function xi(e){const n=V();try{const{networkDetailAllowUrls:r,networkDetailDenyUrls:s,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:a}=e.getOptions(),c={replay:e,networkDetailAllowUrls:r,networkDetailDenyUrls:s,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:a};n&&n.on("beforeAddBreadcrumb",((e,n)=>function(e,n,r){if(n.data)try{(function(e){return"xhr"===e.category})(n)&&function(e){return null==e?void 0:e.xhr}(r)&&(function(e,t){const{xhr:n,input:r}=t;if(!n)return;const s=fi(r),o=n.getResponseHeader("content-length")?gi(n.getResponseHeader("content-length")):function(e,t){try{return fi("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch{return}}(n.response,n.responseType);void 0!==s&&(e.data.request_body_size=s),void 0!==o&&(e.data.response_body_size=o)}(n,r),async function(e,n,r){try{const s=function(e,n,r){const s=Date.now(),{startTimestamp:o=s,endTimestamp:i=s,input:a,xhr:c}=n,{url:l,method:u,status_code:d=0,request_body_size:h,response_body_size:p}=e.data;if(!l)return null;if(!c||!ki(l,r.networkDetailAllowUrls)||ki(l,r.networkDetailDenyUrls))return{startTimestamp:o,endTimestamp:i,url:l,method:u,statusCode:d,request:Si(h),response:Si(p)};const m=c[Ce],f=m?_i(m.request_headers,r.networkRequestHeaders):{},g=_i(ut(c),r.networkResponseHeaders),[y,v]=r.networkCaptureBodies?dt(
1a,Ho):[void 0],[S,b]=r.networkCaptureBodies?function(e){const n=[];try{return[e.responseText]}catch(t){n.push(t)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return Uo&&Ho.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Uo&&Ho.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(t){n.push(t)}return Uo&&Ho.warn("Failed to get xhr response body",...n),[void 0]}(c):[void 0],_=bi(f,h,y),k=bi(g,p,S);return{startTimestamp:o,endTimestamp:i,url:l,method:u,statusCode:d,request:v?yi(_,v):_,response:b?yi(k,b):k}}(e,n,r),o=vi("resource.xhr",s);mi(r.replay,o)}catch(s){Uo&&Ho.exception(s,"Failed to capture xhr breadcrumb")}}(n,r,e)),function(e){return"fetch"===e.category}(n)&&function(e){return null==e?void 0:e.response}(r)&&(function(e,t){const{input:n,response:r}=t,s=fi(n?at(n):void 0),o=r?gi(r.headers.get("content-length")):void 0;void 0!==s&&(e.data.request_body_size=s),void 0!==o&&(e.data.response_body_size=o)}(n,r),async function(e,t,n){try{const r=await async function(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r}=t,{url:i,method:a,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,d=ki(i,n.networkDetailAllowUrls)&&!ki(i,n.networkDetailDenyUrls),h=d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const s=n?(i=t,1===(o=n).length&&"string"!=typeof o[0]?Ei(o[0],i):2===o.length?Ei(o[1],i):{}):{};var o,i;if(!e)return bi(s,r,void 0);const a=at(n),[c,l]=dt(a,Ho),u=bi(s,r,c);return l?yi(u,l):u}(n,t.input,l):Si(l),p=await async function(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,s){if(!e&&void 0!==s)return Si(s);const o=r?wi(r.headers,n):{};if(!r||!t&&void 0!==s)return bi(o,s,void 0);const[i,a]=await async function(e){const t=function(e){try{return e.clone()}catch(t){Uo&&Ho.exception(t,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise(((t,n)=>{const r=Nn((()=>n(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}(t);return[e]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(Uo&&Ho.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(Uo&&Ho.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}(r),c=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:s}){try{const o=(null==e?void 0:e.length)&&void 0===n?fi(e):n;return r?bi(s,o,t?e:void 0):Si(o)}catch(o){return Uo&&Ho.exception(o,"Failed to serialize response body"),bi(s,n,void 0)}}(i,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:o});return a?yi(c,a):c}(d,n,t.response,u);return{startTimestamp:s,endTimestamp:o,url:i,method:a,statusCode:c,request:h,response:p}}(e,t,n),s=vi("resource.fetch",r);mi(n.replay,s)}catch(r){Uo&&Ho.exception(r,"Failed to capture fetch breadcrumb")}}(n,r,e))}catch(t){Uo&&Ho.exception(t,"Error when enriching network breadcrumb")}}(c,e,n)))}catch{}}function Ii(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}const Ci=Z.navigator;function Ti(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(Uo&&Ho.warn("Received replay event after session expired."));const s=r||!t;t=!0,e.clickDetector&&function(e,t){try{if(!function(e){return 3===e.type}(t))return;const{source:n}=t.data;if(ko.has(n)&&e.registerMutation(t.timestamp),n===Es.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===Es.MouseInteraction}(t)){const{type:n,id:r}=t.data,s=ho.mirror.getNode(r);s instanceof HTMLElement&&n===xs.Click&&e.registerClick(s)}}catch{}}(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&s&&e.setInitialState(),!oi(e,n,s))return!0;
1if(!s)return!1;const t=e.session;if(function(e,t){t&&e.session&&0===e.session.segmentId&&oi(e,function(e){const t=e.getOptions();return{type:ws.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,s),"buffer"===e.recordingMode&&t&&e.eventBuffer&&!t.dirty){const n=e.eventBuffer.getEarliestTimestamp();n&&(Uo&&Ho.log(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&Qo(t))}return(null==t?void 0:t.previousSessionId)||"session"===e.recordingMode&&e.flush(),!0}))}}class Mi extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class Ri extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function Oi(e,t={count:0,interval:5e3}){const{recordingData:n,onError:r}=e;if(n.length)try{return await async function({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:i}){const a=function({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:c,errorIds:l,traceIds:u,initialTimestamp:d}=r,h=V(),p=A(),m=null==h?void 0:h.getTransport(),f=null==h?void 0:h.getDsn();if(!(h&&m&&f&&i.sampled))return Promise.resolve({});const g={type:"replay_event",replay_start_timestamp:d/1e3,timestamp:s/1e3,error_ids:l,trace_ids:u,urls:c,replay_id:t,segment_id:n,replay_type:i.sampled},y=await async function({client:e,scope:t,replayId:n,event:r}){const s={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,s);const o=await M(e.getOptions(),r,s,t,e,D());if(!o)return null;e.emit("postprocessEvent",o,s),o.platform=o.platform||"javascript";const i=e.getSdkMetadata(),{name:a,version:c,settings:l}=(null==i?void 0:i.sdk)||{};return o.sdk={...o.sdk,name:a||"sentry.javascript.unknown",version:c||"0.0.0",settings:l},o}({scope:p,client:h,replayId:t,event:g});if(!y)return h.recordDroppedEvent("event_processor","replay"),Uo&&Ho.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete y.sdkProcessingMetadata;const v=function(e,t,n,r){return o(ot(e,it(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(y,a,f,h.getOptions().tunnel);let S;try{S=await m.send(v)}catch(Ki){const t=new Error(ar);try{t.cause=Ki}catch{}throw t}if("number"==typeof S.statusCode&&(S.statusCode<200||S.statusCode>=300))throw new Mi(S.statusCode);const b=kt({},S);if(_t(b,"replay"))throw new Ri(b);return S}(e),!0}catch(Ki){if(Ki instanceof Mi||Ki instanceof Ri)throw Ki;if(rt("Replays",{_retryCount:t.count}),r&&r(Ki),t.count>=3){const e=new Error(`${ar} - max retries exceeded`);try{e.cause=Ki}catch{}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{Nn((async()=>{try{await Oi(e,t),n(!0)}catch(s){r(s)}}),t.interval)}))}}const Ai="__THROTTLED";class Di{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){return function(e,t,n){let r,s,o;const i=(null==n?void 0:n.maxWait)?Math.max(n.maxWait,t):0,a=(null==n?void 0:n.setTimeoutImpl)||setTimeout;function c(){return l(),r=e(),r}function l(){void 0!==s&&clearTimeout(s),void 0!==o&&clearTimeout(o),s=o=void 0}function u(){return s&&clearTimeout(s),s=a(c,t),i&&void 0===o&&(o=a(c,i)),r}return u.cancel=l,u.flush=function(){return void 0!==s||void 0!==o?c():r},u}(e,t,{...n,setTimeoutImpl:Nn})}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,n){const r=new Map;let s=!1;return(...o)=>{const i=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach(((e,n)=>{n<t&&r.delete(n)}))})(i),[...r.values()].reduce(((e,t)=>e+t),0)>=t){const e=s;return s=!0,e?"__SKIPPED":Ai}s=!1;const a=r.get(i)||0;return r.set(i,a+1),e(...o)}}(((e,t)=>function(e,t,n){return ai(e,t)?ii(e,t,n):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),s=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;if(s&&(this.clickDetector=new wo(this,s)),Uo){const t=e._experiments;Ho.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===or.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroun
1dTasks()},this._handleWindowBlur=()=>{const e=Io({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{const e=Io({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o,target:i}=e;if(!i||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(i)||!o)return null;const a=t||r||s,c=1===o.length;if(!a&&c)return null;const l=Re(i,{maxStringLength:200})||"<unknown>";return Io({category:"ui.keyDown",message:l,data:{...Ro(i,l).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o}})}(t);n&&yo(e,n)}(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}handleException(e){Uo&&Ho.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;this._requiresManualStart=r,r||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",Uo&&Ho.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording()):Uo&&Ho.exception(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(Uo&&Ho.log("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(Uo&&Ho.log("Buffering is in progress, call `flush()` to save the replay"));Uo&&Ho.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=si({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(Uo&&Ho.log("Buffering is in progress, call `flush()` to save the replay"));Uo&&Ho.infoTick("Starting replay in buffer mode");const e=si({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=ho({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:Ti(this),.../iPhone|iPad|iPod/i.test((null==Ci?void 0:Ci.userAgent)??"")||/Macintosh/i.test((null==Ci?void 0:Ci.userAgent)??"")&&(null==Ci?void 0:Ci.maxTouchPoints)&&(null==Ci?void 0:Ci.maxTouchPoints)>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(Ki){this.handleException(Ki)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(Ki){return this.handleException(Ki),!1}}async stop({forceFlush:e=!1,reason:t}={}){var n,r;if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{Uo&&Ho.log("Stopping Replay"+(t?` triggered by ${t}`:"")),hi(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),null==(n=this.eventBuffer)||n.destroy(),this.eventBuffer=null,r=this,function(){if(Go())try{or.sessionStorage.removeItem(ir)}catch{}}(),r.session=void 0}catch(Ki){this.handleException(Ki)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Uo&&Ho.log("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Uo&&Ho.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();Uo&&Ho.log("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&this._isEnabled&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){var t,n;if(!e||!1!==(null==(t=this.session)?void 0:t.sampled))return null==(n=this.session)?void 0:n.id}
1checkAndHandleExpiredSession(){if(!(this._lastActivity&&ti(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${or.location.pathname}${or.location.hash}${or.location.search}`,t=`${or.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===Ai){const e=Io({category:"replay.throttled"});this.addUpdate((()=>!oi(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastActiveSpan||Ve(),t=e&&Je(e),n=(t&&Xe(t).data||{})[Ge];if(t&&n&&["route","custom"].includes(n))return Xe(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){const e=new Blob(['
vendor: 10,329 bytes, line 1
1var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
1']);return URL.createObjectURL(e)}());if(!t)return;Uo&&Ho.log("Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new Xo(n)}catch(t){Uo&&Ho.exception(t,"Failed to create compression worker")}}(t);if(e)return e}return Uo&&Ho.log("Using simple buffer"),new Ko}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=si({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!ri(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{or.document.addEventListener("visibilitychange",this._handleVisibilityChange),or.addEventListener("blur",this._handleWindowBlur),or.addEventListener("focus",this._handleWindowFocus),or.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(e){const t=V();Rn((e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,r=null;try{r=t?So(e.event):bo(e.event),n=Re(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}(e);return Io({category:`ui.${e.name}`,...Ro(t,n)})}(t);if(!n)return;const r="click"===t.name,s=r?t.event:void 0;var o,i,a;!(r&&e.clickDetector&&(null==s?void 0:s.target))||s.altKey||s.metaKey||s.ctrlKey||s.shiftKey||(o=e.clickDetector,i=n,a=So(t.event),o.handleClick(i,a)),yo(e,n)})(e)),Ie(function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(pi(e,[n]),!1))))}}(e)),function(e){const t=V();t&&t.on("beforeAddBreadcrumb",(t=>function(e,t){if(!e.isEnabled()||!di(t))return;const n=function(e){return!di(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:"console"===e.category?function(e){var t;const n=null==(t=e.data)?void 0:t.arguments;if(!Array.isArray(n)||0===n.length)return Io(e);let r=!1;const s=n.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>lr?(r=!0,`${e.slice(0,lr)}…`):e;if("object"==typeof e)try{const t=st(e,7);return JSON.stringify(t).length>lr?(r=!0,`${JSON.stringify(t,null,2).slice(0,lr)}…`):t}catch{}return e}));return Io({...e,data:{...e.data,arguments:s,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e):Io(e)}(t);n&&yo(e,n)}(e,t)))}(e),xi(e);const n=function(e){return Object.assign(((t,n)=>{var r;if(!e.isEnabled()||e.isPaused())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!ci(t)&&!li(t)&&!ui(t))return t;if(!e.checkAndHandleExpiredSession())return hi(),t;if(ui(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:ws.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t;if(function(e,t){var n,r,s;return!(e.type||!(null==(r=null==(n=e.exception)?void 0:n.values)?void 0:r.length)||!(null==(s=t.originalException)?void 0:s.__rrweb__))}(t,n)&&!e.getOptions()._experiments.captureExceptions)return Uo&&Ho.log("Ignoring error from rrweb internals",t),null;const s=function(e,t){return"buffer"===e.recordingMode&&t.message!==ar&&!(!t.exception||t.type)&&Yo(e.getOptions().errorSampleRate)}(e,t);if((s||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),s&&"buffer"===e.recordingMode&&"buffer"===(null==(r=e.session)?void 0:r.sampled)){const t=e.session;t.dirty=!0,e.getOptions().stickySession&&Qo(t)}return t}),{id:"Replay"})}(e);Qe(n),t&&(t.on("beforeSendEvent",function(e){return t=>{e.isEnabled()&&ci(t)&&function(e,t){var n,r,s;const o=null==(s=null==(r=null==(n=t.exception)?void 0:n.values)?void 0:r[0])?void 0:s.value;"string"==typeof o&&(o.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||o.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&yo(e,Io({category:"replay.hydrate-error",data:{url:ze()}}))}(e,t)}}(e)),t.on("afterSendEvent",function(e){return(t,n)=>{if(!e.isEnabled()||!ci(t)&&!li(t))return;const r=n.statusCode;!r||r<200||r>=300||(li(t)?function(e,t){var n,r;const s=e.getContext();(null==(r=null==(n=t.contexts)?void 0:n.trace)?void 0:r.trace_id)&&s.traceIds.size<100&&s.traceIds.add(t.contexts.trace.trace_id)}(e,t):function(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&Nn((async()=>{try{await e.sendBufferedReplayOrFlush()}catch(Ki){e.handleException(Ki)}}))}(e,t))}}(e)),t.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)})),t.on("spanStart",(t=>{e.lastActiveSpan=t})),t.on("spanEnd",(t=>{e.lastActiveSpan=t})),t.on("beforeSendFeedback",(async(t,n)=>{var r;const s=e.getSessionId();(null==n?void 0:n.includeReplay)&&e.isEnabled()&&s&&(null==(r=t.contexts)?void 0:r.feedback)&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=s)})),t.on("openFeedbackWidget",(async()=>{await e.sendBufferedReplayOrFlush()})))}(this),this._hasInitializedCoreListeners=!0)}catch(Ki){this.handleException(Ki)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach((e=>{r.push(Ze(e,n))})),r.push(et(Ao(No,e)),tt(Ao(Po,e)),nt(Ao(Bo,e))),()=>{r.forEach((e=>e()))}}(this)}_removeListeners(){try{or.document.removeEventListener("visibilitychange",this._handleVisibilityChange),or.removeEventListener("blur",this._handleWindowBlur),or.removeEventListener("focus",this._handleWindowFocus),or.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(Ki){this.handleException(Ki)}}
1_doChangeToBackgroundTasks(e){this.session&&(ni(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){this.session&&(this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):Uo&&Ho.log("Document has become active, but session has expired"))}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:ws.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){let e=(t=this.performanceEntries,t.map(Do).filter(Boolean)).concat(this.replayPerformanceEntries);var t;if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3;e=e.filter((e=>e.start>=t))}return Promise.all(pi(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){var e;const t=this.getSessionId();if(this.session&&this.eventBuffer&&t){if(await this._addPerformanceEntries(),(null==(e=this.eventBuffer)?void 0:e.hasEvents)&&(await async function(e){try{return Promise.all(pi(e,[Ii(or.performance.memory)]))}catch{return[]}}(this),this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const e=Date.now();if(e-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const s=await this.eventBuffer.finish();await Oi({replayId:t,recordingData:s,segmentId:r,eventContext:n,session:this.session,timestamp:e,onError:e=>this.handleException(e)})}catch(Ki){this.handleException(Ki),this.stop({reason:"sendReplay"});const t=V();if(t){const n=Ki instanceof Ri?"ratelimit_backoff":"send_error";t.recordDroppedEvent(n,"replay")}}}else Uo&&Ho.error("No session or eventBuffer found to flush.")}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(Uo&&Ho.error("Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,s=n>this._options.maxReplayDuration+5e3;if(r||s)return Uo&&Ho.log(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());const o=this.eventBuffer;o&&0===this.session.segmentId&&!o.hasCheckout&&Uo&&Ho.log("Flushing initial segment without checkout.");const i=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(Ki){this.handleException(Ki)}finally{this._flushLock=void 0,i&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&Qo(this.session)}_onMutationHandler(e){const{ignoreMutations:t}=this._options._experiments;if((null==t?void 0:t.length)&&e.some((e=>{const n=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),r=t.join(",");return null==n?void 0:n.matches(r)})))return!1;const n=e.length,r=this._options.mutationLimit,s=r&&n>r;if(n>this._options.mutationBreadcrumbLimit||s){const e=Io({category:"replay.mutations",data:{count:n,limit:s}});this._createCustomBreadcrumb(e)}return!s||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function Li(e,t){return[...e,...t].join(",")}const Ni='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Fi=["content-length","content-type","accept"],Pi=Symbol.for("sentry__originalRequestBody");let Bi=!1,$i=!1;function Ui(e){return[...Fi,...e.map((e=>e.toLowerCase()))]}const zi={attachPiniaState:!0,addBreadcrumbs:!0,actionTransformer:e=>e,stateTransformer:e=>e},Wi=(e,t)=>{const n={};try{return Object.keys(e.state.value).forEach((t=>{n[t]=e.state.value[t]})),t?t(n):n}catch{return n}},ji=J(((e,t={})=>({name:"Pinia",setup(){!e||"object"==typeof e&&!("use"in e)?j((()=>{})):e.use((e=>{const t={...zi,...e};return({store:e,pinia:n})=>{!1!==t.attachPiniaState&&pt().addEventProcessor(((e,r)=>{var s;
1try{const e=`pinia_state_all_stores_${(new Date).toTimeString().split(" ")[0]}.json`;(null==(s=r.attachments)?void 0:s.some((e=>e.filename.startsWith("pinia_state_all_stores_"))))||(r.attachments=[...r.attachments||[],{filename:e,data:JSON.stringify(Wi(n,t.stateTransformer))}])}catch{}return e})),e.$onAction((r=>{r.after((()=>{const s=t.actionTransformer(r.name);null!=s&&!1!==t.addBreadcrumbs&&qt({category:"pinia.action",message:`Store: ${e.$id} | Action: ${s}`,level:"info"});const o=Wi(n,t.stateTransformer),i=A(),a=i.getScopeData().contexts.state;if(null!=o){const e=V(),t=null==e?void 0:e.getOptions(),n=(null==t?void 0:t.normalizeDepth)||3,r={...a||{},state:{type:"pinia",value:o}};Se(r,"__sentry_override_normalization_depth__",3+n),i.setContext("state",r)}else i.setContext("state",{...a||{},state:{type:"pinia",value:"undefined"}})}))}))}})(t))}}))),Hi=mt();var qi;!function(e){const t={defaultIntegrations:[...sr()],...e};jt(t,"nuxt",["nuxt","vue"]),function(e={}){const t=!e.skipBrowserExtensionCheck&&!!function(){var e;if(void 0===ge.window)return!1;const t=ge;if(t.nw)return!1;const n=t.chrome||t.browser;if(!(null==(e=null==n?void 0:n.runtime)?void 0:e.id))return!1;const r=ze();return!(ge===ge.top&&["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"].some((e=>r.startsWith(`${e}://`))))}()&&(Me&&j((()=>{})),!0);let n=null==e.defaultIntegrations?sr():e.defaultIntegrations;const r={...e,enabled:!t&&e.enabled,stackParser:qe(e.stackParser||Hn),integrations:He({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||Fn};!function(e,t){!0===t.debug&&(d?h.enable():j((()=>{}))),A().update(t.initialScope);const n=new e(t);(function(e){A().setClient(e)})(n),n.init()}(In,r)}(t)}({dsn:Hi.public.sentry.dsn,environment:Hi.public.sentry.env,ignoreErrors:["/api/auth/session","/api/auth/csrf"],beforeSend:(e,t)=>(e=>{if(!e||"object"!=typeof e)return!1;const t=e;return!0===t[Symbol.for("exmox.cms.handled")]||503===t.statusCode&&"Content temporarily unavailable"===t.statusMessage})(t.originalException)?null:e,sendDefaultPii:!0,integrations:[(qi={maskAllText:!1,maskAllInputs:!1,blockAllMedia:!1},new class{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:s=!0,useCompression:o=!0,workerUrl:i,_experiments:a={},maskAllText:c=!0,maskAllInputs:l=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:h=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:f=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:v=[],networkResponseHeaders:S=[],mask:b=[],maskAttributes:_=["title","placeholder","aria-label"],unmask:k=[],block:w=[],unblock:E=[],ignore:x=[],maskFn:I,beforeAddRecordingEvent:C,beforeErrorSampling:T,onError:M,attachRawBodyFromRequest:R=!1}={}){this.name="Replay";const O=function({mask:e,unmask:t,block:n,unblock:r,ignore:s}){return{maskTextSelector:Li(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:Li(t,[]),blockSelector:Li(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:Li(r,[]),ignoreSelector:Li(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:b,unmask:k,block:w,unblock:E,ignore:x});if(this._recordingOptions={maskAllInputs:l,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:I,maskInputFn:I,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:s,value:o}){return r?s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?o:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o:o}({maskAttributes:_,maskAllText:c,privacyOptions:O,key:e,value:t,el:n}),...O,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:Boolean(a.recordCrossOriginIframes)},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,5e4),maxReplayDuration:Math.min(r,3
16e5),stickySession:s,useCompression:o,workerUrl:i,blockAllMedia:u,maskAllInputs:l,maskAllText:c,mutationBreadcrumbLimit:d,mutationLimit:h,slowClickTimeout:p,slowClickIgnoreSelectors:m,networkDetailAllowUrls:f,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:Ui(v),networkResponseHeaders:Ui(S),beforeAddRecordingEvent:C,beforeErrorSampling:T,onError:M,attachRawBodyFromRequest:R,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Ni}`:Ni,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&Ke())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Bi}set _isInitialized(e){Bi=e}afterAllSetup(e){Ke()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&function(){if("undefined"==typeof Request||$i)return;const e=Request;try{const t=function(t,n){const r=new e(t,n);return null!=(null==n?void 0:n.body)&&(r[Pi]=n.body),r};t.prototype=e.prototype,Z.Request=t,$i=!0}catch{}}(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){var t;if(null==(t=this._replay)?void 0:t.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){var e;if(null==(e=this._replay)?void 0:e.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=function(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},s=F(n.replaysSessionSampleRate),o=F(n.replaysOnErrorSampleRate);return null==s&&null==o&&j((()=>{})),null!=s&&(r.sessionSampleRate=s),null!=o&&(r.errorSampleRate=o),r}(this._initialOptions,e);this._replay=new Di({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}(qi)),ji(r().$pinia),pn({filterKeys:[Hi.public.sentry.project],behaviour:"apply-tag-if-contains-third-party-frames"})],normalizeDepth:10,tracesSampleRate:.1,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:.1});

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