1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2902],{14732:(e,t,r)=>{"use strict";e.exports=r(67475)},15985:(e,t,r)=>{"use strict";r.d(t,{B:()=>p,I:()=>k,O:()=>c,S:()=>J,U:()=>u,a:()=>d,b:()=>a,c:()=>H,d:()=>U,e:()=>l,f:()=>G,g:()=>X,i:()=>g,m:()=>f,n:()=>V,o:()=>q,r:()=>T,s:()=>D,t:()=>O,u:()=>A,z:()=>_});var n=r(5220),o=r(30100),i=Object.prototype.hasOwnProperty;let a=new WeakMap,s=()=>{},u=s(),c=Object,l=e=>e===u,d=e=>"function"==typeof e,f=(e,t)=>({...e,...t}),p=e=>d(e.then),h={},v={},y="undefined",g=typeof window!=y,m=typeof document!=y,w=g&&"Deno"in window,_=(e,t)=>{let r=a.get(e);return[()=>!l(t)&&e.get(t)||h,n=>{if(!l(t)){let o=e.get(t);t in v||(v[t]=o),r[5](t,f(o,n),o||h)}},r[6],()=>!l(t)&&t in v?v[t]:!l(t)&&e.get(t)||h]},b=!0,[E,S]=g&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[s,s],P={initFocus:e=>(m&&document.addEventListener("visibilitychange",e),E("focus",e),()=>{m&&document.removeEventListener("visibilitychange",e),S("focus",e)}),initReconnect:e=>{let t=()=>{b=!0,e()},r=()=>{b=!1};return E("online",t),E("offline",r),()=>{S("online",t),S("offline",r)}}},k=!n.useId,T=!g||w,O=e=>g&&typeof window.requestAnimationFrame!=y?window.requestAnimationFrame(e):setTimeout(e,1),A=T?n.useEffect:n.useLayoutEffect,R="undefined"!=typeof navigator&&navigator.connection,L=!T&&R&&(["slow-2g","2g"].includes(R.effectiveType)||R.saveData),C=new WeakMap,I=(e,t)=>c.prototype.toString.call(e)==="[object ".concat(t,"]"),N=0,j=e=>{let t,r,n=typeof e,o=I(e,"Date"),i=I(e,"RegExp"),a=I(e,"Object");if(c(e)!==e||o||i)t=o?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=C.get(e))return t;if(t=++N+"~",C.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=j(e[r])+",";C.set(e,t)}if(a){t="#";let n=c.keys(e).sort();for(;!l(r=n.pop());)l(e[r])||(t+=r+":"+j(e[r])+",");C.set(e,t)}}return t},D=e=>{if(d(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?j(e):"",t]},x=0,q=()=>++x;async function V(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,i,s,c]=t,h=f({populateCache:!0,throwOnError:!0},"boolean"==typeof c?{revalidate:c}:c||{}),v=h.populateCache,y=h.rollbackOnError,g=h.optimisticData,m=h.throwOnError;if(d(i)){let e=[];for(let t of n.keys())!/^\$(inf|sub)\$/.test(t)&&i(n.get(t)._k)&&e.push(t);return Promise.all(e.map(w))}return w(i);async function w(e){let r,[i]=D(e);if(!i)return;let[c,f]=_(n,i),[w,b,E,S]=a.get(n),P=()=>{let t=w[i];return(d(h.revalidate)?h.revalidate(c().data,e):!1!==h.revalidate)&&(delete E[i],delete S[i],t&&t[0])?t[0](o.q2).then(()=>c().data):c().data};if(t.length<3)return P();let k=s,T=q();b[i]=[T,0];let O=!l(g),A=c(),R=A.data,L=A._c,C=l(L)?R:L;if(O&&f({data:g=d(g)?g(C,R):g,_c:C}),d(k))try{k=k(C)}catch(e){r=e}if(k&&p(k)){let e;if(k=await k.catch(e=>{r=e}),T!==b[i][0]){if(r)throw r;return k}r&&O&&(e=r,"function"==typeof y?y(e):!1!==y)&&(v=!0,f({data:C,_c:u}))}if(v&&!r&&(d(v)?f({data:v(k,C),error:u,_c:u}):f({data:k,error:u,_c:u})),b[i][1]=q(),Promise.resolve(P()).then(()=>{f({_c:u})}),r){if(m)throw r;return}return k}}let B=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},F=(e,t)=>{if(!a.has(e)){let r=f(P,t),n=Object.create(null),i=V.bind(u,e),c=s,l=Object.create(null),d=(e,t)=>{let r=l[e]||[];return l[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},p=(t,r,n)=>{e.set(t,r);let o=l[t];if(o)for(let e of o)e(r,n)},h=()=>{if(!a.has(e)&&(a.set(e,[n,Object.create(null),Object.create(null),Object.create(null),i,p,d]),!T)){let t=r.initFocus(setTimeout.bind(u,B.bind(u,n,o.CC))),i=r.initReconnect(setTimeout.bind(u,B.bind(u,n,o.jB)));c=()=>{t&&t(),i&&i(),a.delete(e)}}};return h(),[e,i,h,c]}return[e,a.get(e)[4]]},[H,M]=F(new Map),U=f({onLoadingSlow:s,onSuccess:s,onError:s,onErrorRetry:(e,t,r,n,o)=>{let i=r.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;(l(i)||!(a>i))&&setTimeout(n,s,o)},onDiscarded:s,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:L?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:L?5e3:3e3,compare:function e(t,r){var n,o;if(t===r)return!0;
1if(t&&r&&(n=t.constructor)===r.constructor){if(n===Date)return t.getTime()===r.getTime();if(n===RegExp)return t.toString()===r.toString();if(n===Array){if((o=t.length)===r.length)for(;o--&&e(t[o],r[o]););return -1===o}if(!n||"object"==typeof t){for(n in o=0,t)if(i.call(t,n)&&++o&&!i.call(r,n)||!(n in r)||!e(t[n],r[n]))return!1;return Object.keys(r).length===o}}return t!=t&&r!=r},isPaused:()=>!1,cache:H,mutate:M,fallback:{}},{isOnline:()=>b,isVisible:()=>{let e=m&&document.visibilityState;return l(e)||"hidden"!==e}}),G=(e,t)=>{let r=f(e,t);if(t){let{use:n,fallback:o}=e,{use:i,fallback:a}=t;n&&i&&(r.use=n.concat(i)),o&&a&&(r.fallback=f(o,a))}return r},J=(0,n.createContext)({}),X=e=>{let{value:t}=e,r=(0,n.useContext)(J),o=d(t),i=(0,n.useMemo)(()=>o?t(r):t,[o,r,t]),a=(0,n.useMemo)(()=>o?i:G(r,i),[o,r,i]),s=i&&i.provider,c=(0,n.useRef)(u);s&&!c.current&&(c.current=F(s(a.cache||H),i));let l=c.current;return l&&(a.cache=l[0],a.mutate=l[1]),A(()=>{if(l)return l[2]&&l[2](),l[3]},[]),(0,n.createElement)(J.Provider,f(e,{value:a}))}},30100:(e,t,r)=>{"use strict";r.d(t,{CC:()=>n,I0:()=>a,jB:()=>o,q2:()=>i});let n=0,o=1,i=2,a=3},30723:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>f});var n=r(5220),o=r(14732),i=r(15985),a=r(30100),s=r(33070);let u=()=>{},c=u();new WeakMap;let l=n.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),d={dedupe:!0};i.O.defineProperty(i.g,"defaultValue",{value:i.d});let f=(0,s.qm)((e,t,r)=>{let{cache:u,compare:c,suspense:f,fallbackData:p,revalidateOnMount:h,revalidateIfStale:v,refreshInterval:y,refreshWhenHidden:g,refreshWhenOffline:m,keepPreviousData:w}=r,[_,b,E,S]=i.b.get(u),[P,k]=(0,i.s)(e),T=(0,n.useRef)(!1),O=(0,n.useRef)(!1),A=(0,n.useRef)(P),R=(0,n.useRef)(t),L=(0,n.useRef)(r),C=()=>L.current.isVisible()&&L.current.isOnline(),[I,N,j,D]=(0,i.z)(u,P),x=(0,n.useRef)({}).current,q=(0,i.e)(p)?(0,i.e)(r.fallback)?i.U:r.fallback[P]:p,V=(e,t)=>{for(let r in x)if("data"===r){if(!c(e[r],t[r])&&(!(0,i.e)(e[r])||!c(W,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},B=(0,n.useMemo)(()=>{let e=!!P&&!!t&&((0,i.e)(h)?!L.current.isPaused()&&!f&&!1!==v:h),r=t=>{let r=(0,i.m)(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=I(),o=D(),a=r(n),s=n===o?a:r(o),u=a;return[()=>{let e=r(I());return V(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>s]},[u,P]),F=(0,o.useSyncExternalStore)((0,n.useCallback)(e=>j(P,(t,r)=>{V(r,t)||e()}),[u,P]),B[0],B[1]),H=!T.current,M=_[P]&&_[P].length>0,U=F.data,G=(0,i.e)(U)?q&&(0,i.B)(q)?l(q):q:U,J=F.error,X=(0,n.useRef)(G),W=w?(0,i.e)(U)?(0,i.e)(X.current)?G:X.current:U:G,z=(!M||!!(0,i.e)(J))&&(H&&!(0,i.e)(h)?h:!L.current.isPaused()&&(f?!(0,i.e)(G)&&v:(0,i.e)(G)||v)),$=!!(P&&t&&H&&z),Y=(0,i.e)(F.isValidating)?$:F.isValidating,K=(0,i.e)(F.isLoading)?$:F.isLoading,Q=(0,n.useCallback)(async e=>{let t,n,o=R.current;if(!P||!o||O.current||L.current.isPaused())return!1;let s=!0,u=e||{},l=!E[P]||!u.dedupe,d=()=>i.I?!O.current&&P===A.current&&T.current:P===A.current,f={isValidating:!1,isLoading:!1},p=()=>{N(f)},h=()=>{let e=E[P];e&&e[1]===n&&delete E[P]},v={isValidating:!0};(0,i.e)(I().data)&&(v.isLoading=!0);try{if(l&&(N(v),r.loadingTimeout&&(0,i.e)(I().data)&&setTimeout(()=>{s&&d()&&L.current.onLoadingSlow(P,r)},r.loadingTimeout),E[P]=[o(k),(0,i.o)()]),[t,n]=E[P],t=await t,l&&setTimeout(h,r.dedupingInterval),!E[P]||E[P][1]!==n)return l&&d()&&L.current.onDiscarded(P),!1;f.error=i.U;let e=b[P];if(!(0,i.e)(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return p(),l&&d()&&L.current.onDiscarded(P),!1;let a=I().data;f.data=c(a,t)?a:t,l&&d()&&L.current.onSuccess(t,P,r)}catch(r){h();let e=L.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(f.error=r,l&&d()&&(e.onError(r,P,e),(!0===t||(0,i.a)(t)&&t(r))&&(!L.current.revalidateOnFocus||!L.current.revalidateOnReconnect||C())&&e.onErrorRetry(r,P,e,e=>{let t=_[P];t&&t[0]&&t[0](a.I0,e)},{retryCount:(u.retryCount||0)+1,dedupe:!0})))}return s=!1,p(),!0},[P,u]),Z=(0,n.useCallback)((...e)=>(0,i.n)(u,A.current,...e),[]);if((0,i.u)(()=>{R.current=t,L.current=r,(0,i.e)(U)||(X.current=U)}),(0,i.u)(()=>
1{if(!P)return;let e=Q.bind(i.U,d),t=0;L.current.revalidateOnFocus&&(t=Date.now()+L.current.focusThrottleInterval);let r=(0,s.aw)(P,_,(r,n={})=>{if(r==a.CC){let r=Date.now();L.current.revalidateOnFocus&&r>t&&C()&&(t=r+L.current.focusThrottleInterval,e())}else if(r==a.jB)L.current.revalidateOnReconnect&&C()&&e();else if(r==a.q2)return Q();else if(r==a.I0)return Q(n)});return O.current=!1,A.current=P,T.current=!0,N({_k:k}),z&&((0,i.e)(G)||i.r?e():(0,i.t)(e)),()=>{O.current=!0,r()}},[P]),(0,i.u)(()=>{let e;function t(){let t=(0,i.a)(y)?y(I().data):y;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!I().error&&(g||L.current.isVisible())&&(m||L.current.isOnline())?Q(d).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[y,g,m,P]),(0,n.useDebugValue)(W),f&&(0,i.e)(G)&&P){if(!i.I&&i.r)throw Error("Fallback data is required when using Suspense in SSR.");R.current=t,L.current=r,O.current=!1;let e=S[P];if((0,i.e)(e)||l(Z(e)),(0,i.e)(J)){let e=Q(d);(0,i.e)(W)||(e.status="fulfilled",e.value=!0),l(e)}else throw J}return{mutate:Z,get data(){return x.data=!0,W},get error(){return x.error=!0,J},get isValidating(){return x.isValidating=!0,Y},get isLoading(){return x.isLoading=!0,K}}})},33070:(e,t,r)=>{"use strict";r.d(t,{aw:()=>d,iX:()=>u,qm:()=>l,Ht:()=>f});var n=r(15985),o=r(5220);let i=n.i&&window.__SWR_DEVTOOLS_USE__,a=i?window.__SWR_DEVTOOLS_USE__:[],s=e=>(0,n.a)(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],u=()=>(0,n.m)(n.d,(0,o.useContext)(n.S)),c=a.concat(e=>(t,r,o)=>{let i=r&&((...e)=>{let[o]=(0,n.s)(t),[,,,i]=n.b.get(n.c);if(o.startsWith("$inf$"))return r(...e);let a=i[o];return(0,n.e)(a)?r(...e):(delete i[o],a)});return e(t,i,o)}),l=e=>function(...t){let r=u(),[o,i,a]=s(t),l=(0,n.f)(r,a),d=e,{use:f}=l,p=(f||[]).concat(c);for(let e=p.length;e--;)d=p[e](d);return d(o,i||l.fetcher||null,l)},d=(e,t,r)=>{let n=t[e]||(t[e]=[]);return n.push(r),()=>{let e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}},f=(e,t)=>(...r)=>{let[n,o,i]=s(r),a=(i.use||[]).concat(t);return e(n,o,{...i,use:a})};i&&(window.__SWR_DEVTOOLS_REACT__=o)},34430:function(e,t,r){var n,o;!function(i,a){"use strict";void 0===(o="function"==typeof(n=a)?n.call(t,r,t,e):n)||(e.exports=o)}(0,function(){"use strict";var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],o={},i=null;function a(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(){for(var r=this.getLevel(),o=0;o<n.length;o++){var i=n[o];this[i]=o<r?e:this.methodFactory(i,r,this.name)}if(this.log=this.debug,typeof console===t&&r<this.levels.SILENT)return"No console available for logging"}function c(e){return function(){typeof console!==t&&(u.call(this),this[e].apply(this,arguments))}}function l(n,o,i){var u;return"debug"===(u=n)&&(u="log"),typeof console!==t&&("trace"===u&&r?s:void 0!==console[u]?a(console,u):void 0!==console.log?a(console,"log"):e)||c.apply(this,arguments)}function d(e,r){var a,s,c,d=this,f="loglevel";function p(){var e;if(typeof window!==t&&f){try{e=window.localStorage[f]}catch(e){}if(typeof e===t)try{var r=window.document.cookie,n=encodeURIComponent(f),o=r.indexOf(n+"=");-1!==o&&(e=/^([^;]+)/.exec(r.slice(o+n.length+1))[1])}catch(e){}return void 0===d.levels[e]&&(e=void 0),e}}function h(e){var t=e;if("string"==typeof t&&void 0!==d.levels[t.toUpperCase()]&&(t=d.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=d.levels.SILENT)return t;throw TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?f+=":"+e:"symbol"==typeof e&&(f=void 0),d.name=e,d.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},d.methodFactory=r||l,d.getLevel=function(){return null!=c?c:null!=s?s:a},d.setLevel=function(e,r){return c=h(e),!1!==r&&function(e){var r=(n[e]||"silent").toUpperCase();if(typeof window!==t&&f){try{window.localStorage[f]=r;return}catch(e){}try{window.document.cookie=encodeURIComponent(f)+"="+r+";"}catch(e){}}}(c),u.call(d)},d.setDefaultLevel=function(e){s=h(e),p()||d.setLevel(e,!1)},d.resetLevel=function(){if(c=null,typeof window!==t&&f){try{window.localStorage.removeItem(f)}catch(e){}try{window.document.cookie=encodeURIComponent(f)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}u.call(d)},d.enableAll=function(e){d.setLevel(d.levels.TRACE,e)},d.disableAll=function(e){d.setLevel(d.levels.SILENT,e)},d.rebuild=function(){if(i!==d&&(a=h(i.getLevel())),u.call(d),i===d)for(var e in o)o[e].rebuild()},a=h(i?i.getLevel():"WARN");var v=p();null!=v&&(c=h(v)),u.call(d)}(i=new d).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw TypeError("You must supply a name when creating a logger.");var t=o[e];return t||(t=o[e]=new d(e,i.methodFactory)),t};var f=typeof window!==t?window.log:void 0;return i.noConflict=function(){return typeof window!==t&&window.log===i&&(window.log=f),i},i.getLoggers=function(){return o},i.default=i,i})},34490:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>g});var n=r(34998);function o(e){if(e){var t={};return Object.keys(e).forEach(function(r){"string"==typeof e[r]||"boolean"==typeof e[r]||"number"==typeof e[r]?t[r]=e[r]:t[r]=JSON.stringify(e[r])}),t}}var i=r(30880),a=function(){function e(){}return e.serialize=function(){return{transport:this.transport(),origin:this.origin()}},e.origin=function(){var e=u();return e.location?e.location.origin||"".concat(e.location.protocol,"//").concat(e.location.hostname):""},e.transport=function(){var e=u();return s()&&"undefined"==typeof jest?"NodeHTTP":e.XDomainRequest?"XDomainRequest":e.XMLHttpRequest&&!e.fetch?"XMLHttpRequest":"fetch"},e.supportsPromises=function(){var e,t=u();return"Promise"in t&&"resolve"in t.Promise&&"reject"in t.Promise&&"all"in t.Promise&&"race"in t.Promise&&(new t.Promise(function(t){e=t}),"function"==typeof e)},e}();function s(){return"[object process]"===Object.prototype.toString.call(void 0!==i?i:0)}function u(){return s()?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}}var c=function(){function e(e){this.url=e}return e.prototype.send=function(e){var t=this;
1return new Promise(function(r,n){var o,i=new XDomainRequest,a=RegExp("^https?:");i.onload=function(){return r({})},i.open("POST",t.url.replace(a,null==(o=null==window?void 0:window.location)?void 0:o.protocol)),setTimeout(function(){try{i.send(e)}catch(e){n(e)}},0)})},e}(),l=function(){function e(e){this.url=e}return e.prototype.send=function(e){var t=this;return new Promise(function(r,n){try{var o=new XMLHttpRequest;o.onreadystatechange=function(){o.readyState===XMLHttpRequest.DONE&&r({})},o.open("POST",t.url),o.send(e)}catch(e){n(e)}})},e}(),d=function(){function e(e,t){this.url=e}return e.prototype.send=function(e){return(0,n.sH)(this,void 0,void 0,function(){var t,r;return(0,n.YH)(this,function(n){switch(n.label){case 0:return[4,fetch(this.url,{method:"POST",body:e})];case 1:return r=(t=n.sent()).statusText,[2,t.ok?Promise.resolve({}):Promise.reject({statusText:r})]}})})},e}(),f=function(){function e(e){this.url=e,this.https=r.e(4587).then(r.t.bind(r,44587,23))}return e.prototype.send=function(e){var t=this,r={method:"POST",headers:{"Content-Type":"application/json","Content-Length":e.length}};return new Promise(function(n,o){t.https.then(function(i){var a=i.request(t.url,r,function(){}).on("error",function(e){return o(e)});a.write(e),a.end(),n({})}).catch(function(e){console.warn("NodeTransport is being used, but the HTTPS module could not be imported. No data will be sent to AppSignal."),o(e)})})},e}(),p=function(){function e(e){this._uri=e.uri||"https://appsignal-endpoint.net/collect",this._apiKey=e.key,this._clientVersion=e.version,this._transport=this._createTransport(this._url())}return e.prototype.push=function(e){return(0,n.sH)(this,void 0,void 0,function(){return(0,n.YH)(this,function(t){switch(t.label){case 0:return[4,this._transport.send(e.toJSON())];case 1:return t.sent(),[2,e]}})})},e.prototype._createTransport=function(e){switch(a.transport()){case"XDomainRequest":return new c(e);case"XMLHttpRequest":return new l(e);case"NodeHTTP":return new f(e);default:return new d(e)}},e.prototype._url=function(){var e,t=this._authorization();return"".concat(this._uri,"?").concat(Object.keys(e=t).map(function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))}).join("&"))},e.prototype._authorization=function(){return{api_key:this._apiKey,version:this._clientVersion}},e}(),h=function(e){function t(t){return e.call(this,(0,n.Cl)({timestamp:Math.round(new Date().getTime()/1e3),namespace:"frontend",error:{name:"NullError",message:"No error has been set",backtrace:[]}},t))||this}return(0,n.C6)(t,e),t.prototype.setAction=function(e){return e&&"string"==typeof e&&(this._data.action=e),this},t.prototype.getAction=function(){return this._data.action},t.prototype.setNamespace=function(e){return e&&"string"==typeof e&&(this._data.namespace=e),this},t.prototype.getNamespace=function(){return this._data.namespace},t.prototype.setError=function(e){return e&&"object"==typeof e&&void 0!==e.message&&(this._data.error={name:e.name||"[unknown]",message:e.message,backtrace:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]){var t=e.stacktrace;return(void 0===t?"":t).split("\n").filter(function(e){return""!==e})}if(!e.stack)return["No stacktrace available"];var r=e.stack;return(void 0===r?"":r).split("\n").filter(function(e){return""!==e})}(e)}),this},t.prototype.getError=function(){return this._data.error},t.prototype.setTags=function(e){return this._data.tags=(0,n.Cl)((0,n.Cl)({},this._data.tags),function(e){if(e){var t={};return Object.keys(e).forEach(function(r){"object"==typeof e[r]?t[r]=JSON.stringify(e[r]):t[r]=String(e[r])}),t}}(e)),this},t.prototype.getTags=function(){var e;return null!=(e=this._data.tags)?e:{}},t.prototype.setParams=function(e){return this._data.params=(0,n.Cl)((0,n.Cl)({},this._data.params),e),this},t.prototype.getParams=function(){var e;return null!=(e=this._data.params)?e:{}},t.prototype.setBreadcrumbs=function(e){return this._data.breadcrumbs=e,this},t.prototype.getBreadcrumbs=function(){var e;return null!=(e=this._data.breadcrumbs)?e:[]},t.prototype.setEnvironment=function(e){return this._data.environment=(0,n.Cl)((0,n.Cl)({},this._data.environment),e),this},t.prototype.getEnvironment=function(){var e;return null!=(e=this._data.environment)?e:{}},t.prototype.cleanBacktracePath=function(e){if(0===e.length||!this._data.error||!this._data.error.backtrace)return this;var t=0;return this._data.error.backtrace=this._data.error.backtrace.map(function(r){var o,i,a=function(e){if(e.match(/^\s*at\s/)){var t=e.match(/at(?:\s.*)?\s\(?(.*):\d*:\d*\)?$/i);return t?t[1]:void 0}if(e.match(/^.*@/)){var t=e.match(/@\s?(.*):\d*:\d*$/i);return t?t[1]:void 0}}(r);if(!a)return r;try{for(var s=(0,n.Ju)(e),u=s.next();!u.done;u=s.next()){var c=u.value,l=a.match(c);if(l&&!(l.length<2)){var d=l.slice(1).join("");if(d)return t++,r.replace(a,d)}}}catch(e){o={error:e}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return r}),t>0&&this.setEnvironment({backtrace_paths_matched:t.toString()}),this},t}(function(){function e(e){this._data=e}return e.prototype.toJSON=function(){return JSON.stringify(this._data)},e.prototype.serialize=function(){return this._data},e}()),v=function(){function e(e){this._data=e||[]}return e.prototype.clear=function(){this._data=[]},e.prototype.values=function(){return this._data},e.prototype.push=function(e){var t;return Array.isArray(e)?(t=this._data).push.apply(t,(0,n.fX)([],(0,n.zs)(e),!1)):this._data.push(e)},e.prototype.drain=function(){return(0,n.YH)(this,function(e){switch(e.label){case 0:if(!(this._data.length>0))return[3,2];return[4,this._data.shift()];case 1:return e.sent(),[3,0];case 2:return[2]}})},e}(),y=function(){function e(e,t,r){this._retries=0,this._timerID=0,this._duration=0,this._api=t,this._queue=e,this.options=(0,n.Cl)({limit:5,initialDuration:1e3},r),this.reset()}return e.prototype.schedule=function(e){var t=this;return void 0===e&&(e=this._duration),u().setTimeout(function(){return(0,n.sH)(t,void 0,void 0,function(){var t,r,o,i,a,s;return(0,n.YH)(this,function(u){switch(u.label){case 0:u.trys.push([0,7,8,9]),r=(t=(0,n.Ju)(this._queue.drain())).next(),u.label=1;case 1:if(r.done)return[3,6];if(!(o=r.value))return[2];u.label=2;case 2:return u.trys.push([2,4,,5]),[4,this._api.push(o)];case 3:return u.sent(),[3,5];case 4:return u.sent(),i=Math.floor(Math.pow(e,1.3)),this._retries=this._retries-1,0===this._retries?this.reset():(this._queue.push(o),this._timerID=this.schedule(i)),[2];case 5:return r=t.next(),[3,1];case 6:return[3,9];case 7:return a={error:u.sent()},[3,9];case 8:try{r&&!r.done&&(s=t.return)&&s.call(t)}finally{if(a)throw a.error}
1return[7];case 9:return this.reset(),[2]}})})},e)},e.prototype.reset=function(){var e=this.options,t=e.limit,r=e.initialDuration;this._retries=t,this._duration=r},e}();let g=function(){function e(e){this.VERSION="1.5.0",this.ignored=[],this.matchBacktracePaths=[],this._breadcrumbs=[],this._hooks={decorators:[],overrides:[]},this._env=a.serialize(),this._queue=new v([]);var t=e.key,r=void 0===t?"":t,n=e.uri,o=e.revision,i=e.ignoreErrors,s=e.matchBacktracePaths;o&&"string"!=typeof o&&(e.revision=String(o)),""===r&&console.info("[APPSIGNAL]: No API key provided. Started in development mode. No data will be sent."),this._api=new p({key:r,uri:n,version:this.VERSION}),i&&Array.isArray(i)&&(this.ignored=i.filter(function(e){return e instanceof RegExp}).map(m)),s&&(Array.isArray(s)?this.matchBacktracePaths=s:this.matchBacktracePaths=[s],this.matchBacktracePaths=this.matchBacktracePaths.filter(function(e){return e instanceof RegExp}).map(m)),this._dispatcher=new y(this._queue,this._api),this._options=e}return e.prototype.send=function(e,t,r){var i,s,u,c,l,d,f=this;if(!(e instanceof Error)&&!(e instanceof h)&&!(e&&e.error instanceof Error))return void console.error("[APPSIGNAL]: Can't send error, given error is not a valid type");var p=(d="error"in e?e.error:e)instanceof h?d:this._createSpanFromError(d);try{for(var v=(0,n.Ju)(this._hooks.decorators),y=v.next();!y.done;y=v.next()){var g=y.value,m=p;p=g(p),void 0===p&&(p=m)}}catch(e){i={error:e}}finally{try{y&&!y.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}if(t)if("function"==typeof t)t(p);else{console.warn("[APPSIGNAL]: DEPRECATED: Calling the `send`/`sendError` function with a tags object is deprecated. Use the callback argument instead.");var w=o(t)||{};p.setTags(w)}r&&(console.warn("[APPSIGNAL]: DEPRECATED: Calling the `send`/`sendError` function with a namespace is deprecated. Use the callback argument instead."),p.setNamespace(r)),this._breadcrumbs.length>0&&p.setBreadcrumbs(this._breadcrumbs);try{for(var _=(0,n.Ju)(this._hooks.overrides),b=_.next();!b.done;b=_.next()){var E=b.value,m=p,S=E(p);if(!1===S)return void console.warn("[APPSIGNAL]: Ignored a span due to override.");p=null!=S?S:m}}catch(e){u={error:e}}finally{try{b&&!b.done&&(c=_.return)&&c.call(_)}finally{if(u)throw u.error}}var P=null==(l=p.getError())?void 0:l.message;return P&&this.ignored.some(function(e){return e.test(P)})?void console.warn("[APPSIGNAL]: Ignored a span: ".concat(P)):(p.cleanBacktracePath(this.matchBacktracePaths),a.supportsPromises())?(this._breadcrumbs=[],this._options.key)?this._api.push(p).catch(function(){f._queue.push(p),setTimeout(function(){return f._dispatcher.schedule()},0)}):void console.warn("[APPSIGNAL]: Span not sent because we're in development mode:",p):void console.error("[APPSIGNAL]: Error not sent. A Promise polyfill is required.")},e.prototype.sendError=function(e,t,r){return this.send(e,t,r)},e.prototype.use=function(e){e.call(this)},e.prototype.createSpan=function(e){var t=this._options,r=t.revision,n=t.namespace,o=new h({environment:this._env,revision:void 0===r?"":r});return n&&o.setNamespace(n),e&&"function"==typeof e&&e(o),o},e.prototype.wrap=function(e,t,r){return(0,n.sH)(this,void 0,void 0,function(){var o;return(0,n.YH)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,5]),[4,e()];case 1:return[2,n.sent()];case 2:if(!((o=n.sent())instanceof Error||o instanceof ErrorEvent))return[3,4];return[4,this.sendError(o,t,r)];case 3:n.sent(),n.label=4;case 4:return[2,Promise.reject(o)];case 5:return[2]}})})},e.prototype.addDecorator=function(e){this._hooks.decorators.push(e)},e.prototype.addOverride=function(e){this._hooks.overrides.push(e)},e.prototype.demo=function(){var e=this._createSpanFromError(Error("Hello world! This is an error used for demonstration purposes."));e.setAction("TestAction").setParams({path:"/hello",method:"GET"}).setTags({demo_sample:"true"}),this.send(e)},e.prototype.addBreadcrumb=function(e){var t=(0,n.Cl)((0,n.Cl)({timestamp:Math.round(new Date().getTime()/1e3)},e),{metadata:o(e.metadata)});return t.category?t.action?void(20===this._breadcrumbs.length&&this._breadcrumbs.pop(),this._breadcrumbs.unshift(t)):void console.warn("[APPSIGNAL]: Breadcrumb not added. `action` is missing."):void console.warn("[APPSIGNAL]: Breadcrumb not added. `category` is missing.")},e.prototype._createSpanFromError=function(e){var t=this.createSpan();return t.setError(e),t},e}();function m(e){return new RegExp(e.source,e.flags.replace("g",""))}},37386:(e,t,r)=>{"use strict";function n(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}(e))&&(n&&(n+=" "),n+=t);return n}r.d(t,{$:()=>n,A:()=>o});let o=n},67475:(e,t,r)=>{"use strict";var n=r(5220),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useState,a=n.useEffect,s=n.useLayoutEffect,u=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=i({inst:{value:r,getSnapshot:t}}),o=n[0].inst,l=n[1];
vendor: 243 bytes, line 1
1return s(function(){o.value=r,o.getSnapshot=t,c(o)&&l({inst:o})},[e,r,t]),a(function(){return c(o)&&l({inst:o}),e(function(){c(o)&&l({inst:o})})},[e]),u(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l}}]);
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.