@apollosproject/canvas-embeds 2.1.3058 → 2.1.3059

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/widget/index.js +2 -2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apollosproject/canvas-embeds",
3
3
  "description": "Apollos React embed widgets",
4
- "version": "2.1.3058",
4
+ "version": "2.1.3059",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -46,7 +46,7 @@
46
46
  "react-dom": "^18.2.0",
47
47
  "react-image-crop": "^10.0.11",
48
48
  "react-multi-carousel": "^2.8.2",
49
- "react-router": "7.18.3",
49
+ "react-router": "7.18.5",
50
50
  "react-transition-group": "4.4.5",
51
51
  "styled-components": "^5.3.6",
52
52
  "styled-system": "^5.1.5",
package/widget/index.js CHANGED
@@ -157,10 +157,10 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
157
157
  `);for(let e=n;e<i.length;e++){let n=i[e];if(n.length>1024)continue;let a=lt.test(n)?n.replace(lt,`$1`):n;if(!a.match(/\S*Error: /)){for(let e of t){let t=e(a);if(t){r.push(t);break}}if(r.length>=ct)break}}return pt(r)}}function ft(e){return Array.isArray(e)?dt(...e):e}function pt(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||``)&&t.pop(),t.reverse(),ut.test(t[t.length-1].function||``)&&(t.pop(),ut.test(t[t.length-1].function||``)&&t.pop()),t.slice(0,ct).map(e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||`?`}))}var mt=`<anonymous>`;function ht(e){try{return!e||typeof e!=`function`?mt:e.name||mt}catch{return mt}}var gt={},_t={};function vt(e,t){gt[e]=gt[e]||[],gt[e].push(t)}function yt(e,t){_t[e]||(t(),_t[e]=!0)}function bt(e,t){let n=e&&gt[e];if(n)for(let r of n)try{r(t)}catch(t){Fe&&Ve.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${ht(r)}\nError:`,t)}}function xt(e){let t=`console`;vt(t,e),yt(t,St)}function St(){`console`in Ee&&Le.forEach(function(e){e in Ee.console&&Xe(Ee.console,e,function(t){return Re[e]=t,function(...t){bt(`console`,{args:t,level:e});let n=Re[e];n&&n.apply(Ee.console,t)}})})}function Ct(){let e=Ee,t=e.crypto||e.msCrypto,n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,``);t&&t.getRandomValues&&(n=()=>{let e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch{}return`10000000100040008000100000000000`.replace(/[018]/g,e=>(e^(n()&15)>>e/4).toString(16))}function wt(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Tt(e){let{message:t,event_id:n}=e;if(t)return t;let r=wt(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||`<unknown>`:n||`<unknown>`}function Et(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||=t||``,a.type||=n||`Error`}function Dt(e,t){let n=wt(e);if(!n)return;let r={type:`generic`,handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&`data`in t){let e={...i&&i.data,...t.data};n.mechanism.data=e}}function Ot(e){if(e&&e.__sentry_captured__)return!0;try{Ze(e,`__sentry_captured__`,!0)}catch{}return!1}function kt(e){return Array.isArray(e)?e:[e]}var At=Ee,jt=1e3,Mt,Nt,Pt;function Ft(e){vt(`dom`,e),yt(`dom`,It)}function It(){if(!At.document)return;let e=bt.bind(null,`dom`),t=zt(e,!0);At.document.addEventListener(`click`,t,!1),At.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=At[t]&&At[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty(`addEventListener`)&&(Xe(n,`addEventListener`,function(t){return function(n,r,i){if(n===`click`||n==`keypress`)try{let r=this,a=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},o=a[n]=a[n]||{refCount:0};if(!o.handler){let r=zt(e);o.handler=r,t.call(this,n,r,i)}o.refCount++}catch{}return t.call(this,n,r,i)}}),Xe(n,`removeEventListener`,function(e){return function(t,n,r){if(t===`click`||t==`keypress`)try{let n=this,i=n.__sentry_instrumentation_handlers__||{},a=i[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,r),a.handler=void 0,delete i[t]),Object.keys(i).length===0&&delete n.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function Lt(e){if(e.type!==Nt)return!1;try{if(!e.target||e.target._sentryId!==Pt)return!1}catch{}return!0}function Rt(e,t){return e===`keypress`?!t||!t.tagName||!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!1}function zt(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=Bt(n);if(Rt(n.type,r))return;Ze(n,`_sentryCaptured`,!0),r&&!r._sentryId&&Ze(r,`_sentryId`,Ct());let i=n.type===`keypress`?`input`:n.type;Lt(n)||(e({event:n,name:i,global:t}),Nt=n.type,Pt=r?r._sentryId:void 0),clearTimeout(Mt),Mt=At.setTimeout(()=>{Pt=void 0,Nt=void 0},jt)}}function Bt(e){try{return e.target}catch{return null}}var Vt=De();function Ht(){if(!(`fetch`in Vt))return!1;try{return new Headers,new Request(`http://www.example.com`),new Response,!0}catch{return!1}}function Ut(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Wt(){if(typeof EdgeRuntime==`string`)return!0;if(!Ht())return!1;if(Ut(Vt.fetch))return!0;let e=!1,t=Vt.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Ut(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){Fe&&Ve.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return e}function Gt(e){let t=`fetch`;vt(t,e),yt(t,Kt)}function Kt(){Wt()&&Xe(Ee,`fetch`,function(e){return function(...t){let{method:n,url:r}=Yt(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return bt(`fetch`,{...i}),e.apply(Ee,t).then(e=>(bt(`fetch`,{...i,endTimestamp:Date.now(),response:e}),e),e=>{throw bt(`fetch`,{...i,endTimestamp:Date.now(),error:e}),e})}})}function qt(e,t){return!!e&&typeof e==`object`&&!!e[t]}function Jt(e){return typeof e==`string`?e:e?qt(e,`url`)?e.url:e.toString?e.toString():``:``}function Yt(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:Jt(t),method:qt(n,`method`)?String(n.method).toUpperCase():`GET`}}let t=e[0];return{url:Jt(t),method:qt(t,`method`)?String(t.method).toUpperCase():`GET`}}var Xt=null;function Zt(e){let t=`error`;vt(t,e),yt(t,Qt)}function Qt(){Xt=Ee.onerror,Ee.onerror=function(e,t,n,r,i){return bt(`error`,{column:r,error:i,line:n,msg:e,url:t}),Xt&&!Xt.__SENTRY_LOADER__?Xt.apply(this,arguments):!1},Ee.onerror.__SENTRY_INSTRUMENTED__=!0}var $t=null;function en(e){let t=`unhandledrejection`;vt(t,e),yt(t,tn)}function tn(){$t=Ee.onunhandledrejection,Ee.onunhandledrejection=function(e){return bt(`unhandledrejection`,e),$t&&!$t.__SENTRY_LOADER__?$t.apply(this,arguments):!0},Ee.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var nn=De();function rn(){let e=nn.chrome,t=e&&e.app&&e.app.runtime,n=`history`in nn&&!!nn.history.pushState&&!!nn.history.replaceState;return!t&&n}var an=Ee,on;function sn(e){let t=`history`;vt(t,e),yt(t,cn)}function cn(){if(!rn())return;let e=an.onpopstate;an.onpopstate=function(...t){let n=an.location.href,r=on;if(on=n,bt(`history`,{from:r,to:n}),e)try{return e.apply(this,t)}catch{}};function t(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=on,t=String(n);on=t,bt(`history`,{from:e,to:t})}return e.apply(this,t)}}Xe(an.history,`pushState`,t),Xe(an.history,`replaceState`,t)}var ln=Ee,un=`__sentry_xhr_v3__`;function dn(e){vt(`xhr`,e),yt(`xhr`,fn)}function fn(){if(!ln.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;Xe(e,`open`,function(e){return function(...t){let n=Date.now(),r=F(t[0])?t[0].toUpperCase():void 0,i=pn(t[1]);if(!r||!i)return e.apply(this,t);this[un]={method:r,url:i,request_headers:{}},r===`POST`&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let a=()=>{let e=this[un];if(e&&this.readyState===4){try{e.status_code=this.status}catch{}bt(`xhr`,{args:[r,i],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return`onreadystatechange`in this&&typeof this.onreadystatechange==`function`?Xe(this,`onreadystatechange`,function(e){return function(...t){return a(),e.apply(this,t)}}):this.addEventListener(`readystatechange`,a),Xe(this,`setRequestHeader`,function(e){return function(...t){let[n,r]=t,i=this[un];return i&&F(n)&&F(r)&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}}),e.apply(this,t)}}),Xe(e,`send`,function(e){return function(...t){let n=this[un];return n&&(t[0]!==void 0&&(n.body=t[0]),bt(`xhr`,{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this})),e.apply(this,t)}})}function pn(e){if(F(e))return e;try{return e.toString()}catch{}}function mn(){return`npm`}function hn(){let e=typeof WeakSet==`function`,t=e?new WeakSet:[];function n(n){if(e)return t.has(n)?!0:(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1}function r(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}return[n,r]}function gn(e,t=100,n=1/0){try{return vn(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function _n(e,t=3,n=102400){let r=gn(e,t);return Sn(r)>n?_n(e,t-1,n):r}function vn(e,t,n=1/0,r=1/0,i=hn()){let[a,o]=i;if(t==null||[`number`,`boolean`,`string`].includes(typeof t)&&!pe(t))return t;let s=yn(e,t);if(!s.startsWith(`[object `))return s;if(t.__sentry_skip_normalization__)return t;let c=typeof t.__sentry_override_normalization_depth__==`number`?t.__sentry_override_normalization_depth__:n;if(c===0)return s.replace(`object `,``);if(a(t))return`[Circular ~]`;let l=t;if(l&&typeof l.toJSON==`function`)try{return vn(``,l.toJSON(),c-1,r,i)}catch{}let u=Array.isArray(t)?[]:{},d=0,f=tt(t);for(let e in f){if(!Object.prototype.hasOwnProperty.call(f,e))continue;if(d>=r){u[e]=`[MaxProperties ~]`;break}let t=f[e];u[e]=vn(e,t,c-1,r,i),d++}return o(t),u}function yn(e,t){try{if(e===`domain`&&t&&typeof t==`object`&&t._events)return`[Domain]`;if(e===`domainEmitter`)return`[DomainEmitter]`;if(typeof global<`u`&&t===global)return`[Global]`;if(typeof window<`u`&&t===window)return`[Window]`;if(typeof document<`u`&&t===document)return`[Document]`;if(he(t))return`[VueViewModel]`;if(fe(t))return`[SyntheticEvent]`;if(typeof t==`number`&&t!==t)return`[NaN]`;if(typeof t==`function`)return`[Function: ${ht(t)}]`;if(typeof t==`symbol`)return`[${String(t)}]`;if(typeof t==`bigint`)return`[BigInt: ${String(t)}]`;let n=bn(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function bn(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:`null prototype`}function xn(e){return~-encodeURI(e).split(/%..|./).length}function Sn(e){return xn(JSON.stringify(e))}var Cn;(function(e){e[e.PENDING=0]=`PENDING`,e[e.RESOLVED=1]=`RESOLVED`,e[e.REJECTED=2]=`REJECTED`})(Cn||={});function wn(e){return new En(t=>{t(e)})}function Tn(e){return new En((t,n)=>{n(e)})}var En=class e{constructor(t){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),this._state=Cn.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(e){this._reject(e)}}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>{if(!t)e(n);else try{e(t(n))}catch(e){r(e)}},t=>{if(!n)r(t);else try{e(n(t))}catch(e){r(e)}}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{i?n(r):e(r)})})}__init(){this._resolve=e=>{this._setResult(Cn.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Cn.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===Cn.PENDING&&(de(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===Cn.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===Cn.RESOLVED&&e[1](this._value),this._state===Cn.REJECTED&&e[2](this._value),!0)})}}};function Dn(e){let t=[];function n(){return e===void 0||t.length<e}function r(e){return t.splice(t.indexOf(e),1)[0]}function i(e){if(!n())return Tn(new Ye(`Not adding Promise because buffer limit was reached.`));let i=e();return t.indexOf(i)===-1&&t.push(i),i.then(()=>r(i)).then(null,()=>r(i).then(null,()=>{})),i}function a(e){return new En((n,r)=>{let i=t.length;if(!i)return n(!0);let a=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{wn(e).then(()=>{--i||(clearTimeout(a),n(!0))},r)})})}return{$:t,add:i,drain:a}}function On(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||``,r=t[8]||``;return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}var kn=[`fatal`,`error`,`warning`,`log`,`info`,`debug`];function An(e){return e===`warn`?`warning`:kn.includes(e)?e:`log`}var jn=1e3;function Mn(){return Date.now()/jn}function Nn(){let{performance:e}=Ee;if(!e||!e.now)return Mn;let t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/jn}var Pn=Nn();(()=>{let{performance:e}=Ee;if(!e||!e.now)return;let t=36e5,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i<t,o=e.timing&&e.timing.navigationStart,s=typeof o==`number`?Math.abs(o+n-r):t;return a||s<t?i<=s?e.timeOrigin:o:r})();function Fn(e,t=[]){return[e,t]}function In(e,t){let[n,r]=e;return[n,[...r,t]]}function Ln(e,t){let n=e[1];for(let e of n){let n=e[0].type;if(t(e,n))return!0}return!1}function Rn(e,t){return(t||new TextEncoder).encode(e)}function zn(e,t){let[n,r]=e,i=JSON.stringify(n);function a(e){typeof i==`string`?i=typeof e==`string`?i+e:[Rn(i,t),e]:i.push(typeof e==`string`?Rn(e,t):e)}for(let e of r){let[t,n]=e;if(a(`\n${JSON.stringify(t)}\n`),typeof n==`string`||n instanceof Uint8Array)a(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(gn(n))}a(e)}}return typeof i==`string`?i:Bn(i)}function Bn(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function Vn(e,t){let n=typeof e.data==`string`?Rn(e.data,t):e.data;return[at({type:`attachment`,length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}var Hn={session:`session`,sessions:`session`,attachment:`attachment`,transaction:`transaction`,event:`error`,client_report:`internal`,user_report:`default`,profile:`profile`,replay_event:`replay`,replay_recording:`replay`,check_in:`monitor`,feedback:`feedback`,span:`span`,statsd:`metric_bucket`};function Un(e){return Hn[e]}function Wn(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function Gn(e,t,n,r){let i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:We(r)},...i&&{trace:at({...i})}}}function Kn(e,t,n){let r=[{type:`client_report`},{timestamp:n||Mn(),discarded_events:e}];return Fn(t?{dsn:t}:{},[r])}var qn=6e4;function Jn(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?qn:r-t}function Yn(e,t){return e[t]||e.all||0}function Xn(e,t,n=Date.now()){return Yn(e,t)>n}function Zn(e,{statusCode:t,headers:n},r=Date.now()){let i={...e},a=n&&n[`x-sentry-rate-limits`],o=n&&n[`retry-after`];if(a)for(let e of a.trim().split(`,`)){let[t,n,,,a]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)i.all=r+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!a||a.split(`;`).includes(`custom`))&&(i[e]=r+s):i[e]=r+s}else o?i.all=r+Jn(o,r):t===429&&(i.all=r+6e4);return i}var Qn=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,$n=`production`;function er(){return Oe(`globalEventProcessors`,()=>[])}function tr(e){er().push(e)}function nr(e,t,n,r=0){return new En((i,a)=>{let o=e[r];if(t===null||typeof o!=`function`)i(t);else{let s=o({...t},n);Qn&&o.id&&s===null&&Ve.log(`Event processor "${o.id}" dropped event`),de(s)?s.then(t=>nr(e,t,n,r+1).then(i)).then(null,a):nr(e,s,n,r+1).then(i).then(null,a)}})}function rr(e){let t=Pn(),n={sid:Ct(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>or(n)};return e&&ir(n,e),n}function ir(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Pn(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Ct()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function ar(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),ir(e,n)}function or(e){return at({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did==`number`||typeof e.did==`string`?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}function sr(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,tags:s,origin:c}=cr(e);return at({data:r,op:i,parent_span_id:a,span_id:t,status:o,tags:s,trace_id:n,origin:c})}function cr(e){return lr(e)?e.getSpanJSON():typeof e.toJSON==`function`?e.toJSON():{}}function lr(e){return typeof e.getSpanJSON==`function`}function ur(e){let{traceFlags:t}=e.spanContext();return!!(t&1)}function dr(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Ct(),timestamp:t.timestamp||Mn()},l=n.integrations||e.integrations.map(e=>e.name);fr(c,e),hr(c,l),t.type===void 0&&mr(c,e.stackParser);let u=_r(r,n.captureContext);n.mechanism&&Dt(c,n.mechanism);let d=i&&i.getEventProcessors?i.getEventProcessors():[],f=Lr().getScopeData();a&&kr(f,a.getScopeData()),u&&kr(f,u.getScopeData());let p=[...n.attachments||[],...f.attachments];return p.length&&(n.attachments=p),Or(c,f),nr([...d,...er(),...f.eventProcessors],c,n).then(e=>(e&&eee(e),typeof o==`number`&&o>0?gr(e,o,s):e))}function fr(e,t){let{environment:n,release:r,dist:i,maxValueLength:a=250}=t;`environment`in e||(e.environment=`environment`in t?n:$n),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&=ge(e.message,a);let o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=ge(o.value,a));let s=e.request;s&&s.url&&(s.url=ge(s.url,a))}var pr=new WeakMap;function mr(e,t){let n=Ee._sentryDebugIds;if(!n)return;let r,i=pr.get(t);i?r=i:(r=new Map,pr.set(t,r));let a=Object.keys(n).reduce((e,i)=>{let a,o=r.get(i);o?a=o:(a=t(i),r.set(i,a));for(let t=a.length-1;t>=0;t--){let r=a[t];if(r.filename){e[r.filename]=n[i];break}}return e},{});try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=a[e.filename])})})}catch{}}function eee(e){let t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.keys(t).forEach(e=>{n.push({type:`sourcemap`,code_file:e,debug_id:t[e]})})}function hr(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function gr(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:gn(e.data,t,n)}}))},...e.user&&{user:gn(e.user,t,n)},...e.contexts&&{contexts:gn(e.contexts,t,n)},...e.extra&&{extra:gn(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=gn(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>{let r=cr(e).data;return r&&(e.data=gn(r,t,n)),e})),r}function _r(e,t){if(!t)return e;let n=e?e.clone():new Ir;return n.update(t),n}function vr(e){if(e)return tee(e)||nee(e)?{captureContext:e}:e}function tee(e){return e instanceof Ir||typeof e==`function`}var yr=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`requestSession`,`propagationContext`];function nee(e){return Object.keys(e).some(e=>yr.includes(e))}function ree(e,t){return Wr().captureException(e,vr(t))}function br(e,t){return Wr().captureEvent(e,t)}function xr(e,t){Wr().addBreadcrumb(e,t)}function Sr(...e){let t=Wr();if(e.length===2){let[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function Cr(){return Wr().getClient()}function wr(){return Wr().getScope()}function Tr(e){let t=Cr(),n=Gr(),r=wr(),{release:i,environment:a=$n}=t&&t.getOptions()||{},{userAgent:o}=Ee.navigator||{},s=rr({release:i,environment:a,user:r.getUser()||n.getUser(),...o&&{userAgent:o},...e}),c=n.getSession();return c&&c.status===`ok`&&ir(c,{status:`exited`}),iee(),n.setSession(s),r.setSession(s),s}function iee(){let e=Gr(),t=wr(),n=t.getSession()||e.getSession();n&&ar(n),aee(),e.setSession(),t.setSession()}function aee(){let e=Gr(),t=wr(),n=Cr(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function oee(e=!1){e?iee():aee()}function see(e){return e.transaction}function Er(e,t,n){let r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:a}=n&&n.getUser()||{},o=at({environment:r.environment||`production`,release:r.release,user_segment:a,public_key:i,trace_id:e});return t.emit&&t.emit(`createDsc`,o),o}function Dr(e){let t=Cr();if(!t)return{};let n=Er(cr(e).trace_id||``,t,wr()),r=see(e);if(!r)return n;let i=r&&r._frozenDynamicSamplingContext;if(i)return i;let{sampleRate:a,source:o}=r.metadata;a!=null&&(n.sample_rate=`${a}`);let s=cr(r);return o&&o!==`url`&&(n.transaction=s.description),n.sampled=String(ur(r)),t.emit&&t.emit(`createDsc`,n),n}function Or(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;jr(e,t),r&&lee(e,r),Nr(e,n),Mr(e,i),cee(e,a)}function kr(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,sdkProcessingMetadata:s,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:d,propagationContext:f,transactionName:p,span:m}=t;Ar(e,`extra`,n),Ar(e,`tags`,r),Ar(e,`user`,i),Ar(e,`contexts`,a),Ar(e,`sdkProcessingMetadata`,s),o&&(e.level=o),p&&(e.transactionName=p),m&&(e.span=m),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function Ar(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(let r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function jr(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t,c=at(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});let l=at(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});let u=at(i);u&&Object.keys(u).length&&(e.user={...u,...e.user});let d=at(a);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),o&&(e.level=o),s&&(e.transaction=s)}function Mr(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function cee(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function lee(e,t){e.contexts={trace:sr(t),...e.contexts};let n=see(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Dr(t),...e.sdkProcessingMetadata};let r=cr(n).description;r&&(e.tags={transaction:r,...e.tags})}}function Nr(e,t){e.fingerprint=e.fingerprint?kt(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}var Pr=100,Fr,Ir=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Rr()}static clone(t){return t?t.clone():new e}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&ir(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t==`function`?t(this):t;if(n instanceof e){let e=n.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else if(ce(n)){let e=t;this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)}return 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=Rr(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:Pr;if(n<=0)return this;let r={timestamp:Mn(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){let{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:i,_user:a,_level:o,_fingerprint:s,_eventProcessors:c,_propagationContext:l,_sdkProcessingMetadata:u,_transactionName:d,_span:f}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:i,user:a,level:o,fingerprint:s||[],eventProcessors:c,propagationContext:l,sdkProcessingMetadata:u,transactionName:d,span:f}}applyToEvent(e,t={},n=[]){return Or(e,this.getScopeData()),nr([...n,...er(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t&&t.event_id?t.event_id:Ct();if(!this._client)return Ve.warn(`No client configured on scope - will not capture exception!`),n;let r=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n&&n.event_id?n.event_id:Ct();if(!this._client)return Ve.warn(`No client configured on scope - will not capture message!`),r;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:Ct();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(Ve.warn(`No client configured on scope - will not capture event!`),n)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),!1)}};function Lr(){return Fr||=new Ir,Fr}function Rr(){return{traceId:Ct(),spanId:Ct().substring(16)}}var zr=`7.119.2`,Br=parseFloat(zr),uee=100,Vr=class{constructor(e,t,n,r=Br){this._version=r;let i;t?i=t:(i=new Ir,i.setClient(e));let a;n?a=n:(a=new Ir,a.setClient(e)),this._stack=[{scope:i}],e&&this.bindClient(e),this._isolationScope=a}isOlderThan(e){return this._version<e}bindClient(e){let t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){let e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(e){let t=this.pushScope(),n;try{n=e(t)}catch(e){throw this.popScope(),e}return de(n)?n.then(e=>(this.popScope(),e),e=>{throw this.popScope(),e}):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){let n=this._lastEventId=t&&t.event_id?t.event_id:Ct(),r=Error(`Sentry syntheticException`);return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){let r=this._lastEventId=n&&n.event_id?n.event_id:Ct(),i=Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r}),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:Ct();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:n,client:r}=this.getStackTop();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=uee}=r.getOptions&&r.getOptions()||{};if(a<=0)return;let o={timestamp:Mn(),...e},s=i?ze(()=>i(o,t)):o;s!==null&&(r.emit&&r.emit(`beforeAddBreadcrumb`,s,t),n.addBreadcrumb(s,a))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){let{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){let t=Ur(this);try{e(this)}finally{Ur(t)}}getIntegration(e){let t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch{return Qn&&Ve.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){let n=this._callExtensionMethod(`startTransaction`,e,t);return Qn&&!n&&(this.getClient()?Ve.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
158
158
  Sentry.addTracingExtensions();
159
159
  Sentry.init({...});
160
- `):Ve.warn(`Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'`)),n}traceHeaders(){return this._callExtensionMethod(`traceHeaders`)}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){let e=this.getStackTop().scope,t=e.getSession();t&&ar(t),this._sendSessionUpdate(),e.setSession()}startSession(e){let{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=$n}=n&&n.getOptions()||{},{userAgent:a}=Ee.navigator||{},o=rr({release:r,environment:i,user:t.getUser(),...a&&{userAgent:a},...e}),s=t.getSession&&t.getSession();return s&&s.status===`ok`&&ir(s,{status:`exited`}),this.endSession(),t.setSession(o),o}shouldSendDefaultPii(){let e=this.getClient(),t=e&&e.getOptions();return!!(t&&t.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){let n=Hr().__SENTRY__;if(n&&n.extensions&&typeof n.extensions[e]==`function`)return n.extensions[e].apply(this,t);Qn&&Ve.warn(`Extension method ${e} couldn't be found, doing nothing.`)}};function Hr(){return Ee.__SENTRY__=Ee.__SENTRY__||{extensions:{},hub:void 0},Ee}function Ur(e){let t=Hr(),n=qr(t);return Jr(t,e),n}function Wr(){let e=Hr();if(e.__SENTRY__&&e.__SENTRY__.acs){let t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return Kr(e)}function Gr(){return Wr().getIsolationScope()}function Kr(e=Hr()){return(!dee(e)||qr(e).isOlderThan(Br))&&Jr(e,new Vr),qr(e)}function dee(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function qr(e){return Oe(`hub`,()=>new Vr,e)}function Jr(e,t){if(!e)return!1;let n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function Yr(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function Xr(e,t,n,r){let i=Wn(n);return Fn({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:We(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function fee(e,t,n,r){let i=Wn(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;Yr(e,n&&n.sdk);let o=Gn(e,i,r,t);return delete e.sdkProcessingMetadata,Fn(o,[[{type:a},e]])}var Zr=`7`;function Qr(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function $r(e){return`${Qr(e)}${e.projectId}/envelope/`}function ei(e,t){return et({sentry_key:e.publicKey,sentry_version:Zr,...t&&{sentry_client:`${t.name}/${t.version}`}})}function ti(e,t={}){let n=typeof t==`string`?t:t.tunnel,r=typeof t==`string`||!t._metadata?void 0:t._metadata.sdk;return n||`${$r(e)}?${ei(e,r)}`}var ni=[];function pee(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.keys(t).map(e=>t[e])}function ri(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r;r=Array.isArray(n)?[...t,...n]:typeof n==`function`?kt(n(t)):t;let i=pee(r),a=si(i,e=>e.name===`Debug`);if(a!==-1){let[e]=i.splice(a,1);i.push(e)}return i}function ii(e,t){let n={};return t.forEach(t=>{t&&oi(e,t,n)}),n}function ai(e,t){for(let n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function oi(e,t,n){if(n[t.name])Qn&&Ve.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,ni.indexOf(t.name)===-1&&(t.setupOnce(tr,Wr),ni.push(t.name)),t.setup&&typeof t.setup==`function`&&t.setup(e),e.on&&typeof t.preprocessEvent==`function`){let n=t.preprocessEvent.bind(t);e.on(`preprocessEvent`,(t,r)=>n(t,r,e))}if(e.addEventProcessor&&typeof t.processEvent==`function`){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}Qn&&Ve.log(`Integration installed: ${t.name}`)}}function si(e,t){for(let n=0;n<e.length;n++)if(t(e[n])===!0)return n;return-1}function ci(e,t){return Object.assign(function(...e){return t(...e)},{id:e})}function li(e){return e}function mee(e){let t=``;for(let n of e){let e=Object.entries(n.tags),r=e.length>0?`|#${e.map(([e,t])=>`${e}:${t}`).join(`,`)}`:``;t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return t}function ui(e,t,n,r){let i={sent_at:new Date().toISOString()};return n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=We(t)),Fn(i,[di(e)])}function di(e){let t=mee(e);return[{type:`statsd`,length:t.length},t]}var fi=`Not capturing exception because it's already been captured.`,pi=class{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Je(e.dsn):Qn&&Ve.warn(`No DSN provided, client will not send events.`),this._dsn){let t=ti(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(Ot(e)){Qn&&Ve.log(fi);return}let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then(e=>this._captureEvent(e,t,n)).then(e=>{r=e})),r}captureMessage(e,t,n,r){let i=n&&n.event_id,a=oe(e)?e:String(e),o=se(e)?this.eventFromMessage(a,t,n):this.eventFromException(e,n);return this._process(o.then(e=>this._captureEvent(e,n,r)).then(e=>{i=e})),i}captureEvent(e,t,n){if(t&&t.originalException&&Ot(t.originalException)){Qn&&Ve.log(fi);return}let r=t&&t.event_id,i=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,i||n).then(e=>{r=e})),r}captureSession(e){typeof e.release==`string`?(this.sendSession(e),ir(e,{init:!1})):Qn&&Ve.warn(`Discarded session because of missing or non-string release`)}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):wn(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch{return Qn&&Ve.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){let t=this._integrations[e.name];oi(this,e,this._integrations),t||ai(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=fee(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=In(n,Vn(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));let r=this._sendEnvelope(n);r&&r.then(t=>this.emit(`afterSendEvent`,e,t),null)}sendSession(e){let t=Xr(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let r=typeof n==`number`?n:1,i=`${e}:${t}`;Qn&&Ve.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:``}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}captureAggregateMetrics(e){Qn&&Ve.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);let t=ui(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach(e=>e(...t))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=ii(this,e),ai(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let n=!1,r=!1,i=t.exception&&t.exception.values;if(i){r=!0;for(let e of i){let t=e.mechanism;if(t&&t.handled===!1){n=!0;break}}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&(ir(e,{...n&&{status:`crashed`},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new En(t=>{let n=0,r=setInterval(()=>{this._numProcessing==0?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r=Gr()){let i=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a.length>0&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),dr(i,e,t,n,this,r).then(e=>{if(e===null)return e;let t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){let{traceId:r,spanId:i,parentSpanId:a,dsc:o}=t;e.contexts={trace:{trace_id:r,span_id:i,parent_span_id:a},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:o||Er(r,this,n),...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{if(Qn){let t=e;t.logLevel===`log`?Ve.log(t.message):Ve.warn(t)}})}_processEvent(e,t,n){let r=this.getOptions(),{sampleRate:i}=r,a=gi(e),o=hee(e),s=e.type||`error`,c=`before send for type \`${s}\``;if(o&&typeof i==`number`&&Math.random()>i)return this.recordDroppedEvent(`sample_rate`,`error`,e),Tn(new Ye(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,`log`));let l=s===`replay_event`?`replay`:s,u=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,u).then(n=>{if(n===null)throw this.recordDroppedEvent(`event_processor`,l,e),new Ye("An event processor returned `null`, will not send event.",`log`);return t.data&&t.data.__sentry__===!0?n:mi(hi(r,n,t),c)}).then(r=>{if(r===null){if(this.recordDroppedEvent(`before_send`,l,e),a){let t=1+(e.spans||[]).length;this.recordDroppedEvent(`before_send`,`span`,t)}throw new Ye(`${c} returned \`null\`, will not send event.`,`log`)}let i=n&&n.getSession();if(!a&&i&&this._updateSessionFromEvent(i,r),a){let e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let o=r.transaction_info;return a&&o&&r.transaction!==e.transaction&&(r.transaction_info={...o,source:`custom`}),this.sendEvent(r,t),r}).then(null,e=>{throw e instanceof Ye?e:(this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Ye(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`))})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_sendEnvelope(e){if(this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,e=>{Qn&&Ve.error(`Error while sending event:`,e)});Qn&&Ve.error(`Transport disabled`)}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{let[n,r]=t.split(`:`);return{reason:n,category:r,quantity:e[t]}})}};function mi(e,t){let n=`${t} must return \`null\` or a valid event.`;if(de(e))return e.then(e=>{if(!ce(e)&&e!==null)throw new Ye(n);return e},e=>{throw new Ye(`${t} rejected with ${e}`)});if(!ce(e)&&e!==null)throw new Ye(n);return e}function hi(e,t,n){let{beforeSend:r,beforeSendTransaction:i}=e;if(hee(t)&&r)return r(t,n);if(gi(t)&&i){if(t.spans){let e=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(t,n)}return t}function hee(e){return e.type===void 0}function gi(e){return e.type===`transaction`}function gee(e,t){t.debug===!0&&(Qn?Ve.enable():ze(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),wr().update(t.initialScope);let n=new e(t);_i(n),vi(n)}function _i(e){let t=Wr().getStackTop();t.client=e,t.scope.setClient(e)}function vi(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}function yi(e,t,n=Dn(e.bufferSize||30)){let r={},i=e=>n.drain(e);function a(i){let a=[];if(Ln(i,(t,n)=>{let i=Un(n);if(Xn(r,i)){let r=bi(t,n);e.recordDroppedEvent(`ratelimit_backoff`,i,r)}else a.push(t)}),a.length===0)return wn();let o=Fn(i[0],a),s=t=>{Ln(o,(n,r)=>{let i=bi(n,r);e.recordDroppedEvent(t,Un(r),i)})};return n.add(()=>t({body:zn(o,e.textEncoder)}).then(e=>(e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&Qn&&Ve.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=Zn(r,e),e),e=>{throw s(`network_error`),e})).then(e=>e,e=>{if(e instanceof Ye)return Qn&&Ve.error(`Skipped sending event because buffer is full.`),s(`queue_overflow`),wn();throw e})}return a.__sentry__baseTransport__=!0,{send:a,flush:i}}function bi(e,t){if(t===`event`||t===`transaction`)return Array.isArray(e)?e[1]:void 0}function xi(e,t,n=[t],r=`npm`){let i=e._metadata||{};i.sdk||={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:zr})),version:zr},e._metadata=i}var Si=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],Ci=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],wi=`InboundFilters`,Ti=li(((e={})=>({name:wi,setupOnce(){},processEvent(t,n,r){return Di(t,Ei(e,r.getOptions()))?null:t}})));ci(wi,Ti);function Ei(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Si],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Ci],ignoreInternal:e.ignoreInternal===void 0||e.ignoreInternal}}function Di(e,t){return t.ignoreInternal&&Ni(e)?(Qn&&Ve.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Tt(e)}`),!0):Oi(e,t.ignoreErrors)?(Qn&&Ve.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Tt(e)}`),!0):ki(e,t.ignoreTransactions)?(Qn&&Ve.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Tt(e)}`),!0):Ai(e,t.denyUrls)?(Qn&&Ve.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Tt(e)}.\nUrl: ${Fi(e)}`),!0):!ji(e,t.allowUrls)&&(Qn&&Ve.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Tt(e)}.\nUrl: ${Fi(e)}`),!0)}function Oi(e,t){return e.type||!t||!t.length?!1:Mi(e).some(e=>ye(e,t))}function ki(e,t){if(e.type!==`transaction`||!t||!t.length)return!1;let n=e.transaction;return n?ye(n,t):!1}function Ai(e,t){if(!t||!t.length)return!1;let n=Fi(e);return n?ye(n,t):!1}function ji(e,t){if(!t||!t.length)return!0;let n=Fi(e);return!n||ye(n,t)}function Mi(e){let t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),Qn&&t.length===0&&Ve.error(`Could not extract message for event ${Tt(e)}`),t}function Ni(e){try{return e.exception.values[0].type===`SentryError`}catch{}return!1}function Pi(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!==`<anonymous>`&&n.filename!==`[native code]`)return n.filename||null}return null}function Fi(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?Pi(t):null}catch{return Qn&&Ve.error(`Cannot extract url for event ${Tt(e)}`),null}}var Ii,Li=`FunctionToString`,Ri=new WeakMap,zi=li((()=>({name:Li,setupOnce(){Ii=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=$e(this),n=Ri.has(Cr())&&t!==void 0?t:this;return Ii.apply(n,e)}}catch{}},setup(e){Ri.set(e,!0)}})));ci(Li,zi);var Bi=Ee,Vi=0;function Hi(){return Vi>0}function Ui(){Vi++,setTimeout(()=>{Vi--})}function Wi(e,t={},n){if(typeof e!=`function`)return e;try{let t=e.__sentry_wrapped__;if(t)return typeof t==`function`?t:e;if($e(e))return e}catch{return e}let r=function(){let r=Array.prototype.slice.call(arguments);try{n&&typeof n==`function`&&n.apply(this,arguments);let i=r.map(e=>Wi(e,t));return e.apply(this,i)}catch(e){throw Ui(),Sr(n=>{n.addEventProcessor(e=>(t.mechanism&&(Et(e,void 0,void 0),Dt(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),ree(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}Qe(r,e),Ze(e,`__sentry_wrapped__`,r);try{Object.getOwnPropertyDescriptor(r,`name`).configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}var Gi=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__;function Ki(e,t){let n=Yi(e,t),r={type:t&&t.name,value:_ee(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function qi(e,t,n,r){let i=Cr(),a=i&&i.getOptions().normalizeDepth,o={exception:{values:[{type:I(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:na(t,{isUnhandledRejection:r})}]},extra:{__serialized__:_n(t,a)}};if(n){let t=Yi(e,n);t.length&&(o.exception.values[0].stacktrace={frames:t})}return o}function Ji(e,t){return{exception:{values:[Ki(e,t)]}}}function Yi(e,t){let n=t.stacktrace||t.stack||``,r=Zi(t);try{return e(n,r)}catch{}return[]}var Xi=/Minified React error #\d+;/i;function Zi(e){if(e){if(typeof e.framesToPop==`number`)return e.framesToPop;if(Xi.test(e.message))return 1}return 0}function _ee(e){let t=e&&e.message;return t?t.error&&typeof t.error.message==`string`?t.error.message:t:`No error message`}function Qi(e,t,n,r){let i=ea(e,t,n&&n.syntheticException||void 0,r);return Dt(i),i.level=`error`,n&&n.event_id&&(i.event_id=n.event_id),wn(i)}function $i(e,t,n=`info`,r,i){let a=ta(e,t,r&&r.syntheticException||void 0,i);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),wn(a)}function ea(e,t,n,r,i){let a;if(re(t)&&t.error)return Ji(e,t.error);if(ie(t)||ae(t)){let i=t;if(`stack`in t)a=Ji(e,t);else{let t=i.name||(ie(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=ta(e,o,n,r),Et(a,o)}return`code`in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return te(t)?Ji(e,t):ce(t)||I(t)?(a=qi(e,t,n,i),Dt(a,{synthetic:!0}),a):(a=ta(e,t,n,r),Et(a,`${t}`,void 0),Dt(a,{synthetic:!0}),a)}function ta(e,t,n,r){let i={};if(r&&n){let r=Yi(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(oe(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function na(e,{isUnhandledRejection:t}){let n=it(e),r=t?`promise rejection`:`exception`;return re(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:I(e)?`Event \`${ra(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function ra(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function ia(e,{metadata:t,tunnel:n,dsn:r}){return Fn({event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:We(r)}},[aa(e)])}function aa(e){return[{type:`user_report`},e]}var oa=class extends pi{constructor(e){xi(e,`browser`,[`browser`],Bi.SENTRY_SDK_SOURCE||mn()),super(e),e.sendClientReports&&Bi.document&&Bi.document.addEventListener(`visibilitychange`,()=>{Bi.document.visibilityState===`hidden`&&this._flushOutcomes()})}eventFromException(e,t){return Qi(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return $i(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){Gi&&Ve.warn(`SDK not enabled, will not capture user feedback.`);return}let t=ia(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,n)}_flushOutcomes(){let e=this._clearOutcomes();if(e.length===0){Gi&&Ve.log(`No outcomes to send`);return}if(!this._dsn){Gi&&Ve.log(`No dsn provided, will not send outcomes`);return}Gi&&Ve.log(`Sending outcomes:`,e);let t=Kn(e,this._options.tunnel&&We(this._dsn));this._sendEnvelope(t)}},sa=void 0;function ca(){if(sa)return sa;if(Ut(Bi.fetch))return sa=Bi.fetch.bind(Bi);let e=Bi.document,t=Bi.fetch;if(e&&typeof e.createElement==`function`)try{let n=e.createElement(`iframe`);n.hidden=!0,e.head.appendChild(n);let r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){Gi&&Ve.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return sa=t.bind(Bi)}function la(){sa=void 0}function ua(e,t=ca()){let n=0,r=0;function i(i){let a=i.body.length;n+=a,r++;let o={body:i.body,method:`POST`,referrerPolicy:`origin`,headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,o).then(e=>(n-=a,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get(`X-Sentry-Rate-Limits`),"retry-after":e.headers.get(`Retry-After`)}}))}catch(e){return la(),n-=a,r--,Tn(e)}}return yi(e,i)}var da=4;function fa(e){function t(t){return new En((n,r)=>{let i=new XMLHttpRequest;i.onerror=r,i.onreadystatechange=()=>{i.readyState===da&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader(`X-Sentry-Rate-Limits`),"retry-after":i.getResponseHeader(`Retry-After`)}})},i.open(`POST`,e.url);for(let t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)})}return yi(e,t)}var pa=`?`,ma=30,ha=40,ga=50;function _a(e,t,n,r){let i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var va=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ya=/\((\S*)(?::(\d+))(?::(\d+))\)/,ba=[ma,e=>{let t=va.exec(e);if(t){if(t[2]&&t[2].indexOf(`eval`)===0){let e=ya.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}let[e,n]=Ta(t[1]||pa,t[2]);return _a(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],xa=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Sa=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ca=[ga,e=>{let t=xa.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=Sa.exec(t[3]);e&&(t[1]=t[1]||`eval`,t[3]=e[1],t[4]=e[2],t[5]=``)}let e=t[3],n=t[1]||pa;return[n,e]=Ta(n,e),_a(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],wa=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,vee=dt(ba,Ca,[ha,e=>{let t=wa.exec(e);return t?_a(t[2],t[1]||pa,+t[3],t[4]?+t[4]:void 0):void 0}]),Ta=(e,t)=>{let n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?pa:e.split(`@`)[0],n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Ea=1024,Da=`Breadcrumbs`,Oa=li(((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Da,setupOnce(){},setup(e){t.console&&xt(ja(e)),t.dom&&Ft(Aa(e,t.dom)),t.xhr&&dn(Ma(e)),t.fetch&&Gt(Na(e)),t.history&&sn(Pa(e)),t.sentry&&e.on&&e.on(`beforeSendEvent`,ka(e))}}}));ci(Da,Oa);function ka(e){return function(t){Cr()===e&&xr({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:Tt(t)},{event:t})}}function Aa(e,t){return function(n){if(Cr()!==e)return;let r,i,a=typeof t==`object`?t.serializeAttribute:void 0,o=typeof t==`object`&&typeof t.maxStringLength==`number`?t.maxStringLength:void 0;o&&o>Ea&&(Gi&&Ve.warn(`\`dom.maxStringLength\` cannot exceed ${Ea}, but a value of ${o} was configured. Sentry will use ${Ea} instead.`),o=Ea),typeof a==`string`&&(a=[a]);try{let e=n.event,t=Fa(e)?e.target:e;r=je(t,{keyAttrs:a,maxStringLength:o}),i=Pe(t)}catch{r=`<unknown>`}if(r.length===0)return;let s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),xr(s,{event:n.event,name:n.name,global:n.global})}}function ja(e){return function(t){if(Cr()!==e)return;let n={category:`console`,data:{arguments:t.args,logger:`console`},level:An(t.level),message:_e(t.args,` `)};if(t.level===`assert`){if(t.args[0]===!1)n.message=`Assertion failed: ${_e(t.args.slice(1),` `)||`console.assert`}`,n.data.arguments=t.args.slice(1);else return}xr(n,{input:t.args,level:t.level})}}function Ma(e){return function(t){if(Cr()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[un];if(!n||!r||!i)return;let{method:a,url:o,status_code:s,body:c}=i,l={method:a,url:o,status_code:s},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r};xr({category:`xhr`,data:l,type:`http`},u)}}function Na(e){return function(t){if(Cr()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`)){if(t.error){let e=t.fetchData,i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r};xr({category:`fetch`,data:e,level:`error`,type:`http`},i)}else{let e=t.response,i={...t.fetchData,status_code:e&&e.status},a={input:t.args,response:e,startTimestamp:n,endTimestamp:r};xr({category:`fetch`,data:i,type:`http`},a)}}}}function Pa(e){return function(t){if(Cr()!==e)return;let n=t.from,r=t.to,i=On(Bi.location.href),a=n?On(n):void 0,o=On(r);a&&a.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),xr({category:`navigation`,data:{from:n,to:r}})}}function Fa(e){return!!e&&!!e.target}var Ia=`Dedupe`,La=li((()=>{let e;return{name:Ia,setupOnce(){},processEvent(t){if(t.type)return t;try{if(Ra(t,e))return Gi&&Ve.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));ci(Ia,La);function Ra(e,t){return t?!!(L(e,t)||za(e,t)):!1}function L(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Va(e,t)||!Ba(e,t))}function za(e,t){let n=Ha(t),r=Ha(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Va(e,t)||!Ba(e,t))}function Ba(e,t){let n=Ua(e),r=Ua(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function Va(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join(``)===r.join(``)}catch{return!1}}function Ha(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Ua(e){let t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}var Wa=`GlobalHandlers`,Ga=li(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:Wa,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(Ka(e),Za(`onerror`)),t.onunhandledrejection&&(qa(e),Za(`onunhandledrejection`))}}}));ci(Wa,Ga);function Ka(e){Zt(t=>{let{stackParser:n,attachStacktrace:r}=Qa();if(Cr()!==e||Hi())return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=c===void 0&&F(i)?Ya(i,a,o,s):Xa(ea(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,br(l,{originalException:c,mechanism:{handled:!1,type:`onerror`}})})}function qa(e){en(t=>{let{stackParser:n,attachStacktrace:r}=Qa();if(Cr()!==e||Hi())return;let i=Ja(t),a=se(i)?yee(i):ea(n,i,void 0,r,!0);a.level=`error`,br(a,{originalException:i,mechanism:{handled:!1,type:`onunhandledrejection`}})})}function Ja(e){if(se(e))return e;let t=e;try{if(`reason`in t)return t.reason;if(`detail`in t&&`reason`in t.detail)return t.detail.reason}catch{}return e}function yee(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Ya(e,t,n,r){let i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,a=re(e)?e.message:e,o=`Error`,s=a.match(i);return s&&(o=s[1],a=s[2]),Xa({exception:{values:[{type:o,value:a}]}},t,n,r)}function Xa(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[],l=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=F(t)&&t.length>0?t:Ne();return c.length===0&&c.push({colno:l,filename:d,function:`?`,in_app:!0,lineno:u}),e}function Za(e){Gi&&Ve.log(`Global Handler attached: ${e}`)}function Qa(){let e=Cr();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}var $a=`HttpContext`,eo=li((()=>({name:$a,setupOnce(){},preprocessEvent(e){if(!Bi.navigator&&!Bi.location&&!Bi.document)return;let t=e.request&&e.request.url||Bi.location&&Bi.location.href,{referrer:n}=Bi.document||{},{userAgent:r}=Bi.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}};e.request={...e.request,...t&&{url:t},headers:i}}})));ci($a,eo);var to=`cause`,no=5,ro=`LinkedErrors`,io=li(((e={})=>{let t=e.limit||no,n=e.key||to;return{name:ro,setupOnce(){},preprocessEvent(e,r,i){let a=i.getOptions();be(Ki,a.stackParser,a.maxValueLength,n,t,e,r)}}}));ci(ro,io);var ao=`EventTarget.Window.Node.ApplicationCache.AudioTrackList.BroadcastChannel.ChannelMergerNode.CryptoOperation.EventSource.FileReader.HTMLUnknownElement.IDBDatabase.IDBRequest.IDBTransaction.KeyOperation.MediaController.MessagePort.ModalWindow.Notification.SVGElementInstance.Screen.SharedWorker.TextTrack.TextTrackCue.TextTrackList.WebSocket.WebSocketWorker.Worker.XMLHttpRequest.XMLHttpRequestEventTarget.XMLHttpRequestUpload`.split(`.`),oo=`TryCatch`,so=li(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:oo,setupOnce(){t.setTimeout&&Xe(Bi,`setTimeout`,co),t.setInterval&&Xe(Bi,`setInterval`,co),t.requestAnimationFrame&&Xe(Bi,`requestAnimationFrame`,lo),t.XMLHttpRequest&&`XMLHttpRequest`in Bi&&Xe(XMLHttpRequest.prototype,`send`,uo);let e=t.eventTarget;e&&(Array.isArray(e)?e:ao).forEach(fo)}}}));ci(oo,so);function co(e){return function(...t){let n=t[0];return t[0]=Wi(n,{mechanism:{data:{function:ht(e)},handled:!1,type:`instrument`}}),e.apply(this,t)}}function lo(e){return function(t){return e.apply(this,[Wi(t,{mechanism:{data:{function:`requestAnimationFrame`,handler:ht(e)},handled:!1,type:`instrument`}})])}}function uo(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&Xe(n,e,function(t){let n={mechanism:{data:{function:e,handler:ht(t)},handled:!1,type:`instrument`}},r=$e(t);return r&&(n.mechanism.data.handler=ht(r)),Wi(t,n)})}),e.apply(this,t)}}function fo(e){let t=Bi,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty(`addEventListener`)&&(Xe(n,`addEventListener`,function(t){return function(n,r,i){try{typeof r.handleEvent==`function`&&(r.handleEvent=Wi(r.handleEvent,{mechanism:{data:{function:`handleEvent`,handler:ht(r),target:e},handled:!1,type:`instrument`}}))}catch{}return t.apply(this,[n,Wi(r,{mechanism:{data:{function:`addEventListener`,handler:ht(r),target:e},handled:!1,type:`instrument`}}),i])}}),Xe(n,`removeEventListener`,function(e){return function(t,n,r){let i=n;try{let n=i&&i.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch{}return e.call(this,t,i,r)}}))}var po=[Ti(),zi(),so(),Oa(),Ga(),io(),La(),eo()];function mo(e){return[...po]}function ho(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=mo()),e.release===void 0&&(typeof __SENTRY_RELEASE__==`string`&&(e.release=__SENTRY_RELEASE__),Bi.SENTRY_RELEASE&&Bi.SENTRY_RELEASE.id&&(e.release=Bi.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0),gee(oa,{...e,stackParser:ft(e.stackParser||vee),integrations:ri(e),transport:e.transport||(Ht()?ua:fa)}),e.autoSessionTracking&&go()}function go(){Bi.document===void 0?Gi&&Ve.warn(`Session tracking in non-browser environment with @sentry/browser is not supported.`):(Tr({ignoreDuration:!0}),oee(),sn(({from:e,to:t})=>{e!==void 0&&e!==t&&(Tr({ignoreDuration:!0}),oee())}))}function _o(e){let t={...e};xi(t,`react`),ho(t)}var vo=s((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),yo=s((e=>{process.env.NODE_ENV!==`production`&&(function(){"use strict";var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)}function x(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case l:case u:case i:case o:case a:case f:return p;default:var g=p&&p.$$typeof;switch(g){case c:case d:case h:case m:case s:return g;default:return t}}case r:return t}}}var S=l,C=u,w=c,T=s,E=n,D=d,O=i,k=h,A=m,j=r,M=o,N=a,ee=f,P=!1;function te(e){return P||(P=!0,console.warn(`The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.`)),ne(e)||x(e)===l}function ne(e){return x(e)===u}function re(e){return x(e)===c}function ie(e){return x(e)===s}function ae(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function F(e){return x(e)===d}function oe(e){return x(e)===i}function se(e){return x(e)===h}function ce(e){return x(e)===m}function I(e){return x(e)===r}function le(e){return x(e)===o}function ue(e){return x(e)===a}function de(e){return x(e)===f}e.AsyncMode=S,e.ConcurrentMode=C,e.ContextConsumer=w,e.ContextProvider=T,e.Element=E,e.ForwardRef=D,e.Fragment=O,e.Lazy=k,e.Memo=A,e.Portal=j,e.Profiler=M,e.StrictMode=N,e.Suspense=ee,e.isAsyncMode=te,e.isConcurrentMode=ne,e.isContextConsumer=re,e.isContextProvider=ie,e.isElement=ae,e.isForwardRef=F,e.isFragment=oe,e.isLazy=se,e.isMemo=ce,e.isPortal=I,e.isProfiler=le,e.isStrictMode=ue,e.isSuspense=de,e.isValidElementType=b,e.typeOf=x})()})),bo=s(((e,t)=>{t.exports=process.env.NODE_ENV===`production`?vo():yo()})),xo=s(((e,t)=>{var n=bo(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h})),So=e=>{throw TypeError(e)},Co=(e,t,n)=>t.has(e)||So(`Cannot `+n),wo=(e,t,n)=>(Co(e,t,`read from private field`),n?n.call(e):t.get(e)),To=(e,t,n)=>t.has(e)?So(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),Eo=(e,t,n,r)=>(Co(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),Do=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Oo=/^[\\/]{2}/;function R(e,t){return t+e.replace(/\\/g,`/`)}var ko=`popstate`;function Ao(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function jo(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return Io(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:Lo(t)}return zo(t,n,null,e)}function Mo(e,t){if(e===!1||e==null)throw Error(t)}function No(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function Po(){return Math.random().toString(36).substring(2,10)}function Fo(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Io(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?Ro(t):t,state:n,key:t&&t.key||r||Po(),mask:i}}function Lo({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function Ro(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function zo(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=Ao(e)?e:Io(h.location,e,t);n&&n(r,e),l=u()+1;let d=Fo(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=Ao(e)?e:Io(h.location,e,t);n&&n(r,e),l=u();let i=Fo(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return Bo(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(ko,d),c=e,()=>{i.removeEventListener(ko,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function Bo(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),Mo(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:Lo(t);return i=i.replace(/ $/,`%20`),!n&&Oo.test(i)&&(i=r+i),new URL(i,r)}var Vo,Ho=class{constructor(e){if(To(this,Vo,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(wo(this,Vo).has(e))return wo(this,Vo).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){wo(this,Vo).set(e,t)}};Vo=new WeakMap;var Uo=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`]);function Wo(e){return Uo.has(e)}var Go=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`]);function Ko(e){return Go.has(e)}function qo(e){return e.index===!0}function Jo(e,t,n=[],r={},i=!1){return e.map((e,a)=>{let o=[...n,String(a)],s=typeof e.id==`string`?e.id:o.join(`-`);if(Mo(e.index!==!0||!e.children,`Cannot specify children on an index route`),Mo(i||!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),qo(e)){let n={...e,id:s};return r[s]=Yo(n,t(n)),n}{let n={...e,id:s,children:void 0};return r[s]=Yo(n,t(n)),e.children&&(n.children=Jo(e.children,t,o,r,i)),n}})}function Yo(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function Xo(e,t,n=`/`){return Zo(e,t,n,!1)}function Zo(e,t,n,r,i){let a=gs((typeof t==`string`?Ro(t):t).pathname||`/`,n);if(a==null)return null;let o=i??$o(e),s=null,c=hs(a);for(let e=0;s==null&&e<o.length;++e)s=ds(o[e],c,r);return s}function Qo(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function $o(e){let t=es(e);return ns(t),t}function es(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;Mo(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=ws([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(Mo(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),es(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:us(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=ms(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of ts(e.path))a(e,t,!0,n)}),t}function ts(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=ts(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function ns(e){e.sort((e,t)=>e.score===t.score?bee(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var rs=/^:[\w-]+$/,is=3,as=2,os=1,ss=10,cs=-2,ls=e=>e===`*`;function us(e,t){let n=e.split(`/`),r=n.length;return n.some(ls)&&(r+=cs),t&&(r+=as),n.filter(e=>!ls(e)).reduce((e,t)=>e+(rs.test(t)?is:t===``?os:ss),r)}function bee(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function ds(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?ps(u,l,s.matcher,s.compiledParams):fs(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=fs({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:ws([a,d.pathname]),pathnameBase:Es(ws([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=ws([a,d.pathnameBase]))}return o}function fs(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ms(e.path,e.caseSensitive,e.end);return ps(e,t,n,r)}function ps(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=Ts(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=Ts(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function ms(e,t=!1,n=!0){No(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function hs(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return No(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function gs(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function xee({basename:e,pathname:t}){return t===`/`?e:ws([e,t])}var _s=e=>Do.test(e);function See(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?Ro(e):e,a;return n?(n=Cs(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?vs(n.substring(1),`/`):vs(n,t)):a=t,{pathname:a,search:Ds(r),hash:Cee(i)}}function vs(e,t){let n=Ts(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function ys(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function bs(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function xs(e){let t=bs(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Ss(e,t,n,r=!1){let i;typeof e==`string`?i=Ro(e):(i={...e},Mo(!i.pathname||!i.pathname.includes(`?`),ys(`?`,`pathname`,`search`,i)),Mo(!i.pathname||!i.pathname.includes(`#`),ys(`#`,`pathname`,`hash`,i)),Mo(!i.search||!i.search.includes(`#`),ys(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=See(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Cs=e=>e.replace(/[\\/]{2,}/g,`/`),ws=e=>Cs(e.join(`/`));function Ts(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var Es=e=>Ts(e).replace(/^\/*/,`/`),Ds=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Cee=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Os=[`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],ks=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function As(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function js(e){return ws(e.map(e=>e.route.path).filter(Boolean))||`/`}var Ms=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Ns(e,t){let n=e;if(typeof n!=`string`||!Do.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Ms)try{let e=new URL(window.location.href),r=Oo.test(n)?new URL(R(n,e.protocol)):new URL(n),a=gs(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{No(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}var Ps=Symbol(`Uninstrumented`);function Fs(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(n);for(let r of t)e[r]&&n[r].push(e[r])}}));let r={};if(typeof t.lazy==`function`&&n.lazy.length>0){let e=Ls(n.lazy,t.lazy,()=>void 0);e&&(r.lazy=e)}if(typeof t.lazy==`object`){let e=t.lazy;[`middleware`,`loader`,`action`].forEach(t=>{let i=e[t],a=n[`lazy.${t}`];if(typeof i==`function`&&a.length>0){let e=Ls(a,i,()=>void 0);e&&(r.lazy=Object.assign(r.lazy||{},{[t]:e}))}})}return[`loader`,`action`].forEach(e=>{let i=t[e];if(typeof i==`function`&&n[e].length>0){let t=i[Ps]??i,a=Ls(n[e],t,(...e)=>Rs(e[0]));a&&(e===`loader`&&t.hydrate===!0&&(a.hydrate=!0),a[Ps]=t,r[e]=a)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=e[Ps]??e,r=Ls(n.middleware,t,(...e)=>Rs(e[0]));return r?(r[Ps]=t,r):e})),r}function Is(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}})),n.navigate.length>0){let t=e.navigate[Ps]??e.navigate,r=Ls(n.navigate,t,(...t)=>{let[n,r]=t;return{to:typeof n==`number`||typeof n==`string`?n:n?Lo(n):`.`,...zs(e,r??{})}});r&&(r[Ps]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[Ps]??e.fetch,r=Ls(n.fetch,t,(...t)=>{let[n,,r,i]=t;return{href:r??`.`,fetcherKey:n,...zs(e,i??{})}});r&&(r[Ps]=t,e.fetch=r)}return e}function Ls(e,t,n){return e.length===0?null:async(...r)=>{let i=await wee(e,n(...r),()=>t(...r),e.length-1);if(i.type===`error`)throw i.value;return i.value}}async function wee(e,t,n,r){let i=e[r],a;if(i){let o,s=async()=>(o?console.error(`You cannot call instrumented handlers more than once`):o=wee(e,t,n,r-1),a=await o,Mo(a,`Expected a result`),a.type===`error`&&a.value instanceof Error?{status:`error`,error:a.value}:{status:`success`,error:void 0});try{await i(s,t)}catch(e){console.error(`An instrumentation function threw an error:`,e)}o||await s(),await o}else try{a={type:`success`,value:await n()}}catch(e){a={type:`error`,value:e}}return a||{type:`error`,value:Error(`No result assigned in instrumentation chain.`)}}function Rs(e){let{request:t,context:n,params:r,pattern:i}=e;return{request:Tee(t),params:{...r},pattern:i,context:Bs(n)}}function zs(e,t){return{currentUrl:Lo(e.state.location),...`formMethod`in t?{formMethod:t.formMethod}:{},...`formEncType`in t?{formEncType:t.formEncType}:{},...`formData`in t?{formData:t.formData}:{},...`body`in t?{body:t.body}:{}}}function Tee(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function Bs(e){if(Hs(e)){let t={...e};return Object.freeze(t),t}return{get:t=>e.get(t)}}var Vs=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function Hs(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===Vs}var Us=new URL(`http://localhost`);function Ws(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),Us)}catch{return Us}}function Gs(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function Ks(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function qs(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!Gs(i,n),s=!Gs(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!Ks(e,i)||!Gs(i,a)))throw Error(`External navigation is not allowed`)}var Js=[`POST`,`PUT`,`PATCH`,`DELETE`],Ys=new Set(Js),Xs=[`GET`,...Js],Zs=new Set(Xs),Qs=new Set([301,302,303,307,308]),z=new Set([307,308]),$s={state:`idle`,location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ec={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},tc={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},nc=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),rc=`remix-router-transitions`,ic=Symbol(`ResetLoaderData`),ac,oc,sc,cc,lc=class{constructor(e){To(this,ac),To(this,oc),To(this,sc),To(this,cc),Eo(this,ac,e),Eo(this,oc,$o(e))}get stableRoutes(){return wo(this,ac)}get activeRoutes(){return wo(this,sc)??wo(this,ac)}get branches(){return wo(this,cc)??wo(this,oc)}get hasHMRRoutes(){return wo(this,sc)!=null}setRoutes(e){Eo(this,ac,e),Eo(this,oc,$o(e))}setHmrRoutes(e){Eo(this,sc,e),Eo(this,cc,$o(e))}commitHmrRoutes(){wo(this,sc)&&(Eo(this,ac,wo(this,sc)),Eo(this,oc,wo(this,cc)),Eo(this,sc,void 0),Eo(this,cc,void 0))}};ac=new WeakMap,oc=new WeakMap,sc=new WeakMap,cc=new WeakMap;function uc(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0;Mo(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let r=e.hydrationRouteProperties||[],i=e.mapRouteProperties||nc,a=i;if(e.instrumentations){let t=e.instrumentations;a=e=>({...i(e),...Fs(t.map(e=>e.route).filter(Boolean),e)})}let o={},s=new lc(Jo(e.routes,a,void 0,o)),c=e.basename||`/`;c.startsWith(`/`)||(c=`/${c}`);let l=e.dataStrategy||Ec,u={...e.future},d=null,f=new Set,p=null,m=null,h=null,g=null,_=e.hydrationData!=null,v=Zo(s.activeRoutes,e.history.location,c,!1,s.branches),y=!1,b=null,x,S;if(v==null&&!e.patchRoutesOnNavigation){let t=Zc(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Xc(s.activeRoutes);x=!0,S=!x,v=n,b={[r.id]:t}}else if(v&&!e.hydrationData&&qe(v,s.activeRoutes,e.history.location.pathname).active&&(v=null),!v){x=!1,S=!x,v=[];let t=qe(null,s.activeRoutes,e.history.location.pathname);t.active&&t.matches&&(y=!0,v=t.matches)}else if(v.some(e=>e.route.lazy))x=!1,S=!x;else if(!v.some(e=>hc(e.route)))x=!0,S=!x;else{let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=v;if(n){let e=v.findIndex(e=>n[e.route.id]!==void 0);r=r.slice(0,e+1)}S=!1,x=!0,r.forEach(e=>{let r=gc(e.route,t,n);S||=r.renderFallback,x&&=!r.shouldLoad})}let C,w={historyAction:e.history.action,location:e.history.location,matches:v,initialized:x,renderFallback:S,navigation:$s,restoreScrollPosition:e.hydrationData==null&&null,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},T=`POP`,E=null,D=!1,O,k=!1,A=new Map,j=null,M=!1,N=!1,ee=new Set,P=new Map,te=0,ne=-1,re=new Map,ie=new Set,ae=new Map,F=new Map,oe=new Set,se=new Map,ce,I=null;function le(){if(d=e.history.listen(({action:t,location:n,delta:r})=>{if(ce){ce(),ce=void 0;return}No(se.size===0||r!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=Ve({currentLocation:w.location,nextLocation:n,historyAction:t});if(i&&r!=null){let t=new Promise(e=>{ce=e});e.history.go(r*-1),Be(i,{state:`blocked`,location:n,proceed(){Be(i,{state:`proceeding`,proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(w.blockers);e.set(i,tc),fe({blockers:e})}}),E?.resolve(),E=null}else return ge(t,n)}),n){xl(t,A);let e=()=>Dee(t,A);t.addEventListener(`pagehide`,e),j=()=>t.removeEventListener(`pagehide`,e)}return w.initialized||ge(`POP`,w.location,{initialHydration:!0}),C}function ue(){d&&d(),j&&j(),f.clear(),O&&O.abort(),w.fetchers.forEach((e,t)=>Me(w.fetchers,t)),w.blockers.forEach((e,t)=>ze(t))}function de(e){if(f.add(e),p){let{newErrors:t}=p;p=null,e(w,{deletedFetchers:[],newErrors:t,viewTransitionOpts:void 0,flushSync:!1})}return()=>f.delete(e)}function fe(e,t={}){e.matches&&=e.matches.map(e=>{let t=o[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}),w={...w,...e};let n=[],r=[];w.fetchers.forEach((e,t)=>{e.state===`idle`&&(oe.has(t)?n.push(t):r.push(t))}),oe.forEach(e=>{!w.fetchers.has(e)&&!P.has(e)&&n.push(e)}),f.size===0&&(p={newErrors:e.errors??null}),[...f].forEach(r=>r(w,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),n.forEach(e=>Me(w.fetchers,e)),r.forEach(e=>w.fetchers.delete(e))}function pe(t,n,{flushSync:r}={}){let i=w.actionData!=null&&w.navigation.formMethod!=null&&fl(w.navigation.formMethod)&&w.navigation.state===`loading`&&t.state?._isRedirect!==!0,a;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?w.actionData:null;let o=n.loaderData?qc(w.loaderData,n.loaderData,n.matches||[],n.errors):w.loaderData,c=w.blockers;c.size>0&&(c=new Map(c),c.forEach((e,t)=>c.set(t,tc)));let l=!M&&Ke(t,n.matches||w.matches),u=D===!0||w.navigation.formMethod!=null&&fl(w.navigation.formMethod)&&t.state?._isRedirect!==!0;s.commitHmrRoutes(),M||T===`POP`||(T===`PUSH`?e.history.push(t,t.state):T===`REPLACE`&&e.history.replace(t,t.state));let d;if(T===`POP`){let e=A.get(w.location.pathname);e&&e.has(t.pathname)?d={currentLocation:w.location,nextLocation:t}:A.has(t.pathname)&&(d={currentLocation:t,nextLocation:w.location})}else if(k){let e=A.get(w.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),A.set(w.location.pathname,e)),d={currentLocation:w.location,nextLocation:t}}fe({...n,actionData:a,loaderData:o,historyAction:T,location:t,initialized:!0,renderFallback:!1,navigation:$s,revalidation:`idle`,restoreScrollPosition:l,preventScrollReset:u,blockers:c},{viewTransitionOpts:d,flushSync:r===!0}),T=`POP`,D=!1,k=!1,M=!1,N=!1,E?.resolve(),E=null,I?.resolve(),I=null}async function me(t,n){if(E?.resolve(),E=null,typeof t==`number`){E||=Sl();let n=E.promise;return e.history.go(t),n}let{path:r,submission:i,error:a}=pc(!1,fc(w.location,w.matches,c,t,n?.fromRouteId,n?.relative),n),o;if(n?.mask){let t=typeof n.mask==`string`?Ro(n.mask):{...w.location.mask,...n.mask};if(o={pathname:t.pathname??``,search:t.search??``,hash:t.hash??``},Oo.test(o.pathname))throw Error(`External navigation is not allowed`);o.pathname.startsWith(`\\`)&&(o.pathname=o.pathname.replace(/^\\+/,`/`)),qs(typeof n.mask==`string`?n.mask:Lo(n.mask),Lo(o),e.history.createURL(`/`),`reject`)}let s=w.location,l=Io(s,r,n&&n.state,void 0,o);l={...l,...e.history.encodeLocation(l)},qs(t==null?e.history.createHref(w.location):typeof t==`string`?t:Lo(t),e.history.createHref(l.mask||l),e.history.createURL(`/`),`reject`);let u=n&&n.replace!=null?n.replace:void 0,d=`PUSH`;u===!0?d=`REPLACE`:u===!1||i!=null&&fl(i.formMethod)&&i.formAction===w.location.pathname+w.location.search&&(d=`REPLACE`);let f=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,p=(n&&n.flushSync)===!0,m=Ve({currentLocation:s,nextLocation:l,historyAction:d});m?Be(m,{state:`blocked`,location:l,proceed(){Be(m,{state:`proceeding`,proceed:void 0,reset:void 0,location:l}),me(t,n)},reset(){let e=new Map(w.blockers);e.set(m,tc),fe({blockers:e})}}):await ge(d,l,{submission:i,pendingError:a,preventScrollReset:f,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:p,callSiteDefaultShouldRevalidate:n&&n.defaultShouldRevalidate})}function he(){I||=Sl(),De(),fe({revalidation:`loading`});let e=I.promise;return w.navigation.state===`submitting`?e:w.navigation.state===`idle`?(ge(w.historyAction,w.location,{startUninterruptedRevalidation:!0}),e):(ge(T||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,enableViewTransition:k===!0}),e)}async function ge(t,n,r){O&&O.abort(),O=null,T=t,M=(r&&r.startUninterruptedRevalidation)===!0,Ge(w.location,w.matches),D=(r&&r.preventScrollReset)===!0,k=(r&&r.enableViewTransition)===!0;let i=s.activeRoutes,a=r?.initialHydration&&w.matches&&w.matches.length>0&&!y?w.matches:Zo(i,n,c,!1,s.branches),o=(r&&r.flushSync)===!0;if(a&&w.initialized&&!N&&el(w.location,n)&&!(r&&r.submission&&fl(r.submission.formMethod))){pe(n,{matches:a},{flushSync:o});return}let l=qe(a,i,n.pathname);if(l.active&&l.matches&&(a=l.matches),!a){let{error:e,notFoundMatches:t,route:r}=He(n.pathname);pe(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:o});return}let u=r&&r.overrideNavigation?{...r.overrideNavigation,matches:a,historyAction:t}:void 0;O=new AbortController;let d=Vc(e.history,n,O.signal,r&&r.submission),f=e.getContext?await e.getContext():new Ho,p;if(r&&r.pendingError)p=[Yc(a).route.id,{type:`error`,error:r.pendingError}];else if(r&&r.submission&&fl(r.submission.formMethod)){let i=await _e(d,n,r.submission,a,t,f,l.active,r&&r.initialHydration===!0,{replace:r.replace,flushSync:o});if(i.shortCircuited)return;if(i.pendingActionResult){let[e,t]=i.pendingActionResult;if(al(t)&&As(t.error)&&t.error.status===404){O=null,pe(n,{matches:i.matches,loaderData:{},errors:{[e]:t.error}});return}}a=i.matches||a,p=i.pendingActionResult,u=gl(n,a,t,r.submission),o=!1,l.active=!1,d=Vc(e.history,d.url,d.signal)}let{shortCircuited:m,matches:h,loaderData:g,errors:_,workingFetchers:v}=await ve(d,n,a,t,f,l.active,u,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,o,p,r&&r.callSiteDefaultShouldRevalidate);m||(O=null,pe(n,{matches:h||a,...Jc(p),loaderData:g,errors:_,...v?{fetchers:v}:{}}))}async function _e(t,n,i,l,u,d,f,p,m={}){if(De(),fe({navigation:_l(n,l,u,i)},{flushSync:m.flushSync===!0}),f){let e=await Je(l,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=Xc(s.activeRoutes);return{matches:t,pendingActionResult:[n.id,{type:`error`,error:e.error}]}}let t=Yc(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:`error`,error:e.error}]}}if(e.matches)l=e.matches;else{let{notFoundMatches:e,error:t,route:r}=He(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:`error`,error:t}]}}}let h,g=ml(l,n);if(!g.route.action&&!g.route.lazy)h={type:`error`,error:Zc(405,{method:t.method,pathname:n.pathname,routeId:g.route.id})};else{let e=await Te(t,n,Mc(a,o,t,n,l,g,p?[]:r,d),d,null);if(h=e[g.route.id],!h){for(let t of l)if(e[t.route.id]){h=e[t.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}if(ol(h)){let n;return n=m&&m.replace!=null?m.replace:Bc(h.response.headers.get(`Location`),new URL(t.url),c,e.history)===w.location.pathname+w.location.search,await we(t,h,!0,{submission:i,replace:n}),{shortCircuited:!0}}if(al(h)){let e=Yc(l,g.route.id);return(m&&m.replace)!==!0&&(T=`PUSH`),{matches:l,pendingActionResult:[e.route.id,h,g.route.id]}}return{matches:l,pendingActionResult:[g.route.id,h]}}async function ve(t,n,i,l,u,d,f,p,m,h,g,_,v,y){let b=f||gl(n,i,l,p),x=p||m||hl(b),S=!M&&!g;if(d){if(S){let e=ye(v);fe({navigation:b,...e===void 0?{}:{actionData:e}},{flushSync:_})}let e=await Je(i,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=Xc(s.activeRoutes);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=Yc(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)i=e.matches;else{let{error:e,notFoundMatches:t,route:r}=He(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let C=s.activeRoutes,{dsMatches:T,revalidatingFetchers:E}=mc(t,u,a,o,e.history,w,i,x,n,g?[]:r,g===!0,N,ee,oe,ae,ie,C,c,e.patchRoutesOnNavigation!=null,s.branches,v,y);if(ne=++te,!e.dataStrategy&&!T.some(e=>e.shouldLoad)&&!T.some(e=>e.route.middleware&&e.route.middleware.length>0)&&E.length===0){let e=new Map(w.fetchers),t=Ie(e);return pe(n,{matches:i,loaderData:{},errors:v&&al(v[1])?{[v[0]]:v[1].error}:null,...Jc(v),...t?{fetchers:e}:{}},{flushSync:_}),{shortCircuited:!0}}if(S){let e={};if(!d){e.navigation=b;let t=ye(v);t!==void 0&&(e.actionData=t)}E.length>0&&(e.fetchers=be(E)),fe(e,{flushSync:_})}E.forEach(e=>{Pe(e.key),e.controller&&P.set(e.key,e.controller)});let D=()=>E.forEach(e=>Pe(e.key));O&&O.signal.addEventListener(`abort`,D);let{loaderResults:k,fetcherResults:A}=await Ee(T,E,t,n,u);if(t.signal.aborted)return{shortCircuited:!0};O&&O.signal.removeEventListener(`abort`,D),E.forEach(e=>P.delete(e.key));let j=Qc(k);if(j)return await we(t,j.result,!0,{replace:h}),{shortCircuited:!0};if(j=Qc(A),j)return ie.add(j.key),await we(t,j.result,!0,{replace:h}),{shortCircuited:!0};let re=new Map(w.fetchers),{loaderData:F,errors:se}=Kc(w,i,k,v,E,A,re);g&&w.errors&&(se={...w.errors,...se});let ce=Ie(re),I=Le(ne,re),le=ce||I||E.length>0;return{matches:i,loaderData:F,errors:se,...le?{workingFetchers:re}:{}}}function ye(e){if(e&&!al(e[1]))return{[e[0]]:e[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function be(e){let t=new Map(w.fetchers);return e.forEach(e=>{let n=t.get(e.key),r=vl(void 0,n?n.data:void 0);t.set(e.key,r)}),t}async function xe(t,n,r,i){Pe(t);let a=(i&&i.flushSync)===!0,o=s.activeRoutes,l=fc(w.location,w.matches,c,r,n,i?.relative),u=Zo(o,l,c,!1,s.branches),d=qe(u,o,l);if(d.active&&d.matches&&(u=d.matches),!u){ke(t,n,Zc(404,{pathname:l}),{flushSync:a});return}let{path:f,submission:p,error:m}=pc(!0,l,i);if(m){ke(t,n,m,{flushSync:a});return}let h=e.getContext?await e.getContext():new Ho,g=(i&&i.preventScrollReset)===!0;p&&fl(p.formMethod)?await Se(t,n,f,u,h,d.active,a,g,p,i&&i.defaultShouldRevalidate):(ae.set(t,{routeId:n,path:f}),await Ce(t,n,f,u,h,d.active,a,g,p))}async function Se(t,n,i,l,u,d,f,p,m,h){De(),ae.delete(t),Oe(t,yl(m,w.fetchers.get(t)),{flushSync:f});let g=new AbortController,_=Vc(e.history,i,g.signal,m);if(d){let e=await Je(l,new URL(_.url).pathname,_.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){ke(t,n,e.error,{flushSync:f});return}if(e.matches)l=e.matches;else{ke(t,n,Zc(404,{pathname:i}),{flushSync:f});return}}let v=ml(l,i);if(!v.route.action&&!v.route.lazy){ke(t,n,Zc(405,{method:m.formMethod,pathname:i,routeId:n}),{flushSync:f});return}P.set(t,g);let y=te,b=Mc(a,o,_,i,l,v,r,u),x=await Te(_,i,b,u,t),S=x[v.route.id];if(!S){for(let e of b)if(x[e.route.id]){S=x[e.route.id];break}}if(_.signal.aborted){P.get(t)===g&&P.delete(t);return}if(oe.has(t)){if(ol(S)||al(S)){Oe(t,bl(void 0));return}}else{if(ol(S)){if(P.delete(t),ne>y){Oe(t,bl(void 0));return}return ie.add(t),Oe(t,vl(m)),we(_,S,!1,{fetcherSubmission:m,preventScrollReset:p})}if(al(S)){ke(t,n,S.error);return}}let C=w.navigation.location||w.location,E=Vc(e.history,C,g.signal),D=s.activeRoutes,k=w.navigation.state===`idle`?w.matches:Zo(D,w.navigation.location,c,!1,s.branches);Mo(k,`Didn't find any matches after fetcher action`);let A=++te;re.set(t,A);let{dsMatches:j,revalidatingFetchers:M}=mc(E,u,a,o,e.history,w,k,m,C,r,!1,N,ee,oe,ae,ie,D,c,e.patchRoutesOnNavigation!=null,s.branches,[v.route.id,S],h),F=vl(m,S.data),se=new Map(w.fetchers);se.set(t,F),M.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=se.get(t),r=vl(void 0,n?n.data:void 0);se.set(t,r),Pe(t),e.controller&&P.set(t,e.controller)}),fe({fetchers:se});let ce=()=>M.forEach(e=>Pe(e.key));g.signal.addEventListener(`abort`,ce);let{loaderResults:I,fetcherResults:le}=await Ee(j,M,E,C,u);if(g.signal.aborted)return;g.signal.removeEventListener(`abort`,ce),re.delete(t),P.delete(t),M.forEach(e=>P.delete(e.key));let ue=w.fetchers.has(t),de=e=>{if(!ue)return e;let n=new Map(e.fetchers);return n.set(t,bl(S.data)),{...e,fetchers:n}},me=Qc(I);if(me)return w=de(w),we(E,me.result,!1,{preventScrollReset:p});if(me=Qc(le),me)return ie.add(me.key),w=de(w),we(E,me.result,!1,{preventScrollReset:p});let he=new Map(w.fetchers);ue&&he.set(t,bl(S.data));let{loaderData:ge,errors:_e}=Kc(w,k,I,void 0,M,le,he);Le(A,he),w.navigation.state===`loading`&&A>ne?(Mo(T,`Expected pending action`),O&&O.abort(),pe(w.navigation.location,{matches:k,loaderData:ge,errors:_e,fetchers:he})):(fe({errors:_e,loaderData:qc(w.loaderData,ge,k,_e),fetchers:he}),N=!1)}async function Ce(t,n,i,s,c,l,u,d,f){let p=w.fetchers.get(t);Oe(t,vl(f,p?p.data:void 0),{flushSync:u});let m=new AbortController,h=Vc(e.history,i,m.signal);if(l){let e=await Je(s,new URL(h.url).pathname,h.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){ke(t,n,e.error,{flushSync:u});return}if(e.matches)s=e.matches;else{ke(t,n,Zc(404,{pathname:i}),{flushSync:u});return}}let g=ml(s,i);P.set(t,m);let _=te,v=await Te(h,i,Mc(a,o,h,i,s,g,r,c),c,t),y=v[g.route.id];if(!y){for(let e of s)if(v[e.route.id]){y=v[e.route.id];break}}if(P.get(t)===m&&P.delete(t),!h.signal.aborted){if(oe.has(t))Oe(t,bl(void 0));else if(ol(y)){if(ne>_){Oe(t,bl(void 0));return}ie.add(t),await we(h,y,!1,{preventScrollReset:d})}else al(y)?ke(t,n,y.error):Oe(t,bl(y.data))}}async function we(r,i,a,{submission:o,fetcherSubmission:s,preventScrollReset:l,replace:u}={}){a||(E?.resolve(),E=null),i.response.headers.has(`X-Remix-Revalidate`)&&(N=!0);let d=i.response.headers.get(`Location`);Mo(d,`Expected a Location header on the redirect Response`);let f=d,p=new URL(r.url);d=Bc(d,p,c,e.history),qs(f,d,p,`allow-explicit`);let m=Io(w.location,d,{_isRedirect:!0});if(n){let e=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))e=!0;else if(_s(d)){let n=Bo(t,d,!0);e=n.origin!==t.location.origin||gs(n.pathname,c)==null}if(e){u?t.location.replace(d):t.location.assign(d);return}}O=null;let h=u===!0||i.response.headers.has(`X-Remix-Replace`)?`REPLACE`:`PUSH`,{formMethod:g,formAction:_,formEncType:v}=w.navigation;!o&&!s&&g&&_&&v&&(o=hl(w.navigation));let y=o||s;z.has(i.response.status)&&y&&fl(y.formMethod)?await ge(h,m,{submission:{...y,formAction:d},preventScrollReset:l||D,enableViewTransition:a?k:void 0}):await ge(h,m,{overrideNavigation:gl(m,[],h,o),fetcherSubmission:s,preventScrollReset:l||D,enableViewTransition:a?k:void 0})}async function Te(e,t,n,r,i){let a,o={};try{a=await Nc(l,e,t,n,i,r,!1)}catch(e){return n.filter(e=>e.shouldLoad).forEach(t=>{o[t.route.id]={type:`error`,error:e}}),o}if(e.signal.aborted)return o;if(!fl(e.method))for(let e of n){if(a[e.route.id]?.type===`error`)break;a.hasOwnProperty(e.route.id)||w.loaderData.hasOwnProperty(e.route.id)||w.errors&&w.errors.hasOwnProperty(e.route.id)||!e.shouldCallHandler()||(a[e.route.id]={type:`error`,result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(a))if(il(r)){let i=r.result;o[t]={type:`redirect`,response:Lc(i,e,t,n,c)}}else o[t]=await Ic(r);return o}async function Ee(e,t,n,r,i){let a=Te(n,r,e,i,null),o=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await Te(e.request,e.path,e.matches,i,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:`error`,error:Zc(404,{pathname:e.path})}})}));return{loaderResults:await a,fetcherResults:(await o).reduce((e,t)=>Object.assign(e,t),{})}}function De(){N=!0,ae.forEach((e,t)=>{P.has(t)&&ee.add(t),Pe(t)})}function Oe(e,t,n={}){let r=new Map(w.fetchers);r.set(e,t),fe({fetchers:r},{flushSync:(n&&n.flushSync)===!0})}function ke(e,t,n,r={}){let i=Yc(w.matches,t),a=new Map(w.fetchers);Me(a,e),fe({errors:{[i.route.id]:n},fetchers:a},{flushSync:(r&&r.flushSync)===!0})}function Ae(e){return F.set(e,(F.get(e)||0)+1),oe.has(e)&&oe.delete(e),w.fetchers.get(e)||ec}function je(e,t){Pe(e,t?.reason),Oe(e,bl(null))}function Me(e,t){let n=w.fetchers.get(t);P.has(t)&&!(n&&n.state===`loading`&&re.has(t))&&Pe(t),ae.delete(t),re.delete(t),ie.delete(t),oe.delete(t),ee.delete(t),e.delete(t)}function Ne(e){let t=(F.get(e)||0)-1;t<=0?(F.delete(e),oe.add(e)):F.set(e,t),fe({fetchers:new Map(w.fetchers)})}function Pe(e,t){let n=P.get(e);n&&(n.abort(t),P.delete(e))}function Fe(e,t){for(let n of e){let e=t.get(n);Mo(e,`Expected fetcher: ${n}`);let r=bl(e.data);t.set(n,r)}}function Ie(e){let t=[],n=!1;for(let r of ie){let i=e.get(r);Mo(i,`Expected fetcher: ${r}`),i.state===`loading`&&(ie.delete(r),t.push(r),n=!0)}return Fe(t,e),n}function Le(e,t){let n=[];for(let[r,i]of re)if(i<e){let e=t.get(r);Mo(e,`Expected fetcher: ${r}`),e.state===`loading`&&(Pe(r),re.delete(r),n.push(r))}return Fe(n,t),n.length>0}function Re(e,t){let n=w.blockers.get(e)||tc;return se.get(e)!==t&&se.set(e,t),n}function ze(e){w.blockers.delete(e),se.delete(e)}function Be(e,t){let n=w.blockers.get(e)||tc;Mo(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(w.blockers);r.set(e,t),fe({blockers:r})}function Ve({currentLocation:e,nextLocation:t,historyAction:n}){if(se.size===0)return;se.size>1&&No(!1,`A router only supports one blocker at a time`);let r=Array.from(se.entries()),[i,a]=r[r.length-1],o=w.blockers.get(i);if(!(o&&o.state===`proceeding`)&&a({currentLocation:e,nextLocation:t,historyAction:n}))return i}function He(e){let t=Zc(404,{pathname:e}),n=s.activeRoutes,{matches:r,route:i}=Xc(n);return{notFoundMatches:r,route:i,error:t}}function Ue(e,t,n){if(m=e,g=t,h=n||null,!_&&w.navigation===$s){_=!0;let e=Ke(w.location,w.matches);e!=null&&fe({restoreScrollPosition:e})}return()=>{m=null,g=null,h=null}}function We(e,t){return h&&h(e,t.map(e=>Qo(e,w.loaderData)))||e.key}function Ge(e,t){if(m&&g){let n=We(e,t);m[n]=g()}}function Ke(e,t){if(m){let n=We(e,t),r=m[n];if(typeof r==`number`)return r}return null}function qe(t,n,r){if(e.patchRoutesOnNavigation){let e=s.branches;if(!t)return{active:!0,matches:Zo(n,r,c,!0,e)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:Zo(n,r,c,!0,e)}}return{active:!1,matches:null}}async function Je(t,n,r,i){if(!e.patchRoutesOnNavigation)return{type:`success`,matches:t};let l=t;for(;;){let t=o;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:l,fetcherKey:i,patch:(e,n)=>{r.aborted||bc(e,n,s,t,a,!1)}})}catch(e){return{type:`error`,error:e,partialMatches:l}}if(r.aborted)return{type:`aborted`};let u=s.branches,d=Zo(s.activeRoutes,n,c,!1,u),f=null;if(d&&(Object.keys(d[0].params).length===0||(f=Zo(s.activeRoutes,n,c,!0,u),!(f&&l.length<f.length&&Ye(l,f.slice(0,l.length))))))return{type:`success`,matches:d};if(f||=Zo(s.activeRoutes,n,c,!0,u),!f||Ye(l,f))return{type:`success`,matches:null};l=f}}function Ye(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}function Xe(e){o={},s.setHmrRoutes(Jo(e,a,void 0,o))}function Ze(e,t,n=!1){bc(e,t,s,o,a,n),s.hasHMRRoutes||fe({})}return C={get basename(){return c},get future(){return u},get state(){return w},get routes(){return s.stableRoutes},get branches(){return s.branches},get manifest(){return o},get window(){return t},initialize:le,subscribe:de,enableScrollRestoration:Ue,navigate:me,fetch:xe,revalidate:he,createHref:t=>e.history.createHref(t),createURL:t=>e.history.createURL(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Ae,resetFetcher:je,deleteFetcher:Ne,dispose:ue,getBlocker:Re,deleteBlocker:ze,patchRoutes:Ze,_internalFetchControllers:P,_internalSetRoutes:Xe,_internalSetStateDoNotUseOrYouWillBreakYourApp(e){fe(e)}},e.instrumentations&&(C=Is(C,e.instrumentations.map(e=>e.router).filter(Boolean))),C}function dc(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function fc(e,t,n,r,i,a){let o,s;if(i){o=[];for(let e of t)if(o.push(e),e.route.id===i){s=e;break}}else o=t,s=t[t.length-1];let c=Ss(r||`.`,xs(o),gs(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=pl(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,`?index&`):`?index`;else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();c.search=n?`?${n}`:``}}return n!==`/`&&(c.pathname=xee({basename:n,pathname:c.pathname})),Lo(c)}function pc(e,t,n){if(!n||!dc(n))return{path:t};if(n.formMethod&&!dl(n.formMethod))return{path:t,error:Zc(405,{method:n.formMethod})};let r=()=>({path:t,error:Zc(400,{type:`invalid-body`})}),i=(n.formMethod||`get`).toUpperCase(),a=$c(t);if(n.body!==void 0){if(n.formEncType===`text/plain`){if(!fl(i))return r();let e=typeof n.body==`string`?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n}
160
+ `):Ve.warn(`Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'`)),n}traceHeaders(){return this._callExtensionMethod(`traceHeaders`)}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){let e=this.getStackTop().scope,t=e.getSession();t&&ar(t),this._sendSessionUpdate(),e.setSession()}startSession(e){let{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=$n}=n&&n.getOptions()||{},{userAgent:a}=Ee.navigator||{},o=rr({release:r,environment:i,user:t.getUser(),...a&&{userAgent:a},...e}),s=t.getSession&&t.getSession();return s&&s.status===`ok`&&ir(s,{status:`exited`}),this.endSession(),t.setSession(o),o}shouldSendDefaultPii(){let e=this.getClient(),t=e&&e.getOptions();return!!(t&&t.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){let n=Hr().__SENTRY__;if(n&&n.extensions&&typeof n.extensions[e]==`function`)return n.extensions[e].apply(this,t);Qn&&Ve.warn(`Extension method ${e} couldn't be found, doing nothing.`)}};function Hr(){return Ee.__SENTRY__=Ee.__SENTRY__||{extensions:{},hub:void 0},Ee}function Ur(e){let t=Hr(),n=qr(t);return Jr(t,e),n}function Wr(){let e=Hr();if(e.__SENTRY__&&e.__SENTRY__.acs){let t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return Kr(e)}function Gr(){return Wr().getIsolationScope()}function Kr(e=Hr()){return(!dee(e)||qr(e).isOlderThan(Br))&&Jr(e,new Vr),qr(e)}function dee(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function qr(e){return Oe(`hub`,()=>new Vr,e)}function Jr(e,t){if(!e)return!1;let n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function Yr(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function Xr(e,t,n,r){let i=Wn(n);return Fn({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:We(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function fee(e,t,n,r){let i=Wn(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;Yr(e,n&&n.sdk);let o=Gn(e,i,r,t);return delete e.sdkProcessingMetadata,Fn(o,[[{type:a},e]])}var Zr=`7`;function Qr(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function $r(e){return`${Qr(e)}${e.projectId}/envelope/`}function ei(e,t){return et({sentry_key:e.publicKey,sentry_version:Zr,...t&&{sentry_client:`${t.name}/${t.version}`}})}function ti(e,t={}){let n=typeof t==`string`?t:t.tunnel,r=typeof t==`string`||!t._metadata?void 0:t._metadata.sdk;return n||`${$r(e)}?${ei(e,r)}`}var ni=[];function pee(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.keys(t).map(e=>t[e])}function ri(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r;r=Array.isArray(n)?[...t,...n]:typeof n==`function`?kt(n(t)):t;let i=pee(r),a=si(i,e=>e.name===`Debug`);if(a!==-1){let[e]=i.splice(a,1);i.push(e)}return i}function ii(e,t){let n={};return t.forEach(t=>{t&&oi(e,t,n)}),n}function ai(e,t){for(let n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function oi(e,t,n){if(n[t.name])Qn&&Ve.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,ni.indexOf(t.name)===-1&&(t.setupOnce(tr,Wr),ni.push(t.name)),t.setup&&typeof t.setup==`function`&&t.setup(e),e.on&&typeof t.preprocessEvent==`function`){let n=t.preprocessEvent.bind(t);e.on(`preprocessEvent`,(t,r)=>n(t,r,e))}if(e.addEventProcessor&&typeof t.processEvent==`function`){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}Qn&&Ve.log(`Integration installed: ${t.name}`)}}function si(e,t){for(let n=0;n<e.length;n++)if(t(e[n])===!0)return n;return-1}function ci(e,t){return Object.assign(function(...e){return t(...e)},{id:e})}function li(e){return e}function mee(e){let t=``;for(let n of e){let e=Object.entries(n.tags),r=e.length>0?`|#${e.map(([e,t])=>`${e}:${t}`).join(`,`)}`:``;t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return t}function ui(e,t,n,r){let i={sent_at:new Date().toISOString()};return n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=We(t)),Fn(i,[di(e)])}function di(e){let t=mee(e);return[{type:`statsd`,length:t.length},t]}var fi=`Not capturing exception because it's already been captured.`,pi=class{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Je(e.dsn):Qn&&Ve.warn(`No DSN provided, client will not send events.`),this._dsn){let t=ti(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(Ot(e)){Qn&&Ve.log(fi);return}let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then(e=>this._captureEvent(e,t,n)).then(e=>{r=e})),r}captureMessage(e,t,n,r){let i=n&&n.event_id,a=oe(e)?e:String(e),o=se(e)?this.eventFromMessage(a,t,n):this.eventFromException(e,n);return this._process(o.then(e=>this._captureEvent(e,n,r)).then(e=>{i=e})),i}captureEvent(e,t,n){if(t&&t.originalException&&Ot(t.originalException)){Qn&&Ve.log(fi);return}let r=t&&t.event_id,i=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,i||n).then(e=>{r=e})),r}captureSession(e){typeof e.release==`string`?(this.sendSession(e),ir(e,{init:!1})):Qn&&Ve.warn(`Discarded session because of missing or non-string release`)}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):wn(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch{return Qn&&Ve.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){let t=this._integrations[e.name];oi(this,e,this._integrations),t||ai(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=fee(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=In(n,Vn(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));let r=this._sendEnvelope(n);r&&r.then(t=>this.emit(`afterSendEvent`,e,t),null)}sendSession(e){let t=Xr(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let r=typeof n==`number`?n:1,i=`${e}:${t}`;Qn&&Ve.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:``}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}captureAggregateMetrics(e){Qn&&Ve.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);let t=ui(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach(e=>e(...t))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=ii(this,e),ai(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let n=!1,r=!1,i=t.exception&&t.exception.values;if(i){r=!0;for(let e of i){let t=e.mechanism;if(t&&t.handled===!1){n=!0;break}}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&(ir(e,{...n&&{status:`crashed`},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new En(t=>{let n=0,r=setInterval(()=>{this._numProcessing==0?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r=Gr()){let i=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a.length>0&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),dr(i,e,t,n,this,r).then(e=>{if(e===null)return e;let t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){let{traceId:r,spanId:i,parentSpanId:a,dsc:o}=t;e.contexts={trace:{trace_id:r,span_id:i,parent_span_id:a},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:o||Er(r,this,n),...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{if(Qn){let t=e;t.logLevel===`log`?Ve.log(t.message):Ve.warn(t)}})}_processEvent(e,t,n){let r=this.getOptions(),{sampleRate:i}=r,a=gi(e),o=hee(e),s=e.type||`error`,c=`before send for type \`${s}\``;if(o&&typeof i==`number`&&Math.random()>i)return this.recordDroppedEvent(`sample_rate`,`error`,e),Tn(new Ye(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,`log`));let l=s===`replay_event`?`replay`:s,u=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,u).then(n=>{if(n===null)throw this.recordDroppedEvent(`event_processor`,l,e),new Ye("An event processor returned `null`, will not send event.",`log`);return t.data&&t.data.__sentry__===!0?n:mi(hi(r,n,t),c)}).then(r=>{if(r===null){if(this.recordDroppedEvent(`before_send`,l,e),a){let t=1+(e.spans||[]).length;this.recordDroppedEvent(`before_send`,`span`,t)}throw new Ye(`${c} returned \`null\`, will not send event.`,`log`)}let i=n&&n.getSession();if(!a&&i&&this._updateSessionFromEvent(i,r),a){let e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let o=r.transaction_info;return a&&o&&r.transaction!==e.transaction&&(r.transaction_info={...o,source:`custom`}),this.sendEvent(r,t),r}).then(null,e=>{throw e instanceof Ye?e:(this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Ye(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`))})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_sendEnvelope(e){if(this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,e=>{Qn&&Ve.error(`Error while sending event:`,e)});Qn&&Ve.error(`Transport disabled`)}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{let[n,r]=t.split(`:`);return{reason:n,category:r,quantity:e[t]}})}};function mi(e,t){let n=`${t} must return \`null\` or a valid event.`;if(de(e))return e.then(e=>{if(!ce(e)&&e!==null)throw new Ye(n);return e},e=>{throw new Ye(`${t} rejected with ${e}`)});if(!ce(e)&&e!==null)throw new Ye(n);return e}function hi(e,t,n){let{beforeSend:r,beforeSendTransaction:i}=e;if(hee(t)&&r)return r(t,n);if(gi(t)&&i){if(t.spans){let e=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(t,n)}return t}function hee(e){return e.type===void 0}function gi(e){return e.type===`transaction`}function gee(e,t){t.debug===!0&&(Qn?Ve.enable():ze(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),wr().update(t.initialScope);let n=new e(t);_i(n),vi(n)}function _i(e){let t=Wr().getStackTop();t.client=e,t.scope.setClient(e)}function vi(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}function yi(e,t,n=Dn(e.bufferSize||30)){let r={},i=e=>n.drain(e);function a(i){let a=[];if(Ln(i,(t,n)=>{let i=Un(n);if(Xn(r,i)){let r=bi(t,n);e.recordDroppedEvent(`ratelimit_backoff`,i,r)}else a.push(t)}),a.length===0)return wn();let o=Fn(i[0],a),s=t=>{Ln(o,(n,r)=>{let i=bi(n,r);e.recordDroppedEvent(t,Un(r),i)})};return n.add(()=>t({body:zn(o,e.textEncoder)}).then(e=>(e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&Qn&&Ve.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=Zn(r,e),e),e=>{throw s(`network_error`),e})).then(e=>e,e=>{if(e instanceof Ye)return Qn&&Ve.error(`Skipped sending event because buffer is full.`),s(`queue_overflow`),wn();throw e})}return a.__sentry__baseTransport__=!0,{send:a,flush:i}}function bi(e,t){if(t===`event`||t===`transaction`)return Array.isArray(e)?e[1]:void 0}function xi(e,t,n=[t],r=`npm`){let i=e._metadata||{};i.sdk||={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:zr})),version:zr},e._metadata=i}var Si=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],Ci=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],wi=`InboundFilters`,Ti=li(((e={})=>({name:wi,setupOnce(){},processEvent(t,n,r){return Di(t,Ei(e,r.getOptions()))?null:t}})));ci(wi,Ti);function Ei(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Si],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Ci],ignoreInternal:e.ignoreInternal===void 0||e.ignoreInternal}}function Di(e,t){return t.ignoreInternal&&Ni(e)?(Qn&&Ve.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Tt(e)}`),!0):Oi(e,t.ignoreErrors)?(Qn&&Ve.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Tt(e)}`),!0):ki(e,t.ignoreTransactions)?(Qn&&Ve.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Tt(e)}`),!0):Ai(e,t.denyUrls)?(Qn&&Ve.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Tt(e)}.\nUrl: ${Fi(e)}`),!0):!ji(e,t.allowUrls)&&(Qn&&Ve.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Tt(e)}.\nUrl: ${Fi(e)}`),!0)}function Oi(e,t){return e.type||!t||!t.length?!1:Mi(e).some(e=>ye(e,t))}function ki(e,t){if(e.type!==`transaction`||!t||!t.length)return!1;let n=e.transaction;return n?ye(n,t):!1}function Ai(e,t){if(!t||!t.length)return!1;let n=Fi(e);return n?ye(n,t):!1}function ji(e,t){if(!t||!t.length)return!0;let n=Fi(e);return!n||ye(n,t)}function Mi(e){let t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),Qn&&t.length===0&&Ve.error(`Could not extract message for event ${Tt(e)}`),t}function Ni(e){try{return e.exception.values[0].type===`SentryError`}catch{}return!1}function Pi(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!==`<anonymous>`&&n.filename!==`[native code]`)return n.filename||null}return null}function Fi(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?Pi(t):null}catch{return Qn&&Ve.error(`Cannot extract url for event ${Tt(e)}`),null}}var Ii,Li=`FunctionToString`,Ri=new WeakMap,zi=li((()=>({name:Li,setupOnce(){Ii=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=$e(this),n=Ri.has(Cr())&&t!==void 0?t:this;return Ii.apply(n,e)}}catch{}},setup(e){Ri.set(e,!0)}})));ci(Li,zi);var Bi=Ee,Vi=0;function Hi(){return Vi>0}function Ui(){Vi++,setTimeout(()=>{Vi--})}function Wi(e,t={},n){if(typeof e!=`function`)return e;try{let t=e.__sentry_wrapped__;if(t)return typeof t==`function`?t:e;if($e(e))return e}catch{return e}let r=function(){let r=Array.prototype.slice.call(arguments);try{n&&typeof n==`function`&&n.apply(this,arguments);let i=r.map(e=>Wi(e,t));return e.apply(this,i)}catch(e){throw Ui(),Sr(n=>{n.addEventProcessor(e=>(t.mechanism&&(Et(e,void 0,void 0),Dt(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),ree(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}Qe(r,e),Ze(e,`__sentry_wrapped__`,r);try{Object.getOwnPropertyDescriptor(r,`name`).configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}var Gi=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__;function Ki(e,t){let n=Yi(e,t),r={type:t&&t.name,value:_ee(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function qi(e,t,n,r){let i=Cr(),a=i&&i.getOptions().normalizeDepth,o={exception:{values:[{type:I(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:na(t,{isUnhandledRejection:r})}]},extra:{__serialized__:_n(t,a)}};if(n){let t=Yi(e,n);t.length&&(o.exception.values[0].stacktrace={frames:t})}return o}function Ji(e,t){return{exception:{values:[Ki(e,t)]}}}function Yi(e,t){let n=t.stacktrace||t.stack||``,r=Zi(t);try{return e(n,r)}catch{}return[]}var Xi=/Minified React error #\d+;/i;function Zi(e){if(e){if(typeof e.framesToPop==`number`)return e.framesToPop;if(Xi.test(e.message))return 1}return 0}function _ee(e){let t=e&&e.message;return t?t.error&&typeof t.error.message==`string`?t.error.message:t:`No error message`}function Qi(e,t,n,r){let i=ea(e,t,n&&n.syntheticException||void 0,r);return Dt(i),i.level=`error`,n&&n.event_id&&(i.event_id=n.event_id),wn(i)}function $i(e,t,n=`info`,r,i){let a=ta(e,t,r&&r.syntheticException||void 0,i);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),wn(a)}function ea(e,t,n,r,i){let a;if(re(t)&&t.error)return Ji(e,t.error);if(ie(t)||ae(t)){let i=t;if(`stack`in t)a=Ji(e,t);else{let t=i.name||(ie(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=ta(e,o,n,r),Et(a,o)}return`code`in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return te(t)?Ji(e,t):ce(t)||I(t)?(a=qi(e,t,n,i),Dt(a,{synthetic:!0}),a):(a=ta(e,t,n,r),Et(a,`${t}`,void 0),Dt(a,{synthetic:!0}),a)}function ta(e,t,n,r){let i={};if(r&&n){let r=Yi(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(oe(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function na(e,{isUnhandledRejection:t}){let n=it(e),r=t?`promise rejection`:`exception`;return re(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:I(e)?`Event \`${ra(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function ra(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function ia(e,{metadata:t,tunnel:n,dsn:r}){return Fn({event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:We(r)}},[aa(e)])}function aa(e){return[{type:`user_report`},e]}var oa=class extends pi{constructor(e){xi(e,`browser`,[`browser`],Bi.SENTRY_SDK_SOURCE||mn()),super(e),e.sendClientReports&&Bi.document&&Bi.document.addEventListener(`visibilitychange`,()=>{Bi.document.visibilityState===`hidden`&&this._flushOutcomes()})}eventFromException(e,t){return Qi(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return $i(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){Gi&&Ve.warn(`SDK not enabled, will not capture user feedback.`);return}let t=ia(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,n)}_flushOutcomes(){let e=this._clearOutcomes();if(e.length===0){Gi&&Ve.log(`No outcomes to send`);return}if(!this._dsn){Gi&&Ve.log(`No dsn provided, will not send outcomes`);return}Gi&&Ve.log(`Sending outcomes:`,e);let t=Kn(e,this._options.tunnel&&We(this._dsn));this._sendEnvelope(t)}},sa=void 0;function ca(){if(sa)return sa;if(Ut(Bi.fetch))return sa=Bi.fetch.bind(Bi);let e=Bi.document,t=Bi.fetch;if(e&&typeof e.createElement==`function`)try{let n=e.createElement(`iframe`);n.hidden=!0,e.head.appendChild(n);let r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){Gi&&Ve.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return sa=t.bind(Bi)}function la(){sa=void 0}function ua(e,t=ca()){let n=0,r=0;function i(i){let a=i.body.length;n+=a,r++;let o={body:i.body,method:`POST`,referrerPolicy:`origin`,headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,o).then(e=>(n-=a,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get(`X-Sentry-Rate-Limits`),"retry-after":e.headers.get(`Retry-After`)}}))}catch(e){return la(),n-=a,r--,Tn(e)}}return yi(e,i)}var da=4;function fa(e){function t(t){return new En((n,r)=>{let i=new XMLHttpRequest;i.onerror=r,i.onreadystatechange=()=>{i.readyState===da&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader(`X-Sentry-Rate-Limits`),"retry-after":i.getResponseHeader(`Retry-After`)}})},i.open(`POST`,e.url);for(let t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)})}return yi(e,t)}var pa=`?`,ma=30,ha=40,ga=50;function _a(e,t,n,r){let i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var va=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ya=/\((\S*)(?::(\d+))(?::(\d+))\)/,ba=[ma,e=>{let t=va.exec(e);if(t){if(t[2]&&t[2].indexOf(`eval`)===0){let e=ya.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}let[e,n]=Ta(t[1]||pa,t[2]);return _a(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],xa=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Sa=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ca=[ga,e=>{let t=xa.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=Sa.exec(t[3]);e&&(t[1]=t[1]||`eval`,t[3]=e[1],t[4]=e[2],t[5]=``)}let e=t[3],n=t[1]||pa;return[n,e]=Ta(n,e),_a(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],wa=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,vee=dt(ba,Ca,[ha,e=>{let t=wa.exec(e);return t?_a(t[2],t[1]||pa,+t[3],t[4]?+t[4]:void 0):void 0}]),Ta=(e,t)=>{let n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?pa:e.split(`@`)[0],n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Ea=1024,Da=`Breadcrumbs`,Oa=li(((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Da,setupOnce(){},setup(e){t.console&&xt(ja(e)),t.dom&&Ft(Aa(e,t.dom)),t.xhr&&dn(Ma(e)),t.fetch&&Gt(Na(e)),t.history&&sn(Pa(e)),t.sentry&&e.on&&e.on(`beforeSendEvent`,ka(e))}}}));ci(Da,Oa);function ka(e){return function(t){Cr()===e&&xr({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:Tt(t)},{event:t})}}function Aa(e,t){return function(n){if(Cr()!==e)return;let r,i,a=typeof t==`object`?t.serializeAttribute:void 0,o=typeof t==`object`&&typeof t.maxStringLength==`number`?t.maxStringLength:void 0;o&&o>Ea&&(Gi&&Ve.warn(`\`dom.maxStringLength\` cannot exceed ${Ea}, but a value of ${o} was configured. Sentry will use ${Ea} instead.`),o=Ea),typeof a==`string`&&(a=[a]);try{let e=n.event,t=Fa(e)?e.target:e;r=je(t,{keyAttrs:a,maxStringLength:o}),i=Pe(t)}catch{r=`<unknown>`}if(r.length===0)return;let s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),xr(s,{event:n.event,name:n.name,global:n.global})}}function ja(e){return function(t){if(Cr()!==e)return;let n={category:`console`,data:{arguments:t.args,logger:`console`},level:An(t.level),message:_e(t.args,` `)};if(t.level===`assert`){if(t.args[0]===!1)n.message=`Assertion failed: ${_e(t.args.slice(1),` `)||`console.assert`}`,n.data.arguments=t.args.slice(1);else return}xr(n,{input:t.args,level:t.level})}}function Ma(e){return function(t){if(Cr()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[un];if(!n||!r||!i)return;let{method:a,url:o,status_code:s,body:c}=i,l={method:a,url:o,status_code:s},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r};xr({category:`xhr`,data:l,type:`http`},u)}}function Na(e){return function(t){if(Cr()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`)){if(t.error){let e=t.fetchData,i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r};xr({category:`fetch`,data:e,level:`error`,type:`http`},i)}else{let e=t.response,i={...t.fetchData,status_code:e&&e.status},a={input:t.args,response:e,startTimestamp:n,endTimestamp:r};xr({category:`fetch`,data:i,type:`http`},a)}}}}function Pa(e){return function(t){if(Cr()!==e)return;let n=t.from,r=t.to,i=On(Bi.location.href),a=n?On(n):void 0,o=On(r);a&&a.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),xr({category:`navigation`,data:{from:n,to:r}})}}function Fa(e){return!!e&&!!e.target}var Ia=`Dedupe`,La=li((()=>{let e;return{name:Ia,setupOnce(){},processEvent(t){if(t.type)return t;try{if(Ra(t,e))return Gi&&Ve.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));ci(Ia,La);function Ra(e,t){return t?!!(L(e,t)||za(e,t)):!1}function L(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Va(e,t)||!Ba(e,t))}function za(e,t){let n=Ha(t),r=Ha(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Va(e,t)||!Ba(e,t))}function Ba(e,t){let n=Ua(e),r=Ua(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function Va(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join(``)===r.join(``)}catch{return!1}}function Ha(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Ua(e){let t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}var Wa=`GlobalHandlers`,Ga=li(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:Wa,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(Ka(e),Za(`onerror`)),t.onunhandledrejection&&(qa(e),Za(`onunhandledrejection`))}}}));ci(Wa,Ga);function Ka(e){Zt(t=>{let{stackParser:n,attachStacktrace:r}=Qa();if(Cr()!==e||Hi())return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=c===void 0&&F(i)?Ya(i,a,o,s):Xa(ea(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,br(l,{originalException:c,mechanism:{handled:!1,type:`onerror`}})})}function qa(e){en(t=>{let{stackParser:n,attachStacktrace:r}=Qa();if(Cr()!==e||Hi())return;let i=Ja(t),a=se(i)?yee(i):ea(n,i,void 0,r,!0);a.level=`error`,br(a,{originalException:i,mechanism:{handled:!1,type:`onunhandledrejection`}})})}function Ja(e){if(se(e))return e;let t=e;try{if(`reason`in t)return t.reason;if(`detail`in t&&`reason`in t.detail)return t.detail.reason}catch{}return e}function yee(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Ya(e,t,n,r){let i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,a=re(e)?e.message:e,o=`Error`,s=a.match(i);return s&&(o=s[1],a=s[2]),Xa({exception:{values:[{type:o,value:a}]}},t,n,r)}function Xa(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[],l=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=F(t)&&t.length>0?t:Ne();return c.length===0&&c.push({colno:l,filename:d,function:`?`,in_app:!0,lineno:u}),e}function Za(e){Gi&&Ve.log(`Global Handler attached: ${e}`)}function Qa(){let e=Cr();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}var $a=`HttpContext`,eo=li((()=>({name:$a,setupOnce(){},preprocessEvent(e){if(!Bi.navigator&&!Bi.location&&!Bi.document)return;let t=e.request&&e.request.url||Bi.location&&Bi.location.href,{referrer:n}=Bi.document||{},{userAgent:r}=Bi.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}};e.request={...e.request,...t&&{url:t},headers:i}}})));ci($a,eo);var to=`cause`,no=5,ro=`LinkedErrors`,io=li(((e={})=>{let t=e.limit||no,n=e.key||to;return{name:ro,setupOnce(){},preprocessEvent(e,r,i){let a=i.getOptions();be(Ki,a.stackParser,a.maxValueLength,n,t,e,r)}}}));ci(ro,io);var ao=`EventTarget.Window.Node.ApplicationCache.AudioTrackList.BroadcastChannel.ChannelMergerNode.CryptoOperation.EventSource.FileReader.HTMLUnknownElement.IDBDatabase.IDBRequest.IDBTransaction.KeyOperation.MediaController.MessagePort.ModalWindow.Notification.SVGElementInstance.Screen.SharedWorker.TextTrack.TextTrackCue.TextTrackList.WebSocket.WebSocketWorker.Worker.XMLHttpRequest.XMLHttpRequestEventTarget.XMLHttpRequestUpload`.split(`.`),oo=`TryCatch`,so=li(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:oo,setupOnce(){t.setTimeout&&Xe(Bi,`setTimeout`,co),t.setInterval&&Xe(Bi,`setInterval`,co),t.requestAnimationFrame&&Xe(Bi,`requestAnimationFrame`,lo),t.XMLHttpRequest&&`XMLHttpRequest`in Bi&&Xe(XMLHttpRequest.prototype,`send`,uo);let e=t.eventTarget;e&&(Array.isArray(e)?e:ao).forEach(fo)}}}));ci(oo,so);function co(e){return function(...t){let n=t[0];return t[0]=Wi(n,{mechanism:{data:{function:ht(e)},handled:!1,type:`instrument`}}),e.apply(this,t)}}function lo(e){return function(t){return e.apply(this,[Wi(t,{mechanism:{data:{function:`requestAnimationFrame`,handler:ht(e)},handled:!1,type:`instrument`}})])}}function uo(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&Xe(n,e,function(t){let n={mechanism:{data:{function:e,handler:ht(t)},handled:!1,type:`instrument`}},r=$e(t);return r&&(n.mechanism.data.handler=ht(r)),Wi(t,n)})}),e.apply(this,t)}}function fo(e){let t=Bi,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty(`addEventListener`)&&(Xe(n,`addEventListener`,function(t){return function(n,r,i){try{typeof r.handleEvent==`function`&&(r.handleEvent=Wi(r.handleEvent,{mechanism:{data:{function:`handleEvent`,handler:ht(r),target:e},handled:!1,type:`instrument`}}))}catch{}return t.apply(this,[n,Wi(r,{mechanism:{data:{function:`addEventListener`,handler:ht(r),target:e},handled:!1,type:`instrument`}}),i])}}),Xe(n,`removeEventListener`,function(e){return function(t,n,r){let i=n;try{let n=i&&i.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch{}return e.call(this,t,i,r)}}))}var po=[Ti(),zi(),so(),Oa(),Ga(),io(),La(),eo()];function mo(e){return[...po]}function ho(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=mo()),e.release===void 0&&(typeof __SENTRY_RELEASE__==`string`&&(e.release=__SENTRY_RELEASE__),Bi.SENTRY_RELEASE&&Bi.SENTRY_RELEASE.id&&(e.release=Bi.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0),gee(oa,{...e,stackParser:ft(e.stackParser||vee),integrations:ri(e),transport:e.transport||(Ht()?ua:fa)}),e.autoSessionTracking&&go()}function go(){Bi.document===void 0?Gi&&Ve.warn(`Session tracking in non-browser environment with @sentry/browser is not supported.`):(Tr({ignoreDuration:!0}),oee(),sn(({from:e,to:t})=>{e!==void 0&&e!==t&&(Tr({ignoreDuration:!0}),oee())}))}function _o(e){let t={...e};xi(t,`react`),ho(t)}var vo=s((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),yo=s((e=>{process.env.NODE_ENV!==`production`&&(function(){"use strict";var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)}function x(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case l:case u:case i:case o:case a:case f:return p;default:var g=p&&p.$$typeof;switch(g){case c:case d:case h:case m:case s:return g;default:return t}}case r:return t}}}var S=l,C=u,w=c,T=s,E=n,D=d,O=i,k=h,A=m,j=r,M=o,N=a,ee=f,P=!1;function te(e){return P||(P=!0,console.warn(`The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.`)),ne(e)||x(e)===l}function ne(e){return x(e)===u}function re(e){return x(e)===c}function ie(e){return x(e)===s}function ae(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function F(e){return x(e)===d}function oe(e){return x(e)===i}function se(e){return x(e)===h}function ce(e){return x(e)===m}function I(e){return x(e)===r}function le(e){return x(e)===o}function ue(e){return x(e)===a}function de(e){return x(e)===f}e.AsyncMode=S,e.ConcurrentMode=C,e.ContextConsumer=w,e.ContextProvider=T,e.Element=E,e.ForwardRef=D,e.Fragment=O,e.Lazy=k,e.Memo=A,e.Portal=j,e.Profiler=M,e.StrictMode=N,e.Suspense=ee,e.isAsyncMode=te,e.isConcurrentMode=ne,e.isContextConsumer=re,e.isContextProvider=ie,e.isElement=ae,e.isForwardRef=F,e.isFragment=oe,e.isLazy=se,e.isMemo=ce,e.isPortal=I,e.isProfiler=le,e.isStrictMode=ue,e.isSuspense=de,e.isValidElementType=b,e.typeOf=x})()})),bo=s(((e,t)=>{t.exports=process.env.NODE_ENV===`production`?vo():yo()})),xo=s(((e,t)=>{var n=bo(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h})),So=e=>{throw TypeError(e)},Co=(e,t,n)=>t.has(e)||So(`Cannot `+n),wo=(e,t,n)=>(Co(e,t,`read from private field`),n?n.call(e):t.get(e)),To=(e,t,n)=>t.has(e)?So(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),Eo=(e,t,n,r)=>(Co(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),Do=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Oo=/^[\\/]{2}/;function R(e,t){return t+e.replace(/\\/g,`/`)}var ko=`popstate`;function Ao(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function jo(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return Io(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:Lo(t)}return zo(t,n,null,e)}function Mo(e,t){if(e===!1||e==null)throw Error(t)}function No(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function Po(){return Math.random().toString(36).substring(2,10)}function Fo(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Io(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?Ro(t):t,state:n,key:t&&t.key||r||Po(),mask:i}}function Lo({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function Ro(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function zo(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=Ao(e)?e:Io(h.location,e,t);n&&n(r,e),l=u()+1;let d=Fo(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=Ao(e)?e:Io(h.location,e,t);n&&n(r,e),l=u();let i=Fo(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return Bo(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(ko,d),c=e,()=>{i.removeEventListener(ko,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function Bo(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),Mo(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:Lo(t);return i=i.replace(/ $/,`%20`),!n&&Oo.test(i)&&(i=r+i),new URL(i,r)}var Vo,Ho=class{constructor(e){if(To(this,Vo,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(wo(this,Vo).has(e))return wo(this,Vo).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){wo(this,Vo).set(e,t)}};Vo=new WeakMap;var Uo=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`]);function Wo(e){return Uo.has(e)}var Go=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`]);function Ko(e){return Go.has(e)}function qo(e){return e.index===!0}function Jo(e,t,n=[],r={},i=!1){return e.map((e,a)=>{let o=[...n,String(a)],s=typeof e.id==`string`?e.id:o.join(`-`);if(Mo(e.index!==!0||!e.children,`Cannot specify children on an index route`),Mo(i||!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),qo(e)){let n={...e,id:s};return r[s]=Yo(n,t(n)),n}{let n={...e,id:s,children:void 0};return r[s]=Yo(n,t(n)),e.children&&(n.children=Jo(e.children,t,o,r,i)),n}})}function Yo(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function Xo(e,t,n=`/`){return Zo(e,t,n,!1)}function Zo(e,t,n,r,i){let a=gs((typeof t==`string`?Ro(t):t).pathname||`/`,n);if(a==null)return null;let o=i??$o(e),s=null,c=hs(a);for(let e=0;s==null&&e<o.length;++e)s=ds(o[e],c,r);return s}function Qo(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function $o(e){let t=es(e);return ns(t),t}function es(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;Mo(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=ws([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(Mo(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),es(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:us(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=ms(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of ts(e.path))a(e,t,!0,n)}),t}function ts(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=ts(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function ns(e){e.sort((e,t)=>e.score===t.score?bee(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var rs=/^:[\w-]+$/,is=3,as=2,os=1,ss=10,cs=-2,ls=e=>e===`*`;function us(e,t){let n=e.split(`/`),r=n.length;return n.some(ls)&&(r+=cs),t&&(r+=as),n.filter(e=>!ls(e)).reduce((e,t)=>e+(rs.test(t)?is:t===``?os:ss),r)}function bee(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function ds(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?ps(u,l,s.matcher,s.compiledParams):fs(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=fs({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:ws([a,d.pathname]),pathnameBase:Es(ws([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=ws([a,d.pathnameBase]))}return o}function fs(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ms(e.path,e.caseSensitive,e.end);return ps(e,t,n,r)}function ps(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=Ts(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=Ts(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function ms(e,t=!1,n=!0){No(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function hs(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return No(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function gs(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function xee({basename:e,pathname:t}){return t===`/`?e:ws([e,t])}var _s=e=>Do.test(e);function See(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?Ro(e):e,a;return n?(n=Cs(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?vs(n.substring(1),`/`):vs(n,t)):a=t,{pathname:a,search:Ds(r),hash:Cee(i)}}function vs(e,t){let n=Ts(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function ys(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function bs(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function xs(e){let t=bs(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Ss(e,t,n,r=!1){let i;typeof e==`string`?i=Ro(e):(i={...e},Mo(!i.pathname||!i.pathname.includes(`?`),ys(`?`,`pathname`,`search`,i)),Mo(!i.pathname||!i.pathname.includes(`#`),ys(`#`,`pathname`,`hash`,i)),Mo(!i.search||!i.search.includes(`#`),ys(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=See(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Cs=e=>e.replace(/[\\/]{2,}/g,`/`),ws=e=>Cs(e.join(`/`));function Ts(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var Es=e=>Ts(e).replace(/^\/*/,`/`),Ds=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Cee=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Os=[`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],ks=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function As(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function js(e){return ws(e.map(e=>e.route.path).filter(Boolean))||`/`}var Ms=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Ns(e,t){let n=e;if(typeof n!=`string`||!Do.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Ms)try{let e=new URL(window.location.href),r=Oo.test(n)?new URL(R(n,e.protocol)):new URL(n),a=gs(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{No(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}var Ps=Symbol(`Uninstrumented`);function Fs(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(n);for(let r of t)e[r]&&n[r].push(e[r])}}));let r={};if(typeof t.lazy==`function`&&n.lazy.length>0){let e=Ls(n.lazy,t.lazy,()=>void 0);e&&(r.lazy=e)}if(typeof t.lazy==`object`){let e=t.lazy;[`middleware`,`loader`,`action`].forEach(t=>{let i=e[t],a=n[`lazy.${t}`];if(typeof i==`function`&&a.length>0){let e=Ls(a,i,()=>void 0);e&&(r.lazy=Object.assign(r.lazy||{},{[t]:e}))}})}return[`loader`,`action`].forEach(e=>{let i=t[e];if(typeof i==`function`&&n[e].length>0){let t=i[Ps]??i,a=Ls(n[e],t,(...e)=>Rs(e[0]));a&&(e===`loader`&&t.hydrate===!0&&(a.hydrate=!0),a[Ps]=t,r[e]=a)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=e[Ps]??e,r=Ls(n.middleware,t,(...e)=>Rs(e[0]));return r?(r[Ps]=t,r):e})),r}function Is(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}})),n.navigate.length>0){let t=e.navigate[Ps]??e.navigate,r=Ls(n.navigate,t,(...t)=>{let[n,r]=t;return{to:typeof n==`number`||typeof n==`string`?n:n?Lo(n):`.`,...zs(e,r??{})}});r&&(r[Ps]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[Ps]??e.fetch,r=Ls(n.fetch,t,(...t)=>{let[n,,r,i]=t;return{href:r??`.`,fetcherKey:n,...zs(e,i??{})}});r&&(r[Ps]=t,e.fetch=r)}return e}function Ls(e,t,n){return e.length===0?null:async(...r)=>{let i=await wee(e,n(...r),()=>t(...r),e.length-1);if(i.type===`error`)throw i.value;return i.value}}async function wee(e,t,n,r){let i=e[r],a;if(i){let o,s=async()=>(o?console.error(`You cannot call instrumented handlers more than once`):o=wee(e,t,n,r-1),a=await o,Mo(a,`Expected a result`),a.type===`error`&&a.value instanceof Error?{status:`error`,error:a.value}:{status:`success`,error:void 0});try{await i(s,t)}catch(e){console.error(`An instrumentation function threw an error:`,e)}o||await s(),await o}else try{a={type:`success`,value:await n()}}catch(e){a={type:`error`,value:e}}return a||{type:`error`,value:Error(`No result assigned in instrumentation chain.`)}}function Rs(e){let{request:t,context:n,params:r,pattern:i}=e;return{request:Tee(t),params:{...r},pattern:i,context:Bs(n)}}function zs(e,t){return{currentUrl:Lo(e.state.location),...`formMethod`in t?{formMethod:t.formMethod}:{},...`formEncType`in t?{formEncType:t.formEncType}:{},...`formData`in t?{formData:t.formData}:{},...`body`in t?{body:t.body}:{}}}function Tee(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function Bs(e){if(Hs(e)){let t={...e};return Object.freeze(t),t}return{get:t=>e.get(t)}}var Vs=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function Hs(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===Vs}var Us=new URL(`http://localhost`);function Ws(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),Us)}catch{return Us}}function Gs(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function Ks(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function qs(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!Gs(i,n),s=!Gs(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!Ks(e,i)||!Gs(i,a)))throw Error(`External navigation is not allowed`)}var Js=[`POST`,`PUT`,`PATCH`,`DELETE`],Ys=new Set(Js),Xs=[`GET`,...Js],Zs=new Set(Xs),Qs=new Set([301,302,303,307,308]),z=new Set([307,308]),$s={state:`idle`,location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ec={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},tc={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},nc=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),rc=`remix-router-transitions`,ic=Symbol(`ResetLoaderData`),ac,oc,sc,cc,lc=class{constructor(e){To(this,ac),To(this,oc),To(this,sc),To(this,cc),Eo(this,ac,e),Eo(this,oc,$o(e))}get stableRoutes(){return wo(this,ac)}get activeRoutes(){return wo(this,sc)??wo(this,ac)}get branches(){return wo(this,cc)??wo(this,oc)}get hasHMRRoutes(){return wo(this,sc)!=null}setRoutes(e){Eo(this,ac,e),Eo(this,oc,$o(e))}setHmrRoutes(e){Eo(this,sc,e),Eo(this,cc,$o(e))}commitHmrRoutes(){wo(this,sc)&&(Eo(this,ac,wo(this,sc)),Eo(this,oc,wo(this,cc)),Eo(this,sc,void 0),Eo(this,cc,void 0))}};ac=new WeakMap,oc=new WeakMap,sc=new WeakMap,cc=new WeakMap;function uc(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0;Mo(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let r=e.hydrationRouteProperties||[],i=e.mapRouteProperties||nc,a=i;if(e.instrumentations){let t=e.instrumentations;a=e=>({...i(e),...Fs(t.map(e=>e.route).filter(Boolean),e)})}let o={},s=new lc(Jo(e.routes,a,void 0,o)),c=e.basename||`/`;c.startsWith(`/`)||(c=`/${c}`);let l=e.dataStrategy||Ec,u={...e.future},d=null,f=new Set,p=null,m=null,h=null,g=null,_=e.hydrationData!=null,v=Zo(s.activeRoutes,e.history.location,c,!1,s.branches),y=!1,b=null,x,S;if(v==null&&!e.patchRoutesOnNavigation){let t=Zc(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Xc(s.activeRoutes);x=!0,S=!x,v=n,b={[r.id]:t}}else if(v&&!e.hydrationData&&qe(v,s.activeRoutes,e.history.location.pathname).active&&(v=null),!v){x=!1,S=!x,v=[];let t=qe(null,s.activeRoutes,e.history.location.pathname);t.active&&t.matches&&(y=!0,v=t.matches)}else if(v.some(e=>e.route.lazy))x=!1,S=!x;else if(!v.some(e=>hc(e.route)))x=!0,S=!x;else{let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=v;if(n){let e=v.findIndex(e=>n[e.route.id]!==void 0);r=r.slice(0,e+1)}S=!1,x=!0,r.forEach(e=>{let r=gc(e.route,t,n);S||=r.renderFallback,x&&=!r.shouldLoad})}let C,w={historyAction:e.history.action,location:e.history.location,matches:v,initialized:x,renderFallback:S,navigation:$s,restoreScrollPosition:e.hydrationData==null&&null,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},T=`POP`,E=null,D=!1,O,k=!1,A=new Map,j=null,M=!1,N=!1,ee=new Set,P=new Map,te=0,ne=-1,re=new Map,ie=new Set,ae=new Map,F=new Map,oe=new Set,se=new Map,ce,I=null;function le(){if(d=e.history.listen(({action:t,location:n,delta:r})=>{if(ce){ce(),ce=void 0;return}No(se.size===0||r!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=Ve({currentLocation:w.location,nextLocation:n,historyAction:t});if(i&&r!=null){let t=new Promise(e=>{ce=e});e.history.go(r*-1),Be(i,{state:`blocked`,location:n,proceed(){Be(i,{state:`proceeding`,proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(w.blockers);e.set(i,tc),fe({blockers:e})}}),E?.resolve(),E=null}else return ge(t,n)}),n){xl(t,A);let e=()=>Dee(t,A);t.addEventListener(`pagehide`,e),j=()=>t.removeEventListener(`pagehide`,e)}return w.initialized||ge(`POP`,w.location,{initialHydration:!0}),C}function ue(){d&&d(),j&&j(),f.clear(),O&&O.abort(),w.fetchers.forEach((e,t)=>Me(w.fetchers,t)),w.blockers.forEach((e,t)=>ze(t))}function de(e){if(f.add(e),p){let{newErrors:t}=p;p=null,e(w,{deletedFetchers:[],newErrors:t,viewTransitionOpts:void 0,flushSync:!1})}return()=>f.delete(e)}function fe(e,t={}){e.matches&&=e.matches.map(e=>{let t=o[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}),w={...w,...e};let n=[],r=[];w.fetchers.forEach((e,t)=>{e.state===`idle`&&(oe.has(t)?n.push(t):r.push(t))}),oe.forEach(e=>{!w.fetchers.has(e)&&!P.has(e)&&n.push(e)}),f.size===0&&(p={newErrors:e.errors??null}),[...f].forEach(r=>r(w,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),n.forEach(e=>Me(w.fetchers,e)),r.forEach(e=>w.fetchers.delete(e))}function pe(t,n,{flushSync:r}={}){let i=w.actionData!=null&&w.navigation.formMethod!=null&&fl(w.navigation.formMethod)&&w.navigation.state===`loading`&&t.state?._isRedirect!==!0,a;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?w.actionData:null;let o=n.loaderData?qc(w.loaderData,n.loaderData,n.matches||[],n.errors):w.loaderData,c=w.blockers;c.size>0&&(c=new Map(c),c.forEach((e,t)=>c.set(t,tc)));let l=!M&&Ke(t,n.matches||w.matches),u=D===!0||w.navigation.formMethod!=null&&fl(w.navigation.formMethod)&&t.state?._isRedirect!==!0;s.commitHmrRoutes(),M||T===`POP`||(T===`PUSH`?e.history.push(t,t.state):T===`REPLACE`&&e.history.replace(t,t.state));let d;if(T===`POP`&&!M&&t!==w.location){let e=A.get(w.location.pathname);e&&e.has(t.pathname)?d={currentLocation:w.location,nextLocation:t}:A.has(t.pathname)&&(d={currentLocation:t,nextLocation:w.location})}else if(k){let e=A.get(w.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),A.set(w.location.pathname,e)),d={currentLocation:w.location,nextLocation:t}}fe({...n,actionData:a,loaderData:o,historyAction:T,location:t,initialized:!0,renderFallback:!1,navigation:$s,revalidation:`idle`,restoreScrollPosition:l,preventScrollReset:u,blockers:c},{viewTransitionOpts:d,flushSync:r===!0}),T=`POP`,D=!1,k=!1,M=!1,N=!1,E?.resolve(),E=null,I?.resolve(),I=null}async function me(t,n){if(E?.resolve(),E=null,typeof t==`number`){E||=Sl();let n=E.promise;return e.history.go(t),n}let{path:r,submission:i,error:a}=pc(!1,fc(w.location,w.matches,c,t,n?.fromRouteId,n?.relative),n),o;if(n?.mask){let t=typeof n.mask==`string`?Ro(n.mask):{...w.location.mask,...n.mask};if(o={pathname:t.pathname??``,search:t.search??``,hash:t.hash??``},Oo.test(o.pathname))throw Error(`External navigation is not allowed`);o.pathname.startsWith(`\\`)&&(o.pathname=o.pathname.replace(/^\\+/,`/`)),qs(typeof n.mask==`string`?n.mask:Lo(n.mask),Lo(o),e.history.createURL(`/`),`reject`)}let s=w.location,l=Io(s,r,n&&n.state,void 0,o);l={...l,...e.history.encodeLocation(l)},qs(t==null?e.history.createHref(w.location):typeof t==`string`?t:Lo(t),e.history.createHref(l.mask||l),e.history.createURL(`/`),`reject`);let u=n&&n.replace!=null?n.replace:void 0,d=`PUSH`;u===!0?d=`REPLACE`:u===!1||i!=null&&fl(i.formMethod)&&i.formAction===w.location.pathname+w.location.search&&(d=`REPLACE`);let f=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,p=(n&&n.flushSync)===!0,m=Ve({currentLocation:s,nextLocation:l,historyAction:d});m?Be(m,{state:`blocked`,location:l,proceed(){Be(m,{state:`proceeding`,proceed:void 0,reset:void 0,location:l}),me(t,n)},reset(){let e=new Map(w.blockers);e.set(m,tc),fe({blockers:e})}}):await ge(d,l,{submission:i,pendingError:a,preventScrollReset:f,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:p,callSiteDefaultShouldRevalidate:n&&n.defaultShouldRevalidate})}function he(){I||=Sl(),De(),fe({revalidation:`loading`});let e=I.promise;return w.navigation.state===`submitting`?e:w.navigation.state===`idle`?(ge(w.historyAction,w.location,{startUninterruptedRevalidation:!0}),e):(ge(T||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,enableViewTransition:k===!0}),e)}async function ge(t,n,r){O&&O.abort(),O=null,T=t,M=(r&&r.startUninterruptedRevalidation)===!0,Ge(w.location,w.matches),D=(r&&r.preventScrollReset)===!0,k=(r&&r.enableViewTransition)===!0;let i=s.activeRoutes,a=r?.initialHydration&&w.matches&&w.matches.length>0&&!y?w.matches:Zo(i,n,c,!1,s.branches),o=(r&&r.flushSync)===!0;if(a&&w.initialized&&!N&&el(w.location,n)&&!(r&&r.submission&&fl(r.submission.formMethod))){pe(n,{matches:a},{flushSync:o});return}let l=qe(a,i,n.pathname);if(l.active&&l.matches&&(a=l.matches),!a){let{error:e,notFoundMatches:t,route:r}=He(n.pathname);pe(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:o});return}let u=r&&r.overrideNavigation?{...r.overrideNavigation,matches:a,historyAction:t}:void 0;O=new AbortController;let d=Vc(e.history,n,O.signal,r&&r.submission),f=e.getContext?await e.getContext():new Ho,p;if(r&&r.pendingError)p=[Yc(a).route.id,{type:`error`,error:r.pendingError}];else if(r&&r.submission&&fl(r.submission.formMethod)){let i=await _e(d,n,r.submission,a,t,f,l.active,r&&r.initialHydration===!0,{replace:r.replace,flushSync:o});if(i.shortCircuited)return;if(i.pendingActionResult){let[e,t]=i.pendingActionResult;if(al(t)&&As(t.error)&&t.error.status===404){O=null,pe(n,{matches:i.matches,loaderData:{},errors:{[e]:t.error}});return}}a=i.matches||a,p=i.pendingActionResult,u=gl(n,a,t,r.submission),o=!1,l.active=!1,d=Vc(e.history,d.url,d.signal)}let{shortCircuited:m,matches:h,loaderData:g,errors:_,workingFetchers:v}=await ve(d,n,a,t,f,l.active,u,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,o,p,r&&r.callSiteDefaultShouldRevalidate);m||(O=null,pe(n,{matches:h||a,...Jc(p),loaderData:g,errors:_,...v?{fetchers:v}:{}}))}async function _e(t,n,i,l,u,d,f,p,m={}){if(De(),fe({navigation:_l(n,l,u,i)},{flushSync:m.flushSync===!0}),f){let e=await Je(l,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=Xc(s.activeRoutes);return{matches:t,pendingActionResult:[n.id,{type:`error`,error:e.error}]}}let t=Yc(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:`error`,error:e.error}]}}if(e.matches)l=e.matches;else{let{notFoundMatches:e,error:t,route:r}=He(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:`error`,error:t}]}}}let h,g=ml(l,n);if(!g.route.action&&!g.route.lazy)h={type:`error`,error:Zc(405,{method:t.method,pathname:n.pathname,routeId:g.route.id})};else{let e=await Te(t,n,Mc(a,o,t,n,l,g,p?[]:r,d),d,null);if(h=e[g.route.id],!h){for(let t of l)if(e[t.route.id]){h=e[t.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}if(ol(h)){let n;return n=m&&m.replace!=null?m.replace:Bc(h.response.headers.get(`Location`),new URL(t.url),c,e.history)===w.location.pathname+w.location.search,await we(t,h,!0,{submission:i,replace:n}),{shortCircuited:!0}}if(al(h)){let e=Yc(l,g.route.id);return(m&&m.replace)!==!0&&(T=`PUSH`),{matches:l,pendingActionResult:[e.route.id,h,g.route.id]}}return{matches:l,pendingActionResult:[g.route.id,h]}}async function ve(t,n,i,l,u,d,f,p,m,h,g,_,v,y){let b=f||gl(n,i,l,p),x=p||m||hl(b),S=!M&&!g;if(d){if(S){let e=ye(v);fe({navigation:b,...e===void 0?{}:{actionData:e}},{flushSync:_})}let e=await Je(i,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=Xc(s.activeRoutes);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=Yc(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)i=e.matches;else{let{error:e,notFoundMatches:t,route:r}=He(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let C=s.activeRoutes,{dsMatches:T,revalidatingFetchers:E}=mc(t,u,a,o,e.history,w,i,x,n,g?[]:r,g===!0,N,ee,oe,ae,ie,C,c,e.patchRoutesOnNavigation!=null,s.branches,v,y);if(ne=++te,!e.dataStrategy&&!T.some(e=>e.shouldLoad)&&!T.some(e=>e.route.middleware&&e.route.middleware.length>0)&&E.length===0){let e=new Map(w.fetchers),t=Ie(e);return pe(n,{matches:i,loaderData:{},errors:v&&al(v[1])?{[v[0]]:v[1].error}:null,...Jc(v),...t?{fetchers:e}:{}},{flushSync:_}),{shortCircuited:!0}}if(S){let e={};if(!d){e.navigation=b;let t=ye(v);t!==void 0&&(e.actionData=t)}E.length>0&&(e.fetchers=be(E)),fe(e,{flushSync:_})}E.forEach(e=>{Pe(e.key),e.controller&&P.set(e.key,e.controller)});let D=()=>E.forEach(e=>Pe(e.key));O&&O.signal.addEventListener(`abort`,D);let{loaderResults:k,fetcherResults:A}=await Ee(T,E,t,n,u);if(t.signal.aborted)return{shortCircuited:!0};O&&O.signal.removeEventListener(`abort`,D),E.forEach(e=>P.delete(e.key));let j=Qc(k);if(j)return await we(t,j.result,!0,{replace:h}),{shortCircuited:!0};if(j=Qc(A),j)return ie.add(j.key),await we(t,j.result,!0,{replace:h}),{shortCircuited:!0};let re=new Map(w.fetchers),{loaderData:F,errors:se}=Kc(w,i,k,v,E,A,re);g&&w.errors&&(se={...w.errors,...se});let ce=Ie(re),I=Le(ne,re),le=ce||I||E.length>0;return{matches:i,loaderData:F,errors:se,...le?{workingFetchers:re}:{}}}function ye(e){if(e&&!al(e[1]))return{[e[0]]:e[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function be(e){let t=new Map(w.fetchers);return e.forEach(e=>{let n=t.get(e.key),r=vl(void 0,n?n.data:void 0);t.set(e.key,r)}),t}async function xe(t,n,r,i){Pe(t);let a=(i&&i.flushSync)===!0,o=s.activeRoutes,l=fc(w.location,w.matches,c,r,n,i?.relative),u=Zo(o,l,c,!1,s.branches),d=qe(u,o,l);if(d.active&&d.matches&&(u=d.matches),!u){ke(t,n,Zc(404,{pathname:l}),{flushSync:a});return}let{path:f,submission:p,error:m}=pc(!0,l,i);if(m){ke(t,n,m,{flushSync:a});return}let h=e.getContext?await e.getContext():new Ho,g=(i&&i.preventScrollReset)===!0;p&&fl(p.formMethod)?await Se(t,n,f,u,h,d.active,a,g,p,i&&i.defaultShouldRevalidate):(ae.set(t,{routeId:n,path:f}),await Ce(t,n,f,u,h,d.active,a,g,p))}async function Se(t,n,i,l,u,d,f,p,m,h){De(),ae.delete(t),Oe(t,yl(m,w.fetchers.get(t)),{flushSync:f});let g=new AbortController,_=Vc(e.history,i,g.signal,m);if(d){let e=await Je(l,new URL(_.url).pathname,_.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){ke(t,n,e.error,{flushSync:f});return}if(e.matches)l=e.matches;else{ke(t,n,Zc(404,{pathname:i}),{flushSync:f});return}}let v=ml(l,i);if(!v.route.action&&!v.route.lazy){ke(t,n,Zc(405,{method:m.formMethod,pathname:i,routeId:n}),{flushSync:f});return}P.set(t,g);let y=te,b=Mc(a,o,_,i,l,v,r,u),x=await Te(_,i,b,u,t),S=x[v.route.id];if(!S){for(let e of b)if(x[e.route.id]){S=x[e.route.id];break}}if(_.signal.aborted){P.get(t)===g&&P.delete(t);return}if(oe.has(t)){if(ol(S)||al(S)){Oe(t,bl(void 0));return}}else{if(ol(S)){if(P.delete(t),ne>y){Oe(t,bl(void 0));return}return ie.add(t),Oe(t,vl(m)),we(_,S,!1,{fetcherSubmission:m,preventScrollReset:p})}if(al(S)){ke(t,n,S.error);return}}let C=w.navigation.location||w.location,E=Vc(e.history,C,g.signal),D=s.activeRoutes,k=w.navigation.state===`idle`?w.matches:Zo(D,w.navigation.location,c,!1,s.branches);Mo(k,`Didn't find any matches after fetcher action`);let A=++te;re.set(t,A);let{dsMatches:j,revalidatingFetchers:M}=mc(E,u,a,o,e.history,w,k,m,C,r,!1,N,ee,oe,ae,ie,D,c,e.patchRoutesOnNavigation!=null,s.branches,[v.route.id,S],h),F=vl(m,S.data),se=new Map(w.fetchers);se.set(t,F),M.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=se.get(t),r=vl(void 0,n?n.data:void 0);se.set(t,r),Pe(t),e.controller&&P.set(t,e.controller)}),fe({fetchers:se});let ce=()=>M.forEach(e=>Pe(e.key));g.signal.addEventListener(`abort`,ce);let{loaderResults:I,fetcherResults:le}=await Ee(j,M,E,C,u);if(g.signal.aborted)return;g.signal.removeEventListener(`abort`,ce),re.delete(t),P.delete(t),M.forEach(e=>P.delete(e.key));let ue=w.fetchers.has(t),de=e=>{if(!ue)return e;let n=new Map(e.fetchers);return n.set(t,bl(S.data)),{...e,fetchers:n}},me=Qc(I);if(me)return w=de(w),we(E,me.result,!1,{preventScrollReset:p});if(me=Qc(le),me)return ie.add(me.key),w=de(w),we(E,me.result,!1,{preventScrollReset:p});let he=new Map(w.fetchers);ue&&he.set(t,bl(S.data));let{loaderData:ge,errors:_e}=Kc(w,k,I,void 0,M,le,he);Le(A,he),w.navigation.state===`loading`&&A>ne?(Mo(T,`Expected pending action`),O&&O.abort(),pe(w.navigation.location,{matches:k,loaderData:ge,errors:_e,fetchers:he})):(fe({errors:_e,loaderData:qc(w.loaderData,ge,k,_e),fetchers:he}),N=!1)}async function Ce(t,n,i,s,c,l,u,d,f){let p=w.fetchers.get(t);Oe(t,vl(f,p?p.data:void 0),{flushSync:u});let m=new AbortController,h=Vc(e.history,i,m.signal);if(l){let e=await Je(s,new URL(h.url).pathname,h.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){ke(t,n,e.error,{flushSync:u});return}if(e.matches)s=e.matches;else{ke(t,n,Zc(404,{pathname:i}),{flushSync:u});return}}let g=ml(s,i);P.set(t,m);let _=te,v=await Te(h,i,Mc(a,o,h,i,s,g,r,c),c,t),y=v[g.route.id];if(!y){for(let e of s)if(v[e.route.id]){y=v[e.route.id];break}}if(P.get(t)===m&&P.delete(t),!h.signal.aborted){if(oe.has(t))Oe(t,bl(void 0));else if(ol(y)){if(ne>_){Oe(t,bl(void 0));return}ie.add(t),await we(h,y,!1,{preventScrollReset:d})}else al(y)?ke(t,n,y.error):Oe(t,bl(y.data))}}async function we(r,i,a,{submission:o,fetcherSubmission:s,preventScrollReset:l,replace:u}={}){a||(E?.resolve(),E=null),i.response.headers.has(`X-Remix-Revalidate`)&&(N=!0);let d=i.response.headers.get(`Location`);Mo(d,`Expected a Location header on the redirect Response`);let f=d,p=new URL(r.url);d=Bc(d,p,c,e.history),qs(f,d,p,`allow-explicit`);let m=Io(w.location,d,{_isRedirect:!0});if(n){let e=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))e=!0;else if(_s(d)){let n=Bo(t,d,!0);e=n.origin!==t.location.origin||gs(n.pathname,c)==null}if(e){u?t.location.replace(d):t.location.assign(d);return}}O=null;let h=u===!0||i.response.headers.has(`X-Remix-Replace`)?`REPLACE`:`PUSH`,{formMethod:g,formAction:_,formEncType:v}=w.navigation;!o&&!s&&g&&_&&v&&(o=hl(w.navigation));let y=o||s;z.has(i.response.status)&&y&&fl(y.formMethod)?await ge(h,m,{submission:{...y,formAction:d},preventScrollReset:l||D,enableViewTransition:a?k:void 0}):await ge(h,m,{overrideNavigation:gl(m,[],h,o),fetcherSubmission:s,preventScrollReset:l||D,enableViewTransition:a?k:void 0})}async function Te(e,t,n,r,i){let a,o={};try{a=await Nc(l,e,t,n,i,r,!1)}catch(e){return n.filter(e=>e.shouldLoad).forEach(t=>{o[t.route.id]={type:`error`,error:e}}),o}if(e.signal.aborted)return o;if(!fl(e.method))for(let e of n){if(a[e.route.id]?.type===`error`)break;a.hasOwnProperty(e.route.id)||w.loaderData.hasOwnProperty(e.route.id)||w.errors&&w.errors.hasOwnProperty(e.route.id)||!e.shouldCallHandler()||(a[e.route.id]={type:`error`,result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(a))if(il(r)){let i=r.result;o[t]={type:`redirect`,response:Lc(i,e,t,n,c)}}else o[t]=await Ic(r);return o}async function Ee(e,t,n,r,i){let a=Te(n,r,e,i,null),o=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await Te(e.request,e.path,e.matches,i,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:`error`,error:Zc(404,{pathname:e.path})}})}));return{loaderResults:await a,fetcherResults:(await o).reduce((e,t)=>Object.assign(e,t),{})}}function De(){N=!0,ae.forEach((e,t)=>{P.has(t)&&ee.add(t),Pe(t)})}function Oe(e,t,n={}){let r=new Map(w.fetchers);r.set(e,t),fe({fetchers:r},{flushSync:(n&&n.flushSync)===!0})}function ke(e,t,n,r={}){let i=Yc(w.matches,t),a=new Map(w.fetchers);Me(a,e),fe({errors:{[i.route.id]:n},fetchers:a},{flushSync:(r&&r.flushSync)===!0})}function Ae(e){return F.set(e,(F.get(e)||0)+1),oe.has(e)&&oe.delete(e),w.fetchers.get(e)||ec}function je(e,t){Pe(e,t?.reason),Oe(e,bl(null))}function Me(e,t){let n=w.fetchers.get(t);P.has(t)&&!(n&&n.state===`loading`&&re.has(t))&&Pe(t),ae.delete(t),re.delete(t),ie.delete(t),oe.delete(t),ee.delete(t),e.delete(t)}function Ne(e){let t=(F.get(e)||0)-1;t<=0?(F.delete(e),oe.add(e)):F.set(e,t),fe({fetchers:new Map(w.fetchers)})}function Pe(e,t){let n=P.get(e);n&&(n.abort(t),P.delete(e))}function Fe(e,t){for(let n of e){let e=t.get(n);Mo(e,`Expected fetcher: ${n}`);let r=bl(e.data);t.set(n,r)}}function Ie(e){let t=[],n=!1;for(let r of ie){let i=e.get(r);Mo(i,`Expected fetcher: ${r}`),i.state===`loading`&&(ie.delete(r),t.push(r),n=!0)}return Fe(t,e),n}function Le(e,t){let n=[];for(let[r,i]of re)if(i<e){let e=t.get(r);Mo(e,`Expected fetcher: ${r}`),e.state===`loading`&&(Pe(r),re.delete(r),n.push(r))}return Fe(n,t),n.length>0}function Re(e,t){let n=w.blockers.get(e)||tc;return se.get(e)!==t&&se.set(e,t),n}function ze(e){w.blockers.delete(e),se.delete(e)}function Be(e,t){let n=w.blockers.get(e)||tc;Mo(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(w.blockers);r.set(e,t),fe({blockers:r})}function Ve({currentLocation:e,nextLocation:t,historyAction:n}){if(se.size===0)return;se.size>1&&No(!1,`A router only supports one blocker at a time`);let r=Array.from(se.entries()),[i,a]=r[r.length-1],o=w.blockers.get(i);if(!(o&&o.state===`proceeding`)&&a({currentLocation:e,nextLocation:t,historyAction:n}))return i}function He(e){let t=Zc(404,{pathname:e}),n=s.activeRoutes,{matches:r,route:i}=Xc(n);return{notFoundMatches:r,route:i,error:t}}function Ue(e,t,n){if(m=e,g=t,h=n||null,!_&&w.navigation===$s){_=!0;let e=Ke(w.location,w.matches);e!=null&&fe({restoreScrollPosition:e})}return()=>{m=null,g=null,h=null}}function We(e,t){return h&&h(e,t.map(e=>Qo(e,w.loaderData)))||e.key}function Ge(e,t){if(m&&g){let n=We(e,t);m[n]=g()}}function Ke(e,t){if(m){let n=We(e,t),r=m[n];if(typeof r==`number`)return r}return null}function qe(t,n,r){if(e.patchRoutesOnNavigation){let e=s.branches;if(!t)return{active:!0,matches:Zo(n,r,c,!0,e)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:Zo(n,r,c,!0,e)}}return{active:!1,matches:null}}async function Je(t,n,r,i){if(!e.patchRoutesOnNavigation)return{type:`success`,matches:t};let l=t;for(;;){let t=o;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:l,fetcherKey:i,patch:(e,n)=>{r.aborted||bc(e,n,s,t,a,!1)}})}catch(e){return{type:`error`,error:e,partialMatches:l}}if(r.aborted)return{type:`aborted`};let u=s.branches,d=Zo(s.activeRoutes,n,c,!1,u),f=null;if(d&&(Object.keys(d[0].params).length===0||(f=Zo(s.activeRoutes,n,c,!0,u),!(f&&l.length<f.length&&Ye(l,f.slice(0,l.length))))))return{type:`success`,matches:d};if(f||=Zo(s.activeRoutes,n,c,!0,u),!f||Ye(l,f))return{type:`success`,matches:null};l=f}}function Ye(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}function Xe(e){o={},s.setHmrRoutes(Jo(e,a,void 0,o))}function Ze(e,t,n=!1){bc(e,t,s,o,a,n),s.hasHMRRoutes||fe({})}return C={get basename(){return c},get future(){return u},get state(){return w},get routes(){return s.stableRoutes},get branches(){return s.branches},get manifest(){return o},get window(){return t},initialize:le,subscribe:de,enableScrollRestoration:Ue,navigate:me,fetch:xe,revalidate:he,createHref:t=>e.history.createHref(t),createURL:t=>e.history.createURL(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Ae,resetFetcher:je,deleteFetcher:Ne,dispose:ue,getBlocker:Re,deleteBlocker:ze,patchRoutes:Ze,_internalFetchControllers:P,_internalSetRoutes:Xe,_internalSetStateDoNotUseOrYouWillBreakYourApp(e){fe(e)}},e.instrumentations&&(C=Is(C,e.instrumentations.map(e=>e.router).filter(Boolean))),C}function dc(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function fc(e,t,n,r,i,a){let o,s;if(i){o=[];for(let e of t)if(o.push(e),e.route.id===i){s=e;break}}else o=t,s=t[t.length-1];let c=Ss(r||`.`,xs(o),gs(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=pl(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,`?index&`):`?index`;else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();c.search=n?`?${n}`:``}}return n!==`/`&&(c.pathname=xee({basename:n,pathname:c.pathname})),Lo(c)}function pc(e,t,n){if(!n||!dc(n))return{path:t};if(n.formMethod&&!dl(n.formMethod))return{path:t,error:Zc(405,{method:n.formMethod})};let r=()=>({path:t,error:Zc(400,{type:`invalid-body`})}),i=(n.formMethod||`get`).toUpperCase(),a=$c(t);if(n.body!==void 0){if(n.formEncType===`text/plain`){if(!fl(i))return r();let e=typeof n.body==`string`?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n}
161
161
  `,``):String(n.body);return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if(n.formEncType===`application/json`){if(!fl(i))return r();try{let e=typeof n.body==`string`?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch{return r()}}}Mo(typeof FormData==`function`,`FormData is not available in this environment`);let o,s;if(n.formData)o=Uc(n.formData),s=n.formData;else if(n.body instanceof FormData)o=Uc(n.body),s=n.body;else if(n.body instanceof URLSearchParams)o=n.body,s=Wc(o);else if(n.body==null)o=new URLSearchParams,s=new FormData;else try{o=new URLSearchParams(n.body),s=Wc(o)}catch{return r()}let c={formMethod:i,formAction:a,formEncType:n&&n.formEncType||`application/x-www-form-urlencoded`,formData:s,json:void 0,text:void 0};if(fl(c.formMethod))return{path:t,submission:c};let l=Ro(t);return e&&l.search&&pl(l.search)&&o.append(`index`,``),l.search=`?${o}`,{path:Lo(l),submission:c}}function mc(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x){let S=b?al(b[1])?b[1].error:b[1].data:void 0,C=i.createURL(a.location),w=i.createURL(c),T;if(u&&a.errors){let e=Object.keys(a.errors)[0];T=o.findIndex(t=>t.route.id===e)}else if(b&&al(b[1])){let e=b[0];T=o.findIndex(t=>t.route.id===e)-1}let E=b?b[1].statusCode:void 0,D=E&&E>=400,O={currentUrl:C,currentParams:a.matches[0]?.params||{},nextUrl:w,nextParams:o[0].params,...s,actionResult:S,actionStatus:E},k=js(o),A=o.map((i,o)=>{let{route:s}=i,f=null;if(T!=null&&o>T)f=!1;else if(s.lazy)f=!0;else if(!hc(s))f=!1;else if(u){let{shouldLoad:e}=gc(s,a.loaderData,a.errors);f=e}else _c(a.loaderData,a.matches[o],i)&&(f=!0);if(f!==null)return jc(n,r,e,c,k,i,l,t,f);let p=!1;typeof x==`boolean`?p=x:D?p=!1:d||C.pathname+C.search===w.pathname+w.search?p=!0:C.search===w.search?vc(a.matches[o],i)&&(p=!0):p=!0;let m={...O,defaultShouldRevalidate:p},h=yc(i,m);return jc(n,r,e,c,k,i,l,t,h,m,x)}),j=[];return m.forEach((e,s)=>{if(u||!o.some(t=>t.route.id===e.routeId)||p.has(s))return;let c=a.fetchers.get(s),m=c&&c.state!==`idle`&&c.data===void 0,b=Zo(g,e.path,_??`/`,!1,y);if(!b){if(v&&m)return;j.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null});return}if(h.has(s))return;let S=ml(b,e.path),C=new AbortController,w=Vc(i,e.path,C.signal),T=null;if(f.has(s))f.delete(s),T=Mc(n,r,w,e.path,b,S,l,t);else if(m)d&&(T=Mc(n,r,w,e.path,b,S,l,t));else{let i;i=typeof x==`boolean`?x:!D&&d;let a={...O,defaultShouldRevalidate:i};yc(S,a)&&(T=Mc(n,r,w,e.path,b,S,l,t,a))}T&&j.push({key:s,routeId:e.routeId,path:e.path,matches:T,match:S,request:w,controller:C})}),{dsMatches:A,revalidatingFetchers:j}}function hc(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function gc(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!hc(e))return{shouldLoad:!1,renderFallback:!1};let r=t!=null&&e.id in t,i=n!=null&&n[e.id]!==void 0;if(!r&&i)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader==`function`&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!i;return{shouldLoad:a,renderFallback:a}}function _c(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function vc(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function yc(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function bc(e,t,n,r,i,a){let o;if(e){let t=r[e];Mo(t,`No route found to patch children into: routeId = ${e}`),t.children||=[],o=t.children}else o=n.activeRoutes;let s=[],c=[];if(t.forEach(e=>{let t=o.find(t=>xc(e,t));t?c.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=Jo(s,i,[e||`_`,`patch`,String(o?.length||`0`)],r);o.push(...t)}if(a&&c.length>0)for(let e=0;e<c.length;e++){let{existingRoute:t,newRoute:n}=c[e],r=t,[a]=Jo([n],i,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}n.hasHMRRoutes||n.setRoutes([...n.activeRoutes])}function xc(e,t){return`id`in e&&`id`in t&&e.id===t.id?!0:e.index!==t.index||e.path!==t.path||e.caseSensitive!==t.caseSensitive?!1:(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((e,n)=>t.children?.some(t=>xc(e,t)))??!1}var Sc=new WeakMap,Cc=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(Mo(i,`No route found in manifest`),!i.lazy||typeof i.lazy!=`object`)return;let a=i.lazy[e];if(!a)return;let o=Sc.get(i);o||(o={},Sc.set(i,o));let s=o[e];if(s)return s;let c=(async()=>{let t=Wo(e),n=i[e]!==void 0&&e!==`hasErrorBoundary`;if(t)No(!t,`Route property `+e+` is not a supported lazy route property. This property will be ignored.`),o[e]=Promise.resolve();else if(n)No(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();t!=null&&(Object.assign(i,{[e]:t}),Object.assign(i,r(i)))}typeof i.lazy==`object`&&(i.lazy[e]=void 0,Object.values(i.lazy).every(e=>e===void 0)&&(i.lazy=void 0))})();return o[e]=c,c},Eee=new WeakMap;function wc(e,t,n,r,i){let a=n[e.id];if(Mo(a,`No route found in manifest`),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy==`function`){let t=Eee.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{Mo(typeof e.lazy==`function`,`No lazy route function found`);let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(r===void 0)continue;let i=Ko(e),o=a[e]!==void 0&&e!==`hasErrorBoundary`;i?No(!i,`Route property `+e+` is not a supported property to be returned from a lazy route function. This property will be ignored.`):o?No(!o,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return Eee.set(a,n),n.catch(()=>{}),{lazyRoutePromise:n,lazyHandlerPromise:n}}let o=Object.keys(e.lazy),s=[],c;for(let a of o){if(i&&i.includes(a))continue;let o=Cc({key:a,route:e,manifest:n,mapRouteProperties:r});o&&(s.push(o),a===t&&(c=o))}let l=s.length>0?Promise.all(s).then(()=>{}):void 0;return l?.catch(()=>{}),c?.catch(()=>{}),{lazyRoutePromise:l,lazyHandlerPromise:c}}async function Tc(e){let t=e.matches.filter(e=>e.shouldLoad),n={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,r)=>{n[t[r].route.id]=e}),n}async function Ec(e){return e.matches.some(e=>e.route.middleware)?Dc(e,()=>Tc(e)):Tc(e)}function Dc(e,t){return Oc(e,t,e=>{if(ul(e))throw e;return e},nl,n);function n(t,n,r){if(r)return Promise.resolve(Object.assign(r.value,{[n]:{type:`error`,result:t}}));{let{matches:r}=e,i=Yc(r,r[Math.min(Math.max(r.findIndex(e=>e.route.id===n),0),Math.max(r.findIndex(e=>e.shouldCallHandler()),0))].route.id).route.id;return Promise.resolve({[i]:{type:`error`,result:t}})}}}async function Oc(e,t,n,r,i){let{matches:a,...o}=e;return await kc(o,a.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]),t,n,r,i)}async function kc(e,t,n,r,i,a,o=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??Error(`Request aborted: ${s.method} ${s.url}`);let c=t[o];if(!c)return await n();let[l,u]=c,d,f=async()=>{if(d)throw Error("You may only call `next()` once per middleware");try{return d={value:await kc(e,t,n,r,i,a,o+1)},d.value}catch(e){return d={value:await a(e,l,d)},d.value}};try{let t=await u(e,f),n=t==null?void 0:r(t);return i(n)?n:d?n??d.value:(d={value:await f()},d.value)}catch(e){return await a(e,l,d)}}function Ac(e,t,n,r,i){let a=Cc({key:`middleware`,route:r.route,manifest:t,mapRouteProperties:e}),o=wc(r.route,fl(n.method)?`action`:`loader`,t,e,i);return{middleware:a,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function jc(e,t,n,r,i,a,o,s,c,l=null,u){let d=!1,f=Ac(e,t,n,a,o);return{...a,_lazyPromises:f,shouldLoad:c,shouldRevalidateArgs:l,shouldCallHandler(e){return d=!0,l?typeof u==`boolean`?yc(a,{...l,defaultShouldRevalidate:u}):typeof e==`boolean`?yc(a,{...l,defaultShouldRevalidate:e}):yc(a,l):c},resolve(e){let{lazy:t,loader:o,middleware:l}=a.route,u=d||c||e&&!fl(n.method)&&(t||o),p=l&&l.length>0&&!o&&!t;return u&&(fl(n.method)||!p)?Pc({request:n,path:r,pattern:i,match:a,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:e,scopedContext:s}):Promise.resolve({type:`data`,result:void 0})}}}function Mc(e,t,n,r,i,a,o,s,c=null){return i.map(l=>l.route.id===a.route.id?jc(e,t,n,r,js(i),l,o,s,!0,c):{...l,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:Ac(e,t,n,l,o),resolve:()=>Promise.resolve({type:`data`,result:void 0})})}async function Nc(e,t,n,r,i,a,o){r.some(e=>e._lazyPromises?.middleware)&&await Promise.all(r.map(e=>e._lazyPromises?.middleware));let s={request:t,url:Hc(t,n),pattern:js(r),params:r[0].params,context:a,matches:r},c=o?()=>{throw Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=s;return Dc(t,()=>e({...t,fetcherKey:i,runClientMiddleware:()=>{throw Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},l=await e({...s,fetcherKey:i,runClientMiddleware:c});try{await Promise.all(r.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch{}return l}async function Pc({request:e,path:t,pattern:n,match:r,lazyHandlerPromise:i,lazyRoutePromise:a,handlerOverride:o,scopedContext:s}){let c,l,u=fl(e.method),d=u?`action`:`loader`,f=i=>{let a,c=new Promise((e,t)=>a=t);l=()=>a(),e.signal.addEventListener(`abort`,l);let u=a=>typeof i==`function`?i({request:e,url:Hc(e,t),pattern:n,params:r.params,context:s},...a===void 0?[]:[a]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)),f=(async()=>{try{return{type:`data`,result:await(o?o(e=>u(e)):u())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([f,c])};try{let t=u?r.route.action:r.route.loader;if(i||a){if(t){let e,[n]=await Promise.all([f(t).catch(t=>{e=t}),i,a]);if(e!==void 0)throw e;c=n}else{await i;let t=u?r.route.action:r.route.loader;if(t)[c]=await Promise.all([f(t),a]);else if(d===`action`){let t=new URL(e.url),n=t.pathname+t.search;throw Zc(405,{method:e.method,pathname:n,routeId:r.route.id})}else return{type:`data`,result:void 0}}}else if(t)c=await f(t);else{let t=new URL(e.url);throw Zc(404,{pathname:t.pathname+t.search})}}catch(e){return{type:`error`,result:e}}finally{l&&e.signal.removeEventListener(`abort`,l)}return c}async function Fc(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function Ic(e){let{result:t,type:n}=e;if(cl(t)){let e;try{e=await Fc(t)}catch(e){return{type:`error`,error:e}}return n===`error`?{type:`error`,error:new ks(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:`data`,data:e,statusCode:t.status,headers:t.headers}}return n===`error`?sl(t)?t.data instanceof Error?{type:`error`,error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:tl(t),statusCode:As(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:t,statusCode:As(t)?t.status:void 0}:sl(t)?{type:`data`,data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`data`,data:t}}function Lc(e,t,n,r,i){let a=e.headers.get(`Location`);if(Mo(a,`Redirects returned/thrown from loaders/actions must have a Location header`),!_s(a)){let o=r.slice(0,r.findIndex(e=>e.route.id===n)+1);a=fc(new URL(t.url),o,i,a),e.headers.set(`Location`,a)}return e}var Rc=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function zc(e){try{return Rc.includes(new URL(e).protocol)}catch{return!1}}function Bc(e,t,n,r){if(_s(e)){let r=e,i=Oo.test(r)?new URL(R(r,t.protocol)):new URL(r);if(zc(i.toString()))throw Error(`Invalid redirect location`);let a=gs(i.pathname,n)!=null;if(i.origin===t.origin&&a)return Cs(i.pathname)+i.search+i.hash}try{if(zc(r.createURL(e).toString()))throw Error(`Invalid redirect location`)}catch{}return e}function Vc(e,t,n,r){let i=e.createURL($c(t)).toString(),a={signal:n};if(r&&fl(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),t===`application/json`?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):a.body=t===`text/plain`?r.text:t===`application/x-www-form-urlencoded`&&r.formData?Uc(r.formData):r.formData}return new Request(i,a)}function Hc(e,t){let n=new URL(e.url),r=typeof t==`string`?Ro(t):t;if(n.pathname=r.pathname||`/`,r.search){let e=new URLSearchParams(r.search),t=e.getAll(`index`);e.delete(`index`);for(let n of t.filter(Boolean))e.append(`index`,n);n.search=e.size?`?${e.toString()}`:``}else n.search=``;return n.hash=r.hash||``,n}function Uc(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function Wc(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Gc(e,t,n,r=!1,i=!1){let a={},o=null,s,c=!1,l={},u=n&&al(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(Mo(!ol(f),`Cannot handle redirect results in processLoaderData`),al(f)){let t=f.error;if(u!==void 0&&(t=u,u=void 0),o||={},i)o[d]=t;else{let n=Yc(e,d);o[n.route.id]??(o[n.route.id]=t)}r||(a[d]=ic),c||(c=!0,s=As(f.error)?f.error.status:500),f.headers&&(l[d]=f.headers)}else a[d]=f.data,f.statusCode&&f.statusCode!==200&&!c&&(s=f.statusCode),f.headers&&(l[d]=f.headers)}),u!==void 0&&n&&(o={[n[0]]:u},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:l}}function Kc(e,t,n,r,i,a,o){let{loaderData:s,errors:c}=Gc(t,n,r);return i.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:n,match:r,controller:i}=t;if(i&&i.signal.aborted)return;let s=a[n];if(Mo(s,`Did not find corresponding fetcher result`),al(s)){let t=Yc(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:s.error}),o.delete(n)}else if(ol(s))Mo(!1,`Unhandled fetcher revalidation redirect`);else{let e=bl(s.data);o.set(n,e)}}),{loaderData:s,errors:c}}function qc(e,t,n,r){let i=Object.entries(t).filter(([,e])=>e!==ic).reduce((e,[t,n])=>(e[t]=n,e),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(i[n]=e[n]),r&&r.hasOwnProperty(n))break}return i}function Jc(e){return e?al(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Yc(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.hasErrorBoundary===!0)||e[0]}function Xc(e){let t=e.length===1?e[0]:e.find(e=>e.index||!e.path||e.path===`/`)||{id:`__shim-error-route__`};return{matches:[{params:{},pathname:``,pathnameBase:``,route:t}],route:t}}function Zc(e,{pathname:t,routeId:n,method:r,type:i,message:a}={}){let o=`Unknown Server Error`,s=`Unknown @remix-run/router error`;return e===400?(o=`Bad Request`,r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i===`invalid-body`&&(s=`Unable to encode submission body`)):e===403?(o=`Forbidden`,s=`Route "${n}" does not match URL "${t}"`):e===404?(o=`Not Found`,s=`No route matches URL "${t}"`):e===405&&(o=`Method Not Allowed`,r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new ks(e||500,o,Error(s),!0)}function Qc(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(ol(r))return{key:n,result:r}}}function $c(e){return Lo({...typeof e==`string`?Ro(e):e,hash:``})}function el(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash||t.hash!==``}function tl(e){return new ks(e.init?.status??500,e.init?.statusText??`Internal Server Error`,e.data)}function nl(e){return typeof e==`object`&&!!e&&Object.entries(e).every(([e,t])=>typeof e==`string`&&rl(t))}function rl(e){return typeof e==`object`&&!!e&&`type`in e&&`result`in e&&(e.type===`data`||e.type===`error`)}function il(e){return cl(e.result)&&Qs.has(e.result.status)}function al(e){return e.type===`error`}function ol(e){return(e&&e.type)===`redirect`}function sl(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function cl(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function ll(e){return Qs.has(e)}function ul(e){return cl(e)&&ll(e.status)&&e.headers.has(`Location`)}function dl(e){return Zs.has(e.toUpperCase())}function fl(e){return Ys.has(e.toUpperCase())}function pl(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function ml(e,t){let n=typeof t==`string`?Ro(t).search:t.search;if(e[e.length-1].route.index&&pl(n||``))return e[e.length-1];let r=bs(e);return r[r.length-1]}function hl(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(t&&n&&r){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function gl(e,t,n,r){return r?{state:`loading`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{state:`loading`,location:e,matches:t,historyAction:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function _l(e,t,n,r){return{state:`submitting`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}function vl(e,t){return e?{state:`loading`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:`loading`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function yl(e,t){return{state:`submitting`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function bl(e){return{state:`idle`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function xl(e,t){try{let n=e.sessionStorage.getItem(rc);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch{}}function Dee(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(rc,JSON.stringify(n))}catch(e){No(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}function Sl(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var Cl=S.createContext(null);Cl.displayName=`DataRouter`;var wl=S.createContext(null);wl.displayName=`DataRouterState`;var Tl=S.createContext(!1);function El(){return S.useContext(Tl)}var Dl=S.createContext({isTransitioning:!1});Dl.displayName=`ViewTransition`;var Ol=S.createContext(new Map);Ol.displayName=`Fetchers`;var kl=S.createContext(null);kl.displayName=`Await`;var Al=S.createContext(null);Al.displayName=`Navigation`;var jl=S.createContext(null);jl.displayName=`Location`;var Ml=S.createContext({outlet:null,matches:[],isDataRoute:!1});Ml.displayName=`Route`;var Nl=S.createContext(null);Nl.displayName=`RouteError`;var Oee=`REACT_ROUTER_ERROR`,Pl=`REDIRECT`,Fl=`ROUTE_ERROR_RESPONSE`;function Il(e){if(e.startsWith(`${Oee}:${Pl}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function Ll(e){if(e.startsWith(`${Oee}:${Fl}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new ks(t.status,t.statusText,t.data)}catch{}}function Rl(e,{relative:t}={}){Mo(zl(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=S.useContext(Al),{hash:i,pathname:a,search:o}=Wl(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:ws([n,a])),r.createHref({pathname:s,search:o,hash:i})}function zl(){return S.useContext(jl)!=null}function Bl(){return Mo(zl(),`useLocation() may be used only in the context of a <Router> component.`),S.useContext(jl).location}var Vl=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function kee(e){S.useContext(Al).static||S.useLayoutEffect(e)}function Hl(){let{isDataRoute:e}=S.useContext(Ml);return e?Iee():Aee()}function Aee(){Mo(zl(),`useNavigate() may be used only in the context of a <Router> component.`);let e=S.useContext(Cl),{basename:t,navigator:n}=S.useContext(Al),{matches:r}=S.useContext(Ml),{pathname:i}=Bl(),a=JSON.stringify(xs(r)),o=S.useRef(!1);return kee(()=>{o.current=!0}),S.useCallback((r,s={})=>{if(No(o.current,Vl),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Ss(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:ws([t,c.pathname])),qs(typeof r==`string`?r:Lo(r),n.createHref(c),Ws(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}S.createContext(null);function Ul(){let{matches:e}=S.useContext(Ml);return e[e.length-1]?.params??{}}function Wl(e,{relative:t}={}){let{matches:n}=S.useContext(Ml),{pathname:r}=Bl(),i=JSON.stringify(xs(n));return S.useMemo(()=>Ss(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Gl(e,t,n){Mo(zl(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=S.useContext(Al),{matches:i}=S.useContext(Ml),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;ru(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
162
162
 
163
- Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=Bl(),d;if(t){let e=typeof t==`string`?Ro(t):t;Mo(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):Xo(e,{pathname:p});No(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),No(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=Zl(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:ws([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:ws([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?S.createElement(jl.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function Kl(){let e=Fee(),t=As(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=S.createElement(S.Fragment,null,S.createElement(`p`,null,`💿 Hey developer 👋`),S.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,S.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,S.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),S.createElement(S.Fragment,null,S.createElement(`h2`,null,`Unexpected Application Error!`),S.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?S.createElement(`pre`,{style:i},n):null,o)}var jee=S.createElement(Kl,null),ql=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=Ll(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:S.createElement(Ml.Provider,{value:this.props.routeContext},S.createElement(Nl.Provider,{value:e,children:this.props.component}));return this.context?S.createElement(Yl,{error:e},t):t}};ql.contextType=Tl;var Jl=new WeakMap;function Yl({children:e,error:t}){let{basename:n,navigator:r}=S.useContext(Al);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Il(t.digest);if(e){let i=Jl.get(t);if(i)throw i;let a=Ns(e.location,n),o=a.absoluteURL||a.to;if(qs(e.location,o,Ws(r),`allow-explicit`),zc(o))throw Error(`Invalid redirect location`);if(Ms&&!Jl.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw Jl.set(t,n),n}}return S.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function Xl({routeContext:e,match:t,children:n}){let r=S.useContext(Cl);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(Ml.Provider,{value:e},n)}function Zl(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);Mo(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:js(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||jee,o&&(s<0&&c===0?(ru(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?S.createElement(n.route.Component,null):n.route.element?n.route.element:e,S.createElement(Xl,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?S.createElement(ql,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Ql(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Mee(e){let t=S.useContext(Cl);return Mo(t,Ql(e)),t}function $l(e){let t=S.useContext(wl);return Mo(t,Ql(e)),t}function Nee(e){let t=S.useContext(Ml);return Mo(t,Ql(e)),t}function eu(e){let t=Nee(e),n=t.matches[t.matches.length-1];return Mo(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Pee(){return eu(`useRouteId`)}function tu(){let e=Mee(`useRevalidator`),t=$l(`useRevalidator`),n=S.useCallback(async()=>{await e.router.revalidate()},[e.router]);return S.useMemo(()=>({revalidate:n,state:t.revalidation}),[n,t.revalidation])}function nu(e){return $l(`useRouteLoaderData`).loaderData[e]}function Fee(){let e=S.useContext(Nl),t=$l(`useRouteError`),n=eu(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Iee(){let{router:e}=Mee(`useNavigate`),t=eu(`useNavigate`),n=S.useRef(!1);return kee(()=>{n.current=!0}),S.useCallback(async(r,i={})=>{No(n.current,Vl),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Lee={};function ru(e,t,n){!t&&!Lee[e]&&(Lee[e]=!0,No(!1,n))}var Ree={};function zee(e,t){!e&&!Ree[t]&&(Ree[t]=!0,console.warn(t))}var Bee=S.useOptimistic,Vee=()=>void 0;function Hee(e){return Bee?Bee(e):[e,Vee]}function Uee(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&No(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:S.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&No(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:S.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&No(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:S.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var Wee=[`HydrateFallback`,`hydrateFallbackElement`],Gee=class{constructor(){this.status=`pending`,this.promise=new Promise((e,t)=>{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}};function Kee({router:e,flushSync:t,onError:n,useTransitions:r}){r=El()||r;let[i,a]=S.useState(e.state),[o,s]=Hee(i),[c,l]=S.useState(),[u,d]=S.useState({isTransitioning:!1}),[f,p]=S.useState(),[m,h]=S.useState(),[g,_]=S.useState(),v=S.useRef(new Map),y=S.useCallback((i,{deletedFetchers:o,newErrors:c,flushSync:u,viewTransitionOpts:g})=>{c&&n&&Object.values(c).forEach(e=>n(e,{location:i.location,params:i.matches[0]?.params??{},pattern:js(i.matches)})),i.fetchers.forEach((e,t)=>{e.data!==void 0&&v.current.set(t,e.data)}),o.forEach(e=>v.current.delete(e)),zee(u===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let y=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition==`function`;if(zee(g==null||y,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!g||!y)t&&u?t(()=>a(i)):r===!1?a(i):S.startTransition(()=>{r===!0&&s(e=>qee(e,i)),a(i)});else if(t&&u){t(()=>{m&&(f?.resolve(),m.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:g.currentLocation,nextLocation:g.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>a(i))});n.finished.finally(()=>{t(()=>{p(void 0),h(void 0),l(void 0),d({isTransitioning:!1})})}),t(()=>h(n))}else m?(f?.resolve(),m.skipTransition(),_({state:i,currentLocation:g.currentLocation,nextLocation:g.nextLocation})):(l(i),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}))},[e.window,t,m,f,r,s,n]);S.useLayoutEffect(()=>e.subscribe(y),[e,y]),S.useEffect(()=>{u.isTransitioning&&!u.flushSync&&p(new Gee)},[u]),S.useEffect(()=>{if(f&&c&&e.window){let t=c,n=f.promise,i=e.window.document.startViewTransition(async()=>{r===!1?a(t):S.startTransition(()=>{r===!0&&s(e=>qee(e,t)),a(t)}),await n});i.finished.finally(()=>{p(void 0),h(void 0),l(void 0),d({isTransitioning:!1})}),h(i)}},[c,f,e.window,r,s]),S.useEffect(()=>{f&&c&&o.location.key===c.location.key&&f.resolve()},[f,m,o.location,c]),S.useEffect(()=>{!u.isTransitioning&&g&&(l(g.state),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),_(void 0))},[u.isTransitioning,g]);let b=S.useMemo(()=>({createHref:e.createHref,createURL:e.createURL,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})}),[e]),x=e.basename||`/`,C=S.useMemo(()=>({router:e,navigator:b,static:!1,basename:x,onError:n}),[e,b,x,n]);return S.createElement(S.Fragment,null,S.createElement(Cl.Provider,{value:C},S.createElement(wl.Provider,{value:o},S.createElement(Ol.Provider,{value:v.current},S.createElement(Dl.Provider,{value:u},S.createElement(Xee,{basename:x,location:o.location,navigationType:o.historyAction,navigator:b,useTransitions:r},S.createElement(Jee,{routes:e.routes,manifest:e.manifest,future:e.future,state:o,isStatic:!1,onError:n})))))),null)}function qee(e,t){return{...e,navigation:t.navigation.state===`idle`?e.navigation:t.navigation,revalidation:t.revalidation===`idle`?e.revalidation:t.revalidation,actionData:t.navigation.state===`submitting`?e.actionData:t.actionData,fetchers:t.fetchers}}var Jee=S.memo(Yee);function Yee({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Gl(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function Xee({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){Mo(!zl(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=S.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=Ro(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=S.useMemo(()=>{let e=gs(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return No(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:S.createElement(Al.Provider,{value:c},S.createElement(jl.Provider,{children:t,value:h}))}S.Component;var iu=`get`,au=`application/x-www-form-urlencoded`;function ou(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function su(e){return ou(e)&&e.tagName.toLowerCase()===`button`}function Zee(e){return ou(e)&&e.tagName.toLowerCase()===`form`}function Qee(e){return ou(e)&&e.tagName.toLowerCase()===`input`}function $ee(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ete(e,t){return e.button===0&&(!t||t===`_self`)&&!$ee(e)}function tte(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function nte(e,t){let n=tte(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var cu=null;function rte(){if(cu===null)try{new FormData(document.createElement(`form`),0),cu=!1}catch{cu=!0}return cu}var ite=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function ate(e){return e!=null&&!ite.has(e)?(No(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${au}"`),null):e}function ote(e,t){let n,r,i,a,o;if(Zee(e)){let o=e.getAttribute(`action`);r=o?gs(o,t):null,n=e.getAttribute(`method`)||iu,i=ate(e.getAttribute(`enctype`))||au,a=new FormData(e)}else if(su(e)||Qee(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?gs(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||iu,i=ate(e.getAttribute(`formenctype`))||ate(o.getAttribute(`enctype`))||au,a=new FormData(o,e),!rte()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(ou(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=iu,r=null,i=au,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function lu(e,t){if(e===!1||e==null)throw Error(t)}function ste(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&gs(i.pathname,t)===`/`?`${Ts(t)}/_root.${r}`:`${Ts(i.pathname)}.${r}`,i}async function cte(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function lte(e){return e!=null&&typeof e.page==`string`}function ute(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function dte(e,t,n){return mte((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await cte(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(ute).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function fte(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function uu(e,t,{includeHydrateFallback:n}={}){return pte(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function pte(e){return[...new Set(e)]}function du(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function mte(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!lte(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(du(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function hte(){let e=S.useContext(Cl);return lu(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function gte(){let e=S.useContext(wl);return lu(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var fu=S.createContext(void 0);fu.displayName=`FrameworkContext`;function pu(){let e=S.useContext(fu);return lu(e,`You must render this element inside a <HydratedRouter> element`),e}function mu(e,t){let n=S.useContext(fu),[r,i]=S.useState(!1),[a,o]=S.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=S.useRef(null);S.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),S.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:hu(s,p),onBlur:hu(c,m),onMouseEnter:hu(l,p),onMouseLeave:hu(u,m),onTouchStart:hu(d,p)}]:[a,f,{}]:[!1,f,{}]}function hu(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function _te({page:e,...t}){let n=El(),{nonce:r}=pu(),{router:i}=hte(),a=S.useMemo(()=>Xo(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?S.createElement(gu,{page:e,matches:a,...t}):S.createElement(yte,{page:e,matches:a,...t})):null}function vte(e){let{manifest:t,routeModules:n}=pu(),[r,i]=S.useState([]);return S.useEffect(()=>{let r=!1;return dte(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function gu({page:e,matches:t,...n}){let r=Bl(),{future:i}=pu(),{basename:a}=hte(),o=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=ste(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return S.createElement(S.Fragment,null,o.map(e=>S.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function yte({page:e,matches:t,...n}){let r=Bl(),{future:i,manifest:a,routeModules:o}=pu(),{basename:s}=hte(),{loaderData:c,matches:l}=gte(),u=S.useMemo(()=>fte(e,t,l,a,r,`data`),[e,t,l,a,r]),d=S.useMemo(()=>fte(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=ste(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=S.useMemo(()=>uu(d,a),[d,a]),m=vte(d);return S.createElement(S.Fragment,null,f.map(e=>S.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>S.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>S.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function bte(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}S.Component;var xte=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{xte&&(window.__reactRouterVersion=`7.18.3`)}catch{}function Ste(e,t){return uc({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:jo({window:t?.window}),hydrationData:t?.hydrationData||Cte(),routes:e,mapRouteProperties:Uee,hydrationRouteProperties:Wee,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function Cte(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:wte(e.errors)}),e}function wte(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new ks(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(typeof r.__subType==`string`&&Os.includes(r.__subType)){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=``,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=``,n[e]=t}}else n[e]=r;return n}var _u=S.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=S.useContext(Al),v=typeof l==`string`&&Do.test(l),y=Ns(l,h);l=y.to;let b=Rl(l,{relative:r}),x=Bl(),C=null;if(o){let e=Ss(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:ws([h,e.pathname])),C=g.createHref(e)}let[w,T,E]=mu(n,p),D=Ote(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function O(t){e&&e(t),t.defaultPrevented||D(t)}let k=!(y.isExternal||i),A=S.createElement(`a`,{...p,...E,href:(k?C:void 0)||y.absoluteURL||b,onClick:k?O:e,ref:bte(m,T),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return w&&!v?S.createElement(S.Fragment,null,A,S.createElement(_te,{page:b})):A});_u.displayName=`Link`;var Tte=S.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=Wl(a,{relative:c.relative}),d=Bl(),f=S.useContext(wl),{navigator:p,basename:m}=S.useContext(Al),h=f!=null&&Nte(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=gs(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),C={isActive:b,isPending:x,isTransitioning:h},w=b?e:void 0,T;T=typeof n==`function`?n(C):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return S.createElement(_u,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});Tte.displayName=`NavLink`;var Ete=S.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=iu,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=S.useContext(Al),g=Mte(),_=yu(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&Do.test(s);return S.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?S.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});Ete.displayName=`Form`;function Dte(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function vu(e){let t=S.useContext(Cl);return Mo(t,Dte(e)),t}function Ote(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=Hl(),d=Bl(),f=Wl(e,{relative:o});return S.useCallback(p=>{if(ete(p,t)){p.preventDefault();let t=n===void 0?Lo(d)===Lo(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?S.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function kte(e){No(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=S.useRef(tte(e)),n=S.useRef(!1),r=Bl(),i=S.useMemo(()=>nte(r.search,n.current?null:t.current),[r.search]),a=Hl();return[i,S.useCallback((e,t)=>{let r=tte(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var Ate=0,jte=()=>`__${String(++Ate)}__`;function Mte(){let{router:e}=vu(`useSubmit`),{basename:t}=S.useContext(Al),n=Pee(),r=e.fetch,i=e.navigate;return S.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=ote(e,t);if(a.navigate===!1){let e=a.fetcherKey||jte();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function yu(e,{relative:t}={}){let{basename:n}=S.useContext(Al),r=S.useContext(Ml);Mo(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Wl(e||`.`,{relative:t})},o=Bl();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:ws([n,a.pathname])),Lo(a)}function Nte(e,{relative:t}={}){let n=S.useContext(Dl);Mo(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=vu(`useViewTransitionState`),i=Wl(e,{relative:t});if(!n.isTransitioning)return!1;let a=gs(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=gs(n.nextLocation.pathname,r)||n.nextLocation.pathname;return fs(i.pathname,o)!=null||fs(i.pathname,a)!=null}var bu=s(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),xu=u(b(),1),Su=u(bu()),Pte=function(e,t){var n=(0,Su.default)({},e,t);for(var r in e){var i;e[r]&&typeof t[r]==`object`&&(0,Su.default)(n,(i={},i[r]=(0,Su.default)(e[r],t[r]),i))}return n},Cu=function(e){var t={};return Object.keys(e).sort(function(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:`base`})}).forEach(function(n){t[n]=e[n]}),t},wu={breakpoints:[40,52,64].map(function(e){return e+`em`})},Fte=function(e){return`@media screen and (min-width: `+e+`)`},Tu=function(e,t){return Eu(t,e,e)},Eu=function(e,t,n,r,i){for(t=t&&t.split?t.split(`.`):[t],r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e},Du=function e(t){var n={},r=function(e){var r={},i=!1,a=e.theme&&e.theme.disableStyledSystemCache;for(var o in e)if(t[o]){var s=t[o],c=e[o],l=Eu(e.theme,s.scale,s.defaults);if(typeof c==`object`){if(n.breakpoints=!a&&n.breakpoints||Eu(e.theme,`breakpoints`,wu.breakpoints),Array.isArray(c)){n.media=!a&&n.media||[null].concat(n.breakpoints.map(Fte)),r=Pte(r,Ite(n.media,s,l,c,e));continue}c!==null&&(r=Pte(r,Lte(n.breakpoints,s,l,c,e)),i=!0)}else(0,Su.default)(r,s(c,l,e))}return i&&(r=Cu(r)),r};r.config=t,r.propNames=Object.keys(t),r.cache=n;var i=Object.keys(t).filter(function(e){return e!==`config`});return i.length>1&&i.forEach(function(n){var i;r[n]=e((i={},i[n]=t[n],i))}),r},Ite=function(e,t,n,r,i){var a={};return r.slice(0,e.length).forEach(function(r,o){var s=e[o],c=t(r,n,i);if(!s)(0,Su.default)(a,c);else{var l;(0,Su.default)(a,(l={},l[s]=(0,Su.default)({},a[s],c),l))}}),a},Lte=function(e,t,n,r,i){var a={};for(var o in r){var s=e[o],c=r[o],l=t(c,n,i);if(!s)(0,Su.default)(a,l);else{var u,d=Fte(s);(0,Su.default)(a,(u={},u[d]=(0,Su.default)({},a[d],l),u))}}return a},Ou=function(e){var t=e.properties,n=e.property,r=e.scale,i=e.transform,a=i===void 0?Tu:i,o=e.defaultScale;t||=[n];var s=function(e,n,r){var i={},o=a(e,n,r);if(o!==null)return t.forEach(function(e){i[e]=o}),i};return s.scale=r,s.defaults=o,s},ku=function(e){e===void 0&&(e={});var t={};return Object.keys(e).forEach(function(n){var r=e[n];t[n]=r===!0?Ou({property:n,scale:n}):typeof r==`function`?r:Ou(r)}),Du(t)},Au=function(){for(var e={},t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){t&&t.config&&(0,Su.default)(e,t.config)}),Du(e)},ju=function(e){return typeof e==`number`&&!isNaN(e)},Mu=ku({width:{property:`width`,scale:`sizes`,transform:function(e,t){return Eu(t,e,!ju(e)||e>1?e:e*100+`%`)}},height:{property:`height`,scale:`sizes`},minWidth:{property:`minWidth`,scale:`sizes`},minHeight:{property:`minHeight`,scale:`sizes`},maxWidth:{property:`maxWidth`,scale:`sizes`},maxHeight:{property:`maxHeight`,scale:`sizes`},size:{properties:[`width`,`height`],scale:`sizes`},overflow:!0,overflowX:!0,overflowY:!0,display:!0,verticalAlign:!0}),Nu={color:{property:`color`,scale:`colors`},backgroundColor:{property:`backgroundColor`,scale:`colors`},opacity:!0};Nu.bg=Nu.backgroundColor;var Pu=ku(Nu),Fu=ku({fontFamily:{property:`fontFamily`,scale:`fonts`},fontSize:{property:`fontSize`,scale:`fontSizes`,defaultScale:{fontSizes:[12,14,16,20,24,32,48,64,72]}.fontSizes},fontWeight:{property:`fontWeight`,scale:`fontWeights`},lineHeight:{property:`lineHeight`,scale:`lineHeights`},letterSpacing:{property:`letterSpacing`,scale:`letterSpacings`},textAlign:!0,fontStyle:!0}),Iu=ku({alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,justifySelf:!0,alignSelf:!0,order:!0}),Lu={space:[0,4,8,16,32,64,128,256,512]},Ru=ku({gridGap:{property:`gridGap`,scale:`space`,defaultScale:Lu.space},gridColumnGap:{property:`gridColumnGap`,scale:`space`,defaultScale:Lu.space},gridRowGap:{property:`gridRowGap`,scale:`space`,defaultScale:Lu.space},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0}),zu={border:{property:`border`,scale:`borders`},borderWidth:{property:`borderWidth`,scale:`borderWidths`},borderStyle:{property:`borderStyle`,scale:`borderStyles`},borderColor:{property:`borderColor`,scale:`colors`},borderRadius:{property:`borderRadius`,scale:`radii`},borderTop:{property:`borderTop`,scale:`borders`},borderTopLeftRadius:{property:`borderTopLeftRadius`,scale:`radii`},borderTopRightRadius:{property:`borderTopRightRadius`,scale:`radii`},borderRight:{property:`borderRight`,scale:`borders`},borderBottom:{property:`borderBottom`,scale:`borders`},borderBottomLeftRadius:{property:`borderBottomLeftRadius`,scale:`radii`},borderBottomRightRadius:{property:`borderBottomRightRadius`,scale:`radii`},borderLeft:{property:`borderLeft`,scale:`borders`},borderX:{properties:[`borderLeft`,`borderRight`],scale:`borders`},borderY:{properties:[`borderTop`,`borderBottom`],scale:`borders`}};zu.borderTopWidth={property:`borderTopWidth`,scale:`borderWidths`},zu.borderTopColor={property:`borderTopColor`,scale:`colors`},zu.borderTopStyle={property:`borderTopStyle`,scale:`borderStyles`},zu.borderTopLeftRadius={property:`borderTopLeftRadius`,scale:`radii`},zu.borderTopRightRadius={property:`borderTopRightRadius`,scale:`radii`},zu.borderBottomWidth={property:`borderBottomWidth`,scale:`borderWidths`},zu.borderBottomColor={property:`borderBottomColor`,scale:`colors`},zu.borderBottomStyle={property:`borderBottomStyle`,scale:`borderStyles`},zu.borderBottomLeftRadius={property:`borderBottomLeftRadius`,scale:`radii`},zu.borderBottomRightRadius={property:`borderBottomRightRadius`,scale:`radii`},zu.borderLeftWidth={property:`borderLeftWidth`,scale:`borderWidths`},zu.borderLeftColor={property:`borderLeftColor`,scale:`colors`},zu.borderLeftStyle={property:`borderLeftStyle`,scale:`borderStyles`},zu.borderRightWidth={property:`borderRightWidth`,scale:`borderWidths`},zu.borderRightColor={property:`borderRightColor`,scale:`colors`},zu.borderRightStyle={property:`borderRightStyle`,scale:`borderStyles`};var Bu=ku(zu),Vu={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};Vu.bgImage=Vu.backgroundImage,Vu.bgSize=Vu.backgroundSize,Vu.bgPosition=Vu.backgroundPosition,Vu.bgRepeat=Vu.backgroundRepeat;var Hu=ku(Vu),Uu={space:[0,4,8,16,32,64,128,256,512]},Wu=ku({position:!0,zIndex:{property:`zIndex`,scale:`zIndices`},top:{property:`top`,scale:`space`,defaultScale:Uu.space},right:{property:`right`,scale:`space`,defaultScale:Uu.space},bottom:{property:`bottom`,scale:`space`,defaultScale:Uu.space},left:{property:`left`,scale:`space`,defaultScale:Uu.space}}),Gu={space:[0,4,8,16,32,64,128,256,512]},Ku=function(e){return typeof e==`number`&&!isNaN(e)},qu=function(e,t){if(!Ku(e))return Eu(t,e,e);var n=e<0,r=Math.abs(e),i=Eu(t,r,r);return Ku(i)?i*(n?-1:1):n?`-`+i:i},Ju={};Ju.margin={margin:{property:`margin`,scale:`space`,transform:qu,defaultScale:Gu.space},marginTop:{property:`marginTop`,scale:`space`,transform:qu,defaultScale:Gu.space},marginRight:{property:`marginRight`,scale:`space`,transform:qu,defaultScale:Gu.space},marginBottom:{property:`marginBottom`,scale:`space`,transform:qu,defaultScale:Gu.space},marginLeft:{property:`marginLeft`,scale:`space`,transform:qu,defaultScale:Gu.space},marginX:{properties:[`marginLeft`,`marginRight`],scale:`space`,transform:qu,defaultScale:Gu.space},marginY:{properties:[`marginTop`,`marginBottom`],scale:`space`,transform:qu,defaultScale:Gu.space}},Ju.margin.m=Ju.margin.margin,Ju.margin.mt=Ju.margin.marginTop,Ju.margin.mr=Ju.margin.marginRight,Ju.margin.mb=Ju.margin.marginBottom,Ju.margin.ml=Ju.margin.marginLeft,Ju.margin.mx=Ju.margin.marginX,Ju.margin.my=Ju.margin.marginY,Ju.padding={padding:{property:`padding`,scale:`space`,defaultScale:Gu.space},paddingTop:{property:`paddingTop`,scale:`space`,defaultScale:Gu.space},paddingRight:{property:`paddingRight`,scale:`space`,defaultScale:Gu.space},paddingBottom:{property:`paddingBottom`,scale:`space`,defaultScale:Gu.space},paddingLeft:{property:`paddingLeft`,scale:`space`,defaultScale:Gu.space},paddingX:{properties:[`paddingLeft`,`paddingRight`],scale:`space`,defaultScale:Gu.space},paddingY:{properties:[`paddingTop`,`paddingBottom`],scale:`space`,defaultScale:Gu.space}},Ju.padding.p=Ju.padding.padding,Ju.padding.pt=Ju.padding.paddingTop,Ju.padding.pr=Ju.padding.paddingRight,Ju.padding.pb=Ju.padding.paddingBottom,Ju.padding.pl=Ju.padding.paddingLeft,Ju.padding.px=Ju.padding.paddingX,Ju.padding.py=Ju.padding.paddingY;var Rte=Au(ku(Ju.margin),ku(Ju.padding)),Yu=ku({boxShadow:{property:`boxShadow`,scale:`shadows`},textShadow:{property:`textShadow`,scale:`shadows`}});function Xu(){return Xu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xu.apply(this,arguments)}var Zu=function(e,t,n,r,i){for(t=t&&t.split?t.split(`.`):[t],r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e},zte=[40,52,64].map(function(e){return e+`em`}),Bte={space:[0,4,8,16,32,64,128,256,512],fontSizes:[12,14,16,20,24,32,48,64,72]},Vte={bg:`backgroundColor`,m:`margin`,mt:`marginTop`,mr:`marginRight`,mb:`marginBottom`,ml:`marginLeft`,mx:`marginX`,my:`marginY`,p:`padding`,pt:`paddingTop`,pr:`paddingRight`,pb:`paddingBottom`,pl:`paddingLeft`,px:`paddingX`,py:`paddingY`},Hte={marginX:[`marginLeft`,`marginRight`],marginY:[`marginTop`,`marginBottom`],paddingX:[`paddingLeft`,`paddingRight`],paddingY:[`paddingTop`,`paddingBottom`],size:[`width`,`height`]},Ute={color:`colors`,backgroundColor:`colors`,borderColor:`colors`,margin:`space`,marginTop:`space`,marginRight:`space`,marginBottom:`space`,marginLeft:`space`,marginX:`space`,marginY:`space`,padding:`space`,paddingTop:`space`,paddingRight:`space`,paddingBottom:`space`,paddingLeft:`space`,paddingX:`space`,paddingY:`space`,top:`space`,right:`space`,bottom:`space`,left:`space`,gridGap:`space`,gridColumnGap:`space`,gridRowGap:`space`,gap:`space`,columnGap:`space`,rowGap:`space`,fontFamily:`fonts`,fontSize:`fontSizes`,fontWeight:`fontWeights`,lineHeight:`lineHeights`,letterSpacing:`letterSpacings`,border:`borders`,borderTop:`borders`,borderRight:`borders`,borderBottom:`borders`,borderLeft:`borders`,borderWidth:`borderWidths`,borderStyle:`borderStyles`,borderRadius:`radii`,borderTopRightRadius:`radii`,borderTopLeftRadius:`radii`,borderBottomRightRadius:`radii`,borderBottomLeftRadius:`radii`,borderTopWidth:`borderWidths`,borderTopColor:`colors`,borderTopStyle:`borderStyles`,borderBottomWidth:`borderWidths`,borderBottomColor:`colors`,borderBottomStyle:`borderStyles`,borderLeftWidth:`borderWidths`,borderLeftColor:`colors`,borderLeftStyle:`borderStyles`,borderRightWidth:`borderWidths`,borderRightColor:`colors`,borderRightStyle:`borderStyles`,outlineColor:`colors`,boxShadow:`shadows`,textShadow:`shadows`,zIndex:`zIndices`,width:`sizes`,minWidth:`sizes`,maxWidth:`sizes`,height:`sizes`,minHeight:`sizes`,maxHeight:`sizes`,flexBasis:`sizes`,size:`sizes`,fill:`colors`,stroke:`colors`},Wte=function(e,t){if(typeof t!=`number`||t>=0)return Zu(e,t,t);var n=Math.abs(t),r=Zu(e,n,n);return typeof r==`string`?`-`+r:r*-1},Gte=[`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginX`,`marginY`,`top`,`bottom`,`left`,`right`].reduce(function(e,t){var n;return Xu({},e,(n={},n[t]=Wte,n))},{}),Kte=function(e){return function(t){var n={},r=Zu(t,`breakpoints`,zte),i=[null].concat(r.map(function(e){return`@media screen and (min-width: `+e+`)`}));for(var a in e){var o=typeof e[a]==`function`?e[a](t):e[a];if(o!=null){if(!Array.isArray(o))n[a]=o;else for(var s=0;s<o.slice(0,i.length).length;s++){var c=i[s];c?(n[c]=n[c]||{},o[s]!=null&&(n[c][a]=o[s])):n[a]=o[s]}}}return n}},Qu=function e(t){return function(n){n===void 0&&(n={});var r=Xu({},Bte,{},n.theme||n),i={},a=Kte(typeof t==`function`?t(r):t)(r);for(var o in a){var s=a[o],c=typeof s==`function`?s(r):s;if(o===`variant`){var l=e(Zu(r,c))(r);i=Xu({},i,{},l)}else if(c&&typeof c==`object`)i[o]=e(c)(r);else{var u=Zu(Vte,o,o),d=Zu(r,Zu(Ute,u),Zu(r,u,{})),f=Zu(Gte,u,Zu)(d,c,c);if(Hte[u])for(var p=Hte[u],m=0;m<p.length;m++)i[p[m]]=f;else i[u]=f}}return i}},$u=function(e){var t,n=e.scale,r=e.prop,i=r===void 0?`variant`:r,a=e.variants,o=a===void 0?{}:a,s=e.key,c=Object.keys(o).length?function(e,t,n){return Qu(Eu(t,e,null))(n.theme)}:function(e,t){return Eu(t,e,null)};return c.scale=n||s,c.defaults=o,Du((t={},t[i]=c,t))};$u({key:`buttons`}),$u({key:`textStyles`,prop:`textStyle`}),$u({key:`colorStyles`,prop:`colors`});var ed=Mu.width,td=Mu.height,qte=Mu.minWidth,nd=Mu.minHeight,rd=Mu.maxWidth,Jte=Mu.maxHeight,id=Mu.size,Yte=Mu.verticalAlign,Xte=Mu.display,ad=Mu.overflow;Mu.overflowX,Mu.overflowY;var Zte=Pu.opacity,Qte=Fu.fontSize,od=Fu.fontFamily,sd=Fu.fontWeight,cd=Fu.lineHeight,ld=Fu.textAlign,ud=Fu.fontStyle,dd=Fu.letterSpacing,$te=Iu.alignItems,fd=Iu.alignContent;Iu.justifyItems;var pd=Iu.justifyContent,ene=Iu.flexWrap,tne=Iu.flexDirection,md=Iu.flex,nne=Iu.flexGrow;Iu.flexShrink;var rne=Iu.flexBasis,ine=Iu.justifySelf,ane=Iu.alignSelf,one=Iu.order,sne=Ru.gridGap,hd=Ru.gridColumnGap,cne=Ru.gridRowGap,lne=Ru.gridColumn,gd=Ru.gridRow,une=Ru.gridAutoFlow,_d=Ru.gridAutoColumns,vd=Ru.gridAutoRows,dne=Ru.gridTemplateColumns,fne=Ru.gridTemplateRows,pne=Ru.gridTemplateAreas,mne=Ru.gridArea,yd=Bu.borderWidth,hne=Bu.borderStyle,gne=Bu.borderColor,_ne=Bu.borderTop,vne=Bu.borderRight,yne=Bu.borderBottom,bne=Bu.borderLeft,xne=Bu.borderRadius,bd=Hu.backgroundImage,Sne=Hu.backgroundSize,Cne=Hu.backgroundPosition,wne=Hu.backgroundRepeat,Tne=Wu.zIndex,Ene=Wu.top,Dne=Wu.right,One=Wu.bottom,kne=Wu.left,xd=function(e){var t=e.prop,n=e.cssProperty,r=e.alias,i=e.key,a=e.transformValue,o=e.scale,s=e.properties,c={};return c[t]=Ou({properties:s,property:n||t,scale:i,defaultScale:o,transform:a}),r&&(c[r]=c[t]),Du(c)},Sd=xd({prop:`textDecoration`,cssProperty:`text-decoration`}),Cd=xd({prop:`textTransform`,cssProperty:`text-transform`}),Ane=xd({prop:`cursor`,cssProperty:`cursor`}),jne=xd({prop:`objectFit`,cssProperty:`object-fit`}),wd=Au(Au(Pu,Qte,Rte,ed),Au(od,ud,sd,dd,cd,ld,Sd,Cd),Au(Xte,td,Jte,rd,nd,qte,id,$u),Au(fd,$te,ane,md,rne,tne,nne,ene,pd,ine,one),Au(mne,_d,une,vd,lne,hd,sne,gd,cne,pne,dne,fne),Au(Bu,yne,gne,bne,xne,vne,hne,_ne,yd),Au(One,kne,Wu,Dne,Ene,Tne),Au(Hu,bd,Cne,wne,Sne,Yu,Ane,Zte,ad,jne)),Td={...Pu.propTypes,...Qte.propTypes,...Rte.propTypes,...ed.propTypes,...od.propTypes,...ud.propTypes,...sd.propTypes,...dd.propTypes,...cd.propTypes,...ld.propTypes,...Sd.propTypes,...Cd.propTypes,...Xte.propTypes,...td.propTypes,...Jte.propTypes,...rd.propTypes,...nd.propTypes,...qte.propTypes,...id.propTypes,...Yte.propTypes,...fd.propTypes,...$te.propTypes,...ane.propTypes,...md.propTypes,...rne.propTypes,...tne.propTypes,...nne.propTypes,...ene.propTypes,...pd.propTypes,...ine.propTypes,...one.propTypes,...mne.propTypes,..._d.propTypes,...une.propTypes,...vd.propTypes,...lne.propTypes,...hd.propTypes,...sne.propTypes,...gd.propTypes,...cne.propTypes,...pne.propTypes,...dne.propTypes,...fne.propTypes,...Bu.propTypes,...yne.propTypes,...gne.propTypes,...bne.propTypes,...xne.propTypes,...vne.propTypes,...hne.propTypes,..._ne.propTypes,...yd.propTypes,...One.propTypes,...kne.propTypes,...Wu.propTypes,...Dne.propTypes,...Ene.propTypes,...Tne.propTypes,...Hu.propTypes,...bd.propTypes,...Cne.propTypes,...wne.propTypes,...Sne.propTypes,...Yu.propTypes,...Zte.propTypes,...ad.propTypes};function Ed(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);kd(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Dd(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function B(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function V(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function Od(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var kd,H,U=o((()=>{kd=function(e,t){return kd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},kd(e,t)},H=function(){return H=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},H.apply(this,arguments)}}));function Ad(e,t){if(!e)throw new Fne(t)}function jd(e){return function(){if(Nd.indexOf(e)>=Pd)return(console[e]||console.log).apply(console,arguments)}}function Mne(e){var t=Nd[Pd];return Pd=Math.max(0,Nd.indexOf(e)),t}var Md,Nne,Pne,Fne,Nd,Pd,Ine=o((()=>{U(),Md=`Invariant Violation`,Nne=Object.setPrototypeOf,Pne=Nne===void 0?function(e,t){return e.__proto__=t,e}:Nne,Fne=function(e){Ed(t,e);function t(n){n===void 0&&(n=Md);var r=e.call(this,typeof n==`number`?Md+`: `+n+` (see https://github.com/apollographql/invariant-packages)`:n)||this;return r.framesToPop=1,r.name=Md,Pne(r,t.prototype),r}return t}(Error),Nd=[`debug`,`log`,`warn`,`error`,`silent`],Pd=Nd.indexOf(`log`),(function(e){e.debug=jd(`debug`),e.log=jd(`log`),e.warn=jd(`warn`),e.error=jd(`error`)})(Ad||={})})),Fd,Lne=o((()=>{Fd=`3.14.0`}));function Id(e){try{return e()}catch{}}var Rne=o((()=>{})),Ld,zne=o((()=>{Rne(),Ld=Id(function(){return globalThis})||Id(function(){return window})||Id(function(){return self})||Id(function(){return global})||Id(function(){return Id.constructor(`return this`)()})}));function Rd(e){var t=zd.get(e)||1;return zd.set(e,t+1),`${e}:${t}:${Math.random().toString(36).slice(2)}`}var zd,Bd=o((()=>{zd=new Map}));function Vd(e,t){t===void 0&&(t=0);var n=Rd(`stringifyForDisplay`);return JSON.stringify(e,function(e,t){return t===void 0?n:t},t).split(JSON.stringify(n)).join(`<undefined>`)}var Hd=o((()=>{Bd()}));function Ud(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(typeof t==`number`){var i=t;t=Gd(i),t||(t=Kd(i,n),n=[])}e.apply(void 0,[t].concat(n))}}function Wd(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Fne(Gd(e,t)||Kd(e,t))}function Bne(e){if(typeof e==`string`)return e;try{return Vd(e,2).slice(0,1e3)}catch{return`<non-serializable>`}}function Gd(e,t){if(t===void 0&&(t=[]),e)return Ld[qd]&&Ld[qd](e,t.map(Bne))}function Kd(e,t){if(t===void 0&&(t=[]),e)return`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:Fd,message:e,args:t.map(Bne)}))}`}var W,qd,Jd=o((()=>{Ine(),Lne(),zne(),Hd(),W=Object.assign(function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e||Ad(e,Gd(t,n)||Kd(t,n))},{debug:Ud(Ad.debug),log:Ud(Ad.log),warn:Ud(Ad.warn),error:Ud(Ad.error)}),qd=Symbol.for(`ApolloErrorMessageHandler_`+Fd)})),Yd=o((()=>{Jd(),Rne(),zne(),globalThis.__DEV__}));function Xd(e,t){if(!e)throw Error(t)}var Zd=o((()=>{}));function Vne(e){return typeof e==`object`&&!!e}var Hne=o((()=>{}));function Une(e,t){if(!e)throw Error(t??`Unexpected invariant triggered.`)}var Wne=o((()=>{}));function Qd(e,t){let n=0,r=1;for(let i of e.body.matchAll($d)){if(typeof i.index==`number`||Une(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}var $d,ef=o((()=>{Wne(),$d=/\r\n|[\n\r]/g}));function Gne(e){return tf(e.source,Qd(e.source,e.start))}function tf(e,t){let n=e.locationOffset.column-1,r=``.padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,s=t.line===1?n:0,c=t.column+s,l=`${e.name}:${o}:${c}\n`,u=r.split(/\r\n|[\n\r]/g),d=u[i];if(d.length>120){let e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e<d.length;e+=80)n.push(d.slice(e,e+80));return l+nf([[`${o} |`,n[0]],...n.slice(1,e+1).map(e=>[`|`,e]),[`|`,`^`.padStart(t)],[`|`,n[e+1]]])}return l+nf([[`${o-1} |`,u[i-1]],[`${o} |`,d],[`|`,`^`.padStart(c)],[`${o+1} |`,u[i+1]]])}function nf(e){let t=e.filter(([e,t])=>t!==void 0),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?` `+t:``)).join(`
163
+ Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=Bl(),d;if(t){let e=typeof t==`string`?Ro(t):t;Mo(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):Xo(e,{pathname:p});No(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),No(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=Zl(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:ws([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:ws([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?S.createElement(jl.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function Kl(){let e=Fee(),t=As(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=S.createElement(S.Fragment,null,S.createElement(`p`,null,`💿 Hey developer 👋`),S.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,S.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,S.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),S.createElement(S.Fragment,null,S.createElement(`h2`,null,`Unexpected Application Error!`),S.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?S.createElement(`pre`,{style:i},n):null,o)}var jee=S.createElement(Kl,null),ql=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=Ll(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:S.createElement(Ml.Provider,{value:this.props.routeContext},S.createElement(Nl.Provider,{value:e,children:this.props.component}));return this.context?S.createElement(Yl,{error:e},t):t}};ql.contextType=Tl;var Jl=new WeakMap;function Yl({children:e,error:t}){let{basename:n,navigator:r}=S.useContext(Al);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Il(t.digest);if(e){let i=Jl.get(t);if(i)throw i;let a=Ns(e.location,n),o=a.absoluteURL||a.to;if(qs(e.location,o,Ws(r),`allow-explicit`),zc(o))throw Error(`Invalid redirect location`);if(Ms&&!Jl.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw Jl.set(t,n),n}}return S.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function Xl({routeContext:e,match:t,children:n}){let r=S.useContext(Cl);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(Ml.Provider,{value:e},n)}function Zl(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);Mo(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:js(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||jee,o&&(s<0&&c===0?(ru(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?S.createElement(n.route.Component,null):n.route.element?n.route.element:e,S.createElement(Xl,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?S.createElement(ql,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Ql(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Mee(e){let t=S.useContext(Cl);return Mo(t,Ql(e)),t}function $l(e){let t=S.useContext(wl);return Mo(t,Ql(e)),t}function Nee(e){let t=S.useContext(Ml);return Mo(t,Ql(e)),t}function eu(e){let t=Nee(e),n=t.matches[t.matches.length-1];return Mo(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Pee(){return eu(`useRouteId`)}function tu(){let e=Mee(`useRevalidator`),t=$l(`useRevalidator`),n=S.useCallback(async()=>{await e.router.revalidate()},[e.router]);return S.useMemo(()=>({revalidate:n,state:t.revalidation}),[n,t.revalidation])}function nu(e){return $l(`useRouteLoaderData`).loaderData[e]}function Fee(){let e=S.useContext(Nl),t=$l(`useRouteError`),n=eu(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Iee(){let{router:e}=Mee(`useNavigate`),t=eu(`useNavigate`),n=S.useRef(!1);return kee(()=>{n.current=!0}),S.useCallback(async(r,i={})=>{No(n.current,Vl),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Lee={};function ru(e,t,n){!t&&!Lee[e]&&(Lee[e]=!0,No(!1,n))}var Ree={};function zee(e,t){!e&&!Ree[t]&&(Ree[t]=!0,console.warn(t))}var Bee=S.useOptimistic,Vee=()=>void 0;function Hee(e){return Bee?Bee(e):[e,Vee]}function Uee(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&No(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:S.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&No(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:S.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&No(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:S.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var Wee=[`HydrateFallback`,`hydrateFallbackElement`],Gee=class{constructor(){this.status=`pending`,this.promise=new Promise((e,t)=>{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}};function Kee({router:e,flushSync:t,onError:n,useTransitions:r}){r=El()||r;let[i,a]=S.useState(e.state),[o,s]=Hee(i),[c,l]=S.useState(),[u,d]=S.useState({isTransitioning:!1}),[f,p]=S.useState(),[m,h]=S.useState(),[g,_]=S.useState(),v=S.useRef(new Map),y=S.useCallback((i,{deletedFetchers:o,newErrors:c,flushSync:u,viewTransitionOpts:g})=>{c&&n&&Object.values(c).forEach(e=>n(e,{location:i.location,params:i.matches[0]?.params??{},pattern:js(i.matches)})),i.fetchers.forEach((e,t)=>{e.data!==void 0&&v.current.set(t,e.data)}),o.forEach(e=>v.current.delete(e)),zee(u===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let y=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition==`function`;if(zee(g==null||y,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!g||!y)t&&u?t(()=>a(i)):r===!1?a(i):S.startTransition(()=>{r===!0&&s(e=>qee(e,i)),a(i)});else if(t&&u){t(()=>{m&&(f?.resolve(),m.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:g.currentLocation,nextLocation:g.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>a(i))});n.finished.finally(()=>{t(()=>{p(void 0),h(void 0),l(void 0),d({isTransitioning:!1})})}),t(()=>h(n))}else m?(f?.resolve(),m.skipTransition(),_({state:i,currentLocation:g.currentLocation,nextLocation:g.nextLocation})):(l(i),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}))},[e.window,t,m,f,r,s,n]);S.useLayoutEffect(()=>e.subscribe(y),[e,y]),S.useEffect(()=>{u.isTransitioning&&!u.flushSync&&p(new Gee)},[u]),S.useEffect(()=>{if(f&&c&&e.window){let t=c,n=f.promise,i=e.window.document.startViewTransition(async()=>{r===!1?a(t):S.startTransition(()=>{r===!0&&s(e=>qee(e,t)),a(t)}),await n});i.finished.finally(()=>{p(void 0),h(void 0),l(void 0),d({isTransitioning:!1})}),h(i)}},[c,f,e.window,r,s]),S.useEffect(()=>{f&&c&&o.location.key===c.location.key&&f.resolve()},[f,m,o.location,c]),S.useEffect(()=>{!u.isTransitioning&&g&&(l(g.state),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),_(void 0))},[u.isTransitioning,g]);let b=S.useMemo(()=>({createHref:e.createHref,createURL:e.createURL,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})}),[e]),x=e.basename||`/`,C=S.useMemo(()=>({router:e,navigator:b,static:!1,basename:x,onError:n}),[e,b,x,n]);return S.createElement(S.Fragment,null,S.createElement(Cl.Provider,{value:C},S.createElement(wl.Provider,{value:o},S.createElement(Ol.Provider,{value:v.current},S.createElement(Dl.Provider,{value:u},S.createElement(Xee,{basename:x,location:o.location,navigationType:o.historyAction,navigator:b,useTransitions:r},S.createElement(Jee,{routes:e.routes,manifest:e.manifest,future:e.future,state:o,isStatic:!1,onError:n})))))),null)}function qee(e,t){return{...e,navigation:t.navigation.state===`idle`?e.navigation:t.navigation,revalidation:t.revalidation===`idle`?e.revalidation:t.revalidation,actionData:t.navigation.state===`submitting`?e.actionData:t.actionData,fetchers:t.fetchers}}var Jee=S.memo(Yee);function Yee({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Gl(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function Xee({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){Mo(!zl(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=S.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=Ro(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=S.useMemo(()=>{let e=gs(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return No(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:S.createElement(Al.Provider,{value:c},S.createElement(jl.Provider,{children:t,value:h}))}S.Component;var iu=`get`,au=`application/x-www-form-urlencoded`;function ou(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function su(e){return ou(e)&&e.tagName.toLowerCase()===`button`}function Zee(e){return ou(e)&&e.tagName.toLowerCase()===`form`}function Qee(e){return ou(e)&&e.tagName.toLowerCase()===`input`}function $ee(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ete(e,t){return e.button===0&&(!t||t===`_self`)&&!$ee(e)}function tte(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function nte(e,t){let n=tte(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var cu=null;function rte(){if(cu===null)try{new FormData(document.createElement(`form`),0),cu=!1}catch{cu=!0}return cu}var ite=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function ate(e){return e!=null&&!ite.has(e)?(No(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${au}"`),null):e}function ote(e,t){let n,r,i,a,o;if(Zee(e)){let o=e.getAttribute(`action`);r=o?gs(o,t):null,n=e.getAttribute(`method`)||iu,i=ate(e.getAttribute(`enctype`))||au,a=new FormData(e)}else if(su(e)||Qee(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?gs(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||iu,i=ate(e.getAttribute(`formenctype`))||ate(o.getAttribute(`enctype`))||au,a=new FormData(o,e),!rte()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(ou(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=iu,r=null,i=au,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function lu(e,t){if(e===!1||e==null)throw Error(t)}function ste(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&gs(i.pathname,t)===`/`?`${Ts(t)}/_root.${r}`:`${Ts(i.pathname)}.${r}`,i}async function cte(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function lte(e){return e!=null&&typeof e.page==`string`}function ute(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function dte(e,t,n){return mte((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await cte(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(ute).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function fte(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function uu(e,t,{includeHydrateFallback:n}={}){return pte(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function pte(e){return[...new Set(e)]}function du(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function mte(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!lte(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(du(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function hte(){let e=S.useContext(Cl);return lu(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function gte(){let e=S.useContext(wl);return lu(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var fu=S.createContext(void 0);fu.displayName=`FrameworkContext`;function pu(){let e=S.useContext(fu);return lu(e,`You must render this element inside a <HydratedRouter> element`),e}function mu(e,t){let n=S.useContext(fu),[r,i]=S.useState(!1),[a,o]=S.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=S.useRef(null);S.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),S.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:hu(s,p),onBlur:hu(c,m),onMouseEnter:hu(l,p),onMouseLeave:hu(u,m),onTouchStart:hu(d,p)}]:[a,f,{}]:[!1,f,{}]}function hu(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function _te({page:e,...t}){let n=El(),{nonce:r}=pu(),{router:i}=hte(),a=S.useMemo(()=>Xo(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?S.createElement(gu,{page:e,matches:a,...t}):S.createElement(yte,{page:e,matches:a,...t})):null}function vte(e){let{manifest:t,routeModules:n}=pu(),[r,i]=S.useState([]);return S.useEffect(()=>{let r=!1;return dte(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function gu({page:e,matches:t,...n}){let r=Bl(),{future:i}=pu(),{basename:a}=hte(),o=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=ste(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return S.createElement(S.Fragment,null,o.map(e=>S.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function yte({page:e,matches:t,...n}){let r=Bl(),{future:i,manifest:a,routeModules:o}=pu(),{basename:s}=hte(),{loaderData:c,matches:l}=gte(),u=S.useMemo(()=>fte(e,t,l,a,r,`data`),[e,t,l,a,r]),d=S.useMemo(()=>fte(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=ste(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=S.useMemo(()=>uu(d,a),[d,a]),m=vte(d);return S.createElement(S.Fragment,null,f.map(e=>S.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>S.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>S.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function bte(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}S.Component;var xte=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{xte&&(window.__reactRouterVersion=`7.18.5`)}catch{}function Ste(e,t){return uc({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:jo({window:t?.window}),hydrationData:t?.hydrationData||Cte(),routes:e,mapRouteProperties:Uee,hydrationRouteProperties:Wee,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function Cte(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:wte(e.errors)}),e}function wte(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new ks(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(typeof r.__subType==`string`&&Os.includes(r.__subType)){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=``,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=``,n[e]=t}}else n[e]=r;return n}var _u=S.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=S.useContext(Al),v=typeof l==`string`&&Do.test(l),y=Ns(l,h);l=y.to;let b=Rl(l,{relative:r}),x=Bl(),C=null;if(o){let e=Ss(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:ws([h,e.pathname])),C=g.createHref(e)}let[w,T,E]=mu(n,p),D=Ote(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function O(t){e&&e(t),t.defaultPrevented||D(t)}let k=!(y.isExternal||i),A=S.createElement(`a`,{...p,...E,href:(k?C:void 0)||y.absoluteURL||b,onClick:k?O:e,ref:bte(m,T),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return w&&!v?S.createElement(S.Fragment,null,A,S.createElement(_te,{page:b})):A});_u.displayName=`Link`;var Tte=S.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=Wl(a,{relative:c.relative}),d=Bl(),f=S.useContext(wl),{navigator:p,basename:m}=S.useContext(Al),h=f!=null&&Nte(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=gs(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),C={isActive:b,isPending:x,isTransitioning:h},w=b?e:void 0,T;T=typeof n==`function`?n(C):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return S.createElement(_u,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});Tte.displayName=`NavLink`;var Ete=S.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=iu,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=S.useContext(Al),g=Mte(),_=yu(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&Do.test(s);return S.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?S.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});Ete.displayName=`Form`;function Dte(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function vu(e){let t=S.useContext(Cl);return Mo(t,Dte(e)),t}function Ote(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=Hl(),d=Bl(),f=Wl(e,{relative:o});return S.useCallback(p=>{if(ete(p,t)){p.preventDefault();let t=n===void 0?Lo(d)===Lo(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?S.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function kte(e){No(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=S.useRef(tte(e)),n=S.useRef(!1),r=Bl(),i=S.useMemo(()=>nte(r.search,n.current?null:t.current),[r.search]),a=Hl();return[i,S.useCallback((e,t)=>{let r=tte(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var Ate=0,jte=()=>`__${String(++Ate)}__`;function Mte(){let{router:e}=vu(`useSubmit`),{basename:t}=S.useContext(Al),n=Pee(),r=e.fetch,i=e.navigate;return S.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=ote(e,t);if(a.navigate===!1){let e=a.fetcherKey||jte();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function yu(e,{relative:t}={}){let{basename:n}=S.useContext(Al),r=S.useContext(Ml);Mo(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Wl(e||`.`,{relative:t})},o=Bl();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:ws([n,a.pathname])),Lo(a)}function Nte(e,{relative:t}={}){let n=S.useContext(Dl);Mo(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=vu(`useViewTransitionState`),i=Wl(e,{relative:t});if(!n.isTransitioning)return!1;let a=gs(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=gs(n.nextLocation.pathname,r)||n.nextLocation.pathname;return fs(i.pathname,o)!=null||fs(i.pathname,a)!=null}var bu=s(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),xu=u(b(),1),Su=u(bu()),Pte=function(e,t){var n=(0,Su.default)({},e,t);for(var r in e){var i;e[r]&&typeof t[r]==`object`&&(0,Su.default)(n,(i={},i[r]=(0,Su.default)(e[r],t[r]),i))}return n},Cu=function(e){var t={};return Object.keys(e).sort(function(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:`base`})}).forEach(function(n){t[n]=e[n]}),t},wu={breakpoints:[40,52,64].map(function(e){return e+`em`})},Fte=function(e){return`@media screen and (min-width: `+e+`)`},Tu=function(e,t){return Eu(t,e,e)},Eu=function(e,t,n,r,i){for(t=t&&t.split?t.split(`.`):[t],r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e},Du=function e(t){var n={},r=function(e){var r={},i=!1,a=e.theme&&e.theme.disableStyledSystemCache;for(var o in e)if(t[o]){var s=t[o],c=e[o],l=Eu(e.theme,s.scale,s.defaults);if(typeof c==`object`){if(n.breakpoints=!a&&n.breakpoints||Eu(e.theme,`breakpoints`,wu.breakpoints),Array.isArray(c)){n.media=!a&&n.media||[null].concat(n.breakpoints.map(Fte)),r=Pte(r,Ite(n.media,s,l,c,e));continue}c!==null&&(r=Pte(r,Lte(n.breakpoints,s,l,c,e)),i=!0)}else(0,Su.default)(r,s(c,l,e))}return i&&(r=Cu(r)),r};r.config=t,r.propNames=Object.keys(t),r.cache=n;var i=Object.keys(t).filter(function(e){return e!==`config`});return i.length>1&&i.forEach(function(n){var i;r[n]=e((i={},i[n]=t[n],i))}),r},Ite=function(e,t,n,r,i){var a={};return r.slice(0,e.length).forEach(function(r,o){var s=e[o],c=t(r,n,i);if(!s)(0,Su.default)(a,c);else{var l;(0,Su.default)(a,(l={},l[s]=(0,Su.default)({},a[s],c),l))}}),a},Lte=function(e,t,n,r,i){var a={};for(var o in r){var s=e[o],c=r[o],l=t(c,n,i);if(!s)(0,Su.default)(a,l);else{var u,d=Fte(s);(0,Su.default)(a,(u={},u[d]=(0,Su.default)({},a[d],l),u))}}return a},Ou=function(e){var t=e.properties,n=e.property,r=e.scale,i=e.transform,a=i===void 0?Tu:i,o=e.defaultScale;t||=[n];var s=function(e,n,r){var i={},o=a(e,n,r);if(o!==null)return t.forEach(function(e){i[e]=o}),i};return s.scale=r,s.defaults=o,s},ku=function(e){e===void 0&&(e={});var t={};return Object.keys(e).forEach(function(n){var r=e[n];t[n]=r===!0?Ou({property:n,scale:n}):typeof r==`function`?r:Ou(r)}),Du(t)},Au=function(){for(var e={},t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){t&&t.config&&(0,Su.default)(e,t.config)}),Du(e)},ju=function(e){return typeof e==`number`&&!isNaN(e)},Mu=ku({width:{property:`width`,scale:`sizes`,transform:function(e,t){return Eu(t,e,!ju(e)||e>1?e:e*100+`%`)}},height:{property:`height`,scale:`sizes`},minWidth:{property:`minWidth`,scale:`sizes`},minHeight:{property:`minHeight`,scale:`sizes`},maxWidth:{property:`maxWidth`,scale:`sizes`},maxHeight:{property:`maxHeight`,scale:`sizes`},size:{properties:[`width`,`height`],scale:`sizes`},overflow:!0,overflowX:!0,overflowY:!0,display:!0,verticalAlign:!0}),Nu={color:{property:`color`,scale:`colors`},backgroundColor:{property:`backgroundColor`,scale:`colors`},opacity:!0};Nu.bg=Nu.backgroundColor;var Pu=ku(Nu),Fu=ku({fontFamily:{property:`fontFamily`,scale:`fonts`},fontSize:{property:`fontSize`,scale:`fontSizes`,defaultScale:{fontSizes:[12,14,16,20,24,32,48,64,72]}.fontSizes},fontWeight:{property:`fontWeight`,scale:`fontWeights`},lineHeight:{property:`lineHeight`,scale:`lineHeights`},letterSpacing:{property:`letterSpacing`,scale:`letterSpacings`},textAlign:!0,fontStyle:!0}),Iu=ku({alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,justifySelf:!0,alignSelf:!0,order:!0}),Lu={space:[0,4,8,16,32,64,128,256,512]},Ru=ku({gridGap:{property:`gridGap`,scale:`space`,defaultScale:Lu.space},gridColumnGap:{property:`gridColumnGap`,scale:`space`,defaultScale:Lu.space},gridRowGap:{property:`gridRowGap`,scale:`space`,defaultScale:Lu.space},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0}),zu={border:{property:`border`,scale:`borders`},borderWidth:{property:`borderWidth`,scale:`borderWidths`},borderStyle:{property:`borderStyle`,scale:`borderStyles`},borderColor:{property:`borderColor`,scale:`colors`},borderRadius:{property:`borderRadius`,scale:`radii`},borderTop:{property:`borderTop`,scale:`borders`},borderTopLeftRadius:{property:`borderTopLeftRadius`,scale:`radii`},borderTopRightRadius:{property:`borderTopRightRadius`,scale:`radii`},borderRight:{property:`borderRight`,scale:`borders`},borderBottom:{property:`borderBottom`,scale:`borders`},borderBottomLeftRadius:{property:`borderBottomLeftRadius`,scale:`radii`},borderBottomRightRadius:{property:`borderBottomRightRadius`,scale:`radii`},borderLeft:{property:`borderLeft`,scale:`borders`},borderX:{properties:[`borderLeft`,`borderRight`],scale:`borders`},borderY:{properties:[`borderTop`,`borderBottom`],scale:`borders`}};zu.borderTopWidth={property:`borderTopWidth`,scale:`borderWidths`},zu.borderTopColor={property:`borderTopColor`,scale:`colors`},zu.borderTopStyle={property:`borderTopStyle`,scale:`borderStyles`},zu.borderTopLeftRadius={property:`borderTopLeftRadius`,scale:`radii`},zu.borderTopRightRadius={property:`borderTopRightRadius`,scale:`radii`},zu.borderBottomWidth={property:`borderBottomWidth`,scale:`borderWidths`},zu.borderBottomColor={property:`borderBottomColor`,scale:`colors`},zu.borderBottomStyle={property:`borderBottomStyle`,scale:`borderStyles`},zu.borderBottomLeftRadius={property:`borderBottomLeftRadius`,scale:`radii`},zu.borderBottomRightRadius={property:`borderBottomRightRadius`,scale:`radii`},zu.borderLeftWidth={property:`borderLeftWidth`,scale:`borderWidths`},zu.borderLeftColor={property:`borderLeftColor`,scale:`colors`},zu.borderLeftStyle={property:`borderLeftStyle`,scale:`borderStyles`},zu.borderRightWidth={property:`borderRightWidth`,scale:`borderWidths`},zu.borderRightColor={property:`borderRightColor`,scale:`colors`},zu.borderRightStyle={property:`borderRightStyle`,scale:`borderStyles`};var Bu=ku(zu),Vu={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};Vu.bgImage=Vu.backgroundImage,Vu.bgSize=Vu.backgroundSize,Vu.bgPosition=Vu.backgroundPosition,Vu.bgRepeat=Vu.backgroundRepeat;var Hu=ku(Vu),Uu={space:[0,4,8,16,32,64,128,256,512]},Wu=ku({position:!0,zIndex:{property:`zIndex`,scale:`zIndices`},top:{property:`top`,scale:`space`,defaultScale:Uu.space},right:{property:`right`,scale:`space`,defaultScale:Uu.space},bottom:{property:`bottom`,scale:`space`,defaultScale:Uu.space},left:{property:`left`,scale:`space`,defaultScale:Uu.space}}),Gu={space:[0,4,8,16,32,64,128,256,512]},Ku=function(e){return typeof e==`number`&&!isNaN(e)},qu=function(e,t){if(!Ku(e))return Eu(t,e,e);var n=e<0,r=Math.abs(e),i=Eu(t,r,r);return Ku(i)?i*(n?-1:1):n?`-`+i:i},Ju={};Ju.margin={margin:{property:`margin`,scale:`space`,transform:qu,defaultScale:Gu.space},marginTop:{property:`marginTop`,scale:`space`,transform:qu,defaultScale:Gu.space},marginRight:{property:`marginRight`,scale:`space`,transform:qu,defaultScale:Gu.space},marginBottom:{property:`marginBottom`,scale:`space`,transform:qu,defaultScale:Gu.space},marginLeft:{property:`marginLeft`,scale:`space`,transform:qu,defaultScale:Gu.space},marginX:{properties:[`marginLeft`,`marginRight`],scale:`space`,transform:qu,defaultScale:Gu.space},marginY:{properties:[`marginTop`,`marginBottom`],scale:`space`,transform:qu,defaultScale:Gu.space}},Ju.margin.m=Ju.margin.margin,Ju.margin.mt=Ju.margin.marginTop,Ju.margin.mr=Ju.margin.marginRight,Ju.margin.mb=Ju.margin.marginBottom,Ju.margin.ml=Ju.margin.marginLeft,Ju.margin.mx=Ju.margin.marginX,Ju.margin.my=Ju.margin.marginY,Ju.padding={padding:{property:`padding`,scale:`space`,defaultScale:Gu.space},paddingTop:{property:`paddingTop`,scale:`space`,defaultScale:Gu.space},paddingRight:{property:`paddingRight`,scale:`space`,defaultScale:Gu.space},paddingBottom:{property:`paddingBottom`,scale:`space`,defaultScale:Gu.space},paddingLeft:{property:`paddingLeft`,scale:`space`,defaultScale:Gu.space},paddingX:{properties:[`paddingLeft`,`paddingRight`],scale:`space`,defaultScale:Gu.space},paddingY:{properties:[`paddingTop`,`paddingBottom`],scale:`space`,defaultScale:Gu.space}},Ju.padding.p=Ju.padding.padding,Ju.padding.pt=Ju.padding.paddingTop,Ju.padding.pr=Ju.padding.paddingRight,Ju.padding.pb=Ju.padding.paddingBottom,Ju.padding.pl=Ju.padding.paddingLeft,Ju.padding.px=Ju.padding.paddingX,Ju.padding.py=Ju.padding.paddingY;var Rte=Au(ku(Ju.margin),ku(Ju.padding)),Yu=ku({boxShadow:{property:`boxShadow`,scale:`shadows`},textShadow:{property:`textShadow`,scale:`shadows`}});function Xu(){return Xu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xu.apply(this,arguments)}var Zu=function(e,t,n,r,i){for(t=t&&t.split?t.split(`.`):[t],r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e},zte=[40,52,64].map(function(e){return e+`em`}),Bte={space:[0,4,8,16,32,64,128,256,512],fontSizes:[12,14,16,20,24,32,48,64,72]},Vte={bg:`backgroundColor`,m:`margin`,mt:`marginTop`,mr:`marginRight`,mb:`marginBottom`,ml:`marginLeft`,mx:`marginX`,my:`marginY`,p:`padding`,pt:`paddingTop`,pr:`paddingRight`,pb:`paddingBottom`,pl:`paddingLeft`,px:`paddingX`,py:`paddingY`},Hte={marginX:[`marginLeft`,`marginRight`],marginY:[`marginTop`,`marginBottom`],paddingX:[`paddingLeft`,`paddingRight`],paddingY:[`paddingTop`,`paddingBottom`],size:[`width`,`height`]},Ute={color:`colors`,backgroundColor:`colors`,borderColor:`colors`,margin:`space`,marginTop:`space`,marginRight:`space`,marginBottom:`space`,marginLeft:`space`,marginX:`space`,marginY:`space`,padding:`space`,paddingTop:`space`,paddingRight:`space`,paddingBottom:`space`,paddingLeft:`space`,paddingX:`space`,paddingY:`space`,top:`space`,right:`space`,bottom:`space`,left:`space`,gridGap:`space`,gridColumnGap:`space`,gridRowGap:`space`,gap:`space`,columnGap:`space`,rowGap:`space`,fontFamily:`fonts`,fontSize:`fontSizes`,fontWeight:`fontWeights`,lineHeight:`lineHeights`,letterSpacing:`letterSpacings`,border:`borders`,borderTop:`borders`,borderRight:`borders`,borderBottom:`borders`,borderLeft:`borders`,borderWidth:`borderWidths`,borderStyle:`borderStyles`,borderRadius:`radii`,borderTopRightRadius:`radii`,borderTopLeftRadius:`radii`,borderBottomRightRadius:`radii`,borderBottomLeftRadius:`radii`,borderTopWidth:`borderWidths`,borderTopColor:`colors`,borderTopStyle:`borderStyles`,borderBottomWidth:`borderWidths`,borderBottomColor:`colors`,borderBottomStyle:`borderStyles`,borderLeftWidth:`borderWidths`,borderLeftColor:`colors`,borderLeftStyle:`borderStyles`,borderRightWidth:`borderWidths`,borderRightColor:`colors`,borderRightStyle:`borderStyles`,outlineColor:`colors`,boxShadow:`shadows`,textShadow:`shadows`,zIndex:`zIndices`,width:`sizes`,minWidth:`sizes`,maxWidth:`sizes`,height:`sizes`,minHeight:`sizes`,maxHeight:`sizes`,flexBasis:`sizes`,size:`sizes`,fill:`colors`,stroke:`colors`},Wte=function(e,t){if(typeof t!=`number`||t>=0)return Zu(e,t,t);var n=Math.abs(t),r=Zu(e,n,n);return typeof r==`string`?`-`+r:r*-1},Gte=[`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginX`,`marginY`,`top`,`bottom`,`left`,`right`].reduce(function(e,t){var n;return Xu({},e,(n={},n[t]=Wte,n))},{}),Kte=function(e){return function(t){var n={},r=Zu(t,`breakpoints`,zte),i=[null].concat(r.map(function(e){return`@media screen and (min-width: `+e+`)`}));for(var a in e){var o=typeof e[a]==`function`?e[a](t):e[a];if(o!=null){if(!Array.isArray(o))n[a]=o;else for(var s=0;s<o.slice(0,i.length).length;s++){var c=i[s];c?(n[c]=n[c]||{},o[s]!=null&&(n[c][a]=o[s])):n[a]=o[s]}}}return n}},Qu=function e(t){return function(n){n===void 0&&(n={});var r=Xu({},Bte,{},n.theme||n),i={},a=Kte(typeof t==`function`?t(r):t)(r);for(var o in a){var s=a[o],c=typeof s==`function`?s(r):s;if(o===`variant`){var l=e(Zu(r,c))(r);i=Xu({},i,{},l)}else if(c&&typeof c==`object`)i[o]=e(c)(r);else{var u=Zu(Vte,o,o),d=Zu(r,Zu(Ute,u),Zu(r,u,{})),f=Zu(Gte,u,Zu)(d,c,c);if(Hte[u])for(var p=Hte[u],m=0;m<p.length;m++)i[p[m]]=f;else i[u]=f}}return i}},$u=function(e){var t,n=e.scale,r=e.prop,i=r===void 0?`variant`:r,a=e.variants,o=a===void 0?{}:a,s=e.key,c=Object.keys(o).length?function(e,t,n){return Qu(Eu(t,e,null))(n.theme)}:function(e,t){return Eu(t,e,null)};return c.scale=n||s,c.defaults=o,Du((t={},t[i]=c,t))};$u({key:`buttons`}),$u({key:`textStyles`,prop:`textStyle`}),$u({key:`colorStyles`,prop:`colors`});var ed=Mu.width,td=Mu.height,qte=Mu.minWidth,nd=Mu.minHeight,rd=Mu.maxWidth,Jte=Mu.maxHeight,id=Mu.size,Yte=Mu.verticalAlign,Xte=Mu.display,ad=Mu.overflow;Mu.overflowX,Mu.overflowY;var Zte=Pu.opacity,Qte=Fu.fontSize,od=Fu.fontFamily,sd=Fu.fontWeight,cd=Fu.lineHeight,ld=Fu.textAlign,ud=Fu.fontStyle,dd=Fu.letterSpacing,$te=Iu.alignItems,fd=Iu.alignContent;Iu.justifyItems;var pd=Iu.justifyContent,ene=Iu.flexWrap,tne=Iu.flexDirection,md=Iu.flex,nne=Iu.flexGrow;Iu.flexShrink;var rne=Iu.flexBasis,ine=Iu.justifySelf,ane=Iu.alignSelf,one=Iu.order,sne=Ru.gridGap,hd=Ru.gridColumnGap,cne=Ru.gridRowGap,lne=Ru.gridColumn,gd=Ru.gridRow,une=Ru.gridAutoFlow,_d=Ru.gridAutoColumns,vd=Ru.gridAutoRows,dne=Ru.gridTemplateColumns,fne=Ru.gridTemplateRows,pne=Ru.gridTemplateAreas,mne=Ru.gridArea,yd=Bu.borderWidth,hne=Bu.borderStyle,gne=Bu.borderColor,_ne=Bu.borderTop,vne=Bu.borderRight,yne=Bu.borderBottom,bne=Bu.borderLeft,xne=Bu.borderRadius,bd=Hu.backgroundImage,Sne=Hu.backgroundSize,Cne=Hu.backgroundPosition,wne=Hu.backgroundRepeat,Tne=Wu.zIndex,Ene=Wu.top,Dne=Wu.right,One=Wu.bottom,kne=Wu.left,xd=function(e){var t=e.prop,n=e.cssProperty,r=e.alias,i=e.key,a=e.transformValue,o=e.scale,s=e.properties,c={};return c[t]=Ou({properties:s,property:n||t,scale:i,defaultScale:o,transform:a}),r&&(c[r]=c[t]),Du(c)},Sd=xd({prop:`textDecoration`,cssProperty:`text-decoration`}),Cd=xd({prop:`textTransform`,cssProperty:`text-transform`}),Ane=xd({prop:`cursor`,cssProperty:`cursor`}),jne=xd({prop:`objectFit`,cssProperty:`object-fit`}),wd=Au(Au(Pu,Qte,Rte,ed),Au(od,ud,sd,dd,cd,ld,Sd,Cd),Au(Xte,td,Jte,rd,nd,qte,id,$u),Au(fd,$te,ane,md,rne,tne,nne,ene,pd,ine,one),Au(mne,_d,une,vd,lne,hd,sne,gd,cne,pne,dne,fne),Au(Bu,yne,gne,bne,xne,vne,hne,_ne,yd),Au(One,kne,Wu,Dne,Ene,Tne),Au(Hu,bd,Cne,wne,Sne,Yu,Ane,Zte,ad,jne)),Td={...Pu.propTypes,...Qte.propTypes,...Rte.propTypes,...ed.propTypes,...od.propTypes,...ud.propTypes,...sd.propTypes,...dd.propTypes,...cd.propTypes,...ld.propTypes,...Sd.propTypes,...Cd.propTypes,...Xte.propTypes,...td.propTypes,...Jte.propTypes,...rd.propTypes,...nd.propTypes,...qte.propTypes,...id.propTypes,...Yte.propTypes,...fd.propTypes,...$te.propTypes,...ane.propTypes,...md.propTypes,...rne.propTypes,...tne.propTypes,...nne.propTypes,...ene.propTypes,...pd.propTypes,...ine.propTypes,...one.propTypes,...mne.propTypes,..._d.propTypes,...une.propTypes,...vd.propTypes,...lne.propTypes,...hd.propTypes,...sne.propTypes,...gd.propTypes,...cne.propTypes,...pne.propTypes,...dne.propTypes,...fne.propTypes,...Bu.propTypes,...yne.propTypes,...gne.propTypes,...bne.propTypes,...xne.propTypes,...vne.propTypes,...hne.propTypes,..._ne.propTypes,...yd.propTypes,...One.propTypes,...kne.propTypes,...Wu.propTypes,...Dne.propTypes,...Ene.propTypes,...Tne.propTypes,...Hu.propTypes,...bd.propTypes,...Cne.propTypes,...wne.propTypes,...Sne.propTypes,...Yu.propTypes,...Zte.propTypes,...ad.propTypes};function Ed(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);kd(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Dd(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function B(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function V(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function Od(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var kd,H,U=o((()=>{kd=function(e,t){return kd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},kd(e,t)},H=function(){return H=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},H.apply(this,arguments)}}));function Ad(e,t){if(!e)throw new Fne(t)}function jd(e){return function(){if(Nd.indexOf(e)>=Pd)return(console[e]||console.log).apply(console,arguments)}}function Mne(e){var t=Nd[Pd];return Pd=Math.max(0,Nd.indexOf(e)),t}var Md,Nne,Pne,Fne,Nd,Pd,Ine=o((()=>{U(),Md=`Invariant Violation`,Nne=Object.setPrototypeOf,Pne=Nne===void 0?function(e,t){return e.__proto__=t,e}:Nne,Fne=function(e){Ed(t,e);function t(n){n===void 0&&(n=Md);var r=e.call(this,typeof n==`number`?Md+`: `+n+` (see https://github.com/apollographql/invariant-packages)`:n)||this;return r.framesToPop=1,r.name=Md,Pne(r,t.prototype),r}return t}(Error),Nd=[`debug`,`log`,`warn`,`error`,`silent`],Pd=Nd.indexOf(`log`),(function(e){e.debug=jd(`debug`),e.log=jd(`log`),e.warn=jd(`warn`),e.error=jd(`error`)})(Ad||={})})),Fd,Lne=o((()=>{Fd=`3.14.0`}));function Id(e){try{return e()}catch{}}var Rne=o((()=>{})),Ld,zne=o((()=>{Rne(),Ld=Id(function(){return globalThis})||Id(function(){return window})||Id(function(){return self})||Id(function(){return global})||Id(function(){return Id.constructor(`return this`)()})}));function Rd(e){var t=zd.get(e)||1;return zd.set(e,t+1),`${e}:${t}:${Math.random().toString(36).slice(2)}`}var zd,Bd=o((()=>{zd=new Map}));function Vd(e,t){t===void 0&&(t=0);var n=Rd(`stringifyForDisplay`);return JSON.stringify(e,function(e,t){return t===void 0?n:t},t).split(JSON.stringify(n)).join(`<undefined>`)}var Hd=o((()=>{Bd()}));function Ud(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(typeof t==`number`){var i=t;t=Gd(i),t||(t=Kd(i,n),n=[])}e.apply(void 0,[t].concat(n))}}function Wd(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Fne(Gd(e,t)||Kd(e,t))}function Bne(e){if(typeof e==`string`)return e;try{return Vd(e,2).slice(0,1e3)}catch{return`<non-serializable>`}}function Gd(e,t){if(t===void 0&&(t=[]),e)return Ld[qd]&&Ld[qd](e,t.map(Bne))}function Kd(e,t){if(t===void 0&&(t=[]),e)return`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:Fd,message:e,args:t.map(Bne)}))}`}var W,qd,Jd=o((()=>{Ine(),Lne(),zne(),Hd(),W=Object.assign(function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e||Ad(e,Gd(t,n)||Kd(t,n))},{debug:Ud(Ad.debug),log:Ud(Ad.log),warn:Ud(Ad.warn),error:Ud(Ad.error)}),qd=Symbol.for(`ApolloErrorMessageHandler_`+Fd)})),Yd=o((()=>{Jd(),Rne(),zne(),globalThis.__DEV__}));function Xd(e,t){if(!e)throw Error(t)}var Zd=o((()=>{}));function Vne(e){return typeof e==`object`&&!!e}var Hne=o((()=>{}));function Une(e,t){if(!e)throw Error(t??`Unexpected invariant triggered.`)}var Wne=o((()=>{}));function Qd(e,t){let n=0,r=1;for(let i of e.body.matchAll($d)){if(typeof i.index==`number`||Une(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}var $d,ef=o((()=>{Wne(),$d=/\r\n|[\n\r]/g}));function Gne(e){return tf(e.source,Qd(e.source,e.start))}function tf(e,t){let n=e.locationOffset.column-1,r=``.padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,s=t.line===1?n:0,c=t.column+s,l=`${e.name}:${o}:${c}\n`,u=r.split(/\r\n|[\n\r]/g),d=u[i];if(d.length>120){let e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e<d.length;e+=80)n.push(d.slice(e,e+80));return l+nf([[`${o} |`,n[0]],...n.slice(1,e+1).map(e=>[`|`,e]),[`|`,`^`.padStart(t)],[`|`,n[e+1]]])}return l+nf([[`${o-1} |`,u[i-1]],[`${o} |`,d],[`|`,`^`.padStart(c)],[`${o+1} |`,u[i+1]]])}function nf(e){let t=e.filter(([e,t])=>t!==void 0),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?` `+t:``)).join(`
164
164
  `)}var rf=o((()=>{ef()}));function af(e){let t=e[0];return t==null||`kind`in t||`length`in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}function Kne(e){return e===void 0||e.length===0?void 0:e}var of,sf=o((()=>{Hne(),ef(),rf(),of=class e extends Error{constructor(t,...n){let{nodes:r,source:i,positions:a,path:o,originalError:s,extensions:c}=af(n);super(t),this.name=`GraphQLError`,this.path=o??void 0,this.originalError=s??void 0,this.nodes=Kne(Array.isArray(r)?r:r?[r]:void 0);let l=Kne(this.nodes?.map(e=>e.loc).filter(e=>e!=null));this.source=i??l?.[0]?.source,this.positions=a??l?.map(e=>e.start),this.locations=a&&i?a.map(e=>Qd(i,e)):l?.map(e=>Qd(e.source,e.start));let u=Vne(s?.extensions)?s?.extensions:void 0;this.extensions=c??u??Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),s!=null&&s.stack?Object.defineProperty(this,"stack",{value:s.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return`GraphQLError`}toString(){let e=this.message;if(this.nodes)for(let t of this.nodes)t.loc&&(e+=`
165
165
 
166
166
  `+Gne(t.loc));else if(this.source&&this.locations)for(let t of this.locations)e+=`