!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="1d59d47c-397e-477c-abdb-1fde39806462",t._sentryDebugIdIdentifier="sentry-dbid-1d59d47c-397e-477c-abdb-1fde39806462")}catch(t){}}(),("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"f92eb2497ee348ad973a18a5039ebf77ac65fb03"},(self.webpackChunkhw_admin=self.webpackChunkhw_admin||[]).push([[1410],{41864:(t,e,n)=>{n.d(e,{s:()=>h});var r=n(20567),i=n(14932),o=n(47702),a=n(35944),s=n(70917),c=n(616),u=t=>"".concat(t/12*100,"%"),d=(0,s.iv)("display:block;flex-basis:0;flex-grow:1;flex-shrink:1;padding:0.5rem;","label:Column-styles"),p={narrow:(0,s.iv)("flex:none;","label:Column-styles"),full:(0,s.iv)("flex:none;width:100%;","label:Column-styles")},l=(0,s.iv)("padding:0;","label:Column-styles"),m={left:(0,s.iv)("text-align:left;","label:Column-styles"),center:(0,s.iv)("text-align:center;","label:Column-styles"),right:(0,s.iv)("text-align:right;","label:Column-styles")},f=t=>(0,s.iv)("flex:none;width:",u(t),";","label:Column-styles"),h=t=>{var e,n,{columnWidth:h,columnOffset:g,isPaddingless:v,textAlign:_,children:y,preserveMobileColumns:b,"data-testid":T}=t,S=(0,o._)(t,["columnWidth","columnOffset","isPaddingless","textAlign","children","preserveMobileColumns","data-testid"]),k=t=>"number"==typeof t,w=[d,h&&(k(h)&&b?f(h):k(h)?(e=h,(0,s.iv)("@media only screen and (min-width:",c.Mq,"){",f(e),"}","label:Column-styles")):"full"===(n=h)||"narrow"===n?p[h]:void 0),g&&(()=>{if(k(g))return t=g,(0,s.iv)("margin-left:",u(t),";","label:Column-styles");var t})(),v&&l,_&&m[_]];return(0,a.tZ)("div",(0,i._)((0,r._)({css:w},S),{children:y}))}},15952:(t,e,n)=>{n.d(e,{o:()=>f});var r=n(20567),i=n(14932),o=n(47702),a=n(35944),s=n(70917),c=n(616),u=(0,s.iv)("@media only screen and (min-width:",c.Mq,"){display:flex;}margin-left:-0.5rem;margin-right:-0.5rem;margin-top:-0.5rem;&:last-child{margin-bottom:0;}&:not(:last-child){margin-bottom:1rem;}","label:Columns-styles"),d=(0,s.iv)("display:flex;","label:Columns-styles"),p=(0,s.iv)("flex-wrap:wrap;","label:Columns-styles"),l=(0,s.iv)("margin:0;","label:Columns-styles"),m=(0,s.iv)("justify-content:center;","label:Columns-styles"),f=t=>{var{isMultiline:e,isMarginless:n,isCentered:s,preserveMobileColumns:c,children:f}=t,h=(0,o._)(t,["isMultiline","isMarginless","isCentered","preserveMobileColumns","children"]),g=[u,e&&p,n&&l,s&&m,c&&d];return(0,a.tZ)("div",(0,i._)((0,r._)({css:g},h),{children:f}))}},65387:(t,e,n)=>{n.d(e,{X:()=>r});const r=!1},32319:(t,e,n)=>{n.d(e,{a:()=>c});var r=n(11213);const i=n(84756).GLOBAL_OBJ;var o=n(27575),a=n(67515);let s;function c(t){const e="history";(0,r.Hj)(e,t),(0,r.D2)(e,u)}function u(){if(!function(){const t=i.chrome,e=t&&t.app&&t.app.runtime,n="history"in i&&!!i.history.pushState&&!!i.history.replaceState;return!e&&n}())return;const t=a.m.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=s,e=String(n);s=e;const i={from:t,to:e};(0,r.rK)("history",i)}return t.apply(this,e)}}a.m.onpopstate=function(...e){const n=a.m.location.href,i=s;s=n;const o={from:i,to:n};if((0,r.rK)("history",o),t)try{return t.apply(this,e)}catch(t){}},(0,o.hl)(a.m.history,"pushState",e),(0,o.hl)(a.m.history,"replaceState",e)}},6341:(t,e,n)=>{n.d(e,{UK:()=>u,xU:()=>c});var r=n(11213),i=n(27575),o=n(30554),a=n(90759),s=n(67515);const c="__sentry_xhr_v3__";function u(t){(0,r.Hj)("xhr",t),(0,r.D2)("xhr",d)}function d(){if(!s.m.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;(0,i.hl)(t,"open",(function(t){return function(...e){const n=1e3*(0,o.ph)(),s=(0,a.HD)(e[0])?e[0].toUpperCase():void 0,u=function(t){if((0,a.HD)(t))return t;try{return t.toString()}catch(t){}return}(e[1]);if(!s||!u)return t.apply(this,e);this[c]={method:s,url:u,request_headers:{}},"POST"===s&&u.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const d=()=>{const t=this[c];if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}const e={endTimestamp:1e3*(0,o.ph)(),startTimestamp:n,xhr:this};(0,r.rK)("xhr",e)}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,i.hl)(this,"onreadystatechange",(function(t){return function(...e){return d(),t.apply(this,e)}})):this.addEventListener("readystatechange",d),(0,i.hl)(this,"setRequestHeader",(function(t){return function(...e){const[n,r]=e,i=this[c];return i&&(0,a.HD)(n)&&(0,a.HD)(r)&&(i.request_headers[n.toLowerCase()]=r),t.apply(this,e)}})),t.apply(this,e)}})),(0,i.hl)(t,"send",(function(t){return function(...e){const n=this[c];if(!n)return t.apply(this,e);void 0!==e[0]&&(n.body=e[0]);const i={startTimestamp:1e3*(0,o.ph)(),xhr:this};return(0,r.rK)("xhr",i),t.apply(this,e)}}))}},34374:(t,e,n)=>{n.d(e,{PR:()=>G,to:()=>Y,YF:()=>K,$A:()=>Z,_j:()=>W,_4:()=>z});var r=n(42562),i=n(20290),o=n(65387);const a=(t,e,n,r)=>{let i,o;return a=>{e.value>=0&&(a||r)&&(o=e.value-(i||0),(o||void 0===i)&&(i=e.value,e.delta=o,e.rating=((t,e)=>t>e[1]?"poor":t>e[0]?"needs-improvement":"good")(e.value,n),t(e)))}};var s=n(67515);var c=n(34880);const u=()=>{const t=(0,c.W)();return t&&t.activationStart||0},d=(t,e)=>{const n=(0,c.W)();let r="navigate";n&&(s.m.document&&s.m.document.prerendering||u()>0?r="prerender":s.m.document&&s.m.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-")));return{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},p=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver((t=>{Promise.resolve().then((()=>{e(t.getEntries())}))}));return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch(t){}},l=t=>{const e=e=>{("pagehide"===e.type||s.m.document&&"hidden"===s.m.document.visibilityState)&&t(e)};s.m.document&&(addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0))},m=t=>{let e=!1;return n=>{e||(t(n),e=!0)}};var f=n(59057);const h=t=>{s.m.document&&s.m.document.prerendering?addEventListener("prerenderingchange",(()=>t()),!0):t()},g=[1800,3e3],v=[.1,.25],_=(t,e={})=>{((t,e={})=>{h((()=>{const n=(0,f.Y)(),r=d("FCP");let i;const o=p("paint",(t=>{t.forEach((t=>{"first-contentful-paint"===t.name&&(o.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-u(),0),r.entries.push(t),i(!0)))}))}));o&&(i=a(t,r,g,e.reportAllChanges))}))})(m((()=>{const n=d("CLS",0);let r,i=0,o=[];const s=t=>{t.forEach((t=>{if(!t.hadRecentInput){const e=o[0],n=o[o.length-1];i&&t.startTime-n.startTime<1e3&&t.startTime-e.startTime<5e3?(i+=t.value,o.push(t)):(i=t.value,o=[t])}})),i>n.value&&(n.value=i,n.entries=o,r())},c=p("layout-shift",s);c&&(r=a(t,n,v,e.reportAllChanges),l((()=>{s(c.takeRecords()),r(!0)})),setTimeout(r,0))})))},y=[100,300],b=(t,e={})=>{h((()=>{const n=(0,f.Y)(),r=d("FID");let i;const o=t=>{t.startTime<n.firstHiddenTime&&(r.value=t.processingStart-t.startTime,r.entries.push(t),i(!0))},s=t=>{t.forEach(o)},c=p("first-input",s);i=a(t,r,y,e.reportAllChanges),c&&l(m((()=>{s(c.takeRecords()),c.disconnect()})))}))};let T=0,S=1/0,k=0;const w=t=>{t.forEach((t=>{t.interactionId&&(S=Math.min(S,t.interactionId),k=Math.max(k,t.interactionId),T=k?(k-S)/7+1:0)}))};let E;const I=()=>{"interactionCount"in performance||E||(E=p("event",w,{type:"event",buffered:!0,durationThreshold:0}))},C=[200,500],x=()=>(E?T:performance.interactionCount||0)-0,A=[],$={},L=t=>{const e=A[A.length-1],n=$[t.interactionId];if(n||A.length<10||t.duration>e.latency){if(n)n.entries.push(t),n.latency=Math.max(n.latency,t.duration);else{const e={id:t.interactionId,latency:t.duration,entries:[t]};$[e.id]=e,A.push(e)}A.sort(((t,e)=>e.latency-t.latency)),A.splice(10).forEach((t=>{delete $[t.id]}))}},R=(t,e={})=>{h((()=>{I();const n=d("INP");let r;const i=t=>{t.forEach((t=>{if(t.interactionId&&L(t),"first-input"===t.entryType){!A.some((e=>e.entries.some((e=>t.duration===e.duration&&t.startTime===e.startTime))))&&L(t)}}));const e=(()=>{const t=Math.min(A.length-1,Math.floor(x()/50));return A[t]})();e&&e.latency!==n.value&&(n.value=e.latency,n.entries=e.entries,r())},o=p("event",i,{durationThreshold:null!=e.durationThreshold?e.durationThreshold:40});r=a(t,n,C,e.reportAllChanges),o&&("PerformanceEventTiming"in s.m&&"interactionId"in PerformanceEventTiming.prototype&&o.observe({type:"first-input",buffered:!0}),l((()=>{i(o.takeRecords()),n.value<0&&x()>0&&(n.value=0,n.entries=[]),r(!0)})))}))},D=[2500,4e3],N={},O=(t,e={})=>{h((()=>{const n=(0,f.Y)(),r=d("LCP");let i;const o=t=>{const e=t[t.length-1];e&&e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-u(),0),r.entries=[e],i())},c=p("largest-contentful-paint",o);if(c){i=a(t,r,D,e.reportAllChanges);const n=m((()=>{N[r.id]||(o(c.takeRecords()),c.disconnect(),N[r.id]=!0,i(!0))}));["keydown","click"].forEach((t=>{s.m.document&&addEventListener(t,(()=>setTimeout(n,0)),!0)})),l(n)}}))},X=[800,1800],P=t=>{s.m.document&&s.m.document.prerendering?h((()=>P(t))):s.m.document&&"complete"!==s.m.document.readyState?addEventListener("load",(()=>P(t)),!0):setTimeout(t,0)},j=(t,e={})=>{const n=d("TTFB"),r=a(t,n,X,e.reportAllChanges);P((()=>{const t=(0,c.W)();if(t){const e=t.responseStart;if(e<=0||e>performance.now())return;n.value=Math.max(e-u(),0),n.entries=[t],r(!0)}}))},H={},M={};let U,q,B,J,F;function G(t,e=!1){return it("cls",t,V,U,e)}function Z(t,e=!1){return it("lcp",t,et,B,e)}function Y(t){return it("fid",t,tt,q)}function z(t){return it("ttfb",t,nt,J)}function K(t){return it("inp",t,rt,F)}function W(t,e){return ot(t,e),M[t]||(!function(t){const e={};"event"===t&&(e.durationThreshold=0);p(t,(e=>{Q(t,{entries:e})}),e)}(t),M[t]=!0),at(t,e)}function Q(t,e){const n=H[t];if(n&&n.length)for(const a of n)try{a(e)}catch(e){o.X&&r.kg.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${(0,i.$P)(a)}\nError:`,e)}}function V(){return _((t=>{Q("cls",{metric:t}),U=t}),{reportAllChanges:!0})}function tt(){return b((t=>{Q("fid",{metric:t}),q=t}))}function et(){return O((t=>{Q("lcp",{metric:t}),B=t}))}function nt(){return j((t=>{Q("ttfb",{metric:t}),J=t}))}function rt(){return R((t=>{Q("inp",{metric:t}),F=t}))}function it(t,e,n,r,i=!1){let o;return ot(t,e),M[t]||(o=n(),M[t]=!0),r&&e({metric:r}),at(t,e,i?o:void 0)}function ot(t,e){H[t]=H[t]||[],H[t].push(e)}function at(t,e,n){return()=>{n&&n();const r=H[t];if(!r)return;const i=r.indexOf(e);-1!==i&&r.splice(i,1)}}},34880:(t,e,n)=>{n.d(e,{W:()=>i});var r=n(67515);const i=()=>r.m.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},59057:(t,e,n)=>{n.d(e,{Y:()=>a});var r=n(67515);let i=-1;const o=t=>{"hidden"===r.m.document.visibilityState&&i>-1&&(i="visibilitychange"===t.type?t.timeStamp:0,removeEventListener("visibilitychange",o,!0),removeEventListener("prerenderingchange",o,!0))},a=()=>(r.m.document&&i<0&&(i="hidden"!==r.m.document.visibilityState||r.m.document.prerendering?1/0:0,addEventListener("visibilitychange",o,!0),addEventListener("prerenderingchange",o,!0)),{get firstHiddenTime(){return i}})},67515:(t,e,n)=>{n.d(e,{m:()=>r});const r=n(84756).GLOBAL_OBJ},66526:(t,e,n)=>{n.d(e,{X:()=>r});const r=!1},57912:(t,e,n)=>{n.d(e,{Wz:()=>d,m9:()=>c,re:()=>p});var r=n(24806),i=n(11027),o=n(84756),a=n(27575),s=n(9227);const c=o.GLOBAL_OBJ;let u=0;function d(){return u>0}function p(t,e={},n){if("function"!=typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return e;if((0,a.HK)(t))return t}catch(e){return t}const o=function(){const o=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const r=o.map((t=>p(t,e)));return t.apply(this,r)}catch(t){throw u++,setTimeout((()=>{u--})),(0,r.$e)((n=>{n.addEventProcessor((t=>(e.mechanism&&((0,s.Db)(t,void 0,void 0),(0,s.EG)(t,e.mechanism)),t.extra={...t.extra,arguments:o},t))),(0,i.Tb)(t)})),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=t[e])}catch(t){}(0,a.$Q)(o,t),(0,a.xp)(t,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:()=>t.name})}catch(t){}return o}},91971:(t,e,n)=>{n.d(e,{E8:()=>lt,og:()=>ft,Wo:()=>mt});var r=n(50304),i=n(20386),o=n(12911),a=n(6837),s=n(30554),c=n(72929),u=n(42562),d=n(90210),p=n(65387),l=n(67515),m=n(34374);function f(t){return"number"==typeof t&&isFinite(t)}function h(t,e,n,{...o}){const a=(0,r.XU)(t).start_timestamp;return a&&a>e&&"function"==typeof t.updateStartTime&&t.updateStartTime(e),(0,i._d)(t,(()=>{const t=(0,i.qp)({startTime:e,...o});return t&&t.end(n),t}))}function g(){return l.m&&l.m.addEventListener&&l.m.performance}function v(t){return t/1e3}var _=n(34880),y=n(59057);const b=2147483647;let T,S,k=0,w={};function E(){const t=g();if(t&&s.Z1){t.mark&&l.m.performance.mark("sentry-tracing-init");const e=(0,m.to)((({metric:t})=>{const e=t.entries[t.entries.length-1];if(!e)return;const n=v(s.Z1),r=v(e.startTime);p.X&&u.kg.log("[Measurements] Adding FID"),w.fid={value:t.value,unit:"millisecond"},w["mark.fid"]={value:n+r,unit:"second"}})),n=(0,m.PR)((({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(p.X&&u.kg.log("[Measurements] Adding CLS"),w.cls={value:t.value,unit:""},S=e)}),!0),r=(0,m.$A)((({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(p.X&&u.kg.log("[Measurements] Adding LCP"),w.lcp={value:t.value,unit:"millisecond"},T=e)}),!0),i=(0,m._4)((({metric:t})=>{t.entries[t.entries.length-1]&&(p.X&&u.kg.log("[Measurements] Adding TTFB"),w.ttfb={value:t.value,unit:"millisecond"})}));return()=>{e(),n(),r(),i()}}return()=>{}}function I(t){const e=g();if(!e||!l.m.performance.getEntries||!s.Z1)return;p.X&&u.kg.log("[Tracing] Adding & adjusting spans using Performance API");const n=v(s.Z1),i=e.getEntries(),{op:m,start_timestamp:b}=(0,r.XU)(t);if(i.slice(k).forEach((e=>{const r=v(e.startTime),i=v(e.duration);if(!("navigation"===m&&b&&n+r<b))switch(e.entryType){case"navigation":!function(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((r=>{C(t,e,r,n)})),C(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),C(t,e,"fetch",n,"cache","domainLookupStart"),C(t,e,"domainLookup",n,"DNS"),function(t,e,n){e.responseEnd&&(h(t,n+v(e.requestStart),n+v(e.responseEnd),{op:"browser",name:"request",attributes:{[o.S3]:"auto.ui.browser.metrics"}}),h(t,n+v(e.responseStart),n+v(e.responseEnd),{op:"browser",name:"response",attributes:{[o.S3]:"auto.ui.browser.metrics"}}))}(t,e,n)}(t,e,n);break;case"mark":case"paint":case"measure":{!function(t,e,n,r,i){const a=i+n,s=a+r;h(t,a,s,{name:e.name,op:e.entryType,attributes:{[o.S3]:"auto.resource.browser.metrics"}})}(t,e,r,i,n);const a=(0,y.Y)(),s=e.startTime<a.firstHiddenTime;"first-paint"===e.name&&s&&(p.X&&u.kg.log("[Measurements] Adding FP"),w.fp={value:e.startTime,unit:"millisecond"}),"first-contentful-paint"===e.name&&s&&(p.X&&u.kg.log("[Measurements] Adding FCP"),w.fcp={value:e.startTime,unit:"millisecond"});break}case"resource":!function(t,e,n,r,i,a){if("xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType)return;const s=(0,d.en)(n),c={[o.S3]:"auto.resource.browser.metrics"};x(c,e,"transferSize","http.response_transfer_size"),x(c,e,"encodedBodySize","http.response_content_length"),x(c,e,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in e&&(c["resource.render_blocking_status"]=e.renderBlockingStatus);s.protocol&&(c["url.scheme"]=s.protocol.split(":").pop());s.host&&(c["server.address"]=s.host);c["url.same_origin"]=n.includes(l.m.location.origin);const u=a+r,p=u+i;h(t,u,p,{name:n.replace(l.m.location.origin,""),op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",attributes:c})}(t,e,e.name,r,i,n)}})),k=Math.max(i.length-1,0),function(t){const e=l.m.navigator;if(!e)return;const n=e.connection;n&&(n.effectiveType&&t.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&t.setAttribute("connectionType",n.type),f(n.rtt)&&(w["connection.rtt"]={value:n.rtt,unit:"millisecond"}));f(e.deviceMemory)&&t.setAttribute("deviceMemory",`${e.deviceMemory} GB`);f(e.hardwareConcurrency)&&t.setAttribute("hardwareConcurrency",String(e.hardwareConcurrency))}(t),"pageload"===m){!function(t){const e=(0,_.W)();if(!e)return;const{responseStart:n,requestStart:r}=e;r<=n&&(p.X&&u.kg.log("[Measurements] Adding TTFB Request Time"),t["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(w),["fcp","fp","lcp"].forEach((t=>{if(!w[t]||!b||n>=b)return;const e=w[t].value,r=n+v(e),i=Math.abs(1e3*(r-b)),o=i-e;p.X&&u.kg.log(`[Measurements] Normalized ${t} from ${e} to ${i} (${o})`),w[t].value=i}));const e=w["mark.fid"];e&&w.fid&&(h(t,e.value,e.value+v(w.fid.value),{name:"first input delay",op:"ui.action",attributes:{[o.S3]:"auto.ui.browser.metrics"}}),delete w["mark.fid"]),"fcp"in w||delete w.cls,Object.keys(w).forEach((t=>{(0,a.o)(t,w[t].value,w[t].unit)})),function(t){T&&(p.X&&u.kg.log("[Measurements] Adding LCP Data"),T.element&&t.setAttribute("lcp.element",(0,c.Rt)(T.element)),T.id&&t.setAttribute("lcp.id",T.id),T.url&&t.setAttribute("lcp.url",T.url.trim().slice(0,200)),t.setAttribute("lcp.size",T.size));S&&S.sources&&(p.X&&u.kg.log("[Measurements] Adding CLS Data"),S.sources.forEach(((e,n)=>t.setAttribute(`cls.source.${n+1}`,(0,c.Rt)(e.node)))))}(t)}T=void 0,S=void 0,w={}}function C(t,e,n,r,i,a){const s=a?e[a]:e[`${n}End`],c=e[`${n}Start`];c&&s&&h(t,r+v(c),r+v(s),{op:"browser",name:i||n,attributes:{[o.S3]:"auto.ui.browser.metrics"}})}function x(t,e,n,r){const i=e[n];null!=i&&i<b&&(t[r]=i)}var A=n(24806),$=n(27575);function L(){if(g()&&s.Z1){const t=(0,m.YF)((({metric:t})=>{const e=(0,A.s3)();if(!e||null==t.value)return;const n=t.entries.find((e=>e.duration===t.value&&R[e.name]));if(!n)return;const a=R[n.name],u=e.getOptions(),d=v(s.Z1+n.startTime),p=v(t.value),l=(0,A.nZ)(),m=(0,r.HN)(),f=m?(0,r.Gx)(m):void 0,h=f?(0,r.XU)(f).description:void 0,g=l.getUser(),_=e.getIntegrationByName("Replay"),y=_&&_.getReplayId(),b=void 0!==g?g.email||g.id||g.ip_address:void 0;let T;try{T=l.getScopeData().contexts.profile.profile_id}catch(t){}const S=(0,c.Rt)(n.target),k=(0,$.Jr)({release:u.release,environment:u.environment,transaction:h,[o.JQ]:t.value,user:b||void 0,profile_id:T||void 0,replay_id:y||void 0}),w=(0,i.qp)({name:S,op:`ui.interaction.${a}`,attributes:k,startTime:d,experimental:{standalone:!0}});w.addEvent("inp",{[o.E1]:"millisecond",[o.Wb]:t.value}),w.end(d+p)}));return()=>{t()}}return()=>{}}const R={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"};var D=n(32319),N=n(62066),O=n(1932),X=n(95383),P=n(27619),j=n(80924);const H={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},M="heartbeatFailed",U="idleTimeout",q="finalTimeout",B="externalFinish";function J(t,e={}){const n=new Map;let a,c=!1,d=B,p=!e.disableAutoFinish;const{idleTimeout:l=H.idleTimeout,finalTimeout:m=H.finalTimeout,childSpanTimeout:f=H.childSpanTimeout,beforeSpanEnd:h}=e,g=(0,A.s3)();if(!g||!(0,O.z)())return new P.b;const v=(0,A.nZ)(),_=(0,r.HN)(),y=function(t){const e=(0,i.qp)(t);return(0,X.D)((0,A.nZ)(),e),N.X&&u.kg.log("[Tracing] Started span is an idle span"),e}(t);function b(t=(0,s.ph)()){const e=(0,r.Dp)(y).filter((t=>t!==y));if(!e.length)return void y.end(t);const n=e.map((t=>(0,r.XU)(t).timestamp)).filter((t=>!!t)),i=n.length?Math.max(...n):void 0,o=(0,r.$k)(t),a=(0,r.XU)(y).start_timestamp,c=Math.min(a?a+m/1e3:1/0,Math.max(a||-1/0,Math.min(o,i||1/0)));y.end(c)}function T(){a&&(clearTimeout(a),a=void 0)}function S(t){T(),a=setTimeout((()=>{!c&&0===n.size&&p&&(d=U,b(t))}),l)}function k(t){a=setTimeout((()=>{!c&&p&&(d=M,b(t))}),f)}return g.on("spanStart",(t=>{if(c||t===y||(0,r.XU)(t).timestamp)return;var e;(0,r.Dp)(y).includes(t)&&(e=t.spanContext().spanId,T(),n.set(e,!0),k((0,s.ph)()+f/1e3))})),g.on("spanEnd",(t=>{var e;c||(e=t.spanContext().spanId,n.has(e)&&n.delete(e),0===n.size&&S((0,s.ph)()+l/1e3),t===y&&function(){c=!0,n.clear(),h&&h(y),(0,X.D)(v,_);const t=(0,r.XU)(y),{timestamp:e,start_timestamp:i}=t;if(!e||!i)return;(t.data||{})[o.ju]||y.setAttribute(o.ju,d),u.kg.log(`[Tracing] Idle span "${t.op}" finished`);const a=(0,r.Dp)(y).filter((t=>t!==y));let s=0;a.forEach((t=>{t.isRecording()&&(t.setStatus({code:j.jt,message:"cancelled"}),t.end(e),N.X&&u.kg.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const n=(0,r.XU)(t),{timestamp:i=0,start_timestamp:o=0}=n,a=o<=e,c=i-o<(m+l)/1e3;if(N.X){const e=JSON.stringify(t,void 0,2);a?c||u.kg.log("[Tracing] Discarding span since it finished after idle span final timeout",e):u.kg.log("[Tracing] Discarding span since it happened after idle span was finished",e)}c&&a||((0,r.ed)(y,t),s++)})),s>0&&y.setAttribute("sentry.idle_span_discarded_spans",s)}())})),g.on("idleSpanEnableAutoFinish",(t=>{t===y&&(p=!0,S(),n.size&&k())})),e.disableAutoFinish||S(),setTimeout((()=>{c||(y.setStatus({code:j.jt,message:"deadline_exceeded"}),d=q,b())}),m),y}var F=n(34995),G=n(421);let Z=!1;function Y(){const t=(0,r.HN)(),e=t&&(0,r.Gx)(t);if(e){const t="internal_error";N.X&&u.kg.log(`[Tracing] Root span: ${t} -> Global error occured`),e.setStatus({code:j.jt,message:t})}}Y.tag="sentry_tracingErrorCallback";var z=n(8840),K=n(57976),W=n(89181),Q=n(66526),V=n(57912);var tt=n(6341),et=n(6911),nt=n(90759);function rt(t,e,n,a,s="auto.http.browser"){if(!t.fetchData)return;const c=(0,O.z)()&&e(t.fetchData.url);if(t.endTimestamp&&c){const e=t.fetchData.__span;if(!e)return;const n=a[e];return void(n&&(!function(t,e){if(e.response){(0,j.Q0)(t,e.response.status);const n=e.response&&e.response.headers&&e.response.headers.get("content-length");if(n){const e=parseInt(n);e>0&&t.setAttribute("http.response_content_length",e)}}else e.error&&t.setStatus({code:j.jt,message:"internal_error"});t.end()}(n,t),delete a[e]))}const u=(0,A.nZ)(),p=(0,A.s3)(),{method:l,url:m}=t.fetchData,f=function(t){try{return new URL(t).href}catch(t){return}}(m),h=f?(0,d.en)(f).host:void 0,g=!!(0,r.HN)(),v=c&&g?(0,i.qp)({name:`${l} ${m}`,attributes:{url:m,type:"fetch","http.method":l,"http.url":f,"server.address":h,[o.S3]:s,[o.$J]:"http.client"}}):new P.b;if(t.fetchData.__span=v.spanContext().spanId,a[v.spanContext().spanId]=v,n(t.fetchData.url)&&p){const e=t.args[0];t.args[1]=t.args[1]||{};const n=t.args[1];n.headers=function(t,e,n,i,o){const a=(0,A.aF)(),{traceId:s,spanId:c,sampled:u,dsc:d}={...a.getPropagationContext(),...n.getPropagationContext()},p=o?(0,r.Hb)(o):(0,K.$p)(s,c,u),l=(0,et.IQ)(d||(o?(0,z.jC)(o):(0,z._l)(s,e))),m=i.headers||("undefined"!=typeof Request&&(0,nt.V9)(t,Request)?t.headers:void 0);if(m){if("undefined"!=typeof Headers&&(0,nt.V9)(m,Headers)){const t=new Headers(m);return t.append("sentry-trace",p),l&&t.append(et.bU,l),t}if(Array.isArray(m)){const t=[...m,["sentry-trace",p]];return l&&t.push([et.bU,l]),t}{const t="baggage"in m?m.baggage:void 0,e=[];return Array.isArray(t)?e.push(...t):t&&e.push(t),l&&e.push(l),{...m,"sentry-trace":p,baggage:e.length>0?e.join(","):void 0}}}return{"sentry-trace":p,baggage:l}}(e,p,u,n,(0,O.z)()&&g?v:void 0)}return v}var it=n(62696),ot=n(27202);const at={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function st(t){const{traceFetch:e,traceXHR:n,shouldCreateSpanForRequest:a,enableHTTPTimings:s,tracePropagationTargets:c}={traceFetch:at.traceFetch,traceXHR:at.traceXHR,...t},u="function"==typeof a?a:t=>!0,p=t=>function(t,e){const n=V.m9.location&&V.m9.location.href;if(n){let r,i;try{r=new URL(t,n),i=new URL(n).origin}catch(t){return!1}const o=r.origin===i;return e?(0,ot.U0)(r.toString(),e)||o&&(0,ot.U0)(r.pathname,e):o}{const n=!!t.match(/^\/(?!\/)/);return e?(0,ot.U0)(t,e):n}}(t,c),l={};e&&(0,it.U)((t=>{const e=rt(t,u,p,l);if(e){const n=dt(t.fetchData.url),r=n?(0,d.en)(n).host:void 0;e.setAttributes({"http.url":n,"server.address":r})}s&&e&&ct(e)})),n&&(0,tt.UK)((t=>{const e=function(t,e,n,a){const s=t.xhr,c=s&&s[tt.xU];if(!s||s.__sentry_own_request__||!c)return;const u=(0,O.z)()&&e(c.url);if(t.endTimestamp&&u){const t=s.__sentry_xhr_span_id__;if(!t)return;const e=a[t];return void(e&&void 0!==c.status_code&&((0,j.Q0)(e,c.status_code),e.end(),delete a[t]))}const p=dt(c.url),l=p?(0,d.en)(p).host:void 0,m=!!(0,r.HN)(),f=u&&m?(0,i.qp)({name:`${c.method} ${c.url}`,attributes:{type:"xhr","http.method":c.method,"http.url":p,url:c.url,"server.address":l,[o.S3]:"auto.http.browser",[o.$J]:"http.client"}}):new P.b;s.__sentry_xhr_span_id__=f.spanContext().spanId,a[s.__sentry_xhr_span_id__]=f;const h=(0,A.s3)();s.setRequestHeader&&n(c.url)&&h&&function(t,e,n){const i=(0,A.nZ)(),o=(0,A.aF)(),{traceId:a,spanId:s,sampled:c,dsc:u}={...o.getPropagationContext(),...i.getPropagationContext()},d=n&&(0,O.z)()?(0,r.Hb)(n):(0,K.$p)(a,s,c),p=(0,et.IQ)(u||(n?(0,z.jC)(n):(0,z._l)(a,e)));!function(t,e,n){try{t.setRequestHeader("sentry-trace",e),n&&t.setRequestHeader(et.bU,n)}catch(t){}}(t,d,p)}(s,h,(0,O.z)()&&m?f:void 0);return f}(t,u,p,l);s&&e&&ct(e)}))}function ct(t){const{url:e}=(0,r.XU)(t).data||{};if(!e||"string"!=typeof e)return;const n=(0,m._j)("resource",(({entries:r})=>{r.forEach((r=>{if(function(t){return"resource"===t.entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)}(r)&&r.name.endsWith(e)){(function(t){const{name:e,version:n}=function(t){let e="unknown",n="unknown",r="";for(const i of t){if("/"===i){[e,n]=t.split("/");break}if(!isNaN(Number(i))){e="h"===r?"http":r,n=t.split(r)[1];break}r+=i}r===t&&(e=r);return{name:e,version:n}}(t.nextHopProtocol),r=[];if(r.push(["network.protocol.version",n],["network.protocol.name",e]),!s.Z1)return r;return[...r,["http.request.redirect_start",ut(t.redirectStart)],["http.request.fetch_start",ut(t.fetchStart)],["http.request.domain_lookup_start",ut(t.domainLookupStart)],["http.request.domain_lookup_end",ut(t.domainLookupEnd)],["http.request.connect_start",ut(t.connectStart)],["http.request.secure_connection_start",ut(t.secureConnectionStart)],["http.request.connection_end",ut(t.connectEnd)],["http.request.request_start",ut(t.requestStart)],["http.request.response_start",ut(t.responseStart)],["http.request.response_end",ut(t.responseEnd)]]})(r).forEach((e=>t.setAttribute(...e))),setTimeout(n)}}))}))}function ut(t=0){return((s.Z1||performance.timeOrigin)+t)/1e3}function dt(t){try{return new URL(t,V.m9.location.origin).href}catch(t){return}}const pt={...H,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!0,_experiments:{},...at},lt=(t={})=>{Z||(Z=!0,(0,F.V)(Y),(0,G.h)(Y));const{enableInp:e,enableLongTask:n,_experiments:{enableInteractions:a},beforeStartSpan:d,idleTimeout:p,finalTimeout:l,childSpanTimeout:f,markBackgroundSpan:h,traceFetch:g,traceXHR:_,shouldCreateSpanForRequest:y,enableHTTPTimings:b,instrumentPageLoad:T,instrumentNavigation:S}={...pt,...t},k=E();e&&L(),n&&(0,m._j)("longtask",(({entries:t})=>{for(const e of t){if(!(0,r.HN)())return;const t=v(s.Z1+e.startTime),n=v(e.duration),a=(0,i.qp)({name:"Main UI thread blocked",op:"ui.long-task",startTime:t,attributes:{[o.S3]:"auto.ui.browser.metrics"}});a&&a.end(t+n)}})),a&&(0,m._j)("event",(({entries:t})=>{for(const e of t){if(!(0,r.HN)())return;if("click"===e.name){const t=v(s.Z1+e.startTime),n=v(e.duration),r={name:(0,c.Rt)(e.target),op:`ui.interaction.${e.name}`,startTime:t,attributes:{[o.S3]:"auto.ui.browser.metrics"}},a=(0,c.iY)(e.target);a&&(r.attributes["ui.component_name"]=a);const u=(0,i.qp)(r);u&&u.end(t+n)}}}));const w={name:void 0,source:void 0};function C(t,e){const n="pageload"===e.op,r=d?d(e):e,i=r.attributes||{};e.name!==r.name&&(i[o.Zj]="custom",r.attributes=i),w.name=r.name,w.source=i[o.Zj];const a=J(r,{idleTimeout:p,finalTimeout:l,childSpanTimeout:f,disableAutoFinish:n,beforeSpanEnd:t=>{k(),I(t)}});function s(){["interactive","complete"].includes(V.m9.document.readyState)&&t.emit("idleSpanEnableAutoFinish",a)}return n&&V.m9.document&&(V.m9.document.addEventListener("readystatechange",(()=>{s()})),s()),a}return{name:"BrowserTracing",afterAllSetup(t){let e,n=V.m9.location&&V.m9.location.href;t.on("startNavigationSpan",(n=>{(0,A.s3)()===t&&(e&&(Q.X&&u.kg.log(`[Tracing] Finishing current root span with op: ${(0,r.XU)(e).op}`),e.end()),e=C(t,{op:"navigation",...n}))})),t.on("startPageLoadSpan",((n,i={})=>{if((0,A.s3)()!==t)return;e&&(Q.X&&u.kg.log(`[Tracing] Finishing current root span with op: ${(0,r.XU)(e).op}`),e.end());const o=i.sentryTrace||ht("sentry-trace"),a=i.baggage||ht("baggage"),s=(0,K.pT)(o,a);(0,A.nZ)().setPropagationContext(s),e=C(t,{op:"pageload",...n})})),t.on("spanEnd",(t=>{const e=(0,r.XU)(t).op;if(t!==(0,r.Gx)(t)||"navigation"!==e&&"pageload"!==e)return;const n=(0,A.nZ)(),i=n.getPropagationContext();n.setPropagationContext({...i,sampled:void 0!==i.sampled?i.sampled:(0,r.Tt)(t),dsc:i.dsc||(0,z.jC)(t)})})),V.m9.location&&(T&&mt(t,{name:V.m9.location.pathname,startTime:s.Z1?s.Z1/1e3:void 0,attributes:{[o.Zj]:"url",[o.S3]:"auto.pageload.browser"}}),S&&(0,D.a)((({to:e,from:r})=>{void 0===r&&n&&-1!==n.indexOf(e)?n=void 0:r!==e&&(n=void 0,ft(t,{name:V.m9.location.pathname,attributes:{[o.Zj]:"url",[o.S3]:"auto.navigation.browser"}}))}))),h&&(V.m9&&V.m9.document?V.m9.document.addEventListener("visibilitychange",(()=>{const t=(0,r.HN)();if(!t)return;const e=(0,r.Gx)(t);if(V.m9.document.hidden&&e){const t="cancelled",{op:n,status:i}=(0,r.XU)(e);Q.X&&u.kg.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),i||e.setStatus({code:j.jt,message:t}),e.setAttribute("sentry.cancellation_reason","document.hidden"),e.end()}})):Q.X&&u.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),a&&function(t,e,n,i){let a;const s=()=>{const s="ui.action.click",c=(0,r.HN)(),d=c&&(0,r.Gx)(c);if(d){const t=(0,r.XU)(d).op;if(["navigation","pageload"].includes(t))return void(Q.X&&u.kg.warn(`[Tracing] Did not create ${s} span because a pageload or navigation span is in progress.`))}a&&(a.setAttribute(o.ju,"interactionInterrupted"),a.end(),a=void 0),i.name?a=J({name:i.name,op:s,attributes:{[o.Zj]:i.source||"url"}},{idleTimeout:t,finalTimeout:e,childSpanTimeout:n}):Q.X&&u.kg.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`)};V.m9.document&&addEventListener("click",s,{once:!1,capture:!0})}(p,l,f,w),st({traceFetch:g,traceXHR:_,tracePropagationTargets:t.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:y,enableHTTPTimings:b})}}};function mt(t,e,n){t.emit("startPageLoadSpan",e,n),(0,A.nZ)().setTransactionName(e.name);const i=(0,r.HN)();return"pageload"===(i&&(0,r.XU)(i).op)?i:void 0}function ft(t,e){(0,A.aF)().setPropagationContext((0,W.Q)()),(0,A.nZ)().setPropagationContext((0,W.Q)()),t.emit("startNavigationSpan",e),(0,A.nZ)().setTransactionName(e.name);const n=(0,r.HN)();return"navigation"===(n&&(0,r.XU)(n).op)?n:void 0}function ht(t){const e=(0,c.qT)(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}},54077:(t,e,n)=>{n.d(e,{Mq:()=>c,Q3:()=>s,uE:()=>u});var r=n(97259),i=n(43854),o=n(8840),a=n(50304);function s(t,e,n,o){const a=(0,r.HY)(n),s={sent_at:(new Date).toISOString(),...a&&{sdk:a},...!!o&&e&&{dsn:(0,i.RA)(e)}},c="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return(0,r.Jd)(s,[c])}function c(t,e,n,i){const o=(0,r.HY)(n),a=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,n&&n.sdk);const s=(0,r.Cd)(t,o,i,e);delete t.sdkProcessingMetadata;const c=[{type:a},t];return(0,r.Jd)(s,[c])}function u(t,e){const n=(0,o.jC)(t[0]),s=e&&e.getDsn(),c=e&&e.getOptions().tunnel,u={sent_at:(new Date).toISOString(),...function(t){return!!t.trace_id&&!!t.public_key}(n)&&{trace:n},...!!c&&s&&{dsn:(0,i.RA)(s)}},d=e&&e.getOptions().beforeSendSpan,p=d?t=>d((0,a.XU)(t)):t=>(0,a.XU)(t),l=[];for(const e of t){const t=p(e);t&&l.push((0,r.KQ)(t))}return(0,r.Jd)(u,l)}},6837:(t,e,n)=>{n.d(e,{l:()=>a,o:()=>o});var r=n(12911),i=n(50304);function o(t,e,n){const o=(0,i.HN)(),a=o&&(0,i.Gx)(o);a&&a.addEvent(t,{[r.Wb]:e,[r.E1]:n})}function a(t){if(!t||0===t.length)return;const e={};return t.forEach((t=>{const n=t.attributes||{},i=n[r.E1],o=n[r.Wb];"string"==typeof i&&"number"==typeof o&&(e[t.name]={value:o,unit:i})})),e}},27619:(t,e,n)=>{n.d(e,{b:()=>o});var r=n(9227),i=n(50304);class o{constructor(t={}){this._traceId=t.traceId||(0,r.DM)(),this._spanId=t.spanId||(0,r.DM)().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:i.ve}}end(t){}setAttribute(t,e){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,e,n){return this}}},20386:(t,e,n)=>{n.d(e,{qp:()=>x,_d:()=>A});var r=n(47141),i=n(24806),o=n(84739),a=n(12911),s=n(1932),c=n(95383),u=n(50304),d=n(8840),p=n(42562),l=n(62066);var m=n(25360);var f=n(27619),h=n(9227),g=n(30554),v=n(27575),_=n(54077),y=n(13628),b=n(6837);const T="_sentryScope",S="_sentryIsolationScope";function k(t){return{scope:t[T],isolationScope:t[S]}}class w{constructor(t={}){this._traceId=t.traceId||(0,h.DM)(),this._spanId=t.spanId||(0,h.DM)().substring(16),this._startTime=t.startTimestamp||(0,g.ph)(),this._attributes={},this.setAttributes({[a.S3]:"manual",[a.$J]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}spanContext(){const{_spanId:t,_traceId:e,_sampled:n}=this;return{spanId:t,traceId:e,traceFlags:n?u.i0:u.ve}}setAttribute(t,e){void 0===e?delete this._attributes[t]:this._attributes[t]=e}setAttributes(t){Object.keys(t).forEach((e=>this.setAttribute(e,t[e])))}updateStartTime(t){this._startTime=(0,u.$k)(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this}end(t){this._endTime||(this._endTime=(0,u.$k)(t),function(t){if(!l.X)return;const{description:e="< unknown name >",op:n="< unknown op >"}=(0,u.XU)(t),{spanId:r}=t.spanContext(),i=`[Tracing] Finishing "${n}" ${(0,u.Gx)(t)===t?"root ":""}span "${e}" with ID ${r}`;p.kg.log(i)}(this),this._onSpanEnded())}getSpanJSON(){return(0,v.Jr)({data:this._attributes,description:this._name,op:this._attributes[a.$J],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,u._4)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[a.S3],_metrics_summary:(0,y.y)(this),profile_id:this._attributes[a.p6],exclusive_time:this._attributes[a.JQ],measurements:(0,b.l)(this._events),is_segment:this._isStandaloneSpan&&(0,u.Gx)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,u.Gx)(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,e,n){l.X&&p.kg.log("[Tracing] Adding an event to span:",t);const r=E(e)?e:n||(0,g.ph)(),i=E(e)?{}:e||{},o={name:t,time:(0,u.$k)(r),attributes:i};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=(0,i.s3)();t&&t.emit("spanEnd",this);if(!(this._isStandaloneSpan||this===(0,u.Gx)(this)))return;if(this._isStandaloneSpan)return void function(t){const e=(0,i.s3)();if(!e)return;const n=t[1];if(!n||0===n.length)return void e.recordDroppedEvent("before_send","span");const r=e.getTransport();r&&r.send(t).then(null,(t=>{l.X&&p.kg.error("Error while sending span:",t)}))}((0,_.uE)([this],t));const e=this._convertSpanToTransaction();if(e){(k(this).scope||(0,i.nZ)()).captureEvent(e)}}_convertSpanToTransaction(){if(!I((0,u.XU)(this)))return;this._name||(l.X&&p.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:e}=k(this),n=(t||(0,i.nZ)()).getClient()||(0,i.s3)();if(!0!==this._sampled)return l.X&&p.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(n&&n.recordDroppedEvent("sample_rate","transaction"));const r=(0,u.Dp)(this).filter((t=>t!==this&&!function(t){return t instanceof w&&t.isStandaloneSpan()}(t))).map((t=>(0,u.XU)(t))).filter(I),o=this._attributes[a.Zj],s={contexts:{trace:(0,u.HR)(this)},spans:r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:e,...(0,v.Jr)({dynamicSamplingContext:(0,d.jC)(this)})},_metrics_summary:(0,y.y)(this),...o&&{transaction_info:{source:o}}},c=(0,b.l)(this._events);return c&&Object.keys(c).length&&(l.X&&p.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(c,void 0,2)),s.measurements=c),s}}function E(t){return t&&"number"==typeof t||t instanceof Date||Array.isArray(t)}function I(t){return!!(t.start_timestamp&&t.timestamp&&t.span_id&&t.trace_id)}const C="__SENTRY_SUPPRESS_TRACING__";function x(t){const e=R();if(e.startInactiveSpan)return e.startInactiveSpan(t);const n=L(t),r=t.scope||(0,i.nZ)(),o=N(r);return t.onlyIfParent&&!o?new f.b:$({parentSpan:o,spanContext:n,forceTransaction:t.forceTransaction,scope:r})}function A(t,e){const n=R();return n.withActiveSpan?n.withActiveSpan(t,e):(0,i.$e)((n=>((0,c.D)(n,t||void 0),e(n))))}function $({parentSpan:t,spanContext:e,forceTransaction:n,scope:r}){if(!(0,s.z)())return new f.b;const o=(0,i.aF)();let a;if(t&&!n)a=function(t,e,n){const{spanId:r,traceId:o}=t.spanContext(),a=!e.getScopeData().sdkProcessingMetadata[C]&&(0,u.Tt)(t),s=a?new w({...n,parentSpanId:r,traceId:o,sampled:a}):new f.b({traceId:o});(0,u.j5)(t,s);const c=(0,i.s3)();c&&(c.emit("spanStart",s),n.endTimestamp&&c.emit("spanEnd",s));return s}(t,r,e),(0,u.j5)(t,a);else if(t){const n=(0,d.jC)(t),{traceId:i,spanId:o}=t.spanContext(),s=(0,u.Tt)(t);a=D({traceId:i,parentSpanId:o,...e},r,s),(0,d.Lh)(a,n)}else{const{traceId:t,dsc:n,parentSpanId:i,sampled:s}={...o.getPropagationContext(),...r.getPropagationContext()};a=D({traceId:t,parentSpanId:i,...e},r,s),n&&(0,d.Lh)(a,n)}return function(t){if(!l.X)return;const{description:e="< unknown name >",op:n="< unknown op >",parent_span_id:r}=(0,u.XU)(t),{spanId:i}=t.spanContext(),o=(0,u.Tt)(t),a=(0,u.Gx)(t),s=a===t,c=`[Tracing] Starting ${o?"sampled":"unsampled"} ${s?"root ":""}span`,d=[`op: ${n}`,`name: ${e}`,`ID: ${i}`];if(r&&d.push(`parent ID: ${r}`),!s){const{op:t,description:e}=(0,u.XU)(a);d.push(`root ID: ${a.spanContext().spanId}`),t&&d.push(`root op: ${t}`),e&&d.push(`root description: ${e}`)}p.kg.log(`${c}\n  ${d.join("\n  ")}`)}(a),function(t,e,n){t&&((0,v.xp)(t,S,n),(0,v.xp)(t,T,e))}(a,r,o),a}function L(t){const e={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){const n={...e};return n.startTimestamp=(0,u.$k)(t.startTime),delete n.startTime,n}return e}function R(){const t=(0,r.c)();return(0,o.G)(t)}function D(t,e,n){const r=(0,i.s3)(),o=r&&r.getOptions()||{},{name:c="",attributes:u}=t,[d,f]=e.getScopeData().sdkProcessingMetadata[C]?[!1]:function(t,e){if(!(0,s.z)(t))return[!1];let n;n="function"==typeof t.tracesSampler?t.tracesSampler(e):void 0!==e.parentSampled?e.parentSampled:void 0!==t.tracesSampleRate?t.tracesSampleRate:1;const r=(0,m.o)(n);return void 0===r?(l.X&&p.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random()<r?[!0,r]:(l.X&&p.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[!1,r]):(l.X&&p.kg.log("[Tracing] Discarding transaction because "+("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,r])}(o,{name:c,parentSampled:n,attributes:u,transactionContext:{name:c,parentSampled:n}}),h=new w({...t,attributes:{[a.Zj]:"custom",...t.attributes},sampled:d});return void 0!==f&&h.setAttribute(a.TE,f),r&&r.emit("spanStart",h),h}function N(t){const e=(0,c.Y)(t);if(!e)return;const n=(0,i.s3)();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,u.Gx)(e):e}},1932:(t,e,n)=>{n.d(e,{z:()=>i});var r=n(24806);function i(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=t||function(){const t=(0,r.s3)();return t&&t.getOptions()}();return!!e&&(e.enableTracing||"tracesSampleRate"in e||"tracesSampler"in e)}},25360:(t,e,n)=>{n.d(e,{o:()=>o});var r=n(42562),i=n(62066);function o(t){if("boolean"==typeof t)return Number(t);const e="string"==typeof t?parseFloat(t):t;if(!("number"!=typeof e||isNaN(e)||e<0||e>1))return e;i.X&&r.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`)}},33653:(t,e,n)=>{n.d(e,{X:()=>r});const r=!1},27146:(t,e,n)=>{n.d(e,{H0:()=>E,g3:()=>b});var r=n(85893),i=n(91971),o=n(57912),a=n(12911),s=n(24806),c=n(50304),u=n(90210),d=n(42562),p=n(8679),l=(n(67294),n(33653));let m,f,h,g,v,_=!1;const y=[];function b(t){const e=(0,i.E8)({...t,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:n,useLocation:r,useNavigationType:s,createRoutesFromChildren:c,matchRoutes:u,stripBasename:d,instrumentPageLoad:p=!0,instrumentNavigation:l=!0}=t;return{...e,setup(){m=n,f=r,h=s,v=u,g=c,_=d||!1},afterAllSetup(t){e.afterAllSetup(t);const n=o.m9&&o.m9.location&&o.m9.location.pathname;p&&n&&(0,i.Wo)(t,{name:n,attributes:{[a.Zj]:"url",[a.$J]:"pageload",[a.S3]:"auto.pageload.react.reactrouter_v6"}}),l&&y.push(t)}}}function T(t,e){if(!e||"/"===e)return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return t;const n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&"/"!==r?t:t.slice(n)||"/"}function S(t,e,n,r=""){if(!t||0===t.length)return[_?T(e.pathname,r):e.pathname,"url"];let i="";if(n)for(let t=0;t<n.length;t++){const o=n[t],a=o.route;if(a){if(a.index)return[_?T(o.pathname,r):o.pathname,"route"];const t=a.path;if(t){const n="/"===t[0]||"/"===i[i.length-1]?t:`/${t}`;if(i+=n,r+o.pathname===e.pathname)return(0,u.$A)(i)!==(0,u.$A)(o.pathname)&&"/*"!==i.slice(-2)?[(_?"":r)+n,"route"]:[(_?"":r)+i,"route"]}}}return[_?T(e.pathname,r):e.pathname,"url"]}function k(t,e,n,r,i){const o=Array.isArray(r)?r:v(n,e,i);if(o){const[r,c]=S(n,e,o,i);(0,s.nZ)().setTransactionName(r),t&&(t.updateName(r),t.setAttribute(a.Zj,c))}}function w(t,e,n,r,o){const c=Array.isArray(r)?r:v(e,t,o),u=(0,s.s3)();if(u&&y.includes(u)&&("PUSH"===n||"POP"===n)&&c){const[n,r]=S(e,t,c,o);(0,i.og)(u,{name:n,attributes:{[a.Zj]:r,[a.$J]:"navigation",[a.S3]:"auto.navigation.react.reactrouter_v6"}})}}function E(t){if(!(m&&f&&h&&g&&v))return l.X&&d.kg.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.\n      useEffect: ${m}. useLocation: ${f}. useNavigationType: ${h}.\n      createRoutesFromChildren: ${g}. matchRoutes: ${v}.`),t;let e=!0;const n=n=>{const i=f(),o=h();return m((()=>{const t=g(n.children);e?(k(I(),i,t),e=!1):w(i,t,o)}),[i,o]),(0,r.jsx)(t,{...n})};return p(n,t),n}function I(){const t=(0,c.HN)(),e=t?(0,c.Gx)(t):void 0;if(!e)return;const n=(0,c.XU)(e).op;return"navigation"===n||"pageload"===n?e:void 0}},43854:(t,e,n)=>{n.d(e,{RA:()=>a,vK:()=>c});var r=n(61289),i=n(42562);const o=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function a(t,e=!1){const{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:c}=t;return`${s}://${c}${e&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${a}`}function s(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function c(t){const e="string"==typeof t?function(t){const e=o.exec(t);if(!e)return void(0,i.Cf)((()=>{console.error(`Invalid Sentry Dsn: ${t}`)}));const[n,r,a="",c,u="",d]=e.slice(1);let p="",l=d;const m=l.split("/");if(m.length>1&&(p=m.slice(0,-1).join("/"),l=m.pop()),l){const t=l.match(/^\d+/);t&&(l=t[0])}return s({host:c,pass:a,path:p,projectId:l,port:u,protocol:n,publicKey:r})}(t):s(t);if(e&&function(t){if(!r.X)return!0;const{port:e,projectId:n,protocol:o}=t;return!(["protocol","publicKey","host","projectId"].find((e=>!t[e]&&(i.kg.error(`Invalid Sentry Dsn: ${e} missing`),!0)))||(n.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(o)?e&&isNaN(parseInt(e,10))&&(i.kg.error(`Invalid Sentry Dsn: Invalid port ${e}`),1):(i.kg.error(`Invalid Sentry Dsn: Invalid protocol ${o}`),1):(i.kg.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(e))return e}},97259:(t,e,n)=>{n.d(e,{BO:()=>c,Cd:()=>v,HY:()=>g,Jd:()=>s,KQ:()=>l,V$:()=>p,gv:()=>u,mL:()=>h,zQ:()=>m});var r=n(43854),i=n(81895),o=n(27575),a=n(84756);function s(t,e=[]){return[t,e]}function c(t,e){const[n,r]=t;return[n,[...r,e]]}function u(t,e){const n=t[1];for(const t of n){if(e(t,t[0].type))return!0}return!1}function d(t){return a.GLOBAL_OBJ.__SENTRY__&&a.GLOBAL_OBJ.__SENTRY__.encodePolyfill?a.GLOBAL_OBJ.__SENTRY__.encodePolyfill(t):(new TextEncoder).encode(t)}function p(t){const[e,n]=t;let r=JSON.stringify(e);function o(t){"string"==typeof r?r="string"==typeof t?r+t:[d(r),t]:r.push("string"==typeof t?d(t):t)}for(const t of n){const[e,n]=t;if(o(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify((0,i.Fv)(n))}o(t)}}return"string"==typeof r?r:function(t){const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(r)}function l(t){return[{type:"span"},t]}function m(t){const e="string"==typeof t.data?d(t.data):t.data;return[(0,o.Jr)({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const f={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function h(t){return f[t]}function g(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function v(t,e,n,i){const a=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&i&&{dsn:(0,r.RA)(i)},...a&&{trace:(0,o.Jr)({...a})}}}},62696:(t,e,n)=>{n.d(e,{U:()=>c});var r=n(27575),i=n(36027),o=n(30554),a=n(84756),s=n(11213);function c(t){const e="fetch";(0,s.Hj)(e,t),(0,s.D2)(e,u)}function u(){(0,i.t$)()&&(0,r.hl)(a.GLOBAL_OBJ,"fetch",(function(t){return function(...e){const{method:n,url:r}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:p(e),method:d(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:p(e),method:d(e,"method")?String(e.method).toUpperCase():"GET"}}(e),i={args:e,fetchData:{method:n,url:r},startTimestamp:1e3*(0,o.ph)()};return(0,s.rK)("fetch",{...i}),t.apply(a.GLOBAL_OBJ,e).then((t=>{const e={...i,endTimestamp:1e3*(0,o.ph)(),response:t};return(0,s.rK)("fetch",e),t}),(t=>{const e={...i,endTimestamp:1e3*(0,o.ph)(),error:t};throw(0,s.rK)("fetch",e),t}))}}))}function d(t,e){return!!t&&"object"==typeof t&&!!t[e]}function p(t){return"string"==typeof t?t:t?d(t,"url")?t.url:t.toString?t.toString():"":""}},34995:(t,e,n)=>{n.d(e,{V:()=>a});var r=n(84756),i=n(11213);let o=null;function a(t){const e="error";(0,i.Hj)(e,t),(0,i.D2)(e,s)}function s(){o=r.GLOBAL_OBJ.onerror,r.GLOBAL_OBJ.onerror=function(t,e,n,r,a){const s={column:r,error:a,line:n,msg:t,url:e};return(0,i.rK)("error",s),!(!o||o.__SENTRY_LOADER__)&&o.apply(this,arguments)},r.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}},421:(t,e,n)=>{n.d(e,{h:()=>a});var r=n(84756),i=n(11213);let o=null;function a(t){const e="unhandledrejection";(0,i.Hj)(e,t),(0,i.D2)(e,s)}function s(){o=r.GLOBAL_OBJ.onunhandledrejection,r.GLOBAL_OBJ.onunhandledrejection=function(t){const e=t;return(0,i.rK)("unhandledrejection",e),!(o&&!o.__SENTRY_LOADER__)||o.apply(this,arguments)},r.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},11213:(t,e,n)=>{n.d(e,{D2:()=>u,Hj:()=>c,rK:()=>d});var r=n(61289),i=n(42562),o=n(20290);const a={},s={};function c(t,e){a[t]=a[t]||[],a[t].push(e)}function u(t,e){s[t]||(e(),s[t]=!0)}function d(t,e){const n=t&&a[t];if(n)for(const a of n)try{a(e)}catch(e){r.X&&i.kg.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${(0,o.$P)(a)}\nError:`,e)}}},36027:(t,e,n)=>{n.d(e,{Ak:()=>a,QC:()=>s,t$:()=>c});var r=n(61289),i=n(42562);const o=n(84756).GLOBAL_OBJ;function a(){if(!("fetch"in o))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function s(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function c(){if("string"==typeof EdgeRuntime)return!0;if(!a())return!1;if(s(o.fetch))return!0;let t=!1;const e=o.document;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=s(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){r.X&&i.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t}},90210:(t,e,n)=>{function r(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}function i(t){return t.split(/\\?\//).filter((t=>t.length>0&&","!==t)).length}n.d(e,{$A:()=>i,en:()=>r})}}]);
//# sourceMappingURL=1410.a3e488857928abdf.js.map