PageSourceSearch

https://www.socdefenders.ai/_next/static/chunks/pages/_app-c835ecf01a001911.js

js socdefenders.ai collected 2026-10-05 07:39:57 UTC 561,228 bytes, 202 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b0242ac2-55cd-46e6-9e47-cf10fe2a010e",e._sentryDebugIdIdentifier="sentry-dbid-b0242ac2-55cd-46e6-9e47-cf10fe2a010e")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{19477:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(85893),i=r(67294);t.default=function({html:e,height:t=null,width:r=null,children:a,dataNtpc:s=""}){return(0,i.useEffect)(()=>{s&&performance.mark("mark_feature_usage",{detail:{feature:`next-third-parties-${s}`}})},[s]),(0,n.jsxs)(n.Fragment,{children:[a,e?(0,n.jsx)("div",{style:{height:null!=t?`${t}px`:"auto",width:null!=r?`${r}px`:"auto"},"data-ntpc":s,dangerouslySetInnerHTML:{__html:e}}):null]})}},7834:function(e,t,r){"use strict";let n;var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendGAEvent=t.GoogleAnalytics=void 0;let a=r(85893),s=r(67294),o=i(r(4298));t.GoogleAnalytics=function(e){let{gaId:t,dataLayerName:r="dataLayer"}=e;return void 0===n&&(n=r),(0,s.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:`
2          window['${r}'] = window['${r}'] || [];
3          function gtag(){window['${r}'].push(arguments);}
4          gtag('js', new Date());
5
6          gtag('config', '${t}');`}}),(0,a.jsx)(o.default,{id:"_next-ga",src:`https://www.googletagmanager.com/gtag/js?id=${t}`})]})},t.sendGAEvent=function(...e){if(void 0===n){console.warn("@next/third-parties: GA has not been initialized");return}window[n]?window[n].push(arguments):console.warn(`@next/third-parties: GA dataLayer ${n} does not exist`)}},83632:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let i=r(85893),a=r(86257),s=n(r(19477));t.default=function(e){let{apiKey:t,...r}=e,n={...r,key:t},{html:o}=(0,a.GoogleMapsEmbed)(n);return(0,i.jsx)(s.default,{height:n.height||null,width:n.width||null,html:o,dataNtpc:"GoogleMapsEmbed"})}},30674:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendGTMEvent=t.GoogleTagManager=void 0;let i=r(85893),a=r(67294),s=n(r(4298)),o="dataLayer";t.GoogleTagManager=function(e){let{gtmId:t,dataLayerName:r="dataLayer",auth:n,preview:l,dataLayer:u}=e;o=r;let c="dataLayer"!==r?`&l=${r}`:"",d=n?`&gtm_auth=${n}`:"",f=l?`&gtm_preview=${l}&gtm_cookies_win=x`:"";return(0,a.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:`
7      (function(w,l){
8        w[l]=w[l]||[];
9        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});
10        ${u?`w[l].push(${JSON.stringify(u)})`:""}
11      })(window,'${r}');`}}),(0,i.jsx)(s.default,{id:"_next-gtm","data-ntpc":"GTM",src:`https://www.googletagmanager.com/gtm.js?id=${t}${c}${d}${f}`})]})},t.sendGTMEvent=(e,t)=>{let r=t||o;window[r]=window[r]||[],window[r].push(e)}},19692:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendGAEvent=t.GoogleAnalytics=t.sendGTMEvent=t.GoogleTagManager=t.YouTubeEmbed=t.GoogleMapsEmbed=void 0;var i=r(83632);Object.defineProperty(t,"GoogleMapsEmbed",{enumerable:!0,get:function(){return n(i).default}});var a=r(11494);Object.defineProperty(t,"YouTubeEmbed",{enumerable:!0,get:function(){return n(a).default}});var s=r(30674);Object.defineProperty(t,"GoogleTagManager",{enumerable:!0,get:function(){return s.GoogleTagManager}}),Object.defineProperty(t,"sendGTMEvent",{enumerable:!0,get:function(){return s.sendGTMEvent}});var o=r(7834);Object.defineProperty(t,"GoogleAnalytics",{enumerable:!0,get:function(){return o.GoogleAnalytics}}),Object.defineProperty(t,"sendGAEvent",{enumerable:!0,get:function(){return o.sendGAEvent}})},11494:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esMo
11dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let i=r(85893),a=n(r(4298)),s=r(86257),o=n(r(19477)),l={server:"beforeInteractive",client:"afterInteractive",idle:"lazyOnload",worker:"worker"};t.default=function(e){let{html:t,scripts:r,stylesheets:n}=(0,s.YouTubeEmbed)(e);return(0,i.jsx)(o.default,{height:e.height||null,width:e.width||null,html:t,dataNtpc:"YouTubeEmbed",children:null==r?void 0:r.map(e=>(0,i.jsx)(a.default,{src:e.url,strategy:l[e.strategy],stylesheets:n},e.url))})}},86010:function(e,t,r){"use strict";t.Z=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n);else for(r in t)t[r]&&(i&&(i+=" "),i+=r)}return i}(e))&&(n&&(n+=" "),n+=t);return n}},24394:function(e,t,r){"use strict";r.d(t,{K:function(){return n},k:function(){return i}});var n=function(){},i=function(){}},82010:function(e,t,r){"use strict";r.d(t,{F:function(){return u},f:function(){return c}});var n=r(67294);let i=["light","dark"],a="(prefers-color-scheme: dark)",s="undefined"==typeof window,o=(0,n.createContext)(void 0),l={setTheme:e=>{},themes:[]},u=()=>{var e;return null!==(e=(0,n.useContext)(o))&&void 0!==e?e:l},c=e=>(0,n.useContext)(o)?n.createElement(n.Fragment,null,e.children):n.createElement(f,e),d=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:s=!0,storageKey:l="theme",themes:u=d,defaultTheme:c=r?"system":"light",attribute:f="data-theme",value:y,children:v,nonce:b})=>
11{let[x,_]=(0,n.useState)(()=>h(l,c)),[w,k]=(0,n.useState)(()=>h(l)),S=y?Object.values(y):u,E=(0,n.useCallback)(e=>{let n=e;if(!n)return;"system"===e&&r&&(n=g());let a=y?y[n]:n,o=t?m():null,l=document.documentElement;if("class"===f?(l.classList.remove(...S),a&&l.classList.add(a)):a?l.setAttribute(f,a):l.removeAttribute(f),s){let e=i.includes(c)?c:null,t=i.includes(n)?n:e;l.style.colorScheme=t}null==o||o()},[]),C=(0,n.useCallback)(e=>{_(e);try{localStorage.setItem(l,e)}catch(e){}},[e]),O=(0,n.useCallback)(t=>{k(g(t)),"system"===x&&r&&!e&&E("system")},[x,e]);(0,n.useEffect)(()=>{let e=window.matchMedia(a);return e.addListener(O),O(e),()=>e.removeListener(O)},[O]),(0,n.useEffect)(()=>{let e=e=>{e.key===l&&C(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[C]),(0,n.useEffect)(()=>{E(null!=e?e:x)},[e,x]);let T=(0,n.useMemo)(()=>({theme:x,setTheme:C,forcedTheme:e,resolvedTheme:"system"===x?w:x,themes:r?[...u,"system"]:u,systemTheme:r?w:void 0}),[x,C,e,w,r,u]);return n.createElement(o.Provider,{value:T},n.createElement(p,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:r,enableColorScheme:s,storageKey:l,themes:u,defaultTheme:c,attribute:f,value:y,children:v,attrs:S,nonce:b}),v)},p=(0,n.memo)(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:s,enableColorScheme:o,defaultTheme:l,value:u,attrs:c,nonce:d})=>{let f="system"===l,p="class"===r?`var d=document.documentElement,c=d.classList;c.remove(${c.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${r}',s='setAttribute';`,h=o?i.includes(l)&&l?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${l}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(e,t=!1,n=!0)=>{let a=u?u[e]:e,s=t?e+"|| ''":`'${a}'`,l="";return o&&n&&!t&&i.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===r?l+=t||a?`c.add(${s})`:"null":a&&(l+=`d[s](n,${s})`),l},g=e?`!function(){${p}${m(e)}}()`:s?`!function(){try{${p}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${f})){var t='${a}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}${f?"":"else{"+m(l,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${p}var e=localStorage.getItem('${t}');if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}else{${m(l,!1,!1)};}${h}}catch(t){}}();`;return n.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:g}})},()=>!0),h=(e,t)=>{let r;if(!s){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},m=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},g=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light")},83454:function(e,t,r){"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(77663)},6840:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(53889)}])},70841:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(85893),i=r(67294),a=r(41664),s=r.n(a),o=r(33215),l=r(86010);function u(){let e=new Date().getFullYear(),[t,r]=(0,i.useState)(""),[a,u]=(0,i.useState)(!1),[c,d]=(0,i.useState)(null),f=async e=>{if(e.preventDefault(),t&&!a){u(!0),d(null);try{let{data:e}=await o.ZP.post("/api/newsletter/subscribe",{email:t,source:"footer"});e.success?(d({type:"success",text:e.message||"Subscribed successfully!"}),r("")):d({type:"error",text:e.error||"Failed to subscribe"})}catch(e){var n,i;d({type:"error",text:(null===(i=e.response)||void 0===i?void 0:null===(n=i.data)||void 0===n?void 0:n.error)||"Something went wrong. Please try again."})}finally{u(!1)}}};return(0,n.jsx)("footer",{className:"border-t border-subtle dark:border-subtle-dark bg-surface dark:bg-surface-dark pb-20 md:pb-0","data-sentry-component":"Footer","data-sentry-source-file":"Footer.tsx",children:(0,n.jsxs)("div",{className:"mx-auto max-w-7xl px-4 py-8 sm:px-6 lg:px-8",children:[(0,n.jsxs)("div",{className:"grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-4",children:[(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsx)("h3",{className:"text-sm font-semibold text-primary dark:text-primary-dark",children:"SOC Defenders"}),(0,n.jsx)("p",{className:"text-sm text-secondary dark:text-secondary-dark",children:"Cybersecurity threat intelligence and news aggregation platform for security professionals."}),(0,n.jsxs)("div",{className:"flex items-center gap-2 text-sm text-secondary dark:text-secondary-dark",children:[(0,n.jsx)("svg",{className:"h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","data-sentry-element":"svg","data-sentry-source-file":"Footer.tsx",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z","data-sentry-element":"path","data-sentry-source-file":"Footer.tsx"})}),(0,n.jsx)("a",{href:"mailto:[email protected]",className:"hover:text-accent dark:hover:text-accent-dark transition-colors",children:"[email protected]"})]})]}),(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsx)("h3",{className:"text-sm font-semibold text-primary dark:text-primary-dark",children:"Platform"}),(0,n.jsxs)("ul",{className:"space-y-2",children:[(0,n.jsx)("li",{children:(0,n.jsx)(s(),{href:"/",className:"text-sm text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark transition-colors","data-sentry-element":"Link","data-sentry-source-file":"Footer.tsx",children:"Threat Feed"})}),(0,n.jsx)("li",{children:(0,n.jsx)(s(),{href:"/saved",className:"text-sm text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark transition-colors","data-sentry-element":"Link","data-sentry-source-file":"Footer.tsx",children:"Saved Articles"})}),(0,n.jsx)("li",{children:(0,n.jsx)(s(),{href:"/submit",className:"text-sm text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark transition-colors","data-sentry-element":"Link","data-sentry-source-file":"Footer.tsx",children:"Submit Article"})}),(0,n.jsx)("li",{children:(0,n.jsx)(s(),{href:"/submissions",className:"text-sm text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark transition-colors","data-sentry-element":"Link","data-sentry-source-file":"Footer.tsx",children:"My Submissions"})}),(0,n.jsx)("li",{children:(0,n.jsx)(s(),{href:"/leaderboard",className:"text-sm text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark transition-colors","data-sentry-element":"Link","data-sentry-source-file":"Footer.tsx",children:"Leaderboard"})}),(0,n.jsx)("li",{children:(0,n.jsx)(s(),{href:"/export",className:"text-sm text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark transition-colors","data-sentry-element":"Link","data-sentry-source-file":"Footer.tsx",children:"Export & API Keys"})})]})]}),(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsx)("h3",{className:"text-sm font-semibold text-primary dark:text-primary-dark",children:"Developers"}),(0,n.jsxs)("ul",{className:"space-y-2",children:[(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"https://docs.socdefenders.ai/introduction",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark transition-colors",children:"API Documentation ↗"})}),(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"/api/openapi.json",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark transition-colors",children:"OpenAPI Spec"})}),(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"https://docs.socdefenders.ai/introduction#quickstart",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark transition-colors",children:"Qu
11ick Start Guide ↗"})}),(0,n.jsx)("li",{children:(0,n.jsx)(s(),{href:"/export#keys",className:"text-sm text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark transition-colors","data-sentry-element":"Link","data-sentry-source-file":"Footer.tsx",children:"Get API Key"})}),(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"/api/taxii2/",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark transition-colors",children:"TAXII 2.1 Server"})})]}),(0,n.jsx)("h4",{className:"text-sm font-semibold text-primary dark:text-primary-dark pt-3",children:"Resources"}),(0,n.jsxs)("ul",{className:"space-y-2",children:[(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"https://attack.mitre.org",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark transition-colors",children:"MITRE ATT&CK"})}),(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"https://cve.mitre.org",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark transition-colors",children:"CVE Database"})}),(0,n.jsx)("li",{children:(0,n.jsx)(s(),{href:"/contact",className:"text-sm text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark transition-colors","data-sentry-element":"Link","data-sentry-source-file":"Footer.tsx",children:"Contact Us"})})]})]}),(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsx)("h3",{className:"text-sm font-semibold text-primary dark:text-primary-dark",children:"Newsletter"}),(0,n.jsx)("p",{className:"text-sm text-secondary dark:text-secondary-dark",children:"Get the latest threat intelligence delivered to your inbox."}),(0,n.jsxs)("form",{onSubmit:f,className:"space-y-2",children:[(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)("input",{type:"email",value:t,onChange:e=>r(e.target.value),placeholder:"[email protected]",required:!0,className:(0,l.Z)("flex-1 px-3 py-2 text-sm rounded","border border-control","bg-white dark:bg-slate-800","text-primary","placeholder-gray-400 dark:placeholder-slate-500","focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500")}),(0,n.jsx)("button",{type:"submit",disabled:a||!t,className:(0,l.Z)("px-4 py-2 text-sm font-medium rounded","bg-blue-600 text-white","hover:bg-blue-700","disabled:opacity-50 disabled:cursor-not-allowed","transition-colors"),children:a?"...":"Subscribe"})]}),c&&(0,n.jsx)("p",{className:(0,l.Z)("text-xs","success"===c.type?"text-green-600 dark:text-green-400":"text-red-600 dark:text-red-400"),children:c.text})]}),(0,n.jsxs)("div",{className:"pt-4 border-t border-subtle dark:border-subtle-dark",children:[(0,n.jsx)("h4",{className:"text-sm font-semibold text-primary dark:text-primary-dark mb-2",children:"Legal"}),(0,n.jsxs)("ul",{className:"space-y-1",children:[(0,n.jsx)("li",{children:(0,n.jsx)(s(),{href:"/privacy",className:"text-sm text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark transition-colors","data-sentry-element":"Link","data-sentry-source-file":"Footer.tsx",children:"Privacy Policy"})}),(0,n.jsx)("li",{children:(0,n.jsx)(s(),{href:"/terms",className:"text-sm text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark transition-colors","data-sentry-element":"Link","data-sentry-source-file":"Footer.tsx",children:"Terms of Service"})}),(0,n.jsx)("li",{children:(0,n.jsx)(s(),{href:"/cookies",className:"text-sm text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark transition-colors","data-sentry-element":"Link","data-sentry-source-file":"Footer.tsx",children:"Cookie Policy"})})]})]})]})]}),(0,n.jsx)("div",{className:"mt-8 border-t border-subtle dark:border-subtle-dark pt-8",children:(0,n.jsxs)("div",{className:"flex flex-col items-center justify-between gap-4 sm:flex-row",children:[(0,n.jsxs)("p",{className:"text-sm text-secondary dark:text-secondary-dark",children:["\xa9 ",e," SOC Defenders. All rights reserved."]}),(0,n.jsxs)("a",{href:"https://www.linkedin.com/in/zriyansh/",target:"_blank",rel:"noopener noreferrer",className:"text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark transition-colors inline-flex items-center gap-2",children:[(0,n.jsx)("svg",{className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 24 24","data-sentry-element":"svg","data-sentry-source-file":"Footer.tsx",children:(0,n.jsx)("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z","data-sentry-element":"path","data-sentry-source-file":"Footer.tsx"})}),(0,n.jsx)("span",{className:"text-sm",children:"Creator"})]})]})})]})})}},40026:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(85893),i=r(41664),a=r.n(i),s=r(11163),o=r(67294),l=r(86010),u=r(82010),c=r(95361),d=r(4723),f=r(34362),p=r(59021),h=r(11460),m=r(78700);function g(e){let{isOpen:t,onClose:r}=e,i=(0,s.useRouter)(),{user:a,isAuthenticated:g,logout:y}=(0,c.aC)(),{openLoginModal:v,openRegisterModal:b}=(0,d.f)(),{resolvedTheme:x,setTheme:_}=(0,u.F)(),w=(0,p.OW)(),k=e=>"/"===e?"/"===i.pathname:i.pathname.startsWith(e),S=async()=>{w.light(),r(),await y(),i.push("/")},E=e=>{w.light(),r(),i.push(e)},C="flex items-center gap-3 w-full px-3 min-h-[48px] rounded-lg text-left transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-accent dark:focus-visible:ring-accent-dark";return(0,n.jsx)(h.u,{show:t,as:o.Fragment,"data-sentry-element":"Transition","data-sentry-component":"MobileMenu","data-sentry-source-file":"MobileMenu.tsx",children:(0,n.jsxs)(m.V,{onClose:r,className:"relative z-[60]","data-sentry-element":"Dialog","data-sentry-source-file":"MobileMenu.tsx",children:[(0,n.jsx)(h.u.Child,{as:o.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0","data-sentry-element":"Transition.Child","data-sentry-source-file":"MobileMenu.tsx",children:(0,n.jsx)(m.V.Overlay,{className:"fixed inset-0 bg-black/50 backdrop-blur-sm","data-sentry-element":"Dialog.Overlay","data-sentry-source-file":"MobileMenu.tsx"})}),(0,n.jsx)(h.u.Child,{as:o.Fragment,enter:"ease-out duration-300",enterFrom:"translate-x-full",enterTo:"translate-x-0",leave:"ease-in duration-200",leaveFrom:"translate-x-0",leaveTo:"translate-x-full","data-sentry-element":"Transition.Child","data-sentry-source-file":"MobileMenu.tsx",children:(0,n.jsxs)(m.V.Panel,{className:"fixed inset-y-0 right-0 w-[280px] max-w-[85vw] bg-surface dark:bg-surface-dark shadow-2xl overflow-y-auto","data-sentry-element":"Dialog.Panel","data-sentry-source-file":"MobileMenu.tsx",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between px-4 h-14 border-b border-subtle dark:border-subtle-dark",children:[(0,n.jsx)(m.V.Title,{className:"text-sm font-semibold text-primary dark:text-primary-dark","data-sentry-element":"Dialog.Title","data-sentry-source-file":"MobileMenu.tsx",children:"Menu"}),(0,n.jsx)("button",{onClick:()=>{w.light(),r()},className:"min-w-[48px] min-h-[48px] -mr-3 flex items-center justify-center text-secondary dark:text-secondary-dark hover:text-primary dark:hover:text-primary-dark rounded-lg transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-accent dark:focus-visible:ring-accent-dark","aria-label":"Close menu",children:(0,n.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true","data-sentry-element":"svg","data-sentry-source-file":"MobileMenu.tsx",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12","data-sentry-element":"path","data-sentry-source-file":"MobileMenu.tsx"})})})]}),g&&a&&(0,n.jsx)("div",{className:"px-4 py-3 border-b border-subtle dark:border-subtle-dark",children:(0,n.jsxs)("button",{onClick:()=>E("/user/".concat(a.username)),"aria-label":"View profile for ".concat(a.username),className:"flex items-center gap-3 w-full min-h-[48px] text-left rounded-lg focus:outline-none focus-visible:ring-2 focus-visible:ring-accent dark:focus-visible:ring-accent-dark",children:[(0,n.jsx)("div",{className:"w-12 h-12 rounded-full bg-accent/10 dark:bg-accent-dark/10 flex items-center justify-center flex-shrink-0",children:(0,n.jsx)("span",{className:"text-lg font-bold text-accent dark:text-accent-dark","aria-hidden":"true",children:a.username.charAt(0).toUpperCase()})}),(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsx)("p",{className:"text-sm font-semibold text-primary dark:text-primary-dark truncate",children:a.username}),(0,n.jsxs)("p",{className:"text-xs text-secondary dark:text-secondary-dark",children:[a.karma," karma"]})]}),(0,n.jsx)("svg",{className:"w-5 h-5 text-secondary dark:text-secondary-dark flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})}),(0,n.jsx)("div",{className:"py-2",children:(0,n.jsxs)("nav",{className:"space-y-1 px-2","aria-label":"Main navigation",children:[(0,n.jsxs)("button",{onClick:()=>E("/"),"aria-current":k("/")?"page":void 0,className:(0,l.Z)(C,k("/")?"bg-accent/10 dark:bg-accent-dark/10 text-accent dark:text-accent-dark":"text-primary dark:text-primary-dark hover:bg-surface-muted dark:hover:bg-surface-muted-dark"),children:[(0,n.jsx)("svg",{className:"w-5 h-5 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true","data-sentry-element":"svg","data-sentry-source-file":"MobileMenu.tsx",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z","data-sentry-element":"path","data-sentry-source-file":"MobileMenu.tsx"})}),(0,n.jsx)("span",{className:"text-sm font-medium",children:"News"})]}),(0,n.jsxs)("button",{onClick:()=>{w.light(),r(),g?a&&a.karma<f.LR.SUBMIT_ARTICLE?alert("You need ".concat(f.LR.SUBMIT_ARTICLE," karma to submit articles. You currently have ").concat(a.karma," karma.")):i.push("/submit"):b()},"aria-current":k("/submit")?"page":void 0,className:(0,l.Z)(C,k("/submit")?"bg-success/10 dark:bg-success-dark/10 text-success dar
11k:text-success-dark":"text-success dark:text-success-dark hover:bg-surface-muted dark:hover:bg-surface-muted-dark"),children:[(0,n.jsx)("svg",{className:"w-5 h-5 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true","data-sentry-element":"svg","data-sentry-source-file":"MobileMenu.tsx",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4","data-sentry-element":"path","data-sentry-source-file":"MobileMenu.tsx"})}),(0,n.jsx)("span",{className:"text-sm font-medium",children:"Submit Article"})]}),(0,n.jsxs)("button",{onClick:()=>E("/saved"),"aria-current":k("/saved")?"page":void 0,"aria-label":g&&a&&a.saved_count>0?"Saved Articles, ".concat(a.saved_count," items"):"Saved Articles",className:(0,l.Z)(C,k("/saved")?"bg-accent/10 dark:bg-accent-dark/10 text-accent dark:text-accent-dark":"text-primary dark:text-primary-dark hover:bg-surface-muted dark:hover:bg-surface-muted-dark"),children:[(0,n.jsx)("svg",{className:"w-5 h-5 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true","data-sentry-element":"svg","data-sentry-source-file":"MobileMenu.tsx",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z","data-sentry-element":"path","data-sentry-source-file":"MobileMenu.tsx"})}),(0,n.jsx)("span",{className:"text-sm font-medium",children:"Saved Articles"}),g&&a&&a.saved_count>0&&(0,n.jsx)("span",{className:"ml-auto text-xs px-2 py-0.5 rounded-full bg-accent/10 dark:bg-accent-dark/10 text-accent dark:text-accent-dark","aria-hidden":"true",children:a.saved_count})]}),(0,n.jsxs)("button",{onClick:()=>E("/threats"),"aria-current":k("/threats")?"page":void 0,className:(0,l.Z)(C,k("/threats")?"bg-accent/10 dark:bg-accent-dark/10 text-accent dark:text-accent-dark":"text-primary dark:text-primary-dark hover:bg-surface-muted dark:hover:bg-surface-muted-dark"),children:[(0,n.jsx)("svg",{className:"w-5 h-5 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true","data-sentry-element":"svg","data-sentry-source-file":"MobileMenu.tsx",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z","data-sentry-element":"path","data-sentry-source-file":"MobileMenu.tsx"})}),(0,n.jsx)("span",{className:"text-sm font-medium",children:"Cyber Threats"})]}),(0,n.jsxs)("button",{onClick:()=>E("/cves"),"aria-current":k("/cves")?"page":void 0,className:(0,l.Z)(C,k("/cves")?"bg-accent/10 dark:bg-accent-dark/10 text-accent dark:text-accent-dark":"text-primary dark:text-primary-dark hover:bg-surface-muted dark:hover:bg-surface-muted-dark"),children:[(0,n.jsx)("svg",{className:"w-5 h-5 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true","data-sentry-element":"svg","data-sentry-source-file":"MobileMenu.tsx",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z","data-sentry-element":"path","data-sentry-source-file":"MobileMenu.tsx"})}),(0,n.jsx)("span",{className:"text-sm font-medium",children:"Vulnerability Intelligence"})]}),(0,n.jsxs)("button",{onClick:()=>E("/leaderboard"),"aria-current":k("/leaderboard")?"page":void 0,className:(0,l.Z)(C,k("/leaderboard")?"bg-accent/10 dark:bg-accent-dark/10 text-accent dark:text-accent-dark":"text-primary dark:text-primary-dark hover:bg-surface-muted dark:hover:bg-surface-muted-dark"),children:[(0,n.jsx)("svg",{className:"w-5 h-5 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true","data-sentry-element":"svg","data-sentry-source-file":"MobileMenu.tsx",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z","data-sentry-element":"path","data-sentry-source-file":"MobileMenu.tsx"})}),(0,n.jsx)("span",{className:"text-sm font-medium",children:"Leaderboard"})]}),g&&(null==a?void 0:a.is_admin)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"my-2 mx-3 h-px bg-subtle dark:bg-subtle-dark",role:"separator","aria-hidden":"true"}),(0,n.jsxs)("button",{onClick:()=>E("/admin"),"aria-current":k("/admin")?"page":void 0,className:(0,l.Z)(C,k("/admin")?"bg-error/10 dark:bg-error-dark/10 text-error dark:text-error-dark":"text-error dark:text-error-dark hover:bg-surface-muted dark:hover:bg-surface-muted-dark"),children:[(0,n.jsxs)("svg",{className:"w-5 h-5 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]}),(0,n.jsx)("span",{className:"text-sm font-medium",children:"Admin"})]})]})]})}),(0,n.jsx)("div",{className:"py-2 border-t border-subtle dark:border-subtle-dark",children:(0,n.jsxs)("div",{className:"px-2",children:[(0,n.jsxs)("button",{onClick:()=>{w.medium(),_("dark"===x?"light":"dark")},"aria-label":"dark"===x?"Switch to light mode":"Switch to dark mode","aria-pressed":"dark"===x,className:(0,l.Z)(C,"justify-between text-primary dark:text-primary-dark hover:bg-surface-muted dark:hover:bg-surface-muted-dark"),children:[(0,n.jsxs)("div",{className:"flex items-center gap-3",children:["dark"===x?(0,n.jsx)("svg",{className:"w-5 h-5 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})}):(0,n.jsx)("svg",{className:"w-5 h-5 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})}),(0,n.jsx)("span",{className:"text-sm font-medium",children:"dark"===x?"Light Mode":"Dark Mode"})]}),(0,n.jsx)("div",{className:(0,l.Z)("w-11 h-6 rounded-full p-1 transition-colors flex-shrink-0","dark"===x?"bg-accent dark:bg-accent-dark":"bg-gray-300 dark:bg-slate-600"),"aria-hidden":"true",children:(0,n.jsx)("div",{className:(0,l.Z)("w-4 h-4 rounded-full bg-white transition-transform","dark"===x?"translate-x-5":"translate-x-0")})})]}),g&&(0,n.jsxs)("button",{onClick:()=>E("/settings"),"aria-current":k("/settings")?"page":void 0,className:(0,l.Z)(C,k("/settings")?"bg-accent/10 dark:bg-accent-dark/10 text-accent dark:text-accent-dark":"text-primary dark:text-primary-dark hover:bg-surface-muted dark:hover:bg-surface-muted-dark"),children:[(0,n.jsxs)("svg",{className:"w-5 h-5 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]}),(0,n.jsx)("span",{className:"text-sm font-medium",children:"Settings"})]})]})}),(0,n.jsx)("div",{className:"py-4 px-4 border-t border-subtle dark:border-subtle-dark mt-auto",children:g?(0,n.jsxs)("button",{onClick:S,"aria-label":"Log out of your account",className:"flex items-center justify-center gap-2 w-full min-h-[48px] px-4 py-3 rounded-lg text-error dark:text-error-dark bg-error/10 dark:bg-error-dark/10 hover:bg-error/20 dark:hover:bg-error-dark/20 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-error dark:focus-visible:ring-error-dark",children:[(0,n.jsx)("svg",{className:"w-5 h-5 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"})}),(0,n.jsx)("span",{className:"text-sm font-medium",children:"Logout"})]}):(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("button",{onClick:()=>{w.light(),r(),v()},"aria-label":"Log in to your account",className:"flex items-center justify-center gap-2 w-full min-h-[48px] px-4 py-3 rounded-lg text-primary dark:text-primary-dark bg-surface-muted dark:bg-surface-muted-dark hover:bg-gray-200 dark:hover:bg-slate-700 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-accent dark:focus-visible:ring-accent-dark",children:(0,n.jsx)("span",{className:"text-sm font-medium",children:"Login"})}),(0,n.jsx)("button",{onClick:()=>{w.light(),r(),b()},"aria-label":"Create a new account",className:"flex items-center justify-center gap-2 w-full min-h-[48px] px-4 py-3 rounded-lg text-white bg-accent dark:bg-accent-dark hover:bg-accent/90 dark:hover:bg-accent-dark/90 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-offset-2 focus-visible:ring-offset-accent dark:focus-visible:ring-offset-accent-dark",children:(0,n.jsx)("span",{className:"text-sm font-medium",children:"Sign Up"})})]})})]})})]})})}function y(){let e=(0,s.useRouter)(),{user:t,isAuthenticated:r,logout:i}=(0,c.aC)(),{openLoginModal:h,openRegisterModal:m}=(0,d.f)(),{theme:y,setTheme:v,resolvedTheme:b}=(0,u.F)(),[x,_]=(0,o.useState)(!1),[w,k]=(0,o.useState)(!1),[S,E]=(0,o.useState)(!1),C=(0,p.OW)(),[O,T]=(0,o.useState)(!1),[A,R]=(0,o.useState)(!1),[M,j]=(0,o.useState)(!1);(0,o.useEffect)(()=>{_(!0)},[]),(0,o.useEffect)(()=>{let e=()=>T(!0),t=()=>T(!1),r=()=>R(!0),n=()=>R(!1),i=()=>j(!0),a=()=>j(!1);return window.addEventListener("reelsFeedOpened",e),window.addEventListener("reelsFeedClosed",t),window.addEventListener("exploreViewOpened",r),window.addEventListener("exploreViewClosed",n),window.addEventListener("activityFeedOpened",i),window.addEventListener("activityFeedClosed",a),()=>{window.removeEventListener("reelsFeedOpened",e),window.removeEventListener("reelsFeedClosed",t),window.removeEventListener("exploreViewOpened",r),window.removeEventListener("exploreViewClosed",n),window.removeEventListener("activityFeedOpened",i),window.removeEventListener("activityFeedClosed",a)}},[]);let N=t=>"/"===t?"/"===e.pathname:e.pathname.startsWith(t),L=async()=>
11{if(!S){E(!0);try{await i(),e.push("/")}finally{E(!1)}}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("nav",{className:"hidden md:block fixed top-0 left-0 right-0 z-50 bg-surface dark:bg-surface-dark border-b border-subtle dark:border-subtle-dark",children:(0,n.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,n.jsxs)("div",{className:"flex items-center justify-between h-16",children:[(0,n.jsx)(a(),{href:"/",className:"flex items-center gap-2","data-sentry-element":"Link","data-sentry-source-file":"Navigation.tsx",children:(0,n.jsx)("span",{className:"text-xl font-bold text-primary dark:text-primary-dark",children:"SOC Defenders"})}),(0,n.jsxs)("div",{className:"flex items-center gap-6",children:[(0,n.jsx)(a(),{href:"/",className:(0,l.Z)("text-sm font-medium transition-colors",N("/")&&!N("/export")?"text-accent dark:text-accent-dark":"text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark"),"data-sentry-element":"Link","data-sentry-source-file":"Navigation.tsx",children:"News"}),(0,n.jsx)(a(),{href:"/threats",className:(0,l.Z)("text-sm font-medium transition-colors",N("/threats")?"text-accent dark:text-accent-dark":"text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark"),"data-sentry-element":"Link","data-sentry-source-file":"Navigation.tsx",children:"Cyber Threats"}),(0,n.jsx)(a(),{href:"/cves",className:(0,l.Z)("text-sm font-medium transition-colors",N("/cves")?"text-accent dark:text-accent-dark":"text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark"),"data-sentry-element":"Link","data-sentry-source-file":"Navigation.tsx",children:"Vulnerability Intelligence"}),(0,n.jsx)(a(),{href:"/export",className:(0,l.Z)("text-sm font-medium transition-colors",N("/export")?"text-accent dark:text-accent-dark":"text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark"),"data-sentry-element":"Link","data-sentry-source-file":"Navigation.tsx",children:"Export"}),(0,n.jsx)("a",{href:"https://docs.socdefenders.ai/introduction",target:"_blank",rel:"noopener noreferrer",className:"text-sm font-medium text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark transition-colors",children:"API Docs ↗"}),r&&t&&(0,n.jsxs)(a(),{href:"/saved",className:(0,l.Z)("text-sm font-medium transition-colors",N("/saved")?"text-accent dark:text-accent-dark":"text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark"),children:["Saved (",t.saved_count,")"]}),(0,n.jsx)("button",{onClick:()=>{r?t&&t.karma<f.LR.SUBMIT_ARTICLE?alert("You need ".concat(f.LR.SUBMIT_ARTICLE," karma to submit articles. You currently have ").concat(t.karma," karma. Earn karma by getting upvotes on your comments and article submissions!")):e.push("/submit"):m()},className:(0,l.Z)("text-sm font-medium transition-colors",N("/submit")?"text-success dark:text-success-dark":"text-success dark:text-success-dark hover:text-success/80 dark:hover:text-success-dark/80"),children:"Submit"}),r&&(null==t?void 0:t.is_admin)&&(0,n.jsx)(a(),{href:"/admin",className:(0,l.Z)("text-sm font-medium transition-colors",N("/admin")?"text-error dark:text-error-dark":"text-error dark:text-error-dark hover:text-error/80 dark:hover:text-error-dark/80"),children:"Admin"}),(0,n.jsx)("button",{onClick:()=>{v("dark"===b?"light":"dark")},className:"p-2 text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark hover:bg-surface-muted dark:hover:bg-surface-muted-dark rounded-md transition-all",title:x&&"dark"===b?"Switch to light mode":"Switch to dark mode","aria-label":x&&"dark"===b?"Switch to light mode":"Switch to dark mode",children:x?"dark"===b?(0,n.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})}):(0,n.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})}):(0,n.jsx)("svg",{className:"w-5 h-5 animate-pulse",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})})}),r&&t?(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsxs)(a(),{href:"/user/".concat(t.username),className:(0,l.Z)("text-sm font-medium transition-colors",N("/user/".concat(t.username))?"text-accent dark:text-accent-dark":"text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark"),children:[t.username," (",t.karma,")"]}),(0,n.jsx)("button",{onClick:L,disabled:S,className:(0,l.Z)("px-3 py-1.5 text-sm font-medium rounded-md transition-all","text-secondary dark:text-secondary-dark","hover:text-error dark:hover:text-error-dark","hover:bg-surface-muted dark:hover:bg-surface-muted-dark",S&&"opacity-50 cursor-not-allowed"),children:S?"
11Logging out...":"Logout"})]}):(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)("button",{onClick:h,className:"px-4 py-2 text-sm font-medium text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark hover:bg-surface-muted dark:hover:bg-surface-muted-dark rounded-md transition-all",children:"Login"}),(0,n.jsx)("button",{onClick:m,className:"px-4 py-2 text-sm font-medium bg-accent dark:bg-accent-dark text-white dark:text-white rounded-md hover:bg-accent/90 dark:hover:bg-accent-dark/90 active:bg-accent/80 dark:active:bg-accent-dark/80 transition-all shadow-sm",children:"Sign Up"})]})]})]})})}),(0,n.jsx)("div",{className:"md:hidden fixed top-0 left-0 right-0 z-50 bg-surface dark:bg-surface-dark border-b border-subtle dark:border-subtle-dark",children:(0,n.jsxs)("div",{className:"flex items-center justify-between h-14 px-4",children:[(0,n.jsx)(a(),{href:"/",className:"flex items-center gap-2","data-sentry-element":"Link","data-sentry-source-file":"Navigation.tsx",children:(0,n.jsx)("span",{className:"text-lg font-bold text-primary dark:text-primary-dark",children:"SOC Defenders"})}),(0,n.jsx)("button",{onClick:()=>{C.light(),k(!0)},className:"p-2 text-secondary dark:text-secondary-dark hover:text-accent dark:hover:text-accent-dark rounded-md transition-all min-w-[44px] min-h-[44px] flex items-center justify-center","aria-label":"Open menu","aria-expanded":w,children:(0,n.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","data-sentry-element":"svg","data-sentry-source-file":"Navigation.tsx",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16","data-sentry-element":"path","data-sentry-source-file":"Navigation.tsx"})})})]})}),(0,n.jsx)(g,{isOpen:w,onClose:()=>k(!1),"data-sentry-element":"MobileMenu","data-sentry-source-file":"Navigation.tsx"}),(0,n.jsxs)("nav",{className:"md:hidden fixed bottom-0 left-0 right-0 z-50 mobile-bottom-nav safe-area-inset-bottom",children:[(0,n.jsxs)(a(),{href:"/",onClick:()=>{C.light(),A&&window.dispatchEvent(new CustomEvent("closeExploreView")),O&&window.dispatchEvent(new CustomEvent("closeReelsFeed")),M&&window.dispatchEvent(new CustomEvent("closeActivityFeed"))},className:(0,l.Z)("mobile-nav-tab",N("/")&&!e.query.view&&!O&&!A&&"mobile-nav-tab-active"),"data-sentry-element":"Link","data-sentry-source-file":"Navigation.tsx",children:[(0,n.jsx)("span",{className:"mobile-nav-tab-indicator"}),(0,n.jsx)("span",{className:"mobile-nav-tab-icon",children:(0,n.jsx)("svg",{fill:!N("/")||e.query.view||O||A?"none":"currentColor",stroke:"currentColor",viewBox:"0 0 24 24","data-sentry-element":"svg","data-sentry-source-file":"Navigation.tsx",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:!N("/")||e.query.view||O||A?2:0,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6","data-sentry-element":"path","data-sentry-source-file":"Navigation.tsx"})})}),(0,n.jsx)("span",{className:"mobile-nav-tab-label",children:"Home"})]}),(0,n.jsxs)("button",{onClick:()=>{if(C.medium(),"/"!==e.pathname){e.push("/?mobileTab=feed");return}A&&window.dispatchEvent(new CustomEvent("closeExploreView")),M&&window.dispatchEvent(new CustomEvent("closeActivityFeed")),window.dispatchEvent(new CustomEvent("openReelsFeed"))},className:(0,l.Z)("mobile-nav-tab mobile-nav-tab-reels",O&&"mobile-nav-tab-active"),children:[(0,n.jsx)("span",{className:"mobile-nav-tab-indicator"}),(0,n.jsx)("span",{className:"mobile-nav-tab-icon",children:(0,n.jsxs)("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","data-sentry-element":"svg","data-sentry-source-file":"Navigation.tsx",children:[(0,n.jsx)("path",{fill:O?"currentColor":"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z","data-sentry-element":"path","data-sentry-source-file":"Navigation.tsx"}),(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z","data-sentry-element":"path","data-sentry-source-file":"Navigation.tsx"})]})}),(0,n.jsx)("span",{className:"mobile-nav-tab-label",children:"Feed"})]}),(0,n.jsxs)("button",{onClick:()=>
11{if(C.medium(),"/"!==e.pathname){e.push("/?mobileTab=explore");return}O&&window.dispatchEvent(new CustomEvent("closeReelsFeed")),M&&window.dispatchEvent(new CustomEvent("closeActivityFeed")),window.dispatchEvent(new CustomEvent("openExploreView"))},className:(0,l.Z)("mobile-nav-tab mobile-nav-tab-explore",A&&"mobile-nav-tab-active"),children:[(0,n.jsx)("span",{className:"mobile-nav-tab-indicator"}),(0,n.jsx)("span",{className:"mobile-nav-tab-icon",children:(0,n.jsx)("svg",{fill:A?"currentColor":"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:A?0:2,"data-sentry-element":"svg","data-sentry-source-file":"Navigation.tsx",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z","data-sentry-element":"path","data-sentry-source-file":"Navigation.tsx"})})}),(0,n.jsx)("span",{className:"mobile-nav-tab-label",children:"Explore"})]}),r&&t?(0,n.jsxs)(a(),{href:"/user/".concat(t.username),onClick:()=>{C.light(),A&&window.dispatchEvent(new CustomEvent("closeExploreView")),O&&window.dispatchEvent(new CustomEvent("closeReelsFeed")),M&&window.dispatchEvent(new CustomEvent("closeActivityFeed"))},className:(0,l.Z)("mobile-nav-tab",N("/user/".concat(t.username))&&"mobile-nav-tab-active"),children:[(0,n.jsx)("span",{className:"mobile-nav-tab-indicator"}),(0,n.jsx)("span",{className:"mobile-nav-tab-icon",children:(0,n.jsx)("svg",{fill:N("/user/".concat(t.username))?"currentColor":"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:N("/user/".concat(t.username))?0:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})})}),(0,n.jsx)("span",{className:"mobile-nav-tab-label",children:"Profile"})]}):(0,n.jsxs)("button",{onClick:()=>{C.light(),A&&window.dispatchEvent(new CustomEvent("closeExploreView")),O&&window.dispatchEvent(new CustomEvent("closeReelsFeed")),M&&window.dispatchEvent(new CustomEvent("closeActivityFeed")),h()},className:"mobile-nav-tab",children:[(0,n.jsx)("span",{className:"mobile-nav-tab-indicator"}),(0,n.jsx)("span",{className:"mobile-nav-tab-icon",children:(0,n.jsx)("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})})}),(0,n.jsx)("span",{className:"mobile-nav-tab-label",children:"Profile"})]}),(0,n.jsxs)("button",{onClick:()=>{if(C.medium(),"/"!==e.pathname){e.push("/?mobileTab=activity");return}A&&window.dispatchEvent(new CustomEvent("closeExploreView")),O&&window.dispatchEvent(new CustomEvent("closeReelsFeed")),window.dispatchEvent(new CustomEvent("openActivityFeed"))},className:(0,l.Z)("mobile-nav-tab",M&&"mobile-nav-tab-active"),children:[(0,n.jsx)("span",{className:"mobile-nav-tab-indicator"}),(0,n.jsx)("span",{className:"mobile-nav-tab-icon",children:(0,n.jsx)("svg",{fill:M?"currentColor":"none",stroke:"currentColor",viewBox:"0 0 24 24","data-sentry-element":"svg","data-sentry-source-file":"Navigation.tsx",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:M?0:2,d:"M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z","data-sentry-element":"path","data-sentry-source-file":"Navigation.tsx"})})}),(0,n.jsx)("span",{className:"mobile-nav-tab-label",children:"Activity"})]})]})]})}},24576:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(85893),i=r(67294),a=r(41664),s=r.n(a),o=r(86010),l=r(95361),u=r(56042);function c(e){let{isOpen:t,onClose:r,onSwitchToRegister:a}=e,[c,d]=(0,i.useState)(""),[f,p]=(0,i.useState)(""),[h,m]=(0,i.useState)(!1),[g,y]=(0,i.useState)(""),[v,b]=(0,i.useState)(!1),{login:x}=(0,l.aC)(),_=async e=>{e.preventDefault();let t=c.trim();if(console.log("[LoginModal] Form submitted",{identifier:t,remember:h}),y(""),!t){y("Please enter your username or email");return}if(!f){y("Please enter your password");return}b(!0);try{console.log("[LoginModal] Calling login function..."),await x(t,f,h),console.log("[LoginModal] Login successful, closing modal"),console.log("[LoginModal] ✅ Login successful, session cookie set (httpOnly)"),r(),d(""),p("")}catch(e){console.error("[LoginModal] Login failed:",e),y(e.message||"Login failed")}finally{b(!1)}};return t?(0,n.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50 p-4","data-sentry-component":"LoginModal","data-sentry-source-file":"LoginModal.tsx",children:(0,n.jsxs)("div",{className:(0,o.Z)("w-full max-w-md rounded-lg p-4 sm:p-6 md:p-8","bg-surface dark:bg-surface-dark","border border-border-divider dark:border-border-divider-dark"),children:[(0,n.jsxs)("div",{className:"mb-4 sm:mb-6 flex items-center justify-between",children:[(0,n.jsx)("h2",{className:"text-xl sm:text-2xl font-bold text-text-primary dark:text-text-primary-dark",children:"Login"}),(0,n.jsx)("button",{onClick:r,className:"p-2 -m-2 text-text-tertiary hover:text-text-primary dark:text-text-tertiary-dark dark:hover:text-text-primary-dark","aria-label":"Close modal",children:"✕"})]}),g&&(0,n.jsx)("div",{className:"mb-4 rounded bg-red-50 p-3 text-sm text-red-600 dark:bg-red-900/20 dark:text-red-400",children:g}),(0,n.jsxs)("form",{onSubmit:_,className:"space-y-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"identifier",className:"block text-sm font-medium text-text-primary dark:text-text-primary-dark",children:"Username or Email"}),(0,n.jsx)("input",{id:"identifier",type:"text",value:c,onChange:e=>d(e.target.value),required:!0,className:(0,o.Z)("mt-1 block w-full rounded-md px-3 py-2","border border-border-input dark:border-border-input-dark","bg-surface dark:bg-input-bg-dark","text-text-primary dark:text-text-primary-dark","focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500")})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"password",className:"block text-sm font-medium text-text-primary dark:text-text-primary-dark",children:"Password"}),(0,n.jsx)("input",{id:"password",type:"password",value:f,onChange:e=>p(e.target.value),required:!0,className:(0,o.Z)("mt-1 block w-full rounded-md px-3 py-2","border border-border-input dark:border-border-input-dark","bg-surface dark:bg-input-bg-dark","text-text-primary dark:text-text-primary-dark","focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500")})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("input",{id:"remember",type:"checkbox",checked:h,onChange:e=>
11m(e.target.checked),className:"h-4 w-4 rounded border-border-input text-blue-600 focus:ring-blue-500"}),(0,n.jsx)("label",{htmlFor:"remember",className:"ml-2 block text-sm text-text-primary dark:text-text-primary-dark",children:"Remember me (30 days)"})]}),(0,n.jsx)(s(),{href:"/forgot-password",onClick:r,className:"text-sm font-medium text-blue-600 hover:underline dark:text-blue-400","data-sentry-element":"Link","data-sentry-source-file":"LoginModal.tsx",children:"Forgot password?"})]}),(0,n.jsx)("button",{type:"submit",disabled:v,className:(0,o.Z)("w-full rounded-md px-4 py-2 font-medium","bg-primary-bg text-btn-primary-text","hover:bg-primary-bg-hover","disabled:cursor-not-allowed disabled:opacity-50","transition-colors","flex items-center justify-center"),children:v?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.ZP,{size:"sm",color:"white",inline:!0,className:"mr-2"}),"Logging in..."]}):"Login"})]}),(0,n.jsxs)("div",{className:"mt-4 text-center text-sm text-text-secondary dark:text-text-secondary-dark",children:["Don't have an account?"," ",(0,n.jsx)("button",{onClick:a,className:"font-medium text-blue-600 hover:underline dark:text-blue-400",children:"Sign up"})]})]})}):null}},7903:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(85893),i=r(67294),a=r(86010),s=r(95361),o=r(56042);let l=new Set(["password","password1","password123","123456","12345678","123456789","1234567890","qwerty","abc123","monkey","letmein","dragon","111111","baseball","iloveyou","trustno1","sunshine","master","welcome","shadow","ashley","football","jesus","michael","ninja","mustang"]);function u(e){let{isOpen:t,onClose:r,onSwitchToLogin:u}=e,[c,d]=(0,i.useState)(""),[f,p]=(0,i.useState)(""),[h,m]=(0,i.useState)(""),[g,y]=(0,i.useState)(""),[v,b]=(0,i.useState)(!0),[x,_]=(0,i.useState)(""),[w,k]=(0,i.useState)(!1),{register:S}=(0,s.aC)(),E=async e=>{e.preventDefault(),_("");let t=c.trim(),n=f.trim();if(h!==g){_("Passwords do not match");return}if(h.length<8){_("Password must be at least 8 characters");return}if(h.length>128){_("Password must be 128 characters or less");return}if(l.has(h.toLowerCase())){_("This password is too common. Please choose a more unique password.");return}if(n.length<3||n.length>20){_("Username must be between 3 and 20 characters");return}if(!/^[a-zA-Z0-9_]+$/.test(n)){_("Username can only contain letters, numbers, and underscores");return}if(n.startsWith("_")){_("Username cannot start with an underscore");return}k(!0);try{await S(t,n,h,v),r(),d(""),p(""),m(""),y(""),b(!0)}catch(e){_(e.message||"Registration failed")}finally{k(!1)}};return t?(0,n.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50 p-4","data-sentry-component":"RegisterModal","data-sentry-source-file":"RegisterModal.tsx",children:(0,n.jsxs)("div",{className:(0,a.Z)("w-full max-w-md rounded-lg p-4 sm:p-6 md:p-8","bg-surface dark:bg-surface-dark","border border-border-divider dark:border-border-divider-dark"),children:[(0,n.jsxs)("div",{className:"mb-4 sm:mb-6 flex items-center justify-between",children:[(0,n.jsx)("h2",{className:"text-xl sm:text-2xl font-bold text-text-primary dark:text-text-primary-dark",children:"Create Account"}),(0,n.jsx)("button",{onClick:r,className:"p-2 -m-2 text-text-tertiary hover:text-text-primary dark:text-text-tertiary-dark dark:hover:text-text-primary-dark","aria-label":"Close modal",children:"✕"})]}),x&&(0,n.jsx)("div",{className:"mb-4 rounded bg-red-50 p-3 text-sm text-red-600 dark:bg-red-900/20 dark:text-red-400",children:x}),(0,n.jsxs)("form",{onSubmit:E,className:"space-y-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium text-text-primary dark:text-text-primary-dark",children:"Email"}),(0,n.jsx)("input",{id:"email",type:"email",value:c,onChange:e=>d(e.target.value),required:!0,className:(0,a.Z)("mt-1 block w-full rounded-md px-3 py-2","border border-border-input dark:border-border-input-dark","bg-surface dark:bg-input-bg-dark","text-text-primary dark:text-text-primary-dark","focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500")})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"username",className:"block text-sm font-medium text-text-primary dark:text-text-primary-dark",children:"Username"}),(0,n.jsx)("input",{id:"username",type:"text",value:f,onChange:e=>p(e.target.value),required:!0,pattern:"[a-zA-Z0-9][a-zA-Z0-9_]{2,19}
11",title:"3-20 characters, must start with letter or number, can include underscores",className:(0,a.Z)("mt-1 block w-full rounded-md px-3 py-2","border border-border-input dark:border-border-input-dark","bg-surface dark:bg-input-bg-dark","text-text-primary dark:text-text-primary-dark","focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500")}),(0,n.jsx)("p",{className:"mt-1 text-xs text-text-tertiary dark:text-text-tertiary-dark",children:"3-20 characters, must start with letter or number"})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"password",className:"block text-sm font-medium text-text-primary dark:text-text-primary-dark",children:"Password"}),(0,n.jsx)("input",{id:"password",type:"password",value:h,onChange:e=>m(e.target.value),required:!0,minLength:8,className:(0,a.Z)("mt-1 block w-full rounded-md px-3 py-2","border border-border-input dark:border-border-input-dark","bg-surface dark:bg-input-bg-dark","text-text-primary dark:text-text-primary-dark","focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500")}),(0,n.jsx)("p",{className:"mt-1 text-xs text-text-tertiary dark:text-text-tertiary-dark",children:"At least 8 characters. Longer is better—try a passphrase!"})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"confirmPassword",className:"block text-sm font-medium text-text-primary dark:text-text-primary-dark",children:"Confirm Password"}),(0,n.jsx)("input",{id:"confirmPassword",type:"password",value:g,onChange:e=>y(e.target.value),required:!0,className:(0,a.Z)("mt-1 block w-full rounded-md px-3 py-2","border border-border-input dark:border-border-input-dark","bg-surface dark:bg-input-bg-dark","text-text-primary dark:text-text-primary-dark","focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500")})]}),(0,n.jsxs)("label",{className:"flex items-start gap-2 cursor-pointer select-none",children:[(0,n.jsx)("input",{type:"checkbox",checked:v,onChange:e=>b(e.target.checked),className:"mt-0.5 h-4 w-4 rounded border-border-input dark:border-border-input-dark text-blue-600 focus:ring-blue-500"}),(0,n.jsx)("span",{className:"text-sm text-text-secondary dark:text-text-secondary-dark",children:"Email me the daily threat-intel digest. You can unsubscribe any time."})]}),(0,n.jsx)("button",{type:"submit",disabled:w,className:(0,a.Z)("w-full rounded-md px-4 py-2 font-medium","bg-primary-bg text-btn-primary-text","hover:bg-primary-bg-hover","disabled:cursor-not-allowed disabled:opacity-50","transition-colors","flex items-center justify-center"),children:w?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.ZP,{size:"sm",color:"white",inline:!0,className:"mr-2"}),"Creating account..."]}):"Sign Up"})]}),(0,n.jsxs)("div",{className:"mt-4 text-center text-sm text-text-secondary dark:text-text-secondary-dark",children:["Already have an account?"," ",(0,n.jsx)("button",{onClick:u,className:"font-medium text-blue-600 hover:underline dark:text-blue-400",children:"Login"})]})]})}):null}},31199:function(e,t,r){"use strict";var n=r(85893),i=r(40026),a=r(70841),s=r(24576),o=r(7903),l=r(4723);t.Z=function(e){let{children:t}=e,{showLoginModal:r,showRegisterModal:u,closeModals:c,switchToRegister:d,switchToLogin:f}=(0,l.f)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.Z,{"data-sentry-element":"Navigation","data-sentry-source-file":"WithNavigationFooter.tsx"}),(0,n.jsx)("main",{className:"pt-16 md:pt-16 pb-16 md:pb-0",children:t}),(0,n.jsx)(a.Z,{"data-sentry-element":"Footer","data-sentry-source-file":"WithNavigationFooter.tsx"}),(0,n.jsx)(s.Z,{isOpen:r,onClose:c,onSwitchToRegister:d,"data-sentry-element":"LoginModal","data-sentry-source-file":"WithNavigationFooter.tsx"}),(0,n.jsx)(o.Z,{isOpen:u,onClose:c,onSwitchToLogin:f,"data-sentry-element":"RegisterModal","data-sentry-source-file":"WithNavigationFooter.tsx"})]})}},56042:function(e,t,r){"use strict";r.d(t,{ZP:function(){return o},uw:function(){return l}});var n=r(85893);r(67294);var i=r(86010);let a={xs:"h-3 w-3 border",sm:"h-4 w-4 border-2",md:"h-5 w-5 border-2",lg:"h-8 w-8 border-2",xl:"h-12 w-12 border-4"},s={primary:"border-blue-500 border-t-transparent dark:border-blue-400 dark:border-t-transparent",secondary:"border-text-tertiary border-t-transparent dark:border-text-tertiary-dark dark:border-t-transparent",white:"border-white border-t-transparent",current:"border-current border-t-transparent"};function o(e){let{size:t="md",color:r="primary",inline:o=!1,className:l="",label:u="Loading"}=e;return(0,n.jsx)("div",{className:(0,i.Z)("animate-spin rounded-full",a[t],s[r],o&&"inline-block",l),role:"status","aria-label":u,"aria-live":"polite","data-sentry-component":"Spinner","data-sentry-source-file":"Spinner.tsx",children:(0,n.jsxs)("span",{className:"sr-only",children:[u,"..."]})})}function l(e){let{message:t,size:r="lg",className:a=""}=e;return(0,n.jsxs)("div",{className:(0,i.Z)("flex flex-col items-center justify-center gap-4 py-12",a),"data-sentry-component":"SectionSpinner","data-sentry-source-file":"Spinner.tsx",children:[(0,n.jsx)(o,{size:r,"data-sentry-element":"Spinner","data-sentry-source-file":"Spinner.tsx"}),t&&(0,n.jsx)("p",{className:"text-sm text-text-secondary dark:text-text-secondary-dark",children:t})]})}},95361:function(e,t,r){"use strict";r.d(t,{Ho:function(){return p},aC:function(){return h}});var n=r(85893),i=r(67294),a=r(5068),s=r(46658),o=r(39424),l=r(33215),u=r(98256);r(34362);let c={revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,dedupingInterval:6e4,refreshInterval:12e4,shouldRetryOnError:e=>401!==e.status&&403!==e.status,errorRetryCount:2,errorRetryInterval:5e3,keepPreviousData:!0};async function d(e){try{let t=await l.ZP.get(e);if(t.data.authenticated&&t.data.user)return t.data.user;return null}catch(e){var t,r;if((null===(t=e.response)||void 0===t?void 0:t.status)===401||(null===(r=e.response)||void 0===r?void 0:r.status)===403)return null;throw e}}let f=(0,i.createContext)(void 0);function p(e){let{children:t}=e,{token:r,refetch:p}=(0,u.Fy)(),{data:h,error:m,isLoading:g,isValidating:y,mutate:v}=(0,a.ZP)("/api/auth/me",d,c);(0,i.useEffect)(()=>{h?o.av({id:h.id,username:h.username}):null===h&&o.av(null)},[h]);let b=(0,i.useCallback)(async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!r)throw Error("CSRF token not available. Please refresh the page and try again.");try{let{data:i}=await l.ZP.post("/api/auth/login",{identifier:e,password:t,remember:n},{headers:(0,u.iy)(r)});if(i.success&&i.user)await v(i.user,{revalidate:!0,populateCache:!0}),await p();else throw Error(i.error||"Login failed")}catch(e){var i,a;throw Error((null===(a=e.response)||void 0===a?void 0:null===(i=a.data)||void 0===i?void 0:i.error)||e.message||"Login failed")}},[r,v,p]),x=(0,i.useCallback)(async function(e,t,n){var i,a,s,o,c,d;let f=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!r)throw Error("CSRF token not available. Please refresh the page and try again.");try{let{data:a}=await l.ZP.post("/api/auth/register",{email:e,username:t,password:n},{headers:(0,u.iy)(r)});if(a.success&&a.user)await v(a.user,{revalidate:!0,populateCache:!0}),await p(),f&&l.ZP.post("/api/newsletter/subscribe",{email:e,source:"signup"}).catch(e=>{console.warn("[AuthContext] newsletter subscribe failed:",(null==e?void 0:e.message)||e)});else{let e=(null===(i=a.errors)||void 0===i?void 0:i.join(", "))||a.error||"Registration failed";throw Error(e)}}catch(e){throw Error((null===(o=e.response)||void 0===o?void 0:null===(s=o.data)||void 0===s?void 0:null===(a=s.errors)||void 0===a?void 0:a.join(", "))||(null===(d=e.response)||void 0===d?void 0:null===(c=d.data)||void 0===c?void 0:c.error)||e.message||"Registration failed")}},[r,v,p]),_=(0,i.useCallback)(async()=>{try{r?await l.ZP.post("/api/auth/logout",{},{headers:(0,u.iy)(r)}):(console.warn("[AuthContext] CSRF token not available for logout, proceeding anyway"),await l.ZP.post("/api/auth/logout"))}catch(e){console.error("[AuthContext] Logout API error:",e)}await v(null,{revalidate:!1}),await (0,s.j)(e=>"string"==typeof e&&(e.startsWith("/api/user")||e.startsWith("/api/saved")||e.startsWith("/api/submissions")),void 0,{revalidate:!1}),await p()},[r,v,p]),w=(0,i.useCallback)(async()=>{await v()},[v]),k=g&&void 0===h;return(0,n.jsx)(f.Provider,{value:{user:null!=h?h:null,loading:k,isAuthenticated:!!h,error:null!=m?m:null,login:b,register:x,logout:_,refetchUser:w},"data-sentry-element":"AuthContext.Provider","data-sentry-component":"AuthProvider","data-sentry-source-file":"AuthContext.tsx",children:t})}function h(){let e=(0,i.useContext)(f);if(void 0===e)throw Error("useAuth must be used within an AuthProvider");return e}},4723:function(e,t,r){"use strict";r.d(t,{f:function(){return o},q:function(){return s}});var n=r(85893),i=r(67294);let a=(0,i.createContext)(void 0);function s(e){let{children:t}=e,[r,s]=(0,i.useState)(!1),[o,l]=(0,i.useState)(!1);return(0,n.jsx)(a.Provider,{value:{showLoginModal:r,showRegisterModal:o,openLoginModal:()=>{console.log("[AuthModalContext] openLoginModal called"),l(!1),s(!0),console.log("[AuthModalContext] Login modal state set to true")},openRegisterModal:()=>{console.log("[AuthModalContext] openRegisterModal called"),s(!1),l(!0),console.log("[AuthModalContext] Register modal state set to true")},closeModals:()=>{console.log("[AuthModalContext] closeModals called"),s(!1),l(!1),console.log("[AuthModalContext] Both modals closed")},switchToRegister:()=>
11{console.log("[AuthModalContext] switchToRegister called"),s(!1),l(!0),console.log("[AuthModalContext] Switched from login to register")},switchToLogin:()=>{console.log("[AuthModalContext] switchToLogin called"),l(!1),s(!0),console.log("[AuthModalContext] Switched from register to login")}},"data-sentry-element":"AuthModalContext.Provider","data-sentry-component":"AuthModalProvider","data-sentry-source-file":"AuthModalContext.tsx",children:t})}function o(){let e=(0,i.useContext)(a);if(void 0===e)throw Error("useAuthModal must be used within an AuthModalProvider");return e}},98256:function(e,t,r){"use strict";r.d(t,{Fy:function(){return o},R6:function(){return s},iy:function(){return l}});var n=r(85893),i=r(67294);let a=(0,i.createContext)(void 0);function s(e){let{children:t}=e,[r,s]=(0,i.useState)(null),[o,l]=(0,i.useState)(!0),[u,c]=(0,i.useState)(null),d=(0,i.useCallback)(async()=>{try{l(!0),c(null);let e=await fetch("/api/csrf-token",{method:"GET",credentials:"same-origin"});if(!e.ok)throw Error("Failed to fetch CSRF token: ".concat(e.status));let t=await e.json();if(!t.success||!t.token)throw Error("Invalid CSRF token response");s(t.token)}catch(t){let e=t instanceof Error?t:Error("Unknown error fetching CSRF token");c(e),console.error("[CSRFContext] Failed to fetch CSRF token:",e)}finally{l(!1)}},[]);return(0,i.useEffect)(()=>{d()},[d]),(0,n.jsx)(a.Provider,{value:{token:r,loading:o,error:u,refetch:d},"data-sentry-element":"CSRFContext.Provider","data-sentry-component":"CSRFProvider","data-sentry-source-file":"CSRFContext.tsx",children:t})}function o(){let e=(0,i.useContext)(a);if(void 0===e)throw Error("useCSRF must be used within a CSRFProvider");return e}function l(e){let t={"Content-Type":"application/json"};return e&&(t["x-csrf-token"]=e),t}},18346:function(e,t,r){"use strict";r.d(t,{g:function(){return u},w:function(){return l}});var n=r(85893),i=r(67294),a=r(33215),s=r(95361);let o=(0,i.createContext)(void 0);function l(e){let{children:t}=e,{isAuthenticated:r,user:l}=(0,s.aC)(),[u,c]=(0,i.useState)(new Set),[d,f]=(0,i.useState)(!0);(0,i.useEffect)(()=>{(async function(){if(!r){c(new Set),f(!1);return}try{f(!0);let{data:e}=await a.ZP.get("/api/saved-articles?limit=10000");if(e.success&&e.articles){let t=new Set(e.articles.map(e=>e.id));c(t)}}catch(e){console.error("Failed to fetch saved article IDs:",e)}finally{f(!1)}})()},[r,null==l?void 0:l.id]);let p=async()=>{if(r)try{let{data:e}=await a.ZP.get("/api/saved-articles?limit=10000");if(e.success&&e.articles){let t=new Set(e.articles.map(e=>e.id));c(t)}}catch(e){console.error("Failed to refetch saved article IDs:",e)}};return(0,n.jsx)(o.Provider,{value:{savedArticleIds:u,isArticleSaved:e=>u.has(e),markArticleAsSaved:e=>{c(t=>{let r=new Set(t);return r.add(e),r})},markArticleAsUnsaved:e=>{c(t=>{let r=new Set(t);return r.delete(e),r})},refetchSavedArticles:p,loading:d},"data-sentry-element":"SavedArticlesContext.Provider","data-sentry-component":"SavedArticlesProvider","data-sentry-source-file":"SavedArticlesContext.tsx",children:t})}function u(){let e=(0,i.useContext)(o);if(void 0===e)throw Error("useSavedArticles must be used within a SavedArticlesProvider");return e}},11381:function(e,t,r){"use strict";r.d(t,{iK:function(){return c},u$:function(){return d}});var n=r(85893),i=r(67294),a=r(5068),s=r(33215),o=r(95361);let l=async e=>{let{data:t}=await s.ZP.get(e);if(!t.success)throw Error(t.error||"Failed to fetch votes");return t.votes||{}},u=(0,i.createContext)(void 0);function c(e){let{children:t}=e,{isAuthenticated:r,user:c}=(0,o.aC)(),{data:d={},error:f,isLoading:p,mutate:h}=(0,a.ZP)(r&&(null==c?void 0:c.id)?"/api/articles/votes":null,l,{revalidateOnFocus:!0,revalidateOnReconnect:!1,dedupingInterval:6e4,keepPreviousData:!0,errorRetryCount:3,errorRetryInterval:1e3,focusThrottleInterval:3e5}),m=(0,i.useCallback)(e=>d[e]||!1,[d]),g=(0,i.useCallback)((e,t)=>{h(r=>({...r,[e]:t}),{revalidate:!1,populateCache:!0,rollbackOnError:!0})},[h]),y=(0,i.useCallback)(async()=>{r&&await h()},[r,h]),v=(0,i.useCallback)(async e=>{if(r&&0!==e.length)try{let{data:t}=await s.ZP.get("/api/articles/votes",{params:{articleIds:e.join(",")}});t.success&&t.votes&&h(e=>({...e,...t.votes}),{revalidate:!1})}catch(e){console.error("Failed to fetch votes for articles:",e)}},[r,h]),b=(0,i.useMemo)(()=>({votes:d,hasVoted:m,setVoted:g,refetchVotes:y,loading:p,error:f||null,fetchVotesForArticles:v}),[d,m,g,y,p,f,v]);return(0,n.jsx)(u.Provider,{value:b,"data-sentry-element":"VotesContext.Provider","data-sentry-component":"VotesProvi
11der","data-sentry-source-file":"VotesContext.tsx",children:t})}function d(){let e=(0,i.useContext)(u);if(void 0===e)throw Error("useVotes must be used within a VotesProvider");return e}},84037:function(e,t,r){"use strict";r.d(t,{Xb:function(){return d},hO:function(){return c}});var n=r(85893),i=r(67294),a=r(5068),s=r(33215),o=r(95361);let l=async e=>{let{data:t}=await s.ZP.get(e);if(!t.success)throw Error(t.error||"Failed to fetch vouches");return t.vouches||{}},u=(0,i.createContext)(void 0);function c(e){let{children:t}=e,{isAuthenticated:r,user:c}=(0,o.aC)(),d={revalidateOnFocus:!0,revalidateOnReconnect:!1,dedupingInterval:6e4,keepPreviousData:!0,errorRetryCount:3,errorRetryInterval:1e3,focusThrottleInterval:3e5},{data:f={},error:p,isLoading:h,mutate:m}=(0,a.ZP)(r&&(null==c?void 0:c.id)?"/api/vouches/batch?reference_type=article":null,l,d),{data:g={},error:y,isLoading:v,mutate:b}=(0,a.ZP)(r&&(null==c?void 0:c.id)?"/api/vouches/batch?reference_type=comment":null,l,d),x=(0,i.useCallback)(e=>f[e]||!1,[f]),_=(0,i.useCallback)(e=>g[e]||!1,[g]),w=(0,i.useCallback)((e,t)=>{m(r=>({...r,[e]:t}),{revalidate:!1,populateCache:!0,rollbackOnError:!0})},[m]),k=(0,i.useCallback)((e,t)=>{b(r=>({...r,[e]:t}),{revalidate:!1,populateCache:!0,rollbackOnError:!0})},[b]),S=(0,i.useCallback)(async()=>{r&&await Promise.all([m(),b()])},[r,m,b]),E=(0,i.useCallback)(async e=>{if(r&&0!==e.length)try{let{data:t}=await s.ZP.get("/api/vouches/batch",{params:{reference_type:"article",reference_ids:e.join(",")}});t.success&&t.vouches&&m(e=>({...e,...t.vouches}),{revalidate:!1})}catch(e){console.error("Failed to fetch vouches for articles:",e)}},[r,m]),C=(0,i.useCallback)(async e=>{if(r&&0!==e.length)try{let{data:t}=await s.ZP.get("/api/vouches/batch",{params:{reference_type:"comment",reference_ids:e.join(",")}});t.success&&t.vouches&&b(e=>({...e,...t.vouches}),{revalidate:!1})}catch(e){console.error("Failed to fetch vouches for comments:",e)}},[r,b]),O=h||v,T=p||y||null,A=(0,i.useMemo)(()=>({articleVouches:f,commentVouches:g,hasVouchedArticle:x,hasVouchedComment:_,setVouchedArticle:w,setVouchedComment:k,refetchVouches:S,loading:O,error:T,fetchVouchesForArticles:E,fetchVouchesForComments:C}),[f,g,x,_,w,k,S,O,T,E,C]);return(0,n.jsx)(u.Provider,{value:A,"data-sentry-element":"VouchesContext.Provider","data-sentry-component":"VouchesProvider","data-sentry-source-file":"VouchesContext.tsx",children:t})}function d(){let e=(0,i.useContext)(u);if(void 0===e)throw Error("useVouches must be used within a VouchesProvider");return e}},53889:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return rR}});var n,i,a,s,o=r(85893),l=r(39424),u=r(19692),c=r(82597),d=r.n(c),f=r(97986),p=r.n(f),h=r(67294),m=r(86501),g=function(e){let{children:t}=e;return(0,o.jsx)(o.Fragment,{children:t})},y=r(31199),v=r(82010),b=r(11163),x=function(e){let{defaultScheme:t="violet",children:r}=e,{pathname:n}=(0,b.useRouter)();return(0,h.useEffect)(()=>{document.documentElement.setAttribute("data-accent",t),n.includes("/work/")&&document.documentElement.setAttribute("data-accent","blue")},[n,t]),r};let _=new Map,w=new Set;function k(e){for(let t of[...w])t(e)}function S(e){try{return e()}catch(e){return}}var E=function(e,t){if(void 0===h.useSyncExternalStore)throw TypeError('You are using React 17 or below. Install with "npm install use-local-storage-state@17".');let[r]=(0,h.useState)(null==t?void 0:t.defaultValue);if("undefined"==typeof window)return[r,()=>{},{isPersistent:!0,removeItem:()=>{}}];let n=null==t?void 0:t.serializer;return function(e,t,r=!0,n=function(e){return"undefined"===e?void 0:JSON.parse(e)},i=JSON.stringify){_.has(e)||void 0===t||null!==S(()=>localStorage.getItem(e))||S(()=>localStorage.setItem(e,i(t)));let a=(0,h.useRef)({item:null,parsed:t}),s=(0,h.useSyncExternalStore)((0,h.useCallback)(t=>{let r=r=>{e===r&&t()};return w.add(r),()=>{w.delete(r)}},[e]),()=>{var r;let i=null!==(r=S(()=>localStorage.getItem(e)))&&void 0!==r?r:null;if(_.has(e))a.current={item:i,parsed:_.get(e)};else if(i!==a.current.item){let e;try{e=null===i?t:n(i)}catch(r){e=t}a.current={item:i,parsed:e}}return a.current.parsed},()=>t),o=(0,h.useCallback)(t=>{let r=t instanceof Function?t(a.current.parsed):t;
11try{localStorage.setItem(e,i(r)),_.delete(e)}catch(t){_.set(e,r)}k(e)},[e,i]);return(0,h.useEffect)(()=>{if(!r)return;let t=t=>{t.storageArea===S(()=>localStorage)&&t.key===e&&k(e)};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)},[e,r]),(0,h.useMemo)(()=>[s,o,{isPersistent:s===t||!_.has(e),removeItem(){S(()=>localStorage.removeItem(e)),_.delete(e),k(e)}}],[e,o,s,t])}(e,r,null==t?void 0:t.storageSync,null==n?void 0:n.parse,null==n?void 0:n.stringify)},C=function(){let[e,t]=E("ng-focus-mode",{defaultValue:!1});return{focusMode:e,setFocusMode:t}},O=function(e){let{children:t}=e,{focusMode:r}=C();return(0,h.useEffect)(()=>{r?document.documentElement.classList.add("fm"):document.documentElement.classList.remove("fm")},[r]),t},T=r(16014),A=r(91492),R=r(96681);function M({children:e,isValidProp:t,...r}){t&&(0,A.K)(t),(r={...(0,h.useContext)(T._),...r}).isStatic=(0,R.h)(()=>r.isStatic);let n=(0,h.useMemo)(()=>r,[JSON.stringify(r.transition),r.transformPagePoint,r.reducedMotion]);return h.createElement(T._.Provider,{value:n},e)}var j=r(70398),N=r(81879);function L({children:e,features:t,strict:r=!1}){let[,n]=(0,h.useState)(!P(t)),i=(0,h.useRef)(void 0);if(!P(t)){let{renderer:e,...r}=t;i.current=e,(0,N.K)(r)}return(0,h.useEffect)(()=>{P(t)&&t().then(({renderer:e,...t})=>{(0,N.K)(t),i.current=e,n(!0)})},[]),h.createElement(j.u.Provider,{value:{renderer:i.current,strict:r}},e)}function P(e){return"function"==typeof e}var I=r(2445),D=r(240),F=r(48488);function $(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}let B=e=>1e3*e;var U=r(24394);let H=e=>e,z=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,V=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,W=e=>t=>1-e(1-t),q=e=>e*e,G=W(q),Z=V(q),J=e=>1-Math.sin(Math.acos(e)),X=W(J),Y=V(X),K=(e=1.525)=>t=>t*t*((e+1)*t-e),Q=K(),ee=W(Q),et=V(Q),er={linear:H,easeIn:q,easeInOut:Z,easeOut:G,circIn:J,circInOut:Y,circOut:X,backIn:Q,backInOut:et,backOut:ee,anticipate:(e=>{let t=K(e);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})()},en=e=>{if(Array.isArray(e)){(0,U.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return function(e,t,r,n){if(e===t&&r===n)return H;let i=t=>(function(e,t,r,n,i){let a,s;let o=0;do(a=z(s=t+(r-t)/2,n,i)-e)>0?r=s:t=s;while(Math.abs(a)>1e-7&&++o<12);return s})(t,0,1,e,r);return e=>0===e||1===e?e:z(i(e),t,n)}(t,r,n,i)}return"string"==typeof e?((0,U.k)(void 0!==er[e],`Invalid easing type '${e}'`),er[e]):e},ei=e=>Array.isArray(e)&&"number"!=typeof e[0];var ea=r(28407);let es=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&ea.P.test(t)&&!t.startsWith("url(")),eo=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),el=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),eu=()=>({type:"keyframes",ease:"linear",duration:.3}),ec=e=>({type:"keyframes",duration:.8,values:e}),ed={x:eo,y:eo,z:eo,rotate:eo,rotateX:eo,rotateY:eo,rotateZ:eo,scaleX:el,scaleY:el,scale:el,opacity:eu,backgroundColor:eu,color:eu,default:el},ef=(e,t)=>{let r;return r=(0,F.C)(t)?ec:ed[e]||ed.default,{to:t,...r(t)}};var ep=r(16777);let eh=new Set(["brightness","contrast","saturate","opacity"]);function em(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(ep.KP)||[];if(!n)return e;let i=r.replace(n,""),a=eh.has(t)?1:0;return n!==r&&(a*=100),t+"("+a+i+")"}let eg=/([a-z-]*)\(.*?\)/g,ey=Object.assign(Object.assign({},ea.P),{getAnimatableNone:e=>{let t=e.match(eg);return t?t.map(em).join(" "):e}});var ev=r(87405);let eb={...r(36173).j,color:ev.$,backgroundColor:ev.$,outlineColor:ev.$,fill:ev.$,stroke:ev.$,borderColor:ev.$,borderTopColor:ev.$,borderRightColor:ev.$,borderBottomColor:ev.$,borderLeftColor:ev.$,filter:ey,WebkitFilter:ey},ex=e=>eb[e];function e_(e,t){var r;let n=ex(e);return n!==ey&&(n=ea.P),null===(r=n.getAnimatableNone)||void 0===r?void 0:r.call(n,t)}var ew=r(8715),ek=r(54735),eS=r(52200),eE=r(24169);function eC(e,t){return e*Math.sqrt(1-t*t)}let eO=["duration","bounce"],eT=["stiffness","damping","mass"];function eA(e,t){return t.some(t=>void 0!==e[t])}function eR({from:e=0,to:t=1,restSpeed:r=2,restDelta:n=.01,...i}){let a={done:!1,value:e},{stiffness:s,damping:o,mass:l,velocity:u,duration:c,isResolvedFromDuration:d}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!eA(e,eT)&&eA(e,eO)){let r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,a;(0,U.K)(e<=1e4,"Spring duration must be 10 seconds or less");let s=1-t;s=(0,eE.u)(.05,1,s),e=(0,eE.u)(.01,10,e/1e3),s<1?(i=t=>{let n=t*s,i=n*e;return .001-(n-r)/eC(t,s)*Math.exp(-i)},a=t=>{let n=t*s*e,a=Math.pow(s,2)*Math.pow(t,2)*e,o=eC(Math.pow(t,2),s);return(n*r+r-a)*Math.exp(-n)*(-i(t)+.001>0?-1:1)/o}):(i=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),a=t=>e*e*(r-t)*Math.exp(-t*e));let o=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(i,a,5/e);if(e*=1e3,isNaN(o))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(o,2)*n;return{stiffness:t,damping:2*s*Math.sqrt(n*t),duration:e}}}(e);(t={...t,...r,velocity:0,mass:1}).isResolvedFromDuration=!0}return t}(i),f=eM,p=eM;function h(){let r=u?-(u/1e3):0,i=t-e,a=o/(2*Math.sqrt(s*l)),c=Math.sqrt(s/l)/1e3;if(void 0===n&&(n=Math.min(Math.abs(t-e)/100,.4)),a<1){let e=eC(c,a);f=n=>t-Math.exp(-a*c*n)*((r+a*c*i)/e*Math.sin(e*n)+i*Math.cos(e*n)),p=t=>{let n=Math.exp(-a*c*t);return a*c*n*(Math.sin(e*t)*(r+a*c*i)/e+i*Math.cos(e*t))-n*(Math.cos(e*t)*(r+a*c*i)-e*i*Math.sin(e*t))}}else if(1===a)f=e=>t-Math.exp(-c*e)*(i+(r+c*i)*e);else{let e=c*Math.sqrt(a*a-1);f=n=>{let s=Math.exp(-a*c*n),o=Math.min(e*n,300);
11return t-s*((r+a*c*i)*Math.sinh(o)+e*i*Math.cosh(o))/e}}}return h(),{next:e=>{let i=f(e);if(d)a.done=e>=c;else{let s=1e3*p(e),o=Math.abs(t-i)<=n;a.done=Math.abs(s)<=r&&o}return a.value=a.done?t:i,a},flipTarget:()=>{u=-u,[e,t]=[t,e],h()}}}eR.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let eM=e=>0,ej={decay:function({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:a}){let s={done:!1,value:t},o=r*e,l=t+o,u=void 0===a?l:a(l);return u!==l&&(o=u-t),{next:e=>{let t=-o*Math.exp(-e/n);return s.done=!(t>i||t<-i),s.value=s.done?u:u+t,s},flipTarget:()=>{}}},keyframes:function({from:e=0,to:t=1,ease:r,offset:n,duration:i=300}){let a={done:!1,value:e},s=Array.isArray(t)?t:[e,t],o=(n&&n.length===s.length?n:function(e){let t=e.length;return e.map((e,r)=>0!==r?r/(t-1):0)}(s)).map(e=>e*i);function l(){return(0,eS.s)(o,s,{ease:Array.isArray(r)?r:s.map(()=>r||Z).splice(0,s.length-1)})}let u=l();return{next:e=>(a.value=u(e),a.done=e>=i,a),flipTarget:()=>{s.reverse(),u=l()}}},spring:eR};function eN(e,t,r=0){return e-t-r}let eL=e=>{let t=({delta:t})=>e(t);return{start:()=>ek.ZP.update(t,!0),stop:()=>ek.qY.update(t)}};function eP({from:e,autoplay:t=!0,driver:r=eL,elapsed:n=0,repeat:i=0,repeatType:a="loop",repeatDelay:s=0,onPlay:o,onStop:l,onComplete:u,onRepeat:c,onUpdate:d,type:f="keyframes",...p}){var h;let m,g,y;let{to:v}=p,b=0,x=p.duration,_=!1,w=!0,k=ej[Array.isArray(v)?"keyframes":f];(null===(h=k.needsInterpolation)||void 0===h?void 0:h.call(k,e,v))&&(y=(0,eS.s)([0,100],[e,v],{clamp:!1}),e=0,v=100);let S=k({...p,from:e,to:v});return t&&(null==o||o(),(m=r(function(e){if(w||(e=-e),n+=e,!_){let e=S.next(Math.max(0,n));g=e.value,y&&(g=y(g)),_=w?e.done:n<=0}if(null==d||d(g),_){if(0===b&&(null!=x||(x=n)),b<i){var t,r;t=n,r=x,(w?t>=r+s:t<=-s)&&(b++,"reverse"===a?n=function(e,t=0,r=0,n=!0){return n?eN(t+-e,t,r):t-(e-t)+r}(n,x,s,w=b%2==0):(n=eN(n,x,s),"mirror"===a&&S.flipTarget()),_=!1,c&&c())}else m.stop(),u&&u()}})).start()),{stop:()=>{null==l||l(),m.stop()}}}var eI=r(3038);function eD(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function eF(e){return"number"==typeof e?0:e_("",e)}function e$(e,t){return e[t]||e.default||e}let eB=e=>/^\-?\d*\.?\d+$/.test(e),eU=e=>/^0[^.\s]+$/.test(e);var eH=r(33234),ez=r(11248),eV=r(2969);let eW=e=>t=>t.test(e),eq=[ez.Rx,eV.px,eV.aQ,eV.RW,eV.vw,eV.vh,{test:e=>"auto"===e,parse:e=>e}],eG=e=>eq.find(eW(e)),eZ=[...eq,ev.$,ea.P],eJ=e=>eZ.find(eW(e));var eX=r(79432);function eY(e,t,r){let n=e.getProps();return(0,eX.o)(n,t,void 0!==r?r:n.custom,function(e){let t={};return e.values.forEach((e,r)=>t[r]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,r)=>t[r]=e.getVelocity()),t}(e))}var eK=r(94714),eQ=r(40406);function e0(e){return!!((0,eQ.i)(e)&&e.add)}function e1(e,t,r={}){var n;let i=eY(e,t,r.custom),{transition:a=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(a=r.transitionOverride);let s=i?()=>e2(e,i,r):()=>Promise.resolve(),o=(null===(n=e.variantChildren)||void 0===n?void 0:n.size)?(n=0)=>{let{delayChildren:i=0,staggerChildren:s,staggerDirection:o}=a;return function(e,t,r=0,n=0,i=1,a){let s=[],o=(e.variantChildren.size-1)*n,l=1===i?(e=0)=>e*n:(e=0)=>o-e*n;return Array.from(e.variantChildren).sort(e3).forEach((e,n)=>{s.push(e1(e,t,{...a,delay:r+l(n)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,i+n,s,o,r)}:()=>Promise.resolve(),{when:l}=a;if(!l)return Promise.all([s(),o(r.delay)]);{let[e,t]="beforeChildren"===l?[s,o]:[o,s];return e().then(t)}}function e2(e,t,{delay:r=0,transitionOverride:n,type:i}={}){var a;let{transition:s=e.getDefaultTransition(),transitionEnd:o,...l}=e.makeTargetAnimatable(t),u=e.getValue("willChange");n&&(s=n);let c=[],d=i&&(null===(a=e.animationState)||void 0===a?void 0:a.getState()[i]);for(let t in l){let n=e.getValue(t),i=l[t];if(!n||void 0===i||d&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(d,t))continue;let a={delay:r,...s};e.shouldReduceMotion&&eK.G.has(t)&&(a={...a,type:!1,delay:0});let o=function(e,t,r,n={}){return t.start(i=>{var a,s;let o,l;let u=function(e,t,r,n,i){let a=e$(n,e)||{},s=void 0!==a.from?a.from:t.get(),o=es(e,r);"none"===s&&o&&"string"==typeof r?s=e_(e,r):eD(s)&&"string"==typeof r?s=eF(r):!Array.isArray(r)&&eD(r)&&"string"==typeof s&&(r=eF(s));let l=es(e,s);return(0,U.K)(l===o,`You are trying to animate ${e} from "${s}" to "${r}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${r} via the \`style\` property.`),l&&o&&!1!==a.type?function(){var n;let o={from:s,to:r,velocity:t.getVelocity(),onComplete:i,onUpdate:e=>t.set(e)};return"inertia"===a.type||"decay"===a.type?function({from:e=0,velocity:t=0,min:r,max:n,power:i=.8,timeConstant:a=750,bounceStiffness:s=500,bounceDamping:o=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:p}){let h;function m(e){return void 0!==r&&e<r||void 0!==n&&e>n}function g(e){return void 0===r?n:void 0===n?r:Math.abs(r-e)<Math.abs(n-e)?r:n}function y(e){null==h||h.stop(),h=eP({...e,driver:c,onUpdate:t=>{var r;null==d||d(t),null===(r=e.onUpdate)||void 0===r||r.call(e,t)},onComplete:f,onStop:p})}function v(e){y({type:"spring",stiffness:s,damping:o,restDelta:l,...e})}if(m(e))v({from:e,velocity:t,to:g(e)});else{let n,s,o=i*t+e;void 0!==u&&(o=u(o));let c=g(o),d=c===r?-1:1;y({type:"decay",from:e,velocity:t,timeConstant:a,power:i,restDelta:l,modifyTarget:u,onUpdate:m(o)?e=>{n=s,s=e,t=(0,eI.R)(e-n,(0,ek.$B)().delta),(1===d&&e>c||-1===d&&e<c)&&v({from:e,to:c,velocity:t})}:void 0})}return{stop:()=>null==h?void 0:h.stop()}}({...o,...a}):eP({...(n=a,Array.isArray(o.to)&&void 0===n.duration&&(n.duration=.8),Array.isArray(o.to)&&null===o.to[0]&&(o.to=[...o.to],o.to[0]=o.from),!function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:l,...u}){return!!Object.keys(u).length}(n)&&(n={...n,...ef(e,o.to)}),{...o,...function({ease:e,times:t,...r}){let n={...r};return t&&(n.offset=t),r.duration&&(n.duration=B(r.duration)),r.repeatDelay&&(n.repeatDelay=B(r.repeatDelay)),e&&(n.ease=ei(e)?e.map(en):en(e)),"tween"===r.type&&(n.type="keyframes"),"spring"!==r.type&&(n.type="keyframes"),n}(n)}
11),onUpdate:e=>{o.onUpdate(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{o.onComplete(),a.onComplete&&a.onComplete()}})}:function(){let e=(0,ew.Y)(r);return t.set(e),i(),a.onUpdate&&a.onUpdate(e),a.onComplete&&a.onComplete(),{stop:()=>{}}}}(e,t,r,n,i),c=null!==(s=null!==(a=(e$(n,e)||{}).delay)&&void 0!==a?a:n.delay)&&void 0!==s?s:0,d=()=>o=u();return c?l=function(e,t){let r=performance.now(),n=({timestamp:i})=>{let a=i-r;a>=t&&(ek.qY.read(n),e(a-t))};return ek.ZP.read(n,!0),()=>ek.qY.read(n)}(d,B(c)):d(),()=>{l&&l(),o&&o.stop()}})}(t,n,i,a);e0(u)&&(u.add(t),o=o.then(()=>u.remove(t))),c.push(o)}return Promise.all(c).then(()=>{o&&function(e,t){let r=eY(e,t),{transitionEnd:n={},transition:i={},...a}=r?e.makeTargetAnimatable(r,!1):{};for(let t in a={...a,...n}){let r=(0,ew.Y)(a[t]);e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,(0,eH.B)(r))}}(e,o)})}function e3(e,t){return e.sortNodePosition(t)}var e4=r(97732);(n=a||(a={})).Animate="animate",n.Hover="whileHover",n.Tap="whileTap",n.Drag="whileDrag",n.Focus="whileFocus",n.InView="whileInView",n.Exit="exit";let e5=[a.Animate,a.InView,a.Focus,a.Hover,a.Tap,a.Drag,a.Exit],e6=[...e5].reverse(),e7=e5.length;function e8(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let e9=e=>t=>(e(t),null),te={animation:e9(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>e1(e,t,r)));else if("string"==typeof t)n=e1(e,t,r);else{let i="function"==typeof t?eY(e,t,r.custom):t;n=e2(e,i,r)}return n.then(()=>e.notify("AnimationComplete",t))})(e,t,r))),r={[a.Animate]:e8(!0),[a.InView]:e8(),[a.Hover]:e8(),[a.Tap]:e8(),[a.Drag]:e8(),[a.Focus]:e8(),[a.Exit]:e8()},n=!0,i=(t,r)=>{let n=eY(e,r);if(n){let{transition:e,transitionEnd:r,...i}=n;t={...t,...i,...r}}return t};function s(a,s){var o,l;let u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,p={},h=1/0;for(let t=0;t<e7;t++){let m=e6[t],g=r[m],y=null!==(o=u[m])&&void 0!==o?o:c[m],v=(0,e4.$)(y),b=m===s?g.isActive:null;!1===b&&(h=t);let x=y===c[m]&&y!==u[m]&&v;if(x&&n&&e.manuallyAnimateOnMount&&(x=!1),g.protectedKeys={...p},!g.isActive&&null===b||!y&&!g.prevProp||(0,I.H)(y)||"boolean"==typeof y)continue;let _=(l=g.prevProp,"string"==typeof y?y!==l:!!Array.isArray(y)&&!$(y,l)),w=_||m===s&&g.isActive&&!x&&v||t>h&&v,k=Array.isArray(y)?y:[y],S=k.reduce(i,{});!1===b&&(S={});let{prevResolvedValues:E={}}=g,C={...E,...S},O=e=>{w=!0,f.delete(e),g.needsAnimating[e]=!0};for(let e in C){let t=S[e],r=E[e];p.hasOwnProperty(e)||(t!==r?(0,F.C)(t)&&(0,F.C)(r)?!$(t,r)||_?O(e):g.protectedKeys[e]=!0:void 0!==t?O(e):f.add(e):void 0!==t&&f.has(e)?O(e):g.protectedKeys[e]=!0)}g.prevProp=y,g.prevResolvedValues=S,g.isActive&&(p={...p,...S}),n&&e.blockInitialAnimation&&(w=!1),w&&!x&&d.push(...k.map(e=>({animation:e,options:{type:m,...a}})))}
11if(f.size){let t={};f.forEach(r=>{let n=e.getBaseTarget(r);void 0!==n&&(t[r]=n)}),d.push({animation:t})}let m=!!d.length;return n&&!1===u.initial&&!e.manuallyAnimateOnMount&&(m=!1),n=!1,m?t(d):Promise.resolve()}return{animateChanges:s,setActive:function(t,n,i){var a;if(r[t].isActive===n)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;let o=s(i,t);for(let e in r)r[e].protectedKeys={};return o},setAnimateFunction:function(r){t=r(e)},getState:()=>r}}(e)),(0,I.H)(t)&&(0,h.useEffect)(()=>t.subscribe(e),[t])}),exit:e9(e=>{let{custom:t,visualElement:r}=e,[n,i]=function(){let e=(0,h.useContext)(D.O);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,i=(0,h.useId)();return(0,h.useEffect)(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}(),s=(0,h.useContext)(D.O);(0,h.useEffect)(()=>{r.isPresent=n;let e=r.animationState&&r.animationState.setActive(a.Exit,!n,{custom:s&&s.custom||t});e&&!n&&e.then(i)},[n])})};function tt(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function tr(e,t,r,n){(0,h.useEffect)(()=>{let i=e.current;if(r&&i)return tt(i,t,r,n)},[e,t,r,n])}let tn={pageX:0,pageY:0},ti=(e,t=!1)=>{let r=t=>e(t,function(e,t="page"){return{point:e.touches?function(e,t="page"){let r=e.touches[0]||e.changedTouches[0]||tn;return{x:r[t+"X"],y:r[t+"Y"]}}(e,t):function(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}(e,t)}}(t));return t?e=>{let t=e instanceof MouseEvent;(!t||t&&0===e.button)&&r(e)}:r};var ta=r(11741);let ts=()=>ta.j&&null===window.onpointerdown,to=()=>ta.j&&null===window.ontouchstart,tl=()=>ta.j&&null===window.onmousedown,tu={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},tc={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function td(e){if(ts());else if(to())return tc[e];else if(tl())return tu[e];return e}function tf(e,t,r,n){return tt(e,td(t),ti(r,"pointerdown"===t),n)}function tp(e,t,r,n){return tr(e,td(t),r&&ti(r,"pointerdown"===t),n)}function th(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let tm=th("dragHorizontal"),tg=th("dragVertical");function ty(){let e=function(e){let t=!1;if("y"===e)t=tg();else if("x"===e)t=tm();else{let e=tm(),r=tg();e&&r?t=()=>{e(),r()}
11:(e&&e(),r&&r())}return t}(!0);return!e||(e(),!1)}function tv(e,t,r){return(n,i)=>{!(("undefined"!=typeof PointerEvent&&n instanceof PointerEvent?"mouse"!==n.pointerType:!(n instanceof MouseEvent))||ty())&&(e.animationState&&e.animationState.setActive(a.Hover,t),r&&r(n,i))}}let tb=(e,t)=>!!t&&(e===t||tb(e,t.parentElement));var tx=r(65411),t_=r(83624),tw=r(49304),tk=r(16034);let tS=new WeakMap,tE=new WeakMap,tC=e=>{let t=tS.get(e.target);t&&t(e)},tO=e=>{e.forEach(tC)},tT={some:0,all:1},tA={inView:e9(function({visualElement:e,whileInView:t,onViewportEnter:r,onViewportLeave:n,viewport:i={}}){let s=(0,h.useRef)({hasEnteredView:!1,isInView:!1}),o=!!(t||r||n);i.once&&s.current.hasEnteredView&&(o=!1),("undefined"==typeof IntersectionObserver?function(e,t,r,{fallback:n=!0}){(0,h.useEffect)(()=>{e&&n&&("production"!==tw.O&&(0,tk.O)(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:e}=r.getProps();e&&e(null),r.animationState&&r.animationState.setActive(a.InView,!0)}))},[e])}:function(e,t,r,{root:n,margin:i,amount:s="some",once:o}){(0,h.useEffect)(()=>{if(!e||!r.current)return;let l={root:null==n?void 0:n.current,rootMargin:i,threshold:"number"==typeof s?s:tT[s]};return function(e,t,r){let n=function({root:e,...t}){let r=e||document;tE.has(r)||tE.set(r,{});let n=tE.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(tO,{root:e,...t})),n[i]}(t);return tS.set(e,r),n.observe(e),()=>{tS.delete(e),n.unobserve(e)}}(r.current,l,e=>{let{isIntersecting:n}=e;if(t.isInView===n||(t.isInView=n,o&&!n&&t.hasEnteredView))return;n&&(t.hasEnteredView=!0),r.animationState&&r.animationState.setActive(a.InView,n);let i=r.getProps(),s=n?i.onViewportEnter:i.onViewportLeave;s&&s(e)})},[e,n,i,s])})(o,s.current,e,i)}),tap:e9(function({onTap:e,onTapStart:t,onTapCancel:r,whileTap:n,visualElement:i}){let s=e||t||r||n,o=(0,h.useRef)(!1),l=(0,h.useRef)(null),u={passive:!(t||e||r||m)};function c(){l.current&&l.current(),l.current=null}function d(){return c(),o.current=!1,i.animationState&&i.animationState.setActive(a.Tap,!1),!ty()}function f(t,n){d()&&(tb(i.current,t.target)?e&&e(t,n):r&&r(t,n))}function p(e,t){d()&&r&&r(e,t)}function m(e,r){c(),!o.current&&(o.current=!0,l.current=(0,t_.z)(tf(window,"pointerup",f,u),tf(window,"pointercancel",p,u)),i.animationState&&i.animationState.setActive(a.Tap,!0),t&&t(e,r))}tp(i,"pointerdown",s?m:void 0,u),(0,tx.z)(c)}),focus:e9(function({whileFocus:e,visualElement:t}){let{animationState:r}=t;tr(t,"focus",e?()=>{r&&r.setActive(a.Focus,!0)}:void 0),tr(t,"blur",e?()=>{r&&r.setActive(a.Focus,!1)}:void 0)}),hover:e9(function({onHoverStart:e,onHoverEnd:t,whileHover:r,visualElement:n}){tp(n,"pointerenter",e||r?tv(n,!0,e):void 0,{passive:!e}),tp(n,"pointerleave",t||r?tv(n,!1,t):void 0,{passive:!t})})};var tR=r(38057),tM=r(57630),tj=r(50189),tN=r(34242);function tL(e){return"string"==typeof e&&e.startsWith("var(--")}let tP=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function tI(e,t,r=1){(0,U.k)(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,i]=function(e){let t=tP.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]}(e);if(!n)return;let a=window.getComputedStyle(t).getPropertyValue(n);return a?a.trim():tL(i)?tI(i,t,r+1):i}let tD=new Set(["width","height","top","left","right","bottom","x","y"]),tF=e=>tD.has(e),t$=e=>Object.keys(e).some(tF),tB=(e,t)=>{e.set(t,!1),e.set(t)},tU=e=>e===ez.Rx||e===eV.px;(i=s||(s={})).width="width",i.height="height",i.left="left",i.right="right",i.top="top",i.bottom="bottom";let tH=(e,t)=>parseFloat(e.split(", ")[t]),tz=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;let i=n.match(/^matrix3d\((.+)\)$/);if(i)return tH(i[1],t);{let t=n.match(/^matrix\((.+)\)$/);return t?tH(t[1],e):0}},tV=new Set(["x","y","z"]),tW=eK._.filter(e=>!tV.has(e)),tq={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:tz(4,13),y:tz(5,14)},tG=(e,t,r)=>{let n=t.measureViewportBox(),i=getComputedStyle(t.current),{display:a}=i,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),r.forEach(e
11=>{s[e]=tq[e](n,i)}),t.render();let o=t.measureViewportBox();return r.forEach(r=>{tB(t.getValue(r),s[r]),e[r]=tq[r](o,i)}),e},tZ=(e,t,r={},n={})=>{t={...t},n={...n};let i=Object.keys(t).filter(tF),a=[],s=!1,o=[];if(i.forEach(i=>{let l;let u=e.getValue(i);if(!e.hasValue(i))return;let c=r[i],d=eG(c),f=t[i];if((0,F.C)(f)){let e=f.length,t=null===f[0]?1:0;d=eG(c=f[t]);for(let r=t;r<e;r++)l?(0,U.k)(eG(f[r])===l,"All keyframes must be of the same type"):(l=eG(f[r]),(0,U.k)(l===d||tU(d)&&tU(l),"Keyframes must be of the same dimension as the current value"))}else l=eG(f);if(d!==l){if(tU(d)&&tU(l)){let e=u.get();"string"==typeof e&&u.set(parseFloat(e)),"string"==typeof f?t[i]=parseFloat(f):Array.isArray(f)&&l===eV.px&&(t[i]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==l?void 0:l.transform)&&(0===c||0===f)?0===c?u.set(l.transform(c)):t[i]=d.transform(f):(s||(a=function(e){let t=[];return tW.forEach(r=>{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),s=!0),o.push(i),n[i]=void 0!==n[i]?n[i]:t[i],tB(u,f))}}),!o.length)return{target:t,transitionEnd:n};{let r=o.indexOf("height")>=0?window.pageYOffset:null,i=tG(t,e,o);return a.length&&a.forEach(([t,r])=>{e.getValue(t).set(r)}),e.render(),ta.j&&null!==r&&window.scrollTo({top:r}),{target:i,transitionEnd:n}}},tJ=(e,t,r,n)=>{var i,a;let s=function(e,{...t},r){let n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};for(let i in r&&(r={...r}),e.values.forEach(e=>{let t=e.get();if(!tL(t))return;let r=tI(t,n);r&&e.set(r)}),t){let e=t[i];if(!tL(e))continue;let a=tI(e,n);a&&(t[i]=a,r&&void 0===r[i]&&(r[i]=e))}return{target:t,transitionEnd:r}}(e,t,n);return t=s.target,n=s.transitionEnd,i=t,a=n,t$(i)?tZ(e,i,r,a):{target:i,transitionEnd:a}};var tX=r(9442);let tY=()=>({min:0,max:0}),tK=()=>({x:tY(),y:tY()});var tQ=r(51804);let t0={current:null},t1={current:!1};var t2=r(65985),t3=r(7504);let t4=Object.keys(tX.A),t5=t4.length,t6=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class t7{constructor({parent:e,props:t,reducedMotionConfig:r,visualState:n},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>ek.ZP.render(this.render,!1,!0);let{latestValues:a,renderState:s}=n;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=(0,t3.G)(t),this.isVariantNode=(0,t3.M)(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:o,...l}=this.scrapeMotionValuesFromProps(t);for(let e in l){let t=l[e];void 0!==a[e]&&(0,eQ.i)(t)&&(t.set(a[e],!1),e0(o)&&o.add(e))}}scrapeMotionValuesFromProps(e){return{}}mount(e){var t;this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(t=this.parent)||void 0===t?void 0:t.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),t1.current||function(){if(t1.current=!0,ta.j){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>t0.current=e.matches;e.addListener(t),t()}else t0.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||t0.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var e,t,r;for(let n in null===(e=this.projection)||void 0===e||e.unmount(),ek.qY.update(this.notifyUpdate),ek.qY.render(this.render),this.valueSubscriptions.forEach(e
11=>e()),null===(t=this.removeFromVariantTree)||void 0===t||t.call(this),null===(r=this.parent)||void 0===r||r.children.delete(this),this.events)this.events[n].clear();this.current=null}bindToMotionValue(e,t){let r=eK.G.has(e),n=t.onChange(t=>{this.latestValues[e]=t,this.props.onUpdate&&ek.ZP.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),i()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures(e,t,r,n,i,a){let s=[];"production"!==tw.O&&r&&t&&(0,U.k)(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let t=0;t<t5;t++){let r=t4[t],{isEnabled:n,Component:i}=tX.A[r];n(e)&&i&&s.push((0,h.createElement)(i,{key:r,...e,visualElement:this}))}if(!this.projection&&i){this.projection=new i(n,this.latestValues,this.parent&&this.parent.projection);let{layoutId:t,layout:r,drag:s,dragConstraints:o,layoutScroll:l}=e;this.projection.setOptions({layoutId:t,layout:r,alwaysMeasureLayout:!!s||o&&(0,tQ.I)(o),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof r?r:"both",initialPromotionConfig:a,layoutScroll:l})}return s}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):tK()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}setProps(e){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=e;for(let t=0;t<t6.length;t++){let r=t6[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n=e["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){let{willChange:n}=t;for(let i in t){let a=t[i],s=r[i];if((0,eQ.i)(a))e.addValue(i,a),e0(n)&&n.add(i);else if((0,eQ.i)(s))e.addValue(i,(0,eH.B)(a)),e0(n)&&n.remove(i);else if(s!==a){if(e.hasValue(i)){let t=e.getValue(i);t.hasAnimated||t.set(a)}else{let t=e.getStaticValue(i);e.addValue(i,(0,eH.B)(void 0!==t?t:a))}}}for(let n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e),this.prevMotionValues)}getProps(){return this.props}getVariant(e){var t;return null===(t=this.props.variants)||void 0===t?void 0:t[e]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var e;return this.isVariantNode?this:null===(e=this.parent)||void 0===e?void 0:e.getClosestVariantNode()}getVariantContext(e=!1){var t,r;if(e)return null===(t=this.parent)||void 0===t?void 0:t.getVariantContext();if(!this.isControllingVariants){let e=(null===(r=this.parent)||void 0===r?void 0:r.getVariantContext())||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let n={};for(let e=0;e<t9;e++){let t=t8[e],r=this.props[t];((0,e4.$)(r)||!1===r)&&(n[t]=r)}return n}addVariantChild(e){var t;let r=this.getClosestVariantNode();if(r)return null===(t=r.variantChildren)||void 0===t||t.add(e),()=>r.variantChildren.delete(e)}addValue(e,t){this.hasValue(e)&&this.removeValue(e),this.values.set(e,t),this.latestValues[e]=t.get(),this.bindToMotionValue(e,t)}removeValue(e){var t;this.values.delete(e),null===(t=this.valueSubscriptions.get(e))||void 0===t||t(),this.valueSubscriptions.delete(e),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=(0,eH.B)(t),this.addValue(e,r)),r}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:r}=this.props,n="string"==typeof r||"object"==typeof r?null===(t=(0,eX.o)(this.props,r))||void 0===t?void 0:t[e]:void 0;if(r&&void 0!==n)return n;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||(0,eQ.i)(i)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new t2.L),this.events[e].add(t)}notify(e,...t){var r;null===(r=this.events[e])||void 0===r||r.notify(...t)}}let t8=["initial",...e5],t9=t8.length;class re extends t7{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){var r;return null===(r=e.style)||void 0===r?void 0:r[t]}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...r},{transformValues:n},i){let a=function(e,t,r){var n;let i={};for(let a in e){let e=function(e,t){if(t)return(t[e]||t.default||t).from}(a,t);i[a]=void 0!==e?e:null===(n=r.getValue(a))||void 0===n?void 0:n.get()}return i}(r,e||{},this);if(n&&(t&&(t=n(t)),r&&(r=n(r)),a&&(a=n(a))),i){!function(e,t,r){var n,i;let a=Object.keys(t).filter(t=>!e.hasValue(t)),s=a.length;if(s)for(let o=0;o<s;o++){let s=a[o],l=t[s],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(i=null!==(n=r[s])&&void 0!==n?n:e.readValue(s))&&void 0!==i?i:t[s]),null!=u&&("string"==typeof u&&(eB(u)||eU(u))?u=parseFloat(u):!eJ(u)&&ea.P.test(l)&&(u=e_(s,l)),e.addValue(s,(0,eH.B)(u)),void 0===r[s]&&(r[s]=u),null!==u&&e.setBaseTarget(s,u))}}(this,r,a);let e=tJ(this,r,a,t);t=e.transitionEnd,r=e.target}return{transition:e,transitionEnd:t,...r}}}class rt extends re{readValueFromInstance(e,t){if(eK.G.has(t)){let e=ex(t);return e&&e.default||0}{let r=window.getComputedStyle(e),n=((0,tM.o)(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return function({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}build(e,t,r,n){(0,tR.r)(e,t,r,n.transformTemplate)}scrapeMotionValuesFromProps(e){return(0,tj.U)(e)}renderInstance(e,t,r,n){(0,tN.N)(e,t,r,n)}}var rr=r(16832),rn=r(85415),ri=r(93193),ra=r(77302),rs=r(68504),ro=r(79854);class rl extends re{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){var r;return eK.G.has(t)?(null===(r=ex(t))||void 0===r?void 0:r.default)||0:(t=ra.s.has(t)?t:(0,ri.D)(t),e.getAttribute(t))}measureInstanceViewportBox(){return tK()}scrapeMotionValuesFromProps(e){return(0,rr.U)(e)}
11build(e,t,r,n){(0,rn.i)(e,t,r,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,r,n){(0,rs.K)(e,t,r,n)}mount(e){this.isSVGTag=(0,ro.a)(e.tagName),super.mount(e)}}var ru=r(62627);let rc={renderer:(e,t)=>(0,ru.q)(e)?new rl(t,{enableHardwareAcceleration:!1}):new rt(t,{enableHardwareAcceleration:!0}),...te,...tA};var rd=function(e){let{children:t}=e;return(0,o.jsx)(M,{reducedMotion:"user","data-sentry-element":"MotionProvider","data-sentry-component":"FramerMotionProvider","data-sentry-source-file":"FramerMotionProvider.tsx",children:(0,o.jsx)(L,{strict:!0,features:rc,"data-sentry-element":"LazyMotion","data-sentry-source-file":"FramerMotionProvider.tsx",children:t})})};let rf={isQuickAccessOpen:!1,setQuickAccessOpen:()=>{}},rp=(0,h.createContext)(rf);var rh=function(e){let{children:t}=e,[r,n]=(0,h.useState)(rf.isQuickAccessOpen),i=(0,h.useMemo)(()=>({isQuickAccessOpen:r,setQuickAccessOpen:n}),[r]);return(0,o.jsx)(rp.Provider,{value:i,"data-sentry-element":"GlobalStateContext.Provider","data-sentry-component":"GlobalStateProvider","data-sentry-source-file":"GlobalStateProvider.tsx",children:t})},rm=r(95361),rg=r(4723),ry=r(18346),rv=r(11381),rb=r(84037),rx=r(98256),r_=function(e){let{children:t=null}=e;return(0,o.jsx)(rd,{"data-sentry-element":"FramerMotionProvider","data-sentry-component":"Provider","data-sentry-source-file":"index.tsx",children:(0,o.jsx)(v.f,{attribute:"class","data-sentry-element":"ThemeProvider","data-sentry-source-file":"index.tsx",children:(0,o.jsx)(rx.R6,{"data-sentry-element":"CSRFProvider","data-sentry-source-file":"index.tsx",children:(0,o.jsx)(rm.Ho,{"data-sentry-element":"AuthProvider","data-sentry-source-file":"index.tsx",children:(0,o.jsx)(ry.w,{"data-sentry-element":"SavedArticlesProvider","data-sentry-source-file":"index.tsx",children:(0,o.jsx)(rv.iK,{"data-sentry-element":"VotesProvider","data-sentry-source-file":"index.tsx",children:(0,o.jsx)(rb.hO,{"data-sentry-element":"VouchesProvider","data-sentry-source-file":"index.tsx",children:(0,o.jsx)(rg.q,{"data-sentry-element":"AuthModalProvider","data-sentry-source-file":"index.tsx",children:(0,o.jsx)(O,{"data-sentry-element":"FocusModeProvider","data-sentry-source-file":"index.tsx",children:(0,o.jsx)(x,{defaultScheme:"violet","data-sentry-element":"ColorAccentProvider","data-sentry-source-file":"index.tsx",children:(0,o.jsx)(rh,{"data-sentry-element":"GlobalStateProvider","data-sentry-source-file":"index.tsx",children:t})})})})})})})})})})})};let rw=null,rk=!1;async function rS(){if(rk)return;let e="phc_wqDHKWSGLrNjkDMfuedy1wgfUvzVRKw5SDqM2ofgHg2";if(!e)return;rk=!0;let t=await r.e(5270).then(r.bind(r,55258)).then(e=>e.default);return t.init(e,{api_host:"https://us.i.posthog.com",person_profiles:"identified_only",capture_pageview:!1,capture_pageleave:!0,loaded:e=>{}}),rw=t,t.capture("$pageview"),t}function rE(e){let{children:t}=e,r=(0,b.useRouter)(),[,n]=(0,h.useState)(!1);return(0,h.useEffect)(()=>{let e=!0,t=()=>{rS().then(()=>{e&&n(!0)})};if("requestIdleCallback"in window){let r=window.requestIdleCallback(t,{timeout:3e3});return()=>{e=!1,window.cancelIdleCallback(r)}}{let r=setTimeout(t,2500);return()=>{e=!1,clearTimeout(r)}}},[]),(0,h.useEffect)(()=>{let e=()=>{rw&&rw.capture("$pageview")};return r.events.on("routeChangeComplete",e),()=>{r.events.off("routeChangeComplete",e)}},[r.events]),(0,o.jsx)(o.Fragment,{children:t})}function rC(){let[e,t]=(0,h.useState)(!1),[r,n]=(0,h.useState)(null),i=(0,h.useCallback)(()=>{(null==r?void 0:r.waiting)&&r.waiting.postMessage({type:"SKIP_WAITING"}),window.location.reload()},[r]),a=(0,h.useCallback)(()=>{t(!1)},[]);return((0,h.useEffect)(()=>{if(!("serviceWorker"in navigator))return;let e=null,r=!0,i=async()=>{try{let i=await navigator.serviceWorker.ready;if(!r)return;if(n(i),i.waiting){t(!0);return}i.addEventListener("updatefound",()=>{let e=i.installing;e&&e.addEventListener("statechange",()=>{"installed"===e.state&&navigator.serviceWorker.controller&&r&&t(!0)})}),e=setInterval(()=>{i.update().catch(()=>{})},6e4)}catch(e){console.error("Service worker registration failed:",e)}},a=!1,s=()=>{a||(a=!0,window.location.reload())};return navigator.serviceWorker.addEventListener("controllerchange",s),i(),()=>{r=!1,e&&clearInterval(e),navigator.serviceWorker.removeEventListener("controllerchange",s)}},[]),e)?(0,o.jsx)("div",{className:"fixed bottom-4 left-4 right-4 md:left-auto md:right-4 md:w-96 z-50 animate-in slide-in-from-bottom-4 duration-300",role:"alert","aria-live":"polite","data-sentry-component":"PWAUpdateNotification","data-sentry-source-file":"PWAUpdateNotification.tsx",children:(0,o.jsxs)("div",{className:"bg-surface dark:bg-surface-dark border border-accent/30 dark:border-accent-dark/30 rounded-lg shadow-lg overflow-hidden",children:[(0,o.jsx)("div",{className:"h-1 bg-gradient-to-r from-accent to-accent-dark"}),(0,o.jsx)("div",{className:"p-4",children:(0,o.jsxs)("div",{className:"flex items-start gap-3",children:[(0,o.jsx)("div",{className:"flex-shrink-0 w-10 h-10 rounded-full bg-accent/10 dark:bg-accent-dark/10 flex items-center justify-center",children:(0,o.jsx)("svg",{className:"w-5 h-5 text-accent dark:text-accent-dark",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","data-sentry-element":"svg","data-sentry-source-file":"PWAUpdateNotification.tsx",children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15","data-sentry-element":"path","data-sentry-source-file":"PWAUpdateNotification.tsx"})})}),(0,o.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,o.jsx)("h3",{className:"text-sm font-semibold text-primary dark:text-primary-dark",children:"New Version Available"}),(0,o.jsx)("p",{className:"mt-1 text-xs text-secondary dark:text-secondary-dark",children:"A new version of SOC Defenders is ready. Refresh to get the latest features and fixes."}),(0,o.jsxs)("div",{className:"mt-3 flex gap-2",children:[(0,o.jsx)("button",{onClick:i,className:"px-3 py-1.5 text-xs font-medium rounded-md bg-accent dark:bg-accent-dark text-white hover:bg-accent/90 dark:hover:bg-accent-dark/90 transition-colors min-h-[32px]",children:"Refresh Now"}),(0,o.jsx)("button",{onClick:a,className:"px-3 py-1.5 text-xs font-medium rounded-md border border-subtle dark:border-subtle-dark text-secondary dark:text-secondary-dark hover:bg-surface-muted dark:hover:bg-surface-muted-dark transition-colors min-h-[32px]",children:"Later"})]})]}),(0,o.jsx)("button",{onClick:a,className:"flex-shrink-0 p-1 rounded-md text-secondary dark:text-secondary-dark hover:bg-surface-muted dark:hover:bg-surface-muted-dark transition-colors","aria-label":"Dismiss",children:(0,o.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","data-sentry-element":"svg","data-sentry-source-file":"PWAUpdateNotification.tsx",children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12","data-sentry-element":"path","data-sentry-source-file":"PWAUpdateNotification.tsx"})})})]})})]})}):null}class rO extends h.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error("Error Boundary caught an error:",e,t),this.setState({error:e,errorInfo:t}),this.props.onError&&this.props.onError(e,t)}render(){return this.state.hasError?this.props.fallback?this.props.fallback:(0,o.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 dark:bg-gray-900 px-4","data-sentry-component":"ErrorBoundary","data-sentry-source-file":"ErrorBoundary.tsx",children:(0,o.jsx)("div",{className:"max-w-md w-full",children:(0,o.jsxs)("div",{className:"text-center",children:[(0,o.jsx)("div",{className:"mb-6",children:(0,o.jsx)("svg",{className:"mx-auto h-16 w-16 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","data-sentry-element":"svg","data-sentry-source-file":"ErrorBoundary.tsx",children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z","data-sentry-element":"path","data-sentry-source-file":"ErrorBoundary.tsx"})})}),(0,o.jsx)("h1",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100 mb-4",children:"Oops! Something went wrong"}),(0,o.jsx)("p",{className:"text-secondary mb-6",children:"We're sorry for the inconvenience. An unexpected error occurred while rendering this page."}),!1,(0,o.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[(0,o.jsx)("button",{onClick:this.handleRefresh,className:"px-6 py-3 bg-blue-600 hover:bg-blue-700 text-white font-medium rounded-lg transition-colors",children:"Refresh Page"}),(0,o.jsx)("button",{onClick:this.handleGoHome,className:"px-6 py-3 bg-gray-200 hover:bg-gray-300 dark:bg-gray-700 dark:hover:bg-gray-600 text-gray-900 dark:text-gray-100 font-medium rounded-lg transition-colors",children:"Go to Homepage"})]}),(0,o.jsx)("p",{className:"mt-6 text-sm text-tertiary",children:"If this problem persists, please contact support or try again later."})]})})}):this.props.children}constructor(e){super(e),this.handleReset=()=>{this.setState({hasError:!1,error:void 0,errorInfo:void 0})},this.handleRefresh=()=>{window.location.reload()},this.handleGoHome=()=>{window.location.href="/"},this.state={hasError:!1}}}r(33215),r(48451);var rT=r(83454);function rA(e){return(0,o.jsx)(y.Z,{"data-sentry-element":"WithNavigationFooter","data-sentry-component":"getDefaultLayout","data-sentry-source-file":"_app.tsx",children:e})}var rR=function(e){let t,{Component:r,pageProps:n,router:i}=e;(0,h.useEffect)(()=>{},[]),(0,h.useEffect)(()=>{let e=e=>{var t;if(null==e||null===(t=e.message)||void 0===t||!t.includes("attempted to hard navigate to the same URL"))throw e};return i.events.on("routeChangeError",e),()=>i.events.off("routeChangeError",e)},[i.events]),t=i.query.simpleLayout?e=>(0,o.jsx)("main",{children:e}):r.getLayout?r.getLayout:rA;let a=rT.env.NEXT_PUBLIC_GTM_ID,s=rT.env.NEXT_PUBLIC_GA_MEASUREMENT_ID;return(0,o.jsx)("div",{className:"".concat(d().variable," ").concat(p().variable," font-sans"),"data-sentry-component":"App","data-sentry-source-file":"_app.tsx",children:(0,o.jsx)(rO,{onError:(e,t)=>
11{console.error("[App Error Boundary]",e,t),l.Tb(e,{extra:{componentStack:null==t?void 0:t.componentStack}})},"data-sentry-element":"ErrorBoundary","data-sentry-source-file":"_app.tsx",children:(0,o.jsx)(rE,{"data-sentry-element":"PostHogProvider","data-sentry-source-file":"_app.tsx",children:(0,o.jsx)(r_,{"data-sentry-element":"Provider","data-sentry-source-file":"_app.tsx",children:(0,o.jsxs)(g,{"data-sentry-element":"RootLayout","data-sentry-source-file":"_app.tsx",children:[t((0,o.jsx)(r,{...n})),a&&(0,o.jsx)(u.GoogleTagManager,{gtmId:a}),s&&(0,o.jsx)(u.GoogleAnalytics,{gaId:s}),(0,o.jsx)(rC,{"data-sentry-element":"PWAUpdateNotification","data-sentry-source-file":"_app.tsx"}),(0,o.jsx)(m.x7,{position:"top-right","data-sentry-element":"Toaster","data-sentry-source-file":"_app.tsx"})]})})})})})}},27314:function(e,t,r){"use strict";let n,i,a,s,o,l,u,c,d,f,p,h,m,g,y,v,b,x;var _,w,k,S,E,C,O,T,A,R=r(51597),M=r(5824),j=r(39494);function N(e,t,r=[t],n="npm"){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=r.map(e=>({name:`${n}:@sentry/${e}`,version:j.J})),i.version=j.J)}var L=r(39424),P=r(94223);let I=[];function D(e,t){for(let r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function F(e,t,r){if(r[t.name]){P.X&&M.fF.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,I.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),I.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>r(t,n,e))}if("function"==typeof t.processEvent){let r=t.processEvent.bind(t),n=Object.assign((t,n)=>r(t,n,e),{id:t.name});e.addEventProcessor(n)}["processSpan","processSegmentSpan"].forEach(r=>{let n=t[r];"function"==typeof n&&e.on(r,r=>n.call(t,r,e))}),P.X&&M.fF.log(`Integration installed: ${t.name}`)}function $(e){let t=[];e.message&&t.push(e.message);try{let r=e.exception.values[e.exception.values.length-1];r?.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`))}catch{}return t}var B=r(34156),U=r(57360);let H=[/^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$/,/Java object is gone$/],z=(e={})=>{let t;return{name:"EventFilters",setup(r){t=W(e,r.getOptions())},processEvent:(r,n,i)=>(t||(t=W(e,i.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let r=e.transaction;return!!r&&(0,U.U0)(r,t)}(e,t.ignoreTransactions))return P.X&&M.fF.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
12Event: ${(0,B.jH)(e)}`),!0}else{var r;if(r=t.ignoreErrors,r?.length&&$(e).some(e=>(0,U.U0)(e,r)))return P.X&&M.fF.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
13Event: ${(0,B.jH)(e)}`),!0;if(e.exception?.values?.length&&!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return P.X&&M.fF.warn(`Event dropped due to not having an error message, error type or stacktrace.
14Event: ${(0,B.jH)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let r=q(e);return!!r&&(0,U.U0)(r,t)}(e,t.denyUrls))return P.X&&M.fF.warn(`Event dropped due to being matched by \`denyUrls\` option.
15Event: ${(0,B.jH)(e)}.
16Url: ${q(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let r=q(e);return!r||(0,U.U0)(r,t)}(e,t.allowUrls))return P.X&&M.fF.warn(`Event dropped due to not being matched by \`allowUrls\` option.
17Event: ${(0,B.jH)(e)}.
18Url: ${q(e)}`),!0}return!1}(r,t)?r:null)}},V=(e={})=>({...z(e),name:"InboundFilters"});function W(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:H],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function q(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),r=t?.stacktrace?.frames;return r?function(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(r):null}catch{return P.X&&M.fF.error(`Cannot extract url for event ${(0,B.jH)(e)}`),null}}var G=r(73076),Z=r(93820);let J=new WeakMap,X=()=>({name:"FunctionToString",setupOnce(){let e=Function.prototype.toString;try{Function.prototype.toString=function(...t){let r;let n=(0,Z.HK)(this);try{J.has((0,G.s3)())&&void 0!==n&&(r=n)}catch{}return e.apply(r??this,t)}}catch{}},setup(e){J.set(e,!0)}});var Y=r(31218),K=r(40464);let Q=()=>({name:"ConversationId",setup(e){e.on("spanStart",e=>{let t=(0,G.nZ)().getScopeData(),r=(0,G.aF)().getScopeData(),n=t.conversationId||r.conversationId;if(n){let{op:t,data:r,description:i}=(0,K.XU)(e);if(!t?.startsWith("gen_ai.")&&!r["ai.operationId"]&&!i?.startsWith("ai."))return;e.setAttribute(Y.Ap,n)}})}});var ee=r(99603);let et=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var r;if((r=e)&&(function(e,t){let r=e.message,n=t.message;return!!((r||n)&&(!r||n)&&(r||!n)&&r===n&&en(e,t)&&er(e,t))}(t,r)||function(e,t){let r=ei(t),n=ei(e);return!!(r&&n&&r.type===n.type&&r.value===n.value&&en(e,t)&&er(e,t))}(t,r)))return P.X&&M.fF.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function er(e,t){let r=(0,ee.Fr)(e),n=(0,ee.Fr)(t);if(!r&&!n)return!0;
18if(r&&!n||!r&&n||n.length!==r.length)return!1;for(let e=0;e<n.length;e++){let t=n[e],i=r[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function en(e,t){let 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{return!1}}function ei(e){return e.exception?.values?.[0]}var ea=r(18846),es=r(73243),eo=r(72123);function el(e){return!!e&&"function"==typeof e&&"_streamed"in e&&!!e._streamed}var eu=r(52637),ec=r(13533),ed=r(38044);function ef(e,t=[]){return[e,t]}function ep(e,t){let[r,n]=e;return[r,[...n,t]]}function eh(e,t){for(let r of e[1]){let e=r[0].type;if(t(r,e))return!0}return!1}function em(e){let t=(0,ec.qA)(R.GLOBAL_OBJ);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}let eg={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function ey(e){return e in eg?eg[e]:e}function ev(e){if(!e?.sdk)return;let{name:t,version:r}=e.sdk;return{name:t,version:r}}function eb(e,t,r,n){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date((0,ed.lk)()).toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:(0,eu.RA)(n)},...i&&{trace:i}}}function ex(e){M.fF.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function e_(e,t){if(!t?.length)return!1;for(let r of t){if("string"==typeof r||r instanceof RegExp){if(e.description&&(0,U.zC)(e.description,r))return P.X&&ex(e),!0;continue}let t=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!t)continue;let n=!r.name||e.description&&(0,U.zC)(e.description,r.name),i=!r.op||e.op&&(0,U.zC)(e.op,r.op),a=!r.attributes||Object.entries(r.attributes).every(([t,r])=>(function(e,t){return"string"==typeof e&&("string"==typeof t||t instanceof RegExp)?(0,U.zC)(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,r)=>e===t[r]):e===t})(e.attributes?.[t],r));if(n&&i&&a)return P.X&&ex(e),!0}return!1}var ew=r(83454);function ek(){return"undefined"!=typeof window&&(!(!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==ew?ew:0))||function(){let e=R.GLOBAL_OBJ.process;return e?.type==="renderer"}())}function eS(e,t){let r=t??eE().get(e)??[];if(0===r.length)return;let n=e.getOptions(),i=function(e,t,r,n,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),r&&n&&(a.dsn=(0,eu.RA)(n)),ef(a,[function(e,t){let r=t?"auto":"never";return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...ek()&&{ingest_settings:{infer_ip:r,infer_user_agent:r}},items:e}]}(e,i)])}(r,n._metadata,n.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);eE().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function eE(){return(0,ec.YO)("clientToLogBufferMap",()=>new WeakMap)}function eC(e,t){let r=t??eO().get(e)??[];if(0===r.length)return;let n=e.getOptions(),i=function(e,t,r,n,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),r&&n&&(a.dsn=(0,eu.RA)(n)),ef(a,[function(e,t){let r=t?"auto":"never";return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...ek()&&{ingest_settings:{infer_ip:r,infer_user_agent:r}},items:e}]}(e,i)])}(r,n._metadata,n.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);eO().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(i)}function eO(){return(0,ec.YO)("clientToMetricBufferMap",()=>new WeakMap)}var eT=r(10042);function eA(e){return"stream"===e.getOptions().traceLifecycle}var eR=r(80157);function eM(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}let ej=Symbol.for("SentryBufferFullError");function eN(e=100){let t=new Set;return{get $(){return Array.from(t)},add:function(r){if(!(t.size<e))return(0,eR.$2)(ej);let n=r();return t.add(n),n.then(()=>{t.delete(n)},()=>{t.delete(n)}),n},drain:function(e){if(!t.size)return(0,eR.WD)(!0);let r=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([r,new Promise(t=>eM(setTimeout(()=>t(!1),e)))]):r}}}function eL(e,t,r=(0,ed.lk)()){return(e[t]||e.all||0)>r}function eP(e,{statusCode:t,headers:r},n=(0,ed.lk)()){let i={...e},a=r?.["x-sentry-rate-limits"],s=r?.["retry-after"];if(a)for(let e of a.trim().split(",")){let[t,r,,,a]=e.split(":",5),s=parseInt(t,10),o=(isNaN(s)?60:s)*1e3;if(r)for(let e of r.split(";"))"metric_bucket"===e?(!a||a.split(";").includes("custom"))&&(i[e]=n+o):i[e]=n+o;else i.all=n+o}else s?i.all=n+function(e,t=(0,ed.lk)()){let r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;let n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}(s,n):429===t&&(i.all=n+6e4);return i}var eI=r(90772),eD=r(41745),eF=r(3613),e$=r(79769),eB=r(36360);let eU=["forwarded","-ip","remote-","via","-user"],eH=["auth","token","secret","session","password","passwd","pwd","key","jwt","bearer","sso","saml","csrf","xsrf","credentials","sid","identity","set-cookie","cookie"],ez={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0}
18,databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:5},eV="Not capturing exception because it's already been captured.",eW="Discarded session because of missing or non-string release",eq=Symbol.for("SentryInternalError"),eG=Symbol.for("SentryDoNotSendEventError");function eZ(e){return{message:e,[eq]:!0}}function eJ(e){return{message:e,[eG]:!0}}function eX(e){return(0,eD.yD)(e)&&eq in e}function eY(e){return(0,eD.yD)(e)&&eG in e}function eK(e,t,r,n,i){let a,s=0,o=!1;e.on(r,()=>{s=0,clearTimeout(a),o=!1}),e.on(t,t=>{if((s+=n(t))>=8e5)i(e);else if(!o){let t=e.getOptions()._flushInterval??5e3;t>0&&(o=!0,a=eM(setTimeout(()=>{i(e)},t)))}}),e.on("flush",()=>{i(e)})}class eQ{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=eN(e.transportOptions?.bufferSize??64),this._dataCollection=function(e){var t,r;let n=null!=e.dataCollection?ez:!0===e.sendDefaultPii?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:eU},httpHeaders:{request:{deny:eU},response:{deny:eU}},httpBodies:[],urlQueryParams:{deny:eU},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7},i=e.dataCollection??{};return{userInfo:i.userInfo??n.userInfo,cookies:i.cookies??n.cookies,httpHeaders:(t=i.httpHeaders,r=n,void 0===t?{...r.httpHeaders}:"boolean"==typeof t||"allow"in t||"deny"in t?{request:t,response:t}:{request:t.request??r.httpHeaders.request,response:t.response??r.httpHeaders.response}),httpBodies:i.httpBodies??n.httpBodies,urlQueryParams:i.urlQueryParams??i.queryParams??n.urlQueryParams,graphQL:{document:i.graphQL?.document??n.graphQL.document,variables:i.graphQL?.variables??n.graphQL.variables},genAI:{inputs:i.genAI?.inputs??n.genAI.inputs,outputs:i.genAI?.outputs??n.genAI.outputs},databaseQueryData:i.databaseQueryData??n.databaseQueryData,stackFrameVariables:i.stackFrameVariables??n.stackFrameVariables,frameContextLines:i.frameContextLines??n.frameContextLines}}(e),e.dsn?this._dsn=(0,eu.vK)(e.dsn):P.X&&M.fF.warn("No DSN provided, client will not send events."),this._dsn){var t,r,n;let i=(t=this._dsn,r=e.tunnel,n=e._metadata?e._metadata.sdk:void 0,r||`${function(e){let t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}(t)}${t.projectId}/envelope/?${function(e,t){let r={sentry_version:"7"};return e.publicKey&&(r.sentry_key=e.publicKey),t&&(r.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(r).toString()}(t,n)}`);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:i})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs??!0,this._options.enableLogs&&eK(this,"afterCaptureLog","flushLogs",e4,eS),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&eK(this,"afterCaptureMetric","flushMetrics",e3,eC)}captureException(e,t,r){let n=(0,B.DM)();if((0,B.YO)(e))return P.X&&M.fF.log(eV),n;let i={event_id:n,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,r)).then(e=>e),"error"),i.event_id}captureMessage(e,t,r,n){let i={event_id:(0,B.DM)(),...r},a=(0,eD.Le)(e)?e:String(e),s=(0,eD.pt)(e),o=s?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>o.then(e=>this._captureEvent(e,i,n)),s?"unknown":"error"),i.event_id}captureEvent(e,t,r){let n=(0,B.DM)();if(t?.originalException&&(0,B.YO)(t.originalException))return P.X&&M.fF.log(eV),n;let i={event_id:n,...t},a=e.sdkProcessingMetadata||{},s=a.capturedSpanScope,o=a.capturedSpanIsolationScope,l=e0(e.type);return this._process(()=>this._captureEvent(e,i,s||r,o),l),i.event_id}captureSession(e){this.sendSession(e),(0,eT.CT)(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;
18if(this.emit("flush"),!t)return!0;let r=await this._isClientDoneProcessing(e),n=await t.flush(e);return r&&n}async close(e){let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),F(this,e,this._integrations),t||D(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=function(e,t){if("transaction"!==e.type||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||!1===t.getOptions().streamGenAiSpans||eA(t))return;let r=[],n=[];for(let t of e.spans)t.op?.startsWith("gen_ai.")?r.push(function(e){let 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:{...e.data},links:e.links};return(0,K.i7)(t)}(t)):n.push(t);if(0===r.length)return;e.spans=n;let i=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:r.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...ek()&&{ingest_settings:{infer_ip:i,infer_user_agent:i}},items:r}]}(e,this),n=function(e,t,r,n){let i=ev(r),a=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){if(!t)return;let r=e.sdk||{};e.sdk={...r,name:r.name||t.name,version:r.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0}}(e,r?.sdk);let s=eb(e,i,n,t);return delete e.sdkProcessingMetadata,ef(s,[[{type:a},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=ep(n,function(e){let t="string"==typeof e.data?em(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}(e));r&&(n=ep(n,r)),this.sendEnvelope(n).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){let{release:t,environment:r=es.J}=this._options;if("aggregates"in e){let n=e.attrs||{};if(!n.release&&!t){P.X&&M.fF.warn(eW);return}n.release=n.release||t,n.environment=n.environment||r,e.attrs=n}else{if(!e.release&&!t){P.X&&M.fF.warn(eW);return}e.release=e.release||t,e.environment=e.environment||r}this.emit("beforeSendSession",e);let n=function(e,t,r,n){let i=ev(r);return ef({sent_at:new Date((0,ed.lk)()).toISOString(),...i&&{sdk:i},...!!n&&t&&{dsn:(0,eu.RA)(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){let n=`${e}:${t}`;P.X&&M.fF.log(`Recording outcome: "${n}"${r>1?` (${r} times)`:""}`),this._outcomes[n]=(this._outcomes[n]||0)+r}}on(e,t){let r=this._hooks[e]=this._hooks[e]||new Set,n=(...e)=>t(...e);return r.add(n),()=>{r.delete(n)}}emit(e,...t){let r=this._hooks[e];r&&r.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return P.X&&M.fF.error("Error while sending envelope:",e),{}}return P.X&&M.fF.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=function(e,t){let r={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&F(e,t,r)}),r}(this,e),D(this,e)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,n=!1,i=t.exception?.values;if(i){for(let e of(n=!0,r=!1,i))if(e.mechanism?.handled===!1){r=!0;break}}let a="ok"===e.status;(a&&0===e.errors||a&&r)&&((0,eT.CT)(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n){let i=this.getOptions(),a=this.getIntegrationNames();
18return!t.integrations&&a.length&&(t.integrations=a),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),(0,eB.R)(i,e,t,r,this,n).then(e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...(0,G.XX)(r)},...e.contexts};let n=(0,eo.CG)(this,r);return e.sdkProcessingMetadata={dynamicSamplingContext:n,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},r=(0,G.nZ)(),n=(0,G.aF)()){return P.X&&e1(e)&&M.fF.log(`Captured error event \`${$(e)[0]||"<unknown>"}\``),this._processEvent(e,t,r,n).then(e=>e.event_id,e=>{P.X&&(eY(e)?M.fF.log(e.message):eX(e)?M.fF.warn(e.message):M.fF.warn(e))})}_processEvent(e,t,r,n){let i=this.getOptions(),{sampleRate:a}=i,s=e2(e),o=e1(e),l=e.type||"error",u=`before send for type \`${l}\``,c=void 0===a?void 0:(0,e$.o)(a),d=e0(e.type);return this._prepareEvent(e,t,r,n).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),eJ("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:function(e,t){let r=`${t} must return \`null\` or a valid event.`;if((0,eD.J8)(e))return e.then(e=>{if(!(0,eD.PO)(e)&&null!==e)throw eZ(r);return e},e=>{throw eZ(`${t} rejected with ${e}`)});if(!(0,eD.PO)(e)&&null!==e)throw eZ(r);return e}(function(e,t,r,n){let{beforeSend:i,beforeSendTransaction:a,ignoreSpans:s}=t,o=!el(t.beforeSendSpan)&&t.beforeSendSpan,l=r;if(e1(l)&&i)return i(l,n);if(e2(l)){if(o||s){let t=function(e){let{trace_id:t,parent_span_id:r,span_id:n,status:i,origin:a,data:s,op:o}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:o,parent_span_id:r,span_id:n??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:a,profile_id:s?.[Y.p6],exclusive_time:s?.[Y.JQ],measurements:e.measurements,is_segment:!0}}(l);if(s?.length&&e_({description:t.description,op:t.op,attributes:t.data},s))return null;if(o){let e=o(t);e?l=(0,eF.T)(r,{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[Y.p6]:e.profile_id},...e.exclusive_time&&{[Y.JQ]:e.exclusive_time}}}},measurements:e.measurements}):(0,K.R6)()}if(l.spans){let t=[],r=l.spans;for(let e of r){if(s?.length&&e_({description:e.description,op:e.op,attributes:e.data},s)){!function(e,t){let r=t.parent_span_id,n=t.span_id;if(r)for(let t of e)t.parent_span_id===n&&(t.parent_span_id=r)}(r,e);continue}if(o){let r=o(e);r?t.push(r):((0,K.R6)(),t.push(e))}else t.push(e)}let n=l.spans.length-t.length;n&&e.recordDroppedEvent("before_send","span",n),l.spans=t}}if(a){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(l,n)}}return l}(this,i,e,t),u)}).then(i=>{if(null===i){if(this.recordDroppedEvent("before_send",d),s){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw eJ(`${u} returned \`null\`, will not send event.`)}let l=r.getSession()||n.getSession();if(o&&l&&this._updateSessionFromEvent(l,i),o&&"number"==typeof c&&(0,ed.n0)()>c)throw this.recordDroppedEvent("sample_rate","error"),eJ(`Discarding event because it's not included in the random sample (sampling rate = ${a})`);if(s){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let f=i.transaction_info;return s&&f&&i.transaction!==e.transaction&&(i.transaction_info={...f,source:"custom"}),this.sendEvent(i,t),i}).then(null,e=>{if(eY(e)||eX(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),eZ(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
19Reason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===ej&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[r,n]=e.split(":");return{reason:r,category:n,quantity:t}})}_flushOutcomes(){var e;P.X&&M.fF.log("Flushing outcomes...");let t=this._clearOutcomes();if(0===t.length){P.X&&M.fF.log("No outcomes to send");return}if(!this._dsn){P.X&&M.fF.log("No dsn provided, will not send outcomes");return}P.X&&M.fF.log("Sending outcomes:",t);let r=ef((e=this._options.tunnel&&(0,eu.RA)(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:(0,eI.yW)(),discarded_events:t}]]);this.sendEnvelope(r)}}function e0(e){return"replay_event"===e?"replay":e||"error"}function e1(e){return void 0===e.type}function e2(e){return"transaction"===e.type}function e3(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+e5(e.attributes)}function e4(e){let t=0;return e.message&&(t+=2*e.message.length),t+e5(e.attributes)}function e5(e){if(!e)return 0;let t=0;
19return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*e6(e[0]):(0,eD.pt)(e)?t+=e6(e):t+=100}),t}function e6(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:"boolean"==typeof e?4:0}function e7(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function e8(e){return(0,eD.VZ)(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function e9(e,t){let r=tt(e,t),n={type:function(e){let t=e?.name;return!t&&tn(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}(t),value:function(e){let t=e?.message;return tn(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?e8(t.error):e8(e):"No error message"}(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function te(e,t){return{exception:{values:[e9(e,t)]}}}function tt(e,t){let r=t.stacktrace||t.stack||"",n=t&&tr.test(t.message)?1:0,i="number"==typeof t.framesToPop?t.framesToPop:0;try{return e(r,n,i)}catch{}return[]}let tr=/Minified React error #\d+;/i;function tn(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function ti(e,t,r,n,i){let a;if((0,eD.VW)(t)&&t.error)return te(e,t.error);if((0,eD.TX)(t)||(0,eD.fm)(t)){if("stack"in t){a=te(e,t);let i=a.exception?.values?.[0];if(n&&r&&i&&!i.stacktrace){let t=tt(e,r);t.length&&(i.stacktrace={frames:t},(0,B.EG)(a,{synthetic:!0}))}}else{let i=t.name||((0,eD.TX)(t)?"DOMError":"DOMException"),s=t.message?`${i}: ${t.message}`:i;a=ta(e,s,r,n),(0,B.Db)(a,s)}return"code"in t&&(a.tags={...a.tags,"DOMException.code":`${t.code}`}),a}return(0,eD.VZ)(t)?te(e,t):((0,eD.PO)(t)||(0,eD.cO)(t)?a=function(e,t,r,n){let i=(0,G.s3)(),a=i?.getOptions().normalizeDepth,s=Object.values(t).find(eD.VZ),o={__serialized__:(0,ea.Qy)(t,a)};if(s)return{exception:{values:[e9(e,s)]},extra:o};let l={exception:{values:[{type:(0,eD.cO)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let r=(0,Z.zf)(e),n=t?"promise rejection":"exception";if((0,eD.VW)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,eD.cO)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${n}`}return`Object captured as ${n} with keys: ${r}`}(t,{isUnhandledRejection:n})}]},extra:o};if(r){let t=tt(e,r);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,r,i):(a=ta(e,t,r,n),(0,B.Db)(a,`${t}`,void 0)),(0,B.EG)(a,{synthetic:!0}),a)}function ta(e,t,r,n){let i={};if(n&&r){let n=tt(e,r);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]}),(0,B.EG)(i,{synthetic:!0})}if((0,eD.Le)(t)){let{__sentry_template_string__:e,__sentry_template_values__:r}=t;return i.logentry={message:e,params:r},i}return i.message=t,i}let ts=R.GLOBAL_OBJ;function to(){try{return ts.document.location.href}catch{return""}}function tl(e,t=5){if(!ts.HTMLElement)return null;let r=e;for(let e=0;e<t&&r;e++){if(r instanceof HTMLElement){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}r=r.parentNode}return null}let tu=R.GLOBAL_OBJ,tc=0;function td(e,t={}){if("function"!=typeof e)return e;try{if(Object.prototype.hasOwnProperty.call(e,"__sentry_wrapped__")){let t=e.__sentry_wrapped__;if("function"==typeof t)return t;return e}if((0,Z.HK)(e))return e}catch{return e}let r=function(...r){R.GLOBAL_OBJ._sentryWrappedDepth=(R.GLOBAL_OBJ._sentryWrappedDepth||0)+1;try{let n=r.map(e=>td(e,t));return e.apply(this,n)}catch(e){throw tc++,setTimeout(()=>{tc--}),(0,G.$e)(n=>{n.addEventProcessor(e=>(t.mechanism&&((0,B.Db)(e,void 0,void 0),(0,B.EG)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),(0,L.Tb)(e)}),e}finally{R.GLOBAL_OBJ._sentryWrappedDepth=(R.GLOBAL_OBJ._sentryWrappedDepth||0)-1}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}(0,Z.$Q)(r,e),(0,Z.xp)(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch{}return r}function tf(){let e=to(),{referrer:t}=tu.document||{},{userAgent:r}=tu.navigator||{};return{url:e,headers:{...t&&{Referer:t},...r&&{"User-Agent":r}}}}class tp extends eQ{constructor(e){let t={release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:tu.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e};N(t,"browser",["browser"],tu.SENTRY_SDK_SOURCE||"npm"),super(t);let{userInfo:r}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:r?"auto":"never",...t._metadata.sdk.settings});let{sendClientReports:n}=this._options;tu.document&&tu.document.addEventListener("visibilitychange",()=>{"hidden"===tu.document.visibilityState&&(n&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),r&&this.on("beforeSendSession",e7)}eventFromException(e,t){return function(e,t,r,n){let i=ti(e,t,r?.syntheticException||void 0,n);return(0,B.EG)(i),i.level="error",r?.event_id&&(i.event_id=r.event_id),(0,eR.WD)(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return function(e,t,r="info",n,i){let a=ta(e,t,n?.syntheticException||void 0,i);return a.level=r,n?.event_id&&(a.event_id=n.event_id),(0,eR.WD)(a)}(this._options.stackParser,e,t,r,this._options.attachStacktrace)}_prepareEvent(e,t,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r,n)}}let th={},tm={};function tg(e,t){return th[e]=th[e]||[],th[e].push(t),()=>{let r=th[e];if(r){let e=r.indexOf(t);-1!==e&&r.splice(e,1)}}}function ty(e,t){if(!tm[e]){tm[e]=!0;try{t()}catch(t){P.X&&M.fF.error(`Error while instrumenting ${e}`,t)}}}function tv(e,t){let r=e&&th[e];if(r)for(let n of r)try{n(t)}catch(t){P.X&&M.fF.error(`Error while triggering instrumentation handler.
20Type: ${e}
21Name: ${(0,ee.$P)(n)}
22Error:`,t)}}let tb=new Set([]),tx=new Set;function t_(){"console"in R.GLOBAL_OBJ&&M.RU.forEach(function(e){!tx.has(e)&&e in R.GLOBAL_OBJ.console&&(tx.add(e),(0,Z.hl)(R.GLOBAL_OBJ.console,e,function(t){return M.LD[e]=t,function(...t){let r=t[0],n=M.LD[e],i=tb.size&&"string"==typeof r&&(0,U.U0)(r,tb);i||tv("console",{args:t,level:e}),(!i||P.X&&M.fF.isEnabled())&&n?.apply(R.GLOBAL_OBJ.console,t)}}))})}let tw=R.GLOBAL_OBJ;function tk(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function tS(e,t){let r="fetch",n=tg(r,e);return ty(r,()=>tE(void 0,t)),n}function tE(e,t=!1){(!t||function(){if("string"==typeof EdgeRuntime)return!0;
22if(!function(){if(!("fetch"in tw))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(tk(tw.fetch))return!0;let e=!1,t=tw.document;if(t&&"function"==typeof t.createElement)try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow?.fetch&&(e=tk(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){P.X&&M.fF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())&&(0,Z.hl)(R.GLOBAL_OBJ,"fetch",function(t){return function(...r){let n=Error(),{method:i,url:a}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,r]=e;return{url:tA(t),method:tT(r,"method")?String(r.method).toUpperCase():(0,eD.gJ)(t)&&tT(t,"method")?String(t.method).toUpperCase():"GET"}}let t=e[0];return{url:tA(t),method:tT(t,"method")?String(t.method).toUpperCase():"GET"}}(r),s={args:r,fetchData:{method:i,url:a},startTimestamp:1e3*(0,eI.ph)(),virtualError:n,headers:function(e){let[t,r]=e;try{if("object"==typeof r&&null!==r&&"headers"in r&&r.headers)return new Headers(r.headers);if((0,eD.gJ)(t))return new Headers(t.headers)}catch{}}(r)};return e||tv("fetch",{...s}),t.apply(R.GLOBAL_OBJ,r).then(async t=>(e?e(t):tv("fetch",{...s,endTimestamp:1e3*(0,eI.ph)(),response:t}),t),e=>{tv("fetch",{...s,endTimestamp:1e3*(0,eI.ph)(),error:e}),(0,eD.VZ)(e)&&void 0===e.stack&&(e.stack=n.stack,(0,Z.xp)(e,"framesToPop",1));let t=(0,G.s3)(),r=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==r&&(0,eD.VZ)(e)&&"TypeError"===e.name&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{let t=new URL(s.fetchData.url).host;"always"===r?e.message=`${e.message} (${t})`:(0,Z.xp)(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}async function tC(e,t){if(e?.body){let r=e.body,n=r.getReader(),i=setTimeout(()=>{r.cancel().then(null,()=>{})},9e4),a=!0;for(;a;){let e;try{e=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);let{done:i}=await n.read();clearTimeout(e),i&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(e)}}clearTimeout(i),n.releaseLock(),r.cancel().then(null,()=>{})}}function tO(e){let t;try{t=e.clone()}catch{return}tC(t,()=>{tv("fetch-body-resolved",{endTimestamp:1e3*(0,eI.ph)(),response:e})})}function tT(e,t){return(0,eD.yD)(e)&&!!e[t]}function tA(e){return"string"==typeof e?e:e?tT(e,"url")?e.url:e.toString?e.toString():"":""}var tR=r(37895);function tM(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function tj(e){return"isRelative"in e}function tN(e,t){let r=0>=e.indexOf("://")&&0!==e.indexOf("//"),n=t??(r?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,n))return;let t=new URL(e,n);if(r)return{isRelative:r,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}}function tL(e){if(tj(e))return e.pathname;let 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 tP(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let 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 tI(e){return e.split(/[?#]/,1)[0]}function tD(e,t=!0){if(e.startsWith("data:")){let r=e.match(/^data:([^;,]+)/),n=r?r[1]:"text/plain",i=e.includes(";base64,"),a=e.indexOf(","),s="";if(t&&-1!==a){let t=e.slice(a+1);s=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${n}${i?",base64":""}${s?`,${s}`:""}`}return e}let tF=R.GLOBAL_OBJ;function t$(e){tg("dom",e),ty("dom",tB)}function tB(){if(!tF.document)return;let e=tv.bind(null,"dom"),t=tU(e,!0);tF.document.addEventListener("click",t,!1),tF.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let r=tF[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,Z.hl)(r,"addEventListener",function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{let n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=n[r]=n[r]||{refCount:0};if(!a.handler){let n=tU(e);a.handler=n,t.call(this,r,n,i)}a.refCount++}catch{}return t.call(this,r,n,i)}}),(0,Z.hl)(r,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{let r=this.__sentry_instrumentation_handlers__||{},i=r[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,n),i.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,r,n)}}))})}function tU(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;let s=function(e){try{return e.target}catch{return null}}(r);if("keypress"===r.type&&(!s?.tagName||"INPUT"!==s.tagName&&"TEXTAREA"!==s.tagName&&!s.isContentEditable))return;(0,Z.xp)(r,"_sentryCaptured",!0),s&&!s._sentryId&&(0,Z.xp)(s,"_sentryId",(0,B.DM)());let o="keypress"===r.type?"input":r.type;!function(e){if(e.type!==i)return!1;try{if(!e.target||e.target._sentryId!==a)return!1}catch{}return!0}(r)&&(e({event:r,name:o,global:t}),i=r.type,a=s?s._sentryId:void 0),clearTimeout(n),n=tF.setTimeout(()=>{a=void 0,i=void 0},1e3)}}let tH="__sentry_xhr_v3__";function tz(e){tg("xhr",e),ty("xhr",tV)}function tV(){if(!tF.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){let n=Error(),i=1e3*(0,eI.ph)(),a=(0,eD.HD)(r[0])?r[0].toUpperCase():void 0,s=function(e){if((0,eD.HD)(e))return e;try{return e.toString()}catch{}}(r[1]);if(!a||!s)return e.apply(t,r);t[tH]={method:a,url:s,request_headers:{}}
22,"POST"===a&&s.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let o=()=>{let e=t[tH];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}tv("xhr",{endTimestamp:1e3*(0,eI.ph)(),startTimestamp:i,xhr:t,virtualError:n}),n=void 0,t.removeEventListener("readystatechange",o)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(o(),e.apply(t,r))}):t.addEventListener("readystatechange",o),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){let[n,i]=r,a=t[tH];return a&&(0,eD.HD)(n)&&(0,eD.HD)(i)&&(a.request_headers[n.toLowerCase()]=i),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){let n=t[tH];return n&&(void 0!==r[0]&&(n.body=r[0]),tv("xhr",{startTimestamp:1e3*(0,eI.ph)(),xhr:t})),e.apply(t,r)}})}function tW(e){let t="history";tg(t,e),ty(t,tq)}function tq(){tF.addEventListener("popstate",()=>{let e=tF.location.href,t=s;s=e,t!==e&&tv("history",{from:t,to:e})}),"history"in tw&&tw.history&&((0,Z.hl)(tF.history,"pushState",e),(0,Z.hl)(tF.history,"replaceState",e));function e(e){return function(...t){let r=t.length>2?t[2]:void 0;if(r){let n=s,i=function(e){try{return new URL(e,tF.location.origin).toString()}catch{return e}}(String(r));if(s=i,n===i)return e.apply(this,t);tv("history",{from:n,to:i})}return e.apply(this,t)}}}let tG={};try{"undefined"!=typeof Node&&(tG.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),"undefined"!=typeof Element&&(tG.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,tG.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,tG.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,tG.getAttribute=Element.prototype.getAttribute),"undefined"!=typeof HTMLElement&&(tG.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function tZ(e,t,r){let n=tG[t];if(n)try{return n.call(e,r)}catch{}let i=e[t];return"function"==typeof i?i.call(e,r):i}function tJ(e,t={}){if(!e)return"<unknown>";try{let r,n=e,i=[],a=0,s=0,o=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&a++<5&&(r=function(e,t){let r=[],n=tZ(e,"tagName");if(!n)return"";if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement){let t=tZ(e,"dataset");if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}r.push(n.toLowerCase());let i=t?.length?t.filter(t=>tZ(e,"getAttribute",t)).map(t=>[t,tZ(e,"getAttribute",t)]):null;if(i?.length)i.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{let t=tZ(e,"id");t&&r.push(`#${t}`);let n=tZ(e,"className");if(n&&(0,eD.HD)(n))for(let e of n.split(/\s+/))r.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let n=tZ(e,"getAttribute",t);n&&r.push(`[${t}="${n}"]`)}return r.join("")}(n,o),"html"!==r&&(!(a>1)||!(s+3*i.length+r.length>=l)));)i.push(r),s+=r.length,n=tZ(n,"parentNode");return i.reverse().join(" > ")}catch{return"<unknown>"}}let tX=(e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var r;t.console&&function(e){let t="console";tg(t,e),ty(t,t_)}(function(t){var r;if((0,G.s3)()!==e)return;let n={category:"console",data:{arguments:t.args,logger:"console"},level:"warn"===(r=t.level)?"warning":["fatal","error","warning","log","info","debug"].includes(r)?r:"log",message:(0,U.nK)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${(0,U.nK)(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}(0,tR.n)(n,{input:t.args,level:t.level})}),t.dom&&t$((r=t.dom,function(t){let n,i;if((0,G.s3)()!==e)return;let a="object"==typeof r?r.serializeAttribute:void 0,s="object"==typeof r&&"number"==typeof r.maxStringLength?r.maxStringLength:void 0;s&&s>1024&&(s=1024),"string"==typeof a&&(a=[a]);try{let e=t.event,r=e&&e.target?e.target:e;n=tJ(r,{keyAttrs:a,maxStringLength:s}),i=tl(r)}catch{n="<unknown>"}if(0===n.length)return;let o={category:`ui.${t.name}`,message:n};i&&(o.data={"ui.component_name":i}),(0,tR.n)(o,{event:t.event,name:t.name,global:t.global})})),t.xhr&&tz(function(t){if((0,G.s3)()!==e)return;let{startTimestamp:r,endTimestamp:n}=t,i=t.xhr[tH];if(!r||!n||!i)return;let{method:a,url:s,status_code:o,body:l}=i,u={xhr:t.xhr,input:l,startTimestamp:r,endTimestamp:n},c={category:"xhr",data:{method:a,url:s,status_code:o},type:"http",level:tM(o)};e.emit("beforeOutgoingRequestBreadcrumb",c,u),(0,tR.n)(c,u)}),t.fetch&&tS(function(t){if((0,G.s3)()!==e)return;let{startTimestamp:r,endTimestamp:n}=t;
22if(!(!n||t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method)){if(t.error){let i={data:t.error,input:t.args,startTimestamp:r,endTimestamp:n},a={category:"fetch",data:t.fetchData,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",a,i),(0,tR.n)(a,i)}else{let i=t.response,a={...t.fetchData,status_code:i?.status},s={input:t.args,response:i,startTimestamp:r,endTimestamp:n},o={category:"fetch",data:a,type:"http",level:tM(a.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",o,s),(0,tR.n)(o,s)}}}),t.history&&tW(function(t){if((0,G.s3)()!==e)return;let r=t.from,n=t.to,i=tP(tu.location.href),a=r?tP(r):void 0,s=tP(n);a?.path||(a=i),i.protocol===s.protocol&&i.host===s.host&&(n=s.relative),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),(0,tR.n)({category:"navigation",data:{from:r,to:n}})}),t.sentry&&e.on("beforeSendEvent",function(t){(0,G.s3)()===e&&(0,tR.n)({category:`sentry.${"transaction"===t.type?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:(0,B.jH)(t)},{event:t})})}}},tY="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(","),tK=(e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,Z.hl)(tu,"setTimeout",tQ),t.setInterval&&(0,Z.hl)(tu,"setInterval",tQ),t.requestAnimationFrame&&(0,Z.hl)(tu,"requestAnimationFrame",t0),t.XMLHttpRequest&&"XMLHttpRequest"in tu&&(0,Z.hl)(XMLHttpRequest.prototype,"send",t1);let e=t.eventTarget;e&&(Array.isArray(e)?e:tY).forEach(e=>(function(e,t){let r=tu[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,Z.hl)(r,"addEventListener",function(r){return function(n,i,a){try{"function"==typeof i.handleEvent&&(i.handleEvent=td(i.handleEvent,{mechanism:{data:{handler:(0,ee.$P)(i),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&this&&"object"==typeof this&&"removeEventListener"in this&&"function"==typeof this.removeEventListener&&this.removeEventListener(n,i),r.apply(this,[n,td(i,{mechanism:{data:{handler:(0,ee.$P)(i),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a])}}),(0,Z.hl)(r,"removeEventListener",function(e){return function(t,r,n){try{if(Object.prototype.hasOwnProperty.call(r,"__sentry_wrapped__")){let i=r.__sentry_wrapped__;i&&e.call(this,t,i,n)}}catch{}return e.call(this,t,r,n)}}))})(e,t))}}};function tQ(e){return function(...t){let r=t[0];return t[0]=td(r,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${(0,ee.$P)(e)}`}}),e.apply(this,t)}}function t0(e){return function(t){return e.apply(this,[td(t,{mechanism:{data:{handler:(0,ee.$P)(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function t1(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in r&&"function"==typeof r[e]&&(0,Z.hl)(r,e,function(t){let r={mechanism:{data:{handler:(0,ee.$P)(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},n=(0,Z.HK)(t);return n&&(r.mechanism.data.handler=(0,ee.$P)(n)),td(t,r)})}),e.apply(this,t)}}function t2(e,t,r){tF.document&&tF.addEventListener(e,t,r)}function t3(e,t,r){tF.document&&tF.removeEventListener(e,t,r)}let t4=e=>{let t=!1;return()=>{t||(e(),t=!0)}},t5=e=>{let t=tF.requestIdleCallback||tF.setTimeout;tF.document?.visibilityState==="hidden"?e():(t2("visibilitychange",e=t4(e),{once:!0,capture:!0}),t2("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),t3("visibilitychange",e,{capture:!0}),t3("pagehide",e,{capture:!0})}))},t6=(e={})=>{let t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===tu.document)return;(0,L.yj)({ignoreDuration:!0});let e=!1;t5(()=>{e||((0,L.cg)(),e=!0)});let r=(0,G.aF)(),n=r.getUser();r.addScopeListener(t=>{let r=t.getUser();(n?.id!==r?.id||n?.ip_address!==r?.ip_address)&&(n=r,e&&(0,L.cg)())}),"route"===t&&tW(({from:t,to:r})=>{t!==r&&((0,L.yj)({ignoreDuration:!0}),(0,L.cg)(),e=!0)})}}};function t7(e,t){let r=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{null==t||e in r||(r[e]=t)})}let t8=()=>({name:"CultureContext",preprocessEvent(e){let t=t9();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=t9();t&&t7(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}});function t9(){try{let e=tu.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}let re=null;function rt(e){let t="error";
22tg(t,e),ty(t,rr)}function rr(){re=R.GLOBAL_OBJ.onerror,R.GLOBAL_OBJ.onerror=function(e,t,r,n,i){return tv("error",{column:n,error:i,line:r,msg:e,url:t}),!!re&&re.apply(this,arguments)},R.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}let rn=null;function ri(e){let t="unhandledrejection";tg(t,e),ty(t,ra)}function ra(){rn=R.GLOBAL_OBJ.onunhandledrejection,R.GLOBAL_OBJ.onunhandledrejection=function(e){return tv("unhandledrejection",e),!rn||rn.apply(this,arguments)},R.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let rs=(e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&rt(t=>{let{stackParser:r,attachStacktrace:n}=ro();if((0,G.s3)()!==e||tc>0)return;let{msg:i,url:a,line:s,column:o,error:l}=t,u=function(e,t,r,n){let i=e.exception=e.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},l=o.frames=o.frames||[];return 0===l.length&&l.push({colno:n,lineno:r,filename:((0,eD.HD)(t)&&0!==t.length?t.startsWith("data:")?`<${tD(t,!1)}>`:t:void 0)??to(),function:ee.Fi,in_app:!0}),e}(ti(r,l||i,void 0,n,!1),a,s,o);u.level="error",(0,L.eN)(u,{originalException:l,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}),t.onunhandledrejection&&ri(t=>{let{stackParser:r,attachStacktrace:n}=ro();if((0,G.s3)()!==e||tc>0)return;let i=function(e){if((0,eD.pt)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}(t),a=(0,eD.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:ti(r,i,void 0,n,!0);a.level="error",(0,L.eN)(a,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}}};function ro(){let e=(0,G.s3)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function rl(e,t){if(e&&!1!==t)return e.split("&").map(e=>{let r=e.indexOf("="),n=-1===r?e:e.slice(0,r),i=new URLSearchParams(`${n}=`).keys().next().value;return void 0!==i&&function(e,t,r){if(!1===t)return!0;let n=e.toLowerCase();if(eH.some(e=>n.includes(e)))return!0;if(!0===t)return!1;let i=("deny"in t?t.deny:t.allow).some(e=>n.includes(e.toLowerCase()));return"deny"in t?i:!i}(i,t)?`${n}=[Filtered]`:e}).join("&")}function ru(e){return(e??G.s3())?.getDataCollectionOptions().urlQueryParams??!0}function rc(e,t){return void 0===e?void 0:function(e,t){let r=e.indexOf("#"),n=-1===r?e.length:r,i=e.indexOf("?");if(-1===i||i>n)return e;let a=e.slice(0,i),s=e.slice(i+1,n),o=e.slice(n),l=rl(s,t);return l?`${a}?${l}${o}`:`${a}${o}`}(e,ru(t))}function rd(e,t){if(!e)return e;let r=e.startsWith("?"),n=rl(r?e.slice(1):e,ru(t));return n&&r?`?${n}`:n}let rf="http.url",rp="sentry.segment.name",rh="sentry.transaction",rm="url.full",rg="url.path",ry="url.template",rv=()=>({name:"HttpContext",preprocessEvent(e){if(!tu.navigator&&!tu.location&&!tu.document)return;let t=tf(),r={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:r}},processSpan(e){if(!tu.navigator&&!tu.location&&!tu.document)return;let t=tf();t7(e,{"user_agent.original":t.headers["User-Agent"],...e.is_segment&&{[rm]:e.attributes?.["sentry.op"]!=="http.client"?rc(t.url):void 0,"http.request.header.referer":t.headers.Referer}})}});function rb(e){return Array.isArray(e.errors)}function rx(e,t,r){e.mechanism={handled:!0,type:"auto.core.linked_errors",...rb(r)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function r_(e,t,r,n){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}let rw=(e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,i){!function(e,t,r,n,i,a){if(!i.exception?.values||!a||!(0,eD.VZ)(a.originalException))return;let s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;s&&(i.exception.values=function e(t,r,n,i,a,s,o,l){if(s.length>=n+1)return s;let u=[...s];if((0,eD.VZ)(i[a])){rx(o,l,i);let s=t(r,i[a]),c=u.length;r_(s,a,c,l),u=e(t,r,n,i[a],a,[s,...u],s,c)}
22return rb(i)&&i.errors.forEach((s,c)=>{if((0,eD.VZ)(s)){rx(o,l,i);let d=t(r,s),f=u.length;r_(d,`errors[${c}]`,f,l),u=e(t,r,n,s,a,[d,...u],d,f)}}),u}(e,t,n,a.originalException,r,i.exception.values,s,0))}(e9,i.getOptions().stackParser,r,t,e,n)}}};function rk(e,t,r,n){let i={filename:e,function:"<anonymous>"===t?ee.Fi:t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==n&&(i.colno=n),i}let rS=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,rE=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,rC=/\((\S*)(?::(\d+))(?::(\d+))\)/,rO=/at (.+?) ?\(data:(.+?),/,rT=[30,e=>{let t=e.match(rO);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let r=rS.exec(e);if(r){let[,e,t,n]=r;return rk(e,ee.Fi,+t,+n)}let n=rE.exec(e);if(n){if(n[2]?.indexOf("eval")===0){let e=rC.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=rN(n[1]||ee.Fi,n[2]);return rk(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],rA=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,rR=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,rM=[50,e=>{let t=rA.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=rR.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||ee.Fi;return[r,e]=rN(r,e),rk(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],rj=(0,ee.pE)(rT,rM),rN=(e,t)=>{let r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:ee.Fi,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},rL={};function rP(e){let t=rL[e];if(t)return t;let r=tF[e];if(tk(r))return rL[e]=r.bind(tF);let n=tF.document;if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return r?rL[e]=r.bind(tF):r}function rI(...e){return rP("setTimeout")(...e)}function rD(e,t=rP("fetch")){let r=0,n=0;async function i(i){let a=i.body.length;r+=a,n++;let s={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&n<15,...e.fetchOptions};try{let r=await t(e.url,s);return{statusCode:r.status,headers:{"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")}}}catch(e){throw rL.fetch=void 0,e}finally{r-=a,n--}}return function(e,t,r=eN(e.bufferSize||64)){let n={};return{send:function(i){let a=[];if(eh(i,(t,r)=>{let i=ey(r);eL(n,i)?e.recordDroppedEvent("ratelimit_backoff",i):a.push(t)}),0===a.length)return Promise.resolve({});let s=ef(i[0],a),o=t=>{var r;if(r=["client_report"],eh(s,(e,t)=>r.includes(t))){P.X&&M.fF.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}eh(s,(r,n)=>{e.recordDroppedEvent(t,ey(n))})};return r.add(()=>t({body:function(e){let[t,r]=e,n=JSON.stringify(t);function i(e){"string"==typeof n?n="string"==typeof e?n+e:[em(n),e]:n.push("string"==typeof e?em(e):e)}for(let e of r){let[t,r]=e;if(i(`
23${JSON.stringify(t)}
24`),"string"==typeof r||r instanceof Uint8Array)i(r);else{let e;try{e=JSON.stringify(r)}catch{e=JSON.stringify((0,ea.Fv)(r))}i(e)}}return"string"==typeof n?n:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}(n)}(s)}).then(e=>(413===e.statusCode?(P.X&&M.fF.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),o("send_error")):(P.X&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&M.fF.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=eP(n,e)),e),e=>{throw o("network_error"),P.X&&M.fF.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===ej)return P.X&&M.fF.error("Skipped sending event because buffer is full."),o("queue_overflow"),Promise.resolve({});throw e})},flush:e=>r.drain(e)}}(e,i,eN(e.bufferSize||40))}let rF=/^HTML(\w*)Element$/;function r$(e){if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if(function(e){if("undefined"==typeof Element)return!1;try{return e instanceof Element}catch{return!1}}(e)){let t=function(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(e);if(rF.test(t))return`[HTMLElement: ${tJ(e)}]`}}function rB(e){return[V(),X(),Q(),tK(),tX(),rs(),rw(),et(),rv(),t8(),t6()]}
24var rU=r(67294);function rH(e){return(0,eD.PO)(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":r$(e)}var rz=r(83454),rV=r(51072),rW=r(89366),rq=r(58915),rG=r(8151);function rZ(e,t,r,n=(0,K.HN)()){let i=n&&(0,K.Gx)(n);i&&(P.X&&M.fF.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${r}`),i.addEvent(e,{[Y.Wb]:t,[Y.E1]:r}))}function rJ(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let r=e.attributes||{},n=r[Y.E1],i=r[Y.Wb];"string"==typeof n&&"number"==typeof i&&(t[e.name]={value:i,unit:n})}),t}function rX(){return(0,ec.qA)((0,ec.cu)()).segmentSpanCaptureStrategy}var rY=r(96515);class rK{constructor(e={}){this._traceId=e.traceId||(0,rG.H)(),this._spanId=e.spanId||(0,rG.M)(),this._startTime=e.startTimestamp||(0,eI.ph)(),this._links=e.links,this._attributes={},this.setAttributes({[Y.S3]:"manual",[Y.$J]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._frozen||(this._links?this._links.push(e):this._links=[e]),this}addLinks(e){return this._frozen||(this._links?this._links.push(...e):this._links=e),this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:r}=this;return{spanId:e,traceId:t,traceFlags:r?K.i0:K.ve}}setAttribute(e,t){return this._frozen||(void 0===t?delete this._attributes[e]:this._attributes[e]=t,e===Y.Zj&&void 0!==t&&(0,rY.Yi)(this)&&(0,rY.qN)(this)),this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._frozen||(this._startTime=(0,K.$k)(e))}setStatus(e){return this._frozen||(this._status=e),this}updateName(e){return this._frozen||(this._name=e,(0,rY.Yi)(this)||this.setAttribute(Y.Zj,"custom")),this}end(e){if(this._endTime){this._frozen=(0,rY.Tx)(this);return}this._endTime=(0,K.$k)(e),function(e){if(!P.X)return;let{description:t="< unknown name >",op:r="< unknown op >"}=(0,K.XU)(e),{spanId:n}=e.spanContext(),i=(0,K.Gx)(e)===e,a=`[Tracing] Finishing "${r}" ${i?"root ":""}span "${t}" with ID ${n}`;M.fF.log(a)}(this),this._onSpanEnded(),this._frozen=(0,rY.Tx)(this)}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Y.$J],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,K._4)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Y.S3],profile_id:this._attributes[Y.p6],exclusive_time:this._attributes[Y.JQ],measurements:rJ(this._events),is_segment:this._isStandaloneSpan&&(0,K.Gx)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,K.Gx)(this).spanContext().spanId:void 0,links:(0,K.FF)(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===(0,K.Gx)(this),status:(0,K.bD)(this._status),attributes:(0,K.kq)(this._attributes,this._status),links:(0,K.vq)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){if(this._frozen)return this;P.X&&M.fF.log("[Tracing] Adding an event to span:",e);let n=rQ(t)?t:r||(0,eI.ph)(),i=rQ(t)?{}:t||{},a={name:e,time:(0,K.$k)(n),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=(0,G.s3)();e&&(e.emit("spanEnd",this),this._isStandaloneSpan||e.emit("afterSpanEnd",this));let t=(0,K.Gx)(this),r=this._isStandaloneSpan||this===t;if(this._isStandaloneSpan){this._sampled?function(e){let t=(0,G.s3)();if(!t)return;let r=e[1];if(!r||0===r.length){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}(function(e,t){let r=(0,eo.jC)(e[0]),n=t?.getDsn(),i=t?.getOptions().tunnel,a={sent_at:new Date((0,ed.lk)()).toISOString(),...!!r.trace_id&&!!r.public_key&&{trace:r},...!!i&&n&&{dsn:(0,eu.RA)(n)}},{beforeSendSpan:s,ignoreSpans:o}=t?.getOptions()||{},l=o?.length?e.filter(e=>{let t=(0,K.XU)(e);return!e_({description:t.description,op:t.op,attributes:t.data},o)}):e,u=e.length-l.length;u&&t?.recordDroppedEvent("before_send","span",u);let c=s?e=>{let t=(0,K.XU)(e);return(el(s)?t:s(t))||((0,K.R6)(),t)}
24:K.XU,d=[];for(let e of l){let t=c(e);t&&d.push([{type:"span"},t])}return ef(a,d)}([this],e)):(P.X&&M.fF.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span"));return}if(!r){let e=rX();if(e){let r=(0,rY.I1)(this).scope||(0,G.nZ)();e.onChildSpanEnded(this,t,e=>this._convertSpanToTransaction(e),r)}return}if(e&&eA(e)){e.emit("afterSegmentSpanEnd",this);return}let n=(0,rY.I1)(this).scope||(0,G.nZ)(),i=rX();if(i)i.onSegmentSpanEnded(e=>this._convertSpanToTransaction(e),n);else{let e=this._convertSpanToTransaction();e&&n.captureEvent(e)}}_convertSpanToTransaction(e={}){if(!r0((0,K.XU)(this)))return;this._name||(P.X&&M.fF.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:t,isolationScope:r}=(0,rY.I1)(this),n=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;e.onSpanCaptured?.(this);let i=[];for(let t of(0,K.Dp)(this)){if(t===this||t instanceof rK&&t.isStandaloneSpan()||e.isSpanAlreadyCaptured?.(t))continue;let r=(0,K.XU)(t);r0(r)&&(e.onSpanCaptured?.(t),i.push(r))}let a=this._attributes[Y.Zj];delete this._attributes[Y.xF];let s=!1;i.forEach(e=>{delete e.data[Y.xF],e.op?.startsWith("gen_ai.")&&(s=!0)});let o={contexts:{trace:(0,K.HR)(this)},spans:i.length>1e3?i.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:r,dynamicSamplingContext:(0,eo.jC)(this),hasGenAiSpans:s},request:n,...a&&{transaction_info:{source:a}}},l=rJ(this._events);return l&&Object.keys(l).length&&(P.X&&M.fF.log("[Measurements] Adding measurements to transaction event",JSON.stringify(l,void 0,2)),o.measurements=l),o}}function rQ(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function r0(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}var r1=r(69737),r2=r(82531);function r3(e){let t=r6();return t.startInactiveSpan?t.startInactiveSpan(e):function(e){let t=function(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let r={...t};return r.startTimestamp=(0,K.$k)(e.startTime),delete r.startTime,r}return t}(e),{forceTransaction:r,parentSpan:n}=e;return(e.scope?t=>(0,G.$e)(e.scope,t):void 0!==n?e=>r4(n,e):e=>e())(()=>{let i=(0,G.nZ)(),a=function(e,t){if(t)return t;if(null===t)return;let r=(0,rW.Y)(e);if(!r)return;let n=(0,G.s3)();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,K.Gx)(r):r}(i,n),s=(0,G.s3)();return e.onlyIfParent&&!a?function(e,t){t?.recordDroppedEvent("no_parent_span","span");let r=new rq.b({traceId:e.getPropagationContext().traceId});return(0,rY.YJ)(r,e,(0,G.aF)()),r}(i,s):function({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){let i;let a=(0,G.aF)();if(!(0,rV.f)()){let t=n.getPropagationContext(),i=e?e.spanContext().traceId:t.traceId,s=new rq.b({traceId:i});return e&&!r&&(0,K.j5)(e,s),(0,rY.YJ)(s,n,a),s}let s=(0,G.s3)();if(function(e,t){let r=e?.getOptions().ignoreSpans;return!!(e&&eA(e)&&r?.length)&&e_({description:t.name||"",op:t.attributes?.[Y.$J]||t.op,attributes:t.attributes},r)}(s,t)){r5(n)||s?.recordDroppedEvent("ignored","span");let t=new rq.b({dropReason:"ignored",traceId:e?.spanContext().traceId??n.getPropagationContext().traceId});return e&&!r&&(0,K.j5)(e,t),(0,rY.YJ)(t,n,a),t}if(e&&!r)i=function(e,t,r,n){let{spanId:i,traceId:a}=e.spanContext(),s=r5(t),o=!s&&(0,K.Tt)(e),l=o?new rK({...r,parentSpanId:i,traceId:a,sampled:o}):new rq.b({traceId:a});(0,K.j5)(e,l),(0,rY.YJ)(l,t,n);let u=(0,G.s3)();return u&&(eA(u)&&(0,rq.Z)(l)&&((0,rq.Z)(e)&&e.dropReason?(l.dropReason=e.dropReason,u.recordDroppedEvent(e.dropReason,"span")):s||(l.dropReason="sample_rate",u.recordDroppedEvent("sample_rate","span"))),u.emit("spanStart",l),r.endTimestamp&&(u.emit("spanEnd",l),u.emit("afterSpanEnd",l))),l}(e,n,t,a),(0,K.j5)(e,i);else if(e){let r=(0,eo.jC)(e),{traceId:s,spanId:o}=e.spanContext(),l=(0,K.Tt)(e);i=r7({traceId:s,parentSpanId:o,...t},n,a,l),(0,eo.Lh)(i,r)}else{let{traceId:e,dsc:r,parentSpanId:s,sampled:o}=n.getPropagationContext();i=r7({traceId:e,parentSpanId:s,...t},n,a,o),r&&(0,eo.Lh)(i,r)}return function(e){if(!P.X)return;let{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:n}=(0,K.XU)(e),{spanId:i}=e.spanContext(),a=(0,K.Tt)(e),s=(0,K.Gx)(e),o=s===e,l=`[Tracing] Starting ${a?"sampled":"unsampled"} ${o?"root ":""}span`,u=[`op: ${r}`,`name: ${t}`,`ID: ${i}`];
24if(n&&u.push(`parent ID: ${n}`),!o){let{op:e,description:t}=(0,K.XU)(s);u.push(`root ID: ${s.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}M.fF.log(`${l}
25  ${u.join("\n  ")}`)}(i),i}({parentSpan:a,spanArguments:t,forceTransaction:r,scope:i})})}(e)}function r4(e,t){let r=r6();return r.withActiveSpan?r.withActiveSpan(e,t):(0,G.$e)(r=>((0,rW.D)(r,e||void 0),t(r)))}function r5(e=(0,G.nZ)()){let t=r6();return t.isTracingSuppressed?t.isTracingSuppressed(e):!0===e.getScopeData().sdkProcessingMetadata.__SENTRY_SUPPRESS_TRACING__}function r6(){let e=(0,ec.cu)();return(0,r2.G)(e)}function r7(e,t,r,n){let i=(0,G.s3)(),a=i?.getOptions()||{},{name:s=""}=e,o={spanAttributes:{...e.attributes},spanName:s,parentSampled:n};i?.emit("beforeSampling",o,{decision:!1});let l=o.parentSampled??n,u=o.spanAttributes,c=t.getPropagationContext(),d=r5(t),[f,p,h]=d?[!1]:function(e,t,r){let n,i;if(!(0,rV.f)(e))return[!1];"function"==typeof e.tracesSampler?(n=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),i=!0):void 0!==t.parentSampled?n=t.parentSampled:void 0!==e.tracesSampleRate&&(n=e.tracesSampleRate,i=!0);let a=(0,e$.o)(n);if(void 0===a)return P.X&&M.fF.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(n)} of type ${JSON.stringify(typeof n)}.`),[!1];if(!a)return P.X&&M.fF.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,a,i];let s=r<a;return!s&&P.X&&M.fF.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[s,a,i]}(a,{name:s,parentSampled:l,attributes:u,normalizedRequest:r.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:(0,e$.o)(c.dsc?.sample_rate)},c.sampleRand),m=new rK({...e,attributes:{[Y.Zj]:"custom",[Y.TE]:void 0!==p&&h?p:void 0,...u},sampled:f});return f||!i||d||(P.X&&M.fF.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),i.recordDroppedEvent("sample_rate",eA(i)?"span":"transaction")),(0,rY.YJ)(m,t,r),i&&i.emit("spanStart",m),m}function r8(e){return(0,rq.Z)(e)&&"ignored"===e.dropReason}let r9={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function ne(e,t={}){let r,n;let i=new Map,a=!1,s="externalFinish",o=!t.disableAutoFinish,l=[],{idleTimeout:u=r9.idleTimeout,finalTimeout:c=r9.finalTimeout,childSpanTimeout:d=r9.childSpanTimeout,beforeSpanEnd:f,trimIdleSpanEndTimestamp:p=!0}=t,h=(0,G.s3)(),m=(0,G.nZ)();if(!h||!(0,rV.f)()){let e=new rq.b({traceId:m.getPropagationContext().traceId});return(0,rY.YJ)(e,m,(0,G.aF)()),e}let g=(0,K.HN)(),y=function(e){let t=r3(e);return(0,rW.D)((0,G.nZ)(),t),P.X&&M.fF.log("[Tracing] Started span is an idle span"),t}(e);function v(){r&&(clearTimeout(r),r=void 0)}function b(){n&&(clearTimeout(n),n=void 0)}function x(e){v(),r=setTimeout(()=>{!a&&0===i.size&&o&&(s="idleTimeout",y.end(e))},u)}function _(e){b(),n=setTimeout(()=>{!a&&o&&(s="heartbeatFailed",y.end(e))},d)}function w(e){a=!0,i.clear(),l.forEach(e=>e()),(0,rW.D)(m,g);let t=(0,K.XU)(y),{start_timestamp:r}=t;if(!r)return;t.data[Y.ju]||y.setAttribute(Y.ju,s);let n=t.status;n&&"unknown"!==n||y.setStatus({code:r1.OP}),M.fF.log(`[Tracing] Idle span "${t.op}" finished`);let o=(0,K.Dp)(y).filter(e=>e!==y),d=0;o.forEach(t=>{t.isRecording()&&(t.setStatus({code:r1.jt,message:"cancelled"}),t.end(e),P.X&&M.fF.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:r=0,start_timestamp:n=0}=(0,K.XU)(t),i=n<=e,a=r-n<=(c+u)/1e3;if(P.X){let e=JSON.stringify(t,void 0,2);i?a||M.fF.log("[Tracing] Discarding span since it finished after idle span final timeout",e):M.fF.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!a||!i)&&((0,K.ed)(y,t),d++)}),d>0&&y.setAttribute("sentry.idle_span_discarded_spans",d)}return y.end=new Proxy(y.end,{apply(e,t,r){if(f&&f(y),(0,rq.Z)(t))return;let[n,...i]=r,a=n||(0,eI.ph)(),s=(0,K.$k)(a),o=(0,K.Dp)(y).filter(e=>e!==y),l=(0,K.XU)(y);if(!o.length||!p)return w(s),Reflect.apply(e,t,[s,...i]);let u=h.getOptions().ignoreSpans,d=o?.reduce((e,t)=>
25{let r=K.XU(t);return!r.timestamp||u&&e_({description:r.description,op:r.op,attributes:r.data},u)?e:e?Math.max(e,r.timestamp):r.timestamp},void 0),m=l.start_timestamp,g=Math.min(m?m+c/1e3:1/0,Math.max(m||-1/0,Math.min(s,d||1/0)));return w(g),Reflect.apply(e,t,[g,...i])}}),l.push(h.on("spanStart",e=>{if(!(a||e===y||(0,K.XU)(e).timestamp||e instanceof rK&&e.isStandaloneSpan())&&(0,K.Dp)(y).includes(e)){var t;t=e.spanContext().spanId,v(),i.set(t,!0),_((0,eI.ph)()+d/1e3)}})),l.push(h.on("spanEnd",e=>{var t;a||(t=e.spanContext().spanId,i.has(t)&&i.delete(t),0===i.size&&(x((0,eI.ph)()+u/1e3),b()))})),l.push(h.on("idleSpanEnableAutoFinish",e=>{e===y&&(o=!0,x(),i.size&&_())})),t.disableAutoFinish||x(),setTimeout(()=>{a||(y.setStatus({code:r1.jt,message:"deadline_exceeded"}),s="finalTimeout",y.end())},c),y}let nt=!1;var nr=r(32616);let nn=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",ni=(e,t,r,n)=>{let i,a;return s=>{t.value>=0&&(s||n)&&((a=t.value-(i??0))||void 0===i)&&(i=t.value,t.delta=a,t.rating=nn(t.value,r),e(t))}},na=(e=!0)=>{let t=tF.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},ns=()=>{let e=na();return e?.activationStart??0},no=-1,nl=new Set,nu=()=>tF.document?.visibilityState!=="hidden"||tF.document?.prerendering?1/0:0,nc=e=>{if(("pagehide"===e.type||tF.document?.visibilityState==="hidden")&&no>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(let e of nl)e();isFinite(no)||(no="visibilitychange"===e.type?e.timeStamp:0,t3("prerenderingchange",nc,!0))}},nd=()=>{if(tF.document&&no<0){let e=ns();no=(tF.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??nu(),t2("visibilitychange",nc,!0),t2("pagehide",nc,!0),t2("prerenderingchange",nc,!0)}return{get firstHiddenTime(){return no},onHidden(e){nl.add(e)}}},nf=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,np=(e,t=-1)=>{let r=na(),n="navigate";return r&&(tF.document?.prerendering||ns()>0?n="prerender":tF.document?.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:nf(),navigationType:n}},nh=new WeakMap;function nm(e,t){try{return nh.get(e)||nh.set(e,new t),nh.get(e)}catch(e){return new t}}class ng{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}let ny=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let n=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return n.observe({type:e,buffered:!0,...r}),n}}catch{}},nv=e=>{tF.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},nb=[1800,3e3],nx=(e,t={})=>{nv(()=>{let r;let n=nd(),i=np("FCP"),a=ny("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(a.disconnect(),t.startTime<n.firstHiddenTime&&(i.value=Math.max(t.startTime-ns(),0),i.entries.push(t),r(!0)))});a&&(r=ni(e,i,nb,t.reportAllChanges))})},n_=[.1,.25],nw=(e,t={})=>{nx(t4(()=>{let r;let n=np("CLS",0),i=nd(),a=nm(t,ng),s=e=>{for(let t of e)a._processEntry(t);a._sessionValue>n.value&&(n.value=a._sessionValue,n.entries=a._sessionEntries,r())},o=ny("layout-shift",s);o&&(r=ni(e,n,n_,t.reportAllChanges),i.onHidden(()=>{s(o.takeRecords()),r(!0)}),tF?.setTimeout?.(r))}))},nk=0,nS=1/0,nE=0,nC=e=>{e.forEach(e=>{e.interactionId&&(nS=Math.min(nS,e.interactionId),nk=(nE=Math.max(nE,e.interactionId))?(nE-nS)/7+1:0)})},nO=()=>o?nk:performance.interactionCount||0,nT=()=>{"interactionCount"in performance||o||(o=ny("event",nC,{type:"event",buffered:!0,durationThreshold:0}))},nA=0,nR=()=>nO()-nA;class nM{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){nA=nO(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor(nR()/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||"first-input"===e.entryType))return;let 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((e,t)=>
25t._latency-e._latency),this._longestInteractionList.length>10)for(let e of this._longestInteractionList.splice(10))this._longestInteractionMap.delete(e.id);this._onAfterProcessingINPCandidate?.(r)}}}let nj=[200,500],nN=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let r=nd();nv(()=>{let n;nT();let i=np("INP"),a=nm(t,nM),s=e=>{t5(()=>{for(let t of e)a._processEntry(t);let t=a._estimateP98LongestInteraction();t&&t._latency!==i.value&&(i.value=t._latency,i.entries=t.entries,n())})},o=ny("event",s,{durationThreshold:t.durationThreshold??40});n=ni(e,i,nj,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),r.onHidden(()=>{s(o.takeRecords()),n(!0)}))})};class nL{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}let nP=[2500,4e3],nI=(e,t={})=>{nv(()=>{let r;let n=nd(),i=np("LCP"),a=nm(t,nL),s=e=>{for(let s of(t.reportAllChanges||(e=e.slice(-1)),e))s&&(a._processEntry(s),s.startTime<n.firstHiddenTime&&(i.value=Math.max(s.startTime-ns(),0),i.entries=[s],r()))},o=ny("largest-contentful-paint",s);if(o){r=ni(e,i,nP,t.reportAllChanges);let n=t4(()=>{s(o.takeRecords()),o.disconnect(),r(!0)}),a=e=>{e.isTrusted&&(t5(n),t3(e.type,a,{capture:!0}))};for(let e of["keydown","click","visibilitychange"])t2(e,a,{capture:!0})}})},nD=[800,1800],nF=e=>{tF.document?.prerendering?nv(()=>nF(e)):tF.document?.readyState!=="complete"?addEventListener("load",()=>nF(e),!0):setTimeout(e)},n$=(e,t={})=>{let r=np("TTFB"),n=ni(e,r,nD,t.reportAllChanges);nF(()=>{let e=na();e&&(r.value=Math.max(e.responseStart-ns(),0),r.entries=[e],n(!0))})},nB={},nU={};function nH(e,t=!1){return nY("cls",e,nG,l,t)}function nz(e,t=!1){return nY("lcp",e,nZ,u,t)}function nV(e){return nY("inp",e,nX,d)}function nW(e,t){return nK(e,t),nU[e]||(function(e){let t={};"event"===e&&(t.durationThreshold=0),ny(e,t=>{nq(e,{entries:t})},t)}(e),nU[e]=!0),nQ(e,t)}function nq(e,t){let r=nB[e];if(r?.length)for(let e of r)try{e(t)}catch(e){}}function nG(){return nw(e=>{nq("cls",{metric:e}),l=e},{reportAllChanges:!0})}function nZ(){return nI(e=>{nq("lcp",{metric:e}),u=e},{reportAllChanges:!0})}function nJ(){return n$(e=>{nq("ttfb",{metric:e}),c=e})}function nX(){return nN(e=>{nq("inp",{metric:e}),d=e})}function nY(e,t,r,n,i=!1){let a;return nK(e,t),nU[e]||(a=r(),nU[e]=!0),n&&t({metric:n}),nQ(e,t,i?a:void 0)}function nK(e,t){nB[e]=nB[e]||[],nB[e].push(t)}function nQ(e,t,r){return()=>{r&&r();let n=nB[e];if(!n)return;let i=n.indexOf(t);-1!==i&&n.splice(i,1)}}let n0=e=>{let t=t=>{("pagehide"===t.type||tF.document?.visibilityState==="hidden")&&e(t)};t2("visibilitychange",t,{capture:!0,once:!0}),t2("pagehide",t,{capture:!0,once:!0})};function n1(e){return"number"==typeof e&&isFinite(e)}function n2(e,t,r,{...n}){let i=(0,K.XU)(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),r4(e,()=>{let e=r3({startTime:t,...n});return e&&e.end(r),e})}function n3(e){let t;let r=(0,G.s3)();if(!r)return;let{name:n,transaction:i,attributes:a,startTime:s}=e,{release:o,environment:l}=r.getOptions(),{userInfo:u}=r.getDataCollectionOptions(),c=r.getIntegrationByName("Replay"),d=c?.getReplayId(),f=(0,G.nZ)(),p=f.getUser(),h=void 0!==p?p.email||p.id||p.ip_address:void 0;try{t=f.getScopeData().contexts.profile.profile_id}catch{}return r3({name:n,attributes:{release:o,environment:l,user:h||void 0,profile_id:t||void 0,replay_id:d||void 0,transaction:i,"user_agent.original":tF.navigator?.userAgent,"client.address":u?"{{auto}}":void 0,...a},startTime:s,experimental:{standalone:!0}})}function n4(){return tF.addEventListener&&tF.performance}function n5(e){return e/1e3}function n6(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function n7(e,t){let r;let n=!1;function i(e){!n&&r&&t(e,r.spanContext().spanId,r),n=!0}n0(()=>{i("pagehide")});let a=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(i("navigation"),a(),s())}),s=e.on("afterStartPageLoadSpan",e=>{r=e,s()})}function n8(e){return null!=e&&e>0&&e<=6e4}function n9(e){return e?(((0,eI.Z1)()||performance.timeOrigin)+e)/1e3:e}function ie(e){let t={};if(void 0!=e.nextHopProtocol){let{name:r,version:n}=function(e){let t="unknown",r="unknown",n="";for(let i of e){if("/"===i){[t,r]=e.split("/");break}if(!isNaN(Number(i))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=i}
25return n===e&&(t=n),{name:t,version:r}}(e.nextHopProtocol);t["network.protocol.version"]=n,t["network.protocol.name"]=r}return(0,eI.Z1)()||n4()?.timeOrigin?Object.fromEntries(Object.entries({...t,"http.request.redirect_start":n9(e.redirectStart),"http.request.redirect_end":n9(e.redirectEnd),"http.request.worker_start":n9(e.workerStart),"http.request.fetch_start":n9(e.fetchStart),"http.request.domain_lookup_start":n9(e.domainLookupStart),"http.request.domain_lookup_end":n9(e.domainLookupEnd),"http.request.connect_start":n9(e.connectStart),"http.request.secure_connection_start":n9(e.secureConnectionStart),"http.request.connection_end":n9(e.connectEnd),"http.request.request_start":n9(e.requestStart),"http.request.response_start":n9(e.responseStart),"http.request.response_end":n9(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0}).filter(([,e])=>null!=e)):t}let it=0,ir={};function ii(){f=void 0,p=void 0,ir={}}function ia(e,t,r,n,i=r){let a=t["secureConnection"===r?"connectEnd":"fetch"===r?"domainLookupStart":`${r}End`],s=t[`${r}Start`];s&&a&&n2(e,n+n5(s),n+n5(a),{op:`browser.${i}`,name:t.name,attributes:{[Y.S3]:"auto.ui.browser.metrics",..."redirect"===r&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}let is=new WeakMap,io=new WeakMap,il=["text/event-stream","application/x-ndjson","application/stream+json"],iu=()=>({name:"FetchStreamPerformance",setup(){(function(e){let t="fetch-body-resolved";tg(t,e),ty(t,()=>tE(tO))})(e=>{if(e.response){let t=is.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);let r=io.get(e.response);r&&clearTimeout(r)}}}),tS(e=>{if(e.endTimestamp&&e.response){let t=e.response.headers?.get("content-type")||"";if(e.response.headers?.get("content-length")||!il.some(e=>t.startsWith(e)))return;let r=e.fetchData?.url||"",n=e.fetchData?.method||"GET",i=tN(r),a=r.startsWith("data:")?tD(r):i?tL(i):r,s=r3({name:`${n} ${a}`,startTime:e.endTimestamp,attributes:{url:rc(tD(r)),"http.method":n,type:"fetch",[Y.$J]:"http.client.stream",[Y.S3]:"auto.http.browser.stream"}});is.set(e.response,s);let o=setTimeout(()=>{s.isRecording()&&s.end()},9e4);io.set(e.response,o)}})}}),ic=[],id=new Map,ip=new Map,ih={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"},im=({metric:e})=>{if(void 0==e.value)return;let t=n5(e.value);if(t>60)return;let r=e.entries.find(t=>t.duration===e.value&&ih[t.name]);if(!r)return;let{interactionId:n}=r,i=ih[r.name],a=n5((0,eI.Z1)()+r.startTime),s=(0,K.HN)(),o=s?(0,K.Gx)(s):void 0,l=null!=n?id.get(n):void 0,u=l?.span||o,c=u?(0,K.XU)(u).description:(0,G.nZ)().getScopeData().transactionName,d=n3({name:l?.elementName||tJ(r.target),transaction:c,attributes:{[Y.S3]:"auto.http.browser.inp",[Y.$J]:`ui.interaction.${i}`,[Y.JQ]:r.duration},startTime:a});d&&(d.addEvent("inp",{[Y.E1]:"millisecond",[Y.Wb]:e.value}),d.end(a+t))};function ig(e){let{name:t,op:r,origin:n,metricName:i,value:a,attributes:s,parentSpan:o,reportEvent:l,startTime:u,endTime:c}=e,d=(0,G.nZ)().getScopeData().transactionName,f={[Y.S3]:n,[Y.$J]:r,[Y.JQ]:0,[`browser.web_vital.${i}.value`]:a,[rh]:d,[rp]:d,"user_agent.original":tF.navigator?.userAgent,...s};o&&K.FS(o).attributes?.[Y.$J]==="pageload"&&(f["sentry.pageload.span_id"]=o.spanContext().spanId),l&&(f[`browser.web_vital.${i}.report_event`]=l);let p=r3({name:t,attributes:f,startTime:u,parentSpan:o});p&&p.end(c??u)}let iy="WebVitals",iv=(e={})=>{let t=new Set(e.ignore??[]);return{name:iy,setup(r){let n=eA(r),{enableStandaloneClsSpans:i,enableStandaloneLcpSpans:a}=e._experiments??{},s=n||t.has("cls")?void 0:i||!1,o=n||t.has("lcp")?void 0:a||!1,l=function({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:r}){let n=n4();if(n&&(0,eI.Z1)()){n.mark&&tF.performance.mark("sentry-tracing-init");let i=t?function(e){let t,r=0;if(!n6("largest-contentful-paint"))return;let n=nz(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&n8(e.value)&&(r=e.value,t=n)},!0);n7(e,(e,i)=>{(function(e,t,r,n){if(!n8(e))return;let i=n5(((0,eI.Z1)()||0)+(t?.startTime||0)),a=(0,G.nZ)().getScopeData().transactionName,s=t?tJ(t.element):"Largest contentful paint",o={[Y.S3]:"auto.http.browser.lcp",[Y.$J]:"ui.webvital.lcp",[Y.JQ]:0,"sentry.pageload.span_id":r,"sentry.report_event":n};t&&(t.element&&(o["lcp.element"]=tJ(t.element)),t.id&&(o["lcp.id"]=t.id),t.url&&(o["lcp.url"]=t.url),null!=t.loadTime&&(o["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(o["lcp.renderTime"]=t.renderTime),null!=t.size&&(o["lcp.size"]=t.size));let l=n3({name:s,transaction:a,attributes:o,startTime:i});l&&(l.addEvent("lcp",{[Y.E1]:"millisecond",[Y.Wb]:e}),l.end(i))})(r,t,i,e),n()})}(r):!1===t?nz(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&n8(e.value)&&(ir.lcp={value:e.value,unit:"millisecond"},f=t)},!0):void 0,a=e?function(e){let t,r=0;if(!n6("layout-shift"))return;let n=nH(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);n7(e,(e,i)=>{(function(e,t,r,n){let i=t?n5(((0,eI.Z1)()||0)+t.startTime):(0,eI.ph)(),a=(0,G.nZ)().getScopeData().transactionName,s=t?tJ(t.sources[0]?.node):"Layout shift",o={[Y.S3]:"auto.http.browser.cls",[Y.$J]:"ui.webvital.cls",[Y.JQ]:0,"sentry.pageload.span_id":r,"sentry.report_event":n};
25t?.sources&&t.sources.forEach((e,t)=>{o[`cls.source.${t+1}`]=tJ(e.node)});let l=n3({name:s,transaction:a,attributes:o,startTime:i});l&&(l.addEvent("cls",{[Y.E1]:"",[Y.Wb]:e}),l.end(i))})(r,t,i,e),n()})}(r):!1===e?nH(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(ir.cls={value:e.value,unit:""},p=t)},!0):void 0,s=nY("ttfb",({metric:e})=>{e.entries[e.entries.length-1]&&(ir.ttfb={value:e.value,unit:"millisecond"})},nJ,c),o=nW("paint",({entries:e})=>{let t=nd();for(let r of e){let e=r.startTime<t.firstHiddenTime;"first-paint"===r.name&&e&&(ir.fp={value:r.startTime,unit:"millisecond"}),"first-contentful-paint"===r.name&&e&&(ir.fcp={value:r.startTime,unit:"millisecond"})}});return()=>{s(),o(),i?.(),a?.()}}return()=>void 0}({recordClsStandaloneSpans:s,recordLcpStandaloneSpans:o,client:r}),u=new WeakSet;r.on("afterStartPageLoadSpan",e=>{u.add(e)}),r.on("spanEnd",e=>{u.delete(e)&&(l(),function(e,t){let r=(0,eI.Z1)();if(!n4()?.getEntries||!r){ii();return}let{spanStreamingEnabled:n,recordClsOnPageloadSpan:i,recordLcpOnPageloadSpan:a}=t,s=n5(r);if("pageload"===(0,K.XU)(e).op){if(function(e){let t=na(!1);if(!t)return;let{responseStart:r,requestStart:n}=t;n<=r&&(e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})}(ir),n){let t=(t,r,n)=>{let i=n??`browser.web_vital.${t}.value`;e.setAttribute(i,r)};["ttfb","fp","fcp"].forEach(e=>{ir[e]&&t(e,ir[e].value)}),ir["ttfb.requestTime"]&&t("ttfb.requestTime",ir["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else i||delete ir.cls,a||delete ir.lcp,Object.entries(ir).forEach(([t,r])=>{rZ(t,r.value,r.unit,e)}),f&&t.recordLcpOnPageloadSpan&&(f.element&&e.setAttribute("lcp.element",tJ(f.element)),f.id&&e.setAttribute("lcp.id",f.id),f.url&&e.setAttribute("lcp.url",f.url.trim().slice(0,200)),null!=f.loadTime&&e.setAttribute("lcp.loadTime",f.loadTime),null!=f.renderTime&&e.setAttribute("lcp.renderTime",f.renderTime),e.setAttribute("lcp.size",f.size)),p?.sources&&t.recordClsOnPageloadSpan&&p.sources.forEach((t,r)=>e.setAttribute(`cls.source.${r+1}`,tJ(t.node)));e.setAttribute(n?"browser.performance.time_origin":"performance.timeOrigin",s),e.setAttribute(n?"browser.performance.navigation.activation_start":"performance.activationStart",ns())}ii()}(e,{recordClsOnPageloadSpan:!1===s,recordLcpOnPageloadSpan:!1===o,spanStreamingEnabled:n}))}),n?(t.has("lcp")||function(e){let t,r=0;if(!n6("largest-contentful-paint"))return;let n=nz(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&n8(e.value)&&(r=e.value,t=n)},!0);n7(e,(e,i,a)=>{(function(e,t,r,n){if(!n8(e))return;let i=(0,eI.Z1)()||0,a=n5(i),s=n5(i+(t?.startTime||0)),o=t?tJ(t.element):"Largest contentful paint",l={};t?.element&&(l["browser.web_vital.lcp.element"]=tJ(t.element)),t?.id&&(l["browser.web_vital.lcp.id"]=t.id),t?.url&&(l["browser.web_vital.lcp.url"]=t.url),t?.loadTime!=null&&(l["browser.web_vital.lcp.load_time"]=t.loadTime),t?.renderTime!=null&&(l["browser.web_vital.lcp.render_time"]=t.renderTime),t?.size!=null&&(l["browser.web_vital.lcp.size"]=t.size),ig({name:o,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:l,parentSpan:r,reportEvent:n,startTime:a,endTime:s})})(r,t,a,e),n()})}(r),t.has("cls")||function(e){let t,r=0;if(!n6("layout-shift"))return;let n=nH(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);n7(e,(e,i,a)=>{(function(e,t,r,n){let i=t?n5(((0,eI.Z1)()||0)+t.startTime):(0,eI.ph)(),a=t?tJ(t.sources[0]?.node):"Layout shift",s={};t?.sources&&t.sources.forEach((e,t)=>{s[`browser.web_vital.cls.source.${t+1}`]=tJ(e.node)}),ig({name:a,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:e,attributes:s,parentSpan:r,reportEvent:n,startTime:i})})(r,t,a,e),n()})}(r),!t.has("inp")&&n4()&&(0,eI.Z1)()&&nV(({metric:e})=>{if(null==e.value||n5(e.value)>60)return;let t=e.entries.find(t=>t.duration===e.value&&ih[t.name]);t&&function(e,t){var r;let n=n5((0,eI.Z1)()+t.startTime),i=n5(e),a=ih[t.name],s=null!=(r=t.interactionId)?id.get(r):void 0,o=(0,K.HN)(),l=o?(0,K.Gx)(o):void 0,u=s?.span||l,c=u?(0,K.FS)(u).name:(0,G.nZ)().getScopeData().transactionName;
25ig({name:s?.elementName||tJ(t.target),op:`ui.interaction.${a}`,origin:"auto.http.browser.inp",metricName:"inp",value:e,attributes:{[Y.JQ]:t.duration,[rh]:c,[rp]:c},startTime:n,endTime:n+i,parentSpan:u})}(e.value,t)})):t.has("inp")||function(){if(n4()&&(0,eI.Z1)()){let e=nV(im);return()=>{e()}}return()=>void 0}()},afterAllSetup(){t.has("inp")||function(){let e=Object.keys(ih);function t(e){let t=e.target;if(!t)return;let r=tJ(t),n=Math.round(e.timeStamp);if(ip.set(n,r),ip.size>50){let e=ip.keys().next().value;void 0!==e&&ip.delete(e)}}ek()&&e.forEach(e=>{tF.addEventListener(e,t,{capture:!0,passive:!0})});let r=({entries:e})=>{let t=(0,K.HN)(),r=t&&(0,K.Gx)(t);e.forEach(e=>{if(!("duration"in e))return;let t=e.interactionId;if(null==t||id.has(t))return;let n=e.target?tJ(e.target):function(e){let t=Math.round(e.startTime),r=ip.get(t);if(!r)for(let e=-5;e<=5;e++){let n=ip.get(t+e);if(n){r=n;break}}return r||"<unknown>"}(e);if(ic.length>10){let e=ic.shift();id.delete(e)}ic.push(t),id.set(t,{span:r,elementName:n})})};nW("event",r),nW("first-input",r)}()}}},ib="sentry_previous_trace";function ix(e){return 1===e.traceFlags}var i_=r(15197);function iw(e={}){let t=e.client||(0,G.s3)();if(!(0,L._k)()||!t)return{};let r=(0,ec.cu)(),n=(0,r2.G)(r);if(n.getTraceData)return n.getTraceData(e);let i=e.scope||(0,G.nZ)(),a=e.span||(0,K.HN)(),s=(0,rq.Z)(a)&&!(0,rV.f)(t.getOptions());if(!a&&(0,G.fU)())return{};let o=a&&!s?(0,K.Hb)(a):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,nr.$p)(t,n,r)}(i),l=a?(0,eo.jC)(a):(0,eo.CG)(t,i),u=(0,i_.IQ)(l);if(!nr.Ke.test(o))return M.fF.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let c={"sentry-trace":o,baggage:u};return e.propagateTraceparent&&(c.traceparent=a&&!s?(0,K.jN)(a):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,nr.i7)(t,n,r)}(i)),c}function ik(e){return"string"==typeof e&&e.split(",").some(e=>e.trim().startsWith(i_.lq))}function iS(e,t,r,n,i){let a={url:rc(tD(e),i),type:"fetch","http.method":r,[Y.S3]:n,[Y.$J]:"http.client"};return t&&(tj(t)||(a[rf]=rc(tD(t.href),i),a[rm]=rc(tD(t.href),i),a["server.address"]=t.host),t.search&&(a["http.query"]=rd(t.search,i)),t.hash&&(a["http.fragment"]=t.hash)),a}let iE=Symbol.for("sentry__originalRequestBody");function iC(e){return new URLSearchParams(e).toString()}function iO(e,t=M.fF){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[iC(e)];if(!e)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}function iT(e=[]){if(e.length>=2&&e[1]&&"object"==typeof e[1]&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){let t=e[0][iE];if(void 0!==t)return t}}function iA(e){let t;try{t=e.getAllResponseHeaders()}catch(e){return{}}return t?t.split("\r\n").reduce((e,t)=>{let[r,n]=t.split(": ");return n&&(e[r.toLowerCase()]=n),e},{}):{}}function iR(e){try{return new URL(e,tu.location.origin).href}catch{return}}function iM(e){try{return new Headers(e)}catch{return}}let ij={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function iN(e,t){let{url:r}=(0,K.XU)(e).data;if(!r||"string"!=typeof r)return;let n=()=>void setTimeout(i);if(eA(t)){let t=e.end.bind(e);e.end=e=>{let r=e??(0,eI.ph)(),a=!1,s=()=>{a||(a=!0,setTimeout(i),t(r),clearTimeout(o))};n=s;let o=setTimeout(s,300)}}let i=nW("resource",({entries:t})=>{t.forEach(t=>{"resource"===t.entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)&&t.name.endsWith(r)&&(e.setAttributes(ie(t)),n())})})}let iL=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function iP(){let e=tu.navigator;return!!e?.userAgent&&iL.test(e.userAgent)}let iI={...r9,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...ij},iD=(e={})=>{let t,r;"enableElementTiming"in e&&(0,M.Cf)(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let n={name:void 0,source:void 0},i=tu.document,{enableInp:a,enableLongTask:s,enableLongAnimationFrame:o,_experiments:{enableInteractions:l,enableStandaloneClsSpans:u,enableStandaloneLcpSpans:c},beforeStartSpan:d,idleTimeout:f,finalTimeout:p,childSpanTimeout:h,markBackgroun
25dSpan:m,traceFetch:g,traceXHR:y,trackFetchStreamPerformance:v,shouldCreateSpanForRequest:b,enableHTTPTimings:x,ignoreResourceSpans:_,ignorePerformanceApiSpans:w,instrumentPageLoad:k,instrumentNavigation:S,detectRedirects:E,linkPreviousTrace:C,consistentTraceSampling:O,enableReportPageLoaded:T,onRequestSpanStart:A,onRequestSpanEnd:j}={...iI,...e},N=iP();function L(e,t,a=!0,s){let o="pageload"===t.op,l=t.name,u=d?d(t):t,c=tN(s||to()),m={...c?.pathname&&{[rg]:c.pathname},...c&&!tj(c)&&{[rm]:rc(c.href)},...u.attributes};if(l!==u.name&&(m[Y.Zj]="custom"),u.attributes=m,!a){let e=(0,eI.yW)();r3({...u,startTime:e}).end(e);return}n.name=u.name,n.source=m[Y.Zj];let g=ne(u,{idleTimeout:f,finalTimeout:p,childSpanTimeout:h,disableAutoFinish:o,beforeSpanEnd:t=>{var n;(function(e,t){let r=n4(),n=(0,eI.Z1)();if(!r?.getEntries||!n)return;let{spanStreamingEnabled:i,ignorePerformanceApiSpans:a,ignoreResourceSpans:s}=t,o=n5(n),l=r.getEntries(),{op:u,start_timestamp:c}=(0,K.XU)(e);l.slice(it).forEach(t=>{let r=n5(t.startTime),n=n5(Math.max(0,t.duration));if("navigation"!==u||!c||!(o+r<c))switch(t.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{ia(e,t,r,o)}),ia(e,t,"secureConnection",o,"TLS/SSL"),ia(e,t,"fetch",o,"cache"),ia(e,t,"domainLookup",o,"DNS"),function(e,t,r){let n=r+n5(t.requestStart),i=r+n5(t.responseEnd),a=r+n5(t.responseStart);t.responseEnd&&(n2(e,n,i,{op:"browser.request",name:t.name,attributes:{[Y.S3]:"auto.ui.browser.metrics"}}),n2(e,a,i,{op:"browser.response",name:t.name,attributes:{[Y.S3]:"auto.ui.browser.metrics"}}))}(e,t,o);break;case"mark":case"paint":case"measure":(function(e,t,r,n,i,a){if(function(e){if(e?.entryType==="measure")try{return"Components ⚛"===e.detail.devtools.track}catch{return}}(t)||["mark","measure"].includes(t.entryType)&&(0,U.U0)(t.name,a))return;let s=na(!1),o=i+Math.max(r,n5(s?s.requestStart:0)),l=i+r,u=l+n,c={[Y.S3]:"auto.resource.browser.metrics"};o!==l&&(c["sentry.browser.measure_happened_before_request"]=!0,c["sentry.browser.measure_start_time"]=o),function(e,t){try{let r=t.detail;if(!r)return;if("object"==typeof r){for(let[t,n]of Object.entries(r))if(n&&(0,eD.pt)(n))e[`sentry.browser.measure.detail.${t}`]=n;else if(void 0!==n)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(n)}catch{}return}if((0,eD.pt)(r)){e["sentry.browser.measure.detail"]=r;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(r)}catch{}}catch{}}(c,t),o<=u&&n2(e,o,u,{name:t.name,op:t.entryType,attributes:c})})(e,t,r,n,o,a);break;case"resource":(function(e,t,r,n,i,a,s){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let o=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(s?.includes(o))return;let l={[Y.S3]:"auto.resource.browser.metrics"},u=tP(r);u.protocol&&(l["url.scheme"]=u.protocol.split(":").pop()),u.host&&(l["server.address"]=u.host),l["url.same_origin"]=r.includes(tF.location.origin),l[rm]=rc(r),function(e,t,r){r.forEach(([r,n])=>{let i=e[r];null!=i&&("number"==typeof i&&i<2147483647||"string"==typeof i)&&(t[n]=i)})}(t,l,[["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"]]);let c={...l,...ie(t)},d=a+n;n2(e,d,d+i,{name:r.replace(tF.location.origin,""),op:o,attributes:c})})(e,t,t.name,r,n,o,s)}}),it=Math.max(l.length-1,0),function(e,t){let r=tF.navigator;if(!r)return;let 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),n1(n.rtt)&&(t?e.setAttribute("network.connection.rtt",n.rtt):"pageload"===(0,K.XU)(e).op&&rZ("connection.rtt",n.rtt,"millisecond"))),n1(r.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",r.deviceMemory):e.setAttribute("deviceMemory",`${r.deviceMemory} GB`)),n1(r.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",r.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(r.hardwareConcurrency)))}(e,i)})(t,{ignoreResourceSpans:_,ignorePerformanceApiSpans:w,spanStreamingEnabled:eA(e)}),n=void 0,(0,Z.xp)(e,iH,n);let i=(0,G.nZ)(),a=i.getPropagationContext();i.setPropagationContext({...a,traceId:g.spanContext().traceId,sampled:(0,K.Tt)(g),dsc:(0,eo.jC)(t)}),o&&(r=void 0)},trimIdleSpanEndTimestamp:!T});function y(){i&&["interactive","complete"].includes(i.readyState)&&(e.emit("idleSpanEnableAutoFinish",g),i.removeEventListener("readystatechange",y))}o&&T&&(r=g),(0,Z.xp)(e,iH,g),o&&!T&&i&&(i.addEventListener("readystatechange",y),y())}return{name:"BrowserTracing",setup(e){if(!N){if(function(){nt||(nt=!0,rt(e),ri(e));function e(){let e=(0,K.HN)(),t=e&&(0,K.Gx)(e);if(t){let e="internal_error";P.X&&M.fF.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:r1.jt,message:e})}}}(),o&&R.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=(0,K.HN)();if(t)for(let r of e.getEntries()){if(!r.scripts[0])continue;let e=n5((0,eI.Z1)()+r.startTime),{start_timestamp:n,op:i}=(0,K.XU)(t);if("navigation"===i&&n&&e<n)continue;let a=n5(r.duration),s={[Y.S3]:"auto.ui.browser.metrics"}
25,{invoker:o,invokerType:l,sourceURL:u,sourceFunctionName:c,sourceCharPosition:d}=r.scripts[0];s["browser.script.invoker"]=o,s["browser.script.invoker_type"]=l,u&&(s["code.filepath"]=u),c&&(s["code.function"]=c),-1!==d&&(s["browser.script.source_char_position"]=d),n2(t,e,e+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:s})}}).observe({type:"long-animation-frame",buffered:!0}):s&&nW("longtask",({entries:e})=>{let t=(0,K.HN)();if(!t)return;let{op:r,start_timestamp:n}=(0,K.XU)(t);for(let i of e){let e=n5((0,eI.Z1)()+i.startTime),a=n5(i.duration);"navigation"===r&&n&&e<n||n2(t,e,e+a,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[Y.S3]:"auto.ui.browser.metrics"}})}}),l&&nW("event",({entries:e})=>{let t=(0,K.HN)();if(t){for(let r of e)if("click"===r.name){let e=n5((0,eI.Z1)()+r.startTime),n=n5(r.duration),i={name:tJ(r.target),op:`ui.interaction.${r.name}`,startTime:e,attributes:{[Y.S3]:"auto.ui.browser.metrics"}},a=tl(r.target);a&&(i.attributes["ui.component_name"]=a),n2(t,e,e+n,i)}}}),E&&i){let e=()=>{t=(0,eI.ph)()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}e.on("startNavigationSpan",(r,i)=>{if((0,G.s3)()!==e)return;if(i?.isRedirect){L(e,{op:"navigation.redirect",...r},!1,i.url);return}t=void 0,n();let a=(0,G.nZ)();a.setPropagationContext({traceId:(0,rG.H)(),sampleRand:Math.random(),propagationSpanId:(0,rV.f)()?void 0:(0,rG.M)()}),a.setSDKProcessingMetadata({normalizedRequest:void 0}),L(e,{op:"navigation",...r,parentSpan:null,forceTransaction:!0},!0,i?.url)}),e.on("startPageLoadSpan",(t,r={})=>{if((0,G.s3)()!==e)return;n();let i=r.sentryTrace||iB("sentry-trace")||iU("sentry-trace"),a=r.baggage||iB("baggage")||iU("baggage"),s=(0,nr.pT)(i,a),o=(0,G.nZ)();o.setPropagationContext(s),(0,rV.f)()||(o.getPropagationContext().propagationSpanId=(0,rG.M)()),o.setSDKProcessingMetadata({normalizedRequest:tf()}),L(e,{op:"pageload",...t})}),e.on("endPageloadSpan",()=>{T&&r&&(r.setAttribute(Y.ju,"reportPageLoaded"),r.end())})}function n(){let t=e[iH];t&&!(0,K.XU)(t).timestamp&&(t.setAttribute(Y.ju,"cancelled"),t.end())}},afterAllSetup(e){let r;if(N)return;e.addIntegration&&!e.getIntegrationByName?.(iy)&&e.addIntegration(iv({ignore:a?[]:["inp"],_experiments:{enableStandaloneClsSpans:u,enableStandaloneLcpSpans:c}}));let i=to();if("off"!==C&&function(e,{linkPreviousTrace:t,consistentTraceSampling:r}){let n="session-storage"===t,i=n?function(){try{let e=tu.sessionStorage?.getItem(ib);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if((0,K.Gx)(e)!==e)return;let t=(0,G.nZ)().getPropagationContext();i=function(e,t,r){let n=(0,K.XU)(t),i={spanContext:t.spanContext(),startTimestamp:n.start_timestamp,sampleRate:function(){try{let e=Number(n.data?.[Y.TE]??r.dsc?.sample_rate);return Number.isNaN(e)?0:e}catch{return 0}}(),sampleRand:r.sampleRand};if(!e)return i;let a=e.spanContext;return a.traceId===n.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(t.addLink({context:a,attributes:{[Y.lH]:"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${a.traceId}-${a.spanId}-${ix(a)?1:0}`)),i)}(i,e,t),n&&function(e){try{tu.sessionStorage.setItem(ib,JSON.stringify(e))}catch(e){}}(i)});let a=!0;r&&e.on("beforeSampling",e=>{if(!i)return;let t=(0,G.nZ)(),r=t.getPropagationContext();if(a&&r.parentSpanId){a=!1;return}t.setPropagationContext({...r,dsc:{...r.dsc,sample_rate:String(i.sampleRate),sampled:String(ix(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=ix(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[Y.iT]:i.sampleRate}})}(e,{linkPreviousTrace:C,consistentTraceSampling:O}),tu.location){if(k){let t=(0,eI.Z1)();iF(e,{name:tu.location.pathname,startTime:t?t/1e3:void 0,attributes:{[Y.Zj]:"url",[Y.S3]:"auto.pageload.browser"}})}S&&tW(({to:r,from:n})=>{if(void 0===n&&i?.indexOf(r)!==-1){i=void 0;return}i=void 0;let a=tN(r),s=e[iH],o=s&&E&&function(e,t){let r=(0,K.XU)(e),n=(0,eI.yW)();return!(n-r.start_timestamp>1.5)&&(!t||!(n-t<=1.5))}(s,t);i$(e,{name:a?.pathname||tu.location.pathname,attributes:{[Y.Zj]:"url",[Y.S3]:"auto.navigation.browser"}},{url:r,isRedirect:o})})}m&&tu.document&&tu.document.addEventListener("visibilitychange",()=>{let e=(0,K.HN)();if(!e)return;let t=(0,K.Gx)(e);if(tu.document.hidden&&t){let{op:e,status:r}=(0,K.XU)(t);r||t.setStatus({code:r1.jt,message:"cancelled"}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}),l&&tu.document&&addEventListener("click",()=>{let t=e[iH];
25!(t&&["navigation","pageload"].includes((0,K.XU)(t).op))&&(r&&(r.setAttribute(Y.ju,"interactionInterrupted"),r.end(),r=void 0),n.name&&(r=ne({name:n.name,op:"ui.action.click",attributes:{[Y.Zj]:n.source||"url"}},{idleTimeout:f,finalTimeout:p,childSpanTimeout:h})))},{capture:!0}),function(e,t){let{traceFetch:r,traceXHR:n,shouldCreateSpanForRequest:i,enableHTTPTimings:a,tracePropagationTargets:s,onRequestSpanStart:o,onRequestSpanEnd:l}={...ij,...t},u="function"==typeof i?i:e=>!0,c=e=>(function(e,t){let r=to();if(r){let n,i;try{n=new URL(e,r),i=new URL(r).origin}catch{return!1}let a=n.origin===i;return t?(0,U.U0)(n.toString(),t)||a&&(0,U.U0)(n.pathname,t):a}{let r=!!e.match(/^\/(?!\/)/);return t?(0,U.U0)(e,t):r}})(e,s),d={},f=e.getOptions().propagateTraceparent;r&&tS(t=>{let r=function(e,t,r,n,i){if(!e.fetchData)return;let{method:a,url:s}=e.fetchData,o=(0,rV.f)()&&t(s);if(e.endTimestamp){let t=e.fetchData.__span;if(!t)return;let r=n[t];r&&(o&&(function(e,t){if(t.response){(0,r1.Q0)(e,t.response.status);let r=t.response?.headers?.get("content-length");if(r){let t=parseInt(r);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:r1.jt,message:"internal_error"});e.end()}(r,e),function(e,t,r){let n="object"==typeof r&&null!==r?r.onRequestSpanEnd:void 0;n?.(e,{headers:t.response?.headers,error:t.error})}(r,e,i)),delete n[t]);return}let{spanOrigin:l="auto.http.browser",propagateTraceparent:u=!1}="object"==typeof i?i:{spanOrigin:i},c=(0,G.s3)(),d=!!(0,K.HN)(),f=d||!!c&&eA(c),p=o&&f?r3(function(e,t,r,n){if(e.startsWith("data:")){let i=tD(e);return{name:`${t} ${i}`,attributes:iS(e,void 0,t,r,n)}}let i=tN(e),a=i?tL(i):e;return{name:`${t} ${a}`,attributes:iS(e,i,t,r,n)}}(s,a,l,c)):new rq.b,h=r8(p)&&d?void 0:p;if(o&&!f&&c?.recordDroppedEvent("no_parent_span","span"),e.fetchData.__span=p.spanContext().spanId,n[p.spanContext().spanId]=p,r(e.fetchData.url)){let t=e.args[0],r={...e.args[1]||{}},n=function(e,t,r,n){let i=iw({span:r,propagateTraceparent:n}),a=i["sentry-trace"],s=i.baggage,o=i.traceparent;if(!a)return;let l=t.headers||((0,eD.gJ)(e)?e.headers:void 0);if(!l)return{"sentry-trace":a,...s&&{baggage:s},...o&&{traceparent:o}};if("undefined"!=typeof Headers&&(0,eD.V9)(l,Headers)){let e=new Headers(l);if(e.get("sentry-trace")||e.set("sentry-trace",a),n&&o&&!e.get("traceparent")&&e.set("traceparent",o),s){let t=e.get("baggage");t?ik(t)||e.set("baggage",`${t},${s}`):e.set("baggage",s)}return e}if(Array.isArray(l)&&l.every(e=>Array.isArray(e)&&2===e.length&&"string"==typeof e[0])){let e=[...l];e.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",a]),n&&o&&!e.find(e=>"traceparent"===e[0])&&e.push(["traceparent",o]);let t=l.find(e=>"baggage"===e[0]&&"string"==typeof e[1]&&ik(e[1]));return s&&!t&&e.push(["baggage",s]),e}{let e="sentry-trace"in l?l["sentry-trace"]:void 0,t="traceparent"in l?l.traceparent:void 0,r="baggage"in l?l.baggage:void 0,i=r?Array.isArray(r)?[...r]:[r]:[],u=r&&(Array.isArray(r)?r.find(e=>ik(e)):ik(r));s&&!u&&i.push(s);let c=Object.assign({},l,{"sentry-trace":e??a,...i.length>0&&{baggage:i.join(",")}});return n&&o&&!t&&(c.traceparent=o),c}}(t,r,(0,rV.f)()&&f?h:void 0,u);n&&(e.args[1]=r,r.headers=n)}if(c){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};c.emit("beforeOutgoingRequestSpan",p,t)}return p}(t,u,c,d,{propagateTraceparent:f,onRequestSpanEnd:l});if(r){let n=iR(t.fetchData.url),i=n?tP(n).host:void 0,s=n?tD(n):void 0;r.setAttributes({[rf]:rc(s),[rm]:rc(s),"server.address":i}),a&&iN(r,e),o?.(r,{headers:t.headers})}}),n&&tz(t=>{let r=function(e,t,r,n,i,a){let s=e.xhr,o=s?.[tH];if(!s||s.__sentry_own_request__||!o)return;let{url:l,method:u}=o,c=(0,rV.f)()&&t(l);if(e.endTimestamp){let t=s.__sentry_xhr_span_id__;if(!t)return;let r=n[t];r&&(c&&void 0!==o.status_code&&((0,r1.Q0)(r,o.status_code),r.end(),a?.(r,{headers:iM(iA(s)),error:e.error})),delete n[t]);return}let d=iR(l),f=d?tP(d):tP(l),p=d?tD(d):void 0,h=tD(tI(l)),m=(0,G.s3)(),g=!!(0,K.HN)(),y=g||!!m&&eA(m),v=c&&y?r3({name:`${u} ${h}`,attributes:{url:rc(tD(l)),type:"xhr","http.method":u,"http.url":rc(p),[rm]:rc(p),"server.address":f?.host,[Y.S3]:"auto.http.browser",[Y.$J]:"http.client",...f?.search&&{"http.query":rd(f?.search)},...f?.hash&&{"http.fragment":f?.hash}}}):new rq.b,b=r8(v)&&g?void 0:v;return c&&!y&&m?.recordDroppedEvent("no_parent_span","span"),s.__sentry_xhr_span_id__=v.spanContext().spanId,n[s.__sentry_xhr_span_id__]=v,r(l)&&function(e,t,r){let{"sentry-trace":n,baggage:i,traceparent:a}=iw({span:t,propagateTraceparent:r});n&&function(e,t,r,n){let i=e.__sentry_xhr_v3__?.request_headers;if(!i?.["sentry-trace"]&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),n&&!i?.traceparent&&e.setRequestHeader("traceparent",n),r){let t=i?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",r)}}catch{}}(e,n,i,a)}(s,(0,rV.f)()&&y?b:void 0,i),m&&m.emit("beforeOutgoingRequestSpan",v,e),v}(t,u,c,d,f,l);r&&(a&&iN(r,e),o?.(r,{headers:iM(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}(e,{traceFetch:g,traceXHR:y,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:b,enableHTTPTimings:x,onRequestSpanStart:A,onRequestSpanEnd:j}),v&&e.addIntegration(iu())}}};function iF(e,t,r){e.emit("startPageLoadSpan",t,r),(0,G.nZ)().setTransactionName(t.name);let n=e[iH];return n&&e.emit("afterStartPageLoadSpan",n),n}function i$(e,t,r){let{url:n,isRedirect:i}=r||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i,url:n}),e.emit("startNavigationSpan",t,{isRedirect:i,url:n});let a=(0,G.nZ)();return a.setTransactionName(t.name),n&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...tf(),url:n}}),e[iH]}function iB(e){let t=tu.document,r=t?.querySelector(`meta[name=${e}]`);return r?.getAttribute("content")||void 0}function iU(e){let t=tu.performance?.getEntriesByType?.("navigation")[0],r=t?.serverTiming?.find(t=>t.name===e);return r?.description}let iH="_sentry_idleSpan";function iz(e){try{return new URL(e,tF.location.origin).toString()}catch{return e}}let iV=R.GLOBAL_OBJ,iW=null,iq=new Map,iG=new Map;
25function iZ(e){let t=e.split("/").filter(Boolean),r=0;for(let e of t)if(e.startsWith(":")){let t=e.substring(1);t.endsWith("*?")?r+=1e3:t.endsWith("*")?r+=100:r+=10}return t.length>0&&(r+=1/t.length),r}function iJ(e){if(iq.has(e))return iq.get(e)??null;try{let t=new RegExp(e);return iq.set(e,t),t}catch(e){return null}}function iX(){if(!iV?._sentryRouteManifest||"string"!=typeof iV._sentryRouteManifest)return null;let e=iV._sentryRouteManifest;if(iW&&x===e)return iW;iq.clear(),iG.clear();let t={staticRoutes:[],dynamicRoutes:[],isrRoutes:[]};try{if(t=JSON.parse(e),!Array.isArray(t.staticRoutes)||!Array.isArray(t.dynamicRoutes))return null;return iW=t,x=e,t}catch{return null}}let iY=e=>{let t=iX();if(!t)return;let r=e.length>1&&e.endsWith("/")?e.slice(0,-1):e;if(iG.has(r))return iG.get(r);let{staticRoutes:n,dynamicRoutes:i}=t;if(!Array.isArray(n)||!Array.isArray(i))return;let a=(function(e,t,r){let n=[];if(t.some(t=>t.path===e))return n;for(let t of r)if(t.regex){let r=iJ(t.regex);r?.test(e)&&n.push(t.path)}if(!e.startsWith("/:")){for(let t of r)if(t.hasOptionalPrefix&&t.regex){let r="/"===e?"/SENTRY_OPTIONAL_PREFIX":`/SENTRY_OPTIONAL_PREFIX${e}`,i=iJ(t.regex);i?.test(r)&&n.push(t.path)}}return n})(r,n,i).sort((e,t)=>iZ(e)-iZ(t))[0];return iG.set(r,a),a};var iK=r(83454);function iQ(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}let i0="incomplete-app-router-transaction",i1={current:void 0},i2=R.GLOBAL_OBJ,i3=R.GLOBAL_OBJ;function i4(e){try{return new URL(e,"http://example.com/").pathname}catch{return"/"}}let i5=new WeakSet;function i6(e,t,r){i5.has(t)||(i5.add(t),["back","forward","push","replace"].forEach(n=>{t?.[n]&&(t[n]=new Proxy(t[n],{apply(t,i,a){let s=i0,o={[Y.$J]:"navigation",[Y.S3]:"auto.navigation.nextjs.app_router_instrumentation",[Y.Zj]:"url"},l=a[0],u=iK.env._sentryBasePath??i3._sentryBasePath,c=u&&"string"==typeof l&&!l.startsWith(u)?`${u}${l}`:l;"push"===n?(s=iQ(i4(c)),o["navigation.type"]="router.push"):"replace"===n?(s=iQ(i4(c)),o["navigation.type"]="router.replace"):"back"===n?o["navigation.type"]="router.back":"forward"===n&&(o["navigation.type"]="router.forward");let d=iY(s),f="back"===n||"forward"===n?void 0:iz(c);return r.current=i$(e,{name:d??s,attributes:{...o,[Y.Zj]:d?"route":"url",...d&&{[ry]:d}}},f?{url:f}:void 0),t.apply(i,a)}}))}))}var i7=r(11163);let i8=i7.events?i7:i7.default;var i9=r(83454);function ae(e={}){let t=iD({...e,instrumentNavigation:!1,instrumentPageLoad:!1,onRequestSpanStart(...t){let[r,{headers:n}]=t;return n?.get("next-router-prefetch")&&r?.setAttribute("http.request.prefetch",!0),e.onRequestSpanStart?.(...t)}}),{instrumentPageLoad:r=!0,instrumentNavigation:n=!0}=e;return{...t,afterAllSetup(e){var i;if(!iP()&&(n&&(i=e,tu.document.getElementById("__NEXT_DATA__")?"false"!==i9.env._sentryHasPagesRouter&&i8.events.on("routeChangeStart",e=>{let t,r;let n=tI(e),a=function(e){let t=tu.__BUILD_MANIFEST?.sortedPages;if(t)return t.find(t=>{let r=function(e){let t=e.split("/"),r="";t[t.length-1]?.match(/^\[\[\.\.\..+\]\]$/)&&(t.pop(),r="(?:/(.+?))?");let n=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${n}${r}(?:/)?$`)}(t);return e.match(r)})}(n);a?(t=a,r="route"):(t=n,r="url"),i$(i,{name:t,attributes:{[Y.$J]:"navigation",[Y.S3]:"auto.navigation.nextjs.pages_router_instrumentation",[Y.Zj]:r,..."route"===r&&{[ry]:t}}},{url:iz(e)})}):function(e){tu.addEventListener("popstate",()=>{let t=iQ(tu.location.pathname),r=iY(t);i1.current?.isRecording()?(i1.current.updateName(r??t),i1.current.setAttribute(Y.Zj,r?"route":"url"),r&&i1.current.setAttribute(ry,r),function(e,t,r){e.setAttributes({[rg]:t,[rm]:rc(iz(r))})}(i1.current,t,tu.location.href)):i1.current=i$(e,{name:r??t,attributes:{[Y.S3]:"auto.navigation.nextjs.app_router_instrumentation",[Y.Zj]:r?"route":"url","navigation.type":"browser.popstate",...r&&{[ry]:r}}},{url:iz(t)})});let t=!1,r=0,n=setInterval(()=>{r++;let i=i2?.next?.router??i2?.nd?.router;t||r>500?clearInterval(n):i&&(clearInterval(n),t=!0,i6(e,i,i1),["nd","next"].forEach(t=>{let r=i2[t];r&&(i2[t]=new Proxy(r,{set:(t,r,n)=>("router"===r&&"object"==typeof n&&null!==n&&i6(e,n,i1),t[r]=n,!0)}))}))},20)}(i)),t.afterAllSetup(e),r))tu.document.getElementById("__NEXT_DATA__")?function(e){let{route:t,params:r,sentryTrace:n,baggage:i}=function(){let e;let t=tu.document.getElementById("__NEXT_DATA__");if(t?.innerHTML)try{e=JSON.parse(t.innerHTML)}catch{}if(!e)return{};let r={},{page:n,query:i,props:a}=e;return r.route=n,r.params=i,a?.pageProps&&(r.sentryTrace=a.pageProps._sentryTraceData,r.baggage=a.pageProps._sentryBaggage),r}(),a=(0,i_.XM)(i),s=t||tu.location.pathname;a?.["sentry-transaction"]&&"/_error"===s&&(s=(s=a["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,""));let o=(0,eI.Z1)();iF(e,{name:s,startTime:o?o/1e3:void 0,attributes:{[Y.$J]:"pageload",[Y.S3]:"auto.pageload.nextjs.pages_router_instrumentation",[Y.Zj]:t?"route":"url",...t&&{[ry]:t},...r&&{...r}}},{sentryTrace:n,baggage:i})}(e):function(e){let t=iQ(tu.location.pathname),r=iY(t),n=(0,eI.Z1)();iF(e,{name:r??t,startTime:n?n/1e3:void 0,attributes:{[Y.$J]:"pageload",[Y.S3]:"auto.pageload.nextjs.app_router_instrumentation",[Y.Zj]:r?"route":"url",...r&&{[ry]:r}}})}(e)}}}let at=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function ar(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){let i=n>=0?e[n]:"/";i&&(t=`${i}/${t}`,r="/"===i.charAt(0))}return t=(function(e,t){let r=0;for(let t=e.length-1;t>=0;t--){let n=e[t];"."===n?e.splice(t,1):".."===n?(e.splice(t,1),r++):r&&(e.splice(t,1),r--)}if(t)for(;r--;r)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!r).join("/"),(r?"/":"")+t||"."}function an(e){let t=0;for(;t<e.length&&""===e[t];t++);let r=e.length-1;for(;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}let ai=(e={})=>{let t=e.root,r=e.prefix||"app:///",n="window"in R.GLOBAL_OBJ&&!!R.GLOBAL_OBJ.window,i=e.iteratee||function({isBrowser:e,root:t,prefix:r}){return n=>{if(!n.filename)return n;let i=/^[a-zA-Z]:\\/.test(n.filename)||n.filename.includes("\\")&&!n.filename.includes("/"),a=/^\//.test(n.filename);if(e){if(t){let e=n.filename;0===e.indexOf(t)&&(n.filename=e.replace(t,r))}}else if(i||a){let e;let a=i?n.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):n.filename,s=t?function(e,t){e=ar(e).slice(1),t=ar(t).slice(1);let r=an(e.split("/")),n=an(t.split("/")),i=Math.min(r.length,n.length),a=i;for(let e=0;e<i;e++)if(r[e]!==n[e]){a=e;break}let s=[];for(let e=a;
25e<r.length;e++)s.push("..");return(s=s.concat(n.slice(a))).join("/")}(t,a):function(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,r=at.exec(t);return r?r.slice(1):[]}(a)[2]||"";n.filename=`${r}${s}`}return n}}({isBrowser:n,root:t,prefix:r});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t?.frames?.map(e=>i(e))}}}})}}}catch{return e}}(t)),t}}},aa=/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js(:\d+)*$/,as=({assetPrefix:e,basePath:t,rewriteFramesAssetPrefixPath:r,experimentalThirdPartyOriginStackFrames:n})=>({...ai({iteratee:i=>{if(n){let r="undefined"!=typeof window&&window.location?window.location.origin:"";if(i.filename?.startsWith(r)&&!i.filename.endsWith(".js"))return i;if(e)i.filename?.startsWith(e)&&(i.filename=i.filename.replace(e,"app://"));else if(t)try{let{origin:e}=new URL(i.filename);e===r&&(i.filename=i.filename?.replace(e,"app://").replace(t,""))}catch{}}else try{let{origin:e}=new URL(i.filename);i.filename=i.filename?.replace(e,"app://").replace(r,"")}catch{}return n?i.filename?.includes("/_next")&&(i.filename=decodeURI(i.filename)):i.filename?.startsWith("app:///_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(aa)&&(i.in_app=!1),i}}),name:"NextjsClientStackFrameNormalization"});class ao{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){let t=this._cache.get(e);if(void 0!==t)return this._cache.delete(e),this._cache.set(e,t),t}set(e,t){if(this._cache.size>=this._maxSize){let e=this._cache.keys().next().value;this._cache.delete(e)}this._cache.set(e,t)}remove(e){let t=this._cache.get(e);return t&&this._cache.delete(e),t}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let e=[];return this._cache.forEach(t=>e.push(t)),e}}let al=new ao(100);var au=r(83454);let ac=!1,ad=R.GLOBAL_OBJ;function af(e){return"/"===e[e.length-1]?e.slice(0,-1):e}let ap=R.GLOBAL_OBJ,ah="sentryReplaySession",am="Unable to send Replay";var ag=Object.defineProperty,ay=(e,t,r)=>t in e?ag(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,av=(e,t,r)=>ay(e,"symbol"!=typeof t?t+"":t,r),ab=((_=ab||{})[_.Document=0]="Document",_[_.DocumentType=1]="DocumentType",_[_.Element=2]="Element",_[_.Text=3]="Text",_[_.CDATA=4]="CDATA",_[_.Comment=5]="Comment",_);function ax(e){let t=e?.host;return t?.shadowRoot===e}function a_(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function aw(e){try{var t;let r=e.rules||e.cssRules;return r?((t=Array.from(r,ak).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 ak(e){let t;if("styleSheet"in e)try{t=aw(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e){let t=e.cssText,r=e.selectorText.includes(":"),n="string"==typeof e.style.all&&e.style.all;if(n&&(t=function(e){let t="";for(let r=0;r<e.style.length;r++){let n=e.style,i=n[r],a=n.getPropertyPriority(i);t+=`${i}:${n.getPropertyValue(i)}${a?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),r&&(t=t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),r||n)return t}return t||e.cssText}class aS{constructor(){av(this,"idNodeMap",new Map),av(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);
25this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function aE({maskInputOptions:e,tagName:t,type:r}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||r&&e[r]||"password"===r||"INPUT"===t&&!r&&e.text)}function aC({isMasked:e,element:t,value:r,maskInputFn:n}){let i=r||"";return e?(n&&(i=n(i,t)),"*".repeat(i.length)):i}function aO(e){return e.toLowerCase()}function aT(e){return e.toUpperCase()}let aA="__rrweb_original__";function aR(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?aO(t):null}function aM(e,t,r){return"INPUT"===t&&("radio"===r||"checkbox"===r)?e.getAttribute("value")||"":e.value}function aj(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(e){return null}let n=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return n?.[1]??null}let aN={};function aL(e){let t=aN[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return aN[e]=n.bind(window)}function aP(...e){return aL("setTimeout")(...e)}function aI(...e){return aL("clearTimeout")(...e)}function aD(e){try{return e.contentDocument}catch{}}let aF=1,a$=RegExp("[^a-z0-9-_:]");function aB(){return aF++}let aU=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,aH=/^(?:[a-z+]+:)?\/\//i,az=/^www\..*/i,aV=/^(data:)([^,]*),(.*)/i;function aW(e,t){return(e||"").replace(aU,(e,r,n,i,a,s)=>{let o=n||a||s,l=r||i||"";if(!o)return e;if(aH.test(o)||az.test(o)||aV.test(o))return`url(${l}${o}${l})`;if("/"===o[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+o}${l})`;let u=t.split("/"),c=o.split("/");for(let e of(u.pop(),c))"."!==e&&(".."===e?u.pop():u.push(e));return`url(${l}${u.join("/")}${l})`})}let aq=/^[^ \t\n\r\u000c]+/,aG=/^[, \t\n\r\u000c]+/,aZ=new WeakMap;function aJ(e,t){return t&&""!==t.trim()?aX(e,t):t}function aX(e,t){let r=aZ.get(e);if(r||(r=e.createElement("a"),aZ.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function aY(e,t,r,n,i,a,s){if(!n)return n;if("src"===r||"href"===r&&!("use"===t&&"#"===n[0])||"xlink:href"===r&&"#"!==n[0]||"background"===r&&("table"===t||"td"===t||"th"===t))return aJ(e,n);if("srcset"===r)return function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n;let i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}let i=[];for(;n(aG),!(r>=t.length);){let a=n(aq);if(","===a.slice(-1))a=aJ(e,a.substring(0,a.length-1)),i.push(a);else{let n="";a=aJ(e,a);let s=!1;for(;;){let e=t.charAt(r);if(""===e){i.push((a+n).trim());break}if(s)")"===e&&(s=!1);else{if(","===e){r+=1,i.push((a+n).trim());break}"("===e&&(s=!0)}n+=e,r+=1}}}return i.join(", ")}(e,n);if("style"===r){let t=aW(n,aX(e));return s&&s.size>0&&(t=function(e,t){if(!e||0===t.size)return e;try{let r=e.split(";"),n=[];for(let e of r){if(!(e=e.trim()))continue;let r=e.indexOf(":");if(-1===r){n.push(e);continue}let i=e.slice(0,r).trim();t.has(i)||n.push(e)}return n.join("; ")+(n.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}(t,s)),t}return"object"===t&&"data"===r?aJ(e,n):"function"==typeof a?a(r,n,i):n}function aK(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function aQ(e,t,r=1/0,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:aQ(e.parentNode,t,r,n+1)}function a0(e,t){return r=>{if(null===r)return!1;try{if(e){if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){let 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{return!1}}}function a1(e,t,r,n,i,a){try{let s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===s)return!1;if("INPUT"===s.tagName){let e=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let o=-1,l=-1;if(a){if((l=aQ(s,a0(n,i)))<0)return!0;o=aQ(s,a0(t,r),l>=0?l:1/0)}else{if((o=aQ(s,a0(t,r)))<0)return!1;l=aQ(s,a0(n,i),o>=0?o:1/0)}return o>=0?!(l>=0)||o<=l:!(l>=0)&&!!a}catch(e){}return!!a}function a2(e){return null==e?"":e.toLowerCase()}function a3(e,t){let r;let{doc:n,mirror:i,blockClass:a,blockSelector:s,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:f,skipChild:p=!1,inl
25ineStylesheet:g=!0,maskInputOptions:y={},maskAttributeFn:v,maskTextFn:b,maskInputFn:x,slimDOMOptions:_,dataURLOptions:w={},inlineImages:k=!1,recordCanvas:S=!1,onSerialize:E,onIframeLoad:C,iframeLoadTimeout:O=5e3,onBlockedImageLoad:T,onStylesheetLoad:A,stylesheetLoadTimeout:R=5e3,keepIframeSrcFn:M=()=>!1,newlyAddedElement:j=!1,ignoreCSSAttributes:N}=t,{preserveWhiteSpace:L=!0}=t,P=function(e,t){let{doc:r,mirror:n,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:o,maskAttributeFn:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:g={},maskTextFn:y,maskInputFn:v,dataURLOptions:b={},inlineImages:x,recordCanvas:_,keepIframeSrcFn:w,newlyAddedElement:k=!1,ignoreCSSAttributes:S}=t,E=function(e,t){if(!t.hasNode(e))return;let 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:ab.Document,childNodes:[],compatMode:e.compatMode};return{type:ab.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ab.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return function(e,t){let r;let{doc:n,blockClass:i,blockSelector:a,unblockSelector:s,inlineStylesheet:o,maskInputOptions:l={},maskAttributeFn:u,maskInputFn:c,dataURLOptions:d={},inlineImages:f,recordCanvas:p,keepIframeSrcFn:g,newlyAddedElement:y=!1,rootId:v,maskTextClass:b,unmaskTextClass:x,maskTextSelector:_,unmaskTextSelector:w,ignoreCSSAttributes:k}=t,S=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(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,i,a,s),E=function(e){if(e instanceof HTMLFormElement)return"form";let t=aO(e.tagName);return a$.test(t)?"div":t}(e),C={},O=e.attributes.length;for(let t=0;t<O;t++){let r=e.attributes[t];r.name&&!aK(E,r.name,r.value)&&(C[r.name]=aY(n,E,aO(r.name),r.value,e,u,k))}if("link"===E&&o){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=aw(t)),r&&(C.rel=null,C.href=null,C.crossorigin=null,C._cssText=aW(r,t.href))}if("style"===E&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=aw(e.sheet);t&&(C._cssText=aW(t,aX(n)))}if("input"===E||"textarea"===E||"select"===E||"option"===E){let t=aR(e),r=aM(e,aT(E),t),n=e.checked;if("submit"!==t&&"button"!==t&&r){let n=a1(e,b,_,x,w,aE({type:t,tagName:aT(E),maskInputOptions:l}));C.value=aC({isMasked:n,element:e,value:r,maskInputFn:c})}n&&(C.checked=n)}if("option"===E&&(e.selected&&!l.select?C.selected=!0:delete C.selected),"canvas"===E&&p){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){let i=t.getImageData;if(new Uint32Array((aA in i?i[aA]:i).call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(C.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){let t=e.toDataURL(d.type,d.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(d.type,d.quality)&&(C.rr_dataURL=t)}}if("img"===E&&f){h||(m=(h=n.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",r=e.crossOrigin,i=()=>{e.removeEventListener("load",i);try{h.width=e.naturalWidth,h.height=e.naturalHeight,m.drawImage(e,0,0),C.rr_dataURL=h.toDataURL(d.type,d.quality)}catch(r){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i);return}console.warn(`Cannot inline img src=${t}! Error: ${r}`)}"anonymous"===e.crossOrigin&&(r?C.crossOrigin=r:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i)}if(("audio"===E||"video"===E)&&(C.rr_mediaState=e.paused?"paused":"played",C.rr_mediaCurrentTime=e.currentTime),!y&&(e.scrollLeft&&(C.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(C.rr_scrollTop=e.scrollTop)),S){let{width:t,height:r}=e.getBoundingClientRect();C={class:C.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==E||g(C.src)||(S||aD(e)||(C.rr_src=C.src),delete C.src);try{customElements.get(E)&&(r=!0)}catch(e){}return{type:ab.Element,tagName:E,attributes:C,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:S,rootId:v,isCustom:r}}(e,{doc:r,blockClass:i,blockSelector:a,unblockSelector:s,inlineStylesheet:p,maskAttributeFn:l,maskInputOptions:g,maskInputFn:v,dataURLOptions:b,inlineImages:x,recordCanvas:_,keepIframeSrcFn:w,newlyAddedElement:k,rootId:E,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:f,ignoreCSSAttributes:S});case e.TEXT_NODE:return function(e,t){let{maskAllText:r,maskTextClass:n,unmaskTextClass:i,maskTextSelector:a,unmaskTextSelector:s,maskTextFn:o,maskInputOptions:l,maskInputFn:u,rootId:c}=t,d=e.parentNode&&e.parentNode.tagName,f=e.textContent,p="STYLE"===d||void 0,h="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(p&&f){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(f=aw(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}f=aW(f,aX(t.doc))}h&&(f="SCRIPT_PLACEHOLDER");let g=a1(e,n,a,i,s,r);return p||h||m||!f||!g||(f=o?o(f,e.parentElement):f.replace(/[\S]/g,"*")),m&&f&&(l.textarea||g)&&(f=u?u(f,e.parentNode):f.replace(/[\S]/g,"*")),"OPTION"===d&&f&&(f=aC({isMasked:a1(e,n,a,i,s,aE({type:null,tagName:d,maskInputOptions:l})),element:e,value:f,maskInputFn:u})),{type:ab.Text,textContent:f||"",isStyle:p,rootId:c}}(e,{doc:r,maskAllText:o,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:y,maskInputOptions:g,maskInputFn:v,rootId:E});case e.CDATA_SECTION_NODE:return{type:ab.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:ab.Comment,textContent:e.textContent||"",rootId:E};default:return!1}}(e,{doc:n,mirror:i,blockClass:a,blockSelector:s,maskAllText:l,unblockSelector:o,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:g,maskInputOptions:y,maskAttributeFn:v,maskTextFn:b,maskInputFn:x,dataURLOptions:w,inlineImages:k,recordCanvas:S,keepIframeSrcFn:M,newlyAddedElement:j,ignoreCSSAttributes:N});if(!P)return console.warn(e,"not serialized"),null;r=i.hasNode(e)?i.getId(e):!function(e,t){if(t.comment&&e.type===ab.Comment)return!0;
25if(e.type===ab.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"===aj(e.attributes.href))||t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(a2(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===a2(e.attributes.name)||"icon"===a2(e.attributes.rel)||"apple-touch-icon"===a2(e.attributes.rel)||"shortcut icon"===a2(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&a2(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(a2(e.attributes.property).match(/^(og|twitter|fb):/)||a2(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===a2(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===a2(e.attributes.name)||"googlebot"===a2(e.attributes.name)||"bingbot"===a2(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===a2(e.attributes.name)||"generator"===a2(e.attributes.name)||"framework"===a2(e.attributes.name)||"publisher"===a2(e.attributes.name)||"progid"===a2(e.attributes.name)||a2(e.attributes.property).match(/^article:/)||a2(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===a2(e.attributes.name)||"yandex-verification"===a2(e.attributes.name)||"csrf-token"===a2(e.attributes.name)||"p:domain_verify"===a2(e.attributes.name)||"verify-v1"===a2(e.attributes.name)||"verification"===a2(e.attributes.name)||"shopify-checkout-api-token"===a2(e.attributes.name)))return!0}}return!1}(P,_)&&(L||P.type!==ab.Text||P.isStyle||P.textContent.trim().length)?aB():-2;let I=Object.assign(P,{id:r});if(i.add(e,I),-2===r)return null;E&&E(e);let D=!p;if(I.type===ab.Element){D=D&&!I.needBlock;let t=e.shadowRoot;t&&a_(t)&&(I.isShadowHost=!0)}if((I.type===ab.Document||I.type===ab.Element)&&D){_.headWhitespace&&I.type===ab.Element&&"head"===I.tagName&&(L=!1);let t={doc:n,mirror:i,blockClass:a,blockSelector:s,maskAllText:l,unblockSelector:o,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:f,skipChild:p,inlineStylesheet:g,maskInputOptions:y,maskAttributeFn:v,maskTextFn:b,maskInputFn:x,slimDOMOptions:_,dataURLOptions:w,inlineImages:k,recordCanvas:S,preserveWhiteSpace:L,onSerialize:E,onIframeLoad:C,iframeLoadTimeout:O,onBlockedImageLoad:T,onStylesheetLoad:A,stylesheetLoadTimeout:R,keepIframeSrcFn:M,ignoreCSSAttributes:N};for(let r of e.childNodes?Array.from(e.childNodes):[]){let e=a3(r,t);e&&I.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let r of Array.from(e.shadowRoot.childNodes)){let n=a3(r,t);n&&(a_(e.shadowRoot)&&(n.isShadow=!0),I.childNodes.push(n))}}if(e.parentNode&&ax(e.parentNode)&&a_(e.parentNode)&&(I.isShadow=!0),I.type!==ab.Element||"iframe"!==I.tagName||I.needBlock||function(e,t,r){let n;let i=function(e){try{return e.contentWindow}catch{}}(e);if(!i)return;let a=!1;try{n=i.document.readyState}catch(e){return}if("complete"!==n){let n=aP(()=>{a||(t(),a=!0)},r);e.addEventListener("load",()=>{aI(n),a=!0,t()});return}let s="about:blank";if(i.location.href!==s||e.src===s||""===e.src)return aP(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=aD(e);if(t&&C){let r=a3(t,{doc:t,mirror:i,blockClass:a,blockSelector:s,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:g,maskInputOptions:y,maskAttributeFn:v,maskTextFn:b,maskInputFn:x,slimDOMOptions:_,dataURLOptions:w,inlineImages:k,recordCanvas:S,preserveWhiteSpace:L,onSerialize:E,onIframeLoad:C,iframeLoadTimeout:O,onStylesheetLoad:A,stylesheetLoadTimeout:R,keepIframeSrcFn:M,ignoreCSSAttributes:N});r&&C(e,r)}},O),I.type===ab.Element&&"img"===I.tagName&&!e.complete&&I.needBlock){let t=()=>{if(e.isConnected&&!e.complete&&T)try{let t=e.getBoundingClientRect();t.width>0&&t.height>0&&T(e,I,t)}catch(e){}e.removeEventListener("load",t)};e.isConnected&&e.addEventListener("load",t)}return I.type===ab.Element&&"link"===I.tagName&&"string"==typeof I.attributes.rel&&("stylesheet"===I.attributes.rel||"preload"===I.attributes.rel&&"string"==typeof I.attributes.href&&"css"===aj(I.attributes.href))&&function(e,t,r){let n,i=!1;try{n=e.sheet}catch(e){n=null}if(n)return;let a=aP(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{aI(a),i=!0,t()})}(e,()=>{if(A){let t=a3(e,{doc:n,mirror:i,blockClass:a,blockSelector:s,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:g,maskInputOptions:y,maskAttributeFn:v,maskTextFn:b,maskInputFn:x,slimDOMOptions:_,dataURLOptions:w,inlineImages:k,recordCanvas:S,preserveWhiteSpace:L,onSerialize:E,onIframeLoad:C,iframeLoadTimeout:O,onStylesheetLoad:A,stylesheetLoadTimeout:R,keepIframeSrcFn:M,ignoreCSSAttributes:N});t&&A(e,t)}},R),I.type===ab.Element&&delete I.needBlock,I}function a4(e,t,r=document){let n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}let a5="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.",a6={map:{},getId:()=>(console.error(a5),-1),getNode:()=>(console.error(a5),null),removeNodeFromMap(){console.error(a5)},has:()=>(console.error(a5),!1),reset(){console.error(a5)}};function a7(e,t,r={}){let n=null,i=0;return function(...a){let s=Date.now();i||!1!==r.leading||(i=s);let o=t-(s-i),l=this;o<=0||o>t?(n&&(function(...e){sh("clearTimeout")(...e)}
25(n),n=null),i=s,e.apply(l,a)):n||!1===r.trailing||(n=sm(()=>{i=!1===r.leading?0:Date.now(),n=null,e.apply(l,a)},o))}}function a8(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,()=>{e[t]=n}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(a6=new Proxy(a6,{get:(e,t,r)=>("map"===t&&console.error(a5),Reflect.get(e,t,r))}));let a9=Date.now;function se(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function st(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function sr(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function sn(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function si(e,t,r,n,i){if(!e)return!1;let a=sn(e);if(!a)return!1;let s=a0(t,r);if(!i){let e=n&&a.matches(n);return s(a)&&!e}let o=aQ(a,s),l=-1;return!(o<0)&&(n&&(l=aQ(a,a0(null,n))),o>-1&&l<0||o<l)}function sa(e,t){return -2===t.getId(e)}function ss(e){return!!e.changedTouches}function so(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function sl(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function su(e){return!!e?.shadowRoot}/[1-9][0-9]{12}/.test(Date.now().toString())||(a9=()=>new Date().getTime());class sc{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){let 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)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function sd(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function sf(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let r=function(e){let t,r=e;for(;t=sd(r);)r=t;return r}(e);return t.contains(r)}(e))}let sp={};function sh(e){let t=sp[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return sp[e]=n.bind(window)}function sm(...e){return sh("setTimeout")(...e)}var sg=((w=sg||{})[w.DomContentLoaded=0]="DomContentLoaded",w[w.Load=1]="Load",w[w.FullSnapshot=2]="FullSnapshot",w[w.IncrementalSnapshot=3]="IncrementalSnapshot",w[w.Meta=4]="Meta",w[w.Custom=5]="Custom",w[w.Plugin=6]="Plugin",w),sy=((k=sy||{})[k.Mutation=0]="Mutation",k[k.MouseMove=1]="MouseMove",k[k.MouseInteraction=2]="MouseInteraction",k[k.Scroll=3]="Scroll",k[k.ViewportResize=4]="ViewportResize",k[k.Input=5]="Input",k[k.TouchMove=6]="TouchMove",k[k.MediaInteraction=7]="MediaInteraction",k[k.StyleSheetRule=8]="StyleSheetRule",k[k.CanvasMutation=9]="CanvasMutation",k[k.Font=10]="Font",k[k.Log=11]="Log",k[k.Drag=12]="Drag",k[k.StyleDeclaration=13]="StyleDeclaration",k[k.Selection=14]="Selection",k[k.AdoptedStyleSheet=15]="AdoptedStyleSheet",k[k.CustomElement=16]="CustomElement",k),sv=((S=sv||{})[S.MouseUp=0]="MouseUp",S[S.MouseDown=1]="MouseDown",S[S.Click=2]="Click",S[S.ContextMenu=3]="ContextMenu",S[S.DblClick=4]="DblClick",S[S.Focus=5]="Focus",S[S.Blur=6]="Blur",S[S.TouchStart=7]="TouchStart",S[S.TouchMove_Departed=8]="TouchMove_Departed",S[S.TouchEnd=9]="TouchEnd",S[S.TouchCancel=10]="TouchCancel",S),sb=((E=sb||{})[E.Mouse=0]="Mouse",E[E.Pen=1]="Pen",E[E.Touch=2]="Touch",E),sx=((C=sx||{})[C.Play=0]="Play",C[C.Pause=1]="Pause",C[C.Seeked=2]="Seeked",C[C.VolumeChange=3]="VolumeChange",C[C.RateChange=4]="RateChange",C);let s_=e=>g?(...t)=>{try{return e(...t)}catch(e){if(g&&!0===g(e))return()=>{};throw e}}:e;for(var sw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
25+/",sk="undefined"==typeof Uint8Array?[]:new Uint8Array(256),sS=0;sS<sw.length;sS++)sk[sw.charCodeAt(sS)]=sS;class sE{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}function sC(e){try{return e.contentDocument}catch(e){}}function sO(e){try{return e.contentWindow}catch(e){}}class sT{constructor(e){this.doc=e,this.unattachedDoc=null}parse(e){return this.parseWithConstructableStylesheet(e)||this.parseWithDetachedElement(e)}parseWithConstructableStylesheet(e){if("undefined"==typeof CSSStyleSheet||"function"!=typeof CSSStyleSheet.prototype.replaceSync)return null;try{let t=new CSSStyleSheet;t.replaceSync(`x { ${e} }`);let r=t.cssRules[0];if(!r||r.type!==CSSRule.STYLE_RULE)return null;return r.style}catch{return null}}parseWithDetachedElement(e){let t=this.getUnattachedDoc().createElement("span");return t.setAttribute("style",e),t.style}getUnattachedDoc(){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}return this.unattachedDoc}}class sA{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=t?.next||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let 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){let r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}let sR=(e,t)=>`${e}@${t}`;class sM{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,r=new sA,n=e=>{let t=e,r=-2;for(;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},i=i=>{if(!i.parentNode||!sf(i))return;let a=ax(i.parentNode)?this.mirror.getId(sd(i)):this.mirror.getId(i.parentNode),s=n(i);if(-1===a||-1===s)return r.addNode(i);let o=a3(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{so(e,this.mirror)&&!si(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),sl(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),su(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{if(si(e,this.blockClass,this.blockSelector,this.unblockSelector,!1))return;this.iframeManager.attachIframe(e,t);let r=sO(e);r&&this.canvasManager.addWindow(r),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});o&&(e.push({parentId:a,nextId:s,node:o}),t.add(o.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!sN(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)sL(this.droppedSet,e)||sN(this.removes,e,this.mirror)?sL(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let a=null;for(;r.length;){let e=null;if(a){let t=this.mirror.getId(a.value.parentNode),r=n(a.value);
25-1!==t&&-1!==r&&(e=a)}if(!e){let t=r.tail;for(;t;){let r=t;if(t=t.previous,r){let t=this.mirror.getId(r.value.parentNode);if(-1===n(r.value))continue;if(-1!==t){e=r;break}{let t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let n=t.parentNode.host;if(-1!==this.mirror.getId(n)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}a=e.previous,r.removeNode(e.value),i(e.value)}let s={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(s.texts.length||s.attributes.length||s.removes.length||s.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))},this.processMutation=e=>{if(!sa(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;si(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:a1(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,sn(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,r=e.attributeName,n=e.target.getAttribute(r);if("value"===r){let r=aR(t),i=t.tagName;n=aM(t,i,r);let a=aE({maskInputOptions:this.maskInputOptions,tagName:i,type:r});n=aC({isMasked:a1(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a),element:t,value:n,maskInputFn:this.maskInputFn})}if(si(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||n===e.oldValue)return;let i=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(n)){if(sC(t))return;r="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}}
25,this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!aK(t.tagName,r)&&(i.attributes[r]=aY(this.doc,aO(t.tagName),aO(r),n,t,this.maskAttributeFn),"style"===r)){let r=e.oldValue?this.styleDeclarationParser.parse(e.oldValue):null;for(let e of Array.from(t.style)){let n=t.style.getPropertyValue(e),a=t.style.getPropertyPriority(e);n!==(r?.getPropertyValue(e)||"")||a!==(r?.getPropertyPriority(e)||"")?""===a?i.styleDiff[e]=n:i.styleDiff[e]=[n,a]:i._unchangedStyles[e]=[n,a]}if(r)for(let e of Array.from(r))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(si(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t),n=ax(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);si(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||sa(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(sj(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(ax(t))return!1;let n=r.getId(t);return!r.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,r))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[sR(r,n)]?sj(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!!(ax(e.target)&&a_(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(sa(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[sR(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!si(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),su(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(t=>{this[t]=e[t]}),this.styleDeclarationParser=new sT(this.doc)}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function sj(e,t){e.delete(t),t.childNodes?.forEach(t=>sj(e,t))}function sN(e,t,r){return 0!==e.length&&function(e,t,r){let n=t.parentNode;for(;n;){let t=r.getId(n);if(e.some(e=>e.id===t))return!0;n=n.parentNode}return!1}(e,t,r)}function sL(e,t){return 0!==e.size&&function e(t,r){let{parentNode:n}=r;return!!n&&(!!t.has(n)||e(t,n))}(e,t)}let sP=[];function sI(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function sD(e,t){let r=new sM;sP.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver,i=window?.Zone?.__symbol__?.("MutationObserver");i&&window[i]&&(n=window[i]);let a=new n(s_(t=>{e.onMutation&&!1===e.onMutation(t)||r.processMutations.bind(r)(t)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function sF({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,sampling:s}){return a4("scroll",s_(a7(s_(s=>{let o=sI(s);if(!o||si(o,n,i,a,!0))return;let l=r.getId(o);if(o===t&&t.defaultView){let r=se(t.defaultView);e({id:l,x:r.left,y:r.top})}else e({id:l,x:o.scrollLeft,y:o.scrollTop})}),s.scroll||100)),t)}let s$=["INPUT","TEXTAREA","SELECT"],sB=new WeakMap;function sU(e){var t;return t=[],sW("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||sW("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||sW("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||sW("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?t.unshift(Array.from(e.parentRule.cssRules).indexOf(e)):e.parentStyleSheet&&t.unshift(Array.from(e.parentStyleSheet.cssRules).indexOf(e)),t}function sH(e,t,r){let n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function sz({mirror:e,stylesheetManager:t},r){let n=null;n="#document"===r.nodeName?e.getId(r):e.getId(r.host);let i="#document"===r.nodeName?r.defaultView?.Document:r.ownerDocument?.defaultView?.ShadowRoot,a=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,"adoptedStyleSheets"):void 0;return null!==n&&-1!==n&&i&&a?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return a.get?.call(this)},set(e){let r=a.set?.call(this,e);if(null!==n&&-1!==n)try{t.adoptStyleSheets(e,n)}catch(e){}return r}}),s_(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})})):()=>{}}function sV(e,t={}){let r;let n=e.doc.defaultView;if(!n)return()=>{};e.recordDOM&&(r=sD(e,e.doc));let i=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){let i;if(!1===t.mousemove)return()=>{};let a="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,o=[],l=a7(s_(t=>{let r=Date.now()-i;e(o.map(e=>(e.timeOffset-=r,e)),t),o=[],i=null}),s),u=s_(a7(s_(e=>{let t=sI(e),{clientX:r,clientY:a}=ss(e)?e.changedTouches[0]:e;i||(i=a9()),o.push({x:r,y:a,id:n.getId(t),timeOffset:a9()-i}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?sy.Drag:e instanceof MouseEvent?sy.MouseMove:sy.TouchMove)}),a,{trailing:!1})),c=[a4("mousemove",u,r),a4("touchmove",u,r),a4("drag",u,r)];return s_(()=>
25{c.forEach(e=>e())})}(e),a=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,sampling:s}){if(!1===s.mouseInteraction)return()=>{};let o=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,l=[],u=null,c=t=>s=>{let o=sI(s);if(si(o,n,i,a,!0))return;let l=null,c=t;if("pointerType"in s){switch(s.pointerType){case"mouse":l=sb.Mouse;break;case"touch":l=sb.Touch;break;case"pen":l=sb.Pen}l===sb.Touch?sv[t]===sv.MouseDown?c="TouchStart":sv[t]===sv.MouseUp&&(c="TouchEnd"):sb.Pen}else ss(s)&&(l=sb.Touch);null!==l?(u=l,(c.startsWith("Touch")&&l===sb.Touch||c.startsWith("Mouse")&&l===sb.Mouse)&&(l=null)):sv[t]===sv.Click&&(l=u,u=null);let d=ss(s)?s.changedTouches[0]:s;if(!d)return;let f=r.getId(o),{clientX:p,clientY:h}=d;s_(e)({type:sv[c],id:f,x:p,y:h,...null!==l&&{pointerType:l}})};return Object.keys(sv).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e]).forEach(e=>{let r=aO(e),n=c(e);if(window.PointerEvent)switch(sv[e]){case sv.MouseDown:case sv.MouseUp:r=r.replace("mouse","pointer");break;case sv.TouchStart:case sv.TouchEnd:return}l.push(a4(r,n,t))}),s_(()=>{l.forEach(e=>e())})}(e),s=sF(e),o=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return a4("resize",s_(a7(s_(()=>{let t=st(),i=sr();(r!==t||n!==i)&&(e({width:Number(i),height:Number(t)}),r=t,n=i)}),200)),t)}(e,{win:n}),l=function({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,ignoreClass:s,ignoreSelector:o,maskInputOptions:l,maskInputFn:u,sampling:c,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m}){function g(e){let r=sI(e),c=e.isTrusted,g=r&&aT(r.tagName);if("OPTION"===g&&(r=r.parentElement),!r||!g||0>s$.indexOf(g)||si(r,n,i,a,!0))return;let v=r;if(v.classList.contains(s)||o&&v.matches(o))return;let b=aR(r),x=aM(v,g,b),_=!1,w=aE({maskInputOptions:l,tagName:g,type:b}),k=a1(r,f,h,p,m,w);("radio"===b||"checkbox"===b)&&(_=r.checked),x=aC({isMasked:k,element:r,value:x,maskInputFn:u}),y(r,d?{text:x,isChecked:_,userTriggered:c}:{text:x,isChecked:_});let S=r.name;"radio"===b&&S&&_&&t.querySelectorAll(`input[type="radio"][name="${S}"]`).forEach(e=>{if(e!==r){let t=aC({isMasked:k,element:e,value:aM(e,g,b),maskInputFn:u});y(e,d?{text:t,isChecked:!_,userTriggered:!1}:{text:t,isChecked:!_})}})}function y(t,n){let i=sB.get(t);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){sB.set(t,n);let i=r.getId(t);s_(e)({...n,id:i})}}let v=("last"===c.input?["change"]:["input","change"]).map(e=>a4(e,s_(g),t)),b=t.defaultView;if(!b)return()=>{v.forEach(e=>e())};let x=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),_=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return x&&x.set&&v.push(..._.map(e=>(function e(t,r,n,i,a=window){let s=a.Object.getOwnPropertyDescriptor(t,r);return a.Object.defineProperty(t,r,i?n:{set(e){sm(()=>{n.set.call(this,e)},0),s&&s.set&&s.set.call(this,e)}}),()=>e(t,r,s||{},!0)})(e[0],e[1],{set(){s_(g)({target:this,isTrusted:!1})}},!1,b))),s_(()=>{v.forEach(e=>e())})}(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:i,sampling:a,doc:s}){let o=s_(s=>a7(s_(a=>{let o=sI(a);if(!o||si(o,t,r,n,!0))return;let{currentTime:l,volume:u,muted:c,playbackRate:d}=o;e({type:s,id:i.getId(o),currentTime:l,volume:u,muted:c,playbackRate:d})}),a.media||500)),l=[a4("play",o(sx.Play),s),a4("pause",o(sx.Pause),s),a4("seeked",o(sx.Seeked),s),a4("volumechange",o(sx.VolumeChange),s),a4("ratechange",o(sx.RateChange),s)];return s_(()=>{l.forEach(e=>e())})}(e),c=()=>{},d=()=>{},f=()=>{},p=()=>{};e.recordDOM&&(c=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){let i,a;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let s=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:s_((n,i,a)=>{let[s,o]=a,{id:l,styleId:u}=sH(i,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:s,index:o}]}),n.apply(i,a)})});let o=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:s_((n,i,a)=>{let[s]=a,{id:o,styleId:l}=sH(i,t,r.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,removes:[{index:s}]}),n.apply(i,a)})}),n.CSSStyleSheet.prototype.replace&&(i=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:s_((n,i,a)=>{let[s]=a,{id:o,styleId:l}=sH(i,t,r.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,replace:s}),n.apply(i,a)})})),n.CSSStyleSheet.prototype.replaceSync&&(a=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:s_((n,i,a)=>{let[s]=a,{id:o,styleId:l}=sH(i,t,r.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,replaceSync:s}),n.apply(i,a)})}));let l={};sq("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(sq("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),sq("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),sq("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));let u={};return Object.entries(l).forEach(([n,i])=>{u[n]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(u[n].insertRule,{apply:s_((n,i,a)=>{let[s,o]=a,{id:l,styleId:u}=sH(i.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:s,index:[...sU(i),o||0]}]}),n.apply(i,a)})}),i.prototype.deleteRule=new Proxy(u[n].deleteRule,{apply:s_((n,i,a)=>{let[s]=a,{id:o,styleId:l}=sH(i.parentStyleSheet,t,r.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,removes:[{index:[...sU(i),s]}]}),n.apply(i,a)})})}),s_(()=>{n.CSSStyleSheet.prototype.insertRule=s,n.CSSStyleSheet.prototype.deleteRule=o,i&&(n.CSSStyleSheet.prototype.replace=i),a&&(n.CSSStyleSheet.prototype.replaceSync=a),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}(e,{win:n}),d=sz(e,e.doc),f=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:i}){let a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:s_((i,s,o)=>{let[l,u,c]=o;if(r.has(l))return a.apply(s,[l,u,c]);let{id:d,styleId:f}=sH(s.parentRule?.parentStyleSheet,t,n.styleMirror);return(d&&-1!==d||f&&-1!==f)&&e({id:d,styleId:f,set:{property:l,value:u,priority:c},index:sU(s.parentRule)}),i.apply(s,o)})});let s=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:s_((i,a,o)=>{let[l]=o;if(r.has(l))return s.apply(a,[l]);let{id:u,styleId:c}=sH(a.parentRule?.parentStyleSheet,t,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,remove:{property:l},index:sU(a.parentRule)}),i.apply(a,o)})}),s_(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=s})}(e,{win:n}),e.collectFonts&&(p=function({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let n=[],i=new WeakMap,a=r.FontFace;r.FontFace=function(e,t,r){let n=new a(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};let s=a8(t.fonts,"add",function(t){return function(r){return sm(s_(()=>{let t=i.get(r);t&&(e(t),i.delete(r))}),0),t.apply(this,[r])}});return n.push(()=>{r.FontFace=a}),n.push(s),s_(()=>
25{n.forEach(e=>e())})}(e)));let h=function(e){let{doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,selectionCb:s}=e,o=!0,l=s_(()=>{let e=t.getSelection();if(!e||o&&e?.isCollapsed)return;o=e.isCollapsed||!1;let l=[],u=e.rangeCount||0;for(let t=0;t<u;t++){let{startContainer:s,startOffset:o,endContainer:u,endOffset:c}=e.getRangeAt(t);si(s,n,i,a,!0)||si(u,n,i,a,!0)||l.push({start:r.getId(s),startOffset:o,end:r.getId(u),endOffset:c})}s({ranges:l})});return l(),a4("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){let r=e.defaultView;return r&&r.customElements?a8(r.customElements,"define",function(e){return function(r,n,i){try{t({define:{name:r}})}catch(e){}return e.apply(this,[r,n,i])}}):()=>{}}(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,n,t.options));return s_(()=>{sP.forEach(e=>e.reset()),r?.disconnect(),i(),a(),s(),o(),l(),u(),c(),d(),f(),p(),h(),m(),g.forEach(e=>e())})}function sW(e){return void 0!==window[e]}function sq(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class sG{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){let i=r||this.getIdToRemoteIdMap(e),a=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),a.set(s,t)),s}getIds(e,t){let r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,n))}getRemoteId(e,t,r){let n=r||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:n.get(t)||-1}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class sZ{constructor(){this.crossOriginIframeMirror=new sG(aB),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class sJ{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new sG(aB),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new sG(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0);let t=sO(e);t&&this.crossOriginIframeMap.set(t,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&sO(e)?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);let r=sC(e);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case sg.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:sg.IncrementalSnapshot,data:{source:sy.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case sg.Meta:case sg.Load:case sg.DomContentLoaded:break;case sg.Plugin:return t;case sg.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case sg.IncrementalSnapshot:switch(t.data.source){case sy.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}
25),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case sy.Drag:case sy.TouchMove:case sy.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case sy.ViewportResize:return!1;case sy.MediaInteraction:case sy.MouseInteraction:case sy.Scroll:case sy.CanvasMutation:case sy.Input:return this.replaceIds(t.data,e,["id"]),t;case sy.StyleSheetRule:case sy.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case sy.Font:return t;case sy.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case sy.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,n){for(let i of n)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(r,t[i]):t[i]=e.getId(r,t[i]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===ab.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class sX{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class sY{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!a_(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let r=sD({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(sF({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),sm(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(sz({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=sC(e),r=sO(e);t&&r&&this.patchAttachShadow(r.Element,t)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(a8(e.prototype,"attachShadow",function(e){return function(n){let i=e.call(this,n);return this.shadowRoot&&sf(this)&&r.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class sK{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new sc,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let r={id:t,styleIds:[]},n=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:ak(e),index:t}))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class sQ{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){sh("requestAnimationFrame")(...e)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}
25try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let s0=new aS;function s1(e={}){let t;let{emit:r,checkoutEveryNms:n,checkoutEveryNth:i,blockClass:a="rr-block",blockSelector:s=null,unblockSelector:o=null,ignoreClass:l="rr-ignore",ignoreSelector:u=null,maskAllText:c=!1,maskTextClass:d="rr-mask",unmaskTextClass:f=null,maskTextSelector:p=null,unmaskTextSelector:h=null,inlineStylesheet:m=!0,maskAllInputs:b,maskInputOptions:x,slimDOMOptions:_,maskAttributeFn:w,maskInputFn:k,maskTextFn:S,maxCanvasSize:E=null,packFn:C,sampling:O={},dataURLOptions:T={},mousemoveWait:A,recordDOM:R=!0,recordCanvas:M=!1,recordCrossOriginIframes:j=!1,recordAfter:N="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:L=!1,collectFonts:P=!1,inlineImages:I=!1,plugins:D,keepIframeSrcFn:F=()=>!1,ignoreCSSAttributes:$=new Set([]),errorHandler:B,onMutation:U,getCanvasManager:H}=e;g=B;let z=!j||window.parent===window,V=!1;if(!z)try{window.parent.document&&(V=!1)}catch(e){V=!0}if(z&&!r)throw Error("emit function is required");if(!z&&!V)return()=>{};void 0!==A&&void 0===O.mousemove&&(O.mousemove=A),s0.reset();let W=!0===b?{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!==x?x:{},q=!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===_,headMetaDescKeywords:"all"===_}:_||{};!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}();let G=0,Z=e=>{for(let t of D||[])t.eventProcessor&&(e=t.eventProcessor(e));return C&&!V&&(e=C(e)),e};y=(e,a)=>{if(e.timestamp=a9(),sP[0]?.isFrozen()&&e.type!==sg.FullSnapshot&&!(e.type===sg.IncrementalSnapshot&&e.data.source===sy.Mutation)&&sP.forEach(e=>e.unfreeze()),z)r?.(Z(e),a);else if(V){let t={type:"rrweb",event:Z(e),origin:window.location.origin,isCheckout:a};window.parent.postMessage(t,"*")}if(e.type===sg.FullSnapshot)t=e,G=0;else if(e.type===sg.IncrementalSnapshot){if(e.data.source===sy.Mutation&&e.data.isAttachIframe)return;G++;let r=i&&G>=i,a=n&&t&&e.timestamp-t.timestamp>n;(r||a)&&en(!0)}};let J=e=>{y({type:sg.IncrementalSnapshot,data:{source:sy.Mutation,...e}})},X=e=>y({type:sg.IncrementalSnapshot,data:{source:sy.Scroll,...e}}),Y=e=>y({type:sg.IncrementalSnapshot,data:{source:sy.CanvasMutation,...e}}),K=new sK({mutationCb:J,adoptedStyleSheetCb:e=>y({type:sg.IncrementalSnapshot,data:{source:sy.AdoptedStyleSheet,...e}})}),Q="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new sZ:new sJ({mirror:s0,mutationCb:J,stylesheetManager:K,recordCrossOriginIframes:j,wrappedEmit:y});for(let e of D||[])e.getMirror&&e.getMirror({nodeMirror:s0,crossOriginIframeMirror:Q.crossOriginIframeMirror,crossOriginIframeStyleMirror:Q.crossOriginIframeStyleMirror});let ee=new sQ,et=function(e,t){try{return e?e(t):new sE}catch{return console.warn("Unable to initialize CanvasManager"),new sE}}(H,{mirror:s0,win:window,mutationCb:e=>y({type:sg.IncrementalSnapshot,data:{source:sy.CanvasMutation,...e}}),recordCanvas:M,blockClass:a,blockSelector:s,unblockSelector:o,maxCanvasSize:E,sampling:O.canvas,dataURLOptions:T,errorHandler:B}),er="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new sX:new sY({mutationCb:J,scrollCb:X,bypassOptions:{onMutation:U,blockClass:a,blockSelector:s,unblockSelector:o,maskAllText:c,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:m,maskInputOptions:W,dataURLOptions:T,maskAttributeFn:w,maskTextFn:S,maskInputFn:k,recordCanvas:M,inlineImages:I,sampling:O,slimDOMOptions:q,iframeManager:Q,stylesheetManager:K,
25canvasManager:et,keepIframeSrcFn:F,processedNodeManager:ee,ignoreCSSAttributes:$},mirror:s0}),en=(e=!1)=>{if(!R)return;y({type:sg.Meta,data:{href:window.location.href,width:sr(),height:st()}},e),K.reset(),er.init(),sP.forEach(e=>e.lock());let t=function(e,t){let{mirror:r=new aS,blockClass:n="rr-block",blockSelector:i=null,unblockSelector:a=null,maskAllText:s=!1,maskTextClass:o="rr-mask",unmaskTextClass:l=null,maskTextSelector:u=null,unmaskTextSelector:c=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:x,onSerialize:_,onIframeLoad:w,iframeLoadTimeout:k,onBlockedImageLoad:S,onStylesheetLoad:E,stylesheetLoadTimeout:C,keepIframeSrcFn:O=()=>!1,ignoreCSSAttributes:T=new Set([])}=t||{};return a3(e,{doc:e,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,maskAllText:s,maskTextClass:o,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:c,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{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===h?{}:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:b,inlineImages:f,recordCanvas:p,preserveWhiteSpace:x,onSerialize:_,onIframeLoad:w,iframeLoadTimeout:k,onBlockedImageLoad:S,onStylesheetLoad:E,stylesheetLoadTimeout:C,keepIframeSrcFn:O,newlyAddedElement:!1,ignoreCSSAttributes:T})}(document,{mirror:s0,blockClass:a,blockSelector:s,unblockSelector:o,maskAllText:c,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:m,maskAllInputs:W,maskAttributeFn:w,maskInputFn:k,maskTextFn:S,slimDOM:q,dataURLOptions:T,recordCanvas:M,inlineImages:I,onSerialize:e=>{so(e,s0)&&Q.addIframe(e),sl(e,s0)&&K.trackLinkElement(e),su(e)&&er.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Q.attachIframe(e,t);let r=sO(e);r&&et.addWindow(r),er.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{K.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{J({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},keepIframeSrcFn:F,ignoreCSSAttributes:$});if(!t)return console.warn("Failed to snapshot the document");y({type:sg.FullSnapshot,data:{node:t,initialOffset:se(window)}}),sP.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&K.adoptStyleSheets(document.adoptedStyleSheets,s0.getId(document))};v=en;try{let e=[],t=e=>s_(sV)({onMutation:U,mutationCb:J,mousemoveCb:(e,t)=>y({type:sg.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>y({type:sg.IncrementalSnapshot,data:{source:sy.MouseInteraction,...e}}),scrollCb:X,viewportResizeCb:e=>y({type:sg.IncrementalSnapshot,data:{source:sy.ViewportResize,...e}}),inputCb:e=>y({type:sg.IncrementalSnapshot,data:{source:sy.Input,...e}}),mediaInteractionCb:e=>y({type:sg.IncrementalSnapshot,data:{source:sy.MediaInteraction,...e}}),styleSheetRuleCb:e=>y({type:sg.IncrementalSnapshot,data:{source:sy.StyleSheetRule,...e}}),styleDeclarationCb:e=>y({type:sg.IncrementalSnapshot,data:{source:sy.StyleDeclaration,...e}}),canvasMutationCb:Y,fontCb:e=>y({type:sg.IncrementalSnapshot,data:{source:sy.Font,...e}}),selectionCb:e=>{y({type:sg.IncrementalSnapshot,data:{source:sy.Selection,...e}})},customElementCb:e=>{y({type:sg.IncrementalSnapshot,data:{source:sy.CustomElement,...e}})},blockClass:a,ignoreClass:l,ignoreSelector:u,maskAllText:c,maskTextClass:d,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:h,maskInputOptions:W,inlineStylesheet:m,sampling:O,recordDOM:R,recordCanvas:M,inlineImages:I,userTriggeredOnInput:L,collectFonts:P,doc:e,maskAttributeFn:w,maskInputFn:k,maskTextFn:S,keepIframeSrcFn:F,blockSelector:s,unblockSelector:o,slimDOMOptions:q,dataURLOptions:T,mirror:s0,iframeManager:Q,stylesheetManager:K,shadowDomManager:er,processedNodeManager:ee,canvasManager:et,ignoreCSSAttributes:$,plugins:D?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>y({type:sg.Plugin,data:{plugin:e.name,payload:t}}
25)}))||[]},{});Q.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});let r=()=>{en(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(a4("DOMContentLoaded",()=>{y({type:sg.DomContentLoaded,data:{}}),"DOMContentLoaded"===N&&r()})),e.push(a4("load",()=>{y({type:sg.Load,data:{}}),"load"===N&&r()},window))),()=>{e.forEach(e=>e()),ee.destroy(),v=void 0,g=void 0}}catch(e){console.warn(e)}}function s2(e){return e>9999999999?e:1e3*e}function s3(e){return e>9999999999?e/1e3:e}function s4(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:sg.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,ea.Fv)(t,10,1e3)}}),"console"===t.category)))}function s5(e){return e.closest("button,a")||e}function s6(e){let t=s7(e);return t&&t instanceof Element?s5(t):t}function s7(e){return(0,eD.yD)(e)&&"target"in e?e.target:e}s1.mirror=s0,s1.takeFullSnapshot=function(e){if(!v)throw Error("please take full snapshot after start recording");v(e)},(O=A||(A={}))[O.NotStarted=0]="NotStarted",O[O.Running=1]="Running",O[O.Stopped=2]="Stopped";let s8=new Set([sy.Mutation,sy.StyleSheetRule,sy.StyleDeclaration,sy.AdoptedStyleSheet,sy.CanvasMutation,sy.Selection,sy.MediaInteraction]);class s9{constructor(e,t,r=s4){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){var e;let t=(e=()=>{this._lastMutation=ot()},b||(b=[],(0,Z.hl)(ap,"open",function(e){return function(...t){if(b)try{b.forEach(e=>e())}catch{}return e.apply(ap,t)}})),b.push(e),()=>{let t=b?b.indexOf(e):-1;t>-1&&b.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var r;if(r=this._ignoreSelector,!oe.includes(t.tagName)||"INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||"")||"A"===t.tagName&&(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target"))||r&&t.matches(r)||!(e.data&&"number"==typeof e.data.nodeId&&e.timestamp))return;let n={timestamp:s3(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===n.node&&1>Math.abs(e.timestamp-n.timestamp))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=s3(e)}registerScroll(e=Date.now()){this._lastScroll=s3(e)}registerClick(e){let t=s5(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=ot();for(let r of(this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=t&&e.push(r)}),e)){let e=this._clicks.indexOf(r);e>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:i,clickBreadcrumb:a}=e;if(!r&&!n){let r=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),n=r<1e3*this._timeout?"mutation":"timeout",s={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:ap.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:i||1}};this._addBreadcrumbEvent(t,s);return}if(i>1){let e={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:ap.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=rI(()=>this._checkClicks(),1e3)}}let oe=["A","BUTTON","INPUT"];function ot(){return Date.now()/1e3}function or(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var on=((T=on||{})[T.Document=0]="Document",T[T.DocumentType=1]="DocumentType",T[T.Element=2]="Element",T[T.Text=3]="Text",T[T.CDATA=4]="CDATA",T[T.Comment=5]="Comment",T);let oi=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]),oa=new Set([...oi,"data-sentry-element"]),os=e=>t=>{if(!e.isEnabled())return;let r=function(e){let{target:t,message:r}=function(e){let t;let r="click"===e.name,n=null;try{n=r?s6(e.event):s7(e.event),t=tJ(n,{maxStringLength:200})||"<unknown>"}catch{t="<unknown>"}return{target:n,message:t}}(e);return or({category:`ui.${e.name}`,...oo(t,r)})}(t);if(!r)return;let n="click"===t.name,i=n?t.event:void 0;n&&e.clickDetector&&i?.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&function(e,t,r){e.handleClick(t,r)}(e.clickDetector,r,s6(t.event)),s4(e,r)};function oo(e,t){let r=s1.mirror.getId(e),n=r&&s1.mirror.getNode(r),i=n&&s1.mirror.getMeta(n),a=i&&i.type===on.Element?i:null;return{message:t,data:a?{nodeId:r,node:{id:r,tagName:a.tagName,textContent:Array.from(a.childNodes).map(e=>
25e.type===on.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let r in e)if(oi.has(r)){let n=r;("data-testid"===r||"data-test-id"===r)&&(n="testId"),t[n]=e[r]}return!t["data-sentry-component"]&&e["data-sentry-element"]&&(t["data-sentry-component"]=e["data-sentry-element"]),t}(a.attributes)}}:{}}}let ol={resource:function(e){let{entryType:t,initiatorType:r,name:n,responseEnd:i,startTime:a,decodedBodySize:s,encodedBodySize:o,responseStatus:l,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(r)?null:{type:`${t}.${r}`,start:od(a),end:od(i),name:n,data:{size:u,statusCode:l,decodedBodySize:s,encodedBodySize:o}}},paint:function(e){let{duration:t,entryType:r,name:n,startTime:i}=e,a=od(i);return{type:r,name:n,start:a,end:a+t,data:void 0}},navigation:function(e){let{entryType:t,name:r,decodedBodySize:n,duration:i,domComplete:a,encodedBodySize:s,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,domInteractive:u,loadEventStart:c,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:h,type:m}=e;return 0===i?null:{type:`${t}.${m}`,start:od(p),end:od(a),name:r,data:{size:h,decodedBodySize:n,encodedBodySize:s,duration:i,domInteractive:u,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,loadEventStart:c,loadEventEnd:d,domComplete:a,redirectCount:f}}}};function ou(e,t){return({metric:r})=>void t.replayPerformanceEntries.push(e(r))}function oc(e){let t=ol[e.entryType];return t?t(e):null}function od(e){return(((0,eI.Z1)()||ap.performance.timeOrigin)+e)/1e3}function of(e){let t=e.entries[e.entries.length-1];return om(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function op(e){let t=[],r=[];for(let n of e.entries)if(void 0!==n.sources){let e=[];for(let t of n.sources)if(t.node){r.push(t.node);let n=s1.mirror.getId(t.node);n&&e.push(n)}t.push({value:n.value,nodeIds:e.length?e:void 0})}return om(e,"cumulative-layout-shift",r,t)}function oh(e){let t=e.entries[e.entries.length-1];return om(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function om(e,t,r,n){let i=e.value,a=e.rating,s=od(i);return{type:"web-vital",name:t,start:s,end:s,data:{value:i,size:i,rating:a,nodeIds:r?r.map(e=>s1.mirror.getId(e)):void 0,attributions:n}}}let og=["log","warn","error"],oy=function(){let e={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{e.captureExceptions,e.traceInternals}};return og.forEach(t=>{e[t]=()=>void 0}),e}();class ov extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class ob extends Error{constructor(){super("Worker destroyed")}}class ox{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new ov;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=null;for(let{timestamp:t}of this.events)(null===e||t<e)&&(e=t);return null===e?e:s2(e)}}class o_{constructor(e){this._onMessage=({data:e})=>{if("number"!=typeof e.id)return;let t=this._pending.get(e.id);if(t&&t.method===e.method){if(this._pending.delete(e.id),!e.success){t.reject(Error("Error in compression worker"));return}t.resolve(e.response)}},this._worker=e,this._id=0,this._pending=new Map,this._worker.addEventListener("message",this._onMessage)}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:r})=>{r.success?e():t(Error("Received worker message with unsuccessful status"))},{once:!0}),this._worker.addEventListener("error",e=>{t(Error(`Failed to load Replay compression worker: ${e instanceof 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}destroy(){this._worker.removeEventListener("message",this._onMessage),this._pending.forEach(e
25=>e.reject(new ob)),this._pending.clear(),this._worker.terminate()}postMessage(e,t){let r=this._getAndIncrementId();return new Promise((n,i)=>{this._pending.set(r,{method:e,resolve:n,reject:i});try{this._worker.postMessage({id:r,method:e,arg:t})}catch(e){this._pending.delete(r),i(e)}})}_getAndIncrementId(){return this._id++}}class ow{constructor(e){this._worker=new o_(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=s2(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let r=JSON.stringify(e);return(this._totalSize+=r.length,this._totalSize>2e7)?Promise.reject(new ov):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class ok{constructor(e){this._fallback=new ox,this._compression=new ow(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:r}=this._fallback,n=[];for(let t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(n),this._fallback.clear()}catch(e){if(e instanceof ob)return}}}function oS(){try{return"sessionStorage"in ap&&!!ap.sessionStorage}catch{return!1}}function oE(e){return void 0!==e&&Math.random()<e}function oC(e){if(oS())try{ap.sessionStorage.setItem(ah,JSON.stringify(e))}catch{}}function oO(e){let t=Date.now(),r=e.id||(0,B.DM)(),n=e.started||t,i=e.lastActivity||t,a=e.segmentId||0;return{id:r,started:n,lastActivity:i,segmentId:a,sampled:e.sampled,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function oT({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){let i=oO({sampled:oE(e)?"session":!!t&&"buffer",previousSessionId:n});return r&&oC(i),i}function oA(e,t,r=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=r}function oR(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!!function(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return oA(e.started,t,n)||oA(e.lastActivity,r,n)}(e,{sessionIdleExpire:t,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function oM({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:r},n){let i=n.stickySession&&function(){if(!oS())return null;try{let e=ap.sessionStorage.getItem(ah);if(!e)return null;let t=JSON.parse(e);return oO(t)}catch{return null}}();return i?oR(i,{sessionIdleExpire:e,maxReplayDuration:t})?oT(n,{previousSessionId:i.id}):i:oT(n,{previousSessionId:r})}function oj(e,t,r){return!!oL(e,t)&&(oN(e,t,r),!0)}async function oN(e,t,r){let{eventBuffer:n}=e;if(!n||n.waitForCheckout&&!r)return null;let i="buffer"===e.recordingMode;try{r&&i&&n.clear(),r&&(n.hasCheckout=!0,n.waitForCheckout=!1);let a=e.getOptions(),s=function(e,t){try{if("function"==typeof t&&e.type===sg.Custom)return t(e)}catch(e){return null}return e}(t,a.beforeAddRecordingEvent);if(!s)return;return await n.addEvent(s)}catch(a){if(!e.isEnabled())return e.handleException(a),null;let t=a&&a instanceof ov,r=(0,G.s3)();if(r&&r.recordDroppedEvent(t?"buffer_overflow":"internal_sdk_error","replay"),t&&i)return n.clear(),n.waitForCheckout=!0,null;e.handleException(a),await e.stop({reason:t?"eventBufferOverflow":"eventBufferError"})}}
25function oL(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let r=s2(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)}function oP(e,t,r){let n=e.getContext();t&&n.traceIds.size<100&&n.traceIds.add(t),r&&n.segmentNames.size<100&&n.segmentNames.add(r)}function oI(e){return"transaction"===e.type}function oD(e){return"feedback"===e.type}function oF(e){return!!e.category}function o$(){let e=(0,G.nZ)().getPropagationContext().dsc;e&&delete e.replay_id;let t=(0,K.HN)();if(t){let e=(0,eo.jC)(t);delete e.replay_id}}function oB(e){let t=(0,G.nZ)().getPropagationContext().dsc;t&&(t.replay_id=e);let r=(0,K.HN)();r&&((0,eo.jC)(r).replay_id=e)}function oU(e,t){return t.map(({type:t,start:r,end:n,name:i,data:a})=>{let s=e.throttledAddEvent({type:sg.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:r,endTimestamp:n,data:a}}});return"string"==typeof s?Promise.resolve(null):s})}function oH(e,t){e.isEnabled()&&null!==t&&!function(e,t){let r=t?.getDsn(),n=t?.getOptions().tunnel;return function(e,t){var r,n;let i=tN(e);return!(!i||tj(i))&&!!t&&((r=i.hostname)===(n=t.host)||n.length>0&&r.endsWith(`.${n}`))&&/(^|&|\?)sentry_key=/.test(i.search)}(e,r)||!!n&&af(e)===af(n)}(t.name,(0,G.s3)())&&e.addUpdate(()=>(oU(e,[t]),!0))}function oz(e){if(!e)return;let t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let r=iC(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function oV(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function oW(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let r={...e._meta},n=r.warnings||[];return r.warnings=[...n,t],e._meta=r,e}function oq(e,t){if(!t)return null;let{startTimestamp:r,endTimestamp:n,url:i,method:a,statusCode:s,request:o,response:l}=t;return{type:e,start:r/1e3,end:n/1e3,name:i,data:{method:a,statusCode:s,request:o,response:l}}}function oG(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function oZ(e,t,r){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!r)return{headers:e,size:t};let n={headers:e,size:t},{body:i,warnings:a}=function(e){if(!e||"string"!=typeof e)return{body:e};let t=e.length>15e4,r=function(e){let t=e[0],r=e[e.length-1];return"["===t&&"]"===r||"{"===t&&"}"===r}(e);if(t){let t=e.slice(0,15e4);return r?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}\u2026`,warnings:["TEXT_TRUNCATED"]}}if(r)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(r);return n.body=i,a?.length&&(n._meta={warnings:a}),n}function oJ(e,t){return Object.entries(e).reduce((r,[n,i])=>{let a=n.toLowerCase();return t.includes(a)&&e[n]&&(r[a]=i),r},{})}function oX(e,t){let r=function(e,t=ap.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(ap.location.origin))return e;let r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;let n=r.href;return!e.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):n}(e);return(0,U.U0)(r,t)}async function oY(e,t,r){try{let n=await oK(e,t,r),i=oq("resource.fetch",n);oH(r.replay,i)}catch(e){}}async function oK(e,t,r){let n=Date.now(),{startTimestamp:i=n,endTimestamp:a=n}=t,{url:s,method:o,status_code:l=0,request_body_size:u,response_body_size:c}=e.data,d=oX(s,r.networkDetailAllowUrls)&&!oX(s,r.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:a,url:s,method:o,statusCode:l,request:d?function({networkCaptureBodies:e,networkRequestHeaders:t},r,n){let i=r?1===r.length&&"string"!=typeof r[0]?o2(r[0],t):2===r.length?o2(r[1],t):{}:{};if(!e)return oZ(i,n,void 0);let[a,s]=iO(iT(r),oy),o=oZ(i,n,a);return s?oW(o,s):o}(r,t.input,u):oG(u),response:await oQ(d,r,t.response,c)}}async function oQ(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,i){if(!e&&void 0!==i)return oG(i);let a=n?o1(n.headers,r):{};if(!n||!t&&void 0!==i)return oZ(a,i,void 0);let[s,o]=await o0(n),l=function(e,{networkCaptureBodies:t,responseBodySize:r,captureDetails:n,headers:i}){try{let a=e?.length&&void 0===r?oz(e):r;if(!n)return oG(a);if(t)return oZ(i,a,e);return oZ(i,a,void 0)}catch(e){return oZ(i,r,void 0)}}(s,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:a});return o?oW(l,o):l}async function o0(e){let t=function(e){try{return e.clone()}catch(e){}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await new Promise((e,r)=>{let n=rI(()=>r(Error("Timeout while trying to read response body")),500);o3(t).then(t=>e(t),e=>r(e)).finally(()=>clearTimeout(n))})]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return[void 0,"BODY_PARSE_TIMEOUT"];return[void 0,"BODY_PARSE_ERROR"]}}function o1(e,t){let r={};return t.forEach(t=>{e.get(t)&&(r[t]=e.get(t))}),r}function o2(e,t){if(!e)return{};let r=e.headers;return r?r instanceof Headers?o1(r,t):Array.isArray(r)?{}:oJ(r,t):{}}async function o3(e){return await e.text()}async function o4(e,t,r){try{let n=function(e,t,r){let n=Date.now(),{startTimestamp:i=n,endTimestamp:a=n,input:s,xhr:o}=t,{url:l,method:u,status_code:c=0,request_body_size:d,response_body_size:f}=e.data;if(!l)return null;if(!o||!oX(l,r.networkDetailAllowUrls)||oX(l,r.networkDetailDenyUrls)){let e=oG(d);return{startTimestamp:i,endTimestamp:a,url:l,method:u,statusCode:c,request:e,response:oG(f)}}let p=o[tH],h=p?oJ(p.request_headers,r.networkRequestHeaders):{},m=oJ(iA(o),r.networkResponseHeaders),[g,y]=r.networkCaptureBodies?iO(s,oy):[void 0],[v,b]=r.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&(0,eD.yD)(e))return[JSON.stringify(e)];if(!e)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return[void 0]}(o):[void 0],x=oZ(h,d,g),_=oZ(m,f,v);return{startTimestamp:i,endTimestamp:a,url:l,method:u,statusCode:c,request:y?oW(x,y):x,response:b?oW(_,b):_}}(e,t,r),i=oq("resource.xhr",n);oH(r.replay,i)}catch(e){}}async function o5(e){try{return Promise.all(oU(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}(ap.performance.memory)]))}catch{return[]}}let o6=R.GLOBAL_OBJ.navigator;async function o7({client:e,scope:t,replayId:r,event:n}){let i={event_id:r,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",n,i);let a=await (0,eB.R)(e.getOptions(),n,i,t,e,(0,G.aF)());if(!a)return null;e.emit("postprocessEvent",a,i),a.platform=a.platform||"javascript";let s=e.getSdkMetadata(),{name:o,version:l,settings:u}=s?.sdk||{};return a.sdk={...a.sdk,name:o||"sentry.javascript.unknown",version:l||"0.0.0",settings:u},a}async function o8({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:i,session:a}){var s;let o;let l=function({recordingData:e,headers:t}){let r;let n=`${JSON.stringify(t)}
26`;if("string"==typeof e)r=`${n}${e}`;else{let t=new TextEncoder().encode(n);(r=new Uint8Array(t.length+e.length)).set(t),r.set(e,t.length)}return r}({recordingData:e,headers:{segment_id:r}}),{urls:u,errorIds:c,traceIds:d,segmentNames:f,initialTimestamp:p}=n,h=(0,G.s3)(),m=(0,G.nZ)(),g=h?.getTransport(),y=h?.getDsn();if(!h||!g||!y||!a.sampled)return Promise.resolve({});let v={type:"replay_event",replay_start_timestamp:p/1e3,timestamp:i/1e3,error_ids:c,trace_ids:d,segment_names:f,urls:u,replay_id:t,segment_id:r,replay_type:a.sampled},b=await o7({scope:m,client:h,replayId:t,event:v});if(!b)return h.recordDroppedEvent("event_processor","replay"),Promise.resolve({});delete b.sdkProcessingMetadata;let x=(s=h.getOptions().tunnel,ef(eb(b,ev(b),s,y),[[{type:"replay_event"},b],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{o=await g.send(x)}catch(t){let e=Error(am);try{e.cause=t}catch{}throw e}let _=eP({},o);if(eL(_,"replay"))throw new le(_);if("number"==typeof o.statusCode&&(o.statusCode<200||o.statusCode>=300))throw new o9(o.statusCode);return o}
26class o9 extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class le extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}class lt extends Error{constructor(){super("Session is too long, not sending replay")}}async function lr(e,t={count:0,interval:5e3}){let{recordingData:r,onError:n}=e;if(r.length)try{return await o8(e),!0}catch(r){if(r instanceof o9||r instanceof le)throw r;if((0,L.v)("Replays",{_retryCount:t.count}),n&&n(r),t.count>=3){let e=Error(`${am} - max retries exceeded`);try{e.cause=r}catch{}throw e}return t.interval*=++t.count,new Promise((r,n)=>{rI(async()=>{try{await lr(e,t),r(!0)}catch(e){n(e)}},t.interval)})}}let ln="__THROTTLED";class li{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,segmentNames:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,r){let n,i,a;let s=r?.maxWait?Math.max(r.maxWait,t):0,o=r?.setTimeoutImpl||setTimeout;function l(){return u(),n=e()}function u(){void 0!==i&&clearTimeout(i),void 0!==a&&clearTimeout(a),i=a=void 0}function c(){return i&&clearTimeout(i),i=o(l,t),s&&void 0===a&&(a=o(l,s)),n}return c.cancel=u,c.flush=function(){return void 0!==i||void 0!==a?l():n},c}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay,setTimeoutImpl:rI}),this._throttledAddEvent=function(e,t,r){let n=new Map,i=e=>{let t=e-5;n.forEach((e,r)=>{r<t&&n.delete(r)})},a=()=>[...n.values()].reduce((e,t)=>e+t,0),s=!1;return(...t)=>{let r=Math.floor(Date.now()/1e3);if(i(r),a()>=300){let e=s;return s=!0,e?"__SKIPPED":ln}s=!1;let o=n.get(r)||0;return n.set(r,o+1),e(...t)}}((e,t)=>oL(this,e)?oN(this,e,t):Promise.resolve(null),0,0);let{slowClickTimeout:r,slowClickIgnoreSelectors:n}=this.getOptions(),i=r?{threshold:Math.min(3e3,r),timeout:r,scrollTimeout:300,ignoreSelector:n?n.join(","):""}:void 0;i&&(this.clickDetector=new s9(this,i)),this._handleVisibilityChange=()=>{"visible"===ap.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=or({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=or({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let r=function(e){var t;let{metaKey:r,shiftKey:n,ctrlKey:i,altKey:a,key:s,target:o}=e;if(!o||"INPUT"===(t=o).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!s)return null;let l=r||i||a,u=1===s.length;if(!l&&u)return null;let c=tJ(o,{maxStringLength:200})||"<unknown>",d=oo(o,c);return or({category:"ui.keyDown",message:c,data:{...d.data,metaKey:r,shiftKey:n,ctrlKey:i,altKey:a,key:s}})}(t);r&&s4(e,r)}(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:r}=this._options,n=t<=0&&r<=0;this._requiresManualStart=n,!n&&(this._initializeSessionForSampling(e),this.session)&&!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",this._initializeRecording())}start(){if(this._isEnabled&&"session"===this.recordingMode||this._isEnabled&&"buffer"===this.recordingMode)return;this._updateUserActivity();let e=oM({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}
26startBuffering(){if(this._isEnabled)return;let e=oM({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var e;let t;let r=this._canvas;this._stopRecording=s1({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,t=!1,(r,n)=>{try{if(!e.checkAndHandleExpiredSession())return;let i=n||!t;t=!0,function(e){let t=e.data;if(e.type===sg.IncrementalSnapshot&&t&&"object"==typeof t&&"source"in t&&t.source===sy.Mutation&&"attributes"in t&&Array.isArray(t.attributes))for(let e of t.attributes){let t=s1.mirror.getNode(e.id),r=t&&s1.mirror.getMeta(t);if(!t||r?.type!==on.Element)continue;let n={...r.attributes},i=!1;for(let[t,r]of Object.entries(e.attributes))oa.has(t)&&(null===r?delete n[t]:n[t]=r,i=!0);i&&s1.mirror.add(t,{...r,attributes:n})}}(r),e.clickDetector&&function(e,t){try{if(3!==t.type)return;let{source:r}=t.data;if(s8.has(r)&&e.registerMutation(t.timestamp),r===sy.Scroll&&e.registerScroll(t.timestamp),t.data.source===sy.MouseInteraction){let{type:r,id:n}=t.data,i=s1.mirror.getNode(n);i instanceof HTMLElement&&r===sv.Click&&e.registerClick(i)}}catch{}}(e.clickDetector,r),e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!oj(e,r,i))return!0;if(!i)return!1;let t=e.session;if(i&&e.session?.segmentId===0&&oj(e,function(e){let t=e.getOptions();return{type:sg.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1),"buffer"===e.recordingMode&&t&&e.eventBuffer&&!t.dirty){let r=e.eventBuffer.getEarliestTimestamp();r&&(t.started=r,e.getOptions().stickySession&&oC(t))}return!!t?.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}catch(t){e.handleException(t)}}),.../iPhone|iPad|iPod/i.test(o6?.userAgent??"")||/Macintosh/i.test(o6?.userAgent??"")&&o6?.maxTouchPoints&&o6?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...r?{recordCanvas:r.recordCanvas,getCanvasManager:r.getCanvasManager,sampling:r.sampling,dataURLOptions:r.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer",G.s3()?.emit("replayEnd",{sessionId:this.session?.id,reason:t??"manual"});try{o$(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,function(){if(oS())try{ap.sessionStorage.removeItem(ah)}catch{}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording())}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();await this.flushImmediate();let r=this.stopRecording();e&&r&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession(),oB(this.session.id)),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&this._isEnabled&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){if(!e||this.session?.sampled!==!1)return this.session?.id}
26checkAndHandleExpiredSession(){if(this._lastActivity&&oA(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${ap.location.pathname}${ap.location.hash}${ap.location.search}`,t=`${ap.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let r=this._throttledAddEvent(e,t);if(r===ln){let e=or({category:"replay.throttled"});this.addUpdate(()=>!oj(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return r}getCurrentRoute(){let e=this.lastActiveSpan||(0,K.HN)(),t=e&&(0,K.Gx)(e),r=(t&&(0,K.XU)(t).data||{})[Y.Zj];if(t&&r&&["route","custom"].includes(r))return(0,K.XU)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=function(e){try{let t=e||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){let e=new Blob(['
vendor: 10,329 bytes, line 26
26var 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});
26'],{type:"text/javascript"});return URL.createObjectURL(e)}());if(!t)return;let r=new Worker(t);return new ok(r)}catch(e){}}(t);if(e)return e}return new ox}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&G.s3()?.emit("replayStart",{sessionId:this.session.id,recordingMode:this.recordingMode}),this.startRecording(),"session"===this.recordingMode&&this.session&&oB(this.session.id)}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,r=oM({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=r}_checkSession(){if(!this.session)return!1;let e=this.session;return!oR(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"sessionExpired"}),this.initializeSampling(e.id))}_addListeners(){try{ap.document.addEventListener("visibilitychange",this._handleVisibilityChange),ap.addEventListener("blur",this._handleWindowBlur),ap.addEventListener("focus",this._handleWindowFocus),ap.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(e){let t=(0,G.s3)();t$(os(e)),tW(t=>{if(!e.isEnabled())return;let r=function(e){let{from:t,to:r}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}(t);null!==r&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate(()=>(oU(e,[r]),!1)))}),function(e){let t=(0,G.s3)();t&&t.on("beforeAddBreadcrumb",t=>(function(e,t){if(!e.isEnabled()||!oF(t))return;let r=!oF(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:"console"===t.category?function(e){let t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return or(e);let r=!1,n=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(r=!0,`${e.slice(0,5e3)}\u2026`):e;if("object"==typeof e)try{let t=(0,ea.Fv)(e,7);if(JSON.stringify(t).length>5e3)return r=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}\u2026`;return t}catch{}return e});return or({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t):or(t);r&&s4(e,r)})(e,t))}(e),function(e){let t=(0,G.s3)();try{let{networkDetailAllowUrls:r,networkDetailDenyUrls:n,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:s}=e.getOptions(),o={replay:e,networkDetailAllowUrls:r,networkDetailDenyUrls:n,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,r){if(t.data)try{"xhr"===t.category&&r?.xhr&&(function(e,t){let{xhr:r,input:n}=t;if(!r)return;let i=oz(n),a=r.getResponseHeader("content-length")?oV(r.getResponseHeader("content-length")):function(e,t){try{let r="json"===t&&(0,eD.yD)(e)?JSON.stringify(e):e;return oz(r)}catch{return}}(r.response,r.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==a&&(e.data.response_body_size=a)}(t,r),o4(t,r,e)),"fetch"===t.category&&r?.input!==void 0&&(function(e,t){let{input:r,response:n}=t,i=oz(r?iT(r):void 0),a=n?oV(n.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==a&&(e.data.response_body_size=a)}(t,r),oY(t,r,e))}catch(e){}})(o,e,t))}catch{}}(e);let r=Object.assign((t,r)=>{if(e.session&&oR(e.session,{maxReplayDuration:e.getOptions().maxReplayDuration,sessionIdleExpire:e.timeouts.sessionIdleExpire})&&o$(),!e.isEnabled()||e.isPaused())return t;if("replay_event"===t.type)return delete t.breadcrumbs,t;if(t.type&&!oI(t)&&!oD(t))return t;if(!e.checkAndHandleExpiredSession())return o$(),t;if(oD(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:sg.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&&t.exception?.values?.length&&r.originalException?.__rrweb__&&!e.getOptions()._experiments.captureExceptions)return null;let n="buffer"===e.recordingMode&&t.message!==am&&!!t.exception&&!t.type&&oE(e.getOptions().errorSampleRate);if((n||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&"buffer"===e.recordingMode&&e.session?.sampled==="buffer"){let t=e.session;t.dirty=!0,e.getOptions().stickySession&&oC(t)}return t},{id:"Replay"});(0,L.Qy)(r),t&&(t.on("beforeSendEvent",t=>{e.isEnabled()&&!t.type&&function(e,t){let r=t.exception?.values?.[0]?.value;"string"==typeof r&&(r.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||r.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&s4(e,or({category:"replay.hydrate-error",data:{url:to()}}))}(e,t)}),t.on("afterSendEvent",(t,r)=>{if(!e.isEnabled()||t.type&&!oI(t))return;let n=r.statusCode;if(n&&!(n<200)&&!(n>=300)){if(oI(t)){oP(e,t.contexts?.trace?.trace_id,t.transaction);return}(function(e,t){let r=e.getContext();if(t.event_id&&r.errorIds.size<100&&r.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags?.replayId)return;let{beforeErrorSampling:n}=e.getOptions();("function"!=typeof n||n(t))&&rI(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})})(e,t)}}),t.on("createDsc",t=>{let r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)}),t.on("processSegmentSpan",t=>{e.isEnabled()&&oP(e,t.trace_id,t.name||void 0)}),t.on("spanStart",t=>{e.lastActiveSpan=t}),t.on("spanEnd",t=>{e.lastActiveSpan=t}),t.on("beforeSendFeedback",async(t,r)=>{let n=e.getSessionId();r?.includeReplay&&e.isEnabled()&&n&&t.contexts?.feedback&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=n)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}(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({entries:e}){e.forEach(t)}let n=[];
26return["navigation","paint","resource"].forEach(e=>{n.push(nW(e,r))}),n.push(nz(ou(of,e)),nH(ou(op,e)),nV(ou(oh,e))),()=>{n.forEach(e=>e())}}(this)}_removeListeners(){try{ap.document.removeEventListener("visibilitychange",this._handleVisibilityChange),ap.removeEventListener("blur",this._handleWindowBlur),ap.removeEventListener("focus",this._handleWindowFocus),ap.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){if(this.session){if(oR(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})){o$();return}e&&this._createCustomBreadcrumb(e),this.conditionalFlush()}}_doChangeToForegroundTasks(e){this.session&&this.checkAndHandleExpiredSession()&&e&&this._createCustomBreadcrumb(e)}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:sg.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(oc).filter(Boolean).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(oU(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.segmentNames.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let r=t.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}
26_popEventContext(){let 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}async _runFlush(){let e=this.getSessionId();if(this.session&&this.eventBuffer&&e&&(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents)&&(await o5(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new lt;let r=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await lr({replayId:e,recordingData:i,segmentId:n,eventContext:r,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendError"});let e=(0,G.s3)();if(e){let r;r=t instanceof le?"ratelimit_backoff":t instanceof lt?"invalid":"send_error",e.recordDroppedEvent(r,"replay")}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e||!this.checkAndHandleExpiredSession()||!this.session)return;let t=this.session.started,r=Date.now()-t;this._debouncedFlush.cancel();let n=r<this._options.minReplayDuration,i=r>this._options.maxReplayDuration+5e3;if(n||i){n&&this._debouncedFlush();return}let a=this.eventBuffer;a&&0===this.session.segmentId&&a.hasCheckout;let s=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,s&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&oC(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let r=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),n=t.join(",");return r?.matches(n)}))return!1;let r=e.length,n=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,a=n&&r>n;if(r>i||a){let e=or({category:"replay.mutations",data:{count:r,limit:a}});this._createCustomBreadcrumb(e)}return!a||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function la(e,t){return[...e,...t].join(",")}let ls='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',lo=["content-length","content-type","accept"],ll=Symbol.for("sentry__originalRequestBody"),lu=!1,lc=!1;class ld{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:i=!0,useCompression:a=!0,workerUrl:s,_experiments:o={},maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:c=!0,mutationBreadcrumbLimit:d=750,mutationLimit:f=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:v=[],networkResponseHeaders:b=[],mask:x=[],maskAttributes:_=["title","placeholder","aria-label"],unmask:w=[],block:k=[],unblock:S=[],ignore:E=[],maskFn:C,beforeAddRecordingEvent:O,beforeErrorSampling:T,onError:A,attachRawBodyFromRequest:R=!1}={}){this.name="Replay";let M=function({mask:e,unmask:t,block:r,unblock:n,ignore:i}){return{maskTextSelector:la(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:la(t,[]),blockSelector:la(r,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:la(n,[]),ignoreSelector:la(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:x,unmask:w,block:k,unblock:S,ignore:E});if(this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:C,maskInputFn:C,maskAttributeFn:(e,t,r)=>(function({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:i,value:a}){if(i.unmaskTextSelector&&e.matches(i.unmaskTextSelector))return a;let s=r.includes(t),o=n&&"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"");return s||o?a.replace(/[\S]/g,"*"):a})({maskAttributes:_,maskAllText:l,privacyOptions:M,key:e,value:t,el:r}),...M,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!o.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(r,5e4),maxReplayDuration:Math.min(n,36e5),stickySession:i,useCompression:a,workerUrl:s,blockAllMedia:c,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:f,slowClickTimeout:p,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:lf(v),networkResponseHeaders:lf(b),beforeAddRecordingEvent:O,beforeErrorSampling:T,onError:A,attachRawBodyFromRequest:R,_experiments:o},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${ls}`:ls,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&ek())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return lu}set _isInitialized(e){lu=e}afterAllSetup(e){ek()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&function(){if("undefined"==typeof Request||lc)return;let e=Request;try{let t=function(t,r){let n=new e(t,r);return r?.body!=null&&(n[ll]=r.body),n};t.prototype=e.prototype,R.GLOBAL_OBJ.Request=t,lc=!0}catch{}}(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}
26startBuffering(){this._replay&&this._replay.startBuffering()}stop(e){return this._replay?this._replay.stop({forceFlush:e?.flush??"session"===this._replay.recordingMode,reason:"manual"}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}processSpan(e){let t=this.getReplayId(!0);t&&(t7(e,{"sentry.replay_id":t}),"buffer"===this.getRecordingMode()&&t7(e,{"sentry._internal.replay_is_buffering":!0}))}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){let t=function(e,t){let r=t.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...e},i=(0,e$.o)(r.replaysSessionSampleRate),a=(0,e$.o)(r.replaysOnErrorSampleRate);return null==i&&null==a&&(0,M.Cf)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=i&&(n.sessionSampleRate=i),null!=a&&(n.errorSampleRate=a),n}(this._initialOptions,e);this._replay=new li({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function lf(e){return[...lo,...e.map(e=>e.toLowerCase())]}globalThis._sentryRewritesTunnelPath="/monitoring",globalThis.SENTRY_RELEASE={id:"95bd97bf9b5b3bdeafee5ed1b2dd904f35ceb0f0"},globalThis._sentryBasePath=void 0,globalThis._sentryNextJsVersion="14.2.35",globalThis._sentryRewriteFramesAssetPrefixPath="",globalThis._sentryAssetPrefix=void 0,globalThis._sentryExperimentalThirdPartyOriginStackFrames=void 0,globalThis._sentryRouteManifest='{"isrRoutes":[],"dynamicRoutes":[],"staticRoutes":[]}',function(e){ac&&(0,M.Cf)(()=>{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`.")}),ac=!0,e.debug&&(0,M.Cf)(()=>{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.")}),("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&function(){tu.document&&function(e){let t=iY(e)||e,r=al.get(t);if(void 0!==r)return r;let n=iX();if(!n?.isrRoutes||!Array.isArray(n.isrRoutes)||0===n.isrRoutes.length)return al.set(t,!1),!1;let i=n.isrRoutes.includes(t);return al.set(t,i),i}(tu.location.pathname)&&(e("sentry-trace"),e("baggage"));function e(e){try{let t=tu.document.querySelector(`meta[name="${e}"]`);t&&t.remove()}catch{}}}();let t={environment:e.environment||au.env.SENTRY_ENVIRONMENT||function(e){let t=e?"production":rz.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}(!0)||"production",defaultIntegrations:function(e){let t=rB(e);("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&t.push(ae());let r=ad._sentryRewriteFramesAssetPrefixPath||"",n=au.env._sentryAssetPrefix||ad._sentryAssetPrefix,i=au.env._sentryBasePath||ad._sentryBasePath,a="true"===au.env._experimentalThirdPartyOriginStackFrames||"true"===ad._experimentalThirdPartyOriginStackFrames;return t.push(as({assetPrefix:n,basePath:i,rewriteFramesAssetPrefixPath:r,experimentalThirdPartyOriginStackFrames:a})),t}(e),release:"95bd97bf9b5b3bdeafee5ed1b2dd904f35ceb0f0",...e};(function(e){let t="/monitoring";if(t&&e.dsn){let r=(0,eu.U4)(e.dsn);if(!r)return;let n=r.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(n){let i=n[1],a=n[2],s=`${t}?o=${i}&p=${r.projectId}`;a&&(s+=`&r=${a}`),e.tunnel=s}}})(t),N(t,"nextjs",["nextjs","react"]),t.ignoreSpans=[...t.ignoreSpans||[],/^\/404$/,RegExp(`^${i0}$`)],function(e){let t={...e};
26N(t,"react"),(0,L.v)("react",{version:rU.version}),function(e={}){let t=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===tu.window||tu.nw)return!1;let e=tu.chrome||tu.browser;if(!e?.runtime?.id)return!1;let t=to();return!(tu===tu.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}(),r=null==e.defaultIntegrations?rB():e.defaultIntegrations,n={...e,enabled:!t&&e.enabled,stackParser:(0,ee.Sq)(e.stackParser||rj),integrations:function(e){let t;let r=e.defaultIntegrations||[],n=e.integrations;if(r.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(n))t=[...r,...n];else if("function"==typeof n){let e=n(r);t=Array.isArray(e)?e:[e]}else t=r;return function(e){let t={};return e.forEach(e=>{let{name:r}=e,n=t[r];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)}),Object.values(t)}(t)}({integrations:e.integrations,defaultIntegrations:r}),transport:e.transport||rD};(0,ea.yo)(r$),function(e,t){!0===t.debug&&(P.X?M.fF.enable():(0,M.Cf)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,G.nZ)().update(t.initialScope);let r=new e(t);(0,G.nZ)().setClient(r),r.init()}(tp,n)}(t),(0,ea.yo)(rH)}(t);let r=(e,t)=>{var r;return(r=t?.originalException,(0,eD.VZ)(r)&&"string"==typeof r.digest&&r.digest.startsWith("NEXT_REDIRECT;")||e.exception?.values?.[0]?.value==="NEXT_REDIRECT")?null:e};r.id="NextRedirectErrorFilter",(0,L.Qy)(r)}({dsn:"https://001899fb3ad9858a4ad059b2931e2ece@o4510510627356672.ingest.us.sentry.io/4510510630567936",tracesSampleRate:1,debug:!1,replaysOnErrorSampleRate:1,replaysSessionSampleRate:.1,integrations:[new ld({maskAllText:!0,blockAllMedia:!0}),ae()],ignoreErrors:["ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications",/Failed to register a ServiceWorker/i,/ServiceWorker script.+encountered an error/i,/Service Worker script execution timed out/i,/Script .+\/sw\.js load failed/i,/ServiceWorkerContainer\.register: Scope URL is not same-origin/i,/Cannot read properties of undefined \(reading 'waiting'\)/i,/Talisman extension/i,/Error invoking postEvent/i,/Invalid call to runtime\.sendMessage/i,/invalid origin/i,/Cannot assign to read only property 'stack'/i,/Object Not Found Matching Id:/i,/Failed to fetch \(cdn\./i,/Failed to fetch.*shopimgs\.com/i,/Failed to fetch.*honey\.com/i,/supercopy-v\d+_/i,/attempted to hard navigate to the same URL/i,/Cannot read properties of null \(reading 'getBoundingClientRect'\)/i,/Failed to execute 'insertBefore' on 'Node'/i,/Failed to execute 'removeChild' on 'Node'/i],denyUrls:[/^chrome-extension:\/\//,/^moz-extension:\/\//,/^safari-extension:\/\//,/^safari-web-extension:\/\//,/\/sm\.bundle\.js$/],beforeSend(e,t){var r,n,i,a;let s=t.originalException;if(s instanceof Error&&"AbortError"===s.name)return null;let o=null===(a=e.exception)||void 0===a?void 0:null===(i=a.values)||void 0===i?void 0:null===(n=i[0])||void 0===n?void 0:null===(r=n.stacktrace)||void 0===r?void 0:r.frames;return(null==o?void 0:o.some(e=>{var t;return/workbox-window/.test(null!==(t=e.filename)&&void 0!==t?t:"")}))||"info"===e.level&&!e.exception||o&&o.length>0&&o.some(e=>{var t;let r=null!==(t=e.filename)&&void 0!==t?t:"";return/src\/client\/route-loader/.test(r)||/src\/client\/performance-relayer/.test(r)})||o&&o.length>0&&o.every(e=>{var t,r;let n=null!==(t=e.function)&&void 0!==t?t:"",i=null!==(r=e.filename)&&void 0!==r?r:"";return/\/sm\.bundle\.js$/.test(i)||/^chrome-extension:\/\//.test(i)||/^moz-extension:\/\//.test(i)||/^safari-(web-)?extension:\/\//.test(i)||/^[a-z][a-z0-9]*-v\d+_\d{10,}_/i.test(n)})?null:e},environment:"production"})},91068:function(e,t){"use strict";var r,n,i,a;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_FAST_REFRESH:function(){return d},ACTION_NAVIGATE:function(){return o},ACTION_PREFETCH:function(){return c},ACTION_REFRESH:function(){return s},ACTION_RESTORE:function(){return l},ACTION_SERVER_ACTION:function(){return f},ACTION_SERVER_PATCH:function(){return u},PrefetchCacheEntryStatus:function(){return n},PrefetchKind:function(){return r},isThenable:function(){return p}});let s="refresh",o="navigate",l="restore",u="server-patch",c="prefetch",d="fast-refresh",f="server-action";function p(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(i=r||(r={})).AUTO="auto",i.FULL="full",i.TEMPORARY="temporary",(a=n||(n={})).fresh="fresh",a.reusable="reusable",a.expired="expired",a.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
26dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},37504:function(e,t,r){"use strict";function n(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(81131),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},15501:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let n=r(38754),i=r(85893),a=n._(r(67294)),s=r(15078),o=r(78199),l=r(42996),u=r(53158),c=r(99101),d=r(4827),f=r(56555),p=r(42906),h=r(37504),m=r(47562),g=r(91068),y=new Set;function v(e,t,r,n,i,a){if(a||(0,o.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let i=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(y.has(i))return;y.add(i)}(async()=>a?e.prefetch(t,i):e.prefetch(t,r,n))().catch(e=>{})}}function b(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let x=a.default.forwardRef(function(e,t){let r,n;let{href:l,as:y,children:x,prefetch:_=null,passHref:w,replace:k,shallow:S,scroll:E,locale:C,onClick:O,onMouseEnter:T,onTouchStart:A,legacyBehavior:R=!1,...M}=e;r=x,R&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let j=a.default.useContext(d.RouterContext),N=a.default.useContext(f.AppRouterContext),L=null!=j?j:N,P=!j,I=!1!==_,D=null===_?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:F,as:$}=a.default.useMemo(()=>{if(!j){let e=b(l);return{href:e,as:y?b(y):e}}let[e,t]=(0,s.resolveHref)(j,l,!0);return{href:e,as:y?(0,s.resolveHref)(j,y):t||e}},[j,l,y]),B=a.default.useRef(F),U=a.default.useRef($);R&&(n=a.default.Children.only(r));let H=R?n&&"object"==typeof n&&n.ref:t,[z,V,W]=(0,p.useIntersection)({rootMargin:"200px"}),q=a.default.useCallback(e=>{(U.current!==$||B.current!==F)&&(W(),U.current=$,B.current=F),z(e),H&&("function"==typeof H?H(e):"object"==typeof H&&(H.current=e))},[$,H,F,W,z]);a.default.useEffect(()=>{L&&V&&I&&v(L,F,$,{locale:C},{kind:D},P)},[$,F,V,C,I,null==j?void 0:j.locale,L,P,D]);let G={ref:q,onClick(e){R||"function"!=typeof O||O(e),R&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),L&&!e.defaultPrevented&&function(e,t,r,n,i,s,l,u,c){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,o.isLocalURL)(r)))return;e.preventDefault();let f=()=>{let e=null==l||l;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:s,locale:u,scroll:e}):t[i?"replace":"push"](n||r,{scroll:e})};c?a.default.startTransition(f):f()}(e,L,F,$,k,S,E,C,P)},onMouseEnter(e){R||"function"!=typeof T||T(e),R&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),L&&(I||!P)&&v(L,F,$,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:D},P)},onTouchStart:function(e){R||"function"!=typeof A||A(e),R&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),L&&(I||!P)&&v(L,F,$,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:D},P)}};if((0,u.isAbsoluteUrl)($))G.href=$;else if(!R||w||"a"===n.type&&!("href"in n.props)){let e=void 0!==C?C:null==j?void 0:j.locale,t=(null==j?void 0:j.isLocaleDomain)&&(0,h.getDomainLocale)($,e,null==j?void 0:j.locales,null==j?void 0:j.domainLocales);G.href=t||(0,m.addBasePath)((0,c.addLocale)($,e,null==j?void 0:j.defaultLocale))}return R?a.default.cloneElement(n,G):(0,i.jsx)("a",{...M,...G,children:r})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42906:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=r(67294),i=r(14443),a="function"==typeof IntersectionObserver,s=new Map,o=[];function l(e){let{rootRef:t,rootMargin:r,disabled:l}
26=e,u=l||!a,[c,d]=(0,n.useState)(!1),f=(0,n.useRef)(null),p=(0,n.useCallback)(e=>{f.current=e},[]);return(0,n.useEffect)(()=>{if(a){if(u||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:i,elements:a}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=o.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=s.get(n)))return t;let i=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},o.push(r),s.set(r,t),t}(r);return a.set(e,t),i.observe(e),function(){if(a.delete(e),i.unobserve(e),0===a.size){i.disconnect(),s.delete(n);let e=o.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&o.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,r,t,c,f.current]),[p,c,(0,n.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},59021:function(e,t,r){"use strict";function n(){let e="undefined"!=typeof navigator&&"vibrate"in navigator,t=t=>{if(e)try{navigator.vibrate(t)}
26catch(e){}};return{light:()=>t(10),medium:()=>t([15,10,15]),heavy:()=>t([30,20,30]),success:()=>t([10,50,20]),error:()=>t([50,30,50,30,50]),custom:t,isSupported:e}}r.d(t,{OW:function(){return n}})},33215:function(e,t,r){"use strict";let n,i,a,s;r.d(t,{ZP:function(){return ru},IZ:function(){return t9}});var o,l,u,c,d={};function f(e,t){return function(){return e.apply(t,arguments)}}r.r(d),r.d(d,{hasBrowserEnv:function(){return eq},hasStandardBrowserEnv:function(){return eZ},hasStandardBrowserWebWorkerEnv:function(){return eJ},navigator:function(){return eG},origin:function(){return eX}});var p=r(83454);let{toString:h}=Object.prototype,{getPrototypeOf:m}=Object,{iterator:g,toStringTag:y}=Symbol,v=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),b=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),x=(e,t,r)=>e===Object.prototype||!r&&null===t,_=e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(b(t))return!1;let r=Object.getOwnPropertyDescriptor(e,t);return!!r&&r.configurable&&!0===r.writable})},w=(e,t)=>{let r=e,n=[];for(;null!=r&&-1===n.indexOf(r);){n.push(r);let i=m(r);if(x(r,i,r===e))break;if(v(r,t))return!0;r=i}return!1},k=(n=Object.create(null),e=>{let t=h.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())}),S=e=>(e=e.toLowerCase(),t=>k(t)===e),E=e=>t=>typeof t===e,{isArray:C}=Array,O=E("undefined");function T(e){return null!==e&&!O(e)&&null!==e.constructor&&!O(e.constructor)&&M(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let A=S("ArrayBuffer"),R=E("string"),M=E("function"),j=E("number"),N=e=>null!==e&&"object"==typeof e,L=e=>{if(!N(e))return!1;let t=m(e);return(null===t||t===Object.prototype||null===m(t))&&!w(e,y)&&!w(e,g)},P=S("Date"),I=S("File"),D=S("Blob"),F=S("FileList"),$=S("Set"),B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},U=void 0!==B.FormData?B.FormData:void 0,H=S("URLSearchParams"),[z,V,W,q]=["ReadableStream","Request","Response","Headers"].map(S);function G(e,t,{allOwnKeys:r=!1}={}){let n,i;if(null!=e){if("object"!=typeof e&&(e=[e]),C(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{let i;if(T(e))return;let a=r?Object.getOwnPropertyNames(e):Object.keys(e),s=a.length;for(n=0;n<s;n++)i=a[n],t.call(null,e[i],i,e)}}}function Z(e,t){let r;if(T(e))return null;t=t.toLowerCase();let n=Object.keys(e),i=n.length;for(;i-- >0;)if(t===(r=n[i]).toLowerCase())return r;return null}let J="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,X=e=>!O(e)&&e!==J,Y=(i="undefined"!=typeof Uint8Array&&m(Uint8Array),e=>i&&e instanceof i),K=S("HTMLFormElement"),{propertyIsEnumerable:Q}=Object.prototype,ee=S("RegExp"),et=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};G(r,(r,i)=>{let a;!1!==(a=t(r,i,e))&&(n[i]=a||r)}),Object.defineProperties(e,n)},er=S("AsyncFunction"),en=(o="function"==typeof setImmediate,l=M(J.postMessage),o?setImmediate:l?(u=`axios@${Math.random()}`,c=[],J.addEventListener("message",({source:e,data:t})=>{e===J&&t===u&&c.length&&c.shift()()},!1),e=>{c.push(e),J.postMessage(u,"*")}):e=>setTimeout(e)),ei="undefined"!=typeof queueMicrotask?queueMicrotask.bind(J):void 0!==p&&p.nextTick||en,ea=e=>null!=e&&M(e[g]);var es={isArray:C,isArrayBuffer:A,isBuffer:T,isFormData:e=>{if(!e)return!1;if(U&&e instanceof U)return!0;let t=m(e);if(!t||t===Object.prototype||!M(e.append))return!1;let r=k(e);return"formdata"===r||"object"===r&&M(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&A(e.buffer)},isString:R,isNumber:j,isBoolean:e=>!0===e||!1===e,isObject:N,isPlainObject:L,isEmptyObject:e=>{if(!N(e)||T(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:z,isRequest:V,isResponse:W,isHeaders:q,isUndefined:O,isDate:P,isFile:I,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:D,isRegExp:ee,isFunction:M,isStream:e=>N(e)&&M(e.pipe),isURLSearchParams:H,isTypedArray:Y,isFileList:F,forEac
26h:G,merge:function e(...t){let{caseless:r,skipUndefined:n}=X(this)&&this||{},i={},a=(t,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;let s=r&&"string"==typeof a&&Z(i,a)||a,o=v(i,s)?i[s]:void 0;L(o)&&L(t)?i[s]=e(o,t):L(t)?i[s]=e({},t):C(t)?i[s]=t.slice():n&&O(t)||(i[s]=t)};for(let e=0,r=t.length;e<r;e++){let r=t[e];if(!r||T(r)||(G(r,a),"object"!=typeof r||C(r)))continue;let n=Object.getOwnPropertySymbols(r);for(let e=0;e<n.length;e++){let t=n[e];Q.call(r,t)&&a(r[t],t)}}return i},extend:(e,t,r,{allOwnKeys:n}={})=>(G(t,(t,n)=>{r&&M(t)?Object.defineProperty(e,n,{__proto__:null,value:f(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,a,s;let o={};if(t=t||{},null==e)return t;do{for(a=(i=Object.getOwnPropertyNames(e)).length;a-- >0;)s=i[a],(!n||n(s,e,t))&&!o[s]&&(t[s]=e[s],o[s]=!0);e=!1!==r&&m(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:k,kindOfTest:S,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(C(e))return e;let t=e.length;if(!j(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r;let n=(e&&e[g]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r;let n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:K,hasOwnProperty:v,hasOwnProp:v,hasOwnInPrototypeChain:w,getSafeProp:(e,t)=>null!=e&&w(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;let t=m(e);if(null===t&&_(e))return e;let r=Object.create(null),n=Object.create(null),i=[],a=e;for(;null!=a&&-1===i.indexOf(a);){i.push(a);let s=a===e?t:m(a);if(x(a,s,a===e))break;let o=Object.getOwnPropertyNames(a);for(let t of(Object.getOwnPropertySymbols&&o.push(...Object.getOwnPropertySymbols(a)),o))!b(t)&&(v(n,t)||(r[t]=e[t],n[t]=!0));a=s}return r},reduceDescriptors:et,freezeMethods:e=>{et(e,(t,r)=>{if(M(e)&&["arguments","caller","callee"].includes(r))return!1;if(M(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(e=>{e.forEach(e=>{r[e]=!0})})(C(e)?e:String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Z,global:J,isContextDefined:X,isSpecCompliantForm:function(e){return!!(e&&M(e.append)&&"FormData"===e[y]&&e[g])},toJSONObject:e=>{let t=new WeakSet,r=e=>{if(N(e)){if(t.has(e))return;if(T(e))return e;if(!("toJSON"in e)){let n;if(t.add(e),$(e))for(let t of(n=[],e)){let e=r(t);O(e)||n.push(e)}else n=C(e)?[]:{},G(e,(e,t)=>{let i=r(e);O(i)||(n[t]=i)});return t.delete(e),n}}return e};return r(e)},isAsyncFn:er,isThenable:e=>e&&(N(e)||M(e))&&M(e.then)&&M(e.catch),setImmediate:en,asap:ei,isIterable:ea,isSafeIterable:e=>null!=e&&w(e,g)&&ea(e)};let eo=es.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var el=e=>{let t,r,n;let i={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim();let a=es.hasOwnProp(i,t);!t||a&&es.hasOwnProp(eo,t)||("set-cookie"===t?a?i[t].push(r):i[t]=[r]:i[t]=a?i[t]+", "+r:r)}),i};
26let eu=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),ec=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ed(e,t){return es.isArray(e)?e.map(e=>ed(e,t)):function(e){let t=0,r=e.length;for(;t<r;){let r=e.charCodeAt(t);if(9!==r&&32!==r)break;t+=1}for(;r>t;){let t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}(String(e).replace(t,""))}let ef=e=>ed(e,eu),ep=e=>ed(e,ec);function eh(e){let t=Object.create(null);return es.forEach(e.toJSON(),(e,r)=>{t[r]=ep(e)}),t}let em=Symbol("internals");function eg(e){return e&&String(e).trim().toLowerCase()}function ey(e){return!1===e||null==e?e:es.isArray(e)?e.map(ey):ef(String(e))}let ev=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function eb(e){let t=0,r=e.length;for(;t<r;){let r=e.charCodeAt(t);if(9!==r&&32!==r)break;t+=1}for(;r>t;){let t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}let ex=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function e_(e,t,r,n,i){if(es.isFunction(n))return n.call(this,t,r);if(i&&(t=r),es.isString(t)){if(es.isString(n))return -1!==t.indexOf(n);if(es.isRegExp(n))return n.test(t)}}class ew{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function i(e,t,r){let i=eg(t);if(!i)return;let a=es.findKey(n,i);a&&void 0!==n[a]&&!0!==r&&(void 0!==r||!1===n[a])||(n[a||t]=ey(e))}let a=(e,t)=>es.forEach(e,(e,r)=>i(e,r,t));if(es.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(es.isString(e)&&(e=e.trim())&&!ex(e))a(el(e),t);else if(es.isObject(e)&&es.isSafeIterable(e)){let r=Object.create(null),n,i;for(let t of e){if(!es.isArray(t))throw TypeError("Object iterator must return a key-value pair");i=t[0],es.hasOwnProp(r,i)?(n=r[i],r[i]=es.isArray(n)?[...n,t[1]]:[n,t[1]]):r[i]=t[1]}a(r,t)}else null!=e&&i(t,e,r);return this}get(e,t){if(e=eg(e)){let r=es.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t)return function(e){let t;let r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
26for(;t=n.exec(e);)r[t[1]]=t[2];return r}(e);if(es.isFunction(t))return t.call(this,e,r);if(es.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eg(e)){let r=es.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||e_(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function i(e){if(e=eg(e)){let i=es.findKey(r,e);i&&(!t||e_(r,r[i],i,t))&&(delete r[i],n=!0)}}return es.isArray(e)?e.forEach(i):i(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let i=t[r];(!e||e_(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){let t=this,r={};return es.forEach(this,(n,i)=>{let a=es.findKey(r,i);if(a){t[a]=ey(n),delete t[i];return}let s=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(i).trim();s!==i&&delete t[i],t[s]=ey(n),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return es.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&es.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){let e=this.get("set-cookie");return es.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){let t=Object.create(null),r=String(e),n=0,i=!1,a=!1;function s(e){let i=eb(r.slice(n,e)),a=i.indexOf("=");if(a<1)return;let s=eb(i.slice(0,a));if(!ev.test(s))return;let o=s.toLowerCase();if("__proto__"===o||"constructor"===o||"prototype"===o)return;let l=eb(i.slice(a+1));t[o]=function(e){let t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let r="";for(let n=1;n<t;n++){let i=e.charCodeAt(n);if(34===i||92===i&&(n+=1)>=t)return e;r+=e[n]}return r}(l)}for(let e=0;e<r.length;e++){let t=r.charCodeAt(e);i?a?a=!1:92===t?a=!0:34===t&&(i=!1):34===t?i=!0:(44===t||59===t)&&(s(e),n=e+1)}return s(r.length),t}(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[em]=this[em]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=eg(e);t[n]||(function(e,t){let r=es.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{__proto__:null,value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})})}(r,e),t[n]=!0)}return es.isArray(e)?e.forEach(n):n(e),this}}ew.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),es.reduceDescriptors(ew.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),es.freezeMethods(ew);let ek="[REDACTED ****]";function eS(e){try{return String(e)}catch(e){return""}}class eE extends Error{static from(e,t,r,n,i,a){let s=e.message;!s&&es.isArray(e.errors)&&e.errors.length&&(s=e.errors.map(e=>{try{return e&&e.message?eS(e.message):eS(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError");let o=new eE(s,t||e.code,r,n,i);return Object.defineProperty(o,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),o.name=e.name,null!=e.status&&null==o.status&&(o.status=e.status),a&&Object.assign(o,a),o}constructor(e,t,r,n,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&es.hasOwnProp(e,"redact")?e.redact:void 0,r=es.isArray(t)&&t.length>0?function(e,t){let r=new Set(t.map(e=>String(e).toLowerCase())),n=[],i=e=>{let t;if(null===e||"object"!=typeof e||es.isBuffer(e))return e;if(-1===n.indexOf(e)){if(e instanceof ew&&(e=e.toJSON()),n.push(e),es.isArray(e))t=[],e.forEach((e,r)=>{let n=i(e);es.isUndefined(n)||(t[r]=n)});else{if(!es.isPlainObject(e)&&function(e){if(es.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(es.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return n.pop(),e;for(let[n,a]of(t=Object.create(null),Object.entries(e))){let e=r.has(n.toLowerCase())?ek:i(a);es.isUndefined(e)||(t[n]=e)}}return n.pop(),t}};return i(e)}(e,t):es.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}}eE.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",eE.ERR_BAD_OPTION="ERR_BAD_OPTION",eE.ECONNABORTED="ECONNABORTED",eE.ETIMEDOUT="ETIMEDOUT",eE.ECONNREFUSED="ECONNREFUSED",eE.ERR_NETWORK="ERR_NETWORK",eE.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",eE.ERR_DEPRECATED="ERR_DEPRECATED",eE.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",eE.ERR_BAD_REQUEST="ERR_BAD_REQUEST",eE.ERR_CANCELED="ERR_CANCELED",eE.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",eE.ERR_INVALID_URL="ERR_INVALID_URL",eE.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var eC=eE;function eO(e){return es.isPlainObject(e)||es.isArray(e)}function eT(e){return es.endsWith(e,"[]")?e.slice(0,-2):e}function eA(e,t,r){return e?e.concat(t).map(function(e,t){return e=eT(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let eR=es.toFlatObject(es,{},null,function(e){return/^is[A-Z]/.test(e)});var eM=function(e,t,r){if(!es.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(e,t)=>{let n=es.getSafeProp(r,e);return es.isUndefined(n)?t:n},i=n("metaTokens",!0),a=n("visitor")||h,s=n("dots",!1),o=n("indexes",!1),l=n("Blob")||"undefined"!=typeof Blob&&Blob,u=n("maxDepth",100),c=l&&es.isSpecCompliantForm(t),d=[];if(!es.isFunction(a))throw TypeError("visitor must be a function");function f(e){if(null===e)return"";if(es.isDate(e))return e.toISOString();if(es.isBoolean(e))return e.toString();if(!c&&es.isBlob(e))throw new eC("Blob is not supported. Use a Buffer instead.");if(es.isArrayBuffer(e)||es.isTypedArray(e)){if(c&&"function"==typeof l)return new l([e]);throw new eC("Blob is not supported. Use a Buffer instead.",eC.ERR_NOT_SUPPORT)}return e}function p(e){if(e>u)throw new eC("Object is too deeply nested ("+e+" levels). Max depth: "+u,eC.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(e,r,n){let a=e;if(es.isReactNative(t)&&es.isReactNativeBlob(e))return t.append(eA(n,r,s),f(e)),!1;if(e&&!n&&"object"==typeof e){if(es.endsWith(r,"{}"))r=i?r:r.slice(0,-2),e=function(e,t){if(u===1/0)return JSON.stringify(e);let r=[];return JSON.stringify(e,function(e,t){if(!es.isObject(t))return t;for(;r.length&&r[r.length-1]!==this;)r.pop();return r.push(t),p(1+r.length-1),t})}(e,0);else{var l;if(es.isArray(e)&&(l=e,es.isArray(l)&&!l.some(eO))||(es.isFileList(e)||es.endsWith(r,"[]"))&&(a=es.toArray(e)))return r=eT(r),a.forEach(function(e,n){es.isUndefined(e)||null===e||t.append(!0===o?eA([r],n,s):null===o?r:r+"[]",f(e))}),!1}}return!!eO(e)||(t.append(eA(n,r,s),f(e)),!1)}let m=Object.assign(eR,{defaultVisitor:h,convertValue:f,isVisitable:eO});if(!es.isObject(e))throw TypeError("data must be an object");return function e(r,n,i=0){if(!es.isUndefined(r)){if(p(i),-1!==d.indexOf(r))throw Error("Circular reference detected in "+n.join("."));
26d.push(r),es.forEach(r,function(r,s){!0===(!(es.isUndefined(r)||null===r)&&a.call(t,r,es.isString(s)?s.trim():s,n,m))&&e(r,n?n.concat(s):[s],i+1)}),d.pop()}}(e),t};function ej(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function eN(e,t){this._pairs=[],e&&eM(e,this,t)}let eL=eN.prototype;function eP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function eI(e,t,r){let n;if(!t)return e;e=e||"";let i=es.isFunction(r)?{serialize:r}:r,a=es.getSafeProp(i,"encode")||eP,s=es.getSafeProp(i,"serialize");if(n=s?s(t,i):es.isURLSearchParams(t)?t.toString():new eN(t,i).toString(a)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}eL.append=function(e,t){this._pairs.push([e,t])},eL.toString=function(e){let t=e?t=>e.call(this,t,ej):ej;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let eD=Symbol("internals");function eF(e){return e?e.length:0}function e$(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function eB(e,t){let r=e.handlers,n=eF(r);r!==t.handlersRef?(t.handlersRef=r,t.handlerEntries.clear()):n!==t.handlersLength&&(n?t.handlerEntries.forEach(function(e,n){r[e.index]!==e.handler&&t.handlerEntries.delete(n)}):t.handlerEntries.clear()),t.handlersLength=n}class eU{constructor(){this.handlers=[],this[eD]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,r){let n={fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null},i=this[eD];null==this.handlers&&(this.handlers=[]),eB(this,i);let a=i.nextId++;return this.handlers.push(n),i.handlerEntries.set(a,{handler:n,index:this.handlers.length-1}),i.handlersLength=this.handlers.length,a}eject(e){let t=this[eD];eB(this,t);let r=t.handlerEntries.get(e);if(r){if(t.handlerEntries.delete(e),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,t.iterationDepth||(e$(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],eB(this,this[eD]))}forEach(e){let t=this[eD];eB(this,t),t.iterationDepth++;try{es.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(eB(this,t),e$(this.handlers),t.handlersLength=eF(this.handlers))}}}var eH={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},ez="undefined"!=typeof URLSearchParams?URLSearchParams:eN,eV="undefined"!=typeof FormData?FormData:null,eW="undefined"!=typeof Blob?Blob:null;let eq="undefined"!=typeof window&&"undefined"!=typeof document,eG="object"==typeof navigator&&navigator||void 0,eZ=eq&&(!eG||0>["ReactNative","NativeScript","NS"].indexOf(eG.product)),eJ="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,eX=eq&&window.location.href||"http://localhost";var eY={...d,isBrowser:!0,classes:{URLSearchParams:ez,FormData:eV,Blob:eW},protocols:["http","https","file","blob","url","data"]};function eK(e){if(e>100)throw new eC("FormData field is too deeply nested ("+e+" levels). Max depth: 100",eC.ERR_FORM_DATA_DEPTH_EXCEEDED)}var eQ=function(e){if(es.isFormData(e)&&es.isFunction(e.entries)){let t={};return es.forEachEntry(e,(e,r)=>{!function e(t,r,n,i){eK(i);let a=t[i++];if("__proto__"===a)return!0;let s=Number.isFinite(+a),o=i>=t.length;return(a=!a&&es.isArray(n)?n.length:a,o)?es.hasOwnProp(n,a)?n[a]=es.isArray(n[a])?n[a].concat(r):[n[a],r]:n[a]=r:(es.hasOwnProp(n,a)&&es.isObject(n[a])||(n[a]=[]),e(t,r,n[a],i)&&es.isArray(n[a])&&(n[a]=function(e){let t,r;let n={},i=Object.keys(e),a=i.length;for(t=0;t<a;t++)n[r=i[t]]=e[r];return n}(n[a]))),!s}(function(e){let t;let r=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;for(;null!==(t=n.exec(e));)eK(r.length),r.push("[]"===t[0]?"":t[1]||t[0]);return r}(e),r,t,0)}),t}return null};let e0=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),e1=(e,t)=>null!=e&&es.hasOwnProp(e,t)?e[t]:void 0,e2={transitional:eH,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r;let n=t.getContentType()||"",i=n.indexOf("application/json")>-1,a=es.isObject(e);
26if(a&&es.isHTMLForm(e)&&(e=new FormData(e)),es.isFormData(e))return i?JSON.stringify(eQ(e)):e;if(es.isArrayBuffer(e)||es.isBuffer(e)||es.isStream(e)||es.isFile(e)||es.isBlob(e)||es.isReadableStream(e))return e;if(es.isArrayBufferView(e))return e.buffer;if(es.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(a){let t=e1(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return eM(e,new eY.classes.URLSearchParams,{visitor:function(e,t,r,n){return eY.isNode&&es.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t}).toString();if((r=es.isFileList(e))||n.indexOf("multipart/form-data")>-1){let n=e1(this,"env"),i=n&&n.FormData;return eM(r?{"files[]":e}:e,i&&new i,t)}}return a||i?(t.setContentType("application/json",!1),function(e,t,r){if(es.isString(e))try{return(0,JSON.parse)(e),es.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=e1(this,"transitional")||e2.transitional,r=t&&t.forcedJSONParsing,n=e1(this,"responseType"),i="json"===n;if(es.isResponse(e)||es.isReadableStream(e))return e;if(e&&es.isString(e)&&(r&&!n||i)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e,e1(this,"parseReviver"))}catch(e){if(!r&&i){if("SyntaxError"===e.name)throw eC.from(e,eC.ERR_BAD_RESPONSE,this,null,e1(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:eY.classes.FormData,Blob:eY.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function e3(e,t){let r=this||e2,n=t||r,i=ew.from(n.headers),a=n.data;return es.forEach(e,function(e){a=e.call(r,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function e4(e){return!!(e&&e.__CANCEL__)}es.forEach(e0,e=>{e2.headers[e]={}});class e5 extends eC{constructor(e,t,r){super(null==e?"canceled":e,eC.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}}function e6(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new eC("Request failed with status code "+r.status,r.status>=400&&r.status<500?eC.ERR_BAD_REQUEST:eC.ERR_BAD_RESPONSE,r.config,r.request,r))}let e7=/[\t\n\r]/g;function e8(e){if("string"!=typeof e)return e;let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t).replace(e7,"")}function e9(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}var te=function(e,t){let r;let n=Array(e=e||10),i=Array(e),a=0,s=0;return t=void 0!==t?t:1e3,function(o){let l=Date.now(),u=i[s];r||(r=l),n[a]=o,i[a]=l;let c=s,d=0;for(;c!==a;)d+=n[c++],c%=e;if((a=(a+1)%e)===s&&(s=(s+1)%e),l-r<t)return;let f=u&&l-u;return f?Math.round(1e3*d/f):void 0}},tt=function(e,t){let r,n,i=0,a=1e3/t,s=(t,a=Date.now())=>{i=a,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),o=t-i;o>=a?s(e,t):(r=e,n||(n=setTimeout(()=>{n=null,s(r)},a-o)))},()=>r&&s(r),(...e)=>s(e)]};let tr=(e,t,r=3)=>{let n=0,i=te(50,250);return tt(r=>{if(!r||!es.isNumber(r.loaded))return;let a=r.loaded,s=r.lengthComputable?r.total:void 0,o=Math.max(0,null!=s?Math.min(a,s):a),l=Math.max(0,o-n),u=i(l);n=Math.max(n,o),e({loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s?(s-o)/u:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})},r)},tn=(e,t)=>{let r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},ti=(e,t=es.asap)=>(...r)=>t(()=>e(...r));var ta=eY.hasStandardBrowserEnv?(a=new URL(eY.origin),s=eY.navigator&&/(msie|trident)/i.test(eY.navigator.userAgent),e=>(e=new URL(e,eY.origin),a.protocol===e.protocol&&a.host===e.host&&(s||a.port===e.port))):()=>!0,ts=eY.hasStandardBrowserEnv?{write(e,t,r,n,i,a,s){if("undefined"==typeof document)return;let o=[`${e}=${encodeURIComponent(t)}`];es.isNumber(r)&&o.push(`expires=${new Date(r).toUTCString()}`),es.isString(n)&&o.push(`path=${n}`),es.isString(i)&&o.push(`domain=${i}`),!0===a&&o.push("secure"),es.isString(s)&&o.push(`SameSite=${s}`),document.cookie=o.join("; ")},read(e){if("undefined"==typeof document)return null;let t=document.cookie.split(";");for(let r=0;r<t.length;r++){let n=t[r].replace(/^\s+/,""),i=n.indexOf("=");if(-1!==i&&n.slice(0,i)===e)try{return decodeURIComponent(n.slice(i+1))}catch(e){return n.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};let to=/^https?:(?!\/\/)/i;
26function tl(e,t){if("string"==typeof e){let r=e8(e);if(to.test(r))throw new eC(`Invalid URL ${JSON.stringify(function(e){var t;let r=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${ek}@`),n=r.indexOf("#"),i=(-1===n?r:r.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${ek}`);return -1===n?i:`${i}#${(t=r.slice(n+1))?t.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,r="")=>`${t}${r}${ek}`):t}`}(r))}: missing "//" after protocol`,eC.ERR_INVALID_URL,t)}}function tu(e,t,r,n){tl(t,n);let i=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(i||!1===r)?(tl(e,n),function(e,t){if(!t)return e;let r=e.length;for(;r>0&&47===e.charCodeAt(r-1);)r--;return e.slice(0,r)+"/"+t.replace(/^\/+/,"")}(e,t)):t}let tc=e=>e instanceof ew?{...e}:e,td=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function tf(e,t){e=e||{},t=t||{};let r=Object.create(null);function n(e,t,r,n){return es.isPlainObject(e)&&es.isPlainObject(t)?es.merge.call({caseless:n},e,t):es.isPlainObject(t)?es.merge({},t):es.isArray(t)?t.slice():t}function i(e,t,r,i){return es.isUndefined(t)?es.isUndefined(e)?void 0:n(void 0,e,r,i):n(e,t,r,i)}function a(e,t){if(!es.isUndefined(t))return n(void 0,t)}function s(e,t){return es.isUndefined(t)?es.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function o(r,i,a){return es.hasOwnProp(t,a)?n(r,i):es.hasOwnProp(e,a)?n(void 0,r):void 0}Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutErrorMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:o,headers:(e,t,r)=>i(tc(e),tc(t),r,!0)};return es.forEach(td({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let a=es.hasOwnProp(l,n)?l[n]:i,s=a(es.hasOwnProp(e,n)?e[n]:void 0,es.hasOwnProp(t,n)?t[n]:void 0,n);es.isUndefined(s)&&a!==o||(r[n]=s)}),es.hasOwnProp(t,"validateStatus")&&es.isUndefined(t.validateStatus)&&!1===function(r){let n=es.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!es.isUndefined(n)){if(!es.isPlainObject(n))return;if(es.hasOwnProp(n,r))return n[r]}let i=es.hasOwnProp(e,"transitional")?e.transitional:void 0;if(es.isPlainObject(i)&&es.hasOwnProp(i,r))return i[r]}("validateStatusUndefinedResolves")&&(es.hasOwnProp(e,"validateStatus")?r.validateStatus=n(void 0,e.validateStatus):delete r.validateStatus),r}let tp=["content-type","content-length"],th=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));var tm=function(e){let t=tf({},e),r=e=>es.hasOwnProp(t,e)?t[e]:void 0,n=r("data"),i=r("withXSRFToken"),a=r("xsrfHeaderName"),s=r("xsrfCookieName"),o=r("headers"),l=r("auth"),u=r("baseURL"),c=r("allowAbsoluteUrls"),d=r("url");if(t.headers=o=ew.from(o),t.url=eI(tu(u,d,c,t),r("params"),r("paramsSerializer")),l){let t=es.getSafeProp(l,"username")||"",r=es.getSafeProp(l,"password")||"";try{o.set("Authorization","Basic "+btoa(t+":"+(r?th(r):"")))}catch(t){throw eC.from(t,eC.ERR_BAD_OPTION_VALUE,e)}}if(es.isFormData(n)){let e=es.getSafeProp(n,"getHeaders");eY.hasStandardBrowserEnv||eY.hasStandardBrowserWebWorkerEnv||es.isReactNative(n)?o.setContentType(void 0):es.isFunction(e)&&function(e,t,r){if("content-only"!==r){e.set(t);return}Object.entries(t||{}).forEach(([t,r])=>{tp.includes(t.toLowerCase())&&e.set(t,r)})}(o,e.call(n),r("formDataHeaderPolicy"))}if(eY.hasStandardBrowserEnv&&(es.isFunction(i)&&(i=i(t)),!0===i||null==i&&ta(t.url))){let e=a&&s&&ts.read(s);e&&o.set(a,e)}return t},tg="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){let n,i,a,s,o,l;let u=tm(e),c=u.data,d=ew.from(u.headers).normalize(),{responseType:f,onUploadProgress:p,onDownloadProgress:h}=u;function m(){s&&s(),o&&o(),u.cancelToken&&u.cancelToken.unsubscribe(n),u.signal&&u.signal.removeEventListener("abort",n)}let g=new XMLHttpRequest;function y(n){if(!g)return;if(0===g.status&&"file"!==(e9(e8(u.url))||e9(eY.origin))&&!(g.responseURL&&g.responseURL.startsWith("file:"))){r(new eC("Request aborted",eC.ECONNABORTED,e,g)),m(),g=null;return}try{n?l&&l(n):o&&o()}catch(e){setTimeout(()=>{throw e})}if(!g)return;let i=ew.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());e6(function(e){t(e),m()},function(e){r(e),m()},{data:f&&"text"!==f&&"json"!==f?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:i,config:e,request:g}),g=null}g.open(u.method.toUpperCase(),u.url,!0),g.timeout=u.timeout,"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&g.responseURL.startsWith("file:"))&&setTimeout(y)},g.onabort=function(){g&&(r(new eC("Request aborted",eC.ECONNABORTED,e,g)),m(),g=null)},g.onerror=function(t){let n=new eC(t&&t.message?t.message:"Network Error",eC.ERR_NETWORK,e,g);n.event=t||null,r(n),m(),g=null},g.ontimeout=function(){let t=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",n=u.transitional||eH;u.timeoutErrorMessage&&(t=u.timeoutErrorMessage),r(new eC(t,n.clarifyTimeoutError?eC.ETIMEDOUT:eC.ECONNABORTED,e,g)),m(),g=null},void 0===c&&d.setContentType(null),"setRequestHeader"in g&&es.forEac
26h(eh(d),function(e,t){g.setRequestHeader(t,e)}),es.isUndefined(u.withCredentials)||(g.withCredentials=!!u.withCredentials),f&&"json"!==f&&(g.responseType=u.responseType),h&&([a,o,l]=tr(h,!0),g.addEventListener("progress",a)),p&&g.upload&&([i,s]=tr(p),g.upload.addEventListener("progress",i),g.upload.addEventListener("loadend",s)),(u.cancelToken||u.signal)&&(n=t=>{g&&(r(!t||t.type?new e5(null,e,g):t),g.abort(),m(),g=null)},u.cancelToken&&u.cancelToken.subscribe(n),u.signal&&(u.signal.aborted?n():u.signal.addEventListener("abort",n)));let v=e9(u.url);if(v&&!eY.protocols.includes(v)){r(new eC("Unsupported protocol "+v+":",eC.ERR_BAD_REQUEST,e)),m();return}g.send(c||null)})},ty=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let r=new AbortController,n=!1,i=function(e){if(!n){n=!0,s();let t=e instanceof Error?e:this.reason;r.abort(t instanceof eC?t:new e5(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new eC(`timeout of ${t}ms exceeded`,eC.ETIMEDOUT))},t),s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>{if(!n){if(e.aborted){i.call(e);return}e.addEventListener("abort",i,{once:!0})}});let{signal:o}=r;return o.unsubscribe=()=>es.asap(s),o};let tv=function*(e,t){let r,n=e.byteLength;if(!t||n<t){yield e;return}let i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},tb=async function*(e,t){for await(let r of tx(e))yield*tv(r,t)},tx=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},t_=(e,t,r,n)=>{let i;let a=tb(e,t),s=0,o=e=>{!i&&(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await a.next();if(t){o(),e.close();return}let i=n.byteLength;if(r){let e=s+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw o(e),e}},cancel:e=>(o(e),a.return())},{highWaterMark:2})},tw=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,tk=(e,t,r)=>t+2<r&&tw(e.charCodeAt(t+1))&&tw(e.charCodeAt(t+2)),tS=e=>e<=57?e-48:(223&e)-55,tE=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,tC=e=>9===e||10===e||12===e||13===e||32===e,tO=e=>{let t=e%4;return 3*Math.floor(e/4)+(2===t?1:3===t?2:0)},tT=e=>{let t=e.length,r=0;return t>0&&61===e.charCodeAt(t-1)&&(r++,t>1&&61===e.charCodeAt(t-2)&&r++),Math.floor((t-r)*3/4)},tA=e=>{let t=e.length,r=0,n=0,i=!1;for(let a=0;a<t;a++){let s=e.charCodeAt(a);if(37===s&&tk(e,a,t)&&(s=16*tS(e.charCodeAt(a+1))+tS(e.charCodeAt(a+2)),a+=2),!tC(s)){if(61===s){n++;continue}if(!tE(s)||n>0){i=!0;continue}r++}}return i||n>2||n>0&&(r+n)%4!=0||r%4==1?tT(e):tO(r)},tR=(e,t)=>{if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let r=e.indexOf(",");if(r<0)return 0;let n=e.slice(5,r),i=e.slice(r+1);if(/;base64/i.test(n))return t(i);let a=0;for(let e=0,t=i.length;e<t;e++){let r=i.charCodeAt(e);if(37===r&&tk(i,e,t))a+=1,e+=2;else if(r<128)a+=1;else if(r<2048)a+=2;else if(r>=55296&&r<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>=56320&&t<=57343?(a+=4,e++):a+=3}else a+=3}return a},tM="1.20.0",tj={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:tN}=es,tL=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),tP=e=>{if(!es.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},tI=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},tD=e=>{let t=e.indexOf("://"),r=e;return -1!==t&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")},tF=e=>{let t;let r=void 0!==es.global&&null!==es.global?es.global:globalThis,{ReadableStream:n,TextEncoder:i}=r,{fetch:a,Request:s,Response:o}=e=es.merge.call({skipUndefined:!0},{Request:r.Request,Response:r.Response},e),l=a?tN(a):"function"==typeof fetch,u=tN(s),c=tN(o);if(!l)return!1;let d=l&&tN(n),f=l&&("function"==typeof i?(t=new i,e=>t.encode(e)):async e=>new Uint8Array(await new s(e).arrayBuffer())),p=u&&d&&tI(()=>{let e=!1,t=new s(eY.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),h=c&&d&&tI(()=>
26es.isReadableStream(new o("").body)),m={stream:h&&(e=>e.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{m[e]||(m[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new eC(`Response type '${e}' is not supported`,eC.ERR_NOT_SUPPORT,r)})});let g=async e=>{if(null==e)return 0;if(es.isBlob(e))return e.size;if(es.isSpecCompliantForm(e)){let t=new s(eY.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return es.isArrayBufferView(e)||es.isArrayBuffer(e)?e.byteLength:(es.isURLSearchParams(e)&&(e+=""),es.isString(e))?(await f(e)).byteLength:void 0},y=async(e,t)=>{let r=es.toFiniteNumber(e.getContentLength());return null==r?g(t):r};return async e=>{let t,{url:r,method:n,data:l,signal:c,cancelToken:f,timeout:v,onDownloadProgress:b,onUploadProgress:x,responseType:_,headers:w,withCredentials:k="same-origin",fetchOptions:S,maxContentLength:E,maxBodyLength:C,maxRedirects:O}=tm(e),T=es.isNumber(E)&&E>-1,A=es.isNumber(C)&&C>-1,R=a||fetch;_=_?(_+"").toLowerCase():"text";let M=ty([c,f&&f.toAbortSignal()],v),j=null,N=M&&M.unsubscribe&&(()=>{M.unsubscribe()}),L=null,P=()=>new eC("Request body larger than maxBodyLength limit",eC.ERR_BAD_REQUEST,e,j);try{let a,c;let f=(c="auth",es.hasOwnProp(e,c)?e[c]:void 0);if(f){let e=es.getSafeProp(f,"username")||"",t=es.getSafeProp(f,"password")||"";a={username:e,password:t}}if(tD(r)){let e=new URL(r,eY.origin);if(!a&&(e.username||e.password)){let t=tP(e.username),r=tP(e.password);a={username:t,password:r}}(e.username||e.password)&&(e.username="",e.password="",r=e.href)}if(a&&(w.delete("authorization"),w.set("Authorization","Basic "+btoa(tL((a.username||"")+":"+(a.password||""))))),T&&"string"==typeof r&&r.startsWith("data:")&&function(e){let t="string"==typeof e?e.indexOf("#"):-1;return tR(-1===t?e:e.slice(0,t),tA)}(r)>E)throw new eC("maxContentLength size of "+E+" exceeded",eC.ERR_BAD_RESPONSE,e,j);if(A&&"get"!==n&&"head"!==n){let e=await g(l);if("number"==typeof e&&isFinite(e)&&(t=e,e>C))throw P()}let v=A&&(es.isReadableStream(l)||es.isStream(l)),I=(e,t,r)=>t_(e,65536,e=>{if(A&&e>C)throw L=P();t&&t(e)},r);if(p&&"get"!==n&&"head"!==n&&(x||v)){if(t=null==t?await y(w,l):t,0!==t||v){let e,n=new s(r,{method:"POST",body:l,duplex:"half"});if(es.isFormData(l)&&(e=n.headers.get("content-type"))&&w.setContentType(e),n.body){let[e,r]=x&&tn(t,tr(ti(x)))||[];l=I(n.body,e,r)}}}else if(v&&!u&&d&&"get"!==n&&"head"!==n)l=I(l);else if(v&&u&&!p&&"get"!==n&&"head"!==n)throw new eC("Stream request bodies are not supported by the current fetch implementation",eC.ERR_NOT_SUPPORT,e,j);es.isString(k)||(k=k?"include":"omit");let D=u&&"credentials"in s.prototype;if(es.isFormData(l)){let e=w.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&w.delete("content-type")}w.set("User-Agent","axios/"+tM,!1);let F=null==S?S:Object.assign(Object.create(null),S);F&&(delete F.body,delete F.headers,delete F.method,delete F.signal,delete F.duplex,delete F.credentials);let $=Object.assign(Object.create(null),F,{signal:M,method:n.toUpperCase(),headers:eh(w.normalize()),body:l,duplex:"half",credentials:D?k:void 0});u&&(es.forEach(tj,(e,t)=>{void 0===$[t]&&($[t]=e)}),void 0===$.signal&&($.signal=null),void 0===$.body&&($.body=null)),0===O&&($.redirect="manual",F&&(F.redirect="manual")),j=u&&new s(r,$);let B=await (u?R(j,F):R(r,$)),U=ew.from(B.headers);if(T){let t=es.toFiniteNumber(U.getContentLength());if(null!=t&&t>E)throw new eC("maxContentLength size of "+E+" exceeded",eC.ERR_BAD_RESPONSE,e,j)}let H=h&&("stream"===_||"response"===_);if(h&&B.body&&(b||T||H&&N)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=B[e]});let r=es.toFiniteNumber(U.getContentLength()),[n,i]=b&&tn(r,tr(ti(b),!0))||[];B=new o(t_(B.body,65536,t=>{if(T&&t>E)throw new eC("maxContentLength size of "+E+" exceeded",eC.ERR_BAD_RESPONSE,e,j);n&&n(t)},()=>{i&&i(),N&&N()}),t)}_=_||"text";let z=await m[es.findKey(m,_)||"text"](B,e);if(T&&!h&&!H){let t;if(null!=z&&("number"==typeof z.byteLength?t=z.byteLength:"number"==typeof z.size?t=z.size:"string"==typeof z&&(t="function"==typeof i?new i().encode(z).byteLength:z.length)),"number"==typeof t&&t>E)throw new eC("maxContentLength size of "+E+" exceeded",eC.ERR_BAD_RESPONSE,e,j)}return!H&&N&&N(),await new Promise((t,r)=>{e6(t,r,{data:z,headers:ew.from(B.headers),status:B.status,statusText:B.statusText,config:e,request:j})})}catch(t){if(N&&N(),M&&M.aborted&&M.reason instanceof eC){let r=M.reason;throw r.config=e,j&&(r.request=j),t!==r&&Object.defineProperty(r,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,
26configurable:!0}),r}if(L)throw j&&!L.request&&(L.request=j),L;if(t instanceof eC)throw j&&!t.request&&(t.request=j),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let r=new eC("Network Error",eC.ERR_NETWORK,e,j,t&&t.response);throw Object.defineProperty(r,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),r}throw eC.from(t,t&&t.code,e,j,t&&t.response)}}},t$=new Map,tB=e=>{let t=e&&e.env||{},{fetch:r,Request:n,Response:i}=t,a=[n,i,r],s=a.length,o,l,u=t$;for(;s--;)o=a[s],void 0===(l=u.get(o))&&u.set(o,l=s?new Map:tF(t)),u=l;return l};tB();let tU={http:null,xhr:tg,fetch:{get:tB}};es.forEach(tU,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let tH=e=>`- ${e}`,tz=e=>es.isFunction(e)||null===e||!1===e;var tV=function(e,t){let r,n;let{length:i}=e=es.isArray(e)?e:[e],a={};for(let s=0;s<i;s++){let i;if(n=r=e[s],!tz(r)&&void 0===(n=tU[(i=String(r)).toLowerCase()]))throw new eC(`Unknown adapter '${i}'`);if(n&&(es.isFunction(n)||(n=n.get(t))))break;a[i||"#"+s]=n}if(!n){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new eC("There is no suitable adapter to dispatch the request "+(i?e.length>1?"since :\n"+e.map(tH).join("\n"):" "+tH(e[0]):"as no adapter specified"),eC.ERR_NOT_SUPPORT)}return n};function tW(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new e5(null,e)}function tq(e){let t=es.toSafeFlatObject(e);return tW(t),t.headers=ew.from(es.getSafeProp(t,"headers")),t.data=e3.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),tV(t.adapter||e2.adapter,t)(t).then(function(e){tW(t),t.response=e;try{e.data=e3.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=ew.from(e.headers),e},function(e){if(!e4(e)&&(tW(t),e&&e.response)){t.response=e.response;try{e.response.data=e3.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=ew.from(e.response.headers)}return Promise.reject(e)})}let tG={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{tG[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let tZ={};tG.transitional=function(e,t,r){function n(e,t){return"[Axios v"+tM+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,a)=>{if(!1===e)throw new eC(n(i," has been removed"+(t?" in "+t:"")),eC.ERR_DEPRECATED);return t&&!tZ[i]&&(tZ[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,a)}},tG.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var tJ={assertOptions:function(e,t,r){if("object"!=typeof e||null===e)throw new eC("options must be an object",eC.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let a=n[i],s=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(s){let t=e[a],r=void 0===t||s(t,a,e);if(!0!==r)throw new eC("option "+a+" must be "+r,eC.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new eC("Unknown option "+a,eC.ERR_BAD_OPTION)}},validators:tG};let tX=tJ.validators;class tY{constructor(e){this.defaults=e||{},this.interceptors={request:new eU,response:new eU}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let r=t.stack,n="";if("string"==typeof r){let e=r.indexOf("\n");n=-1===e?"":r.slice(e+1)}if(e.stack){if(n){let t=n.indexOf("\n"),r=-1===t?-1:n.indexOf("\n",t+1),i=-1===r?"":n.slice(r+1);String(e.stack).endsWith(i)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:a,headers:s}=t=tf(this.defaults,t);void 0!==i&&tJ.assertOptions(i,{silentJSONParsing:tX.transitional(tX.boolean),forcedJSONParsing:tX.transitional(tX.boolean),clarifyTimeoutError:tX.transitional(tX.boolean),legacyInterceptorReqResOrdering:tX.transitional(tX.boolean),advertiseZstdAcceptEncoding:tX.transitional(tX.boolean),validateStatusUndefinedResolves:tX.transitional(tX.boolean)}
26,!1),null!=a&&(es.isFunction(a)?t.paramsSerializer={serialize:a}:tJ.assertOptions(a,{encode:tX.function,serialize:tX.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),tJ.assertOptions(t,{baseUrl:tX.spelling("baseURL"),withXsrfToken:tX.spelling("withXSRFToken")},!0),t.method=(es.getSafeProp(t,"method")||es.getSafeProp(this.defaults,"method")||"get").toLowerCase();let o=s&&es.merge(s.common,s[t.method]);s&&es.forEach(e0.concat("common"),e=>{delete s[e]}),t.headers=ew.concat(o,s);let l=[],u=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;u=u&&e.synchronous;let r=t.transitional||eH;r&&r.legacyInterceptorReqResOrdering?l.unshift(e.fulfilled,e.rejected):l.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d=0;if(!u){let e=[tq.bind(this),void 0];for(e.unshift(...l),e.push(...c),n=e.length,r=Promise.resolve(t);d<n;)r=r.then(e[d++],e[d++]);return r}n=l.length;let f=t;for(;d<n;){let e=l[d++],t=l[d++];try{f=e?e(f):f}catch(e){if(!t){r=Promise.reject(e);break}try{let n=t.call(this,e);es.isThenable(n)&&(r=Promise.resolve(n).then(()=>tq.call(this,f)))}catch(e){r=Promise.reject(e)}break}}if(!r)try{r=tq.call(this,f)}catch(e){r=Promise.reject(e)}for(d=0,n=c.length;d<n;)r=r.then(c[d++],c[d++]);return r}getUri(e){return eI(tu((e=tf(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}es.forEach(["delete","get","head","options"],function(e){tY.prototype[e]=function(t,r){return this.request(tf(r||{},{method:e,url:t,data:r&&es.hasOwnProp(r,"data")?r.data:void 0}))}}
26),es.forEach(["post","put","patch","query"],function(e){function t(t){return function(r,n,i){return this.request(tf(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}tY.prototype[e]=t(),"query"!==e&&(tY.prototype[e+"Form"]=t(!0))});class tK{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;let n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new e5(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new tK(function(t){e=t}),cancel:e}}}let tQ={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
26alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(tQ).forEach(([e,t])=>{void 0===tQ[t]&&(tQ[t]=e)});let t0=function e(t){let r=new tY(t),n=f(tY.prototype.request,r);return es.extend(n,tY.prototype,r,{allOwnKeys:!0}),es.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(tf(t,r))},n}(e2);t0.Axios=tY,t0.CanceledError=e5,t0.CancelToken=tK,t0.isCancel=e4,t0.VERSION=tM,t0.toFormData=eM,t0.AxiosError=eC,t0.Cancel=t0.CanceledError,t0.all=function(e){return Promise.all(e)},t0.spread=function(e){return function(t){return e.apply(null,t)}},t0.isAxiosError=function(e){return es.isObject(e)&&!0===e.isAxiosError},t0.mergeConfig=tf,t0.AxiosHeaders=ew,t0.formToJSON=e=>eQ(es.isHTMLForm(e)?new FormData(e):e),t0.getAdapter=tV,t0.HttpStatusCode=tQ,t0.default=t0;let{Axios:t1,AxiosError:t2,CanceledError:t3,isCancel:t4,CancelToken:t5,VERSION:t6,all:t7,Cancel:t8,isAxiosError:t9,spread:re,toFormData:rt,AxiosHeaders:rr,HttpStatusCode:rn,formToJSON:ri,getAdapter:ra,mergeConfig:rs,create:ro}=t0,rl=t0.create({withCredentials:!0,headers:{"Content-Type":"application/json"}});t0.defaults.withCredentials=!0;var ru=rl},34362:function(e,t,r){"use strict";r.d(t,{Fz:function(){return l},Hg:function(){return i},LR:function(){return n},P9:function(){return o},gN:function(){return a},rP:function(){return s}});let n={UPVOTE_ARTICLE:0,UPVOTE_COMMENT:0,DOWNVOTE_COMMENT:50,FLAG_CONTENT:20,VOUCH_CONTENT:20,SUBMIT_ARTICLE:0},i={COMMENT_MIN_LENGTH:2,COMMENT_MAX_LENGTH:1e4,USER_ABOUT_MAX_LENGTH:500,FLAG_NOTES_MAX_LENGTH:500,MAX_CONSECUTIVE_SPACES:4,MAX_CONSECUTIVE_NEWLINES:3},a=e=>e>=n.UPVOTE_COMMENT,s=e=>e>=n.DOWNVOTE_COMMENT,o=(e,t)=>!!t||e>=n.FLAG_CONTENT,l=(e,t)=>!!t||e>=n.VOUCH_CONTENT},48451:function(){},97986:function(e){e.exports={style:{fontFamily:"'__GeistMono_f910ec', ui-monospace, SFMono-Regular, Roboto Mono, Menlo, Monaco, Liberation Mono, DejaVu Sans Mono, Courier New, monospace"},className:"__className_f910ec",variable:"__variable_f910ec"}},82597:function(e){e.exports={style:{fontFamily:"'__GeistSans_fb8f2c', '__GeistSans_Fallback_fb8f2c'"},className:"__className_fb8f2c",variable:"__variable_fb8f2c"}},77663:function(e){!function(){var t={229:function(e){var t,r,n,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var l=[],u=!1,c=-1;function d(){u&&n&&(u=!1,n.length?l=n.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=o(d);u=!0;for(var t=l.length;t;){for(n=l,l=[];++c<t;)n&&n[c].run();c=-1,t=l.length}n=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new p(e,t)),1!==l.length||u||o(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var a=r[e]={exports:{}},s=!0;try{t[e](a,a.exports,n),s=!1}finally{s&&delete r[e]}return a.exports}n.ab="//";var i=n(229);e.exports=i}()},41664:function(e,t,r){e.exports=r(15501)},11163:function(e,t,r){e.exports=r(13510)},4298:function(e,t,r){e.exports=r(87118)},86257:function(e,t,r){"use strict";
26Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=t.GoogleMapsEmbed=t.GoogleAnalytics=void 0;var n=r(53494);Object.defineProperty(t,"GoogleAnalytics",{enumerable:!0,get:function(){return n.GoogleAnalytics}});var i=r(34248);Object.defineProperty(t,"GoogleMapsEmbed",{enumerable:!0,get:function(){return i.GoogleMapsEmbed}});var a=r(92239);Object.defineProperty(t,"YouTubeEmbed",{enumerable:!0,get:function(){return a.YouTubeEmbed}})},53494:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=void 0;let a=i(r(89426)),s=r(17058);t.GoogleAnalytics=e=>{var t=n(e,[]);return(0,s.formatData)(a.default,t)}},34248:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleMapsEmbed=void 0;let a=i(r(27395)),s=r(17058);t.GoogleMapsEmbed=e=>{var t=n(e,[]);return(0,s.formatData)(a.default,t)}},92239:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=void 0;let a=i(r(88420)),s=r(17058);t.YouTubeEmbed=e=>{var t=n(e,[]);return(0,s.formatData)(a.default,t)}},17058:function(e,t){"use strict";function r(e,t,r=!1){return t?Object.keys(e).filter(e=>r?!t.includes(e):t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{}):{}}function n(e,t,r,n){let i=n&&Object.keys(n).length>0?new URL(Object.values(n)[0],e):new URL(e);return t&&r&&t.forEach(e=>{r[e]&&i.searchParams.set(e,r[e])}),i.toString()}function i(e,t,r,i,a){var s;if(!t)return`<${e}></${e}>`;let o=(null===(s=t.src)||void 0===s?void 0:s.url)?Object.assign(Object.assign({},t),{src:n(t.src.url,t.src.params,i,a)}):t,l=Object.keys(Object.assign(Object.assign({},o),r)).reduce((e,t)=>{let n=null==r?void 0:r[t],i=o[t],a=null!=n?n:i,s=!0===a?t:`${t}="${a}"`;return a?e+` ${s}`:e},"");return`<${e}${l}></${e}>`}Object.defineProperty(t,"__esModule",{value:!0}),t.formatData=t.createHtml=t.formatUrl=void 0,t.formatUrl=n,t.createHtml=i,t.formatData=function(e,t){var a,s,o,l,u;let c=r(t,null===(a=e.scripts)||void 0===a?void 0:a.reduce((e,t)=>[...e,...Array.isArray(t.params)?t.params:[]],[])),d=r(t,null===(o=null===(s=e.html)||void 0===s?void 0:s.attributes.src)||void 0===o?void 0:o.params),f=r(t,[null===(u=null===(l=e.html)||void 0===l?void 0:l.attributes.src)||void 0===u?void 0:u.slugParam]),p=r(t,[...Object.keys(c),...Object.keys(d),...Object.keys(f)],!0);return Object.assign(Object.assign({},e),{html:e.html?i(e.html.element,e.html.attributes,p,d,f):null,scripts:e.scripts?e.scripts.map(e=>Object.assign(Object.assign({},e),{url:n(e.url,e.params,c)})):null})}},83:function(e,t,r){"use strict";var n=r(67294),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,s=n.useEffect,o=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return o(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),s(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},61688:function(e,t,r){"use strict";e.exports=r(83)}
26,82531:function(e,t,r){"use strict";r.d(t,{G:function(){return m}});var n=r(13533),i=r(43927);let a=e=>e instanceof Promise&&!e[s],s=Symbol("chained PromiseLike"),o=(e,t,r)=>{let n=e.then(e=>(t(e),e),e=>{throw r(e),e});return a(n)&&a(e)?n:l(e,n)},l=(e,t)=>{if(!t)return e;let r=!1;for(let n in e){if(n in t)continue;r=!0;let i=e[n];"function"==typeof i?Object.defineProperty(t,n,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[n]=i}return r&&Object.assign(t,{[s]:!0}),t};var u=r(41745);class c{constructor(e,t){let r,n;r=e||new i.s,n=t||new i.s,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){let t;let r=this._pushScope();try{t=e(r)}catch(e){throw this._popScope(),e}return(0,u.J8)(t)?o(t,()=>this._popScope(),()=>this._popScope()):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function d(){let e=(0,n.cu)(),t=(0,n.qA)(e);return t.stack=t.stack||new c((0,n.YO)("defaultCurrentScope",()=>new i.s),(0,n.YO)("defaultIsolationScope",()=>new i.s))}function f(e){return d().withScope(e)}function p(e,t){let r=d();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function h(e){return d().withScope(()=>e(d().getIsolationScope()))}function m(e){let t=(0,n.qA)(e);return t.acs?t.acs:{withIsolationScope:h,withScope:f,withSetScope:p,withSetIsolationScope:(e,t)=>h(t),getCurrentScope:()=>d().getScope(),getIsolationScope:()=>d().getIsolationScope()}}},37895:function(e,t,r){"use strict";r.d(t,{n:function(){return s}});var n=r(73076),i=r(5824),a=r(90772);function s(e,t){let r=(0,n.s3)(),s=(0,n.aF)();if(!r)return;let{beforeBreadcrumb:o=null,maxBreadcrumbs:l=100}=r.getOptions();if(l<=0)return;let u={timestamp:(0,a.yW)(),...e},c=o?(0,i.Cf)(()=>o(u,t)):u;null!==c&&(r.emit&&r.emit("beforeAddBreadcrumb",c,t),s.addBreadcrumb(c,l))}},13533:function(e,t,r){"use strict";r.d(t,{YO:function(){return o},cu:function(){return a},qA:function(){return s}});var n=r(39494),i=r(51597);function a(){return s(i.GLOBAL_OBJ),i.GLOBAL_OBJ}function s(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||n.J,t[n.J]=t[n.J]||{}}function o(e,t,r=i.GLOBAL_OBJ){let a=r.__SENTRY__=r.__SENTRY__||{},s=a[n.J]=a[n.J]||{};return s[e]||(s[e]=t())}},73243:function(e,t,r){"use strict";r.d(t,{J:function(){return n}});let n="production"},73076:function(e,t,r){"use strict";let n;r.d(t,{$e:function(){return f},XX:function(){return h},aF:function(){return c},fU:function(){return l},lW:function(){return d},nZ:function(){return u},s3:function(){return p}});var i=r(82531),a=r(13533),s=r(43927),o=r(8151);function l(){return void 0!==n}function u(){let e=(0,a.cu)();return(0,i.G)(e).getCurrentScope()}function c(){let e=(0,a.cu)();return(0,i.G)(e).getIsolationScope()}function d(){return(0,a.YO)("globalScope",()=>new s.s)}function f(...e){let t=(0,a.cu)(),r=(0,i.G)(t);if(2===e.length){let[t,n]=e;return t?r.withSetScope(t,n):r.withScope(n)}return r.withScope(e[0])}function p(){return u().getClient()}function h(e){let t=n?.();if(t)return{trace_id:t.traceId,span_id:t.spanId};let{traceId:r,parentSpanId:i,propagationSpanId:a}=e.getPropagationContext(),s={trace_id:r,span_id:a||(0,o.M)()};return i&&(s.parent_span_id=i),s}},94223:function(e,t,r){"use strict";r.d(t,{X:function(){return n}});let n=!1},39424:function(e,t,r){"use strict";r.d(t,{Qy:function(){return g},Tb:function(){return c},_k:function(){return m},av:function(){return p},cg:function(){return x},eN:function(){return d},v:function(){return f},yj:function(){return y},yl:function(){return h}});var n=r(73076),i=r(94223),a=r(10042),s=r(5824),o=r(36360),l=r(46532),u=r(51597);function c(e,t){return(0,n.nZ)().captureException(e,(0,o.U0)(t))}function d(e,t){return(0,n.nZ)().captureEvent(e,t)}function f(e,t){(0,n.aF)().setContext(e,t)}function p(e){(0,n.aF)().setUser(e)}async function h(e){let t=(0,n.s3)();return t?t.flush(e):(i.X&&s.fF.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}function m(){let e=(0,n.s3)();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function g(e){(0,n.aF)().addEventProcessor(e)}function y(e){let t=(0,n.aF)(),{user:r}=(0,l.ZM)(t,(0,n.nZ)()),{userAgent:i}=u.GLOBAL_OBJ.navigator||{},s=(0,a.Hv)({user:r,...i&&{userAgent:i},...e}),o=t.getSession();return o?.status==="ok"&&(0,a.CT)(o,{status:"exited"}),v(),t.setSession(s),s}function v(){let e=(0,n.aF)(),t=(0,n.nZ)().getSession()||e.getSession();t&&(0,a.RJ)(t),b(),e.setSession()}function b(){let e=(0,n.aF)(),t=(0,n.s3)(),r=e.getSession();r&&t&&t.captureSession(r)}function x(e=!1){if(e){v();return}b()}},43927:function(e,t,r){"use strict";r.d(t,{s:function(){return h}});var n=r(94223),i=r(10042),a=r(5824),s=r(41745),o=r(3613),l=r(34156),u=r(8151),c=r(38044),d=r(89366),f=r(57360),p=r(90772);class h{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,u.H)(),sampleRand:(0,c.n0)()}}clone(){let e=new h;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,(0,d.D)(e,(0,d.Y)(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,i.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,{tags:r,attributes:n,extra:i,user:a,contexts:o,level:l,fingerprint:u=[],propagationContext:c,conversationId:d}=(t instanceof h?t.getScopeData():(0,s.PO)(t)?e:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...n},this._extra={...this._extra,...i},this._contexts={...this._contexts,...o},a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),u.length&&(this._fingerprint=u),c&&(this._propagationContext=c),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,(0,d.D)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,u.H)(),sampleRand:(0,c.n0)()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let r="number"==typeof t?t:100;if(r<=0)return this;let n={timestamp:(0,p.yW)(),...e,message:e.message?(0,f.$G)(e.message,2048):e.message};return this._breadcrumbs.push(n),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,d.Y)(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=(0,o.T)(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}
26captureException(e,t){let r=t?.event_id||(0,l.DM)();if(!this._client)return n.X&&a.fF.warn("No client configured on scope - will not capture exception!"),r;let i=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:r},this),r}captureMessage(e,t,r){let i=r?.event_id||(0,l.DM)();if(!this._client)return n.X&&a.fF.warn("No client configured on scope - will not capture message!"),i;let s=r?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:s,...r,event_id:i},this),i}captureEvent(e,t){let r=e.event_id||t?.event_id||(0,l.DM)();return this._client?this._client.captureEvent(e,{...t,event_id:r},this):n.X&&a.fF.warn("No client configured on scope - will not capture event!"),r}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}},31218:function(e,t,r){"use strict";r.d(t,{$J:function(){return s},Ap:function(){return g},E1:function(){return c},JQ:function(){return h},S3:function(){return o},TE:function(){return i},Wb:function(){return d},Zj:function(){return n},iT:function(){return a},ju:function(){return u},lH:function(){return m},p6:function(){return p},x0:function(){return l},xF:function(){return f}});let n="sentry.source",i="sentry.sample_rate",a="sentry.previous_trace_sample_rate",s="sentry.op",o="sentry.origin",l="sentry.status.message",u="sentry.idle_span_finish_reason",c="sentry.measurement_unit",d="sentry.measurement_value",f="sentry.custom_span_name",p="sentry.profile_id",h="sentry.exclusive_time",m="sentry.link.type",g="gen_ai.conversation.id"},10042:function(e,t,r){"use strict";r.d(t,{CT:function(){return s},Hv:function(){return a},RJ:function(){return o}});var n=r(34156),i=r(90772);function a(e){let t=(0,i.ph)(),r={sid:(0,n.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>({sid:`${r.sid}`,init:r.init,started:new Date(1e3*r.started).toISOString(),timestamp:new Date(1e3*r.timestamp).toISOString(),status:r.status,errors:r.errors,did:"number"==typeof r.did||"string"==typeof r.did?`${r.did}`:void 0,duration:r.duration,abnormal_mechanism:r.abnormal_mechanism,attrs:{release:r.release,environment:r.environment,ip_address:r.ipAddress,user_agent:r.userAgent}})};return e&&s(r,e),r}function s(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,i.ph)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,n.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function o(e,t){let r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),s(e,r)}},72123:function(e,t,r){"use strict";r.d(t,{CG:function(){return g},Lh:function(){return h},jC:function(){return y}});var n=r(73243),i=r(73076),a=r(31218),s=r(15197),o=r(52637),l=r(51072),u=r(93820),c=r(40464),d=r(58915),f=r(96515);let p="_frozenDsc";function h(e,t){(0,u.xp)(e,p,t)}function m(e,t){let r=t.getOptions(),{publicKey:i}=t.getDsn()||{},a={environment:r.environment||n.J,release:r.release,public_key:i,trace_id:e,org_id:(0,o.du)(t)};return t.emit("createDsc",a),a}function g(e,t){let r=t.getPropagationContext();return r.dsc||m(r.traceId,e)}function y(e){let t=(0,i.s3)();if(!t)return{};let r=(0,c.Gx)(e),n=(0,c.XU)(r),o=n.data,u=r.spanContext().traceState,h=u?.get("sentry.sample_rate")??o[a.TE]??o[a.iT];function y(e){return("number"==typeof h||"string"==typeof h)&&(e.sample_rate=`${h}`),e}let v=r[p];if(v)return y(v);let b=(0,d.Z)(r),x=b&&"ignored"===r.dropReason;if(b&&(!(0,l.f)(t.getOptions())||x)){let e=(0,f.I1)(r).scope;if(e){let r={...g(t,e)};return x&&(r.sampled="false"),y(r)}}let _=u?.get("sentry.dsc"),w=_&&(0,s.EN)(_);if(w)return y(w);let k=m(e.spanContext().traceId,t),S=o[a.Zj]??o["sentry.segment.name.source"],E=n.description;return"url"!==S&&E&&(k.transaction=E),(0,l.f)()&&(k.sampled=String((0,c.Tt)(r)),k.sample_rand=u?.get("sentry.sample_rand")??f.I1(r).scope?.getPropagationContext().sampleRand.toString()),y(k),t.emit("createDsc",k,r),k}},58915:function(e,t,r){"use strict";r.d(t,{Z:function(){return l},b:function(){return o}});var n=r(93820),i=r(8151),a=r(40464);let s=Symbol.for("sentry.nonRecordingSpan");class o{constructor(e={}){this._traceId=e.traceId||(0,i.H)(),this._spanId=e.spanId||(0,i.M)(),this.dropReason=e.dropReason,(0,n.xp)(this,s,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:a.ve}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}
26addEvent(e,t,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}function l(e){return!!e&&!0===e[s]}},69737:function(e,t,r){"use strict";r.d(t,{OP:function(){return i},Q0:function(){return s},jt:function(){return a},pq:function(){return n}});let n=0,i=1,a=2;function s(e,t){e.setAttribute("http.response.status_code",t);let r=function(e){if(e<400&&e>=100)return{code:i};if(e>=400&&e<500)switch(e){case 401:return{code:a,message:"unauthenticated"};case 403:return{code:a,message:"permission_denied"};case 404:return{code:a,message:"not_found"};case 409:return{code:a,message:"already_exists"};case 413:return{code:a,message:"failed_precondition"};case 429:return{code:a,message:"resource_exhausted"};case 499:return{code:a,message:"cancelled"};default:return{code:a,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:a,message:"unimplemented"};case 503:return{code:a,message:"unavailable"};case 504:return{code:a,message:"deadline_exceeded"}}return{code:a,message:"internal_error"}}(t);"unknown_error"!==r.message&&e.setStatus(r)}},96515:function(e,t,r){"use strict";r.d(t,{I1:function(){return d},Tx:function(){return h},YJ:function(){return c},Yi:function(){return f},qN:function(){return p}});var n=r(93820),i=r(31737);let a="_sentryScope",s="_sentryIsolationScope",o=Symbol.for("sentry.otelSourceInference"),l=Symbol.for("sentry.otelSourceExplicitlySet"),u=Symbol.for("sentry.tracerProviderSpan");function c(e,t,r){e&&((0,n.xp)(e,s,(0,i.r)(r)),(0,n.xp)(e,a,t))}function d(e){return{scope:e[a],isolationScope:(0,i.$)(e[s])}}function f(e){return!0===e[o]}function p(e){(0,n.xp)(e,l,!0)}function h(e){return!0===e[u]}},15197:function(e,t,r){"use strict";r.d(t,{EN:function(){return o},IQ:function(){return l},XM:function(){return u},lq:function(){return s}});var n=r(94223),i=r(5824),a=r(41745);let s="sentry-";function o(e){let t=u(e);if(!t)return;let r=Object.entries(t).reduce((e,[t,r])=>(t.startsWith(s)&&(e[t.slice(s.length)]=r),e),{});return Object.keys(r).length>0?r:void 0}function l(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,r],a)=>{let s=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,o=0===a?s:`${e},${s}`;return o.length>8192?(n.X&&i.fF.warn(`Not adding key: ${t} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):o},"")}(Object.entries(e).reduce((e,[t,r])=>(r&&(e[`${s}${t}`]=r),e),{}))}function u(e){return e&&((0,a.HD)(e)||Array.isArray(e))?Array.isArray(e)?e.reduce((e,t)=>(Object.entries(c(t)).forEach(([t,r])=>{e[t]=r}),e),{}):c(e):void 0}function c(e){return e.split(",").map(e=>{let t=e.indexOf("=");return -1===t?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,r])=>(t&&r&&(e[t]=r),e),{})}},5824:function(e,t,r){"use strict";r.d(t,{Cf:function(){return l},LD:function(){return o},RU:function(){return s},fF:function(){return f}});var n=r(13533),i=r(94223),a=r(51597);let s=["debug","info","warn","error","log","assert","trace"],o={};function l(e){if(!("console"in a.GLOBAL_OBJ))return e();let t=a.GLOBAL_OBJ.console,r={},n=Object.keys(o);n.forEach(e=>{let n=o[e];r[e]=t[e],t[e]=n});try{return e()}finally{n.forEach(e=>{t[e]=r[e]})}}function u(){return d().enabled}function c(e,...t){i.X&&u()&&l(()=>{a.GLOBAL_OBJ.console[e](`Sentry Logger [${e}]:`,...t)})}function d(){return i.X?(0,n.YO)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let f={enable:function(){d().enabled=!0},disable:function(){d().enabled=!1},isEnabled:u,log:function(...e){c("log",...e)},warn:function(...e){c("warn",...e)},error:function(...e){c("error",...e)}}},52637:function(e,t,r){"use strict";r.d(t,{RA:function(){return o},U4:function(){return l},du:function(){return c},vK:function(){return d}});var n=r(94223),i=r(5824);let a=/^o(\d+)\./,s=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function o(e,t=!1){let{host:r,path:n,pass:i,port:a,projectId:s,protocol:o,publicKey:l}=e;return`${o}://${l}${t&&i?`:${i}`:""}@${r}${a?`:${a}`:""}/${n?`${n}/`:n}${s}`}function l(e){let t=s.exec(e);if(!t){(0,i.Cf)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[r,n,a="",o="",l="",c=""]=t.slice(1),d="",f=c,p=f.split("/");if(p.length>1&&(d=p.slice(0,-1).join("/"),f=p.pop()),f){let e=f.match(/^\d+/);e&&(f=e[0])}return u({host:o,pass:a,path:d,projectId:f,port:l,protocol:r,publicKey:n})}function u(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function c(e){let t;let r=e.getOptions(),{host:n}=e.getDsn()||{};return r.orgId?t=String(r.orgId):n&&(t=function(e){let t=e.match(a);return t?.[1]}(n)),t}function d(e){let t="string"==typeof e?l(e):u(e);if(t&&function(e){if(!n.X)return!0;let{port:t,projectId:r,protocol:a}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(i.fF.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(r.match(/^\d+$/)?"http"===a||"https"===a?!(t&&isNaN(parseInt(t,10)))||(i.fF.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(i.fF.error(`Invalid Sentry Dsn: Invalid protocol ${a}`),!1):(i.fF.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1))}(t))return t}},51072:function(e,t,r){"use strict";r.d(t,{f:function(){return i}});var n=r(73076);function i(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||n.s3()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}},41745:function(e,t,r){"use strict";r.d(t,{HD:function(){return u},J8:function(){return g},Kj:function(){return m},Le:function(){return c},PO:function(){return f},TX:function(){return o},V9:function(){return y},VW:function(){return s},VZ:function(){return i},cO:function(){return h},fm:function(){return l},gJ:function(){return v},pt:function(){return d},yD:function(){return p}});let n=Object.prototype.toString;function i(e){switch(n.call(e)){case"[object Error]":case"[object E
26xception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return y(e,Error)}}function a(e,t){return n.call(e)===`[object ${t}]`}function s(e){return a(e,"ErrorEvent")}function o(e){return a(e,"DOMError")}function l(e){return a(e,"DOMException")}function u(e){return a(e,"String")}function c(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||c(e)||"object"!=typeof e&&"function"!=typeof e}function f(e){return a(e,"Object")}function p(e){return"object"==typeof e&&null!==e}function h(e){return"undefined"!=typeof Event&&y(e,Event)}function m(e){return a(e,"RegExp")}function g(e){return!!(e?.then&&"function"==typeof e.then)}function y(e,t){try{return e instanceof t}catch{return!1}}function v(e){return"undefined"!=typeof Request&&y(e,Request)}},3613:function(e,t,r){"use strict";r.d(t,{T:function(){return function e(t,r,n=2){if(!r||"object"!=typeof r||n<=0)return r;if(t&&0===Object.keys(r).length)return t;let i={...t};for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&(i[t]=e(i[t],r[t],n-1));return i}}})},34156:function(e,t,r){"use strict";let n;r.d(t,{DM:function(){return o},Db:function(){return c},EG:function(){return d},YO:function(){return f},jH:function(){return u}});var i=r(93820),a=r(38044),s=r(51597);function o(e=function(){let e=s.GLOBAL_OBJ;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return(0,a.Ab)(()=>e.randomUUID()).replace(/-/g,"")}catch{}return n||(n="10000000100040008000100000000000"),n.replace(/[018]/g,e=>(e^(15&16*(0,a.n0)())>>e/4).toString(16))}function l(e){return e.exception?.values?.[0]}function u(e){let{message:t,event_id:r}=e;if(t)return t;let n=l(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function c(e,t,r){let n=e.exception=e.exception||{},i=n.values=n.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=r||"Error")}function d(e,t){let r=l(e);if(!r)return;let n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){let e={...n?.data,...t.data};r.mechanism.data=e}}function f(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{(0,i.xp)(e,"__sentry_captured__",!0)}catch{}return!1}},18846:function(e,t,r){"use strict";let n;r.d(t,{Fv:function(){return u},Qy:function(){return function e(t,r=3,n=102400){let i=u(t,r);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>n?e(t,r-1,n):i}},yo:function(){return l},_M:function(){return c}});let i=Symbol.for("sentry.skipNormalization"),a=Symbol.for("sentry.overrideNormalizationDepth");var s=r(93820),o=r(99603);function l(e){n=e}function u(e,t=100,r=1/0){try{return function e(t,r,n=1/0,o=1/0,l=function(){let e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){let[u,d]=l;if(null==r||["boolean","string"].includes(typeof r)||"number"==typeof r&&Number.isFinite(r))return r;let f=c(t,r);if(!f.startsWith("[object "))return f;if(r[i])return r;let p=function(e){let t=e[a];return"number"==typeof t?t:void 0}(r),h=void 0!==p?p:n;if(0===h)return f.replace("object ","");if(u(r))return"[Circular ~]";if(r&&"function"==typeof r.toJSON)try{let t=r.toJSON();return e("",t,h-1,o,l)}catch{}let m=Array.isArray(r)?[]:{},g=0,y=(0,s.Sh)(r);for(let t in y){if(!Object.prototype.hasOwnProperty.call(y,t))continue;if(g>=o){m[t]="[MaxProperties ~]";break}let r=y[t];m[t]=e(t,r,h-1,o,l),g++}return d(r),m}("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function c(e,t){try{if(n){let e=n(t);if(e)return e}if("undefined"!=typeof global&&t===global)return"[Global]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${(0,o.$P)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let e=function(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);return`[object ${e}]`}catch(e){return`**non-serializable** (${e})`}}},93820:function(e,t,r){"use strict";r.d(t,{$Q:function(){return l},HK:function(){return u},Sh:function(){return c},hl:function(){return s},xp:function(){return o},zf:function(){return f}});var n=r(94223),i=r(5824),a=r(41745);function s(e,t,r){if(!(t in e))return;let a=e[t];if("function"!=typeof a)return;let s=r(a);"function"==typeof s&&l(s,a);try{e[t]=s}catch{n.X&&i.fF.log(`Failed to replace method "${t}" in object`,e)}}function o(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{n.X&&i.fF.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function l(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,o(e,"__sentry_original__",t)}catch{}}function u(e){return e.__sentry_original__}function c(e){if((0,a.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...d(e)};if((0,a.cO)(e)){let{type:t,target:r,currentTarget:n,detail:i}=e;return{type:t,target:r,currentTarget:n,...i?{detail:i}:{},...d(e)}}return e}function d(e){return(0,a.yD)(e)?Object.fromEntries(Object.entries(e)):{}}function f(e){let t=Object.keys(c(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}},79769:function(e,t,r){"use strict";function n(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}r.d(t,{o:function(){return n}})},36360:function(e,t,r){"use strict";let n,i,a,s;r.d(t,{U0:function(){return x},R:function(){return b}});var o=r(73243),l=r(94223),u=r(5824),c=r(41745),d=r(80157),f=r(43927),p=r(51597),h=r(34156),m=r(18846),g=r(46532),y=r(57360),v=r(90772);function b(e,t,r,b,x,_){let{normalizeDepth:w=3,normalizeMaxBreadth:k=1e3}
26=e,S={...t,event_id:t.event_id||r.event_id||(0,h.DM)(),timestamp:t.timestamp||(0,v.yW)()},E=r.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:r,release:n,dist:i,maxValueLength:a}=t;e.environment=e.environment||r||o.J,!e.release&&n&&(e.release=n),!e.dist&&i&&(e.dist=i);let s=e.request;s?.url&&a&&(s.url=(0,y.$G)(s.url,a)),a&&e.exception?.values?.forEach(e=>{e.value&&(e.value=y.$G(e.value,a))})})(S,e),E.length>0&&(S.sdk=S.sdk||{},S.sdk.integrations=[...S.sdk.integrations||[],...E]),x&&x.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){let r=function(e){let t=p.GLOBAL_OBJ._sentryDebugIds,r=p.GLOBAL_OBJ._debugIds;if(!t&&!r)return{};let o=t?Object.keys(t):[],l=r?Object.keys(r):[];if(s&&o.length===i&&l.length===a)return s;i=o.length,a=l.length,s={},n||(n={});let u=(t,r)=>{for(let i of t){let t=r[i],a=n?.[i];if(a&&s&&t)s[a[0]]=t,n&&(n[i]=[a[0],t]);else if(t){let r=e(i);for(let e=r.length-1;e>=0;e--){let a=r[e],o=a?.filename;if(o&&s&&n){s[o]=t,n[i]=[o,t];break}}}}};return t&&u(o,t),r&&u(l,r),s}(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=r[e.filename])})})}(S,e.stackParser);let C=function(e,t){if(!t)return e;let r=e?e.clone():new f.s;return r.update(t),r}(b,r.captureContext);r.mechanism&&(0,h.EG)(S,r.mechanism);let O=x?x.getEventProcessors():[],T=(0,g.ZM)(_,C),A=[...r.attachments||[],...T.attachments];A.length&&(r.attachments=A),(0,g.gi)(S,T);let R=[...O,...T.eventProcessors];return(r.data&&!0===r.data.__sentry__?(0,d.WD)(S):function(e,t,r,n=0){try{let i=function e(t,r,n,i){let a=n[i];if(!t||!a)return t;let s=a({...t},r);return(l.X&&null===s&&u.fF.log(`Event processor "${a.id||"?"}" dropped event`),(0,c.J8)(s))?s.then(t=>e(t,r,n,i+1)):e(s,r,n,i+1)}(t,r,e,n);return(0,c.J8)(i)?i:(0,d.WD)(i)}catch(e){return(0,d.$2)(e)}}(R,S,r)).then(e=>(e&&function(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let r=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{r.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof w&&w>0)?function(e,t,r){if(!e)return null;let n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,m.Fv)(e.data,t,r)}}))},...e.user&&{user:(0,m.Fv)(e.user,t,r)},...e.contexts&&{contexts:(0,m.Fv)(e.contexts,t,r)},...e.extra&&{extra:(0,m.Fv)(e.extra,t,r)}};return e.contexts?.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=(0,m.Fv)(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,m.Fv)(e.data,t,r)}}))),e.contexts?.flags&&n.contexts&&(n.contexts.flags=(0,m.Fv)(e.contexts.flags,3,r)),n}(e,w,k):e)}function x(e){return e?e instanceof f.s||"function"==typeof e||Object.keys(e).some(e=>_.includes(e))?{captureContext:e}:e:void 0}let _=["user","level","extra","contexts","tags","fingerprint","propagationContext"]},8151:function(e,t,r){"use strict";r.d(t,{H:function(){return i},M:function(){return a}});var n=r(34156);function i(){return(0,n.DM)()}function a(){return(0,n.DM)().substring(16)}},38044:function(e,t,r){"use strict";let n;r.d(t,{Ab:function(){return a},lk:function(){return o},n0:function(){return s}});var i=r(51597);function a(e){if(void 0!==n)return n?n(e):e();let t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),r=i.GLOBAL_OBJ;return t in r&&"function"==typeof r[t]?(n=r[t])(e):(n=null,e())}function s(){return a(()=>Math.random())}function o(){return a(()=>Date.now())}},46532:function(e,t,r){"use strict";r.d(t,{ZM:function(){return c},gi:function(){return o}});var n=r(73076),i=r(72123),a=r(3613),s=r(40464);function o(e,t){let{fingerprint:r,span:n,breadcrumbs:a,sdkProcessingMetadata:o}=t;(function(e,t){let{extra:r,tags:n,user:i,contexts:a,level:s,transactionName:o}=t;Object.keys(r).length&&(e.extra={...r,...e.extra}),Object.keys(n).length&&(e.tags={...n,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),s&&(e.level=s),o&&"transaction"!==e.type&&(e.transaction=o)})(e,t),n&&function(e,t){e.contexts={trace:(0,s.wy)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,i.jC)(t),...e.sdkProcessingMetadata};let r=(0,s.Gx)(t),n=(0,s.XU)(r).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(e,n),e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],r&&(e.fingerprint=e.fingerprint.concat(r)),e.fingerprint.length||delete e.fingerprint,function(e,t){let r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}(e,a),e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...o}}function l(e,t){let{extra:r,tags:n,attributes:i,user:s,contexts:o,level:l,sdkProcessingMetadata:c,breadcrumbs:d,fingerprint:f,eventProcessors:p,attachments:h,propagationContext:m,transactionName:g,span:y}=t;u(e,"extra",r),u(e,"tags",n),u(e,"attributes",i),u(e,"user",s),u(e,"contexts",o),e.sdkProcessingMetadata=(0,a.T)(e.sdkProcessingMetadata,c,2),l&&(e.level=l),g&&(e.transactionName=g),y&&(e.span=y),d.length&&(e.breadcrumbs=[...e.breadcrumbs,...d]),f.length&&(e.fingerprint=[...e.fingerprint,...f]),p.length&&(e.eventProcessors=[...e.eventProcessors,...p]),h.length&&(e.attachments=[...e.attachments,...h]
26),e.propagationContext={...e.propagationContext,...m}}function u(e,t,r){e[t]=(0,a.T)(e[t],r,1)}function c(e,t){let r=(0,n.lW)().getScopeData();return e&&l(r,e.getScopeData()),t&&l(r,t.getScopeData()),r}},89366:function(e,t,r){"use strict";r.d(t,{D:function(){return s},Y:function(){return o}});var n=r(93820),i=r(31737);let a="_sentrySpan";function s(e,t){t?(0,n.xp)(e,a,(0,i.r)(t)):delete e[a]}function o(e){return(0,i.$)(e[a])}},40464:function(e,t,r){"use strict";r.d(t,{ve:function(){return g},i0:function(){return y},j5:function(){return $},kq:function(){return I},FF:function(){return k},HN:function(){return V},Gx:function(){return H},bD:function(){return P},Dp:function(){return U},_4:function(){return L},vq:function(){return S},ed:function(){return B},R6:function(){return W},Tt:function(){return N},$k:function(){return E},XU:function(){return O},FS:function(){return T},wy:function(){return x},Hb:function(){return _},jN:function(){return w},HR:function(){return b},i7:function(){return R}});var n=r(82531);function i(e,t=!1){let r={};for(let[n,i]of Object.entries(e??{})){let e=function(e,t){let{value:r,unit:n}="object"==typeof e&&null!=e&&!Array.isArray(e)&&Object.keys(e).includes("value")?e:{value:e,unit:void 0},i=function(e){if(Array.isArray(e))return{value:e,type:"array"};let t="string"==typeof e?"string":"boolean"==typeof e?"boolean":"number"!=typeof e||Number.isNaN(e)?null:Number.isInteger(e)?"integer":"double";if(t)return{value:e,type:t}}(r),a=n&&"string"==typeof n?{unit:n}:{};if(i)return{...i,...a};if(!t||"skip-undefined"===t&&void 0===r)return;let s="";try{s=JSON.stringify(r)??""}catch{}return{value:s,type:"string",...a}}(i,t);e&&(r[n]=e)}return r}var a=r(13533),s=r(73076),o=r(31218),l=r(69737),u=r(96515),c=r(93820),d=r(8151),f=r(90772),p=r(32616),h=r(5824),m=r(89366);let g=0,y=1,v=!1;function b(e){let{spanId:t,traceId:r}=e.spanContext(),{data:n,op:i,parent_span_id:a,status:s,origin:o,links:l}=O(e);return{parent_span_id:a,span_id:t,trace_id:r,data:n,op:i,status:s,origin:o,links:l}}function x(e){let{spanId:t,traceId:r,isRemote:n}=e.spanContext(),i=n?t:O(e).parent_span_id,a=(0,u.I1)(e).scope;return{parent_span_id:i,span_id:n?a?.getPropagationContext().propagationSpanId||(0,d.M)():t,trace_id:r}}function _(e){let{traceId:t,spanId:r}=e.spanContext(),n=N(e);return(0,p.$p)(t,r,n)}function w(e){let{traceId:t,spanId:r}=e.spanContext(),n=N(e);return(0,p.i7)(t,r,n)}function k(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:r,...n},attributes:i})=>({span_id:e,trace_id:t,sampled:r===y,attributes:i,...n})):void 0}function S(e){return e?.length?e.map(({context:{spanId:e,traceId:t,traceFlags:r},attributes:n})=>({span_id:e,trace_id:t,sampled:r===y,attributes:n})):void 0}function E(e){return"number"==typeof e?C(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?C(e.getTime()):(0,f.ph)()}function C(e){return e>9999999999?e/1e3:e}function O(e){if(j(e))return e.getSpanJSON();let{spanId:t,traceId:r}=e.spanContext();if(M(e)){let{attributes:n,startTime:i,name:a,endTime:s,status:l,links:u}=e;return{span_id:t,trace_id:r,data:n,description:a,parent_span_id:A(e),start_timestamp:E(i),timestamp:E(s)||void 0,status:L(l),op:n[o.$J],origin:n[o.S3],links:k(u)}}return{span_id:t,trace_id:r,start_timestamp:0,data:{}}}function T(e){if(j(e))return e.getStreamedSpanJSON();let{spanId:t,traceId:r}=e.spanContext();if(M(e)){let{attributes:n,startTime:i,name:a,endTime:s,status:o,links:l}=e;return{name:a,span_id:t,trace_id:r,parent_span_id:A(e),start_timestamp:E(i),end_timestamp:E(s),is_segment:e===z(e),status:P(o),attributes:I(n,o),links:S(l)}}return{span_id:t,trace_id:r,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:e===z(e)}}function A(e){return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0}function R(e){return{...e,attributes:i(e.attributes),links:e.links?.map(e=>({...e,attributes:i(e.attributes)}))}}function M(e){return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function j(e){return"function"==typeof e.getSpanJSON}function N(e){let{traceFlags:t}=e.spanContext();return t===y}function L(e){return e&&e.code!==l.pq?e.code===l.OP?"ok":e.message||"internal_error":void 0}function P(e){return e&&e.code!==l.OP&&e.code!==l.pq&&"cancelled"!==e.message?"error":"ok"}function I(e,t){let r="error"===P(t)?t?.message:void 0;return{...r&&{[o.x0]:r},...e}}let D="_sentryChildSpans",F="_sentryRootSpan";function $(e,t){let r=e[F]||e;(0,c.xp)(t,F,r),N(e)&&(e.isRecording()||r.isRecording())&&(e[D]?e[D].add(t):(0,c.xp)(e,D,new Set([t])))}function B(e,t){e[D]&&e[D].delete(t)}function U(e){let t=new Set;return function e(r){if(!t.has(r)&&N(r))for(let n of(t.add(r),r[D]?Array.from(r[D]):[]))e(n)}(e),Array.from(t)}let H=z;function z(e){return e[F]||e}function V(){let e=(0,a.cu)(),t=(0,n.G)(e);return t.getActiveSpan?t.getActiveSpan():(0,m.Y)((0,s.nZ)())}function W(){v||((0,h.Cf)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),v=!0)}},99603:function(e,t,r){"use strict";r.d(t,{$P:function(){return c},Fi:function(){return n},Fr:function(){return d},Sq:function(){return o},pE:function(){return s}});let n="?",i=/\(error: (.*)\)/,a=/captureMessage|captureException/;function s(...e){let t=e.sort((e,t)=>
26e[0]-t[0]).map(e=>e[1]);return(e,r=0,s=0)=>{let o=[],u=e.split("\n");for(let e=r;e<u.length;e++){let r=u[e];r.length>1024&&(r=r.slice(0,1024));let n=i.test(r)?r.replace(i,"$1"):r;if(!n.includes("Error: ")){for(let e of t){let t=e(n);if(t){o.push(t);break}}if(o.length>=50+s)break}}return function(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(l(t).function||"")&&t.pop(),t.reverse(),a.test(l(t).function||"")&&(t.pop(),a.test(l(t).function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||l(t).filename,function:e.function||n}))}(o.slice(s))}}function o(e){return Array.isArray(e)?s(...e):e}function l(e){return e[e.length-1]||{}}let u="<anonymous>";function c(e){try{if(!e||"function"!=typeof e)return u;return e.name||u}catch{return u}}function d(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{}}}},57360:function(e,t,r){"use strict";r.d(t,{$G:function(){return a},U0:function(){return l},nK:function(){return s},zC:function(){return o}});var n=r(41745),i=r(18846);function a(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}function s(e,t){if(!Array.isArray(e))return"";let r=[];for(let t=0;t<e.length;t++){let a=e[t];(0,n.pt)(a)?r.push(String(a)):a instanceof Error?r.push(a.message?`${a.name}: ${a.message}`:a.name):r.push((0,i._M)(void 0,a))}return r.join(t)}function o(e,t,r=!1){return!!(0,n.HD)(e)&&((0,n.Kj)(t)?t.test(e):(0,n.HD)(t)?r?e===t:e.includes(t):"function"==typeof t&&t(e))}function l(e,t=[],r=!1){for(let n of t)if(o(e,n,r))return!0;return!1}},80157:function(e,t,r){"use strict";r.d(t,{$2:function(){return a},WD:function(){return i}});var n=r(41745);function i(e){return new s(t=>{t(e)})}function a(e){return new s((t,r)=>{r(e)})}class s{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new s((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new s((t,r)=>{let n,i;return this.then(t=>{i=!1,n=t,e&&e()},t=>{i=!0,n=t,e&&e()}).then(()=>{if(i){r(n);return}t(n)})})}_executeHandlers(){if(0===this._state)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){let t=(e,t)=>{if(0===this._state){if((0,n.J8)(t)){t.then(r,i);return}this._state=e,this._value=t,this._executeHandlers()}},r=e=>{t(1,e)},i=e=>{t(2,e)};try{e(r,i)}catch(e){i(e)}}}},90772:function(e,t,r){"use strict";let n;r.d(t,{Z1:function(){return u},ph:function(){return o},yW:function(){return s}});var i=r(38044),a=r(51597);function s(){return(0,i.lk)()/1e3}function o(){return(n??(n=function(){let{performance:e}=a.GLOBAL_OBJ;if(!e?.now||!e.timeOrigin)return s;let t=e.timeOrigin;return()=>(t+(0,i.Ab)(()=>e.now()))/1e3}()))()}let l=null;function u(){return null===l&&(l=function(){let{performance:e}=a.GLOBAL_OBJ;if(!e?.now)return;let t=(0,i.Ab)(()=>e.now()),r=(0,i.lk)(),n=e.timeOrigin;if("number"==typeof n&&3e5>Math.abs(n+t-r))return n;let s=e.timing?.navigationStart;return"number"==typeof s&&3e5>Math.abs(s+t-r)?s:r-t}()),l}},32616:function(e,t,r){"use strict";r.d(t,{$p:function(){return u},Ke:function(){return o},i7:function(){return c},pT:function(){return l}});var n=r(15197),i=r(79769),a=r(8151),s=r(38044);let o=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function l(e,t){let r=function(e){let t;if(!e)return;let r=e.match(o);if(r)return"1"===r[3]?t=!0:"0"===r[3]&&(t=!1),{traceId:r[1],parentSampled:t,parentSpanId:r[2]}}(e),l=(0,n.EN)(t);if(!r?.traceId)return{traceId:(0,a.H)(),sampleRand:(0,s.n0)()};let u=function(e,t){let r=(0,i.o)(t?.sample_rand);if(void 0!==r)return r;let n=(0,i.o)(t?.sample_rate);return n&&e?.parentSampled!==void 0?e.parentSampled?(0,s.n0)()*n:n+(0,s.n0)()*(1-n):(0,s.n0)()}(r,l);l&&(l.sample_rand=u.toString());let{traceId:c,parentSpanId:d,parentSampled:f}=r;return{traceId:c,parentSpanId:d,sampled:f,dsc:l||{},sampleRand:u}}function u(e=(0,a.H)(),t=(0,a.M)(),r){let n="";return void 0!==r&&(n=r?"-1":"-0"),`${e}-${t}${n}`}function c(e=(0,a.H)(),t=(0,a.M)(),r){return`00-${e}-${t}-${r?"01":"00"}`}},39494:function(e,t,r){"use strict";r.d(t,{J:function(){return n}});let n="10.75.3"},31737:function(e,t,r){"use strict";r.d(t,{$:function(){return a}
26,r:function(){return i}});var n=r(51597);function i(e){try{let t=n.GLOBAL_OBJ.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}function a(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}},51597:function(e,t,r){"use strict";r.d(t,{GLOBAL_OBJ:function(){return n}});let n=globalThis},2445:function(e,t,r){"use strict";function n(e){return"object"==typeof e&&"function"==typeof e.start}r.d(t,{H:function(){return n}})},48488:function(e,t,r){"use strict";r.d(t,{C:function(){return n}});let n=e=>Array.isArray(e)},70398:function(e,t,r){"use strict";r.d(t,{u:function(){return n}});let n=(0,r(67294).createContext)({strict:!1})},16014:function(e,t,r){"use strict";r.d(t,{_:function(){return n}});let n=(0,r(67294).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},240:function(e,t,r){"use strict";r.d(t,{O:function(){return n}});let n=(0,r(67294).createContext)(null)},9442:function(e,t,r){"use strict";r.d(t,{A:function(){return i}});let n=e=>({isEnabled:t=>e.some(e=>!!t[e])}),i={measureLayout:n(["layout","layoutId","drag"]),animation:n(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:n(["exit"]),drag:n(["drag","dragControls"]),focus:n(["whileFocus"]),hover:n(["whileHover","onHoverStart","onHoverEnd"]),tap:n(["whileTap","onTap","onTapStart","onTapCancel"]),pan:n(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:n(["whileInView","onViewportEnter","onViewportLeave"])}},81879:function(e,t,r){"use strict";r.d(t,{K:function(){return i}});var n=r(9442);function i(e){for(let t in e)"projectionNodeConstructor"===t?n.A.projectionNodeConstructor=e[t]:n.A[t].Component=e[t]}},96728:function(e,t,r){"use strict";r.d(t,{j:function(){return a}});let n={};var i=r(94714);function a(e,{layout:t,layoutId:r}){return i.G.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!n[e]||"opacity"===e)}},93193:function(e,t,r){"use strict";r.d(t,{D:function(){return n}});let n=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},91492:function(e,t,r){"use strict";r.d(t,{L:function(){return o},K:function(){return s}});let n=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function i(e){return n.has(e)}let a=e=>!i(e);function s(e){e&&(a=t=>t.startsWith("on")?!i(t):e(t))}try{s(require("@emotion/is-prop-valid").default)}catch(e){}function o(e,t,r){let n={};for(let s in e)(a(s)||!0===r&&i(s)||!t&&!i(s)||e.draggable&&s.startsWith("onDrag"))&&(n[s]=e[s]);return n}},57630:function(e,t,r){"use strict";function n(e){return e.startsWith("--")}r.d(t,{o:function(){return n}})},62627:function(e,t,r){"use strict";r.d(t,{q:function(){return i}});let n=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function i(e){if("string"!=typeof e||e.includes("-"));else if(n.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}},36173:function(e,t,r){"use strict";r.d(t,{j:function(){return s}});var n=r(2969),i=r(11248);let a={...i.Rx,transform:Math.round},s={borderWidth:n.px,borderTopWidth:n.px,borderRightWidth:n.px,borderBottomWidth:n.px,borderLeftWidth:n.px,borderRadius:n.px,radius:n.px,borderTopLeftRadius:n.px,borderTopRightRadius:n.px,borderBottomRightRadius:n.px,borderBottomLeftRadius:n.px,width:n.px,maxWidth:n.px,height:n.px,maxHeight:n.px,size:n.px,top:n.px,right:n.px,bottom:n.px,left:n.px,padding:n.px,paddingTop:n.px,paddingRight:n.px,paddingBottom:n.px,paddingLeft:n.px,margin:n.px,marginTop:n.px,marginRight:n.px,marginBottom:n.px,marginLeft:n.px,rotate:n.RW,rotateX:n.RW,rotateY:n.RW,rotateZ:n.RW,scale:i.bA,scaleX:i.bA,scaleY:i.bA,scaleZ:i.bA,skew:n.RW,skewX:n.RW,skewY:n.RW,distance:n.px,translateX:n.px,translateY:n.px,translateZ:n.px,x:n.px,y:n.px,z:n.px,perspective:n.px,transformPerspective:n.px,opacity:i.Fq,originX:n.$C,originY:n.$C,originZ:n.px,zIndex:a,fillOpacity:i.Fq,strokeOpacity:i.Fq,numOctaves:a}},38057:function(e,t,r){"use strict";r.d(t,{r:function(){return u}});var n=r(94714);let i={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},a=(e,t)=>n._.indexOf(e)-n._.indexOf(t);var s=r(57630);let o=(e,t)=>t&&"number"==typeof e?t.transform(e):e;var l=r(36173);function u(e,t,r,u){let{style:c,vars:d,transform:f,transformKeys:p,transformOrigin:h}=e;p.length=0;let m=!1,g=!1,y=!0;for(let e in t){let r=t[e];if((0,s.o)(e)){d[e]=r;continue}
26let i=l.j[e],a=o(r,i);if(n.G.has(e)){if(m=!0,f[e]=a,p.push(e),!y)continue;r!==(i.default||0)&&(y=!1)}else e.startsWith("origin")?(g=!0,h[e]=a):c[e]=a}if(!t.transform&&(m||u?c.transform=function({transform:e,transformKeys:t},{enableHardwareAcceleration:r=!0,allowTransformNone:n=!0},s,o){let l="";for(let r of(t.sort(a),t))l+=`${i[r]||r}(${e[r]}) `;return r&&!e.z&&(l+="translateZ(0)"),l=l.trim(),o?l=o(e,s?"":l):n&&s&&(l="none"),l}(e,r,y,u):c.transform&&(c.transform="none")),g){let{originX:e="50%",originY:t="50%",originZ:r=0}=h;c.transformOrigin=`${e} ${t} ${r}`}}},34242:function(e,t,r){"use strict";function n(e,{style:t,vars:r},n,i){for(let a in Object.assign(e.style,t,i&&i.getProjectionStyles(n)),r)e.style.setProperty(a,r[a])}r.d(t,{N:function(){return n}})},50189:function(e,t,r){"use strict";r.d(t,{U:function(){return a}});var n=r(96728),i=r(40406);function a(e){let{style:t}=e,r={};for(let a in t)((0,i.i)(t[a])||(0,n.j)(a,e))&&(r[a]=t[a]);return r}},94714:function(e,t,r){"use strict";r.d(t,{G:function(){return i},_:function(){return n}});let n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],i=new Set(n)},85415:function(e,t,r){"use strict";r.d(t,{i:function(){return l}});var n=r(38057),i=r(2969);function a(e,t,r){return"string"==typeof e?e:i.px.transform(t+r*e)}let s={offset:"stroke-dashoffset",array:"stroke-dasharray"},o={offset:"strokeDashoffset",array:"strokeDasharray"};function l(e,{attrX:t,attrY:r,originX:l,originY:u,pathLength:c,pathSpacing:d=1,pathOffset:f=0,...p},h,m,g){if((0,n.r)(e,p,h,g),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:y,style:v,dimensions:b}=e;y.transform&&(b&&(v.transform=y.transform),delete y.transform),b&&(void 0!==l||void 0!==u||v.transform)&&(v.transformOrigin=function(e,t,r){let n=a(t,e.x,e.width),i=a(r,e.y,e.height);return`${n} ${i}`}(b,void 0!==l?l:.5,void 0!==u?u:.5)),void 0!==t&&(y.x=t),void 0!==r&&(y.y=r),void 0!==c&&function(e,t,r=1,n=0,a=!0){e.pathLength=1;let l=a?s:o;e[l.offset]=i.px.transform(-n);let u=i.px.transform(t),c=i.px.transform(r);e[l.array]=`${u} ${c}`}(y,c,d,f,!1)}},77302:function(e,t,r){"use strict";r.d(t,{s:function(){return n}});let n=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"])},79854:function(e,t,r){"use strict";r.d(t,{a:function(){return n}});let n=e=>"string"==typeof e&&"svg"===e.toLowerCase()},68504:function(e,t,r){"use strict";r.d(t,{K:function(){return s}});var n=r(93193),i=r(34242),a=r(77302);function s(e,t,r,s){for(let r in(0,i.N)(e,t,void 0,s),t.attrs)e.setAttribute(a.s.has(r)?r:(0,n.D)(r),t.attrs[r])}},16832:function(e,t,r){"use strict";r.d(t,{U:function(){return a}});var n=r(40406),i=r(50189);function a(e){let t=(0,i.U)(e);for(let r in e)(0,n.i)(e[r])&&(t["x"===r||"y"===r?"attr"+r.toUpperCase():r]=e[r]);return t}},7504:function(e,t,r){"use strict";r.d(t,{G:function(){return s},M:function(){return o}});var n=r(2445),i=r(97732);let a=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function s(e){return(0,n.H)(e.animate)||a.some(t=>(0,i.$)(e[t]))}function o(e){return!!(s(e)||e.variants)}},97732:function(e,t,r){"use strict";function n(e){return"string"==typeof e||Array.isArray(e)}r.d(t,{$:function(){return n}})},79432:function(e,t,r){"use strict";function n(e,t,r,n={},i={}){return"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),t}r.d(t,{o:function(){return n}})},24169:function(e,t,r){"use strict";r.d(t,{u:function(){return n}});let n=(e,t,r)=>Math.min(Math.max(r,e),t)},52200:function(e,t,r){"use strict";r.d(t,{s:function(){return E}});var n=r(24394),i=r(87405),a=r(24169);let s=(e,t,r)=>-r*e+r*t+e;var o=r(22960),l=r(78059),u=r(34582);function c(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}let d=(e,t,r)=>{let n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},f=[o.$,l.m,u.J],p=e=>f.find(t=>t.test(e));function h(e){let t=p(e);(0,n.k)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===u.J&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,a=0,s=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,o=2*r-n;i=c(o,n,e+1/3),a=c(o,n,e),s=c(o,n,e-1/3)}else i=a=s=r;return{red:Math.round(255*i),green:Math.round(255*a),blue:Math.round(255*s),alpha:n}}(r)),r}let m=(e,t)=>
26{let r=h(e),n=h(t),i={...r};return e=>(i.red=d(r.red,n.red,e),i.green=d(r.green,n.green,e),i.blue=d(r.blue,n.blue,e),i.alpha=s(r.alpha,n.alpha,e),l.m.transform(i))};var g=r(28407),y=r(83624);function v(e,t){return"number"==typeof e?r=>s(e,t,r):i.$.test(e)?m(e,t):w(e,t)}let b=(e,t)=>{let r=[...e],n=r.length,i=e.map((e,r)=>v(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=i[t](e);return r}},x=(e,t)=>{let r={...e,...t},n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=v(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}};function _(e){let t=g.P.parse(e),r=t.length,n=0,i=0;for(let e=0;e<r;e++)n||"number"==typeof t[e]?n++:i++;return{parsed:t,numNumbers:n,numColors:i}}let w=(e,t)=>{let r=g.P.createTransformer(t),i=_(e),a=_(t);return i.numColors===a.numColors&&i.numNumbers>=a.numNumbers?(0,y.z)(b(i.parsed,a.parsed),r):((0,n.K)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),r=>`${r>0?t:e}`)},k=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n},S=(e,t)=>r=>s(e,t,r);function E(e,t,{clamp:r=!0,ease:s,mixer:o}={}){let l=e.length;(0,n.k)(l===t.length,"Both input and output ranges must be the same length"),(0,n.k)(!s||!Array.isArray(s)||s.length===l-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[l-1]&&(e=[...e].reverse(),t=[...t].reverse());let u=function(e,t,r){let n=[],a=r||function(e){if("number"==typeof e);else if("string"==typeof e)return i.$.test(e)?m:w;else if(Array.isArray(e))return b;else if("object"==typeof e)return x;return S}(e[0]),s=e.length-1;for(let r=0;r<s;r++){let i=a(e[r],e[r+1]);if(t){let e=Array.isArray(t)?t[r]:t;i=(0,y.z)(e,i)}n.push(i)}return n}(t,s,o),c=u.length,d=t=>{let r=0;if(c>1)for(;r<e.length-2&&!(t<e[r+1]);r++);let n=k(e[r],e[r+1],t);return u[r](n)};return r?t=>d((0,a.u)(e[0],e[l-1],t)):d}},11741:function(e,t,r){"use strict";r.d(t,{j:function(){return n}});let n="undefined"!=typeof document},51804:function(e,t,r){"use strict";function n(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}r.d(t,{I:function(){return n}})},83624:function(e,t,r){"use strict";r.d(t,{z:function(){return i}});let n=(e,t)=>r=>t(e(r)),i=(...e)=>e.reduce(n)},49304:function(e,t,r){"use strict";r.d(t,{O:function(){return i}});var n=r(83454);let i=(void 0===n||n.env,"production")},8715:function(e,t,r){"use strict";r.d(t,{Y:function(){return a},p:function(){return i}});var n=r(48488);let i=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),a=e=>(0,n.C)(e)?e[e.length-1]||0:e},65985:function(e,t,r){"use strict";r.d(t,{L:function(){return n}});class n{constructor(){this.subscriptions=[]}add(e){var t;return -1===(t=this.subscriptions).indexOf(e)&&t.push(e),()=>(function(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)})(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i<n;i++){let n=this.subscriptions[i];n&&n(e,t,r)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},96681:function(e,t,r){"use strict";r.d(t,{h:function(){return i}});var n=r(67294);function i(e){let t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}},65411:function(e,t,r){"use strict";r.d(t,{z:function(){return i}});var n=r(67294);function i(e){return(0,n.useEffect)(()=>()=>e(),[])}},3038:function(e,t,r){"use strict";function n(e,t){return t?1e3/t*e:0}r.d(t,{R:function(){return n}})},16034:function(e,t,r){"use strict";r.d(t,{O:function(){return i}});let n=new Set;function i(e,t,r){e||n.has(t)||(console.warn(t),r&&console.warn(r),n.add(t))}},33234:function(e,t,r){"use strict";r.d(t,{B:function(){return l}});var n=r(54735),i=r(65985),a=r(3038);let s=e=>!isNaN(parseFloat(e));class o{constructor(e){this.version="7.7.0",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new i.L,this.velocityUpdateSubscribers=new i.L,this.renderSubscribers=new i.L,this.canTrackVelocity=!1,this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:r,timestamp:i}=(0,n.$B)();this.lastUpdated!==i&&(this.timeDelta=r,this.lastUpdated=i,n.ZP.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),t&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>n.ZP.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=s(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}
26onRenderRequest(e){return e(this.get()),this.renderSubscribers.add(e)}attach(e){this.passiveEffect=e}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,a.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.stopAnimation=e(t)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function l(e){return new o(e)}},40406:function(e,t,r){"use strict";r.d(t,{i:function(){return n}});let n=e=>!!(null==e?void 0:e.getVelocity)},54735:function(e,t,r){"use strict";r.d(t,{qY:function(){return p},ZP:function(){return v},$B:function(){return y}});let n=1/60*1e3,i="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),a="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(i()),n),s=!0,o=!1,l=!1,u={delta:0,timestamp:0},c=["read","update","preRender","render","postRender"],d=c.reduce((e,t)=>(e[t]=function(e){let t=[],r=[],n=0,i=!1,a=!1,s=new WeakSet,o={schedule:(e,a=!1,o=!1)=>{let l=o&&i,u=l?t:r;return a&&s.add(e),-1===u.indexOf(e)&&(u.push(e),l&&i&&(n=t.length)),e},cancel:e=>{let t=r.indexOf(e);-1!==t&&r.splice(t,1),s.delete(e)},process:l=>{if(i){a=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length)for(let r=0;r<n;r++){let n=t[r];n(l),s.has(n)&&(o.schedule(n),e())}i=!1,a&&(a=!1,o.process(l))}};return o}(()=>o=!0),e),{}),f=c.reduce((e,t)=>{let r=d[t];return e[t]=(e,t=!1,n=!1)=>(o||g(),r.schedule(e,t,n)),e},{}),p=c.reduce((e,t)=>(e[t]=d[t].cancel,e),{});c.reduce((e,t)=>(e[t]=()=>d[t].process(u),e),{});let h=e=>d[e].process(u),m=e=>{o=!1,u.delta=s?n:Math.max(Math.min(e-u.timestamp,40),1),u.timestamp=e,l=!0,c.forEach(h),l=!1,o&&(s=!1,a(m))},g=()=>{o=!0,s=!0,l||a(m)},y=()=>u;var v=f},78700:function(e,t,r){"use strict";let n,i,a,s,o,l,u;r.d(t,{V:function(){return e_}});var c,d,f=r(67294),p=r.t(f,2),h=r(49126),m=r(90178),g=r(39273);function y(e,t,r,n){let i=(0,g.E)(r);(0,f.useEffect)(()=>{function r(e){i.current(e)}return(e=null!=e?e:window).addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)},[e,t,n])}var v=r(74771),b=r(4387);function x(e){let t=(0,m.z)(e),r=(0,f.useRef)(!1);(0,f.useEffect)(()=>(r.current=!1,()=>{r.current=!0,(0,b.Y)(()=>{r.current&&t()})}),[t])}var _=r(46854);function w(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,f.useMemo)(()=>(0,_.r)(...t),[...t])}var k=r(2038),S=r(94448),E=r(56346),C=((n=C||{})[n.Forwards=0]="Forwards",n[n.Backwards=1]="Backwards",n);function O(e,t){let r=(0,f.useRef)([]),n=(0,m.z)(e);(0,f.useEffect)(()=>{let e=[...r.current];for(let[i,a]of t.entries())if(r.current[i]!==a){let i=n(t,e);return r.current=t,i}},[n,...t])}var T=r(47287);let A=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&A[0]!==e.target&&(A.unshift(e.target),(A=A.filter(e=>null!=e&&e.isConnected)).splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});var R=r(21939),M=r(28400),j=r(90633);function N(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let r of e.current)r.current instanceof HTMLElement&&t.add(r.current);return t}var L=((i=L||{})[i.None=1]="None",i[i.InitialFocus=2]="InitialFocus",i[i.TabLock=4]="TabLock",i[i.FocusLock=8]="FocusLock",i[i.RestoreFocus=16]="RestoreFocus",i[i.All=30]="All",i);let P=Object.assign((0,j.yV)(function(e,t){let r,n=(0,f.useRef)(null),i=(0,S.T)(n,t),{initialFocus:a,containers:s,features:o=30,...l}=e;(0,k.H)()||(o=1);let u=w(n);(function(e,t){let{ownerDocument:r}=e,n=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,f.useRef)(A.slice());return O((e,r)=>
26{let[n]=e,[i]=r;!0===i&&!1===n&&(0,b.Y)(()=>{t.current.splice(0)}),!1===i&&!0===n&&(t.current=A.slice())},[e,A,t]),(0,m.z)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(t);O(()=>{t||(null==r?void 0:r.activeElement)===(null==r?void 0:r.body)&&(0,R.C5)(n())},[t]),x(()=>{t&&(0,R.C5)(n())})})({ownerDocument:u},!!(16&o));let c=function(e,t){let{ownerDocument:r,container:n,initialFocus:i}=e,a=(0,f.useRef)(null),s=(0,v.t)();return O(()=>{if(!t)return;let e=n.current;e&&(0,b.Y)(()=>{if(!s.current)return;let t=null==r?void 0:r.activeElement;if(null!=i&&i.current){if((null==i?void 0:i.current)===t){a.current=t;return}}else if(e.contains(t)){a.current=t;return}null!=i&&i.current?(0,R.C5)(i.current):(0,R.jA)(e,R.TO.First)===R.fE.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),a.current=null==r?void 0:r.activeElement})},[t]),a}({ownerDocument:u,container:n,initialFocus:a},!!(2&o));(function(e,t){let{ownerDocument:r,container:n,containers:i,previousActiveElement:a}=e,s=(0,v.t)();y(null==r?void 0:r.defaultView,"focus",e=>{if(!t||!s.current)return;let r=N(i);n.current instanceof HTMLElement&&r.add(n.current);let o=a.current;if(!o)return;let l=e.target;l&&l instanceof HTMLElement?I(r,l)?(a.current=l,(0,R.C5)(l)):(e.preventDefault(),e.stopPropagation(),(0,R.C5)(o)):(0,R.C5)(a.current)},!0)})({ownerDocument:u,container:n,containers:s,previousActiveElement:c},!!(8&o));let d=(r=(0,f.useRef)(0),(0,E.s)("keydown",e=>{"Tab"===e.key&&(r.current=e.shiftKey?1:0)},!0),r),p=(0,m.z)(e=>{let t=n.current;t&&(0,M.E)(d.current,{[C.Forwards]:()=>{(0,R.jA)(t,R.TO.First,{skipElements:[e.relatedTarget]})},[C.Backwards]:()=>{(0,R.jA)(t,R.TO.Last,{skipElements:[e.relatedTarget]})}})}),g=(0,h.G)(),_=(0,f.useRef)(!1);return f.createElement(f.Fragment,null,!!(4&o)&&f.createElement(T._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:T.A.Focusable}),(0,j.sY)({ourProps:{ref:i,onKeyDown(e){"Tab"==e.key&&(_.current=!0,g.requestAnimationFrame(()=>{_.current=!1}))},onBlur(e){let t=N(s);n.current instanceof HTMLElement&&t.add(n.current);let r=e.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(I(t,r)||(_.current?(0,R.jA)(n.current,(0,M.E)(d.current,{[C.Forwards]:()=>R.TO.Next,[C.Backwards]:()=>R.TO.Previous})|R.TO.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&(0,R.C5)(e.target)))}},theirProps:l,defaultTag:"div",name:"FocusTrap"}),!!(4&o)&&f.createElement(T._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:T.A.Focusable}))}),{features:L});function I(e,t){for(let r of e)if(r.contains(t))return!0;return!1}var D=r(73935),F=r(56427);let $=(0,f.createContext)(!1);function B(e){return f.createElement($.Provider,{value:e.force},e.children)}var U=r(34550);let H=f.Fragment,z=f.Fragment,V=(0,f.createContext)(null),W=(0,f.createContext)(null),q=Object.assign((0,j.yV)(function(e,t){let r=(0,f.useRef)(null),n=(0,S.T)((0,S.h)(e=>{r.current=e}),t),i=w(r),a=function(e){let t=(0,f.useContext)($),r=(0,f.useContext)(V),n=w(e),[i,a]=(0,f.useState)(()=>{if(!t&&null!==r||U.O.isServer)return null;let e=null==n?void 0:n.getElementById("headlessui-portal-root");if(e)return e;if(null===n)return null;let i=n.createElement("div");return i.setAttribute("id","headlessui-portal-root"),n.body.appendChild(i)});return(0,f.useEffect)(()=>{null!==i&&(null!=n&&n.body.contains(i)||null==n||n.body.appendChild(i))},[i,n]),(0,f.useEffect)(()=>{t||null!==r&&a(r.current)},[r,a,t]),i}(r),[s]=(0,f.useState)(()=>{var e;return U.O.isServer?null:null!=(e=null==i?void 0:i.createElement("div"))?e:null}),o=(0,f.useContext)(W),l=(0,k.H)();return(0,F.e)(()=>{!a||!s||a.contains(s)||(s.setAttribute("data-headlessui-portal",""),a.appendChild(s))},[a,s]),(0,F.e)(()=>{if(s&&o)return o.register(s)},[o,s]),x(()=>{var e;a&&s&&(s instanceof Node&&a.contains(s)&&a.removeChild(s),a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a)))}),l&&a&&s?(0,D.createPortal)((0,j.sY)({ourProps:{ref:n},theirProps:e,defaultTag:H,name:"Portal"}),s):null}),{Group:(0,j.yV)(function(e,t){let{target:r,...n}=e,i={ref:(0,S.T)(t)};return f.createElement(V.Provider,{value:r},(0,j.sY)({ourProps:i,theirProps:n,defaultTag:z,name:"Popover.Group"}))})}),{useState:G,useEffect:Z,useLayoutEffect:J,useDebugValue:X}=p;void 0!==window.document&&window.document.createElement;let Y=p.useSyncExternalStore;var K=r(62502),Q=r(77211);let ee=(c=()=>new Map,d={PUSH(e,t){var r;let n=null!=(r=this.get(e))?r:{doc:e,count:0,d:(0,K.k)(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t)),this},SCROLL_PREVENT(e){let t,{doc:r,d:n,meta:i}=e,a={doc:r,d:n,meta:function(e){let t={};for(let r of e)Object.assign(t,r(t));return t}(i)},s=[(0,Q.gn)()?{before(e){let{doc:t,d:r,meta:n}=e;function i(e){return n.containers.flatMap(e=>e()).some(t=>t.contains(e))}r.microTask(()=>{var e;if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=(0,K.k)();e.style(t.documentElement,"scrollBehavior","auto"),r.add(()=>r.microTask(()=>
26e.dispose()))}let n=null!=(e=window.scrollY)?e:window.pageYOffset,a=null;r.addEventListener(t,"click",e=>{if(e.target instanceof HTMLElement)try{let r=e.target.closest("a");if(!r)return;let{hash:n}=new URL(r.href),s=t.querySelector(n);s&&!i(s)&&(a=s)}catch(e){}},!0),r.addEventListener(t,"touchstart",e=>{if(e.target instanceof HTMLElement){if(i(e.target)){let t=e.target;for(;t.parentElement&&i(t.parentElement);)t=t.parentElement;r.style(t,"overscrollBehavior","contain")}else r.style(e.target,"touchAction","none")}}),r.addEventListener(t,"touchmove",e=>{if(e.target instanceof HTMLElement){if(i(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}},{passive:!1}),r.add(()=>{var e;n!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,n),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{},{before(e){var r;let{doc:n}=e,i=n.documentElement;t=(null!=(r=n.defaultView)?r:window).innerWidth-i.clientWidth},after(e){let{doc:r,d:n}=e,i=r.documentElement,a=i.clientWidth-i.offsetWidth,s=t-a;n.style(i,"paddingRight","".concat(s,"px"))}},{before(e){let{doc:t,d:r}=e;r.style(t.documentElement,"overflow","hidden")}}];s.forEach(e=>{let{before:t}=e;return null==t?void 0:t(a)}),s.forEach(e=>{let{after:t}=e;return null==t?void 0:t(a)})},SCROLL_ALLOW(e){let{d:t}=e;t.dispose()},TEARDOWN(e){let{doc:t}=e;this.delete(t)}},a=c(),s=new Set,{getSnapshot:()=>a,subscribe:e=>(s.add(e),()=>s.delete(e)),dispatch(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];let i=d[e].call(a,...r);i&&(a=i,s.forEach(e=>e()))}});ee.subscribe(()=>{let e=ee.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let e="hidden"===t.get(r.doc),n=0!==r.count;(n&&!e||!n&&e)&&ee.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),0===r.count&&ee.dispatch("TEARDOWN",r)}});var et=r(11911);let er=new Map,en=new Map;function ei(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];(0,F.e)(()=>{var r;if(!t)return;let n="function"==typeof e?e():e.current;if(!n)return;let i=null!=(r=en.get(n))?r:0;return en.set(n,i+1),0!==i||(er.set(n,{"aria-hidden":n.getAttribute("aria-hidden"),inert:n.inert}),n.setAttribute("aria-hidden","true"),n.inert=!0),function(){var e;if(!n)return;let t=null!=(e=en.get(n))?e:1;if(1===t?en.delete(n):en.set(n,t-1),1!==t)return;let r=er.get(n);r&&(null===r["aria-hidden"]?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",r["aria-hidden"]),n.inert=r.inert,er.delete(n))}},[e,t])}var ea=r(18693),es=r(46490);let eo=(0,f.createContext)(()=>{});eo.displayName="StackContext";var el=((o=el||{})[o.Add=0]="Add",o[o.Remove=1]="Remove",o);function eu(e){let{children:t,onUpdate:r,type:n,element:i,enabled:a}=e,s=(0,f.useContext)(eo),o=(0,m.z)(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];null==r||r(...t),s(...t)});return(0,F.e)(()=>{let e=void 0===a||!0===a;return e&&o(0,n,i),()=>{e&&o(1,n,i)}},[o,n,i,a]),f.createElement(eo.Provider,{value:o},t)}var ec=r(48100);let ed=(0,f.createContext)(null),ef=Object.assign((0,j.yV)(function(e,t){let r=(0,et.M)(),{id:n="headlessui-description-".concat(r),...i}=e,a=function e(){let t=(0,f.useContext)(ed);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),s=(0,S.T)(t);(0,F.e)(()=>a.register(n),[n,a.register]);let o={ref:s,...a.props,id:n};return(0,j.sY)({ourProps:o,theirProps:i,slot:a.slot||{},defaultTag:"p",name:a.name||"Description"})}),{});var ep=r(28280),eh=((l=eh||{})[l.Open=0]="Open",l[l.Closed=1]="Closed",l),em=((u=em||{})[u.SetTitleId=0]="SetTitleId",u);let eg={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},ey=(0,f.createContext)(null);function ev(e){let t=(0,f.useContext)(ey);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Dialog /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,ev),t}return t}function eb(e,t){return(0,M.E)(t.type,eg,e,t)}ey.displayName="DialogContext";let ex=j.AN.RenderStrategy|j.AN.Static,e_=Object.assign((0,j.yV)(function(e,t){let r,n,i,a,s,o=(0,et.M)(),{id:l="headlessui-dialog-".concat(o),open:u,onClose:c,initialFocus:d,role:p="dialog",__demoMode:h=!1,...g}=e,[v,b]=(0,f.useState)(0),x=(0,f.useRef)(!1);
26p="dialog"===p||"alertdialog"===p?p:(x.current||(x.current=!0,console.warn("Invalid role [".concat(p,"] passed to <Dialog />. Only `dialog` and and `alertdialog` are supported. Using `dialog` instead."))),"dialog");let _=(0,es.oJ)();void 0===u&&null!==_&&(u=(_&es.ZM.Open)===es.ZM.Open);let E=(0,f.useRef)(null),C=(0,S.T)(E,t),O=w(E),A=e.hasOwnProperty("open")||null!==_,R=e.hasOwnProperty("onClose");if(!A&&!R)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!A)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!R)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof u)throw Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: ".concat(u));if("function"!=typeof c)throw Error("You provided an `onClose` prop to the `Dialog`, but the value is not a function. Received: ".concat(c));let N=u?0:1,[L,I]=(0,f.useReducer)(eb,{titleId:null,descriptionId:null,panelRef:(0,f.createRef)()}),D=(0,m.z)(()=>c(!1)),$=(0,m.z)(e=>I({type:0,id:e})),U=!!(0,k.H)()&&!h&&0===N,H=v>1,z=null!==(0,f.useContext)(ey),[V,G]=(r=(0,f.useContext)(W),n=(0,f.useRef)([]),i=(0,m.z)(e=>(n.current.push(e),r&&r.register(e),()=>a(e))),a=(0,m.z)(e=>{let t=n.current.indexOf(e);-1!==t&&n.current.splice(t,1),r&&r.unregister(e)}),s=(0,f.useMemo)(()=>({register:i,unregister:a,portals:n}),[i,a,n]),[n,(0,f.useMemo)(()=>function(e){let{children:t}=e;return f.createElement(W.Provider,{value:s},t)},[s])]),{resolveContainers:Z,mainTreeNodeRef:J,MainTreeNode:X}=function(){var e;let{defaultContainers:t=[],portals:r,mainTreeNodeRef:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=(0,f.useRef)(null!=(e=null==n?void 0:n.current)?e:null),a=w(i),s=(0,m.z)(()=>{var e,n,s;let o=[];for(let e of t)null!==e&&(e instanceof HTMLElement?o.push(e):"current"in e&&e.current instanceof HTMLElement&&o.push(e.current));if(null!=r&&r.current)for(let e of r.current)o.push(e);for(let t of null!=(e=null==a?void 0:a.querySelectorAll("html > *, body > *"))?e:[])t!==document.body&&t!==document.head&&t instanceof HTMLElement&&"headlessui-portal-root"!==t.id&&(t.contains(i.current)||t.contains(null==(s=null==(n=i.current)?void 0:n.getRootNode())?void 0:s.host)||o.some(e=>t.contains(e))||o.push(t));return o}
26);return{resolveContainers:s,contains:(0,m.z)(e=>s().some(t=>t.contains(e))),mainTreeNodeRef:i,MainTreeNode:(0,f.useMemo)(()=>function(){return null!=n?null:f.createElement(T._,{features:T.A.Hidden,ref:i})},[i,n])}}({portals:V,defaultContainers:[{get current(){var K;return null!=(K=L.panelRef.current)?K:E.current}}]}),Q=null!==_&&(_&es.ZM.Closing)===es.ZM.Closing,er=!z&&!Q&&U;ei((0,f.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==O?void 0:O.querySelectorAll("body > *"))?e:[]).find(e=>"headlessui-portal-root"!==e.id&&e.contains(J.current)&&e instanceof HTMLElement))?t:null},[J]),er);let en=!!H||U;ei((0,f.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==O?void 0:O.querySelectorAll("[data-headlessui-portal]"))?e:[]).find(e=>e.contains(J.current)&&e instanceof HTMLElement))?t:null},[J]),en);let eo=!(!U||H);(0,ea.O)(Z,e=>{e.preventDefault(),D()},eo);let ec=!(H||0!==N);y(null==O?void 0:O.defaultView,"keydown",e=>{ec&&(e.defaultPrevented||e.key===ep.R.Escape&&(e.preventDefault(),e.stopPropagation(),D()))}),function(e,t){var r;let n,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];r=e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],a]}},n=Y(ee.subscribe,ee.getSnapshot,ee.getSnapshot),(i=e?n.get(e):void 0)&&i.c
26ount,(0,F.e)(()=>{if(!(!e||!t))return ee.dispatch("PUSH",e,r),()=>ee.dispatch("POP",e,r)},[t,e])}(O,!(Q||0!==N||z),Z),(0,f.useEffect)(()=>{if(0!==N||!E.current)return;let e=new ResizeObserver(e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&D()}});return e.observe(E.current),()=>e.disconnect()},[N,E,D]);let[ef,eh]=function(){let[e,t]=(0,f.useState)([]);return[e.length>0?e.join(" "):void 0,(0,f.useMemo)(()=>function(e){let r=(0,m.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let r=t.slice(),n=r.indexOf(e);return -1!==n&&r.splice(n,1),r}))),n=(0,f.useMemo)(()=>({register:r,slot:e.slot,name:e.name,props:e.props}),[r,e.slot,e.name,e.props]);return f.createElement(ed.Provider,{value:n},e.children)},[t])]}(),em=(0,f.useMemo)(()=>[{dialogState:N,close:D,setTitleId:$},L],[N,L,D,$]),eg=(0,f.useMemo)(()=>({open:0===N}),[N]),ev={ref:C,id:l,role:p,"aria-modal":0===N||void 0,"aria-labelledby":L.titleId,"aria-describedby":ef};return f.createElement(eu,{type:"Dialog",enabled:0===N,element:E,onUpdate:(0,m.z)((e,t)=>{"Dialog"===t&&(0,M.E)(e,{[el.Add]:()=>b(e=>e+1),[el.Remove]:()=>b(e=>e-1)})})},f.createElement(B,{force:!0},f.createElement(q,null,f.createElement(ey.Provider,{value:em},f.createElement(q.Group,{target:E},f.createElement(B,{force:!1},f.createElement(eh,{slot:eg,name:"Dialog.Description"},f.createElement(P,{initialFocus:d,containers:Z,features:U?(0,M.E)(H?"parent":"leaf",{parent:P.features.RestoreFocus,leaf:P.features.All&~P.features.FocusLock}):P.features.None},f.createElement(G,null,(0,j.sY)({ourProps:ev,theirProps:g,slot:eg,defaultTag:"div",features:ex,visible:0===N,name:"Dialog"}))))))))),f.createElement(X,null))}),{Backdrop:(0,j.yV)(function(e,t){let r=(0,et.M)(),{id:n="headlessui-dialog-backdrop-".concat(r),...i}=e,[{dialogState:a},s]=ev("Dialog.Backdrop"),o=(0,S.T)(t);(0,f.useEffect)(()=>{if(null===s.panelRef.current)throw Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[s.panelRef]);let l=(0,f.useMemo)(()=>({open:0===a}),[a]);return f.createElement(B,{force:!0},f.createElement(q,null,(0,j.sY)({ourProps:{ref:o,id:n,"aria-hidden":!0},theirProps:i,slot:l,defaultTag:"div",name:"Dialog.Backdrop"})))}),Panel:(0,j.yV)(function(e,t){let r=(0,et.M)(),{id:n="headlessui-dialog-panel-".concat(r),...i}=e,[{dialogState:a},s]=ev("Dialog.Panel"),o=(0,S.T)(t,s.panelRef),l=(0,f.useMemo)(()=>({open:0===a}),[a]),u=(0,m.z)(e=>{e.stopPropagation()});return(0,j.sY)({ourProps:{ref:o,id:n,onClick:u},theirProps:i,slot:l,defaultTag:"div",name:"Dialog.Panel"})}),Overlay:(0,j.yV)(function(e,t){let r=(0,et.M)(),{id:n="headlessui-dialog-overlay-".concat(r),...i}=e,[{dialogState:a,close:s}]=ev("Dialog.Overlay"),o=(0,S.T)(t),l=(0,m.z)(e=>{if(e.target===e.currentTarget){if((0,ec.P)(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),s()}}),u=(0,f.useMemo)(()=>({open:0===a}),[a]);return(0,j.sY)({ourProps:{ref:o,id:n,"aria-hidden":!0,onClick:l},theirProps:i,slot:u,defaultTag:"div",name:"Dialog.Overlay"})}),Title:(0,j.yV)(function(e,t){let r=(0,et.M)(),{id:n="headlessui-dialog-title-".concat(r),...i}=e,[{dialogState:a,setTitleId:s}]=ev("Dialog.Title"),o=(0,S.T)(t);(0,f.useEffect)(()=>(s(n),()=>s(null)),[n,s]);let l=(0,f.useMemo)(()=>({open:0===a}),[a]);return(0,j.sY)({ourProps:{ref:o,id:n},theirProps:i,slot:l,defaultTag:"h2",name:"Dialog.Title"})}),Description:ef})},28280:function(e,t,r){"use strict";let n;r.d(t,{R:function(){return i}});var i=((n=i||{}).Space=" ",n.Enter="Enter",n.Escape="Escape",n.Backspace="Backspace",n.Delete="Delete",n.ArrowLeft="ArrowLeft",n.ArrowUp="ArrowUp",n.ArrowRight="ArrowRight",n.ArrowDown="ArrowDown",n.Home="Home",n.End="End",n.PageUp="PageUp",n.PageDown="PageDown",n.Tab="Tab",n)},11460:function(e,t,r){"use strict";let n;r.d(t,{u:function(){return j}});var i=r(67294),a=r(49126),s=r(90178),o=r(74771),l=r(56427),u=r(39273),c=r(2038),d=r(94448),f=r(62502),p=r(28400);function h(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];e&&r.length>0&&e.classList.add(...r)}function m(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];e&&r.length>0&&e.classList.remove(...r)}var g=r(46490),y=r(75711),v=r(90633);function b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split(/\s+/).filter(e=>e.length>1)}let x=(0,i.createContext)(null);x.displayName="TransitionContext";var _=((n=_||{}).Visible="visible",n.Hidden="hidden",n);let w=(0,i.createContext)(null);function k(e){return"children"in e?k(e.children):e.current.filter(e=>{let{el:t}=e;return null!==t.current}).filter(e=>{let{state:t}=e;return"visible"===t}).length>0}function S(e,t){let r=(0,u.E)(e),n=(0,i.useRef)([]),l=(0,o.t)(),c=(0,a.G)(),d=(0,s.z)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.l4.Hidden,i=n.current.findIndex(t=>{let{el:r}=t;return r===e});-1!==i&&((0,p.E)(t,{[v.l4.Unmount](){n.current.splice(i,1)},[v.l4.Hidden](){n.current[i].state="hidden"}}),c.microTask(()=>{var e;!k(n)&&l.current&&(null==(e=r.current)||e.call(r))}))}),f=(0,s.z)(e=>{let t=n.current.find(t=>{let{el:r}=t;return r===e});return t?"visible"!==t.state&&(t.state="visible"):n.current.push({el:e,state:"visible"}),()=>d(e,v.l4.Unmount)}),h=(0,i.useRef)([]),m=(0,i.useRef)(Promise.resolve()),g=(0,i.useRef)({enter:[],leave:[],idle:[]}),y=(0,s.z)((e,r,n)=>{h.current.splice(0),t&&(t.chains.current[r]=t.chains.current[r].filter(t=>{let[r]=t;return r!==e})),null==t||t.chains.current[r].push([e,new Promise(e=>{h.current.push(e)})]),null==t||t.chains.current[r].push([e,new Promise(e=>{Promise.all(g.current[r].map(e=>{let[t,r]=e;return r})).then(()=>e())}
26)]),"enter"===r?m.current=m.current.then(()=>null==t?void 0:t.wait.current).then(()=>n(r)):n(r)}),b=(0,s.z)((e,t,r)=>{Promise.all(g.current[t].splice(0).map(e=>{let[t,r]=e;return r})).then(()=>{var e;null==(e=h.current.shift())||e()}).then(()=>r(t))});return(0,i.useMemo)(()=>({children:n,register:f,unregister:d,onStart:y,onStop:b,wait:m,chains:g}),[f,d,n,y,b,g,m])}function E(){}w.displayName="NestingContext";let C=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function O(e){var t;let r={};for(let n of C)r[n]=null!=(t=e[n])?t:E;return r}let T=v.AN.RenderStrategy,A=(0,v.yV)(function(e,t){let{show:r,appear:n=!1,unmount:a=!0,...o}=e,u=(0,i.useRef)(null),f=(0,d.T)(u,t);(0,c.H)();let p=(0,g.oJ)();if(void 0===r&&null!==p&&(r=(p&g.ZM.Open)===g.ZM.Open),![!0,!1].includes(r))throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[h,m]=(0,i.useState)(r?"visible":"hidden"),y=S(()=>{m("hidden")}),[b,_]=(0,i.useState)(!0),E=(0,i.useRef)([r]);(0,l.e)(()=>{!1!==b&&E.current[E.current.length-1]!==r&&(E.current.push(r),_(!1))},[E,r]);let C=(0,i.useMemo)(()=>({show:r,appear:n,initial:b}),[r,n,b]);(0,i.useEffect)(()=>{if(r)m("visible");else if(k(y)){let e=u.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&m("hidden")}else m("hidden")},[r,y]);let O={unmount:a},A=(0,s.z)(()=>{var t;b&&_(!1),null==(t=e.beforeEnter)||t.call(e)}),M=(0,s.z)(()=>{var t;b&&_(!1),null==(t=e.beforeLeave)||t.call(e)});return i.createElement(w.Provider,{value:y},i.createElement(x.Provider,{value:C},(0,v.sY)({ourProps:{...O,as:i.Fragment,children:i.createElement(R,{ref:f,...O,...o,beforeEnter:A,beforeLeave:M})},theirProps:{},defaultTag:i.Fragment,features:T,visible:"visible"===h,name:"Transition"})))}),R=(0,v.yV)(function(e,t){var r,n,_;let E;let{beforeEnter:C,afterEnter:A,beforeLeave:R,afterLeave:M,enter:j,enterFrom:N,enterTo:L,entered:P,leave:I,leaveFrom:D,leaveTo:F,...$}=e,B=(0,i.useRef)(null),U=(0,d.T)(B,t),H=null==(r=$.unmount)||r?v.l4.Unmount:v.l4.Hidden,{show:z,appear:V,initial:W}=function(){let e=(0,i.useContext)(x);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[q,G]=(0,i.useState)(z?"visible":"hidden"),Z=function(){let e=(0,i.useContext)(w);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:J,unregister:X}=Z;(0,i.useEffect)(()=>J(B),[J,B]),(0,i.useEffect)(()=>{if(H===v.l4.Hidden&&B.current){if(z&&"visible"!==q){G("visible");return}return(0,p.E)(q,{hidden:()=>X(B),visible:()=>J(B)})}},[q,B,J,X,z,H]);let Y=(0,u.E)({base:b($.className),enter:b(j),enterFrom:b(N),enterTo:b(L),entered:b(P),leave:b(I),leaveFrom:b(D),leaveTo:b(F)}),K=(_={beforeEnter:C,afterEnter:A,beforeLeave:R,afterLeave:M},E=(0,i.useRef)(O(_)),(0,i.useEffect)(()=>{E.current=O(_)},[_]),E),Q=(0,c.H)();(0,i.useEffect)(()=>{if(Q&&"visible"===q&&null===B.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[B,q,Q]);let ee=V&&z&&W,et=Q&&(!W||V)?z?"enter":"leave":"idle",er=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,r]=(0,i.useState)(e),n=(0,o.t)(),a=(0,i.useCallback)(e=>{n.current&&r(t=>t|e)},[t,n]),s=(0,i.useCallback)(e=>!!(t&e),[t]);return{flags:t,addFlag:a,hasFlag:s,removeFlag:(0,i.useCallback)(e=>{n.current&&r(t=>t&~e)},[r,n]),toggleFlag:(0,i.useCallback)(e=>{n.current&&r(t=>t^e)},[r])}}(0),en=(0,s.z)(e=>(0,p.E)(e,{enter:()=>{er.addFlag(g.ZM.Opening),K.current.beforeEnter()},leave:()=>{er.addFlag(g.ZM.Closing),K.current.beforeLeave()},idle:()=>{}})),ei=(0,s.z)(e=>(0,p.E)(e,{enter:()=>{er.removeFlag(g.ZM.Opening),K.current.afterEnter()},leave:()=>{er.removeFlag(g.ZM.Closing),K.current.afterLeave()},idle:()=>{}})),ea=S(()=>{G("hidden"),X(B)},Z),es=(0,i.useRef)(!1);!function(e){let{immediate:t,container:r,direction:n,classes:i,onStart:s,onStop:c}=e,d=(0,o.t)(),g=(0,a.G)(),y=(0,u.E)(n);(0,l.e)(()=>{t&&(y.current="enter")},[t]),(0,l.e)(()=>{let e=(0,f.k)();g.add(e.dispose);let t=r.current;if(t&&"idle"!==y.current&&d.current){var n,a,o;let r,l,u,d,g,v,b;return e.dispose(),s.current(y.current),e.add((n=i.current,a="enter"===y.current,o=()=>{e.dispose(),c.current(y.current)},l=a?"enter":"leave",u=(0,f.k)(),d=void 0!==o?(r={called:!1},function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!r.called)return r.called=!0,o(...t)}):()=>{}
26,"enter"===l&&(t.removeAttribute("hidden"),t.style.display=""),g=(0,p.E)(l,{enter:()=>n.enter,leave:()=>n.leave}),v=(0,p.E)(l,{enter:()=>n.enterTo,leave:()=>n.leaveTo}),b=(0,p.E)(l,{enter:()=>n.enterFrom,leave:()=>n.leaveFrom}),m(t,...n.base,...n.enter,...n.enterTo,...n.enterFrom,...n.leave,...n.leaveFrom,...n.leaveTo,...n.entered),h(t,...n.base,...g,...b),u.nextFrame(()=>{m(t,...n.base,...g,...b),h(t,...n.base,...g,...v),function(e,t){let r=(0,f.k)();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:i}=getComputedStyle(e),[a,s]=[n,i].map(e=>{let[t=0]=e.split(",").filter(Boolean).map(e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e)).sort((e,t)=>t-e);return t}),o=a+s;if(0!==o){r.group(r=>{r.setTimeout(()=>{t(),r.dispose()},o),r.addEventListener(e,"transitionrun",e=>{e.target===e.currentTarget&&r.dispose()})});let n=r.addEventListener(e,"transitionend",e=>{e.target===e.currentTarget&&(t(),n())})}else t();r.add(()=>t()),r.dispose}(t,()=>(m(t,...n.base,...g),h(t,...n.base,...n.entered),d()))}),u.dispose)),e.dispose}},[n])}({immediate:ee,container:B,classes:Y,direction:et,onStart:(0,u.E)(e=>{es.current=!0,ea.onStart(B,e,en)}),onStop:(0,u.E)(e=>{es.current=!1,ea.onStop(B,e,ei),"leave"!==e||k(ea)||(G("hidden"),X(B))})});let eo=$;return ee?eo={...eo,className:(0,y.A)($.className,...Y.current.enter,...Y.current.enterFrom)}:es.current&&(eo.className=(0,y.A)($.className,null==(n=B.current)?void 0:n.className),""===eo.className&&delete eo.className),i.createElement(w.Provider,{value:ea},i.createElement(g.up,{value:(0,p.E)(q,{visible:g.ZM.Open,hidden:g.ZM.Closed})|er.flags},(0,v.sY)({ourProps:{ref:U},theirProps:eo,defaultTag:"div",features:T,visible:"visible"===q,name:"Transition.Child"})))}),M=(0,v.yV)(function(e,t){let r=null!==(0,i.useContext)(x),n=null!==(0,g.oJ)();return i.createElement(i.Fragment,null,!r&&n?i.createElement(A,{ref:t,...e}):i.createElement(R,{ref:t,...e}))}),j=Object.assign(A,{Child:M,Root:A})},49126:function(e,t,r){"use strict";r.d(t,{G:function(){return a}});var n=r(67294),i=r(62502);function a(){let[e]=(0,n.useState)(i.k);return(0,n.useEffect)(()=>()=>e.dispose(),[e]),e}},90178:function(e,t,r){"use strict";r.d(t,{z:function(){return a}});var n=r(67294),i=r(39273);let a=function(e){let t=(0,i.E)(e);return n.useCallback(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current(...r)},[t])}},11911:function(e,t,r){"use strict";r.d(t,{M:function(){return l}});var n,i=r(67294),a=r(34550),s=r(56427),o=r(2038);let l=null!=(n=i.useId)?n:function(){let e=(0,o.H)(),[t,r]=i.useState(e?()=>a.O.nextId():null);return(0,s.e)(()=>{null===t&&r(a.O.nextId())},[t]),null!=t?""+t:void 0}},74771:function(e,t,r){"use strict";r.d(t,{t:function(){return a}});var n=r(67294),i=r(56427);function a(){let e=(0,n.useRef)(!1);return(0,i.e)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},56427:function(e,t,r){"use strict";r.d(t,{e:function(){return a}});var n=r(67294),i=r(34550);let a=(e,t)=>{i.O.isServer?(0,n.useEffect)(e,t):(0,n.useLayoutEffect)(e,t)}},39273:function(e,t,r){"use strict";r.d(t,{E:function(){return a}});var n=r(67294),i=r(56427);function a(e){let t=(0,n.useRef)(e);return(0,i.e)(()=>{t.current=e},[e]),t}},18693:function(e,t,r){"use strict";r.d(t,{O:function(){return u}});var n=r(67294),i=r(21939),a=r(77211),s=r(39273);function o(e,t,r){let i=(0,s.E)(t);(0,n.useEffect)(()=>{function t(e){i.current(e)}return document.addEventListener(e,t,r),()=>document.removeEventListener(e,t,r)},[e,r])}var l=r(56346);function u(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],s=(0,n.useRef)(!1);function u(r,n){if(!s.current||r.defaultPrevented)return;let a=n(r);if(null!==a&&a.getRootNode().contains(a)&&a.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e)){if(null===t)continue;let e=t instanceof HTMLElement?t:t.current;if(null!=e&&e.contains(a)||r.composed&&r.composedPath().includes(e))return}return(0,i.sP)(a,i.tJ.Loose)||-1===a.tabIndex||r.preventDefault(),t(r,a)}}(0,n.useEffect)(()=>{requestAnimationFrame(()=>{s.current=r})},[r]);let c=(0,n.useRef)(null);o("pointerdown",e=>{var t,r;s.current&&(c.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),o("mousedown",e=>{var t,r;s.current&&(c.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),o("click",e=>{(0,a.tq)()||c.current&&(u(e,()=>c.current),c.current=null)},!0),o("touchend",e=>u(e,()=>e.target instanceof HTMLElement?e.target:null),!0),(0,l.s)("blur",e=>u(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}},2038:function(e,t,r){"use strict";r.d(t,{H:function(){return s}});var n,i=r(67294),a=r(34550);function s(){let e;let t=(e="undefined"==typeof document,(0,(n||(n=r.t(i,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[s,o]=i.useState(a.O.isHandoffComplete);return s&&!1===a.O.isHandoffComplete&&o(!1),i.useEffect(()=>{!0!==s&&o(!0)},[s]),i.useEffect(()=>a.O.handoff(),[]),!t&&s}},94448:function(e,t,r){"use strict";r.d(t,{T:function(){return o},h:function(){return s}});var n=r(67294),i=r(90178);let a=Symbol();function s(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(e,{[a]:t})}function o(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let s=(0,n.useRef)(t);(0,n.useEffect)(()=>{s.current=t},[t]);let o=(0,i.z)(e=>{for(let t of s.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[a]))?void 0:o}},56346:function(e,t,r){"use strict";r.d(t,{s:function(){return a}});var n=r(67294),i=r(39273);function a(e,t,r){let a=(0,i.E)(t);(0,n.useEffect)(()=>
26{function t(e){a.current(e)}return window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)},[e,r])}},47287:function(e,t,r){"use strict";let n;r.d(t,{A:function(){return a},_:function(){return s}});var i=r(90633),a=((n=a||{})[n.None=1]="None",n[n.Focusable=2]="Focusable",n[n.Hidden=4]="Hidden",n);let s=(0,i.yV)(function(e,t){var r;let{features:n=1,...a}=e,s={ref:t,"aria-hidden":(2&n)==2||(null!=(r=a["aria-hidden"])?r:void 0),hidden:(4&n)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&n)==4&&(2&n)!=2&&{display:"none"}}};return(0,i.sY)({ourProps:s,theirProps:a,slot:{},defaultTag:"div",name:"Hidden"})})},46490:function(e,t,r){"use strict";let n;r.d(t,{ZM:function(){return s},oJ:function(){return o},up:function(){return l}});var i=r(67294);let a=(0,i.createContext)(null);a.displayName="OpenClosedContext";var s=((n=s||{})[n.Open=1]="Open",n[n.Closed=2]="Closed",n[n.Closing=4]="Closing",n[n.Opening=8]="Opening",n);function o(){return(0,i.useContext)(a)}function l(e){let{value:t,children:r}=e;return i.createElement(a.Provider,{value:t},r)}},48100:function(e,t,r){"use strict";function n(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=(null==t?void 0:t.getAttribute("disabled"))==="";return!(n&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(r))&&n}r.d(t,{P:function(){return n}})},75711:function(e,t,r){"use strict";function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return Array.from(new Set(t.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}r.d(t,{A:function(){return n}})},62502:function(e,t,r){"use strict";r.d(t,{k:function(){return function e(){let t=[],r={addEventListener:(e,t,n,i)=>(e.addEventListener(t,n,i),r.add(()=>e.removeEventListener(t,n,i))),requestAnimationFrame(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let i=requestAnimationFrame(...t);return r.add(()=>cancelAnimationFrame(i))},nextFrame(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.requestAnimationFrame(()=>r.requestAnimationFrame(...t))},setTimeout(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let i=setTimeout(...t);return r.add(()=>clearTimeout(i))},microTask(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];let a={current:!0};return(0,n.Y)(()=>{a.current&&t[0]()}),r.add(()=>{a.current=!1})},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add(()=>{Object.assign(e.style,{[t]:n})})},group(t){let r=e();return t(r),this.add(()=>r.dispose())},add:e=>(t.push(e),()=>{let r=t.indexOf(e);if(r>=0)for(let e of t.splice(r,1))e()}),dispose(){for(let e of t.splice(0))e()}};return r}}});var n=r(4387)},34550:function(e,t,r){"use strict";r.d(t,{O:function(){return o}});var n=Object.defineProperty,i=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,a=(e,t,r)=>(i(e,"symbol"!=typeof t?t+"":t,r),r);class s{set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}constructor(){a(this,"current",this.detect()),a(this,"handoffState","pending"),a(this,"currentId",0)}}let o=new s},21939:function(e,t,r){"use strict";let n,i,a,s,o;r.d(t,{C5:function(){return y},TO:function(){return d},fE:function(){return f},jA:function(){return b},sP:function(){return m},tJ:function(){return h},z2:function(){return v}});var l=r(28400),u=r(46854);let c=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(",");var d=((n=d||{})[n.First=1]="First",n[n.Previous=2]="Previous",n[n.Next=4]="Next",n[n.Last=8]="Last",n[n.WrapAround=16]="WrapAround",n[n.NoScroll=32]="NoScroll",n),f=((i=f||{})[i.Error=0]="Error",i[i.Overflow=1]="Overflow",i[i.Success=2]="Success",i[i.Underflow=3]="Underflow",i),p=((a=p||{})[a.Previous=-1]="Previous",a[a.Next=1]="Next",a),h=((s=h||{})[s.Strict=0]="Strict",s[s.Loose=1]="Loose",s);function m(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=(0,u.r)(e))?void 0:t.body)&&(0,l.E)(r,{0:()=>e.matches(c),1(){let t=e;for(;null!==t;){if(t.matches(c))return!0;t=t.parentElement}return!1}})}var g=((o=g||{})[o.Keyboard=0]="Keyboard",o[o.Mouse=1]="Mouse",o);function y(e){null==e||e.focus({preventScroll:!0})}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort((e,r)=>{let n=t(e),i=t(r);if(null===n||null===i)return 0;let a=n.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function b(e,t){var r,n,i;let{sorted:a=!0,relativeTo:s=null,skipElements:o=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,u=Array.isArray(e)?a?v(e):e:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(c)).sort((e,t)=>
26Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e);o.length>0&&u.length>1&&(u=u.filter(e=>!o.includes(e))),s=null!=s?s:l.activeElement;let d=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,u.indexOf(s))-1;if(4&t)return Math.max(0,u.indexOf(s))+1;if(8&t)return u.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=32&t?{preventScroll:!0}:{},h=0,m=u.length,g;do{if(h>=m||h+m<=0)return 0;let e=f+h;if(16&t)e=(e+m)%m;else{if(e<0)return 3;if(e>=m)return 1}null==(g=u[e])||g.focus(p),h+=d}while(g!==l.activeElement);return 6&t&&null!=(i=null==(n=null==(r=g)?void 0:r.matches)?void 0:n.call(r,"textarea,input"))&&i&&g.select(),2}"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0))},28400:function(e,t,r){"use strict";function n(e,t){for(var r=arguments.length,i=Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];if(e in t){let r=t[e];return"function"==typeof r?r(...i):r}let s=Error('Tried to handle "'.concat(e,'" but there is no handler defined. Only defined handlers are: ').concat(Object.keys(t).map(e=>'"'.concat(e,'"')).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(s,n),s}r.d(t,{E:function(){return n}})},4387:function(e,t,r){"use strict";function n(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}r.d(t,{Y:function(){return n}})},46854:function(e,t,r){"use strict";r.d(t,{r:function(){return i}});var n=r(34550);function i(e){return n.O.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},77211:function(e,t,r){"use strict";function n(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function i(){return n()||/Android/gi.test(window.navigator.userAgent)}r.d(t,{gn:function(){return n},tq:function(){return i}})},90633:function(e,t,r){"use strict";let n,i;r.d(t,{AN:function(){return l},l4:function(){return u},oA:function(){return m},sY:function(){return c},yV:function(){return h}});var a=r(67294),s=r(75711),o=r(28400),l=((n=l||{})[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static",n),u=((i=u||{})[i.Unmount=0]="Unmount",i[i.Hidden=1]="Hidden",i);function c(e){let{ourProps:t,theirProps:r,slot:n,defaultTag:i,features:a,visible:s=!0,name:l,mergeRefs:u}=e;u=null!=u?u:f;let c=p(r,t);if(s)return d(c,n,i,l,u);let h=null!=a?a:0;if(2&h){let{static:e=!1,...t}=c;if(e)return d(t,n,i,l,u)}if(1&h){let{unmount:e=!0,...t}=c;return(0,o.E)(e?0:1,{0:()=>null,1:()=>d({...t,hidden:!0,style:{display:"none"}},n,i,l,u)})}return d(c,n,i,l,u)}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,{as:o=r,children:l,refName:u="ref",...c}=g(e,["unmount","static"]),d=void 0!==e.ref?{[u]:e.ref}:{},f="function"==typeof l?l(t):l;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t));let h={};if(t){let e=!1,r=[];for(let[n,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&r.push(n);e&&(h["data-headlessui-state"]=r.join(" "))}if(o===a.Fragment&&Object.keys(m(c)).length>0){if(!(0,a.isValidElement)(f)||Array.isArray(f)&&f.length>1)throw Error(['Passing props on "Fragment"!',"","The current component <".concat(n,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(c).map(e=>"  - ".concat(e)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>"  - ".concat(e)).join("\n")].join("\n"));let e=f.props,t="function"==typeof(null==e?void 0:e.className)?function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return(0,s.A)(null==e?void 0:e.className(...r),c.className)}:(0,s.A)(null==e?void 0:e.className,c.className);return(0,a.cloneElement)(f,Object.assign({},p(f.props,m(g(c,["ref"]))),h,d,{ref:i(f.ref,d.ref)},t?{className:t}:{}))}return(0,a.createElement)(o,Object.assign({},g(c,["ref"]),o!==a.Fragment&&d,o!==a.Fragment&&h),f)}function f(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.every(e=>null==e)?void 0:e=>{for(let r of t)null!=r&&("function"==typeof r?r(e):r.current=e)}}function p(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(0===t.length)return{};if(1===t.length)return t[0];let n={},i={};for(let e of t)for(let t in e)t.startsWith("on")&&"function"==typeof e[t]?(null!=i[t]||(i[t]=[]),i[t].push(e[t])):n[t]=e[t];if(n.disabled||n["aria-disabled"])return Object.assign(n,Object.fromEntries(Object.keys(i).map(e=>[e,void 0])));for(let e in i)Object.assign(n,{[e](t){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];for(let r of i[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;r(t,...n)}}});return n}function h(e){var t;return Object.assign((0,a.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function m(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}},86501:function(e,t,r){"use strict";let n,i;r.d(t,{x7:function(){return ef},ZP:function(){return ep}});var a,s=r(67294);let o={data:""},l=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||o,u=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,c=/\/\*[^]*?\*\/|  +/g,d=/\n+/g,f=(e,t)=>{let r="",n="",i="";for(let a in e){let s=e[a];"@"==a[0]?"i"==a[1]?r=a+" "+s+";":n+="f"==a[1]?f(s,a):a+"{"+f(s,"k"==a[1]?"":t)+"}":"object"==typeof s?n+=f(s,t?t.replace(/([^,])+/g,e=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):a):null!=s&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=f.p?f.p(a,s):a+":"+s+";")}return r+(t&&i?t+"{"+i+"}":i)+n},p={},h=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+h(e[r]);return t}return e},m=(e,t,r,n,i)=>{var a;let s=h(e),o=p[s]||(p[s]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return"go"+r})(s));if(!p[o]){let t=s!==e?e:(e=>{let t,r,n=[{}];for(;t=u.exec(e.replace(c,""));)t[4]?n.shift():t[3]?(r=t[3].replace(d," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][t[1]]=t[2].replace(d," ").trim();return n[0]})(e);p[o]=f(i?{["@keyframes "+o]:t}:t,r?"":"."+o)}let l=r&&p.g?p.g:null;return r&&(p.g=p[o]),a=p[o],l?t.data=t.data.replace(l,a):-1===t.data.indexOf(a)&&(t.data=n?a+t.data:t.data+a),o},g=(e,t,r)=>e.reduce((e,n,i)=>{let a=t[i];if(a&&a.call){let e=a(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;a=t?"."+t:e&&"object"==typeof e?e.props?"":f(e,""):!1===e?"":e}return e+n+(null==a?"":a)},"");function y(e){let t=this||{},r=e.call?e(t.p):e;
26return m(r.unshift?r.raw?g(r,[].slice.call(arguments,1),t.p):r.reduce((e,r)=>Object.assign(e,r&&r.call?r(t.p):r),{}):r,l(t.target),t.g,t.o,t.k)}y.bind({g:1});let v,b,x,_=y.bind({k:1});function w(e,t){let r=this||{};return function(){let n=arguments;function i(a,s){let o=Object.assign({},a),l=o.className||i.className;r.p=Object.assign({theme:b&&b()},o),r.o=/ *go\d+/.test(l),o.className=y.apply(r,n)+(l?" "+l:""),t&&(o.ref=s);let u=e;return e[0]&&(u=o.as||e,delete o.as),x&&u[0]&&x(o),v(u,o)}return t?t(i):i}}var k=e=>"function"==typeof e,S=(e,t)=>k(e)?e(t):e,E=(n=0,()=>(++n).toString()),C=()=>{if(void 0===i&&"u">typeof window){let e=matchMedia("(prefers-reduced-motion: reduce)");i=!e||e.matches}return i},O="default",T=(e,t)=>{let{toastLimit:r}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,r)};case 1:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:n}=t;return T(e,{type:e.toasts.find(e=>e.id===n.id)?1:0,toast:n});case 3:let{toastId:i}=t;return{...e,toasts:e.toasts.map(e=>e.id===i||void 0===i?{...e,dismissed:!0,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let a=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+a}))}}},A=[],R={toasts:[],pausedAt:void 0,settings:{toastLimit:20}},M={},j=(e,t=O)=>{M[t]=T(M[t]||R,e),A.forEach(([e,r])=>{e===t&&r(M[t])})},N=e=>Object.keys(M).forEach(t=>j(e,t)),L=e=>Object.keys(M).find(t=>M[t].toasts.some(t=>t.id===e)),P=(e=O)=>t=>{j(t,e)},I={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},D=(e={},t=O)=>{let[r,n]=(0,s.useState)(M[t]||R),i=(0,s.useRef)(M[t]);(0,s.useEffect)(()=>(i.current!==M[t]&&n(M[t]),A.push([t,n]),()=>{let e=A.findIndex(([e])=>e===t);e>-1&&A.splice(e,1)}),[t]);let a=r.toasts.map(t=>{var r,n,i;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(r=e[t.type])?void 0:r.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||I[t.type],style:{...e.style,...null==(i=e[t.type])?void 0:i.style,...t.style}}});return{...r,toasts:a}},F=(e,t="blank",r)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(null==r?void 0:r.id)||E()}),$=e=>(t,r)=>{let n=F(t,e,r);return P(n.toasterId||L(n.id))({type:2,toast:n}),n.id},B=(e,t)=>$("blank")(e,t);B.error=$("error"),B.success=$("success"),B.loading=$("loading"),B.custom=$("custom"),B.dismiss=(e,t)=>{let r={type:3,toastId:e};t?P(t)(r):N(r)},B.dismissAll=e=>B.dismiss(void 0,e),B.remove=(e,t)=>{let r={type:4,toastId:e};t?P(t)(r):N(r)},B.removeAll=e=>B.remove(void 0,e),B.promise=(e,t,r)=>{let n=B.loading(t.loading,{...r,...null==r?void 0:r.loading});return"function"==typeof e&&(e=e()),e.then(e=>{let i=t.success?S(t.success,e):void 0;return i?B.success(i,{id:n,...r,...null==r?void 0:r.success}):B.dismiss(n),e}).catch(e=>{let i=t.error?S(t.error,e):void 0;i?B.error(i,{id:n,...r,...null==r?void 0:r.error}):B.dismiss(n)}),e};var U=1e3,H=(e,t="default")=>{let{toasts:r,pausedAt:n}=D(e,t),i=(0,s.useRef)(new Map).current,a=(0,s.useCallback)((e,t=U)=>{if(i.has(e))return;let r=setTimeout(()=>{i.delete(e),o({type:4,toastId:e})},t);i.set(e,r)},[]);(0,s.useEffect)(()=>{if(n)return;let e=Date.now(),i=r.map(r=>{if(r.duration===1/0)return;let n=(r.duration||0)+r.pauseDuration-(e-r.createdAt);if(n<0){r.visible&&B.dismiss(r.id);return}return setTimeout(()=>B.dismiss(r.id,t),n)});return()=>{i.forEach(e=>e&&clearTimeout(e))}},[r,n,t]);let o=(0,s.useCallback)(P(t),[t]),l=(0,s.useCallback)(()=>{o({type:5,time:Date.now()})},[o]),u=(0,s.useCallback)((e,t)=>{o({type:1,toast:{id:e,height:t}})},[o]),c=(0,s.useCallback)(()=>{n&&o({type:6,time:Date.now()})},[n,o]),d=(0,s.useCallback)((e,t)=>{let{reverseOrder:n=!1,gutter:i=8,defaultPosition:a}=t||{},s=r.filter(t=>(t.position||a)===(e.position||a)&&t.height),o=s.findIndex(t=>t.id===e.id),l=s.filter((e,t)=>t<o&&e.visible).length;return s.filter(e=>e.visible).slice(...n?[l+1]:[0,l]).reduce((e,t)=>
vendor: 4,282 bytes, lines 26-197
26e+(t.height||0)+i,0)},[r]);return(0,s.useEffect)(()=>{r.forEach(e=>{if(e.dismissed)a(e.id,e.removeDelay);else{let t=i.get(e.id);t&&(clearTimeout(t),i.delete(e.id))}})},[r,a]),{toasts:r,handlers:{updateHeight:u,startPause:l,endPause:c,calculateOffset:d}}},z=_`
27from {
28  transform: scale(0) rotate(45deg);
29	opacity: 0;
30}
31to {
32 transform: scale(1) rotate(45deg);
33  opacity: 1;
34}`,V=_`
35from {
36  transform: scale(0);
37  opacity: 0;
38}
39to {
40  transform: scale(1);
41  opacity: 1;
42}`,W=_`
43from {
44  transform: scale(0) rotate(90deg);
45	opacity: 0;
46}
47to {
48  transform: scale(1) rotate(90deg);
49	opacity: 1;
50}`,q=w("div")`
51  width: 20px;
52  opacity: 0;
53  height: 20px;
54  border-radius: 10px;
55  background: ${e=>e.primary||"#ff4b4b"};
56  position: relative;
57  transform: rotate(45deg);
58
59  animation: ${z} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
60    forwards;
61  animation-delay: 100ms;
62
63  &:after,
64  &:before {
65    content: '';
66    animation: ${V} 0.15s ease-out forwards;
67    animation-delay: 150ms;
68    position: absolute;
69    border-radius: 3px;
70    opacity: 0;
71    background: ${e=>e.secondary||"#fff"};
72    bottom: 9px;
73    left: 4px;
74    height: 2px;
75    width: 12px;
76  }
77
78  &:before {
79    animation: ${W} 0.15s ease-out forwards;
80    animation-delay: 180ms;
81    transform: rotate(90deg);
82  }
83`,G=_`
84  from {
85    transform: rotate(0deg);
86  }
87  to {
88    transform: rotate(360deg);
89  }
90`,Z=w("div")`
91  width: 12px;
92  height: 12px;
93  box-sizing: border-box;
94  border: 2px solid;
95  border-radius: 100%;
96  border-color: ${e=>e.secondary||"#e0e0e0"};
97  border-right-color: ${e=>e.primary||"#616161"};
98  animation: ${G} 1s linear infinite;
99`,J=_`
100from {
101  transform: scale(0) rotate(45deg);
102	opacity: 0;
103}
104to {
105  transform: scale(1) rotate(45deg);
106	opacity: 1;
107}`,X=_`
1080% {
109	height: 0;
110	width: 0;
111	opacity: 0;
112}
11340% {
114  height: 0;
115	width: 6px;
116	opacity: 1;
117}
118100% {
119  opacity: 1;
120  height: 10px;
121}`,Y=w("div")`
122  width: 20px;
123  opacity: 0;
124  height: 20px;
125  border-radius: 10px;
126  background: ${e=>e.primary||"#61d345"};
127  position: relative;
128  transform: rotate(45deg);
129
130  animation: ${J} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
131    forwards;
132  animation-delay: 100ms;
133  &:after {
134    content: '';
135    box-sizing: border-box;
136    animation: ${X} 0.2s ease-out forwards;
137    opacity: 0;
138    animation-delay: 200ms;
139    position: absolute;
140    border-right: 2px solid;
141    border-bottom: 2px solid;
142    border-color: ${e=>e.secondary||"#fff"};
143    bottom: 6px;
144    left: 6px;
145    height: 10px;
146    width: 6px;
147  }
148`,K=w("div")`
149  position: absolute;
150`,Q=w("div")`
151  position: relative;
152  display: flex;
153  justify-content: center;
154  align-items: center;
155  min-width: 20px;
156  min-height: 20px;
157`,ee=_`
158from {
159  transform: scale(0.6);
160  opacity: 0.4;
161}
162to {
163  transform: scale(1);
164  opacity: 1;
165}`,et=w("div")`
166  position: relative;
167  transform: scale(0.6);
168  opacity: 0.4;
169  min-width: 20px;
170  animation: ${ee} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
171    forwards;
172`,er=({toast:e})=>{let{icon:t,type:r,iconTheme:n}=e;return void 0!==t?"string"==typeof t?s.createElement(et,null,t):t:"blank"===r?null:s.createElement(Q,null,s.createElement(Z,{...n}),"loading"!==r&&s.createElement(K,null,"error"===r?s.createElement(q,{...n}):s.createElement(Y,{...n})))},en=e=>`
1730% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}
174100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
175`,ei=e=>`
1760% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
177100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}
178`,ea=w("div")`
179  display: flex;
180  align-items: center;
181  background: #fff;
182  color: #363636;
183  line-height: 1.3;
184  will-change: transform;
185  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
186  max-width: 350px;
187  pointer-events: auto;
188  padding: 8px 10px;
189  border-radius: 8px;
190`,es=w("div")`
191  display: flex;
192  justify-content: center;
193  margin: 4px 10px;
194  color: inherit;
195  flex: 1 1 auto;
196  white-space: pre-line;
197`,eo=(e,t)=>{let r=e.includes("top")?1:-1,[n,i]=C()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[en(r),ei(r)];return{animation:t?`${_(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${_(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},el=s.memo(({toast:e,position:t,style:r,children:n})=>
197{let i=e.height?eo(e.position||t||"top-center",e.visible):{opacity:0},a=s.createElement(er,{toast:e}),o=s.createElement(es,{...e.ariaProps},S(e.message,e));return s.createElement(ea,{className:e.className,style:{...i,...r,...e.style}},"function"==typeof n?n({icon:a,message:o}):s.createElement(s.Fragment,null,a,o))});a=s.createElement,f.p=void 0,v=a,b=void 0,x=void 0;var eu=({id:e,className:t,style:r,onHeightUpdate:n,children:i})=>{let a=s.useCallback(t=>{if(t){let r=()=>{n(e,t.getBoundingClientRect().height)};r(),new MutationObserver(r).observe(t,{subtree:!0,childList:!0,characterData:!0})}},[e,n]);return s.createElement("div",{ref:a,className:t,style:r},i)},ec=(e,t)=>{let r=e.includes("top"),n=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:C()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...r?{top:0}:{bottom:0},...n}},ed=y`
198  z-index: 9999;
199  > * {
200    pointer-events: auto;
201  }
202`,ef=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:n,children:i,toasterId:a,containerStyle:o,containerClassName:l})=>{let{toasts:u,handlers:c}=H(r,a);return s.createElement("div",{"data-rht-toaster":a||"",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...o},className:l,onMouseEnter:c.startPause,onMouseLeave:c.endPause},u.map(r=>{let a=r.position||t,o=ec(a,c.calculateOffset(r,{reverseOrder:e,gutter:n,defaultPosition:t}));return s.createElement(eu,{id:r.id,key:r.id,onHeightUpdate:c.updateHeight,className:r.visible?ed:"",style:o},"custom"===r.type?S(r.message,r):i?i(r):s.createElement(el,{toast:r,position:a}))}))},ep=B},22960:function(e,t,r){"use strict";r.d(t,{$:function(){return i}});var n=r(78059);let i={test:(0,r(23953).i)("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),i=e.substr(4,1),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:n.m.transform}},34582:function(e,t,r){"use strict";r.d(t,{J:function(){return o}});var n=r(11248),i=r(2969),a=r(16777),s=r(23953);let o={test:(0,s.i)("hsl","hue"),parse:(0,s.d)("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:s=1})=>"hsla("+Math.round(e)+", "+i.aQ.transform((0,a.Nw)(t))+", "+i.aQ.transform((0,a.Nw)(r))+", "+(0,a.Nw)(n.Fq.transform(s))+")"}},87405:function(e,t,r){"use strict";r.d(t,{$:function(){return o}});var n=r(16777),i=r(22960),a=r(34582),s=r(78059);let o={test:e=>s.m.test(e)||i.$.test(e)||a.J.test(e),parse:e=>s.m.test(e)?s.m.parse(e):a.J.test(e)?a.J.parse(e):i.$.parse(e),transform:e=>(0,n.HD)(e)?e:e.hasOwnProperty("red")?s.m.transform(e):a.J.transform(e)}},78059:function(e,t,r){"use strict";r.d(t,{m:function(){return l}});var n=r(11248),i=r(16777),a=r(23953);let s=(0,i.uZ)(0,255),o=Object.assign(Object.assign({},n.Rx),{transform:e=>Math.round(s(e))}),l={test:(0,a.i)("rgb","red"),parse:(0,a.d)("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:a=1})=>"rgba("+o.transform(e)+", "+o.transform(t)+", "+o.transform(r)+", "+(0,i.Nw)(n.Fq.transform(a))+")"}},23953:function(e,t,r){"use strict";r.d(t,{d:function(){return a},i:function(){return i}});var n=r(16777);let i=(e,t)=>r=>!!((0,n.HD)(r)&&n.mj.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),a=(e,t,r)=>i=>{if(!(0,n.HD)(i))return i;let[a,s,o,l]=i.match(n.KP);return{[e]:parseFloat(a),[t]:parseFloat(s),[r]:parseFloat(o),alpha:void 0!==l?parseFloat(l):1}}},28407:function(e,t,r){"use strict";r.d(t,{P:function(){return f}});var n=r(87405),i=r(11248),a=r(16777);let s="${c}",o="${n}";function l(e){"number"==typeof e&&(e=`${e}`);let t=[],r=0,l=e.match(a.dA);l&&(r=l.length,e=e.replace(a.dA,s),t.push(...l.map(n.$.parse)));let u=e.match(a.KP);return u&&(e=e.replace(a.KP,o),t.push(...u.map(i.Rx.parse))),{values:t,numColors:r,tokenised:e}}function u(e){return l(e).values}function c(e){let{values:t,numColors:r,tokenised:i}=l(e),u=t.length;return e=>{let t=i;for(let i=0;i<u;i++)t=t.replace(i<r?s:o,i<r?n.$.transform(e[i]):(0,a.Nw)(e[i]));return t}}let d=e=>"number"==typeof e?0:e,f={test:function(e){var t,r,n,i;return isNaN(e)&&(0,a.HD)(e)&&(null!==(r=null===(t=e.match(a.KP))||void 0===t?void 0:t.length)&&void 0!==r?r:0)+(null!==(i=null===(n=e.match(a.dA))||void 0===n?void 0:n.length)&&void 0!==i?i:0)>0},parse:u,createTransformer:c,getAnimatableNone:function(e){let t=u(e);return c(e)(t.map(d))}}},11248:function(e,t,r){"use strict";r.d(t,{Fq:function(){return a},Rx:function(){return i},bA:function(){return s}});var n=r(16777);let i={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},a=Object.assign(Object.assign({},i),{transform:(0,n.uZ)(0,1)}),s=Object.assign(Object.assign({},i),{default:1})},2969:function(e,t,r){"use strict";r.d(t,{$C:function(){return c},RW:function(){return a},aQ:function(){return s},px:function(){return o},vh:function(){return l},vw:function(){return u}});var n=r(16777);let i=e=>({test:t=>(0,n.HD)(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),a=i("deg"),s=i("%"),o=i("px"),l=i("vh"),u=i("vw"),c=Object.assign(Object.assign({},s),{parse:e=>s.parse(e)/100,transform:e=>s.transform(100*e)})},16777:function(e,t,r){"use strict";r.d(t,{HD:function(){return l},KP:function(){return a},Nw:function(){return i},dA:function(){return s},mj:function(){return o},uZ:function(){return n}});let n=(e,t)=>r=>Math.max(Math.min(r,t),e),i=e=>
202e%1?Number(e.toFixed(5)):e,a=/(-)?([\d]*\.?[\d])+/g,s=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,o=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function l(e){return"string"==typeof e}},46658:function(e,t,r){"use strict";r.d(t,{B:function(){return p},I:function(){return C},O:function(){return u},S:function(){return G},U:function(){return l},a:function(){return d},b:function(){return s},c:function(){return z},d:function(){return W},e:function(){return c},f:function(){return q},g:function(){return Z},i:function(){return y},j:function(){return V},m:function(){return f},n:function(){return B},o:function(){return $},r:function(){return O},s:function(){return D},t:function(){return T},u:function(){return A},z:function(){return _}});var n=r(67294),i=r(20224),a=Object.prototype.hasOwnProperty;let s=new WeakMap,o=()=>{},l=o(),u=Object,c=e=>e===l,d=e=>"function"==typeof e,f=(e,t)=>({...e,...t}),p=e=>d(e.then),h={},m={},g="undefined",y=typeof window!=g,v=typeof document!=g,b=y&&"Deno"in window,x=()=>y&&typeof window.requestAnimationFrame!=g,_=(e,t)=>{let r=s.get(e);return[()=>!c(t)&&e.get(t)||h,n=>{if(!c(t)){let i=e.get(t);t in m||(m[t]=i),r[5](t,f(i,n),i||h)}},r[6],()=>!c(t)&&t in m?m[t]:!c(t)&&e.get(t)||h]},w=!0,[k,S]=y&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[o,o],E={initFocus:e=>(v&&document.addEventListener("visibilitychange",e),k("focus",e),()=>{v&&document.removeEventListener("visibilitychange",e),S("focus",e)}),initReconnect:e=>{let t=()=>{w=!0,e()},r=()=>{w=!1};return k("online",t),k("offline",r),()=>{S("online",t),S("offline",r)}}},C=!n.useId,O=!y||b,T=e=>x()?window.requestAnimationFrame(e):setTimeout(e,1),A=O?n.useEffect:n.useLayoutEffect,R="undefined"!=typeof navigator&&navigator.connection,M=!O&&R&&(["slow-2g","2g"].includes(R.effectiveType)||R.saveData),j=new WeakMap,N=e=>u.prototype.toString.call(e),L=(e,t)=>e===`[object ${t}]`,P=0,I=e=>{let t,r;let n=typeof e,i=N(e),a=L(i,"Date"),s=L(i,"RegExp"),o=L(i,"Object");if(u(e)!==e||a||s)t=a?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=j.get(e))return t;if(t=++P+"~",j.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=I(e[r])+",";j.set(e,t)}if(o){t="#";let n=u.keys(e).sort();for(;!c(r=n.pop());)c(e[r])||(t+=r+":"+I(e[r])+",");j.set(e,t)}}return t},D=e=>{if(d(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?I(e):"",t]},F=0,$=()=>++F;async function B(...e){let[t,r,n,a]=e,o=f({populateCache:!0,throwOnError:!0},"boolean"==typeof a?{revalidate:a}:a||{}),u=o.populateCache,h=o.rollbackOnError,m=o.optimisticData,g=e=>"function"==typeof h?h(e):!1!==h,y=o.throwOnError;if(d(r)){let e=[];for(let n of t.keys())!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n);return Promise.all(e.map(v))}return v(r);async function v(r){let a;let[f]=D(r);if(!f)return;let[h,v]=_(t,f),[b,x,w,k]=s.get(t),S=()=>{let e=b[f];return(d(o.revalidate)?o.revalidate(h().data,r):!1!==o.revalidate)&&(delete w[f],delete k[f],e&&e[0])?e[0](i.QQ).then(()=>h().data):h().data};if(e.length<3)return S();let E=n,C=!1,O=$();x[f]=[O,0];let T=!c(m),A=h(),R=A.data,M=A._c,j=c(M)?R:M;if(T&&v({data:m=d(m)?m(j,R):m,_c:j}),d(E))try{E=E(j)}catch(e){a=e,C=!0}if(E&&p(E)){if(E=await E.catch(e=>{a=e,C=!0}),O!==x[f][0]){if(C)throw a;return E}C&&T&&g(a)&&(u=!0,v({data:j,_c:l}))}if(u&&!C&&(d(u)?v({data:u(E,j),error:l,_c:l}):v({data:E,error:l,_c:l})),x[f][1]=$(),Promise.resolve(S()).then(()=>{v({_c:l})}),C){if(y)throw a;return}return E}}let U=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},H=(e,t)=>{if(!s.has(e)){let r=f(E,t),n=Object.create(null),a=B.bind(l,e),u=o,c=Object.create(null),d=(e,t)=>{let r=c[e]||[];return c[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},p=(t,r,n)=>{e.set(t,r);let i=c[t];if(i)for(let e of i)e(r,n)},h=()=>{if(!s.has(e)&&(s.set(e,[n,Object.create(null),Object.create(null),Object.create(null),a,p,d]),!O)){let t=r.initFocus(setTimeout.bind(l,U.bind(l,n,i.N4))),a=r.initReconnect(setTimeout.bind(l,U.bind(l,n,i.l2)));u=()=>{t&&t(),a&&a(),s.delete(e)}}};return h(),[e,a,h,u]}return[e,s.get(e)[4]]},[z,V]=H(new Map),W=f({onLoadingSlow:o,onSuccess:o,onError:o,onErrorRetry:(e,t,r,n,i)=>{let a=r.errorRetryCount,s=i.retryCount,o=~~((Math.random()+.5)*(1<<(s<8?s:8)))*r.errorRetryInterval;(c(a)||!(s>a))&&setTimeout(n,o,i)},onDiscarded:o,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:M?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:M?5e3:3e3,compare:function e(t,r){var n,i;if(t===r)return!0;
202if(t&&r&&(n=t.constructor)===r.constructor){if(n===Date)return t.getTime()===r.getTime();if(n===RegExp)return t.toString()===r.toString();if(n===Array){if((i=t.length)===r.length)for(;i--&&e(t[i],r[i]););return -1===i}if(!n||"object"==typeof t){for(n in i=0,t)if(a.call(t,n)&&++i&&!a.call(r,n)||!(n in r)||!e(t[n],r[n]))return!1;return Object.keys(r).length===i}}return t!=t&&r!=r},isPaused:()=>!1,cache:z,mutate:V,fallback:{}},{isOnline:()=>w,isVisible:()=>{let e=v&&document.visibilityState;return c(e)||"hidden"!==e}}),q=(e,t)=>{let r=f(e,t);if(t){let{use:n,fallback:i}=e,{use:a,fallback:s}=t;n&&a&&(r.use=n.concat(a)),i&&s&&(r.fallback=f(i,s))}return r},G=(0,n.createContext)({}),Z=e=>{let{value:t}=e,r=(0,n.useContext)(G),i=d(t),a=(0,n.useMemo)(()=>i?t(r):t,[i,r,t]),s=(0,n.useMemo)(()=>i?a:q(r,a),[i,r,a]),o=a&&a.provider,u=(0,n.useRef)(l);o&&!u.current&&(u.current=H(o(s.cache||z),a));let c=u.current;return c&&(s.cache=c[0],s.mutate=c[1]),A(()=>{if(c)return c[2]&&c[2](),c[3]},[]),(0,n.createElement)(G.Provider,f(e,{value:s}))}},20224:function(e,t,r){"use strict";r.d(t,{N4:function(){return n},QQ:function(){return a},aU:function(){return s},l2:function(){return i}});let n=0,i=1,a=2,s=3},25269:function(e,t,r){"use strict";r.d(t,{ko:function(){return d},kY:function(){return l},s6:function(){return c}});var n=r(46658),i=r(67294);let a=n.i&&window.__SWR_DEVTOOLS_USE__,s=a?window.__SWR_DEVTOOLS_USE__:[],o=e=>(0,n.a)(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],l=()=>{let e=(0,i.useContext)(n.S);return(0,i.useMemo)(()=>(0,n.m)(n.d,e),[e])},u=s.concat(e=>(t,r,i)=>{let a=r&&((...e)=>{let[i]=(0,n.s)(t),[,,,a]=n.b.get(n.c);if(i.startsWith("$inf$"))return r(...e);let s=a[i];return(0,n.e)(s)?r(...e):(delete a[i],s)});return e(t,a,i)}),c=e=>function(...t){let r=l(),[i,a,s]=o(t),c=(0,n.f)(r,s),d=e,{use:f}=c,p=(f||[]).concat(u);for(let e=p.length;e--;)d=p[e](d);return d(i,a||c.fetcher||null,c)},d=(e,t,r)=>{let n=t[e]||(t[e]=[]);return n.push(r),()=>{let e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}};a&&(window.__SWR_DEVTOOLS_REACT__=i)},5068:function(e,t,r){"use strict";r.d(t,{ZP:function(){return f}});var n=r(67294),i=r(61688),a=r(46658),s=r(20224),o=r(25269);let l=()=>{};l(),new WeakMap;let u=n.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),c={dedupe:!0},d=Promise.resolve(a.U);a.O.defineProperty(a.g,"defaultValue",{value:a.d});let f=(0,o.s6)((e,t,r)=>{let{cache:l,compare:f,suspense:p,fallbackData:h,revalidateOnMount:m,revalidateIfStale:g,refreshInterval:y,refreshWhenHidden:v,refreshWhenOffline:b,keepPreviousData:x}=r,[_,w,k,S]=a.b.get(l),[E,C]=(0,a.s)(e),O=(0,n.useRef)(!1),T=(0,n.useRef)(!1),A=(0,n.useRef)(E),R=(0,n.useRef)(t),M=(0,n.useRef)(r),j=()=>M.current,N=()=>j().isVisible()&&j().isOnline(),[L,P,I,D]=(0,a.z)(l,E),F=(0,n.useRef)({}).current,$=(0,a.e)(h)?(0,a.e)(r.fallback)?a.U:r.fallback[E]:h,B=(e,t)=>{for(let r in F)if("data"===r){if(!f(e[r],t[r])&&(!(0,a.e)(e[r])||!f(J,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},U=(0,n.useMemo)(()=>{let e=!!E&&!!t&&((0,a.e)(m)?!j().isPaused()&&!p&&!1!==g:m),r=t=>{let r=(0,a.m)(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=L(),i=D(),s=r(n),o=n===i?s:r(i),l=s;return[()=>{let e=r(L());return B(e,l)?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>o]},[l,E]),H=(0,i.useSyncExternalStore)((0,n.useCallback)(e=>I(E,(t,r)=>{B(r,t)||e()}),[l,E]),U[0],U[1]),z=!O.current,V=_[E]&&_[E].length>0,W=H.data,q=(0,a.e)(W)?$&&(0,a.B)($)?u($):$:W,G=H.error,Z=(0,n.useRef)(q),J=x?(0,a.e)(W)?(0,a.e)(Z.current)?q:Z.current:W:q,X=(!V||!!(0,a.e)(G))&&(z&&!(0,a.e)(m)?m:!j().isPaused()&&(p?!(0,a.e)(q)&&g:(0,a.e)(q)||g)),Y=!!(E&&t&&z&&X),K=(0,a.e)(H.isValidating)?Y:H.isValidating,Q=(0,a.e)(H.isLoading)?Y:H.isLoading,ee=(0,n.useCallback)(async e=>{let t,n;let i=R.current;if(!E||!i||T.current||j().isPaused())return!1;let o=!0,l=e||{},u=!k[E]||!l.dedupe,c=()=>a.I?!T.current&&E===A.current&&O.current:E===A.current,d={isValidating:!1,isLoading:!1},p=()=>{P(d)},h=()=>{let e=k[E];e&&e[1]===n&&delete k[E]},m={isValidating:!0};(0,a.e)(L().data)&&(m.isLoading=!0);try{if(u&&(P(m),r.loadingTimeout&&(0,a.e)(L().data)&&setTimeout(()=>{o&&c()&&j().onLoadingSlow(E,r)},r.loadingTimeout),k[E]=[i(C),(0,a.o)()]),[t,n]=k[E],t=await t,u&&setTimeout(h,r.dedupingInterval),!k[E]||k[E][1]!==n)return u&&c()&&j().onDiscarded(E),!1;d.error=a.U;let e=w[E];if(!(0,a.e)(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return p(),u&&c()&&j().onDiscarded(E),!1;let s=L().data;d.data=f(s,t)?s:t,u&&c()&&j().onSuccess(t,E,r)}catch(r){h();let e=j(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=r,u&&c()&&(e.onError(r,E,e),(!0===t||(0,a.a)(t)&&t(r))&&(!j().revalidateOnFocus||!j().revalidateOnReconnect||N())&&e.onErrorRetry(r,E,e,e=>{let t=_[E];t&&t[0]&&t[0](s.aU,e)},{retryCount:(l.retryCount||0)+1,dedupe:!0})))}return o=!1,p(),!0},[E,l]),et=(0,n.useCallback)((...e)=>(0,a.n)(l,A.current,...e),[]);if((0,a.u)(()=>{R.current=t,M.current=r,(0,a.e)(W)||(Z.current=W)}),(0,a.u)(()=>
202{if(!E)return;let e=ee.bind(a.U,c),t=0;j().revalidateOnFocus&&(t=Date.now()+j().focusThrottleInterval);let r=(0,o.ko)(E,_,(r,n={})=>{if(r==s.N4){let r=Date.now();j().revalidateOnFocus&&r>t&&N()&&(t=r+j().focusThrottleInterval,e())}else if(r==s.l2)j().revalidateOnReconnect&&N()&&e();else if(r==s.QQ)return ee();else if(r==s.aU)return ee(n)});return T.current=!1,A.current=E,O.current=!0,P({_k:C}),X&&!k[E]&&((0,a.e)(q)||a.r?e():(0,a.t)(e)),()=>{T.current=!0,r()}},[E]),(0,a.u)(()=>{let e;function t(){let t=(0,a.a)(y)?y(L().data):y;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!L().error&&(v||j().isVisible())&&(b||j().isOnline())?ee(c).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[y,v,b,E]),(0,n.useDebugValue)(J),p){let e=E&&(0,a.e)(q);if(!a.I&&a.r&&e)throw Error("Fallback data is required when using Suspense in SSR.");e&&(R.current=t,M.current=r,T.current=!1);let n=S[E];if(u(!(0,a.e)(n)&&e?et(n):d),!(0,a.e)(G)&&e)throw G;let i=e?ee(c):d;!(0,a.e)(J)&&e&&(i.status="fulfilled",i.value=!0),u(i)}return{mutate:et,get data(){return F.data=!0,J},get error(){return F.error=!0,G},get isValidating(){return F.isValidating=!0,K},get isLoading(){return F.isLoading=!0,Q}}})},89426:function(e){"use strict";e.exports=JSON.parse('{"id":"google-analytics","description":"Install a Google Analytics tag on your website","website":"https://analytics.google.com/analytics/web/","scripts":[{"url":"https://www.googletagmanager.com/gtag/js","params":["id"],"strategy":"worker","location":"head","action":"append"},{"code":"window.dataLayer=window.dataLayer||[];window.gtag=function gtag(){window.dataLayer.push(arguments);};gtag(\'js\',new Date());gtag(\'config\',\'${args.id}\')","strategy":"worker","location":"head","action":"append"}]}')},27395:function(e){"use strict";e.exports=JSON.parse('{"id":"google-maps-embed","description":"Embed a Google Maps embed on your webpage","website":"https://developers.google.com/maps/documentation/embed/get-started","html":{"element":"iframe","attributes":{"loading":"lazy","src":{"url":"https://www.google.com/maps/embed/v1/place","slugParam":"mode","params":["key","q","center","zoom","maptype","language","region"]},"referrerpolicy":"no-referrer-when-downgrade","frameborder":"0","style":"border:0","allowfullscreen":true,"width":null,"height":null}}}')},88420:function(e){"use strict";e.exports=JSON.parse('{"id":"youtube-embed","description":"Embed a YouTube embed on your webpage.","website":"https://github.com/paulirish/lite-youtube-embed","html":{"element":"lite-youtube","attributes":{"videoid":null,"playlabel":null}},"stylesheets":["https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.css"],"scripts":[{"url":"https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.js","strategy":"idle","location":"head","action":"append"}]}')}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(27314),t(6840),t(13510)}),_N_E=e.O()}]);

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.