PageSourceSearch

https://httpie.io/_next/static/chunks/pages/_app-a64f2430d594eb99.js

js httpie.io collected 2026-09-24 08:26:29 UTC 307,015 bytes, 35 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{68518:function(f,p,g){"use strict";function isBrowserBundle(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function getSDKSource(){return"npm"}g.d(p,{S:function(){return getSDKSource},n:function(){return isBrowserBundle}})},61422:function(f,p,g){"use strict";g.d(p,{KV:function(){return isNodeEnv},l$:function(){return dynamicRequire}});var b=g(68518);f=g.hmd(f);var _=g(34155);function isNodeEnv(){return!(0,b.n)()&&"[object process]"===Object.prototype.toString.call(void 0!==_?_:0)}function dynamicRequire(f,p){return f.require(p)}},21170:function(f,p,g){"use strict";g.d(p,{Z1:function(){return C},ph:function(){return k},yW:function(){return x}});var b=g(61422),_=g(71235);f=g.hmd(f);let w=(0,_.Rf)(),S={nowSeconds:()=>Date.now()/1e3},E=(0,b.KV)()?function(){try{let p=(0,b.l$)(f,"perf_hooks");return p.performance}catch(f){return}}():function(){let{performance:f}=w;if(!f||!f.now)return;let p=Date.now()-f.now();return{now:()=>f.now(),timeOrigin:p}}(),T=void 0===E?S:{nowSeconds:()=>(E.timeOrigin+E.now())/1e3},x=S.nowSeconds.bind(S),k=T.nowSeconds.bind(T),C=(()=>{let{performance:f}=w;if(!f||!f.now)return;let p=f.now(),g=Date.now(),b=f.timeOrigin?Math.abs(f.timeOrigin+p-g):36e5,_=f.timing&&f.timing.navigationStart,S="number"==typeof _?Math.abs(_+p-g):36e5;return b<36e5||S<36e5?b<=S?f.timeOrigin:_:g})()},71235:function(f,p,g){"use strict";function isGlobalObj(f){return f&&f.Math==Math?f:void 0}g.d(p,{Rf:function(){return getGlobalObject},YO:function(){return getGlobalSingleton},n2:function(){return b}});let b="object"==typeof globalThis&&isGlobalObj(globalThis)||"object"==typeof window&&isGlobalObj(window)||"object"==typeof self&&isGlobalObj(self)||"object"==typeof g.g&&isGlobalObj(g.g)||function(){return this}()||{};function getGlobalObject(){return b}function getGlobalSingleton(f,p,g){let _=g||b,w=_.__SENTRY__=_.__SENTRY__||{},S=w[f]||(w[f]=p());return S}},50130:function(f,p,g){let b=g(42555),_=g(42502),w=g(75874),S=g(69808),[E,{lineHeight:T}
1]=w.fontSize.base,{spacing:x,borderWidth:k,borderRadius:C}=w;function resolveColor(f,p){return f.replace("<alpha-value>",`var(${p}, 1)`)}let O=_.withOptions(function(f={strategy:void 0}){return function({addBase:p,addComponents:g,theme:_}){let w=void 0===f.strategy?["base","class"]:[f.strategy],O=[{base:["[type='text']","input:where(:not([type]))","[type='email']","[type='url']","[type='password']","[type='number']","[type='date']","[type='datetime-local']","[type='month']","[type='search']","[type='tel']","[type='time']","[type='week']","[multiple]","textarea","select"],class:[".form-input",".form-textarea",".form-select",".form-multiselect"],styles:{appearance:"none","background-color":"#fff","border-color":resolveColor(_("colors.gray.500",S.gray[500]),"--tw-border-opacity"),"border-width":k.DEFAULT,"border-radius":C.none,"padding-top":x[2],"padding-right":x[3],"padding-bottom":x[2],"padding-left":x[3],"font-size":E,"line-height":T,"--tw-shadow":"0 0 #0000","&:focus":{outline:"2px solid transparent","outline-offset":"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":resolveColor(_("colors.blue.600",S.blue[600]),"--tw-ring-opacity"),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)","box-shadow":"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-sha
1dow)","border-color":resolveColor(_("colors.blue.600",S.blue[600]),"--tw-border-opacity")}}},{base:["input::placeholder","textarea::placeholder"],class:[".form-input::placeholder",".form-textarea::placeholder"],styles:{color:resolveColor(_("colors.gray.500",S.gray[500]),"--tw-text-opacity"),opacity:"1"}},{base:["::-webkit-datetime-edit-fields-wrapper"],class:[".form-input::-webkit-datetime-edit-fields-wrapper"],styles:{padding:"0"}},{base:["::-webkit-date-and-time-value"],class:[".form-input::-webkit-date-and-time-value"],styles:{"min-height":"1.5em"}},{base:["::-webkit-date-and-time-value"],class:[".form-input::-webkit-date-and-time-value"],styles:{"text-align":"inherit"}},{base:["::-webkit-datetime-edit"],class:[".form-input::-webkit-datetime-edit"],styles:{display:"inline-flex"}},{base:["::-webkit-datetime-edit","::-webkit-datetime-edit-year-field","::-webkit-datetime-edit-month-field","::-webkit-datetime-edit-day-field","::-webkit-datetime-edit-hour-field","::-webkit-datetime-edit-minute-field","::-webkit-datetime-edit-second-field","::-webkit-datetime-edit-millisecond-field","::-webkit-datetime-edit-meridiem-field"],class:[".form-input::-webkit-datetime-edit",".form-input::-webkit-datetime-edit-year-field",".form-input::-webkit-datetime-edit-month-field",".form-input::-webkit-datetime-edit-day-field",".form-input::-webkit-datetime-edit-hour-field",".form-input::-webkit-datetime-edit-minute-field",".form-input::-webkit-datetime-edit-second-field",".form-input::-webkit-datetime-edit-millisecond-field",".form-input::-webkit-datetime-edit-meridiem-field"],styles:{"padding-top":0,"padding-bottom":0}},{base:["select"],class:[".form-select"],styles:{"background-image":`url("${b(`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20"><path stroke="${resolveColor(_("colors.gray.500",S.gray[500]),"--tw-stroke-opacity")}" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M6 8l4 4 4-4"/></svg>`)}")`,"background-position":`right ${x[2]} center`,"background-repeat":"no-repeat","background-size":"1.5em 1.5em","padding-right":x[10],"print-color-adjust":"exact"}},{base:["[multiple]",'[size]:where(select:not([size="1"]))'],class:['.form-select:where([size]:not([size="1"]))'],styles:{"background-image":"initial","background-position":"initial","background-repeat":"unset","background-size":"initial","padding-right":x[3],"print-color-adjust":"unset"}},{base:["[type='checkbox']","[type='radio']"],class:[".form-checkbox",".form-radio"],styles:{appearance:"none",padding:"0","print-color-adjust":"exact",display:"inline-block","vertical-align":"middle","background-origin":"border-box","user-select":"none","flex-shrink":"0",height:x[4],width:x[4],color:resolveColor(_("colors.blue.600",S.blue[600]),"--tw-text-opacity"),"background-color":"#fff","border-color":resolveColor(_("colors.gray.500",S.gray[500]),"--tw-border-opacity"),"border-width":k.DEFAULT,"--tw-shadow":"0 0 #0000"}},{base:["[type='checkbox']"],class:[".form-checkbox"],styles:{"border-radius":C.none}},{base:["[type='radio']"],class:[".form-radio"],styles:{"border-radius":"100%"}},{base:["[type='checkbox']:focus","[type='radio']:focus"],class:[".form-checkbox:focus",".form-radio:focus"],styles:{outline:"2px solid transparent","outline-offset":"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"2px","--tw-ring-offset-color":"#fff","--tw-ring-color":resolveColor(_("colors.blue.600",S.blue[600]),"--tw-ring-opacity"),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)","box-shadow":"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-sha
1dow)"}},{base:["[type='checkbox']:checked","[type='radio']:checked"],class:[".form-checkbox:checked",".form-radio:checked"],styles:{"border-color":"transparent","background-color":"currentColor","background-size":"100% 100%","background-position":"center","background-repeat":"no-repeat"}},{base:["[type='checkbox']:checked"],class:[".form-checkbox:checked"],styles:{"background-image":`url("${b('<svg viewBox="0 0 16 16" fill="white" xmlns="http://www.w3.org/2000/svg"><path d="M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z"/></svg>')}")`,"@media (forced-colors: active) ":{appearance:"auto"}}},{base:["[type='radio']:checked"],class:[".form-radio:checked"],styles:{"background-image":`url("${b('<svg viewBox="0 0 16 16" fill="white" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="3"/></svg>')}")`,"@media (forced-colors: active) ":{appearance:"auto"}}},{base:["[type='checkbox']:checked:hover","[type='checkbox']:checked:focus","[type='radio']:checked:hover","[type='radio']:checked:focus"],class:[".form-checkbox:checked:hover",".form-checkbox:checked:focus",".form-radio:checked:hover",".form-radio:checked:focus"],styles:{"border-color":"transparent","background-color":"currentColor"}},{base:["[type='checkbox']:indeterminate"],class:[".form-checkbox:indeterminate"],styles:{"background-image":`url("${b('<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 8h8"/></svg>')}")`,"border-color":"transparent","background-color":"currentColor","background-size":"100% 100%","background-position":"center","background-repeat":"no-repeat","@media (forced-colors: active) ":{appearance:"auto"}}},{base:["[type='checkbox']:indeterminate:hover","[type='checkbox']:indeterminate:focus"],class:[".form-checkbox:indeterminate:hover",".form-checkbox:indeterminate:focus"],styles:{"border-color":"transparent","background-color":"currentColor"}},{base:["[type='file']"],class:null,styles:{background:"unset","border-color":"inherit","border-width":"0","border-radius":"0",padding:"0","font-size":"unset","line-height":"inherit"}},{base:["[type='file']:focus"],class:null,styles:{outline:["1px solid ButtonText","1px auto -webkit-focus-ring-color"]}}],getStrategyRules=f=>O.map(p=>null===p[f]?null:{[p[f]]:p.styles}).filter(Boolean);w.includes("base")&&p(getStrategyRules("base")),w.includes("class")&&g(getStrategyRules("class"))}});f.exports=O},42555:function(f,p,g){var b=g(62178);function specialHexEncode(f){switch(f){case"%20":return" ";case"%3D":return"=";case"%3A":return":";case"%2F":return"/";default:return f.toLowerCase()}}function svgToTinyDataUri(f){var p;if("string"!=typeof f)throw TypeError("Expected a string, but received "+typeof f);return 65279===f.charCodeAt(0)&&(f=f.slice(1)),"data:image/svg+xml,"+encodeURIComponent((p=f.trim().replace(/\s+/g," "),Object.keys(b).forEach(function(f){b[f].test(p)&&(p=p.replace(b[f],f))}),p).replace(/"/g,"'")).replace(/%[\dA-F]{2}/g,specialHexEncode)}svgToTinyDataUri.toSrcset=function(f){return svgToTinyDataUri(f).replace(/ /g,"%20")},f.exports=svgToTinyDataUri},62178:function(f){f.exports={aqua:/#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,azure:/#f0ffff(ff)?(?!\w)/gi,beige:/#f5f5dc(ff)?(?!\w)/gi,bisque:/#ffe4c4(ff)?(?!\w)/gi,black:/#000000(ff)?(?!\w)|#000(f)?(?!\w)/gi,blue:/#0000ff(ff)?(?!\w)|#00f(f)?(?!\w)/gi,brown:/#a52a2a(ff)?(?!\w)/gi,coral:/#ff7f50(ff)?(?!\w)/gi,cornsilk:/#fff8dc(ff)?(?!\w)/gi,crimson:/#dc143c(ff)?(?!\w)/gi,cyan:/#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,darkblue:/#00008b(ff)?(?!\w)/gi,darkcyan:/#008b8b(ff)?(?!\w)/gi,darkgrey:/#a9a9a9(ff)?(?!\w)/gi,darkred:/#8b0000(ff)?(?!\w)/gi,deeppink:/#ff1493(ff)?(?!\w)/gi,dimgrey:/#696969(ff)?(?!\w)/gi,gold:/#ffd700(ff)?(?!\w)/gi,green:/#008000(ff)?(?!\w)/gi,grey:/#808080(ff)?(?!\w)/gi,honeydew:/#f0fff0(ff)?(?!\w)/gi,hotpink:/#ff69b4(ff)?(?!\w)/gi,indigo:/#4b0082(ff)?(?!\w)/gi,ivory:/#fffff0(ff)?(?!\w)/gi,khaki:/#f0e68c(ff)?(?!\w)/gi,lavender:/#e6e6fa(ff)?(?!\w)/gi,lime:/#00ff00(ff)?(?!\w)|#0f0(f)?(?!\w)/gi,linen:/#faf0e6(ff)?(?!\w)/gi,maroon:/#800000(ff)?(?!\w)/gi,moccasin:/#ffe4b5(ff)?(?!\w)/gi,navy:/#000080(ff)?(?!\w)/gi,oldlace:/#fdf5e6(ff)?(?!\w)/gi,ol
1ive:/#808000(ff)?(?!\w)/gi,orange:/#ffa500(ff)?(?!\w)/gi,orchid:/#da70d6(ff)?(?!\w)/gi,peru:/#cd853f(ff)?(?!\w)/gi,pink:/#ffc0cb(ff)?(?!\w)/gi,plum:/#dda0dd(ff)?(?!\w)/gi,purple:/#800080(ff)?(?!\w)/gi,red:/#ff0000(ff)?(?!\w)|#f00(f)?(?!\w)/gi,salmon:/#fa8072(ff)?(?!\w)/gi,seagreen:/#2e8b57(ff)?(?!\w)/gi,seashell:/#fff5ee(ff)?(?!\w)/gi,sienna:/#a0522d(ff)?(?!\w)/gi,silver:/#c0c0c0(ff)?(?!\w)/gi,skyblue:/#87ceeb(ff)?(?!\w)/gi,snow:/#fffafa(ff)?(?!\w)/gi,tan:/#d2b48c(ff)?(?!\w)/gi,teal:/#008080(ff)?(?!\w)/gi,thistle:/#d8bfd8(ff)?(?!\w)/gi,tomato:/#ff6347(ff)?(?!\w)/gi,violet:/#ee82ee(ff)?(?!\w)/gi,wheat:/#f5deb3(ff)?(?!\w)/gi,white:/#ffffff(ff)?(?!\w)|#fff(f)?(?!\w)/gi}},6840:function(f,p,g){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return g(73118)}])},76621:function(f,p,g){"use strict";var b,_;g.d(p,{$5:function(){return k},F:function(){return E},Hi:function(){return b},J4:function(){return U},KS:function(){return w},S$:function(){return S},WJ:function(){return T},Y9:function(){return B},Yt:function(){return j},_3:function(){return x},mk:function(){return C},oi:function(){return A},v8:function(){return D},vI:function(){return R}}),(_=b||(b={})).ABOUT="/about",_.APP="/app",_.BLOG="/blog",_.CLI="/cli",_.AI="/ai",_.CONFIRM="/confirm",_.DISCORD="/discord",_.DOCS="/docs",_.DOCS_CLI="/docs/cli",_.DOCS_DESKTOP="/docs/desktop",_.DOWNLOAD="/download",_.HOME="/",_.JOBS="/jobs",_.PRIVACY="/privacy",_.DESKTOP="/desktop",_.RUN="/cli/run",_.SUBSCRIBED="/subscribed",_.TERMS="/terms";let w="/blog/changelog-0017",S="/docs/cli/installation",E="https://httpie.io",T=E+"/blog",x="https://twitter.com",k="httpie",C="".concat(x,"/").concat(k),O="httpie",R="https://github.com/".concat(O),A="".concat(R,"/").concat("cli"),j="".concat("https://api.github.com","/repos/").concat(O,"/").concat("cli"),D="https://dev.to/pie",B="https://www.reddit.com/r/HTTPie/",U="bc45783070f311eabc550242ac130003"},91960:function(f,p,g){"use strict";g.d(p,{Fg:function(){return useTheme},Q2:function(){return _},f6:function(){return ThemeProvider}});var b,_,w=g(85893),S=g(67294);(b=_||(_={})).LIGHT="light",b.AUTO="auto",b.DARK="dark";let E={themeSetting:null,systemTheme:null,effectiveTheme:null,setThemeSetting:f=>null},T="theme",x=(0,S.createContext)(E),useTheme=()=>(0,S.useContext)(x),getPrefersDarkQuery=()=>window.matchMedia("(prefers-color-scheme: dark)"),getEffectiveTheme=(f,p)=>"auto"==f?p:f,applyThemeClass=f=>{if(!f)return;let p=document.createElement("style");p.type="text/css",p.appendChild(document.createTextNode("* {\n        -webkit-transition: none !important;\n        -moz-transition: none !important;\n        -o-transition: none !important;\n        -ms-transition: none !important;\n        transition: none !important;\n      }")),document.head.appendChild(p),Object.values(_).forEach(f=>document.documentElement.classList.remove(f)),document.documentElement.classList.add(f),window.getComputedStyle(p).opacity,document.head.removeChild(p)},ThemeProvider=f=>{let{children:p}=f,[g,b]=(0,S.useState)(E.themeSetting),[_,k]=(0,S.useState)(E.systemTheme),[C,O]=(0,S.useState)(E.effectiveTheme),updateThemeFromBrowser=()=>k(getPrefersDarkQuery().matches?"dark":"light");return(0,S.useEffect)(()=>{let f=getPrefersDarkQuery();return f.addEventListener("change",updateThemeFromBrowser),()=>f.removeEventListener("change",updateThemeFromBrowser)},[]),(0,S.useEffect)(()=>{b(localStorage[T]||"dark"),updateThemeFromBrowser()},[]),(0,S.useEffect)(()=>O(getEffectiveTheme(g,_)),[g,_]),(0,S.useEffect)(()=>applyThemeClass(C),[C]),(0,w.jsx)(x.Provider,{value:{systemTheme:_,effectiveTheme:C,themeSetting:g,setThemeSetting:f=>{b(f),localStorage[T]=f}},children:p})}},56870:function(f,p,g){"use strict";g.d(p,{Z:function(){return content_ContentLoadProvider},S:function(){return useContentLoaded}});var b=g(67294),_=g(85893);let w=(0,b.createContext)({contentLoaded:!1});var content_ContentLoadProvider=f=>{let{children:p}=f,[g,S]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{let handleContentLoaded=()=>S(!0);return window.addEventListener("load",handleContentLoaded),()=>window.removeEventListener("load",handleContentLoaded)},[]),(0,_.jsx)(w.Provider,{value:{contentLoaded:g},children:p})};let useContentLoaded=()=>{let{contentLoaded:f}=(0,b.useContext)(w);return{contentLoaded:f}}},14279:function(f,p,g){"use strict";g.d(p,{j$:function(){return E},ZP:function(){return viewport_ViewportProvider}
1,Gc:function(){return useBreakpoint}});var b=g(85893),_=g(67294),w=g(49341),S=g.n(w);let E=[...Object.keys(S().theme.screens)],T=(0,_.createContext)({currentBreakpoint:"xl"});var viewport_ViewportProvider=f=>{let{children:p}=f,[g,w]=(0,_.useState)("xl");return(0,_.useEffect)(()=>{let f={sm:window.matchMedia("(min-width: 0)"),md:window.matchMedia("(min-width: ".concat(S().theme.screens.md,")")),lg:window.matchMedia("(min-width: ".concat(S().theme.screens.lg,")")),xl:window.matchMedia("(min-width: ".concat(S().theme.screens.xl,")"))},handleQueryListener=()=>{let p=[...E].reverse().find(p=>{var g;return null===(g=f[p])||void 0===g?void 0:g.matches});p&&w(p)};return handleQueryListener(),E.forEach(p=>{var g;return null===(g=f[p])||void 0===g?void 0:g.addEventListener("change",handleQueryListener)}),()=>{E.forEach(p=>{var g;return null===(g=f[p])||void 0===g?void 0:g.removeEventListener("change",handleQueryListener)})}},[]),(0,b.jsx)(T.Provider,{value:{currentBreakpoint:g},children:p})};let useBreakpoint=()=>{let{currentBreakpoint:f}=(0,_.useContext)(T);return f}},81043:function(f,p,g){"use strict";let b,_,w,S,E,T,x,k,C,O,R,A,j;let D=Object.prototype.toString;function isError(f){switch(D.call(f)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return isInstanceOf(f,Error)}}function isBuiltin(f,p){return D.call(f)===`[object ${p}]`}function isErrorEvent(f){return isBuiltin(f,"ErrorEvent")}function isDOMError(f){return isBuiltin(f,"DOMError")}function isString(f){return isBuiltin(f,"String")}function is_isPrimitive(f){return null===f||"object"!=typeof f&&"function"!=typeof f}function isPlainObject(f){return isBuiltin(f,"Object")}function isEvent(f){return"undefined"!=typeof Event&&isInstanceOf(f,Event)}function is_isThenable(f){return!!(f&&f.then&&"function"==typeof f.then)}function is_isNaN(f){return"number"==typeof f&&f!=f}function isInstanceOf(f,p){try{return f instanceof p}catch(f){return!1}}function isVueViewModel(f){return!!("object"==typeof f&&null!==f&&(f.__isVue||f._isVue))}var B,U,H=g(71235);let N=(0,H.Rf)();function htmlTreeAsString(f,p={}){if(!f)return"<unknown>";try{let g,b=f,_=[],w=0,S=0,E=Array.isArray(p)?p:p.keyAttrs,T=!Array.isArray(p)&&p.maxStringLength||80;for(;b&&w++<5&&(g=function(f,p){let g,b,_,w,S;let E=[];if(!f||!f.tagName)return"";E.push(f.tagName.toLowerCase());let T=p&&p.length?p.filter(p=>f.getAttribute(p)).map(p=>[p,f.getAttribute(p)]):null;if(T&&T.length)T.forEach(f=>{E.push(`[${f[0]}="${f[1]}"]`)});else if(f.id&&E.push(`#${f.id}`),(g=f.className)&&isString(g))for(S=0,b=g.split(/\s+/);S<b.length;S++)E.push(`.${b[S]}`);let x=["aria-label","type","name","title","alt"];for(S=0;S<x.length;S++)_=x[S],(w=f.getAttribute(_))&&E.push(`[${_}="${w}"]`);return E.join("")}(b,E),"html"!==g&&(!(w>1)||!(S+3*_.length+g.length>=T)));)_.push(g),S+=g.length,b=b.parentNode;return _.reverse().join(" > ")}catch(f){return"<unknown>"}}let M="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,W=["debug","info","warn","error","log","assert","trace"],G={};function consoleSandbox(f){if(!("console"in H.n2))return f();let p=H.n2.console,g={},b=Object.keys(G);b.forEach(f=>{let b=G[f];g[f]=p[f],p[f]=b});try{return f()}finally{b.forEach(f=>{p[f]=g[f]})}}let X=function(){let f=!1,p={enable:()=>{f=!0},disable:()=>{f=!1},isEnabled:()=>f};return M?W.forEach(g=>{p[g]=(...p)=>{f&&consoleSandbox(()=>{H.n2.console[g](`Sentry Logger [${g}]:`,...p)})}}):W.forEach(f=>{p[f]=()=>void 0}),p}();function truncate(f,p=0){return"string"!=typeof f||0===p?f:f.length<=p?f:`${f.slice(0,p)}...`}function safeJoin(f,p){if(!Array.isArray(f))return"";let g=[];for(let p=0;p<f.length;p++){let b=f[p];try{isVueViewModel(b)?g.push("[VueViewModel]"):g.push(String(b))}catch(f){g.push("[value cannot be serialized]")}}return g.join(p)}function stringMatchesSomePattern(f,p=[],g=!1){return p.some(p=>(function(f,p,g=!1){return!!isString(f)&&(isBuiltin(p,"RegExp")?p.test(f):!!isString(p)&&(g?f===p:f.includes(p)))})(f,p,g))}function fill(f,p,g){if(!(p in f))return;let b=f[p],_=g(b);"function"==typeof _&&markFunctionWrapped(_,b),f[p]=_}function addNonEnumerableProperty(f,p,g){try{Object.defineProperty(f,p,{value:g,writable:!0,configurable:!0})}catch(g){M&&X.log(`Failed to add non-enumerable property "${p}" to object`,f)}}function markFunctionWrapped(f,p){try{let g=p.prototype||{};f.prototype=p.prototype=g,addNonEnumerableProperty(f,"__sentry_original__",p)}catch(f){}}function getOriginalFunction(f){return f.__sentry_original__}function convertToPlainObject(f){if(isError(f))return{message:f.message,name:f.name,stack:f.stack,...getOwnProperties(f)};if(!isEvent(f))return f;{let p={type:f.type,target:serializeEventTarget(f.target),currentTarget:serializeEventTarget(f.currentTarget),...getOwnProperties(f)};return"undefined"!=typeof CustomEvent&&isInstanceOf(f,CustomEvent)&&(p.detail=f.detail),p}}function serializeEventTarget(f){try{return"undefined"!=typeof Element&&isInstanceOf(f,Element)?htmlTreeAsString(f):Object.prototype.toString.call(f)}catch(f){return"<unknown>"}}function getOwnProperties(f){if("object"!=typeof f||null===f)return{};{let p={};for(let g in f)Object.prototype.hasOwnProperty.call(f,g)&&(p[g]=f[g]);return p}}function dropUndefinedKeys(f){let p=new Map;return function _dropUndefinedKeys(f,p){if(isPlainObject(f)){let g=p.get(f);if(void 0!==g)return g;let b={};for(let g of(p.set(f,b),Object.keys(f)))void 0!==f[g]&&(b[g]=_dropUndefinedKeys(f[g],p));return b}if(Array.isArray(f)){let g=p.get(f);if(void 0!==g)return g;let b=[];return p.set(f,b),f.forEach(f=>{b.push(_dropUndefinedKeys(f,p))}),b}return f}(f,p)}function misc_uuid4(){let f=H.n2,p=f.crypto||f.msCrypto,getRandomByte=()=>16*Math.random();try{if(p&&p.randomUUID)return p.randomUUID().replace(/-/g,"");p&&p.getRandomValues&&(getRandomByte=()=>p.getRandomValues(new Uint8Array(1))[0])}catch(f){}return"10000000100040008000100000000000".replace(/[018]/g,f=>(f^(15&getRandomByte())>>f/4).toString(16))}function getFirstException(f){return f.exception&&f.exception.values?f.exception.values[0]:void 0}function getEventDescription(f){let{message:p,event_id:g}=f;if(p)return p;let b=getFirstException(f);return b?b.type&&b.value?`${b.type}: ${b.value}
1`:b.type||b.value||g||"<unknown>":g||"<unknown>"}function addExceptionTypeValue(f,p,g){let b=f.exception=f.exception||{},_=b.values=b.values||[],w=_[0]=_[0]||{};w.value||(w.value=p||""),w.type||(w.type=g||"Error")}function addExceptionMechanism(f,p){let g=getFirstException(f);if(!g)return;let b=g.mechanism;if(g.mechanism={type:"generic",handled:!0,...b,...p},p&&"data"in p){let f={...b&&b.data,...p.data};g.mechanism.data=f}}function checkOrSetAlreadyCaught(f){if(f&&f.__sentry_captured__)return!0;try{addNonEnumerableProperty(f,"__sentry_captured__",!0)}catch(f){}return!1}function arrayify(f){return Array.isArray(f)?f:[f]}var $=g(21170);let V="production",Y="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function resolvedSyncPromise(f){return new SyncPromise(p=>{p(f)})}function rejectedSyncPromise(f){return new SyncPromise((p,g)=>{g(f)})}(B=U||(U={}))[B.PENDING=0]="PENDING",B[B.RESOLVED=1]="RESOLVED",B[B.REJECTED=2]="REJECTED";let SyncPromise=class SyncPromise{constructor(f){SyncPromise.prototype.__init.call(this),SyncPromise.prototype.__init2.call(this),SyncPromise.prototype.__init3.call(this),SyncPromise.prototype.__init4.call(this),this._state=U.PENDING,this._handlers=[];try{f(this._resolve,this._reject)}catch(f){this._reject(f)}}then(f,p){return new SyncPromise((g,b)=>{this._handlers.push([!1,p=>{if(f)try{g(f(p))}catch(f){b(f)}else g(p)},f=>{if(p)try{g(p(f))}catch(f){b(f)}else b(f)}]),this._executeHandlers()})}catch(f){return this.then(f=>f,f)}finally(f){return new SyncPromise((p,g)=>{let b,_;return this.then(p=>{_=!1,b=p,f&&f()},p=>{_=!0,b=p,f&&f()}).then(()=>{if(_){g(b);return}p(b)})})}__init(){this._resolve=f=>{this._setResult(U.RESOLVED,f)}}__init2(){this._reject=f=>{this._setResult(U.REJECTED,f)}}__init3(){this._setResult=(f,p)=>{if(this._state===U.PENDING){if(is_isThenable(p)){p.then(this._resolve,this._reject);return}this._state=f,this._value=p,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===U.PENDING)return;let f=this._handlers.slice();this._handlers=[],f.forEach(f=>{f[0]||(this._state===U.RESOLVED&&f[1](this._value),this._state===U.REJECTED&&f[2](this._value),f[0]=!0)})}}};function getGlobalEventProcessors(){return(0,H.YO)("globalEventProcessors",()=>[])}function addGlobalEventProcessor(f){getGlobalEventProcessors().push(f)}function notifyEventProcessors(f,p,g,b=0){return new SyncPromise((_,w)=>{let S=f[b];if(null===p||"function"!=typeof S)_(p);else{let E=S({...p},g);Y&&S.id&&null===E&&X.log(`Event processor "${S.id}" dropped event`),is_isThenable(E)?E.then(p=>notifyEventProcessors(f,p,g,b+1).then(_)).then(null,w):notifyEventProcessors(f,E,g,b+1).then(_).then(null,w)}})}function updateSession(f,p={}){if(!p.user||(!f.ipAddress&&p.user.ip_address&&(f.ipAddress=p.user.ip_address),f.did||p.did||(f.did=p.user.id||p.user.email||p.user.username)),f.timestamp=p.timestamp||(0,$.ph)(),p.abnormal_mechanism&&(f.abnormal_mechanism=p.abnormal_mechanism),p.ignoreDuration&&(f.ignoreDuration=p.ignoreDuration),p.sid&&(f.sid=32===p.sid.length?p.sid:misc_uuid4()),void 0!==p.init&&(f.init=p.init),!f.did&&p.did&&(f.did=`${p.did}`),"number"==typeof p.started&&(f.started=p.started),f.ignoreDuration)f.duration=void 0;else if("number"==typeof p.duration)f.duration=p.duration;else{let p=f.timestamp-f.started;f.duration=p>=0?p:0}p.release&&(f.release=p.release),p.environment&&(f.environment=p.environment),!f.ipAddress&&p.ipAddress&&(f.ipAddress=p.ipAddress),!f.userAgent&&p.userAgent&&(f.userAgent=p.userAgent),"number"==typeof p.errors&&(f.errors=p.errors),p.status&&(f.status=p.status)}let scope_Scope=class scope_Scope{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=generatePropagationContext()}static clone(f){let p=new scope_Scope;return f&&(p._breadcrumbs=[...f._breadcrumbs],p._tags={...f._tags},p._extra={...f._extra},p._contexts={...f._contexts},p._user=f._user,p._level=f._level,p._span=f._span,p._session=f._session,p._transactionName=f._transactionName,p._fingerprint=f._fingerprint,p._eventProcessors=[...f._eventProcessors],p._requestSession=f._requestSession,p._attachments=[...f._attachments],p._sdkProcessingMetadata={...f._sdkProcessingMetadata}
1,p._propagationContext={...f._propagationContext}),p}addScopeListener(f){this._scopeListeners.push(f)}addEventProcessor(f){return this._eventProcessors.push(f),this}setUser(f){return this._user=f||{},this._session&&updateSession(this._session,{user:f}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(f){return this._requestSession=f,this}setTags(f){return this._tags={...this._tags,...f},this._notifyScopeListeners(),this}setTag(f,p){return this._tags={...this._tags,[f]:p},this._notifyScopeListeners(),this}setExtras(f){return this._extra={...this._extra,...f},this._notifyScopeListeners(),this}setExtra(f,p){return this._extra={...this._extra,[f]:p},this._notifyScopeListeners(),this}setFingerprint(f){return this._fingerprint=f,this._notifyScopeListeners(),this}setLevel(f){return this._level=f,this._notifyScopeListeners(),this}setTransactionName(f){return this._transactionName=f,this._notifyScopeListeners(),this}setContext(f,p){return null===p?delete this._contexts[f]:this._contexts[f]=p,this._notifyScopeListeners(),this}setSpan(f){return this._span=f,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let f=this.getSpan();return f&&f.transaction}setSession(f){return f?this._session=f:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(f){if(!f)return this;if("function"==typeof f){let p=f(this);return p instanceof scope_Scope?p:this}return f instanceof scope_Scope?(this._tags={...this._tags,...f._tags},this._extra={...this._extra,...f._extra},this._contexts={...this._contexts,...f._contexts},f._user&&Object.keys(f._user).length&&(this._user=f._user),f._level&&(this._level=f._level),f._fingerprint&&(this._fingerprint=f._fingerprint),f._requestSession&&(this._requestSession=f._requestSession),f._propagationContext&&(this._propagationContext=f._propagationContext)):isPlainObject(f)&&(this._tags={...this._tags,...f.tags},this._extra={...this._extra,...f.extra},this._contexts={...this._contexts,...f.contexts},f.user&&(this._user=f.user),f.level&&(this._level=f.level),f.fingerprint&&(this._fingerprint=f.fingerprint),f.requestSession&&(this._requestSession=f.requestSession),f.propagationContext&&(this._propagationContext=f.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=generatePropagationContext(),this}addBreadcrumb(f,p){let g="number"==typeof p?p:100;if(g<=0)return this;let b={timestamp:(0,$.yW)(),...f},_=this._breadcrumbs;return _.push(b),this._breadcrumbs=_.length>g?_.slice(-g):_,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(f){return this._attachments.push(f),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(f,p={},g){if(this._extra&&Object.keys(this._extra).length&&(f.extra={...this._extra,...f.extra}),this._tags&&Object.keys(this._tags).length&&(f.tags={...this._tags,...f.tags}),this._user&&Object.keys(this._user).length&&(f.user={...this._user,...f.user}),this._contexts&&Object.keys(this._contexts).length&&(f.contexts={...this._contexts,...f.contexts}),this._level&&(f.level=this._level),this._transactionName&&(f.transaction=this._transactionName),this._span){f.contexts={trace:this._span.getTraceContext(),...f.contexts};let p=this._span.transaction;if(p){f.sdkProcessingMetadata={dynamicSamplingContext:p.getDynamicSamplingContext(),...f.sdkProcessingMetadata};let g=p.name;g&&(f.tags={transaction:g,...f.tags})}}this._applyFingerprint(f);let b=this._getBreadcrumbs(),_=[...f.breadcrumbs||[],...b];return f.breadcrumbs=_.length>0?_:void 0,f.sdkProcessingMetadata={...f.sdkProcessingMetadata,...this._sdkProcessingMetadata,prop
1agationContext:this._propagationContext},notifyEventProcessors([...g||[],...getGlobalEventProcessors(),...this._eventProcessors],f,p)}setSDKProcessingMetadata(f){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...f},this}setPropagationContext(f){return this._propagationContext=f,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(f=>{f(this)}),this._notifyingListeners=!1)}_applyFingerprint(f){f.fingerprint=f.fingerprint?arrayify(f.fingerprint):[],this._fingerprint&&(f.fingerprint=f.fingerprint.concat(this._fingerprint)),f.fingerprint&&!f.fingerprint.length&&delete f.fingerprint}};function generatePropagationContext(){return{traceId:misc_uuid4(),spanId:misc_uuid4().substring(16)}}let J="7.86.0",q=parseFloat(J);let Hub=class Hub{constructor(f,p=new scope_Scope,g=q){this._version=g,this._stack=[{scope:p}],f&&this.bindClient(f)}isOlderThan(f){return this._version<f}bindClient(f){let p=this.getStackTop();p.client=f,f&&f.setupIntegrations&&f.setupIntegrations()}pushScope(){let f=scope_Scope.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:f}),f}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(f){let p=this.pushScope();try{f(p)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(f,p){let g=this._lastEventId=p&&p.event_id?p.event_id:misc_uuid4(),b=Error("Sentry syntheticException");return this._withClient((_,w)=>{_.captureException(f,{originalException:f,syntheticException:b,...p,event_id:g},w)}),g}captureMessage(f,p,g){let b=this._lastEventId=g&&g.event_id?g.event_id:misc_uuid4(),_=Error(f);return this._withClient((w,S)=>{w.captureMessage(f,p,{originalException:f,syntheticException:_,...g,event_id:b},S)}),b}captureEvent(f,p){let g=p&&p.event_id?p.event_id:misc_uuid4();return f.type||(this._lastEventId=g),this._withClient((b,_)=>{b.captureEvent(f,{...p,event_id:g},_)}),g}lastEventId(){return this._lastEventId}addBreadcrumb(f,p){let{scope:g,client:b}=this.getStackTop();if(!b)return;let{beforeBreadcrumb:_=null,maxBreadcrumbs:w=100}=b.getOptions&&b.getOptions()||{};if(w<=0)return;let S=(0,$.yW)(),E={timestamp:S,...f},T=_?consoleSandbox(()=>_(E,p)):E;null!==T&&(b.emit&&b.emit("beforeAddBreadcrumb",T,p),g.addBreadcrumb(T,w))}setUser(f){this.getScope().setUser(f)}setTags(f){this.getScope().setTags(f)}setExtras(f){this.getScope().setExtras(f)}setTag(f,p){this.getScope().setTag(f,p)}setExtra(f,p){this.getScope().setExtra(f,p)}setContext(f,p){this.getScope().setContext(f,p)}configureScope(f){let{scope:p,client:g}=this.getStackTop();g&&f(p)}run(f){let p=makeMain(this);try{f(this)}finally{makeMain(p)}}getIntegration(f){let p=this.getClient();if(!p)return null;try{return p.getIntegration(f)}catch(p){return Y&&X.warn(`Cannot retrieve integration ${f.id} from the current Hub`),null}}startTransaction(f,p){let g=this._callExtensionMethod("startTransaction",f,p);if(Y&&!g){let f=this.getClient();f?X.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
2Sentry.addTracingExtensions();
3Sentry.init({...});
4`):X.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return g}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(f=!1){if(f)return this.endSession();this._sendSessionUpdate()}endSession(){let f=this.getStackTop(),p=f.scope,g=p.getSession();if(g){var b;let f;f={},b?f={status:b}:"ok"===g.status&&(f={status:"exited"}),updateSession(g,f)}this._sendSessionUpdate(),p.setSession()}startSession(f){let{scope:p,client:g}=this.getStackTop(),{release:b,environment:_=V}=g&&g.getOptions()||{},{userAgent:w}=H.n2.navigator||{},S=function(f){let p=(0,$.ph)(),g={sid:misc_uuid4(),init:!0,timestamp:p,started:p,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>dropUndefinedKeys({sid:`${g.sid}`,init:g.init,started:new Date(1e3*g.started).toISOString(),timestamp:new Date(1e3*g.timestamp).toISOString(),status:g.status,errors:g.errors,did:"number"==typeof g.did||"string"==typeof g.did?`${g.did}`:void 0,duration:g.duration,abnormal_mechanism:g.abnormal_mechanism,attrs:{release:g.release,environment:g.environment,ip_address:g.ipAddress,user_agent:g.userAgent}})};return f&&updateSession(g,f),g}({release:b,environment:_,user:p.getUser(),...w&&{userAgent:w},...f}),E=p.getSession&&p.getSession();return E&&"ok"===E.status&&updateSession(E,{status:"exited"}),this.endSession(),p.setSession(S),S}shouldSendDefaultPii(){let f=this.getClient(),p=f&&f.getOptions();return!!(p&&p.sendDefaultPii)}_sendSessionUpdate(){let{scope:f,client:p}=this.getStackTop(),g=f.getSession();g&&p&&p.captureSession&&p.captureSession(g)}_withClient(f){let{scope:p,client:g}=this.getStackTop();g&&f(g,p)}_callExtensionMethod(f,...p){let g=getMainCarrier(),b=g.__SENTRY__;if(b&&b.extensions&&"function"==typeof b.extensions[f])return b.extensions[f].apply(this,p);Y&&X.warn(`Extension method ${f} couldn't be found, doing nothing.`)}};function getMainCarrier(){return H.n2.__SENTRY__=H.n2.__SENTRY__||{extensions:{},hub:void 0},H.n2}function makeMain(f){let p=getMainCarrier(),g=getHubFromCarrier(p);return setHubOnCarrier(p,f),g}function hub_getCurrentHub(){let f=getMainCarrier();if(f.__SENTRY__&&f.__SENTRY__.acs){let p=f.__SENTRY__.acs.getCurrentHub();if(p)return p}return function(f=getMainCarrier()){return(!(f&&f.__SENTRY__&&f.__SENTRY__.hub)||getHubFromCarrier(f).isOlderThan(q))&&setHubOnCarrier(f,new Hub),getHubFromCarrier(f)}(f)}function getHubFromCarrier(f){return(0,H.YO)("hub",()=>new Hub,f)}function setHubOnCarrier(f,p){if(!f)return!1;let g=f.__SENTRY__=f.__SENTRY__||{};return g.hub=p,!0}let Q=/\(error: (.*)\)/,ee=/captureMessage|captureException/;function createStackParser(...f){let p=f.sort((f,p)=>f[0]-p[0]).map(f=>f[1]);return(f,g=0)=>{let b=[],_=f.split("\n");for(let f=g;f<_.length;f++){let g=_[f];if(g.length>1024)continue;let w=Q.test(g)?g.replace(Q,"$1"):g;if(!w.match(/\S*Error: /)){for(let f of p){let p=f(w);if(p){b.push(p);break}}if(b.length>=50)break}}return function(f){if(!f.length)return[];let p=Array.from(f);return/sentryWrapped/.test(p[p.length-1].function||"")&&p.pop(),p.reverse(),ee.test(p[p.length-1].function||"")&&(p.pop(),ee.test(p[p.length-1].function||"")&&p.pop()),p.slice(0,50).map(f=>({...f,filename:f.filename||p[p.length-1].filename,function:f.function||"?"}))}(b)}}let et="<anonymous>";function getFunctionName(f){try{if(!f||"function"!=typeof f)return et;return f.name||et}catch(f){return et}}function normalize(f,p=100,b=Infinity){try{return function visit(f,p,b=Infinity,_=Infinity,w=function(){let f="function"==typeof WeakSet,p=f?new WeakSet:[];return[function(g){if(f)return!!p.has(g)||(p.add(g),!1);for(let f=0;f<p.length;f++){let b=p[f];if(b===g)return!0}return p.push(g),!1},function(g){if(f)p.delete(g);else for(let f=0;f<p.length;f++)if(p[f]===g){p.splice(f,1);break}}]}()){let[S,E]=w;if(null==p||["number","boolean","string"].includes(typeof p)&&!is_isNaN(p))return p;let T=function(f,p){try{if("domain"===f&&p&&"object"==typeof p&&p._events)return"[Domain]";if("domainEmitter"===f)return"[DomainEmitter]";if(void 0!==g.g&&p===g.g)return"[Global]";if("undefined"!=typeof window&&p===window)return"[Window]";if("undefined"!=typeof document&&p===document)return"[Document]";if(isVueViewModel(p))return"[VueViewModel]";if(isPlainObject(p)&&"nativeEvent"in p&&"preventDefault"in p&&"stopPropagation"in p)return"[SyntheticEvent]";if("number"==typeof p&&p!=p)return"[NaN]";if("function"==typeof p)return`[Function: ${getFunctionName(p)}]`;if("symbol"==typeof p)return`[${String(p)}]`;if("bigint"==typeof p)return`[BigInt: ${String(p)}]`;let b=function(f){let p=Object.getPrototypeOf(f);return p?p.constructor.name:"null prototype"}(p);if(/^HTML(\w*)Element$/.test(b))return`[HTMLElement: ${b}]`;return`[object ${b}]`}catch(f){return`**non-serializable** (${f})`}}(f,p);if(!T.startsWith("[object "))return T;if(p.__sentry_skip_normalization__)return p;let x="number"==typeof p.__sentry_override_normalization_depth__?p.__sentry_override_normalization_depth__:b;if(0===x)return T.replace("object ","");if(S(p))return"[Circular ~]";if(p&&"function"==typeof p.toJSON)try{let f=p.toJSON();return visit("",f,x-1,_,w)}catch(f){}let k=Array.isArray(p)?[]:{},C=0,O=convertToPlainObject(p);for(let f in O){if(!Object.prototype.hasOwnProperty.call(O,f))continue;if(C>=_){k[f]="[MaxProperties ~]";break}let p=O[f];k[f]=visit(f,p,x-1,_,w),C++}return E(p),k}("",f,p,b)}catch(f){return{ERROR:`**non-serializable** (${f})`}}}let en=new WeakMap;function exports_getClient(){return hub_getCurrentHub().getClient()}function hasTracingEnabled(f){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let p=exports_getClient(),g=f||p&&p.getOptions();return!!g&&(g.enableTracing||"tracesSampleRate"in g||"tracesSampler"in g)}let er=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function resolve(...f){let p="",g=!1;for(let b=f.length-1;b>=-1&&!g;b--){let _=b>=0?f[b]:"/";_&&(p=`${_}/${p}`,g="/"===_.charAt(0))}return p=(function(f,p){let g=0;for(let p=f.length-1;p>=0;p--){let b=f[p];"."===b?f.splice(p,1):".."===b?(f.splice(p,1),g++):g&&(f.splice(p,1),g--)}if(p)for(;g--;g)f.unshift("..");return f})(p.split("/").filter(f=>!!f),!g).join("/"),(g?"/":"")+p||"."}function trim(f){let p=0;for(;p<f.length&&""===f[p];p++);let g=f.length-1;for(;g>=0&&""===f[g];g--);return p>g?[]:f.slice(p,g-p+1)}let RewriteFrames=class RewriteFrames{static __initStatic(){this.id="RewriteFrames"}constructor(f={}){RewriteFrames.prototype.__init.call(this),this.name=RewriteFrames.id,f.root&&(this._root=f.root),this._prefix=f.prefix||"app:///",f.iteratee&&(this._iteratee=f.iteratee)}setupOnce(f,p){}processEvent(f){return this.process(f)}process(f){let p=f;return f.exception&&Array.isArray(f.exception.values)&&(p=this._processExceptionsEvent(p)),p}__init(){this._iteratee=f=>
4{if(!f.filename)return f;let p=/^[a-zA-Z]:\\/.test(f.filename)||f.filename.includes("\\")&&!f.filename.includes("/"),g=/^\//.test(f.filename);if(p||g){var b;let g;let _=p?f.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):f.filename,w=this._root?function(f,p){f=resolve(f).slice(1),p=resolve(p).slice(1);let g=trim(f.split("/")),b=trim(p.split("/")),_=Math.min(g.length,b.length),w=_;for(let f=0;f<_;f++)if(g[f]!==b[f]){w=f;break}let S=[];for(let f=w;f<g.length;f++)S.push("..");return(S=S.concat(b.slice(w))).join("/")}(this._root,_):(g=function(f){let p=f.length>1024?`<truncated>${f.slice(-1024)}`:f,g=er.exec(p);return g?g.slice(1):[]}(_)[2],b&&g.slice(-1*b.length)===b&&(g=g.slice(0,g.length-b.length)),g);f.filename=`${this._prefix}${w}`}return f}}_processExceptionsEvent(f){try{return{...f,exception:{...f.exception,values:f.exception.values.map(f=>({...f,...f.stacktrace&&{stacktrace:this._processStacktrace(f.stacktrace)}}))}}}catch(p){return f}}_processStacktrace(f){return{...f,frames:f&&f.frames&&f.frames.map(f=>this._iteratee(f))}}};RewriteFrames.__initStatic();let ei=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],eo=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/];let InboundFilters=class InboundFilters{static __initStatic(){this.id="InboundFilters"}constructor(f={}){this.name=InboundFilters.id,this._options=f}setupOnce(f,p){}processEvent(f,p,g){var b;let _=g.getOptions(),w=function(f={},p={}){return{allowUrls:[...f.allowUrls||[],...p.allowUrls||[]],denyUrls:[...f.denyUrls||[],...p.denyUrls||[]],ignoreErrors:[...f.ignoreErrors||[],...p.ignoreErrors||[],...f.disableErrorDefaults?[]:ei],ignoreTransactions:[...f.ignoreTransactions||[],...p.ignoreTransactions||[],...f.disableTransactionDefaults?[]:eo],ignoreInternal:void 0===f.ignoreInternal||f.ignoreInternal}}(this._options,_);return(w.ignoreInternal&&function(f){try{return"SentryError"===f.exception.values[0].type}catch(f){}return!1}(f)?(Y&&X.warn(`Event dropped due to being internal Sentry Error.
5Event: ${getEventDescription(f)}`),0):(b=w.ignoreErrors,!f.type&&b&&b.length&&(function(f){let p;let g=[];f.message&&g.push(f.message);try{p=f.exception.values[f.exception.values.length-1]}catch(f){}return p&&p.value&&(g.push(p.value),p.type&&g.push(`${p.type}: ${p.value}`)),Y&&0===g.length&&X.error(`Could not extract message for event ${getEventDescription(f)}`),g})(f).some(f=>stringMatchesSomePattern(f,b)))?(Y&&X.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
6Event: ${getEventDescription(f)}`),0):!function(f,p){if("transaction"!==f.type||!p||!p.length)return!1;let g=f.transaction;return!!g&&stringMatchesSomePattern(g,p)}(f,w.ignoreTransactions)?!function(f,p){if(!p||!p.length)return!1;let g=_getEventFilterUrl(f);return!!g&&stringMatchesSomePattern(g,p)}(f,w.denyUrls)?function(f,p){if(!p||!p.length)return!0;let g=_getEventFilterUrl(f);return!g||stringMatchesSomePattern(g,p)}(f,w.allowUrls)||(Y&&X.warn(`Event dropped due to not being matched by \`allowUrls\` option.
7Event: ${getEventDescription(f)}.
8Url: ${_getEventFilterUrl(f)}`),0):(Y&&X.warn(`Event dropped due to being matched by \`denyUrls\` option.
9Event: ${getEventDescription(f)}.
10Url: ${_getEventFilterUrl(f)}`),0):(Y&&X.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
11Event: ${getEventDescription(f)}`),0))?f:null}};function _getEventFilterUrl(f){try{let p;try{p=f.exception.values[0].stacktrace.frames}catch(f){}return p?function(f=[]){for(let p=f.length-1;p>=0;p--){let g=f[p];if(g&&"<anonymous>"!==g.filename&&"[native code]"!==g.filename)return g.filename||null}return null}(p):null}catch(p){return Y&&X.error(`Cannot extract url for event ${getEventDescription(f)}`),null}}InboundFilters.__initStatic();let FunctionToString=class FunctionToString{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=FunctionToString.id}setupOnce(){b=Function.prototype.toString;try{Function.prototype.toString=function(...f){let p=getOriginalFunction(this)||this;return b.apply(p,f)}}catch(f){}}};FunctionToString.__initStatic();let es=[];function setupIntegration(f,p,g){if(g[p.name]=p,-1===es.indexOf(p.name)&&(p.setupOnce(addGlobalEventProcessor,hub_getCurrentHub),es.push(p.name)),p.setup&&"function"==typeof p.setup&&p.setup(f),f.on&&"function"==typeof p.preprocessEvent){let g=p.preprocessEvent.bind(p);f.on("preprocessEvent",(p,b)=>g(p,b,f))}if(f.addEventProcessor&&"function"==typeof p.processEvent){let g=p.processEvent.bind(p),b=Object.assign((p,b)=>g(p,b,f),{id:p.name});f.addEventProcessor(b)}Y&&X.log(`Integration installed: ${p.name}`)}let ec=(0,H.Rf)();function supportsFetch(){if(!("fetch"in ec))return!1;
11try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(f){return!1}}function isNativeFetch(f){return f&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(f.toString())}let eu=(0,H.Rf)(),el={},ef={};function addHandler(f,p){el[f]=el[f]||[],el[f].push(p)}function maybeInstrument(f,p){ef[f]||(p(),ef[f]=!0)}function triggerHandlers(f,p){let g=f&&el[f];if(g)for(let b of g)try{b(p)}catch(p){M&&X.error(`Error while triggering instrumentation handler.
12Type: ${f}
13Name: ${getFunctionName(b)}
14Error:`,p)}}let ed=H.n2;function addHistoryInstrumentationHandler(f){let p="history";addHandler(p,f),maybeInstrument(p,instrumentHistory)}function instrumentHistory(){if(!function(){let f=eu.chrome,p=f&&f.app&&f.app.runtime,g="history"in eu&&!!eu.history.pushState&&!!eu.history.replaceState;return!p&&g}())return;let f=ed.onpopstate;function historyReplacementFunction(f){return function(...p){let g=p.length>2?p[2]:void 0;if(g){let f=_,p=String(g);_=p,triggerHandlers("history",{from:f,to:p})}return f.apply(this,p)}}ed.onpopstate=function(...p){let g=ed.location.href,b=_;if(_=g,triggerHandlers("history",{from:b,to:g}),f)try{return f.apply(this,p)}catch(f){}},fill(ed.history,"pushState",historyReplacementFunction),fill(ed.history,"replaceState",historyReplacementFunction)}let ep=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function dsn_dsnToString(f,p=!1){let{host:g,path:b,pass:_,port:w,projectId:S,protocol:E,publicKey:T}=f;return`${E}://${T}${p&&_?`:${_}`:""}@${g}${w?`:${w}`:""}/${b?`${b}/`:b}${S}`}function dsnFromString(f){let p=ep.exec(f);if(!p){consoleSandbox(()=>{console.error(`Invalid Sentry Dsn: ${f}`)});return}let[g,b,_="",w,S="",E]=p.slice(1),T="",x=E,k=x.split("/");if(k.length>1&&(T=k.slice(0,-1).join("/"),x=k.pop()),x){let f=x.match(/^\d+/);f&&(x=f[0])}return dsnFromComponents({host:w,pass:_,path:T,projectId:x,port:S,protocol:g,publicKey:b})}function dsnFromComponents(f){return{protocol:f.protocol,publicKey:f.publicKey||"",pass:f.pass||"",host:f.host,port:f.port||"",path:f.path||"",projectId:f.projectId}}function createEnvelope(f,p=[]){return[f,p]}function forEachEnvelopeItem(f,p){let g=f[1];for(let f of g){let g=f[0].type,b=p(f,g);if(b)return!0}return!1}function encodeUTF8(f,p){let g=p||new TextEncoder;return g.encode(f)}let eh={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",statsd:"unknown"};function getSdkMetadataForEnvelopeHeader(f){if(!f||!f.sdk)return;let{name:p,version:g}=f.sdk;return{name:p,version:g}}let SentryError=class SentryError extends Error{constructor(f,p="warn"){super(f),this.message=f,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=p}};function getDynamicSamplingContextFromClient(f,p,g){let b=p.getOptions(),{publicKey:_}=p.getDsn()||{},{segment:w}=g&&g.getUser()||{},S=dropUndefinedKeys({environment:b.environment||V,release:b.release,user_segment:w,public_key:_,trace_id:f});return p.emit&&p.emit("createDsc",S),S}let em="Not capturing exception because it's already been captured.";let BaseClient=class BaseClient{constructor(f){if(this._options=f,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],f.dsn?this._dsn=function(f){let p="string"==typeof f?dsnFromString(f):dsnFromComponents(f);if(p&&function(f){if(!M)return!0;let{port:p,projectId:g,protocol:b}=f,_=["protocol","publicKey","host","projectId"].find(p=>!f[p]&&(X.error(`Invalid Sentry Dsn: ${p} missing`),!0));return!_&&(g.match(/^\d+$/)?"http"===b||"https"===b?!(p&&isNaN(parseInt(p,10)))||(X.error(`Invalid Sentry Dsn: Invalid port ${p}`),!1):(X.error(`Invalid Sentry Dsn: Invalid protocol ${b}`),!1):(X.error(`Invalid Sentry Dsn: Invalid projectId ${g}`),!1))}(p))return p}(f.dsn):Y&&X.warn("No DSN provided, client will not send events."),this._dsn){let p=function(f,p={}){var g;let b="string"==typeof p?p:p.tunnel,_="string"!=typeof p&&p._metadata?p._metadata.sdk:void 0;return b||`${function(f){let p=f.protocol?`${f.protocol}:`:"",g=f.port?`:${f.port}`:"";return`${p}//${f.host}${g}${f.path?`/${f.path}`:""}/api/`}(f)}${f.projectId}/envelope/?${Object.keys(g={sentry_key:f.publicKey,sentry_version:"7",..._&&{sentry_client:`${_.name}/${_.version}`}}).map(f=>`${encodeURIComponent(f)}=${encodeURIComponent(g[f])}`).join("&")}`}(this._dsn,f);this._transport=f.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...f.transportOptions,url:p})}}captureException(f,p,g){if(checkOrSetAlreadyCaught(f)){Y&&X.log(em);return}let b=p&&p.event_id;return this._process(this.eventFromException(f,p).then(f=>this._captureEvent(f,p,g)).then(f=>{b=f})),b}captureMessage(f,p,g,b){let _=g&&g.event_id,w=is_isPrimitive(f)?this.eventFromMessage(String(f),p,g):this.eventFromException(f,g);return this._process(w.then(f=>this._captureEvent(f,g,b)).then(f=>{_=f})),_}captureEvent(f,p,g){if(p&&p.originalException&&checkOrSetAlreadyCaught(p.originalException)){Y&&X.log(em);return}let b=p&&p.event_id;return this._process(this._captureEvent(f,p,g).then(f=>{b=f})),b}captureSession(f){"string"!=typeof f.release?Y&&X.warn("Discarded session because of missing or non-string release"):(this.sendSession(f),updateSession(f,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(f){let p=this._transport;
14return p?this._isClientDoneProcessing(f).then(g=>p.flush(f).then(f=>g&&f)):resolvedSyncPromise(!0)}close(f){return this.flush(f).then(f=>(this.getOptions().enabled=!1,f))}getEventProcessors(){return this._eventProcessors}addEventProcessor(f){this._eventProcessors.push(f)}setupIntegrations(f){(f&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&(this._integrations=function(f,p){let g={};return p.forEach(p=>{p&&setupIntegration(f,p,g)}),g}(this,this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(f){return this._integrations[f]}getIntegration(f){try{return this._integrations[f.id]||null}catch(p){return Y&&X.warn(`Cannot retrieve integration ${f.id} from the current Client`),null}}addIntegration(f){setupIntegration(this,f,this._integrations)}sendEvent(f,p={}){this.emit("beforeSendEvent",f,p);let g=function(f,p,g,b){var _;let w=getSdkMetadataForEnvelopeHeader(g),S=f.type&&"replay_event"!==f.type?f.type:"event";(_=g&&g.sdk)&&(f.sdk=f.sdk||{},f.sdk.name=f.sdk.name||_.name,f.sdk.version=f.sdk.version||_.version,f.sdk.integrations=[...f.sdk.integrations||[],..._.integrations||[]],f.sdk.packages=[...f.sdk.packages||[],..._.packages||[]]);let E=function(f,p,g,b){let _=f.sdkProcessingMetadata&&f.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:f.event_id,sent_at:new Date().toISOString(),...p&&{sdk:p},...!!g&&b&&{dsn:dsn_dsnToString(b)},..._&&{trace:dropUndefinedKeys({..._})}}}(f,w,b,p);delete f.sdkProcessingMetadata;let T=[{type:S},f];return createEnvelope(E,[T])}(f,this._dsn,this._options._metadata,this._options.tunnel);for(let f of p.attachments||[])g=function(f,p){let[g,b]=f;return[g,[...b,p]]}(g,function(f,p){let g="string"==typeof f.data?encodeUTF8(f.data,p):f.data;return[dropUndefinedKeys({type:"attachment",length:g.length,filename:f.filename,content_type:f.contentType,attachment_type:f.attachmentType}),g]}(f,this._options.transportOptions&&this._options.transportOptions.textEncoder));let b=this._sendEnvelope(g);b&&b.then(p=>
14this.emit("afterSendEvent",f,p),null)}sendSession(f){let p=function(f,p,g,b){let _=getSdkMetadataForEnvelopeHeader(g),w={sent_at:new Date().toISOString(),..._&&{sdk:_},...!!b&&p&&{dsn:dsn_dsnToString(p)}},S="aggregates"in f?[{type:"sessions"},f]:[{type:"session"},f.toJSON()];return createEnvelope(w,[S])}(f,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(p)}recordDroppedEvent(f,p,g){if(this._options.sendClientReports){let g=`${f}:${p}`;Y&&X.log(`Adding outcome: "${g}"`),this._outcomes[g]=this._outcomes[g]+1||1}}on(f,p){this._hooks[f]||(this._hooks[f]=[]),this._hooks[f].push(p)}emit(f,...p){this._hooks[f]&&this._hooks[f].forEach(f=>f(...p))}_updateSessionFromEvent(f,p){let g=!1,b=!1,_=p.exception&&p.exception.values;if(_)for(let f of(b=!0,_)){let p=f.mechanism;if(p&&!1===p.handled){g=!0;break}}let w="ok"===f.status,S=w&&0===f.errors||w&&g;S&&(updateSession(f,{...g&&{status:"crashed"},errors:f.errors||Number(b||g)}),this.captureSession(f))}_isClientDoneProcessing(f){return new SyncPromise(p=>{let g=0,b=setInterval(()=>{0==this._numProcessing?(clearInterval(b),p(!0)):(g+=1,f&&g>=f&&(clearInterval(b),p(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(f,p,g){let b=this.getOptions(),_=Object.keys(this._integrations);return!p.integrations&&_.length>0&&(p.integrations=_),this.emit("preprocessEvent",f,p),(function(f,p,g,b,_){let{normalizeDepth:w=3,normalizeMaxBreadth:S=1e3}=f,E={...p,event_id:p.event_id||g.event_id||misc_uuid4(),timestamp:p.timestamp||(0,$.yW)()},T=g.integrations||f.integrations.map(f=>f.name);(function(f,p){let{environment:g,release:b,dist:_,maxValueLength:w=250}=p;"environment"in f||(f.environment="environment"in p?g:V),void 0===f.release&&void 0!==b&&(f.release=b),void 0===f.dist&&void 0!==_&&(f.dist=_),f.message&&(f.message=truncate(f.message,w));let S=f.exception&&f.exception.values&&f.exception.values[0];S&&S.value&&(S.value=truncate(S.value,w));let E=f.request;E&&E.url&&(E.url=truncate(E.url,w))})(E,f),T.length>0&&(E.sdk=E.sdk||{},E.sdk.integrations=[...E.sdk.integrations||[],...T]),void 0===p.type&&function(f,p){let g;let b=H.n2._sentryDebugIds;if(!b)return;let _=en.get(p);_?g=_:(g=new Map,en.set(p,g));let w=Object.keys(b).reduce((f,_)=>{let w;let S=g.get(_);S?w=S:(w=p(_),g.set(_,w));for(let p=w.length-1;p>=0;p--){let g=w[p];if(g.filename){f[g.filename]=b[_];break}}return f},{});try{f.exception.values.forEach(f=>{f.stacktrace.frames.forEach(f=>{f.filename&&(f.debug_id=w[f.filename])})})}catch(f){}}(E,f.stackParser);let x=b;g.captureContext&&(x=scope_Scope.clone(x).update(g.captureContext)),g.mechanism&&addExceptionMechanism(E,g.mechanism);let k=resolvedSyncPromise(E),C=_&&_.getEventProcessors?_.getEventProcessors():[];if(x){if(x.getAttachments){let f=[...g.attachments||[],...x.getAttachments()];f.length&&(g.attachments=f)}k=x.applyToEvent(E,g,C)}else k=notifyEventProcessors([...C,...getGlobalEventProcessors()],E,g);return k.then(f=>(f&&function(f){let p={};try{f.exception.values.forEach(f=>{f.stacktrace.frames.forEach(f=>{f.debug_id&&(f.abs_path?p[f.abs_path]=f.debug_id:f.filename&&(p[f.filename]=f.debug_id),delete f.debug_id)})})}catch(f){}if(0===Object.keys(p).length)return;f.debug_meta=f.debug_meta||{},f.debug_meta.images=f.debug_meta.images||[];let g=f.debug_meta.images;Object.keys(p).forEach(f=>{g.push({type:"sourcemap",code_file:f,debug_id:p[f]})})}(f),"number"==typeof w&&w>0)?function(f,p,g){if(!f)return null;let b={...f,...f.breadcrumbs&&{breadcrumbs:f.breadcrumbs.map(f=>({...f,...f.data&&{data:normalize(f.data,p,g)}}))},...f.user&&{user:normalize(f.user,p,g)},...f.contexts&&{contexts:normalize(f.contexts,p,g)},...f.extra&&{extra:normalize(f.extra,p,g)}};return f.contexts&&f.contexts.trace&&b.contexts&&(b.contexts.trace=f.contexts.trace,f.contexts.trace.data&&(b.contexts.trace.data=normalize(f.contexts.trace.data,p,g))),f.spans&&(b.spans=f.spans.map(f=>(f.data&&(f.data=normalize(f.data,p,g)),f))),b}(f,w,S):f)})(b,f,p,g,this).then(f=>{if(null===f)return f;let{propagationContext:p}=f.sdkProcessingMetadata||{},b=f.contexts&&f.contexts.trace;if(!b&&p){let{traceId:b,spanId:_,parentSpanId:w,dsc:S}=p;
14f.contexts={trace:{trace_id:b,span_id:_,parent_span_id:w},...f.contexts};let E=S||getDynamicSamplingContextFromClient(b,this,g);f.sdkProcessingMetadata={dynamicSamplingContext:E,...f.sdkProcessingMetadata}}return f})}_captureEvent(f,p={},g){return this._processEvent(f,p,g).then(f=>f.event_id,f=>{Y&&("log"===f.logLevel?X.log(f.message):X.warn(f))})}_processEvent(f,p,g){let b=this.getOptions(),{sampleRate:_}=b,w=isTransactionEvent(f),S=baseclient_isErrorEvent(f),E=f.type||"error",T=`before send for type \`${E}\``;if(S&&"number"==typeof _&&Math.random()>_)return this.recordDroppedEvent("sample_rate","error",f),rejectedSyncPromise(new SentryError(`Discarding event because it's not included in the random sample (sampling rate = ${_})`,"log"));let x="replay_event"===E?"replay":E;return this._prepareEvent(f,p,g).then(g=>{if(null===g)throw this.recordDroppedEvent("event_processor",x,f),new SentryError("An event processor returned `null`, will not send event.","log");let _=p.data&&!0===p.data.__sentry__;if(_)return g;let w=function(f,p,g){let{beforeSend:b,beforeSendTransaction:_}=f;return baseclient_isErrorEvent(p)&&b?b(p,g):isTransactionEvent(p)&&_?_(p,g):p}(b,g,p);return function(f,p){let g=`${p} must return \`null\` or a valid event.`;if(is_isThenable(f))return f.then(f=>{if(!isPlainObject(f)&&null!==f)throw new SentryError(g);return f},f=>{throw new SentryError(`${p} rejected with ${f}`)});if(!isPlainObject(f)&&null!==f)throw new SentryError(g);return f}(w,T)}).then(b=>{if(null===b)throw this.recordDroppedEvent("before_send",x,f),new SentryError(`${T} returned \`null\`, will not send event.`,"log");let _=g&&g.getSession();!w&&_&&this._updateSessionFromEvent(_,b);let S=b.transaction_info;return w&&S&&b.transaction!==f.transaction&&(b.transaction_info={...S,source:"custom"}),this.sendEvent(b,p),b}).then(null,f=>{if(f instanceof SentryError)throw f;throw this.captureException(f,{data:{__sentry__:!0},originalException:f}),new SentryError(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
15Reason: ${f}`)})}_process(f){this._numProcessing++,f.then(f=>(this._numProcessing--,f),f=>(this._numProcessing--,f))}_sendEnvelope(f){if(this.emit("beforeEnvelope",f),this._isEnabled()&&this._transport)return this._transport.send(f).then(null,f=>{Y&&X.error("Error while sending event:",f)});Y&&X.error("Transport disabled")}_clearOutcomes(){let f=this._outcomes;return this._outcomes={},Object.keys(f).map(p=>{let[g,b]=p.split(":");return{reason:g,category:b,quantity:f[p]}})}};function baseclient_isErrorEvent(f){return void 0===f.type}function isTransactionEvent(f){return"transaction"===f.type}var eg=g(68518);let ey="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function exceptionFromError(f,p){let g=parseStackFrames(f,p),b={type:p&&p.name,value:function(f){let p=f&&f.message;return p?p.error&&"string"==typeof p.error.message?p.error.message:p:"No error message"}(p)};return g.length&&(b.stacktrace={frames:g}),void 0===b.type&&""===b.value&&(b.value="Unrecoverable error caught"),b}function eventFromError(f,p){return{exception:{values:[exceptionFromError(f,p)]}}}function parseStackFrames(f,p){let g=p.stacktrace||p.stack||"",b=function(f){if(f){if("number"==typeof f.framesToPop)return f.framesToPop;if(ev.test(f.message))return 1}return 0}(p);try{return f(g,b)}catch(f){}return[]}let ev=/Minified React error #\d+;/i;function eventFromUnknownInput(f,p,g,b,_){let w;if(isErrorEvent(p)&&p.error)return eventFromError(f,p.error);if(isDOMError(p)||isBuiltin(p,"DOMException")){if("stack"in p)w=eventFromError(f,p);else{let _=p.name||(isDOMError(p)?"DOMError":"DOMException"),S=p.message?`${_}: ${p.message}`:_;addExceptionTypeValue(w=eventFromString(f,S,g,b),S)}return"code"in p&&(w.tags={...w.tags,"DOMException.code":`${p.code}`}),w}return isError(p)?eventFromError(f,p):(isPlainObject(p)||isEvent(p)?addExceptionMechanism(w=function(f,p,g,b){let _=hub_getCurrentHub(),w=_.getClient(),S=w&&w.getOptions().normalizeDepth,E={exception:{values:[{type:isEvent(p)?p.constructor.name:b?"UnhandledRejection":"Error",value:function(f,{isUnhandledRejection:p}){let g=function(f,p=40){let g=Object.keys(convertToPlainObject(f));if(g.sort(),!g.length)return"[object has no keys]";if(g[0].length>=p)return truncate(g[0],p);for(let f=g.length;f>0;f--){let b=g.slice(0,f).join(", ");
15if(!(b.length>p)){if(f===g.length)return b;return truncate(b,p)}}return""}(f),b=p?"promise rejection":"exception";if(isErrorEvent(f))return`Event \`ErrorEvent\` captured as ${b} with message \`${f.message}\``;if(isEvent(f)){let p=function(f){try{let p=Object.getPrototypeOf(f);return p?p.constructor.name:void 0}catch(f){}}(f);return`Event \`${p}\` (type=${f.type}) captured as ${b}`}return`Object captured as ${b} with keys: ${g}`}(p,{isUnhandledRejection:b})}]},extra:{__serialized__:function normalizeToSize(f,p=3,g=102400){let b=normalize(f,p);return~-encodeURI(JSON.stringify(b)).split(/%..|./).length>g?normalizeToSize(f,p-1,g):b}(p,S)}};if(g){let p=parseStackFrames(f,g);p.length&&(E.exception.values[0].stacktrace={frames:p})}return E}(f,p,g,_),{synthetic:!0}):(addExceptionTypeValue(w=eventFromString(f,p,g,b),`${p}`,void 0),addExceptionMechanism(w,{synthetic:!0})),w)}function eventFromString(f,p,g,b){let _={message:p};if(b&&g){let b=parseStackFrames(f,g);b.length&&(_.exception={values:[{value:p,stacktrace:{frames:b}}]})}return _}let eb=H.n2,e_=0;function wrap(f,p={},g){if("function"!=typeof f)return f;try{let p=f.__sentry_wrapped__;if(p)return p;if(getOriginalFunction(f))return f}catch(p){return f}let sentryWrapped=function(){let b=Array.prototype.slice.call(arguments);try{g&&"function"==typeof g&&g.apply(this,arguments);let _=b.map(f=>wrap(f,p));return f.apply(this,_)}catch(f){throw e_++,setTimeout(()=>{e_--}),hub_getCurrentHub().withScope(g=>{g.addEventProcessor(f=>(p.mechanism&&(addExceptionTypeValue(f,void 0,void 0),addExceptionMechanism(f,p.mechanism)),f.extra={...f.extra,arguments:b},f)),hub_getCurrentHub().captureException(f,void 0)}),f}};try{for(let p in f)Object.prototype.hasOwnProperty.call(f,p)&&(sentryWrapped[p]=f[p])}catch(f){}markFunctionWrapped(sentryWrapped,f),addNonEnumerableProperty(f,"__sentry_wrapped__",sentryWrapped);try{let p=Object.getOwnPropertyDescriptor(sentryWrapped,"name");p.configurable&&Object.defineProperty(sentryWrapped,"name",{get:()=>f.name})}catch(f){}return sentryWrapped}let BrowserClient=class BrowserClient extends BaseClient{constructor(f){let p=eb.SENTRY_SDK_SOURCE||(0,eg.S)();f._metadata=f._metadata||{},f._metadata.sdk=f._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${p}:@sentry/browser`,version:J}],version:J},super(f),f.sendClientReports&&eb.document&&eb.document.addEventListener("visibilitychange",()=>{"hidden"===eb.document.visibilityState&&this._flushOutcomes()})}eventFromException(f,p){return function(f,p,g,b){let _=g&&g.syntheticException||void 0,w=eventFromUnknownInput(f,p,_,b);return addExceptionMechanism(w),w.level="error",g&&g.event_id&&(w.event_id=g.event_id),resolvedSyncPromise(w)}(this._options.stackParser,f,p,this._options.attachStacktrace)}eventFromMessage(f,p="info",g){return function(f,p,g="info",b,_){let w=b&&b.syntheticException||void 0,S=eventFromString(f,p,w,_);return S.level=g,b&&b.event_id&&(S.event_id=b.event_id),resolvedSyncPromise(S)}(this._options.stackParser,f,p,g,this._options.attachStacktrace)}captureUserFeedback(f){if(!this._isEnabled()){ey&&X.warn("SDK not enabled, will not capture user feedback.");return}let p=function(f,{metadata:p,tunnel:g,dsn:b}){let _={event_id:f.event_id,sent_at:new Date().toISOString(),...p&&p.sdk&&{sdk:{name:p.sdk.name,version:p.sdk.version}},...!!g&&!!b&&{dsn:dsn_dsnToString(b)}},w=[{type:"user_report"},f];return createEnvelope(_,[w])}(f,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(p)}_prepareEvent(f,p,g){return f.platform=f.platform||"javascript",super._prepareEvent(f,p,g)}_flushOutcomes(){let f=this._clearOutcomes();if(0===f.length){ey&&X.log("No outcomes to send");return}if(!this._dsn){ey&&X.log("No dsn provided, will not send outcomes");return}ey&&X.log("Sending outcomes:",f);let p=function(f,p,g){let b=[{type:"client_report"},{timestamp:(0,$.yW)(),discarded_events:f}];return createEnvelope(p?{dsn:p}:{},[b])}(f,this._options.tunnel&&dsn_dsnToString(this._dsn));this._sendEnvelope(p)}};let ew=null;function addGlobalErrorInstrumentationHandler(f){let p="error";addHandler(p,f),maybeInstrument(p,instrumentError)}function instrumentError(){ew=H.n2.onerror,H.n2.onerror=function(f,p,g,b,_){return triggerHandlers("error",{column:b,error:_,line:g,msg:f,url:p}),!!ew&&!ew.__SENTRY_LOADER__&&ew.apply(this,arguments)},H.n2.onerror.__SENTRY_INSTRUMENTED__=!0}let eS=null;function addGlobalUnhandledRejectionInstrumentationHandler(f){let p="unhandledrejection";addHandler(p,f),maybeInstrument(p,instrumentUnhandledRejection)}function instrumentUnhandledRejection(){eS=H.n2.onunhandledrejection,H.n2.onunhandledrejection=function(f){return triggerHandlers("unhandledrejection",f),!eS||!!eS.__SENTRY_LOADER__||eS.apply(this,arguments)},H.n2.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let GlobalHandlers=class GlobalHandlers{static __initStatic(){this.id="GlobalHandlers"}constructor(f){this.name=GlobalHandlers.id,this._options={onerror:!0,onunhandledrejection:!0,...f},this._installFunc={onerror:_installGlobalOnErrorHandler,onunhandledrejection:_installGlobalOnUnhandledRejectionHandler}}setupOnce(){Error.stackTraceLimit=50;let f=this._options;for(let p in f){let g=this._installFunc[p];g&&f[p]&&(ey&&X.log(`Global Handler attached: ${p}`),g(),this._installFunc[p]=void 0)}}};function _installGlobalOnErrorHandler(){addGlobalErrorInstrumentationHandler(f=>{let[p,g,b]=getHubAndOptions();if(!p.getIntegration(GlobalHandlers))return;let{msg:_,url:w,line:S,column:E,error:T}=f;if(e_>0)return;let x=void 0===T&&isString(_)?function(f,p,g,b){let _=isErrorEvent(f)?f.message:f,w="Error",S=_.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);S&&(w=S[1],_=S[2]);let E={exception:{values:[{type:w,value:_}]}};return _enhanceEventWithInitialFrame(E,p,g,b)}(_,w,S,E):_enhanceEventWithInitialFrame(eventFromUnknownInput(g,T||_,void 0,b,!1),w,S,E);x.level="error",p.captureEvent(x,{originalException:T,mechanism:{handled:!1,type:"onerror"}})})}function _installGlobalOnUnhandledRejectionHandler(){addGlobalUnhandledRejectionInstrumentationHandler(f=>{let[p,g,b]=getHubAndOptions();if(!p.getIntegration(GlobalHandlers))return;if(e_>0)return!0;let _=function(f){if(is_isPrimitive(f))return f;try{if("reason"in f)return f.reason;if("detail"in f&&"reason"in f.detail)return f.detail.reason}catch(f){}return f}(f),w=is_isPrimitive(_)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(_)}`}]}}:eventFromUnknownInput(g,_,void 0,b,!0);w.level="error",p.captureEvent(w,{originalException:_,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function _enhanceEventWithInitialFrame(f,p,g,b){let _=f.exception=f.exception||{},w=_.values=_.values||[],S=w[0]=w[0]||{},E=S.stacktrace=S.stacktrace||{},T=E.frames=E.frames||[],x=isNaN(parseInt(b,10))?void 0:b,k=isNaN(parseInt(g,10))?void 0:g,C=isString(p)&&p.length>0?p:function(){try{return N.document.location.href}catch(f){return""}}();return 0===T.length&&T.push({colno:x,filename:C,function:"?",in_app:!0,lineno:k}),f}function getHubAndOptions(){let f=hub_getCurrentHub(),p=f.getClient(),g=p&&p.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[f,g.stackParser,g.attachStacktrace]}GlobalHandlers.__initStatic();let eE=["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"];let TryCatch=class TryCatch{static __initStatic(){this.id="TryCatch"}constructor(f){this.name=TryCatch.id,this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...f}}setupOnce(){this._options.setTimeout&&fill(eb,"setTimeout",_wrapTimeFunction),this._options.setInterval&&fill(eb,"setInterval",_wrapTimeFunction),this._options.requestAnimationFrame&&fill(eb,"requestAnimationFrame",_wrapRAF),this._options.XMLHttpRequest&&"XMLHttpRequest"in eb&&fill(XMLHttpRequest.prototype,"send",_wrapXHR);let f=this._options.eventTarget;if(f){let p=Array.isArray(f)?f:eE;p.forEach(_wrapEventTarget)}}};function _wrapTimeFunction(f){return function(...p){let g=p[0];return p[0]=wrap(g,{mechanism:{data:{function:getFunctionName(f)},handled:!1,type:"instrument"}}),f.apply(this,p)}}function _wrapRAF(f){return function(p){return f.apply(this,[wrap(p,{mechanism:{data:{function:"requestAnimationFrame",handler:getFunctionName(f)},handled:!1,type:"instrument"}})])}}function _wrapXHR(f){return function(...p){let g=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(f=>{f in g&&"function"==typeof g[f]&&fill(g,f,function(p){let g={mechanism:{data:{function:f,handler:getFunctionName(p)},handled:!1,type:"instrument"}},b=getOriginalFunction(p);return b&&(g.mechanism.data.handler=getFunctionName(b)),wrap(p,g)})}),f.apply(this,p)}}function _wrapEventTarget(f){let p=eb[f]&&eb[f].prototype;p&&p.hasOwnProperty&&p.hasOwnProperty("addEventListener")&&(fill(p,"addEventListener",function(p){return function(g,b,_){try{"function"==typeof b.handleEvent&&(b.handleEvent=wrap(b.handleEvent,{mechanism:{data:{function:"handleEvent",handler:getFunctionName(b),target:f},handled:!1,type:"instrument"}}))}catch(f){}return p.apply(this,[g,wrap(b,{mechanism:{data:{function:"addEventListener",handler:getFunctionName(b),target:f},handled:!1,type:"instrument"}}),_])}}),fill(p,"removeEventListener",function(f){return function(p,g,b){try{let _=g&&g.__sentry_wrapped__;_&&f.call(this,p,_,b)}catch(f){}return f.call(this,p,g,b)}}))}function instrumentConsole(){"console"in H.n2&&W.forEach(function(f){f in H.n2.console&&fill(H.n2.console,f,function(p){return G[f]=p,function(...p){triggerHandlers("console",{args:p,level:f});let g=G[f];g&&g.apply(H.n2.console,p)}})})}
15TryCatch.__initStatic();let eT=H.n2;function instrumentDOM(){if(!eT.document)return;let f=triggerHandlers.bind(null,"dom"),p=makeDOMEventHandler(f,!0);eT.document.addEventListener("click",p,!1),eT.document.addEventListener("keypress",p,!1),["EventTarget","Node"].forEach(p=>{let g=eT[p]&&eT[p].prototype;g&&g.hasOwnProperty&&g.hasOwnProperty("addEventListener")&&(fill(g,"addEventListener",function(p){return function(g,b,_){if("click"===g||"keypress"==g)try{let b=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},w=b[g]=b[g]||{refCount:0};if(!w.handler){let b=makeDOMEventHandler(f);w.handler=b,p.call(this,g,b,_)}w.refCount++}catch(f){}return p.call(this,g,b,_)}}),fill(g,"removeEventListener",function(f){return function(p,g,b){if("click"===p||"keypress"==p)try{let g=this.__sentry_instrumentation_handlers__||{},_=g[p];_&&(_.refCount--,_.refCount<=0&&(f.call(this,p,_.handler,b),_.handler=void 0,delete g[p]),0===Object.keys(g).length&&delete this.__sentry_instrumentation_handlers__)}catch(f){}return f.call(this,p,g,b)}}))})}function makeDOMEventHandler(f,p=!1){return g=>{if(!g||g._sentryCaptured)return;let b=function(f){try{return f.target}catch(f){return null}}(g);if("keypress"===g.type&&(!b||!b.tagName||"INPUT"!==b.tagName&&"TEXTAREA"!==b.tagName&&!b.isContentEditable))return;addNonEnumerableProperty(g,"_sentryCaptured",!0),b&&!b._sentryId&&addNonEnumerableProperty(b,"_sentryId",misc_uuid4());let _="keypress"===g.type?"input":g.type;!function(f){if(f.type!==S)return!1;try{if(!f.target||f.target._sentryId!==E)return!1}catch(f){}return!0}(g)&&(f({event:g,name:_,global:p}),S=g.type,E=b?b._sentryId:void 0),clearTimeout(w),w=eT.setTimeout(()=>{E=void 0,S=void 0},1e3)}}let ex=H.n2,ek="__sentry_xhr_v3__";function addXhrInstrumentationHandler(f){addHandler("xhr",f),maybeInstrument("xhr",instrumentXHR)}function instrumentXHR(){if(!ex.XMLHttpRequest)return;let f=XMLHttpRequest.prototype;fill(f,"open",function(f){return function(...p){let g=Date.now(),b=isString(p[0])?p[0].toUpperCase():void 0,_=function(f){if(isString(f))return f;try{return f.toString()}catch(f){}}(p[1]);if(!b||!_)return f.apply(this,p);this[ek]={method:b,url:_,request_headers:{}},"POST"===b&&_.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let onreadystatechangeHandler=()=>{let f=this[ek];if(f&&4===this.readyState){try{f.status_code=this.status}catch(f){}let p={args:[b,_],endTimestamp:Date.now(),startTimestamp:g,xhr:this};triggerHandlers("xhr",p)}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?fill(this,"onreadystatechange",function(f){return function(...p){return onreadystatechangeHandler(),f.apply(this,p)}}):this.addEventListener("readystatechange",onreadystatechangeHandler),fill(this,"setRequestHeader",function(f){return function(...p){let[g,b]=p,_=this[ek];return _&&isString(g)&&isString(b)&&(_.request_headers[g.toLowerCase()]=b),f.apply(this,p)}}),f.apply(this,p)}}),fill(f,"send",function(f){return function(...p){let g=this[ek];if(!g)return f.apply(this,p);void 0!==p[0]&&(g.body=p[0]);let b={args:[g.method,g.url],startTimestamp:Date.now(),xhr:this};return triggerHandlers("xhr",b),f.apply(this,p)}})}function addFetchInstrumentationHandler(f){let p="fetch";addHandler(p,f),maybeInstrument(p,instrumentFetch)}function instrumentFetch(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!supportsFetch())return!1;if(isNativeFetch(ec.fetch))return!0;let f=!1,p=ec.document;if(p&&"function"==typeof p.createElement)try{let g=p.createElement("iframe");g.hidden=!0,p.head.appendChild(g),g.contentWindow&&g.contentWindow.fetch&&(f=isNativeFetch(g.contentWindow.fetch)),p.head.removeChild(g)}catch(f){M&&X.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",f)}return f})()&&fill(H.n2,"fetch",function(f){return function(...p){let{method:g,url:b}=function(f){if(0===f.length)return{method:"GET",url:""};if(2===f.length){let[p,g]=f;return{url:getUrlFromResource(p),method:hasProp(g,"method")?String(g.method).toUpperCase():"GET"}}let p=f[0];return{url:getUrlFromResource(p),method:hasProp(p,"method")?String(p.method).toUpperCase():"GET"}}(p),_={args:p,fetchData:{method:g,url:b},startTimestamp:Date.now()};return triggerHandlers("fetch",{..._}),f.apply(H.n2,p).then(f=>{let p={..._,endTimestamp:Date.now(),response:f};return triggerHandlers("fetch",p),f},f=>{let p={..._,endTimestamp:Date.now(),error:f};throw triggerHandlers("fetch",p),f})}})}function hasProp(f,p){return!!f&&"object"==typeof f&&!!f[p]}function getUrlFromResource(f){return"string"==typeof f?f:f?hasProp(f,"url")?f.url:f.toString?f.toString():"":""}let eC=["fatal","error","warning","log","info","debug"];function url_parseUrl(f){if(!f)return{};let p=f.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!p)return{};let g=p[6]||"",b=p[8]||"";return{host:p[4],path:p[5],protocol:p[2],search:g,hash:b,relative:p[5]+g+b}}let Breadcrumbs=class Breadcrumbs{static __initStatic(){this.id="Breadcrumbs"}constructor(f){this.name=Breadcrumbs.id,this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...f}}setupOnce(){if(this.options.console&&function(f){let p="console";addHandler(p,f),maybeInstrument(p,instrumentConsole)}(_consoleBreadcrumb),this.options.dom){var f;addHandler("dom",(f=this.options.dom,function(p){let g;let b="object"==typeof f?f.serializeAttribute:void 0,_="object"==typeof f&&"number"==typeof f.maxStringLength?f.maxStringLength:void 0;_&&_>1024&&(ey&&X.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${_} was configured. Sentry will use 1024 instead.`),_=1024),"string"==typeof b&&(b=[b]);try{let f=p.event;g=f&&f.target?htmlTreeAsString(f.target,{keyAttrs:b,maxStringLength:_}):htmlTreeAsString(f,{keyAttrs:b,maxStringLength:_})}catch(f){g="<unknown>"}0!==g.length&&hub_getCurrentHub().addBreadcrumb({category:`ui.${p.name}`,message:g},{event:p.event,name:p.name,global:p.global})})),maybeInstrument("dom",instrumentDOM)}if(this.options.xhr&&addXhrInstrumentationHandler(_xhrBreadcrumb),this.options.fetch&&addFetchInstrumentationHandler(_fetchBreadcrumb),this.options.history&&addHistoryInstrumentationHandler(_historyBreadcrumb),this.options.sentry){let f=exports_getClient();f&&f.on&&f.on("beforeSendEvent",addSentryBreadcrumb)}}};function addSentryBreadcrumb(f){hub_getCurrentHub().addBreadcrumb({category:`sentry.${"transaction"===f.type?"transaction":"event"}`,event_id:f.event_id,level:f.level,message:getEventDescription(f)},{event:f})}function _consoleBreadcrumb(f){var p;let g={category:"console",data:{arguments:f.args,logger:"console"},level:"warn"===(p=f.level)?"warning":eC.includes(p)?p:"log",message:safeJoin(f.args," ")};if("assert"===f.level){if(!1!==f.args[0])return;g.message=`Assertion failed: ${safeJoin(f.args.slice(1)," ")||"console.assert"}`,g.data.arguments=f.args.slice(1)}hub_getCurrentHub().addBreadcrumb(g,{input:f.args,level:f.level})}function _xhrBreadcrumb(f){let{startTimestamp:p,endTimestamp:g}=f,b=f.xhr[ek];if(!p||!g||!b)return;let{method:_,url:w,status_code:S,body:E}=b,T={xhr:f.xhr,input:E,startTimestamp:p,endTimestamp:g};hub_getCurrentHub().addBreadcrumb({category:"xhr",data:{method:_,url:w,status_code:S},type:"http"},T)}function _fetchBreadcrumb(f){let{startTimestamp:p,endTimestamp:g}=f;
15if(!(!g||f.fetchData.url.match(/sentry_key/)&&"POST"===f.fetchData.method)){if(f.error){let b=f.fetchData,_={data:f.error,input:f.args,startTimestamp:p,endTimestamp:g};hub_getCurrentHub().addBreadcrumb({category:"fetch",data:b,level:"error",type:"http"},_)}else{let b=f.response,_={...f.fetchData,status_code:b&&b.status},w={input:f.args,response:b,startTimestamp:p,endTimestamp:g};hub_getCurrentHub().addBreadcrumb({category:"fetch",data:_,type:"http"},w)}}}function _historyBreadcrumb(f){let p=f.from,g=f.to,b=url_parseUrl(eb.location.href),_=p?url_parseUrl(p):void 0,w=url_parseUrl(g);_&&_.path||(_=b),b.protocol===w.protocol&&b.host===w.host&&(g=w.relative),b.protocol===_.protocol&&b.host===_.host&&(p=_.relative),hub_getCurrentHub().addBreadcrumb({category:"navigation",data:{from:p,to:g}})}function applyExceptionGroupFieldsForParentException(f,p){f.mechanism=f.mechanism||{type:"generic",handled:!0},f.mechanism={...f.mechanism,is_exception_group:!0,exception_id:p}}function applyExceptionGroupFieldsForChildException(f,p,g,b){f.mechanism=f.mechanism||{type:"generic",handled:!0},f.mechanism={...f.mechanism,type:"chained",source:p,exception_id:g,parent_id:b}}Breadcrumbs.__initStatic();let LinkedErrors=class LinkedErrors{static __initStatic(){this.id="LinkedErrors"}constructor(f={}){this.name=LinkedErrors.id,this._key=f.key||"cause",this._limit=f.limit||5}setupOnce(){}preprocessEvent(f,p,g){let b=g.getOptions();!function(f,p,g=250,b,_,w,S){if(!w.exception||!w.exception.values||!S||!isInstanceOf(S.originalException,Error))return;let E=w.exception.values.length>0?w.exception.values[w.exception.values.length-1]:void 0;E&&(w.exception.values=(function aggregateExceptionsFromError(f,p,g,b,_,w,S,E){if(w.length>=g+1)return w;let T=[...w];if(isInstanceOf(b[_],Error)){applyExceptionGroupFieldsForParentException(S,E);let w=f(p,b[_]),x=T.length;applyExceptionGroupFieldsForChildException(w,_,x,E),T=aggregateExceptionsFromError(f,p,g,b[_],_,[w,...T],w,x)}return Array.isArray(b.errors)&&b.errors.forEach((b,w)=>{if(isInstanceOf(b,Error)){applyExceptionGroupFieldsForParentException(S,E);let x=f(p,b),k=T.length;applyExceptionGroupFieldsForChildException(x,`errors[${w}]`,k,E),T=aggregateExceptionsFromError(f,p,g,b,_,[x,...T],x,k)}}),T})(f,p,_,S.originalException,b,w.exception.values,E,0).map(f=>(f.value&&(f.value=truncate(f.value,g)),f)))}(exceptionFromError,b.stackParser,b.maxValueLength,this._key,this._limit,f,p)}};LinkedErrors.__initStatic();let HttpContext=class HttpContext{static __initStatic(){this.id="HttpContext"}constructor(){this.name=HttpContext.id}setupOnce(){}preprocessEvent(f){if(!eb.navigator&&!eb.location&&!eb.document)return;let p=f.request&&f.request.url||eb.location&&eb.location.href,{referrer:g}=eb.document||{},{userAgent:b}=eb.navigator||{},_={...f.request&&f.request.headers,...g&&{Referer:g},...b&&{"User-Agent":b}},w={...f.request,...p&&{url:p},headers:_};f.request=w}};HttpContext.__initStatic();let Dedupe=class Dedupe{static __initStatic(){this.id="Dedupe"}constructor(){this.name=Dedupe.id}setupOnce(f,p){}processEvent(f){if(f.type)return f;try{var p;if((p=this._previousEvent)&&(function(f,p){let g=f.message,b=p.message;return!!((g||b)&&(!g||b)&&(g||!b)&&g===b&&_isSameFingerprint(f,p)&&_isSameStacktrace(f,p))}(f,p)||function(f,p){let g=_getExceptionFromEvent(p),b=_getExceptionFromEvent(f);return!!(g&&b&&g.type===b.type&&g.value===b.value&&_isSameFingerprint(f,p)&&_isSameStacktrace(f,p))}(f,p)))return ey&&X.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(f){}return this._previousEvent=f}};function _isSameStacktrace(f,p){let g=_getFramesFromEvent(f),b=_getFramesFromEvent(p);if(!g&&!b)return!0;if(g&&!b||!g&&b||b.length!==g.length)return!1;for(let f=0;f<b.length;f++){let p=b[f],_=g[f];if(p.filename!==_.filename||p.lineno!==_.lineno||p.colno!==_.colno||p.function!==_.function)return!1}return!0}function _isSameFingerprint(f,p){let g=f.fingerprint,b=p.fingerprint;if(!g&&!b)return!0;if(g&&!b||!g&&b)return!1;try{return!(g.join("")!==b.join(""))}catch(f){return!1}}function _getExceptionFromEvent(f){return f.exception&&f.exception.values&&f.exception.values[0]}function _getFramesFromEvent(f){let p=f.exception;if(p)try{return p.values[0].stacktrace.frames}catch(f){}}function createFrame(f,p,g,b){let _={filename:f,function:p,in_app:!0};return void 0!==g&&(_.lineno=g),void 0!==b&&(_.colno=b),_}Dedupe.__initStatic();let eO=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,eI=/\((\S*)(?::(\d+))(?::(\d+))\)/,eR=[30,f=>{let p=eO.exec(f);
15if(p){let f=p[2]&&0===p[2].indexOf("eval");if(f){let f=eI.exec(p[2]);f&&(p[2]=f[1],p[3]=f[2],p[4]=f[3])}let[g,b]=extractSafariExtensionDetails(p[1]||"?",p[2]);return createFrame(b,g,p[3]?+p[3]:void 0,p[4]?+p[4]:void 0)}}],eA=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,eF=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,eP=[50,f=>{let p=eA.exec(f);if(p){let f=p[3]&&p[3].indexOf(" > eval")>-1;if(f){let f=eF.exec(p[3]);f&&(p[1]=p[1]||"eval",p[3]=f[1],p[4]=f[2],p[5]="")}let g=p[3],b=p[1]||"?";return[b,g]=extractSafariExtensionDetails(b,g),createFrame(g,b,p[4]?+p[4]:void 0,p[5]?+p[5]:void 0)}}],eL=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ej=[40,f=>{let p=eL.exec(f);return p?createFrame(p[2],p[1]||"?",+p[3],p[4]?+p[4]:void 0):void 0}],eD=createStackParser(...[eR,eP,ej]),extractSafariExtensionDetails=(f,p)=>{let g=-1!==f.indexOf("safari-extension"),b=-1!==f.indexOf("safari-web-extension");return g||b?[-1!==f.indexOf("@")?f.split("@")[0]:"?",g?`safari-extension:${p}`:`safari-web-extension:${p}`]:[f,p]};function createTransport(f,p,g=function(f){let p=[];function remove(f){return p.splice(p.indexOf(f),1)[0]}return{$:p,add:function(g){if(!(void 0===f||p.length<f))return rejectedSyncPromise(new SentryError("Not adding Promise because buffer limit was reached."));let b=g();return -1===p.indexOf(b)&&p.push(b),b.then(()=>remove(b)).then(null,()=>remove(b).then(null,()=>{})),b},drain:function(f){return new SyncPromise((g,b)=>{let _=p.length;if(!_)return g(!0);let w=setTimeout(()=>{f&&f>0&&g(!1)},f);p.forEach(f=>{resolvedSyncPromise(f).then(()=>{--_||(clearTimeout(w),g(!0))},b)})})}}}(f.bufferSize||30)){let b={};function send(_){let w=[];if(forEachEnvelopeItem(_,(p,g)=>{let _=eh[g];if(function(f,p,g=Date.now()){return(f[p]||f.all||0)>g}(b,_)){let b=getEventForEnvelopeItem(p,g);f.recordDroppedEvent("ratelimit_backoff",_,b)}else w.push(p)}),0===w.length)return resolvedSyncPromise();let S=createEnvelope(_[0],w),recordEnvelopeLoss=p=>{forEachEnvelopeItem(S,(g,b)=>{let _=getEventForEnvelopeItem(g,b);f.recordDroppedEvent(p,eh[b],_)})};return g.add(()=>p({body:function(f,p){let[g,b]=f,_=JSON.stringify(g);function append(f){"string"==typeof _?_="string"==typeof f?_+f:[encodeUTF8(_,p),f]:_.push("string"==typeof f?encodeUTF8(f,p):f)}for(let f of b){let[p,g]=f;if(append(`
16${JSON.stringify(p)}
17`),"string"==typeof g||g instanceof Uint8Array)append(g);else{let f;try{f=JSON.stringify(g)}catch(p){f=JSON.stringify(normalize(g))}append(f)}}return"string"==typeof _?_:function(f){let p=f.reduce((f,p)=>f+p.length,0),g=new Uint8Array(p),b=0;for(let p of f)g.set(p,b),b+=p.length;return g}(_)}(S,f.textEncoder)}).then(f=>(void 0!==f.statusCode&&(f.statusCode<200||f.statusCode>=300)&&Y&&X.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),b=function(f,{statusCode:p,headers:g},b=Date.now()){let _={...f},w=g&&g["x-sentry-rate-limits"],S=g&&g["retry-after"];if(w)for(let f of w.trim().split(",")){let[p,g]=f.split(":",2),w=parseInt(p,10),S=(isNaN(w)?60:w)*1e3;if(g)for(let f of g.split(";"))_[f]=b+S;else _.all=b+S}else S?_.all=b+function(f,p=Date.now()){let g=parseInt(`${f}`,10);if(!isNaN(g))return 1e3*g;let b=Date.parse(`${f}`);return isNaN(b)?6e4:b-p}(S,b):429===p&&(_.all=b+6e4);return _}(b,f),f),f=>{throw recordEnvelopeLoss("network_error"),f})).then(f=>f,f=>{if(f instanceof SentryError)return Y&&X.error("Skipped sending event because buffer is full."),recordEnvelopeLoss("queue_overflow"),resolvedSyncPromise();throw f})}return send.__sentry__baseTransport__=!0,{send,flush:f=>g.drain(f)}}function getEventForEnvelopeItem(f,p){if("event"===p||"transaction"===p)return Array.isArray(f)?f[1]:void 0}function makeFetchTransport(f,p=function(){if(R)return R;if(isNativeFetch(eb.fetch))return R=eb.fetch.bind(eb);let f=eb.document,p=eb.fetch;if(f&&"function"==typeof f.createElement)try{let g=f.createElement("iframe");g.hidden=!0,f.head.appendChild(g);let b=g.contentWindow;b&&b.fetch&&(p=b.fetch),f.head.removeChild(g)}catch(f){ey&&X.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",f)}return R=p.bind(eb)}()){let g=0,b=0;return createTransport(f,function(_){let w=_.body.length;g+=w,b++;let S={body:_.body,method:"POST",referrerPolicy:"origin",headers:f.headers,keepalive:g<=6e4&&b<15,...f.fetchOptions};try{return p(f.url,S).then(f=>
17(g-=w,b--,{statusCode:f.status,headers:{"x-sentry-rate-limits":f.headers.get("X-Sentry-Rate-Limits"),"retry-after":f.headers.get("Retry-After")}}))}catch(f){return R=void 0,g-=w,b--,rejectedSyncPromise(f)}})}function makeXHRTransport(f){return createTransport(f,function(p){return new SyncPromise((g,b)=>{let _=new XMLHttpRequest;for(let p in _.onerror=b,_.onreadystatechange=()=>{4===_.readyState&&g({statusCode:_.status,headers:{"x-sentry-rate-limits":_.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":_.getResponseHeader("Retry-After")}})},_.open("POST",f.url),f.headers)Object.prototype.hasOwnProperty.call(f.headers,p)&&_.setRequestHeader(p,f.headers[p]);_.send(p.body)})})}let eB=[new InboundFilters,new FunctionToString,new TryCatch,new Breadcrumbs,new GlobalHandlers,new LinkedErrors,new Dedupe,new HttpContext];function startSessionOnHub(f){f.startSession({ignoreDuration:!0}),f.captureSession()}let eU="baggage",eH="sentry-",eN=/^sentry-/;function dynamicSamplingContextToSentryBaggageHeader(f){if(!f)return;let p=Object.entries(f).reduce((f,[p,g])=>(g&&(f[`${eH}${p}`]=g),f),{});return function(f){if(0!==Object.keys(f).length)return Object.entries(f).reduce((f,[p,g],b)=>{let _=`${encodeURIComponent(p)}=${encodeURIComponent(g)}`,w=0===b?_:`${f},${_}`;return w.length>8192?(M&&X.warn(`Not adding key: ${p} with val: ${g} to baggage header due to exceeding baggage size limits.`),f):w},"")}(p)}function baggageHeaderToObject(f){return f.split(",").map(f=>f.split("=").map(f=>decodeURIComponent(f.trim()))).reduce((f,[p,g])=>(f[p]=g,f),{})}let eM=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function tracingContextFromHeaders(f,p){let g=function(f){let p;if(!f)return;let g=f.match(eM);if(g)return"1"===g[3]?p=!0:"0"===g[3]&&(p=!1),{traceId:g[1],parentSampled:p,parentSpanId:g[2]}}(f),b=function(f){if(!isString(f)&&!Array.isArray(f))return;let p={};if(Array.isArray(f))p=f.reduce((f,p)=>{let g=baggageHeaderToObject(p);return{...f,...g}},{});else{if(!f)return;p=baggageHeaderToObject(f)}let g=Object.entries(p).reduce((f,[p,g])=>{if(p.match(eN)){let b=p.slice(eH.length);f[b]=g}return f},{});return Object.keys(g).length>0?g:void 0}(p),{traceId:_,parentSpanId:w,parentSampled:S}=g||{},E={traceId:_||misc_uuid4(),spanId:misc_uuid4().substring(16),sampled:S};return w&&(E.parentSpanId=w),b&&(E.dsc=b),{traceparentData:g,dynamicSamplingContext:b,propagationContext:E}}function generateSentryTraceHeader(f=misc_uuid4(),p=misc_uuid4().substring(16),g){let b="";return void 0!==g&&(b=g?"-1":"-0"),`${f}-${p}${b}`}let SpanRecorder=class SpanRecorder{constructor(f=1e3){this._maxlen=f,this.spans=[]}add(f){this.spans.length>this._maxlen?f.spanRecorder=void 0:this.spans.push(f)}};let Span=class Span{constructor(f={}){this.traceId=f.traceId||misc_uuid4(),this.spanId=f.spanId||misc_uuid4().substring(16),this.startTimestamp=f.startTimestamp||(0,$.ph)(),this.tags=f.tags||{},this.data=f.data||{},this.instrumenter=f.instrumenter||"sentry",this.origin=f.origin||"manual",f.parentSpanId&&(this.parentSpanId=f.parentSpanId),"sampled"in f&&(this.sampled=f.sampled),f.op&&(this.op=f.op),f.description&&(this.description=f.description),f.name&&(this.description=f.name),f.status&&(this.status=f.status),f.endTimestamp&&(this.endTimestamp=f.endTimestamp)}get name(){return this.description||""}set name(f){this.setName(f)}startChild(f){let p=new Span({...f,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(p.spanRecorder=this.spanRecorder,p.spanRecorder&&p.spanRecorder.add(p),p.transaction=this.transaction,Y&&p.transaction){let g=f&&f.op||"< unknown op >",b=p.transaction.name||"< unknown name >",_=p.transaction.spanId,w=`[Tracing] Starting '${g}' span on transaction '${b}' (${_}).`;p.transaction.metadata.spanMetadata[p.spanId]={logMessage:w},X.log(w)}return p}setTag(f,p){return this.tags={...this.tags,[f]:p},this}setData(f,p){return this.data={...this.data,[f]:p},this}setStatus(f){return this.status=f,this}setHttpStatus(f){this.setTag("http.status_code",String(f)),this.setData("http.response.status_code",f);let p=function(f){if(f<400&&f>=100)return"ok";if(f>=400&&f<500)switch(f){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(f>=500&&f<600)switch(f){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(f);return"unknown_error"!==p&&this.setStatus(p),this}setName(f){this.description=f}isSuccess(){return"ok"===this.status}finish(f){if(Y&&this.transaction&&this.transaction.spanId!==this.spanId){let{logMessage:f}=this.transaction.metadata.spanMetadata[this.spanId];f&&X.log(f.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof f?f:(0,$.ph)()}toTraceparent(){return generateSentryTraceHeader(this.traceId,this.spanId,this.sampled)}toContext(){return dropUndefinedKeys({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(f){return this.data=f.data||{},this.description=f.description,this.endTimestamp=f.endTimestamp,this.op=f.op,this.parentSpanId=f.parentSpanId,this.sampled=f.sampled,this.spanId=f.spanId||this.spanId,this.startTimestamp=f.startTimestamp||this.startTimestamp,this.status=f.status,this.tags=f.tags||{},this.traceId=f.traceId||this.traceId,this}getTraceContext(){return dropUndefinedKeys({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId,origin:this.origin})}toJSON(){return dropUndefinedKeys({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId,origin:this.origin})}};let Transaction=class Transaction extends Span{constructor(f,p){super(f),delete this.description,this._measurements={},this._contexts={},this._hub=p||hub_getCurrentHub(),this._name=f.name||"",this.metadata={source:"custom",...f.metadata,spanMetadata:{}},this._trimEnd=f.trimEnd,this.transaction=this;let g=this.metadata.dynamicSamplingContext;g&&(this._frozenDynamicSamplingContext={...g})}get name(){return this._name}set name(f){this.setName(f)}setName(f,p="custom"){this._name=f,this.metadata.source=p}initSpanRecorder(f=1e3){this.spanRecorder||(this.spanRecorder=new SpanRecorder(f)),this.spanRecorder.add(this)}setContext(f,p){null===p?delete this._contexts[f]:this._contexts[f]=p}setMeasurement(f,p,g=""){this._measurements[f]={value:p,unit:g}}setMetadata(f){this.metadata={...this.metadata,...f}}finish(f){let p=this._finishTransaction(f);if(p)return this._hub.captureEvent(p)}toContext(){let f=super.toContext();return dropUndefinedKeys({...f,name:this.name,trimEnd:this._trimEnd})}updateWithContext(f){return super.updateWithContext(f),this.name=f.name||"",this._trimEnd=f.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;let f=this._hub||hub_getCurrentHub(),p=f.getClient();if(!p)return{};let g=f.getScope(),b=getDynamicSamplingContextFromClient(this.traceId,p,g),_=this.metadata.sampleRate;void 0!==_&&(b.sample_rate=`${_}`);let w=this.metadata.source;return w&&"url"!==w&&(b.transaction=this.name),void 0!==this.sampled&&(b.sampled=String(this.sampled)),b}setHub(f){this._hub=f}_finishTransaction(f){if(void 0!==this.endTimestamp)return;this.name||(Y&&X.warn("Transaction has no name, falling back to `<unlabeled transaction>
17`."),this.name="<unlabeled transaction>"),super.finish(f);let p=this._hub.getClient();if(p&&p.emit&&p.emit("finishTransaction",this),!0!==this.sampled){Y&&X.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),p&&p.recordDroppedEvent("sample_rate","transaction");return}let g=this.spanRecorder?this.spanRecorder.spans.filter(f=>f!==this&&f.endTimestamp):[];this._trimEnd&&g.length>0&&(this.endTimestamp=g.reduce((f,p)=>f.endTimestamp&&p.endTimestamp?f.endTimestamp>p.endTimestamp?f:p:f).endTimestamp);let b=this.metadata,_={contexts:{...this._contexts,trace:this.getTraceContext()},spans:g,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...b,dynamicSamplingContext:this.getDynamicSamplingContext()},...b.source&&{transaction_info:{source:b.source}}},w=Object.keys(this._measurements).length>0;return w&&(Y&&X.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),_.measurements=this._measurements),Y&&X.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),_}};let eW={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3};let IdleTransactionSpanRecorder=class IdleTransactionSpanRecorder extends SpanRecorder{constructor(f,p,g,b){super(b),this._pushActivity=f,this._popActivity=p,this.transactionSpanId=g}add(f){f.spanId!==this.transactionSpanId&&(f.finish=p=>{f.endTimestamp="number"==typeof p?p:(0,$.ph)(),this._popActivity(f.spanId)},void 0===f.endTimestamp&&this._pushActivity(f.spanId)),super.add(f)}};let IdleTransaction=class IdleTransaction extends Transaction{constructor(f,p,g=eW.idleTimeout,b=eW.finalTimeout,_=eW.heartbeatInterval,w=!1){super(f,p),this._idleHub=p,this._idleTimeout=g,this._finalTimeout=b,this._heartbeatInterval=_,this._onScope=w,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason="externalFinish",w&&(Y&&X.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),p.configureScope(f=>f.setSpan(this))),this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason="finalTimeout",this.finish())},this._finalTimeout)}finish(f=(0,$.ph)()){if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this._finishReason),this.spanRecorder){for(let p of(Y&&X.log("[Tracing] finishing IdleTransaction",new Date(1e3*f).toISOString(),this.op),this._beforeFinishCallbacks))p(this,f);this.spanRecorder.spans=this.spanRecorder.spans.filter(p=>{if(p.spanId===this.spanId)return!0;!p.endTimestamp&&(p.endTimestamp=f,p.setStatus("cancelled"),Y&&X.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(p,void 0,2)));let g=p.startTimestamp<f,b=(this._finalTimeout+this._idleTimeout)/1e3,_=p.endTimestamp-this.startTimestamp<b;if(Y){let f=JSON.stringify(p,void 0,2);g?_||X.log("[Tracing] discarding Span since it finished after Transaction final timeout",f):X.log("[Tracing] discarding Span since it happened after Transaction was finished",f)}return g&&_}),Y&&X.log("[Tracing] flushing IdleTransaction")}else Y&&X.log("[Tracing] No active IdleTransaction");if(this._onScope){let f=this._idleHub.getScope();f.getTransaction()===this&&f.setSpan(void 0)}return super.finish(f)}registerBeforeFinishCallback(f){this._beforeFinishCallbacks.push(f)}initSpanRecorder(f){this.spanRecorder||(this.spanRecorder=new IdleTransactionSpanRecorder(f=>{this._finished||this._pushActivity(f)},f=>{this._finished||this._popActivity(f)},this.spanId,f),Y&&X.log("Starting heartbeat"),this._pingHeartbeat()),this.spanRecorder.add(this)}cancelIdleTimeout(f,{restartOnChildSpanChange:p}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===p,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason="cancelled",this.finish(f)))}setFinishReason(f){this._finishReason=f}_restartIdleTimeout(f){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason="idleTimeout",this.finish(f))},this._idleTimeout)}
17_pushActivity(f){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),Y&&X.log(`[Tracing] pushActivity: ${f}`),this.activities[f]=!0,Y&&X.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(f){if(this.activities[f]&&(Y&&X.log(`[Tracing] popActivity ${f}`),delete this.activities[f],Y&&X.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){let f=(0,$.ph)();this._idleTimeoutCanceledPermanently?(this._finishReason="cancelled",this.finish(f)):this._restartIdleTimeout(f+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;let f=Object.keys(this.activities).join("");f===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=f,this._heartbeatCounter>=3?(Y&&X.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason="heartbeatFailed",this.finish()):this._pingHeartbeat()}_pingHeartbeat(){Y&&X.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}};function getActiveTransaction(f){let p=f||hub_getCurrentHub(),g=p.getScope();return g.getTransaction()}let ez=!1;function errorCallback(){let f=getActiveTransaction();if(f){let p="internal_error";Y&&X.log(`[Tracing] Transaction: ${p} -> Global error occured`),f.setStatus(p)}}function sampleTransaction(f,p,g){var b;let _;return hasTracingEnabled(p)?void 0!==f.sampled?f.setMetadata({sampleRate:Number(f.sampled)}):("function"==typeof p.tracesSampler?(_=p.tracesSampler(g),f.setMetadata({sampleRate:Number(_)})):void 0!==g.parentSampled?_=g.parentSampled:void 0!==p.tracesSampleRate?(_=p.tracesSampleRate,f.setMetadata({sampleRate:Number(_)})):(_=1,f.setMetadata({sampleRate:_})),is_isNaN(b=_)||!("number"==typeof b||"boolean"==typeof b)?(Y&&X.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(b)} of type ${JSON.stringify(typeof b)}.`),1):(b<0||b>1)&&(Y&&X.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${b}.`),1))?(Y&&X.warn("[Tracing] Discarding transaction because of invalid sample rate."),f.sampled=!1):_?(f.sampled=Math.random()<_,f.sampled)?Y&&X.log(`[Tracing] starting ${f.op} transaction - ${f.name}`):Y&&X.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(_)})`):(Y&&X.log(`[Tracing] Discarding transaction because ${"function"==typeof p.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),f.sampled=!1):f.sampled=!1,f}function traceHeaders(){let f=this.getScope(),p=f.getSpan();return p?{"sentry-trace":p.toTraceparent()}:{}}function _startTransaction(f,p){let g=this.getClient(),b=g&&g.getOptions()||{},_=b.instrumenter||"sentry",w=f.instrumenter||"sentry";_!==w&&(Y&&X.error(`A transaction was started with instrumenter=\`${w}\`, but the SDK is configured with the \`${_}\` instrumenter.
18The transaction will not be sampled. Please use the ${_} instrumentation to start transactions.`),f.sampled=!1);let S=new Transaction(f,this);return(S=sampleTransaction(S,b,{parentSampled:f.parentSampled,transactionContext:f,...p})).sampled&&S.initSpanRecorder(b._experiments&&b._experiments.maxSpans),g&&g.emit&&g.emit("startTransaction",S),S}function startIdleTransaction(f,p,g,b,_,w,S){let E=f.getClient(),T=E&&E.getOptions()||{},x=new IdleTransaction(p,f,g,b,S,_);return(x=sampleTransaction(x,T,{parentSampled:p.parentSampled,transactionContext:p,...w})).sampled&&x.initSpanRecorder(T._experiments&&T._experiments.maxSpans),E&&E.emit&&E.emit("startTransaction",x),x}errorCallback.tag="sentry_tracingErrorCallback";let eG="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,eZ=H.n2,bindReporter=(f,p,g)=>{let b,_;return w=>{p.value>=0&&(w||g)&&((_=p.value-(b||0))||void 0===b)&&(b=p.value,p.delta=_,f(p))}},generateUniqueID=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,getNavigationEntryFromPerformanceTiming=()=>{let f=eZ.performance.timing,p=eZ.performance.navigation.type,g={entryType:"navigation",startTime:0,type:2==p?"back_forward":1===p?"reload":"navigate"};for(let p in f)"navigationStart"!==p&&"toJSON"!==p&&(g[p]=Math.max(f[p]-f.navigationStart,0));return g},getNavigationEntry=()=>eZ.__WEB_VITALS_POLYFILL__?eZ.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||getNavigationEntryFromPerformanceTiming()):eZ.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],getActivationStart=()=>{let f=getNavigationEntry();return f&&f.activationStart||0},initMetric=(f,p)=>{let g=getNavigationEntry(),b="navigate";return g&&(b=eZ.document.prerendering||getActivationStart()>0?"prerender":g.type.replace(/_/g,"-")),{name:f,value:void 0===p?-1:p,rating:"good",delta:0,entries:[],id:generateUniqueID(),navigationType:b}},observe=(f,p,g)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(f)){let b=new PerformanceObserver(f=>{p(f.getEntries())});return b.observe(Object.assign({type:f,buffered:!0},g||{})),b}}catch(f){}},onHidden=(f,p)=>{let onHiddenOrPageHide=g=>{("pagehide"===g.type||"hidden"===eZ.document.visibilityState)&&(f(g),p&&(removeEventListener("visibilitychange",onHiddenOrPageHide,!0),removeEventListener("pagehide",onHiddenOrPageHide,!0)))};addEventListener("visibilitychange",onHiddenOrPageHide,!0),addEventListener("pagehide",onHiddenOrPageHide,!0)},onCLS=f=>{let p;let g=initMetric("CLS",0),b=0,_=[],handleEntries=f=>{f.forEach(f=>{if(!f.hadRecentInput){let w=_[0],S=_[_.length-1];b&&0!==_.length&&f.startTime-S.startTime<1e3&&f.startTime-w.startTime<5e3?(b+=f.value,_.push(f)):(b=f.value,_=[f]),b>g.value&&(g.value=b,g.entries=_,p&&p())}})},w=observe("layout-shift",handleEntries);if(w){p=bindReporter(f,g);let stopListening=()=>{handleEntries(w.takeRecords()),p(!0)};return onHidden(stopListening),stopListening}},eK=-1,initHiddenTime=()=>"hidden"!==eZ.document.visibilityState||eZ.document.prerendering?1/0:0,trackChanges=()=>{onHidden(({timeStamp:f})=>{eK=f},!0)},getVisibilityWatcher=()=>(eK<0&&(eK=initHiddenTime(),trackChanges()),{get firstHiddenTime(){return eK}}),onFID=f=>{let p;let g=getVisibilityWatcher(),b=initMetric("FID"),handleEntry=f=>{f.startTime<g.firstHiddenTime&&(b.value=f.processingStart-f.startTime,b.entries.push(f),p(!0))},handleEntries=f=>{f.forEach(handleEntry)},_=observe("first-input",handleEntries);p=bindReporter(f,b),_&&onHidden(()=>{handleEntries(_.takeRecords()),_.disconnect()},!0)},eX={},onLCP=f=>{let p;let g=getVisibilityWatcher(),b=initMetric("LCP"),handleEntries=f=>{let _=f[f.length-1];if(_){let f=Math.max(_.startTime-getActivationStart(),0);f<g.firstHiddenTime&&(b.value=f,b.entries=[_],p())}},_=observe("largest-contentful-paint",handleEntries);if(_){p=bindReporter(f,b);let stopListening=()=>{eX[b.id]||(handleEntries(_.takeRecords()),_.disconnect(),eX[b.id]=!0,p(!0))};return["keydown","click"].forEach(f=>{addEventListener(f,stopListening,{once:!0,capture:!0})}),onHidden(stopListening,!0),stopListening}},e$={},eV={};function addPerformanceInstrumentationHandler(f,p){return instrument_addHandler(f,p),eV[f]||(function(f){let p={};"event"===f&&(p.durationThreshold=0),observe(f,p=>
18{instrument_triggerHandlers(f,{entries:p})},p)}(f),eV[f]=!0),getCleanupCallback(f,p)}function instrument_triggerHandlers(f,p){let g=e$[f];if(g&&g.length)for(let b of g)try{b(p)}catch(p){eG&&X.error(`Error while triggering instrumentation handler.
19Type: ${f}
20Name: ${getFunctionName(b)}
21Error:`,p)}}function instrumentCls(){onCLS(f=>{instrument_triggerHandlers("cls",{metric:f}),T=f})}function instrumentFid(){onFID(f=>{instrument_triggerHandlers("fid",{metric:f}),x=f})}function instrumentLcp(){onLCP(f=>{instrument_triggerHandlers("lcp",{metric:f}),k=f})}function addMetricObserver(f,p,g,b){return instrument_addHandler(f,p),eV[f]||(g(),eV[f]=!0),b&&p({metric:b}),getCleanupCallback(f,p)}function instrument_addHandler(f,p){e$[f]=e$[f]||[],e$[f].push(p)}function getCleanupCallback(f,p){return()=>{let g=e$[f];if(!g)return;let b=g.indexOf(p);-1!==b&&g.splice(b,1)}}function isMeasurementValue(f){return"number"==typeof f&&isFinite(f)}function _startChild(f,{startTimestamp:p,...g}){return p&&f.startTimestamp>p&&(f.startTimestamp=p),f.startChild({startTimestamp:p,...g})}function msToSec(f){return f/1e3}function getBrowserPerformanceAPI(){return eZ&&eZ.addEventListener&&eZ.performance}let eY=0,eJ={};function _addPerformanceNavigationTiming(f,p,g,b,_,w){let S=w?p[w]:p[`${g}End`],E=p[`${g}Start`];E&&S&&_startChild(f,{op:"browser",origin:"auto.browser.browser.metrics",description:_||g,startTimestamp:b+msToSec(E),endTimestamp:b+msToSec(S)})}function setResourceEntrySizeData(f,p,g,b){let _=p[g];null!=_&&_<2147483647&&(f[b]=_)}let eq=["localhost",/^\/(?!\/)/],eQ={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:eq,tracePropagationTargets:eq};function addHTTPTimings(f){let p=f.data.url;if(!p)return;let g=addPerformanceInstrumentationHandler("resource",({entries:b})=>{b.forEach(b=>{if("resource"===b.entryType&&"initiatorType"in b&&"string"==typeof b.nextHopProtocol&&("fetch"===b.initiatorType||"xmlhttprequest"===b.initiatorType)&&b.name.endsWith(p)){let p=function(f){let{name:p,version:g}=function(f){let p="unknown",g="unknown",b="";for(let _ of f){if("/"===_){[p,g]=f.split("/");break}if(!isNaN(Number(_))){p="h"===b?"http":b,g=f.split(b)[1];break}b+=_}return b===f&&(p=b),{name:p,version:g}}(f.nextHopProtocol),b=[];return(b.push(["network.protocol.version",g],["network.protocol.name",p]),$.Z1)?[...b,["http.request.redirect_start",getAbsoluteTime(f.redirectStart)],["http.request.fetch_start",getAbsoluteTime(f.fetchStart)],["http.request.domain_lookup_start",getAbsoluteTime(f.domainLookupStart)],["http.request.domain_lookup_end",getAbsoluteTime(f.domainLookupEnd)],["http.request.connect_start",getAbsoluteTime(f.connectStart)],["http.request.secure_connection_start",getAbsoluteTime(f.secureConnectionStart)],["http.request.connection_end",getAbsoluteTime(f.connectEnd)],["http.request.request_start",getAbsoluteTime(f.requestStart)],["http.request.response_start",getAbsoluteTime(f.responseStart)],["http.request.response_end",getAbsoluteTime(f.responseEnd)]]:b}(b);p.forEach(p=>f.setData(...p)),setTimeout(g)}})})}function getAbsoluteTime(f=0){return(($.Z1||performance.timeOrigin)+f)/1e3}function setHeaderOnXhr(f,p,g){try{f.setRequestHeader("sentry-trace",p),g&&f.setRequestHeader(eU,g)}catch(f){}}let e0={...eW,markBackgroundTransactions:!0,routingInstrumentation:function(f,p=!0,g=!0){let b;if(!eZ||!eZ.location){eG&&X.warn("Could not initialize routing instrumentation due to invalid location");return}let _=eZ.location.href;p&&(b=f({name:eZ.location.pathname,startTimestamp:$.Z1?$.Z1/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),g&&addHistoryInstrumentationHandler(({to:p,from:g})=>{if(void 0===g&&_&&-1!==_.indexOf(p)){_=void 0;return}g!==p&&(_=void 0,b&&(eG&&X.log(`[Tracing] Finishing current transaction with op: ${b.op}`),b.finish()),b=f({name:eZ.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...eQ};let BrowserTracing=class BrowserTracing{constructor(f){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,function(){let f=getMainCarrier();f.__SENTRY__&&(f.__SENTRY__.extensions=f.__SENTRY__.extensions||{},f.__SENTRY__.extensions.startTransaction||(f.__SENTRY__.extensions.startTransaction=_startTransaction),f.__SENTRY__.extensions.traceHeaders||(f.__SENTRY__.extensions.traceHeaders=traceHeaders),ez||(ez=!0,addGlobalErrorInstrumentationHandler(errorCallback),addGlobalUnhandledRejectionInstrumentationHandler(errorCallback)))}(),eG&&(this._hasSetTracePropagationTargets=!!(f&&(f.tracePropagationTargets||f.tracingOrigins))
21),this.options={...e0,...f},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),f&&!f.tracePropagationTargets&&f.tracingOrigins&&(this.options.tracePropagationTargets=f.tracingOrigins),this._collectWebVitals=function(){let f=getBrowserPerformanceAPI();if(f&&$.Z1){f.mark&&eZ.performance.mark("sentry-tracing-init");let p=addMetricObserver("fid",({metric:f})=>{let p=f.entries.pop();if(!p)return;let g=msToSec($.Z1),b=msToSec(p.startTime);eG&&X.log("[Measurements] Adding FID"),eJ.fid={value:f.value,unit:"millisecond"},eJ["mark.fid"]={value:g+b,unit:"second"}},instrumentFid,x),g=addMetricObserver("cls",({metric:f})=>{let p=f.entries.pop();p&&(eG&&X.log("[Measurements] Adding CLS"),eJ.cls={value:f.value,unit:""},O=p)},instrumentCls,T),b=addMetricObserver("lcp",({metric:f})=>{let p=f.entries.pop();p&&(eG&&X.log("[Measurements] Adding LCP"),eJ.lcp={value:f.value,unit:"millisecond"},C=p)},instrumentLcp,k);return()=>{p(),g(),b()}}return()=>void 0}(),this.options.enableLongTask&&addPerformanceInstrumentationHandler("longtask",({entries:f})=>{for(let p of f){let f=getActiveTransaction();if(!f)return;let g=msToSec($.Z1+p.startTime),b=msToSec(p.duration);f.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:g,endTimestamp:g+b})}}),this.options._experiments.enableInteractions&&addPerformanceInstrumentationHandler("event",({entries:f})=>{for(let p of f){let f=getActiveTransaction();if(!f)return;if("click"===p.name){let g=msToSec($.Z1+p.startTime),b=msToSec(p.duration);f.startChild({description:htmlTreeAsString(p.target),op:`ui.interaction.${p.name}`,origin:"auto.ui.browser.metrics",startTimestamp:g,endTimestamp:g+b})}}})}setupOnce(f,p){this._getCurrentHub=p;let g=p(),b=g.getClient(),_=b&&b.getOptions(),{routingInstrumentation:w,startTransactionOnLocationChange:S,startTransactionOnPageLoad:E,markBackgroundTransactions:T,traceFetch:x,traceXHR:k,shouldCreateSpanForRequest:C,enableHTTPTimings:O,_experiments:R}=this.options,A=_&&_.tracePropagationTargets,j=A||this.options.tracePropagationTargets;eG&&this._hasSetTracePropagationTargets&&A&&X.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),w(f=>{let g=this._createRouteTransaction(f);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(g,f,p),g},E,S),T&&(eZ&&eZ.document?eZ.document.addEventListener("visibilitychange",()=>{let f=getActiveTransaction();if(eZ.document.hidden&&f){let p="cancelled";eG&&X.log(`[Tracing] Transaction: ${p} -> since tab moved to the background, op: ${f.op}`),f.status||f.setStatus(p),f.setTag("visibilitychange","document.hidden"),f.finish()}}):eG&&X.warn("[Tracing] Could not set up background tab detection due to lack of global document")),R.enableInteractions&&this._registerInteractionListener(),function(f){let{traceFetch:p,traceXHR:g,tracePropagationTargets:b,tracingOrigins:_,shouldCreateSpanForRequest:w,enableHTTPTimings:S}={traceFetch:eQ.traceFetch,traceXHR:eQ.traceXHR,...f},E="function"==typeof w?w:f=>!0,shouldAttachHeadersWithTargets=f=>stringMatchesSomePattern(f,b||_||eq),T={};p&&addFetchInstrumentationHandler(f=>{let p=function(f,p,g,b,_="auto.http.browser"){if(!hasTracingEnabled()||!f.fetchData)return;let w=p(f.fetchData.url);if(f.endTimestamp&&w){let p=f.fetchData.__span;if(!p)return;let g=b[p];if(g){if(f.response){g.setHttpStatus(f.response.status);let p=f.response&&f.response.headers&&f.response.headers.get("content-length");if(p){let f=parseInt(p);f>0&&g.setData("http.response_content_length",f)}}else f.error&&g.setStatus("internal_error");g.finish(),delete b[p]}return}let S=hub_getCurrentHub(),E=S.getScope(),T=S.getClient(),x=E.getSpan(),{method:k,url:C}=f.fetchData,O=w&&x?x.startChild({data:{url:C,type:"fetch","http.method":k},description:`${k} ${C}`,op:"http.client",origin:_}):void 0;if(O&&(f.fetchData.__span=O.spanId,b[O.spanId]=O),g(f.fetchData.url)&&T){let p=f.args[0];f.args[1]=f.args[1]||{};let g=f.args[1];g.headers=function(f,p,g,b,_){let w=_||g.getSpan(),S=w&&w.transaction,{traceId:E,sampled:T,dsc:x}=g.getPropagationContext(),k=w?w.toTraceparent():generateSentryTraceHeader(E,void 0,T),C=S?S.getDynamicSamplingContext():x||getDynamicSamplingContextFromClient(E,p,g),O=dynamicSamplingContextToSentryBaggageHeader(C),R="undefined"!=typeof Request&&isInstanceOf(f,Request)?f.headers:b.headers;if(!R)return{"sentry-trace":k,baggage:O};
21if("undefined"!=typeof Headers&&isInstanceOf(R,Headers)){let f=new Headers(R);return f.append("sentry-trace",k),O&&f.append(eU,O),f}if(Array.isArray(R)){let f=[...R,["sentry-trace",k]];return O&&f.push([eU,O]),f}{let f="baggage"in R?R.baggage:void 0,p=[];return Array.isArray(f)?p.push(...f):f&&p.push(f),O&&p.push(O),{...R,"sentry-trace":k,baggage:p.length>0?p.join(","):void 0}}}(p,T,E,g,O)}return O}(f,E,shouldAttachHeadersWithTargets,T);S&&p&&addHTTPTimings(p)}),g&&addXhrInstrumentationHandler(f=>{let p=function(f,p,g,b){let _=f.xhr,w=_&&_[ek];if(!hasTracingEnabled()||!_||_.__sentry_own_request__||!w)return;let S=p(w.url);if(f.endTimestamp&&S){let f=_.__sentry_xhr_span_id__;if(!f)return;let p=b[f];p&&void 0!==w.status_code&&(p.setHttpStatus(w.status_code),p.finish(),delete b[f]);return}let E=hub_getCurrentHub(),T=E.getScope(),x=T.getSpan(),k=S&&x?x.startChild({data:{type:"xhr","http.method":w.method,url:w.url},description:`${w.method} ${w.url}`,op:"http.client",origin:"auto.http.browser"}):void 0;if(k&&(_.__sentry_xhr_span_id__=k.spanId,b[_.__sentry_xhr_span_id__]=k),_.setRequestHeader&&g(w.url)){if(k){let f=k&&k.transaction,p=f&&f.getDynamicSamplingContext(),g=dynamicSamplingContextToSentryBaggageHeader(p);setHeaderOnXhr(_,k.toTraceparent(),g)}else{let f=E.getClient(),{traceId:p,sampled:g,dsc:b}=T.getPropagationContext(),w=generateSentryTraceHeader(p,void 0,g),S=b||(f?getDynamicSamplingContextFromClient(p,f,T):void 0),x=dynamicSamplingContextToSentryBaggageHeader(S);setHeaderOnXhr(_,w,x)}}return k}(f,E,shouldAttachHeadersWithTargets,T);S&&p&&addHTTPTimings(p)})}({traceFetch:x,traceXHR:k,tracePropagationTargets:j,shouldCreateSpanForRequest:C,enableHTTPTimings:O})}_createRouteTransaction(f){if(!this._getCurrentHub){eG&&X.warn(`[Tracing] Did not create ${f.op} transaction because _getCurrentHub is invalid.`);return}let p=this._getCurrentHub(),{beforeNavigate:g,idleTimeout:b,finalTimeout:_,heartbeatInterval:w}=this.options,S="pageload"===f.op,E=S?getMetaContent("sentry-trace"):"",T=S?getMetaContent("baggage"):"",{traceparentData:x,dynamicSamplingContext:k,propagationContext:R}=tracingContextFromHeaders(E,T),A={...f,...x,metadata:{...f.metadata,dynamicSamplingContext:x&&!k?{}:k},trimEnd:!0},j="function"==typeof g?g(A):A,D=void 0===j?{...A,sampled:!1}:j;D.metadata=D.name!==A.name?{...D.metadata,source:"custom"}:D.metadata,this._latestRouteName=D.name,this._latestRouteSource=D.metadata&&D.metadata.source,!1===D.sampled&&eG&&X.log(`[Tracing] Will not send ${D.op} transaction because of beforeNavigate.`),eG&&X.log(`[Tracing] Starting ${D.op} transaction on scope`);let{location:B}=eZ,U=startIdleTransaction(p,D,b,_,!0,{location:B},w),H=p.getScope();return S&&x?H.setPropagationContext(R):H.setPropagationContext({traceId:U.traceId,spanId:U.spanId,parentSpanId:U.parentSpanId,sampled:U.sampled}),U.registerBeforeFinishCallback(f=>{this._collectWebVitals(),function(f){let p,g;let b=getBrowserPerformanceAPI();if(!b||!eZ.performance.getEntries||!$.Z1)return;eG&&X.log("[Tracing] Adding & adjusting spans using Performance API");let _=msToSec($.Z1),w=b.getEntries();if(w.slice(eY).forEach(b=>{let w=msToSec(b.startTime),S=msToSec(b.duration);if("navigation"!==f.op||!(_+w<f.startTimestamp))switch(b.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(p=>{_addPerformanceNavigationTiming(f,b,p,_)}),_addPerformanceNavigationTiming(f,b,"secureConnection",_,"TLS/SSL","connectEnd"),_addPerformanceNavigationTiming(f,b,"fetch",_,"cache","domainLookupStart"),_addPerformanceNavigationTiming(f,b,"domainLookup",_,"DNS"),_startChild(f,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:_+msToSec(b.requestStart),endTimestamp:_+msToSec(b.responseEnd)}),_startChild(f,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:_+msToSec(b.responseStart),endTimestamp:_+msToSec(b.responseEnd)}),p=_+msToSec(b.responseStart),g=_+msToSec(b.requestStart);break;case"mark":case"paint":case"measure":{(function(f,p,g,b,_){let w=_+g;_startChild(f,{description:p.name,endTimestamp:w+b,op:p.entryType,origin:"auto.resource.browser.metrics",startTimestamp:w})})(f,b,w,S,_);let p=getVisibilityWatcher(),g=b.startTime<p.firstHiddenTime;"first-paint"===b.name&&g&&(eG&&X.log("[Measurements] Adding FP"),eJ.fp={value:b.startTime,unit:"millisecond"}),"first-contentful-paint"===b.name&&g&&(eG&&X.log("[Measurements] Adding FCP"),eJ.fcp={value:b.startTime,unit:"millisecond"});break}case"resource":{let p=b.name.replace(eZ.location.origin,"");(function(f,p,g,b,_,w){if("xmlhttprequest"===p.initiatorType||"fetch"===p.initiatorType)return;let S={};setResourceEntrySizeData(S,p,"transferSize","http.response_transfer_size"),setResourceEntrySizeData(S,p,"encodedBodySize","http.response_content_length"),setResourceEntrySizeData(S,p,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in p&&(S["resource.render_blocking_status"]=p.renderBlockingStatus);let E=w+b,T=E+_;_startChild(f,{description:g,endTimestamp:T,op:p.initiatorType?`resource.${p.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:E,data:S}
21)})(f,b,p,w,S,_)}}}),eY=Math.max(w.length-1,0),function(f){let p=eZ.navigator;if(!p)return;let g=p.connection;g&&(g.effectiveType&&f.setTag("effectiveConnectionType",g.effectiveType),g.type&&f.setTag("connectionType",g.type),isMeasurementValue(g.rtt)&&(eJ["connection.rtt"]={value:g.rtt,unit:"millisecond"})),isMeasurementValue(p.deviceMemory)&&f.setTag("deviceMemory",`${p.deviceMemory} GB`),isMeasurementValue(p.hardwareConcurrency)&&f.setTag("hardwareConcurrency",String(p.hardwareConcurrency))}(f),"pageload"===f.op){"number"==typeof p&&(eG&&X.log("[Measurements] Adding TTFB"),eJ.ttfb={value:(p-f.startTimestamp)*1e3,unit:"millisecond"},"number"==typeof g&&g<=p&&(eJ["ttfb.requestTime"]={value:(p-g)*1e3,unit:"millisecond"})),["fcp","fp","lcp"].forEach(p=>{if(!eJ[p]||_>=f.startTimestamp)return;let g=eJ[p].value,b=_+msToSec(g),w=Math.abs((b-f.startTimestamp)*1e3),S=w-g;eG&&X.log(`[Measurements] Normalized ${p} from ${g} to ${w} (${S})`),eJ[p].value=w});let b=eJ["mark.fid"];b&&eJ.fid&&(_startChild(f,{description:"first input delay",endTimestamp:b.value+msToSec(eJ.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:b.value}),delete eJ["mark.fid"]),"fcp"in eJ||delete eJ.cls,Object.keys(eJ).forEach(p=>{f.setMeasurement(p,eJ[p].value,eJ[p].unit)}),C&&(eG&&X.log("[Measurements] Adding LCP Data"),C.element&&f.setTag("lcp.element",htmlTreeAsString(C.element)),C.id&&f.setTag("lcp.id",C.id),C.url&&f.setTag("lcp.url",C.url.trim().slice(0,200)),f.setTag("lcp.size",C.size)),O&&O.sources&&(eG&&X.log("[Measurements] Adding CLS Data"),O.sources.forEach((p,g)=>f.setTag(`cls.source.${g+1}`,htmlTreeAsString(p.node))))}C=void 0,O=void 0,eJ={}}(f)}),U}_registerInteractionListener(){let f;let registerInteractionTransaction=()=>{let{idleTimeout:p,finalTimeout:g,heartbeatInterval:b}=this.options,_="ui.action.click",w=getActiveTransaction();if(w&&w.op&&["navigation","pageload"].includes(w.op)){eG&&X.warn(`[Tracing] Did not create ${_} transaction because a pageload or navigation transaction is in progress.`);return}if(f&&(f.setFinishReason("interactionInterrupted"),f.finish(),f=void 0),!this._getCurrentHub){eG&&X.warn(`[Tracing] Did not create ${_} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){eG&&X.warn(`[Tracing] Did not create ${_} transaction because _latestRouteName is missing.`);return}let S=this._getCurrentHub(),{location:E}=eZ,T={name:this._latestRouteName,op:_,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};f=startIdleTransaction(S,T,p,g,!0,{location:E},b)};["click"].forEach(f=>{addEventListener(f,registerInteractionTransaction,{once:!1,capture:!0})})}};function getMetaContent(f){var p;let g=(p=`meta[name=${f}]`,N.document&&N.document.querySelector?N.document.querySelector(p):null);return g?g.getAttribute("content"):void 0}function addOrUpdateIntegration(f,p,g={}){return Array.isArray(p)?addOrUpdateIntegrationInArray(f,p,g):b=>{let _=p(b);if(f.allowExclusionByUser){let p=_.find(p=>p.name===f.name);if(!p)return _}return addOrUpdateIntegrationInArray(f,_,g)}}function addOrUpdateIntegrationInArray(f,p,g){let b=p.find(p=>p.name===f.name);if(b){for(let[f,p]of Object.entries(g))!function setNestedKey(f,p,g){let b=p.match(/([a-z_]+)\.(.*)/i);if(null===b)f[p]=g;else{let p=f[b[1]];setNestedKey(p,b[2],g)}}(b,f,p);return p}return[...p,f]}var e1=g(34155);let e2={"routing.instrumentation":"next-app-router"};var e5=g(11163),e3=g.n(e5);let e4="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,e6={"routing.instrumentation":"next-pages-router"},e8=exports_getClient();function nextRouterInstrumentation(f,p=!0,g=!0){let b=!eb.document.getElementById("__NEXT_DATA__");b?function(f,p=!0,g=!0){let b;let _=eb.location.pathname;p&&(b=f({name:_,op:"pageload",origin:"auto.pageload.nextjs.app_router_instrumentation",tags:e2,startTimestamp:$.Z1?$.Z1/1e3:void 0,metadata:{source:"url"}})),g&&addFetchInstrumentationHandler(p=>{if(void 0!==p.endTimestamp||"GET"!==p.fetchData.method)return;let g=function(f){if(!f[0]||"object"!=typeof f[0]||void 0===f[0].searchParams||!f[1]||"object"!=typeof f[1]||!("headers"in f[1]))return null;try{let p=f[0],g=f[1].headers;if("1"!==g.RSC||"1"===g["Next-Router-Prefetch"])return null;return{targetPathname:p.pathname}}catch(f){return null}}(p.args);if(null===g)return;let w=g.targetPathname,S={...e2,from:_};_=w,b&&b.finish(),f({name:w,op:"navigation",origin:"auto.navigation.nextjs.app_router_instrumentation",tags:S,metadata:{source:"url"}})})}(f,p,g):function(f,p=!0,g=!0){let{route:b,params:_,sentryTrace:w,baggage:S}=function(){let f;let p=eb.document.getElementById("__NEXT_DATA__");if(p&&p.innerHTML)try{f=JSON.parse(p.innerHTML)}catch(f){e4&&X.warn("Could not extract __NEXT_DATA__")}if(!f)return{};let g={},{page:b,query:_,props:w}=f;return g.route=b,g.params=_,w&&w.pageProps&&(g.sentryTrace=w.pageProps._sentryTraceData,g.baggage=w.pageProps._sentryBaggage),g}(),{traceparentData:E,dynamicSamplingContext:T,propagationContext:x}=tracingContextFromHeaders(w,S);hub_getCurrentHub().getScope().setPropagationContext(x),j=b||eb.location.pathname,p&&(A=f({name:j,op:"pageload",origin:"auto.pageload.nextjs.pages_router_instrumentation",tags:e6,startTimestamp:$.Z1?$.Z1/1e3:void 0,..._&&e8&&e8.getOptions().sendDefaultPii&&{data:_},...E,metadata:{source:b?"route":"url",dynamicSamplingContext:E&&!T?{}:T}})),g&&e3().events.on("routeChangeStart",p=>{let g,b;
21let _=p.split(/[\?#]/,1)[0],w=function(f){let p=(eb.__BUILD_MANIFEST||{}).sortedPages;if(p)return p.find(p=>{let g=function(f){let p=f.split("/"),g="";p[p.length-1].match(/^\[\[\.\.\..+\]\]$/)&&(p.pop(),g="(?:/(.+?))?");let b=p.map(f=>f.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${b}${g}(?:/)?$`)}(p);return f.match(g)})}(_);w?(g=w,b="route"):(g=_,b="url");let S={...e6,from:j};j=g,A&&A.finish();let E=f({name:g,op:"navigation",origin:"auto.navigation.nextjs.pages_router_instrumentation",tags:S,metadata:{source:b}});if(E){let f=E.startChild({op:"ui.nextjs.route-change",origin:"auto.ui.nextjs.pages_router_instrumentation",description:"Next.js Route Change"}),finishRouteChangeSpan=()=>{f.finish(),e3().events.off("routeChangeComplete",finishRouteChangeSpan)};e3().events.on("routeChangeComplete",finishRouteChangeSpan)}})}(f,p,g)}let e9=g.g,e7=g.g;var te=g(34155),tt=window;tt.__sentryRewritesTunnelPath__=void 0,tt.SENTRY_RELEASE={id:"63b4e74486bb5eeac0811c5d6d7e2fc3f24737d2"},tt.__sentryBasePath=void 0,tt.__rewriteFramesAssetPrefixPath__="";let tn=te.env.SENTRY_DSN||"https://[email protected]/5949186";!function(f){let p={environment:function(f){let p=f?"production":e1.env.VERCEL_ENV;return p?`vercel-${p}`:void 0}(!0)||"production",...f};!function(f){let p=e9.__sentryRewritesTunnelPath__;if(p&&f.dsn){let g=dsnFromString(f.dsn);if(!g)return;let b=g.host.match(/^o(\d+)\.ingest\.sentry\.io$/);if(b){let _=b[1],w=`${p}?o=${_}&p=${g.projectId}`;f.tunnel=w,e4&&X.info(`Tunneling events to "${w}"`)}else e4&&X.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(p),p._metadata=p._metadata||{},p._metadata.sdk=p._metadata.sdk||{name:"sentry.javascript.nextjs",packages:["nextjs","react"].map(f=>({name:`npm:@sentry/${f}`,version:J})),version:J},function(f){let p=f.integrations||[],g=e7.__rewriteFramesAssetPrefixPath__||"",b=new RewriteFrames({iteratee:f=>{try{let{origin:p}=new URL(f.filename);f.filename=function(f){let p;let g=f[0],b=1;for(;b<f.length;){let _=f[b],w=f[b+1];if(b+=2,("optionalAccess"===_||"optionalCall"===_)&&null==g)return;
21"access"===_||"optionalAccess"===_?(p=g,g=w(g)):("call"===_||"optionalCall"===_)&&(g=w((...f)=>g.call(p,...f)),p=void 0)}return g}([f,"access",f=>f.filename,"optionalAccess",f=>f.replace,"call",f=>f(p,"app://"),"access",f=>f.replace,"call",f=>f(g,"")])}catch(f){}return f.filename&&f.filename.startsWith("app:///_next")&&(f.filename=decodeURI(f.filename)),f.filename&&f.filename.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(f.in_app=!1),f}});if(p=addOrUpdateIntegration(b,p),("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&hasTracingEnabled(f)){let f=new BrowserTracing({tracingOrigins:[...eQ.tracingOrigins,/^(api\/)/],routingInstrumentation:nextRouterInstrumentation});p=addOrUpdateIntegration(f,p,{"options.routingInstrumentation":nextRouterInstrumentation})}f.integrations=p}(p),function(f){let p={_metadata:{},...f};p._metadata.sdk=p._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:J}],version:J},function(f={}){var p;void 0===f.defaultIntegrations&&(f.defaultIntegrations=eB),void 0===f.release&&("string"==typeof __SENTRY_RELEASE__&&(f.release=__SENTRY_RELEASE__),eb.SENTRY_RELEASE&&eb.SENTRY_RELEASE.id&&(f.release=eb.SENTRY_RELEASE.id)),void 0===f.autoSessionTracking&&(f.autoSessionTracking=!0),void 0===f.sendClientReports&&(f.sendClientReports=!0);let g={...f,stackParser:Array.isArray(p=f.stackParser||eD)?createStackParser(...p):p,integrations:function(f){let p;let g=f.defaultIntegrations||[],b=f.integrations;g.forEach(f=>{f.isDefaultInstance=!0}),p=Array.isArray(b)?[...g,...b]:"function"==typeof b?arrayify(b(g)):g;let _=function(f){let p={};return f.forEach(f=>{let{name:g}=f,b=p[g];b&&!b.isDefaultInstance&&f.isDefaultInstance||(p[g]=f)}),Object.keys(p).map(f=>p[f])}(p),w=function(f,p){for(let g=0;g<f.length;g++)if(!0===p(f[g]))return g;return -1}(_,f=>"Debug"===f.name);if(-1!==w){let[f]=_.splice(w,1);_.push(f)}return _}(f),transport:f.transport||(supportsFetch()?makeFetchTransport:makeXHRTransport)};(function(f,p){!0===p.debug&&(Y?X.enable():consoleSandbox(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));let g=hub_getCurrentHub(),b=g.getScope();b.update(p.initialScope);let _=new f(p);g.bindClient(_)})(BrowserClient,g),f.autoSessionTracking&&function(){if(void 0===eb.document){ey&&X.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}let f=hub_getCurrentHub();f.captureSession&&(startSessionOnHub(f),addHistoryInstrumentationHandler(({from:f,to:p})=>{void 0!==f&&f!==p&&startSessionOnHub(hub_getCurrentHub())}))}()}(p)}(p),hub_getCurrentHub().configureScope(f=>{f.setTag("runtime","browser");let filterTransactions=f=>"transaction"===f.type&&"/404"===f.transaction?null:f;filterTransactions.id="NextClient404Filter",f.addEventProcessor(filterTransactions)})}({dsn:tn||"https://[email protected]/5949186",tracesSampleRate:1})},73118:function(f,p,g){"use strict";g.r(p),g.d(p,{default:function(){return _app}});var b=g(85893);g(70415);var _=g(14279),w=g(56870),S=g(67294),E=g(30523);let useSmoothScrollPolyfill=()=>{(0,S.useEffect)(()=>(0,E.polyfill)(),[])};var T=g(59734);let globalFetcher=(f,p)=>fetch(f,p).then(f=>f.json());function SWRFetcherProvider(f){let{children:p}=f;return(0,b.jsx)(T.J$,{value:{fetcher:globalFetcher},children:p})}var x=g(91960),k=g(21876).Buffer,extendStatics=function(f,p){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(f,p){f.__proto__=p}||function(f,p){for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(f[g]=p[g])})(f,p)},__assign=function(){return(__assign=Object.assign||function(f){for(var p,g=1,b=arguments.length;g<b;g++)for(var _ in p=arguments[g])Object.prototype.hasOwnProperty.call(p,_)&&(f[_]=p[_]);return f}).apply(this,arguments)};function __rest(f,p){var g={};for(var b in f)Object.prototype.hasOwnProperty.call(f,b)&&0>p.indexOf(b)&&(g[b]=f[b]);if(null!=f&&"function"==typeof Object.getOwnPropertySymbols)for(var _=0,b=Object.getOwnPropertySymbols(f);_<b.length;_++)0>p.indexOf(b[_])&&Object.prototype.propertyIsEnumerable.call(f,b[_])&&(g[b[_]
21]=f[b[_]]);return g}function __awaiter(f,p,g,b){return new(g||(g=Promise))(function(_,w){function fulfilled(f){try{step(b.next(f))}catch(f){w(f)}}function rejected(f){try{step(b.throw(f))}catch(f){w(f)}}function step(f){var p;f.done?_(f.value):((p=f.value)instanceof g?p:new g(function(f){f(p)})).then(fulfilled,rejected)}step((b=b.apply(f,p||[])).next())})}function __generator(f,p){var g,b,_,w,S={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return w={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(w[Symbol.iterator]=function(){return this}),w;function verb(w){return function(E){return function(w){if(g)throw TypeError("Generator is already executing.");for(;S;)try{if(g=1,b&&(_=2&w[0]?b.return:w[0]?b.throw||((_=b.return)&&_.call(b),0):b.next)&&!(_=_.call(b,w[1])).done)return _;switch(b=0,_&&(w=[2&w[0],_.value]),w[0]){case 0:case 1:_=w;break;case 4:return S.label++,{value:w[1],done:!1};case 5:S.label++,b=w[1],w=[0];continue;case 7:w=S.ops.pop(),S.trys.pop();continue;default:if(!(_=(_=S.trys).length>0&&_[_.length-1])&&(6===w[0]||2===w[0])){S=0;continue}if(3===w[0]&&(!_||w[1]>_[0]&&w[1]<_[3])){S.label=w[1];break}if(6===w[0]&&S.label<_[1]){S.label=_[1],_=w;break}if(_&&S.label<_[2]){S.label=_[2],S.ops.push(w);break}_[2]&&S.ops.pop(),S.trys.pop();continue}w=p.call(f,S)}catch(f){w=[6,f],b=0}finally{g=_=0}if(5&w[0])throw w[1];return{value:w[0]?w[1]:void 0,done:!0}}([w,E])}}}var e=function(f,p){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(f,p){f.__proto__=p}||function(f,p){for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(f[g]=p[g])})(f,p)};function t(f,p){if("function"!=typeof p&&null!==p)throw TypeError("Class extends value "+String(p)+" is not a constructor or null");function r(){this.constructor=f}e(f,p),f.prototype=null===p?Object.create(p):(r.prototype=p.prototype,new r)}var n=function(){return(n=Object.assign||function(f){for(var p,g=1,b=arguments.length;g<b;g++)for(var _ in p=arguments[g])Object.prototype.hasOwnProperty.call(p,_)&&(f[_]=p[_]);return f}).apply(this,arguments)};function r(f,p){var g={};for(var b in f)Object.prototype.hasOwnProperty.call(f,b)&&0>p.indexOf(b)&&(g[b]=f[b]);if(null!=f&&"function"==typeof Object.getOwnPropertySymbols){var _=0;for(b=Object.getOwnPropertySymbols(f);_<b.length;_++)0>p.indexOf(b[_])&&Object.prototype.propertyIsEnumerable.call(f,b[_])&&(g[b[_]]=f[b[_]])}return g}function o(f,p,g,b){return new(g||(g=Promise))(function(_,w){function c(f){try{s(b.next(f))}catch(f){w(f)}}function a(f){try{s(b.throw(f))}catch(f){w(f)}}function s(f){var p;f.done?_(f.value):((p=f.value)instanceof g?p:new g(function(f){f(p)})).then(c,a)}s((b=b.apply(f,p||[])).next())})}function i(f,p){var g,b,_,w,S={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return w={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(w[Symbol.iterator]=function(){return this}),w;function a(w){return function(E){return function(w){if(g)throw TypeError("Generator is already executing.");for(;S;)try{if(g=1,b&&(_=2&w[0]?b.return:w[0]?b.throw||((_=b.return)&&_.call(b),0):b.next)&&!(_=_.call(b,w[1])).done)return _;switch(b=0,_&&(w=[2&w[0],_.value]),w[0]){case 0:case 1:_=w;break;case 4:return S.label++,{value:w[1],done:!1};case 5:S.label++,b=w[1],w=[0];continue;case 7:w=S.ops.pop(),S.trys.pop();continue;default:if(!(_=(_=S.trys).length>0&&_[_.length-1])&&(6===w[0]||2===w[0])){S=0;continue}if(3===w[0]&&(!_||w[1]>_[0]&&w[1]<_[3])){S.label=w[1];break}if(6===w[0]&&S.label<_[1]){S.label=_[1],_=w;break}if(_&&S.label<_[2]){S.label=_[2],S.ops.push(w);break}_[2]&&S.ops.pop(),S.trys.pop();continue}w=p.call(f,S)}catch(f){w=[6,f],b=0}finally{g=_=0}if(5&w[0])throw w[1];return{value:w[0]?w[1]:void 0,done:!0}}([w,E])}}}function c(f,p){var g="function"==typeof Symbol&&f[Symbol.iterator];if(!g)return f;var b,_,w=g.call(f),S=[];try{for(;(void 0===p||p-- >0)&&!(b=w.next()).done;)S.push(b.value)}catch(f){_={error:f}}finally{try{b&&!b.done&&(g=w.return)&&g.call(w)}finally{if(_)throw _.error}}return S}function a(f,p,g){if(g||2==arguments.length)for(var b,_=0,w=p.length;_<w;_++)!b&&_ in p||(b||(b=Array.prototype.slice.call(p,0,_)),b[_]=p[_]);return f.concat(b||Array.prototype.slice.call(p))}var C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==g.g?g.g:"undefined"!=typeof self?self:{};function u(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}
21function l(f,p){return f(p={exports:{}},p.exports),p.exports}var O,R,h=function(f){return f&&f.Math==Math&&f},A=h("object"==typeof globalThis&&globalThis)||h("object"==typeof window&&window)||h("object"==typeof self&&self)||h("object"==typeof C&&C)||function(){return this}()||Function("return this")(),y=function(f){try{return!!f()}catch(f){return!0}},j=!y(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),D=!y(function(){var f=(function(){}).bind();return"function"!=typeof f||f.hasOwnProperty("prototype")}),B=Function.prototype.call,U=D?B.bind(B):function(){return B.apply(B,arguments)},H={}.propertyIsEnumerable,N=Object.getOwnPropertyDescriptor,M={f:N&&!H.call({1:2},1)?function(f){var p=N(this,f);return!!p&&p.enumerable}:H},I=function(f,p){return{enumerable:!(1&f),configurable:!(2&f),writable:!(4&f),value:p}},W=Function,G=W.prototype,X=G.bind,$=G.call,V=D&&X.bind($,$),L=function(f){return f instanceof W?D?V(f):function(){return $.apply(f,arguments)}:void 0},Y=L({}.toString),J=L("".slice),Z=function(f){return J(Y(f),8,-1)},q=Object,Q=L("".split),ee=y(function(){return!q("z").propertyIsEnumerable(0)})?function(f){return"String"==Z(f)?Q(f,""):q(f)}:q,P=function(f){return null==f},et=TypeError,F=function(f){if(P(f))throw et("Can't call method on "+f);return f},K=function(f){return ee(F(f))},en="object"==typeof document&&document.all,er={all:en,IS_HTMLDDA:void 0===en&&void 0!==en},ei=er.all,eo=er.IS_HTMLDDA?function(f){return"function"==typeof f||f===ei}:function(f){return"function"==typeof f},es=er.all,ec=er.IS_HTMLDDA?function(f){return"object"==typeof f?null!==f:eo(f)||f===es}:function(f){return"object"==typeof f?null!==f:eo(f)},z=function(f,p){var g;return arguments.length<2?eo(g=A[f])?g:void 0:A[f]&&A[f][p]},eu=L({}.isPrototypeOf),el=z("navigator","userAgent")||"",ef=A.process,ed=A.Deno,ep=ef&&ef.versions||ed&&ed.version,eh=ep&&ep.v8;eh&&(R=(O=eh.split("."))[0]>0&&O[0]<4?1:+(O[0]+O[1])),!R&&el&&(!(O=el.match(/Edge\/(\d+)/))||O[1]>=74)&&(O=el.match(/Chrome\/(\d+)/))&&(R=+O[1]);var em=R,eg=!!Object.getOwnPropertySymbols&&!y(function(){var f=Symbol();return!String(f)||!(Object(f) instanceof Symbol)||!Symbol.sham&&em&&em<41}),ey=eg&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ev=Object,eb=ey?function(f){return"symbol"==typeof f}:function(f){var p=z("Symbol");return eo(p)&&eu(p.prototype,ev(f))},e_=String,ae=function(f){try{return e_(f)}catch(f){return"Object"}},ew=TypeError,ue=function(f){if(eo(f))return f;throw ew(ae(f)+" is not a function")},le=function(f,p){var g=f[p];return P(g)?void 0:ue(g)},eS=TypeError,eE=Object.defineProperty,he=function(f,p){try{eE(A,f,{value:p,configurable:!0,writable:!0})}catch(g){A[f]=p}return p},eT=A["__core-js_shared__"]||he("__core-js_shared__",{}),ex=l(function(f){(f.exports=function(f,p){return eT[f]||(eT[f]=void 0!==p?p:{})})("versions",[]).push({version:"3.25.4",mode:"global",copyright:"\xa9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.4/LICENSE",source:"https://github.com/zloirock/core-js"})}),ek=Object,me=function(f){return ek(F(f))},eC=L({}.hasOwnProperty),eO=Object.hasOwn||function(f,p){return eC(me(f),p)},eI=0,eR=Math.random(),eA=L(1..toString),_e=function(f){return"Symbol("+(void 0===f?"":f)+")_"+eA(++eI+eR,36)},eF=ex("wks"),eP=A.Symbol,eL=eP&&eP.for,ej=ey?eP:eP&&eP.withoutSetter||_e,Ce=function(f){if(!eO(eF,f)||!eg&&"string"!=typeof eF[f]){var p="Symbol."+f;eg&&eO(eP,f)?eF[f]=eP[f]:eF[f]=ey&&eL?eL(p):ej(p)}return eF[f]},eD=TypeError,eB=Ce("toPrimitive"),Re=function(f,p){if(!ec(f)||eb(f))return f;var g,b=le(f,eB);if(b){if(void 0===p&&(p="default"),!ec(g=U(b,f,p))||eb(g))return g;throw eD("Can't convert object to primitive value")}return void 0===p&&(p="number"),function(f,p){var g,b;if("string"===p&&eo(g=f.toString)&&!ec(b=U(g,f))||eo(g=f.valueOf)&&!ec(b=U(g,f))||"string"!==p&&eo(g=f.toString)&&!ec(b=U(g,f)))return b;throw eS("Can't convert object to primitive value")}(f,p)},We=function(f){var p=Re(f,"string");return eb(p)?p:p+""},eU=A.document,eH=ec(eU)&&ec(eU.createElement),Ge=function(f){return eH?eU.createElement(f):{}},eN=!j&&!y(function(){return 7!=Object.defineProperty(Ge("div"),"a",{get:function(){return 7}}).a}),eM=Object.getOwnPropertyDescriptor,eW={f:j?eM:function(f,p){if(f=K(f),p=We(p),eN)try{return eM(f,p)}catch(f){}if(eO(f,p))return I(!U(M.f,f,p),f[p])}},ez=j&&y(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),eG=String,eZ=TypeError,Ue=function(f){if(ec(f))return f;throw eZ(eG(f)+" is not an object")},eK=TypeError,eX=Object.defineProperty,e$=Object.getOwnPropertyDescriptor,eV={f:j?ez?function(f,p,g){if(Ue(f),p=We(p),Ue(g),"function"==typeof f&&"prototype"===p&&"value"in g&&"writable"in g&&!g.writable){var b=e$(f,p);b&&b.writable&&(f[p]=g.value,g={configurable:"configurable"in g?g.configurable:b.configurable,enumerable:"enumerable"in g?g.enumerable:b.enumerable,writable:!1})}return eX(f,p,g)}:eX:function(f,p,g){if(Ue(f),p=We(p),Ue(g),eN)try{return eX(f,p,g)}catch(f){}if("get"in g||"set"in g)throw eK("Accessors not supported");return"value"in g&&(f[p]=g.value),f}},eY=j?function(f,p,g){return eV.f(f,p,I(1,g))}:function(f,p,g){return f[p]=g,f},eJ=Function.prototype,eq=j&&Object.getOwnPropertyDescriptor,eQ=eO(eJ,"name"),e0={EXISTS:eQ,PROPER:eQ&&"something"===(function(){}).name,CONFIGURABLE:eQ&&(!j||j&&eq(eJ,"name").configurable)},e1=L(Function.toString);eo(eT.inspectSource)||(eT.inspectSource=function(f){return e1(f)});var e2,e5,e3,e4=eT.inspectSource,e6=A.WeakMap,e8=eo(e6)&&/native code/.test(String(e6)),e9=ex("keys"),ct=function(f){return e9[f]||(e9[f]=_e(f))},e7={},te=A.TypeError,tt=A.WeakMap;if(e8||eT.state){var tn=eT.state||(eT.state=new tt),ti=L(tn.get),to=L(tn.has),ts=L(tn.set);e2=function(f,p){if(to(tn,f))throw te("Object already initialized");return p.facade=f,ts(tn,f,p),p},e5=function(f){return ti(tn,f)||{}},e3=function(f){return to(tn,f)}}else{var tc=ct("state");
21e7[tc]=!0,e2=function(f,p){if(eO(f,tc))throw te("Object already initialized");return p.facade=f,eY(f,tc,p),p},e5=function(f){return eO(f,tc)?f[tc]:{}},e3=function(f){return eO(f,tc)}}var tu={set:e2,get:e5,has:e3,enforce:function(f){return e3(f)?e5(f):e2(f,{})},getterFor:function(f){return function(p){var g;if(!ec(p)||(g=e5(p)).type!==f)throw te("Incompatible receiver, "+f+" required");return g}}},tl=l(function(f){var p=e0.CONFIGURABLE,g=tu.enforce,b=tu.get,_=Object.defineProperty,w=j&&!y(function(){return 8!==_(function(){},"length",{value:8}).length}),S=String(String).split("String"),E=f.exports=function(f,b,E){"Symbol("===String(b).slice(0,7)&&(b="["+String(b).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),E&&E.getter&&(b="get "+b),E&&E.setter&&(b="set "+b),(!eO(f,"name")||p&&f.name!==b)&&(j?_(f,"name",{value:b,configurable:!0}):f.name=b),w&&E&&eO(E,"arity")&&f.length!==E.arity&&_(f,"length",{value:E.arity});try{E&&eO(E,"constructor")&&E.constructor?j&&_(f,"prototype",{writable:!1}):f.prototype&&(f.prototype=void 0)}catch(f){}var T=g(f);return eO(T,"source")||(T.source=S.join("string"==typeof b?b:"")),f};Function.prototype.toString=E(function(){return eo(this)&&b(this).source||e4(this)},"toString")}),mt=function(f,p,g,b){b||(b={});var _=b.enumerable,w=void 0!==b.name?b.name:p;if(eo(g)&&tl(g,w,b),b.global)_?f[p]=g:he(p,g);else{try{b.unsafe?f[p]&&(_=!0):delete f[p]}catch(f){}_?f[p]=g:eV.f(f,p,{value:g,enumerable:!1,configurable:!b.nonConfigurable,writable:!b.nonWritable})}return f},tf=Math.ceil,td=Math.floor,tp=Math.trunc||function(f){var p=+f;return(p>0?td:tf)(p)},St=function(f){var p=+f;return p!=p||0===p?0:tp(p)},th=Math.max,tm=Math.min,It=function(f,p){var g=St(f);return g<0?th(g+p,0):tm(g,p)},tg=Math.min,xt=function(f){return f>0?tg(St(f),9007199254740991):0},Tt=function(f){return xt(f.length)},Ct=function(f){return function(p,g,b){var _,w=K(p),S=Tt(w),E=It(b,S);if(f&&g!=g){for(;S>E;)if((_=w[E++])!=_)return!0}else for(;S>E;E++)if((f||E in w)&&w[E]===g)return f||E||0;return!f&&-1}},ty={includes:Ct(!0),indexOf:Ct(!1)},tv=ty.indexOf,tb=L([].push),Wt=function(f,p){var g,b=K(f),_=0,w=[];for(g in b)!eO(e7,g)&&eO(b,g)&&tb(w,g);for(;p.length>_;)eO(b,g=p[_++])&&(~tv(w,g)||tb(w,g));return w},t_=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tw=t_.concat("length","prototype"),tS={f:Object.getOwnPropertyNames||function(f){return Wt(f,tw)}},tE={f:Object.getOwnPropertySymbols},tT=L([].concat),tx=z("Reflect","ownKeys")||function(f){var p=tS.f(Ue(f)),g=tE.f;return g?tT(p,g(f)):p},Ft=function(f,p,g){for(var b=tx(p),_=eV.f,w=eW.f,S=0;S<b.length;S++){var E=b[S];eO(f,E)||g&&eO(g,E)||_(f,E,w(p,E))}},tk=/#|\.prototype\./,Nt=function(f,p){var g=tO[tC(f)];return g==tR||g!=tI&&(eo(p)?y(p):!!p)},tC=Nt.normalize=function(f){return String(f).replace(tk,".").toLowerCase()},tO=Nt.data={},tI=Nt.NATIVE="N",tR=Nt.POLYFILL="P",tA=eW.f,zt=function(f,p){var g,b,_,w,S,E=f.target,T=f.global,x=f.stat;if(g=T?A:x?A[E]||he(E,{}):(A[E]||{}).prototype)for(b in p){if(w=p[b],_=f.dontCallGetSet?(S=tA(g,b))&&S.value:g[b],!Nt(T?b:E+(x?".":"#")+b,f.forced)&&void 0!==_){if(typeof w==typeof _)continue;Ft(w,_)}(f.sham||_&&_.sham)&&eY(w,"sham",!0),mt(g,b,w,f)}},tF={};tF[Ce("toStringTag")]="z";var tP,tL="[object z]"===String(tF),tj=Ce("toStringTag"),tD=Object,tB="Arguments"==Z(function(){return arguments}()),tU=tL?Z:function(f){var p,g,b;return void 0===f?"Undefined":null===f?"Null":"string"==typeof(g=function(f,p){try{return f[p]}catch(f){}}(p=tD(f),tj))?g:tB?Z(p):"Object"==(b=Z(p))&&eo(p.callee)?"Arguments":b},tH=String,rn=function(f){if("Symbol"===tU(f))throw TypeError("Cannot convert a Symbol value to a string");return tH(f)},tN=Ce("match"),tM=TypeError,an=function(f){var p;if(ec(f)&&(void 0!==(p=f[tN])?!!p:"RegExp"==Z(f)))throw tM("The method doesn't accept regular expressions");return f},tW=Ce("match"),un=function(f){var p=/./;try{"/./"[f](p)}catch(g){try{return p[tW]=!1,"/./"[f](p)}catch(f){}}return!1},tz=eW.f,tG=L("".startsWith),tZ=L("".slice),tK=Math.min,tX=un("startsWith");zt({target:"String",proto:!0,forced:!!(tX||!(tP=tz(String.prototype,"startsWith"))||tP.writable)&&!tX},{startsWith:function(f){var p=rn(F(this));an(f);var g=xt(tK(arguments.length>1?arguments[1]:void 0,p.length)),b=rn(f);return tG?tG(p,b,g):tZ(p,g,g+b.length)===b}});var vn=function(f,p){return L(A[f].prototype[p])};vn("String","startsWith");var t$=Array.isArray||function(f){return"Array"==Z(f)},tV=TypeError,gn=function(f){if(f>9007199254740991)throw tV("Maximum allowed index exceeded");return f},wn=function(f,p,g){var b=We(p);b in f?eV.f(f,b,I(0,g)):f[b]=g},Sn=function(){},tY=[],tJ=z("Reflect","construct"),tq=/^\s*(?:class|function)\b/,tQ=L(tq.exec),t0=!tq.exec(Sn),Tn=function(f){if(!eo(f))return!1;try{return tJ(Sn,tY,f),!0}catch(f){return!1}},Cn=function(f){if(!eo(f))return!1;switch(tU(f)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return t0||!!tQ(tq,e4(f))}catch(f){return!0}};Cn.sham=!0;var t1=!tJ||y(function(){var f;return Tn(Tn.call)||!Tn(Object)||!Tn(function(){f=!0})||f})?Cn:Tn,t2=Ce("species"),t5=Array,Zn=function(f,p){var g;return new(t$(f)&&(t1(g=f.constructor)&&(g===t5||t$(g.prototype))||ec(g)&&null===(g=g[t2]))&&(g=void 0),void 0===g?t5:g)(0===p?0:p)},t3=Ce("species"),t4=Ce("isConcatSpreadable"),t6=em>=51||!y(function(){var f=[];return f[t4]=!1,f.concat()[0]!==f}),t8=em>=51||!y(function(){var f=[];return(f.constructor={})[t3]=function(){return{foo:1}
21},1!==f.concat(Boolean).foo}),Xn=function(f){if(!ec(f))return!1;var p=f[t4];return void 0!==p?!!p:t$(f)};zt({target:"Array",proto:!0,arity:1,forced:!t6||!t8},{concat:function(f){var p,g,b,_,w,S=me(this),E=Zn(S,0),T=0;for(p=-1,b=arguments.length;p<b;p++)if(Xn(w=-1===p?S:arguments[p]))for(gn(T+(_=Tt(w))),g=0;g<_;g++,T++)g in w&&wn(E,T,w[g]);else gn(T+1),wn(E,T++,w);return E.length=T,E}}),tL||mt(Object.prototype,"toString",tL?({}).toString:function(){return"[object "+tU(this)+"]"},{unsafe:!0});var t9,t7=Object.keys||function(f){return Wt(f,t_)},ne={f:j&&!ez?Object.defineProperties:function(f,p){Ue(f);for(var g,b=K(p),_=t7(p),w=_.length,S=0;w>S;)eV.f(f,g=_[S++],b[g]);return f}},nt=z("document","documentElement"),nn=ct("IE_PROTO"),Jn=function(){},Vn=function(f){return"<script>"+f+"</script>"},zn=function(f){f.write(Vn("")),f.close();var p=f.parentWindow.Object;return f=null,p},Mn=function(){try{t9=new ActiveXObject("htmlfile")}catch(f){}Mn="undefined"!=typeof document?document.domain&&t9?zn(t9):((p=Ge("iframe")).style.display="none",nt.appendChild(p),p.src=String("javascript:"),(f=p.contentWindow.document).open(),f.write(Vn("document.F=Object")),f.close(),f.F):zn(t9);for(var f,p,g=t_.length;g--;)delete Mn.prototype[t_[g]];return Mn()};e7[nn]=!0;var nr=Object.create||function(f,p){var g;return null!==f?(Jn.prototype=Ue(f),g=new Jn,Jn.prototype=null,g[nn]=f):g=Mn(),void 0===p?g:ne.f(g,p)},no=Array,ns=Math.max,nc=tS.f,nu="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],tr=function(f){try{return nc(f)}catch(f){return function(f,p,g){for(var b=Tt(f),_=It(void 0,b),w=It(void 0===g?b:g,b),S=no(ns(w-_,0)),E=0;_<w;_++,E++)wn(S,E,f[_]);return S.length=E,S}(nu)}},nl={f:function(f){return nu&&"Window"==Z(f)?tr(f):nc(K(f))}},nf={f:Ce},nd=eV.f,cr=function(f){var p=A.Symbol||(A.Symbol={});eO(p,f)||nd(p,f,{value:nf.f(f)})},ar=function(){var f=z("Symbol"),p=f&&f.prototype,g=p&&p.valueOf,b=Ce("toPrimitive");p&&!p[b]&&mt(p,b,function(f){return U(g,this)},{arity:1})},np=eV.f,nh=Ce("toStringTag"),lr=function(f,p,g){f&&!g&&(f=f.prototype),f&&!eO(f,nh)&&np(f,nh,{configurable:!0,value:p})},nm=L(L.bind),dr=function(f,p){return ue(f),void 0===p?f:D?nm(f,p):function(){return f.apply(p,arguments)}},ng=L([].push),pr=function(f){var p=1==f,g=2==f,b=3==f,_=4==f,w=6==f,S=7==f,E=5==f||w;return function(T,x,k,C){for(var O,R,A=me(T),j=ee(A),D=dr(x,k),B=Tt(j),U=0,H=C||Zn,N=p?H(T,B):g||S?H(T,0):void 0;B>U;U++)if((E||U in j)&&(R=D(O=j[U],U,A),f)){if(p)N[U]=R;else if(R)switch(f){case 3:return!0;case 5:return O;case 6:return U;case 2:ng(N,O)}else switch(f){case 4:return!1;case 7:ng(N,O)}}return w?-1:b||_?_:N}},ny={forEach:pr(0),map:pr(1),filter:pr(2),some:pr(3),every:pr(4),find:pr(5),findIndex:pr(6),filterReject:pr(7)}.forEach,nv=ct("hidden"),nb=tu.set,n_=tu.getterFor("Symbol"),nw=Object.prototype,nS=A.Symbol,nE=nS&&nS.prototype,nT=A.TypeError,nx=A.QObject,nk=eW.f,nC=eV.f,nO=nl.f,nI=M.f,nR=L([].push),nA=ex("symbols"),nF=ex("op-symbols"),nP=ex("wks"),nL=!nx||!nx.prototype||!nx.prototype.findChild,nj=j&&y(function(){return 7!=nr(nC({},"a",{get:function(){return nC(this,"a",{value:7}).a}})).a})?function(f,p,g){var b=nk(nw,p);b&&delete nw[p],nC(f,p,g),b&&f!==nw&&nC(nw,p,b)}:nC,Er=function(f,p){var g=nA[f]=nr(nE);return nb(g,{type:"Symbol",tag:f,description:p}),j||(g.description=p),g},Gr=function(f,p,g){f===nw&&Gr(nF,p,g),Ue(f);var b=We(p);return Ue(g),eO(nA,b)?(g.enumerable?(eO(f,nv)&&f[nv][b]&&(f[nv][b]=!1),g=nr(g,{enumerable:I(0,!1)})):(eO(f,nv)||nC(f,nv,I(1,{})),f[nv][b]=!0),nj(f,b,g)):nC(f,b,g)},Ar=function(f,p){Ue(f);var g=K(p);return ny(t7(g).concat(Kr(g)),function(p){j&&!U(Pr,g,p)||Gr(f,p,g[p])}),f},Pr=function(f){var p=We(f),g=U(nI,this,p);return!(this===nw&&eO(nA,p)&&!eO(nF,p))&&(!(g||!eO(this,p)||!eO(nA,p)||eO(this,nv)&&this[nv][p])||g)},Xr=function(f,p){var g=K(f),b=We(p);if(g!==nw||!eO(nA,b)||eO(nF,b)){var _=nk(g,b);return!_||!eO(nA,b)||eO(g,nv)&&g[nv][b]||(_.enumerable=!0),_}},Fr=function(f){var p=nO(K(f)),g=[];return ny(p,function(f){eO(nA,f)||eO(e7,f)||nR(g,f)}),g},Kr=function(f){var p=f===nw,g=nO(p?nF:K(f)),b=[];return ny(g,function(f){eO(nA,f)&&(!p||eO(nw,f))&&nR(b,nA[f])}),b};eg||(mt(nE=(nS=function(){if(eu(nE,this))throw nT("Symbol is not a constructor");var f=arguments.length&&void 0!==arguments[0]?rn(arguments[0]):void 0,p=_e(f),n=function(f){this===nw&&U(n,nF,f),eO(this,nv)&&eO(this[nv],p)&&(this[nv][p]=!1),nj(this,p,I(1,f))};return j&&nL&&nj(nw,p,{configurable:!0,set:n}),Er(p,f)}).prototype,"toString",function(){return n_(this).tag}),mt(nS,"withoutSetter",function(f){return Er(_e(f),f)}),M.f=Pr,eV.f=Gr,ne.f=Ar,eW.f=Xr,tS.f=nl.f=Fr,tE.f=Kr,nf.f=function(f){return Er(Ce(f),f)},j&&(nC(nE,"description",{configurable:!0,get:function(){return n_(this).description}}),mt(nw,"propertyIsEnumerable",Pr,{unsafe:!0}))),zt({global:!0,constructor:!0,wrap:!0,forced:!eg,sham:!eg},{Symbol:nS}),ny(t7(nP),function(f){cr(f)}),zt({target:"Symbol",stat:!0,forced:!eg},{useSetter:function(){nL=!0},useSimple:function(){nL=!1}}),zt({target:"Object",stat:!0,forced:!eg,sham:!j},{create:function(f,p){return void 0===p?nr(f):Ar(nr(f),p)},defineProperty:Gr,defineProperties:Ar,getOwnPropertyDescriptor:Xr}),zt({target:"Object",stat:!0,forced:!eg},{getOwnPropertyNames:Fr}),ar(),lr(nS,"Symbol"),e7[nv]=!0;
21var nD=eg&&!!Symbol.for&&!!Symbol.keyFor,nB=ex("string-to-symbol-registry"),nU=ex("symbol-to-string-registry");zt({target:"Symbol",stat:!0,forced:!nD},{for:function(f){var p=rn(f);if(eO(nB,p))return nB[p];var g=z("Symbol")(p);return nB[p]=g,nU[g]=p,g}});var nH=ex("symbol-to-string-registry");zt({target:"Symbol",stat:!0,forced:!nD},{keyFor:function(f){if(!eb(f))throw TypeError(ae(f)+" is not a symbol");if(eO(nH,f))return nH[f]}});var nN=Function.prototype,nM=nN.apply,nW=nN.call,nz="object"==typeof Reflect&&Reflect.apply||(D?nW.bind(nM):function(){return nW.apply(nM,arguments)}),nG=L([].slice),nZ=z("JSON","stringify"),nK=L(/./.exec),nX=L("".charAt),n$=L("".charCodeAt),nV=L("".replace),nY=L(1..toString),nJ=/[\uD800-\uDFFF]/g,nq=/^[\uD800-\uDBFF]$/,nQ=/^[\uDC00-\uDFFF]$/,n0=!eg||y(function(){var f=z("Symbol")();return"[null]"!=nZ([f])||"{}"!=nZ({a:f})||"{}"!=nZ(Object(f))}),n1=y(function(){return'"\udf06\ud834"'!==nZ("\udf06\ud834")||'"\udead"'!==nZ("\udead")}),ao=function(f,p){var g=nG(arguments),b=p;if((ec(p)||void 0!==f)&&!eb(f))return t$(p)||(p=function(f,p){if(eo(b)&&(p=U(b,this,f,p)),!eb(p))return p}),g[1]=p,nz(nZ,null,g)},so=function(f,p,g){var b=nX(g,p-1),_=nX(g,p+1);return nK(nq,f)&&!nK(nQ,_)||nK(nQ,f)&&!nK(nq,b)?"\\u"+nY(n$(f,0),16):f};nZ&&zt({target:"JSON",stat:!0,arity:3,forced:n0||n1},{stringify:function(f,p,g){var b=nG(arguments),_=nz(n0?ao:nZ,null,b);return n1&&"string"==typeof _?nV(_,nJ,so):_}}),zt({target:"Object",stat:!0,forced:!eg||y(function(){tE.f(1)})},{getOwnPropertySymbols:function(f){var p=tE.f;return p?p(me(f)):[]}}),cr("asyncIterator");var n2=eV.f,n5=A.Symbol,n3=n5&&n5.prototype;if(j&&eo(n5)&&(!("description"in n3)||void 0!==n5().description)){var n4={},yo=function(){var f=arguments.length<1||void 0===arguments[0]?void 0:rn(arguments[0]),p=eu(n3,this)?new n5(f):void 0===f?n5():n5(f);return""===f&&(n4[p]=!0),p};Ft(yo,n5),yo.prototype=n3,n3.constructor=yo;var n6="Symbol(test)"==String(n5("test")),n8=L(n3.valueOf),n9=L(n3.toString),n7=/^Symbol\((.*)\)[^)]+$/,re=L("".replace),rt=L("".slice);n2(n3,"description",{configurable:!0,get:function(){var f=n8(this);if(eO(n4,f))return"";var p=n9(f),g=n6?rt(p,7,-1):re(p,n7,"$1");return""===g?void 0:g}}),zt({global:!0,constructor:!0,forced:!0},{Symbol:yo})}cr("hasInstance"),cr("isConcatSpreadable"),cr("iterator"),cr("match"),cr("matchAll"),cr("replace"),cr("search"),cr("species"),cr("split"),cr("toPrimitive"),ar(),cr("toStringTag"),lr(z("Symbol"),"Symbol"),cr("unscopables"),lr(A.JSON,"JSON",!0),lr(Math,"Math",!0),zt({global:!0},{Reflect:{}}),lr(A.Reflect,"Reflect",!0),A.Symbol;var rr,ro,rs,rc=L("".charAt),ru=L("".charCodeAt),rl=L("".slice),Co=function(f){return function(p,g){var b,_,w=rn(F(p)),S=St(g),E=w.length;return S<0||S>=E?f?"":void 0:(b=ru(w,S))<55296||b>56319||S+1===E||(_=ru(w,S+1))<56320||_>57343?f?rc(w,S):b:f?rl(w,S,S+2):_-56320+(b-55296<<10)+65536}},rf={codeAt:Co(!1),charAt:Co(!0)},rd=!y(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),rp=ct("IE_PROTO"),rh=Object,rm=rh.prototype,rg=rd?rh.getPrototypeOf:function(f){var p=me(f);if(eO(p,rp))return p[rp];var g=p.constructor;return eo(g)&&p instanceof g?g.prototype:p instanceof rh?rm:null},ry=Ce("iterator"),rv=!1;[].keys&&("next"in(rs=[].keys())?(ro=rg(rg(rs)))!==Object.prototype&&(rr=ro):rv=!0),(!ec(rr)||y(function(){var f={};return rr[ry].call(f)!==f}))&&(rr={}),eo(rr[ry])||mt(rr,ry,function(){return this});var rb={IteratorPrototype:rr,BUGGY_SAFARI_ITERATORS:rv},r_={},rw=rb.IteratorPrototype,No=function(){return this},rS=String,rE=TypeError,rT=Object.setPrototypeOf||("__proto__"in{}?function(){var f,p=!1,g={};try{(f=L(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(g,[]),p=g instanceof Array}catch(f){}return function(g,b){return Ue(g),function(f){if(!("object"==typeof f||eo(f)))throw rE("Can't set "+rS(f)+" as a prototype")}(b),p?f(g,b):g.__proto__=b,g}}():void 0),rx=e0.PROPER,rk=e0.CONFIGURABLE,rC=rb.IteratorPrototype,rO=rb.BUGGY_SAFARI_ITERATORS,rI=Ce("iterator"),Bo=function(){return this},Qo=function(f,p,g,b,_,w,S){E=p+" Iterator",g.prototype=nr(rw,{next:I(1,b)}
21),lr(g,E,!1),r_[E]=No;var E,T,x,k,l=function(f){if(f===_&&A)return A;if(!rO&&f in O)return O[f];switch(f){case"keys":case"values":case"entries":return function(){return new g(this,f)}}return function(){return new g(this)}},C=!1,O=f.prototype,R=O[rI]||O["@@iterator"]||_&&O[_],A=!rO&&R||l(_),j="Array"==p&&O.entries||R;if(j&&(T=rg(j.call(new f)))!==Object.prototype&&T.next&&(rg(T)!==rC&&(rT?rT(T,rC):eo(T[rI])||mt(T,rI,Bo)),lr(T,p+" Iterator",!0)),rx&&"values"==_&&R&&"values"!==R.name&&(rk?eY(O,"name","values"):(C=!0,A=function(){return U(R,this)})),_){if(x={values:l("values"),keys:w?A:l("keys"),entries:l("entries")},S)for(k in x)!rO&&!C&&k in O||mt(O,k,x[k]);else zt({target:p,proto:!0,forced:rO||C},x)}return O[rI]!==A&&mt(O,rI,A,{name:_}),r_[p]=A,x},qo=function(f,p){return{value:f,done:p}},rR=rf.charAt,rA=tu.set,rF=tu.getterFor("String Iterator");Qo(String,"String",function(f){rA(this,{type:"String Iterator",string:rn(f),index:0})},function(){var f,p=rF(this),g=p.string,b=p.index;return b>=g.length?qo(void 0,!0):(f=rR(g,b),p.index+=f.length,qo(f,!1))});var ni=function(f,p,g){var b,_;Ue(f);try{if(!(b=le(f,"return"))){if("throw"===p)throw g;return g}b=U(b,f)}catch(f){_=!0,b=f}if("throw"===p)throw g;if(_)throw b;return Ue(b),g},ri=function(f,p,g,b){try{return b?p(Ue(g)[0],g[1]):p(g)}catch(p){ni(f,"throw",p)}},rP=Ce("iterator"),rL=Array.prototype,ci=function(f){return void 0!==f&&(r_.Array===f||rL[rP]===f)},rj=Ce("iterator"),si=function(f){if(!P(f))return le(f,rj)||le(f,"@@iterator")||r_[tU(f)]},rD=TypeError,li=function(f,p){var g=arguments.length<2?si(f):p;if(ue(g))return Ue(U(g,f));throw rD(ae(f)+" is not iterable")},rB=Array,rU=Ce("iterator"),rH=!1;try{var rN=0,rM={next:function(){return{done:!!rN++}},return:function(){rH=!0}};rM[rU]=function(){return this},Array.from(rM,function(){throw 2})}catch(f){}var vi=function(f,p){if(!p&&!rH)return!1;var g=!1;try{var b={};b[rU]=function(){return{next:function(){return{done:g=!0}}}},f(b)}catch(f){}return g};zt({target:"Array",stat:!0,forced:!vi(function(f){Array.from(f)})},{from:function(f){var p=me(f),g=t1(this),b=arguments.length,_=b>1?arguments[1]:void 0,w=void 0!==_;w&&(_=dr(_,b>2?arguments[2]:void 0));var S,E,T,x,k,C,O=si(p),R=0;if(!O||this===rB&&ci(O))for(S=Tt(p),E=g?new this(S):rB(S);S>R;R++)C=w?_(p[R],R):p[R],wn(E,R,C);else for(k=(x=li(p,O)).next,E=g?new this:[];!(T=U(k,x)).done;R++)C=w?ri(x,_,[T.value,R],!0):T.value,wn(E,R,C);return E.length=R,E}}),A.Array.from;var rW,rz,rG,rZ="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,rK=eV.f,rX=tu.enforce,r$=tu.get,rV=A.Int8Array,rY=rV&&rV.prototype,rJ=A.Uint8ClampedArray,rq=rJ&&rJ.prototype,rQ=rV&&rg(rV),r0=rY&&rg(rY),r1=Object.prototype,r2=A.TypeError,r5=Ce("toStringTag"),r3=_e("TYPED_ARRAY_TAG"),r4=rZ&&!!rT&&"Opera"!==tU(A.opera),r6=!1,r8={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},r9={BigInt64Array:8,BigUint64Array:8},Fi=function(f){var p=rg(f);if(ec(p)){var g=r$(p);return g&&eO(g,"TypedArrayConstructor")?g.TypedArrayConstructor:Fi(p)}},Ki=function(f){if(!ec(f))return!1;var p=tU(f);return eO(r8,p)||eO(r9,p)};for(rW in r8)(rG=(rz=A[rW])&&rz.prototype)?rX(rG).TypedArrayConstructor=rz:r4=!1;for(rW in r9)(rG=(rz=A[rW])&&rz.prototype)&&(rX(rG).TypedArrayConstructor=rz);if((!r4||!eo(rQ)||rQ===Function.prototype)&&(rQ=function(){throw r2("Incorrect invocation")},r4))for(rW in r8)A[rW]&&rT(A[rW],rQ);if((!r4||!r0||r0===r1)&&(r0=rQ.prototype,r4))for(rW in r8)A[rW]&&rT(A[rW].prototype,r0);if(r4&&rg(rq)!==r0&&rT(rq,r0),j&&!eO(r0,r5))for(rW in r6=!0,rK(r0,r5,{get:function(){return ec(this)?this[r3]:void 0}}),r8)A[rW]&&eY(A[rW],r3,rW);var r7={NATIVE_ARRAY_BUFFER_VIEWS:r4,TYPED_ARRAY_TAG:r6&&r3,aTypedArray:function(f){if(Ki(f))return f;throw r2("Target is not a typed array")},aTypedArrayConstructor:function(f){if(eo(f)&&(!rT||eu(rQ,f)))return f;throw r2(ae(f)+" is not a typed array constructor")},exportTypedArrayMethod:function(f,p,g,b){if(j){if(g)for(var _ in r8){var w=A[_];if(w&&eO(w.prototype,f))try{delete w.prototype[f]}catch(g){try{w.prototype[f]=p}catch(f){}}}r0[f]&&!g||mt(r0,f,g?p:r4&&rY[f]||p,b)}},exportTypedArrayStaticMethod:function(f,p,g){var b,_;if(j){if(rT){if(g){for(b in r8)if((_=A[b])&&eO(_,f))try{delete _[f]}
21catch(f){}}if(rQ[f]&&!g)return;try{return mt(rQ,f,g?p:r4&&rQ[f]||p)}catch(f){}}for(b in r8)(_=A[b])&&(!_[f]||g)&&mt(_,f,p)}},getTypedArrayConstructor:Fi,isView:function(f){if(!ec(f))return!1;var p=tU(f);return"DataView"===p||eO(r8,p)||eO(r9,p)},isTypedArray:Ki,TypedArray:rQ,TypedArrayPrototype:r0},ie=TypeError,it=Ce("species"),Hi=function(f,p){var g,b=Ue(f).constructor;return void 0===b||P(g=Ue(b)[it])?p:function(f){if(t1(f))return f;throw ie(ae(f)+" is not a constructor")}(g)},ir=r7.aTypedArrayConstructor,ii=r7.getTypedArrayConstructor,io=r7.aTypedArray;(0,r7.exportTypedArrayMethod)("slice",function(f,p){for(var g=nG(io(this),f,p),b=ir(Hi(this,ii(this))),_=0,w=g.length,S=new b(w);w>_;)S[_]=g[_++];return S},y(function(){new Int8Array(1).slice()}));var is=eV.f,ic=Ce("unscopables"),iu=Array.prototype;null==iu[ic]&&is(iu,ic,{configurable:!0,value:nr(null)});var Qi=function(f){iu[ic][f]=!0},il=ty.includes;zt({target:"Array",proto:!0,forced:y(function(){return![,].includes()})},{includes:function(f){return il(this,f,arguments.length>1?arguments[1]:void 0)}}),Qi("includes"),vn("Array","includes");var id=L("".indexOf);zt({target:"String",proto:!0,forced:!un("includes")},{includes:function(f){return!!~id(rn(F(this)),rn(an(f)),arguments.length>1?arguments[1]:void 0)}}),vn("String","includes");var ip=eV.f,ih=tu.set,im=tu.getterFor("Array Iterator");Qo(Array,"Array",function(f,p){ih(this,{type:"Array Iterator",target:K(f),index:0,kind:p})},function(){var f=im(this),p=f.target,g=f.kind,b=f.index++;return!p||b>=p.length?(f.target=void 0,qo(void 0,!0)):qo("keys"==g?b:"values"==g?p[b]:[b,p[b]],!1)},"values");var ig=r_.Arguments=r_.Array;if(Qi("keys"),Qi("values"),Qi("entries"),j&&"values"!==ig.name)try{ip(ig,"name",{value:"values"})}catch(f){}var iy=y(function(){if("function"==typeof ArrayBuffer){var f=new ArrayBuffer(8);Object.isExtensible(f)&&Object.defineProperty(f,"a",{value:8})}}),iv=Object.isExtensible,ib=y(function(){iv(1)})||iy?function(f){return!!ec(f)&&(!iy||"ArrayBuffer"!=Z(f))&&(!iv||iv(f))}:iv,i_=!y(function(){return Object.isExtensible(Object.preventExtensions({}))}),iw=l(function(f){var p=eV.f,g=!1,b=_e("meta"),_=0,i=function(f){p(f,b,{value:{objectID:"O"+_++,weakData:{}}})},w=f.exports={enable:function(){w.enable=function(){},g=!0;var f=tS.f,p=L([].splice),_={};_[b]=1,f(_).length&&(tS.f=function(g){for(var _=f(g),w=0,S=_.length;w<S;w++)if(_[w]===b){p(_,w,1);break}return _},zt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:nl.f}))},fastKey:function(f,p){if(!ec(f))return"symbol"==typeof f?f:("string"==typeof f?"S":"P")+f;if(!eO(f,b)){if(!ib(f))return"F";if(!p)return"E";i(f)}return f[b].objectID},getWeakData:function(f,p){if(!eO(f,b)){if(!ib(f))return!0;if(!p)return!1;i(f)}return f[b].weakData},onFreeze:function(f){return i_&&g&&ib(f)&&!eO(f,b)&&i(f),f}};e7[b]=!0});iw.enable,iw.fastKey,iw.getWeakData,iw.onFreeze;var iS=TypeError,fc=function(f,p){this.stopped=f,this.result=p},iE=fc.prototype,hc=function(f,p,g){var b,_,w,S,E,T,x,k=g&&g.that,C=!(!g||!g.AS_ENTRIES),O=!(!g||!g.IS_RECORD),R=!(!g||!g.IS_ITERATOR),A=!(!g||!g.INTERRUPTED),j=dr(p,k),v=function(f){return b&&ni(b,"normal",f),new fc(!0,f)},m=function(f){return C?(Ue(f),A?j(f[0],f[1],v):j(f[0],f[1])):A?j(f,v):j(f)};if(O)b=f.iterator;else if(R)b=f;else{if(!(_=si(f)))throw iS(ae(f)+" is not iterable");if(ci(_)){for(w=0,S=Tt(f);S>w;w++)if((E=m(f[w]))&&eu(iE,E))return E;return new fc(!1)}b=li(f,_)}for(T=O?f.next:b.next;!(x=U(T,b)).done;){try{E=m(x.value)}catch(f){ni(b,"throw",f)}if("object"==typeof E&&E&&eu(iE,E))return E}return new fc(!1)},iT=TypeError,yc=function(f,p){if(eu(p,f))return f;throw iT("Incorrect invocation")},vc=function(f,p,g){for(var b in p)mt(f,b,p[b],g);return f},ix=Ce("species"),ik=eV.f,iC=iw.fastKey,iO=tu.set,iI=tu.getterFor;function _c(f){var p=this.constructor;return this.then(function(g){return p.resolve(f()).then(function(){return g})},function(g){return p.resolve(f()).then(function(){return p.reject(g)})})}function Ic(f){return new this(function(p,g){if(!f||void 0===f.length)return g(TypeError(typeof f+" "+f+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var b=Array.prototype.slice.call(f);if(0===b.length)return p([]);for(var _=b.length,w=0;w<b.length;w++)!function i(f,g){if(g&&("object"==typeof g||"function"==typeof g)){var w=g.then;if("function"==typeof w)return void w.call(g,function(p){i(f,p)},function(g){b[f]={status:"rejected",reason:g},0==--_&&p(b)})}b[f]={status:"fulfilled",value:g},0==--_&&p(b)}(w,b[w])})}!function(f,p,g){var b=-1!==f.indexOf("Map"),_=-1!==f.indexOf("Weak"),w=b?"set":"add",S=A[f],E=S&&S.prototype,T=S,x={},l=function(f){var p=L(E[f]);mt(E,f,"add"==f?function(f){return p(this,0===f?0:f),this}:"delete"==f?function(f){return!(_&&!ec(f))&&p(this,0===f?0:f)}:"get"==f?function(f){return _&&!ec(f)?void 0:p(this,0===f?0:f)}:"has"==f?function(f){return!(_&&!ec(f))&&p(this,0===f?0:f)}:function(f,g){return p(this,0===f?0:f,g),this})};
21if(Nt(f,!eo(S)||!(_||E.forEach&&!y(function(){(new S).entries().next()}))))T=g.getConstructor(p,f,b,w),iw.enable();else if(Nt(f,!0)){var k=new T,C=k[w](_?{}:-0,1)!=k,O=y(function(){k.has(1)}),R=vi(function(f){new S(f)}),j=!_&&y(function(){for(var f=new S,p=5;p--;)f[w](p,p);return!f.has(-0)});R||((T=p(function(f,p){yc(f,E);var g,_,x,k,C=(g=new S,_=T,rT&&eo(x=f.constructor)&&x!==_&&ec(k=x.prototype)&&k!==_.prototype&&rT(g,k),g);return P(p)||hc(p,C[w],{that:C,AS_ENTRIES:b}),C})).prototype=E,E.constructor=T),(O||j)&&(l("delete"),l("has"),b&&l("get")),(j||C)&&l(w),_&&E.clear&&delete E.clear}x[f]=T,zt({global:!0,constructor:!0,forced:T!=S},x),lr(T,f),_||g.setStrong(T,f,b)}("Set",function(f){return function(){return f(this,arguments.length?arguments[0]:void 0)}},{getConstructor:function(f,p,g,b){var _=f(function(f,_){yc(f,w),iO(f,{type:p,index:nr(null),first:void 0,last:void 0,size:0}),j||(f.size=0),P(_)||hc(_,f[b],{that:f,AS_ENTRIES:g})}),w=_.prototype,S=iI(p),a=function(f,p,g){var b,_,w=S(f),E=s(f,p);return E?E.value=g:(w.last=E={index:_=iC(p,!0),key:p,value:g,previous:b=w.last,next:void 0,removed:!1},w.first||(w.first=E),b&&(b.next=E),j?w.size++:f.size++,"F"!==_&&(w.index[_]=E)),f},s=function(f,p){var g,b=S(f),_=iC(p);if("F"!==_)return b.index[_];for(g=b.first;g;g=g.next)if(g.key==p)return g};return vc(w,{clear:function(){for(var f=S(this),p=f.index,g=f.first;g;)g.removed=!0,g.previous&&(g.previous=g.previous.next=void 0),delete p[g.index],g=g.next;f.first=f.last=void 0,j?f.size=0:this.size=0},delete:function(f){var p=S(this),g=s(this,f);if(g){var b=g.next,_=g.previous;delete p.index[g.index],g.removed=!0,_&&(_.next=b),b&&(b.previous=_),p.first==g&&(p.first=b),p.last==g&&(p.last=_),j?p.size--:this.size--}return!!g},forEach:function(f){for(var p,g=S(this),b=dr(f,arguments.length>1?arguments[1]:void 0);p=p?p.next:g.first;)for(b(p.value,p.key,this);p&&p.removed;)p=p.previous},has:function(f){return!!s(this,f)}}),vc(w,g?{get:function(f){var p=s(this,f);return p&&p.value},set:function(f,p){return a(this,0===f?0:f,p)}}:{add:function(f){return a(this,f=0===f?0:f,f)}}),j&&ik(w,"size",{get:function(){return S(this).size}}),_},setStrong:function(f,p,g){var b,_,w=p+" Iterator",S=iI(p),E=iI(w);Qo(f,p,function(f,p){iO(this,{type:w,target:f,state:S(f),kind:p,last:void 0})},function(){for(var f=E(this),p=f.kind,g=f.last;g&&g.removed;)g=g.previous;return f.target&&(f.last=g=g?g.next:f.state.first)?qo("keys"==p?g.key:"values"==p?g.value:[g.key,g.value],!1):(f.target=void 0,qo(void 0,!0))},g?"entries":"values",!g,!0),b=z(p),_=eV.f,j&&b&&!b[ix]&&_(b,ix,{configurable:!0,get:function(){return this}})}}),A.Set;var iR=setTimeout;function xc(f){return!!(f&&void 0!==f.length)}function Tc(){}function Cc(f){if(!(this instanceof Cc))throw TypeError("Promises must be constructed via new");if("function"!=typeof f)throw TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],Ec(f,this)}function jc(f,p){for(;3===f._state;)f=f._value;0!==f._state?(f._handled=!0,Cc._immediateFn(function(){var g,b=1===f._state?p.onFulfilled:p.onRejected;if(null!==b){try{g=b(f._value)}catch(f){return void Rc(p.promise,f)}Lc(p.promise,g)}else(1===f._state?Lc:Rc)(p.promise,f._value)})):f._deferreds.push(p)}function Lc(f,p){try{if(p===f)throw TypeError("A promise cannot be resolved with itself.");if(p&&("object"==typeof p||"function"==typeof p)){var g=p.then;if(p instanceof Cc)return f._state=3,f._value=p,void Wc(f);if("function"==typeof g)return void Ec(function(){g.apply(p,arguments)},f)}f._state=1,f._value=p,Wc(f)}catch(p){Rc(f,p)}}function Rc(f,p){f._state=2,f._value=p,Wc(f)}function Wc(f){2===f._state&&0===f._deferreds.length&&Cc._immediateFn(function(){f._handled||Cc._unhandledRejectionFn(f._value)});for(var p=0,g=f._deferreds.length;p<g;p++)jc(f,f._deferreds[p]);f._deferreds=null}function Zc(f,p,g){this.onFulfilled="function"==typeof f?f:null,this.onRejected="function"==typeof p?p:null,this.promise=g}function Ec(f,p){var g=!1;try{f(function(f){g||(g=!0,Lc(p,f))},function(f){g||(g=!0,Rc(p,f))})}catch(f){if(g)return;g=!0,Rc(p,f)}}Cc.prototype.catch=function(f){return this.then(null,f)},Cc.prototype.then=function(f,p){var g=new this.constructor(Tc);return jc(this,new Zc(f,p,g)),g},Cc.prototype.finally=_c,Cc.all=function(f){return new Cc(function(p,g){if(!xc(f))return g(TypeError("Promise.all accepts an array"));var b=Array.prototype.slice.call(f);if(0===b.length)return p([]);for(var _=b.length,w=0;w<b.length;w++)(function i(f,w){try{if(w&&("object"==typeof w||"function"==typeof w)){var S=w.then;if("function"==typeof S)return void S.call(w,function(p){i(f,p)},g)}b[f]=w,0==--_&&p(b)}catch(f){g(f)}})(w,b[w])})},Cc.allSettled=Ic,Cc.resolve=function(f){return f&&"object"==typeof f&&f.constructor===Cc?f:new Cc(function(p){p(f)})},Cc.reject=function(f){return new Cc(function(p,g){g(f)}
21)},Cc.race=function(f){return new Cc(function(p,g){if(!xc(f))return g(TypeError("Promise.race accepts an array"));for(var b=0,_=f.length;b<_;b++)Cc.resolve(f[b]).then(p,g)})},Cc._immediateFn="function"==typeof setImmediate&&function(f){setImmediate(f)}||function(f){iR(f,0)},Cc._unhandledRejectionFn=function(f){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",f)};var iA=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==g.g)return g.g;throw Error("unable to locate global object")}();"function"!=typeof iA.Promise?iA.Promise=Cc:(iA.Promise.prototype.finally||(iA.Promise.prototype.finally=_c),iA.Promise.allSettled||(iA.Promise.allSettled=Ic)),function(f){function t(f){for(var p=0,g=Math.min(65536,f.length+1),b=new Uint16Array(g),_=[],w=0;;){var S=p<f.length;if(!S||w>=g-1){var E=b.subarray(0,w);if(_.push(String.fromCharCode.apply(null,E)),!S)return _.join("");f=f.subarray(p),p=0,w=0}var T=f[p++];if(0==(128&T))b[w++]=T;else if(192==(224&T)){var x=63&f[p++];b[w++]=(31&T)<<6|x}else if(224==(240&T)){x=63&f[p++];var k=63&f[p++];b[w++]=(31&T)<<12|x<<6|k}else if(240==(248&T)){var C=(7&T)<<18|(x=63&f[p++])<<12|(k=63&f[p++])<<6|63&f[p++];C>65535&&(C-=65536,b[w++]=C>>>10&1023|55296,C=56320|1023&C),b[w++]=C}}}var p="Failed to ",r=function(f,g,b){if(f)throw Error("".concat(p).concat(g,": the '").concat(b,"' option is unsupported."))},g="function"==typeof k&&k.from,b=g?function(f){return k.from(f)}:function(f){for(var p=0,g=f.length,b=0,_=Math.max(32,g+(g>>>1)+7),w=new Uint8Array(_>>>3<<3);p<g;){var S=f.charCodeAt(p++);if(S>=55296&&S<=56319){if(p<g){var E=f.charCodeAt(p);56320==(64512&E)&&(++p,S=((1023&S)<<10)+(1023&E)+65536)}if(S>=55296&&S<=56319)continue}if(b+4>w.length){_+=8,_=(_*=1+p/f.length*2)>>>3<<3;var T=new Uint8Array(_);T.set(w),w=T}
21if(0!=(4294967168&S)){if(0==(4294965248&S))w[b++]=S>>>6&31|192;else if(0==(4294901760&S))w[b++]=S>>>12&15|224,w[b++]=S>>>6&63|128;else{if(0!=(4292870144&S))continue;w[b++]=S>>>18&7|240,w[b++]=S>>>12&63|128,w[b++]=S>>>6&63|128}w[b++]=63&S|128}else w[b++]=S}return w.slice?w.slice(0,b):w.subarray(0,b)};function c(){this.encoding="utf-8"}c.prototype.encode=function(f,p){return r(p&&p.stream,"encode","stream"),b(f)};var _=!g&&"function"==typeof Blob&&"function"==typeof URL&&"function"==typeof URL.createObjectURL,w=["utf-8","utf8","unicode-1-1-utf-8"],S=t;g?S=function(f,p){return(f instanceof k?f:k.from(f.buffer,f.byteOffset,f.byteLength)).toString(p)}:_&&(S=function(f){try{return function(f){var p;try{var g=new Blob([f],{type:"text/plain;charset=UTF-8"});p=URL.createObjectURL(g);var b=new XMLHttpRequest;return b.open("GET",p,!1),b.send(),b.responseText}finally{p&&URL.revokeObjectURL(p)}}(f)}catch(p){return t(f)}});var E="construct 'TextDecoder'",T="".concat(p," ").concat(E,": the ");function d(f,p){if(r(p&&p.fatal,E,"fatal"),f=f||"utf-8",!(g?k.isEncoding(f):-1!==w.indexOf(f.toLowerCase())))throw RangeError("".concat(T," encoding label provided ('").concat(f,"') is invalid."));this.encoding=f,this.fatal=!1,this.ignoreBOM=!1}d.prototype.decode=function(f,p){var g;return r(p&&p.stream,"decode","stream"),g=f instanceof Uint8Array?f:new Uint8Array(f.buffer instanceof ArrayBuffer?f.buffer:f),S(g,this.encoding)},f.TextEncoder=f.TextEncoder||c,f.TextDecoder=f.TextDecoder||d}("undefined"!=typeof window?window:C),function(){function e(f,p){if(!(f instanceof p))throw TypeError("Cannot call a class as a function")}function t(f,p){for(var g=0;g<p.length;g++){var b=p[g];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(f,b.key,b)}}function n(f,p,g){return p&&t(f.prototype,p),g&&t(f,g),f}function o(f){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(f){return f.__proto__||Object.getPrototypeOf(f)})(f)}function i(f,p){return(i=Object.setPrototypeOf||function(f,p){return f.__proto__=p,f})(f,p)}function a(f){if(void 0===f)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function d(f,p,g){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(f,p,g){var b=function(f,p){for(;!Object.prototype.hasOwnProperty.call(f,p)&&null!==(f=o(f)););return f}(f,p);if(b){var _=Object.getOwnPropertyDescriptor(b,p);return _.get?_.get.call(g):_.value}})(f,p,g||f)}var f,p,g=function(){function t(){e(this,t),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return n(t,[{key:"addEventListener",value:function(f,p,g){f in this.listeners||(this.listeners[f]=[]),this.listeners[f].push({callback:p,options:g})}},{key:"removeEventListener",value:function(f,p){if(f in this.listeners){for(var g=this.listeners[f],b=0,_=g.length;b<_;b++)if(g[b].callback===p)return void g.splice(b,1)}}},{key:"dispatchEvent",value:function(f){if(f.type in this.listeners){for(var p=this.listeners[f.type].slice(),g=0,b=p.length;g<b;g++){var _=p[g];try{_.callback.call(this,f)}catch(f){Promise.resolve().then(function(){throw f})}_.options&&_.options.once&&this.removeEventListener(f.type,_.callback)}return!f.defaultPrevented}}}]),t}(),b=function(f){(function(f,p){if("function"!=typeof p&&null!==p)throw TypeError("Super expression must either be null or a function");f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),p&&i(f,p)})(c,f);var p,b=(p=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(f){return!1}}(),function(){var f,g,b=o(c);if(p){var _=o(this).constructor;g=Reflect.construct(b,arguments,_)}else g=b.apply(this,arguments);return(f=g)&&("object"==typeof f||"function"==typeof f)?f:a(this)});function c(){var f;return e(this,c),(f=b.call(this)).listeners||g.call(a(f)),Object.defineProperty(a(f),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(a(f),"onabort",{value:null,writable:!0,configurable:!0}),f}return n(c,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(f){"abort"===f.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,f)),d(o(c.prototype),"dis
21patchEvent",this).call(this,f)}}]),c}(g),_=function(){function t(){e(this,t),Object.defineProperty(this,"signal",{value:new b,writable:!0,configurable:!0})}return n(t,[{key:"abort",value:function(){var f;try{f=new Event("abort")}catch(p){"undefined"!=typeof document?document.createEvent?(f=document.createEvent("Event")).initEvent("abort",!1,!1):(f=document.createEventObject()).type="abort":f={type:"abort",bubbles:!1,cancelable:!1}}this.signal.dispatchEvent(f)}},{key:"toString",value:function(){return"[object AbortController]"}}]),t}();"undefined"!=typeof Symbol&&Symbol.toStringTag&&(_.prototype[Symbol.toStringTag]="AbortController",b.prototype[Symbol.toStringTag]="AbortSignal"),((p=f="undefined"!=typeof self?self:C).__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),0):("function"!=typeof p.Request||p.Request.prototype.hasOwnProperty("signal"))&&p.AbortController)||(f.AbortController=_,f.AbortSignal=b)}();var iF=l(function(f,p){Object.defineProperty(p,"__esModule",{value:!0});var g=function(){function e(){var f=this;this.locked=new Map,this.addToLocked=function(p,g){var b=f.locked.get(p);void 0===b?void 0===g?f.locked.set(p,[]):f.locked.set(p,[g]):void 0!==g&&(b.unshift(g),f.locked.set(p,b))},this.isLocked=function(p){return f.locked.has(p)},this.lock=function(p){return new Promise(function(g,b){f.isLocked(p)?f.addToLocked(p,g):(f.addToLocked(p),g())})},this.unlock=function(p){var g=f.locked.get(p);if(void 0!==g&&0!==g.length){var b=g.pop();f.locked.set(p,g),void 0!==b&&setTimeout(b,0)}else f.locked.delete(p)}}return e.getInstance=function(){return void 0===e.instance&&(e.instance=new e),e.instance},e}();p.default=function(){return g.getInstance()}});u(iF);var iP=u(l(function(f,p){var g=C&&C.__awaiter||function(f,p,g,b){return new(g||(g=Promise))(function(_,w){function c(f){try{s(b.next(f))}catch(f){w(f)}}function a(f){try{s(b.throw(f))}catch(f){w(f)}}function s(f){f.done?_(f.value):new g(function(p){p(f.value)}).then(c,a)}s((b=b.apply(f,p||[])).next())})},b=C&&C.__generator||function(f,p){var g,b,_,w,S={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return w={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(w[Symbol.iterator]=function(){return this}),w;function a(w){return function(E){return function(w){if(g)throw TypeError("Generator is already executing.");for(;S;)try{if(g=1,b&&(_=2&w[0]?b.return:w[0]?b.throw||((_=b.return)&&_.call(b),0):b.next)&&!(_=_.call(b,w[1])).done)return _;switch(b=0,_&&(w=[2&w[0],_.value]),w[0]){case 0:case 1:_=w;break;case 4:return S.label++,{value:w[1],done:!1};case 5:S.label++,b=w[1],w=[0];continue;case 7:w=S.ops.pop(),S.trys.pop();continue;default:if(!(_=(_=S.trys).length>0&&_[_.length-1])&&(6===w[0]||2===w[0])){S=0;continue}if(3===w[0]&&(!_||w[1]>_[0]&&w[1]<_[3])){S.label=w[1];break}if(6===w[0]&&S.label<_[1]){S.label=_[1],_=w;break}if(_&&S.label<_[2]){S.label=_[2],S.ops.push(w);break}_[2]&&S.ops.pop(),S.trys.pop();continue}w=p.call(f,S)}catch(f){w=[6,f],b=0}finally{g=_=0}if(5&w[0])throw w[1];return{value:w[0]?w[1]:void 0,done:!0}}([w,E])}}};Object.defineProperty(p,"__esModule",{value:!0});var _="browser-tabs-lock-key";function i(f){return new Promise(function(p){return setTimeout(p,f)})}function c(f){for(var p="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",g="",b=0;b<f;b++)g+=p[Math.floor(Math.random()*p.length)];return g}var w=function(){function e(){this.acquiredIatSet=new Set,this.id=Date.now().toString()+c(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),void 0===e.waiters&&(e.waiters=[])}return e.prototype.acquireLock=function(f,p){return void 0===p&&(p=5e3),g(this,void 0,void 0,function(){var g,w,S,E,T,x;return b(this,function(b){switch(b.label){case 0:g=Date.now()+c(4),w=Date.now()+p,S=_+"-"+f,E=window.localStorage,b.label=1;case 1:return Date.now()<w?[4,i(30)]:[3,8];case 2:return b.sent(),null!==E.getItem(S)?[3,5]:(T=this.id+"-"+f+"-"+g,[4,i(Math.floor(25*Math.random()))]);case 3:return b.sent(),E.setItem(S,JSON.stringify({id:this.id,iat:g,timeoutKey:T,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,i(30)];case 4:return b.sent(),null!==(x=E.getItem(S))&&(x=JSON.parse(x)).id===this.id&&x.iat===g?(this.acquiredIatSet.add(g),this.refreshLockWhileAcquired(S,g),[2,!0]):[3,7];case 5:return e.lockCorrector(),[4,this.waitForSomethingToChange(w)];case 6:b.sent(),b.label=7;case 7:return g=Date.now()+c(4),[3,1];case 8:return[2,!1]}})})},e.prototype.refreshLockWhileAcquired=function(f,p){return g(this,void 0,void 0,function(){var _=this;return b(this,function(w){return setTimeout(function(){return g(_,void 0,void 0,function(){var g,_;return b(this,function(b){switch(b.label){case 0:return[4,iF.default().lock(p)];case 1:return b.sent(),this.acquiredIatSet.has(p)?null===(_=(g=window.localStorage).getItem(f))?iF.default().unlock(p):((_=JSON.parse(_)).timeRefreshed=Date.now(),g.setItem(f,JSON.stringify(_)),iF.default().unlock(p),this.refreshLockWhileAcquired(f,p)):iF.default().unlock(p),[2]}})})},1e3),[2]})})},e.prototype.waitForSomethingToChange=function(f){return g(this,void 0,void 0,function(){return b(this,function(p){switch(p.label){case 0:return[4,new Promise(function(p){var g=!1,b=Date.now(),_=!1;function c(){if(_||(window.removeEventListener("storage",c),e.removeFromWaiting(c),clearTimeout(w),_=!0),!g){g=!0;var f=50-(Date.now()-b);f>0?setTimeout(p,f):p()}}window.addEventListener("storage",c),e.addToWaiting(c);var w=setTimeout(c,Math.max(0,f-Date.now()))})];case 1:return p.sent(),[2]}})})},e.addToWaiting=function(f){this.removeFromWaiting(f),void 0!==e.waiters&&e.waiters.push(f)},e.removeFromWaiting=function(f){void 0!==e.waiters&&(e.waiters=e.waiters.filter(function(p){return p!==f}))},e.notifyWaiters=function(){void 0!==e.waiters&&e.waiters.slice().forEac
21h(function(f){return f()})},e.prototype.releaseLock=function(f){return g(this,void 0,void 0,function(){return b(this,function(p){switch(p.label){case 0:return[4,this.releaseLock__private__(f)];case 1:return[2,p.sent()]}})})},e.prototype.releaseLock__private__=function(f){return g(this,void 0,void 0,function(){var p,g,w;return b(this,function(b){switch(b.label){case 0:return p=window.localStorage,g=_+"-"+f,null===(w=p.getItem(g))?[2]:(w=JSON.parse(w)).id!==this.id?[3,2]:[4,iF.default().lock(w.iat)];case 1:b.sent(),this.acquiredIatSet.delete(w.iat),p.removeItem(g),iF.default().unlock(w.iat),e.notifyWaiters(),b.label=2;case 2:return[2]}})})},e.lockCorrector=function(){for(var f=Date.now()-5e3,p=window.localStorage,g=Object.keys(p),b=!1,w=0;w<g.length;w++){var S=g[w];if(S.includes(_)){var E=p.getItem(S);null!==E&&(void 0===(E=JSON.parse(E)).timeRefreshed&&E.timeAcquired<f||void 0!==E.timeRefreshed&&E.timeRefreshed<f)&&(p.removeItem(S),b=!0)}}b&&e.notifyWaiters()},e.waiters=void 0,e}();p.default=w})),iL={timeoutInSeconds:60},ij=["login_required","consent_required","interaction_required","account_selection_required","access_de
21nied"],iD={name:"auth0-spa-js",version:"1.22.6"},Uc=function(){return Date.now()},iB=function(f){function n(p,g){var b=f.call(this,g)||this;return b.error=p,b.error_description=g,Object.setPrototypeOf(b,n.prototype),b}return t(n,f),n.fromPayload=function(f){return new n(f.error,f.error_description)},n}(Error),iU=function(f){function n(p,g,b,_){void 0===_&&(_=null);var w=f.call(this,p,g)||this;return w.state=b,w.appState=_,Object.setPrototypeOf(w,n.prototype),w}return t(n,f),n}(iB),iH=function(f){function n(){var p=f.call(this,"timeout","Timeout")||this;return Object.setPrototypeOf(p,n.prototype),p}return t(n,f),n}(iB),iN=function(f){function n(p){var g=f.call(this)||this;return g.popup=p,Object.setPrototypeOf(g,n.prototype),g}return t(n,f),n}(iH),iM=function(f){function n(p){var g=f.call(this,"cancelled","Popup closed")||this;return g.popup=p,Object.setPrototypeOf(g,n.prototype),g}return t(n,f),n}(iB),iW=function(f){function n(p,g,b){var _=f.call(this,p,g)||this;return _.mfa_token=b,Object.setPrototypeOf(_,n.prototype),_}return t(n,f),n}(iB),iz=function(f){function n(p,g){var b=f.call(this,"missing_refresh_token","Missing Refresh Token (audience: '".concat(ia(p,["default"]),"', scope: '").concat(ia(g),"')"))||this;return b.audience=p,b.scope=g,Object.setPrototypeOf(b,n.prototype),b}return t(n,f),n}(iB),Qc=function(){return window.crypto||window.msCrypto},qc=function(){var f=Qc();return f.subtle||f.webkitSubtle},$c=function(){var f="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.",p="";return Array.from(Qc().getRandomValues(new Uint8Array(43))).forEach(function(g){return p+=f[g%f.length]}),p},ea=function(f){return btoa(f)},ta=function(f){return Object.keys(f).filter(function(p){return void 0!==f[p]}).map(function(p){return encodeURIComponent(p)+"="+encodeURIComponent(f[p])}).join("&")},na=function(f){return o(void 0,void 0,void 0,function(){var p;return i(this,function(g){switch(g.label){case 0:return p=qc().digest({name:"SHA-256"},(new TextEncoder).encode(f)),window.msCrypto?[2,new Promise(function(f,g){p.oncomplete=function(p){f(p.target.result)},p.onerror=function(f){g(f.error)},p.onabort=function(){g("The digest operation was aborted")}})]:[4,p];case 1:return[2,g.sent()]}})})},ra=function(f){return decodeURIComponent(atob(f.replace(/_/g,"/").replace(/-/g,"+")).split("").map(function(f){return"%"+("00"+f.charCodeAt(0).toString(16)).slice(-2)}).join(""))},oa=function(f){var p,g,b=new Uint8Array(f);return p=window.btoa(String.fromCharCode.apply(String,a([],c(Array.from(b)),!1))),g={"+":"-","/":"_","=":""},p.replace(/[+/=]/g,function(f){return g[f]})};function ia(f,p){return void 0===p&&(p=[]),f&&!p.includes(f)?f:""}function fa(f,p){var g=f.baseUrl,b=f.timeout,_=f.audience,w=f.scope,S=f.auth0Client,E=f.useFormData,T=r(f,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);return o(this,void 0,void 0,function(){var f;return i(this,function(x){switch(x.label){case 0:return f=E?ta(T):JSON.stringify(T),[4,function(f,p,g,b,_,w,S){return o(this,void 0,void 0,function(){var E,T,x,k,C,O,R,A;return i(this,function(j){switch(j.label){case 0:E=null,x=0,j.label=1;case 1:if(!(x<3))return[3,6];j.label=2;case 2:var D;return j.trys.push([2,4,,5]),[4,(void 0===(D=p)&&(D=1e4),o(void 0,void 0,void 0,function(){return i(this,function(p){var E,T;return w?[2,(E=D,o(void 0,void 0,void 0,function(){return i(this,function(p){var T;return[2,(T={auth:{audience:g,scope:b},timeout:E,fetchUrl:f,fetchOptions:_,useFormData:S},new Promise(function(f,p){var g=new MessageChannel;g.port1.onmessage=function(b){b.data.error?p(Error(b.data.error)):f(b.data),g.port1.close()},w.postMessage(T,[g.port2])}))]})}))]:[2,(T=D,o(void 0,void 0,void 0,function(){var p,g;return i(this,function(b){return p=new AbortController,_.signal=p.signal,[2,Promise.race([o(void 0,void 0,void 0,function(){var p,g;return i(this,function(b){var w;switch(b.label){case 0:return[4,(w=(w=_)||{},new Promise(function(p,g){var b=new XMLHttpRequest,_=[],S=[],E={},s=function(){return{ok:2==(b.status/100|0),statusText:b.statusText,status:b.status,url:b.responseURL,text:function(){return Promise.resolve(b.responseText)},json:function(){return Promise.resolve(b.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([b.response]))},clone:s,headers:{keys:function(){return _},entries:function(){return S},get:function(f){return E[f.toLowerCase()]},has:function(f){return f.toLowerCase() in E}}}};for(var T in b.open(w.method||"get",f,!0),b.onload=function(){b.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(f,p,g){_.push(p=p.toLowerCase()),S.push([p,g]),E[p]=E[p]?E[p]+","+g:g}),p(s())},b.onerror=g,b.withCredentials="include"==w.credentials,w.headers)b.setRequestHeader(T,w.headers[T]);b.send(w.body||null)}))];case 1:return g={ok:(p=b.sent()).ok},[4,p.json()];case 2:return[2,(g.json=b.sent(),g)]}})}),new Promise(function(f,b){g=setTimeout(function(){p.abort(),b(Error("Timeout when executing 'fetch'"))},T)})]).finally(function(){clearTimeout(g)})]})}))]})}))];case 3:return T=j.sent(),E=null,[3,6];case 4:return E=j.sent(),[3,5];case 5:return x++,[3,1];case 6:if(E)throw E.message=E.message||"Failed to fetch",E;if(C=(k=T.json).error,O=k.error_description,R=r(k,["error","error_description"]),!T.ok){if(A=O||"HTTP error. Unable to fetch ".concat(f),"mfa_required"===C)throw new iW(C,A,R.mfa_token);throw new iB(C||"request_error",A)}return[2,R]}})})}("".concat(g,"/oauth/token"),b,_||"default",w,{method:"POST",body:f,headers:{"Content-Type":E?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(S||iD))}},p,E)];case 1:return[2,x.sent()]}})})}var ha=function(){for(var f,p=[],g=0;g<arguments.length;g++)p[g]=arguments[g];return(f=p.join(" ").trim().split(/\s+/),Array.from(new Set(f))).join(" ")},iG=function(){function e(f,p){void 0===p&&(p="@@auth0spajs@@"),this.prefix=p,this.client_id=f.client_id,this.scope=f.scope,this.audience=f.audie
21nce}return e.prototype.toKey=function(){return"".concat(this.prefix,"::").concat(this.client_id,"::").concat(this.audience,"::").concat(this.scope)},e.fromKey=function(f){var p=c(f.split("::"),4),g=p[0],b=p[1],_=p[2];return new e({client_id:b,scope:p[3],audience:_},g)},e.fromCacheEntry=function(f){return new e({scope:f.scope,audience:f.audience,client_id:f.client_id})},e}(),iZ=function(){function e(){}return e.prototype.set=function(f,p){localStorage.setItem(f,JSON.stringify(p))},e.prototype.get=function(f){var p=window.localStorage.getItem(f);if(p)try{return JSON.parse(p)}catch(f){return}},e.prototype.remove=function(f){localStorage.removeItem(f)},e.prototype.allKeys=function(){return Object.keys(window.localStorage).filter(function(f){return f.startsWith("@@auth0spajs@@")})},e}(),va=function(){var f;this.enclosedCache=(f={},{set:function(p,g){f[p]=g},get:function(p){var g=f[p];if(g)return g},remove:function(p){delete f[p]},allKeys:function(){return Object.keys(f)}})},iK=function(){function e(f,p,g){this.cache=f,this.keyManifest=p,this.nowProvider=g,this.nowProvider=this.nowProvider||Uc}return e.prototype.get=function(f,p){var g;return void 0===p&&(p=0),o(this,void 0,void 0,function(){var b,_,w,S;return i(this,function(E){switch(E.label){case 0:return[4,this.cache.get(f.toKey())];case 1:return(b=E.sent())?[3,4]:[4,this.getCacheKeys()];case 2:return(_=E.sent())?(w=this.matchExistingCacheKey(f,_))?[4,this.cache.get(w)]:[3,4]:[2];case 3:b=E.sent(),E.label=4;case 4:return b?[4,this.nowProvider()]:[2];case 5:return S=Math.floor(E.sent()/1e3),b.expiresAt-p<S?b.body.refresh_token?(b.body={refresh_token:b.body.refresh_token},[4,this.cache.set(f.toKey(),b)]):[3,7]:[3,10];case 6:return E.sent(),[2,b.body];case 7:return[4,this.cache.remove(f.toKey())];case 8:return E.sent(),[4,null===(g=this.keyManifest)||void 0===g?void 0:g.remove(f.toKey())];case 9:return E.sent(),[2];case 10:return[2,b.body]}})})},e.prototype.set=function(f){var p;return o(this,void 0,void 0,function(){var g,b;return i(this,function(_){switch(_.label){case 0:return g=new iG({client_id:f.client_id,scope:f.scope,audience:f.audience}),[4,this.wrapCacheEntry(f)];case 1:return b=_.sent(),[4,this.cache.set(g.toKey(),b)];case 2:return _.sent(),[4,null===(p=this.keyManifest)||void 0===p?void 0:p.add(g.toKey())];case 3:return _.sent(),[2]}})})},e.prototype.clear=function(f){var p;return o(this,void 0,void 0,function(){var g,b=this;return i(this,function(_){switch(_.label){case 0:return[4,this.getCacheKeys()];case 1:return(g=_.sent())?[4,g.filter(function(p){return!f||p.includes(f)}).reduce(function(f,p){return o(b,void 0,void 0,function(){return i(this,function(g){switch(g.label){case 0:return[4,f];case 1:return g.sent(),[4,this.cache.remove(p)];case 2:return g.sent(),[2]}})})},Promise.resolve())]:[2];case 2:return _.sent(),[4,null===(p=this.keyManifest)||void 0===p?void 0:p.clear()];case 3:return _.sent(),[2]}})})},e.prototype.clearSync=function(f){var p=this,g=this.cache.allKeys();g&&g.filter(function(p){return!f||p.includes(f)}).forEach(function(f){p.cache.remove(f)})},e.prototype.wrapCacheEntry=function(f){return o(this,void 0,void 0,function(){var p;return i(this,function(g){switch(g.label){case 0:return[4,this.nowProvider()];case 1:return p=Math.min(Math.floor(g.sent()/1e3)+f.expires_in,f.decodedToken.claims.exp),[2,{body:f,expiresAt:p}]}})})},e.prototype.getCacheKeys=function(){var f;return o(this,void 0,void 0,function(){var p;return i(this,function(g){switch(g.label){case 0:return this.keyManifest?[4,this.keyManifest.get()]:[3,2];case 1:return p=null===(f=g.sent())||void 0===f?void 0:f.keys,[3,4];case 2:return[4,this.cache.allKeys()];case 3:p=g.sent(),g.label=4;case 4:return[2,p]}})})},e.prototype.matchExistingCacheKey=function(f,p){return p.filter(function(p){var g=iG.fromKey(p),b=new Set(g.scope&&g.scope.split(" ")),_=f.scope.split(" "),w=g.scope&&_.reduce(function(f,p){return f&&b.has(p)},!0);return"@@auth0spajs@@"===g.prefix&&g.client_id===f.client_id&&g.audience===f.audience&&w})[0]},e}(),iX=function(){function e(f,p){this.storage=f,this.clientId=p,this.storageKey="".concat("a0.spajs.txs",".").concat(this.clientId),this.transaction=this.storage.get(this.storageKey)}return e.prototype.create=function(f){this.transaction=f,this.storage.save(this.storageKey,f,{daysUntilExpire:1})},e.prototype.get=function(){return this.transaction},e.prototype.remove=function(){delete this.transaction,this.storage.remove(this.storageKey)},e}(),ga=function(f){return"number"==typeof f}
21,i$=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"],Sa=function(f){if(!f.id_token)throw Error("ID token is required but missing");var p=function(f){var p=f.split("."),g=c(p,3),b=g[0],_=g[1],w=g[2];if(3!==p.length||!b||!_||!w)throw Error("ID token could not be decoded");var S=JSON.parse(ra(_)),E={__raw:f},T={};return Object.keys(S).forEach(function(f){E[f]=S[f],i$.includes(f)||(T[f]=S[f])}),{encoded:{header:b,payload:_,signature:w},header:JSON.parse(ra(b)),claims:E,user:T}}(f.id_token);if(!p.claims.iss)throw Error("Issuer (iss) claim must be a string present in the ID token");if(p.claims.iss!==f.iss)throw Error('Issuer (iss) claim mismatch in the ID token; expected "'.concat(f.iss,'", found "').concat(p.claims.iss,'"'));if(!p.user.sub)throw Error("Subject (sub) claim must be a string present in the ID token");if("RS256"!==p.header.alg)throw Error('Signature algorithm of "'.concat(p.header.alg,'" is not supported. Expected the ID token to be signed with "RS256".'));if(!p.claims.aud||"string"!=typeof p.claims.aud&&!Array.isArray(p.claims.aud))throw Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(p.claims.aud)){if(!p.claims.aud.includes(f.aud))throw Error('Audience (aud) claim mismatch in the ID token; expected "'.concat(f.aud,'" but was not one of "').concat(p.claims.aud.join(", "),'"'));if(p.claims.aud.length>1){if(!p.claims.azp)throw Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(p.claims.azp!==f.aud)throw Error('Authorized Party (azp) claim mismatch in the ID token; expected "'.concat(f.aud,'", found "').concat(p.claims.azp,'"'))}}else if(p.claims.aud!==f.aud)throw Error('Audience (aud) claim mismatch in the ID token; expected "'.concat(f.aud,'" but found "').concat(p.claims.aud,'"'));if(f.nonce){if(!p.claims.nonce)throw Error("Nonce (nonce) claim must be a string present in the ID token");if(p.claims.nonce!==f.nonce)throw Error('Nonce (nonce) claim mismatch in the ID token; expected "'.concat(f.nonce,'", found "').concat(p.claims.nonce,'"'))}if(f.max_age&&!ga(p.claims.auth_time))throw Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(!ga(p.claims.exp))throw Error("Expiration Time (exp) claim must be a number present in the ID token");if(!ga(p.claims.iat))throw Error("Issued At (iat) claim must be a number present in the ID token");var g=f.leeway||60,b=new Date(f.now||Date.now()),_=new Date(0),w=new Date(0),S=new Date(0);if(S.setUTCSeconds(parseInt(p.claims.auth_time)+f.max_age+g),_.setUTCSeconds(p.claims.exp+g),w.setUTCSeconds(p.claims.nbf-g),b>_)throw Error("Expiration Time (exp) claim error in the ID token; current time (".concat(b,") is after expiration time (").concat(_,")"));if(ga(p.claims.nbf)&&b<w)throw Error("Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Currrent time (".concat(b,") is before ").concat(w));if(ga(p.claims.auth_time)&&b>S)throw Error("Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Currrent time (".concat(b,") is after last auth at ").concat(S));if(f.organizationId){if(!p.claims.org_id)throw Error("Organization ID (org_id) claim must be a string present in the ID token");if(f.organizationId!==p.claims.org_id)throw Error('Organization ID (org_id) claim mismatch in the ID token; expected "'.concat(f.organizationId,'", found "').concat(p.claims.org_id,'"'))}return p},iV=l(function(f,p){var g=C&&C.__assign||function(){return(g=Object.assign||function(f){for(var p,g=1,b=arguments.length;g<b;g++)for(var _ in p=arguments[g])Object.prototype.hasOwnProperty.call(p,_)&&(f[_]=p[_]);return f}).apply(this,arguments)};function r(f,p){if(!p)return"";var g="; "+f;return!0===p?g:g+"="+p}function o(f,p,g){return encodeURIComponent(f).replace(/%(23|24|26|2B|5E|60|7C)/g,decode
21URIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(p).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(f){if("number"==typeof f.expires){var p=new Date;p.setMilliseconds(p.getMilliseconds()+864e5*f.expires),f.expires=p}return r("Expires",f.expires?f.expires.toUTCString():"")+r("Domain",f.domain)+r("Path",f.path)+r("Secure",f.secure)+r("SameSite",f.sameSite)}(g)}function i(f){for(var p={},g=f?f.split("; "):[],b=/(%[\dA-F]{2})+/gi,_=0;_<g.length;_++){var w=g[_].split("="),S=w.slice(1).join("=");'"'===S.charAt(0)&&(S=S.slice(1,-1));try{p[w[0].replace(b,decodeURIComponent)]=S.replace(b,decodeURIComponent)}catch(f){}}return p}function c(){return i(document.cookie)}function a(f,p,b){document.cookie=o(f,p,g({path:"/"},b))}p.__esModule=!0,p.encode=o,p.parse=i,p.getAll=c,p.get=function(f){return c()[f]},p.set=a,p.remove=function(f,p){a(f,"",g(g({},p),{expires:-1}))}});u(iV),iV.encode,iV.parse,iV.getAll;var iY,iJ=iV.get,iq=iV.set,iQ=iV.remove,i0={get:function(f){var p=iJ(f);if(void 0!==p)return JSON.parse(p)},save:function(f,p,g){var b={};"https:"===window.location.protocol&&(b={secure:!0,sameSite:"none"}),(null==g?void 0:g.daysUntilExpire)&&(b.expires=g.daysUntilExpire),(null==g?void 0:g.cookieDomain)&&(b.domain=g.cookieDomain),iq(f,JSON.stringify(p),b)},remove:function(f,p){var g={};(null==p?void 0:p.cookieDomain)&&(g.domain=p.cookieDomain),iQ(f,g)}},i1={get:function(f){return i0.get(f)||i0.get("".concat("_legacy_").concat(f))},save:function(f,p,g){var b={};"https:"===window.location.protocol&&(b={secure:!0}),(null==g?void 0:g.daysUntilExpire)&&(b.expires=g.daysUntilExpire),iq("".concat("_legacy_").concat(f),JSON.stringify(p),b),i0.save(f,p,g)},remove:function(f,p){var g={};(null==p?void 0:p.cookieDomain)&&(g.domain=p.cookieDomain),iQ(f,g),i0.remove(f,p),i0.remove("".concat("_legacy_").concat(f),p)}},i2={get:function(f){if("undefined"!=typeof sessionStorage){var p=sessionStorage.getItem(f);if(void 0!==p)return JSON.parse(p)}},save:function(f,p){sessionStorage.setItem(f,JSON.stringify(p))},remove:function(f){sessionStorage.removeItem(f)}},Ea=function(f){var p,g,b,_;return iY=iY||(g=(p=function(f,p){var g=atob(f);if(p){for(var b=new Uint8Array(g.length),_=0,w=g.length;_<w;++_)b[_]=g.charCodeAt(_);return String.fromCharCode.apply(null,new Uint16Array(b.buffer))}return g}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7dmFyIHQ9ZnVuY3Rpb24oZSxyKXtyZXR1cm4gdD1PYmplY3Quc2V0UHJvdG90eXBlT2Z8fHtfX3Byb3RvX186W119aW5zdGFuY2VvZiBBcnJheSYmZnVuY3Rpb24odCxlKXt0Ll9fcHJvdG9fXz1lfXx8ZnVuY3Rpb24odCxlKXtmb3IodmFyIHIgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxyKSYmKHRbcl09ZVtyXSl9LHQoZSxyKX07ZnVuY3Rpb24gZShlLHIpe2lmKCJmdW5jdGlvbiIhPXR5cGVvZiByJiZudWxsIT09cil0aHJvdyBuZXcgVHlwZUVycm9yKCJDbGFzcyBleHRlbmRzIHZhbHVlICIrU3RyaW5nKHIpKyIgaXMgbm90IGEgY29uc3RydWN0b3Igb3IgbnVsbCIpO2Z1bmN0aW9uIG4oKXt0aGlzLmNvbnN0cnVjdG9yPWV9dChlLHIpLGUucHJvdG90eXBlPW51bGw9PT1yP09iamVjdC5jcmVhdGUocik6KG4ucHJvdG90eXBlPXIucHJvdG90eXBlLG5ldyBuKX12YXIgcj1mdW5jdGlvbigpe3JldHVybiByPU9iamVjdC5hc3NpZ258fGZ1bmN0aW9uKHQpe2Zvcih2YXIgZSxyPTEsbj1hcmd1bWVudHMubGVuZ3RoO3I8bjtyKyspZm9yKHZhciBvIGluIGU9YXJndW1lbnRzW3JdKU9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChlLG8pJiYodFtvXT1lW29dKTtyZXR1cm4gdH0sci5hcHBseSh0aGlzLGFyZ3VtZW50cyl9O2Z1bmN0aW9uIG4odCxlLHIsbil7cmV0dXJuIG5ldyhyfHwocj1Qcm9taXNlKSkoKGZ1bmN0aW9uKG8sYyl7ZnVuY3Rpb24gaSh0KXt0cnl7cyhuLm5leHQodCkpfWNhdGNoKHQpe2ModCl9fWZ1bmN0aW9uIGEodCl7dHJ5e3Mobi50aHJvdyh0KSl9Y2F0Y2godCl7Yyh0KX19ZnVuY3Rpb24gcyh0KXt2YXIgZTt0LmRvbmU/byh0LnZhbHVlKTooZT10LnZhbHVlLGUgaW5zdGFuY2VvZiByP2U6bmV3IHIoKGZ1bmN0aW9uKHQpe3QoZSl9KSkpLnRoZW4oaSxhKX1zKChuPW4uYXBwbHkodCxlfHxbXSkpLm5leHQoKSl9KSl9ZnVuY3Rpb24gbyh0LGUpe3ZhciByLG4sbyxjLGk9e2xhYmVsOjAsc2VudDpmdW5jdGlvbigpe2lmKDEmb1swXSl0aHJvdyBvWzFdO3JldHVybiBvWzFdfSx0cnlzOltdLG9wczpbXX07cmV0dXJuIGM9e25leHQ6YSgwKSx0aHJvdzphKDEpLHJldHVybjphKDIpfSwiZnVuY3Rpb24iPT10eXBlb2YgU3ltYm9sJiYoY1tTeW1ib2wuaXRlcmF0b3JdPWZ1bmN0aW9uKCl7cmV0dXJuIHRoaXN9KSxjO2Z1bmN0aW9uIGEoYyl7cmV0dXJuIGZ1bmN0aW9uKGEpe3JldHVybiBmdW5jdGlvbihjKXtpZihyKXRocm93IG5ldyBUeXBlRXJyb3IoIkdlbmVyYXRvciBpcyBhbHJlYWR5IGV4ZWN1dGluZy4iKTtmb3IoO2k7KXRyeXtpZihyPTEsbiYmKG89MiZjWzBdP24ucmV0dXJuOmNbMF0/bi50aHJvd3x8KChvPW4ucmV0dXJuKSYmby5jYWxsKG4pLDApOm4ubmV4dCkmJiEobz1vLmNhbGwobixjWzFdKSkuZG9uZSlyZXR1cm4gbztzd2l0Y2gobj0wLG8mJihjPVsyJmNbMF0sby52YWx1ZV0pLGNbMF0pe2Nhc2UgMDpjYXNlIDE6bz1jO2JyZWFrO2Nhc2UgNDpyZXR1cm4gaS5sYWJlbCsrLHt2YWx1ZTpjWzFdLGRvbmU6ITF9O2Nhc2UgNTppLmxhYmVsKyssbj1jWzFdLGM9WzBdO2
21NvbnRpbnVlO2Nhc2UgNzpjPWkub3BzLnBvcCgpLGkudHJ5cy5wb3AoKTtjb250aW51ZTtkZWZhdWx0OmlmKCEobz1pLnRyeXMsKG89by5sZW5ndGg+MCYmb1tvLmxlbmd0aC0xXSl8fDYhPT1jWzBdJiYyIT09Y1swXSkpe2k9MDtjb250aW51ZX1pZigzPT09Y1swXSYmKCFvfHxjWzFdPm9bMF0mJmNbMV08b1szXSkpe2kubGFiZWw9Y1sxXTticmVha31pZig2PT09Y1swXSYmaS5sYWJlbDxvWzFdKXtpLmxhYmVsPW9bMV0sbz1jO2JyZWFrfWlmKG8mJmkubGFiZWw8b1syXSl7aS5sYWJlbD1vWzJdLGkub3BzLnB1c2goYyk7YnJlYWt9b1syXSYmaS5vcHMucG9wKCksaS50cnlzLnBvcCgpO2NvbnRpbnVlfWM9ZS5jYWxsKHQsaSl9Y2F0Y2godCl7Yz1bNix0XSxuPTB9ZmluYWxseXtyPW89MH1pZig1JmNbMF0pdGhyb3cgY1sxXTtyZXR1cm57dmFsdWU6Y1swXT9jWzFdOnZvaWQgMCxkb25lOiEwfX0oW2MsYV0pfX19ZnVuY3Rpb24gYyh0LGUpe3JldHVybiB2b2lkIDA9PT1lJiYoZT1bXSksdCYmIWUuaW5jbHVkZXModCk/dDoiIn12YXIgaT1mdW5jdGlvbih0KXtmdW5jdGlvbiByKGUsbil7dmFyIG89dC5jYWxsKHRoaXMsbil8fHRoaXM7cmV0dXJuIG8uZXJyb3I9ZSxvLmVycm9yX2Rlc2NyaXB0aW9uPW4sT2JqZWN0LnNldFByb3RvdHlwZU9mKG8sci5wcm90b3R5cGUpLG99cmV0dXJuIGUocix0KSxyLmZyb21QYXlsb2FkPWZ1bmN0aW9uKHQpe3JldHVybiBuZXcgcih0LmVycm9yLHQuZXJyb3JfZGVzY3JpcHRpb24pfSxyfShFcnJvcik7IWZ1bmN0aW9uKHQpe2Z1bmN0aW9uIHIoZSxuLG8sYyl7dm9pZCAwPT09YyYmKGM9bnVsbCk7dmFyIGk9dC5jYWxsKHRoaXMsZSxuKXx8dGhpcztyZXR1cm4gaS5zdGF0ZT1vLGkuYXBwU3RhdGU9YyxPYmplY3Quc2V0UHJvdG90eXBlT2YoaSxyLnByb3RvdHlwZSksaX1lKHIsdCl9KGkpLGZ1bmN0aW9uKHQpe2Z1bmN0aW9uIHIoZSl7dmFyIG49dC5jYWxsKHRoaXMpfHx0aGlzO3JldHVybiBuLnBvcHVwPWUsT2JqZWN0LnNldFByb3RvdHlwZU9mKG4sci5wcm90b3R5cGUpLG59ZShyLHQpfShmdW5jdGlvbih0KXtmdW5jdGlvbiByKCl7dmFyIGU9dC5jYWxsKHRoaXMsInRpbWVvdXQiLCJUaW1lb3V0Iil8fHRoaXM7cmV0dXJuIE9iamVjdC5zZXRQcm90b3R5cGVPZihlLHIucHJvdG90eXBlKSxlfXJldHVybiBlKHIsdCkscn0oaSkpLGZ1bmN0aW9uKHQpe2Z1bmN0aW9uIHIoZSl7dmFyIG49dC5jYWxsKHRoaXMsImNhbmNlbGxlZCIsIlBvcHVwIGNsb3NlZCIpfHx0aGlzO3JldHVybiBuLnBvcHVwPWUsT2JqZWN0LnNldFByb3RvdHlwZU9mKG4sci5wcm90b3R5cGUpLG59ZShyLHQpfShpKSxmdW5jdGlvbih0KXtmdW5jdGlvbiByKGUsbixvKXt2YXIgYz10LmNhbGwodGhpcyxlLG4pfHx0aGlzO3JldHVybiBjLm1mYV90b2tlbj1vLE9iamVjdC5zZXRQcm90b3R5cGVPZihjLHIucHJvdG90eXBlKSxjfWUocix0KX0oaSk7dmFyIGE9ZnVuY3Rpb24odCl7ZnVuY3Rpb24gcihlLG4pe3ZhciBvPXQuY2FsbCh0aGlzLCJtaXNzaW5nX3JlZnJlc2hfdG9rZW4iLCJNaXNzaW5nIFJlZnJlc2ggVG9rZW4gKGF1ZGllbmNlOiAnIi5jb25jYXQoYyhlLFsiZGVmYXVsdCJdKSwiJywgc2NvcGU6ICciKS5jb25jYXQoYyhuKSwiJykiKSl8fHRoaXM7cmV0dXJuIG8uYXVkaWVuY2U9ZSxvLnNjb3BlPW4sT2JqZWN0LnNldFByb3RvdHlwZU9mKG8sci5wcm90b3R5cGUpLG99cmV0dXJuIGUocix0KSxyfShpKSxzPXt9LHU9ZnVuY3Rpb24odCxlKXtyZXR1cm4iIi5jb25jYXQodCwifCIpLmNvbmNhdChlKX07YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGZ1bmN0aW9uKHQpe3ZhciBlPXQuZGF0YSxjPWUudGltZW91dCxpPWUuYXV0aCxmPWUuZmV0Y2hVcmwsbD1lLmZldGNoT3B0aW9ucyxwPWUudXNlRm9ybURhdGEsaD1mdW5jdGlvbih0LGUpe3ZhciByPSJmdW5jdGlvbiI9PXR5cGVvZiBTeW1ib2wmJnRbU3ltYm9sLml0ZXJhdG9yXTtpZighcilyZXR1cm4gdDt2YXIgbixvLGM9ci5jYWxsKHQpLGk9W107dHJ5e2Zvcig7KHZvaWQgMD09PWV8fGUtLSA+MCkmJiEobj1jLm5leHQoKSkuZG9uZTspaS5wdXNoKG4udmFsdWUpfWNhdGNoKHQpe289e2Vycm9yOnR9fWZpbmFsbHl7dHJ5e24mJiFuLmRvbmUmJihyPWMucmV0dXJuKSYmci5jYWxsKGMpfWZpbmFsbHl7aWYobyl0aHJvdyBvLmVycm9yfX1yZXR1cm4gaX0odC5wb3J0cywxKVswXTtyZXR1cm4gbih2b2lkIDAsdm9pZCAwLHZvaWQgMCwoZnVuY3Rpb24oKXt2YXIgdCxlLG4seSx2LGIsZCx3LE8sXztyZXR1cm4gbyh0aGlzLChmdW5jdGlvbihvKXtzd2l0Y2goby5sYWJlbCl7Y2FzZSAwOm49KGU9aXx8e30pLmF1ZGllbmNlLHk9ZS5zY29wZSxvLmxhYmVsPTE7Y2FzZSAxOmlmKG8udHJ5cy5wdXNoKFsxLDcsLDhdKSwhKHY9cD8obT1sLmJvZHksaz1uZXcgVVJMU2VhcmNoUGFyYW1zKG0pLFA9e30say5mb3JFYWNoKChmdW5jdGlvbih0LGUpe1BbZV09dH0pKSxQKTpKU09OLnBhcnNlKGwuYm9keSkpLnJlZnJlc2hfdG9rZW4mJiJyZWZyZXNoX3Rva2VuIj09PXYuZ3JhbnRfdHlwZSl7aWYoYj1mdW5jdGlvbih0LGUpe3JldHVybiBzW3UodCxlKV19KG4seSksIWIpdGhyb3cgbmV3IGEobix5KTtsLmJvZHk9cD9uZXcgVVJMU2VhcmNoUGFyYW1zKHIocih7fSx2KSx7cmVmcmVzaF90b2tlbjpifSkpLnRvU3RyaW5nKCk6SlNPTi5zdHJpbmdpZnkocihyKHt9LHYpLHtyZWZyZXNoX3Rva2VuOmJ9KSl9ZD12b2lkIDAsImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGQ9bmV3IEFib3J0Q29udHJvbGxlcixsLnNpZ25hbD1kLnNpZ25hbCksdz12b2lkIDAsby5sYWJlbD0yO2Nhc2UgMjpyZXR1cm4gby50cnlzLnB1c2goWzIsNCwsNV0pLFs0LFByb21pc2UucmFjZShbKGc9YyxuZXcgUHJvbWlzZSgoZnVuY3Rpb24odCl7cmV0dXJuIHNldFRpbWVvdXQodCxnKX0pKSksZmV0Y2goZixyKHt9LGwpKV0pXTtjYXNlIDM6cmV0dXJuIHc9by5zZW50KCksWzMsNV07Y2FzZSA0OnJldHVybiBPPW8uc2VudCgpLGgucG9zdE1lc3NhZ2Uoe2Vycm9yOk8ubWVzc2FnZX0pLFsyXTtjYXNlIDU6cmV0dXJuIHc/WzQsdy5qc29uKCldOihkJiZkLmFib3J0KCksaC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KSxbMl0pO2Nhc2UgNjpyZXR1cm4odD1vLnNlbnQoKSkucmVmcmVzaF90b2tlbj8oZnVuY3Rpb24odCxlLHIpe3NbdShlLHIpXT10fSh0LnJlZnJlc2hfdG9rZW4sbix5KSxkZWxldGUgdC5yZWZyZXNoX3Rva2VuKTpmdW5jdGlvbih0LGUpe2RlbGV0ZSBzW3UodCxlKV19KG4seSksaC5wb3N0TWVzc2FnZSh7b2s6dy5vayxqc29uOnR9KSxbMyw4XTt
21jYXNlIDc6cmV0dXJuIF89by5zZW50KCksaC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3JfZGVzY3JpcHRpb246Xy5tZXNzYWdlfX0pLFszLDhdO2Nhc2UgODpyZXR1cm5bMl19dmFyIGcsbSxrLFB9KSl9KSl9KSl9KCk7Cgo=",!1)).indexOf("\n",10)+1,b=p.substring(g)+"",_=new Blob([b],{type:"application/javascript"}),URL.createObjectURL(_)),new Worker(iY,f)},i5={},i3=function(){function e(f,p){this.cache=f,this.clientId=p,this.manifestKey=this.createManifestKeyFrom(this.clientId)}return e.prototype.add=function(f){var p;return o(this,void 0,void 0,function(){var g,b;return i(this,function(_){switch(_.label){case 0:return b=Set.bind,[4,this.cache.get(this.manifestKey)];case 1:return(g=new(b.apply(Set,[void 0,(null===(p=_.sent())||void 0===p?void 0:p.keys)||[]]))).add(f),[4,this.cache.set(this.manifestKey,{keys:a([],c(g),!1)})];case 2:return _.sent(),[2]}})})},e.prototype.remove=function(f){return o(this,void 0,void 0,function(){var p,g;return i(this,function(b){switch(b.label){case 0:return[4,this.cache.get(this.manifestKey)];case 1:return(p=b.sent())?((g=new Set(p.keys)).delete(f),g.size>0?[4,this.cache.set(this.manifestKey,{keys:a([],c(g),!1)})]:[3,3]):[3,5];case 2:case 4:return[2,b.sent()];case 3:return[4,this.cache.remove(this.manifestKey)];case 5:return[2]}})})},e.prototype.get=function(){return this.cache.get(this.manifestKey)},e.prototype.clear=function(){return this.cache.remove(this.manifestKey)},e.prototype.createManifestKeyFrom=function(f){return"".concat("@@auth0spajs@@","::").concat(f)},e}(),i4=new iP,i6={memory:function(){return(new va).enclosedCache},localstorage:function(){return new iZ}},Fa=function(f){return i6[f]},i8=function(){function e(f){var p,g,b,_,w,S,E=this;if(this.options=f,this._releaseLockOnPageHide=function(){return o(E,void 0,void 0,function(){return i(this,function(f){switch(f.label){case 0:return[4,i4.releaseLock("auth0.lock.getTokenSilently")];case 1:return f.sent(),window.removeEventListener("pagehide",this._releaseLockOnPageHide),[2]}})})},"undefined"!=typeof window&&function(){if(!Qc())throw Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(void 0===qc())throw Error("\n      auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/master/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.\n    ")}(),f.cache&&f.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),f.cache)w=f.cache;else{if(this.cacheLocation=f.cacheLocation||"memory",!Fa(this.cacheLocation))throw Error('Invalid cache location "'.concat(this.cacheLocation,'"'));w=Fa(this.cacheLocation)()}this.httpTimeoutMs=f.httpTimeoutInSeconds?1e3*f.httpTimeoutInSeconds:1e4,this.cookieStorage=!1===f.legacySameSiteCookie?i0:i1,this.orgHintCookieName=(S=this.options.client_id,"auth0.".concat(S,".organization_hint")),this.isAuthenticatedCookieName=(T=this.options.client_id,"auth0.".concat(T,".is.authenticated")),this.sessionCheckExpiryDays=f.sessionCheckExpiryDays||1;var T,x,k=f.useCookiesForTransactions?this.cookieStorage:i2;this.scope=this.options.scope,this.transactionManager=new iX(k,this.options.client_id),this.nowProvider=this.options.nowProvider||Uc,this.cacheManager=new iK(w,w.allKeys?null:new i3(w,this.options.client_id),this.nowProvider),this.domainUrl=(x=this.options.domain,/^https?:\/\//.test(x)?x:"https://".concat(x)),this.tokenIssuer=(p=this.options.issuer,g=this.domainUrl,p?p.startsWith("https://")?p:"https://".concat(p,"/"):"".concat(g,"/")),this.defaultScope=ha("openid",void 0!==(null===(_=null===(b=this.options)||void 0===b?void 0:b.advancedOptions)||void 0===_?void 0:_.defaultScope)?this.options.advancedOptions.defaultScope:"openid profile email"),this.options.useRefreshTokens&&(this.scope=ha(this.scope,"offline_access")),"undefined"!=typeof window&&window.Worker&&this.options.useRefreshTokens&&"memory"===this.cacheLocation&&!/Trident.*rv:11\.0/.test(navigator.userAgent)&&(this.worker=new Ea),this.customOptions=(f.advancedOptions,f.audience,f.auth0Client,f.authorizeTimeoutInSeconds,f.cacheLocation,f.cache,f.client_id,f.domain,f.issuer,f.leeway,f.max_age,f.nowProvider,f.redirect_uri,f.scope,f.useRefreshTokens,f.useRefreshTokensFallback,f.useCookiesForTransactions,f.useFormData,r(f,["advancedOptions","audie
21nce","auth0Client","authorizeTimeoutInSeconds","cacheLocation","cache","client_id","domain","issuer","leeway","max_age","nowProvider","redirect_uri","scope","useRefreshTokens","useRefreshTokensFallback","useCookiesForTransactions","useFormData"])),this.useRefreshTokensFallback=!1!==this.options.useRefreshTokensFallback}return e.prototype._url=function(f){var p=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||iD)));return"".concat(this.domainUrl).concat(f,"&auth0Client=").concat(p)},e.prototype._getParams=function(f,p,g,b,_){var w=this.options;w.useRefreshTokens,w.useCookiesForTransactions,w.useFormData,w.auth0Client,w.cacheLocation,w.advancedOptions,w.detailedResponse,w.nowProvider,w.authorizeTimeoutInSeconds,w.legacySameSiteCookie,w.sessionCheckExpiryDays,w.domain,w.leeway,w.httpTimeoutInSeconds;var S=r(w,["useRefreshTokens","useCookiesForTransactions","useFormData","auth0Client","cacheLocation","advancedOptions","detailedResponse","nowProvider","authorizeTimeoutInSeconds","legacySameSiteCookie","sessionCheckExpiryDays","domain","leeway","httpTimeoutInSeconds"]);return n(n(n({},S),f),{scope:ha(this.defaultScope,this.scope,f.scope),response_type:"code",response_mode:"query",state:p,nonce:g,redirect_uri:_||this.options.redirect_uri,code_challenge:b,code_challenge_method:"S256"})},e.prototype._authorizeUrl=function(f){return this._url("/authorize?".concat(ta(f)))},e.prototype._verifyIdToken=function(f,p,g){return o(this,void 0,void 0,function(){var b;return i(this,function(_){switch(_.label){case 0:return[4,this.nowProvider()];case 1:return b=_.sent(),[2,Sa({iss:this.tokenIssuer,aud:this.options.client_id,id_token:f,nonce:p,organizationId:g,leeway:this.options.leeway,max_age:this._parseNumber(this.options.max_age),now:b})]}})})},e.prototype._parseNumber=function(f){return"string"!=typeof f?f:parseInt(f,10)||void 0},e.prototype._processOrgIdHint=function(f){f?this.cookieStorage.save(this.orgHintCookieName,f,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})},e.prototype.buildAuthorizeUrl=function(f){return void 0===f&&(f={}),o(this,void 0,void 0,function(){var p,g,b,_,w,S,E,T,x,k,C;return i(this,function(O){switch(O.label){case 0:return p=f.redirect_uri,g=f.appState,b=r(f,["redirect_uri","appState"]),_=ea($c()),w=ea($c()),[4,na(S=$c())];case 1:return E=oa(O.sent()),T=f.fragment?"#".concat(f.fragment):"",x=this._getParams(b,_,w,E,p),k=this._authorizeUrl(x),C=f.organization||this.options.organization,this.transactionManager.create(n({nonce:w,code_verifier:S,appState:g,scope:x.scope,audience:x.audience||"default",redirect_uri:x.redirect_uri,state:_},C&&{organizationId:C})),[2,k+T]}})})},e.prototype.loginWithPopup=function(f,p){return o(this,void 0,void 0,function(){var g,b,_,w,S,E,T,x,k,C,O,R;return i(this,function(A){var j,D,B;switch(A.label){case 0:if(f=f||{},!(p=p||{}).popup&&(p.popup=(j=window.screenX+(window.innerWidth-400)/2,D=window.screenY+(window.innerHeight-600)/2,window.open("","auth0:authorize:popup","left=".concat(j,",top=").concat(D,",width=").concat(400,",height=").concat(600,",resizable,scrollbars=yes,status=1"))),!p.popup))throw Error("Unable to open a popup for loginWithPopup - window.open returned `null`");return g=r(f,[]),b=ea($c()),_=ea($c()),[4,na(w=$c())];case 1:return S=oa(A.sent()),E=this._getParams(g,b,_,S,this.options.redirect_uri||window.location.origin),T=this._authorizeUrl(n(n({},E),{response_mode:"web_message"})),p.popup.location.href=T,[4,(B=n(n({},p),{timeoutInSeconds:p.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}),new Promise(function(f,p){var g,b=setInterval(function(){B.popup&&B.popup.closed&&(clearInterval(b),clearTimeout(_),window.removeEventListener("message",g,!1),p(new iM(B.popup)))},1e3),_=setTimeout(function(){clearInterval(b),p(new iN(B.popup)),window.removeEventListener("message",g,!1)},1e3*(B.timeoutInSeconds||60));g=function(w){if(w.data&&"authorization_response"===w.data.type){if(clearTimeout(_),clearInterval(b),window.removeEventListener("message",g,!1),B.popup.close(),w.data.response.error)return p(iB.fromPayload(w.data.response));f(w.data.response)}},window.addEventListener("message",g)}))];case 2:if(x=A.sent(),b!==x.state)throw Error("Invalid state");return[4,fa({audience:E.audience,scope:E.scope,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:w,co
21de:x.code,grant_type:"authorization_code",redirect_uri:E.redirect_uri,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},this.worker)];case 3:return k=A.sent(),C=f.organization||this.options.organization,[4,this._verifyIdToken(k.id_token,_,C)];case 4:return O=A.sent(),R=n(n({},k),{decodedToken:O,scope:E.scope,audience:E.audience||"default",client_id:this.options.client_id}),[4,this.cacheManager.set(R)];case 5:return A.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgIdHint(O.claims.org_id),[2]}})})},e.prototype.getUser=function(f){return void 0===f&&(f={}),o(this,void 0,void 0,function(){var p,g,b;return i(this,function(_){switch(_.label){case 0:return p=f.audience||this.options.audience||"default",g=ha(this.defaultScope,this.scope,f.scope),[4,this.cacheManager.get(new iG({client_id:this.options.client_id,audience:p,scope:g}))];case 1:return[2,(b=_.sent())&&b.decodedToken&&b.decodedToken.user]}})})},e.prototype.getIdTokenClaims=function(f){return void 0===f&&(f={}),o(this,void 0,void 0,function(){var p,g,b;return i(this,function(_){switch(_.label){case 0:return p=f.audience||this.options.audience||"default",g=ha(this.defaultScope,this.scope,f.scope),[4,this.cacheManager.get(new iG({client_id:this.options.client_id,audience:p,scope:g}))];case 1:return[2,(b=_.sent())&&b.decodedToken&&b.decodedToken.claims]}})})},e.prototype.loginWithRedirect=function(f){return void 0===f&&(f={}),o(this,void 0,void 0,function(){var p,g,b;return i(this,function(_){switch(_.label){case 0:return p=f.redirectMethod,g=r(f,["redirectMethod"]),[4,this.buildAuthorizeUrl(g)];case 1:return b=_.sent(),window.location[p||"assign"](b),[2]}})})},e.prototype.handleRedirectCallback=function(f){return void 0===f&&(f=window.location.href),o(this,void 0,void 0,function(){var p,g,b,_,w,S,E,T,x,k;return i(this,function(C){switch(C.label){case 0:var O,R,A;if(0===(p=f.split("?").slice(1)).length)throw Error("There are no query params available for parsing.");if((O=p.join("")).indexOf("#")>-1&&(O=O.substr(0,O.indexOf("#"))),R=O.split("&"),A={},R.forEach(function(f){var p=c(f.split("="),2),g=p[0],b=p[1];A[g]=decodeURIComponent(b)}),A.expires_in&&(A.expires_in=parseInt(A.expires_in)),b=(g=A).state,_=g.code,w=g.error,S=g.error_description,!(E=this.transactionManager.get()))throw Error("Invalid state");if(this.transactionManager.remove(),w)throw new iU(w,S,b,E.appState);if(!E.code_verifier||E.state&&E.state!==b)throw Error("Invalid state");return T={audience:E.audience,scope:E.scope,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:E.code_verifier,grant_type:"authorization_code",code:_,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},void 0!==E.redirect_uri&&(T.redirect_uri=E.redirect_uri),[4,fa(T,this.worker)];case 1:return x=C.sent(),[4,this._verifyIdToken(x.id_token,E.nonce,E.organizationId)];case 2:return k=C.sent(),[4,this.cacheManager.set(n(n(n(n({},x),{decodedToken:k,audience:E.audience,scope:E.scope}),x.scope?{oauthTokenScope:x.scope}:null),{client_id:this.options.client_id}))];case 3:return C.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgIdHint(k.claims.org_id),[2,{appState:E.appState}]}})})},e.prototype.checkSession=function(f){return o(this,void 0,void 0,function(){var p;return i(this,function(g){switch(g.label){case 0:if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return[2];this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}g.label=1;case 1:return g.trys.push([1,3,,4]),[4,this.getTokenSilently(f)];case 2:return g.sent(),[3,4];case 3:if(p=g.sent(),!ij.includes(p.error))throw p;return[3,4];case 4:return[2]}})})},e.prototype.getTokenSilently=function(f){return void 0===f&&(f={}),o(this,void 0,void 0,function(){var p,g,b,_,w=this;return i(this,function(S){var E,T;switch(S.label){case 0:return g=(p=n(n({audience:this.options.audience,ignoreCache:!1},f),{scope:ha(this.defaultScope,this.scope,f.scope)})).ignoreCache,b=r(p,["ignoreCache"]),[4,((T=i5[E="".concat(this.options.client_id,"::").concat(b.audie
21nce,"::").concat(b.scope)])||(T=w._getTokenSilently(n({ignoreCache:g},b)).finally(function(){delete i5[E],T=null}),i5[E]=T),T)];case 1:return _=S.sent(),[2,f.detailedResponse?_:_.access_token]}})})},e.prototype._getTokenSilently=function(f){return void 0===f&&(f={}),o(this,void 0,void 0,function(){var p,g,b,_,w,S,E,T,x;return i(this,function(k){switch(k.label){case 0:return p=f.ignoreCache,g=r(f,["ignoreCache"]),p?[3,2]:[4,this._getEntryFromCache({scope:g.scope,audience:g.audience||"default",client_id:this.options.client_id})];case 1:if(b=k.sent())return[2,b];k.label=2;case 2:return[4,o(void 0,void 0,void 0,function(){var f;return i(this,function(p){switch(p.label){case 0:f=0,p.label=1;case 1:return f<10?[4,i4.acquireLock("auth0.lock.getTokenSilently",5e3)]:[3,4];case 2:if(p.sent())return[2,!0];p.label=3;case 3:return f++,[3,1];case 4:return[2,!1]}})})];case 3:if(!k.sent())return[3,15];k.label=4;case 4:return k.trys.push([4,,12,14]),window.addEventListener("pagehide",this._releaseLockOnPageHide),p?[3,6]:[4,this._getEntryFromCache({scope:g.scope,audience:g.audience||"default",client_id:this.options.client_id})];case 5:if(b=k.sent())return[2,b];k.label=6;case 6:return this.options.useRefreshTokens?[4,this._getTokenUsingRefreshToken(g)]:[3,8];case 7:return w=k.sent(),[3,10];case 8:return[4,this._getTokenFromIFrame(g)];case 9:w=k.sent(),k.label=10;case 10:return _=w,[4,this.cacheManager.set(n({client_id:this.options.client_id},_))];case 11:return k.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),S=_.id_token,E=_.access_token,T=_.oauthTokenScope,x=_.expires_in,[2,n(n({id_token:S,access_token:E},T?{scope:T}:null),{expires_in:x})];case 12:return[4,i4.releaseLock("auth0.lock.getTokenSilently")];case 13:return k.sent(),window.removeEventListener("pagehide",this._releaseLockOnPageHide),[7];case 14:return[3,16];case 15:throw new iH;case 16:return[2]}})})},e.prototype.getTokenWithPopup=function(f,p){return void 0===f&&(f={}),void 0===p&&(p={}),o(this,void 0,void 0,function(){return i(this,function(g){switch(g.label){case 0:return f.audience=f.audience||this.options.audience,f.scope=ha(this.defaultScope,this.scope,f.scope),p=n(n({},iL),p),[4,this.loginWithPopup(f,p)];case 1:return g.sent(),[4,this.cacheManager.get(new iG({scope:f.scope,audience:f.audience||"default",client_id:this.options.client_id}))];case 2:return[2,g.sent().access_token]}})})},e.prototype.isAuthenticated=function(){return o(this,void 0,void 0,function(){return i(this,function(f){switch(f.label){case 0:return[4,this.getUser()];case 1:return[2,!!f.sent()]}})})},e.prototype.buildLogoutUrl=function(f){void 0===f&&(f={}),null!==f.client_id?f.client_id=f.client_id||this.options.client_id:delete f.client_id;var p=f.federated,g=r(f,["federated"]);return this._url("/v2/logout?".concat(ta(g)))+(p?"&federated":"")},e.prototype.logout=function(f){var p=this;void 0===f&&(f={});var g=f.localOnly,b=r(f,["localOnly"]);if(g&&b.federated)throw Error("It is invalid to set both the `federated` and `localOnly` options to `true`");var i=function(){if(p.cookieStorage.remove(p.orgHintCookieName,{cookieDomain:p.options.cookieDomain}),p.cookieStorage.remove(p.isAuthenticatedCookieName,{cookieDomain:p.options.cookieDomain}),!g){var f=p.buildLogoutUrl(b);window.location.assign(f)}};if(this.options.cache)return this.cacheManager.clear().then(function(){return i()});this.cacheManager.clearSync(),i()},e.prototype._getTokenFromIFrame=function(f){return o(this,void 0,void 0,function(){var p,g,b,_,w,S,E,T,x,k,C,O,R,A,j,D;return i(this,function(B){var U,H,N;switch(B.label){case 0:return p=ea($c()),g=ea($c()),[4,na(b=$c())];case 1:_=oa(B.sent()),w=r(f,["detailedResponse"]),S=this._getParams(w,p,g,_,f.redirect_uri||this.options.redirect_uri||window.location.origin),(E=this.cookieStorage.get(this.orgHintCookieName))&&!S.organization&&(S.organization=E),T=this._authorizeUrl(n(n({},S),{prompt:"none",response_mode:"web_message"})),B.label=2;case 2:if(B.trys.push([2,6,,7]),window.crossOriginIsolated)throw new iB("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");
21return x=f.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,[4,(U=T,H=this.domainUrl,void 0===(N=x)&&(N=60),new Promise(function(f,p){var g=window.document.createElement("iframe");g.setAttribute("width","0"),g.setAttribute("height","0"),g.style.display="none";var b,o=function(){window.document.body.contains(g)&&(window.document.body.removeChild(g),window.removeEventListener("message",b,!1))},_=setTimeout(function(){p(new iH),o()},1e3*N);b=function(g){if(g.origin==H&&g.data&&"authorization_response"===g.data.type){var w=g.source;w&&w.close(),g.data.response.error?p(iB.fromPayload(g.data.response)):f(g.data.response),clearTimeout(_),window.removeEventListener("message",b,!1),setTimeout(o,2e3)}},window.addEventListener("message",b,!1),window.document.body.appendChild(g),g.setAttribute("src",U)}))];case 3:if(k=B.sent(),p!==k.state)throw Error("Invalid state");return C=f.scope,O=f.audience,R=r(f,["scope","audience","redirect_uri","ignoreCache","timeoutInSeconds","detailedResponse"]),[4,fa(n(n(n({},this.customOptions),R),{scope:C,audience:O,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:b,code:k.code,grant_type:"authorization_code",redirect_uri:S.redirect_uri,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:R.timeout||this.httpTimeoutMs}),this.worker)];case 4:return A=B.sent(),[4,this._verifyIdToken(A.id_token,g)];case 5:return j=B.sent(),this._processOrgIdHint(j.claims.org_id),[2,n(n({},A),{decodedToken:j,scope:S.scope,oauthTokenScope:A.scope,audience:S.audience||"default"})];case 6:throw"login_required"===(D=B.sent()).error&&this.logout({localOnly:!0}),D;case 7:return[2]}})})},e.prototype._getTokenUsingRefreshToken=function(f){return o(this,void 0,void 0,function(){var p,g,b,_,w,S,E,T,x;return i(this,function(k){switch(k.label){case 0:return f.scope=ha(this.defaultScope,this.options.scope,f.scope),[4,this.cacheManager.get(new iG({scope:f.scope,audience:f.audience||"default",client_id:this.options.client_id}))];case 1:return(p=k.sent())&&p.refresh_token||this.worker?[3,4]:this.useRefreshTokensFallback?[4,this._getTokenFromIFrame(f)]:[3,3];case 2:return[2,k.sent()];case 3:throw new iz(f.audience||"default",f.scope);case 4:g=f.redirect_uri||this.options.redirect_uri||window.location.origin,_=f.scope,w=f.audience,S=r(f,["scope","audience","ignoreCache","timeoutInSeconds","detailedResponse"]),E="number"==typeof f.timeoutInSeconds?1e3*f.timeoutInSeconds:null,k.label=5;case 5:return k.trys.push([5,7,,10]),[4,fa(n(n(n(n(n({},this.customOptions),S),{audience:w,scope:_,baseUrl:this.domainUrl,client_id:this.options.client_id,grant_type:"refresh_token",refresh_token:p&&p.refresh_token,redirect_uri:g}),E&&{timeout:E}),{auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs}),this.worker)];case 6:return b=k.sent(),[3,10];case 7:return((T=k.sent()).message.indexOf("Missing Refresh Token")>-1||T.message&&T.message.indexOf("invalid refresh token")>-1)&&this.useRefreshTokensFallback?[4,this._getTokenFromIFrame(f)]:[3,9];case 8:return[2,k.sent()];case 9:throw T;case 10:return[4,this._verifyIdToken(b.id_token)];case 11:return x=k.sent(),[2,n(n({},b),{decodedToken:x,scope:f.scope,oauthTokenScope:b.scope,audience:f.audience||"default"})]}})})},e.prototype._getEntryFromCache=function(f){var p=f.scope,g=f.audience,b=f.client_id;return o(this,void 0,void 0,function(){var f,_,w,S,E;return i(this,function(T){switch(T.label){case 0:return[4,this.cacheManager.get(new iG({scope:p,audience:g,client_id:b}),60)];case 1:return(f=T.sent())&&f.access_token?(_=f.id_token,w=f.access_token,S=f.oauthTokenScope,E=f.expires_in,[2,n(n({id_token:_,access_token:w},S?{scope:S}:null),{expires_in:E})]):[2]}})})},e}(),i9={isAuthenticated:!1,isLoading:!0},stub=function(){throw Error("You forgot to wrap your component in <Auth0Provider>.")},i7=__assign(__assign({},i9),{buildAuthorizeUrl:stub,buildLogoutUrl:stub,getAccessTokenSilently:stub,getAccessTokenWithPopup:stub,getIdTokenClaims:stub,loginWithRedirect:stub,loginWithPopup:stub,logout:stub,handleRedirectCallback:stub}),oe=(0,S.createContext)(i7),ot=function(f){function OAuthError(p,g){var b=f.call(this,g||p)||this;return b.error=p,b.error_description=g,Object.setPrototypeOf(b,OAuthError.prototype),b}return!function(f,p){if("function"!=typeof p&&null!==p)throw TypeError("Class extends value "+String(p)+" is not a constructor or null");function __(){this.constructor=f}extendStatics(f,p),f.prototype=null===p?Object.create(p):(__.prototype=p.prototype,new __)}(OAuthError,f),OAuthError}(Error),on=/[?&]code=[^&]+/,or=/[?&]state=[^&]+/,oi=/[?&]error=[^&]+/,normalizeErrorFn=function(f){return function(p){return"error"in p?new ot(p.error,p.error_description):p instanceof Error?p:Error(f)}},oo=normalizeErrorFn("Login failed"),os=normalizeErrorFn("Get access token failed"),reducer=function(f,p){var g,b;switch(p.type){case"LOGIN_POPUP_STARTED":return __assign(__assign({},f),{isLoading:!0});case"LOGIN_POPUP_COMPLETE":case"INITIALISED":return __assign(__assign({},f),{isAuthenticated:!!p.user,user:p.user,isLoading:!1,error:void 0});case"HANDLE_REDIRECT_COMPLETE":case"GET_ACCESS_TOKEN_COMPLETE":if((null===(g=f.user)||void 0===g?void 0:g.updated_at)===(null===(b=p.user)||void 0===b?void 0:b.updated_at))return f;return __assign(__assign({},f),{isAuthenticated:!!p.user,user:p.user});case"LOGOUT":return __assign(__assign({},f),{isAuthenticated:!1,user:void 0});case"ERROR":return __assign(__assign({},f),{isLoading:!1,error:p.error})}},toAuth0ClientOptions=function(f){var p=f.clientId,g=f.redirectUri,b=f.maxAge,_=__rest(f,["clientId","redirectUri","maxAge"]);return __assign(__assign({},_),{client_id:p,redirect_uri:g,max_age:b,auth0Client:{name:"auth0-react",version:"1.12.1"}})},toAuth0LoginRedirectOptions=function(f){if(f){var p=f.redirectUri,g=__rest(f,["redirectUri"]);return __assign(__assign({},g),{redirect_uri:p})}},defaultOnRedirectCallback=function(f){window.history.replaceState({},document.title,(null==f?void 0:f.returnTo)||window.location.pathname)},Auth0Provider=function(f){var p=f.children,g=f.skipRedirectCallback,b=f.onRedirectCallback,_=void 0===b?defaultOnRedirectCallback:b,w=f.context,E=__rest(f,["children","skipRedirectCallback","onRedirectCallback","context"]),T=(0,S.useState)(function(){return new i8(toAuth0ClientOptions(E))})[0],x=(0,S.useReducer)(reducer,i9),k=x[0],C=x[1],O=(0,S.useRef)(!1);(0,S.useEffect)(function(){O.current||(O.current=!0,__awaiter(void 0,void 0,void 0,function(){var f,p;return __generator(this,function(b){switch(b.label){case 0:var w;if(b.trys.push([0,7,,8]),f=void 0,void 0===w&&(w=window.location.search),!((on.test(w)||oi.test(w))&&or.test(w))||g)return[3,3];return[4,T.handleRedirectCallback()];case 1:return p=b.sent().appState,[4,T.getUser()];case 2:return f=b.sent(),_(p,f),[3,6];case 3:return[4,T.checkSession()];case 4:return b.sent(),[4,T.getUser()];case 5:f=b.sent(),b.label=6;case 6:return C({type:"INITIALISED",user:f}),[3,8];case 7:return C({type:"ERROR",error:oo(b.sent())}),[3,8];case 8:return[2]}})}))},[T,_,g]);var R=(0,S.useCallback)(function(f){return T.buildAuthorizeUrl(toAuth0LoginRedirectOptions(f))},[T]),A=(0,S.useCallback)(function(f){return T.buildLogoutUrl(f)},[T]),j=(0,S.useCallback)(function(f){return T.loginWithRedirect(toAuth0LoginRedirectOptions(f))},[T]),D=(0,S.useCallback)(function(f,p){return __awaiter(void 0,void 0,void 0,function(){return __generator(this,function(g){switch(g.label){case 0:C({type:"LOGIN_POPUP_STARTED"}),g.label=1;case 1:return g.trys.push([1,3,,4]),[4,T.loginWithPopup(f,p)];case 2:return g.sent(),[3,4];case 3:return C({type:"ERROR",error:oo(g.sent())}),[2];case 4:return[4,T.getUser()];case 5:return C({type:"LOGIN_POPUP_COMPLETE",user:g.sent()}),[2]}})})},[T]),B=(0,S.useCallback)(function(f){void 0===f&&(f={});var p=T.logout(f);if(f.localOnly){if(p&&"function"==typeof p.then)return p.then(function(){return C({type:"LOGOUT"})});C({type:"LOGOUT"})}return p},[T]),U=(0,S.useCallback)(function(f){return __awaiter(void 0,void 0,void 0,function(){var p,g,b;return __generator(this,function(_){switch(_.label){case 0:return _.trys.push([0,2,3,5]),[4,T.getTokenSilently(f)];case 1:return p=_.sent(),[3,5];case 2:throw os(_.sent());case 3:return g=C,b={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,T.getUser()];case 4:return g.apply(void 0,[(b.user=_.sent(),b)]),[7];case 5:return[2,p]}})})},[T]),H=(0,S.useCallback)(function(f,p){return __awaiter(void 0,void 0,void 0,function(){var g,b,_;return __generator(this,function(w){switch(w.label){case 0:return w.trys.push([0,2,3,5]),[4,T.getTokenWithPopup(f,p)];case 1:return g=w.sent(),[3,5];case 2:throw os(w.sent());case 3:return b=C,_={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,T.getUser()];case 4:return b.apply(void 0,[(_.user=w.sent(),_)]),[7];case 5:return[2,g]}})})},[T]),N=(0,S.useCallback)(function(f){return T.getIdTokenClaims(f)},[T]),M=(0,S.useCallback)(function(f){return __awaiter(void 0,void 0,void 0,function(){var p,g;return __generator(this,function(b){switch(b.label){case 0:return b.trys.push([0,2,3,5]),[4,T.handleRedirectCallback(f)];case 1:return[2,b.sent()];case 2:throw os(b.sent());case 3:return p=C,g={type:"HANDLE_REDIRECT_COMPLETE"},[4,T.getUser()];case 4:return p.apply(void 0,[(g.user=b.sent(),g)]),[7];case 5:return[2]}})})},[T]),W=(0,S.useMemo)(function(){return __assign(__assign({},k),{buildAuthorizeUrl:R,buildLogoutUrl:A,getAccessTokenSilently:U,getAccessTokenWithPopup:H,getIdTokenClaims:N,loginWithRedirect:j,loginWithPopup:D,logout:B,handleRedirectCallback:M})},[k,R,A,U,H,N,j,D,B,M]);return S.createElement((void 0===w?oe:w).Provider,{value:W},p)};g(76621);let oc={domain:"httpie.us.auth0.com",clientId:"fs179WVDOH9cWw3ZPx04OSiPDMhXOUDG"},ConfiguredAuth0Provider=f=>{let{children:p}=f;return(0,b.jsx)(Auth0Provider,{...oc,audience:"pie-app",cacheLocation:"localstorage",useRefreshTokens:!0,children:p})};g(36252);var _app=f=>{let{Component:p,pageProps:g}=f;return useSmoothScrollPolyfill(),(0,b.jsx)(ConfiguredAuth0Provider,{children:(0,b.jsx)(w.Z,{children:(0,b.jsx)(_.ZP,{children:(0,b.jsx)(SWRFetcherProvider,{children:(0,b.jsx)(x.f6,{children:(0,b.jsx)(p,{...g})})})})})})}},49341:function(f,p,g){"use strict";let{fontWeight:b}=g(75874);f.exports={mode:"jit",content:["./sections/**/*.{js,ts,jsx,tsx,css,sass}","./components/**/*.{js,ts,jsx,tsx,css,sass}","./components/**/*.stories.{js,ts,jsx,tsx}","./pages/**/*.{js,ts,jsx,tsx,css,sass}","./lib/**/*.{js,ts,jsx,tsx,css,sass}"],darkMode:"class",plugins:[g(50130)],theme:{screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},fontFamily:{headline:["Pie Headline","Impact"],sans:["Pie Body","sans-serif"],mono:["Pie Monospace","monospace"]},fontWeight:{...b,slim:300,neutral:400,median:600}
21,boxShadow:f=>({green:"0 0 0 1px ".concat(f("colors.green"))}),letterSpacing:{headline:"0.012em",base:"0.011em"},extend:{fontSize:{15:"15px",14:"14px"},lineHeight:{headline:"0.8em",tight:"1.2em","1-3":"1.3",loose:"1.4em",20:"20px"},backgroundImage:{"cli-background-dark":'url("/Images/cli-background-dark.svg")',"cli-background-light":'url("/Images/cli-background-light.svg")',"cli-background-desktop-dark":'url("/Images/cli-background-desktop-dark.svg")',"cli-background-desktop-light":'url("/Images/cli-background-desktop-light.svg")'},backgroundPosition:{"position-cli-background-desktop":"-1400px 50%"},gridTemplateColumns:{22:"repeat(22, minmax(0, 1fr))"},gridColumnStart:{13:"13",14:"14",15:"15",16:"16",17:"17",18:"18",19:"19",20:"20",21:"21",22:"22",23:"23"},gridColumnEnd:{13:"13",14:"14",15:"15",16:"16",17:"17",18:"18",19:"19",20:"20",21:"21",22:"22",23:"23"},keyframes:{"ping-slow":{"60%, 100%":{transform:"scale(1.5)",opacity:0}},fadeInOut:{"0%, 100%":{opacity:"0"},"20%, 90%":{opacity:"1"}},fadeIn:{"0%":{opacity:"0 "},"100%":{opacity:"1"}}},animation:{"spin-slow":"spin 3s linear infinite","ping-slow":"ping-slow 2s cubic-bezier(0.15, 0.27, 0.58, 1) infinite",fadeInOut:"fadeInOut 1.85s forwards ease",fadeIn:"fadeIn 0.15s forwards ease"}},colors:{transparent:"transparent",current:"currentColor",white:"#F5F5F0",black:"#1E1919",grey:{50:"#F5F5F0",100:"#EDEDEB",200:"#D1D1CF",300:"#B5B5B2",400:"#999999",500:"#7D7D7D",600:"#666663",700:"#4F4D4D",800:"#363636",900:"#1E1919",DEFAULT:"#7D7D7D"},aqua:{50:"#E8F0F5",100:"#D6E3ED",200:"#C4D9E5",300:"#B0CCDE",400:"#9EBFD6",500:"#8CB4CD",600:"#7A9EB5",700:"#698799",800:"#597082",900:"#455966",DEFAULT:"#8CB4CD"},purple:{50:"#F0E0FC",100:"#E3C7FA",200:"#D9ADF7",300:"#CC96F5",400:"#BF7DF2",500:"#B464F0",600:"#9E54D6",700:"#8745BA",800:"#70389E",900:"#5C2982",DEFAULT:"#B464F0"},orange:{50:"#FFEDDB",100:"#FFDEBF",200:"#FFCFA3",300:"#FFBF87",400:"#FFB06B",500:"#FFA24E",600:"#F2913D",700:"#E3822B",800:"#D6701C",900:"#C75E0A",DEFAULT:"#FFA24E"},red:{50:"#FFE0DE",100:"#FFC7C4",200:"#FFB0AB",300:"#FF968F",400:"#FF8075",500:"#FF665B",600:"#E34F45",700:"#C7382E",800:"#AD2117",900:"#910A00",DEFAULT:"#FF665B"},blue:{50:"#DBE3FA",100:"#BFCFF5",200:"#A1B8F2",300:"#85A3ED",400:"#698FEB",500:"#4B78E6",600:"#426BD1",700:"#3B5EBA",800:"#3354A6",900:"#2B478F",DEFAULT:"#4B78E6"}
21,pink:{50:"#FFEBFF",100:"#FCDBFC",200:"#FCCCFC",300:"#FCBAFC",400:"#FAABFA",500:"#FA9BFA",600:"#DE85DE",700:"#C26EC2",800:"#A854A6",900:"#8C3D8A",DEFAULT:"#FA9BFA"},green:{50:"#E3F7E8",100:"#CCF2D6",200:"#B5EDC4",300:"#A1E8B0",400:"#8AE09E",500:"#73DC8C",600:"#63C27A",700:"#52AB66",800:"#429154",900:"#307842",DEFAULT:"#73DC8C"},yellow:{50:"#F7F7DB",100:"#F2F2BF",200:"#EDEDA6",300:"#E5E88A",400:"#E0E36E",500:"#DBDE52",600:"#CCCC3D",700:"#BABA29",800:"#ABA614",900:"#999400",DEFAULT:"#DBDE52"}}}}},21876:function(f){!function(){var p={675:function(f,p){"use strict";p.byteLength=function(f){var p=getLens(f),g=p[0],b=p[1];return(g+b)*3/4-b},p.toByteArray=function(f){var p,g,w=getLens(f),S=w[0],E=w[1],T=new _((S+E)*3/4-E),x=0,k=E>0?S-4:S;for(g=0;g<k;g+=4)p=b[f.charCodeAt(g)]<<18|b[f.charCodeAt(g+1)]<<12|b[f.charCodeAt(g+2)]<<6|b[f.charCodeAt(g+3)],T[x++]=p>>16&255,T[x++]=p>>8&255,T[x++]=255&p;return 2===E&&(p=b[f.charCodeAt(g)]<<2|b[f.charCodeAt(g+1)]>>4,T[x++]=255&p),1===E&&(p=b[f.charCodeAt(g)]<<10|b[f.charCodeAt(g+1)]<<4|b[f.charCodeAt(g+2)]>>2,T[x++]=p>>8&255,T[x++]=255&p),T},p.fromByteArray=function(f){for(var p,b=f.length,_=b%3,w=[],S=0,E=b-_;S<E;S+=16383)w.push(function(f,p,b){for(var _,w=[],S=p;S<b;S+=3)w.push(g[(_=(f[S]<<16&16711680)+(f[S+1]<<8&65280)+(255&f[S+2]))>>18&63]+g[_>>12&63]+g[_>>6&63]+g[63&_]);return w.join("")}(f,S,S+16383>E?E:S+16383));return 1===_?w.push(g[(p=f[b-1])>>2]+g[p<<4&63]+"=="):2===_&&w.push(g[(p=(f[b-2]<<8)+f[b-1])>>10]+g[p>>4&63]+g[p<<2&63]+"="),w.join("")};for(var g=[],b=[],_="undefined"!=typeof Uint8Array?Uint8Array:Array,w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S=0,E=w.length;S<E;++S)g[S]=w[S],b[w.charCodeAt(S)]=S;function getLens(f){var p=f.length;if(p%4>0)throw Error("Invalid string. Length must be a multiple of 4");var g=f.indexOf("=");-1===g&&(g=p);var b=g===p?0:4-g%4;return[g,b]}b["-".charCodeAt(0)]=62,b["_".charCodeAt(0)]=63},72:function(f,p,g){"use strict";/*!
22 * The buffer module from node.js, for the browser.
23 *
24 * @author   Feross Aboukhadijeh <https://feross.org>
25 * @license  MIT
26 */var b=g(675),_=g(783),w="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function createBuffer(f){if(f>2147483647)throw RangeError('The value "'+f+'" is invalid for option "size"');var p=new Uint8Array(f);return Object.setPrototypeOf(p,Buffer.prototype),p}function Buffer(f,p,g){if("number"==typeof f){if("string"==typeof p)throw TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(f)}return from(f,p,g)}function from(f,p,g){if("string"==typeof f)return function(f,p){if(("string"!=typeof p||""===p)&&(p="utf8"),!Buffer.isEncoding(p))throw TypeError("Unknown encoding: "+p);var g=0|byteLength(f,p),b=createBuffer(g),_=b.write(f,p);return _!==g&&(b=b.slice(0,_)),b}(f,p);if(ArrayBuffer.isView(f))return fromArrayLike(f);if(null==f)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f);if(isInstance(f,ArrayBuffer)||f&&isInstance(f.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(isInstance(f,SharedArrayBuffer)||f&&isInstance(f.buffer,SharedArrayBuffer)))return function(f,p,g){var b;if(p<0||f.byteLength<p)throw RangeError('"offset" is outside of buffer bounds');if(f.byteLength<p+(g||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(b=void 0===p&&void 0===g?new Uint8Array(f):void 0===g?new Uint8Array(f,p):new Uint8Array(f,p,g),Buffer.prototype),b}(f,p,g);if("number"==typeof f)throw TypeError('The "value" argument must not be of type number. Received type number');var b=f.valueOf&&f.valueOf();if(null!=b&&b!==f)return Buffer.from(b,p,g);var _=function(f){if(Buffer.isBuffer(f)){var p,g=0|checked(f.length),b=createBuffer(g);return 0===b.length||f.copy(b,0,0,g),b}return void 0!==f.length?"number"!=typeof f.length||(p=f.length)!=p?createBuffer(0):fromArrayLike(f):"Buffer"===f.type&&Array.isArray(f.data)?fromArrayLike(f.data):void 0}(f);if(_)return _;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof f[Symbol.toPrimitive])return Buffer.from(f[Symbol.toPrimitive]("string"),p,g);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f)}function assertSize(f){if("number"!=typeof f)throw TypeError('"size" argument must be of type number');
26if(f<0)throw RangeError('The value "'+f+'" is invalid for option "size"')}function allocUnsafe(f){return assertSize(f),createBuffer(f<0?0:0|checked(f))}function fromArrayLike(f){for(var p=f.length<0?0:0|checked(f.length),g=createBuffer(p),b=0;b<p;b+=1)g[b]=255&f[b];return g}function checked(f){if(f>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|f}function byteLength(f,p){if(Buffer.isBuffer(f))return f.length;if(ArrayBuffer.isView(f)||isInstance(f,ArrayBuffer))return f.byteLength;if("string"!=typeof f)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof f);var g=f.length,b=arguments.length>2&&!0===arguments[2];if(!b&&0===g)return 0;for(var _=!1;;)switch(p){case"ascii":case"latin1":case"binary":return g;case"utf8":case"utf-8":return utf8ToBytes(f).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*g;case"hex":return g>>>1;case"base64":return base64ToBytes(f).length;default:if(_)return b?-1:utf8ToBytes(f).length;p=(""+p).toLowerCase(),_=!0}}function slowToString(f,p,g){var _,w,S=!1;if((void 0===p||p<0)&&(p=0),p>this.length||((void 0===g||g>this.length)&&(g=this.length),g<=0||(g>>>=0)<=(p>>>=0)))return"";for(f||(f="utf8");;)switch(f){case"hex":return function(f,p,g){var b=f.length;(!p||p<0)&&(p=0),(!g||g<0||g>b)&&(g=b);for(var _="",w=p;w<g;++w)_+=E[f[w]];return _}(this,p,g);case"utf8":case"utf-8":return utf8Slice(this,p,g);case"ascii":return function(f,p,g){var b="";g=Math.min(f.length,g);for(var _=p;_<g;++_)b+=String.fromCharCode(127&f[_]);return b}(this,p,g);case"latin1":case"binary":return function(f,p,g){var b="";g=Math.min(f.length,g);for(var _=p;_<g;++_)b+=String.fromCharCode(f[_]);return b}(this,p,g);case"base64":return _=p,w=g,0===_&&w===this.length?b.fromByteArray(this):b.fromByteArray(this.slice(_,w));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(f,p,g){for(var b=f.slice(p,g),_="",w=0;w<b.length;w+=2)_+=String.fromCharCode(b[w]+256*b[w+1]);return _}(this,p,g);default:if(S)throw TypeError("Unknown encoding: "+f);f=(f+"").toLowerCase(),S=!0}}function swap(f,p,g){var b=f[p];f[p]=f[g],f[g]=b}function bidirectionalIndexOf(f,p,g,b,_){var w;if(0===f.length)return -1;if("string"==typeof g?(b=g,g=0):g>2147483647?g=2147483647:g<-2147483648&&(g=-2147483648),(w=g=+g)!=w&&(g=_?0:f.length-1),g<0&&(g=f.length+g),g>=f.length){if(_)return -1;g=f.length-1}else if(g<0){if(!_)return -1;g=0}if("string"==typeof p&&(p=Buffer.from(p,b)),Buffer.isBuffer(p))return 0===p.length?-1:arrayIndexOf(f,p,g,b,_);if("number"==typeof p)return(p&=255,"function"==typeof Uint8Array.prototype.indexOf)?_?Uint8Array.prototype.indexOf.call(f,p,g):Uint8Array.prototype.lastIndexOf.call(f,p,g):arrayIndexOf(f,[p],g,b,_);throw TypeError("val must be string, number or Buffer")}function arrayIndexOf(f,p,g,b,_){var w,S=1,E=f.length,T=p.length;if(void 0!==b&&("ucs2"===(b=String(b).toLowerCase())||"ucs-2"===b||"utf16le"===b||"utf-16le"===b)){if(f.length<2||p.length<2)return -1;S=2,E/=2,T/=2,g/=2}function read(f,p){return 1===S?f[p]:f.readUInt16BE(p*S)}if(_){var x=-1;for(w=g;w<E;w++)if(read(f,w)===read(p,-1===x?0:w-x)){if(-1===x&&(x=w),w-x+1===T)return x*S}else -1!==x&&(w-=w-x),x=-1}else for(g+T>E&&(g=E-T),w=g;w>=0;w--){for(var k=!0,C=0;C<T;C++)if(read(f,w+C)!==read(p,C)){k=!1;break}if(k)return w}return -1}function utf8Slice(f,p,g){g=Math.min(f.length,g);for(var b=[],_=p;_<g;){var w,S,E,T,x=f[_],k=null,C=x>239?4:x>223?3:x>191?2:1;if(_+C<=g)switch(C){case 1:x<128&&(k=x);break;case 2:(192&(w=f[_+1]))==128&&(T=(31&x)<<6|63&w)>127&&(k=T);break;case 3:w=f[_+1],S=f[_+2],(192&w)==128&&(192&S)==128&&(T=(15&x)<<12|(63&w)<<6|63&S)>2047&&(T<55296||T>57343)&&(k=T);break;case 4:w=f[_+1],S=f[_+2],E=f[_+3],(192&w)==128&&(192&S)==128&&(192&E)==128&&(T=(15&x)<<18|(63&w)<<12|(63&S)<<6|63&E)>65535&&T<1114112&&(k=T)}null===k?(k=65533,C=1):k>65535&&(k-=65536,b.push(k>>>10&1023|55296),k=56320|1023&k),b.push(k),_+=C}return function(f){var p=f.length;if(p<=4096)return String.fromCharCode.apply(String,f);for(var g="",b=0;b<p;)g+=String.fromCharCode.apply(String,f.slice(b,b+=4096));return g}(b)}function checkOffset(f,p,g){if(f%1!=0||f<0)throw RangeError("offset is not uint");if(f+p>g)throw RangeError("Trying to access beyond buffer length")}function checkInt(f,p,g,b,_,w){if(!Buffer.isBuffer(f))throw TypeError('"buffer" argument must be a Buffer instance');if(p>_||p<w)throw RangeError('"value" argument is out of bounds');if(g+b>f.length)throw RangeError("Index out of range")}
vendor: 10,921 bytes, line 26
26function checkIEEE754(f,p,g,b,_,w){if(g+b>f.length||g<0)throw RangeError("Index out of range")}function writeFloat(f,p,g,b,w){return p=+p,g>>>=0,w||checkIEEE754(f,p,g,4,34028234663852886e22,-34028234663852886e22),_.write(f,p,g,b,23,4),g+4}function writeDouble(f,p,g,b,w){return p=+p,g>>>=0,w||checkIEEE754(f,p,g,8,17976931348623157e292,-17976931348623157e292),_.write(f,p,g,b,52,8),g+8}p.Buffer=Buffer,p.SlowBuffer=function(f){return+f!=f&&(f=0),Buffer.alloc(+f)},p.INSPECT_MAX_BYTES=50,p.kMaxLength=2147483647,Buffer.TYPED_ARRAY_SUPPORT=function(){try{var f=new Uint8Array(1),p={foo:function(){return 42}};return Object.setPrototypeOf(p,Uint8Array.prototype),Object.setPrototypeOf(f,p),42===f.foo()}catch(f){return!1}}(),Buffer.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Buffer.prototype,"parent",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.buffer}}),Object.defineProperty(Buffer.prototype,"offset",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.byteOffset}}),Buffer.poolSize=8192,Buffer.from=function(f,p,g){return from(f,p,g)},Object.setPrototypeOf(Buffer.prototype,Uint8Array.prototype),Object.setPrototypeOf(Buffer,Uint8Array),Buffer.alloc=function(f,p,g){return(assertSize(f),f<=0)?createBuffer(f):void 0!==p?"string"==typeof g?createBuffer(f).fill(p,g):createBuffer(f).fill(p):createBuffer(f)},Buffer.allocUnsafe=function(f){return allocUnsafe(f)},Buffer.allocUnsafeSlow=function(f){return allocUnsafe(f)},Buffer.isBuffer=function(f){return null!=f&&!0===f._isBuffer&&f!==Buffer.prototype},Buffer.compare=function(f,p){if(isInstance(f,Uint8Array)&&(f=Buffer.from(f,f.offset,f.byteLength)),isInstance(p,Uint8Array)&&(p=Buffer.from(p,p.offset,p.byteLength)),!Buffer.isBuffer(f)||!Buffer.isBuffer(p))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(f===p)return 0;for(var g=f.length,b=p.length,_=0,w=Math.min(g,b);_<w;++_)if(f[_]!==p[_]){g=f[_],b=p[_];break}return g<b?-1:b<g?1:0},Buffer.isEncoding=function(f){switch(String(f).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Buffer.concat=function(f,p){if(!Array.isArray(f))throw TypeError('"list" argument must be an Array of Buffers');if(0===f.length)return Buffer.alloc(0);if(void 0===p)for(g=0,p=0;g<f.length;++g)p+=f[g].length;var g,b=Buffer.allocUnsafe(p),_=0;for(g=0;g<f.length;++g){var w=f[g];if(isInstance(w,Uint8Array)&&(w=Buffer.from(w)),!Buffer.isBuffer(w))throw TypeError('"list" argument must be an Array of Buffers');w.copy(b,_),_+=w.length}return b},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function(){var f=this.length;if(f%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var p=0;p<f;p+=2)swap(this,p,p+1);return this},Buffer.prototype.swap32=function(){var f=this.length;if(f%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var p=0;p<f;p+=4)swap(this,p,p+3),swap(this,p+1,p+2);return this},Buffer.prototype.swap64=function(){var f=this.length;if(f%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var p=0;p<f;p+=8)swap(this,p,p+7),swap(this,p+1,p+6),swap(this,p+2,p+5),swap(this,p+3,p+4);return this},Buffer.prototype.toString=function(){var f=this.length;return 0===f?"":0==arguments.length?utf8Slice(this,0,f):slowToString.apply(this,arguments)},Buffer.prototype.toLocaleString=Buffer.prototype.toString,Buffer.prototype.equals=function(f){if(!Buffer.isBuffer(f))throw TypeError("Argument must be a Buffer");return this===f||0===Buffer.compare(this,f)},Buffer.prototype.inspect=function(){var f="",g=p.INSPECT_MAX_BYTES;return f=this.toString("hex",0,g).replace(/(.{2})/g,"$1 ").trim(),this.length>g&&(f+=" ... "),"<Buffer "+f+">"},w&&(Buffer.prototype[w]=Buffer.prototype.inspect),Buffer.prototype.compare=function(f,p,g,b,_){if(isInstance(f,Uint8Array)&&(f=Buffer.from(f,f.offset,f.byteLength)),!Buffer.isBuffer(f))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof f);if(void 0===p&&(p=0),void 0===g&&(g=f?f.length:0),void 0===b&&(b=0),void 0===_&&(_=this.length),p<0||g>f.length||b<0||_>this.length)throw RangeError("out of range index");if(b>=_&&p>=g)return 0;if(b>=_)return -1;if(p>=g)return 1;if(p>>>=0,g>>>=0,b>>>=0,_>>>=0,this===f)return 0;for(var w=_-b,S=g-p,E=Math.min(w,S),T=this.slice(b,_),x=f.slice(p,g),k=0;k<E;++k)if(T[k]!==x[k]){w=T[k],S=x[k];break}return w<S?-1:S<w?1:0},Buffer.prototype.includes=function(f,p,g){return -1!==this.indexOf(f,p,g)},Buffer.prototype.indexOf=function(f,p,g){return bidirectionalIndexOf(this,f,p,g,!0)},Buffer.prototype.lastIndexOf=function(f,p,g){return bidirectionalIndexOf(this,f,p,g,!1)},Buffer.prototype.write=function(f,p,g,b){if(void 0===p)b="utf8",g=this.length,p=0;else if(void 0===g&&"string"==typeof p)b=p,g=this.length,p=0;else if(isFinite(p))p>>>=0,isFinite(g)?(g>>>=0,void 0===b&&(b="utf8")):(b=g,g=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var _,w,S,E,T,x,k,C,O,R,A,j,D=this.length-p;if((void 0===g||g>D)&&(g=D),f.length>0&&(g<0||p<0)||p>this.length)throw RangeError("Attempt to write outside buffer bounds");b||(b="utf8");for(var B=!1;;)switch(b){case"hex":return function(f,p,g,b){g=Number(g)||0;var _=f.length-g;b?(b=Number(b))>_&&(b=_):b=_;var w=p.length;b>w/2&&(b=w/2);for(var S=0;S<b;++S){var E=parseInt(p.substr(2*S,2),16);if(E!=E)break;f[g+S]=E}return S}(this,f,p,g);case"utf8":case"utf-8":return T=p,x=g,blitBuffer(utf8ToBytes(f,this.length-T),this,T,x);case"ascii":return k=p,C=g,blitBuffer(asciiToBytes(f),this,k,C);case"latin1":case"binary":return _=this,w=f,S=p,E=g,blitBuffer(asciiToBytes(w),_,S,E);case"base64":return O=p,R=g,blitBuffer(base64ToBytes(f),this,O,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A=p,j=g,blitBuffer(function(f,p){for(var g,b,_=[],w=0;w<f.length&&!((p-=2)<0);++w)b=(g=f.charCodeAt(w))>>8,_.push(g%256),_.push(b);return _}(f,this.length-A),this,A,j);default:if(B)throw TypeError("Unknown encoding: "+b);b=(""+b).toLowerCase(),B=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Buffer.prototype.slice=function(f,p){var g=this.length;f=~~f,p=void 0===p?g:~~p,f<0?(f+=g)<0&&(f=0):f>g&&(f=g),p<0?(p+=g)<0&&(p=0):p>g&&(p=g),p<f&&(p=f);var b=this.subarray(f,p);return Object.setPrototypeOf(b,Buffer.prototype),b},Buffer.prototype.readUIntLE=function(f,p,g){f>>>=0,p>>>=0,g||checkOffset(f,p,this.length);for(var b=this[f],_=1,w=0;++w<p&&(_*=256);)b+=this[f+w]*_;return b},Buffer.prototype.readUIntBE=function(f,p,g){f>>>=0,p>>>=0,g||checkOffset(f,p,this.length);for(var b=this[f+--p],_=1;p>0&&(_*=256);)b+=this[f+--p]*_;return b},Buffer.prototype.readUInt8=function(f,p){return f>>>=0,p||checkOffset(f,1,this.length),this[f]},Buffer.prototype.readUInt16LE=function(f,p){return f>>>=0,p||checkOffset(f,2,this.length),this[f]|this[f+1]<<8},Buffer.prototype.readUInt16BE=function(f,p){return f>>>=0,p||checkOffset(f,2,this.length),this[f]<<8|this[f+1]},Buffer.prototype.readUInt32LE=function(f,p){return f>>>=0,p||checkOffset(f,4,this.length),(this[f]|this[f+1]<<8|this[f+2]<<16)+16777216*this[f+3]},Buffer.prototype.readUInt32BE=function(f,p){return f>>>=0,p||checkOffset(f,4,this.length),16777216*this[f]+(this[f+1]<<16|this[f+2]<<8|this[f+3])},Buffer.prototype.readIntLE=function(f,p,g){f>>>=0,p>>>=0,g||checkOffset(f,p,this.length);for(var b=this[f],_=1,w=0;++w<p&&(_*=256);)b+=this[f+w]*_;return b>=(_*=128)&&(b-=Math.pow(2,8*p)),b},Buffer.prototype.readIntBE=function(f,p,g){f>>>=0,p>>>=0,g||checkOffset(f,p,this.length);for(var b=p,_=1,w=this[f+--b];b>0&&(_*=256);)w+=this[f+--b]*_;return w>=(_*=128)&&(w-=Math.pow(2,8*p)),w},Buffer.prototype.readInt8=function(f,p){return(f>>>=0,p||checkOffset(f,1,this.length),128&this[f])?-((255-this[f]+1)*1):this[f]},Buffer.prototype.readInt16LE=function(f,p){f>>>=0,p||checkOffset(f,2,this.length);var g=this[f]|this[f+1]<<8;return 32768&g?4294901760|g:g},Buffer.prototype.readInt16BE=function(f,p){f>>>=0,p||checkOffset(f,2,this.length);var g=this[f+1]|this[f]<<8;return 32768&g?4294901760|g:g},Buffer.prototype.readInt32LE=function(f,p){return f>>>=0,p||checkOffset(f,4,this.length),this[f]|this[f+1]<<8|this[f+2]<<16|this[f+3]<<24},Buffer.prototype.readInt32BE=function(f,p){return f>>>=0,p||checkOffset(f,4,this.length),this[f]<<24|this[f+1]<<16|this[f+2]<<8|this[f+3]},Buffer.prototype.readFloatLE=function(f,p){return f>>>=0,p||checkOffset(f,4,this.length),_.read(this,f,!0,23,4)},Buffer.prototype.readFloatBE=function(f,p){return f>>>=0,p||checkOffset(f,4,this.length),_.read(this,f,!1,23,4)},Buffer.prototype.readDoubleLE=function(f,p){return f>>>=0,p||checkOffset(f,8,this.length),_.read(this,f,!0,52,8)},Buffer.prototype.readDoubleBE=function(f,p){return f>>>=0,p||checkOffset(f,8,this.length),_.read(this,f,!1,52,8)},Buffer.prototype.writeUIntLE=function(f,p,g,b){if(f=+f,p>>>=0,g>>>=0,!b){var _=Math.pow(2,8*g)-1;checkInt(this,f,p,g,_,0)}var w=1,S=0;for(this[p]=255&f;++S<g&&(w*=256);)this[p+S]=f/w&255;return p+g},Buffer.prototype.writeUIntBE=function(f,p,g,b){if(f=+f,p>>>=0,g>>>=0,!b){var _=Math.pow(2,8*g)-1;checkInt(this,f,p,g,_,0)}var w=g-1,S=1;for(this[p+w]=255&f;--w>=0&&(S*=256);)this[p+w]=f/S&255;return p+g},Buffer.prototype.writeUInt8=function(f,p,g){return f=+f,p>>>=0,g||checkInt(this,f,p,1,255,0),this[p]=255&f,p+1},Buffer.prototype.writeUInt16LE=function(f,p,g){return f=+f,p>>>=0,g||checkInt(this,f,p,2,65535,0),this[p]=255&f,this[p+1]=f>>>8,p+2},Buffer.prototype.writeUInt16BE=function(f,p,g){return f=+f,p>>>=0,g||checkInt(this,f,p,2,65535,0),this[p]=f>>>8,this[p+1]=255&f,p+2},Buffer.prototype.writeUInt32LE=function(f,p,g){return f=+f,p>>>=0,g||checkInt(this,f,p,4,4294967295,0),this[p+3]=f>>>24,this[p+2]=f>>>16,this[p+1]=f>>>8,this[p]=255&f,p+4},Buffer.prototype.writeUInt32BE=function(f,p,g){return f=+f,p>>>=0,g||checkInt(this,f,p,4,4294967295,0),this[p]=f>>>24,this[p+1]=f>>>16,this[p+2]=f>>>8,this[p+3]=255&f,p+4},Buffer.prototype.writeIntLE=function(f,p,g,b){if(f=+f,p>>>=0,!b){var _=Math.pow(2,8*g-1);checkInt(this,f,p,g,_-1,-_)}var w=0,S=1,E=0;for(this[p]=255&f;++w<g&&(S*=256);)f<0&&0===E&&0!==this[p+w-1]&&(E=1),this[p+w]=(f/S>>0)-E&255;return p+g},Buffer.prototype.writeIntBE=function(f,p,g,b){if(f=+f,p>>>=0,!b){var _=Math.pow(2,8*g-1);checkInt(this,f,p,g,_-1,-_)}var w=g-1,S=1,E=0;for(this[p+w]=255&f;--w>=0&&(S*=256);)f<0&&0===E&&0!==this[p+w+1]&&(E=1),this[p+w]=(f/S>>0)-E&255;return p+g},Buffer.prototype.writeInt8=function(f,p,g){return f=+f,p>>>=0,g||checkInt(this,f,p,1,127,-128),f<0&&(f=255+f+1),this[p]=255&f,p+1}
26,Buffer.prototype.writeInt16LE=function(f,p,g){return f=+f,p>>>=0,g||checkInt(this,f,p,2,32767,-32768),this[p]=255&f,this[p+1]=f>>>8,p+2},Buffer.prototype.writeInt16BE=function(f,p,g){return f=+f,p>>>=0,g||checkInt(this,f,p,2,32767,-32768),this[p]=f>>>8,this[p+1]=255&f,p+2},Buffer.prototype.writeInt32LE=function(f,p,g){return f=+f,p>>>=0,g||checkInt(this,f,p,4,2147483647,-2147483648),this[p]=255&f,this[p+1]=f>>>8,this[p+2]=f>>>16,this[p+3]=f>>>24,p+4},Buffer.prototype.writeInt32BE=function(f,p,g){return f=+f,p>>>=0,g||checkInt(this,f,p,4,2147483647,-2147483648),f<0&&(f=4294967295+f+1),this[p]=f>>>24,this[p+1]=f>>>16,this[p+2]=f>>>8,this[p+3]=255&f,p+4},Buffer.prototype.writeFloatLE=function(f,p,g){return writeFloat(this,f,p,!0,g)},Buffer.prototype.writeFloatBE=function(f,p,g){return writeFloat(this,f,p,!1,g)},Buffer.prototype.writeDoubleLE=function(f,p,g){return writeDouble(this,f,p,!0,g)},Buffer.prototype.writeDoubleBE=function(f,p,g){return writeDouble(this,f,p,!1,g)},Buffer.prototype.copy=function(f,p,g,b){if(!Buffer.isBuffer(f))throw TypeError("argument should be a Buffer");if(g||(g=0),b||0===b||(b=this.length),p>=f.length&&(p=f.length),p||(p=0),b>0&&b<g&&(b=g),b===g||0===f.length||0===this.length)return 0;if(p<0)throw RangeError("targetStart out of bounds");if(g<0||g>=this.length)throw RangeError("Index out of range");if(b<0)throw RangeError("sourceEnd out of bounds");b>this.length&&(b=this.length),f.length-p<b-g&&(b=f.length-p+g);var _=b-g;if(this===f&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(p,g,b);else if(this===f&&g<p&&p<b)for(var w=_-1;w>=0;--w)f[w+p]=this[w+g];else Uint8Array.prototype.set.call(f,this.subarray(g,b),p);return _},Buffer.prototype.fill=function(f,p,g,b){if("string"==typeof f){if("string"==typeof p?(b=p,p=0,g=this.length):"string"==typeof g&&(b=g,g=this.length),void 0!==b&&"string"!=typeof b)throw TypeError("encoding must be a string");if("string"==typeof b&&!Buffer.isEncoding(b))throw TypeError("Unknown encoding: "+b);if(1===f.length){var _,w=f.charCodeAt(0);("utf8"===b&&w<128||"latin1"===b)&&(f=w)}}else"number"==typeof f?f&=255:"boolean"==typeof f&&(f=Number(f));if(p<0||this.length<p||this.length<g)throw RangeError("Out of range index");if(g<=p)return this;if(p>>>=0,g=void 0===g?this.length:g>>>0,f||(f=0),"number"==typeof f)for(_=p;_<g;++_)this[_]=f;else{var S=Buffer.isBuffer(f)?f:Buffer.from(f,b),E=S.length;if(0===E)throw TypeError('The value "'+f+'" is invalid for argument "value"');for(_=0;_<g-p;++_)this[_+p]=S[_%E]}return this};var S=/[^+/0-9A-Za-z-_]/g;function utf8ToBytes(f,p){p=p||1/0;for(var g,b=f.length,_=null,w=[],S=0;S<b;++S){if((g=f.charCodeAt(S))>55295&&g<57344){if(!_){if(g>56319||S+1===b){(p-=3)>-1&&w.push(239,191,189);continue}_=g;continue}if(g<56320){(p-=3)>-1&&w.push(239,191,189),_=g;continue}g=(_-55296<<10|g-56320)+65536}else _&&(p-=3)>-1&&w.push(239,191,189);if(_=null,g<128){if((p-=1)<0)break;w.push(g)}else if(g<2048){if((p-=2)<0)break;w.push(g>>6|192,63&g|128)}else if(g<65536){if((p-=3)<0)break;w.push(g>>12|224,g>>6&63|128,63&g|128)}else if(g<1114112){if((p-=4)<0)break;w.push(g>>18|240,g>>12&63|128,g>>6&63|128,63&g|128)}else throw Error("Invalid code point")}return w}function asciiToBytes(f){for(var p=[],g=0;g<f.length;++g)p.push(255&f.charCodeAt(g));return p}function base64ToBytes(f){return b.toByteArray(function(f){if((f=(f=f.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;f.length%4!=0;)f+="=";return f}(f))}function blitBuffer(f,p,g,b){for(var _=0;_<b&&!(_+g>=p.length)&&!(_>=f.length);++_)p[_+g]=f[_];return _}function isInstance(f,p){return f instanceof p||null!=f&&null!=f.constructor&&null!=f.constructor.name&&f.constructor.name===p.name}var E=function(){for(var f="0123456789abcdef",p=Array(256),g=0;g<16;++g)for(var b=16*g,_=0;_<16;++_)p[b+_]=f[g]+f[_];return p}()},783:function(f,p){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */p.read=function(f,p,g,b,_){var w,S,E=8*_-b-1,T=(1<<E)-1,x=T>>1,k=-7,C=g?_-1:0,O=g?-1:1,R=f[p+C];for(C+=O,w=R&(1<<-k)-1,R>>=-k,k+=E;k>0;w=256*w+f[p+C],C+=O,k-=8);for(S=w&(1<<-k)-1,w>>=-k,k+=b;k>0;S=256*S+f[p+C],C+=O,k-=8);if(0===w)w=1-x;else{if(w===T)return S?NaN:(R?-1:1)*(1/0);S+=Math.pow(2,b),w-=x}return(R?-1:1)*S*Math.pow(2,w-b)},p.write=function(f,p,g,b,_,w){var S,E,T,x=8*w-_-1,k=(1<<x)-1,C=k>>1,O=23===_?5960464477539062e-23:0,R=b?0:w-1,A=b?1:-1,j=p<0||0===p&&1/p<0?1:0;for(isNaN(p=Math.abs(p))||p===1/0?(E=isNaN(p)?1:0,S=k):(S=Math.floor(Math.log(p)/Math.LN2),p*(T=Math.pow(2,-S))<1&&(S--,T*=2),S+C>=1?p+=O/T:p+=O*Math.pow(2,1-C),p*T>=2&&(S++,T/=2),S+C>=k?(E=0,S=k):S+C>=1?(E=(p*T-1)*Math.pow(2,_),S+=C):(E=p*Math.pow(2,C-1)*Math.pow(2,_),S=0));_>=8;f[g+R]=255&E,R+=A,E/=256,_-=8);for(S=S<<_|E,x+=_;x>0;f[g+R]=255&S,R+=A,S/=256,x-=8);f[g+R-A]|=128*j}}},g={};function __nccwpck_require__(f){var b=g[f];if(void 0!==b)return b.exports;var _=g[f]={exports:{}},w=!0;try{p[f](_,_.exports,__nccwpck_require__),w=!1}finally{w&&delete g[f]}return _.exports}__nccwpck_require__.ab="//";var b=__nccwpck_require__(72);f.exports=b}()},36252:function(){},70415:function(){},11163:function(f,p,g){f.exports=g(59974)},74241:function(f){var p=String,create=function(){return{isColorSupported:!1,reset:p,bold:p,dim:p,italic:p,underline:p,inverse:p,hidden:p,strikethrough:p,black:p,red:p,green:p,yellow:p,blue:p,magenta:p,cyan:p,white:p,gray:p,bgBlack:p,bgRed:
26p,bgGreen:p,bgYellow:p,bgBlue:p,bgMagenta:p,bgCyan:p,bgWhite:p}};f.exports=create(),f.exports.createColors=create},34155:function(f){var p,g,b,_=f.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(f){if(p===setTimeout)return setTimeout(f,0);if((p===defaultSetTimout||!p)&&setTimeout)return p=setTimeout,setTimeout(f,0);try{return p(f,0)}catch(g){try{return p.call(null,f,0)}catch(g){return p.call(this,f,0)}}}!function(){try{p="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(f){p=defaultSetTimout}try{g="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(f){g=defaultClearTimeout}}();var w=[],S=!1,E=-1;function cleanUpNextTick(){S&&b&&(S=!1,b.length?w=b.concat(w):E=-1,w.length&&drainQueue())}function drainQueue(){if(!S){var f=runTimeout(cleanUpNextTick);S=!0;for(var p=w.length;p;){for(b=w,w=[];++E<p;)b&&b[E].run();E=-1,p=w.length}b=null,S=!1,function(f){if(g===clearTimeout)return clearTimeout(f);if((g===defaultClearTimeout||!g)&&clearTimeout)return g=clearTimeout,clearTimeout(f);try{g(f)}catch(p){try{return g.call(null,f)}catch(p){return g.call(this,f)}}}(f)}}function Item(f,p){this.fun=f,this.array=p}function noop(){}_.nextTick=function(f){var p=Array(arguments.length-1);if(arguments.length>1)for(var g=1;g<arguments.length;g++)p[g-1]=arguments[g];w.push(new Item(f,p)),1!==w.length||S||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},_.title="browser",_.browser=!0,_.env={},_.argv=[],_.version="",_.versions={},_.on=noop,_.addListener=noop,_.once=noop,_.off=noop,_.removeListener=noop,_.removeAllListeners=noop,_.emit=noop,_.prependListener=noop,_.prependOnceListener=noop,_.listeners=function(f){return[]},_.binding=function(f){throw Error("process.binding is not supported")},_.cwd=function(){return"/"},_.chdir=function(f){throw Error("process.chdir is not supported")},_.umask=function(){return 0}},30523:function(f){f.exports={polyfill:function(){var f,p=window,g=document;if(!("scrollBehavior"in g.documentElement.style)||!0===p.__forceSmoothScrollPolyfill__){var b=p.HTMLElement||p.Element,_={scroll:p.scroll||p.scrollTo,scrollBy:p.scrollBy,elementScroll:b.prototype.scroll||scrollElement,scrollIntoView:b.prototype.scrollIntoView},w=p.performance&&p.performance.now?p.performance.now.bind(p.performance):Date.now,S=(f=p.navigator.userAgent,RegExp("MSIE |Trident/|Edge/").test(f))?1:0;p.scroll=p.scrollTo=function(){if(void 0!==arguments[0]){if(!0===shouldBailOut(arguments[0])){_.scroll.call(p,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:p.scrollX||p.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:p.scrollY||p.pageYOffset);return}smoothScroll.call(p,g.body,void 0!==arguments[0].left?~~arguments[0].left:p.scrollX||p.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:p.scrollY||p.pageYOffset)}},p.scrollBy=function(){if(void 0!==arguments[0]){if(shouldBailOut(arguments[0])){_.scrollBy.call(p,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0);return}smoothScroll.call(p,g.body,~~arguments[0].left+(p.scrollX||p.pageXOffset),~~arguments[0].top+(p.scrollY||p.pageYOffset))}},b.prototype.scroll=b.prototype.scrollTo=function(){if(void 0!==arguments[0]){if(!0===shouldBailOut(arguments[0])){if("number"==typeof arguments[0]&&void 0===arguments[1])throw SyntaxError("Value could not be converted");_.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop);return}var f=arguments[0].left,p=arguments[0].top;smoothScroll.call(this,this,void 0===f?this.scrollLeft:~~f,void 0===p?this.scrollTop:~~p)}},b.prototype.scrollBy=function(){if(void 0!==arguments[0]){if(!0===shouldBailOut(arguments[0])){_.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},b.prototype.scrollIntoView=function(){if(!0===shouldBailOut(arguments[0])){_.scrollIntoView.call(this,void 0===arguments[0]||arguments[0]);return}var f=function(f){for(var p,b,_;f!==g.body&&!1===(b=hasScrollableSpace(p=f,"Y")&&canOverflow(p,"Y"),_=hasScrollableSpace(p,"X")&&canOverflow(p,"X"),b||_);)f=f.parentNode||f.host;return f}(this),b=f.getBoundingClientRect(),w=this.getBoundingClientRect();f!==g.body?(smoothScroll.call(this,f,f.scrollLeft+w.left-b.left,f.scrollTop+w.top-b.to
26p),"fixed"!==p.getComputedStyle(f).position&&p.scrollBy({left:b.left,top:b.top,behavior:"smooth"})):p.scrollBy({left:w.left,top:w.top,behavior:"smooth"})}}function scrollElement(f,p){this.scrollLeft=f,this.scrollTop=p}function shouldBailOut(f){if(null===f||"object"!=typeof f||void 0===f.behavior||"auto"===f.behavior||"instant"===f.behavior)return!0;if("object"==typeof f&&"smooth"===f.behavior)return!1;throw TypeError("behavior member of ScrollOptions "+f.behavior+" is not a valid value for enumeration ScrollBehavior.")}function hasScrollableSpace(f,p){return"Y"===p?f.clientHeight+S<f.scrollHeight:"X"===p?f.clientWidth+S<f.scrollWidth:void 0}function canOverflow(f,g){var b=p.getComputedStyle(f,null)["overflow"+g];return"auto"===b||"scroll"===b}function smoothScroll(f,b,S){var E,T,x,k,C=w();f===g.body?(E=p,T=p.scrollX||p.pageXOffset,x=p.scrollY||p.pageYOffset,k=_.scroll):(E=f,T=f.scrollLeft,x=f.scrollTop,k=scrollElement),function step(f){var g,b,_,S=(w()-f.startTime)/468;g=.5*(1-Math.cos(Math.PI*(S=S>1?1:S))),b=f.startX+(f.x-f.startX)*g,_=f.startY+(f.y-f.startY)*g,f.method.call(f.scrollable,b,_),(b!==f.x||_!==f.y)&&p.requestAnimationFrame(step.bind(p,f))}({scrollable:E,method:k,startTime:C,startX:T,startY:x,x:b,y:S})}}}},69808:function(f,p,g){let b=g(14921);f.exports=(b.__esModule?b:{default:b}).default},75874:function(f,p,g){let b=g(68737);f.exports=(b.__esModule?b:{default:b}).default},14921:function(f,p,g){"use strict";var b;Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(p,"default",{enumerable:!0,get:function(){return w}});let _=(b=g(51679))&&b.__esModule?b:{default:b};function warn({version:f,from:p,to:g}){_.default.warn(`${p}-color-renamed`,[`As of Tailwind CSS ${f}, \`${p}\` has been renamed to \`${g}\`.`,"Update your configuration file to silence this warning."])}let w={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return warn({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return warn({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return warn({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return warn({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return warn({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}},22455:function(f,p,g){"use strict";var b;Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(p,"default",{enumerable:!0,get:function(){return w}});let _=(b=g(9002))&&b.__esModule?b:{default:b},w=_.default},68737:function(f,p,g){"use strict";var b;Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(p,"default",{enumerable:!0,get:function(){return S}});let _=g(39392),w=(b=g(49924))&&b.__esModule?b:{default:b},S=(0,_.cloneDeep)(w.default.theme)},39392:function(f,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(p,"cloneDeep",{enumerable:!0,get:function(){return function cloneDeep(f){return Array.isArray(f)?f.map(f=>cloneDeep(f)):"object"==typeof f&&null!==f?Object.fromEntries(Object.entries(f).map(([f,p])=>[f,cloneDeep(p)])):f}}})},9002:function(f,p){"use strict";function createPlugin(f,p){return{handler:f,config:p}}Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(p,"default",{enumerable:!0,get:function(){return g}}),createPlugin.withOptions=function(f,p=()=>({})){let optionsFunction=function(g){return{__options:g,handler:f(g),config:p(g)}};return optionsFunction.__isOptionsFunction=!0,optionsFunction.__pluginFunction=f,optionsFunction.__configFunction=p,optionsFunction};let g=createPlugin},51679:function(f,p,g){"use strict";var b,_=g(34155);Object.defineProperty(p,"__esModule",{value:!0}),function(f,p){for(var g in p)Object.defineProperty(f,g,{enumerable:!0,get:p[g]})}(p,{dim:function(){return dim},default:function(){return E}});let w=(b=g(74241))&&b.__esModule?b:{default:b},S=new Set;function log(f,p,g){(void 0===_||!_.env.JEST_WORKER_ID)&&(g&&S.has(g)||(g&&S.add(g),console.warn(""),p.forEach(p=>console.warn(f,"-",p))))}function dim(f){return w.default.dim(f)}
26let E={info(f,p){log(w.default.bold(w.default.cyan("info")),...Array.isArray(f)?[f]:[p,f])},warn(f,p){log(w.default.bold(w.default.yellow("warn")),...Array.isArray(f)?[f]:[p,f])},risk(f,p){log(w.default.bold(w.default.magenta("risk")),...Array.isArray(f)?[f]:[p,f])}}},42502:function(f,p,g){let b=g(22455);f.exports=(b.__esModule?b:{default:b}).default},49924:function(f){f.exports={content:[],presets:[],darkMode:"media",theme:{accentColor:({theme:f})=>({...f("colors"),auto:"auto"}),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:f})=>f("blur"),backdropBrightness:({theme:f})=>f("brightness"),backdropContrast:({theme:f})=>f("contrast"),backdropGrayscale:({theme:f})=>f("grayscale"),backdropHueRotate:({theme:f})=>f("hueRotate"),backdropInvert:({theme:f})=>f("invert"),backdropOpacity:({theme:f})=>f("opacity"),backdropSaturate:({theme:f})=>f("saturate"),backdropSepia:({theme:f})=>f("sepia"),backgroundColor:({theme:f})=>f("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:f})=>f("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:f})=>({...f("colors"),DEFAULT:f("colors.gray.200","currentColor")}),borderOpacity:({theme:f})=>f("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:f})=>({...f("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:f})=>f("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},caretColor:({theme:f})=>f("colors"),colors:({colors:f})=>({inherit:f.inherit,current:f.current,transparent:f.transparent,black:f.black,white:f.white,slate:f.slate,gray:f.gray,zinc:f.zinc,neutral:f.neutral,stone:f.stone,red:f.red,orange:f.orange,amber:f.amber,yellow:f.yellow,lime:f.lime,green:f.green,emerald:f.emerald,teal:f.teal,cyan:f.cyan,sky:f.sky,blue:f.blue,indigo:f.indigo,violet:f.violet,purple:f.purple,fuchsia:f.fuchsia,pink:f.pink,rose:f.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"al
26ias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:f})=>f("borderColor"),divideOpacity:({theme:f})=>f("borderOpacity"),divideWidth:({theme:f})=>f("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:f})=>({none:"none",...f("colors")}),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:f})=>({auto:"auto",...f("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:f})=>f("spacing"),gradientColorStops:({theme:f})=>f("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%"},grayscale:{0:"0",DEFAULT:"100%"},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",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"},gridColumnStart:{auto:"auto",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"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridTemplateColumns:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))"},height:({theme:f})=>({auto:"auto",...f("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},inset:({theme:f})=>({auto:"auto",...f("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),invert:{0:"0",DEFAULT:"100%"},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:f})=>({auto:"auto",...f("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6"},maxHeight:({theme:f})=>({...f("spacing"),none:"none",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:f,breakpoints:p})=>({none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...p(f("screens"))}),minHeight:{0:"0px",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"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"},outlineColor:({theme:f})=>f("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},padding:({theme:f})=>f("spacing"),placeholderColor:({theme:f})=>f("colors"),placeholderOpacity:({theme:f})=>f("opacity"),ringColor:({theme:f})=>({DEFAULT:f("colors.blue.500","#3b82f6"),...f("colors")}),ringOffsetColor:({theme:f})=>f("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:f})=>({DEFAULT:"0.5",...f("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},scrollMargin:({theme:f})=>({...f("spacing")}),scrollPadding:({theme:f})=>f("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:f})=>({...f("spacing")}),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:f})=>({none:"none",...f("colors")}),strokeWidth:{0:"0",1:"1",2:"2"},supports:{},data:{},textColor:({theme:f})=>f("colors"),textDecorationColor:({theme:f})=>f("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:f})=>({...f("spacing")}),textOpacity:({theme:f})=>f("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:f})=>({...f("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),width:({theme:f})=>({auto:"auto",...f("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},plugins:[]}},53250:function(f,p,g){"use strict";/**
27 * @license React
28 * use-sync-external-store-shim.production.min.js
29 *
30 * Copyright (c) Facebook, Inc. and its affiliates.
31 *
32 * This source code is licensed under the MIT license found in the
33 * LICENSE file in the root directory of this source tree.
34 */var b=g(67294),_="function"==typeof Object.is?Object.is:function(f,p){return f===p&&(0!==f||1/f==1/p)||f!=f&&p!=p},w=b.useState,S=b.useEffect,E=b.useLayoutEffect,T=b.useDebugValue;function r(f){var p=f.getSnapshot;f=f.value;try{var g=p();return!_(f,g)}catch(f){return!0}}var x="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(f,p){return p()}:function(f,p){var g=p(),b=w({inst:{value:g,getSnapshot:p}}),_=b[0].inst,x=b[1];return E(function(){_.value=g,_.getSnapshot=p,r(_)&&x({inst:_})},[f,g,p]),S(function(){return r(_)&&x({inst:_}),f(function(){r(_)&&x({inst:_})})},[f]),T(g),g};p.useSyncExternalStore=void 0!==b.useSyncExternalStore?b.useSyncExternalStore:x},61688:function(f,p,g){"use strict";f.exports=g(53250)},59734:function(f,p,g){"use strict";g.d(p,{J$:function(){return eo},ZP:function(){return es}});var b,_=g(67294),w=g(61688);
34let noop=()=>{},S=noop(),E=Object,isUndefined=f=>f===S,isFunction=f=>"function"==typeof f,mergeObjects=(f,p)=>({...f,...p}),isPromiseLike=f=>isFunction(f.then),T=new WeakMap,x=0,stableHash=f=>{let p,g;let b=typeof f,_=f&&f.constructor,w=_==Date;if(E(f)!==f||w||_==RegExp)p=w?f.toJSON():"symbol"==b?f.toString():"string"==b?JSON.stringify(f):""+f;else{if(p=T.get(f))return p;if(p=++x+"~",T.set(f,p),_==Array){for(g=0,p="@";g<f.length;g++)p+=stableHash(f[g])+",";T.set(f,p)}if(_==E){p="#";let b=E.keys(f).sort();for(;!isUndefined(g=b.pop());)isUndefined(f[g])||(p+=g+":"+stableHash(f[g])+",");T.set(f,p)}}return p},k=new WeakMap,C={},O={},R="undefined",A=typeof window!=R,j=typeof document!=R,hasRequestAnimationFrame=()=>A&&typeof window.requestAnimationFrame!=R,createCacheHelper=(f,p)=>{let g=k.get(f);return[()=>!isUndefined(p)&&f.get(p)||C,b=>{if(!isUndefined(p)){let _=f.get(p);p in O||(O[p]=_),g[5](p,mergeObjects(_,b),_||C)}},g[6],()=>!isUndefined(p)&&p in O?O[p]:!isUndefined(p)&&f.get(p)||C]},D=!0,[B,U]=A&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[noop,noop],H={initFocus:f=>(j&&document.addEventListener("visibilitychange",f),B("focus",f),()=>{j&&document.removeEventListener("visibilitychange",f),U("focus",f)}),initReconnect:f=>{let onOnline=()=>{D=!0,f()},onOffline=()=>{D=!1};return B("online",onOnline),B("offline",onOffline),()=>{U("online",onOnline),U("offline",onOffline)}}},N=!_.useId,M=!A||"Deno"in window,rAF=f=>hasRequestAnimationFrame()?window.requestAnimationFrame(f):setTimeout(f,1),W=M?_.useEffect:_.useLayoutEffect,G="undefined"!=typeof navigator&&navigator.connection,X=!M&&G&&(["slow-2g","2g"].includes(G.effectiveType)||G.saveData),dist_serialize=f=>{if(isFunction(f))try{f=f()}catch(p){f=""}let p=f;return[f="string"==typeof f?f:(Array.isArray(f)?f.length:f)?stableHash(f):"",p]},$=0,getTimestamp=()=>++$;var V={ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function internalMutate(...f){let[p,g,b,_]=f,w=mergeObjects({populateCache:!0,throwOnError:!0},"boolean"==typeof _?{revalidate:_}:_||{}),E=w.populateCache,T=w.rollbackOnError,x=w.optimisticData,C=!1!==w.revalidate,rollbackOnError=f=>"function"==typeof T?T(f):!1!==T,O=w.throwOnError;if(isFunction(g)){let f=[],b=p.keys();for(let _ of b)!/^\$(inf|sub)\$/.test(_)&&g(p.get(_)._k)&&f.push(_);return Promise.all(f.map(mutateByKey))}return mutateByKey(g);async function mutateByKey(g){let _;let[w]=dist_serialize(g);if(!w)return;let[T,R]=createCacheHelper(p,w),[A,j,D,B]=k.get(p),startRevalidate=()=>{let f=A[w];return C&&(delete D[w],delete B[w],f&&f[0])?f[0](2).then(()=>T().data):T().data};if(f.length<3)return startRevalidate();let U=b,H=getTimestamp();j[w]=[H,0];let N=!isUndefined(x),M=T(),W=M.data,G=M._c,X=isUndefined(G)?W:G;if(N&&R({data:x=isFunction(x)?x(X,W):x,_c:X}),isFunction(U))try{U=U(X)}catch(f){_=f}if(U&&isPromiseLike(U)){if(U=await U.catch(f=>{_=f}),H!==j[w][0]){if(_)throw _;return U}_&&N&&rollbackOnError(_)&&(E=!0,R({data:X,_c:S}))}if(E&&!_){if(isFunction(E)){let f=E(U,X);R({data:f,error:S,_c:S})}else R({data:U,error:S,_c:S})}if(j[w][1]=getTimestamp(),Promise.resolve(startRevalidate()).then(()=>{R({_c:S})}),_){if(O)throw _;return}return U}}let revalidateAllKeys=(f,p)=>{for(let g in f)f[g][0]&&f[g][0](p)},initCache=(f,p)=>{if(!k.has(f)){let g=mergeObjects(H,p),b={},_=internalMutate.bind(S,f),w=noop,E={},subscribe=(f,p)=>{let g=E[f]||[];return E[f]=g,g.push(p),()=>g.splice(g.indexOf(p),1)},setter=(p,g,b)=>{f.set(p,g);let _=E[p];if(_)for(let f of _)f(g,b)},initProvider=()=>{if(!k.has(f)&&(k.set(f,[b,{},{},{},_,setter,subscribe]),!M)){let p=g.initFocus(setTimeout.bind(S,revalidateAllKeys.bind(S,b,0))),_=g.initReconnect(setTimeout.bind(S,revalidateAllKeys.bind(S,b,1)));w=()=>{p&&p(),_&&_(),k.delete(f)}}};return initProvider(),[f,_,initProvider,w]}return[f,k.get(f)[4]]},[Y,J]=initCache(new Map),q=mergeObjects({onLoadingSlow:noop,onSuccess:noop,onError:noop,onErrorRetry:(f,p,g,b,_)=>{let w=g.errorRetryCount,S=_.retryCount,E=~~((Math.random()+.5)*(1<<(S<8?S:8)))*g.errorRetryInterval;(isUndefined(w)||!(S>w))&&setTimeout(b,E,_)},onDiscarded:noop,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:X?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:X?5e3:3e3,compare:(f,p)=>stableHash(f)==stableHash(p),isPaused:()=>!1,cache:Y,mutate:J,fallback:{}},{isOnline:()=>D,isVisible:()=>{let f=j&&document.visibilityState;
34return isUndefined(f)||"hidden"!==f}}),mergeConfigs=(f,p)=>{let g=mergeObjects(f,p);if(p){let{use:b,fallback:_}=f,{use:w,fallback:S}=p;b&&w&&(g.use=b.concat(w)),_&&S&&(g.fallback=mergeObjects(_,S))}return g},Q=(0,_.createContext)({}),ee=A&&window.__SWR_DEVTOOLS_USE__,et=ee?window.__SWR_DEVTOOLS_USE__:[],normalize=f=>isFunction(f[1])?[f[0],f[1],f[2]||{}]:[f[0],null,(null===f[1]?f[2]:f[1])||{}],useSWRConfig=()=>mergeObjects(q,(0,_.useContext)(Q)),en=et.concat(f=>(p,g,b)=>{let _=g&&((...f)=>{let[b]=dist_serialize(p),[,,,_]=k.get(Y);if(b.startsWith("$inf$"))return g(...f);let w=_[b];return isUndefined(w)?g(...f):(delete _[b],w)});return f(p,_,b)}),subscribeCallback=(f,p,g)=>{let b=p[f]||(p[f]=[]);return b.push(g),()=>{let f=b.indexOf(g);f>=0&&(b[f]=b[b.length-1],b.pop())}};ee&&(window.__SWR_DEVTOOLS_REACT__=_);let er=_.use||(f=>{if("pending"===f.status)throw f;if("fulfilled"===f.status)return f.value;if("rejected"===f.status)throw f.reason;throw f.status="pending",f.then(p=>{f.status="fulfilled",f.value=p},p=>{f.status="rejected",f.reason=p}),f}),ei={dedupe:!0},eo=E.defineProperty(f=>{let{value:p}=f,g=(0,_.useContext)(Q),b=isFunction(p),w=(0,_.useMemo)(()=>b?p(g):p,[b,g,p]),E=(0,_.useMemo)(()=>b?w:mergeConfigs(g,w),[b,g,w]),T=w&&w.provider,x=(0,_.useRef)(S);T&&!x.current&&(x.current=initCache(T(E.cache||Y),w));let k=x.current;return k&&(E.cache=k[0],E.mutate=k[1]),W(()=>{if(k)return k[2]&&k[2](),k[3]},[]),(0,_.createElement)(Q.Provider,mergeObjects(f,{value:E}))},"defaultValue",{value:q}),es=(b=(f,p,g)=>{let{cache:b,compare:E,suspense:T,fallbackData:x,revalidateOnMount:C,revalidateIfStale:O,refreshInterval:R,refreshWhenHidden:A,refreshWhenOffline:j,keepPreviousData:D}=g,[B,U,H,G]=k.get(b),[X,$]=dist_serialize(f),Y=(0,_.useRef)(!1),J=(0,_.useRef)(!1),q=(0,_.useRef)(X),Q=(0,_.useRef)(p),ee=(0,_.useRef)(g),getConfig=()=>ee.current,isActive=()=>getConfig().isVisible()&&getConfig().isOnline(),[et,en,eo,es]=createCacheHelper(b,X),ec=(0,_.useRef)({}).current,eu=isUndefined(x)?g.fallback[X]:x,isEqual=(f,p)=>{for(let g in ec)if("data"===g){if(!E(f[g],p[g])&&(!isUndefined(f[g])||!E(ev,p[g])))return!1}else if(p[g]!==f[g])return!1;return!0},el=(0,_.useMemo)(()=>{let f=!!X&&!!p&&(isUndefined(C)?!getConfig().isPaused()&&!T&&(!!isUndefined(O)||O):C),getSelectedCache=p=>{let g=mergeObjects(p);return(delete g._k,f)?{isValidating:!0,isLoading:!0,...g}:g},g=et(),b=es(),_=getSelectedCache(g),w=g===b?_:getSelectedCache(b),S=_;return[()=>{let f=getSelectedCache(et()),p=isEqual(f,S);return p?(S.data=f.data,S.isLoading=f.isLoading,S.isValidating=f.isValidating,S.error=f.error,S):(S=f,f)},()=>w]},[b,X]),ef=(0,w.useSyncExternalStore)((0,_.useCallback)(f=>eo(X,(p,g)=>{isEqual(g,p)||f()}),[b,X]),el[0],el[1]),ed=!Y.current,ep=B[X]&&B[X].length>0,eh=ef.data,em=isUndefined(eh)?eu:eh,eg=ef.error,ey=(0,_.useRef)(em),ev=D?isUndefined(eh)?ey.current:eh:em,eb=(!ep||!!isUndefined(eg))&&(ed&&!isUndefined(C)?C:!getConfig().isPaused()&&(T?!isUndefined(em)&&O:isUndefined(em)||O)),e_=!!(X&&p&&ed&&eb),ew=isUndefined(ef.isValidating)?e_:ef.isValidating,eS=isUndefined(ef.isLoading)?e_:ef.isLoading,eE=(0,_.useCallback)(async f=>{let p,b;let _=Q.current;if(!X||!_||J.current||getConfig().isPaused())return!1;let w=!0,T=f||{},x=!H[X]||!T.dedupe,callbackSafeguard=()=>N?!J.current&&X===q.current&&Y.current:X===q.current,k={isValidating:!1,isLoading:!1},finishRequestAndUpdateState=()=>{en(k)},cleanupState=()=>{let f=H[X];f&&f[1]===b&&delete H[X]},C={isValidating:!0};isUndefined(et().data)&&(C.isLoading=!0);try{if(x&&(en(C),g.loadingTimeout&&isUndefined(et().data)&&setTimeout(()=>{w&&callbackSafeguard()&&getConfig().onLoadingSlow(X,g)},g.loadingTimeout),H[X]=[_($),getTimestamp()]),[p,b]=H[X],p=await p,x&&setTimeout(cleanupState,g.dedupingInterval),!H[X]||H[X][1]!==b)return x&&callbackSafeguard()&&getConfig().onDiscarded(X),!1;k.error=S;let f=U[X];if(!isUndefined(f)&&(b<=f[0]||b<=f[1]||0===f[1]))return finishRequestAndUpdateState(),x&&callbackSafeguard()&&getConfig().onDiscarded(X),!1;let T=et().data;k.data=E(T,p)?T:p,x&&callbackSafeguard()&&getConfig().onSuccess(p,X,g)}catch(g){cleanupState();let f=getConfig(),{shouldRetryOnError:p}=f;!f.isPaused()&&(k.error=g,x&&callbackSafeguard()&&(f.onError(g,X,f),(!0===p||isFunction(p)&&p(g))&&isActive()&&f.onErrorRetry(g,X,f,f=>{let p=B[X];p&&p[0]&&p[0](V.ERROR_REVALIDATE_EVENT,f)},{retryCount:(T.retryCount||0)+1,dedupe:!0})))}return w=!1,finishRequestAndUpdateState(),!0},[X,b]),eT=(0,_.useCallback)((...f)=>internalMutate(b,q.current,...f),[]);if(W(()=>{Q.current=p,ee.current=g,isUndefined(eh)||(ey.current=eh)}),W(()=>{if(!X)return;let f=eE.bind(S,ei),p=0,g=subscribeCallback(X,B,(g,b={})=>
34{if(g==V.FOCUS_EVENT){let g=Date.now();getConfig().revalidateOnFocus&&g>p&&isActive()&&(p=g+getConfig().focusThrottleInterval,f())}else if(g==V.RECONNECT_EVENT)getConfig().revalidateOnReconnect&&isActive()&&f();else if(g==V.MUTATE_EVENT)return eE();else if(g==V.ERROR_REVALIDATE_EVENT)return eE(b)});return J.current=!1,q.current=X,Y.current=!0,en({_k:$}),eb&&(isUndefined(em)||M?f():rAF(f)),()=>{J.current=!0,g()}},[X]),W(()=>{let f;function next(){let p=isFunction(R)?R(et().data):R;p&&-1!==f&&(f=setTimeout(execute,p))}function execute(){!et().error&&(A||getConfig().isVisible())&&(j||getConfig().isOnline())?eE(ei).then(next):next()}return next(),()=>{f&&(clearTimeout(f),f=-1)}},[R,A,j,X]),(0,_.useDebugValue)(ev),T&&isUndefined(em)&&X){if(!N&&M)throw Error("Fallback data is required when using suspense in SSR.");Q.current=p,ee.current=g,J.current=!1;let f=G[X];if(!isUndefined(f)){let p=eT(f);er(p)}if(isUndefined(eg)){let f=eE(ei);isUndefined(ev)||(f.status="fulfilled",f.value=!0),er(f)}else throw eg}return{mutate:eT,get data(){return ec.data=!0,ev},get error(){return ec.error=!0,eg},get isValidating(){return ec.isValidating=!0,ew},get isLoading(){return ec.isLoading=!0,eS}}},function(...f){let p=useSWRConfig(),[g,_,w]=normalize(f),S=mergeConfigs(p,w),E=b,{use:T}=S,x=(T||[]).concat(en);for(let f=x.length;f--;)E=x[f](E);return E(g,_||S.fetcher||null,S)})}},function(f){var __webpack_exec__=function(p){return f(f.s=p)};f.O(0,[9774,179],function(){return __webpack_exec__(81043),__webpack_exec__(6840),__webpack_exec__(59974)}),_N_E=f.O()}]);
35//# sourceMappingURL=_app-a64f2430d594eb99.js.map

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.