1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="d55cad62-854c-5e9e-9730-3b282cddc781")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,501061,292052,26729,e=>{"use strict";var t,r,n,a,i,o,s,u=e.i(247167),c=e.i(120786),l=e.i(540316),d=e.i(272598),p=e.i(225304),f=e.i(591401);function h(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[t],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"npm",a=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};a.name||(a.name="sentry.javascript.".concat(t),a.packages=r.map(function(e){return{name:"".concat(n,":@sentry/").concat(e),version:f.SDK_VERSION}}),a.version=f.SDK_VERSION)}var v=e.i(662537),m=e.i(250804),g=e.i(92808),y=e.i(901020),_=[];function S(e,t){var r=!0,n=!1,a=void 0;try{for(var i,o=t[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;(null==s?void 0:s.afterAllSetup)&&s.afterAllSetup(e)}}catch(e){n=!0,a=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw a}}}function b(e,t,r){if(r[t.name]){y.DEBUG_BUILD&&d.debug.log("Integration skipped because it was already installed: ".concat(t.name));return}if(r[t.name]=t,_.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),_.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){var n=t.preprocessEvent.bind(t);e.on("preprocessEvent",function(t,r){return n(t,r,e)})}if("function"==typeof t.processEvent){var a=t.processEvent.bind(t),i=Object.assign(function(t,r){return a(t,r,e)},{id:t.name});e.addEventProcessor(i)}["processSpan","processSegmentSpan"].forEach(function(r){var n=t[r];"function"==typeof n&&e.on(r,function(r){return n.call(t,r,e)})}),y.DEBUG_BUILD&&d.debug.log("Integration installed: ".concat(t.name))}function E(e){var t=[];e.message&&t.push(e.message);try{var r=e.exception.values[e.exception.values.length-1];(null==r?void 0:r.value)&&(t.push(r.value),r.type&&t.push("".concat(r.type,": ").concat(r.value)))}catch(e){}return t}var T=e.i(682564),k=e.i(821593),w=[/^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/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],R=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:"EventFilters",setup:function(r){e=C(t,r.getOptions())},processEvent:function(r,n,a){return e||(e=C(t,a.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!(null==t?void 0:t.length))return!1;var r=e.transaction;return!!r&&(0,k.stringMatchesSomePattern)(r,t)}(e,t.ignoreTransactions))return y.DEBUG_BUILD&&d.debug.warn("Event dropped due to being matched by `ignoreTransactions` option.\nEvent: ".concat((0,T.getEventDescription)(e))),!0}else{var r,n,a,i,o;if(r=e,(null==(n=t.ignoreErrors)?void 0:n.length)&&E(r).some(function(e){return(0,k.stringMatchesSomePattern)(e,n)}))return y.DEBUG_BUILD&&d.debug.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: ".concat((0,T.getEventDescription)(e))),!0;if((null==(o=(a=e).exception)||null==(i=o.values)?void 0:i.length)&&!a.message&&!a.exception.values.some(function(e){return e.stacktrace||e.type&&"Error"!==e.type||e.value}))return y.DEBUG_BUILD&&d.debug.warn("Event dropped due to not having an error message, error type or stacktrace.\nEvent: ".concat((0,T.getEventDescription)(e))),!0;if(function(e,t){if(!(null==t?void 0:t.length))return!1;var r=x(e);return!!r&&(0,k.stringMatchesSomePattern)(r,t)}(e,t.denyUrls))return y.DEBUG_BUILD&&d.debug.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: ".concat((0,T.getEventDescription)(e),".\nUrl: ").concat(x(e))),!0;if(!function(e,t){if(!(null==t?void 0:t.length))return!0;var r=x(e);return!r||(0,k.stringMatchesSomePattern)(r,t)}(e,t.allowUrls))return y.DEBUG_BUILD&&d.debug.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: ".concat((0,T.getEventDescription)(e),".\nUrl: ").concat(x(e))),!0}return!1}(r,e)?r:null}}},I=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,g._)((0,c._)({},R(e)),{name:"InboundFilters"})};function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{allowUrls:(0,l._)(e.allowUrls||[]).concat((0,l._)(t.allowUrls||[])),denyUrls:(0,l._)(e.denyUrls||[]).concat((0,l._)(t.denyUrls||[])),ignoreErrors:(0,l._)(e.ignoreErrors||[]).concat((0,l._)(t.ignoreErrors||[]),(0,l._)(e.disableErrorDefaults?[]:w)),ignoreTransactions:(0,l._)(e.ignoreTransactions||[]).concat((0,l._)(t.ignoreTransactions||[]))}}function x(e){try{var t,r,n,a=(0,l._)(null!=(t=null==(r=e.exception)?void 0:r.values)?t:[]).reverse().find(function(e){var t,r,n;return(null==(t=e.mechanism)?void 0:t.parent_id)===void 0&&(null==(n=e.stacktrace)||null==(r=n.frames)?void 0:r.length)}),i=null==a||null==(n=a.stacktrace)?void 0:n.frames;return i?function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.length-1;t>=0;t--){var r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(i):null}catch(t){return y.DEBUG_BUILD&&d.debug.error("Cannot extract url for event ".concat((0,T.getEventDescription)(e))),null}}var O=e.i(951497),A=new WeakMap,P=e.i(519988),M=e.i(304661),N=e.i(936032),L=function(){var e;return{name:"Dedupe",processEvent:function(t){if(t.type)return t;try{var r,n,a,i,o,s,u,c,l,p;if(r=t,(n=e)&&(a=r,i=n,o=a.message,s=i.message,(o||s)&&(!o||s)&&(o||!s)&&o===s&&U(a,i)&&D(a,i)&&1||(u=r,c=n,l=B(c),p=B(u),l&&p&&l.type===p.type&&l.value===p.value&&U(u,c)&&D(u,c))))return y.DEBUG_BUILD&&d.debug.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function D(e,t){var r=(0,N.getFramesFromEvent)(e),n=(0,N.getFramesFromEvent)(t);
2if(!r&&!n)return!0;if(r&&!n||!r&&n||n.length!==r.length)return!1;for(var a=0;a<n.length;a++){var i=n[a],o=r[a];if(i.filename!==o.filename||i.lineno!==o.lineno||i.colno!==o.colno||i.function!==o.function)return!1}return!0}function U(e,t){var r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return r.join("")===n.join("")}catch(e){return!1}}function B(e){var t,r;return null==(r=e.exception)||null==(t=r.values)?void 0:t[0]}var j=e.i(45968),F=e.i(38981),H=e.i(292955),W=e.i(780646),q=e.i(680700),z=e.i(402048),G=e.i(64217),Y=e.i(991865),J=e.i(299749),X=e.i(651682),K=e.i(513935),V=e.i(339435),$=e.i(373250),Q=e.i(869766),Z=e.i(224339);e.i(759075);var ee=e.i(923288);e.i(571993);var et=e.i(821061),er=e.i(605394);e.i(948826),e.i(805107);var en=e.i(67486),ea=e.i(901538);function ei(e,t){var r,n,a=null!=(n=null!=t?t:(r=e,eo().get(r)))?n:[];if(0!==a.length){var i,o,s,u,l,d,p=e.getOptions(),f=(i=p._metadata,o=p.tunnel,s=e.getDsn(),u=e.getDataCollectionOptions().userInfo,l={},(null==i?void 0:i.sdk)&&(l.sdk={name:i.sdk.name,version:i.sdk.version}),o&&s&&(l.dsn=(0,V.dsnToString)(s)),(0,en.createEnvelope)(l,[(d=u?"auto":"never",[{type:"trace_metric",item_count:a.length,content_type:"application/vnd.sentry.items.trace-metric+json"},(0,g._)((0,c._)({version:2},(0,ea.isBrowser)()&&{ingest_settings:{infer_ip:d,infer_user_agent:d}}),{items:a})])]));eo().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(f)}}function eo(){return(0,ee.getGlobalSingleton)("clientToMetricBufferMap",function(){return new WeakMap})}var es=e.i(341041),eu=e.i(473753),ec=e.i(286564),el=e.i(812024),ed=e.i(580611),ep=e.i(500075);function ef(e){return(void 0===e?"undefined":(0,ep._)(e))==="object"&&"function"==typeof e.unref&&e.unref(),e}var eh=Symbol.for("SentryBufferFullError");function ev(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,t=new Set;return{get $(){return Array.from(t)},add:function(r){if(!(t.size<e))return(0,ed.rejectedSyncPromise)(eh);var n=r();return t.add(n),n.then(function(){t.delete(n)},function(){t.delete(n)}),n},drain:function(e){if(!t.size)return(0,ed.resolvedSyncPromise)(!0);var r=Promise.allSettled(Array.from(t)).then(function(){return!0});return e?Promise.race([r,new Promise(function(t){return ef(setTimeout(function(){return t(!1)},e))})]):r}}}var em=e.i(111139);function eg(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,em.safeDateNow)();return(e[t]||e.all||0)>r}function ey(e,t){var r=t.statusCode,n=t.headers,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,em.safeDateNow)(),i=(0,c._)({},e),o=null==n?void 0:n["x-sentry-rate-limits"],s=null==n?void 0:n["retry-after"];if(o){var u=!0,l=!1,d=void 0;try{for(var p,f=o.trim().split(",")[Symbol.iterator]();!(u=(p=f.next()).done);u=!0){var h=p.value,v=(0,X._)(h.split(":",5),5),m=v[0],g=v[1],y=v[4],_=parseInt(m,10),S=(isNaN(_)?60:_)*1e3;if(g){var b=!0,E=!1,T=void 0;try{for(var k,w=g.split(";")[Symbol.iterator]();!(b=(k=w.next()).done);b=!0){var R=k.value;"metric_bucket"===R?(!y||y.split(";").includes("custom"))&&(i[R]=a+S):i[R]=a+S}}catch(e){E=!0,T=e}finally{try{b||null==w.return||w.return()}finally{if(E)throw T}}}else i.all=a+S}}catch(e){l=!0,d=e}finally{try{u||null==f.return||f.return()}finally{if(l)throw d}}}else s?i.all=a+function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,em.safeDateNow)(),r=parseInt("".concat(e),10);if(!isNaN(r))return 1e3*r;var n=Date.parse("".concat(e));return isNaN(n)?6e4:n-t}(s,a):429===r&&(i.all=a+6e4);return i}var e_=e.i(453288),eS=e.i(318746),eb=e.i(170637),eE=e.i(213186),eT=e.i(454300),ek=["forwarded","-ip","remote-","via","-user"],ew={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:5},eR="Not capturing exception because it's already been captured.",eI="Discarded session because of missing or non-string release",eC=Symbol.for("SentryInternalError"),ex=Symbol.for("SentryDoNotSendEventError");function eO(e){return(0,J._)({message:e},eC,!0)}function eA(e){return(0,J._)({message:e},ex,!0)}function eP(e){return(0,e_.isObjectLike)(e)&&eC in e}function eM(e){return(0,e_.isObjectLike)(e)&&ex in e}function eN(e,t,r,n,a){var i,o=0,s=!1;e.on(r,function(){o=0,clearTimeout(i),s=!1}),e.on(t,function(t){if((o+=n(t))>=8e5)a(e);else if(!s){var r,u=null!=(r=e.getOptions()._flushInterval)?r:5e3;u>0&&(s=!0,i=ef(setTimeout(function(){a(e)},u)))}}),e.on("flush",function(){a(e)})}var eL=function(){function e(t){if((0,H._)(this,e),this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=ev(null!=(O=null==(N=t.transportOptions)?void 0:N.bufferSize)?O:64),this._dataCollection=(E=null!=(r=t).dataCollection?ew:!0===r.sendDefaultPii?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0}
2,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:ek},httpHeaders:{request:{deny:ek},response:{deny:ek}},httpBodies:[],queryParams:{deny:ek},genAI:{inputs:!1,outputs:!1},stackFrameVariables:!0,frameContextLines:7},{userInfo:null!=(a=(T=null!=(n=r.dataCollection)?n:{}).userInfo)?a:E.userInfo,cookies:null!=(i=T.cookies)?i:E.cookies,httpHeaders:{request:null!=(o=null==(m=T.httpHeaders)?void 0:m.request)?o:E.httpHeaders.request,response:null!=(s=null==(_=T.httpHeaders)?void 0:_.response)?s:E.httpHeaders.response},httpBodies:null!=(u=T.httpBodies)?u:E.httpBodies,queryParams:null!=(l=T.queryParams)?l:E.queryParams,genAI:{inputs:null!=(p=null==(S=T.genAI)?void 0:S.inputs)?p:E.genAI.inputs,outputs:null!=(f=null==(b=T.genAI)?void 0:b.outputs)?f:E.genAI.outputs},stackFrameVariables:null!=(h=T.stackFrameVariables)?h:E.stackFrameVariables,frameContextLines:null!=(v=T.frameContextLines)?v:E.frameContextLines}),t.dsn?this._dsn=(0,V.makeDsn)(t.dsn):y.DEBUG_BUILD&&d.debug.warn("No DSN provided, client will not send events."),this._dsn){var r,n,a,i,o,s,u,l,p,f,h,v,m,_,S,b,E,T,k,w,R,I,C,x,O,A,P,M,N,L,D,U=(k=this._dsn,w=t.tunnel,R=t._metadata?t._metadata.sdk:void 0,w||"".concat("".concat((I=k.protocol?"".concat(k.protocol,":"):"",C=k.port?":".concat(k.port):"","".concat(I,"//").concat(k.host).concat(C).concat(k.path?"/".concat(k.path):"","/api/"))).concat(k.projectId,"/envelope/"),"?").concat((x={sentry_version:"7"},k.publicKey&&(x.sentry_key=k.publicKey),R&&(x.sentry_client="".concat(R.name,"/").concat(R.version)),new URLSearchParams(x).toString())));this._transport=t.transport((0,g._)((0,c._)({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this)},t.transportOptions),{url:U}))}this._options.enableLogs=null!=(A=this._options.enableLogs)?A:null==(L=this._options._experiments)?void 0:L.enableLogs,this._options.enableLogs&&eN(this,"afterCaptureLog","flushLogs",eF,Z._INTERNAL_flushLogsBuffer),(null==(P=null!=(M=this._options.enableMetrics)?M:null==(D=this._options._experiments)?void 0:D.enableMetrics)||P)&&eN(this,"afterCaptureMetric","flushMetrics",ej,ei)}return(0,W._)(e,[{key:"captureException",value:function(e,t,r){var n=this,a=(0,T.uuid4)();if((0,T.checkOrSetAlreadyCaught)(e))return y.DEBUG_BUILD&&d.debug.log(eR),a;var i=(0,c._)({event_id:a},t);return this._process(function(){return n.eventFromException(e,i).then(function(e){return n._captureEvent(e,i,r)}).then(function(e){return e})},"error"),i.event_id}},{key:"captureMessage",value:function(e,t,r,n){var a=this,i=(0,c._)({event_id:(0,T.uuid4)()},r),o=(0,e_.isParameterizedString)(e)?e:String(e),s=(0,e_.isPrimitive)(e),u=s?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(function(){return u.then(function(e){return a._captureEvent(e,i,n)})},s?"unknown":"error"),i.event_id}},{key:"captureEvent",value:function(e,t,r){var n=this,a=(0,T.uuid4)();if((null==t?void 0:t.originalException)&&(0,T.checkOrSetAlreadyCaught)(t.originalException))return y.DEBUG_BUILD&&d.debug.log(eR),a;var i=(0,c._)({event_id:a},t),o=e.sdkProcessingMetadata||{},s=o.capturedSpanScope,u=o.capturedSpanIsolationScope,l=eD(e.type);return this._process(function(){return n._captureEvent(e,i,s||r,u)},l),i.event_id}},{key:"captureSession",value:function(e){this.sendSession(e),(0,es.updateSession)(e,{init:!1})}},{key:"getDsn",value:function(){return this._dsn}},{key:"getOptions",value:function(){return this._options}},{key:"getDataCollectionOptions",value:function(){return this._dataCollection}},{key:"getSdkMetadata",value:function(){return this._options._metadata}},{key:"getTransport",value:function(){return this._transport}},{key:"flush",value:function(e){return(0,Y._)(function(){var t,r,n;return(0,K._)(this,function(a){switch(a.label){case 0:if(t=this._transport,this.emit("flush"),!t)return[2,!0];return[4,this._isClientDoneProcessing(e)];case 1:return r=a.sent(),[4,t.flush(e)];case 2:return n=a.sent(),[2,r&&n]}})}).call(this)}},{key:"close",value:function(e){return(0,Y._)(function(){var t;return(0,K._)(this,function(r){switch(r.label){case 0:return(0,Z._INTERNAL_flushLogsBuffer)(this),[4,this.flush(e)];
2case 1:return t=r.sent(),this.getOptions().enabled=!1,this.emit("close"),[2,t]}})}).call(this)}},{key:"getEventProcessors",value:function(){return this._eventProcessors}},{key:"addEventProcessor",value:function(e){this._eventProcessors.push(e)}},{key:"init",value:function(){(this._isEnabled()||this._options.integrations.some(function(e){return e.name.startsWith("Spotlight")}))&&this._setupIntegrations()}},{key:"getIntegrationByName",value:function(e){return this._integrations[e]}},{key:"getIntegrationNames",value:function(){return Object.keys(this._integrations)}},{key:"addIntegration",value:function(e){var t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),b(this,e,this._integrations),t||S(this,[e])}},{key:"sendEvent",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.emit("beforeSendEvent",e,r);var n=function(e,t){if(!("transaction"!==e.type||!(null==(s=e.spans)?void 0:s.length)||!(null==(u=e.sdkProcessingMetadata)?void 0:u.hasGenAiSpans)||!1===t.getOptions().streamGenAiSpans||(0,el.hasSpanStreamingEnabled)(t))){var r=[],n=[],a=!0,i=!1,o=void 0;try{for(var s,u,l,d=e.spans[Symbol.iterator]();!(a=(l=d.next()).done);a=!0){var p,f=l.value;(null==(p=f.op)?void 0:p.startsWith("gen_ai."))?r.push(function(e){var t={trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||"",start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:e.status&&"ok"!==e.status&&"cancelled"!==e.status?"error":"ok",is_segment:!1,attributes:(0,c._)({},e.data),links:e.links};return(0,M.streamedSpanJsonToSerializedSpan)(t)}(f)):n.push(f)}}catch(e){i=!0,o=e}finally{try{a||null==d.return||d.return()}finally{if(i)throw o}}if(0!==r.length){e.spans=n;var h=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:r.length,content_type:"application/vnd.sentry.items.span.v2+json"},(0,g._)((0,c._)({version:2},(0,ea.isBrowser)()&&{ingest_settings:{infer_ip:h,infer_user_agent:h}}),{items:r})]}}}(e,this),a=(0,Q.createEventEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel),i=!0,o=!1,s=void 0;try{for(var u,l=(r.attachments||[])[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var d=u.value;a=(0,en.addItemToEnvelope)(a,(0,en.createAttachmentEnvelopeItem)(d))}}catch(e){o=!0,s=e}finally{try{i||null==l.return||l.return()}finally{if(o)throw s}}n&&(a=(0,en.addItemToEnvelope)(a,n)),this.sendEnvelope(a).then(function(r){return t.emit("afterSendEvent",e,r)})}},{key:"sendSession",value:function(e){var t=this._options,r=t.release,n=t.environment,a=void 0===n?$.DEFAULT_ENVIRONMENT:n;if("aggregates"in e){var i=e.attrs||{};if(!i.release&&!r){y.DEBUG_BUILD&&d.debug.warn(eI);return}i.release=i.release||r,i.environment=i.environment||a,e.attrs=i}else{if(!e.release&&!r){y.DEBUG_BUILD&&d.debug.warn(eI);return}e.release=e.release||r,e.environment=e.environment||a}this.emit("beforeSendSession",e);var o=(0,Q.createSessionEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(o)}},{key:"recordDroppedEvent",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(this._options.sendClientReports){var n="".concat(e,":").concat(t);y.DEBUG_BUILD&&d.debug.log('Recording outcome: "'.concat(n,'"').concat(r>1?" (".concat(r," times)"):"")),this._outcomes[n]=(this._outcomes[n]||0)+r}}},{key:"on",value:function(e,t){var r=this._hooks[e]=this._hooks[e]||new Set,n=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.apply(void 0,(0,l._)(r))};return r.add(n),function(){r.delete(n)}}},{key:"emit",value:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=this._hooks[e];a&&a.forEach(function(e){return e.apply(void 0,(0,l._)(r))})}},{key:"sendEnvelope",value:function(e){return(0,Y._)(function(){var t;return(0,K._)(this,function(r){switch(r.label){case 0:if(this.emit
2("beforeEnvelope",e),!(this._isEnabled()&&this._transport))return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this._transport.send(e)];case 2:return[2,r.sent()];case 3:return t=r.sent(),y.DEBUG_BUILD&&d.debug.error("Error while sending envelope:",t),[2,{}];case 4:return y.DEBUG_BUILD&&d.debug.error("Transport disabled"),[2,{}]}})}).call(this)}},{key:"registerCleanup",value:function(e){}},{key:"dispose",value:function(){}},{key:"_setupIntegrations",value:function(){var e,t,r=this._options.integrations;this._integrations=(e=this,t={},r.forEach(function(t){(null==t?void 0:t.beforeSetup)&&t.beforeSetup(e)}),r.forEach(function(r){r&&b(e,r,t)}),t),S(this,r)}},{key:"_updateSessionFromEvent",value:function(e,t){var r="fatal"===t.level,n=!1,a=null==(l=t.exception)?void 0:l.values;if(a){n=!0,r=!1;var i=!0,o=!1,s=void 0;try{for(var u,l,d,p=a[Symbol.iterator]();!(i=(d=p.next()).done);i=!0)if((null==(u=d.value.mechanism)?void 0:u.handled)===!1){r=!0;break}}catch(e){o=!0,s=e}finally{try{i||null==p.return||p.return()}finally{if(o)throw s}}}var f="ok"===e.status;(f&&0===e.errors||f&&r)&&((0,es.updateSession)(e,(0,g._)((0,c._)({},r&&{status:"crashed"}),{errors:e.errors||Number(n||r)})),this.captureSession(e))}},{key:"_isClientDoneProcessing",value:function(e){return(0,Y._)(function(){var t;return(0,K._)(this,function(r){switch(r.label){case 0:t=0,r.label=1;case 1:if(!(!e||t<e))return[3,3];return[4,new Promise(function(e){return setTimeout(e,1)})];case 2:if(r.sent(),!this._numProcessing)return[2,!0];return t++,[3,1];case 3:return[2,!1]}})}).call(this)}},{key:"_isEnabled",value:function(){return!1!==this.getOptions().enabled&&void 0!==this._transport}},{key:"_prepareEvent",value:function(e,t,r,n){var a=this,i=this.getOptions(),o=this.getIntegrationNames();return!t.integrations&&o.length&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),(0,eE.prepareEvent)(i,e,t,r,this,n).then(function(e){if(null===e)return e;a.emit("postprocessEvent",e,t),e.contexts=(0,c._)({trace:(0,c._)({},null==(n=e.contexts)?void 0:n.trace,(0,m.getTraceContextFromScope)(r))},e.contexts);var n,i=(0,eu.getDynamicSamplingContextFromScope)(a,r);return e.sdkProcessingMetadata=(0,c._)({dynamicSamplingContext:i},e.sdkProcessingMetadata),e})}},{key:"_captureEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,m.getCurrentScope)(),n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,m.getIsolationScope)();return y.DEBUG_BUILD&&eU(e)&&d.debug.log("Captured error event `".concat(E(e)[0]||"<unknown>","`")),this._processEvent(e,t,r,n).then(function(e){return e.event_id},function(e){y.DEBUG_BUILD&&(eM(e)?d.debug.log(e.message):eP(e)?d.debug.warn(e.message):d.debug.warn(e))})}},{key:"_processEvent",value:function(e,t,r,n){var a=this,i=this.getOptions(),o=i.sampleRate,s=eB(e),u=eU(e),l=e.type||"error",d="before send for type `".concat(l,"`"),p=void 0===o?void 0:(0,eb.parseSampleRate)(o);if(u&&"number"==typeof p&&(0,em.safeMathRandom)()>p)return this.recordDroppedEvent("sample_rate","error"),(0,ed.rejectedSyncPromise)(eA("Discarding event because it's not included in the random sample (sampling rate = ".concat(o,")")));var f=eD(e.type);return this._prepareEvent(e,t,r,n).then(function(e){var r;if(null===e)throw a.recordDroppedEvent("event_processor",f),eA("An event processor returned `null`, will not send event.");return(null==(r=t.data)?void 0:r.__sentry__)===!0?e:function(e,t){var r="".concat(t," must return `null` or a valid event.");if((0,e_.isThenable)(e))return e.then(function(e){if(!(0,e_.isPlainObject)(e)&&null!==e)throw eO(r);return e},function(e){throw eO("".concat(t," rejected with ").concat(e))});if(!(0,e_.isPlainObject)(e)&&null!==e)throw eO(r);return e}(function(e,t,r,n){var a=t.beforeSend,i=t.beforeSendTransaction,o=t.ignoreSpans,s=!(0,ec.isStreamedBeforeSendSpanCallback)(t.beforeSendSpan)&&t.beforeSendSpan,u=r;if(eU(u)&&a)return a(u,n);if(eB(u)){if(s||o){var l=(m=(v=null!=(p=null==(h=(d=u).contexts)?void 0:h.trace)?p:{}).trace_id,y=v.parent_span_id,_=v.span_id,S=v.status,b=v.origin,E=v.data,T=v.op,{data:null!=E?E:{},description:d.transaction,op:T,parent_span_id:y,span_id:null!=_?_:"",start_timestamp:null!=(f=d.start_timestamp)?f:0,status:S,timestamp:d.timestamp,trace_id:null!=m?m:"",origin:b,profile_id:null==E?void 0:E[P.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:null==E?void 0:E[P.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:d.measurements,is_segment:!0});if((null==o?void 0:o.length)&&(0,eT.shouldIgnoreSpan)({description:l.description,op:l.op,attributes:l.data},o))return null;if(s){var d,p,f,h,v,m,y,_,S,b,E,T,k=s(l);k?u=(0,eS.merge)(r,{type:"transaction",timestamp:k.timestamp,start_timestamp:k.start_timestamp,transaction:k.description,contexts:{trace:{trace_id:k.trace_id,span_id:k.span_id,parent_span_id:k.parent_span_id,op:k.op,status:k.status,origin:k.origin,data:(0,c._)({},k.data,k.profile_id&&(0,J._)({},P.SEMANTIC_ATTRIBUTE_PROFILE_ID,k.profile_id),k.exclusive_time&&(0,J._)({},P.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME,k.exclusive_time))}},measurements:k.measurements}):(0,M.showSpanDropWarning)()}if(u.spans){var w=[],R=u.spans,I=!0,C=!1,x=void 0;try{for(var O,A=R[Symbol.iterator]();!(I=(O=A.next()).done);I=!0){var N=O.value;if((null==o?void 0:o.length)&&(0,eT.shouldIgnoreSpan)({description:N.description,op:N.op,attributes:N.data},o)){(0,eT.reparentChildSpans)(R,N);continue}if(s){var L=s(N);L?w.push(L):((0,M.showSpanDropWarning)(),w.push(N))}else w.push(N)}}catch(e){C=!0,x=e}finally{try{I||null==A.return||A.return()}finally{if(C)throw x}}var D=u.spans.length-w.length;D&&e.recordDroppedEvent("before_send","span",D),u.spans=w}}if(i){if(u.spans){var U=u.spans.length;u.sdkProcessingMetadata=(0,g._)((0,c._)({},r.sdkProcessingMetadata),{spanCountBeforeProcessing:U})}return i(u,n)}}return u}(a,i,e,t),d)}
2).then(function(i){if(null===i){if(a.recordDroppedEvent("before_send",f),s){var o=1+(e.spans||[]).length;a.recordDroppedEvent("before_send","span",o)}throw eA("".concat(d," returned `null`, will not send event."))}var l=r.getSession()||n.getSession();if(u&&l&&a._updateSessionFromEvent(l,i),s){var p,h=((null==(p=i.sdkProcessingMetadata)?void 0:p.spanCountBeforeProcessing)||0)-(i.spans?i.spans.length:0);h>0&&a.recordDroppedEvent("before_send","span",h)}var v=i.transaction_info;return s&&v&&i.transaction!==e.transaction&&(i.transaction_info=(0,g._)((0,c._)({},v),{source:"custom"})),a.sendEvent(i,t),i}).then(null,function(e){if(eM(e)||eP(e))throw e;throw a.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),eO("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ".concat(e))})}},{key:"_process",value:function(e,t){var r=this;this._numProcessing++,this._promiseBuffer.add(e).then(function(e){return r._numProcessing--,e},function(e){return r._numProcessing--,e===eh&&r.recordDroppedEvent("queue_overflow",t),e})}},{key:"_clearOutcomes",value:function(){var e=this._outcomes;return this._outcomes={},Object.entries(e).map(function(e){var t=(0,X._)(e,2),r=t[0],n=t[1],a=(0,X._)(r.split(":"),2);return{reason:a[0],category:a[1],quantity:n}})}},{key:"_flushOutcomes",value:function(){y.DEBUG_BUILD&&d.debug.log("Flushing outcomes...");var e,t,r=this._clearOutcomes();if(0===r.length){y.DEBUG_BUILD&&d.debug.log("No outcomes to send");return}if(!this._dsn){y.DEBUG_BUILD&&d.debug.log("No dsn provided, will not send outcomes");return}y.DEBUG_BUILD&&d.debug.log("Sending outcomes:",r);var n=(e=this._options.tunnel&&(0,V.dsnToString)(this._dsn),t=[{type:"client_report"},{timestamp:(0,er.dateTimestampInSeconds)(),discarded_events:r}],(0,en.createEnvelope)(e?{dsn:e}:{},[t]));this.sendEnvelope(n)}}]),e}();function eD(e){return"replay_event"===e?"replay":e||"error"}function eU(e){return void 0===e.type}function eB(e){return"transaction"===e.type}function ej(e){var t=0;return e.name&&(t+=2*e.name.length),(t+=8)+eH(e.attributes)}function eF(e){var t=0;return e.message&&(t+=2*e.message.length),t+eH(e.attributes)}function eH(e){if(!e)return 0;var t=0;return Object.values(e).forEach(function(e){Array.isArray(e)?t+=e.length*eW(e[0]):(0,e_.isPrimitive)(e)?t+=eW(e):t+=100}),t}function eW(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:4*("boolean"==typeof e)}var eq=e.i(858384);function ez(e){if("aggregates"in e){var t;(null==(t=e.attrs)?void 0:t.ip_address)===void 0&&(e.attrs=(0,g._)((0,c._)({},e.attrs),{ip_address:"{{auto}}"}))}else void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}var eG=e.i(108487);function eY(e){return(0,e_.isError)(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__?"".concat(e.message," (").concat(e.__sentry_fetch_url_host__,")"):e.message}function eJ(e,t){var r,n,a,i,o=eK(e,t),s={type:!(n=null==(r=t)?void 0:r.name)&&e$(r)?r.message&&Array.isArray(r.message)&&2==r.message.length?r.message[0]:"WebAssembly.Exception":n,value:(i=null==(a=t)?void 0:a.message,e$(a)?Array.isArray(a.message)&&2==a.message.length?a.message[1]:"wasm exception":i?i.error&&"string"==typeof i.error.message?eY(i.error):eY(a):"No error message")};return o.length&&(s.stacktrace={frames:o}),void 0===s.type&&""===s.value&&(s.value="Unrecoverable error caught"),s}function eX(e,t){return{exception:{values:[eJ(e,t)]}}}function eK(e,t){var r,n,a=t.stacktrace||t.stack||"",i=(r=t)&&eV.test(r.message)?1:0,o="number"==typeof(n=t).framesToPop?n.framesToPop:0;try{return e(a,i,o)}catch(e){}return[]}var eV=/Minified React error #\d+;/i;function e$(e){return"u">typeof WebAssembly&&void 0!==WebAssembly.Exception&&(0,eG._)(e,WebAssembly.Exception)}function eQ(e,t,r,n,a){var i;if((0,e_.isErrorEvent)(t)&&t.error)return eX(e,t.error);if((0,e_.isDOMError)(t)||(0,e_.isDOMException)(t)){if("stack"in t){var o,s,u=null==(s=(i=eX(e,t)).exception)||null==(o=s.values)?void 0:o[0];if(n&&r&&u&&!u.stacktrace){var l=eK(e,r);l.length&&(u.stacktrace={frames:l},(0,T.addExceptionMechanism)(i,{synthetic:!0}))}}else{var d=t.name||((0,e_.isDOMError)(t)?"DOMError":"DOMException"),p=t.message?"".concat(d,": ").concat(t.message):d;i=eZ(e,p,r,n),(0,T.addExceptionTypeValue)(i,p)}return"code"in t&&(i.tags=(0,g._)((0,c._)({},i.tags),{"DOMException.code":"".concat(t.code)})),i}return(0,e_.isError)(t)?eX(e,t):((0,e_.isPlainObject)(t)||(0,e_.isEvent)(t)?i=function(e,t,r,n){var a=(0,m.getClient)(),i=null==a?void 0:a.getOptions().normalizeDepth,o=Object.values(t).find(function(e){return(0,eG._)(e,Error)}),s={__serialized__:(0,j.normalizeToSize)(t,i)};if(o)return{exception:{values:[eJ(e,o)]},extra:s};var u={exception:{values:[{type:(0,e_.isEvent)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:function(e,t){var r=t.isUnhandledRejection,n=(0,O.extractExceptionKeysForMessage)(e),a=r?"promise rejection":"exception";if((0,e_.isErrorEvent)(e))return"Event `ErrorEvent` captured as ".concat(a," with message `").concat(e.message,"`");
2if((0,e_.isEvent)(e)){var i=function(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return"Event `".concat(i,"` (type=").concat(e.type,") captured as ").concat(a)}return"Object captured as ".concat(a," with keys: ").concat(n)}(t,{isUnhandledRejection:n})}]},extra:s};if(r){var c=eK(e,r);c.length&&(u.exception.values[0].stacktrace={frames:c})}return u}(e,t,r,a):(i=eZ(e,t,r,n),(0,T.addExceptionTypeValue)(i,"".concat(t),void 0)),(0,T.addExceptionMechanism)(i,{synthetic:!0}),i)}function eZ(e,t,r,n){var a={};if(n&&r){var i=eK(e,r);i.length&&(a.exception={values:[{value:t,stacktrace:{frames:i}}]}),(0,T.addExceptionMechanism)(a,{synthetic:!0})}return(0,e_.isParameterizedString)(t)?a.logentry={message:t.__sentry_template_string__,params:t.__sentry_template_values__}:a.message=t,a}var e0=p.GLOBAL_OBJ;function e1(){try{return e0.document.location.href}catch(e){return""}}function e2(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(!e0.HTMLElement)return null;for(var r=e,n=0;n<t&&r;n++){if((0,eG._)(r,HTMLElement)){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}r=r.parentNode}return null}var e3=p.GLOBAL_OBJ,e5=0;function e4(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("function"!=typeof e)return e;try{if(Object.prototype.hasOwnProperty.call(e,"__sentry_wrapped__")){var r=e.__sentry_wrapped__;if("function"==typeof r)return r;return e}if((0,O.getOriginalFunction)(e))return e}catch(t){return e}var n=function(){for(var r=arguments.length,n=Array(r),a=0;a<r;a++)n[a]=arguments[a];p.GLOBAL_OBJ._sentryWrappedDepth=(p.GLOBAL_OBJ._sentryWrappedDepth||0)+1;try{var i=n.map(function(e){return e4(e,t)});return e.apply(this,i)}catch(e){throw e5++,setTimeout(function(){e5--}),(0,m.withScope)(function(r){r.addEventProcessor(function(e){return t.mechanism&&((0,T.addExceptionTypeValue)(e,void 0,void 0),(0,T.addExceptionMechanism)(e,t.mechanism)),e.extra=(0,g._)((0,c._)({},e.extra),{arguments:n}),e}),(0,v.captureException)(e)}),e}finally{p.GLOBAL_OBJ._sentryWrappedDepth=(p.GLOBAL_OBJ._sentryWrappedDepth||0)-1}};try{for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a])}catch(e){}(0,O.markFunctionWrapped)(n,e),(0,O.addNonEnumerableProperty)(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:function(){return e.name}})}catch(e){}return n}function e8(){var e=e1(),t=(e3.document||{}).referrer,r=(e3.navigator||{}).userAgent;return{url:e,headers:(0,c._)({},t&&{Referer:t},r&&{"User-Agent":r})}}var e6=function(e){function t(e){(0,H._)(this,t);var r,n,a,i,o=(r=e,(0,c._)({release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:null==(n=e3.SENTRY_RELEASE)?void 0:n.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0},r));h(o,"browser",["browser"],e3.SENTRY_SDK_SOURCE||(0,eq.getSDKSource)());var s=(a=(0,F._)(this,t,[o])).getDataCollectionOptions().userInfo;(null==(i=o._metadata)?void 0:i.sdk)&&(o._metadata.sdk.settings=(0,c._)({infer_ip:s?"auto":"never"},o._metadata.sdk.settings));var u=a._options.sendClientReports;return e3.document&&e3.document.addEventListener("visibilitychange",function(){"hidden"===e3.document.visibilityState&&(u&&a._flushOutcomes(),queueMicrotask(function(){a.flush()}))}),s&&a.on("beforeSendSession",ez),a}return(0,G._)(t,e),(0,W._)(t,[{key:"eventFromException",value:function(e,t){var r,n,a;return r=this._options.stackParser,n=this._options.attachStacktrace,a=eQ(r,e,(null==t?void 0:t.syntheticException)||void 0,n),(0,T.addExceptionMechanism)(a),a.level="error",(null==t?void 0:t.event_id)&&(a.event_id=t.event_id),(0,ed.resolvedSyncPromise)(a)}},{key:"eventFromMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",r=arguments.length>2?arguments[2]:void 0;return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",n=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=eZ(e,t,(null==n?void 0:n.syntheticException)||void 0,a);return i.level=r,(null==n?void 0:n.event_id)&&(i.event_id=n.event_id),(0,ed.resolvedSyncPromise)(i)}(this._options.stackParser,e,t,r,this._options.attachStacktrace)}},{key:"_prepareEvent",value:function(e,r,n,a){return e.platform=e.platform||"javascript",(0,q._)((0,z._)(t.prototype),"_prepareEvent",this).call(this,e,r,n,a)}}]),t}(eL),e7={},e9={};function te(e,t){return e7[e]=e7[e]||[],e7[e].push(t),function(){var r=e7[e];if(r){var n=r.indexOf(t);-1!==n&&r.splice(n,1)}}}function tt(e,t){if(!e9[e]){e9[e]=!0;try{t()}catch(t){y.DEBUG_BUILD&&d.debug.error("Error while instrumenting ".concat(e),t)}}}function tr(e,t){var r=e&&e7[e];if(r){var n=!0,a=!1,i=void 0;try{for(var o,s=r[Symbol.iterator]();!(n=(o=s.next()).done);
2n=!0){var u=o.value;try{u(t)}catch(t){y.DEBUG_BUILD&&d.debug.error("Error while triggering instrumentation handler.\nType: ".concat(e,"\nName: ").concat((0,N.getFunctionName)(u),"\nError:"),t)}}}catch(e){a=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw i}}}}var tn=new Set([]);function ta(){"console"in p.GLOBAL_OBJ&&d.CONSOLE_LEVELS.forEach(function(e){e in p.GLOBAL_OBJ.console&&(0,O.fill)(p.GLOBAL_OBJ.console,e,function(t){return d.originalConsoleMethods[e]=t,function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r[0],i=d.originalConsoleMethods[e],o=tn.size&&"string"==typeof a&&(0,k.stringMatchesSomePattern)(a,tn);o||tr("console",{args:r,level:e}),(!o||y.DEBUG_BUILD&&d.debug.isEnabled())&&(null==i||i.apply(p.GLOBAL_OBJ.console,r))}})})}var ti=p.GLOBAL_OBJ;function to(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function ts(e,t){var r="fetch",n=te(r,e);return tt(r,function(){return tu(void 0,t)}),n}function tu(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(!t||function(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in ti))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch(e){return!1}}())return!1;if(to(ti.fetch))return!0;var e=!1,t=ti.document;if(t&&"function"==typeof t.createElement)try{var r,n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),(null==(r=n.contentWindow)?void 0:r.fetch)&&(e=to(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){y.DEBUG_BUILD&&d.debug.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())&&(0,O.fill)(p.GLOBAL_OBJ,"fetch",function(t){return function(){for(var r=arguments.length,n=Array(r),a=0;a<r;a++)n[a]=arguments[a];var i=Error(),o=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){var t=(0,X._)(e,2),r=t[0],n=t[1];return{url:td(r),method:tl(n,"method")?String(n.method).toUpperCase():(0,e_.isRequest)(r)&&tl(r,"method")?String(r.method).toUpperCase():"GET"}}var a=e[0];return{url:td(a),method:tl(a,"method")?String(a.method).toUpperCase():"GET"}}(n),s={args:n,fetchData:{method:o.method,url:o.url},startTimestamp:1e3*(0,er.timestampInSeconds)(),virtualError:i,headers:function(e){var t=(0,X._)(e,2),r=t[0],n=t[1];try{if((void 0===n?"undefined":(0,ep._)(n))==="object"&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if((0,e_.isRequest)(r))return new Headers(r.headers)}catch(e){}}(n)};return e||tr("fetch",(0,c._)({},s)),t.apply(p.GLOBAL_OBJ,n).then(function(t){return(0,Y._)(function(){return(0,K._)(this,function(r){return e?e(t):tr("fetch",(0,g._)((0,c._)({},s),{endTimestamp:1e3*(0,er.timestampInSeconds)(),response:t})),[2,t]})})()},function(e){tr("fetch",(0,g._)((0,c._)({},s),{endTimestamp:1e3*(0,er.timestampInSeconds)(),error:e})),(0,e_.isError)(e)&&void 0===e.stack&&(e.stack=i.stack,(0,O.addNonEnumerableProperty)(e,"framesToPop",1));var t,r=(0,m.getClient)(),n=null!=(t=null==r?void 0:r.getOptions().enhanceFetchErrorMessages)?t:"always";if(!1!==n&&(0,eG._)(e,TypeError)&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{var a=new URL(s.fetchData.url).host;"always"===n?e.message="".concat(e.message," (").concat(a,")"):(0,O.addNonEnumerableProperty)(e,"__sentry_fetch_url_host__",a)}catch(e){}throw e})}})}function tc(e){var t,r,n;try{t=e.clone()}catch(e){return}r=t,n=function(){tr("fetch-body-resolved",{endTimestamp:1e3*(0,er.timestampInSeconds)(),response:e})},(0,Y._)(function(){var e,t,a,i,o,s;return(0,K._)(this,function(u){switch(u.label){case 0:if(!(null==r?void 0:r.body))return[3,8];t=(e=r.body).getReader(),a=setTimeout(function(){e.cancel().then(null,function(){})},9e4),i=!0,u.label=1;case 1:if(!i)return[3,7];o=void 0,u.label=2;case 2:return u.trys.push([2,4,5,6]),o=setTimeout(function(){e.cancel().then(null,function(){})},5e3),[4,t.read()];case 3:return s=u.sent().done,clearTimeout(o),s&&(n(),i=!1),[3,6];case 4:return u.sent(),i=!1,[3,6];case 5:return clearTimeout(o),[7];case 6:return[3,1];case 7:clearTimeout(a),t.releaseLock(),e.cancel().then(null,function(){}),u.label=8;case 8:return[2]}})})()}function tl(e,t){return(0,e_.isObjectLike)(e)&&!!e[t]}function td(e){return"string"==typeof e?e:e?tl(e,"url")?e.url:e.toString?e.toString():"":""}function tp(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function tf(e,t){var r=(0,m.getClient)(),n=(0,m.getIsolationScope)();if(r){var a=r.getOptions(),i=a.beforeBreadcrumb,o=void 0===i?null:i,s=a.maxBreadcrumbs,u=void 0===s?100:s;if(!(u<=0)){var l=(0,er.dateTimestampInSeconds)(),p=(0,c._)({timestamp:l},e),f=o?(0,d.consoleSandbox)(function(){return o(p,t)}):p;null!==f&&(r.emit&&r.emit("beforeAddBreadcrumb",f,t),n.addBreadcrumb(f,u))}}}function th(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function tv(e){return"isRelative"in e}function tm(e,t){var r=0>=e.indexOf("://")&&0!==e.indexOf("//"),n=null!=t?t:r?"thismessage:/":void 0;try{if("canParse"in URL&&!URL.canParse(e,n))return;var a=new URL(e,n);if(r)return{isRelative:r,pathname:a.pathname,search:a.search,hash:a.hash};return a}catch(e){}}function tg(e){if(tv(e))return e.pathname;var t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function ty(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function t_(e){return e.split(/[?#]/,1)[0]}function tS(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(e.startsWith("data:")){var r=e.match(/^data:([^;,]+)/),n=r?r[1]:"text/plain",a=e.includes(";base64,"),i=e.indexOf(","),o="";if(t&&-1!==i){var s=e.slice(i+1);o=s.length>10?"".concat(s.slice(0,10),"... [truncated]"):s}return"data:".concat(n).concat(a?",base64":"").concat(o?",".concat(o):"")}return e}var tb=p.GLOBAL_OBJ;function tE(e){te("dom",e),tt("dom",tT)}function tT(){if(tb.document){var e=tr.bind(null,"dom"),t=tk(e,!0);tb.document.addEventListener("click",t,!1),tb.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(function(t){var r,n,a=null==(r=tb[t])?void 0:r.prototype;(null==a||null==(n=a.hasOwnProperty)?void 0:n.call(a,"addEventListener"))&&((0,O.fill)(a,"addEventListener",function(t){return function(r,n,a){if("click"===r||"keypress"==r)try{var i=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=i[r]=i[r]||{refCount:0};if(!o.handler){var s=tk(e);o.handler=s,t.call(this,r,s,a)}o.refCount++}catch(e){}return t.call(this,r,n,a)}}
2),(0,O.fill)(a,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{var a=this.__sentry_instrumentation_handlers__||{},i=a[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,n),i.handler=void 0,delete a[t]),0===Object.keys(a).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,r,n)}}))})}}function tk(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(r){if(r&&!r._sentryCaptured){var n,a=function(e){try{return e.target}catch(e){return null}}(r);if(n=r.type,"keypress"!==n||null!=a&&a.tagName&&("INPUT"===a.tagName||"TEXTAREA"===a.tagName||a.isContentEditable||0)){(0,O.addNonEnumerableProperty)(r,"_sentryCaptured",!0),a&&!a._sentryId&&(0,O.addNonEnumerableProperty)(a,"_sentryId",(0,T.uuid4)());var i="keypress"===r.type?"input":r.type;!function(e){if(e.type!==oC)return!1;try{if(!e.target||e.target._sentryId!==ox)return!1}catch(e){}return!0}(r)&&(e({event:r,name:i,global:t}),oC=r.type,ox=a?a._sentryId:void 0),clearTimeout(oI),oI=tb.setTimeout(function(){ox=void 0,oC=void 0},1e3)}}}}var tw="__sentry_xhr_v3__";function tR(e){te("xhr",e),tt("xhr",tI)}function tI(){if(tb.XMLHttpRequest){var e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply:function(e,t,r){var n=Error(),a=1e3*(0,er.timestampInSeconds)(),i=(0,e_.isString)(r[0])?r[0].toUpperCase():void 0,o=function(e){if((0,e_.isString)(e))return e;try{return e.toString()}catch(e){}}(r[1]);if(!i||!o)return e.apply(t,r);t[tw]={method:i,url:o,request_headers:{}},"POST"===i&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);var s=function(){var e=t[tw];if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}tr("xhr",{endTimestamp:1e3*(0,er.timestampInSeconds)(),startTimestamp:a,xhr:t,virtualError:n})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:function(e,t,r){return s(),e.apply(t,r)}}):t.addEventListener("readystatechange",s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply:function(e,t,r){var n=(0,X._)(r,2),a=n[0],i=n[1],o=t[tw];return o&&(0,e_.isString)(a)&&(0,e_.isString)(i)&&(o.request_headers[a.toLowerCase()]=i),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply:function(e,t,r){var n=t[tw];return n&&(void 0!==r[0]&&(n.body=r[0]),tr("xhr",{startTimestamp:1e3*(0,er.timestampInSeconds)(),xhr:t})),e.apply(t,r)}})}}function tC(e){var t="history";te(t,e),tt(t,tx)}function tx(){function e(e){return function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r.length>2?r[2]:void 0;if(a){var i=oO,o=function(e){try{return new URL(e,tb.location.origin).toString()}catch(t){return e}}(String(a));if(oO=o,i===o)return e.apply(this,r);tr("history",{from:i,to:o})}return e.apply(this,r)}}tb.addEventListener("popstate",function(){var e=tb.location.href,t=oO;oO=e,t!==e&&tr("history",{from:t,to:e})}),"history"in ti&&ti.history&&((0,O.fill)(tb.history,"pushState",e),(0,O.fill)(tb.history,"replaceState",e))}var tO={};try{"u">typeof Node&&(tO.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),"u">typeof Element&&(tO.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,tO.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,tO.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,tO.getAttribute=Element.prototype.getAttribute),"u">typeof HTMLElement&&(tO.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch(e){}function tA(e,t,r){var n=tO[t];if(n)try{return n.call(e,r)}catch(e){}var a=e[t];return"function"==typeof a?a.call(e,r):a}function tP(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"<unknown>";try{for(var r,n=e,a=[],i=0,o=0,s=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||80;n&&i++<5&&(r=function(e,t){var r=[],n=tA(e,"tagName");if(!n)return"";if("u">typeof HTMLElement&&(0,eG._)(e,HTMLElement)){var a=tA(e,"dataset");if(a){if(a.sentryComponent)return a.sentryComponent;if(a.sentryElement)return a.sentryElement}}r.push(n.toLowerCase());var i=(null==t?void 0:t.length)?t.filter(function(t){return tA(e,"getAttribute",t)}).map(function(t){return[t,tA(e,"getAttribute",t)]}):null;if(null==i?void 0:i.length)i.forEach(function(e){r.push("[".concat(e[0],'="').concat(e[1],'"]'))});else{var o=tA(e,"id");o&&r.push("#".concat(o));var s=tA(e,"className");if(s&&(0,e_.isString)(s)){var u=s.split(/\s+/),c=!0,l=!1,d=void 0;try{for(var p,f=u[Symbol.iterator]();!(c=(p=f.next()).done);c=!0){var h=p.value;r.push(".".concat(h))}}catch(e){l=!0,d=e}finally{try{c||null==f.return||f.return()}finally{if(l)throw d}}}}for(var v=0,m=["aria-label","type","name","title","alt"];v<m.length;v++){var g=m[v],y=tA(e,"getAttribute",g);y&&r.push("[".concat(g,'="').concat(y,'"]'))}return r.join("")}(n,s),"html"!==r&&(!(i>1)||!(o+3*a.length+r.length>=u)));)a.push(r),o+=r.length,n=tA(n,"parentNode");return a.reverse().join(" > ")}catch(e){return"<unknown>"}}var tM="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,tN=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,c._)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e);return{name:"Breadcrumbs",setup:function(e){var r,n,a,i,o,s,u;t.console&&(r=e,te("console",function(e){if((0,m.getClient)()===r){var t={category:"console",data:{arguments:e.args,logger:"console"},level:tp(e.level),message:(0,k.safeJoin)(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else t.message="Assertion failed: ".concat((0,k.safeJoin)(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1);tf(t,{input:e.args,level:e.level})}}),tt("console",ta)),t.dom&&tE((n=e,a=t.dom,function(e){if((0,m.getClient)()===n){var t,r,i=(void 0===a?"undefined":(0,ep._)(a))==="object"?a.seri
2alizeAttribute:void 0,o=(void 0===a?"undefined":(0,ep._)(a))==="object"&&"number"==typeof a.maxStringLength?a.maxStringLength:void 0;o&&o>1024&&(tM&&d.debug.warn("`dom.maxStringLength` cannot exceed ".concat(1024,", but a value of ").concat(o," was configured. Sentry will use ").concat(1024," instead.")),o=1024),"string"==typeof i&&(i=[i]);try{var s,u=e.event,c=(s=u)&&s.target?u.target:u;t=tP(c,{keyAttrs:i,maxStringLength:o}),r=e2(c)}catch(e){t="<unknown>"}if(0!==t.length){var l={category:"ui.".concat(e.name),message:t};r&&(l.data={"ui.component_name":r}),tf(l,{event:e.event,name:e.name,global:e.global})}}})),t.xhr&&tR((i=e,function(e){if((0,m.getClient)()===i){var t=e.startTimestamp,r=e.endTimestamp,n=e.xhr[tw];if(t&&r&&n){var a=n.method,o=n.url,s=n.status_code,u=n.body,c={xhr:e.xhr,input:u,startTimestamp:t,endTimestamp:r},l={category:"xhr",data:{method:a,url:o,status_code:s},type:"http",level:th(s)};i.emit("beforeOutgoingRequestBreadcrumb",l,c),tf(l,c)}}})),t.fetch&&ts((o=e,function(e){if((0,m.getClient)()===o){var t=e.startTimestamp,r=e.endTimestamp;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){var n={data:e.error,input:e.args,startTimestamp:t,endTimestamp:r},a={category:"fetch",data:e.fetchData,level:"error",type:"http"};o.emit("beforeOutgoingRequestBreadcrumb",a,n),tf(a,n)}else{var i=e.response,s=(0,g._)((0,c._)({},e.fetchData),{status_code:null==i?void 0:i.status}),u={input:e.args,response:i,startTimestamp:t,endTimestamp:r},l={category:"fetch",data:s,type:"http",level:th(s.status_code)};o.emit("beforeOutgoingRequestBreadcrumb",l,u),tf(l,u)}}})),t.history&&tC((s=e,function(e){if((0,m.getClient)()===s){var t=e.from,r=e.to,n=ty(e3.location.href),a=t?ty(t):void 0,i=ty(r);(null==a?void 0:a.path)||(a=n),n.protocol===i.protocol&&n.host===i.host&&(r=i.relative),n.protocol===a.protocol&&n.host===a.host&&(t=a.relative),tf({category:"navigation",data:{from:t,to:r}})}})),t.sentry&&e.on("beforeSendEvent",(u=e,function(e){(0,m.getClient)()===u&&tf({category:"sentry.".concat("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,T.getEventDescription)(e)},{event:e})}))}}},tL="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".split(","),tD=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,c._)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1},e);return{name:"BrowserApiErrors",setupOnce:function(){t.setTimeout&&(0,O.fill)(e3,"setTimeout",tU),t.setInterval&&(0,O.fill)(e3,"setInterval",tU),t.requestAnimationFrame&&(0,O.fill)(e3,"requestAnimationFrame",tB),t.XMLHttpRequest&&"XMLHttpRequest"in e3&&(0,O.fill)(XMLHttpRequest.prototype,"send",tj);var e=t.eventTarget;e&&(Array.isArray(e)?e:tL).forEach(function(e){var r,n,a,i,o;return r=e,n=t,void((null==(o=null==(a=e3[r])?void 0:a.prototype)||null==(i=o.hasOwnProperty)?void 0:i.call(o,"addEventListener"))&&((0,O.fill)(o,"addEventListener",function(e){return function(t,a,i){var o,s,u,c;try{o=a,"function"==typeof o.handleEvent&&(a.handleEvent=e4(a.handleEvent,{mechanism:{data:{handler:(0,N.getFunctionName)(a),target:r},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch(e){}return n.unregisterOriginalCallbacks&&(s=this,u=t,c=a,s&&(void 0===s?"undefined":(0,ep._)(s))==="object"&&"removeEventListener"in s&&"function"==typeof s.removeEventListener&&s.removeEventListener(u,c)),e.apply(this,[t,e4(a,{mechanism:{data:{handler:(0,N.getFunctionName)(a),target:r},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),i])}}),(0,O.fill)(o,"removeEventListener",function(e){return function(t,r,n){try{if(Object.prototype.hasOwnProperty.call(r,"__sentry_wrapped__")){var a=r.__sentry_wrapped__;a&&e.call(this,t,a,n)}}catch(e){}return e.call(this,t,r,n)}})))})}}};function tU(e){return function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r[0];return r[0]=e4(a,{mechanism:{handled:!1,type:"auto.browser.browserapierrors.".concat((0,N.getFunctionName)(e))}}),e.apply(this,r)}}function tB(e){return function(t){return e.apply(this,[e4(t,{mechanism:{data:{handler:(0,N.getFunctionName)(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function tj(e){return function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(function(e){e in a&&"function"==typeof a[e]&&(0,O.fill)(a,e,function(t){var r={mechanism:{data:{handler:(0,N.getFunctionName)(t)},handled:!1,type:"auto.browser.browserapierrors.xhr.".concat(e)}},n=(0,O.getOriginalFunction)(t);return n&&(r.mechanism.data.handler=(0,N.getFunctionName)(n)),e4(t,r)})}),e.apply(this,r)}}function tF(e,t,r){tb.document&&tb.addEventListener(e,t,r)}function tH(e,t,r){tb.document&&tb.removeEventListener(e,t,r)}var tW=function(e){var t=!1;return function(){t||(e(),t=!0)}},tq=function(e){var t,r=tb.requestIdleCallback||tb.setTimeout;(null==(t=tb.document)?void 0:t.visibilityState)==="hidden"?e():(tF("visibilitychange",e=tW(e),{once:!0,capture:!0}),tF("pagehide",e,{once:!0,capture:!0}),r(function(){e(),tH("visibilitychange",e,{capture:!0}),tH("pagehide",e,{capture:!0})}
2))},tz=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=null!=(e=t.lifecycle)?e:"route";return{name:"BrowserSession",setupOnce:function(){if(void 0===e3.document){tM&&d.debug.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}(0,v.startSession)({ignoreDuration:!0});var e=!1;tq(function(){e||((0,v.captureSession)(),e=!0)});var t=(0,m.getIsolationScope)(),n=t.getUser();t.addScopeListener(function(t){var r=t.getUser();((null==n?void 0:n.id)!==(null==r?void 0:r.id)||(null==n?void 0:n.ip_address)!==(null==r?void 0:r.ip_address))&&(n=r,e&&(0,v.captureSession)())}),"route"===r&&tC(function(t){t.from!==t.to&&((0,v.startSession)({ignoreDuration:!0}),(0,v.captureSession)(),e=!0)})}}},tG=e.i(242222),tY=e.i(664963);function tJ(e,t){var r,n=null!=(r=e.attributes)?r:e.attributes={};Object.entries(t).forEach(function(e){var t=(0,X._)(e,2),r=t[0],a=t[1];null==a||r in n||(n[r]=a)})}function tX(){try{var e=e3.Intl;if(!e)return;var t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch(e){return}}var tK=null;function tV(e){var t="error";te(t,e),tt(t,t$)}function t$(){tK=p.GLOBAL_OBJ.onerror,p.GLOBAL_OBJ.onerror=function(e,t,r,n,a){return tr("error",{column:n,error:a,line:r,msg:e,url:t}),!!tK&&tK.apply(this,arguments)},p.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}var tQ=null;function tZ(e){var t="unhandledrejection";te(t,e),tt(t,t0)}function t0(){tQ=p.GLOBAL_OBJ.onunhandledrejection,p.GLOBAL_OBJ.onunhandledrejection=function(e){return tr("unhandledrejection",e),!tQ||tQ.apply(this,arguments)},p.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var t1=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,c._)({onerror:!0,onunhandledrejection:!0},e);return{name:"GlobalHandlers",setupOnce:function(){Error.stackTraceLimit=50},setup:function(e){var r,n;t.onerror&&(r=e,tV(function(e){var t=t3(),n=t.stackParser,a=t.attachStacktrace;if(!((0,m.getClient)()!==r||e5>0)){var i,o,s,u,c,l,d,p,f,h,g=e.msg,y=e.url,_=e.line,S=e.column,b=e.error,E=(i=eQ(n,b||g,void 0,a,!1),o=y,s=_,u=S,0===(h=(f=(p=(d=(l=i.exception=i.exception||{}).values=l.values||[])[0]=d[0]||{}).stacktrace=p.stacktrace||{}).frames=f.frames||[]).length&&h.push({colno:u,lineno:s,filename:null!=(c=function(e){if((0,e_.isString)(e)&&0!==e.length)return e.startsWith("data:")?"<".concat(tS(e,!1),">"):e}(o))?c:e1(),function:N.UNKNOWN_FUNCTION,in_app:!0}),i);E.level="error",(0,v.captureEvent)(E,{originalException:b,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}}),t2("onerror")),t.onunhandledrejection&&(n=e,tZ(function(e){var t=t3(),r=t.stackParser,a=t.attachStacktrace;if(!((0,m.getClient)()!==n||e5>0)){var i,o=function(e){if((0,e_.isPrimitive)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(e),s=(0,e_.isPrimitive)(o)?(i=o,{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: ".concat(String(i))}]}}):eQ(r,o,void 0,a,!0);s.level="error",(0,v.captureEvent)(s,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}}),t2("onunhandledrejection"))}}};function t2(e){tM&&d.debug.log("Global Handler attached: ".concat(e))}function t3(){var e=(0,m.getClient)();return(null==e?void 0:e.getOptions())||{stackParser:function(){return[]},attachStacktrace:!1}}function t5(e){return Array.isArray(e.errors)}function t4(e,t,r){e.mechanism=(0,g._)((0,c._)({handled:!0,type:"auto.core.linked_errors"},t5(r)&&{is_exception_group:!0},e.mechanism),{exception_id:t})}function t8(e,t,r,n){e.mechanism=(0,g._)((0,c._)({handled:!0},e.mechanism),{type:"chained",source:t,exception_id:r,parent_id:n})}var t6=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent:function(e,n,a){var i=a.getOptions().stackParser;if((null==(o=e.exception)?void 0:o.values)&&n&&(0,e_.isInstanceOf)(n.originalException,Error)){var o,s=e.exception.values.length>0?e.exception.values[e.exception.values.length-1]:void 0;s&&(e.exception.values=function e(t,r,n,a,i,o,s,u){if(o.length>=n+1)return o;var c=(0,l._)(o);if((0,e_.isInstanceOf)(a[i],Error)){t4(s,u,a);var d=t(r,a[i]),p=c.length;t8(d,i,p,u),c=e(t,r,n,a[i],i,[d].concat((0,l._)(c)),d,p)}
2return t5(a)&&a.errors.forEach(function(o,d){if((0,e_.isInstanceOf)(o,Error)){t4(s,u,a);var p=t(r,o),f=c.length;t8(p,"errors[".concat(d,"]"),f,u),c=e(t,r,n,o,i,[p].concat((0,l._)(c)),p,f)}}),c}(eJ,i,t,n.originalException,r,e.exception.values,s,0))}}}};function t7(e,t,r,n){var a={filename:e,function:"<anonymous>"===t?N.UNKNOWN_FUNCTION:t,in_app:!0};return void 0!==r&&(a.lineno=r),void 0!==n&&(a.colno=n),a}var t9=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,re=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,rt=/\((\S*)(?::(\d+))(?::(\d+))\)/,rr=/at (.+?) ?\(data:(.+?),/,rn=[30,function(e){var t=e.match(rr);if(t)return{filename:"<data:".concat(t[2],">"),function:t[1]};var r=t9.exec(e);if(r){var n=(0,X._)(r,4),a=n[1],i=n[2],o=n[3];return t7(a,N.UNKNOWN_FUNCTION,+i,+o)}var s=re.exec(e);if(s){if((null==(u=s[2])?void 0:u.indexOf("eval"))===0){var u,c=rt.exec(s[2]);c&&(s[2]=c[1],s[3]=c[2],s[4]=c[3])}var l=(0,X._)(ru(s[1]||N.UNKNOWN_FUNCTION,s[2]),2),d=l[0];return t7(l[1],d,s[3]?+s[3]:void 0,s[4]?+s[4]:void 0)}}],ra=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ri=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ro=[50,function(e){var t=ra.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var r,n=ri.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}var a=t[3],i=t[1]||N.UNKNOWN_FUNCTION;return i=(r=(0,X._)(ru(i,a),2))[0],t7(a=r[1],i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],rs=N.createStackParser.apply(void 0,(0,l._)([rn,ro])),ru=function(e,t){var r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:N.UNKNOWN_FUNCTION,r?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]},rc="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,rl={};function rd(e){var t=rl[e];if(t)return t;var r=tb[e];if(to(r))return rl[e]=r.bind(tb);var n=tb.document;if(n&&"function"==typeof n.createElement)try{var a=n.createElement("iframe");a.hidden=!0,n.head.appendChild(a);var i=a.contentWindow;(null==i?void 0:i[e])&&(r=i[e]),n.head.removeChild(a)}catch(t){rc&&d.debug.warn("Could not create sandbox iframe for ".concat(e," check, bailing to window.").concat(e,": "),t)}return r?rl[e]=r.bind(tb):r}function rp(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return rd("setTimeout").apply(this,(0,l._)(t))}function rf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rd("fetch"),r=0,n=0;return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ev(e.bufferSize||64),n={};return{send:function(a){var i=[];if((0,en.forEachEnvelopeItem)(a,function(t,r){var a=(0,en.envelopeItemTypeToDataCategory)(r);eg(n,a)?e.recordDroppedEvent("ratelimit_backoff",a):i.push(t)}),0===i.length)return Promise.resolve({});var o=(0,en.createEnvelope)(a[0],i),s=function(t){if((0,en.envelopeContainsItemType)(o,["client_report"])){y.DEBUG_BUILD&&d.debug.warn("Dropping client report. Will not send outcomes (reason: ".concat(t,")."));return}(0,en.forEachEnvelopeItem)(o,function(r,n){e.recordDroppedEvent(t,(0,en.envelopeItemTypeToDataCategory)(n))})};return r.add(function(){return t({body:(0,en.serializeEnvelope)(o)}).then(function(e){return 413===e.statusCode?(y.DEBUG_BUILD&&d.debug.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),s("send_error")):(y.DEBUG_BUILD&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&d.debug.warn("Sentry responded with status code ".concat(e.statusCode," to sent event.")),n=ey(n,e)),e},function(e){throw s("network_error"),y.DEBUG_BUILD&&d.debug.error("Encountered error running transport request:",e),e})}).then(function(e){return e},function(e){if(e===eh)return y.DEBUG_BUILD&&d.debug.error("Skipped sending event because buffer is full."),s("queue_overflow"),Promise.resolve({});throw e})},flush:function(e){return r.drain(e)}}}(e,function(a){return(0,Y._)(function(){var i,o,s,u;return(0,K._)(this,function(l){switch(l.label){case 0:i=a.body.length,r+=i,n++,o=(0,c._)({body:a.body,method:"POST",referrerPolicy:"str
2ict-origin",headers:e.headers,keepalive:r<=6e4&&n<15},e.fetchOptions),l.label=1;case 1:return l.trys.push([1,3,4,5]),[4,t(e.url,o)];case 2:return[2,{statusCode:(s=l.sent()).status,headers:{"x-sentry-rate-limits":s.headers.get("X-Sentry-Rate-Limits"),"retry-after":s.headers.get("Retry-After")}}];case 3:throw u=l.sent(),rl.fetch=void 0,u;case 4:return r-=i,n--,[7];case 5:return[2]}})})()},ev(e.bufferSize||40))}var rh=/^HTML(\w*)Element$/;function rv(e){if("u">typeof window&&e===window)return"[Window]";if("u">typeof document&&e===document)return"[Document]";if(function(e){if("u"<typeof Element)return!1;try{return(0,eG._)(e,Element)}catch(e){return!1}}(e)){var t,r=(null==(t=Object.getPrototypeOf(e))?void 0:t.constructor)?t.constructor.name:"null prototype";if(rh.test(r))return"[HTMLElement: ".concat(tP(e),"]")}}function rm(e){return[I(),{name:"FunctionToString",setupOnce:function(){oR=Function.prototype.toString;try{Function.prototype.toString=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=(0,O.getOriginalFunction)(this),a=A.has((0,m.getClient)())&&void 0!==n?n:this;return oR.apply(a,t)}}catch(e){}},setup:function(e){A.set(e,!0)}},{name:"ConversationId",setup:function(e){e.on("spanStart",function(e){var t=(0,m.getCurrentScope)().getScopeData(),r=(0,m.getIsolationScope)().getScopeData(),n=t.conversationId||r.conversationId;if(n){var a=(0,M.spanToJSON)(e),i=a.op,o=a.data,s=a.description;if(!(null==i?void 0:i.startsWith("gen_ai."))&&!o["ai.operationId"]&&!(null==s?void 0:s.startsWith("ai.")))return;e.setAttribute(P.GEN_AI_CONVERSATION_ID_ATTRIBUTE,n)}})}},tD(),tN(),t1(),t6(),L(),{name:"HttpContext",preprocessEvent:function(e){if(e3.navigator||e3.location||e3.document){var t,r=e8(),n=(0,c._)({},r.headers,null==(t=e.request)?void 0:t.headers);e.request=(0,g._)((0,c._)({},r,e.request),{headers:n})}},processSegmentSpan:function(e){var t,r=null==(t=e.attributes)?void 0:t[P.SEMANTIC_ATTRIBUTE_SENTRY_OP];if(e3.navigator||e3.location||e3.document){var n=e8();tJ(e,{"url.full":"http.client"!==r?n.url:void 0,"http.request.header.user_agent":n.headers["User-Agent"],"http.request.header.referer":n.headers.Referer})}}},{name:"CultureContext",preprocessEvent:function(e){var t,r=tX();r&&(e.contexts=(0,g._)((0,c._)({},e.contexts),{culture:(0,c._)({},r,null==(t=e.contexts)?void 0:t.culture)}))},processSegmentSpan:function(e){var t=tX();t&&tJ(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}},tz()]}var rg=e.i(271645);function ry(e){return(0,e_.isPlainObject)(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":rv(e)}var r_=e.i(664847),rS=e.i(112344),rb=e.i(10008),rE=e.i(728469),rT=e.i(14177),rk=e.i(776710),rw=e.i(541193),rR={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function rI(e){var t,r,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=new Map,o=!1,s="externalFinish",u=!a.disableAutoFinish,c=[],p=a.idleTimeout,f=void 0===p?rR.idleTimeout:p,h=a.finalTimeout,v=void 0===h?rR.finalTimeout:h,g=a.childSpanTimeout,_=void 0===g?rR.childSpanTimeout:g,S=a.beforeSpanEnd,b=a.trimIdleSpanEndTimestamp,E=void 0===b||b,T=(0,m.getClient)(),k=(0,m.getCurrentScope)();if(!T||!(0,rb.hasSpansEnabled)()){var w=new rE.SentryNonRecordingSpan({traceId:k.getPropagationContext().traceId});return(0,tG.setCapturedScopesOnSpan)(w,k,(0,m.getIsolationScope)()),w}var R=(0,M.getActiveSpan)(),I=(t=e,r=(0,rw.startInactiveSpan)(t),(0,et._setSpanForScope)((0,m.getCurrentScope)(),r),y.DEBUG_BUILD&&d.debug.log("[Tracing] Started span is an idle span"),r);function C(){n&&(clearTimeout(n),n=void 0)}function x(e){C(),n=setTimeout(function(){!o&&0===i.size&&u&&(s="idleTimeout",I.end(e))},f)}function O(e){n=setTimeout(function(){!o&&u&&(s="heartbeatFailed",I.end(e))},_)}function A(e){o=!0,i.clear(),c.forEach(function(e){return e()}),(0,et._setSpanForScope)(k,R);var t=(0,M.spanToJSON)(I);if(t.start_timestamp){t.data[P.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||I.setAttribute(P.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,s);var r=t.status;r&&"unknown"!==r||I.setStatus({code:rk.SPAN_STATUS_OK}),d.debug.log('[Tracing] Idle span "'.concat(t.op,'" finished'));var n=(0,M.getSpanDescendants)(I).filter(function(e){return e!==I}),a=0;
2n.forEach(function(t){t.isRecording()&&(t.setStatus({code:rk.SPAN_STATUS_ERROR,message:"cancelled"}),t.end(e),y.DEBUG_BUILD&&d.debug.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));var r=(0,M.spanToJSON)(t),n=r.timestamp,i=r.start_timestamp,o=void 0===i?0:i,s=o<=e,u=(void 0===n?0:n)-o<=(v+f)/1e3;if(y.DEBUG_BUILD){var c=JSON.stringify(t,void 0,2);s?u||d.debug.log("[Tracing] Discarding span since it finished after idle span final timeout",c):d.debug.log("[Tracing] Discarding span since it happened after idle span was finished",c)}(!u||!s)&&((0,M.removeChildSpanFromSpan)(I,t),a++)}),a>0&&I.setAttribute("sentry.idle_span_discarded_spans",a)}}return I.end=new Proxy(I.end,{apply:function(e,t,r){if(S&&S(I),!(0,rE.spanIsNonRecordingSpan)(t)){var n=(0,rS._)(r),a=n[0],i=n.slice(1),o=a||(0,er.timestampInSeconds)(),s=(0,M.spanTimeInputToSeconds)(o),u=(0,M.getSpanDescendants)(I).filter(function(e){return e!==I}),c=(0,M.spanToJSON)(I);if(!u.length||!E)return A(s),Reflect.apply(e,t,[s].concat((0,l._)(i)));var d=T.getOptions().ignoreSpans,p=null==u?void 0:u.reduce(function(e,t){var r=(0,M.spanToJSON)(t);return!r.timestamp||d&&(0,eT.shouldIgnoreSpan)({description:r.description,op:r.op,attributes:r.data},d)?e:e?Math.max(e,r.timestamp):r.timestamp},void 0),f=c.start_timestamp,h=Math.min(f?f+v/1e3:1/0,Math.max(f||-1/0,Math.min(s,p||1/0)));return A(h),Reflect.apply(e,t,[h].concat((0,l._)(i)))}}}),c.push(T.on("spanStart",function(e){if(!(o||e===I||(0,M.spanToJSON)(e).timestamp||(0,eG._)(e,rT.SentrySpan)&&e.isStandaloneSpan())){var t;(0,M.getSpanDescendants)(I).includes(e)&&(t=e.spanContext().spanId,C(),i.set(t,!0),O((0,er.timestampInSeconds)()+_/1e3))}})),c.push(T.on("spanEnd",function(e){if(!o){var t;t=e.spanContext().spanId,i.has(t)&&i.delete(t),0===i.size&&x((0,er.timestampInSeconds)()+f/1e3)}})),c.push(T.on("idleSpanEnableAutoFinish",function(e){e===I&&(u=!0,x(),i.size&&O())})),a.disableAutoFinish||x(),setTimeout(function(){o||(I.setStatus({code:rk.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),s="finalTimeout",I.end())},v),I}var rC=!1,rx=e.i(373382),rO=e.i(132584),rA=e.i(804478),rP=function(e,t,r,n){var a,i;return function(o){if(t.value>=0&&(o||n)&&((i=t.value-(null!=a?a:0))||void 0===a)){var s;a=t.value,t.delta=i,s=t.value,t.rating=s>r[1]?"poor":s>r[0]?"needs-improvement":"good",e(t)}}},rM=function(){var e,t,r=!(arguments.length>0)||void 0===arguments[0]||arguments[0],n=null==(t=tb.performance)||null==(e=t.getEntriesByType)?void 0:e.call(t,"navigation")[0];if(!r||n&&n.responseStart>0&&n.responseStart<performance.now())return n},rN=function(){var e,t=rM();return null!=(e=null==t?void 0:t.activationStart)?e:0},rL=-1,rD=new Set,rU=function(){var e,t;return(null==(e=tb.document)?void 0:e.visibilityState)!=="hidden"||(null==(t=tb.document)?void 0:t.prerendering)?1/0:0},rB=function(e){var t;if(("pagehide"===e.type||(null==(t=tb.document)?void 0:t.visibilityState)==="hidden")&&rL>-1){if("visibilitychange"===e.type||"pagehide"===e.type){var r=!0,n=!1,a=void 0;try{for(var i,o=rD[Symbol.iterator]();!(r=(i=o.next()).done);r=!0)(0,i.value)()}catch(e){n=!0,a=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw a}}}isFinite(rL)||(rL="visibilitychange"===e.type?e.timeStamp:0,tH("prerenderingchange",rB,!0))}},rj=function(){if(tb.document&&rL<0){var e,t=rN(),r=tb.document.prerendering||null==(e=globalThis.performance.getEntriesByType("visibility-state").filter(function(e){return"hidden"===e.name&&e.startTime>t})[0])?void 0:e.startTime;rL=null!=r?r:rU(),tF("visibilitychange",rB,!0),tF("pagehide",rB,!0),tF("prerenderingchange",rB,!0)}return{get firstHiddenTime(){return rL},onHidden:function(e){rD.add(e)}}},rF=function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,a=rM(),i="navigate";return a&&((null==(t=tb.document)?void 0:t.prerendering)||rN()>0?i="prerender":(null==(r=tb.document)?void 0:r.wasDiscarded)?i="restore":a.type&&(i=a.type.replace(/_/g,"-"))),{name:e,value:n,rating:"good",delta:0,entries:[],id:"v5-".concat(Date.now(),"-").concat(Math.floor(Math.random()*(9e12-1))+1e12),navigationType:i}},rH=new WeakMap;function rW(e,t){try{return rH.get(e)||rH.set(e,new t),rH.get(e)}catch(e){return new t}}var rq=function(){function e(){(0,H._)(this,e),this._sessionValue=0,this._sessionEntries=[]}return(0,W._)(e,[{key:"_processEntry",value:function(e){if(!e.hadRecentInput){var t,r=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&r&&n&&e.startTime-n.startTime<1e3&&e.startTime-r.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),null==(t=this._onAfterProcessingUnexpectedShift)||t.call(this,e)}}}]),e}(),rz=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(e){Promise.resolve().then(function(){t(e.getEntries())})});return n.observe((0,c._)({type:e,buffered:!0},r)),n}}catch(e){}},rG=function(e){var t;(null==(t=tb.document)?void 0:t.prerendering)?addEventListener("prerenderingchange",function(){return e()},!0):e()},rY=[1800,3e3],rJ=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};rG(function(){var r,n=rj(),a=rF("FCP"),i=rz("paint",function(e){var t=!0,o=!1,s=void 0;try{for(var u,c=e[Symbol.iterator]();!(t=(u=c.next()).done);t=!0){var l=u.value;"first-contentful-paint"===l.name&&(i.disconnect(),l.startTime<n.firstHiddenTime&&(a.value=Math.max(l.startTime-rN(),0),a.entries.push(l),r(!0)))}}catch(e){o=!0,s=e}finally{try{t||null==c.return||c.return()}finally{if(o)throw s}}});i&&(r=rP(e,a,rY,t.reportAllChanges))})},rX=[.1,.25],rK=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};rJ(tW(function(){var r,n,a=rF("CLS",0),i=rj(),o=rW(t,rq),s=function(e){var t=!0,n=!1,i=void 0;try{for(var s,u=e[Symbol.iterator]();!(t=(s=u.next()).done);t=!0){var c=s.value;o._processEntry(c)}}catch(e){n=!0,i=e}finally{try{t||null==u.return||u.return()}finally{if(n)throw i}}o._sessionValue>
2a.value&&(a.value=o._sessionValue,a.entries=o._sessionEntries,r())},u=rz("layout-shift",s);u&&(r=rP(e,a,rX,t.reportAllChanges),i.onHidden(function(){s(u.takeRecords()),r(!0)}),null==tb||null==(n=tb.setTimeout)||n.call(tb,r))}))},rV=0,r$=1/0,rQ=0,rZ=function(e){e.forEach(function(e){e.interactionId&&(r$=Math.min(r$,e.interactionId),rV=(rQ=Math.max(rQ,e.interactionId))?(rQ-r$)/7+1:0)})},r0=function(){return oA?rV:performance.interactionCount||0},r1=function(){"interactionCount"in performance||oA||(oA=rz("event",rZ,{type:"event",buffered:!0,durationThreshold:0}))},r2=0,r3=function(){function e(){(0,H._)(this,e),this._longestInteractionList=[],this._longestInteractionMap=new Map}return(0,W._)(e,[{key:"_resetInteractions",value:function(){r2=r0(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}},{key:"_estimateP98LongestInteraction",value:function(){var e=Math.min(this._longestInteractionList.length-1,Math.floor((r0()-r2)/50));return this._longestInteractionList[e]}},{key:"_processEntry",value:function(e){if(null==(s=this._onBeforeProcessingEntry)||s.call(this,e),e.interactionId||"first-input"===e.entryType){var t=this._longestInteractionList.at(-1),r=this._longestInteractionMap.get(e.interactionId);if(r||this._longestInteractionList.length<10||e.duration>t._latency){if(r?e.duration>r._latency?(r.entries=[e],r._latency=e.duration):e.duration===r._latency&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort(function(e,t){return t._latency-e._latency}),this._longestInteractionList.length>10){var n=this._longestInteractionList.splice(10),a=!0,i=!1,o=void 0;try{for(var s,u,c,l=n[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var d=c.value;this._longestInteractionMap.delete(d.id)}}catch(e){i=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(i)throw o}}}null==(u=this._onAfterProcessingINPCandidate)||u.call(this,r)}}}}]),e}(),r5=[200,500],r4=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype){var r=rj();rG(function(){r1();var n,a,i=rF("INP"),o=rW(t,r3),s=function(e){tq(function(){var t=!0,r=!1,n=void 0;try{for(var s,u=e[Symbol.iterator]();!(t=(s=u.next()).done);t=!0){var c=s.value;o._processEntry(c)}}catch(e){r=!0,n=e}finally{try{t||null==u.return||u.return()}finally{if(r)throw n}}var l=o._estimateP98LongestInteraction();l&&l._latency!==i.value&&(i.value=l._latency,i.entries=l.entries,a())})},u=rz("event",s,{durationThreshold:null!=(n=t.durationThreshold)?n:40});a=rP(e,i,r5,t.reportAllChanges),u&&(u.observe({type:"first-input",buffered:!0}),r.onHidden(function(){s(u.takeRecords()),a(!0)}))})}},r8=function(){function e(){(0,H._)(this,e)}return(0,W._)(e,[{key:"_processEntry",value:function(e){var t;null==(t=this._onBeforeProcessingEntry)||t.call(this,e)}}]),e}(),r6=[2500,4e3],r7=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};rG(function(){var r,n=rj(),a=rF("LCP"),i=rW(t,r8),o=function(e){t.reportAllChanges||(e=e.slice(-1));var o=!0,s=!1,u=void 0;try{for(var c,l=e[Symbol.iterator]();!(o=(c=l.next()).done);o=!0){var d=c.value;i._processEntry(d),d.startTime<n.firstHiddenTime&&(a.value=Math.max(d.startTime-rN(),0),a.entries=[d],r())}}catch(e){s=!0,u=e}finally{try{o||null==l.return||l.return()}finally{if(s)throw u}}},s=rz("largest-contentful-paint",o);if(s){r=rP(e,a,r6,t.reportAllChanges);for(var u=tW(function(){o(s.takeRecords()),s.disconnect(),r(!0)}),c=function(e){e.isTrusted&&(tq(u),tH(e.type,c,{capture:!0}))},l=0,d=["keydown","click","visibilitychange"];l<d.length;l++)tF(d[l],c,{capture:!0})}})},r9=[800,1800],ne=function(e){var t,r;(null==(t=tb.document)?void 0:t.prerendering)?rG(function(){return ne(e)}):(null==(r=tb.document)?void 0:r.readyState)!=="complete"?addEventListener("load",function(){return ne(e)},!0):setTimeout(e)},nt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=rF("TTFB"),n=rP(e,r,r9,t.reportAllChanges);ne(function(){var e=rM();e&&(r.value=Math.max(e.responseStart-rN(),0),r.entries=[e],n(!0))})},nr={},nn={};function na(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return nf("cls",e,nc,oP,t)}function ni(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return nf("lcp",e,nl,oM,t)}function no(e){return nf("inp",e,np,oL)}function ns(e,t){var r,n;return nh(e,t),nn[e]||(n={},"event"===(r=e)&&(n.durationThreshold=0),rz(r,function(e){nu(r,{entr
2ies:e})},n),nn[e]=!0),nv(e,t)}function nu(e,t){var r=nr[e];if(null==r?void 0:r.length){var n=!0,a=!1,i=void 0;try{for(var o,s=r[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var u=o.value;try{u(t)}catch(t){rc&&d.debug.error("Error while triggering instrumentation handler.\nType: ".concat(e,"\nName: ").concat((0,N.getFunctionName)(u),"\nError:"),t)}}}catch(e){a=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw i}}}}function nc(){return rK(function(e){nu("cls",{metric:e}),oP=e},{reportAllChanges:!0})}function nl(){return r7(function(e){nu("lcp",{metric:e}),oM=e},{reportAllChanges:!0})}function nd(){return nt(function(e){nu("ttfb",{metric:e}),oN=e})}function np(){return r4(function(e){nu("inp",{metric:e}),oL=e})}function nf(e,t,r,n){var a,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return nh(e,t),nn[e]||(a=r(),nn[e]=!0),n&&t({metric:n}),nv(e,t,i?a:void 0)}function nh(e,t){nr[e]=nr[e]||[],nr[e].push(t)}function nv(e,t,r){return function(){r&&r();var n=nr[e];if(n){var a=n.indexOf(t);-1!==a&&n.splice(a,1)}}}var nm=e.i(12264),ng=e.i(179243),ny=function(e){var t=function(t){var r;("pagehide"===t.type||(null==(r=tb.document)?void 0:r.visibilityState)==="hidden")&&e(t)};tF("visibilitychange",t,{capture:!0,once:!0}),tF("pagehide",t,{capture:!0,once:!0})};function n_(e){return"number"==typeof e&&isFinite(e)}function nS(e,t,r,n){(0,ng._)(n);var a=(0,nm._)({},n),i=(0,M.spanToJSON)(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),(0,rw.withActiveSpan)(e,function(){var e=(0,rw.startInactiveSpan)((0,c._)({startTime:t},a));return e&&e.end(r),e})}function nb(e){var t,r,n=(0,m.getClient)();if(n){var a=e.name,i=e.transaction,o=e.attributes,s=e.startTime,u=n.getOptions(),l=u.release,d=u.environment,p=n.getDataCollectionOptions().userInfo,f=n.getIntegrationByName("Replay"),h=null==f?void 0:f.getReplayId(),v=(0,m.getCurrentScope)(),g=v.getUser(),y=void 0!==g?g.email||g.id||g.ip_address:void 0;try{r=v.getScopeData().contexts.profile.profile_id}catch(e){}var _=(0,c._)({release:l,environment:d,user:y||void 0,profile_id:r||void 0,replay_id:h||void 0,transaction:i,"user_agent.original":null==(t=tb.navigator)?void 0:t.userAgent,"client.address":p?"{{auto}}":void 0},o);return(0,rw.startInactiveSpan)({name:a,attributes:_,startTime:s,experimental:{standalone:!0}})}}function nE(){return tb.addEventListener&&tb.performance}function nT(e){return e/1e3}function nk(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch(e){return!1}}function nw(e,t){var r,n=!1;function a(e){!n&&r&&t(e,r.spanContext().spanId,r),n=!0}ny(function(){a("pagehide")});var i=e.on("beforeStartNavigationSpan",function(e,t){(null==t?void 0:t.isRedirect)||(a("navigation"),i(),o())}),o=e.on("afterStartPageLoadSpan",function(e){r=e,o()})}function nR(e){return null!=e&&e>0&&e<=6e4}function nI(e){return e?(((0,er.browserPerformanceTimeOrigin)()||performance.timeOrigin)+e)/1e3:e}function nC(e){var t,r={};if(void 0!=e.nextHopProtocol){var n=function(e){var t="unknown",r="unknown",n="",a=!0,i=!1,o=void 0;try{for(var s,u=e[Symbol.iterator]();!(a=(s=u.next()).done);a=!0){var c,l=s.value;if("/"===l){t=(c=(0,X._)(e.split("/"),2))[0],r=c[1];break}if(!isNaN(Number(l))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=l}}catch(e){i=!0,o=e}finally{try{a||null==u.return||u.return()}finally{if(i)throw o}}return n===e&&(t=n),{name:t,version:r}}(e.nextHopProtocol),a=n.name,i=n.version;r["network.protocol.version"]=i,r["network.protocol.name"]=a}return(0,er.browserPerformanceTimeOrigin)()||(null==(t=nE())?void 0:t.timeOrigin)?Object.fromEntries(Object.entries((0,g._)((0,c._)({},r),{"http.request.redirect_start":nI(e.redirectStart),"http.request.redirect_end":nI(e.redirectEnd),"http.request.worker_start":nI(e.workerStart),"http.request.fetch_start":nI(e.fetchStart),"http.request.domain_lookup_start":nI(e.domainLookupStart),"http.request.domain_lookup_end":nI(e.domainLookupEnd),"http.request.connect_start":nI(e.connectStart),"http.request.secure_connection_start":nI(e.secureConnectionStart),"http.request.connection_end":nI(e.connectEnd),"http.request.request_start":nI(e.requestStart),"http.request.response_start":nI(e.responseStart),"http.request.response_end":nI(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0})).filter(function(e){return null!=(0,X._)(e,2)[1]})):r}var nx=0,nO={};function nA(){oD=void 0,oU=void 0,nO={}}function nP(e,t,r,n){var a,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:r,o=t["secureConnection"===(a=r)?"connectEnd":"fetch"===a?"domainLookupStart":"".concat(a,"End")],s=t["".concat(r,"Start")];s&&o&&nS(e,n+nT(s),n+nT(o),{op:"browser.".concat(i),name:t.name,attributes:(0,c._)((0,J._)({},P.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.ui.browser.metrics"),"redirect"===r&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{})})}var nM=new WeakMap,nN=new WeakMap,nL=["text/event-stream","application/x-ndjson","application/stream+json"],nD=[],nU=new Map,nB=new Map,nj={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"},nF=function(e){var t,r,n=e.metric;if(void 0!=n.value){var a=nT(n.value);if(!(a>60)){var i=n.entries.find(function(e){return e.duration===n.value&&nj[e.name]});if(i){var o=i.interactionId,s=nj[i.name],u=nT((0,er.browserPerformanceTimeOrigin)()+i.startTime),c=(0,M.getActiveSpan)(),l=c?(0,M.getRootSpan)(c):void 0,d=null!=o?nU.get(o):void 0,p=(null==d?void 0:d.span)||l,f=p?(0,M.spanToJSON)(p).description:(0,m.getCurrentScope)().getScopeData().transactionName,h=nb({name:(null==d?void 0:d.elementName)||tP(i.target),transaction:f,attributes:(t={},(0,J._)(t,P.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.http.browser.inp"),(0,J._)(t,P.SEMANTIC_ATTRIBUTE_SENTRY_OP,"ui.interaction.".concat(s)),(0,J._)(t,P.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME,i.duration),t),startTime:u});h&&(h.addEvent("inp",(r={},(0,J._)(r,P.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT,"millisecond"),(0,J._)(r,P.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE,n.value),r)),h.end(u+a))}}}};function nH(e){var t,r,n,a=e.name,i=e.op,o=e.origin,s=e.metricName,u=e.value,l=e.attributes,d=e.parentSpan,p=e.reportEvent,f=e.startTime,h=e.endTime,v=(0,m.getCurrentScope)().getScopeData().transactionName,g=(0,c._)((n={},(0,J._)(n,P.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,o),(0,J._)(n,P.SEMANTIC_ATTRIBUTE_SENTRY_OP,i),(0,J._)(n,P.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME,0),(0,J._)(n,"browser.web_vital.".concat(s,".value"),u),(0,J._)(n,tY.SENTRY_TRANSACTION,v),(0,J._)(n,tY.SENTRY_SEGMENT_NAME,v),(0,J._)(n,"user_agent.original",null==(t=tb.navigator)?void 0:t.userAgent),n),l);d&&(null==(r=(0,M.spanToStreamedSpanJSON)(d).attributes)?void 0:r[P.SEMANTIC_ATTRIBUTE_SENTRY_OP])==="pageload"&&(g["sentry.pageload.span_id"]=d.spanContext().spanId),p&&(g["browser.web_vital.".concat(s,".report_event")]=p);var y=(0,rw.startInactiveSpan)({name:a,attributes:g,startTime:f,parentSpan:d});y&&y.end(null!=h?h:f)}var nW="WebVitals",nq=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=new Set(null!=(e=t.ignore)?e:[]);return{name:nW,setup:function(e){var n,a=(0,el.hasSpanStreamingEnabled)(e),i=null!=(n=t._experiments)?n:{},o=i.enableStandaloneClsSpans,s=i.enableStandaloneLcpSpans,u=a||r.has("cls")?void 0:o||!1,c=a||r.has("lcp")?void 0:s||!1,l=function(e){var t=e.recordClsStandaloneSpans,r=e.recordLcpStandaloneSpans,n=e.client,a=nE();if(a&&(0,er.browserPerformanceTimeOrigin)()){a.mark&&tb.performance.mark("sentry-tracing-init");var i=r?function(e){var t,r=0;if(nk("largest-contentful-paint")){var n=ni(function(e){var n=e.metric,a=n.entries[n.entries.length-1];a&&nR(n.value)&&(r=n.value,t=a)},!0);nw(e,function(e,a){(function(e,t,r,n){if(nR(e)){rc&&d.debug.log("Sending LCP span (".concat(e,")"));var a,i,o=nT(((0,er.browserPerformanceTimeOrigin)()||0)+((null==t?void 0:t.startTime)||0)),s=(0,m.getCurrentScope)().getScopeData().transactionName,u=t?tP(t.element):"Largest contentful paint",c=(a={},(0,J._)(a,P.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.http.browser.lcp"),(0,J._)(a,P.SEMANTIC_ATTRIBUTE_SENTRY_OP,"ui.webvital.lcp"),(0,J._)(a,P.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME,0),(0,J._)(a,"sentry.pageload.span_id",r),(0,J._)(a,"sentry.report_event",n),a);t&&(t.element&&(c["lcp.element"]=tP(t.element)),t.id&&(c["lcp.id"]=t.id),t.url&&(c["lcp.url"]=t.url),null!=t.loadTime&&(c["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(c["lcp.renderTime"]=t.renderTime),null!=t.size&&(c["lcp.size"]=t.size));var l=nb({name:u,transaction:s,attributes:c,startTime:o});l&&(l.addEvent("lcp",(i={},(0,J._)(i,P.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT,"millisecond"),(0,J._)(i,P.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE,e),i)),l.end(o))}})(r,t,a,e),n()})}}(n):!1===r?ni(function(e){var t=e.metric,r=t.entries[t.entries.length-1];r&&nR(t.value)&&(nO.lcp={value:t.value,unit:"millisecond"},oD=r)},!0):void 0,o=t?function(e){var t,r=0;if(nk("layout-shift")){var n=na(function(e){var n=e.metric,a=n.entries[n.entries.length-1];a&&(r=n.value,t=a)},!0);nw(e,function(e,a){var i,o,s,u,c,l,p,f,h,v,g,y;i=r,o=t,s=a,u=e,rc&&d.debug.log("Sending CLS span (".concat(i,")")),f=o?nT(((0,er.browserPerformanceTimeOrigin)()||0)+o.startTime):(0,er.timestampInSeconds)(),h=(0,m.getCurrentScope)().getScopeData().transactionName,v=o?tP(null==(c=o.sources[0])?void 0:c.node):"Layout shift",g=(l={},(0,J._)(l,P.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.http.browser.cls"),(0,J._)(l,P.SEMANTIC_ATTRIBUTE_SENTRY_OP,"ui.webvital.cls"),(0,J._)(l,P.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME,0),(0,J._)(l,"sentry.pageload.span_id",s),(0,J._)(l,"sentry.report_event",u),l),(null==o?void 0:o.sources)&&o.sources.forEac
2h(function(e,t){g["cls.source.".concat(t+1)]=tP(e.node)}),(y=nb({name:v,transaction:h,attributes:g,startTime:f}))&&(y.addEvent("cls",(p={},(0,J._)(p,P.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT,""),(0,J._)(p,P.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE,i),p)),y.end(f)),n()})}}(n):!1===t?na(function(e){var t=e.metric,r=t.entries[t.entries.length-1];r&&(nO.cls={value:t.value,unit:""},oU=r)},!0):void 0,s=nf("ttfb",function(e){var t=e.metric;t.entries[t.entries.length-1]&&(nO.ttfb={value:t.value,unit:"millisecond"})},nd,oN),u=ns("paint",function(e){var t=e.entries,r=rj(),n=!0,a=!1,i=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var u=o.value,c=u.startTime<r.firstHiddenTime;"first-paint"===u.name&&c&&(nO.fp={value:u.startTime,unit:"millisecond"}),"first-contentful-paint"===u.name&&c&&(nO.fcp={value:u.startTime,unit:"millisecond"})}}catch(e){a=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw i}}});return function(){s(),u(),null==i||i(),null==o||o()}}return function(){}}({recordClsStandaloneSpans:u,recordLcpStandaloneSpans:c,client:e}),p=new WeakSet;e.on("afterStartPageLoadSpan",function(e){p.add(e)}),e.on("spanEnd",function(e){p.delete(e)&&(l(),function(e,t){var r,n=(0,er.browserPerformanceTimeOrigin)();if(!(null==(r=nE())?void 0:r.getEntries)||!n)return nA();var a=t.spanStreamingEnabled,i=t.recordClsOnPageloadSpan,o=t.recordLcpOnPageloadSpan,s=nT(n);if("pageload"===(0,M.spanToJSON)(e).op){if(function(e){var t=rM(!1);if(t){var r=t.responseStart,n=t.requestStart;n<=r&&(e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})}}(nO),a){var u,c,l=function(t,r,n){var a=null!=n?n:"browser.web_vital.".concat(t,".value");e.setAttribute(a,r),rc&&d.debug.log("Setting web vital attribute",(0,J._)({},a,r),"on pageload span")};["ttfb","fp","fcp"].forEach(function(e){nO[e]&&l(e,nO[e].value)}),nO["ttfb.requestTime"]&&l("ttfb.requestTime",nO["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else{i||delete nO.cls,o||delete nO.lcp,Object.entries(nO).forEach(function(t){var r=(0,X._)(t,2),n=r[0],a=r[1];(0,rA.setMeasurement)(n,a.value,a.unit,e)}),u=e,c=t,oD&&c.recordLcpOnPageloadSpan&&(oD.element&&u.setAttribute("lcp.element",tP(oD.element)),oD.id&&u.setAttribute("lcp.id",oD.id),oD.url&&u.setAttribute("lcp.url",oD.url.trim().slice(0,200)),null!=oD.loadTime&&u.setAttribute("lcp.loadTime",oD.loadTime),null!=oD.renderTime&&u.setAttribute("lcp.renderTime",oD.renderTime),u.setAttribute("lcp.size",oD.size)),(null==oU?void 0:oU.sources)&&c.recordClsOnPageloadSpan&&oU.sources.forEach(function(e,t){return u.setAttribute("cls.source.".concat(t+1),tP(e.node))})}e.setAttribute(a?"browser.performance.time_origin":"performance.timeOrigin",s),e.setAttribute(a?"browser.performance.navigation.activation_start":"performance.activationStart",rN())}nA()}(e,{recordClsOnPageloadSpan:!1===u,recordLcpOnPageloadSpan:!1===c,spanStreamingEnabled:a}))}),a?(r.has("lcp")||function(e){var t,r=0;if(nk("largest-contentful-paint")){var n=ni(function(e){var n=e.metric,a=n.entries[n.entries.length-1];a&&nR(n.value)&&(r=n.value,t=a)},!0);nw(e,function(e,a,i){(function(e,t,r,n){if(nR(e)){rc&&d.debug.log("Sending LCP span (".concat(e,")"));var a=(0,er.browserPerformanceTimeOrigin)()||0,i=nT(a),o=nT(a+((null==t?void 0:t.startTime)||0)),s=t?tP(t.element):"Largest contentful paint",u={};(null==t?void 0:t.element)&&(u["browser.web_vital.lcp.element"]=tP(t.element)),(null==t?void 0:t.id)&&(u["browser.web_vital.lcp.id"]=t.id),(null==t?void 0:t.url)&&(u["browser.web_vital.lcp.url"]=t.url),(null==t?void 0:t.loadTime)!=null&&(u["browser.web_vital.lcp.load_time"]=t.loadTime),(null==t?void 0:t.renderTime)!=null&&(u["browser.web_vital.lcp.render_time"]=t.renderTime),(null==t?void 0:t.size)!=null&&(u["browser.web_vital.lcp.size"]=t.size),nH({name:s,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:u,parentSpan:r,reportEvent:n,startTime:i,endTime:o})}})(r,t,i,e),n()})}}(e),r.has("cls")||function(e){var t,r=0;if(nk("layout-shift")){var n=na(function(e){var n=e.metric,a=n.entries[n.entries.length-1];a&&(r=n.value,t=a)},!0);nw(e,function(e,a,i){var o,s,u,c,l,p,f,h;o=r,s=t,u=i,c=e,rc&&d.debug.log("Sending CLS span (".concat(o,")")),p=s?nT(((0,er.browserPerformanceTimeOrigin)()||0)+s.startTime):(0,er.timestampInSeconds)(),f=s?tP(null==(l=s.sources[0])?void 0:l.node):"Layout shift",h={}
2,(null==s?void 0:s.sources)&&s.sources.forEach(function(e,t){h["browser.web_vital.cls.source.".concat(t+1)]=tP(e.node)}),nH({name:f,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:o,attributes:h,parentSpan:u,reportEvent:c,startTime:p}),n()})}}(e),!r.has("inp")&&nE()&&(0,er.browserPerformanceTimeOrigin)()&&no(function(e){var t=e.metric;if(!(null==t.value||nT(t.value)>60)){var r,n,a,i,o,s,u,c,l,p,f,h,v=t.entries.find(function(e){return e.duration===t.value&&nj[e.name]});v&&(r=t.value,n=v,rc&&d.debug.log("Sending INP span (".concat(r,")")),o=nT((0,er.browserPerformanceTimeOrigin)()+n.startTime),s=nT(r),u=nj[n.name],c=null!=(a=n.interactionId)?nU.get(a):void 0,p=(l=(0,M.getActiveSpan)())?(0,M.getRootSpan)(l):void 0,h=(f=(null==c?void 0:c.span)||p)?(0,M.spanToStreamedSpanJSON)(f).name:(0,m.getCurrentScope)().getScopeData().transactionName,nH({name:(null==c?void 0:c.elementName)||tP(n.target),op:"ui.interaction.".concat(u),origin:"auto.http.browser.inp",metricName:"inp",value:r,attributes:(i={},(0,J._)(i,P.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME,n.duration),(0,J._)(i,tY.SENTRY_TRANSACTION,h),(0,J._)(i,tY.SENTRY_SEGMENT_NAME,h),i),startTime:o,endTime:o+s,parentSpan:f}))}})):r.has("inp")||function(){if(nE()&&(0,er.browserPerformanceTimeOrigin)())void no(nF)}()},afterAllSetup:function(){r.has("inp")||function(){var e=Object.keys(nj);function t(e){var t=e.target;if(t){var r=tP(t),n=Math.round(e.timeStamp);if(nB.set(n,r),nB.size>50){var a=nB.keys().next().value;void 0!==a&&nB.delete(a)}}}(0,ea.isBrowser)()&&e.forEach(function(e){tb.addEventListener(e,t,{capture:!0,passive:!0})});var r=function(e){var t=e.entries,r=(0,M.getActiveSpan)(),n=r&&(0,M.getRootSpan)(r);t.forEach(function(e){if("duration"in e){var t=e.interactionId;if(null!=t&&!nU.has(t)){var r=e.target?tP(e.target):function(e){var t=Math.round(e.startTime),r=nB.get(t);if(!r)for(var n=-5;n<=5;n++){var a=nB.get(t+n);if(a){r=a;break}}return r||"<unknown>"}(e);if(nD.length>10){var a=nD.shift();nU.delete(a)}nD.push(t),nU.set(t,{span:n,elementName:r})}}})};ns("event",r),ns("first-input",r)}()}}},nz="sentry_previous_trace";function nG(e){return 1===e.traceFlags}var nY=e.i(602309),nJ=e.i(301263);function nX(){var e,t,r,n,a,i,o,s,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=u.client||(0,m.getClient)();if(!(0,v.isEnabled)()||!c)return{};var l=(0,ee.getMainCarrier)(),p=(0,nJ.getAsyncContextStrategy)(l);if(p.getTraceData)return p.getTraceData(u);var f=u.scope||(0,m.getCurrentScope)(),h=u.span||(0,M.getActiveSpan)(),g=(0,rE.spanIsNonRecordingSpan)(h)&&!(0,rb.hasSpansEnabled)(c.getOptions());if(!h&&(0,m.hasExternalPropagationContext)())return{};var y=h&&!g?(0,M.spanToTraceHeader)(h):(t=(e=f.getPropagationContext()).traceId,r=e.sampled,n=e.propagationSpanId,(0,rO.generateSentryTraceHeader)(t,n,r)),_=h?(0,eu.getDynamicSamplingContextFromSpan)(h):(0,eu.getDynamicSamplingContextFromScope)(c,f),S=(0,nY.dynamicSamplingContextToSentryBaggageHeader)(_);if(!rO.TRACEPARENT_REGEXP.test(y))return d.debug.warn("Invalid sentry-trace data. Cannot generate trace data"),{};var b={"sentry-trace":y,baggage:S};return u.propagateTraceparent&&(b.traceparent=h&&!g?(0,M.spanToTraceparentHeader)(h):(i=(a=f.getPropagationContext()).traceId,o=a.sampled,s=a.propagationSpanId,(0,rO.generateTraceparentHeader)(i,s,o))),b}function nK(e){return"string"==typeof e&&e.split(",").some(function(e){return e.trim().startsWith(nY.SENTRY_BAGGAGE_KEY_PREFIX)})}function nV(e,t,r,n){var a,i=(a={url:tS(e),type:"fetch","http.method":r},(0,J._)(a,P.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,n),(0,J._)(a,P.SEMANTIC_ATTRIBUTE_SENTRY_OP,"http.client"),a);return t&&(tv(t)||(i["http.url"]=tS(t.href),i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}var n$=Symbol.for("sentry__originalRequestBody");function nQ(e){return new URLSearchParams(e).toString()}function nZ(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.debug;try{if("string"==typeof e)return[e];if((0,eG._)(e,URLSearchParams))return[e.toString()];if((0,eG._)(e,FormData))return[nQ(e)];if(!e)return[void 0]}catch(r){return rc&&t.error(r,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return rc&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function n0(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(e.length>=2&&e[1]&&"object"===(0,ep._)(e[1])&&"body"in e[1])return e[1].body;if(e.length>=1&&(0,eG._)(e[0],Request)){var t=e[0][n$];
2if(void 0!==t)return t}}function n1(e){var t;try{t=e.getAllResponseHeaders()}catch(t){return rc&&d.debug.error(t,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce(function(e,t){var r=(0,X._)(t.split(": "),2),n=r[0],a=r[1];return a&&(e[n.toLowerCase()]=a),e},{}):{}}function n2(e){try{return new URL(e,e3.location.origin).href}catch(e){return}}function n3(e){try{return new Headers(e)}catch(e){return}}var n5={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function n4(e,t){var r=(0,M.spanToJSON)(e).data.url;if(r&&"string"==typeof r){var n=function(){setTimeout(i)};if((0,el.hasSpanStreamingEnabled)(t)){var a=e.end.bind(e);e.end=function(e){var t=null!=e?e:(0,er.timestampInSeconds)(),r=!1,o=function(){r||(r=!0,setTimeout(i),a(t),clearTimeout(s))};n=o;var s=setTimeout(o,300)}}var i=ns("resource",function(t){t.entries.forEach(function(t){"resource"===t.entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)&&t.name.endsWith(r)&&(e.setAttributes(nC(t)),n())})})}}var n8=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function n6(){var e=e3.navigator;return!!(null==e?void 0:e.userAgent)&&n8.test(e.userAgent)}var n7=(0,c._)((0,g._)((0,c._)({},rR),{instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{}}),n5),n9=function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=function(e,r){var n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],o=arguments.length>3?arguments[3]:void 0,s="pageload"===r.op,u=r.name,l=b?b(r):r,d=tm(o||e1()),p=(0,c._)({},(null==d?void 0:d.pathname)&&(0,J._)({},tY.URL_PATH,d.pathname),d&&!tv(d)&&(0,J._)({},tY.URL_FULL,d.href),l.attributes);if(u!==l.name&&(p[P.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="custom"),l.attributes=p,!n){var f=(0,er.dateTimestampInSeconds)();(0,rw.startInactiveSpan)((0,g._)((0,c._)({},l),{startTime:f})).end(f);return}a.name=l.name,a.source=p[P.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];var h=rI(l,{idleTimeout:E,finalTimeout:T,childSpanTimeout:w,disableAutoFinish:s,beforeSpanEnd:function(r){!function(e,t){var r=nE(),n=(0,er.browserPerformanceTimeOrigin)();if((null==r?void 0:r.getEntries)&&n){var a=t.spanStreamingEnabled,i=t.ignorePerformanceApiSpans,o=t.ignoreResourceSpans,s=nT(n),u=r.getEntries(),l=(0,M.spanToJSON)(e),d=l.op,p=l.start_timestamp;u.slice(nx).forEach(function(t){var r,n,a,u,l,f,h,v,m,g=nT(t.startTime),y=nT(Math.max(0,t.duration));if("navigation"!==d||!p||!(s+g<p))switch(t.entryType){case"navigation":r=e,n=t,a=s,["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(function(e){nP(r,n,e,a)}),nP(r,n,"secureConnection",a,"TLS/SSL"),nP(r,n,"fetch",a,"cache"),nP(r,n,"domainLookup",a,"DNS"),u=r,l=n,h=(f=a)+nT(l.requestStart),v=f+nT(l.responseEnd),m=f+nT(l.responseStart),l.responseEnd&&(nS(u,h,v,{op:"browser.request",name:l.name,attributes:(0,J._)({},P.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.ui.browser.metrics")}),nS(u,m,v,{op:"browser.response",name:l.name,attributes:(0,J._)({},P.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.ui.browser.metrics")}));break;case"mark":case"paint":case"measure":!function(e,t,r,n,a,i){if(!function(e){if((null==e?void 0:e.entryType)==="measure")try{return"Components â"===e.detail.devtools.track}catch(e){return}}(t)&&!(["mark","measure"].includes(t.entryType)&&(0,k.stringMatchesSomePattern)(t.name,i))){var o=rM(!1),s=a+Math.max(r,nT(o?o.requestStart:0)),u=a+r,c=u+n,l=(0,J._)({},P.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.resource.browser.metrics");s!==u&&(l["sentry.browser.measure_happened_before_request"]=!0,l["sentry.browser.measure_start_time"]=s),function(e,t){try{var r=t.detail;if(!r)return;if((void 0===r?"undefined":(0,ep._)(r))==="object"){var n=!0,a=!1,i=void 0;try{for(var o,s=Object.entries(r)[Symbol.iterator]();!(n=(o=s.next()).done);
2n=!0){var u=(0,X._)(o.value,2),c=u[0],l=u[1];if(l&&(0,e_.isPrimitive)(l))e["sentry.browser.measure.detail.".concat(c)]=l;else if(void 0!==l)try{e["sentry.browser.measure.detail.".concat(c)]=JSON.stringify(l)}catch(e){}}}catch(e){a=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw i}}return}if((0,e_.isPrimitive)(r)){e["sentry.browser.measure.detail"]=r;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(r)}catch(e){}}catch(e){}}(l,t),s<=c&&nS(e,s,c,{name:t.name,op:t.entryType,attributes:l})}}(e,t,g,y,s,i);break;case"resource":!function(e,t,r,n,a,i,o){if("xmlhttprequest"!==t.initiatorType&&"fetch"!==t.initiatorType){var s=t.initiatorType?"resource.".concat(t.initiatorType):"resource.other";if(null==o||!o.includes(s)){var u,l,d=(0,J._)({},P.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.resource.browser.metrics"),p=ty(r);p.protocol&&(d["url.scheme"]=p.protocol.split(":").pop()),p.host&&(d["server.address"]=p.host),d["url.same_origin"]=r.includes(tb.location.origin),d[P.SEMANTIC_ATTRIBUTE_URL_FULL]=r,u=t,l=d,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]].forEach(function(e){var t=(0,X._)(e,2),r=t[0],n=t[1],a=u[r];null!=a&&("number"==typeof a&&a<0x7fffffff||"string"==typeof a)&&(l[n]=a)});var f=(0,c._)({},d,nC(t)),h=i+n;nS(e,h,h+a,{name:r.replace(tb.location.origin,""),op:s,attributes:f})}}}(e,t,t.name,g,y,s,o)}}),nx=Math.max(u.length-1,0),function(e,t){var r=tb.navigator;if(r){var n=r.connection;n&&(n.effectiveType&&e.setAttribute(t?"network.connection.effective_type":"effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute(t?"network.connection.type":"connectionType",n.type),n_(n.rtt)&&(t?e.setAttribute("network.connection.rtt",n.rtt):"pageload"===(0,M.spanToJSON)(e).op&&(0,rA.setMeasurement)("connection.rtt",n.rtt,"millisecond"))),n_(r.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",r.deviceMemory):e.setAttribute("deviceMemory","".concat(r.deviceMemory," GB"))),n_(r.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",r.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(r.hardwareConcurrency)))}}(e,a)}}(r,{ignoreResourceSpans:N,ignorePerformanceApiSpans:L,spanStreamingEnabled:(0,el.hasSpanStreamingEnabled)(e)}),ai(e,void 0);var n=(0,m.getCurrentScope)(),a=n.getPropagationContext();n.setPropagationContext((0,g._)((0,c._)({},a),{traceId:h.spanContext().traceId,sampled:(0,M.spanIsSampled)(h),dsc:(0,eu.getDynamicSamplingContextFromSpan)(r)})),s&&(t=void 0)},trimIdleSpanEndTimestamp:!H});function v(){i&&["interactive","complete"].includes(i.readyState)&&(e.emit("idleSpanEnableAutoFinish",h),i.removeEventListener("readystatechange",v))}s&&H&&(t=h),ai(e,h),s&&!H&&i&&(i.addEventListener("readystatechange",v),v())};"enableElementTiming"in r&&(0,d.consoleSandbox)(function(){console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});var a={name:void 0,source:void 0},i=e3.document,o=(0,c._)({},n7,r),s=o.enableInp,u=o.enableLongTask,f=o.enableLongAnimationFrame,h=o._experiments,v=h.enableInteractions,_=h.enableStandaloneClsSpans,S=h.enableStandaloneLcpSpans,b=o.beforeStartSpan,E=o.idleTimeout,T=o.finalTimeout,w=o.childSpanTimeout,R=o.markBackgroundSpan,I=o.traceFetch,C=o.traceXHR,x=o.trackFetchStreamPerformance,O=o.shouldCreateSpanForRequest,A=o.enableHTTPTimings,N=o.ignoreResourceSpans,L=o.ignorePerformanceApiSpans,D=o.instrumentPageLoad,U=o.instrumentNavigation,B=o.detectRedirects,j=o.linkPreviousTrace,F=o.consistentTraceSampling,H=o.enableReportPageLoaded,W=o.onRequestSpanStart,q=o.onRequestSpanEnd,z=n6();return{name:"BrowserTracing",setup:function(r){var a;if(z){tM&&d.debug.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}function o(){var e=(0,M.getActiveSpan)(),t=e&&(0,M.getRootSpan)(e);if(t){var r="internal_error";y.DEBUG_BUILD&&d.debug.log("[Tracing] Root span: ".concat(r," -> Global error occurred")),t.setStatus({code:rk.SPAN_STATUS_ERROR,message:r})}}if(rC||(rC=!0,tV(o),tZ(o)),f&&p.GLOBAL_OBJ.PerformanceObserver&&(null==(a=PerformanceObserver.supportedEntryTypes)?void 0:a.includes("long-animation-frame"))?new PerformanceObserver(function(e){var t=(0,M.getActiveSpan)();if(t){var r=!0,n=!1,a=void 0;try{for(var i,o=e.getEntries()[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;if(s.scripts[0]){var u=nT((0,er.browserPerformanceTimeOrigin)()+s.startTime),c=(0,M.spanToJSON)(t),l=c.start_timestamp,d=c.op;if("navigation"!==d||!l||!(u<l)){var p=nT(s.duration),f=(0,J._)({},P.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.ui.browser.metrics"),h=s.scripts[0],v=h.invoker,m=h.invokerType,g=h.sourceURL,y=h.sourceFunctionName,_=h.sourceCharPosition;f["browser.script.invoker"]=v,f["browser.script.invoker_type"]=m,g&&(f["code.filepath"]=g),y&&(f["code.function"]=y),-1!==_&&(f["browser.script.source_char_position"]=_),nS(t,u,u+p,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:f})}}}}catch(e){n=!0,a=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw a}}}}).observe({type:"long-animation-frame",buffered:!0}):u&&ns("longtask",function(e){var t=e.entries,r=(0,M.getActiveSpan)();if(r){var n=(0,M.spanToJSON)(r),a=n.op,i=n.start_timestamp,o=!0,s=!1,u=void 0;try{for(var c,l=t[Symbol.iterator]();!(o=(c=l.next()).done);o=!0){var d=c.value,p=nT((0,er.browserPerformanceTimeOrigin)()+d.startTime),f=nT(d.duration);"navigation"===a&&i&&p<i||nS(r,p,p+f,{name:"Main UI thread blocked",op:"ui.long-task",attributes:(0,J._)({},P.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.ui.browser.metrics")})}}catch(e){s=!0,u=e}finally{try{o||null==l.return||l.return()}finally{if(s)throw u}}}}),v&&ns("event",function(e){var t=e.entries,r=(0,M.getActiveSpan)();if(r){var n=!0,a=!1,i=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done);
2n=!0){var u=o.value;if("click"===u.name){var c=nT((0,er.browserPerformanceTimeOrigin)()+u.startTime),l=nT(u.duration),d={name:tP(u.target),op:"ui.interaction.".concat(u.name),startTime:c,attributes:(0,J._)({},P.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.ui.browser.metrics")},p=e2(u.target);p&&(d.attributes["ui.component_name"]=p),nS(r,c,c+l,d)}}}catch(e){a=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw i}}}}),B&&i){var s=function(){e=(0,er.timestampInSeconds)()};addEventListener("click",s,{capture:!0}),addEventListener("keydown",s,{capture:!0,passive:!0})}function l(){var e=r[aa];e&&!(0,M.spanToJSON)(e).timestamp&&(tM&&d.debug.log("[Tracing] Finishing current active span with op: ".concat((0,M.spanToJSON)(e).op)),e.setAttribute(P.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"cancelled"),e.end())}r.on("startNavigationSpan",function(t,a){if((0,m.getClient)()===r){if(null==a?void 0:a.isRedirect){tM&&d.debug.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),n(r,(0,c._)({op:"navigation.redirect"},t),!1,a.url);return}e=void 0,l(),(0,m.getIsolationScope)().setPropagationContext({traceId:(0,rx.generateTraceId)(),sampleRand:Math.random(),propagationSpanId:(0,rb.hasSpansEnabled)()?void 0:(0,rx.generateSpanId)()});var i=(0,m.getCurrentScope)();i.setPropagationContext({traceId:(0,rx.generateTraceId)(),sampleRand:Math.random(),propagationSpanId:(0,rb.hasSpansEnabled)()?void 0:(0,rx.generateSpanId)()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),n(r,(0,g._)((0,c._)({op:"navigation"},t),{parentSpan:null,forceTransaction:!0}),!0,null==a?void 0:a.url)}}),r.on("startPageLoadSpan",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((0,m.getClient)()===r){l();var a=t.sentryTrace||ar("sentry-trace")||an("sentry-trace"),i=t.baggage||ar("baggage")||an("baggage"),o=(0,rO.propagationContextFromHeaders)(a,i),s=(0,m.getCurrentScope)();s.setPropagationContext(o),(0,rb.hasSpansEnabled)()||(s.getPropagationContext().propagationSpanId=(0,rx.generateSpanId)()),s.setSDKProcessingMetadata({normalizedRequest:e8()}),n(r,(0,c._)({op:"pageload"},e))}}),r.on("endPageloadSpan",function(){H&&t&&(t.setAttribute(P.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"reportPageLoaded"),t.end())})},afterAllSetup:function(t){if(!z){!t.addIntegration||(null==(eo=t.getIntegrationByName)?void 0:eo.call(t,nW))||t.addIntegration(nq({ignore:s?[]:["inp"],_experiments:{enableStandaloneClsSpans:_,enableStandaloneLcpSpans:S}}));var r,n,i,o,u,p,f,h,y,b,N,L,H,G,Y,X,K,V,$,Q=e1();if("off"!==j&&(ee=(Z={linkPreviousTrace:j,consistentTraceSampling:F}).linkPreviousTrace,et=Z.consistentTraceSampling,ea=(en="session-storage"===ee)?function(){try{var e,t=null==(e=e3.sessionStorage)?void 0:e.getItem(nz);return JSON.parse(t)}catch(e){return}}():void 0,t.on("spanStart",function(e){if((0,M.getRootSpan)(e)===e){var t=(0,m.getCurrentScope)().getPropagationContext();ea=function(e,t,r){var n=(0,M.spanToJSON)(t),a={spanContext:t.spanContext(),startTimestamp:n.start_timestamp,sampleRate:function(){try{var e,t,a,i=Number(null!=(e=null==(t=n.data)?void 0:t[P.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE])?e:null==(a=r.dsc)?void 0:a.sample_rate);return Number.isNaN(i)?0:i}catch(e){return 0}}(),sampleRand:r.sampleRand};if(!e)return a;var i=e.spanContext;return i.traceId===n.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(tM&&d.debug.log("Adding previous_trace `".concat(JSON.stringify(i),"` link to span `").concat(JSON.stringify((0,c._)({op:n.op},t.spanContext())),"`")),t.addLink({context:i,attributes:(0,J._)({},P.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE,"previous_trace")}),t.setAttribute("sentry.previous_trace","".concat(i.traceId,"-").concat(i.spanId,"-").concat(+!!nG(i)))),a)}(ea,e,t),en&&function(e){try{e3.sessionStorage.setItem(nz,JSON.stringify(e))}catch(e){tM&&d.debug.warn("Could not store previous trace in sessionStorage",e)}}(ea)}}),ei=!0,et&&t.on("beforeSampling",function(e){if(ea){var t=(0,m.getCurrentScope)(),r=t.getPropagationContext();if(ei&&r.parentSpanId){ei=!1;return}t.setPropagationContext((0,g._)((0,c._)({},r),{dsc:(0,g._)((0,c._)({},r.dsc),{sample_rate:String(ea.sampleRate),sampled:String(nG(ea.spanContext))}),sampleRand:ea.sampleRand})),e.parentSampled=nG(ea.spanContext),e.parentSampleRate=ea.sampleRate,e.spanAttributes=(0,g._)((0,c._)({},e.spanAttributes),(0,J._)({},P.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE,ea.sampleRate))}})),e3.location){if(D){var Z,ee,et,en,ea,ei,eo,es,eu=(0,er.browserPerformanceTimeOrigin)();ae(t,{name:e3.location.pathname,startTime:eu?eu/1e3:void 0,attributes:(es={},(0,J._)(es,P.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"url"),(0,J._)(es,P.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.pageload.browser"),es)})}U&&tC(function(r){var n,a,i,o,s,u=r.to;if(void 0===r.from&&(null==Q?void 0:Q.indexOf(u))!==-1){Q=void 0;return}Q=void 0;var c=tm(u),l=t[aa],d=l&&B&&(n=l,a=e,i=(0,M.spanToJSON)(n),!((o=(0,er.dateTimestampInSeconds)())-i.start_timestamp>1.5)&&(!a||!(o-a<=1.5)));at(t,{name:(null==c?void 0:c.pathname)||e3.location.pathname,attributes:(s={},(0,J._)(s,P.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"url"),(0,J._)(s,P.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.navigation.browser"),s)},{url:u,isRedirect:d})})}R&&(e3.document?e3.document.addEventListener("visibilitychange",function(){var e=(0,M.getActiveSpan)();if(e){var t=(0,M.getRootSpan)(e);if(e3.document.hidden&&t){var r="cancelled",n=(0,M.spanToJSON)(t),a=n.op,i=n.status;tM&&d.debug.log("[Tracing] Transaction: ".concat(r," -> since tab moved to the background, op: ").concat(a)),i||t.setStatus({code:rk.SPAN_STATUS_ERROR,message:r}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}}):tM&&d.debug.warn("[Tracing] Could not set up background tab detection due to lack of global document")),v&&(r=t,n=E,i=T,o=w,u=a,e3.document&&addEventListener("click",function(){var e="ui.action.click",t=function(e){return e[aa]}(r);
2if(t&&["navigation","pageload"].includes((0,M.spanToJSON)(t).op)){tM&&d.debug.warn("[Tracing] Did not create ".concat(e," span because a pageload or navigation span is in progress."));return}if(p&&(p.setAttribute(P.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"interactionInterrupted"),p.end(),p=void 0),!u.name){tM&&d.debug.warn("[Tracing] Did not create ".concat(e," transaction because _latestRouteName is missing."));return}p=rI({name:u.name,op:e,attributes:(0,J._)({},P.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,u.source||"url")},{idleTimeout:n,finalTimeout:i,childSpanTimeout:o})},{capture:!0})),f={traceFetch:I,traceXHR:C,tracePropagationTargets:t.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:O,enableHTTPTimings:A,onRequestSpanStart:W,onRequestSpanEnd:q},y=(h=(0,c._)({},n5,f)).traceFetch,b=h.traceXHR,N=h.shouldCreateSpanForRequest,L=h.enableHTTPTimings,H=h.tracePropagationTargets,G=h.onRequestSpanStart,Y=h.onRequestSpanEnd,X="function"==typeof N?N:function(e){return!0},K=function(e){return function(e,t){var r=e1();if(r){try{n=new URL(e,r),a=new URL(r).origin}catch(e){return!1}var n,a,i=n.origin===a;return t?(0,k.stringMatchesSomePattern)(n.toString(),t)||i&&(0,k.stringMatchesSomePattern)(n.pathname,t):i}var o=!!e.match(/^\/(?!\/)/);return t?(0,k.stringMatchesSomePattern)(e,t):o}(e,H)},V={},$=t.getOptions().propagateTraceparent,y&&ts(function(e){var r=function(e,t,r,n,a){if(e.fetchData){var i=e.fetchData,o=i.method,s=i.url,u=(0,rb.hasSpansEnabled)()&&t(s);if(e.endTimestamp){var d,p,f,h,v,g=e.fetchData.__span;if(!g)return;var y=n[g];y&&(u&&(function(e,t){if(t.response){(0,rk.setHttpStatus)(e,t.response.status);var r,n,a=null==(n=t.response)||null==(r=n.headers)?void 0:r.get("content-length");if(a){var i=parseInt(a);i>0&&e.setAttribute("http.response_content_length",i)}}else t.error&&e.setStatus({code:rk.SPAN_STATUS_ERROR,message:"internal_error"});e.end()}(y,e),d=y,p=e,null==(v=(void 0===(f=a)?"undefined":(0,ep._)(f))==="object"&&null!==f?f.onRequestSpanEnd:void 0)||v(d,{headers:null==(h=p.response)?void 0:h.headers,error:p.error})),delete n[g]);return}var _=(void 0===a?"undefined":(0,ep._)(a))==="object"?a:{spanOrigin:a},S=_.spanOrigin,b=_.propagateTraceparent,E=(0,m.getClient)(),T=!!(0,M.getActiveSpan)()||!!E&&(0,el.hasSpanStreamingEnabled)(E),k=u&&T?(0,rw.startInactiveSpan)(function(e,t,r){if(e.startsWith("data:")){var n=tS(e);return{name:"".concat(t," ").concat(n),attributes:nV(e,void 0,t,r)}}var a=tm(e),i=a?tg(a):e;return{name:"".concat(t," ").concat(i),attributes:nV(e,a,t,r)}}(s,o,void 0===S?"auto.http.browser":S)):new rE.SentryNonRecordingSpan;if(u&&!T&&(null==E||E.recordDroppedEvent("no_parent_span","span")),e.fetchData.__span=k.spanContext().spanId,n[k.spanContext().spanId]=k,r(e.fetchData.url)){var w=e.args[0],R=(0,c._)({},e.args[1]||{}),I=function(e,t,r,n){var a=nX({span:r,propagateTraceparent:n}),i=a["sentry-trace"],o=a.baggage,s=a.traceparent;if(i){var u,d,p=t.headers||((0,e_.isRequest)(e)?e.headers:void 0);if(!p)return(0,c._)({},a);if(u=p,"u">typeof Headers&&(0,e_.isInstanceOf)(u,Headers)){var f=new Headers(p);if(f.get("sentry-trace")||f.set("sentry-trace",i),n&&s&&!f.get("traceparent")&&f.set("traceparent",s),o){var h=f.get("baggage");h?nK(h)||f.set("baggage","".concat(h,",").concat(o)):f.set("baggage",o)}return f}if(Array.isArray(d=p)&&d.every(function(e){return Array.isArray(e)&&2===e.length&&"string"==typeof e[0]})){var v=(0,l._)(p);v.find(function(e){return"sentry-trace"===e[0]})||v.push(["sentry-trace",i]),n&&s&&!v.find(function(e){return"traceparent"===e[0]})&&v.push(["traceparent",s]);var m=p.find(function(e){return"baggage"===e[0]&&"string"==typeof e[1]&&nK(e[1])});return o&&!m&&v.push(["baggage",o]),v}else{var g="sentry-trace"in p?p["sentry-trace"]:void 0,y="traceparent"in p?p.traceparent:void 0,_="baggage"in p?p.baggage:void 0,S=_?Array.isArray(_)?(0,l._)(_):[_]:[],b=_&&(Array.isArray(_)?_.find(function(e){return nK(e)}):nK(_));o&&!b&&S.push(o);var E=Object.assign({},p,{"sentry-trace":null!=g?g:i,baggage:S.length>0?S.join(","):void 0});return n&&s&&!y&&(E.traceparent=s),E}}}(w,R,(0,rb.hasSpansEnabled)()&&T?k:void 0,void 0!==b&&b);I&&(e.args[1]=R,R.headers=I)}if(E){var C={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};E.emit("beforeOutgoingRequestSpan",k,C)}return k}}(e,X,K,V,{propagateTraceparent:$,onRequestSpanEnd:Y});if(r){var n=n2(e.fetchData.url),a=n?ty(n).host:void 0,i=n?tS(n):void 0;r.setAttributes({"http.url":i,"url.full":i,"server.address":a}),L&&n4(r,t),null==G||G(r,{headers:e.headers})}}),b&&tR(function(e){var r,n=function(e,t,r,n,a,i){var o,s=e.xhr,u=null==s?void 0:s[tw];if(s&&!s.__sentry_own_request__&&u){var l,d,p,f,h,v,g=u.url,y=u.method,_=(0,rb.hasSpansEnabled)()&&t(g);if(e.endTimestamp){var S=s.__sentry_xhr_span_id__;if(!S)return;var b=n[S];b&&(_&&void 0!==u.status_code&&((0,rk.setHttpStatus)(b,u.status_code),b.end(),null==i||i(b,{headers:n3(n1(s)),error:e.error})),delete n[S]);return}var E=n2(g),T=E?ty(E):ty(g),k=E?tS(E):void 0,w=tS(t_(g)),R=(0,m.getClient)(),I=!!(0,M.getActiveSpan)()||!!R&&(0,el.hasSpanStreamingEnabled)(R),C=_&&I?(0,rw.startInactiveSpan)({name:"".concat(y," ").concat(w),attributes:(0,c._)((o={url:tS(g),type:"xhr","http.method":y,"http.url":k,"url.full":k,"server.address":null==T?void 0:T.host},(0,J._)(o,P.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.http.browser"),(0,J._)(o,P.SEMANTIC_ATTRIBUTE_SENTRY_OP,"http.client"),o),(null==T?void 0:T.search)&&{"http.query":null==T?void 0:T.search},(null==T?void 0:T.hash)&&{"http.fragment":null==T?void 0:T.hash})}):new rE.SentryNonRecordingSpan;return _&&!I&&(null==R||R.recordDroppedEvent("no_parent_span","span")),s.__sentry_xhr_span_id__=C.spanContext().spanId,n[s.__sentry_xhr_span_id__]=C,r(g)&&(l=s,d=(0,rb.hasSpansEnabled)()&&I?C:void 0,f=(p=nX({span:d,propagateTraceparent:a}))["sentry-trace"],h=p.baggage,v=p.traceparent,f&&function(e,t,r,n){var a,i=null==(a=e.__sentry_xhr_v3__)?void 0:a.request_headers;if((null==i||!i["sentry-trace"])&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),!n||(null==i?void 0:i.traceparent)||e.setRequestHeader("traceparent",n),r){var o=null==i?void 0:i.baggage;o&&o.split(",").some(function(e){return e.trim().startsWith("sentry-")})||e.setRequestHeader("baggage",r)}}catch(e){}}(l,f,h,v)),R&&R.emit("beforeOutgoingRequestSpan",C,e),C}}(e,X,K,V,$,Y);
2n&&(L&&n4(n,t),null==G||G(n,{headers:n3(null==(r=e.xhr.__sentry_xhr_v3__)?void 0:r.request_headers)}))}),x&&t.addIntegration({name:"FetchStreamPerformance",setup:function(){te("fetch-body-resolved",function(e){if(e.response){var t=nM.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);var r=nN.get(e.response);r&&clearTimeout(r)}}}),tt("fetch-body-resolved",function(){return tu(tc)}),ts(function(e){if(e.endTimestamp&&e.response){var t,r,n,a,i,o=(null==(t=e.response.headers)?void 0:t.get("content-type"))||"";if((null==(r=e.response.headers)||!r.get("content-length"))&&nL.some(function(e){return o.startsWith(e)})){var s=(null==(n=e.fetchData)?void 0:n.url)||"",u=(null==(a=e.fetchData)?void 0:a.method)||"GET",c=tm(s),l=s.startsWith("data:")?tS(s):c?tg(c):s,d=(0,rw.startInactiveSpan)({name:"".concat(u," ").concat(l),startTime:e.endTimestamp,attributes:(i={url:tS(s),"http.method":u,type:"fetch"},(0,J._)(i,P.SEMANTIC_ATTRIBUTE_SENTRY_OP,"http.client.stream"),(0,J._)(i,P.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.http.browser.stream"),i)});nM.set(e.response,d);var p=setTimeout(function(){d.isRecording()&&d.end()},9e4);nN.set(e.response,p)}}})}})}}}};function ae(e,t,r){e.emit("startPageLoadSpan",t,r),(0,m.getCurrentScope)().setTransactionName(t.name);var n=e[aa];return n&&e.emit("afterStartPageLoadSpan",n),n}function at(e,t,r){var n=r||{},a=n.url,i=n.isRedirect;e.emit("beforeStartNavigationSpan",t,{isRedirect:i,url:a}),e.emit("startNavigationSpan",t,{isRedirect:i,url:a});var o=(0,m.getCurrentScope)();return o.setTransactionName(t.name),a&&!i&&o.setSDKProcessingMetadata({normalizedRequest:(0,g._)((0,c._)({},e8()),{url:a})}),e[aa]}function ar(e){var t=e3.document,r=null==t?void 0:t.querySelector("meta[name=".concat(e,"]"));return(null==r?void 0:r.getAttribute("content"))||void 0}function an(e){var t,r,n,a=null==(r=e3.performance)||null==(t=r.getEntriesByType)?void 0:t.call(r,"navigation")[0],i=null==a||null==(n=a.serverTiming)?void 0:n.find(function(t){return t.name===e});return null==i?void 0:i.description}var aa="_sentry_idleSpan";function ai(e,t){(0,O.addNonEnumerableProperty)(e,aa,t)}function ao(e){try{return new URL(e,tb.location.origin).toString()}catch(t){return e}}var as=p.GLOBAL_OBJ,au=null,ac=void 0,al=new Map,ad=new Map;function ap(e){var t=e.split("/").filter(Boolean),r=0,n=!0,a=!1,i=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var u=o.value;if(u.startsWith(":")){var c=u.substring(1);c.endsWith("*?")?r+=1e3:c.endsWith("*")?r+=100:r+=10}}}catch(e){a=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw i}}return t.length>0&&(r+=1/t.length),r}function af(e){if(al.has(e)){var t;return null!=(t=al.get(e))?t:null}try{var r=new RegExp(e);return al.set(e,r),r}catch(t){return r_.DEBUG_BUILD&&d.debug.warn("Could not compile regex",{regexString:e,error:t}),null}}function ah(){if(!(null==as?void 0:as._sentryRouteManifest)||"string"!=typeof as._sentryRouteManifest)return null;var e=as._sentryRouteManifest;if(au&&ac===e)return au;al.clear(),ad.clear();var t={staticRoutes:[],dynamicRoutes:[],isrRoutes:[]};try{if(t=JSON.parse(e),!Array.isArray(t.staticRoutes)||!Array.isArray(t.dynamicRoutes))return null;return au=t,ac=e,t}catch(e){return r_.DEBUG_BUILD&&d.debug.warn("Could not extract route manifest"),null}}var av=function(e){var t=ah();if(t){var r=e.length>1&&e.endsWith("/")?e.slice(0,-1):e;if(ad.has(r))return ad.get(r);var n=t.staticRoutes,a=t.dynamicRoutes;if(Array.isArray(n)&&Array.isArray(a)){var i=(function(e,t,r){var n=[];if(t.some(function(t){return t.path===e}))return n;var a=!0,i=!1,o=void 0;try{for(var s,u=r[Symbol.iterator]();!(a=(s=u.next()).done);a=!0){var c=s.value;if(c.regex){var l=af(c.regex);(null==l?void 0:l.test(e))&&n.push(c.path)}}}catch(e){i=!0,o=e}finally{try{a||null==u.return||u.return()}finally{if(i)throw o}}if(!e.startsWith("/:")){var d=!0,p=!1,f=void 0;try{for(var h,v=r[Symbol.iterator]();!(d=(h=v.next()).done);d=!0){var m=h.value;if(m.hasOptionalPrefix&&m.regex){var g="/"===e?"/SENTRY_OPTIONAL_PREFIX":"/SENTRY_OPTIONAL_PREFIX".concat(e),y=af(m.regex);(null==y?void 0:y.test(g))&&n.push(m.path)}}}catch(e){p=!0,f=e}finally{try{d||null==v.return||v.return()}finally{if(p)throw f}}}return n})(r,n,a).sort(function(e,t){return ap(e)-ap(t)})[0];return ad.set(r,i),i}}};function am(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}function ag(e,t,r){var n;e.setAttributes((n={},(0,J._)(n,tY.URL_PATH,t),(0,J._)(n,tY.URL_FULL,ao(r)),n))}var ay="incomplete-app-router-transaction",a_="router-patch",aS={current:void 0};function ab(e){var t,r=am(e3.location.pathname),n=av(r),a=(0,er.browserPerformanceTimeOrigin)();ae(e,{name:null!=n?n:r,startTime:a?a/1e3:void 0,attributes:(0,c._)((t={},(0,J._)(t,P.SEMANTIC_ATTRIBUTE_SENTRY_OP,"pageload"),(0,J._)(t,P.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.pageload.nextjs.app_router_instrumentation"),(0,J._)(t,P.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,n?"route":"url"),t),n&&(0,J._)({},tY.URL_TEMPLATE,n))})}var aE=p.GLOBAL_OBJ,aT=p.GLOBAL_OBJ;function ak(e){aC=function(t,r){var n,a,i=null!=(n=u.default.env._sentryBasePath)?n:aT._sentryBasePath,o=i&&!t.startsWith(i)?"".concat(i).c
2oncat(t):t,s=am(new URL(o,e3.location.href).pathname),l=av(s),d=null!=l?l:s;"router-patch"===a_&&(a_="transition-start-hook");var p=aS.current;p?(p.updateName(d),p.setAttributes((0,c._)((0,J._)({"navigation.type":"router.".concat(r)},P.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,l?"route":"url"),l&&(0,J._)({},tY.URL_TEMPLATE,l))),ag(p,s,o),aS.current=void 0):at(e,{name:d,attributes:(0,c._)((a={},(0,J._)(a,P.SEMANTIC_ATTRIBUTE_SENTRY_OP,"navigation"),(0,J._)(a,P.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.navigation.nextjs.app_router_instrumentation"),(0,J._)(a,P.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,l?"route":"url"),(0,J._)(a,"navigation.type","router.".concat(r)),a),l&&(0,J._)({},tY.URL_TEMPLATE,l))},{url:ao(o)})},e3.addEventListener("popstate",function(){var t,r,n=am(e3.location.pathname),a=av(n);(null==(t=aS.current)?void 0:t.isRecording())?(aS.current.updateName(null!=a?a:n),aS.current.setAttribute(P.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,a?"route":"url"),a&&aS.current.setAttribute(tY.URL_TEMPLATE,a),ag(aS.current,n,e3.location.href)):aS.current=at(e,{name:null!=a?a:n,attributes:(0,c._)((r={},(0,J._)(r,P.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.navigation.nextjs.app_router_instrumentation"),(0,J._)(r,P.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,a?"route":"url"),(0,J._)(r,"navigation.type","browser.popstate"),r),a&&(0,J._)({},tY.URL_TEMPLATE,a))},{url:ao(n)})});var t=!1,r=0,n=setInterval(function(){r++;var a,i,o,s=null!=(a=null==aE||null==(i=aE.next)?void 0:i.router)?a:null==aE||null==(o=aE.nd)?void 0:o.router;t||r>500?clearInterval(n):s&&(clearInterval(n),t=!0,aI(e,s,aS),["nd","next"].forEach(function(t){var r=aE[t];r&&(aE[t]=new Proxy(r,{set:function(t,r,n){return"router"===r&&(void 0===n?"undefined":(0,ep._)(n))==="object"&&null!==n&&aI(e,n,aS),t[r]=n,!0}}))}))},20)}function aw(e){try{return new URL(e,"http://example.com/").pathname}catch(e){return"/"}}var aR=new WeakSet;function aI(e,t,r){aR.has(t)||(aR.add(t),["back","forward","push","replace"].forEach(function(n){(null==t?void 0:t[n])&&(t[n]=new Proxy(t[n],{apply:function(t,a,i){if("router-patch"!==a_)return t.apply(a,i);var o,s,l=ay,d=(s={},(0,J._)(s,P.SEMANTIC_ATTRIBUTE_SENTRY_OP,"navigation"),(0,J._)(s,P.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.navigation.nextjs.app_router_instrumentation"),(0,J._)(s,P.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"url"),s),p=i[0],f=null!=(o=u.default.env._sentryBasePath)?o:aT._sentryBasePath,h=f&&"string"==typeof p&&!p.startsWith(f)?"".concat(f).concat(p):p;"push"===n?(l=am(aw(h)),d["navigation.type"]="router.push"):"replace"===n?(l=am(aw(h)),d["navigation.type"]="router.replace"):"back"===n?d["navigation.type"]="router.back":"forward"===n&&(d["navigation.type"]="router.forward");var v=av(l),m="back"===n||"forward"===n?void 0:ao(h);return r.current=at(e,{name:null!=v?v:l,attributes:(0,c._)((0,g._)((0,c._)({},d),(0,J._)({},P.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,v?"route":"url")),v&&(0,J._)({},tY.URL_TEMPLATE,v))},m?{url:m}:void 0),t.apply(a,i)}}))}))}var aC=void 0;e.s(["INCOMPLETE_APP_ROUTER_INSTRUMENTATION_TRANSACTION_NAME",0,ay,"appRouterInstrumentNavigation",0,ak,"appRouterInstrumentPageLoad",0,ab,"captureRouterTransitionStart",0,function(e,t){aC&&aC(e,t)}],292052);var ax=e.i(565909),aO=ax.default.events?ax.default:ax.default.default,aA=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function aP(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n="",a=!1,i=t.length-1;i>=-1&&!a;i--){var o=i>=0?t[i]:"/";o&&(n="".concat(o,"/").concat(n),a="/"===o.charAt(0))}return n=(function(e,t){for(var r=0,n=e.length-1;n>=0;n--){var a=e[n];"."===a?e.splice(n,1):".."===a?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;)e.unshift("..");return e})(n.split("/").filter(function(e){return!!e}),!a).join("/"),(a?"/":"")+n||"."}function aM(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}var aN=function(){var e,t,r,n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=function(e){try{return(0,g._)((0,c._)({},e),{exception:(0,g._)((0,c._)({},e.exception),{values:e.exception.values.map(function(e){return(0,c._)({},e,e.stacktrace&&{stacktrace:o(e.stacktrace)})})})})}catch(t){return e}},o=function(e){var t;return(0,g._)((0,c._)({},e),{frames:null==e||null==(t=e.frames)?void 0:t.map(function(e){return d(e)})})},s=a.root,u=a.prefix||"app:///",l="window"in p.GLOBAL_OBJ&&!!p.GLOBAL_OBJ.window,d=a.iteratee||(t=(e={isBrowser:l,root:s,prefix:u}).isBrowser,r=e.root,n=e.prefix,function(e){if(!e.filename)return e;var a=/^[a-zA-Z]:\\/.test(e.filename)||e.filename.includes("\\")&&!e.filename.includes("/"),i=/^\//.test(e.filename);if(t){if(r){var o=e.filename;0===o.indexOf(r)&&(e.filename=o.replace(r,n))}}else if(a||i){var s,u,c=a?e.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):e.filename,l=r?function(e,t){e=aP(e).slice(1),t=aP(t).slice(1);for(var r=aM(e.split("/")),n=aM(t.split("/")),a=Math.min(r.length,n.length),i=a,o=0;o<a;o++)if(r[o]!==n[o]){i=o;break}for(var s=[],u=i;u<r.length;u++)s.push("..");return(s=s.concat(n.slice(i))).join("/")}(r,c):(s=c.length>1024?"<truncated>".concat(c.slice(-1024)):c,(u=aA.exec(s))?u.slice(1):[])[2]||"";e.filename="".concat(n).concat(l)}return e});return{name:"RewriteFrames",processEvent:function(e){var t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=i(t)),t}}},aL=function(e){var t=e.assetPrefix,r=e.basePath,n=e.rewriteFramesAssetPrefixPath,a=e.experimentalThirdPartyOriginStackFrames,i=aN({iteratee:function(e){if(a){var i,o,s,u,c="u">typeof window&&window.location?window.location.origin:"";if((null==(l=e.filename)?void 0:l.startsWith(c))&&!e.filename.endsWith(".js"))return e;if(t)(null==(d=e.filename)?void 0:d.startsWith(t))&&(e.filename=e.filename.replace(t,"app://"));else if(r)try{var l,d,p,f=new URL(e.filename).origin;
2f===c&&(e.filename=null==(p=e.filename)?void 0:p.replace(f,"app://").replace(r,""))}catch(e){}}else try{var h,v=new URL(e.filename).origin;e.filename=null==(h=e.filename)?void 0:h.replace(v,"app://").replace(n,"")}catch(e){}return a?((null==(i=e.filename)?void 0:i.includes("/_next"))&&(e.filename=decodeURI(e.filename)),(null==(o=e.filename)?void 0:o.match(/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/))&&(e.in_app=!1)):((null==(s=e.filename)?void 0:s.startsWith("app:///_next"))&&(e.filename=decodeURI(e.filename)),(null==(u=e.filename)?void 0:u.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/))&&(e.in_app=!1)),e}});return(0,g._)((0,c._)({},i),{name:"NextjsClientStackFrameNormalization"})},aD=new(function(){function e(t){(0,H._)(this,e),this._maxSize=t,this._cache=new Map}return(0,W._)(e,[{key:"size",get:function(){return this._cache.size}},{key:"get",value:function(e){var t=this._cache.get(e);if(void 0!==t)return this._cache.delete(e),this._cache.set(e,t),t}},{key:"set",value:function(e,t){if(this._cache.size>=this._maxSize){var r=this._cache.keys().next().value;this._cache.delete(r)}this._cache.set(e,t)}},{key:"remove",value:function(e){var t=this._cache.get(e);return t&&this._cache.delete(e),t}},{key:"clear",value:function(){this._cache.clear()}},{key:"keys",value:function(){return Array.from(this._cache.keys())}},{key:"values",value:function(){var e=[];return this._cache.forEach(function(t){return e.push(t)}),e}}]),e}())(100),aU=p.GLOBAL_OBJ,aB=!1,aj=p.GLOBAL_OBJ;e.s(["init",0,function(e){aB&&(0,d.consoleSandbox)(function(){console.warn("[@sentry/nextjs] You are calling `Sentry.init()` more than once on the client. This can happen if you have both a `sentry.client.config.ts` and a `instrumentation-client.ts` file with `Sentry.init()` calls. It is recommended to call `Sentry.init()` once in `instrumentation-client.ts`.")}),aB=!0,!r_.DEBUG_BUILD&&e.debug&&(0,d.consoleSandbox)(function(){console.warn("[@sentry/nextjs] You have enabled `debug: true`, but Sentry debug logging was removed from your bundle (likely via `withSentryConfig({ disableLogger: true })` / `webpack.treeshake.removeDebugLogging: true`). Set that option to `false` to see Sentry debug output.")}),("u"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&function(){e3.document&&function(e){var t=av(e)||e,r=aD.get(t);if(void 0!==r)return r;var n=ah();if(!(null==n?void 0:n.isrRoutes)||!Array.isArray(n.isrRoutes)||0===n.isrRoutes.length)return aD.set(t,!1),!1;var a=n.isrRoutes.includes(t);return aD.set(t,a),a}(e3.location.pathname)&&(e("sentry-trace"),e("baggage"));function e(e){try{var t=e3.document.querySelector('meta[name="'.concat(e,'"]'));t&&t.remove()}catch(e){}}}();var t,r,n,a,i,o,s,p=(0,c._)({environment:e.environment||u.default.env.SENTRY_ENVIRONMENT||"vercel-".concat("production")||"production",defaultIntegrations:(t=rm(e),("u"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&t.push(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n9((0,g._)((0,c._)({},e),{instrumentNavigation:!1,instrumentPageLoad:!1,onRequestSpanStart:function(){for(var t,r=arguments.length,n=Array(r),a=0;a<r;a++)n[a]=arguments[a];var i=(0,X._)(n,2),o=i[0],s=i[1].headers;return(null==s?void 0:s.get("next-router-prefetch"))&&(null==o||o.setAttribute("http.request.prefetch",!0)),null==(t=e.onRequestSpanStart)?void 0:t.call.apply(t,[e].concat((0,l._)(n)))}})),r=e.instrumentPageLoad,n=void 0===r||r,a=e.instrumentNavigation,i=void 0===a||a;return(0,g._)((0,c._)({},t),{afterAllSetup:function(e){!n6()&&(i&&function(e){if(e3.document.getElementById("__NEXT_DATA__"))aO.events.on("routeChangeStart",function(t){var r,n,a,i=t_(t),o=function(e){var t,r=null==(t=e3.__BUILD_MANIFEST)?void 0:t.sortedPages;if(r)return r.find(function(t){var r,n,a,i,o=(n=t.split("/"),a="",(null==(r=n[n.length-1])?void 0:r.match(/^\[\[\.\.\..+\]\]$/))&&(n.pop(),a="(?:/(.+?))?"),i=n.map(function(e){return e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")}
2).join("/"),new RegExp("^".concat(i).concat(a,"(?:/)?$")));return e.match(o)})}(i);o?(r=o,n="route"):(r=i,n="url"),at(e,{name:r,attributes:(0,c._)((a={},(0,J._)(a,P.SEMANTIC_ATTRIBUTE_SENTRY_OP,"navigation"),(0,J._)(a,P.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.navigation.nextjs.pages_router_instrumentation"),(0,J._)(a,P.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,n),a),"route"===n&&(0,J._)({},tY.URL_TEMPLATE,r))},{url:ao(t)})});else ak(e)}(e),t.afterAllSetup(e),n&&function(e){if(e3.document.getElementById("__NEXT_DATA__")){var t,r,n,a,i,o,s,u,l;n=(r=function(){var e,t=e3.document.getElementById("__NEXT_DATA__");if(null==t?void 0:t.innerHTML)try{e=JSON.parse(t.innerHTML)}catch(e){r_.DEBUG_BUILD&&d.debug.warn("Could not extract __NEXT_DATA__")}if(!e)return{};var r={},n=e.page,a=e.query,i=e.props;return r.route=n,r.params=a,(null==i?void 0:i.pageProps)&&(r.sentryTrace=i.pageProps._sentryTraceData,r.baggage=i.pageProps._sentryBaggage),r}()).route,a=r.params,i=r.sentryTrace,o=r.baggage,s=(0,nY.parseBaggageHeader)(o),u=n||e3.location.pathname,(null==s?void 0:s["sentry-transaction"])&&"/_error"===u&&(u=(u=s["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,"")),ae(e,{name:u,startTime:(l=(0,er.browserPerformanceTimeOrigin)())?l/1e3:void 0,attributes:(0,c._)((t={},(0,J._)(t,P.SEMANTIC_ATTRIBUTE_SENTRY_OP,"pageload"),(0,J._)(t,P.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.pageload.nextjs.pages_router_instrumentation"),(0,J._)(t,P.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,n?"route":"url"),t),n&&(0,J._)({},tY.URL_TEMPLATE,n),a&&(0,c._)({},a))},{sentryTrace:i,baggage:o})}else ab(e)}(e))}})}()),r=aj._sentryRewriteFramesAssetPrefixPath||"",n=u.default.env._sentryAssetPrefix||aj._sentryAssetPrefix,a=u.default.env._sentryBasePath||aj._sentryBasePath,i="true"===u.default.env._experimentalThirdPartyOriginStackFrames||"true"===aj._experimentalThirdPartyOriginStackFrames,t.push(aL({assetPrefix:n,basePath:a,rewriteFramesAssetPrefixPath:r,experimentalThirdPartyOriginStackFrames:i})),t),release:"ad74fef47e6f7850731cabdbd33d90d1acd7fbeb"},e);!function(e){var t=u.default.env._sentryRewritesTunnelPath||aU._sentryRewritesTunnelPath;if(t&&e.dsn){var r=(0,V.dsnFromString)(e.dsn);if(!r)return;var n=r.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(n){var a=n[1],i=n[2],o="".concat(t,"?o=").concat(a,"&p=").concat(r.projectId);i&&(o+="&r=".concat(i)),e.tunnel=o,r_.DEBUG_BUILD&&d.debug.log('Tunneling events to "'.concat(o,'"'))}else r_.DEBUG_BUILD&&d.debug.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(p),h(p,"nextjs",["nextjs","react"]),p.ignoreSpans=(0,l._)(p.ignoreSpans||[]).concat([/^\/404$/,new RegExp("^".concat(ay,"$"))]);var f=(h(o=(0,c._)({},p),"react"),(0,v.setContext)("react",{version:rg.version}),s=function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!r.skipBrowserExtensionCheck&&!!function(){if(void 0===e3.window||e3.nw)return!1;var e,t=e3.chrome||e3.browser;if(!(null==t||null==(e=t.runtime)?void 0:e.id))return!1;var r=e1();return!(e3===e3.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(r))}()&&(tM&&(0,d.consoleSandbox)(function(){console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0),a=null==r.defaultIntegrations?rm():r.defaultIntegrations,i=(0,g._)((0,c._)({},r),{enabled:!n&&r.enabled,stackParser:(0,N.stackParserFromStackParserOptions)(r.stackParser||rs),integrations:function(e){var t,r,n=e.defaultIntegrations||[],a=e.integrations;if(n.forEach(function(e){e.isDefaultInstance=!0}),Array.isArray(a))r=(0,l._)(n).concat((0,l._)(a));else if("function"==typeof a){var i=a(n);r=Array.isArray(i)?i:[i]}else r=n;return t={},r.forEach(function(e){var r=e.name,n=t[r];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)}),Object.values(t)}({integrations:r.integrations,defaultIntegrations:a}),transport:r.transport||rf});return(0,j.setNormalizeStringifier)(rv),!0===i.debug&&(y.DEBUG_BUILD?d.debug.enable():(0,d.consoleSandbox)(function(){console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,m.getCurrentScope)().update(i.initialScope),e=t=new e6(i),(0,m.getCurrentScope)().setClient(e),t.init(),t}(o),(0,j.setNormalizeStringifier)(ry),s),_=function(e,t){var r,n,a,i;return(i=null==t?void 0:t.originalException,(0,e_.isError)(i)&&"string"==typeof i.digest&&i.digest.startsWith("NEXT_REDIRECT;")||(null==(a=e.exception)||null==(n=a.values)||null==(r=n[0])?void 0:r.value)==="NEXT_REDIRECT")?null:e};_.id="NextRedirectErrorFilter",(0,v.addEventProcessor)(_);try{(0,m.getGlobalScope)().setTag("turbopack",!0)}catch(e){}return f}],501061);var aF=e.i(302393);function aH(e){return"/"===e[e.length-1]?e.slice(0,-1):e}var aW=p.GLOBAL_OBJ,aq="sentryReplaySession",az="Unable to send Replay",aG=Object.defineProperty,aY=function(e,t,r){var n;return n=(void 0===t?"undefined":(0,ep._)(t))!=="symbol"?t+"":t,n in e?aG(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},aJ=((oS=aJ||{})[oS.Document=0]="Document",oS[oS.DocumentType=1]="DocumentType",oS[oS.Element=2]="Element",oS[oS.Text=3]="Text",oS[oS.CDATA=4]="CDATA",oS[oS.Comment=5]="Comment",oS);function aX(e){var t=null==e?void 0:e.host;return(null==t?void 0:t.shadowRoot)===e}function aK(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function aV(e){try{var t,r=e.rules||e.cssRules;return r?((t=Array.from(r,a$).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(e){return null}}function a$(e){var t;if("styleSheet"in e)try{t=aV(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url(".concat(JSON.stringify(e.href),")")];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer(".concat(e.layerName,")")),e.supportsText&&r.push("supports(".concat(e.supportsText,")")),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e){var r=e.cssText,n=e.selectorText.includes(":"),a="string"==typeof e.style.all&&e.style.all;if(a&&(r=function(e){for(var t="",r=0;r<e.style.length;r++){var n=e.style,a=n[r],i=n.getPropertyPriority(a);t+="".concat(a,":").concat(n.getPropertyValue(a)).concat(i?" !important":"",";")}return"".concat(e.selectorText," { ").concat(t," }")}(e)),n&&(r=r.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),n||a)return r}return t||e.cssText}var aQ=function(){function e(){(0,H._)(this,e),aY(this,"idNodeMap",new Map),aY(this,"nodeMetaMap",new WeakMap)}return(0,W._)(e,[{key:"getId",value:function(e){if(!e)return -1;var t,r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1}},{key:"getNode",value:function(e){return this.idNodeMap.get(e)||null}},{key:"getIds",value:function(){return Array.from(this.idNodeMap.keys())}},{key:"getMeta",value:function(e){return this.nodeMetaMap.get(e)||null}},{key:"removeNodeFromMap",value:function(e){var t=this,r=this.getId(e);
2this.idNodeMap.delete(r),e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})}},{key:"has",value:function(e){return this.idNodeMap.has(e)}},{key:"hasNode",value:function(e){return this.nodeMetaMap.has(e)}},{key:"add",value:function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}},{key:"replace",value:function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)}},{key:"reset",value:function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}]),e}();function aZ(e){var t=e.maskInputOptions,r=e.tagName,n=e.type;return"OPTION"===r&&(r="SELECT"),!!(t[r.toLowerCase()]||n&&t[n]||"password"===n||"INPUT"===r&&!n&&t.text)}function a0(e){var t=e.isMasked,r=e.element,n=e.value,a=e.maskInputFn,i=n||"";return t?(a&&(i=a(i,r)),"*".repeat(i.length)):i}function a1(e){return e.toLowerCase()}function a2(e){return e.toUpperCase()}var a3="__rrweb_original__";function a5(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?a1(t):null}function a4(e,t,r){return"INPUT"===t&&("radio"===r||"checkbox"===r)?e.getAttribute("value")||"":e.value}function a8(e,t){try{n=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var r,n,a=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(r=null==a?void 0:a[1])?r:null}var a6={};function a7(e){var t=a6[e];if(t)return t;var r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{var a=r.createElement("iframe");a.hidden=!0,r.head.appendChild(a);var i=a.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(a)}catch(e){}return a6[e]=n.bind(window)}function a9(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return a7("setTimeout").apply(this,(0,l._)(t))}function ie(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return a7("clearTimeout").apply(this,(0,l._)(t))}function it(e){try{return e.contentDocument}catch(e){}}var ir=1,ia=RegExp("[^a-z0-9-_:]");function ii(){return ir++}var io=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,is=/^(?:[a-z+]+:)?\/\//i,iu=/^www\..*/i,ic=/^(data:)([^,]*),(.*)/i;function il(e,t){return(e||"").replace(io,function(e,r,n,a,i,o){var s=n||i||o,u=r||a||"";if(!s)return e;if(is.test(s)||iu.test(s)||ic.test(s))return"url(".concat(u).concat(s).concat(u,")");if("/"===s[0])return"url(".concat(u).concat((t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+s).concat(u,")");var c=t.split("/"),l=s.split("/");c.pop();var d=!0,p=!1,f=void 0;try{for(var h,v,m=l[Symbol.iterator]();!(d=(v=m.next()).done);d=!0){var g=v.value;"."!==g&&(".."===g?c.pop():c.push(g))}}catch(e){p=!0,f=e}finally{try{d||null==m.return||m.return()}finally{if(p)throw f}}return"url(".concat(u).concat(c.join("/")).concat(u,")")})}var id=/^[^ \t\n\r\u000c]+/,ip=/^[, \t\n\r\u000c]+/,ih=new WeakMap;function iv(e,t){return t&&""!==t.trim()?im(e,t):t}function im(e,t){var r=ih.get(e);if(r||(r=e.createElement("a"),ih.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function ig(e,t,r,n,a,i,o){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return iv(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return iv(e,n);if("srcset"===r)return function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,a=e.exec(t.substring(r));return a?(n=a[0],r+=n.length,n):""}for(var a=[];n(ip),!(r>=t.length);){var i=n(id);if(","===i.slice(-1))i=iv(e,i.substring(0,i.length-1)),a.push(i);else{var o="";i=iv(e,i);for(var s=!1;;){var u=t.charAt(r);if(""===u){a.push((i+o).trim());break}if(s)")"===u&&(s=!1);else if(","===u){r+=1,a.push((i+o).trim());break}else"("===u&&(s=!0);o+=u,r+=1}}}return a.join(", ")}(e,n);if("style"===r){var s=il(n,im(e));return o&&o.size>0&&(s=function(e,t){if(!e||0===t.size)return e;try{var r=e.split(";"),n=[],a=!0,i=!1,o=void 0;try{for(var s,u=r[Symbol.iterator]();!(a=(s=u.next()).done);a=!0){var c=s.value;if(c=c.trim()){var l=c.indexOf(":");if(-1===l){n.push(c);continue}var d=c.slice(0,l).trim();t.has(d)||n.push(c)}}}catch(e){i=!0,o=e}finally{try{a||null==u.return||u.return()}finally{if(i)throw o}}return n.join("; ")+(n.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}(s,o)),s}else if("object"===t&&"data"===r)return iv(e,n);return"function"==typeof i?i(r,n,a):n}function iy(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function i_(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:i_(e.parentNode,t,r,n+1)}function iS(e,t){return function(r){if(null===r)return!1;try{if(e){if("string"==typeof e){if(r.matches(".".concat(e)))return!0}else if(function(e,t){for(var r=e.classList.length;r--;){var n=e.classList[r];if(t.test(n))return!0}return!1}(r,e))return!0}if(t&&r.matches(t))return!0;return!1}catch(e){return!1}}}
2function ib(e,t,r,n,a,i){try{var o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("INPUT"===o.tagName){var s=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(s))return!0}var u=-1,c=-1;if(i){if((c=i_(o,iS(n,a)))<0)return!0;u=i_(o,iS(t,r),c>=0?c:1/0)}else{if((u=i_(o,iS(t,r)))<0)return!1;c=i_(o,iS(n,a),u>=0?u:1/0)}return u>=0?!(c>=0)||u<=c:!(c>=0)&&!!i}catch(e){}return!!i}function iE(e){return null==e?"":e.toLowerCase()}function iT(e,t){var r=t.doc,n=t.mirror,a=t.blockClass,i=t.blockSelector,o=t.unblockSelector,s=t.maskAllText,u=t.maskTextClass,c=t.unmaskTextClass,l=t.maskTextSelector,d=t.unmaskTextSelector,p=t.skipChild,f=void 0!==p&&p,h=t.inlineStylesheet,v=void 0===h||h,m=t.maskInputOptions,g=void 0===m?{}:m,y=t.maskAttributeFn,_=t.maskTextFn,S=t.maskInputFn,b=t.slimDOMOptions,E=t.dataURLOptions,T=void 0===E?{}:E,k=t.inlineImages,w=void 0!==k&&k,R=t.recordCanvas,I=void 0!==R&&R,C=t.onSerialize,x=t.onIframeLoad,O=t.iframeLoadTimeout,A=void 0===O?5e3:O,P=t.onBlockedImageLoad,M=t.onStylesheetLoad,N=t.stylesheetLoadTimeout,L=void 0===N?5e3:N,D=t.keepIframeSrcFn,U=void 0===D?function(){return!1}:D,B=t.newlyAddedElement,j=t.ignoreCSSAttributes,F=t.preserveWhiteSpace,H=void 0===F||F,W=function(e,t){var r=t.doc,n=t.mirror,a=t.blockClass,i=t.blockSelector,o=t.unblockSelector,s=t.maskAllText,u=t.maskAttributeFn,c=t.maskTextClass,l=t.unmaskTextClass,d=t.maskTextSelector,p=t.unmaskTextSelector,f=t.inlineStylesheet,h=t.maskInputOptions,v=void 0===h?{}:h,m=t.maskTextFn,g=t.maskInputFn,y=t.dataURLOptions,_=t.inlineImages,S=t.recordCanvas,b=t.keepIframeSrcFn,E=t.newlyAddedElement,T=t.ignoreCSSAttributes,k=function(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:aJ.Document,childNodes:[],compatMode:e.compatMode};return{type:aJ.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:aJ.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,a=t.blockClass,i=t.blockSelector,o=t.unblockSelector,s=t.inlineStylesheet,u=t.maskInputOptions,c=void 0===u?{}:u,l=t.maskAttributeFn,d=t.maskInputFn,p=t.dataURLOptions,f=void 0===p?{}:p,h=t.inlineImages,v=t.recordCanvas,m=t.keepIframeSrcFn,g=t.newlyAddedElement,y=t.rootId,_=t.maskTextClass,S=t.unmaskTextClass,b=t.maskTextSelector,E=t.unmaskTextSelector,T=t.ignoreCSSAttributes,k=function(e,t,r,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var a=e.classList.length;a--;){var i=e.classList[a];if(t.test(i))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,a,i,o),w=function(e){if((0,eG._)(e,HTMLFormElement))return"form";var t=a1(e.tagName);return ia.test(t)?"div":t}(e),R={},I=e.attributes.length,C=0;C<I;C++){var x=e.attributes[C];x.name&&!iy(w,x.name,x.value)&&(R[x.name]=ig(n,w,a1(x.name),x.value,e,l,T))}if("link"===w&&s){var O=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),A=null;O&&(A=aV(O)),A&&(R.rel=null,R.href=null,R.crossorigin=null,R._cssText=il(A,O.href))}if("style"===w&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){var P=aV(e.sheet);P&&(R._cssText=il(P,im(n)))}if("input"===w||"textarea"===w||"select"===w||"option"===w){var M=a5(e),N=a4(e,a2(w),M),L=e.checked;if("submit"!==M&&"button"!==M&&N){var D=ib(e,_,b,S,E,aZ({type:M,tagName:a2(w),maskInputOptions:c}));R.value=a0({isMasked:D,element:e,value:N,maskInputFn:d})}L&&(R.checked=L)}if("option"===w&&(e.selected&&!c.select?R.selected=!0:delete R.selected),"canvas"===w&&v){if("2d"===e.__context)!function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var a=t.getImageData;if(new Uint32Array((a3 in a?a[a3]:a).call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(function(e){return 0!==e}))return!1}return!0}(e)&&(R.rr_dataURL=e.toDataURL(f.type,f.quality));else if(!("__context"in e)){var U=e.toDataURL(f.type,f.quality),B=n.createElement("canvas");B.width=e.width,B.height=e.height,U!==B.toDataURL(f.type,f.quality)&&(R.rr_dataURL=U)}}
2if("img"===w&&h){oB||(oj=(oB=n.createElement("canvas")).getContext("2d"));var j=e.currentSrc||e.getAttribute("src")||"<unknown-src>",F=e.crossOrigin,H=function(){e.removeEventListener("load",H);try{oB.width=e.naturalWidth,oB.height=e.naturalHeight,oj.drawImage(e,0,0),R.rr_dataURL=oB.toDataURL(f.type,f.quality)}catch(t){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?H():e.addEventListener("load",H);return}console.warn("Cannot inline img src=".concat(j,"! Error: ").concat(t))}"anonymous"===e.crossOrigin&&(F?R.crossOrigin=F:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?H():e.addEventListener("load",H)}if(("audio"===w||"video"===w)&&(R.rr_mediaState=e.paused?"paused":"played",R.rr_mediaCurrentTime=e.currentTime),!(void 0!==g&&g)&&(e.scrollLeft&&(R.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(R.rr_scrollTop=e.scrollTop)),k){var W=e.getBoundingClientRect(),q=W.width,z=W.height;R={class:R.class,rr_width:"".concat(q,"px"),rr_height:"".concat(z,"px")}}"iframe"!==w||m(R.src)||(k||it(e)||(R.rr_src=R.src),delete R.src);try{customElements.get(w)&&(r=!0)}catch(e){}return{type:aJ.Element,tagName:w,attributes:R,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:k,rootId:y,isCustom:r}}(e,{doc:r,blockClass:a,blockSelector:i,unblockSelector:o,inlineStylesheet:f,maskAttributeFn:u,maskInputOptions:v,maskInputFn:g,dataURLOptions:void 0===y?{}:y,inlineImages:_,recordCanvas:S,keepIframeSrcFn:b,newlyAddedElement:void 0!==E&&E,rootId:k,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,ignoreCSSAttributes:T});case e.TEXT_NODE:return function(e,t){var r,n=t.maskAllText,a=t.maskTextClass,i=t.unmaskTextClass,o=t.maskTextSelector,s=t.unmaskTextSelector,u=t.maskTextFn,c=t.maskInputOptions,l=t.maskInputFn,d=t.rootId,p=e.parentNode&&e.parentNode.tagName,f=e.textContent,h="STYLE"===p||void 0,v="SCRIPT"===p||void 0,m="TEXTAREA"===p||void 0;if(h&&f){try{e.nextSibling||e.previousSibling||(null==(r=e.parentNode.sheet)?void 0:r.cssRules)&&(f=aV(e.parentNode.sheet))}catch(t){console.warn("Cannot get CSS styles from text's parentNode. Error: ".concat(t),e)}f=il(f,im(t.doc))}v&&(f="SCRIPT_PLACEHOLDER");var g=ib(e,a,o,i,s,n);return h||v||m||!f||!g||(f=u?u(f,e.parentElement):f.replace(/[\S]/g,"*")),m&&f&&(c.textarea||g)&&(f=l?l(f,e.parentNode):f.replace(/[\S]/g,"*")),"OPTION"===p&&f&&(f=a0({isMasked:ib(e,a,o,i,s,aZ({type:null,tagName:p,maskInputOptions:c})),element:e,value:f,maskInputFn:l})),{type:aJ.Text,textContent:f||"",isStyle:h,rootId:d}}(e,{doc:r,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:v,maskInputFn:g,rootId:k});case e.CDATA_SECTION_NODE:return{type:aJ.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:aJ.Comment,textContent:e.textContent||"",rootId:k};default:return!1}}(e,{doc:r,mirror:n,blockClass:a,blockSelector:i,maskAllText:s,unblockSelector:o,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:v,maskInputOptions:g,maskAttributeFn:y,maskTextFn:_,maskInputFn:S,dataURLOptions:T,inlineImages:w,recordCanvas:I,keepIframeSrcFn:U,newlyAddedElement:void 0!==B&&B,ignoreCSSAttributes:j});if(!W)return console.warn(e,"not serialized"),null;$=n.hasNode(e)?n.getId(e):!function(e,t){if(t.comment&&e.type===aJ.Comment)return!0;if(e.type===aJ.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"===a8(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(iE(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===iE(e.attributes.name)||"icon"===iE(e.attributes.rel)||"apple-touch-icon"===iE(e.attributes.rel)||"shortcut icon"===iE(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&iE(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(iE(e.attributes.property).match(/^(og|twitter|fb):/)||iE(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===iE(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===iE(e.attributes.name)||"googlebot"===iE(e.attributes.name)||"bingbot"===iE(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===iE(e.attributes.name)||"generator"===iE(e.attributes.name)||"framework"===iE(e.attributes.name)||"publisher"===iE(e.attributes.name)||"progid"===iE(e.attributes.name)||iE(e.attributes.property).match(/^article:/)||iE(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===iE(e.attributes.name)||"yandex-verification"===iE(e.attributes.name)||"csrf-token"===iE(e.attributes.name)||"p:domain_verify"===iE(e.attributes.name)||"verify-v1"===iE(e.attributes.name)||"verification"===iE(e.attributes.name)||"shopify-checkout-api-token"===iE(e.attributes.name)))return!0}}return!1}(W,b)&&(H||W.type!==aJ.Text||W.isStyle||W.textContent.trim().length)?ii():-2;var q=Object.assign(W,{id:$});if(n.add(e,q),-2===$)return null;C&&C(e);var z=!f;if(q.type===aJ.Element){z=z&&!q.needBlock;var G=e.shadowRoot;G&&aK(G)&&(q.isShadowHost=!0)}if((q.type===aJ.Document||q.type===aJ.Element)&&z){b.headWhitespace&&q.type===aJ.Element&&"head"===q.tagName&&(H=!1);var Y={doc:r,mirror:n,blockClass:a,blockSelector:i,maskAllText:s,unblockSelector:o,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,skipChild:f,inlineStylesheet:v,maskInputOptions:g,maskAttributeFn:y,maskTextFn:_,maskInputFn:S,slimDOMOptions:b,dataURLOptions:T,inlineImages:w,recordCanvas:I,preserveWhiteSpace:H,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:A,onBlockedImageLoad:P,onStylesheetLoad:M,stylesheetLoadTimeout:L,keepIframeSrcFn:U,ignoreCSSAttributes:j},J=e.childNodes?Array.from(e.childNodes):[],X=!0,K=!1,V=void 0;try{for(var $,Q,Z=J[Symbol.iterator]();!(X=(Q=Z.next()).done);X=!0){var ee=Q.value,et=iT(ee,Y);et&&q.childNodes.push(et)}}catch(e){K=!0,V=e}finally{try{X||null==Z.return||Z.return()}finally{if(K)throw V}}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot){var er=!0,en=!1,ea=void 0;try{for(var ei,eo=Array.from(e.shadowRoot.childNodes)[Symbol.iterator]();!(er=(ei=eo.next()).done);er=!0){var es=ei.value,eu=iT(es,Y);eu&&(aK(e.shadowRoot)&&(eu.isShadow=!0),q.childNodes.push(eu))}}catch(e){en=!0,ea=e}finally{try{er||null==eo.return||eo.return()}finally{if(en)throw ea}}}}if(e.parentNode&&aX(e.parentNode)&&aK(e.parentNode)&&(q.isShadow=!0),q.type!==aJ.Element||"iframe"!==q.tagName||q.needBlock||function(e,t,r){var n,a=function(e){try{return e.contentWindow}catch(e){}}(e);if(a){var i=!1;try{n=a.document.readyState}catch(e){return}if("complete"!==n){var o=a9(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){ie(o),i=!0,t()});return}var s="about:blank";if(a.location.href!==s||e.src===s||""===e.src)return a9(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}}(e,function(){var t=it(e);if(t&&x){var r=iT(t,{doc:t,mirror:n,blockClass:a,blockSelector:i,unblockSelector:o,maskAllText:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:v,maskInputOptions:g,maskAttributeFn:y,maskTextFn:_,maskInputFn:S,slimDOMOptions:b,dataURLOptions:T,inlineImages:w,recordCanvas:I,preserveWhiteSpace:H,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:A,onStylesheetLoad:M,stylesheetLoadTimeout:L,keepIframeSrcFn:U,ignoreCSSAttributes:j}
2);r&&x(e,r)}},A),q.type===aJ.Element&&"img"===q.tagName&&!e.complete&&q.needBlock){var ec=function(){if(e.isConnected&&!e.complete&&P)try{var t=e.getBoundingClientRect();t.width>0&&t.height>0&&P(e,q,t)}catch(e){}e.removeEventListener("load",ec)};e.isConnected&&e.addEventListener("load",ec)}return q.type===aJ.Element&&"link"===q.tagName&&"string"==typeof q.attributes.rel&&("stylesheet"===q.attributes.rel||"preload"===q.attributes.rel&&"string"==typeof q.attributes.href&&"css"===a8(q.attributes.href))&&function(e,t,r){var n,a=!1;try{n=e.sheet}catch(e){n=null}if(!n){var i=a9(function(){a||(t(),a=!0)},r);e.addEventListener("load",function(){ie(i),a=!0,t()})}}(e,function(){if(M){var t=iT(e,{doc:r,mirror:n,blockClass:a,blockSelector:i,unblockSelector:o,maskAllText:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:v,maskInputOptions:g,maskAttributeFn:y,maskTextFn:_,maskInputFn:S,slimDOMOptions:b,dataURLOptions:T,inlineImages:w,recordCanvas:I,preserveWhiteSpace:H,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:A,onStylesheetLoad:M,stylesheetLoadTimeout:L,keepIframeSrcFn:U,ignoreCSSAttributes:j});t&&M(e,t)}},L),q.type===aJ.Element&&delete q.needBlock,q}function ik(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}var iw="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",iR={map:{},getId:function(){return console.error(iw),-1},getNode:function(){return console.error(iw),null},removeNodeFromMap:function(){console.error(iw)},has:function(){return console.error(iw),!1},reset:function(){console.error(iw)}};function iI(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=null,a=0;return function(){for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];var u=Date.now();a||!1!==r.leading||(a=u);var c=t-(u-a),d=this;c<=0||c>t?(n&&(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];iz("clearTimeout").apply(this,(0,l._)(t))}(n),n=null),a=u,e.apply(d,o)):n||!1===r.trailing||(n=iG(function(){a=!1===r.leading?0:Date.now(),n=null,e.apply(d,o)},c))}}function iC(e,t,r){try{if(!(t in e))return function(){};var n=e[t],a=r(n);return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=a,function(){e[t]=n}}catch(e){return function(){}}}"u">typeof window&&window.Proxy&&window.Reflect&&(iR=new Proxy(iR,{get:function(e,t,r){return"map"===t&&console.error(iw),Reflect.get(e,t,r)}}));var ix=Date.now;function iO(e){var t,r,n,a,i,o,s=e.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:(null==s?void 0:s.documentElement.scrollLeft)||(null==s||null==(r=s.body)||null==(t=r.parentElement)?void 0:t.scrollLeft)||(null==s||null==(n=s.body)?void 0:n.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==s?void 0:s.documentElement.scrollTop)||(null==s||null==(i=s.body)||null==(a=i.parentElement)?void 0:a.scrollTop)||(null==s||null==(o=s.body)?void 0:o.scrollTop)||0}}function iA(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function iP(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function iM(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function iN(e,t,r,n,a){if(!e)return!1;var i=iM(e);if(!i)return!1;var o=iS(t,r);if(!a){var s=n&&i.matches(n);return o(i)&&!s}var u=i_(i,o),c=-1;return!(u<0)&&(n&&(c=i_(i,iS(null,n))),u>-1&&c<0||u<c)}function iL(e,t){return -2===t.getId(e)}function iD(e){return!!e.changedTouches}function iU(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}
2function iB(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function ij(e){return!!(null==e?void 0:e.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(ix=function(){return new Date().getTime()});var iF=function(){function e(){(0,H._)(this,e),this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}return(0,W._)(e,[{key:"getId",value:function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1}},{key:"has",value:function(e){return this.styleIDMap.has(e)}},{key:"add",value:function(e,t){var r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}},{key:"getStyle",value:function(e){return this.idStyleMap.get(e)||null}},{key:"reset",value:function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}},{key:"generateId",value:function(){return this.id++}}]),e}();function iH(e){var t,r,n=null;return(null==(r=e.getRootNode)||null==(t=r.call(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(n=e.getRootNode().host),n}function iW(e){var t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=iH(r);)r=t;return r}(e);return t.contains(r)}(e))}var iq={};function iz(e){var t=iq[e];if(t)return t;var r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{var a=r.createElement("iframe");a.hidden=!0,r.head.appendChild(a);var i=a.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(a)}catch(e){}return iq[e]=n.bind(window)}function iG(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return iz("setTimeout").apply(this,(0,l._)(t))}for(var iY=((ob=iY||{})[ob.DomContentLoaded=0]="DomContentLoaded",ob[ob.Load=1]="Load",ob[ob.FullSnapshot=2]="FullSnapshot",ob[ob.IncrementalSnapshot=3]="IncrementalSnapshot",ob[ob.Meta=4]="Meta",ob[ob.Custom=5]="Custom",ob[ob.Plugin=6]="Plugin",ob),iJ=((oE=iJ||{})[oE.Mutation=0]="Mutation",oE[oE.MouseMove=1]="MouseMove",oE[oE.MouseInteraction=2]="MouseInteraction",oE[oE.Scroll=3]="Scroll",oE[oE.ViewportResize=4]="ViewportResize",oE[oE.Input=5]="Input",oE[oE.TouchMove=6]="TouchMove",oE[oE.MediaInteraction=7]="MediaInteraction",oE[oE.StyleSheetRule=8]="StyleSheetRule",oE[oE.CanvasMutation=9]="CanvasMutation",oE[oE.Font=10]="Font",oE[oE.Log=11]="Log",oE[oE.Drag=12]="Drag",oE[oE.StyleDeclaration=13]="StyleDeclaration",oE[oE.Selection=14]="Selection",oE[oE.AdoptedStyleSheet=15]="AdoptedStyleSheet",oE[oE.CustomElement=16]="CustomElement",oE),iX=((oT=iX||{})[oT.MouseUp=0]="MouseUp",oT[oT.MouseDown=1]="MouseDown",oT[oT.Click=2]="Click",oT[oT.ContextMenu=3]="ContextMenu",oT[oT.DblClick=4]="DblClick",oT[oT.Focus=5]="Focus",oT[oT.Blur=6]="Blur",oT[oT.TouchStart=7]="TouchStart",oT[oT.TouchMove_Departed=8]="TouchMove_Departed",oT[oT.TouchEnd=9]="TouchEnd",oT[oT.TouchCancel=10]="TouchCancel",oT),iK=((ok=iK||{})[ok.Mouse=0]="Mouse",ok[ok.Pen=1]="Pen",ok[ok.Touch=2]="Touch",ok),iV=((ow=iV||{})[ow.Play=0]="Play",ow[ow.Pause=1]="Pause",ow[ow.Seeked=2]="Seeked",ow[ow.VolumeChange=3]="VolumeChange",ow[ow.RateChange=4]="RateChange",ow),i$=function(e){return oF?function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,(0,l._)(r))}catch(e){if(oF&&!0===oF(e))return function(){};throw e}}:e},iQ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",iZ="u"<typeof Uint8Array?[]:new Uint8Array(256),i0=0;i0<iQ.length;i0++)iZ[iQ.charCodeAt(i0)]=i0;var i1=function(){function e(){(0,H._)(this,e)}return(0,W._)(e,[{key:"reset",value:function(){}},{key:"freeze",value:function(){}},{key:"unfreeze",value:function(){}},{key:"lock",value:function(){}},{key:"unlock",value:function(){}},{key:"snapshot",value:function(){}},{key:"addWindow",value:function(){}},{key:"addShadowRoot",value:function(){}},{key:"resetShadowRoots",value:function(){}}]),e}();function i2(e){try{return e.contentDocument}catch(e){}}function i3(e){try{return e.contentWindow}catch(e){}}var i5=function(){function e(t){(0,H._)(this,e),this.doc=t,this.unattachedDoc=null}return(0,W._)(e,[{key:"parse",value:function(e){return this.parseWithConstructableStylesheet(e)||this.parseWithDetachedElement(e)}},{key:"parseWithConstructableStylesheet",value:function(e){if("u"<typeof CSSStyleSheet||"function"!=typeof CSSStyleSheet.prototype.replaceSync)return null;try{var t=new CSSStyleSheet;t.replaceSync("x { ".concat(e," }"));var r=t.cssRules[0];if(!r||r.type!==CSSRule.STYLE_RULE)return null;return r.style}catch(e){return null}}},{key:"parseWithDetachedElement",value:function(e){var t=this.getUnattachedDoc().createElement("span");return t.setAttribute("style",e),t.style}},{key:"getUnattachedDoc",value:function(){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}return this.unattachedDoc}}]),e}(),i4=function(){function e(){(0,H._)(this,e),this.length=0,this.head=null,this.tail=null}return(0,W._)(e,[{key:"get",value:function(e){if(e>=this.length)throw Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t}},{key:"addNode",value:function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){var 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++}},{key:"removeNode",value:function(e){var t=e.__ln;
2this.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--)}}]),e}(),i8=function(e,t){return"".concat(e,"@").concat(t)},i6=function(){function e(){var t=this;(0,H._)(this,e),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=function(e){e.forEach(t.processMutation),t.emit()},this.emit=function(){if(!t.frozen&&!t.locked){for(var e=[],r=new Set,n=new i4,a=function(e){for(var r=e,n=-2;-2===n;)n=(r=r&&r.nextSibling)&&t.mirror.getId(r);return n},i=function(i){if(i.parentNode&&iW(i)){var o=aX(i.parentNode)?t.mirror.getId(iH(i)):t.mirror.getId(i.parentNode),s=a(i);if(-1===o||-1===s)return n.addNode(i);var u=iT(i,{doc:t.doc,mirror:t.mirror,blockClass:t.blockClass,blockSelector:t.blockSelector,maskAllText:t.maskAllText,unblockSelector:t.unblockSelector,maskTextClass:t.maskTextClass,unmaskTextClass:t.unmaskTextClass,maskTextSelector:t.maskTextSelector,unmaskTextSelector:t.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:t.inlineStylesheet,maskInputOptions:t.maskInputOptions,maskAttributeFn:t.maskAttributeFn,maskTextFn:t.maskTextFn,maskInputFn:t.maskInputFn,slimDOMOptions:t.slimDOMOptions,dataURLOptions:t.dataURLOptions,recordCanvas:t.recordCanvas,inlineImages:t.inlineImages,onSerialize:function(e){iU(e,t.mirror)&&!iN(e,t.blockClass,t.blockSelector,t.unblockSelector,!1)&&t.iframeManager.addIframe(e),iB(e,t.mirror)&&t.stylesheetManager.trackLinkElement(e),ij(i)&&t.shadowDomManager.addShadowRoot(i.shadowRoot,t.doc)},onIframeLoad:function(e,r){if(!iN(e,t.blockClass,t.blockSelector,t.unblockSelector,!1)){t.iframeManager.attachIframe(e,r);var n=i3(e);n&&t.canvasManager.addWindow(n),t.shadowDomManager.observeAttachShadow(e)}},onStylesheetLoad:function(e,r){t.stylesheetManager.attachLinkElement(e,r)},onBlockedImageLoad:function(e,r,n){var a=n.width,i=n.height;t.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:{style:{width:"".concat(a,"px"),height:"".concat(i,"px")}}}]})},ignoreCSSAttributes:t.ignoreCSSAttributes});u&&(e.push({parentId:o,nextId:s,node:u}),r.add(u.id))}};t.mapRemoves.length;)t.mirror.removeNodeFromMap(t.mapRemoves.shift());var o=!0,s=!1,u=void 0;try{for(var c,l=t.movedSet[Symbol.iterator]();!(o=(c=l.next()).done);o=!0){var d=c.value;(!i9(t.removes,d,t.mirror)||t.movedSet.has(d.parentNode))&&i(d)}}catch(e){s=!0,u=e}finally{try{o||null==l.return||l.return()}finally{if(s)throw u}}var p=!0,f=!1,h=void 0;try{for(var v,m=t.addedSet[Symbol.iterator]();!(p=(v=m.next()).done);p=!0){var g=v.value;oe(t.droppedSet,g)||i9(t.removes,g,t.mirror)?oe(t.movedSet,g)?i(g):t.droppedSet.add(g):i(g)}}catch(e){f=!0,h=e}finally{try{p||null==m.return||m.return()}finally{if(f)throw h}}for(var y=null;n.length;){var _=null;if(y){var S=t.mirror.getId(y.value.parentNode),b=a(y.value);-1!==S&&-1!==b&&(_=y)}if(!_)for(var E=n.tail;E;){var T=E;if(E=E.previous,T){var k=t.mirror.getId(T.value.parentNode);if(-1===a(T.value))continue;if(-1!==k){_=T;break}var w=T.value;if(w.parentNode&&w.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var R=w.parentNode.host;if(-1!==t.mirror.getId(R)){_=T;break}}}}if(!_){for(;n.head;)n.removeNode(n.head.value);break}y=_.previous,n.removeNode(_.value),i(_.value)}var I={texts:t.texts.map(function(e){return{id:t.mirror.getId(e.node),value:e.value}}).filter(function(e){return!r.has(e.id)}).filter(function(e){return t.mirror.has(e.id)}),attributes:t.attributes.map(function(e){var r=e.attributes;if("string"==typeof r.style){var n=JSON.stringify(e.styleDiff),a=JSON.stringify(e._unchangedStyles);n.length<r.style.length&&(n+a).split("var(").length===r.style.split("var(").length&&(r.style=e.styleDiff)}return{id:t.mirror.getId(e.node),attributes:r}}).filter(function(e){return!r.has(e.id)}).filter(function(e){return t.mirror.has(e.id)}),removes:t.removes,adds:e};(I.texts.length||I.attributes.length||I.removes.length||I.adds.length)&&(t.texts=[],t.attributes=[],t.attributeMap=new WeakMap,t.removes=[],t.addedSet=new Set,t.movedSet=new Set,t.droppedSet=new Set,t.movedMap={},t.mutationCb(I))}},this.processMutation=function(e){if(!iL(e.target,t.mirror))switch(e.type){case"characterData":var r=e.target.textContent;iN(e.target,t.blockClass,t.blockSelector,t.unblockSelector,!1)||r===e.oldValue||t.texts.push({value:ib(e.target,t.maskTextClass,t.maskTextSelector,t.unmaskTextClass,t.unmaskTextSelector,t.maskAllText)&&r?t.maskTextFn?t.maskTextFn(r,iM(e.target)):r.replace(/[\S]/g,"*"):r,node:e.target});break;case"attributes":var n=e.target,a=e.attributeName,i=e.target.getAttribute(a);if("value"===a){var o=a5(n),s=n.tagName;i=a4(n,s,o);var u=aZ({maskInputOptions:t.maskInputOptions,tagName:s,type:o});i=a0({isMasked:ib(e.target,t.maskTextClass,t.maskTextSelector,t.unmaskTextClass,t.unmaskTextSelector,u),element:n,value:i,maskInputFn:t.maskInputFn})}if(iN(e.target,t.blockClass,t.blockSelector,t.unblockSelector,!1)||i===e.oldValue)return;var c=t.attributeMap.get(e.target);
2if("IFRAME"===n.tagName&&"src"===a&&!t.keepIframeSrcFn(i)){if(i2(n))return;a="rr_src"}if(c||(c={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},t.attributes.push(c),t.attributeMap.set(e.target,c)),"type"===a&&"INPUT"===n.tagName&&"password"===(e.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!iy(n.tagName,a)&&(c.attributes[a]=ig(t.doc,a1(n.tagName),a1(a),i,n,t.maskAttributeFn),"style"===a)){var l=e.oldValue?t.styleDeclarationParser.parse(e.oldValue):null,d=!0,p=!1,f=void 0;try{for(var h,v=Array.from(n.style)[Symbol.iterator]();!(d=(h=v.next()).done);d=!0){var m=h.value,g=n.style.getPropertyValue(m),y=n.style.getPropertyPriority(m);g!==((null==l?void 0:l.getPropertyValue(m))||"")||y!==((null==l?void 0:l.getPropertyPriority(m))||"")?""===y?c.styleDiff[m]=g:c.styleDiff[m]=[g,y]:c._unchangedStyles[m]=[g,y]}}catch(e){p=!0,f=e}finally{try{d||null==v.return||v.return()}finally{if(p)throw f}}if(l){var _=!0,S=!1,b=void 0;try{for(var E,T=Array.from(l)[Symbol.iterator]();!(_=(E=T.next()).done);_=!0){var k=E.value;""===n.style.getPropertyValue(k)&&(c.styleDiff[k]=!1)}}catch(e){S=!0,b=e}finally{try{_||null==T.return||T.return()}finally{if(S)throw b}}}}break;case"childList":if(iN(e.target,t.blockClass,t.blockSelector,t.unblockSelector,!0))return;e.addedNodes.forEach(function(r){return t.genAdds(r,e.target)}),e.removedNodes.forEach(function(r){var n=t.mirror.getId(r),a=aX(e.target)?t.mirror.getId(e.target.host):t.mirror.getId(e.target);iN(e.target,t.blockClass,t.blockSelector,t.unblockSelector,!1)||iL(r,t.mirror)||-1===t.mirror.getId(r)||(t.addedSet.has(r)?(i7(t.addedSet,r),t.droppedSet.add(r)):t.addedSet.has(e.target)&&-1===n||function e(t,r){if(aX(t))return!1;var n=r.getId(t);return!r.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,r))}(e.target,t.mirror)||(t.movedSet.has(r)&&t.movedMap[i8(n,a)]?i7(t.movedSet,r):t.removes.push({parentId:a,id:n,isShadow:!!(aX(e.target)&&aK(e.target))||void 0})),t.mapRemoves.push(r))})}},this.genAdds=function(e,r){if(!t.processedNodeManager.inOtherBuffer(e,t)&&!(t.addedSet.has(e)||t.movedSet.has(e))){if(t.mirror.hasNode(e)){if(iL(e,t.mirror))return;t.movedSet.add(e);var n=null;r&&t.mirror.hasNode(r)&&(n=t.mirror.getId(r)),n&&-1!==n&&(t.movedMap[i8(t.mirror.getId(e),n)]=!0)}else t.addedSet.add(e),t.droppedSet.delete(e);!iN(e,t.blockClass,t.blockSelector,t.unblockSelector,!1)&&(e.childNodes&&e.childNodes.forEach(function(e){return t.genAdds(e)}),ij(e)&&e.shadowRoot.childNodes.forEach(function(r){t.processedNodeManager.add(r,t),t.genAdds(r,e)}))}}}return(0,W._)(e,[{key:"init",value:function(e){var t=this;["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(function(r){t[r]=e[r]}),this.styleDeclarationParser=new i5(this.doc)}},{key:"freeze",value:function(){this.frozen=!0,this.canvasManager.freeze()}},{key:"unfreeze",value:function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}},{key:"isFrozen",value:function(){return this.frozen}},{key:"lock",value:function(){this.locked=!0,this.canvasManager.lock()}},{key:"unlock",value:function(){this.locked=!1,this.canvasManager.unlock(),this.emit()}},{key:"reset",value:function(){this.shadowDomManager.reset(),this.canvasManager.reset()}}]),e}();function i7(e,t){var r;e.delete(t),null==(r=t.childNodes)||r.forEach(function(t){return i7(e,t)})}function i9(e,t,r){return 0!==e.length&&function(e,t,r){for(var n=t.parentNode;n;){var a=function(){var t=r.getId(n);if(e.some(function(e){return e.id===t}))return{v:!0};n=n.parentNode}();if("object"===(0,ep._)(a))return a.v}return!1}(e,t,r)}function oe(e,t){return 0!==e.size&&function e(t,r){var n=r.parentNode;return!!n&&(!!t.has(n)||e(t,n))}(e,t)}var ot=[];function or(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function on(e,t){var r,n,a,i=new i6;ot.push(i),i.init(e);var o=window.MutationObserver||window.__rrMutationObserver,s=null==(a=window)||null==(n=a.Zone)||null==(r=n.__symbol__)?void 0:r.call(n,"MutationObserver");s&&window[s]&&(o=window[s]);var u=new o(i$(function(t){e.onMutation&&!1===e.onMutation(t)||i.processMutations.bind(i)(t)}));return u.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),u}function oa(e){var t=e.scrollCb,r=e.doc,n=e.mirror,a=e.blockClass,i=e.blockSelector,o=e.unblockSelector,s=e.sampling;return ik("scroll",i$(iI(i$(function(e){var s=or(e);if(!(!s||iN(s,a,i,o,!0))){var u=n.getId(s);if(s===r&&r.defaultView){var c=iO(r.defaultView);t({id:u,x:c.left,y:c.top})}else t({id:u,x:s.scrollLeft,y:s.scrollTop})}}),s.scroll||100)),r)}var oi=["INPUT","TEXTAREA","SELECT"],oo=new WeakMap;function os(e){var t=[];if(od("CSSGroupingRule")&&(0,eG._)(e.parentRule,CSSGroupingRule)||od("CSSMediaRule")&&(0,eG._)(e.parentRule,CSSMediaRule)||od("CSSSupportsRule")&&(0,eG._)(e.parentRule,CSSSupportsRule)||od("CSSConditionRule")&&(0,eG._)(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){var n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}function ou(e,t,r){var n,a;return e?(e.ownerNode?n=t.getId(e.ownerNode):a=r.getId(e),{styleId:a,id:n}):{}}function oc(e,t){var r,n,a,i=e.mirror,o=e.stylesheetManager,s=null;s="#document"===t.nodeName?i.getId(t):i.getId(t.host);var u="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(a=t.ownerDocument)||null==(n=a.defaultView)?void 0:n.ShadowRoot,c=(null==u?void 0:u.prototype)?Object.getOwnPropertyDescriptor(null==u?void 0:u.prototype,"adoptedStyleSheets"):void 0;return null!==s&&-1!==s&&u&&c?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:function(){var e;return null==(e=c.get)?void 0:e.call(this)},set:function(e){var t,r=null==(t=c.set)?void 0:t.call(this,e);if(null!==s&&-1!==s)try{o.adoptStyleSheets(e,s)}catch(e){}return r}}),i$(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})})):function(){}}function ol(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];var t=e.doc.defaultView;if(!t)return function(){};e.recordDOM&&(ee=on(e,e.doc));var r=function(e){var t,r=e.mousemoveCb,n=e.sampling,a=e.doc,i=e.mirror;if(!1===n.mousemove)return function(){};var o="number"==typeof n.mousemove?n.mousemove:50,s="number"==typeof n.mousemoveCallback?n.mousemoveCallback:500,u=[],c=iI(i$(function(e){var n=Date.now()-t;r(u.map(function(e){return e.timeOffset-=n,e}),e),u=[],t=null}),s),l=i$(iI(i$(function(e){var r=or(e),n=iD(e)?e.changedTouches[0]:e,a=n.clientX,o=n.clientY;t||(t=ix()),u.push({x:a,y:o,id:i.getId(r),timeOffset:ix()-t}),c("u">typeof DragEvent&&(0,eG._)(e,DragEvent)?iJ.Drag:(0,eG._)(e,MouseEvent)?iJ.MouseMove:iJ.TouchMove)}),o,{trailing:!1})),d=[ik("mousemove",l,a),ik("touchmove",l,a),ik("drag",l,a)];return i$(function(){d.forEach(function(e){return e()})})}(e),n=function(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,a=e.blockClass,i=e.blockSelector,o=e.unblockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var u=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,l=[],d=null;return Object.keys(iX).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==u[e]}
2).forEach(function(e){var s=a1(e),u=function(r){var s=or(r);if(!iN(s,a,i,o,!0)){var u=null,l=e;if("pointerType"in r){switch(r.pointerType){case"mouse":u=iK.Mouse;break;case"touch":u=iK.Touch;break;case"pen":u=iK.Pen}u===iK.Touch?iX[e]===iX.MouseDown?l="TouchStart":iX[e]===iX.MouseUp&&(l="TouchEnd"):iK.Pen}else iD(r)&&(u=iK.Touch);null!==u?(d=u,(l.startsWith("Touch")&&u===iK.Touch||l.startsWith("Mouse")&&u===iK.Mouse)&&(u=null)):iX[e]===iX.Click&&(u=d,d=null);var p=iD(r)?r.changedTouches[0]:r;if(p){var f=n.getId(s),h=p.clientX,v=p.clientY;i$(t)((0,c._)({type:iX[l],id:f,x:h,y:v},null!==u&&{pointerType:u}))}}};if(window.PointerEvent)switch(iX[e]){case iX.MouseDown:case iX.MouseUp:s=s.replace("mouse","pointer");break;case iX.TouchStart:case iX.TouchEnd:return}l.push(ik(s,u,r))}),i$(function(){l.forEach(function(e){return e()})})}(e),a=oa(e),i=(b={win:t},E=e.viewportResizeCb,T=b.win,k=-1,w=-1,ik("resize",i$(iI(i$(function(){var e=iA(),t=iP();(k!==e||w!==t)&&(E({width:Number(t),height:Number(e)}),k=e,w=t)}),200)),T)),o=function(e){var t=e.inputCb,r=e.doc,n=e.mirror,a=e.blockClass,i=e.blockSelector,o=e.unblockSelector,s=e.ignoreClass,u=e.ignoreSelector,d=e.maskInputOptions,p=e.maskInputFn,f=e.sampling,h=e.userTriggeredOnInput,v=e.maskTextClass,m=e.unmaskTextClass,y=e.maskTextSelector,_=e.unmaskTextSelector;function S(e){var t=or(e),n=e.isTrusted,c=t&&a2(t.tagName);if("OPTION"===c&&(t=t.parentElement),!(!t||!c||0>oi.indexOf(c)||iN(t,a,i,o,!0))){var l=t;if(!(l.classList.contains(s)||u&&l.matches(u))){var f=a5(t),g=a4(l,c,f),S=!1,E=aZ({maskInputOptions:d,tagName:c,type:f}),T=ib(t,v,y,m,_,E);("radio"===f||"checkbox"===f)&&(S=t.checked),g=a0({isMasked:T,element:t,value:g,maskInputFn:p}),b(t,h?{text:g,isChecked:S,userTriggered:n}:{text:g,isChecked:S});var k=t.name;"radio"===f&&k&&S&&r.querySelectorAll('input[type="radio"][name="'.concat(k,'"]')).forEach(function(e){if(e!==t){var r=a0({isMasked:T,element:e,value:a4(e,c,f),maskInputFn:p});b(e,h?{text:r,isChecked:!S,userTriggered:!1}:{text:r,isChecked:!S})}})}}}function b(e,r){var a=oo.get(e);if(!a||a.text!==r.text||a.isChecked!==r.isChecked){oo.set(e,r);var i=n.getId(e);i$(t)((0,g._)((0,c._)({},r),{id:i}))}}var E=("last"===f.input?["change"]:["input","change"]).map(function(e){return ik(e,i$(S),r)}),T=r.defaultView;if(!T)return function(){E.forEach(function(e){return e()})};var k=T.Object.getOwnPropertyDescriptor(T.HTMLInputElement.prototype,"value"),w=[[T.HTMLInputElement.prototype,"value"],[T.HTMLInputElement.prototype,"checked"],[T.HTMLSelectElement.prototype,"value"],[T.HTMLTextAreaElement.prototype,"value"],[T.HTMLSelectElement.prototype,"selectedIndex"],[T.HTMLOptionElement.prototype,"selected"]];return k&&k.set&&E.push.apply(E,(0,l._)(w.map(function(e){return function e(t,r,n,a){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window,o=i.Object.getOwnPropertyDescriptor(t,r);return i.Object.defineProperty(t,r,a?n:{set:function(e){var t=this;iG(function(){n.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return e(t,r,o||{},!0)}}(e[0],e[1],{set:function(){i$(S)({target:this,isTrusted:!1})}},!1,T)}))),i$(function(){E.forEach(function(e){return e()})})}(e),s=(R=e.mediaInteractionCb,I=e.blockClass,C=e.blockSelector,x=e.unblockSelector,O=e.mirror,A=e.sampling,P=e.doc,N=[ik("play",(M=i$(function(e){return iI(i$(function(t){var r=or(t);if(!(!r||iN(r,I,C,x,!0))){var n=r.currentTime,a=r.volume,i=r.muted,o=r.playbackRate;R({type:e,id:O.getId(r),currentTime:n,volume:a,muted:i,playbackRate:o})}}),A.media||500)}))(iV.Play),P),ik("pause",M(iV.Pause),P),ik("seeked",M(iV.Seeked),P),ik("volumechange",M(iV.VolumeChange),P),ik("ratechange",M(iV.RateChange),P)],i$(function(){N.forEach(function(e){return e()})})),u=function(){},d=function(){},p=function(){},f=function(){};e.recordDOM&&(u=function(e,t){var r,n,a=e.styleSheetRuleCb,i=e.mirror,o=e.stylesheetManager,s=t.win;if(!s.CSSStyleSheet||!s.CSSStyleSheet.prototype)return function(){};var u=s.CSSStyleSheet.prototype.insertRule;s.CSSStyleSheet.prototype.insertRule=new Proxy(u,{apply:i$(function(e,t,r){var n=(0,X._)(r,2),s=n[0],u=n[1],c=ou(t,i,o.styleMirror),l=c.id,d=c.styleId;return(l&&-1!==l||d&&-1!==d)&&a({id:l,styleId:d,adds:[{rule:s,index:u}]}),e.apply(t,r)}
2)});var c=s.CSSStyleSheet.prototype.deleteRule;s.CSSStyleSheet.prototype.deleteRule=new Proxy(c,{apply:i$(function(e,t,r){var n=(0,X._)(r,1)[0],s=ou(t,i,o.styleMirror),u=s.id,c=s.styleId;return(u&&-1!==u||c&&-1!==c)&&a({id:u,styleId:c,removes:[{index:n}]}),e.apply(t,r)})}),s.CSSStyleSheet.prototype.replace&&(r=s.CSSStyleSheet.prototype.replace,s.CSSStyleSheet.prototype.replace=new Proxy(r,{apply:i$(function(e,t,r){var n=(0,X._)(r,1)[0],s=ou(t,i,o.styleMirror),u=s.id,c=s.styleId;return(u&&-1!==u||c&&-1!==c)&&a({id:u,styleId:c,replace:n}),e.apply(t,r)})})),s.CSSStyleSheet.prototype.replaceSync&&(n=s.CSSStyleSheet.prototype.replaceSync,s.CSSStyleSheet.prototype.replaceSync=new Proxy(n,{apply:i$(function(e,t,r){var n=(0,X._)(r,1)[0],s=ou(t,i,o.styleMirror),u=s.id,c=s.styleId;return(u&&-1!==u||c&&-1!==c)&&a({id:u,styleId:c,replaceSync:n}),e.apply(t,r)})}));var d={};op("CSSGroupingRule")?d.CSSGroupingRule=s.CSSGroupingRule:(op("CSSMediaRule")&&(d.CSSMediaRule=s.CSSMediaRule),op("CSSConditionRule")&&(d.CSSConditionRule=s.CSSConditionRule),op("CSSSupportsRule")&&(d.CSSSupportsRule=s.CSSSupportsRule));var p={};return Object.entries(d).forEach(function(e){var t=(0,X._)(e,2),r=t[0],n=t[1];p[r]={insertRule:n.prototype.insertRule,deleteRule:n.prototype.deleteRule},n.prototype.insertRule=new Proxy(p[r].insertRule,{apply:i$(function(e,t,r){var n=(0,X._)(r,2),s=n[0],u=n[1],c=ou(t.parentStyleSheet,i,o.styleMirror),d=c.id,p=c.styleId;return(d&&-1!==d||p&&-1!==p)&&a({id:d,styleId:p,adds:[{rule:s,index:(0,l._)(os(t)).concat([u||0])}]}),e.apply(t,r)})}),n.prototype.deleteRule=new Proxy(p[r].deleteRule,{apply:i$(function(e,t,r){var n=(0,X._)(r,1)[0],s=ou(t.parentStyleSheet,i,o.styleMirror),u=s.id,c=s.styleId;return(u&&-1!==u||c&&-1!==c)&&a({id:u,styleId:c,removes:[{index:(0,l._)(os(t)).concat([n])}]}),e.apply(t,r)})})}),i$(function(){s.CSSStyleSheet.prototype.insertRule=u,s.CSSStyleSheet.prototype.deleteRule=c,r&&(s.CSSStyleSheet.prototype.replace=r),n&&(s.CSSStyleSheet.prototype.replaceSync=n),Object.entries(d).forEach(function(e){var t=(0,X._)(e,2),r=t[0],n=t[1];n.prototype.insertRule=p[r].insertRule,n.prototype.deleteRule=p[r].deleteRule})})}(e,{win:t}),d=oc(e,e.doc),L=e.styleDeclarationCb,D=e.mirror,U=e.ignoreCSSAttributes,B=e.stylesheetManager,F=(j=({win:t}).win).CSSStyleDeclaration.prototype.setProperty,j.CSSStyleDeclaration.prototype.setProperty=new Proxy(F,{apply:i$(function(e,t,r){var n,a=(0,X._)(r,3),i=a[0],o=a[1],s=a[2];if(U.has(i))return F.apply(t,[i,o,s]);var u=ou(null==(n=t.parentRule)?void 0:n.parentStyleSheet,D,B.styleMirror),c=u.id,l=u.styleId;return(c&&-1!==c||l&&-1!==l)&&L({id:c,styleId:l,set:{property:i,value:o,priority:s},index:os(t.parentRule)}),e.apply(t,r)})}),H=j.CSSStyleDeclaration.prototype.removeProperty,j.CSSStyleDeclaration.prototype.removeProperty=new Proxy(H,{apply:i$(function(e,t,r){var n,a=(0,X._)(r,1)[0];if(U.has(a))return H.apply(t,[a]);var i=ou(null==(n=t.parentRule)?void 0:n.parentStyleSheet,D,B.styleMirror),o=i.id,s=i.styleId;return(o&&-1!==o||s&&-1!==s)&&L({id:o,styleId:s,remove:{property:a},index:os(t.parentRule)}),e.apply(t,r)})}),p=i$(function(){j.CSSStyleDeclaration.prototype.setProperty=F,j.CSSStyleDeclaration.prototype.removeProperty=H}),e.collectFonts&&(f=function(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var a=[],i=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,r){var n=new o(e,t,r);return i.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var s=iC(r.fonts,"add",function(e){return function(r){return iG(i$(function(){var e=i.get(r);e&&(t(e),i.delete(r))}),0),e.apply(this,[r])}});return a.push(function(){n.FontFace=o}),a.push(s),i$(function(){a.forEach(function(e){return e()})})}(e)));var h=(W=e.doc,q=e.mirror,z=e.blockClass,G=e.blockSelector,Y=e.unblockSelector,J=e.selectionCb,K=!0,(V=i$(function(){var e=W.getSelection();if(e&&(!K||null==e||!e.isCollapsed)){K=e.isCollapsed||!1;for(var t=[],r=e.rangeCount||0,n=0;n<r;n++){var a=e.getRangeAt(n),i=a.startContainer,o=a.startOffset,s=a.endContainer,u=a.endOffset;iN(i,z,G,Y,!0)||iN(s,z,G,Y,!0)||t.push({start:q.getId(i),startOffset:o,end:q.getId(s),endOffset:u})}J({ranges:t})}}))(),ik("selectionchange",V)),v=($=e.doc,Q=e.customElementCb,(Z=$.defaultView)&&Z.customElements?iC(Z.customElements,"define",function(e){return function(t,r,n){try{Q({define:{name:t}})}catch(e){}return e.apply(this,[t,r,n])}}):function(){}),m=[],y=!0,_=!1,S=void 0;try{for(var b,E,T,k,w,R,I,C,x,O,A,P,M,N,L,D,U,B,j,F,H,W,q,z,G,Y,J,K,V,$,Q,Z,ee,et,er=e.plugins[Symbol.iterator]();!(y=(et=er.next()).done);y=!0){var en=et.value;m.push(en.observer(en.callback,t,en.options))}}catch(e){_=!0,S=e}finally{try{y||null==er.return||er.return()}finally{if(_)throw S}}return i$(function(){ot.forEach(function(e){return e.reset()}),null==ee||ee.disconnect(),r(),n(),a(),i(),o(),s(),u(),d(),p(),f(),h(),v(),m.forEach(function(e){return e()})})}function od(e){return void 0!==window[e]}function op(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var of=function(){function e(t){(0,H._)(this,e),this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}return(0,W._)(e,[{key:"getId",value:function(e,t,r,n){var a=r||this.getIdToRemoteIdMap(e),i=n||this.getRemoteIdToIdMap(e),o=a.get(t);return o||(o=this.generateIdFn(),a.set(t,o),i.set(o,t)),o}},{key:"getIds",value:function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),a=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getId(e,t,n,a)})}},{key:"getRemoteId",value:function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;var a=n.get(t);return a||-1}},{key:"getRemoteIds",value:function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);
2return t.map(function(t){return r.getRemoteId(e,t,n)})}},{key:"reset",value:function(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}},{key:"getIdToRemoteIdMap",value:function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}},{key:"getRemoteIdToIdMap",value:function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}]),e}(),oh=function(){function e(){(0,H._)(this,e),this.crossOriginIframeMirror=new of(ii),this.crossOriginIframeRootIdMap=new WeakMap}return(0,W._)(e,[{key:"addIframe",value:function(){}},{key:"addLoadListener",value:function(){}},{key:"attachIframe",value:function(){}}]),e}(),ov=function(){function e(t){(0,H._)(this,e),this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new of(ii),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new of(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}return(0,W._)(e,[{key:"addIframe",value:function(e){this.iframes.set(e,!0);var t=i3(e);t&&this.crossOriginIframeMap.set(t,e)}},{key:"addLoadListener",value:function(e){this.loadListener=e}},{key:"attachIframe",value:function(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(n=i3(e))||n.addEventListener("message",this.handleMessage.bind(this))),null==(r=this.loadListener)||r.call(this,e);var r,n,a=i2(e);a&&a.adoptedStyleSheets&&a.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(a.adoptedStyleSheets,this.mirror.getId(a))}},{key:"handleMessage",value:function(e){if("rrweb"===e.data.type&&e.origin===e.data.origin&&e.source){var t=this.crossOriginIframeMap.get(e.source);if(t){var r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}}}},{key:"transformCrossOriginEvent",value:function(e,t){var r,n=this;switch(t.type){case iY.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var a=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,a),this.patchRootIdOnNode(t.data.node,a),{timestamp:t.timestamp,type:iY.IncrementalSnapshot,data:{source:iJ.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case iY.Meta:case iY.Load:case iY.DomContentLoaded:break;case iY.Plugin:return t;case iY.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case iY.IncrementalSnapshot:switch(t.data.source){case iJ.Mutation:return t.data.adds.forEach(function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(function(t){n.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(function(t){n.replaceIds(t,e,["id"])}),t.data.texts.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case iJ.Drag:case iJ.TouchMove:case iJ.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case iJ.ViewportResize:return!1;case iJ.MediaInteraction:case iJ.MouseInteraction:case iJ.Scroll:case iJ.CanvasMutation:case iJ.Input:return this.replaceIds(t.data,e,["id"]),t;case iJ.StyleSheetRule:case iJ.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case iJ.Font:return t;case iJ.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case iJ.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(function(t){n.replaceStyleIds(t,e,["styleId"])}),t}}return!1}},{key:"replace",value:function(e,t,r,n){var a=!0,i=!1,o=void 0;try{for(var s,u=n[Symbol.iterator]();!(a=(s=u.next()).done);a=!0){var c=s.value;(Array.isArray(t[c])||"number"==typeof t[c])&&(Array.isArray(t[c])?t[c]=e.getIds(r,t[c]):t[c]=e.getId(r,t[c]))}}catch(e){i=!0,o=e}finally{try{a||null==u.return||u.return()}finally{if(i)throw o}}return t}},{key:"replaceIds",value:function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}},{key:"replaceStyleIds",value:function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}},{key:"replaceIdOnNode",value:function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEac
2h(function(e){r.replaceIdOnNode(e,t)})}},{key:"patchRootIdOnNode",value:function(e,t){var r=this;e.type===aJ.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})}}]),e}(),om=function(){function e(){(0,H._)(this,e)}return(0,W._)(e,[{key:"init",value:function(){}},{key:"addShadowRoot",value:function(){}},{key:"observeAttachShadow",value:function(){}},{key:"reset",value:function(){}}]),e}(),og=function(){function e(t){(0,H._)(this,e),this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}return(0,W._)(e,[{key:"init",value:function(){this.reset(),this.patchAttachShadow(Element,document)}},{key:"addShadowRoot",value:function(e,t){var r=this;if(aK(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);var n=on((0,g._)((0,c._)({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(oa((0,g._)((0,c._)({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),iG(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(e.host)),r.restoreHandlers.push(oc({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0)}}},{key:"observeAttachShadow",value:function(e){var t=i2(e),r=i3(e);t&&r&&this.patchAttachShadow(r.Element,t)}},{key:"patchAttachShadow",value:function(e,t){var r=this;this.restoreHandlers.push(iC(e.prototype,"attachShadow",function(e){return function(n){var a=e.call(this,n);return this.shadowRoot&&iW(this)&&r.addShadowRoot(this.shadowRoot,t),a}}))}},{key:"reset",value:function(){this.restoreHandlers.forEach(function(e){try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}]),e}(),oy=function(){function e(t){(0,H._)(this,e),this.trackedLinkElements=new WeakSet,this.styleMirror=new iF,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}return(0,W._)(e,[{key:"attachLinkElement",value:function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}},{key:"trackLinkElement",value:function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}},{key:"adoptStyleSheets",value:function(e,t){if(0!==e.length){var r={id:t,styleIds:[]},n=[],a=!0,i=!1,o=void 0;try{for(var s,u=e[Symbol.iterator]();!(a=(s=u.next()).done);a=!0){var c=s.value,l=void 0;this.styleMirror.has(c)?l=this.styleMirror.getId(c):(l=this.styleMirror.add(c),n.push({styleId:l,rules:Array.from(c.rules||CSSRule,function(e,t){return{rule:a$(e),index:t}})})),r.styleIds.push(l)}}catch(e){i=!0,o=e}finally{try{a||null==u.return||u.return()}finally{if(i)throw o}}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}}},{key:"reset",value:function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}},{key:"trackStylesheetInLinkElement",value:function(e){}}]),e}(),o_=function(){function e(){(0,H._)(this,e),this.nodeMap=new WeakMap,this.active=!1}return(0,W._)(e,[{key:"inOtherBuffer",value:function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some(function(e){return e!==t})}},{key:"add",value:function(e,t){var r=this;this.active||(this.active=!0,function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];iz("requestAnimationFrame").apply(this,(0,l._)(t))}(function(){r.nodeMap=new WeakMap,r.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}},{key:"destroy",value:function(){}}]),e}();try{if(2!==Array.from([1],function(e){return 2*e})[0]){var oS,ob,oE,oT,ok,ow,oR,oI,oC,ox,oO,oA,oP,oM,oN,oL,oD,oU,oB,oj,oF,oH,oW,oq,oz=document.createElement("iframe");document.body.appendChild(oz),Array.from=(null==(oq=oz.contentWindow)?void 0:oq.Array.from)||Array.from,document.body.removeChild(oz)}}catch(e){console.debug("Unable to override Array.from",e)}var oG=new aQ;function oY(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,a=e.blockClass,i=void 0===a?"rr-block":a,o=e.blockSelector,s=void 0===o?null:o,u=e.unblockSelector,l=void 0===u?null:u,d=e.ignoreClass,p=void 0===d?"rr-ignore":d,f=e.ignoreSelector,h=void 0===f?null:f,v=e.maskAllText,m=void 0!==v&&v,g=e.maskTextClass,y=void 0===g?"rr-mask":g,_=e.unmaskTextClass,S=void 0===_?null:_,b=e.maskTextSelector,E=void 0===b?null:b,T=e.unmaskTextSelector,k=void 0===T?null:T,w=e.inlineStylesheet,R=void 0===w||w,I=e.maskAllInputs,C=e.maskInputOptions,x=e.slimDOMOptions,O=e.maskAttributeFn,A=e.maskInputFn,P=e.maskTextFn,M=e.maxCanvasSize,N=e.packFn,L=e.sampling,D=void 0===L?{}:L,U=e.dataURLOptions,B=void 0===U?{}:U,j=e.mousemoveWait,F=e.recordDOM,H=void 0===F||F,W=e.recordCanvas,q=void 0!==W&&W,z=e.recordCrossOriginIframes,G=void 0!==z&&z,Y=e.recordAfter,J=void 0===Y?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":Y,X=e.userTriggeredOnInput,K=void 0!==X&&X,V=e.collectFonts,$=void 0!==V&&V,Q=e.inlineImages,Z=void 0!==Q&&Q,ee=e.plugins,et=e.keepIframeSrcFn,er=void 0===et?function(){return!1}:et,en=e.ignoreCSSAttributes,ea=void 0===en?new Set([]):en,ei=e.errorHandler,eo=e.onMutation,es=e.getCanvasManager;oF=ei;var eu=!G||window.parent===window,ec=!1;if(!eu)try{window.parent.document&&(ec=!1)}catch(e){ec=!0}if(eu&&!t)throw Error("emit function is required");if(!eu&&!ec)return function(){};void 0!==j&&void 0===D.mousemove&&(D.mousemove=j),oG.reset();var el=!0===I?{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!==C?C:{},ed=!0===x||"all"===x?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===x,headMetaDescKeywords:"all"===x}:x||{};!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;if("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){var t=this;Node.prototype.contains=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];var a=r[0];if(!(0 in r))throw TypeError("1 argument is required");do if(t===a)return!0;while(a=a&&a.parentNode)return!1}}}();var ep=0,ef=function(e){var t=!0,r=!1,n=void 0;try{for(var a,i=(ee||[])[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){var o=a.value;o.eventProcessor&&(e=o.eventProcessor(e))}}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}return N&&!ec&&(e=N(e)),e};oH=function(e,a){var i;if(e.timestamp=ix(),(null==(i=ot[0])?void 0:i.isFrozen())&&e.type!==iY.FullSnapshot&&(e.type!==iY.IncrementalSnapshot||e.data.source!==iJ.Mutation)&&ot.forEach(function(e){return e.unfreeze()}),eu)null==t||t(ef(e),a);else if(ec){var o={type:"rrweb",event:ef(e),origin:window.location.origin,isCheckout:a};window.parent.postMessage(o,"*")}if(e.type===iY.FullSnapshot)eE=e,ep=0;else if(e.type===iY.IncrementalSnapshot){if(e.data.source===iJ.Mutation&&e.data.isAttachIframe)return;ep++;var s=n&&ep>=n,u=r&&eE&&e.timestamp-eE.timestamp>r;(s||u)&&ex(!0)}};var eh=function(e){oH({type:iY.IncrementalSnapshot,data:(0,c._)({source:iJ.Mutation},e)})},ev=function(e){return oH({type:iY.IncrementalSnapshot,data:(0,c._)({source:iJ.Scroll},e)})},em=function(e){return oH({type:iY.IncrementalSnapshot,data:(0,c._)({source:iJ.CanvasMutation},e)})},eg=new oy({mutationCb:eh,adoptedStyleSheetCb:function(e){return oH({type:iY.IncrementalSnapshot,data:(0,c._)({source:iJ.AdoptedStyleSheet},e)})}}),ey="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new oh:new ov({mirror:oG,mutationCb:eh,stylesheetManager:eg,recordCrossOriginIframes:G,wrappedEmit:oH}),e_=!0,eS=!1,eb=void 0;try{for(var eE,eT,ek=(ee||[])[Symbol.iterator]();!(e_=(eT=ek.next()).done);e_=!0){var ew=eT.value;ew.getMirror&&ew.getMirror({nodeMirror:oG,crossOriginIframeMirror:ey.crossOriginIframeMirror,crossOriginIframeStyleMirror:ey.crossOriginIframeStyleMirror})}}catch(e){eS=!0,eb=e}finally{try{e_||null==ek.return||ek.return()}finally{if(eS)throw eb}}var eR=new o_,eI=function(e,t){try{return e?e(t):new i1}catch(e){return console.warn("Unable to initialize CanvasManager"),new i1}}(es,{mirror:oG,win:window,mutationCb:function(e){return oH({type:iY.IncrementalSnapshot,data:(0,c._)({source:iJ.CanvasMutation},e)})},recordCanvas:q,blockClass:i,blockSelector:s,unblockSelector:l,maxCanvasSize:void 0===M?null:M,sampling:D.canvas,dataURLOptions:B,errorHandler:ei}),eC="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new om:new og({mutationCb:eh,scrollCb:ev,bypassOptions:{onMutation:eo,blockClass:i,blockSelector:s,unblockSelector:l,maskAllText:m,maskTextClass:y,unmaskTextClass:S,maskTextSelector:E,unmaskTextSelector:k,inlineStylesheet:R,maskInputOptions:el,dataURLOptions:B,maskAttributeFn:O,maskTextFn:P,maskInputFn:A,recordCanvas:q,inlineImages:Z,sampling:D,slimDOMOptions:ed,iframeManager:ey,stylesheetManager:eg,canvasManager:eI,keepIframeSrcFn:er,processedNodeManager:eR,ignoreCSSAttributes:ea},mirror:oG}),ex=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(H){oH({type:iY.Meta,data:{href:window.location.href,width:iP(),height:iA()}},e),eg.reset(),eC.init(),ot.forEach(function(e){return e.lock()});
2var t,r,n,a,o,u,c,d,p,f,h,v,g,_,b,T,w,I,C,x,M,N,L,D,U,j,F,W,z,G,Y,J,X=(t=document,a=void 0===(n=(r={mirror:oG,blockClass:i,blockSelector:s,unblockSelector:l,maskAllText:m,maskTextClass:y,unmaskTextClass:S,maskTextSelector:E,unmaskTextSelector:k,inlineStylesheet:R,maskAllInputs:el,maskAttributeFn:O,maskInputFn:A,maskTextFn:P,slimDOM:ed,dataURLOptions:B,recordCanvas:q,inlineImages:Z,onSerialize:function(e){iU(e,oG)&&ey.addIframe(e),iB(e,oG)&&eg.trackLinkElement(e),ij(e)&&eC.addShadowRoot(e.shadowRoot,document)},onIframeLoad:function(e,t){ey.attachIframe(e,t);var r=i3(e);r&&eI.addWindow(r),eC.observeAttachShadow(e)},onStylesheetLoad:function(e,t){eg.attachLinkElement(e,t)},onBlockedImageLoad:function(e,t,r){var n=r.width,a=r.height;eh({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:"".concat(n,"px"),height:"".concat(a,"px")}}}]})},keepIframeSrcFn:er,ignoreCSSAttributes:ea}).mirror)?new aQ:n,o=r.blockClass,u=r.blockSelector,c=r.unblockSelector,d=r.maskAllText,p=r.maskTextClass,f=r.unmaskTextClass,h=r.maskTextSelector,v=r.unmaskTextSelector,g=r.inlineStylesheet,_=r.inlineImages,b=r.recordCanvas,w=void 0!==(T=r.maskAllInputs)&&T,I=r.maskAttributeFn,C=r.maskTextFn,x=r.maskInputFn,N=void 0!==(M=r.slimDOM)&&M,L=r.dataURLOptions,D=r.preserveWhiteSpace,U=r.onSerialize,j=r.onIframeLoad,F=r.iframeLoadTimeout,W=r.onBlockedImageLoad,z=r.onStylesheetLoad,G=r.stylesheetLoadTimeout,iT(t,{doc:t,mirror:a,blockClass:void 0===o?"rr-block":o,blockSelector:void 0===u?null:u,unblockSelector:void 0===c?null:c,maskAllText:void 0!==d&&d,maskTextClass:void 0===p?"rr-mask":p,unmaskTextClass:void 0===f?null:f,maskTextSelector:void 0===h?null:h,unmaskTextSelector:void 0===v?null:v,skipChild:!1,inlineStylesheet:void 0===g||g,maskInputOptions:!0===w?{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===w?{}:w,maskAttributeFn:I,maskTextFn:C,maskInputFn:x,slimDOMOptions:!0===N||"all"===N?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===N,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===N?{}:N,dataURLOptions:L,inlineImages:void 0!==_&&_,recordCanvas:void 0!==b&&b,preserveWhiteSpace:D,onSerialize:U,onIframeLoad:j,iframeLoadTimeout:F,onBlockedImageLoad:W,onStylesheetLoad:z,stylesheetLoadTimeout:G,keepIframeSrcFn:void 0===(Y=r.keepIframeSrcFn)?function(){return!1}:Y,newlyAddedElement:!1,ignoreCSSAttributes:void 0===(J=r.ignoreCSSAttributes)?new Set([]):J}));if(!X)return console.warn("Failed to snapshot the document");oH({type:iY.FullSnapshot,data:{node:X,initialOffset:iO(window)}}),ot.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&eg.adoptStyleSheets(document.adoptedStyleSheets,oG.getId(document))}};oW=ex;try{var eO=[],eA=function(e){var t;return i$(ol)({onMutation:eo,mutationCb:eh,mousemoveCb:function(e,t){return oH({type:iY.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return oH({type:iY.IncrementalSnapshot,data:(0,c._)({source:iJ.MouseInteraction},e)})},scrollCb:ev,viewportResizeCb:function(e){return oH({type:iY.IncrementalSnapshot,data:(0,c._)({source:iJ.ViewportResize},e)})},inputCb:function(e){return oH({type:iY.IncrementalSnapshot,data:(0,c._)({source:iJ.Input},e)})},mediaInteractionCb:function(e){return oH({type:iY.IncrementalSnapshot,data:(0,c._)({source:iJ.MediaInteraction},e)})},styleSheetRuleCb:function(e){return oH({type:iY.IncrementalSnapshot,data:(0,c._)({source:iJ.StyleSheetRule},e)})},styleDeclarationCb:function(e){return oH({type:iY.IncrementalSnapshot,data:(0,c._)({source:iJ.StyleDeclaration},e)})},canvasMutationCb:em,fontCb:function(e){return oH({type:iY.IncrementalSnapshot,data:(0,c._)({source:iJ.Font},e)})},selectionCb:function(e){oH({type:iY.IncrementalSnapshot,data:(0,c._)({source:iJ.Selection},e)})},customElementCb:function(e){oH({type:iY.IncrementalSnapshot,data:(0,c._)({source:iJ.CustomElement},e)})},blockClass:i,ignoreClass:p,ignoreSelector:h,maskAllText:m,maskTextClass:y,unmaskTextClass:S,maskTextSelector:E,unmaskTextSelector:k,maskInputOptions:el,inlineStylesheet:R,sampling:D,recordDOM:H,recordCanvas:q,inlineImages:Z,userTr
2iggeredOnInput:K,collectFonts:$,doc:e,maskAttributeFn:O,maskInputFn:A,maskTextFn:P,keepIframeSrcFn:er,blockSelector:s,unblockSelector:l,slimDOMOptions:ed,dataURLOptions:B,mirror:oG,iframeManager:ey,stylesheetManager:eg,shadowDomManager:eC,processedNodeManager:eR,canvasManager:eI,ignoreCSSAttributes:ea,plugins:(null==ee||null==(t=ee.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return oH({type:iY.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},{})};ey.addLoadListener(function(e){try{eO.push(eA(e.contentDocument))}catch(e){console.warn(e)}});var eP=function(){ex(),eO.push(eA(document))};return"interactive"===document.readyState||"complete"===document.readyState?eP():(eO.push(ik("DOMContentLoaded",function(){oH({type:iY.DomContentLoaded,data:{}}),"DOMContentLoaded"===J&&eP()})),eO.push(ik("load",function(){oH({type:iY.Load,data:{}}),"load"===J&&eP()},window))),function(){eO.forEach(function(e){return e()}),eR.destroy(),oW=void 0,oF=void 0}}catch(e){console.warn(e)}}function oJ(e){return e>0x2540be3ff?e:1e3*e}function oX(e){return e>0x2540be3ff?e/1e3:e}function oK(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(function(){return e.throttledAddEvent({type:iY.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,j.normalize)(t,10,1e3)}}),"console"===t.category}))}function oV(e){return e.closest("button,a")||e}function o$(e){var t=oQ(e);return t&&(0,eG._)(t,Element)?oV(t):t}function oQ(e){var t;return(t=e,(0,e_.isObjectLike)(t)&&"target"in t)?e.target:e}oY.mirror=oG,oY.takeFullSnapshot=function(e){if(!oW)throw Error("please take full snapshot after start recording");oW(e)},(t=o||(o={}))[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped";var oZ=new Set([iJ.Mutation,iJ.StyleSheetRule,iJ.StyleDeclaration,iJ.AdoptedStyleSheet,iJ.CanvasMutation,iJ.Selection,iJ.MediaInteraction]),o0=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:oK;(0,H._)(this,e),this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=r.timeout/1e3,this._threshold=r.threshold/1e3,this._scrollTimeout=r.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=r.ignoreSelector,this._addBreadcrumbEvent=n}return(0,W._)(e,[{key:"addListeners",value:function(){var e,t=this,r=(e=function(){t._lastMutation=o2()},s||(s=[],(0,O.fill)(aW,"open",function(e){return function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];if(s)try{s.forEach(function(e){return e()})}catch(e){}return e.apply(aW,r)}})),s.push(e),function(){var t=s?s.indexOf(e):-1;t>-1&&s.splice(t,1)});this._teardown=function(){r(),t._clicks=[],t._lastMutation=0,t._lastScroll=0}}},{key:"removeListeners",value:function(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}},{key:"handleClick",value:function(e,t){if(r=t,n=this._ignoreSelector,!(!o1.includes(r.tagName)||"INPUT"===r.tagName&&!["submit","button"].includes(r.getAttribute("type")||"")||"A"===r.tagName&&(r.hasAttribute("download")||r.hasAttribute("target")&&"_self"!==r.getAttribute("target"))||n&&r.matches(n))&&(a=e).data&&"number"==typeof a.data.nodeId&&a.timestamp){var r,n,a,i={timestamp:oX(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(function(e){return e.node===i.node&&1>Math.abs(e.timestamp-i.timestamp)})||(this._clicks.push(i),1===this._clicks.length&&this._scheduleCheckClicks())}}},{key:"registerMutation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastMutation=oX(e)}},{key:"registerScroll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastScroll=oX(e)}},{key:"registerClick",value:function(e){var t=oV(e);this._handleMultiClick(t)}},{key:"_handleMultiClick",value:function(e){this._getClicks(e).forEach(function(e){e.clickCount++})}},{key:"_getClicks",value:function(e){return this._clicks.filter(function(t){return t.node===e})}},{key:"_checkClicks",value:function(){var e=this,t=[],r=o2();this._clicks.forEach(function(n){!n.mutationAfter&&e._lastMutation&&(n.mutationAfter=n.timestamp<=e._lastMutation?e._lastMutation-n.timestamp:void 0),!n.scrollAfter&&e._lastScroll&&(n.scrollAfter=n.timestamp<=e._lastScroll?e._lastScroll-n.timestamp:void 0),n.timestamp+e._timeout<=r&&t.push(n)});var n=!0,a=!1,i=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done);
2n=!0){var u=o.value,c=this._clicks.indexOf(u);c>-1&&(this._generateBreadcrumbs(u),this._clicks.splice(c,1))}}catch(e){a=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw i}}this._clicks.length&&this._scheduleCheckClicks()}},{key:"_generateBreadcrumbs",value:function(e){var t=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,a=e.clickCount,i=e.clickBreadcrumb;if(!r&&!n){var o=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),s=o<1e3*this._timeout?"mutation":"timeout",u={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:(0,g._)((0,c._)({},i.data),{url:aW.location.href,route:t.getCurrentRoute(),timeAfterClickMs:o,endReason:s,clickCount:a||1})};this._addBreadcrumbEvent(t,u);return}if(a>1){var l={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:(0,g._)((0,c._)({},i.data),{url:aW.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0})};this._addBreadcrumbEvent(t,l)}}},{key:"_scheduleCheckClicks",value:function(){var e=this;this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=rp(function(){return e._checkClicks()},1e3)}}]),e}(),o1=["A","BUTTON","INPUT"];function o2(){return Date.now()/1e3}function o3(e){return(0,c._)({timestamp:Date.now()/1e3,type:"default"},e)}var o5=((r=o5||{})[r.Document=0]="Document",r[r.DocumentType=1]="DocumentType",r[r.Element=2]="Element",r[r.Text=3]="Text",r[r.CDATA=4]="CDATA",r[r.Comment=5]="Comment",r),o4=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function o8(e,t){var r=oY.mirror.getId(e),n=r&&oY.mirror.getNode(r),a=n&&oY.mirror.getMeta(n),i=a&&a.type===o5.Element?a:null;return{message:t,data:i?{nodeId:r,node:{id:r,tagName:i.tagName,textContent:Array.from(i.childNodes).map(function(e){return e.type===o5.Text&&e.textContent}).filter(Boolean).map(function(e){return e.trim()}).join(""),attributes:function(e){var t={};for(var r in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(o4.has(r)){var n=r;("data-testid"===r||"data-test-id"===r)&&(n="testId"),t[n]=e[r]}return t}(i.attributes)}}:{}}}var o6={resource:function(e){var t=e.entryType,r=e.initiatorType,n=e.name,a=e.responseEnd,i=e.startTime,o=e.decodedBodySize,s=e.encodedBodySize,u=e.responseStatus,c=e.transferSize;return["fetch","xmlhttprequest"].includes(r)?null:{type:"".concat(t,".").concat(r),start:se(i),end:se(a),name:n,data:{size:c,statusCode:u,decodedBodySize:o,encodedBodySize:s}}},paint:function(e){var t=e.duration,r=e.entryType,n=e.name,a=se(e.startTime);return{type:r,name:n,start:a,end:a+t,data:void 0}},navigation:function(e){var t=e.entryType,r=e.name,n=e.decodedBodySize,a=e.duration,i=e.domComplete,o=e.encodedBodySize,s=e.domContentLoadedEventStart,u=e.domContentLoadedEventEnd,c=e.domInteractive,l=e.loadEventStart,d=e.loadEventEnd,p=e.redirectCount,f=e.startTime,h=e.transferSize,v=e.type;return 0===a?null:{type:"".concat(t,".").concat(v),start:se(f),end:se(i),name:r,data:{size:h,decodedBodySize:n,encodedBodySize:o,duration:a,domInteractive:c,domContentLoadedEventStart:s,domContentLoadedEventEnd:u,loadEventStart:l,loadEventEnd:d,domComplete:i,redirectCount:p}}}};function o7(e,t){return function(r){var n=r.metric;t.replayPerformanceEntries.push(e(n))}}function o9(e){var t=o6[e.entryType];return t?t(e):null}function se(e){return(((0,er.browserPerformanceTimeOrigin)()||aW.performance.timeOrigin)+e)/1e3}function st(e){var t=e.entries[e.entries.length-1];return sa(e,"largest-contentful-paint",(null==t?void 0:t.element)?[t.element]:void 0)}function sr(e){var t=[],r=[],n=!0,a=!1,i=void 0;try{for(var o,s=e.entries[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var u=o.value;if(void 0!==u.sources){var c=[],l=!0,d=!1,p=void 0;try{for(var f,h=u.sources[Symbol.iterator]();!(l=(f=h.next()).done);l=!0){var v=f.value;if(v.node){r.push(v.node);var m=oY.mirror.getId(v.node);m&&c.push(m)}}}catch(e){d=!0,p=e}finally{try{l||null==h.return||h.return()}finally{if(d)throw p}}t.push({value:u.value,nodeIds:c.length?c:void 0})}}}catch(e){a=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw i}}return sa(e,"cumulative-layout-shift",r,t)}function sn(e){var t=e.entries[e.entries.length-1];return sa(e,"interaction-to-next-paint",(null==t?void 0:t.target)?[t.target]:void 0)}function sa(e,t,r,n){var a=e.value,i=e.rating,o=se(a);return{type:"web-vital",name:t,start:o,end:o,data:{value:a,size:a,rating:i,nodeIds:r?r.map(function(e){return oY.mirror.getId(e)}):void 0,attributions:n}}}var si="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,so=["log","warn","error"],ss="[Replay] ";function su(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info";tf({category:"console",data:{logger:"replay"},level:t,message:"".concat(ss).concat(e)},{level:t})}var sc=(n=!1,a=!1,i={exception:function(){},infoTick:function(){},setConfig:function(e){n=!!e.captureExceptions,a=!!e.traceInternals}}
2,si?(so.forEach(function(e){i[e]=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];(t=d.debug)[e].apply(t,[ss].concat((0,l._)(n))),a&&su(n.join(""),tp(e))}}),i.exception=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];r.length&&i.error&&i.error.apply(i,(0,l._)(r)),d.debug.error(ss,e),n?(0,v.captureException)(e,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):a&&su(e,"error")},i.infoTick=function(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];(e=d.debug).log.apply(e,[ss].concat((0,l._)(r))),a&&setTimeout(function(){return su(r[0])},0)}):so.forEach(function(e){i[e]=function(){}}),i),sl=function(e){function t(){return(0,H._)(this,t),(0,F._)(this,t,["Event buffer exceeded maximum size of ".concat(2e7,".")])}return(0,G._)(t,e),t}((0,aF._)(Error)),sd=function(){function e(){(0,H._)(this,e),this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}return(0,W._)(e,[{key:"hasEvents",get:function(){return this.events.length>0}},{key:"type",get:function(){return"sync"}},{key:"destroy",value:function(){this.events=[]}},{key:"addEvent",value:function(e){return(0,Y._)(function(){var t;return(0,K._)(this,function(r){if(t=JSON.stringify(e).length,this._totalSize+=t,this._totalSize>2e7)throw new sl;return this.events.push(e),[2]})}).call(this)}},{key:"finish",value:function(){var e=this;return new Promise(function(t){var r=e.events;e.clear(),t(JSON.stringify(r))})}},{key:"clear",value:function(){this.events=[],this._totalSize=0,this.hasCheckout=!1}},{key:"getEarliestTimestamp",value:function(){var e=null,t=!0,r=!1,n=void 0;try{for(var a,i=this.events[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){var o=a.value.timestamp;(null===e||o<e)&&(e=o)}}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}return null===e?e:oJ(e)}}]),e}(),sp=function(){function e(t){var r=this;(0,H._)(this,e),this._onMessage=function(e){var t=e.data;if("number"==typeof t.id){var n=r._pending.get(t.id);if(n&&n.method===t.method){if(r._pending.delete(t.id),!t.success){si&&sc.error("Error in compression worker: ",t.response),n.reject(Error("Error in compression worker"));return}n.resolve(t.response)}}},this._worker=t,this._id=0,this._pending=new Map,this._worker.addEventListener("message",this._onMessage)}return(0,W._)(e,[{key:"ensureReady",value:function(){var e=this;return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(function(t,r){e._worker.addEventListener("message",function(e){var n=e.data;n.success?t():(si&&sc.warn("Received worker message with unsuccessful status",n),r(Error("Received worker message with unsuccessful status")))},{once:!0}),e._worker.addEventListener("error",function(e){si&&sc.warn("Failed to load Replay compression worker",e),r(Error("Failed to load Replay compression worker: ".concat((0,eG._)(e,ErrorEvent)&&e.message?e.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load.")))},{once:!0})})),this._ensureReadyPromise}},{key:"destroy",value:function(){si&&sc.log("Destroying compression worker"),this._worker.removeEventListener("message",this._onMessage),this._pending.forEach(function(e){return e.reject(Error("Worker destroyed"))}),this._pending.clear(),this._worker.terminate()}},{key:"postMessage",value:function(e,t){var r=this,n=this._getAndIncrementId();return new Promise(function(a,i){r._pending.set(n,{method:e,resolve:a,reject:i});try{r._worker.postMessage({id:n,method:e,arg:t})}catch(e){r._pending.delete(n),i(e)}})}},{key:"_getAndIncrementId",value:function(){return this._id++}}]),e}(),sf=function(){function e(t){(0,H._)(this,e),this._worker=new sp(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}return(0,W._)(e,[{key:"hasEvents",get:function(){return!!this._earliestTimestamp}},{key:"type",get:function(){return"worker"}},{key:"ensureReady",value:function(){return this._worker.ensureReady()}},{key:"destroy",value:function(){this._worker.destroy()}},{key:"addEvent",value:function(e){var t=oJ(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);var r=JSON.stringify(e);return(this._totalSize+=r.length,this._totalSize>2e7)?Promise.reject(new sl):this._sendEventToWorker(r)}},{key:"finish",value:function(){return this._finishRequest()}},{key:"clear",value:function(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,function(e){si&&sc.exception(e,'Sending "clear" message to worker failed',e)})}},{key:"getEarliestTimestamp",value:function(){return this._earliestTimestamp}},{key:"_sendEventToWorker",value:function(e){return this._worker.postMessage("addEvent",e)}},{key:"_finishRequest",value:function(){return(0,Y._)(function(){var e;return(0,K._)(this,function(t){switch(t.label){case 0:return[4,this._worker.postMessage("finish")];case 1:return e=t.sent(),this._earliestTimestamp=null,this._totalSize=0,[2,e]}})}).call(this)}}]),e}(),sh=function(){function e(t){(0,H._)(this,e),this._fallback=new sd,this._compression=new sf(t),this._used=this._fallback,this._ensureWorkerIsLoadedProm
2ise=this._ensureWorkerIsLoaded()}return(0,W._)(e,[{key:"waitForCheckout",get:function(){return this._used.waitForCheckout},set:function(e){this._used.waitForCheckout=e}},{key:"type",get:function(){return this._used.type}},{key:"hasEvents",get:function(){return this._used.hasEvents}},{key:"hasCheckout",get:function(){return this._used.hasCheckout},set:function(e){this._used.hasCheckout=e}},{key:"destroy",value:function(){this._fallback.destroy(),this._compression.destroy()}},{key:"clear",value:function(){return this._used.clear()}},{key:"getEarliestTimestamp",value:function(){return this._used.getEarliestTimestamp()}},{key:"addEvent",value:function(e){return this._used.addEvent(e)}},{key:"finish",value:function(){return(0,Y._)(function(){return(0,K._)(this,function(e){switch(e.label){case 0:return[4,this.ensureWorkerIsLoaded()];case 1:return e.sent(),[2,this._used.finish()]}})}).call(this)}},{key:"ensureWorkerIsLoaded",value:function(){return this._ensureWorkerIsLoadedPromise}},{key:"_ensureWorkerIsLoaded",value:function(){return(0,Y._)(function(){var e;return(0,K._)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this._compression.ensureReady()];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),si&&sc.exception(e,"Failed to load the compression worker, falling back to simple buffer"),[2];case 3:return[4,this._switchToCompressionWorker()];case 4:return t.sent(),[2]}})}).call(this)}},{key:"_switchToCompressionWorker",value:function(){return(0,Y._)(function(){var e,t,r,n,a,i,o,s,u,c,l,d;return(0,K._)(this,function(p){switch(p.label){case 0:t=(e=this._fallback).events,r=e.hasCheckout,n=e.waitForCheckout,a=[],i=!0,o=!1,s=void 0;try{for(u=t[Symbol.iterator]();!(i=(c=u.next()).done);i=!0)l=c.value,a.push(this._compression.addEvent(l))}catch(e){o=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw s}}this._compression.hasCheckout=r,this._compression.waitForCheckout=n,this._used=this._compression,p.label=1;case 1:return p.trys.push([1,3,,4]),[4,Promise.all(a)];case 2:return p.sent(),this._fallback.clear(),[3,4];case 3:return d=p.sent(),si&&sc.exception(d,"Failed to add events when switching buffers."),[3,4];case 4:return[2]}})}).call(this)}}]),e}();function sv(){try{return"sessionStorage"in aW&&!!aW.sessionStorage}catch(e){return!1}}function sm(e){return void 0!==e&&Math.random()<e}function sg(e){if(sv())try{aW.sessionStorage.setItem(aq,JSON.stringify(e))}catch(e){}}function sy(e){var t=Date.now();return{id:e.id||(0,T.uuid4)(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function s_(e){var t=e.sessionSampleRate,r=e.allowBuffering,n=e.stickySession,a=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).previousSessionId,i=sy({sampled:sm(t)?"session":!!r&&"buffer",previousSessionId:a});return void 0!==n&&n&&sg(i),i}function sS(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:+new Date;return null===e||void 0===t||t<0||0!==t&&e+t<=r}function sb(e,t){var r,n,a,i,o;return n=(r={sessionIdleExpire:t.sessionIdleExpire,maxReplayDuration:t.maxReplayDuration}).maxReplayDuration,a=r.sessionIdleExpire,o=void 0===(i=r.targetTime)?Date.now():i,!!(sS(e.started,n,o)||sS(e.lastActivity,a,o))&&("buffer"!==e.sampled||0!==e.segmentId)}function sE(e,t){var r=e.sessionIdleExpire,n=e.maxReplayDuration,a=e.previousSessionId,i=t.stickySession&&function(){if(!sv())return null;try{var e=aW.sessionStorage.getItem(aq);if(!e)return null;var t=JSON.parse(e);return si&&sc.infoTick("Loading existing session"),sy(t)}catch(e){return null}}();return i?sb(i,{sessionIdleExpire:r,maxReplayDuration:n})?(si&&sc.infoTick("Session in sessionStorage is expired, creating new one..."),s_(t,{previousSessionId:i.id})):i:(si&&sc.infoTick("Creating new session"),s_(t,{previousSessionId:a}))}function sT(e,t,r){return!!sw(e,t)&&(sk(e,t,r),!0)}function sk(e,t,r){return(0,Y._)(function(){var n,a,i,o,s,u,c,l;return(0,K._)(this,function(d){switch(d.label){case 0:if(!(n=e.eventBuffer)||n.waitForCheckout&&!r)return[2,null];a="buffer"===e.recordingMode,d.label=1;case 1:if(d.trys.push([1,3,,5]),r&&a&&n.clear(),r&&(n.hasCheckout=!0,n.waitForCheckout=!1),!(i=function(e,t){try{if("function"==typeof t&&e.type===iY.Custom)return t(e)}catch(e){return si&&sc.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,e.getOptions().beforeAddRecordingEvent)))return[2];return[4,n.addEvent(i)];case 2:return[2,d.sent()];case 3:if(o=d.sent(),!e.isEnabled())return e.handleException(o),[2,null];if(u=(s=o&&(0,eG._)(o,sl))?"eventBufferOverflow":"eventBufferError",(c=(0,m.getClient)())&&(l=s?"buffer_overflow":"internal_sdk_error",c.recordDroppedEvent(l,"replay")),s&&a)return n.clear(),n.waitForCheckout=!0,[2,null];return e.handleException(o),[4,e.stop({reason:u})];case 4:return d.sent(),[3,5];case 5:return[2]}})})()}
2function sw(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;var r=oJ(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&(!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(si&&sc.infoTick("Skipping event with timestamp ".concat(r," because it is after maxReplayDuration")),!1))}function sR(e,t,r){var n=e.getContext();t&&n.traceIds.size<100&&n.traceIds.add(t),r&&n.segmentNames.size<100&&n.segmentNames.add(r)}function sI(e){return"transaction"===e.type}function sC(e){return"feedback"===e.type}function sx(e){return!!e.category}function sO(){var e=(0,m.getCurrentScope)().getPropagationContext().dsc;e&&delete e.replay_id;var t=(0,M.getActiveSpan)();if(t){var r=(0,eu.getDynamicSamplingContextFromSpan)(t);delete r.replay_id}}function sA(e){var t=(0,m.getCurrentScope)().getPropagationContext().dsc;t&&(t.replay_id=e);var r=(0,M.getActiveSpan)();r&&((0,eu.getDynamicSamplingContextFromSpan)(r).replay_id=e)}function sP(e,t){return t.map(function(t){var r=t.type,n=t.start,a=t.end,i=t.name,o=t.data,s=e.throttledAddEvent({type:iY.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:r,description:i,startTimestamp:n,endTimestamp:a,data:o}}});return"string"==typeof s?Promise.resolve(null):s})}function sM(e,t){e.isEnabled()&&null!==t&&!function(e,t){var r,n,a,i,o,s,u,c,l,d;if(si&&e.getOptions()._experiments.traceInternals)return!1;return n=null==(r=(0,m.getClient)())?void 0:r.getDsn(),a=null==r?void 0:r.getOptions().tunnel,i=t,o=n,!(!(s=tm(i))||tv(s))&&!!o&&(u=s.hostname,u===(c=o.host)||c.length>0&&u.endsWith(".".concat(c)))&&/(^|&|\?)sentry_key=/.test(s.search)||(l=t,!!(d=a)&&aH(l)===aH(d))}(e,t.name)&&e.addUpdate(function(){return sP(e,[t]),!0})}function sN(e){if(e){var t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if((0,eG._)(e,URLSearchParams))return t.encode(e.toString()).length;if((0,eG._)(e,FormData)){var r=nQ(e);return t.encode(r).length}if((0,eG._)(e,Blob))return e.size;if((0,eG._)(e,ArrayBuffer))return e.byteLength}catch(e){}}}function sL(e){if(e){var t=parseInt(e,10);return isNaN(t)?void 0:t}}function sD(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};var r=(0,c._)({},e._meta),n=r.warnings||[];return r.warnings=(0,l._)(n).concat([t]),e._meta=r,e}function sU(e,t){return t?{type:e,start:t.startTimestamp/1e3,end:t.endTimestamp/1e3,name:t.url,data:{method:t.method,statusCode:t.statusCode,request:t.request,response:t.response}}:null}function sB(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function sj(e,t,r){if(t||0!==Object.keys(e).length){if(!t)return{headers:e};if(!r)return{headers:e,size:t};var n={headers:e,size:t},a=function(e){if(!e||"string"!=typeof e)return{body:e};var t,r,n,a=e.length>15e4,i=(r=(t=e)[0],n=t[t.length-1],"["===r&&"]"===n||"{"===r&&"}"===n);if(a){var o=e.slice(0,15e4);return i?{body:o,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:"".concat(o,"â¦"),warnings:["TEXT_TRUNCATED"]}}if(i)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(r),i=a.body,o=a.warnings;return n.body=i,(null==o?void 0:o.length)&&(n._meta={warnings:o}),n}}function sF(e,t){return Object.entries(e).reduce(function(r,n){var a=(0,X._)(n,2),i=a[0],o=a[1],s=i.toLowerCase();return t.includes(s)&&e[i]&&(r[s]=o),r},{})}function sH(e,t){var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:aW.document.baseURI;if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(aW.location.origin))return e;var r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;var n=r.href;return!e.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):n}(e);return(0,k.stringMatchesSomePattern)(r,t)}function sW(e,t){var r={};return t.forEach(function(t){e.get(t)&&(r[t]=e.get(t))}),r}function sq(e,t){if(!e)return{};var r=e.headers;return r?(0,eG._)(r,Headers)?sW(r,t):Array.isArray(r)?{}:sF(r,t):{}}var sz=p.GLOBAL_OBJ.navigator,sG=function(e){function t(e){return(0,H._)(this,t),(0,F._)(this,t,["Transport returned status code ".concat(e)])}return(0,G._)(t,e),t}((0,aF._)(Error)),sY=function(e){function t(e){var r;return(0,H._)(this,t),(r=(0,F._)(this,t,["Rate limit hit"])).rateLimits=e,r}return(0,G._)(t,e),t}((0,aF._)(Error)),sJ=function(e){function t(){return(0,H._)(this,t),(0,F._)(this,t,["Session is too long, not sending replay"])}return(0,G._)(t,e),t}((0,aF._)(Error)),sX="__THROTTLED",sK=function(){function e(t){var r,n,a,i,o,s,u,d=this,p=t.options,f=t.re
2cordingOptions;(0,H._)(this,e),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,segmentNames:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=f,this._options=p,this._debouncedFlush=(r=function(){return d._flush()},n=this._options.flushMinDelay,a={maxWait:this._options.flushMaxDelay},function(e,t,r){var n,a,i,o=(null==r?void 0:r.maxWait)?Math.max(r.maxWait,t):0,s=(null==r?void 0:r.setTimeoutImpl)||setTimeout;function u(){return c(),n=e()}function c(){void 0!==a&&clearTimeout(a),void 0!==i&&clearTimeout(i),a=i=void 0}function l(){return a&&clearTimeout(a),a=s(u,t),o&&void 0===i&&(i=s(u,o)),n}return l.cancel=c,l.flush=function(){return void 0!==a||void 0!==i?u():n},l}(r,n,(0,g._)((0,c._)({},a),{setTimeoutImpl:rp}))),this._throttledAddEvent=(i=function(e,t){return sw(d,e)?sk(d,e,t):Promise.resolve(null)},o=new Map,s=function(e){var t=e-5;o.forEach(function(e,r){r<t&&o.delete(r)})},u=!1,function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Math.floor(Date.now()/1e3);if(s(n),(0,l._)(o.values()).reduce(function(e,t){return e+t},0)>=300){var a=u;return u=!0,a?"__SKIPPED":sX}u=!1;var c=o.get(n)||0;return o.set(n,c+1),i.apply(void 0,(0,l._)(t))});var h=this.getOptions(),v=h.slowClickTimeout,m=h.slowClickIgnoreSelectors,y=v?{threshold:Math.min(3e3,v),timeout:v,scrollTimeout:300,ignoreSelector:m?m.join(","):""}:void 0;if(y&&(this.clickDetector=new o0(this,y)),si){var _=p._experiments;sc.setConfig({captureExceptions:!!_.captureExceptions,traceInternals:!!_.traceInternals})}this._handleVisibilityChange=function(){"visible"===aW.document.visibilityState?d._doChangeToForegroundTasks():d._doChangeToBackgroundTasks()},this._handleWindowBlur=function(){var e=o3({category:"ui.blur"});d._doChangeToBackgroundTasks(e)},this._handleWindowFocus=function(){var e=o3({category:"ui.focus"});d._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=function(e){var t=d,r=e;if(t.isEnabled()){t.updateUserActivity();var n=function(e){var t,r=e.metaKey,n=e.shiftKey,a=e.ctrlKey,i=e.altKey,o=e.key,s=e.target;if(!s||"INPUT"===(t=s).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!o)return null;var u=r||a||i,l=1===o.length;if(!u&&l)return null;var d=tP(s,{maxStringLength:200})||"<unknown>",p=o8(s,d);return o3({category:"ui.keyDown",message:d,data:(0,g._)((0,c._)({},p.data),{metaKey:r,shiftKey:n,ctrlKey:a,altKey:i,key:o})})}(r);n&&oK(t,n)}}}return(0,W._)(e,[{key:"getContext",value:function(){return this._context}},{key:"isEnabled",value:function(){return this._isEnabled}},{key:"isPaused",value:function(){return this._isPaused}},{key:"isRecordingCanvas",value:function(){return!!this._canvas}},{key:"getOptions",value:function(){return this._options}},{key:"handleException",value:function(e){si&&sc.exception(e),this._options.onError&&this._options.onError(e)}},{key:"initializeSampling",value:function(e){var t=this._options,r=t.errorSampleRate,n=t.sessionSampleRate,a=r<=0&&n<=0;if(this._requiresManualStart=a,!a){if(this._initializeSessionForSampling(e),!this.session){si&&sc.exception(Error("Unable to initialize and create session"));return}!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",si&&sc.infoTick("Starting replay in ".concat(this.recordingMode," mode")),this._initializeRecording())}}},{key:"start",value:function(){if(this._isEnabled&&"session"===this.recordingMode){si&&sc.log("Recording is already in progress");return}if(this._isEnabled&&"buffer"===this.recordingMode){si&&sc.log("Buffering is in progress, call `flush()` to save the replay");return}si&&sc.infoTick("Starting replay in session mode"),this._updateUserActivity();var e=sE({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}}
2,{key:"startBuffering",value:function(){if(this._isEnabled){si&&sc.log("Buffering is in progress, call `flush()` to save the replay");return}si&&sc.infoTick("Starting replay in buffer mode");var e=sE({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}},{key:"startRecording",value:function(){try{var e,t,r,n,a=this._canvas;this._stopRecording=oY((0,c._)((0,g._)((0,c._)((0,g._)((0,c._)({},this._recordingOptions,"buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)}),{emit:(e=this,t=!1,function(r,n){try{if(!e.checkAndHandleExpiredSession()){si&&sc.warn("Received replay event after session expired.");return}var a=n||!t;t=!0,function(e){var t=e.data;if(e.type===iY.IncrementalSnapshot&&t&&(void 0===t?"undefined":(0,ep._)(t))==="object"&&"source"in t&&t.source===iJ.Mutation&&"attributes"in t&&Array.isArray(t.attributes)){var r=!0,n=!1,a=void 0;try{for(var i,o=t.attributes[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value,u=oY.mirror.getNode(s.id),c=u&&oY.mirror.getMeta(u);if((null==c?void 0:c.type)===o5.Element){var l=!0,d=!1,p=void 0;try{for(var f,h=Object.entries(s.attributes)[Symbol.iterator]();!(l=(f=h.next()).done);l=!0){var v=(0,X._)(f.value,2),m=v[0],g=v[1];null===g?delete c.attributes[m]:c.attributes[m]=g}}catch(e){d=!0,p=e}finally{try{l||null==h.return||h.return()}finally{if(d)throw p}}}}}catch(e){n=!0,a=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw a}}}}(r),e.clickDetector&&function(e,t){try{if(r=t,3!==r.type)return;var r,n=t.data.source;if(oZ.has(n)&&e.registerMutation(t.timestamp),n===iJ.Scroll&&e.registerScroll(t.timestamp),t.data.source===iJ.MouseInteraction){var a=t.data,i=a.type,o=a.id,s=oY.mirror.getNode(o);(0,eG._)(s,HTMLElement)&&i===iX.Click&&e.registerClick(s)}}catch(e){}}(e.clickDetector,r),e.addUpdate(function(){if("buffer"===e.recordingMode&&a&&e.setInitialState(),!sT(e,r,a))return!0;if(!a)return!1;var t=e.session;if(function(e,t){var r,n;t&&(null==(r=e.session)?void 0:r.segmentId)===0&&sT(e,(n=e.getOptions(),{type:iY.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:n.sessionSampleRate,errorSampleRate:n.errorSampleRate,useCompressionOption:n.useCompression,blockAllMedia:n.blockAllMedia,maskAllText:n.maskAllText,maskAllInputs:n.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:n.networkDetailAllowUrls.length>0,networkCaptureBodies:n.networkCaptureBodies,networkRequestHasHeaders:n.networkRequestHeaders.length>0,networkResponseHasHeaders:n.networkResponseHeaders.length>0}}}),!1)}(e,a),"buffer"===e.recordingMode&&t&&e.eventBuffer&&!t.dirty){var n=e.eventBuffer.getEarliestTimestamp();n&&(si&&sc.log("Updating session start time to earliest event in buffer to ".concat(new Date(n))),t.started=n,e.getOptions().stickySession&&sg(t))}return null!=t&&!!t.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}catch(t){e.handleException(t)}})}),/iPhone|iPad|iPod/i.test(null!=(r=null==sz?void 0:sz.userAgent)?r:"")||/Macintosh/i.test(null!=(n=null==sz?void 0:sz.userAgent)?n:"")&&(null==sz?void 0:sz.maxTouchPoints)&&(null==sz?void 0:sz.maxTouchPoints)>1?{sampling:{mousemove:!1}}:{}),{onMutation:this._onMutationHandler.bind(this)}),a?{recordCanvas:a.recordCanvas,getCanvasManager:a.getCanvasManager,sampling:a.sampling,dataURLOptions:a.dataURLOptions}:{}))}catch(e){this.handleException(e)}}},{key:"stopRecording",value:function(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}},{key:"stop",value:function(){return(0,Y._)(function(){var e,t,r,n,a,i,o,s,u,c=arguments;return(0,K._)(this,function(l){switch(l.label){case 0:if(r=void 0!==(t=(e=c.length>0&&void 0!==c[0]?c[0]:{}).forceFlush)&&t,n=e.reason,!this._isEnabled)return[2];this._isEnabled=!1,this.recordingMode="buffer",o=null!=n?n:"manual",null==(i=(0,m.getClient)())||i.emit("replayEnd",{sessionId:null==(a=this.session)?void 0:a.id,reason:o}),l.label=1;case 1:if(l.trys.push([1,4,,5]),si&&sc.log("Stopping Replay triggered by ".concat(o)),sO(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),!r)return[3,3];return[4,this._flush({force:!0})];case 2:l.sent(),l.label=3;case 3:return null==(s=this.eventBuffer)||s.destroy(),this.eventBuffer=null,function(){if(sv())try{aW.sessionStorage.removeItem(aq)}catch(e){}}(),this.session=void 0,[3,5];case 4:return u=l.sent(),this.handleException(u),[3,5];case 5:return[2]}})}).apply(this,arguments)}},{key:"pause",value:function(){!this._isPaused&&(this._isPaused=!0,this.stopRecording(),si&&sc.log("Pausing replay"))}},{key:"resume",value:function(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),si&&sc.log("Resuming replay"))}},{key:"sendBufferedReplayOrFlush",value:function(){return(0,Y._)(function(){var e,t,r,n,a=arguments;return(0,K._)(this,function(i){switch(i.label){case 0:if(t=void 0===(e=(a.length>0&&void 0!==a[0]?a[0]:{}).continueRecording)||e,"session"===this.recordingMode)return[2,this.flushImmediate()];return r=Date.now(),si&&sc.log("Converting buffer to session"),[4,this.flushImmediate()];case 1:if(i.sent(),n=this.stopRecording(),!t||!n||"session"===this.recordingMode)return[2];return this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(r),this._updateSessionActivity(r),this._maybeSaveSession(),sA(this.session.id)),this.startRecording(),[2]}})}).apply(this,arguments)}},{key:"addUpdate",value:function(e){var t=e();"buffer"!==this.recordingMode&&this._isEnabled&&!0!==t&&this._debouncedFlush()}},{key:"triggerUserActivity",value:function(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}},{key:"updateUserActivity",value:function(){this._updateUserActivity(),this._updateSessionActivity()}},{key:"conditionalFlush",value:function(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}},{key:"flush",value:function(){return this._debouncedFlush()}},{key:"flushImmediate",value:function(){return this._debouncedFlush(),this._debouncedFlush.flush()}},{key:"cancelFlush",value:function(){this._debouncedFlush.cancel()}},{key:"getSessionId",value:function(e){var t,r;if(!e||(null==(t=this.session)?void 0:t.sampled)!==!1)return null==(r=this.session)?void 0:r.id}},{key:"checkAndHandleExpiredSession",value:function(){var e;return this._lastActivity&&sS(this._lastActivity,this.timeouts.sessionIdlePause)&&(null==(e=this.session)?void 0:e.sampled)==="session"?void this.pause():!!this._checkSession()}},{key:"setInitialState",value:function(){var e="".concat(aW.location.pathname).concat(aW.location.hash).concat(aW.location.search),t="".concat(aW.location.origin).concat(e);this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.
2initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}},{key:"throttledAddEvent",value:function(e,t){var r=this,n=this._throttledAddEvent(e,t);if(n===sX){var a=o3({category:"replay.throttled"});this.addUpdate(function(){return!sT(r,{type:5,timestamp:a.timestamp||0,data:{tag:"breadcrumb",payload:a,metric:!0}})})}return n}},{key:"getCurrentRoute",value:function(){var e=this.lastActiveSpan||(0,M.getActiveSpan)(),t=e&&(0,M.getRootSpan)(e),r=(t&&(0,M.spanToJSON)(t).data||{})[P.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if(t&&r&&["route","custom"].includes(r))return(0,M.spanToJSON)(t).description}},{key:"_initializeRecording",value:function(){if(this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function(e){var t=e.useCompression,r=e.workerUrl;if(t&&window.Worker){var n=function(e){try{var t=e||function(){if("u"<typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__){var e;return e=new Blob(['
vendor: 10,329 bytes, line 2
2var 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});
2']),URL.createObjectURL(e)}return""}();if(!t)return;si&&sc.log("Using compression worker".concat(e?" from ".concat(e):""));var r=new Worker(t);return new sh(r)}catch(e){si&&sc.exception(e,"Failed to create compression worker")}}(r);if(n)return n}return si&&sc.log("Using simple buffer"),new sd}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session){var e;null==(e=(0,m.getClient)())||e.emit("replayStart",{sessionId:this.session.id,recordingMode:this.recordingMode})}this.startRecording(),"session"===this.recordingMode&&this.session&&sA(this.session.id)}},{key:"_initializeSessionForSampling",value:function(e){var t=this._options.errorSampleRate>0,r=sE({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=r}},{key:"_checkSession",value:function(){if(!this.session)return!1;var e=this.session;return!sb(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}},{key:"_refreshSession",value:function(e){return(0,Y._)(function(){return(0,K._)(this,function(t){switch(t.label){case 0:if(!this._isEnabled)return[2];return[4,this.stop({reason:"sessionExpired"})];case 1:return t.sent(),this.initializeSampling(e.id),[2]}})}).call(this)}},{key:"_addListeners",value:function(){try{aW.document.addEventListener("visibilitychange",this._handleVisibilityChange),aW.addEventListener("blur",this._handleWindowBlur),aW.addEventListener("focus",this._handleWindowFocus),aW.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){var t,r=(0,m.getClient)();tE(function(t){if(e.isEnabled()){var r=(n=t,i=(a=function(e){var t,r="click"===e.name,n=null;try{n=r?o$(e.event):oQ(e.event),t=tP(n,{maxStringLength:200})||"<unknown>"}catch(e){t="<unknown>"}return{target:n,message:t}}(n)).target,o=a.message,o3((0,c._)({category:"ui.".concat(n.name)},o8(i,o))));if(r){var n,a,i,o,s,u,l="click"===t.name,d=l?t.event:void 0;l&&e.clickDetector&&(null==d?void 0:d.target)&&!d.altKey&&!d.metaKey&&!d.ctrlKey&&!d.shiftKey&&(s=e.clickDetector,u=o$(t.event),s.handleClick(r,u)),oK(e,r)}}}),tC(function(t){if(e.isEnabled()){var r,n,a,i=(r=t.from,n=t.to,{type:"navigation.push",start:a=Date.now()/1e3,end:a,name:n,data:{previous:r}});null!==i&&(e.getContext().urls.push(i.name),e.triggerUserActivity(),e.addUpdate(function(){return sP(e,[i]),!1}))}}),(t=(0,m.getClient)())&&t.on("beforeAddBreadcrumb",function(t){var r=e,n=t;if(r.isEnabled()&&sx(n)){var a,i=(a=n,!sx(a)||["fetch","xhr","sentry.event","sentry.transaction"].includes(a.category)||a.category.startsWith("ui.")?null:"console"===a.category?function(e){var t,r=null==(t=e.data)?void 0:t.arguments;if(!Array.isArray(r)||0===r.length)return o3(e);var n=!1,a=r.map(function(e){if(!e)return e;if("string"==typeof e)return e.length>5e3?(n=!0,"".concat(e.slice(0,5e3),"â¦")):e;if((void 0===e?"undefined":(0,ep._)(e))==="object")try{var t=(0,j.normalize)(e,7);if(JSON.stringify(t).length>5e3)return n=!0,"".concat(JSON.stringify(t,null,2).slice(0,5e3),"â¦");return t}catch(e){}return e});return o3((0,g._)((0,c._)({},e),{data:(0,c._)((0,g._)((0,c._)({},e.data),{arguments:a}),n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{})}))}(a):o3(a));i&&oK(r,i)}}),function(e){var t=(0,m.getClient)();try{var r=e.getOptions(),n=r.networkDetailAllowUrls,a=r.networkDetailDenyUrls,i=r.networkCaptureBodies,o=r.networkRequestHeaders,s=r.networkResponseHeaders,u={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:a,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",function(e,t){return function(e,t,r){if(t.data)try{if(i=t,"xhr"===i.category&&(o=r,null==o?void 0:o.xhr)){var n,a,i,o,s,u,c,d,p=r.xhr,f=r.input;if(p){var h=sN(f),v=p.getResponseHeader("content-length")?sL(p.getResponseHeader("content-length")):function(e,t){try{var r="json"===t&&(0,e_.
2isObjectLike)(e)?JSON.stringify(e):e;return sN(r)}catch(e){return}}(p.response,p.responseType);void 0!==h&&(t.data.request_body_size=h),void 0!==v&&(t.data.response_body_size=v)}(0,Y._)(function(){var n,a;return(0,K._)(this,function(i){try{n=function(e,t,r){var n=Date.now(),a=t.startTimestamp,i=void 0===a?n:a,o=t.endTimestamp,s=void 0===o?n:o,u=t.input,c=t.xhr,d=e.data,p=d.url,f=d.method,h=d.status_code,v=void 0===h?0:h,m=d.request_body_size,g=d.response_body_size;if(!p)return null;if(!c||!sH(p,r.networkDetailAllowUrls)||sH(p,r.networkDetailDenyUrls))return{startTimestamp:i,endTimestamp:s,url:p,method:f,statusCode:v,request:sB(m),response:sB(g)};var y=c[tw],_=y?sF(y.request_headers,r.networkRequestHeaders):{},S=sF(n1(c),r.networkResponseHeaders),b=(0,X._)(r.networkCaptureBodies?nZ(u,sc):[void 0],2),E=b[0],T=b[1],k=(0,X._)(r.networkCaptureBodies?function(e){var t=[];try{return[e.responseText]}catch(e){t.push(e)}try{var r=e.response,n=e.responseType;try{if("string"==typeof r)return[r];if((0,eG._)(r,Document))return[r.body.outerHTML];if("json"===n&&(0,e_.isObjectLike)(r))return[JSON.stringify(r)];if(!r)return[void 0]}catch(e){return si&&sc.exception(e,"Failed to serialize body",r),[void 0,"BODY_PARSE_ERROR"]}return si&&sc.log("Skipping network body because of body type",r),[void 0,"UNPARSEABLE_BODY_TYPE"]}catch(e){t.push(e)}return si&&sc.warn.apply(sc,["Failed to get xhr response body"].concat((0,l._)(t))),[void 0]}(c):[void 0],2),w=k[0],R=k[1],I=sj(_,m,E),C=sj(S,g,w);return{startTimestamp:i,endTimestamp:s,url:p,method:f,statusCode:v,request:T?sD(I,T):I,response:R?sD(C,R):C}}(t,r,e),a=sU("resource.xhr",n),sM(e.replay,a)}catch(e){si&&sc.exception(e,"Failed to capture xhr breadcrumb")}return[2]})})()}(n=t,"fetch"===n.category&&(a=r,(null==a?void 0:a.input)!==void 0))&&(s=r.input,u=r.response,c=sN(s?n0(s):void 0),d=u?sL(u.headers.get("content-length")):void 0,void 0!==c&&(t.data.request_body_size=c),void 0!==d&&(t.data.response_body_size=d),(0,Y._)(function(){var n,a;return(0,K._)(this,function(i){switch(i.label){case 0:var o,s,u;return i.trys.push([0,2,,3]),[4,(o=t,s=r,u=e,(0,Y._)(function(){var e,t,r,n,a,i,c,l,d,p,f,h,v,m,g;return(0,K._)(this,function(y){switch(y.label){case 0:return e=Date.now(),r=void 0===(t=s.startTimestamp)?e:t,a=void 0===(n=s.endTimestamp)?e:n,c=(i=o.data).url,l=i.method,p=void 0===(d=i.status_code)?0:d,f=i.request_body_size,h=i.response_body_size,m=(v=sH(c,u.networkDetailAllowUrls)&&!sH(c,u.networkDetailDenyUrls))?function(e,t,r){var n,a,i=e.networkCaptureBodies,o=e.networkRequestHeaders,s=t?(n=t,a=o,1===n.length&&"string"!=typeof n[0]?sq(n[0],a):2===n.length?sq(n[1],a):{}):{};if(!i)return sj(s,r,void 0);var u=n0(t),c=(0,X._)(nZ(u,sc),2),l=c[0],d=c[1],p=sj(s,r,l);return d?sD(p,d):p}(u,s.input,f):sB(f),[4,function(e,t,r,n){return(0,Y._)(function(e,t,r,n){var a,i,o,s,u,c,l;return(0,K._)(this,function(d){switch(d.label){case 0:var p;if(a=t.networkCaptureBodies,i=t.networkResponseHeaders,!e&&void 0!==n)return[2,sB(n)];if(o=r?sW(r.headers,i):{},!r||!a&&void 0!==n)return[2,sj(o,n,void 0)];return[4,(p=r,(0,Y._)(function(){var e,t;return(0,K._)(this,function(r){switch(r.label){case 0:if(!(e=function(e){try{return e.clone()}catch(e){si&&sc.exception(e,"Failed to clone response body")}}(p)))return[2,[void 0,"BODY_PARSE_ERROR"]];r.label=1;case 1:var n;return r.trys.push([1,3,,4]),[4,(n=e,new Promise(function(e,t){var r,a=rp(function(){return t(Error("Timeout while trying to read response body"))},500);(r=n,(0,Y._)(function(){return(0,K._)(this,function(e){switch(e.label){case 0:return[4,r.text()];case 1:return[2,e.sent()]}})})()).then(function(t){return e(t)},function(e){return t(e)}).finally(function(){return clearTimeout(a)})}))];case 2:return[2,[r.sent()]];case 3:if(t=r.sent(),(0,eG._)(t,Error)&&t.message.indexOf("Timeout")>-1)return si&&sc.warn("Parsing text body from response timed out"),[2,[void 0,"BODY_PARSE_TIMEOUT"]];return si&&sc.exception(t,"Failed to get text body from response"),[2,[void 0,"BODY_PARSE_ERROR"]];case 4:return[2]}})})())];case 1:if(u=(s=X._.apply(void 0,[d.sent(),2]))[0],c=s[1],l=function(e,t){var r=t.networkCaptureBodies,n=t.responseBodySize,a=t.captureDetails,i=t.headers;try{var o=(null==e?void 0:e.length)&&void 0===n?sN(e):n;if(!a)return sB(o);if(r)return sj(i,o,e);return sj(i,o,void 0)}catch(e){return si&&sc.exception(e,"Failed to serialize response body"),sj(i,n,void 0)}}(u,{networkCaptureBodies:a,responseBodySize:n,captureDetails:e,headers:o}),c)return[2,sD(l,c)];return[2,l]}})}).apply(this,arguments)}(v,u,s.response,h)];case 1:return g=y.sent(),[2,{startTimestamp:r,endTimestamp:a,url:c,method:l,statusCode:p,request:m,response:g}]}})})())];case 1:return n=sU("resource.fetch",i.sent()),sM(e.replay,n),[3,3];case 2:return a=i.sent(),si&&sc.exception(a,"Failed to capture fetch breadcrumb"),[3,3];case 3:return[2]}})})())}
2catch(e){si&&sc.exception(e,"Error when enriching network breadcrumb")}}(u,e,t)})}catch(e){}}(e);var n=Object.assign(function(t,r){if(e.session&&sb(e.session,{maxReplayDuration:e.getOptions().maxReplayDuration,sessionIdleExpire:e.timeouts.sessionIdleExpire})&&sO(),!e.isEnabled()||e.isPaused())return t;if("replay_event"===t.type)return delete t.breadcrumbs,t;if(t.type&&!sI(t)&&!sC(t))return t;if(!e.checkAndHandleExpiredSession())return sO(),t;if(sC(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(function(){return!t.timestamp||(e.throttledAddEvent({type:iY.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)}),t;if(!t.type&&(null==(i=t.exception)||null==(a=i.values)?void 0:a.length)&&null!=(o=r.originalException)&&o.__rrweb__&&!e.getOptions()._experiments.captureExceptions)return si&&sc.log("Ignoring error from rrweb internals",t),null;var n,a,i,o,s="buffer"===e.recordingMode&&t.message!==az&&!!t.exception&&!t.type&&sm(e.getOptions().errorSampleRate);if((s||"session"===e.recordingMode)&&(t.tags=(0,g._)((0,c._)({},t.tags),{replayId:e.getSessionId()})),s&&"buffer"===e.recordingMode&&(null==(n=e.session)?void 0:n.sampled)==="buffer"){var u=e.session;u.dirty=!0,e.getOptions().stickySession&&sg(u)}return t},{id:"Replay"});(0,v.addEventProcessor)(n),r&&(r.on("beforeSendEvent",function(t){var r,n,a,i,o,s;e.isEnabled()&&!t.type&&(r=e,n=t,s=null==(o=n.exception)||null==(i=o.values)||null==(a=i[0])?void 0:a.value,"string"==typeof s&&(s.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||s.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&oK(r,o3({category:"replay.hydrate-error",data:{url:e1()}})))}),r.on("afterSendEvent",function(t,r){if(e.isEnabled()&&(!t.type||sI(t))){var n=r.statusCode;if(n&&!(n<200)&&!(n>=300)){if(sI(t)){return void(a=e,i=t,sR(a,null==(s=i.contexts)||null==(o=s.trace)?void 0:o.trace_id,i.transaction))}var a,i,o,s,u,c=e,l=t,d=c.getContext();if(l.event_id&&d.errorIds.size<100&&d.errorIds.add(l.event_id),"buffer"===c.recordingMode&&(null==(u=l.tags)?void 0:u.replayId)){var p=c.getOptions().beforeErrorSampling;("function"!=typeof p||p(l))&&rp(function(){return(0,Y._)(function(){var e;return(0,K._)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,c.sendBufferedReplayOrFlush()];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),c.handleException(e),[3,3];case 3:return[2]}})})()})}}}}),r.on("createDsc",function(t){var r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)}),r.on("processSegmentSpan",function(t){e.isEnabled()&&sR(e,t.trace_id,t.name||void 0)}),r.on("spanStart",function(t){e.lastActiveSpan=t}),r.on("spanEnd",function(t){e.lastActiveSpan=t}),r.on("beforeSendFeedback",function(t,r){return(0,Y._)(function(){var n,a;return(0,K._)(this,function(i){switch(i.label){case 0:if(a=e.getSessionId(),!((null==r?void 0:r.includeReplay)&&e.isEnabled()&&a&&(null==(n=t.contexts)?void 0:n.feedback)))return[3,3];if("api"!==t.contexts.feedback.source)return[3,2];return[4,e.sendBufferedReplayOrFlush()];case 1:i.sent(),i.label=2;case 2:t.contexts.feedback.replay_id=a,i.label=3;case 3:return[2]}})})()}),r.on("openFeedbackWidget",function(){return(0,Y._)(function(){return(0,K._)(this,function(t){switch(t.label){case 0:return[4,e.sendBufferedReplayOrFlush()];case 1:return t.sent(),[2]}})})()}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function r(e){e.entries.forEach(t)}var n=[];return["navigation","paint","resource"].forEach(function(e){n.push(ns(e,r))}),n.push(ni(o7(st,e)),na(o7(sr,e)),no(o7(sn,e))),function(){n.forEach(function(e){return e()})}}(this)}},{key:"_removeListeners",value:function(){try{aW.document.removeEventListener("visibilitychange",this._handleVisibilityChange),aW.removeEventListener("blur",this._handleWindowBlur),aW.removeEventListener("focus",this._handleWindowFocus),aW.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}}
2,{key:"_doChangeToBackgroundTasks",value:function(e){if(this.session){if(sb(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire}))return void sO();e&&this._createCustomBreadcrumb(e),this.conditionalFlush()}}},{key:"_doChangeToForegroundTasks",value:function(e){if(this.session){if(!this.checkAndHandleExpiredSession()){si&&sc.log("Document has become active, but session has expired");return}e&&this._createCustomBreadcrumb(e)}}},{key:"_updateUserActivity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastActivity=e}},{key:"_updateSessionActivity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}},{key:"_createCustomBreadcrumb",value:function(e){var t=this;this.addUpdate(function(){t.throttledAddEvent({type:iY.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}},{key:"_addPerformanceEntries",value:function(){var e=this.performanceEntries.map(o9).filter(Boolean).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){var t=this._context.initialTimestamp/1e3;e=e.filter(function(e){return e.start>=t})}return Promise.all(sP(this,e))}},{key:"_clearContext",value:function(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.segmentNames.clear(),this._context.urls=[]}},{key:"_updateInitialTimestampFromEventBuffer",value:function(){var e=this.session,t=this.eventBuffer;if(e&&t&&!this._requiresManualStart&&!e.segmentId){var r=t.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}}},{key:"_popEventContext",value:function(){var e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),segmentNames:Array.from(this._context.segmentNames),urls:this._context.urls};return this._clearContext(),e}},{key:"_runFlush",value:function(){return(0,Y._)(function(){var e,t,r,n,a,i,o,s,u,l;return(0,K._)(this,function(d){switch(d.label){case 0:if(e=this,r=this.getSessionId(),!this.session||!this.eventBuffer||!r)return si&&sc.error("No session or eventBuffer found to flush."),[2];return[4,this._addPerformanceEntries()];case 1:var p;if(d.sent(),!(null==(t=this.eventBuffer)?void 0:t.hasEvents))return[2];return[4,(p=this,(0,Y._)(function(){return(0,K._)(this,function(e){try{var t,r,n,a,i;return[2,Promise.all(sP(p,[(r=(t=aW.performance.memory).jsHeapSizeLimit,n=t.totalJSHeapSize,a=t.usedJSHeapSize,i=Date.now()/1e3,{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:r,totalJSHeapSize:n,usedJSHeapSize:a}}})]))]}catch(e){return[2,[]]}})})())];case 2:if(d.sent(),!this.eventBuffer||r!==this.getSessionId())return[2];d.label=3;case 3:if(d.trys.push([3,6,,7]),this._updateInitialTimestampFromEventBuffer(),(n=Date.now())-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new sJ;return a=this._popEventContext(),i=this.session.segmentId++,this._maybeSaveSession(),[4,this.eventBuffer.finish()];case 4:return o=d.sent(),[4,function e(t){return(0,Y._)(function(t){var r,n,a,i,o,s=arguments;return(0,K._)(this,function(u){switch(u.label){case 0:if(r=s.length>1&&void 0!==s[1]?s[1]:{count:0,interval:5e3},n=t.recordingData,a=t.onError,!n.length)return[2];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,function(e){return(0,Y._)(function(e){var t,r,n,a,i,o,s,u,l,d,p,f,h,v,y,_,S,b,E,T,k,w,R;return(0,K._)(this,function(I){switch(I.label){case 0:if(t=e.recordingData,r=e.replayId,n=e.segmentId,a=e.eventContext,i=e.timestamp,o=e.session,s=function(e){var t,r=e.recordingData,n=e.headers,a="".concat(JSON.stringify(n),"\n");if("string"==typeof r)t="".concat(a).concat(r);else{var i=new TextEncoder().encode(a);(t=new Uint8Array(i.length+r.length)).set(i),t.set(r,i.length)}return t}({recordingData:t,headers:{segment_id:n}}),u=a.urls,l=a.errorIds,d=a.traceIds,p=a.segmentNames,f=a.initialTimestamp,h=(0,m.getClient)(),v=(0,m.getCurrentScope)(),y=null==h?void 0:h.getTransport(),_=null==h?void 0:h.getDsn(),!h||!y||!_||!o.sampled)return[2,Promise.resolve({})];return S={type:"replay_event",replay_start_timestamp:f/1e3,timestamp:i/1e3,error_ids:l,trace_ids:d,segment_names:p,urls:u,replay_id:r,segment_id:n,replay_type:o.sampled},[4,function(e){return(0,Y._)(function(e){var t,r,n,a,i,o,s,u,l,d,p;return(0,K._)(this,function(f){switch(f.label){case 0:return t=e.client,r=e.scope,n=e.replayId,a=e.event,i={event_id:n,integrations:"object"!==(0,ep._)(t._integrations)||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations)},t.emit("preprocessEvent",a,i),[4,(0,eE.prepareEvent)(t.getOptions(),a,i,r,t,(0,m.getIsolationScope)())];case 1:if(!(o=f.sent()))return[2,null];return t.emit("postprocessEvent",o,i),o.platform=o.platform||"javascript",l=(u=(null==(s=t.getSdkMetadata())?void 0:s.sdk)||{}).name,d=u.version,p=u.settings,o.sdk=(0,g._)((0,c._)({},o.sdk),{name:l||"sentry.javascript.unknown",version:d||"0.0.0",settings:p}),[2,o]}})}).apply(this,arguments)}({scope:v,client:h,replayId:r,event:S})];case 1:var C,x,O;if(!(b=I.sent()))return h.recordDroppedEvent("event_processor","replay"),si&&sc.log("An event processor returned `null`, will not send event."),[2,Promise.resolve({})];delete b.sdkProcessingMetadata,C=s,x=_,O=h.getOptions().tunnel,E=(0,en.createEnvelope)((0,en.createEventEnvelopeHeaders)(b,(0,en.getSdkMetadataForEnvelopeHeader)(b),O,x),[[{type:"replay_event"},b],[{type:"replay_recording",length:"string"==typeof C?new TextEncoder().encode(C).length:C.length},C]]),I.label=2;case 2:return I.trys.push([2,4,,5]),[4,y.send(E)];case 3:return T=I.sent(),[3,5];case 4:k=I.sent(),w=Error(az);try{w.cause=k}catch(e){}throw w;case 5:if(eg(R=ey({},T),"replay"))throw new sY(R);if("number"==typeof T.statusCode&&(T.statusCode<200||T.statusCode>=300))throw new sG(T.statusCode);return[2,T]}})}).apply(this,arguments)}(t)];case 2:return u.sent(),[2,!0];case 3:if(i=u.sent(),(0,eG._)(i,sG)||(0,eG._)(i,sY))throw i;if((0,v.setContext)("Replays",{_retryCount:r.count}),a&&a(i),r.count>=3){o=Error("".concat(az," - max retries exceeded"));try{o.cause=i}catch(e){}throw o}return r.interval*=++r.count,[2,new Promise(function(n,a){rp(function(){return(0,Y._)(function(){return(0,K._)(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,e(t,r)];case 1:return i.sent(),n(!0),[3,3];case 2:return a(i.sent()),[3,3];case 3:return[2]}})})()},r.interval)})];case 4:return[2]}})}).apply(this,arguments)}({replayId:r,recordingData:o,segmentId:i,eventContext:a,session:this.session,timestamp:n,onError:function(t){return e.handleException(t)}})];case 5:return d.sent(),[3,7];case 6:return s=d.sent(),this.handleException(s),this.stop({reason:"sendError"}),(u=(0,m.getClient)())&&(l=(0,eG._)(s,sY)?"ratelimit_backoff":(0,eG._)(s,sJ)?"invali
2d":"send_error",u.recordDroppedEvent(l,"replay")),[3,7];case 7:return[2]}})}).call(this)}},{key:"_flush",value:function(){return(0,Y._)(function(){var e,t,r,n,a,i,o,s,u,c=arguments;return(0,K._)(this,function(l){switch(l.label){case 0:if(t=void 0!==(e=(c.length>0&&void 0!==c[0]?c[0]:{}).force)&&e,!this._isEnabled&&!t)return[2];if(!this.checkAndHandleExpiredSession())return si&&sc.error("Attempting to finish replay event after session expired."),[2];if(!this.session)return[2];if(r=this.session.started,n=Date.now()-r,this._debouncedFlush.cancel(),a=n<this._options.minReplayDuration,i=n>this._options.maxReplayDuration+5e3,a||i)return si&&sc.log("Session duration (".concat(Math.floor(n/1e3),"s) is too ").concat(a?"short":"long",", not sending replay.")),a&&this._debouncedFlush(),[2];(o=this.eventBuffer)&&0===this.session.segmentId&&!o.hasCheckout&&si&&sc.log("Flushing initial segment without checkout."),s=!!this._flushLock,this._flushLock||(this._flushLock=this._runFlush()),l.label=1;case 1:return l.trys.push([1,3,4,5]),[4,this._flushLock];case 2:return l.sent(),[3,5];case 3:return u=l.sent(),this.handleException(u),[3,5];case 4:return this._flushLock=void 0,s&&this._debouncedFlush(),[7];case 5:return[2]}})}).apply(this,arguments)}},{key:"_maybeSaveSession",value:function(){this.session&&this._options.stickySession&&sg(this.session)}},{key:"_onMutationHandler",value:function(e){var t=this._options._experiments.ignoreMutations;if((null==t?void 0:t.length)&&e.some(function(e){var r=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}(e.target),n=t.join(",");return null==r?void 0:r.matches(n)}))return!1;var r=e.length,n=this._options.mutationLimit,a=this._options.mutationBreadcrumbLimit,i=n&&r>n;if(r>a||i){var o=o3({category:"replay.mutations",data:{count:r,limit:i}});this._createCustomBreadcrumb(o)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}]),e}();function sV(e,t){return(0,l._)(e).concat((0,l._)(t)).join(",")}var s$='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',sQ=["content-length","content-type","accept"],sZ=Symbol.for("sentry__originalRequestBody"),s0=!1,s1=!1,s2=function(){function e(){var t,r,n,a,i,o,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=s.flushMinDelay,d=s.flushMaxDelay,p=s.minReplayDuration,f=s.maxReplayDuration,h=s.stickySession,v=s.useCompression,m=s.workerUrl,y=s._experiments,_=void 0===y?{}:y,S=s.maskAllText,b=void 0===S||S,E=s.maskAllInputs,T=void 0===E||E,k=s.blockAllMedia,w=s.mutationBreadcrumbLimit,R=s.mutationLimit,I=s.slowClickTimeout,C=s.slowClickIgnoreSelectors,x=s.networkDetailAllowUrls,O=s.networkDetailDenyUrls,A=s.networkCaptureBodies,P=s.networkRequestHeaders,M=s.networkResponseHeaders,N=s.mask,L=s.maskAttributes,D=void 0===L?["title","placeholder","aria-label"]:L,U=s.unmask,B=s.block,j=s.unblock,F=s.ignore,W=s.maskFn,q=s.beforeAddRecordingEvent,z=s.beforeErrorSampling,G=s.onError,Y=s.attachRawBodyFromRequest;(0,H._)(this,e),this.name="Replay";var J=(r=(t={mask:void 0===N?[]:N,unmask:void 0===U?[]:U,block:void 0===B?[]:B,unblock:void 0===j?[]:j,ignore:void 0===F?[]:F}).mask,n=t.unmask,a=t.block,i=t.unblock,o=t.ignore,{maskTextSelector:sV(r,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:sV(n,[]),blockSelector:sV(a,[".sentry-block","[data-sentry-block]"].concat((0,l._)(["base","iframe[srcdoc]:not([src])"]))),unblockSelector:sV(i,[]),ignoreSelector:sV(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])});if(this._recordingOptions=(0,g._)((0,c._)({maskAllInputs:T,maskAllText:b,maskInputOptions:{password:!0},maskTextFn:W,maskInputFn:W,maskAttributeFn:function(e,t,r){return function(e){var t=e.el,r=e.key,n=e.maskAttributes,a=e.maskAllText,i=e.privacyOptions,o=e.value;if(i.unmaskTextSelector&&t.matches(i.unmaskTextSelector))return o;var s=n.includes(r),u=a&&"value"===r&&"INPUT"===t.tagName&&["submit","button"].includes(t.getAttribute("type")||"");return s||u?o.replace(/[\S]/g,"*"):o}({maskAttributes:D,maskAllText:b,privacyOptions:J,key:e,value:t,el:r})}},J),{slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:function(e){try{e.__rrweb__=!0}catch(e){}},recordCrossOriginIframes:!!_.recordCrossOriginIframes}),this._initialOptions={flushMinDelay:void 0===u?5e3:u,flushMaxDelay:void 0===d?5500:d,minReplayDuration:Math.min(void 0===p?4999:p,5e4),maxReplayDuration:Math.min(void 0===f?36e5:f,36e5),stickySession:void 0===h||h,useCompression:void 0===v||v,workerUrl:m,blockAllMedia:void 0===k||k,maskAllInputs:T,maskAllText:b,mutationBreadcrumbLimit:void 0===w?750:w,mutationLimit:void 0===R?1e4:R,slowClickTimeout:void 0===I?7e3:I,slowClickIgnoreSelectors:void 0===C?[]:C,networkDetailAllowUrls:void 0===x?[]:x,networkDetailDenyUrls:void 0===O?[]:O,networkCaptureBodies:void 0===A||A,networkRequestHeaders:s3(void 0===P?[]:P),networkResponseHeaders:s3(void 0===M?[]:M),beforeAddRecordingEvent:q,beforeErrorSampling:z,onError:G,attachRawBodyFromRequest:void 0!==Y&&Y,_experiments:_},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?"".concat(this._recordingOptions.blockSelector,",").concat(s$):s$,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&(0,ea.isBrowser)())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}return(0,W._)(e,[{key:"_isInitialized",get:function(){return s0},set:function(e){s0=e}},{key:"afterAllSetup",value:function(e){(0,ea.isBrowser)()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&function(){if("u">typeof Request&&!s1){var e=Request;try{var t=function(t,r){var n=new e(t,r);return(null==r?void 0:r.body)!=null&&(n[sZ]=r.body),n};t.prototype=e.prototype,p.GLOBAL_OBJ.Request=t,s1=!0}catch(e){}}}(),this._setup(e),this._initialize(e))}},{key:"start",value:function(){this._replay&&this._replay.start()}}
2,{key:"startBuffering",value:function(){this._replay&&this._replay.startBuffering()}},{key:"stop",value:function(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode,reason:"manual"}):Promise.resolve()}},{key:"flush",value:function(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}},{key:"getReplayId",value:function(e){var t;if(null==(t=this._replay)?void 0:t.isEnabled())return this._replay.getSessionId(e)}},{key:"getRecordingMode",value:function(){var e;if(null==(e=this._replay)?void 0:e.isEnabled())return this._replay.recordingMode}},{key:"processSpan",value:function(e){var t=this.getReplayId(!0);t&&(tJ(e,{"sentry.replay_id":t}),"buffer"===this.getRecordingMode()&&tJ(e,{"sentry._internal.replay_is_buffering":!0}))}},{key:"_initialize",value:function(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}},{key:"_setup",value:function(e){var t,r,n,a,i,o=(t=this._initialOptions,r=e.getOptions(),n=(0,c._)({sessionSampleRate:0,errorSampleRate:0},t),a=(0,eb.parseSampleRate)(r.replaysSessionSampleRate),i=(0,eb.parseSampleRate)(r.replaysOnErrorSampleRate),null==a&&null==i&&(0,d.consoleSandbox)(function(){console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=a&&(n.sessionSampleRate=a),null!=i&&(n.errorSampleRate=i),n);this._replay=new sK({options:o,recordingOptions:this._recordingOptions})}},{key:"_maybeLoadFromReplayCanvasIntegration",value:function(e){try{var t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch(e){}}}]),e}();function s3(e){return(0,l._)(sQ).concat((0,l._)(e.map(function(e){return e.toLowerCase()})))}e.s(["replayIntegration",0,function(e){return new s2(e)}],26729)},998544,(e,t,r)=>{"use strict";var n=e.r(82554),a=e.r(533006),i=e.r(795565),o=e.r(485302);r._=function(e){return n._(e)||a._(e)||o._(e)||i._()}},535192,(e,t,r)=>{"use strict";e.r(621991);var n=e.r(368996);Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addLocale",{enumerable:!0,get:function(){return a}}),e.r(82823);var a=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e};("function"==typeof r.default||"object"===n._(r.default)&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},827018,(e,t,r)=>{"use strict";var n=e.r(368996);function a(e,t){return e}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removeLocale",{enumerable:!0,get:function(){return a}}),e.r(572463),("function"==typeof r.default||"object"===n._(r.default)&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},885305,(e,t,r)=>{"use strict";e.r(621991);var n=e.r(368996);Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"detectDomainLocale",{enumerable:!0,get:function(){return a}});var a=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r]};("function"==typeof r.default||"object"===n._(r.default)&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},741961,(e,t,r)=>{"use strict";var n=e.r(368996);Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"resolvePromiseWithTimeout",{enumerable:!0,get:function(){return i}});var a=e.r(808341);function i(e,t,r){return new Promise(function(r,n){var i=!1;e.then(function(e){i=!0,r(e)}).catch(n),(0,a.requestIdleCallback)(function(){return setTimeout(function(){i||n(t)},3800)})})}("function"==typeof r.default||"object"===n._(r.default)&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},490758,(e,t,r)=>{"use strict";var n,a=e.r(368996);
2Object.defineProperty(r,"__esModule",{value:!0});var i={createRouteLoader:function(){return _},getClientBuildManifest:function(){return g},isAssetError:function(){return v},markAssetError:function(){return h}};for(var o in i)Object.defineProperty(r,o,{enumerable:!0,get:i[o]});e.r(555682),e.r(957473);var s=e.r(87831),u=e.r(808341),c=e.r(543369),l=e.r(309885),d=e.r(741961);function p(e,t,r){var n,a=t.get(e);if(a)return"future"in a?a.future:Promise.resolve(a);var i=new Promise(function(e){n=e});return t.set(e,{resolve:n,future:i}),r?r().then(function(e){return n(e),e}).catch(function(r){throw t.delete(e),r}):i}var f=Symbol("ASSET_LOAD_ERROR");function h(e){return Object.defineProperty(e,f,{})}function v(e){return e&&f in e}var m=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}();function g(){if(self.__BUILD_MANIFEST)return Promise.resolve(self.__BUILD_MANIFEST);var e=new Promise(function(e){var t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=function(){e(self.__BUILD_MANIFEST),t&&t()}});return(0,d.resolvePromiseWithTimeout)(e,h(Object.defineProperty(Error("Failed to load client build manifest"),"__NEXT_ERROR_CODE",{value:"E273",enumerable:!1,configurable:!0})),n)}function y(e,t){return g().then(function(r){if(!(t in r))throw h(Object.defineProperty(Error("Failed to lookup route: ".concat(t)),"__NEXT_ERROR_CODE",{value:"E446",enumerable:!1,configurable:!0}));var n=r[t].map(function(t){return e+"/_next/"+(0,l.encodeURIPath)(t)});return{scripts:n.filter(function(e){return e.endsWith(".js")}).map(function(e){return(0,s.__unsafeCreateTrustedScriptURL)(e)+(0,c.getAssetTokenQuery)()}),css:n.filter(function(e){return e.endsWith(".css")}).map(function(e){return e+(0,c.getAssetTokenQuery)()})}})}function _(e){var t=new Map,r=new Map,a=new Map,i=new Map;function o(e){var t,n=r.get(e.toString());return n?n:document.querySelector('script[src^="'.concat(e,'"]'))?Promise.resolve():(r.set(e.toString(),n=new Promise(function(r,n){(t=document.createElement("script")).onload=r,t.onerror=function(){return n(h(Object.defineProperty(Error("Failed to load script: ".concat(e)),"__NEXT_ERROR_CODE",{value:"E74",enumerable:!1,configurable:!0})))},t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n)}function s(e){var t=a.get(e);return t||a.set(e,t=fetch(e,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw Object.defineProperty(Error("Failed to load stylesheet: ".concat(e)),"__NEXT_ERROR_CODE",{value:"E189",enumerable:!1,configurable:!0});return t.text().then(function(t){return{href:e,content:t}})}).catch(function(e){throw h(e)})),t}return{whenEntrypoint:function(e){return p(e,t)},onEntrypoint:function(e,r){(r?Promise.resolve().then(function(){return r()}).then(function(e){return{component:e&&e.default||e,exports:e}},function(e){return{error:e}}):Promise.resolve(void 0)).then(function(r){var n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),i.delete(e))})},loadRoute:function(r,a){var u=this;return p(r,i,function(){var i;return(0,d.resolvePromiseWithTimeout)(y(e,r).then(function(e){var n=e.scripts,a=e.css;return Promise.all([t.has(r)?[]:Promise.all(n.map(o)).then(function(e){return e}),Promise.all(a.map(s))])}).then(function(e){return u.whenEntrypoint(r).then(function(t){return{entrypoint:t,styles:e[1]}})}),h(Object.defineProperty(Error("Route did not complete loading: ".concat(r)),"__NEXT_ERROR_CODE",{value:"E12",enumerable:!1,configurable:!0})),n).then(function(e){var t=e.entrypoint,r=Object.assign({styles:e.styles},t);return"error"in t?t:r}).catch(function(e){if(a)throw e;return{error:e}}).finally(function(){return null==i?void 0:i()})})},prefetch:function(t){var r,n=this;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():y(e,t).then(function(e){return Promise.all(m?e.scripts.map(function(e){var t,r,n;return t=e.toString(),r="script",new Promise(function(e,a){var i='\n link[rel="prefetch"][href^="'.concat(t,'"],\n link[rel="preload"][href^="').concat(t,'"],\n script[src^="').concat(t,'"]');if(document.querySelector(i))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=function(){return a(h(Object.defineProperty(Error("Failed to prefetch: ".concat(t)),"__NEXT_ERROR_CODE",{value:"E268",enumerable:!1,
2configurable:!0})))},n.href=t,document.head.appendChild(n)})}):[])}).then(function(){(0,u.requestIdleCallback)(function(){return n.loadRoute(t,!0).catch(function(){})})}).catch(function(){})}}}("function"==typeof r.default||"object"===a._(r.default)&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},767978,(e,t,r)=>{"use strict";var n=e.r(344086),a=e.r(368996);Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return s}}),e.r(555682);var i=e.r(843476);e.r(271645);var o=e.r(90558);function s(e){function t(t){return(0,i.jsx)(e,n._({router:(0,o.useRouter)()},t))}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof r.default||"object"===a._(r.default)&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},90558,(e,t,r)=>{"use strict";var n=e.r(824687),a=e.r(621991),i=e.r(368996);Object.defineProperty(r,"__esModule",{value:!0});var o={Router:function(){return l.default},createRouter:function(){return S},default:function(){return y},makePublicRouterInstance:function(){return b},useRouter:function(){return _},withRouter:function(){return f.default}};for(var s in o)Object.defineProperty(r,s,{enumerable:!0,get:o[s]});var u=e.r(555682),c=u._(e.r(271645)),l=u._(e.r(509793)),d=e.r(65856),p=u._(e.r(302023)),f=u._(e.r(767978)),h={router:null,readyCallbacks:[],ready:function(e){if(this.router)return e();"u">typeof window&&this.readyCallbacks.push(e)}},v=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],m=["push","replace","reload","back","prefetch","beforePopState"];function g(){if(!h.router)throw Object.defineProperty(Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n'),"__NEXT_ERROR_CODE",{value:"E1044",enumerable:!1,configurable:!0});return h.router}Object.defineProperty(h,"events",{get:function(){return l.default.events}}),v.forEach(function(e){Object.defineProperty(h,e,{get:function(){return g()[e]}})}),m.forEach(function(e){h[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=g();return i[e].apply(i,a._(r))}}),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach(function(e){h.ready(function(){l.default.events.on(e,function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i="on".concat(e.charAt(0).toUpperCase()).concat(e.substring(1));if(h[i])try{h[i].apply(h,a._(r))}catch(e){console.error("Error when running the Router event: ".concat(i)),console.error((0,p.default)(e)?"".concat(e.message,"\n").concat(e.stack):e+"")}})})});var y=h;function _(){var e=c.default.useContext(d.RouterContext);if(!e)throw Object.defineProperty(Error("NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted"),"__NEXT_ERROR_CODE",{value:"E509",enumerable:!1,configurable:!0});return e}function S(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.router=n._(l.default,a._(t)),h.readyCallbacks.forEach(function(e){return e()}),h.readyCallbacks=[],h.router}function b(e){var t={},r=!0,n=!1,o=void 0;try{for(var s,u=v[Symbol.iterator]();!(r=(s=u.next()).done);r=!0){var c=s.value;if("object"===i._(e[c])){t[c]=Object.assign(Array.isArray(e[c])?[]:{},e[c]);continue}t[c]=e[c]}}catch(e){n=!0,o=e}finally{try{r||null==u.return||u.return()}finally{if(n)throw o}}return t.events=l.default.events,m.forEach(function(r){t[r]=function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return e[r].apply(e,a._(n))}}),t}("function"==typeof r.default||"object"===i._(r.default)&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},565909,(e,t,r)=>{t.exports=e.r(90558)},873423,(e,t,r)=>{var n=e.r(115240),a=e.r(368996);!function(){"use strict";"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab="/ROOT/node_modules/next/dist/compiled/path-to-regexp/");var e,r,i,o,s,u,c,l,d,p,f={};e=function(e){for(var t=[],r=0;r<e.length;){var n=e[r];if("*"===n||"+"===n||"?"===n){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if("\\"===n){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if("{"===n){t.push({type:"OPEN",index:r,value:e[r++]});continue}if("}"===n){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(":"===n){for(var a="",i=r+1;i<e.length;){var o=e.charCodeAt(i);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||95===o){a+=e[i++];continue}break}if(!a)throw TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:a}),r=i;continue}if("("===n){var s=1,u="",i=r+1;if("?"===e[i])throw TypeError('Pattern cannot start with "?" at '.concat(i));for(;i<e.length;){if("\\"===e[i]){u+=e[i++]+e[i++];continue}
2if(")"===e[i]){if(0==--s){i++;break}}else if("("===e[i]&&(s++,"?"!==e[i+1]))throw TypeError("Capturing groups are not allowed at ".concat(i));u+=e[i++]}if(s)throw TypeError("Unbalanced pattern at ".concat(r));if(!u)throw TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:u}),r=i;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t},r=function(t,r){void 0===r&&(r={});for(var n=e(t),a=r.prefixes,i=void 0===a?"./":a,o=r.delimiter,u=void 0===o?"/#?":o,c=[],l=0,d=0,p="",f=function(e){if(d<n.length&&n[d].type===e)return n[d++].value},h=function(e){var t=f(e);if(void 0!==t)return t;var r=n[d],a=r.type,i=r.index;throw TypeError("Unexpected ".concat(a," at ").concat(i,", expected ").concat(e))},v=function(){for(var e,t="";e=f("CHAR")||f("ESCAPED_CHAR");)t+=e;return t},m=function(e){for(var t=0;t<u.length;t++){var r=u[t];if(e.indexOf(r)>-1)return!0}return!1},g=function(e){var t=c[c.length-1],r=e||(t&&"string"==typeof t?t:"");if(t&&!r)throw TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!r||m(r)?"[^".concat(s(u),"]+?"):"(?:(?!".concat(s(r),")[^").concat(s(u),"])+?")};d<n.length;){var y=f("CHAR"),_=f("NAME"),S=f("PATTERN");if(_||S){var b=y||"";-1===i.indexOf(b)&&(p+=b,b=""),p&&(c.push(p),p=""),c.push({name:_||l++,prefix:b,suffix:"",pattern:S||g(b),modifier:f("MODIFIER")||""});continue}var E=y||f("ESCAPED_CHAR");if(E){p+=E;continue}if(p&&(c.push(p),p=""),f("OPEN")){var b=v(),T=f("NAME")||"",k=f("PATTERN")||"",w=v();h("CLOSE"),c.push({name:T||(k?l++:""),pattern:T&&!k?g(b):k,prefix:b,suffix:w,modifier:f("MODIFIER")||""});continue}h("END")}return c},i=function(e,t){void 0===t&&(t={});var r=u(t),n=t.encode,i=void 0===n?function(e){return e}:n,o=t.validate,s=void 0===o||o,c=e.map(function(e){if((void 0===e?"undefined":a._(e))==="object")return new RegExp("^(?:".concat(e.pattern,")$"),r)});return function(t){for(var r="",n=0;n<e.length;n++){var a=e[n];if("string"==typeof a){r+=a;continue}var o=t?t[a.name]:void 0,u="?"===a.modifier||"*"===a.modifier,l="*"===a.modifier||"+"===a.modifier;if(Array.isArray(o)){if(!l)throw TypeError('Expected "'.concat(a.name,'" to not repeat, but got an array'));if(0===o.length){if(u)continue;throw TypeError('Expected "'.concat(a.name,'" to not be empty'))}for(var d=0;d<o.length;d++){var p=i(o[d],a);if(s&&!c[n].test(p))throw TypeError('Expected all "'.concat(a.name,'" to match "').concat(a.pattern,'", but got "').concat(p,'"'));r+=a.prefix+p+a.suffix}continue}if("string"==typeof o||"number"==typeof o){var p=i(String(o),a);if(s&&!c[n].test(p))throw TypeError('Expected "'.concat(a.name,'" to match "').concat(a.pattern,'", but got "').concat(p,'"'));r+=a.prefix+p+a.suffix;continue}if(!u){var f=l?"an array":"a string";throw TypeError('Expected "'.concat(a.name,'" to be ').concat(f))}}return r}},o=function(e,t,r){void 0===r&&(r={});var n=r.decode,a=void 0===n?function(e){return e}:n;return function(r){var n=e.exec(r);if(!n)return!1;for(var i=n[0],o=n.index,s=Object.create(null),u=1;u<n.length;u++)!function(e){if(void 0!==n[e]){var r=t[e-1];"*"===r.modifier||"+"===r.modifier?s[r.name]=n[e].split(r.prefix+r.suffix).map(function(e){return a(e,r)}):s[r.name]=a(n[e],r)}}(u);return{path:i,index:o,params:s}}},s=function(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")},u=function(e){return e&&e.sensitive?"":"i"},c=function(e,t){if(!t)return e;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,a=r.exec(e.source);a;)t.push({name:a[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),a=r.exec(e.source);return e},l=function(e,t,r){var n=e.map(function(e){return p(e,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),u(r))},d=function(e,t,r){void 0===r&&(r={});for(var n=r.strict,a=void 0!==n&&n,i=r.start,o=r.end,c=r.encode,l=void 0===c?function(e){return e}:c,d=r.delimiter,p=r.endsWith,f="[".concat(s(void 0===p?"":p),"]|$"),h="[".concat(s(void 0===d?"/#?":d),"]"),v=void 0===i||i?"^":"",m=0;m<e.length;m++){var g=e[m];if("string"==typeof g)v+=s(l(g));else{var y=s(l(g.prefix)),_=s(l(g.suffix));if(g.pattern)if(t&&t.push(g),y||_)if("+"===g.modifier||"*"===g.modifier){var S="*"===g.modifier?"?":"";v+="(?:".concat(y,"((?:").concat(g.pattern,")(?:").concat(_).concat(y,"(?:").concat(g.pattern,"))*)").concat(_,")").concat(S)}else v+="(?:".concat(y,"(").concat(g.pattern,")").concat(_,")").concat(g.modifier);else{if("+"===g.modifier||"*"===g.modifier)throw TypeError('Can not repeat "'.concat(g.name,'" without a prefix and suffix'));v+="(".concat(g.pattern,")").concat(g.modifier)}else v+="(?:".concat(y).concat(_,")").concat(g.modifier)}}if(void 0===o||o)a||(v+="".concat(h,"?")),v+=r.endsWith?"(?=".concat(f,")"):"$";else{var b=e[e.length-1],E="string"==typeof b?h.indexOf(b[b.length-1])>-1:void 0===b;a||(v+="(?:".concat(h,"(?=").concat(f,"))?")),E||(v+="(?=".concat(h,"|").concat(f,")"))}return new RegExp(v,u(r))},p=function(e,t,a){return n._(e,RegExp)?c(e,t):Array.isArray(e)?l(e,t,a):d(r(e,a),t,a)}
2,Object.defineProperty(f,"__esModule",{value:!0}),f.pathToRegexp=f.tokensToRegexp=f.regexpToFunction=f.match=f.tokensToFunction=f.compile=f.parse=void 0,f.parse=r,f.compile=function(e,t){return i(r(e,t),t)},f.tokensToFunction=i,f.match=function(e,t){var r=[];return o(p(e,r,t),r,t)},f.regexpToFunction=o,f.tokensToRegexp=d,f.pathToRegexp=p,t.exports=f}()},268280,(e,t,r)=>{"use strict";var n=e.r(344086),a=e.r(204571),i=e.r(891470),o=e.r(368996);Object.defineProperty(r,"__esModule",{value:!0});var s={PARAM_SEPARATOR:function(){return c},hasAdjacentParameterIssues:function(){return l},normalizeAdjacentParameters:function(){return d},normalizeTokensForRegexp:function(){return p},stripNormalizedSeparators:function(){return f},stripParameterSeparators:function(){return h}};for(var u in s)Object.defineProperty(r,u,{enumerable:!0,get:s[u]});var c="_NEXTSEP_";function l(e){return"string"==typeof e&&!!(/\/\(\.{1,3}\):[^/\s]+/.test(e)||/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(e))}function d(e){var t=e;return(t=t.replace(/(\([^)]*\)):([^/\s]+)/g,"$1".concat(c,":$2"))).replace(/:([^:/\s)]+)(?=:)/g,":$1".concat(c))}function p(e){return e.map(function(e){return(void 0===e?"undefined":o._(e))==="object"&&null!==e&&"modifier"in e&&("*"===e.modifier||"+"===e.modifier)&&"prefix"in e&&"suffix"in e&&""===e.prefix&&""===e.suffix?a._(n._({},e),{prefix:"/"}):e})}function f(e){return e.replace(RegExp("\\)".concat(c),"g"),")")}function h(e){var t={},r=!0,n=!1,a=void 0;try{for(var o,s=Object.entries(e)[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var u=i._(o.value,2),l=u[0],d=u[1];"string"==typeof d?t[l]=d.replace(new RegExp("^".concat(c)),""):Array.isArray(d)?t[l]=d.map(function(e){return"string"==typeof e?e.replace(new RegExp("^".concat(c)),""):e}):t[l]=d}}catch(e){n=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw a}}return t}},475957,(e,t,r)=>{"use strict";var n=e.r(344086),a=e.r(204571);Object.defineProperty(r,"__esModule",{value:!0});var i={safeCompile:function(){return l},safePathToRegexp:function(){return c},safeRegexpToFunction:function(){return d},safeRouteMatcher:function(){return p}};for(var o in i)Object.defineProperty(r,o,{enumerable:!0,get:i[o]});var s=e.r(873423),u=e.r(268280);function c(e,t,r){if("string"!=typeof e)return(0,s.pathToRegexp)(e,t,r);var n=(0,u.hasAdjacentParameterIssues)(e),a=n?(0,u.normalizeAdjacentParameters)(e):e;try{return(0,s.pathToRegexp)(a,t,r)}catch(a){if(!n)try{var i=(0,u.normalizeAdjacentParameters)(e);return(0,s.pathToRegexp)(i,t,r)}catch(e){}throw a}}function l(e,t){var r=(0,u.hasAdjacentParameterIssues)(e),n=r?(0,u.normalizeAdjacentParameters)(e):e;try{var a=(0,s.compile)(n,t);if(r)return function(e){return(0,u.stripNormalizedSeparators)(a(e))};return a}catch(n){if(!r)try{var i=(0,u.normalizeAdjacentParameters)(e),o=(0,s.compile)(i,t);return function(e){return(0,u.stripNormalizedSeparators)(o(e))}}catch(e){}throw n}}function d(e,t){var r=(0,s.regexpToFunction)(e,t||[]);return function(e){var t=r(e);return!!t&&a._(n._({},t),{params:(0,u.stripParameterSeparators)(t.params)})}}function p(e){return function(t){var r=e(t);return!!r&&(0,u.stripParameterSeparators)(r)}}},841820,(e,t,r)=>{"use strict";var n=e.r(891470);Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getRouteMatcher",{enumerable:!0,get:function(){return o}});var a=e.r(718967),i=e.r(475957);function o(e){var t=e.re,r=e.groups;return(0,i.safeRouteMatcher)(function(e){var i=t.exec(e);if(!i)return!1;var o=function(e){try{return decodeURIComponent(e)}catch(e){throw Object.defineProperty(new a.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},s={},u=!0,c=!1,l=void 0;try{for(var d,p=Object.entries(r)[Symbol.iterator]();!(u=(d=p.next()).done);u=!0){var f=n._(d.value,2),h=f[0],v=f[1],m=i[v.pos];void 0!==m&&(v.repeat?s[h]=m.split("/").map(function(e){return o(e)}):s[h]=o(m))}}catch(e){c=!0,l=e}finally{try{u||null==p.return||p.return()}finally{if(c)throw l}}return s})}},849575,(e,t,r)=>{"use strict";var n=e.r(995075),a=e.r(882372);
2Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BloomFilter",{enumerable:!0,get:function(){return i}});var i=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e-4;n._(this,e),this.numItems=t,this.errorRate=r,this.numBits=Math.ceil(-(t*Math.log(r))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/t*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}return a._(e,[{key:"export",value:function(){return{numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray}}},{key:"import",value:function(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}},{key:"add",value:function(e){var t=this;this.getHashValues(e).forEach(function(e){t.bitArray[e]=1})}},{key:"contains",value:function(e){var t=this;return this.getHashValues(e).every(function(e){return t.bitArray[e]})}},{key:"getHashValues",value:function(e){for(var t=[],r=1;r<=this.numHashes;r++){var n=function(e){for(var t=0,r=0;r<e.length;r++)t=Math.imul(t^e.charCodeAt(r),0x5bd1e995),t^=t>>>13,t=Math.imul(t,0x5bd1e995);return t>>>0}("".concat(e).concat(r))%this.numBits;t.push(n)}return t}}],[{key:"from",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e-4,n=new e(t.length,r),a=!0,i=!1,o=void 0;try{for(var s,u=t[Symbol.iterator]();!(a=(s=u.next()).done);a=!0){var c=s.value;n.add(c)}}catch(e){i=!0,o=e}finally{try{a||null==u.return||u.return()}finally{if(i)throw o}}return n}}]),e}()},2160,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"escapeStringRegexp",{enumerable:!0,get:function(){return i}});var n=/[|\\{}()[\]^$+*?.-]/,a=/[|\\{}()[\]^$+*?.-]/g;function i(e){return n.test(e)?e.replace(a,"\\$&"):e}},816565,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getObjectClassLabel:function(){return i},isPlainObject:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function i(e){return Object.prototype.toString.call(e)}function o(e){if("[object Object]"!==i(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}},302023,(e,t,r)=>{"use strict";var n=e.r(368996);Object.defineProperty(r,"__esModule",{value:!0});var a={default:function(){return s},getProperError:function(){return u}};for(var i in a)Object.defineProperty(r,i,{enumerable:!0,get:a[i]});var o=e.r(816565);function s(e){return(void 0===e?"undefined":n._(e))==="object"&&null!==e&&"name"in e&&"message"in e}function u(e){var t;return s(e)?e:Object.defineProperty(Error((0,o.isPlainObject)(e)?(t=new WeakSet,JSON.stringify(e,function(e,r){if((void 0===r?"undefined":n._(r))==="object"&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r})):e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}},152539,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addPathSuffix",{enumerable:!0,get:function(){return a}});var n=e.r(572463);function a(e,t){if(!e.startsWith("/")||!t)return e;var r=(0,n.parsePath)(e),a=r.pathname,i=r.query,o=r.hash;return"".concat(a).concat(t).concat(i).concat(o)}},95524,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addLocale",{enumerable:!0,get:function(){return i}});var n=e.r(541858),a=e.r(59084);function i(e,t,r,i){if(!t||t===r)return e;var o=e.toLowerCase();return!i&&((0,a.pathHasPrefix)(o,"/api")||(0,a.pathHasPrefix)(o,"/".concat(t.toLowerCase())))?e:(0,n.addPathPrefix)(e,"/".concat(t))}},230283,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"formatNextPathnameInfo",{enumerable:!0,get:function(){return s}});var n=e.r(938281),a=e.r(541858),i=e.r(152539),o=e.r(95524);function s(e){var t=(0,o.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,i.addPathSuffix)((0,a.addPathPrefix)(t,"/_next/data/".concat(e.buildId)),"/"===e.pathname?"index.json":".json")),t=(0,a.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,i.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},865941,(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(var n=r.length;n--;){var a=r[n];if("query"===a){var i=Object.keys(e.query);if(i.length!==Object.keys(t.query).length)return!1;for(var o=i.length;o--;){var s=i[o];if(!t.query.hasOwnProperty(s)||e.query[s]!==t.query[s])return!1}}else if(!t.hasOwnProperty(a)||e[a]!==t[a])return!1}return!0}
2Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"compareRouterStates",{enumerable:!0,get:function(){return n}})},957473,(e,t,r)=>{"use strict";function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return("/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index".concat(e):e)+t}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return n}})},87831,(e,t,r)=>{"use strict";var n,a=e.r(368996);function i(e){var t;return(null==(t=function(){if(void 0===n&&"u">typeof window){var e;n=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}}))||null}return n}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return i}}),("function"==typeof r.default||"object"===a._(r.default)&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},51506,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"interpolateAs",{enumerable:!0,get:function(){return i}});var n=e.r(841820),a=e.r(862735);function i(e,t,r){var i="",o=(0,a.getRouteRegex)(e),s=o.groups,u=(t!==e?(0,n.getRouteMatcher)(o)(t):"")||r;i=e;var c=Object.keys(s);return c.every(function(e){var t=u[e]||"",r=s[e],n=r.repeat,a=r.optional,o="[".concat(n?"...":"").concat(e,"]");return a&&(o="".concat(!t?"/":"","[").concat(o,"]")),n&&!Array.isArray(t)&&(t=[t]),(a||e in u)&&(i=i.replace(o,n?t.map(function(e){return encodeURIComponent(e)}).join("/"):encodeURIComponent(t))||"/")})||(i=""),{params:c,result:i}}},57192,(e,t,r)=>{"use strict";var n=e.r(368996);Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"resolveHref",{enumerable:!0,get:function(){return h}});var a=e.r(998183),i=e.r(195057),o=e.r(18556),s=e.r(718967),u=e.r(82823),c=e.r(573668),l=e.r(660180),d=e.r(51506),p=e.r(862735),f=e.r(841820);function h(e,t,r){var n,h="string"==typeof t?t:(0,i.formatWithValidation)(t),v=h.match(/^[a-z][a-z0-9+.-]*:\/\//i),m=v?h.slice(v[0].length):h;if((m.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '".concat(h,"' passed to next/router in page: '").concat(e.pathname,"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href."));var g=(0,s.normalizeRepeatedSlashes)(m);h=(v?v[0]:"")+g}if(!(0,c.isLocalURL)(h))return r?[h]:h;try{var y=h.startsWith("#")?e.asPath:e.pathname;if(h.startsWith("?")&&(y=e.asPath,(0,l.isDynamicRoute)(e.pathname))){y=e.pathname;var _=(0,p.getRouteRegex)(e.pathname);(0,f.getRouteMatcher)(_)(e.asPath)||(y=e.asPath)}n=new URL(y,"http://n")}catch(e){n=new URL("/","http://n")}try{var S=new URL(h,n);S.pathname=(0,u.normalizePathTrailingSlash)(S.pathname);var b="";if((0,l.isDynamicRoute)(S.pathname)&&S.searchParams&&r){var E=(0,a.searchParamsToUrlQuery)(S.searchParams),T=(0,d.interpolateAs)(S.pathname,S.pathname,E),k=T.result,w=T.params;k&&(b=(0,i.formatWithValidation)({pathname:k,hash:S.hash,query:(0,o.omit)(E,w)}))}var R=S.origin===n.origin?S.href.slice(S.origin.length):S.href;return r?[R,b||R]:R}catch(e){return r?[h]:h}}("function"==typeof r.default||"object"===n._(r.default)&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},210648,(e,t,r)=>{"use strict";function n(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isAPIRoute",{enumerable:!0,get:function(){return n}})},285777,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isDynamicRoute",{enumerable:!0,get:function(){return o}});var n=e.r(591463),a=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,i=/\/\[[^/]+\](?=\/|$)/;function o(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return((0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),t)?i.test(e):a.test(e)}},660180,(e,t,r)=>{"use strict";
2Object.defineProperty(r,"__esModule",{value:!0});var n={getSortedRouteObjects:function(){return i.getSortedRouteObjects},getSortedRoutes:function(){return i.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});var i=e.r(95284),o=e.r(285777)},572263,(e,t,r)=>{"use strict";function n(e){return e.replace(/\\/g,"/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"normalizePathSep",{enumerable:!0,get:function(){return n}})},881672,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"denormalizePagePath",{enumerable:!0,get:function(){return i}});var n=e.r(660180),a=e.r(572263);function i(e){var t=(0,a.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},927711,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"normalizeLocalePath",{enumerable:!0,get:function(){return a}});var n=new WeakMap;function a(e,t){if(!t)return{pathname:e};var r,a=n.get(t);a||(a=t.map(function(e){return e.toLowerCase()}),n.set(t,a));var i=e.split("/",2);if(!i[1])return{pathname:e};var o=i[1].toLowerCase(),s=a.indexOf(o);return s<0?{pathname:e}:(r=t[s],{pathname:e=e.slice(r.length+1)||"/",detectedLocale:r})}},226098,(e,t,r)=>{"use strict";var n=e.r(621991);function a(){var e=Object.create(null);return{on:function(t,r){(e[t]||(e[t]=[])).push(r)},off:function(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit:function(t){for(var r=arguments.length,a=Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];(e[t]||[]).slice().map(function(e){e.apply(void 0,n._(a))})}}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return a}})},18556,(e,t,r)=>{"use strict";function n(e,t){var r={};return Object.keys(e).forEach(function(n){t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"omit",{enumerable:!0,get:function(){return n}})},370422,(e,t,r)=>{"use strict";var n=e.r(891470);Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parseLoaderTree",{enumerable:!0,get:function(){return i}});var a=e.r(813258);function i(e){var t=n._(e,4),r=t[0],i=t[1],o=t[2],s=t[3],u=o.layout,c=o.template,l=o.page;l=r===a.DEFAULT_SEGMENT_KEY?o.defaultPage:l;var d=(null==u?void 0:u[1])||(null==c?void 0:c[1])||(null==l?void 0:l[1]);return{page:l,segment:r,modules:o,conventionPath:d,parallelRoutes:i,staticSiblings:s}}},401643,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={getParamProperties:function(){return u},getSegmentParam:function(){return o},isCatchAll:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});var i=e.r(591463);function o(e){var t=i.INTERCEPTION_ROUTE_MARKERS.find(function(t){return e.startsWith(t)});return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{paramType:"optional-catchall",paramName:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{paramType:t?"catchall-intercepted-".concat(t):"catchall",paramName:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{paramType:t?"dynamic-intercepted-".concat(t):"dynamic",paramName:e.slice(1,-1)}:null}function s(e){return"catchall"===e||"catchall-intercepted-(..)(..)"===e||"catchall-intercepted-(.)"===e||"catchall-intercepted-(..)"===e||"catchall-intercepted-(...)"===e||"optional-catchall"===e}function u(e){var t=!1,r=!1;switch(e){case"catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":t=!0;break;case"optional-catchall":t=!0,r=!0}return{repeat:t,optional:r}}},31027,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={isInterceptionAppRoute:function(){return l},isNormalizedAppRoute:function(){return c},parseAppRouteSegment:function(){return u},parseAppRouteWithSlots:function(){return f},parseNormalizedAppRoute:function(){return p}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});var i=e.r(312718),o=e.r(401643),s=e.r(591463);function u(e){if(""===e)return null;
2var t=s.INTERCEPTION_ROUTE_MARKERS.find(function(t){return e.startsWith(t)}),r=(0,o.getSegmentParam)(e);return r?{type:"dynamic",name:e,param:r,interceptionMarker:t}:e.startsWith("(")&&e.endsWith(")")?{type:"route-group",name:e,interceptionMarker:t}:e.startsWith("@")?{type:"parallel-route",name:e,interceptionMarker:t}:{type:"static",name:e,interceptionMarker:t}}function c(e){return e.normalized}function l(e){return void 0!==e.interceptionMarker&&void 0!==e.interceptingRoute&&void 0!==e.interceptedRoute}function d(e,t){var r=e.split("/").filter(Boolean),n=[],a=!0,s=!1,c=void 0;try{for(var l,p,f,h,v=r[Symbol.iterator]();!(a=(h=v.next()).done);a=!0){var m=h.value,g=function(e){if(!/%5b|%5d/i.test(e))return e;try{var t=decodeURIComponent(e);return(0,o.getSegmentParam)(t)?t:e}catch(t){return e}}(m),y=u(g);if(y){if("route-group"===y.type&&!(2&t))throw Object.defineProperty(new i.InvariantError("".concat(e," is being parsed as a normalized route, but it has a route group segment.")),"__NEXT_ERROR_CODE",{value:"E1151",enumerable:!1,configurable:!0});if("parallel-route"===y.type&&!(1&t))throw Object.defineProperty(new i.InvariantError("".concat(e," is being parsed as a normalized route, but it has a parallel route segment.")),"__NEXT_ERROR_CODE",{value:"E1152",enumerable:!1,configurable:!0});if(n.push(y),y.interceptionMarker){var _=e.split(y.interceptionMarker);if(2!==_.length)throw Object.defineProperty(Error("Invalid interception route: ".concat(e)),"__NEXT_ERROR_CODE",{value:"E924",enumerable:!1,configurable:!0});p=d(_[0],t),f=d(_[1],t),l=y.interceptionMarker}}}}catch(e){s=!0,c=e}finally{try{a||null==v.return||v.return()}finally{if(s)throw c}}var S=n.filter(function(e){return"dynamic"===e.type});return{normalized:0===t,pathname:e,segments:n,dynamicSegments:S,interceptionMarker:l,interceptingRoute:p,interceptedRoute:f}}function p(e){return d(e,0)}function f(e){return d(e,1)}},254395,(e,t,r)=>{"use strict";function n(e){switch(e){case"catchall-intercepted-(..)(..)":case"dynamic-intercepted-(..)(..)":return"(..)(..)";case"catchall-intercepted-(.)":case"dynamic-intercepted-(.)":return"(.)";case"catchall-intercepted-(..)":case"dynamic-intercepted-(..)":return"(..)";case"catchall-intercepted-(...)":case"dynamic-intercepted-(...)":return"(...)";default:return null}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"interceptionPrefixFromParamType",{enumerable:!0,get:function(){return n}})},746857,(e,t,r)=>{"use strict";var n=e.r(621991);Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"resolveParamValue",{enumerable:!0,get:function(){return o}});var a=e.r(312718),i=e.r(254395);function o(e,t,r,o,s){switch(t){case"catchall":case"optional-catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":for(var u=[],c=r;c<o.segments.length;c++){var l=o.segments[c];if("static"===l.type){var d=l.name,p=(0,i.interceptionPrefixFromParamType)(t);p&&c===r&&p===l.interceptionMarker&&(d=d.replace(l.interceptionMarker,"")),u.push(d)}else{if(!s.hasOwnProperty(l.param.paramName)){if("optional-catchall"===l.param.paramType)break;return}var f=s[l.param.paramName];Array.isArray(f)?u.push.apply(u,n._(f)):u.push(f)}}if(u.length>0)return u;if("optional-catchall"===t)return;throw Object.defineProperty(new a.InvariantError('Unexpected empty path segments match for a route "'.concat(o.pathname,'" with param "').concat(e,'" of type "').concat(t,'"')),"__NEXT_ERROR_CODE",{value:"E931",enumerable:!1,configurable:!0});case"dynamic":case"dynamic-intercepted-(..)(..)":case"dynamic-intercepted-(.)":case"dynamic-intercepted-(..)":case"dynamic-intercepted-(...)":if(r<o.segments.length){var h=o.segments[r];if("dynamic"===h.type&&!s.hasOwnProperty(h.param.paramName))return;return"dynamic"===h.type?s[h.param.paramName]:(0,i.interceptionPrefixFromParamType)(t)===h.interceptionMarker?h.name.replace(h.interceptionMarker,""):h.name}return}}},753015,(e,t,r)=>{"use strict";var n=e.r(891470);Object.defineProperty(r,"__esModule",{value:!0});var a={PARAMETER_PATTERN:function(){return p},getDynamicParam:function(){return d}
2,interpolateParallelRouteParams:function(){return l},parseMatchedParameter:function(){return h},parseParameter:function(){return f}};for(var i in a)Object.defineProperty(r,i,{enumerable:!0,get:a[i]});var o=e.r(312718),s=e.r(370422),u=e.r(31027),c=e.r(746857);function l(e,t,r,n){for(var a=structuredClone(t),i=[{tree:e,depth:0}],l=(0,u.parseNormalizedAppRoute)(r);i.length>0;){var d=i.pop(),p=d.tree,f=d.depth,h=(0,s.parseLoaderTree)(p),v=h.segment,m=h.parallelRoutes,g=(0,u.parseAppRouteSegment)(v);if((null==g?void 0:g.type)==="dynamic"&&!a.hasOwnProperty(g.param.paramName)&&!(null==n?void 0:n.has(g.param.paramName))){var y=g.param,_=y.paramName,S=y.paramType,b=(0,c.resolveParamValue)(_,S,f,l,a);if(void 0!==b)a[_]=b;else if("optional-catchall"!==S)throw Object.defineProperty(new o.InvariantError("Could not resolve param value for segment: ".concat(_)),"__NEXT_ERROR_CODE",{value:"E932",enumerable:!1,configurable:!0})}var E=f;g&&"route-group"!==g.type&&"parallel-route"!==g.type&&E++;var T=!0,k=!1,w=void 0;try{for(var R,I=Object.values(m)[Symbol.iterator]();!(T=(R=I.next()).done);T=!0){var C=R.value;i.push({tree:C,depth:E})}}catch(e){k=!0,w=e}finally{try{T||null==I.return||I.return()}finally{if(k)throw w}}}return a}function d(e,t,r,a,i){var s,u=(s=e[t],(null==a?void 0:a.has(t))?s=n._(a.get(t),1)[0]:Array.isArray(s)?s=s.map(function(e){return encodeURIComponent(e)}):"string"==typeof s&&(s=encodeURIComponent(s)),s);if(!u||0===u.length){if("oc"===r)return{param:t,value:null,type:r,treeSegment:[t,"",r,i]};throw Object.defineProperty(new o.InvariantError('Missing value for segment key: "'.concat(t,'" with dynamic param type: ').concat(r)),"__NEXT_ERROR_CODE",{value:"E864",enumerable:!1,configurable:!0})}var c=Array.isArray(u)?u.join("/"):u;return{param:t,value:u,treeSegment:[t,c,r,i],type:r}}var p=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function f(e){var t=e.match(p);return t?h(t[2]):h(e)}function h(e){var t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));var r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}},862735,(e,t,r)=>{"use strict";var n=e.r(344086),a=e.r(204571);Object.defineProperty(r,"__esModule",{value:!0});var i={getNamedMiddlewareRegex:function(){return g},getNamedRouteRegex:function(){return m},getRouteRegex:function(){return f}};for(var o in i)Object.defineProperty(r,o,{enumerable:!0,get:i[o]});var s=e.r(663416),u=e.r(591463),c=e.r(2160),l=e.r(938281),d=e.r(753015);function p(e,t,r){var n={},a=1,i=[],o=!0,s=!1,p=void 0;try{for(var f,h=(0,l.removeTrailingSlash)(e).slice(1).split("/")[Symbol.iterator]();!(o=(f=h.next()).done);o=!0)!function(){var e=f.value,o=u.INTERCEPTION_ROUTE_MARKERS.find(function(t){return e.startsWith(t)}),s=e.match(d.PARAMETER_PATTERN);if(o&&s&&s[2]){var l=(0,d.parseMatchedParameter)(s[2]),p=l.key,h=l.optional,v=l.repeat;n[p]={pos:a++,repeat:v,optional:h},i.push("/".concat((0,c.escapeStringRegexp)(o),"([^/]+?)"))}else if(s&&s[2]){var m=(0,d.parseMatchedParameter)(s[2]),g=m.key,y=m.repeat,_=m.optional;n[g]={pos:a++,repeat:y,optional:_},r&&s[1]&&i.push("/".concat((0,c.escapeStringRegexp)(s[1])));var S=y?_?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";r&&s[1]&&(S=S.substring(1)),i.push(S)}else i.push("/".concat((0,c.escapeStringRegexp)(e)));t&&s&&s[3]&&i.push((0,c.escapeStringRegexp)(s[3]))}()}catch(e){s=!0,p=e}finally{try{o||null==h.return||h.return()}finally{if(s)throw p}}return{parameterizedRoute:i.join(""),groups:n}}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.includeSuffix,n=t.includePrefix,a=t.excludeOptionalTrailingSlash,i=p(e,void 0!==r&&r,void 0!==n&&n),o=i.parameterizedRoute,s=i.groups,u=o;return void 0!==a&&a||(u+="(?:/)?"),{re:new RegExp("^".concat(u,"$")),groups:s}}function h(e){var t,r=e.interceptionMarker,n=e.getSafeRouteKey,a=e.segment,i=e.routeKeys,o=e.keyPrefix,s=e.backreferenceDuplicateKeys,u=(0,d.parseMatchedParameter)(a),l=u.key,p=u.optional,f=u.repeat,h=l.replace(/\W/g,"");o&&(h="".concat(o).concat(h));var v=!1;(0===h.length||h.length>30)&&(v=!0),isNaN(parseInt(h.slice(0,1)))||(v=!0),v&&(h=n());var m=h in i;o?i[h]="".concat(o).concat(l):i[h]=l;var g=r?(0,c.escapeStringRegexp)(r):"";return t=m&&s?"\\k<".concat(h,">"):f?"(?<".concat(h,">.+?)"):"(?<".concat(h,">[^/]+?)"),{key:l,pattern:p?"(?:/".concat(g).concat(t,")?"):"/".concat(g).concat(t),cleanedKey:h,optional:p,repeat:f}}function v(e,t,r,n,a){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{names:{},intercepted:{}},o=(_=0,function(){for(var e="",t=++_;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),p={},f=[],v=[];i=structuredClone(i);var m=!0,g=!1,y=void 0;try{for(var _,S,b=(0,l.removeTrailingSlash)(e).slice(1).split("/")[Symbol.iterator]();!(m=(S=b.next()).done);m=!0)!function(){var e=S.value,l=u.INTERCEPTION_ROUTE_MARKERS.some(function(t){return e.startsWith(t)}),m=e.match(d.PARAMETER_PATTERN),g=l?null==m?void 0:m[1]:void 0,y=void 0;if(g&&(null==m?void 0:m[2])?(y=t?s.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,i.intercepted[m[2]]=g):y=(null==m?void 0:m[2])&&i.intercepted[m[2]]?t?s.NEXT_INTERCEPTION_MARKER_PREFIX:void 0:t?s.NEXT_QUERY_PARAM_PREFIX:void 0,g&&m&&m[2]){var _,b,E=h({getSafeRouteKey:o,interceptionMarker:g,segment:m[2],routeKeys:p,keyPrefix:y,backreferenceDuplicateKeys:a}),T=E.key,k=E.pattern,w=E.cleanedKey,R=E.repeat,I=E.optional;f.push(k),v.push("/".concat(m[1],":").concat(null!=(_=i.names[T])?_:w).concat(R?I?"*":"+":"")),null!=(b=i.names)[T]||(b[T]=w)}else if(m&&m[2]){n&&m[1]&&(f.push("/".concat((0,c.escapeStringRegexp)(m[1]))),v.push("/".concat(m[1])));var C,x,O=h({getSafeRouteKey:o,segment:m[2],routeKeys:p,keyPrefix:y,backreferenceDuplicateKeys:a}),A=O.key,P=O.pattern,M=O.cleanedKey,N=O.repeat,L=O.optional,D=P;n&&m[1]&&(D=D.substring(1)),f.push(D),v.push("/:".concat(null!=(C=i.names[A])?C:M).concat(N?L?"*":"+":"")),null!=(x=i.names)[A]||(x[A]=M)}else f.push("/".concat((0,c.escapeStringRegexp)(e))),v.push("/".concat(e));r&&m&&m[3]&&(f.push((0,c.escapeStringRegexp)(m[3])),v.push(m[3]))}()}catch(e){g=!0,y=e}finally{try{m||null==b.return||b.return()}finally{if(g)throw y}}return{namedParameterizedRoute:f.join(""),routeKeys:p,pathToRegexpPattern:v.join(""),reference:i}}
2function m(e,t){var r,i,o,s=v(e,t.prefixRouteKeys,null!=(r=t.includeSuffix)&&r,null!=(i=t.includePrefix)&&i,null!=(o=t.backreferenceDuplicateKeys)&&o,t.reference),u=s.namedParameterizedRoute;return t.excludeOptionalTrailingSlash||(u+="(?:/)?"),a._(n._({},f(e,t)),{namedRegex:"^".concat(u,"$"),routeKeys:s.routeKeys,pathToRegexpPattern:s.pathToRegexpPattern,reference:s.reference})}function g(e,t){var r=p(e,!1,!1).parameterizedRoute,n=t.catchAll,a=void 0===n||n;if("/"===r)return{namedRegex:"^/".concat(a?".*":"","$")};var i=v(e,!1,!1,!1,!1,void 0).namedParameterizedRoute;return{namedRegex:"^".concat(i).concat(a?"(?:(/.*)?)":"","$")}}},795640,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DYNAMIC_FILTER_PLACEHOLDER:function(){return i},hasDynamicFilterCandidate:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});var i="[]";function o(e,t,r){var n,a=e.split("/"),o=t.split("/"),s=null!=(n=a[a.length-1])?n:"";if(!(s.startsWith("[...")||s.startsWith("[[..."))&&a.length!==o.length)return!1;for(var u=[],c=1;c<o.length;c++)if(""!==o[c]){var l=a[c];(void 0===l||l.startsWith("["))&&u.push(c)}if(0===u.length||u.length>8)return!1;for(var d=(1<<u.length)-1,p=0;p<d;p++){for(var f=o.slice(),h=0;h<u.length;h++)(p&1<<h)==0&&(f[u[h]]=i);if(r(f.join("/")))return!0}return!1}},722783,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parseRelativeUrl",{enumerable:!0,get:function(){return i}});var n=e.r(718967),a=e.r(998183);function i(e,t){var r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=new URL("u"<typeof window?"http://n":(0,n.getLocationOrigin)()),o=t?new URL(t,i):e.startsWith(".")?new URL("u"<typeof window?"http://n":window.location.href):i,s=e.startsWith("/")?new URL("".concat(o.protocol,"//").concat(o.host).concat(e)):new URL(e,o),u=s.pathname,c=s.searchParams,l=s.search,d=s.hash,p=s.href,f=s.origin;if(f!==i.origin)throw Object.defineProperty(Error("invariant: invalid relative URL, router received ".concat(e)),"__NEXT_ERROR_CODE",{value:"E159",enumerable:!1,configurable:!0});return{auth:null,host:null,hostname:null,pathname:u,port:null,protocol:null,query:r?(0,a.searchParamsToUrlQuery)(c):void 0,search:l,hash:d,href:p.slice(f.length),slashes:null}}},341257,(e,t,r)=>{"use strict";var n=e.r(344086);Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getPathMatch",{enumerable:!0,get:function(){return i}});var a=e.r(873423);function i(e,t){var r=[],i=(0,a.pathToRegexp)(e,r,{delimiter:"/",sensitive:"boolean"==typeof(null==t?void 0:t.sensitive)&&t.sensitive,strict:null==t?void 0:t.strict}),o=(0,a.regexpToFunction)((null==t?void 0:t.regexModifier)?new RegExp(t.regexModifier(i.source),i.flags):i,r);return function(e,a){if("string"!=typeof e)return!1;var i=o(e);if(!i)return!1;if(null==t?void 0:t.removeUnnamedParams){var s=!0,u=!1,c=void 0;try{for(var l,d=r[Symbol.iterator]();!(s=(l=d.next()).done);s=!0){var p=l.value;"number"==typeof p.name&&delete i.params[p.name]}}catch(e){u=!0,c=e}finally{try{s||null==d.return||d.return()}finally{if(u)throw c}}}return n._({},a,i.params)}}},106346,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parseUrl",{enumerable:!0,get:function(){return i}});var n=e.r(998183),a=e.r(722783);function i(e){if(e.startsWith("/"))return(0,a.parseRelativeUrl)(e);var t=new URL(e),r=t.username,i=t.password,o=r?i?"".concat(r,":").concat(i):r:null,s=t.pathname,u=t.search;return{auth:o,hash:t.hash,hostname:t.hostname,href:t.href,pathname:s,port:t.port,protocol:t.protocol,query:(0,n.searchParamsToUrlQuery)(t.searchParams),search:u,origin:t.origin,slashes:"//"===t.href.slice(t.protocol.length,t.protocol.length+2)}}},619573,(e,t,r)=>{!function(){"use strict";"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab="/ROOT/node_modules/next/dist/compiled/cookie/");var e,r,n,a,i,o={};e=function(e,t){try{return t(e)}catch(t){return e}},o.parse=function(t,n){if("string"!=typeof t)throw TypeError("argument str must be a string");for(var i={},o=t.split(a),s=(n||{}).decode||r,u=0;u<o.length;u++){var c=o[u],l=c.indexOf("=");if(!(l<0)){var d=c.substr(0,l).trim(),p=c.substr(++l,c.length).trim();'"'==p[0]&&(p=p.slice(1,-1)),void 0==i[d]&&(i[d]=e(p,s))}}return i},o.serialize=function(e,t,r){var a=r||{},o=a.encode||n;if("function"!=typeof o)throw TypeError("option encode is invali
2d");if(!i.test(e))throw TypeError("argument name is invalid");var s=o(t);if(s&&!i.test(s))throw TypeError("argument val is invalid");var u=e+"="+s;if(null!=a.maxAge){var c=a.maxAge-0;if(isNaN(c)||!isFinite(c))throw TypeError("option maxAge is invalid");u+="; Max-Age="+Math.floor(c)}if(a.domain){if(!i.test(a.domain))throw TypeError("option domain is invalid");u+="; Domain="+a.domain}if(a.path){if(!i.test(a.path))throw TypeError("option path is invalid");u+="; Path="+a.path}if(a.expires){if("function"!=typeof a.expires.toUTCString)throw TypeError("option expires is invalid");u+="; Expires="+a.expires.toUTCString()}if(a.httpOnly&&(u+="; HttpOnly"),a.secure&&(u+="; Secure"),a.sameSite)switch("string"==typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:case"strict":u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"none":u+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return u},r=decodeURIComponent,n=encodeURIComponent,a=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,t.exports=o}()},989557,(e,t,r)=>{"use strict";function n(t){return function(){var r=t.cookie;return r?(0,e.r(619573).parse)(Array.isArray(r)?r.join("; "):r):{}}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getCookieParser",{enumerable:!0,get:function(){return n}})},631423,(e,t,r)=>{"use strict";var n=e.r(344086),a=e.r(204571),i=e.r(891470);Object.defineProperty(r,"__esModule",{value:!0});var o={compileNonPath:function(){return v},matchHas:function(){return h},parseDestination:function(){return m},prepareDestination:function(){return g}};for(var s in o)Object.defineProperty(r,s,{enumerable:!0,get:o[s]});var u=e.r(2160),c=e.r(106346),l=e.r(591463),d=e.r(989557),p=e.r(475957);function f(e){return e.replace(/__ESC_COLON_/gi,":")}function h(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a={},i=function(r){var n,i=r.key;switch(r.type){case"header":i=i.toLowerCase(),n=e.headers[i];break;case"cookie":n="cookies"in e?e.cookies[r.key]:(0,d.getCookieParser)(e.headers)()[r.key];break;case"query":n=t[i];break;case"host":var o=((null==e?void 0:e.headers)||{}).host;n=null==o?void 0:o.split(":",1)[0].toLowerCase()}if(!r.value&&n)return a[function(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r);(n>64&&n<91||n>96&&n<123)&&(t+=e[r])}return t}(i)]=n,!0;if(n){var s=new RegExp("^".concat(r.value,"$")),u=Array.isArray(n)?n.slice(-1)[0].match(s):n.match(s);if(u)return Array.isArray(u)&&(u.groups?Object.keys(u.groups).forEach(function(e){a[e]=u.groups[e]}):"host"===r.type&&u[0]&&(a.host=u[0])),!0}return!1};return!(!r.every(function(e){return i(e)})||n.some(function(e){return i(e)}))&&a}function v(e,t){if(!e.includes(":"))return e;var r=!0,n=!1,a=void 0;try{for(var i,o=Object.keys(t)[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;e.includes(":".concat(s))&&(e=e.replace(RegExp(":".concat(s,"\\*"),"g"),":".concat(s,"--ESCAPED_PARAM_ASTERISKS")).replace(RegExp(":".concat(s,"\\?"),"g"),":".concat(s,"--ESCAPED_PARAM_QUESTION")).replace(RegExp(":".concat(s,"\\+"),"g"),":".concat(s,"--ESCAPED_PARAM_PLUS")).replace(RegExp(":".concat(s,"(?!\\w)"),"g"),"--ESCAPED_PARAM_COLON".concat(s)))}}catch(e){n=!0,a=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw a}}return e=e.replace(/(:|\*|\?|\+|\(|\)|\{|\})/g,"\\$1").replace(/--ESCAPED_PARAM_PLUS/g,"+").replace(/--ESCAPED_PARAM_COLON/g,":").replace(/--ESCAPED_PARAM_QUESTION/g,"?").replace(/--ESCAPED_PARAM_ASTERISKS/g,"*"),(0,p.safeCompile)("/".concat(e),{validate:!1})(t).slice(1)}function m(e){var t=e.destination,r=!0,i=!1,o=void 0;try{for(var s,l=Object.keys(n._({},e.params,e.query))[Symbol.iterator]();!(r=(s=l.next()).done);r=!0){var d,p=s.value;p&&(d=t,t=d.replace(RegExp(":".concat((0,u.escapeStringRegexp)(p)),"g"),"__ESC_COLON_".concat(p)))}}catch(e){i=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}var h=(0,c.parseUrl)(t),v=h.pathname;v&&(v=f(v));var m=h.href;m&&(m=f(m));var g=h.hostname;g&&(g=f(g));var y=h.hash;y&&(y=f(y));var _=h.search;_&&(_=f(_));var S=h.origin;return S&&(S=f(S)),a._(n._({},h),{pathname:v,hostname:g,href:m,hash:y,search:_,origin:S})}function g(e){var t=m(e),r=t.hostname,a=t.query,o=t.search,s=t.pathname;t.hash&&(s="".concat(s).concat(t.hash));var u=[],c=[];(0,p.safePathToRegexp)(s,c);var d=!0,h=!1,g=void 0;try{for(var y,_=c[Symbol.iterator]();!(d=(y=_.next()).done);d=!0){var S=y.value;u.push(S.name)}}catch(e){h=!0,g=e}finally{try{d||null==_.return||_.return()}finally{if(h)throw g}}if(r){var b=[];(0,p.safePathToRegexp)(r,b);var E=!0,T=!1,k=void 0;try{for(var w,R=b[Symbol.iterator]();!(E=(w=R.next()).done);E=!0){var I=w.value;u.push(I.name)}}catch(e){T=!0,k=e}finally{try{E||null==R.return||R.return()}finally{if(T)throw k}}}var C=(0,p.safeCompile)(s,{validate:!1});r&&(P=(0,p.safeCompile)(r,{validate:!1,encode:encodeURIComponent}));var x=!0,O=!1,A=void 0;try{for(var P,M,N=Object.entries(a)[Symbol.iterator]();!(x=(M=N.next()).done);x=!0){var L=i._(M.value,2),D=L[0],U=L[1];Array.isArray(U)?a[D]=U.map(function(t){return v(f(t),e.params)}):"string"==typeof U&&(a[D]=v(f(U),e.params))}}catch(e){O=!0,A=e}finally{try{x||null==N.return||N.return()}finally{if(O)throw A}}var B=Object.keys(e.params).filter(function(e){return"nextInternalLocale"!==e});if(e.appendParamsToQuery&&!B.some(function(e){return u.includes(e)})){var j=!0,F=!1,H=void 0;try{for(var W,q=B[Symbol.iterator]();!(j=(W=q.next()).done);
2j=!0){var z=W.value;z in a||(a[z]=e.params[z])}}catch(e){F=!0,H=e}finally{try{j||null==q.return||q.return()}finally{if(F)throw H}}}if((0,l.isInterceptionRouteAppPath)(s)){var G=!0,Y=!1,J=void 0;try{for(var X,K,V=s.split("/")[Symbol.iterator]();!(G=(K=V.next()).done);G=!0){var $=function(){var t=K.value,r=l.INTERCEPTION_ROUTE_MARKERS.find(function(e){return t.startsWith(e)});if(r)return"(..)(..)"===r?(e.params["0"]="(..)",e.params["1"]="(..)"):e.params["0"]=r,"break"}();if("break"===$)break}}catch(e){Y=!0,J=e}finally{try{G||null==V.return||V.return()}finally{if(Y)throw J}}}try{X=C(e.params);var Q=i._(X.split("#",2),2),Z=Q[0],ee=Q[1];P&&(t.hostname=P(e.params)),t.pathname=Z,t.hash="".concat(ee?"#":"").concat(ee||""),t.search=o?v(o,e.params):""}catch(e){if(e.message.match(/Expected .*? to not repeat, but got an array/))throw Object.defineProperty(Error("To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match"),"__NEXT_ERROR_CODE",{value:"E329",enumerable:!1,configurable:!0});throw e}return t.query=n._({},e.query,t.query),{newUrl:X,destQuery:a,parsedDestination:t}}},291534,(e,t,r)=>{"use strict";var n=e.r(998544);Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return l}});var a=e.r(341257),i=e.r(631423),o=e.r(938281),s=e.r(927711),u=e.r(387250),c=e.r(722783);function l(e,t,r,l,d,p){for(var f,h=!1,v=!1,m=(0,c.parseRelativeUrl)(e),g=(0,o.removeTrailingSlash)((0,s.normalizeLocalePath)((0,u.removeBasePath)(m.pathname),p).pathname),y=function(r){var c=(0,a.getPathMatch)(r.source+"",{removeUnnamedParams:!0,strict:!0})(m.pathname);if((r.has||r.missing)&&c){var y=(0,i.matchHas)({headers:{host:document.location.hostname,"user-agent":navigator.userAgent},cookies:document.cookie.split("; ").reduce(function(e,t){var r=n._(t.split("=")),a=r[0],i=r.slice(1);return e[a]=i.join("="),e},{})},m.query,r.has,r.missing);y?Object.assign(c,y):c=!1}if(c){if(!r.destination)return v=!0,!0;var _=(0,i.prepareDestination)({appendParamsToQuery:!0,destination:r.destination,params:c,query:l});if(m=_.parsedDestination,e=_.newUrl,Object.assign(l,_.parsedDestination.query),g=(0,o.removeTrailingSlash)((0,s.normalizeLocalePath)((0,u.removeBasePath)(e),p).pathname),t.includes(g))return h=!0,f=g,!0;if((f=d(g))!==e&&t.includes(f))return h=!0,!0}},_=!1,S=0;S<r.beforeFiles.length;S++)y(r.beforeFiles[S]);if(!(h=t.includes(g))){if(!_){for(var b=0;b<r.afterFiles.length;b++)if(y(r.afterFiles[b])){_=!0;break}}if(_||(f=d(g),_=h=t.includes(f)),!_){for(var E=0;E<r.fallback.length;E++)if(y(r.fallback[E])){_=!0;break}}}return{asPath:e,parsedAs:m,matchedPage:h,resolvedHref:f,externalDest:v}}},509793,(e,t,r)=>{"use strict";var n,a=e.r(986172),i=e.r(995075),o=e.r(882372),s=e.r(344086),u=e.r(204571),c=e.r(891470),l=e.r(221280);Object.defineProperty(r,"__esModule",{value:!0});var d={createKey:function(){return en},default:function(){return eo},matchesMiddleware:function(){return K}};for(var p in d)Object.defineProperty(r,p,{enumerable:!0,get:d[p]});var f=e.r(555682),h=e.r(190809),v=e.r(938281),m=e.r(490758),g=e.r(479520),y=h._(e.r(302023)),_=e.r(881672),S=e.r(927711),b=f._(e.r(226098)),E=e.r(718967),T=e.r(285777),k=e.r(722783),w=e.r(841820),R=e.r(862735),I=e.r(795640),C=e.r(195057);e.r(885305);var x=e.r(572463),O=e.r(535192),A=e.r(827018),P=e.r(387250),M=e.r(405550),N=e.r(652817),L=e.r(57192),D=e.r(210648),U=e.r(283605),B=e.r(230283),j=e.r(865941),F=e.r(573668),H=e.r(82604),W=e.r(18556),q=e.r(51506),z=e.r(491915),G=e.r(663416),Y=e.r(543369),J=e.r(948277);function X(){return Object.assign(Object.defineProperty(Error("Route Cancelled"),"__NEXT_ERROR_CODE",{value:"E315",enumerable:!1,configurable:!0}),{cancelled:!0})}function K(e){return a._(function(){var t,r,n,a;return l._(this,function(i){switch(i.label){case 0:return[4,Promise.resolve(e.router.pageLoader.getMiddleware())];case 1:if(!(t=i.sent()))return[2,!1];return r=(0,x.parsePath)(e.asPath).pathname,n=(0,N.hasBasePath)(r)?(0,P.removeBasePath)(r):r,a=(0,M.addBasePath)((0,O.addLocale)(n,e.locale)),[2,t.some(function(e){return new RegExp(e.regexp).test(a)})]}})})()}function V(e){var t=(0,E.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function $(e,t,r){var n=c._((0,L.resolveHref)(e,t,!0),2),a=n[0],i=n[1],o=(0,E.getLocationOrigin)(),s=a.startsWith(o),u=i&&i.startsWith(o);a=V(a),i=i?V(i):i;var l=s?a:(0,M.addBasePath)(a),d=r?V((0,L.resolveHref)(e,r)):i||a;return{url:l,as:u?d:(0,M.addBasePath)(d)}}
2function Q(e,t){var r=(0,v.removeTrailingSlash)((0,_.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(function(t){if((0,T.isDynamicRoute)(t)&&(0,R.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,v.removeTrailingSlash)(e))}function Z(e){return a._(function(){var t,r;return l._(this,function(a){switch(a.label){case 0:return[4,K(e)];case 1:if(!a.sent()||!e.fetchData)return[2,null];return[4,e.fetchData()];case 2:return[4,function(e,t,r){var a={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!1},i=t.headers.get("x-nextjs-rewrite"),o=i||t.headers.get("x-nextjs-matched-path"),l=t.headers.get(G.MATCHED_PATH_HEADER);if(!l||o||l.includes("__next_data_catchall")||l.includes("/_error")||l.includes("/404")||(o=l),o){if(o.startsWith("/")){var d=(0,k.parseRelativeUrl)(o),p=(0,U.getNextPathnameInfo)(d.pathname,{nextConfig:a,parseData:!0}),f=(0,v.removeTrailingSlash)(p.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,m.getClientBuildManifest)()]).then(function(t){var o=c._(t,2),s=o[0],u=o[1].__rewrites,l=(0,O.addLocale)(p.pathname,p.locale);if((0,T.isDynamicRoute)(l)||!i&&s.includes((0,S.normalizeLocalePath)((0,P.removeBasePath)(l),r.router.locales).pathname)){var h=(0,U.getNextPathnameInfo)((0,k.parseRelativeUrl)(e).pathname,{nextConfig:{basePath:a.basePath,trailingSlash:a.trailingSlash},parseData:!0});d.pathname=l=(0,M.addBasePath)(h.pathname)}var v=n(l,s,u,d.query,function(e){return Q(e,s)},r.router.locales);v.matchedPage&&(d.pathname=v.parsedAs.pathname,l=d.pathname,Object.assign(d.query,v.parsedAs.query));var m=s.includes(f)?f:Q((0,S.normalizeLocalePath)((0,P.removeBasePath)(d.pathname),r.router.locales).pathname,s);if((0,T.isDynamicRoute)(m)){var g=(0,w.getRouteMatcher)((0,R.getRouteRegex)(m))(l);Object.assign(d.query,g||{})}return{type:"rewrite",parsedAs:d,resolvedHref:m}})}var h=(0,x.parsePath)(e),g=(0,B.formatNextPathnameInfo)(u._(s._({},(0,U.getNextPathnameInfo)(h.pathname,{nextConfig:a,parseData:!0})),{defaultLocale:r.router.defaultLocale,buildId:""}));return Promise.resolve({type:"redirect-external",destination:"".concat(g).concat(h.query).concat(h.hash)})}var y=t.headers.get("x-nextjs-redirect");if(y){if(y.startsWith("/")){var _=(0,x.parsePath)(y),b=(0,B.formatNextPathnameInfo)(u._(s._({},(0,U.getNextPathnameInfo)(_.pathname,{nextConfig:a,parseData:!0})),{defaultLocale:r.router.defaultLocale,buildId:""}));return Promise.resolve({type:"redirect-internal",newAs:"".concat(b).concat(_.query).concat(_.hash),newUrl:"".concat(b).concat(_.query).concat(_.hash)})}return Promise.resolve({type:"redirect-external",destination:y})}return Promise.resolve({type:"next"})}((t=a.sent()).dataHref,t.response,e)];case 3:return r=a.sent(),[2,{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}]}})})()}n=e.r(291534).default;var ee=Symbol("SSG_DATA_NOT_FOUND");function et(e){try{return JSON.parse(e)}catch(e){return null}}function er(e){var t=e.dataHref,r=e.inflightCache,n=e.isPrefetch,a=e.hasMiddleware,i=e.isServerRender,o=e.parseJSON,s=e.persistCache,u=e.isBackground,c=e.unstable_skipClientCache,l=new URL(t,window.location.href).href,d=(0,Y.getDeploymentId)(),p=function(e){var u;return(function e(t,r,n){return fetch(t,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then(function(a){return!a.ok&&r>1&&a.status>=500?e(t,r-1,n):a})})(t,i?3:1,{headers:Object.assign({},n?{purpose:"prefetch"}:{},n&&a?{"x-middleware-prefetch":"1"}:{},d?{"x-deployment-id":d}:{}),method:null!=(u=null==e?void 0:e.method)?u:"GET"}).then(function(r){return r.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:t,response:r,text:"",json:{},cacheKey:l}:r.text().then(function(e){if(!r.ok){if(a&&[301,302,307,308].includes(r.status))return{dataHref:t,response:r,text:e,json:{},cacheKey:l};if(404===r.status){var n;if(null==(n=et(e))?void 0:n.notFound)return{dataHref:t,json:{notFound:ee},response:r,text:e,cacheKey:l}}var s=Object.defineProperty(Error("Failed to load static props"),"__NEXT_ERROR_CODE",{value:"E124",enumerable:!1,
2configurable:!0});throw i||(0,m.markAssetError)(s),s}var u=r.headers.get(G.NEXT_NAV_DEPLOYMENT_ID_HEADER);if(null!=u&&u!==d){var c=Object.defineProperty(Error("Loaded static props were from an outdated deployment, forcing a hard reload"),"__NEXT_ERROR_CODE",{value:"E989",enumerable:!1,configurable:!0});throw i||(0,m.markAssetError)(c),c}return{dataHref:t,json:o?et(e):null,response:r,text:e,cacheKey:l}})}).then(function(e){return s&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete r[l],e}).catch(function(e){throw c||delete r[l],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,m.markAssetError)(e),e})};return c&&s?p({}).then(function(e){return"no-cache"!==e.response.headers.get("x-middleware-cache")&&(r[l]=Promise.resolve(e)),e}):void 0!==r[l]?r[l]:r[l]=p(u?{method:"HEAD"}:{})}function en(){return Math.random().toString(36).slice(2,10)}function ea(e){var t=e.url,r=e.router;if(t===(0,M.addBasePath)((0,O.addLocale)(r.asPath,r.locale)))throw Object.defineProperty(Error("Invariant: attempted to hard navigate to the same URL ".concat(t," ").concat(location.href)),"__NEXT_ERROR_CODE",{value:"E282",enumerable:!1,configurable:!0});window.location.href=t}var ei=function(e){var t=e.route,r=e.router,n=!1,a=r.clc=function(){n=!0};return function(){if(n){var e=Object.defineProperty(Error('Abort fetching component for route: "'.concat(t,'"')),"__NEXT_ERROR_CODE",{value:"E483",enumerable:!1,configurable:!0});throw e.cancelled=!0,e}a===r.clc&&(r.clc=null)}},eo=function(){function t(e,r,n,a){var o=this,s=a.initialProps,u=a.pageLoader,c=a.App,l=a.wrapApp,d=a.Component,p=a.err,f=a.subscription,h=a.isFallback,m=a.locale,g=(a.locales,a.defaultLocale,a.domainLocales,a.isPreview);i._(this,t),this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=en(),this.onPopState=function(e){var t,r=o.isFirstPopStateEvent;o.isFirstPopStateEvent=!1;var n=e.state;if(!n){var a=o.pathname,i=o.query;o.changeState("replaceState",(0,C.formatWithValidation)({pathname:(0,M.addBasePath)(a),query:i}),(0,E.getURL)());return}if(n.__NA)return void window.location.reload();if(n.__N&&(!r||o.locale!==n.options.locale||n.as!==o.asPath)){var s=n.url,u=n.as,c=n.options;o._key=n.key;var l=(0,k.parseRelativeUrl)(s).pathname;o.isSsr&&u===(0,M.addBasePath)(o.asPath)&&l===(0,M.addBasePath)(o.pathname)||(!o._bps||o._bps(n))&&o.change("replaceState",s,u,Object.assign({},c,{shallow:c.shallow&&o._shallow,locale:c.locale||o.defaultLocale,_h:0}),t)}};var y=(0,v.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[y]={Component:d,initial:!0,props:s,err:p,__N_SSG:s&&s.__N_SSG,__N_SSP:s&&s.__N_SSP}),this.components["/_app"]={Component:c,styleSheets:[]},this.events=t.events,this.pageLoader=u;var _=(0,T.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=f,this.clc=null,this._wrapApp=l,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!_&&!self.location.search&&0),this.state={route:y,pathname:e,query:r,asPath:_?e:n,isPreview:!!g,locale:void 0,isFallback:h},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),"u">typeof window){if(!n.startsWith("//")){var S={locale:m},b=(0,E.getURL)();this._initialMatchesMiddlewarePromise=K({router:this,locale:m,asPath:b}).then(function(t){return S._shouldResolveHref=n!==e,o.changeState("replaceState",t?b:(0,C.formatWithValidation)({pathname:(0,M.addBasePath)(e),query:r}),b,S),t})}window.addEventListener("popstate",this.onPopState)}}return o._(t,[{key:"reload",value:function(){window.location.reload()}},{key:"back",value:function(){window.history.back()}},{key:"forward",value:function(){window.history.forward()}},{key:"push",value:function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if((0,J.isJavaScriptURLString)(e.toString())||t&&(0,J.isJavaScriptURLString)(t.toString()))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,
2configurable:!0});return e=(r=$(this,e,t)).url,t=r.as,this.change("pushState",e,t,n)}},{key:"replace",value:function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if((0,J.isJavaScriptURLString)(e.toString())||t&&(0,J.isJavaScriptURLString)(t.toString()))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,configurable:!0});return e=(r=$(this,e,t)).url,t=r.as,this.change("replaceState",e,t,n)}},{key:"_bfl",value:function(t,r,n,i){return a._(function(){var a,o,s,u,c,d,p,f,h,g,y,_,S,b,E,T,k,w,R,I,C,x,A,P,N,L,D;return l._(this,function(l){switch(l.label){case 0:if(!(!this._bfl_s&&!this._bfl_d))return[3,5];a=e.r(849575).BloomFilter,l.label=1;case 1:return l.trys.push([1,3,,4]),[4,(0,m.getClientBuildManifest)()];case 2:return o=(u=l.sent()).__routerFilterStatic,s=u.__routerFilterDynamic,[3,4];case 3:if(console.error(l.sent()),i)return[2,!0];return ea({url:(0,M.addBasePath)((0,O.addLocale)(t,n||this.locale,this.defaultLocale)),router:this}),[2,new Promise(function(){})];case 4:c={numItems:34,errorRate:1e-4,numBits:652,numHashes:14,bitArray:[1,1,1,1,1,0,0,1,0,1,0,1,1,1,0,1,1,1,0,0,1,1,0,0,0,1,1,1,1,1,1,0,1,1,1,0,0,1,0,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,0,0,1,1,1,1,0,0,0,1,1,1,0,1,0,1,1,1,0,0,1,0,0,0,1,1,0,1,1,1,1,1,0,0,0,0,0,1,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,1,1,1,0,1,1,1,1,0,1,1,1,1,0,0,1,1,0,0,1,0,1,0,0,1,1,1,0,1,1,0,1,0,0,0,1,1,1,1,1,0,0,0,0,1,0,0,0,0,0,1,0,1,1,1,0,0,1,1,1,0,1,0,0,0,0,0,1,1,0,1,0,1,0,1,1,1,1,0,1,1,1,0,0,0,0,1,1,1,1,0,0,0,1,1,1,0,0,0,0,1,1,1,1,0,0,0,1,1,1,1,1,0,1,1,1,0,0,1,0,1,1,0,1,1,1,0,1,1,1,1,1,1,1,0,1,1,1,1,1,1,0,0,0,0,1,0,1,1,0,1,0,0,0,1,0,1,1,0,0,1,1,1,0,0,1,1,0,1,0,0,1,0,0,1,0,0,1,1,1,1,1,0,1,0,1,0,1,1,0,1,0,1,1,0,0,1,0,1,0,1,1,0,1,1,1,0,0,1,1,1,1,1,1,0,1,0,1,1,0,1,0,1,0,0,1,1,1,1,0,1,0,0,0,0,0,1,0,0,0,0,0,1,1,0,1,0,0,0,1,1,0,1,1,1,1,1,0,1,0,0,1,0,1,0,0,0,1,0,1,1,0,1,1,1,0,0,1,0,1,1,0,0,0,0,1,1,0,1,0,0,0,0,1,0,0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,0,0,0,0,1,1,0,1,1,0,1,1,0,1,0,1,0,1,0,1,0,0,0,0,1,1,0,1,0,0,0,1,1,1,0,0,0,1,1,0,0,0,0,0,1,1,1,1,1,0,0,0,1,0,0,1,0,0,1,1,0,0,1,0,0,0,1,0,0,0,1,1,1,1,0,1,0,0,0,1,1,1,1,0,0,1,1,0,0,1,1,0,0,0,1,1,0,0,1,1,0,1,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,1,1,1,0,1,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,1,1,1,1,0,0,0,1,0,0,1,0,1,1,0,0,0,1,0,0,1,0,1,1,1,1,0,1,0,1,0,0,0,1,1,0,1,0,1,1,1,1,0,1,0,1,1,1,1,0,0,1,1,1,1,1,0,0,1,1,1,0,0,1,0,1,1,1,1,1,0,0,0,0,0,0,1,1,0,1,0,0,0,0,1,1,1,1,0,1,1,1,0,1]},!o&&c&&(o=c||void 0),d={numItems:156,errorRate:1e-4,numBits:2991,numHashes:14,bitArray:[0,0,0,0,0,0,0,1,0,0,1,1,0,1,1,1,0,1,1,1,1,1,1,1,1,1,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,0,0,1,0,1,1,1,0,0,0,1,0,1,0,0,0,1,0,1,1,0,0,1,0,1,1,1,0,1,0,1,1,0,0,1,0,0,0,0,0,1,0,0,0,1,1,0,1,1,0,0,1,0,1,1,0,1,0,0,1,1,0,1,0,1,0,0,0,0,0,1,1,1,1,0,1,0,1,0,0,1,1,0,0,1,1,1,1,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,0,1,1,0,0,1,0,0,1,0,1,0,0,1,0,0,0,1,1,1,1,0,0,1,0,0,0,1,0,1,1,0,1,0,0,0,1,1,0,1,0,1,0,0,1,0,1,0,0,1,0,1,1,0,1,1,1,1,1,1,0,0,0,1,0,1,1,1,0,0,1,0,1,1,0,0,0,1,1,1,1,1,1,0,1,1,0,0,0,0,1,0,1,1,1,1,1,1,0,0,1,1,0,0,0,0,0,1,1,0,0,1,1,0,0,0,1,1,0,1,1,1,0,0,0,1,0,1,1,1,0,1,1,1,0,0,1,1,0,1,0,0,1,1,1,1,0,1,0,1,1,1,0,1,1,1,0,1,1,0,0,0,1,1,1,0,0,1,0,0,0,1,1,0,1,0,0,0,0,0,1,0,1,0,0,1,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0,0,0,1,0,1,0,0,1,0,0,1,1,0,0,1,0,1,0,0,0,0,1,0,1,1,0,0,1,1,1,0,1,0,1,0,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0,1,1,0,0,0,1,1,0,1,0,1,1,1,1,1,1,0,0,0,0,1,1,1,0,1,0,1,1,1,0,0,1,0,1,1,0,1,1,0,0,0,0,0,0,0,0,1,1,0,1,0,1,1,0,1,1,1,0,1,1,0,1,0,0,0,0,1,1,0,1,0,0,0,0,1,0,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,1,1,1,0,1,1,1,0,1,0,0,0,1,0,1,0,1,1,0,1,0,1,0,1,1,1,0,1,0,1,1,1,1,0,0,1,0,0,0,1,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,0,0,1,1,1,1,0,1,1,1,1,0,0,1,1,0,0,1,0,1,1,1,1,1,1,0,0,0,0,1,0,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,1,0,1,1,1,0,1,0,0,1,0,1,0,0,0,1,0,1,1,1,1,1,1,1,0,1,0,0,0,0,0,1,1,1,1,1,1,0,1,0,1,1,1,0,1,1,0,1,0,0,0,0,0,0,0,1,1,0,1,0,1,1,1,1,1,0,0,1,0,1,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,1,0,0,0,1,1,1,0,1,1,0,1,0,0,0,0,0,1,1,0,1,1,0,1,0,1,1,1,0,0,0,0,0,0,0,1,1,1,0,1,0,0,1,0,1,0,1,1,0,1,1,1,0,0,0,0,0,0,0,1,1,0,1,1,0,1,0,1,0,0,1,0,1,1,1,1,1,1,0,0,1,0,1,0,1,1,1,0,0,1,0,0,0,1,0,0,1,0,1,1,0,1,0,1,0,0,1,1,0,0,0,1,1,1,0,0,0,1,1,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,0,1,1,1,0,1,1,0,0,1,1,1,0,1,1,1,0,1,1,0,1,0,1,0,0,1,1,1,0,0,1,0,1,0,0,1,1,1,1,0,0,1,0,0,0,0,1,0,1,0,0,0,0,0,1,1,0,1,0,0,1,0,1,1,1,0,0,0,1,0,1,0,1,0,0,1,1,1,0,1,0,1,0,1,1,1,0,1,0,0,1,1,1,0,1,1,1,1,1,1,0,1,0,1,1,0,1,1,0,0,0,0,0,1,0,0,1,0,0,0,0,0,1,1,1,0,1,1,0,1,0,0,0,1,1,0,0,1,0,1,0,1,1,0,1,1,0,1,1,1,0,0,0,1,1,1,1,1,0,1,0,1,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,1,1,1,0,0,0,0,1,1,0,1,1,0,1,1,0,1,0,1,1,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,1,0,1,0,0,1,0,0,1,0,0,0,0,0,1,0,0,1,0,0,1,1,0,0,1,1,1,1,1,1,1,0,0,1,1,1,1,0,1,0,0,0,0,1,0,0,0,0,1,1,0,0,0,0,1,1,1,1,0,0,1,1,1,0,1,0,0,0,1,1,0,1,0,0,0,0,1,1,1,1,0,0,1,1,0,0,0,1,0,0,0,1,0,1,0,1,1,0,0,1,0,1,1,1,1,0,1,1,1,1,0,1,0,1,0,0,1,0,1,0,1,0,0,0,1,0,0,0,0,1,0,1,1,1,1,1,1,1,0,1,0,0,0,0,1,1,1,0,1,1,1,0,0,1,0,1,1,0,1,1,1,1,0,1,0,1,1,0,0,1,1,1,1,1,0,0,1,1,0,1,0,0,0,1,0,0,1,0,0,1,0,1,1,0,1,1,0,1,0,1,0,1,0,1,1,1,1,0,0,1,1,1,1,0,1,0,1,0,1,1,1,0,1,0,1,0,1,0,1,0,1,1,0,0,1,1,0,0,1,1,1,0,0,1,0,0,1,0,1,1,1,1,0,1,0,1,0,0,0,1,1,1,1,1,0,1,0,1,1,0,0,0,1,0,1,0,1,0,1,1,1,1,1,1,0,0,0,1,0,0,0,0,1,1,1,1,0,1,0,0,1,0,0,0,1,1,0,0,0,1,1,0,0,1,0,1,1,0,1,1,1,1,0,1,1,1,1,0,0,0,0,1,0,0,1,1,1,1,1,0,1,1,1,1,0,0,0,1,1,1,0,0,1,1,1,1,1,0,1,1,1,0,0,1,1,1,1,0,0,1,1,0,1,0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,1,0,1,1,1,0,1,0,0,1,1,0,1,0,1,0,1,0,1,0,0,1,0,1,1,0,1,1,0,1,1,1,0,0,0,0,1,0,0,1,0,1,0,0,0,0,1,1,1,1,0,1,0,1,0,1,0,0,0,0,0,0,1,0,0,1,0,1,1,0,1,0,0,1,1,1,0,0,0,0,1,0,0,1,0,0,1,1,0,0,0,0,1,1,0,0,0,0,0,0,1,0,1,1,1,1,0,1,0,0,1,0,1,0,1,1,1,1,1,1,0,1,0,0,1,0,1,0,0,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,1,0,1,1,1,1,0,1,1,0,1,0,0,0,1,0,0,1,1,1,1,0,0,0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,0,0,0,1,0,0,1,0,1,0,1,0,1,1,1,0,0,0,0,1,1,0,0,1,1,1,0,1,0,1,0,0,1,1,0,0,0,1,1,1,1,0,1,0,1,1,1,1,1,1,1,1,0,1,0,1,0,1,0,0,0,1,0,0,1,1,0,0,0,0,0,1,1,1,0,0,0,1,1,0,1,0,0,1,1,0,0,1,1,0,1,1,1,0,0,1,1,0,0,1,1,1,1,1,1,1,0,1,0,1,1,1,1,1,1,1,0,1,1,1,0,0,1,1,0,1,1,0,0,1,1,0,0,0,0,1,1,1,0,1,0,1,1,1,1,1,1,1,1,0,1,0,0,0,1,1,1,1,0,0,0,0,1,0,1,1,1,1,0,1,0,1,1,1,1,1,1,1,1,0,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,0,0,1,0,0,0,0,1,1,0,0,1,0,1,1,1,0,1,1,1,0,0,0,0,1,1,1,0,0,1,0,0,1,0,1,0,0,0,1,0,1,0,0,0,0,0,1,0,0,1,0,1,0,1,0,1,1,0,1,1,0,1,0,1,1,0,1,0,0,1,1,1,0,1,0,0,0,1,1,1,0,0,0,1,0,1,1,1,1,1,0,1,0,0,0,1,1,1,1,1,0,1,1,0,1,0,0,0,0,0,1,1,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,1,1,1,1,0,0,1,0,1,1,0,0,1,0,0,0,0,0,0,1,1,1,0,1,0,0,1,0,0,0,1,0,0,1,0,1,1,1,0,1,1,1,0,1,0,0,0,0,0,0,1,0,1,1,1,1,0,0,1,0,0,0,1,1,0,0,1,1,1,1,1,0,1,1,0,1,0,0,1,1,1,1,1,0,0,1,1,0,0,0,1,0,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,1,0,0,0,1,1,0,0,1,1,1,1,0,1,0,1,0,0,0,1,0,1,0,1,0,1,1,1,1,1,1,1,0,0,0,1,0,0,1,0,0,0,1,0,1,0,1,1,1,1,1,1,1,1,1,0,0,1,0,0,1,1,1,1,1,0,0,0,1,0,1,1,0,0,1,0,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,1,0,0,0,1,1,1,1,1,0,0,1,0,1,0,1,0,0,0,1,1,0,0,0,1,1,1,0,1,1,1,1,1,0,1,0,1,0,1,0,0,0,1,0,0,1,1,1,0,0,0,1,0,1,0,1,0,1,1,0,1,1,1,0,1,1,0,0,1,0,1,0,1,0,1,1,1,0,0,1,0,1,1,0,1,0,0,1,0,0,0,0,0,1,0,1,1,0,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,1,1,0,0,1,0,0,1,0,0,1,0,1,0,1,1,0,0,1,1,0,0,0,1,1,0,0,1,0,0,0,1,0,1,0,0,1,0,1,0,0,1,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,1,1,1,0,1,1,1,1,1,0,1,1,0,1,1,1,0,0,1,1,1,1,1,1,0,0,0,1,1,1,0,0,1,0,0,0,0,1,0,0,1,1,1,1,1,1,0,0,0,0,0,0,1,0,0,1,1,1,0,0,0,0,0,0,1,1,0,1,0,1,0,1,1,0,0,1,0,0,1,1,0,0,1,1,1,0,0,0,0,1,1,0,0,1,0,0,1,0,0,0,1,1,0,0,0,0,0,1,1,0,0,1,0,0,1,0,1,0,0,1,1,0,1,1,1,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,1,0,1,1,1,1,0,0,0,0,0,1,1,1,0,0,1,0,0,0,0,1,1,0,0,0,1,1,0,0,0,0,1,1,0,1,1,0,0,0,1,0,1,1,0,1,1,0,1,0,1,0,1,0,0,0,1,1,0,0,0,1,0,1,1,1,0,0,0,0,1,0,0,0,0,1,1,0,0,1,0,0,0,1,0,0,0,0,0,1,1,1,0,0,1,0,1,1,0,0,1,1,0,1,1,1,0,0,0,1,1,0,0,0,0,1,1,1,1,0,1,0,1,0,0,0,1,1,0,1,0,1,1,1,0,0,0,1,1,0,0,1,1,0,0,0,1,0,1,1,0,0,0,0,1,1,1,1,0,1,0,0,0,0,1,1,0,1,1,0,0,0,1,0,0,1,1,0,1,0,0,0,1,1,0,0,0,0,1,0,0,0,0,1,0,1,1,0,0,0,1,1,1,0,0,1,1,0,1,1,0,0,1,1,0,1,0,1,0,1,1,0,1,0,0,0,0,0,1,1,0,1,0,1,1,1,0,1,0,1,0,1,0,1,0,0,0,1,1,1,0,1,1,1,1,0,1,0,1,0,0,1,0,1,1,1,0,1,1,0,1,0,0,1,0,1,1,1,1,1,1,1,1,1,0,1,0,1,1,1,0,0,1,1,1,0,1,0,0,1,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,0,1,1,0,1,1,1,0,0,1,0,0,1,0,1,1,1,0,1,1,1,0,0,1,0,1,0,0,1,0,0,1,1,1,0,1,0,1,1,1,1,0,1,1,0,0,0,1,1,0,1,1,0,1,1,0,0,0,0,0,1,1,1,1,0,1,0,1,1,1,1,0,1,0,0,1,0,0,0,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,0,1,1,0,1,1,1,1,1,1,0,1,1,1,0,1,1,1,1,0,1,1,0,1,0,1,0,1,0,0,1,1,1,1,1,0,1,0,0,1,0,0,0,1,1,1,0,1,0,1,1,0,1,0,1,1,1,0,0,0,0,0,1,1,1,0,1,0,0,1,0,0,1,1,0,1,1,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,0,1,1,1,1,1,1,0,1,1,1,0,0,1,0,1,1,0,1,0,1,1,0,1,0,0,1,1,1,1,0,1,0]},!s&&d&&(s=d||void 0),(null==o?void 0:o.numHashes)&&(this._bfl_s=new a(o.numItems,o.errorRate),this._bfl_s.import(o)),(null==s?void 0:s.numHashes)&&(this._bfl_d=new a(s.numItems,s.errorRate),this._bfl_d.import(s)),l.label=5;case 5:p=!1,f=!1,h=[{as:t},{as:r}],g=!0,y=!1,_=void 0;try{for(S=h[Symbol.iterator]();!(g=(b=S.next()).done);g=!0)if(T=(E=b.value).as,k=E.allowMatchCurrent,T&&(w=(0,v.removeTrailingSlash)(new URL(T,"http://n").pathname),R=(0,M.addBasePath)((0,O.addLocale)(w,n||this.locale)),k||w!==(0,v.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname))){for(p=p||!!(null==(I=this._bfl_s)?void 0:I.contains(w))||!!(null==(C=this._bfl_s)?void 0:C.contains(R)),x=0,A=[w,R];x<A.length;x++)for(P=A[x].split("/"),N=0;!f&&N<P.length+1;N++)if((D=P.slice(0,N).join("/"))&&(null==(L=this._bfl_d)?void 0:L.contains(D))){f=!0;break}if(p||f){if(i)return[2,!0];return ea({url:(0,M.addBasePath)((0,O.addLocale)(t,n||this.locale,this.defaultLocale)),router:this}),[2,new Promise(function(){})]}}}catch(e){y=!0,_=e}finally{try{g||null==S.return||S.return()}finally{if(y)throw _}}l.label=6;case 6:return[2,!1]}})}).call(this)}},{key:"change",value:function(e,r,i,o,d){return a._(function(){var a,p,f,h,_,S,b,L,D,U,B,H,z,G,Y,J,V,Z,et,er,en,ei,eo,es,eu,ec,el,ed,ep,ef,eh,ev,em,eg,ey,e_,eS,eb,eE,eT,ek,ew,eR,eI,eC,ex,eO,eA,eP,eM,eN,eL,eD,eU,eB,ej,eF,eH,eW,eq,ez,eG,eY,eJ,eX,eK,eV;return l._(this,function(l){switch(l.label){case 0:if(a=this,!(0,F.isLocalURL)(r))return ea({url:r,router:this}),[2,!1];if(!(!(f=1===o._h)&&!o.shallow))return[3,2];return[4,this._bfl(i,void 0,o.locale)];case 1:l.sent(),l.label=2;case 2:if(h=f||o._shouldResolveHref||(0,x.parsePath)(r).pathname===(0,x.parsePath)(i).pathname,_=s._({},this.state),S=!0!==this.isReady,this.isReady=!0,b=this.isSsr,f||(this.isSsr=!1),f&&this.clc)return[2,!1];if(L=_.locale,E.ST&&performance.mark("routeChange"),U=void 0!==(D=o.shallow)&&D,H=void 0===(B=o.scroll)||B,z={shallow:U},this._inFlightRoute&&this.clc&&(b||t.events.emit("routeChangeError",X(),this._inFlightRoute,z),this.clc(),this.clc=null),i=(0,M.addBasePath)((0,O.addLocale)((0,N.hasBasePath)(i)?(0,P.removeBasePath)(i):i,o.locale,this.defaultLocale)),G=(0,A.removeLocale)((0,N.hasBasePath)(i)?(0,P.removeBasePath)(i):i,_.locale),this._inFlightRoute=i,Y=L!==_.locale,!(!f&&this.onlyAHashChange(G)&&!Y))return[3,7];_.asPath=G,t.events.emit("hashChangeStart",i,z),this.changeState(e,r,i,u._(s._({},o),{scroll:!1})),H&&this.scrollToHash(G),l.label=3;case 3:return l.trys.push([3,5,,6]),[4,this.set(_,this.components[_.route],null)];case 4:return l.sent(),[3,6];case 5:throw J=l.sent(),(0,y.default)(J)&&J.cancelled&&t.events.emit("routeChangeError",J,G,z),J;case 6:return t.events.emit("hashChangeComplete",i,z),[2,!0];case 7:Z=(V=(0,k.parseRelativeUrl)(r)).pathname,et=V.query,l.label=8;case 8:return l.trys.push([8,10,,11]),[4,Promise.all([this.pageLoader.getPageList(
2),(0,m.getClientBuildManifest)(),this.pageLoader.getMiddleware()])];case 9:return er=(ei=c._.apply(void 0,[l.sent(),2]))[0],en=ei[1].__rewrites,[3,11];case 10:return l.sent(),ea({url:i,router:this}),[2,!1];case 11:if(this.urlIsNew(G)||Y||(e="replaceState"),eo=i,Z=Z?(0,v.removeTrailingSlash)((0,P.removeBasePath)(Z)):Z,es=(0,v.removeTrailingSlash)(Z),eu=i.startsWith("/")&&(0,k.parseRelativeUrl)(i).pathname,null==(p=this.components[Z])?void 0:p.__appRouter)return ea({url:i,router:this}),[2,new Promise(function(){})];if(ec=!!(eu&&es!==eu&&(!(0,T.isDynamicRoute)(es)||!(0,w.getRouteMatcher)((0,R.getRouteRegex)(es))(eu))),!(ed=!o.shallow))return[3,13];return[4,K({asPath:i,locale:_.locale,router:this})];case 12:ed=l.sent(),l.label=13;case 13:if(el=ed,f&&el&&(h=!1),h&&"/_error"!==Z)if(o._shouldResolveHref=!0,i.startsWith("/")){if((ep=n((0,M.addBasePath)((0,O.addLocale)(G,_.locale),!0),er,en,et,function(e){return Q(e,er)},this.locales)).externalDest)return ea({url:i,router:this}),[2,!0];el||(eo=ep.asPath),ep.matchedPage&&ep.resolvedHref&&(Z=ep.resolvedHref,V.pathname=(0,M.addBasePath)(Z),el||(r=(0,C.formatWithValidation)(V)))}else V.pathname=Q(Z,er),V.pathname!==Z&&(Z=V.pathname,V.pathname=(0,M.addBasePath)(Z),el||(r=(0,C.formatWithValidation)(V)));if(!f&&!o.shallow&&this._bfl_d&&(0,T.isDynamicRoute)(Z)&&(ef=(0,v.removeTrailingSlash)((0,k.parseRelativeUrl)(G).pathname),(0,I.hasDynamicFilterCandidate)(Z,ef,function(e){var t;return!!(null==(t=a._bfl_d)?void 0:t.contains(e))})))return ea({url:i,router:this}),[2,new Promise(function(){})];if(!(0,F.isLocalURL)(i))return ea({url:i,router:this}),[2,!1];if(eo=(0,A.removeLocale)((0,P.removeBasePath)(eo),_.locale),es=(0,v.removeTrailingSlash)(Z),eh=!1,(0,T.isDynamicRoute)(es)){if(em=(ev=(0,k.parseRelativeUrl)(eo)).pathname,eg=(0,R.getRouteRegex)(es),eh=(0,w.getRouteMatcher)(eg)(em),e_=(ey=es===em)?(0,q.interpolateAs)(es,em,et):{},eh&&(!ey||e_.result))ey?i=(0,C.formatWithValidation)(Object.assign({},ev,{pathname:e_.result,query:(0,W.omit)(et,e_.params)})):Object.assign(et,eh);else if((eS=Object.keys(eg.groups).filter(function(e){return!et[e]&&!eg.groups[e].optional})).length>0&&!el)throw Object.defineProperty(Error((ey?"The provided `href` (".concat(r,") value is missing query values (").concat(eS.join(", "),") to be interpolated properly. "):"The provided `as` value (".concat(em,") is incompatible with the `href` value (").concat(es,"). "))+"Read more: https://nextjs.org/docs/messages/".concat(ey?"href-interpolation-failed":"incompatible-href-as")),"__NEXT_ERROR_CODE",{value:"E344",enumerable:!1,configurable:!0})}f||t.events.emit("routeChangeStart",i,z),eb="/404"===this.pathname||"/_error"===this.pathname,l.label=14;case 14:return l.trys.push([14,35,,36]),[4,this.getRouteInfo({route:es,pathname:Z,query:et,as:i,resolvedAs:eo,routeProps:z,locale:_.locale,isPreview:_.isPreview,hasMiddleware:el,unstable_skipClientCache:o.unstable_skipClientCache,isQueryUpdating:f&&!this.isFallback,isMiddlewareRewrite:ec})];case 15:if(eI=l.sent(),!(!f&&!o.shallow))return[3,17];return[4,this._bfl(i,"resolvedAs"in eI?eI.resolvedAs:void 0,_.locale)];case 16:l.sent(),l.label=17;case 17:if("route"in eI&&el&&(es=Z=eI.route||es,z.shallow||(et=Object.assign({},eI.query||{},et)),eC=(0,N.hasBasePath)(V.pathname)?(0,P.removeBasePath)(V.pathname):V.pathname,eh&&Z!==eC&&Object.keys(eh).forEach(function(e){eh&&et[e]===eh[e]&&delete et[e]}),(0,T.isDynamicRoute)(Z))&&(ex=!z.shallow&&eI.resolvedAs?eI.resolvedAs:(0,M.addBasePath)((0,O.addLocale)(new URL(i,location.href).pathname,_.locale),!0),(0,N.hasBasePath)(ex)&&(ex=(0,P.removeBasePath)(ex)),eO=(0,R.getRouteRegex)(Z),(eA=(0,w.getRouteMatcher)(eO)(new URL(ex,location.href).pathname))&&Object.assign(et,eA)),"type"in eI)if("redirect-internal"===eI.type)return[2,this.change(e,eI.newUrl,eI.newAs,o)];else return ea({url:eI.destination,router:this}),[2,new Promise(function(){})];if((eP=eI.Component)&&eP.unstable_scriptLoader&&[].concat(eP.unstable_scriptLoader()).forEach(function(e){(0,g.handleClientScriptLoad)(e.props)}),!((eI.__N_SSG||eI.__N_SSP)&&eI.props))return[3,23];if(eI.props.pageProps&&eI.props.pageProps.__N_REDIRECT){if(o.locale=!1,(eM=eI.props.pageProps.__N_REDIRECT).startsWith("/")&&!1!==eI.props.pageProps.__N_REDIRECT_BASE_PATH)return(eN=(0,k.parseRelativeUrl)(eM)).pathname=Q(eN.pathname,er),eD=(eL=$(this,eM,eM)).url,eU=eL.as,[2,this.change(e,eD,eU,o)];return ea({url:eM,router:this}),[2,new Promise(function(){})]}if(_.isPreview=!!eI.props.__N_PREVIEW,eI.props.notFound!==ee)return[3,23];l.label=18;case 18:return l.trys.push([18,20,,21]),[4,this.fetchComponent("/404")];case 19:return l.sent(),eB="/404",[3,21];case 20:return l.sent(),eB="/_error",[3,21];case 21:return[4,this.getRouteInfo({route:eB,pathname:eB,query:et,as:i,resolvedAs:eo,routeProps:{shallow:!1},locale:_.locale,isPreview:_.isPreview,isNotFound:!0})];case 22:if("type"in(eI=l.sent()))throw Object.defineProperty(Error("Unexpected middleware effect on /404"),"__NEXT_ERROR_CODE",{value:"E158",enumerable:!1,
2configurable:!0});l.label=23;case 23:if(f&&"/_error"===this.pathname&&(null==(ew=self.__NEXT_DATA__.props)||null==(ek=ew.pageProps)?void 0:ek.statusCode)===500&&(null==(eR=eI.props)?void 0:eR.pageProps)&&(eI.props.pageProps.statusCode=500),ej=o.shallow&&_.route===(null!=(eE=eI.route)?eE:es),eH=(eF=null!=(eT=o.scroll)?eT:!f&&!ej)?{x:0,y:0}:null,eW=null!=d?d:eH,eq=u._(s._({},_),{route:es,pathname:Z,query:et,asPath:G,isFallback:!1}),!(f&&eb))return[3,29];return[4,this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:et,as:i,resolvedAs:eo,routeProps:{shallow:!1},locale:_.locale,isPreview:_.isPreview,isQueryUpdating:f&&!this.isFallback})];case 24:if("type"in(eI=l.sent()))throw Object.defineProperty(Error("Unexpected middleware effect on ".concat(this.pathname)),"__NEXT_ERROR_CODE",{value:"E225",enumerable:!1,configurable:!0});"/_error"===this.pathname&&(null==(eG=self.__NEXT_DATA__.props)||null==(ez=eG.pageProps)?void 0:ez.statusCode)===500&&(null==(eY=eI.props)?void 0:eY.pageProps)&&(eI.props.pageProps.statusCode=500),l.label=25;case 25:return l.trys.push([25,27,,28]),[4,this.set(eq,eI,eW)];case 26:return l.sent(),[3,28];case 27:throw eJ=l.sent(),(0,y.default)(eJ)&&eJ.cancelled&&t.events.emit("routeChangeError",eJ,G,z),eJ;case 28:return[2,!0];case 29:if(t.events.emit("beforeHistoryChange",i,z),this.changeState(e,r,i,o),f&&!eW&&!S&&!Y&&(0,j.compareRouterStates)(eq,this.state))return[3,34];l.label=30;case 30:return l.trys.push([30,32,,33]),[4,this.set(eq,eI,eW)];case 31:return l.sent(),[3,33];case 32:if((eX=l.sent()).cancelled)eI.error=eI.error||eX;else throw eX;return[3,33];case 33:if(eI.error)throw f||t.events.emit("routeChangeError",eI.error,G,z),eI.error;f||t.events.emit("routeChangeComplete",i,z),eK=/#.+$/,eF&&eK.test(i)&&this.scrollToHash(i),l.label=34;case 34:return[2,!0];case 35:if(eV=l.sent(),(0,y.default)(eV)&&eV.cancelled)return[2,!1];throw eV;case 36:return[2]}})}).call(this)}},{key:"changeState",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};("pushState"!==e||(0,E.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:en()},"",r))}},{key:"handleRouteInfoError",value:function(e,r,n,i,o,s){return a._(function(){var a,u,c,d,p,f;return l._(this,function(l){switch(l.label){case 0:if(e.cancelled)throw e;if((0,m.isAssetError)(e)||s)throw t.events.emit("routeChangeError",e,i,o),ea({url:i,router:this}),X();console.error(e),l.label=1;case 1:return l.trys.push([1,7,,8]),[4,this.fetchComponent("/_error")];case 2:if(c=(u=l.sent()).page,d=u.styleSheets,(p={props:a,Component:c,styleSheets:d,err:e,error:e}).props)return[3,6];l.label=3;case 3:return l.trys.push([3,5,,6]),[4,this.getInitialProps(c,{err:e,pathname:r,query:n})];case 4:return p.props=l.sent(),[3,6];case 5:return console.error("Error in error page `getInitialProps`: ",l.sent()),p.props={},[3,6];case 6:return[2,p];case 7:return f=l.sent(),[2,this.handleRouteInfoError((0,y.default)(f)?f:Object.defineProperty(Error(f+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0}),r,n,i,o,!0)];case 8:return[2]}})}).call(this)}},{key:"getRouteInfo",value:function(e){return a._(function(e){var t,r,n,i,o,c,d,p,f,h,m,g,_,b,E,T,k,w,R,I,x,O,A,M,N,L,U,B,j,F,H,W,q,z,G,Y;return l._(this,function(J){switch(J.label){case 0:t=this,r=e.route,n=e.pathname,i=e.query,o=e.as,c=e.resolvedAs,d=e.routeProps,p=e.locale,f=e.hasMiddleware,h=e.isPreview,m=e.unstable_skipClientCache,g=e.isQueryUpdating,_=e.isMiddlewareRewrite,b=e.isNotFound,E=r,J.label=1;case 1:if(J.trys.push([1,10,,11]),I=this.components[E],d.shallow&&I&&this.route===E)return[2,I];if(x=ei({route:E,router:this}),f&&(I=void 0),O=!I||"initial"in I?void 0:I,A=g,M={dataHref:this.pageLoader.getDataHref({href:(0,C.formatWithValidation)({pathname:n,query:i}),skipInterpolation:!0,asPath:b?"/404":c,locale:p}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:A?this.sbc:this.sdc,persistCache:!h,isPrefetch:!1,unstable_skipClientCache:m,isBackground:A},!(g&&!_))return[3,2];return L=null,[3,4];case 2:return[4,Z({fetchData:function(){return er(M)},asPath:b?"/404":c,locale:p,router:this}).catch(function(e){if(g)return null;throw e})];case 3:L=J.sent(),J.label=4;case 4:if((N=L)&&("/_error"===n||"/404"===n)&&(N.effect=void 0),g&&(N?N.json=self.__NEXT_DATA__.props:N={json:self.__NEXT_DATA__.props}),x(),(null==N||null==(T=N.effect)?void 0:T.type)==="redirect-internal"||(null==N||null==(k=N.effect)?void 0:k.type)==="redirect-external")return[2,N.effect];if((null==N||null==(w=N.effect)?void 0:w.type)!=="rewrite")return[3,6];return U=(0,v.removeTrailingSlash)(N.effect.resolvedHref),[4,this.pageLoader.getPageList(
2)];case 5:if(B=J.sent(),(!g||B.includes(U))&&(E=U,n=N.effect.resolvedHref,i=s._({},i,N.effect.parsedAs.query),c=(0,P.removeBasePath)((0,S.normalizeLocalePath)(N.effect.parsedAs.pathname,this.locales).pathname),I=this.components[E],d.shallow&&I&&this.route===E&&!f))return[2,u._(s._({},I),{route:E})];J.label=6;case 6:if((0,D.isAPIRoute)(E))return ea({url:o,router:this}),[2,new Promise(function(){})];if(F=O)return[3,8];return[4,this.fetchComponent(E).then(function(e){return{Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP}})];case 7:F=J.sent(),J.label=8;case 8:return j=F,H=null==N||null==(R=N.response)?void 0:R.headers.get("x-middleware-skip"),W=j.__N_SSG||j.__N_SSP,H&&(null==N?void 0:N.dataHref)&&delete this.sdc[N.dataHref],[4,this._getData(function(){return a._(function(){var e,t;return l._(this,function(r){switch(r.label){case 0:if(!W)return[3,2];if((null==N?void 0:N.json)&&!H)return[2,{cacheKey:N.cacheKey,props:N.json}];return[4,er({dataHref:(null==N?void 0:N.dataHref)?N.dataHref:this.pageLoader.getDataHref({href:(0,C.formatWithValidation)({pathname:n,query:i}),asPath:c,locale:p}),isServerRender:this.isSsr,parseJSON:!0,inflightCache:H?{}:this.sdc,persistCache:!h,isPrefetch:!1,unstable_skipClientCache:m})];case 1:return[2,{cacheKey:(e=r.sent()).cacheKey,props:e.json||{}}];case 2:return t={headers:{}},[4,this.getInitialProps(j.Component,{pathname:n,query:i,asPath:o,locale:p,locales:this.locales,defaultLocale:this.defaultLocale})];case 3:return[2,(t.props=r.sent(),t)]}})}).call(t)})];case 9:return z=(q=J.sent()).props,G=q.cacheKey,j.__N_SSP&&M.dataHref&&G&&delete this.sdc[G],this.isPreview||!j.__N_SSG||g||er(Object.assign({},M,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(function(){}),z.pageProps=Object.assign({},z.pageProps),j.props=z,j.route=E,j.query=i,j.resolvedAs=c,this.components[E]=j,[2,j];case 10:return Y=J.sent(),[2,this.handleRouteInfoError((0,y.getProperError)(Y),n,i,o,d)];case 11:return[2]}})}).apply(this,arguments)}},{key:"set",value:function(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}},{key:"beforePopState",value:function(e){this._bps=e}},{key:"onlyAHashChange",value:function(e){if(!this.asPath)return!1;var t=c._(this.asPath.split("#",2),2),r=t[0],n=t[1],a=c._(e.split("#",2),2),i=a[0],o=a[1];return!!o&&r===i&&n===o||r===i&&n!==o}},{key:"scrollToHash",value:function(e){var t=c._(e.split("#",2),2)[1],r=void 0===t?"":t;(0,z.disableSmoothScrollDuringRouteTransition)(function(){if(""===r||"top"===r)return void window.scrollTo(0,0);var e=decodeURIComponent(r),t=document.getElementById(e);if(t)return void t.scrollIntoView();var n=document.getElementsByName(e)[0];n&&n.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}},{key:"urlIsNew",value:function(e){return this.asPath!==e}},{key:"prefetch",value:function(e){return a._(function(e){var t,r,a,i,o,u,c,d,p,f,h,g,y,_,S,b,E,I=arguments;return l._(this,function(l){switch(l.label){case 0:if(t=this,r=I.length>1&&void 0!==I[1]?I[1]:e,a=I.length>2&&void 0!==I[2]?I[2]:{},"u">typeof window&&(0,H.isBot)(window.navigator.userAgent))return[2];return o=(i=(0,k.parseRelativeUrl)(e)).pathname,u=i.pathname,c=i.query,d=u,[4,this.pageLoader.getPageList()];case 1:return p=l.sent(),f=r,h=void 0!==a.locale?a.locale||void 0:this.locale,[4,K({asPath:r,locale:h,router:this})];case 2:if(g=l.sent(),!r.startsWith("/"))return[3,4];return[4,(0,m.getClientBuildManifest)()];case 3:if(y=l.sent().__rewrites,(_=n((0,M.addBasePath)((0,O.addLocale)(r,this.locale),!0),p,y,i.query,function(e){return Q(e,p)},this.locales)).externalDest)return[2];g||(f=(0,A.removeLocale)((0,P.removeBasePath)(_.asPath),this.locale)),_.matchedPage&&_.resolvedHref&&(u=_.resolvedHref,i.pathname=u,g||(e=(0,C.formatWithValidation)(i))),l.label=4;case 4:return i.pathname=Q(i.pathname,p),(0,T.isDynamicRoute)(i.pathname)&&(u=i.pathname,i.pathname=u,Object.assign(c,(0,w.getRouteMatcher)((0,R.getRouteRegex)(i.pathname))((0,x.parsePath)(r).pathname)||{}),g||(e=(0,C.formatWithValidation)(i))),[3,5];case 5:return[4,Z({fetchData:function(){return er({dataHref:t.pageLoader.getDataHref({href:(0,C.formatWithValidation)({pathname:d,query:c}),skipInterpolation:!0,asPath:f,locale:h}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:t.sdc,persist
2Cache:!t.isPreview,isPrefetch:!0})},asPath:r,locale:h,router:this})];case 6:b=l.sent(),l.label=7;case 7:if((null==(S=b)?void 0:S.effect.type)==="rewrite"&&(i.pathname=S.effect.resolvedHref,u=S.effect.resolvedHref,c=s._({},c,S.effect.parsedAs.query),f=S.effect.parsedAs.pathname,e=(0,C.formatWithValidation)(i)),(null==S?void 0:S.effect.type)==="redirect-external")return[2];return E=(0,v.removeTrailingSlash)(u),[4,this._bfl(r,f,a.locale,!0)];case 8:return l.sent()&&(this.components[o]={__appRouter:!0}),[4,Promise.all([this.pageLoader._isSsg(E).then(function(r){return!!r&&er({dataHref:(null==S?void 0:S.json)?null==S?void 0:S.dataHref:t.pageLoader.getDataHref({href:e,asPath:f,locale:h}),isServerRender:!1,parseJSON:!0,inflightCache:t.sdc,persistCache:!t.isPreview,isPrefetch:!0,unstable_skipClientCache:a.unstable_skipClientCache||a.priority&&!0}).then(function(){return!1}).catch(function(){return!1})}),this.pageLoader[a.priority?"loadPage":"prefetch"](E)])];case 9:return l.sent(),[2]}})}).apply(this,arguments)}},{key:"fetchComponent",value:function(e){return a._(function(){var t,r,n;return l._(this,function(a){switch(a.label){case 0:t=ei({route:e,router:this}),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.pageLoader.loadPage(e)];case 2:return r=a.sent(),t(),[2,r];case 3:throw n=a.sent(),t(),n;case 4:return[2]}})}).call(this)}},{key:"_getData",value:function(e){var t=this,r=!1,n=function(){r=!0};return this.clc=n,e().then(function(e){if(n===t.clc&&(t.clc=null),r){var a=Object.defineProperty(Error("Loading initial props cancelled"),"__NEXT_ERROR_CODE",{value:"E405",enumerable:!1,configurable:!0});throw a.cancelled=!0,a}return e})}},{key:"getInitialProps",value:function(e,t){var r=this.components["/_app"].Component,n=this._wrapApp(r);return t.AppTree=n,(0,E.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}},{key:"route",get:function(){return this.state.route}},{key:"pathname",get:function(){return this.state.pathname}},{key:"query",get:function(){return this.state.query}},{key:"asPath",get:function(){return this.state.asPath}},{key:"locale",get:function(){return this.state.locale}},{key:"isFallback",get:function(){return this.state.isFallback}},{key:"isPreview",get:function(){return this.state.isPreview}}]),t}();eo.events=(0,b.default)()},657979,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removePathPrefix",{enumerable:!0,get:function(){return a}});var n=e.r(59084);function a(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;var r=e.slice(t.length);return r.startsWith("/")?r:"/".concat(r)}},283605,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getNextPathnameInfo",{enumerable:!0,get:function(){return o}});var n=e.r(927711),a=e.r(657979),i=e.r(59084);function o(e,t){var r=null!=(p=t.nextConfig)?p:{},o=r.basePath,s=r.i18n,u=r.trailingSlash,c={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):u};o&&(0,i.pathHasPrefix)(c.pathname,o)&&(c.pathname=(0,a.removePathPrefix)(c.pathname,o),c.basePath=o);var l=c.pathname;if(c.pathname.startsWith("/_next/data/")&&c.pathname.endsWith(".json")){var d=c.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");c.buildId=d[0],l="index"!==d[1]?"/".concat(d.slice(1).join("/")):"/",!0===t.parseData&&(c.pathname=l)}if(s){var p,f,h=t.i18nProvider?t.i18nProvider.analyze(c.pathname):(0,n.normalizeLocalePath)(c.pathname,s.locales);c.locale=h.detectedLocale,c.pathname=null!=(f=h.pathname)?f:c.pathname,!h.detectedLocale&&c.buildId&&(h=t.i18nProvider?t.i18nProvider.analyze(l):(0,n.normalizeLocalePath)(l,s.locales)).detectedLocale&&(c.locale=h.detectedLocale)}return c}},95284,(e,t,r)=>{"use strict";var n=e.r(995075),a=e.r(882372),i=e.r(621991);Object.defineProperty(r,"__esModule",{value:!0});var o={getSortedRouteObjects:function(){return l},getSortedRoutes:function(){return c}};for(var s in o)Object.defineProperty(r,s,{enumerable:!0,get:o[s]});var u=function(){function e(){n._(this,e),this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}return a._(e,[{key:"insert",value:function(e){this._insert(e.split("/").filter(
2Boolean),[],!1)}},{key:"smoosh",value:function(){return this._smoosh()}},{key:"_smoosh",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",r=i._(this.children.keys()).sort();null!==this.slugName&&r.splice(r.indexOf("[]"),1),null!==this.restSlugName&&r.splice(r.indexOf("[...]"),1),null!==this.optionalRestSlugName&&r.splice(r.indexOf("[[...]]"),1);var n=r.map(function(r){return e.children.get(r)._smoosh("".concat(t).concat(r,"/"))}).reduce(function(e,t){return i._(e).concat(i._(t))},[]);if(null!==this.slugName&&n.push.apply(n,i._(this.children.get("[]")._smoosh("".concat(t,"[").concat(this.slugName,"]/")))),!this.placeholder){var a="/"===t?"/":t.slice(0,-1);if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error('You cannot define a route with the same specificity as a optional catch-all route ("'.concat(a,'" and "').concat(a,"[[...").concat(this.optionalRestSlugName,']]").')),"__NEXT_ERROR_CODE",{value:"E458",enumerable:!1,configurable:!0});n.unshift(a)}return null!==this.restSlugName&&n.push.apply(n,i._(this.children.get("[...]")._smoosh("".concat(t,"[...").concat(this.restSlugName,"]/")))),null!==this.optionalRestSlugName&&n.push.apply(n,i._(this.children.get("[[...]]")._smoosh("".concat(t,"[[...").concat(this.optionalRestSlugName,"]]/")))),n}},{key:"_insert",value:function(t,r,n){if(0===t.length){this.placeholder=!1;return}if(n)throw Object.defineProperty(Error("Catch-all must be the last part of the URL."),"__NEXT_ERROR_CODE",{value:"E392",enumerable:!1,configurable:!0});var a=t[0];if(a.startsWith("[")&&a.endsWith("]")){var i=function(e,t){if(null!==e&&e!==t)throw Object.defineProperty(Error("You cannot use different slug names for the same dynamic path ('".concat(e,"' !== '").concat(t,"').")),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});r.forEach(function(e){if(e===t)throw Object.defineProperty(Error('You cannot have the same slug name "'.concat(t,'" repeat within a single dynamic path')),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,configurable:!0});if(e.replace(/\W/g,"")===a.replace(/\W/g,""))throw Object.defineProperty(Error('You cannot have the slug names "'.concat(e,'" and "').concat(t,'" differ only by non-word symbols within a single dynamic path')),"__NEXT_ERROR_CODE",{value:"E499",enumerable:!1,configurable:!0})}),r.push(t)},o=a.slice(1,-1),s=!1;if(o.startsWith("[")&&o.endsWith("]")&&(o=o.slice(1,-1),s=!0),o.startsWith("â¦"))throw Object.defineProperty(Error("Detected a three-dot character ('â¦') at ('".concat(o,"'). Did you mean ('...')?")),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,configurable:!0});if(o.startsWith("...")&&(o=o.substring(3),n=!0),o.startsWith("[")||o.endsWith("]"))throw Object.defineProperty(Error("Segment names may not start or end with extra brackets ('".concat(o,"').")),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(o.startsWith("."))throw Object.defineProperty(Error("Segment names may not start with erroneous periods ('".concat(o,"').")),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});if(n)if(s){if(null!=this.restSlugName)throw Object.defineProperty(Error('You cannot use both an required and optional catch-all route at the same level ("[...'.concat(this.restSlugName,']" and "').concat(t[0],'" ).')),"__NEXT_ERROR_CODE",{value:"E299",enumerable:!1,configurable:!0});i(this.optionalRestSlugName,o),this.optionalRestSlugName=o,a="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error('You cannot use both an optional and required catch-all route at the same level ("[[...'.concat(this.optionalRestSlugName,']]" and "').concat(t[0],'").')),"__NEXT_ERROR_CODE",{value:"E300",enumerable:!1,configurable:!0});i(this.restSlugName,o),this.restSlugName=o,a="[...]"}else{if(s)throw Object.defineProperty(Error('Optional route parameters are not yet supported ("'.concat(t[0],'").')),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});i(this.slugName,o),this.slugName=o,a="[]"}}this.children.has(a)||this.children.set(a,new e),this.children.get(a)._insert(t.slice(1),r,n)}}]),e}();function c(e){var t=new u;return e.forEach(function(e){return t.insert(e)}),t.smoosh()}function l(e,t){for(var r={},n=[],a=0;a<e.length;a++){var i=t(e[a]);r[i]=a,n[a]=i}return c(n).map(function(t){return e[r[t]]})}}]); 3 4//# debugId=d55cad62-854c-5e9e-9730-3b282cddc781
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.