mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-04-25 17:14:57 +02:00
Feeds.ts is at 523 entries after PR #3236 landed. The "435+" figure has been baked into marketing copy, docs, press kit, and localized strings for a long time and is now noticeably understated. Bump to 500+ as the new canonical figure. Also aligned three stale claims in less-visited docs: docs/getting-started.mdx 70+ RSS feeds => 500+ RSS feeds docs/ai-intelligence.mdx 344 sources => 500+ sources docs/COMMUNITY-PROMOTION-GUIDE 170+ news feeds => 500+ news feeds 170+ news sources => 500+ news sources And bumped the digest-dedup copy 400+ to 500+ (English + French locales + pro-test/index.html prerendered body) for consistency with the pricing and GDELT panels. Left alone on purpose (different metric): 22 services / 22 service domains 24 feeds (security-advisory seeder specifically) 31 sources (freshness tracker) 45 map layers Rebuilt /pro bundle so the per-locale chunks + prerendered index.html under public/pro/assets ship the new copy. 20 locales updated.
249 lines
544 KiB
JavaScript
249 lines
544 KiB
JavaScript
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const c of l)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&r(f)}).observe(document,{childList:!0,subtree:!0});function a(l){const c={};return l.integrity&&(c.integrity=l.integrity),l.referrerPolicy&&(c.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?c.credentials="include":l.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function r(l){if(l.ep)return;l.ep=!0;const c=a(l);fetch(l.href,c)}})();var vf={exports:{}},tr={};/**
|
||
* @license React
|
||
* react-jsx-runtime.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Oy;function Kw(){if(Oy)return tr;Oy=1;var n=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(r,l,c){var f=null;if(c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),"key"in l){c={};for(var h in l)h!=="key"&&(c[h]=l[h])}else c=l;return l=c.ref,{$$typeof:n,type:r,key:f,ref:l!==void 0?l:null,props:c}}return tr.Fragment=t,tr.jsx=a,tr.jsxs=a,tr}var Ry;function Xw(){return Ry||(Ry=1,vf.exports=Kw()),vf.exports}var g=Xw();const ce=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Oe=globalThis,Xi="10.49.0";function Vl(){return Bl(Oe),Oe}function Bl(n){const t=n.__SENTRY__=n.__SENTRY__||{};return t.version=t.version||Xi,t[Xi]=t[Xi]||{}}function ts(n,t,a=Oe){const r=a.__SENTRY__=a.__SENTRY__||{},l=r[Xi]=r[Xi]||{};return l[n]||(l[n]=t())}const $w=["debug","info","warn","error","log","assert","trace"],Qw="Sentry Logger ",xl={};function ns(n){if(!("console"in Oe))return n();const t=Oe.console,a={},r=Object.keys(xl);r.forEach(l=>{const c=xl[l];a[l]=t[l],t[l]=c});try{return n()}finally{r.forEach(l=>{t[l]=a[l]})}}function Zw(){qd().enabled=!0}function Jw(){qd().enabled=!1}function Sx(){return qd().enabled}function Ww(...n){Pd("log",...n)}function e_(...n){Pd("warn",...n)}function t_(...n){Pd("error",...n)}function Pd(n,...t){ce&&Sx()&&ns(()=>{Oe.console[n](`${Qw}[${n}]:`,...t)})}function qd(){return ce?ts("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const ae={enable:Zw,disable:Jw,isEnabled:Sx,log:Ww,warn:e_,error:t_},wx=50,Zi="?",ky=/\(error: (.*)\)/,Ly=/captureMessage|captureException/;function _x(...n){const t=n.sort((a,r)=>a[0]-r[0]).map(a=>a[1]);return(a,r=0,l=0)=>{const c=[],f=a.split(`
|
||
`);for(let h=r;h<f.length;h++){let m=f[h];m.length>1024&&(m=m.slice(0,1024));const p=ky.test(m)?m.replace(ky,"$1"):m;if(!p.includes("Error: ")){for(const v of t){const x=v(p);if(x){c.push(x);break}}if(c.length>=wx+l)break}}return i_(c.slice(l))}}function n_(n){return Array.isArray(n)?_x(...n):n}function i_(n){if(!n.length)return[];const t=Array.from(n);return/sentryWrapped/.test(Jo(t).function||"")&&t.pop(),t.reverse(),Ly.test(Jo(t).function||"")&&(t.pop(),Ly.test(Jo(t).function||"")&&t.pop()),t.slice(0,wx).map(a=>({...a,filename:a.filename||Jo(t).filename,function:a.function||Zi}))}function Jo(n){return n[n.length-1]||{}}const xf="<anonymous>";function gi(n){try{return!n||typeof n!="function"?xf:n.name||xf}catch{return xf}}function zy(n){const t=n.exception;if(t){const a=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&a.push(...r.stacktrace.frames)}),a}catch{return}}}function Tx(n){return"__v_isVNode"in n&&n.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const rl={},Vy={};function ea(n,t){rl[n]=rl[n]||[],rl[n].push(t)}function ta(n,t){if(!Vy[n]){Vy[n]=!0;try{t()}catch(a){ce&&ae.error(`Error while instrumenting ${n}`,a)}}}function rn(n,t){const a=n&&rl[n];if(a)for(const r of a)try{r(t)}catch(l){ce&&ae.error(`Error while triggering instrumentation handler.
|
||
Type: ${n}
|
||
Name: ${gi(r)}
|
||
Error:`,l)}}let bf=null;function a_(n){const t="error";ea(t,n),ta(t,s_)}function s_(){bf=Oe.onerror,Oe.onerror=function(n,t,a,r,l){return rn("error",{column:r,error:l,line:a,msg:n,url:t}),bf?bf.apply(this,arguments):!1},Oe.onerror.__SENTRY_INSTRUMENTED__=!0}let Sf=null;function r_(n){const t="unhandledrejection";ea(t,n),ta(t,o_)}function o_(){Sf=Oe.onunhandledrejection,Oe.onunhandledrejection=function(n){return rn("unhandledrejection",n),Sf?Sf.apply(this,arguments):!0},Oe.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Ex=Object.prototype.toString;function Ul(n){switch(Ex.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return yi(n,Error)}}function is(n,t){return Ex.call(n)===`[object ${t}]`}function Ax(n){return is(n,"ErrorEvent")}function By(n){return is(n,"DOMError")}function l_(n){return is(n,"DOMException")}function Bn(n){return is(n,"String")}function Id(n){return typeof n=="object"&&n!==null&&"__sentry_template_string__"in n&&"__sentry_template_values__"in n}function Hl(n){return n===null||Id(n)||typeof n!="object"&&typeof n!="function"}function gr(n){return is(n,"Object")}function Pl(n){return typeof Event<"u"&&yi(n,Event)}function c_(n){return typeof Element<"u"&&yi(n,Element)}function u_(n){return is(n,"RegExp")}function Tr(n){return!!(n!=null&&n.then&&typeof n.then=="function")}function f_(n){return gr(n)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n}function yi(n,t){try{return n instanceof t}catch{return!1}}function Nx(n){return!!(typeof n=="object"&&n!==null&&(n.__isVue||n._isVue||n.__v_isVNode))}function Dx(n){return typeof Request<"u"&&yi(n,Request)}const Fd=Oe,d_=80;function jx(n,t={}){if(!n)return"<unknown>";try{let a=n;const r=5,l=[];let c=0,f=0;const h=" > ",m=h.length;let p;const v=Array.isArray(t)?t:t.keyAttrs,x=!Array.isArray(t)&&t.maxStringLength||d_;for(;a&&c++<r&&(p=h_(a,v),!(p==="html"||c>1&&f+l.length*m+p.length>=x));)l.push(p),f+=p.length,a=a.parentNode;return l.reverse().join(h)}catch{return"<unknown>"}}function h_(n,t){const a=n,r=[];if(!(a!=null&&a.tagName))return"";if(Fd.HTMLElement&&a instanceof HTMLElement&&a.dataset){if(a.dataset.sentryComponent)return a.dataset.sentryComponent;if(a.dataset.sentryElement)return a.dataset.sentryElement}r.push(a.tagName.toLowerCase());const l=t!=null&&t.length?t.filter(c=>a.getAttribute(c)).map(c=>[c,a.getAttribute(c)]):null;if(l!=null&&l.length)l.forEach(c=>{r.push(`[${c[0]}="${c[1]}"]`)});else{a.id&&r.push(`#${a.id}`);const c=a.className;if(c&&Bn(c)){const f=c.split(/\s+/);for(const h of f)r.push(`.${h}`)}}for(const c of["aria-label","type","name","title","alt"]){const f=a.getAttribute(c);f&&r.push(`[${c}="${f}"]`)}return r.join("")}function Gd(){try{return Fd.document.location.href}catch{return""}}function m_(n,t=5){if(!Fd.HTMLElement)return null;let a=n;for(let r=0;r<t;r++){if(!a)return null;if(a instanceof HTMLElement){if(a.dataset.sentryComponent)return a.dataset.sentryComponent;if(a.dataset.sentryElement)return a.dataset.sentryElement}a=a.parentNode}return null}function Ut(n,t,a){if(!(t in n))return;const r=n[t];if(typeof r!="function")return;const l=a(r);typeof l=="function"&&Cx(l,r);try{n[t]=l}catch{ce&&ae.log(`Failed to replace method "${t}" in object`,n)}}function vi(n,t,a){try{Object.defineProperty(n,t,{value:a,writable:!0,configurable:!0})}catch{ce&&ae.log(`Failed to add non-enumerable property "${t}" to object`,n)}}function Cx(n,t){try{const a=t.prototype||{};n.prototype=t.prototype=a,vi(n,"__sentry_original__",t)}catch{}}function Yd(n){return n.__sentry_original__}function Mx(n){if(Ul(n))return{message:n.message,name:n.name,stack:n.stack,...Hy(n)};if(Pl(n)){const t={type:n.type,target:Uy(n.target),currentTarget:Uy(n.currentTarget),...Hy(n)};return typeof CustomEvent<"u"&&yi(n,CustomEvent)&&(t.detail=n.detail),t}else return n}function Uy(n){try{return c_(n)?jx(n):Object.prototype.toString.call(n)}catch{return"<unknown>"}}function Hy(n){return typeof n=="object"&&n!==null?Object.fromEntries(Object.entries(n)):{}}function p_(n){const t=Object.keys(Mx(n));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}let Ha;function ql(n){if(Ha!==void 0)return Ha?Ha(n):n();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),a=Oe;return t in a&&typeof a[t]=="function"?(Ha=a[t],Ha(n)):(Ha=null,n())}function bl(){return ql(()=>Math.random())}function Il(){return ql(()=>Date.now())}function Wf(n,t=0){return typeof n!="string"||t===0||n.length<=t?n:`${n.slice(0,t)}...`}function Py(n,t){if(!Array.isArray(n))return"";const a=[];for(let r=0;r<n.length;r++){const l=n[r];try{Nx(l)?a.push(Tx(l)):a.push(String(l))}catch{a.push("[value cannot be serialized]")}}return a.join(t)}function ol(n,t,a=!1){return Bn(n)?u_(t)?t.test(n):Bn(t)?a?n===t:n.includes(t):typeof t=="function"?t(n):!1:!1}function Fl(n,t=[],a=!1){return t.some(r=>ol(n,r,a))}function g_(){const n=Oe;return n.crypto||n.msCrypto}let wf;function y_(){return bl()*16}function Jt(n=g_()){try{if(n!=null&&n.randomUUID)return ql(()=>n.randomUUID()).replace(/-/g,"")}catch{}return wf||(wf="10000000100040008000"+1e11),wf.replace(/[018]/g,t=>(t^(y_()&15)>>t/4).toString(16))}function Ox(n){var t,a;return(a=(t=n.exception)==null?void 0:t.values)==null?void 0:a[0]}function Gi(n){const{message:t,event_id:a}=n;if(t)return t;const r=Ox(n);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||a||"<unknown>":a||"<unknown>"}function ed(n,t,a){const r=n.exception=n.exception||{},l=r.values=r.values||[],c=l[0]=l[0]||{};c.value||(c.value=t||""),c.type||(c.type="Error")}function $a(n,t){const a=Ox(n);if(!a)return;const r={type:"generic",handled:!0},l=a.mechanism;if(a.mechanism={...r,...l,...t},t&&"data"in t){const c={...l==null?void 0:l.data,...t.data};a.mechanism.data=c}}function qy(n){if(v_(n))return!0;try{vi(n,"__sentry_captured__",!0)}catch{}return!1}function v_(n){try{return n.__sentry_captured__}catch{}}const Rx=1e3;function Er(){return Il()/Rx}function x_(){const{performance:n}=Oe;if(!(n!=null&&n.now)||!n.timeOrigin)return Er;const t=n.timeOrigin;return()=>(t+ql(()=>n.now()))/Rx}let Iy;function Un(){return(Iy??(Iy=x_()))()}function b_(n){const t=Un(),a={sid:Jt(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>w_(a)};return n&&Qa(a,n),a}function Qa(n,t={}){if(t.user&&(!n.ipAddress&&t.user.ip_address&&(n.ipAddress=t.user.ip_address),!n.did&&!t.did&&(n.did=t.user.id||t.user.email||t.user.username)),n.timestamp=t.timestamp||Un(),t.abnormal_mechanism&&(n.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(n.ignoreDuration=t.ignoreDuration),t.sid&&(n.sid=t.sid.length===32?t.sid:Jt()),t.init!==void 0&&(n.init=t.init),!n.did&&t.did&&(n.did=`${t.did}`),typeof t.started=="number"&&(n.started=t.started),n.ignoreDuration)n.duration=void 0;else if(typeof t.duration=="number")n.duration=t.duration;else{const a=n.timestamp-n.started;n.duration=a>=0?a:0}t.release&&(n.release=t.release),t.environment&&(n.environment=t.environment),!n.ipAddress&&t.ipAddress&&(n.ipAddress=t.ipAddress),!n.userAgent&&t.userAgent&&(n.userAgent=t.userAgent),typeof t.errors=="number"&&(n.errors=t.errors),t.status&&(n.status=t.status)}function S_(n,t){let a={};n.status==="ok"&&(a={status:"exited"}),Qa(n,a)}function w_(n){return{sid:`${n.sid}`,init:n.init,started:new Date(n.started*1e3).toISOString(),timestamp:new Date(n.timestamp*1e3).toISOString(),status:n.status,errors:n.errors,did:typeof n.did=="number"||typeof n.did=="string"?`${n.did}`:void 0,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}}}function Ar(n,t,a=2){if(!t||typeof t!="object"||a<=0)return t;if(n&&Object.keys(t).length===0)return n;const r={...n};for(const l in t)Object.prototype.hasOwnProperty.call(t,l)&&(r[l]=Ar(r[l],t[l],a-1));return r}function Fy(){return Jt()}function kx(){return Jt().substring(16)}const td="_sentrySpan";function Gy(n,t){t?vi(n,td,t):delete n[td]}function Yy(n){return n[td]}const __=100;class gn{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Fy(),sampleRand:bl()}}clone(){const t=new gn;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,Gy(t,Yy(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Qa(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,a){return this.setTags({[t]:a})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,a){return this.setAttributes({[t]:a})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,a){return this._extra={...this._extra,[t]:a},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,a){return a===null?delete this._contexts[t]:this._contexts[t]=a,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const a=typeof t=="function"?t(this):t,r=a instanceof gn?a.getScopeData():gr(a)?t:void 0,{tags:l,attributes:c,extra:f,user:h,contexts:m,level:p,fingerprint:v=[],propagationContext:x,conversationId:S}=r||{};return this._tags={...this._tags,...l},this._attributes={...this._attributes,...c},this._extra={...this._extra,...f},this._contexts={...this._contexts,...m},h&&Object.keys(h).length&&(this._user=h),p&&(this._level=p),v.length&&(this._fingerprint=v),x&&(this._propagationContext=x),S&&(this._conversationId=S),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,Gy(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Fy(),sampleRand:bl()}),this._notifyScopeListeners(),this}addBreadcrumb(t,a){var c;const r=typeof a=="number"?a:__;if(r<=0)return this;const l={timestamp:Er(),...t,message:t.message?Wf(t.message,2048):t.message};return this._breadcrumbs.push(l),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),(c=this._client)==null||c.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Yy(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Ar(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,a){const r=(a==null?void 0:a.event_id)||Jt();if(!this._client)return ce&&ae.warn("No client configured on scope - will not capture exception!"),r;const l=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:l,...a,event_id:r},this),r}captureMessage(t,a,r){const l=(r==null?void 0:r.event_id)||Jt();if(!this._client)return ce&&ae.warn("No client configured on scope - will not capture message!"),l;const c=(r==null?void 0:r.syntheticException)??new Error(t);return this._client.captureMessage(t,a,{originalException:t,syntheticException:c,...r,event_id:l},this),l}captureEvent(t,a){const r=t.event_id||(a==null?void 0:a.event_id)||Jt();return this._client?(this._client.captureEvent(t,{...a,event_id:r},this),r):(ce&&ae.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function T_(){return ts("defaultCurrentScope",()=>new gn)}function E_(){return ts("defaultIsolationScope",()=>new gn)}const Ky=n=>n instanceof Promise&&!n[Lx],Lx=Symbol("chained PromiseLike"),A_=(n,t,a)=>{const r=n.then(l=>(t(l),l),l=>{throw a(l),l});return Ky(r)&&Ky(n)?r:N_(n,r)},N_=(n,t)=>{let a=!1;for(const r in n){if(r in t)continue;a=!0;const l=n[r];typeof l=="function"?Object.defineProperty(t,r,{value:(...c)=>l.apply(n,c),enumerable:!0,configurable:!0,writable:!0}):t[r]=l}return a&&Object.assign(t,{[Lx]:!0}),t};class D_{constructor(t,a){let r;t?r=t:r=new gn;let l;a?l=a:l=new gn,this._stack=[{scope:r}],this._isolationScope=l}withScope(t){const a=this._pushScope();let r;try{r=t(a)}catch(l){throw this._popScope(),l}return Tr(r)?A_(r,()=>this._popScope(),()=>this._popScope()):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Za(){const n=Vl(),t=Bl(n);return t.stack=t.stack||new D_(T_(),E_())}function j_(n){return Za().withScope(n)}function C_(n,t){const a=Za();return a.withScope(()=>(a.getStackTop().scope=n,t(n)))}function Xy(n){return Za().withScope(()=>n(Za().getIsolationScope()))}function M_(){return{withIsolationScope:Xy,withScope:j_,withSetScope:C_,withSetIsolationScope:(n,t)=>Xy(t),getCurrentScope:()=>Za().getScope(),getIsolationScope:()=>Za().getIsolationScope()}}function Kd(n){const t=Bl(n);return t.acs?t.acs:M_()}function Hn(){const n=Vl();return Kd(n).getCurrentScope()}function Si(){const n=Vl();return Kd(n).getIsolationScope()}function O_(){return ts("globalScope",()=>new gn)}function R_(...n){const t=Vl(),a=Kd(t);if(n.length===2){const[r,l]=n;return r?a.withSetScope(r,l):a.withScope(l)}return a.withScope(n[0])}function gt(){return Hn().getClient()}function k_(n){const t=n.getPropagationContext(),{traceId:a,parentSpanId:r,propagationSpanId:l}=t,c={trace_id:a,span_id:l||kx()};return r&&(c.parent_span_id=r),c}const L_="sentry.source",z_="sentry.sample_rate",V_="sentry.previous_trace_sample_rate",B_="sentry.op",U_="sentry.origin",zx="sentry.profile_id",Vx="sentry.exclusive_time",H_="gen_ai.conversation.id",P_=0,q_=1;function I_(n){if(n){if(typeof n=="object"&&"deref"in n&&typeof n.deref=="function")try{return n.deref()}catch{return}return n}}const F_="_sentryScope",G_="_sentryIsolationScope";function Bx(n){const t=n;return{scope:t[F_],isolationScope:I_(t[G_])}}const $y="sentry-";function Y_(n){const t=K_(n);if(!t)return;const a=Object.entries(t).reduce((r,[l,c])=>{if(l.startsWith($y)){const f=l.slice($y.length);r[f]=c}return r},{});if(Object.keys(a).length>0)return a}function K_(n){if(!(!n||!Bn(n)&&!Array.isArray(n)))return Array.isArray(n)?n.reduce((t,a)=>{const r=Qy(a);return Object.entries(r).forEach(([l,c])=>{t[l]=c}),t},{}):Qy(n)}function Qy(n){return n.split(",").map(t=>{const a=t.indexOf("=");if(a===-1)return[];const r=t.slice(0,a),l=t.slice(a+1);return[r,l].map(c=>{try{return decodeURIComponent(c.trim())}catch{return}})}).reduce((t,[a,r])=>(a&&r&&(t[a]=r),t),{})}const X_=/^o(\d+)\./,$_=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function Q_(n){return n==="http"||n==="https"}function Nr(n,t=!1){const{host:a,path:r,pass:l,port:c,projectId:f,protocol:h,publicKey:m}=n;return`${h}://${m}${t&&l?`:${l}`:""}@${a}${c?`:${c}`:""}/${r&&`${r}/`}${f}`}function Z_(n){const t=$_.exec(n);if(!t){ns(()=>{console.error(`Invalid Sentry Dsn: ${n}`)});return}const[a,r,l="",c="",f="",h=""]=t.slice(1);let m="",p=h;const v=p.split("/");if(v.length>1&&(m=v.slice(0,-1).join("/"),p=v.pop()),p){const x=p.match(/^\d+/);x&&(p=x[0])}return Ux({host:c,pass:l,path:m,projectId:p,port:f,protocol:a,publicKey:r})}function Ux(n){return{protocol:n.protocol,publicKey:n.publicKey||"",pass:n.pass||"",host:n.host,port:n.port||"",path:n.path||"",projectId:n.projectId}}function J_(n){if(!ce)return!0;const{port:t,projectId:a,protocol:r}=n;return["protocol","publicKey","host","projectId"].find(f=>n[f]?!1:(ae.error(`Invalid Sentry Dsn: ${f} missing`),!0))?!1:a.match(/^\d+$/)?Q_(r)?t&&isNaN(parseInt(t,10))?(ae.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(ae.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(ae.error(`Invalid Sentry Dsn: Invalid projectId ${a}`),!1)}function W_(n){const t=n.match(X_);return t==null?void 0:t[1]}function eT(n){const t=n.getOptions(),{host:a}=n.getDsn()||{};let r;return t.orgId?r=String(t.orgId):a&&(r=W_(a)),r}function tT(n){const t=typeof n=="string"?Z_(n):Ux(n);if(!(!t||!J_(t)))return t}function nT(n){if(typeof n=="boolean")return Number(n);const t=typeof n=="string"?parseFloat(n):n;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const Hx=1;let Zy=!1;function iT(n){const{spanId:t,traceId:a,isRemote:r}=n.spanContext(),l=r?t:Gl(n).parent_span_id,c=Bx(n).scope,f=r?(c==null?void 0:c.getPropagationContext().propagationSpanId)||kx():t;return{parent_span_id:l,span_id:f,trace_id:a}}function aT(n){if(n&&n.length>0)return n.map(({context:{spanId:t,traceId:a,traceFlags:r,...l},attributes:c})=>({span_id:t,trace_id:a,sampled:r===Hx,attributes:c,...l}))}function Jy(n){return typeof n=="number"?Wy(n):Array.isArray(n)?n[0]+n[1]/1e9:n instanceof Date?Wy(n.getTime()):Un()}function Wy(n){return n>9999999999?n/1e3:n}function Gl(n){if(oT(n))return n.getSpanJSON();const{spanId:t,traceId:a}=n.spanContext();if(rT(n)){const{attributes:r,startTime:l,name:c,endTime:f,status:h,links:m}=n;return{span_id:t,trace_id:a,data:r,description:c,parent_span_id:sT(n),start_timestamp:Jy(l),timestamp:Jy(f)||void 0,status:cT(h),op:r[B_],origin:r[U_],links:aT(m)}}return{span_id:t,trace_id:a,start_timestamp:0,data:{}}}function sT(n){var t;return"parentSpanId"in n?n.parentSpanId:"parentSpanContext"in n?(t=n.parentSpanContext)==null?void 0:t.spanId:void 0}function rT(n){const t=n;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function oT(n){return typeof n.getSpanJSON=="function"}function lT(n){const{traceFlags:t}=n.spanContext();return t===Hx}function cT(n){if(!(!n||n.code===P_))return n.code===q_?"ok":n.message||"internal_error"}const uT="_sentryRootSpan",Px=fT;function fT(n){return n[uT]||n}function e0(){Zy||(ns(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),Zy=!0)}function dT(n){var a;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=(a=gt())==null?void 0:a.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function t0(n){ae.log(`Ignoring span ${n.op} - ${n.description} because it matches \`ignoreSpans\`.`)}function n0(n,t){if(!(t!=null&&t.length)||!n.description)return!1;for(const a of t){if(mT(a)){if(ol(n.description,a))return ce&&t0(n),!0;continue}if(!a.name&&!a.op)continue;const r=a.name?ol(n.description,a.name):!0,l=a.op?n.op&&ol(n.op,a.op):!0;if(r&&l)return ce&&t0(n),!0}return!1}function hT(n,t){const a=t.parent_span_id,r=t.span_id;if(a)for(const l of n)l.parent_span_id===r&&(l.parent_span_id=a)}function mT(n){return typeof n=="string"||n instanceof RegExp}const Xd="production",pT="_frozenDsc";function qx(n,t){const a=t.getOptions(),{publicKey:r}=t.getDsn()||{},l={environment:a.environment||Xd,release:a.release,public_key:r,trace_id:n,org_id:eT(t)};return t.emit("createDsc",l),l}function gT(n,t){const a=t.getPropagationContext();return a.dsc||qx(a.traceId,n)}function yT(n){var T;const t=gt();if(!t)return{};const a=Px(n),r=Gl(a),l=r.data,c=a.spanContext().traceState,f=(c==null?void 0:c.get("sentry.sample_rate"))??l[z_]??l[V_];function h(k){return(typeof f=="number"||typeof f=="string")&&(k.sample_rate=`${f}`),k}const m=a[pT];if(m)return h(m);const p=c==null?void 0:c.get("sentry.dsc"),v=p&&Y_(p);if(v)return h(v);const x=qx(n.spanContext().traceId,t),S=l[L_]??l["sentry.span.source"],w=r.description;return S!=="url"&&w&&(x.transaction=w),dT()&&(x.sampled=String(lT(a)),x.sample_rand=(c==null?void 0:c.get("sentry.sample_rand"))??((T=Bx(a).scope)==null?void 0:T.getPropagationContext().sampleRand.toString())),h(x),t.emit("createDsc",x,a),x}function vT(n){return!!n&&typeof n=="function"&&"_streamed"in n&&!!n._streamed}function Vn(n,t=100,a=1/0){try{return nd("",n,t,a)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Ix(n,t=3,a=100*1024){const r=Vn(n,t);return wT(r)>a?Ix(n,t-1,a):r}function nd(n,t,a=1/0,r=1/0,l=_T()){const[c,f]=l;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const h=xT(n,t);if(!h.startsWith("[object "))return h;if(t.__sentry_skip_normalization__)return t;const m=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:a;if(m===0)return h.replace("object ","");if(c(t))return"[Circular ~]";const p=t;if(p&&typeof p.toJSON=="function")try{const w=p.toJSON();return nd("",w,m-1,r,l)}catch{}const v=Array.isArray(t)?[]:{};let x=0;const S=Mx(t);for(const w in S){if(!Object.prototype.hasOwnProperty.call(S,w))continue;if(x>=r){v[w]="[MaxProperties ~]";break}const T=S[w];v[w]=nd(w,T,m-1,r,l),x++}return f(t),v}function xT(n,t){try{if(n==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(n==="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(Nx(t))return Tx(t);if(f_(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${gi(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const a=bT(t);return/^HTML(\w*)Element$/.test(a)?`[HTMLElement: ${a}]`:`[object ${a}]`}catch(a){return`**non-serializable** (${a})`}}function bT(n){const t=Object.getPrototypeOf(n);return t!=null&&t.constructor?t.constructor.name:"null prototype"}function ST(n){return~-encodeURI(n).split(/%..|./).length}function wT(n){return ST(JSON.stringify(n))}function _T(){const n=new WeakSet;function t(r){return n.has(r)?!0:(n.add(r),!1)}function a(r){n.delete(r)}return[t,a]}function as(n,t=[]){return[n,t]}function TT(n,t){const[a,r]=n;return[a,[...r,t]]}function id(n,t){const a=n[1];for(const r of a){const l=r[0].type;if(t(r,l))return!0}return!1}function ET(n,t){return id(n,(a,r)=>t.includes(r))}function ad(n){const t=Bl(Oe);return t.encodePolyfill?t.encodePolyfill(n):new TextEncoder().encode(n)}function AT(n){const[t,a]=n;let r=JSON.stringify(t);function l(c){typeof r=="string"?r=typeof c=="string"?r+c:[ad(r),c]:r.push(typeof c=="string"?ad(c):c)}for(const c of a){const[f,h]=c;if(l(`
|
||
${JSON.stringify(f)}
|
||
`),typeof h=="string"||h instanceof Uint8Array)l(h);else{let m;try{m=JSON.stringify(h)}catch{m=JSON.stringify(Vn(h))}l(m)}}return typeof r=="string"?r:NT(r)}function NT(n){const t=n.reduce((l,c)=>l+c.length,0),a=new Uint8Array(t);let r=0;for(const l of n)a.set(l,r),r+=l.length;return a}function DT(n){const t=typeof n.data=="string"?ad(n.data):n.data;return[{type:"attachment",length:t.length,filename:n.filename,content_type:n.contentType,attachment_type:n.attachmentType},t]}const Fx={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function jT(n){return n in Fx}function i0(n){return jT(n)?Fx[n]:n}function Gx(n){if(!(n!=null&&n.sdk))return;const{name:t,version:a}=n.sdk;return{name:t,version:a}}function CT(n,t,a,r){var c;const l=(c=n.sdkProcessingMetadata)==null?void 0:c.dynamicSamplingContext;return{event_id:n.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!a&&r&&{dsn:Nr(r)},...l&&{trace:l}}}function MT(n,t){var r,l,c,f;if(!t)return n;const a=n.sdk||{};return n.sdk={...a,name:a.name||t.name,version:a.version||t.version,integrations:[...((r=n.sdk)==null?void 0:r.integrations)||[],...t.integrations||[]],packages:[...((l=n.sdk)==null?void 0:l.packages)||[],...t.packages||[]],settings:(c=n.sdk)!=null&&c.settings||t.settings?{...(f=n.sdk)==null?void 0:f.settings,...t.settings}:void 0},n}function OT(n,t,a,r){const l=Gx(a),c={sent_at:new Date().toISOString(),...l&&{sdk:l},...!!r&&t&&{dsn:Nr(t)}},f="aggregates"in n?[{type:"sessions"},n]:[{type:"session"},n.toJSON()];return as(c,[f])}function RT(n,t,a,r){const l=Gx(a),c=n.type&&n.type!=="replay_event"?n.type:"event";MT(n,a==null?void 0:a.sdk);const f=CT(n,l,r,t);return delete n.sdkProcessingMetadata,as(f,[[{type:c},n]])}function kT(n,t){const{fingerprint:a,span:r,breadcrumbs:l,sdkProcessingMetadata:c}=t;LT(n,t),r&&BT(n,r),UT(n,a),zT(n,l),VT(n,c)}function a0(n,t){const{extra:a,tags:r,attributes:l,user:c,contexts:f,level:h,sdkProcessingMetadata:m,breadcrumbs:p,fingerprint:v,eventProcessors:x,attachments:S,propagationContext:w,transactionName:T,span:k}=t;nr(n,"extra",a),nr(n,"tags",r),nr(n,"attributes",l),nr(n,"user",c),nr(n,"contexts",f),n.sdkProcessingMetadata=Ar(n.sdkProcessingMetadata,m,2),h&&(n.level=h),T&&(n.transactionName=T),k&&(n.span=k),p.length&&(n.breadcrumbs=[...n.breadcrumbs,...p]),v.length&&(n.fingerprint=[...n.fingerprint,...v]),x.length&&(n.eventProcessors=[...n.eventProcessors,...x]),S.length&&(n.attachments=[...n.attachments,...S]),n.propagationContext={...n.propagationContext,...w}}function nr(n,t,a){n[t]=Ar(n[t],a,1)}function Yx(n,t){const a=O_().getScopeData();return n&&a0(a,n.getScopeData()),t&&a0(a,t.getScopeData()),a}function LT(n,t){const{extra:a,tags:r,user:l,contexts:c,level:f,transactionName:h}=t;Object.keys(a).length&&(n.extra={...a,...n.extra}),Object.keys(r).length&&(n.tags={...r,...n.tags}),Object.keys(l).length&&(n.user={...l,...n.user}),Object.keys(c).length&&(n.contexts={...c,...n.contexts}),f&&(n.level=f),h&&n.type!=="transaction"&&(n.transaction=h)}function zT(n,t){const a=[...n.breadcrumbs||[],...t];n.breadcrumbs=a.length?a:void 0}function VT(n,t){n.sdkProcessingMetadata={...n.sdkProcessingMetadata,...t}}function BT(n,t){n.contexts={trace:iT(t),...n.contexts},n.sdkProcessingMetadata={dynamicSamplingContext:yT(t),...n.sdkProcessingMetadata};const a=Px(t),r=Gl(a).description;r&&!n.transaction&&n.type==="transaction"&&(n.transaction=r)}function UT(n,t){n.fingerprint=n.fingerprint?Array.isArray(n.fingerprint)?n.fingerprint:[n.fingerprint]:[],t&&(n.fingerprint=n.fingerprint.concat(t)),n.fingerprint.length||delete n.fingerprint}const _f=0,s0=1,r0=2;function Dr(n){return new yr(t=>{t(n)})}function $d(n){return new yr((t,a)=>{a(n)})}class yr{constructor(t){this._state=_f,this._handlers=[],this._runExecutor(t)}then(t,a){return new yr((r,l)=>{this._handlers.push([!1,c=>{if(!t)r(c);else try{r(t(c))}catch(f){l(f)}},c=>{if(!a)l(c);else try{r(a(c))}catch(f){l(f)}}]),this._executeHandlers()})}catch(t){return this.then(a=>a,t)}finally(t){return new yr((a,r)=>{let l,c;return this.then(f=>{c=!1,l=f,t&&t()},f=>{c=!0,l=f,t&&t()}).then(()=>{if(c){r(l);return}a(l)})})}_executeHandlers(){if(this._state===_f)return;const t=this._handlers.slice();this._handlers=[],t.forEach(a=>{a[0]||(this._state===s0&&a[1](this._value),this._state===r0&&a[2](this._value),a[0]=!0)})}_runExecutor(t){const a=(c,f)=>{if(this._state===_f){if(Tr(f)){f.then(r,l);return}this._state=c,this._value=f,this._executeHandlers()}},r=c=>{a(s0,c)},l=c=>{a(r0,c)};try{t(r,l)}catch(c){l(c)}}}function HT(n,t,a,r=0){try{const l=sd(t,a,n,r);return Tr(l)?l:Dr(l)}catch(l){return $d(l)}}function sd(n,t,a,r){const l=a[r];if(!n||!l)return n;const c=l({...n},t);return ce&&c===null&&ae.log(`Event processor "${l.id||"?"}" dropped event`),Tr(c)?c.then(f=>sd(f,t,a,r+1)):sd(c,t,a,r+1)}let zn,o0,l0,di;function PT(n){const t=Oe._sentryDebugIds,a=Oe._debugIds;if(!t&&!a)return{};const r=t?Object.keys(t):[],l=a?Object.keys(a):[];if(di&&r.length===o0&&l.length===l0)return di;o0=r.length,l0=l.length,di={},zn||(zn={});const c=(f,h)=>{for(const m of f){const p=h[m],v=zn==null?void 0:zn[m];if(v&&di&&p)di[v[0]]=p,zn&&(zn[m]=[v[0],p]);else if(p){const x=n(m);for(let S=x.length-1;S>=0;S--){const w=x[S],T=w==null?void 0:w.filename;if(T&&di&&zn){di[T]=p,zn[m]=[T,p];break}}}}};return t&&c(r,t),a&&c(l,a),di}function qT(n,t,a,r,l,c){const{normalizeDepth:f=3,normalizeMaxBreadth:h=1e3}=n,m={...t,event_id:t.event_id||a.event_id||Jt(),timestamp:t.timestamp||Er()},p=a.integrations||n.integrations.map(B=>B.name);IT(m,n),YT(m,p),l&&l.emit("applyFrameMetadata",t),t.type===void 0&&FT(m,n.stackParser);const v=XT(r,a.captureContext);a.mechanism&&$a(m,a.mechanism);const x=l?l.getEventProcessors():[],S=Yx(c,v),w=[...a.attachments||[],...S.attachments];w.length&&(a.attachments=w),kT(m,S);const T=[...x,...S.eventProcessors];return(a.data&&a.data.__sentry__===!0?Dr(m):HT(T,m,a)).then(B=>(B&>(B),typeof f=="number"&&f>0?KT(B,f,h):B))}function IT(n,t){var h,m;const{environment:a,release:r,dist:l,maxValueLength:c}=t;n.environment=n.environment||a||Xd,!n.release&&r&&(n.release=r),!n.dist&&l&&(n.dist=l);const f=n.request;f!=null&&f.url&&c&&(f.url=Wf(f.url,c)),c&&((m=(h=n.exception)==null?void 0:h.values)==null||m.forEach(p=>{p.value&&(p.value=Wf(p.value,c))}))}function FT(n,t){var r,l;const a=PT(t);(l=(r=n.exception)==null?void 0:r.values)==null||l.forEach(c=>{var f,h;(h=(f=c.stacktrace)==null?void 0:f.frames)==null||h.forEach(m=>{m.filename&&(m.debug_id=a[m.filename])})})}function GT(n){var r,l;const t={};if((l=(r=n.exception)==null?void 0:r.values)==null||l.forEach(c=>{var f,h;(h=(f=c.stacktrace)==null?void 0:f.frames)==null||h.forEach(m=>{m.debug_id&&(m.abs_path?t[m.abs_path]=m.debug_id:m.filename&&(t[m.filename]=m.debug_id),delete m.debug_id)})}),Object.keys(t).length===0)return;n.debug_meta=n.debug_meta||{},n.debug_meta.images=n.debug_meta.images||[];const a=n.debug_meta.images;Object.entries(t).forEach(([c,f])=>{a.push({type:"sourcemap",code_file:c,debug_id:f})})}function YT(n,t){t.length>0&&(n.sdk=n.sdk||{},n.sdk.integrations=[...n.sdk.integrations||[],...t])}function KT(n,t,a){var l,c;if(!n)return null;const r={...n,...n.breadcrumbs&&{breadcrumbs:n.breadcrumbs.map(f=>({...f,...f.data&&{data:Vn(f.data,t,a)}}))},...n.user&&{user:Vn(n.user,t,a)},...n.contexts&&{contexts:Vn(n.contexts,t,a)},...n.extra&&{extra:Vn(n.extra,t,a)}};return(l=n.contexts)!=null&&l.trace&&r.contexts&&(r.contexts.trace=n.contexts.trace,n.contexts.trace.data&&(r.contexts.trace.data=Vn(n.contexts.trace.data,t,a))),n.spans&&(r.spans=n.spans.map(f=>({...f,...f.data&&{data:Vn(f.data,t,a)}}))),(c=n.contexts)!=null&&c.flags&&r.contexts&&(r.contexts.flags=Vn(n.contexts.flags,3,a)),r}function XT(n,t){if(!t)return n;const a=n?n.clone():new gn;return a.update(t),a}function $T(n){if(n)return QT(n)?{captureContext:n}:JT(n)?{captureContext:n}:n}function QT(n){return n instanceof gn||typeof n=="function"}const ZT=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function JT(n){return Object.keys(n).some(t=>ZT.includes(t))}function Sl(n,t){return Hn().captureException(n,$T(t))}function Kx(n,t){return Hn().captureEvent(n,t)}function WT(n,t){Si().setContext(n,t)}function c0(n){const t=Si(),{user:a}=Yx(t,Hn()),{userAgent:r}=Oe.navigator||{},l=b_({user:a,...r&&{userAgent:r},...n}),c=t.getSession();return(c==null?void 0:c.status)==="ok"&&Qa(c,{status:"exited"}),Xx(),t.setSession(l),l}function Xx(){const n=Si(),a=Hn().getSession()||n.getSession();a&&S_(a),$x(),n.setSession()}function $x(){const n=Si(),t=gt(),a=n.getSession();a&&t&&t.captureSession(a)}function Tf(n=!1){if(n){Xx();return}$x()}const eE="7";function tE(n){const t=n.protocol?`${n.protocol}:`:"",a=n.port?`:${n.port}`:"";return`${t}//${n.host}${a}${n.path?`/${n.path}`:""}/api/`}function nE(n){return`${tE(n)}${n.projectId}/envelope/`}function iE(n,t){const a={sentry_version:eE};return n.publicKey&&(a.sentry_key=n.publicKey),t&&(a.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(a).toString()}function aE(n,t,a){return t||`${nE(n)}?${iE(n,a)}`}const u0=[];function sE(n){const t={};return n.forEach(a=>{const{name:r}=a,l=t[r];l&&!l.isDefaultInstance&&a.isDefaultInstance||(t[r]=a)}),Object.values(t)}function rE(n){const t=n.defaultIntegrations||[],a=n.integrations;t.forEach(l=>{l.isDefaultInstance=!0});let r;if(Array.isArray(a))r=[...t,...a];else if(typeof a=="function"){const l=a(t);r=Array.isArray(l)?l:[l]}else r=t;return sE(r)}function oE(n,t){const a={};return t.forEach(r=>{r!=null&&r.beforeSetup&&r.beforeSetup(n)}),t.forEach(r=>{r&&Qx(n,r,a)}),a}function f0(n,t){for(const a of t)a!=null&&a.afterAllSetup&&a.afterAllSetup(n)}function Qx(n,t,a){if(a[t.name]){ce&&ae.log(`Integration skipped because it was already installed: ${t.name}`);return}if(a[t.name]=t,!u0.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),u0.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(n),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);n.on("preprocessEvent",(l,c)=>r(l,c,n))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),l=Object.assign((c,f)=>r(c,f,n),{id:t.name});n.addEventProcessor(l)}ce&&ae.log(`Integration installed: ${t.name}`)}function lE(n){return[{type:"log",item_count:n.length,content_type:"application/vnd.sentry.items.log+json"},{items:n}]}function cE(n,t,a,r){const l={};return t!=null&&t.sdk&&(l.sdk={name:t.sdk.name,version:t.sdk.version}),a&&r&&(l.dsn=Nr(r)),as(l,[lE(n)])}function rd(n,t){const a=t??uE(n)??[];if(a.length===0)return;const r=n.getOptions(),l=cE(a,r._metadata,r.tunnel,n.getDsn());Zx().set(n,[]),n.emit("flushLogs"),n.sendEnvelope(l)}function uE(n){return Zx().get(n)}function Zx(){return ts("clientToLogBufferMap",()=>new WeakMap)}function fE(n){return[{type:"trace_metric",item_count:n.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:n}]}function dE(n,t,a,r){const l={};return t!=null&&t.sdk&&(l.sdk={name:t.sdk.name,version:t.sdk.version}),a&&r&&(l.dsn=Nr(r)),as(l,[fE(n)])}function Jx(n,t){const a=t??hE(n)??[];if(a.length===0)return;const r=n.getOptions(),l=dE(a,r._metadata,r.tunnel,n.getDsn());Wx().set(n,[]),n.emit("flushMetrics"),n.sendEnvelope(l)}function hE(n){return Wx().get(n)}function Wx(){return ts("clientToMetricBufferMap",()=>new WeakMap)}function eb(n){return typeof n=="object"&&typeof n.unref=="function"&&n.unref(),n}const Qd=Symbol.for("SentryBufferFullError");function Zd(n=100){const t=new Set;function a(){return t.size<n}function r(f){t.delete(f)}function l(f){if(!a())return $d(Qd);const h=f();return t.add(h),h.then(()=>r(h),()=>r(h)),h}function c(f){if(!t.size)return Dr(!0);const h=Promise.allSettled(Array.from(t)).then(()=>!0);if(!f)return h;const m=[h,new Promise(p=>eb(setTimeout(()=>p(!1),f)))];return Promise.race(m)}return{get $(){return Array.from(t)},add:l,drain:c}}const mE=60*1e3;function pE(n,t=Il()){const a=parseInt(`${n}`,10);if(!isNaN(a))return a*1e3;const r=Date.parse(`${n}`);return isNaN(r)?mE:r-t}function gE(n,t){return n[t]||n.all||0}function yE(n,t,a=Il()){return gE(n,t)>a}function vE(n,{statusCode:t,headers:a},r=Il()){const l={...n},c=a==null?void 0:a["x-sentry-rate-limits"],f=a==null?void 0:a["retry-after"];if(c)for(const h of c.trim().split(",")){const[m,p,,,v]=h.split(":",5),x=parseInt(m,10),S=(isNaN(x)?60:x)*1e3;if(!p)l.all=r+S;else for(const w of p.split(";"))w==="metric_bucket"?(!v||v.split(";").includes("custom"))&&(l[w]=r+S):l[w]=r+S}else f?l.all=r+pE(f,r):t===429&&(l.all=r+60*1e3);return l}const tb=64;function xE(n,t,a=Zd(n.bufferSize||tb)){let r={};const l=f=>a.drain(f);function c(f){const h=[];if(id(f,(x,S)=>{const w=i0(S);yE(r,w)?n.recordDroppedEvent("ratelimit_backoff",w):h.push(x)}),h.length===0)return Promise.resolve({});const m=as(f[0],h),p=x=>{if(ET(m,["client_report"])){ce&&ae.warn(`Dropping client report. Will not send outcomes (reason: ${x}).`);return}id(m,(S,w)=>{n.recordDroppedEvent(x,i0(w))})},v=()=>t({body:AT(m)}).then(x=>x.statusCode===413?(ce&&ae.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),p("send_error"),x):(ce&&x.statusCode!==void 0&&(x.statusCode<200||x.statusCode>=300)&&ae.warn(`Sentry responded with status code ${x.statusCode} to sent event.`),r=vE(r,x),x),x=>{throw p("network_error"),ce&&ae.error("Encountered error running transport request:",x),x});return a.add(v).then(x=>x,x=>{if(x===Qd)return ce&&ae.error("Skipped sending event because buffer is full."),p("queue_overflow"),Promise.resolve({});throw x})}return{send:c,flush:l}}function bE(n,t,a){const r=[{type:"client_report"},{timestamp:Er(),discarded_events:n}];return as(t?{dsn:t}:{},[r])}function nb(n){const t=[];n.message&&t.push(n.message);try{const a=n.exception.values[n.exception.values.length-1];a!=null&&a.value&&(t.push(a.value),a.type&&t.push(`${a.type}: ${a.value}`))}catch{}return t}function SE(n){var m;const{trace_id:t,parent_span_id:a,span_id:r,status:l,origin:c,data:f,op:h}=((m=n.contexts)==null?void 0:m.trace)??{};return{data:f??{},description:n.transaction,op:h,parent_span_id:a,span_id:r??"",start_timestamp:n.start_timestamp??0,status:l,timestamp:n.timestamp,trace_id:t??"",origin:c,profile_id:f==null?void 0:f[zx],exclusive_time:f==null?void 0:f[Vx],measurements:n.measurements,is_segment:!0}}function wE(n){return{type:"transaction",timestamp:n.timestamp,start_timestamp:n.start_timestamp,transaction:n.description,contexts:{trace:{trace_id:n.trace_id,span_id:n.span_id,parent_span_id:n.parent_span_id,op:n.op,status:n.status,origin:n.origin,data:{...n.data,...n.profile_id&&{[zx]:n.profile_id},...n.exclusive_time&&{[Vx]:n.exclusive_time}}}},measurements:n.measurements}}const d0="Not capturing exception because it's already been captured.",h0="Discarded session because of missing or non-string release",ib=Symbol.for("SentryInternalError"),ab=Symbol.for("SentryDoNotSendEventError"),_E=5e3;function ll(n){return{message:n,[ib]:!0}}function Ef(n){return{message:n,[ab]:!0}}function m0(n){return!!n&&typeof n=="object"&&ib in n}function p0(n){return!!n&&typeof n=="object"&&ab in n}function g0(n,t,a,r,l){let c=0,f,h=!1;n.on(a,()=>{c=0,clearTimeout(f),h=!1}),n.on(t,m=>{c+=r(m),c>=8e5?l(n):h||(h=!0,f=eb(setTimeout(()=>{l(n)},_E)))}),n.on("flush",()=>{l(n)})}class TE{constructor(t){var r,l,c;if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Zd(((r=t.transportOptions)==null?void 0:r.bufferSize)??tb),t.dsn?this._dsn=tT(t.dsn):ce&&ae.warn("No DSN provided, client will not send events."),this._dsn){const f=aE(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:f})}this._options.enableLogs=this._options.enableLogs??((l=this._options._experiments)==null?void 0:l.enableLogs),this._options.enableLogs&&g0(this,"afterCaptureLog","flushLogs",DE,rd),(this._options.enableMetrics??((c=this._options._experiments)==null?void 0:c.enableMetrics)??!0)&&g0(this,"afterCaptureMetric","flushMetrics",NE,Jx)}captureException(t,a,r){const l=Jt();if(qy(t))return ce&&ae.log(d0),l;const c={event_id:l,...a};return this._process(()=>this.eventFromException(t,c).then(f=>this._captureEvent(f,c,r)).then(f=>f),"error"),c.event_id}captureMessage(t,a,r,l){const c={event_id:Jt(),...r},f=Id(t)?t:String(t),h=Hl(t),m=h?this.eventFromMessage(f,a,c):this.eventFromException(t,c);return this._process(()=>m.then(p=>this._captureEvent(p,c,l)),h?"unknown":"error"),c.event_id}captureEvent(t,a,r){const l=Jt();if(a!=null&&a.originalException&&qy(a.originalException))return ce&&ae.log(d0),l;const c={event_id:l,...a},f=t.sdkProcessingMetadata||{},h=f.capturedSpanScope,m=f.capturedSpanIsolationScope,p=y0(t.type);return this._process(()=>this._captureEvent(t,c,h||r,m),p),c.event_id}captureSession(t){this.sendSession(t),Qa(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const a=this._transport;if(!a)return!0;this.emit("flush");const r=await this._isClientDoneProcessing(t),l=await a.flush(t);return r&&l}async close(t){rd(this);const a=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),a}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const a=this._integrations[t.name];!a&&t.beforeSetup&&t.beforeSetup(this),Qx(this,t,this._integrations),a||f0(this,[t])}sendEvent(t,a={}){this.emit("beforeSendEvent",t,a);let r=RT(t,this._dsn,this._options._metadata,this._options.tunnel);for(const l of a.attachments||[])r=TT(r,DT(l));this.sendEnvelope(r).then(l=>this.emit("afterSendEvent",t,l))}sendSession(t){const{release:a,environment:r=Xd}=this._options;if("aggregates"in t){const c=t.attrs||{};if(!c.release&&!a){ce&&ae.warn(h0);return}c.release=c.release||a,c.environment=c.environment||r,t.attrs=c}else{if(!t.release&&!a){ce&&ae.warn(h0);return}t.release=t.release||a,t.environment=t.environment||r}this.emit("beforeSendSession",t);const l=OT(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(l)}recordDroppedEvent(t,a,r=1){if(this._options.sendClientReports){const l=`${t}:${a}`;ce&&ae.log(`Recording outcome: "${l}"${r>1?` (${r} times)`:""}`),this._outcomes[l]=(this._outcomes[l]||0)+r}}on(t,a){const r=this._hooks[t]=this._hooks[t]||new Set,l=(...c)=>a(...c);return r.add(l),()=>{r.delete(l)}}emit(t,...a){const r=this._hooks[t];r&&r.forEach(l=>l(...a))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(a){return ce&&ae.error("Error while sending envelope:",a),{}}return ce&&ae.error("Transport disabled"),{}}dispose(){}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=oE(this,t),f0(this,t)}_updateSessionFromEvent(t,a){var m,p;let r=a.level==="fatal",l=!1;const c=(m=a.exception)==null?void 0:m.values;if(c){l=!0,r=!1;for(const v of c)if(((p=v.mechanism)==null?void 0:p.handled)===!1){r=!0;break}}const f=t.status==="ok";(f&&t.errors===0||f&&r)&&(Qa(t,{...r&&{status:"crashed"},errors:t.errors||Number(l||r)}),this.captureSession(t))}async _isClientDoneProcessing(t){let a=0;for(;!t||a<t;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;a++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,a,r,l){const c=this.getOptions(),f=Object.keys(this._integrations);return!a.integrations&&(f!=null&&f.length)&&(a.integrations=f),this.emit("preprocessEvent",t,a),t.type||l.setLastEventId(t.event_id||a.event_id),qT(c,t,a,r,this,l).then(h=>{var p;if(h===null)return h;this.emit("postprocessEvent",h,a),h.contexts={trace:{...(p=h.contexts)==null?void 0:p.trace,...k_(r)},...h.contexts};const m=gT(this,r);return h.sdkProcessingMetadata={dynamicSamplingContext:m,...h.sdkProcessingMetadata},h})}_captureEvent(t,a={},r=Hn(),l=Si()){return ce&&od(t)&&ae.log(`Captured error event \`${nb(t)[0]||"<unknown>"}\``),this._processEvent(t,a,r,l).then(c=>c.event_id,c=>{ce&&(p0(c)?ae.log(c.message):m0(c)?ae.warn(c.message):ae.warn(c))})}_processEvent(t,a,r,l){const c=this.getOptions(),{sampleRate:f}=c,h=sb(t),m=od(t),v=`before send for type \`${t.type||"error"}\``,x=typeof f>"u"?void 0:nT(f);if(m&&typeof x=="number"&&bl()>x)return this.recordDroppedEvent("sample_rate","error"),$d(Ef(`Discarding event because it's not included in the random sample (sampling rate = ${f})`));const S=y0(t.type);return this._prepareEvent(t,a,r,l).then(w=>{var z;if(w===null)throw this.recordDroppedEvent("event_processor",S),Ef("An event processor returned `null`, will not send event.");if(((z=a.data)==null?void 0:z.__sentry__)===!0)return w;const k=AE(this,c,w,a);return EE(k,v)}).then(w=>{var z;if(w===null){if(this.recordDroppedEvent("before_send",S),h){const q=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",q)}throw Ef(`${v} returned \`null\`, will not send event.`)}const T=r.getSession()||l.getSession();if(m&&T&&this._updateSessionFromEvent(T,w),h){const B=((z=w.sdkProcessingMetadata)==null?void 0:z.spanCountBeforeProcessing)||0,q=w.spans?w.spans.length:0,P=B-q;P>0&&this.recordDroppedEvent("before_send","span",P)}const k=w.transaction_info;if(h&&k&&w.transaction!==t.transaction){const B="custom";w.transaction_info={...k,source:B}}return this.sendEvent(w,a),w}).then(null,w=>{throw p0(w)||m0(w)?w:(this.captureException(w,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:w}),ll(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
||
Reason: ${w}`))})}_process(t,a){this._numProcessing++,this._promiseBuffer.add(t).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===Qd&&this.recordDroppedEvent("queue_overflow",a),r))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([a,r])=>{const[l,c]=a.split(":");return{reason:l,category:c,quantity:r}})}_flushOutcomes(){ce&&ae.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){ce&&ae.log("No outcomes to send");return}if(!this._dsn){ce&&ae.log("No dsn provided, will not send outcomes");return}ce&&ae.log("Sending outcomes:",t);const a=bE(t,this._options.tunnel&&Nr(this._dsn));this.sendEnvelope(a)}}function y0(n){return n==="replay_event"?"replay":n||"error"}function EE(n,t){const a=`${t} must return \`null\` or a valid event.`;if(Tr(n))return n.then(r=>{if(!gr(r)&&r!==null)throw ll(a);return r},r=>{throw ll(`${t} rejected with ${r}`)});if(!gr(n)&&n!==null)throw ll(a);return n}function AE(n,t,a,r){const{beforeSend:l,beforeSendTransaction:c,ignoreSpans:f}=t,h=!vT(t.beforeSendSpan)&&t.beforeSendSpan;let m=a;if(od(m)&&l)return l(m,r);if(sb(m)){if(h||f){const p=SE(m);if(f!=null&&f.length&&n0(p,f))return null;if(h){const v=h(p);v?m=Ar(a,wE(v)):e0()}if(m.spans){const v=[],x=m.spans;for(const w of x){if(f!=null&&f.length&&n0(w,f)){hT(x,w);continue}if(h){const T=h(w);T?v.push(T):(e0(),v.push(w))}else v.push(w)}const S=m.spans.length-v.length;S&&n.recordDroppedEvent("before_send","span",S),m.spans=v}}if(c){if(m.spans){const p=m.spans.length;m.sdkProcessingMetadata={...a.sdkProcessingMetadata,spanCountBeforeProcessing:p}}return c(m,r)}}return m}function od(n){return n.type===void 0}function sb(n){return n.type==="transaction"}function NE(n){let t=0;return n.name&&(t+=n.name.length*2),t+=8,t+rb(n.attributes)}function DE(n){let t=0;return n.message&&(t+=n.message.length*2),t+rb(n.attributes)}function rb(n){if(!n)return 0;let t=0;return Object.values(n).forEach(a=>{Array.isArray(a)?t+=a.length*v0(a[0]):Hl(a)?t+=v0(a):t+=100}),t}function v0(n){return typeof n=="string"?n.length*2:typeof n=="number"?8:typeof n=="boolean"?4:0}function jE(n){return Ul(n)&&"__sentry_fetch_url_host__"in n&&typeof n.__sentry_fetch_url_host__=="string"}function x0(n){return jE(n)?`${n.message} (${n.__sentry_fetch_url_host__})`:n.message}function CE(n,t){t.debug===!0&&(ce?ae.enable():ns(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Hn().update(t.initialScope);const r=new n(t);return ME(r),r.init(),r}function ME(n){Hn().setClient(n)}function Af(n){if(!n)return{};const t=n.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const a=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:a,hash:r,relative:t[5]+a+r}}function OE(n,t=!0){if(n.startsWith("data:")){const a=n.match(/^data:([^;,]+)/),r=a?a[1]:"text/plain",l=n.includes(";base64,"),c=n.indexOf(",");let f="";if(t&&c!==-1){const h=n.slice(c+1);f=h.length>10?`${h.slice(0,10)}... [truncated]`:h}return`data:${r}${l?",base64":""}${f?`,${f}`:""}`}return n}function RE(n){var t;"aggregates"in n?((t=n.attrs)==null?void 0:t.ip_address)===void 0&&(n.attrs={...n.attrs,ip_address:"{{auto}}"}):n.ipAddress===void 0&&(n.ipAddress="{{auto}}")}function ob(n,t,a=[t],r="npm"){const l=(n._metadata=n._metadata||{}).sdk=n._metadata.sdk||{};l.name||(l.name=`sentry.javascript.${t}`,l.packages=a.map(c=>({name:`${r}:@sentry/${c}`,version:Xi})),l.version=Xi)}const kE=100;function Ji(n,t){const a=gt(),r=Si();if(!a)return;const{beforeBreadcrumb:l=null,maxBreadcrumbs:c=kE}=a.getOptions();if(c<=0)return;const h={timestamp:Er(),...n},m=l?ns(()=>l(h,t)):h;m!==null&&(a.emit&&a.emit("beforeAddBreadcrumb",m,t),r.addBreadcrumb(m,c))}let b0;const LE="FunctionToString",S0=new WeakMap,zE=(()=>({name:LE,setupOnce(){b0=Function.prototype.toString;try{Function.prototype.toString=function(...n){const t=Yd(this),a=S0.has(gt())&&t!==void 0?t:this;return b0.apply(a,n)}}catch{}},setup(n){S0.set(n,!0)}})),VE=zE,BE=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],UE="EventFilters",HE=(n={})=>{let t;return{name:UE,setup(a){const r=a.getOptions();t=w0(n,r)},processEvent(a,r,l){if(!t){const c=l.getOptions();t=w0(n,c)}return qE(a,t)?null:a}}},PE=((n={})=>({...HE(n),name:"InboundFilters"}));function w0(n={},t={}){return{allowUrls:[...n.allowUrls||[],...t.allowUrls||[]],denyUrls:[...n.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...n.ignoreErrors||[],...t.ignoreErrors||[],...n.disableErrorDefaults?[]:BE],ignoreTransactions:[...n.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function qE(n,t){if(n.type){if(n.type==="transaction"&&FE(n,t.ignoreTransactions))return ce&&ae.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
||
Event: ${Gi(n)}`),!0}else{if(IE(n,t.ignoreErrors))return ce&&ae.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
||
Event: ${Gi(n)}`),!0;if(XE(n))return ce&&ae.warn(`Event dropped due to not having an error message, error type or stacktrace.
|
||
Event: ${Gi(n)}`),!0;if(GE(n,t.denyUrls))return ce&&ae.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
||
Event: ${Gi(n)}.
|
||
Url: ${wl(n)}`),!0;if(!YE(n,t.allowUrls))return ce&&ae.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
||
Event: ${Gi(n)}.
|
||
Url: ${wl(n)}`),!0}return!1}function IE(n,t){return t!=null&&t.length?nb(n).some(a=>Fl(a,t)):!1}function FE(n,t){if(!(t!=null&&t.length))return!1;const a=n.transaction;return a?Fl(a,t):!1}function GE(n,t){if(!(t!=null&&t.length))return!1;const a=wl(n);return a?Fl(a,t):!1}function YE(n,t){if(!(t!=null&&t.length))return!0;const a=wl(n);return a?Fl(a,t):!0}function KE(n=[]){for(let t=n.length-1;t>=0;t--){const a=n[t];if(a&&a.filename!=="<anonymous>"&&a.filename!=="[native code]")return a.filename||null}return null}function wl(n){var t,a;try{const r=[...((t=n.exception)==null?void 0:t.values)??[]].reverse().find(c=>{var f,h,m;return((f=c.mechanism)==null?void 0:f.parent_id)===void 0&&((m=(h=c.stacktrace)==null?void 0:h.frames)==null?void 0:m.length)}),l=(a=r==null?void 0:r.stacktrace)==null?void 0:a.frames;return l?KE(l):null}catch{return ce&&ae.error(`Cannot extract url for event ${Gi(n)}`),null}}function XE(n){var t,a;return(a=(t=n.exception)==null?void 0:t.values)!=null&&a.length?!n.message&&!n.exception.values.some(r=>r.stacktrace||r.type&&r.type!=="Error"||r.value):!1}function $E(n,t,a,r,l,c){var h;if(!((h=l.exception)!=null&&h.values)||!c||!yi(c.originalException,Error))return;const f=l.exception.values.length>0?l.exception.values[l.exception.values.length-1]:void 0;f&&(l.exception.values=ld(n,t,r,c.originalException,a,l.exception.values,f,0))}function ld(n,t,a,r,l,c,f,h){if(c.length>=a+1)return c;let m=[...c];if(yi(r[l],Error)){_0(f,h,r);const p=n(t,r[l]),v=m.length;T0(p,l,v,h),m=ld(n,t,a,r[l],l,[p,...m],p,v)}return lb(r)&&r.errors.forEach((p,v)=>{if(yi(p,Error)){_0(f,h,r);const x=n(t,p),S=m.length;T0(x,`errors[${v}]`,S,h),m=ld(n,t,a,p,l,[x,...m],x,S)}}),m}function lb(n){return Array.isArray(n.errors)}function _0(n,t,a){n.mechanism={handled:!0,type:"auto.core.linked_errors",...lb(a)&&{is_exception_group:!0},...n.mechanism,exception_id:t}}function T0(n,t,a,r){n.mechanism={handled:!0,...n.mechanism,type:"chained",source:t,exception_id:a,parent_id:r}}function QE(n){const t="console";ea(t,n),ta(t,ZE)}function ZE(){"console"in Oe&&$w.forEach(function(n){n in Oe.console&&Ut(Oe.console,n,function(t){return xl[n]=t,function(...a){rn("console",{args:a,level:n});const l=xl[n];l==null||l.apply(Oe.console,a)}})})}function JE(n){return n==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(n)?n:"log"}const WE="Dedupe",eA=(()=>{let n;return{name:WE,processEvent(t){if(t.type)return t;try{if(nA(t,n))return ce&&ae.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return n=t}}}),tA=eA;function nA(n,t){return t?!!(iA(n,t)||aA(n,t)):!1}function iA(n,t){const a=n.message,r=t.message;return!(!a&&!r||a&&!r||!a&&r||a!==r||!ub(n,t)||!cb(n,t))}function aA(n,t){const a=E0(t),r=E0(n);return!(!a||!r||a.type!==r.type||a.value!==r.value||!ub(n,t)||!cb(n,t))}function cb(n,t){let a=zy(n),r=zy(t);if(!a&&!r)return!0;if(a&&!r||!a&&r||(a=a,r=r,r.length!==a.length))return!1;for(let l=0;l<r.length;l++){const c=r[l],f=a[l];if(c.filename!==f.filename||c.lineno!==f.lineno||c.colno!==f.colno||c.function!==f.function)return!1}return!0}function ub(n,t){let a=n.fingerprint,r=t.fingerprint;if(!a&&!r)return!0;if(a&&!r||!a&&r)return!1;a=a,r=r;try{return a.join("")===r.join("")}catch{return!1}}function E0(n){var t,a;return(a=(t=n.exception)==null?void 0:t.values)==null?void 0:a[0]}const sA="ConversationId",rA=(()=>({name:sA,setup(n){n.on("spanStart",t=>{const a=Hn().getScopeData(),r=Si().getScopeData(),l=a.conversationId||r.conversationId;if(l){const{op:c,data:f,description:h}=Gl(t);if(!(c!=null&&c.startsWith("gen_ai."))&&!f["ai.operationId"]&&!(h!=null&&h.startsWith("ai.")))return;t.setAttribute(H_,l)}})}})),oA=rA;function fb(n){if(n!==void 0)return n>=400&&n<500?"warning":n>=500?"error":void 0}const vr=Oe;function lA(){return"history"in vr&&!!vr.history}function cA(){if(!("fetch"in vr))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function cd(n){return n&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(n.toString())}function uA(){var a;if(typeof EdgeRuntime=="string")return!0;if(!cA())return!1;if(cd(vr.fetch))return!0;let n=!1;const t=vr.document;if(t&&typeof t.createElement=="function")try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),(a=r.contentWindow)!=null&&a.fetch&&(n=cd(r.contentWindow.fetch)),t.head.removeChild(r)}catch(r){ce&&ae.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return n}function fA(n,t){const a="fetch";ea(a,n),ta(a,()=>dA(void 0,t))}function dA(n,t=!1){t&&!uA()||Ut(Oe,"fetch",function(a){return function(...r){const l=new Error,{method:c,url:f}=hA(r),h={args:r,fetchData:{method:c,url:f},startTimestamp:Un()*1e3,virtualError:l,headers:mA(r)};return rn("fetch",{...h}),a.apply(Oe,r).then(async m=>(rn("fetch",{...h,endTimestamp:Un()*1e3,response:m}),m),m=>{rn("fetch",{...h,endTimestamp:Un()*1e3,error:m}),Ul(m)&&m.stack===void 0&&(m.stack=l.stack,vi(m,"framesToPop",1));const p=gt(),v=(p==null?void 0:p.getOptions().enhanceFetchErrorMessages)??"always";if(v!==!1&&m instanceof TypeError&&(m.message==="Failed to fetch"||m.message==="Load failed"||m.message==="NetworkError when attempting to fetch resource."))try{const w=new URL(h.fetchData.url).host;v==="always"?m.message=`${m.message} (${w})`:vi(m,"__sentry_fetch_url_host__",w)}catch{}throw m})}})}function cl(n,t){return!!n&&typeof n=="object"&&!!n[t]}function A0(n){return typeof n=="string"?n:n?cl(n,"url")?n.url:n.toString?n.toString():"":""}function hA(n){if(n.length===0)return{method:"GET",url:""};if(n.length===2){const[a,r]=n;return{url:A0(a),method:cl(r,"method")?String(r.method).toUpperCase():Dx(a)&&cl(a,"method")?String(a.method).toUpperCase():"GET"}}const t=n[0];return{url:A0(t),method:cl(t,"method")?String(t.method).toUpperCase():"GET"}}function mA(n){const[t,a]=n;try{if(typeof a=="object"&&a!==null&&"headers"in a&&a.headers)return new Headers(a.headers);if(Dx(t))return new Headers(t.headers)}catch{}}function pA(){return"npm"}const Ke=Oe;let ud=0;function db(){return ud>0}function gA(){ud++,setTimeout(()=>{ud--})}function Ja(n,t={}){function a(l){return typeof l=="function"}if(!a(n))return n;try{const l=n.__sentry_wrapped__;if(l)return typeof l=="function"?l:n;if(Yd(n))return n}catch{return n}const r=function(...l){try{const c=l.map(f=>Ja(f,t));return n.apply(this,c)}catch(c){throw gA(),R_(f=>{f.addEventProcessor(h=>(t.mechanism&&(ed(h,void 0),$a(h,t.mechanism)),h.extra={...h.extra,arguments:l},h)),Sl(c)}),c}};try{for(const l in n)Object.prototype.hasOwnProperty.call(n,l)&&(r[l]=n[l])}catch{}Cx(r,n),vi(n,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return n.name}})}catch{}return r}function yA(){const n=Gd(),{referrer:t}=Ke.document||{},{userAgent:a}=Ke.navigator||{},r={...t&&{Referer:t},...a&&{"User-Agent":a}};return{url:n,headers:r}}function Jd(n,t){const a=Wd(n,t),r={type:wA(t),value:_A(t)};return a.length&&(r.stacktrace={frames:a}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function vA(n,t,a,r){const l=gt(),c=l==null?void 0:l.getOptions().normalizeDepth,f=DA(t),h={__serialized__:Ix(t,c)};if(f)return{exception:{values:[Jd(n,f)]},extra:h};const m={exception:{values:[{type:Pl(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:AA(t,{isUnhandledRejection:r})}]},extra:h};if(a){const p=Wd(n,a);p.length&&(m.exception.values[0].stacktrace={frames:p})}return m}function Nf(n,t){return{exception:{values:[Jd(n,t)]}}}function Wd(n,t){const a=t.stacktrace||t.stack||"",r=bA(t),l=SA(t);try{return n(a,r,l)}catch{}return[]}const xA=/Minified React error #\d+;/i;function bA(n){return n&&xA.test(n.message)?1:0}function SA(n){return typeof n.framesToPop=="number"?n.framesToPop:0}function hb(n){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?n instanceof WebAssembly.Exception:!1}function wA(n){const t=n==null?void 0:n.name;return!t&&hb(n)?n.message&&Array.isArray(n.message)&&n.message.length==2?n.message[0]:"WebAssembly.Exception":t}function _A(n){const t=n==null?void 0:n.message;return hb(n)?Array.isArray(n.message)&&n.message.length==2?n.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?x0(t.error):x0(n):"No error message"}function TA(n,t,a,r){const l=(a==null?void 0:a.syntheticException)||void 0,c=eh(n,t,l,r);return $a(c),c.level="error",a!=null&&a.event_id&&(c.event_id=a.event_id),Dr(c)}function EA(n,t,a="info",r,l){const c=(r==null?void 0:r.syntheticException)||void 0,f=fd(n,t,c,l);return f.level=a,r!=null&&r.event_id&&(f.event_id=r.event_id),Dr(f)}function eh(n,t,a,r,l){let c;if(Ax(t)&&t.error)return Nf(n,t.error);if(By(t)||l_(t)){const f=t;if("stack"in t)c=Nf(n,t);else{const h=f.name||(By(f)?"DOMError":"DOMException"),m=f.message?`${h}: ${f.message}`:h;c=fd(n,m,a,r),ed(c,m)}return"code"in f&&(c.tags={...c.tags,"DOMException.code":`${f.code}`}),c}return Ul(t)?Nf(n,t):gr(t)||Pl(t)?(c=vA(n,t,a,l),$a(c,{synthetic:!0}),c):(c=fd(n,t,a,r),ed(c,`${t}`),$a(c,{synthetic:!0}),c)}function fd(n,t,a,r){const l={};if(r&&a){const c=Wd(n,a);c.length&&(l.exception={values:[{value:t,stacktrace:{frames:c}}]}),$a(l,{synthetic:!0})}if(Id(t)){const{__sentry_template_string__:c,__sentry_template_values__:f}=t;return l.logentry={message:c,params:f},l}return l.message=t,l}function AA(n,{isUnhandledRejection:t}){const a=p_(n),r=t?"promise rejection":"exception";return Ax(n)?`Event \`ErrorEvent\` captured as ${r} with message \`${n.message}\``:Pl(n)?`Event \`${NA(n)}\` (type=${n.type}) captured as ${r}`:`Object captured as ${r} with keys: ${a}`}function NA(n){try{const t=Object.getPrototypeOf(n);return t?t.constructor.name:void 0}catch{}}function DA(n){return Object.values(n).find(t=>t instanceof Error)}class jA extends TE{constructor(t){var v;const a=CA(t),r=Ke.SENTRY_SDK_SOURCE||pA();ob(a,"browser",["browser"],r),(v=a._metadata)!=null&&v.sdk&&(a._metadata.sdk.settings={infer_ip:a.sendDefaultPii?"auto":"never",...a._metadata.sdk.settings}),super(a);const{sendDefaultPii:l,sendClientReports:c,enableLogs:f,_experiments:h,enableMetrics:m}=this._options,p=m??(h==null?void 0:h.enableMetrics)??!0;Ke.document&&(c||f||p)&&Ke.document.addEventListener("visibilitychange",()=>{Ke.document.visibilityState==="hidden"&&(c&&this._flushOutcomes(),f&&rd(this),p&&Jx(this))}),l&&this.on("beforeSendSession",RE)}eventFromException(t,a){return TA(this._options.stackParser,t,a,this._options.attachStacktrace)}eventFromMessage(t,a="info",r){return EA(this._options.stackParser,t,a,r,this._options.attachStacktrace)}_prepareEvent(t,a,r,l){return t.platform=t.platform||"javascript",super._prepareEvent(t,a,r,l)}}function CA(n){var t;return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(t=Ke.SENTRY_RELEASE)==null?void 0:t.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...n}}const MA=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,xt=Oe,OA=1e3;let N0,dd,hd;function RA(n){ea("dom",n),ta("dom",kA)}function kA(){if(!xt.document)return;const n=rn.bind(null,"dom"),t=D0(n,!0);xt.document.addEventListener("click",t,!1),xt.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(a=>{var c,f;const l=(c=xt[a])==null?void 0:c.prototype;(f=l==null?void 0:l.hasOwnProperty)!=null&&f.call(l,"addEventListener")&&(Ut(l,"addEventListener",function(h){return function(m,p,v){if(m==="click"||m=="keypress")try{const x=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},S=x[m]=x[m]||{refCount:0};if(!S.handler){const w=D0(n);S.handler=w,h.call(this,m,w,v)}S.refCount++}catch{}return h.call(this,m,p,v)}}),Ut(l,"removeEventListener",function(h){return function(m,p,v){if(m==="click"||m=="keypress")try{const x=this.__sentry_instrumentation_handlers__||{},S=x[m];S&&(S.refCount--,S.refCount<=0&&(h.call(this,m,S.handler,v),S.handler=void 0,delete x[m]),Object.keys(x).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return h.call(this,m,p,v)}}))})}function LA(n){if(n.type!==dd)return!1;try{if(!n.target||n.target._sentryId!==hd)return!1}catch{}return!0}function zA(n,t){return n!=="keypress"?!1:t!=null&&t.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function D0(n,t=!1){return a=>{if(!a||a._sentryCaptured)return;const r=VA(a);if(zA(a.type,r))return;vi(a,"_sentryCaptured",!0),r&&!r._sentryId&&vi(r,"_sentryId",Jt());const l=a.type==="keypress"?"input":a.type;LA(a)||(n({event:a,name:l,global:t}),dd=a.type,hd=r?r._sentryId:void 0),clearTimeout(N0),N0=xt.setTimeout(()=>{hd=void 0,dd=void 0},OA)}}function VA(n){try{return n.target}catch{return null}}let Wo;function mb(n){const t="history";ea(t,n),ta(t,BA)}function BA(){if(xt.addEventListener("popstate",()=>{const t=xt.location.href,a=Wo;if(Wo=t,a===t)return;rn("history",{from:a,to:t})}),!lA())return;function n(t){return function(...a){const r=a.length>2?a[2]:void 0;if(r){const l=Wo,c=UA(String(r));if(Wo=c,l===c)return t.apply(this,a);rn("history",{from:l,to:c})}return t.apply(this,a)}}Ut(xt.history,"pushState",n),Ut(xt.history,"replaceState",n)}function UA(n){try{return new URL(n,xt.location.origin).toString()}catch{return n}}const ul={};function HA(n){const t=ul[n];if(t)return t;let a=xt[n];if(cd(a))return ul[n]=a.bind(xt);const r=xt.document;if(r&&typeof r.createElement=="function")try{const l=r.createElement("iframe");l.hidden=!0,r.head.appendChild(l);const c=l.contentWindow;c!=null&&c[n]&&(a=c[n]),r.head.removeChild(l)}catch(l){MA&&ae.warn(`Could not create sandbox iframe for ${n} check, bailing to window.${n}: `,l)}return a&&(ul[n]=a.bind(xt))}function PA(n){ul[n]=void 0}const or="__sentry_xhr_v3__";function qA(n){ea("xhr",n),ta("xhr",IA)}function IA(){if(!xt.XMLHttpRequest)return;const n=XMLHttpRequest.prototype;n.open=new Proxy(n.open,{apply(t,a,r){const l=new Error,c=Un()*1e3,f=Bn(r[0])?r[0].toUpperCase():void 0,h=FA(r[1]);if(!f||!h)return t.apply(a,r);a[or]={method:f,url:h,request_headers:{}},f==="POST"&&h.match(/sentry_key/)&&(a.__sentry_own_request__=!0);const m=()=>{const p=a[or];if(p&&a.readyState===4){try{p.status_code=a.status}catch{}const v={endTimestamp:Un()*1e3,startTimestamp:c,xhr:a,virtualError:l};rn("xhr",v)}};return"onreadystatechange"in a&&typeof a.onreadystatechange=="function"?a.onreadystatechange=new Proxy(a.onreadystatechange,{apply(p,v,x){return m(),p.apply(v,x)}}):a.addEventListener("readystatechange",m),a.setRequestHeader=new Proxy(a.setRequestHeader,{apply(p,v,x){const[S,w]=x,T=v[or];return T&&Bn(S)&&Bn(w)&&(T.request_headers[S.toLowerCase()]=w),p.apply(v,x)}}),t.apply(a,r)}}),n.send=new Proxy(n.send,{apply(t,a,r){const l=a[or];if(!l)return t.apply(a,r);r[0]!==void 0&&(l.body=r[0]);const c={startTimestamp:Un()*1e3,xhr:a};return rn("xhr",c),t.apply(a,r)}})}function FA(n){if(Bn(n))return n;try{return n.toString()}catch{}}const GA=40;function YA(n,t=HA("fetch")){let a=0,r=0;async function l(c){const f=c.body.length;a+=f,r++;const h={body:c.body,method:"POST",referrerPolicy:"strict-origin",headers:n.headers,keepalive:a<=6e4&&r<15,...n.fetchOptions};try{const m=await t(n.url,h);return{statusCode:m.status,headers:{"x-sentry-rate-limits":m.headers.get("X-Sentry-Rate-Limits"),"retry-after":m.headers.get("Retry-After")}}}catch(m){throw PA("fetch"),m}finally{a-=f,r--}}return xE(n,l,Zd(n.bufferSize||GA))}const Yl=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,KA=30,XA=50;function md(n,t,a,r){const l={filename:n,function:t==="<anonymous>"?Zi:t,in_app:!0};return a!==void 0&&(l.lineno=a),r!==void 0&&(l.colno=r),l}const $A=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,QA=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ZA=/\((\S*)(?::(\d+))(?::(\d+))\)/,JA=/at (.+?) ?\(data:(.+?),/,WA=n=>{var l;const t=n.match(JA);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const a=$A.exec(n);if(a){const[,c,f,h]=a;return md(c,Zi,+f,+h)}const r=QA.exec(n);if(r){if(((l=r[2])==null?void 0:l.indexOf("eval"))===0){const m=ZA.exec(r[2]);m&&(r[2]=m[1],r[3]=m[2],r[4]=m[3])}const[f,h]=pb(r[1]||Zi,r[2]);return md(h,f,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},eN=[KA,WA],tN=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,nN=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,iN=n=>{const t=tN.exec(n);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const c=nN.exec(t[3]);c&&(t[1]=t[1]||"eval",t[3]=c[1],t[4]=c[2],t[5]="")}let r=t[3],l=t[1]||Zi;return[l,r]=pb(l,r),md(r,l,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},aN=[XA,iN],sN=[eN,aN],rN=_x(...sN),pb=(n,t)=>{const a=n.indexOf("safari-extension")!==-1,r=n.indexOf("safari-web-extension")!==-1;return a||r?[n.indexOf("@")!==-1?n.split("@")[0]:Zi,a?`safari-extension:${t}`:`safari-web-extension:${t}`]:[n,t]},el=1024,oN="Breadcrumbs",lN=((n={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...n};return{name:oN,setup(a){t.console&&QE(dN(a)),t.dom&&RA(fN(a,t.dom)),t.xhr&&qA(hN(a)),t.fetch&&fA(mN(a)),t.history&&mb(pN(a)),t.sentry&&a.on("beforeSendEvent",uN(a))}}}),cN=lN;function uN(n){return function(a){gt()===n&&Ji({category:`sentry.${a.type==="transaction"?"transaction":"event"}`,event_id:a.event_id,level:a.level,message:Gi(a)},{event:a})}}function fN(n,t){return function(r){if(gt()!==n)return;let l,c,f=typeof t=="object"?t.serializeAttribute:void 0,h=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;h&&h>el&&(Yl&&ae.warn(`\`dom.maxStringLength\` cannot exceed ${el}, but a value of ${h} was configured. Sentry will use ${el} instead.`),h=el),typeof f=="string"&&(f=[f]);try{const p=r.event,v=gN(p)?p.target:p;l=jx(v,{keyAttrs:f,maxStringLength:h}),c=m_(v)}catch{l="<unknown>"}if(l.length===0)return;const m={category:`ui.${r.name}`,message:l};c&&(m.data={"ui.component_name":c}),Ji(m,{event:r.event,name:r.name,global:r.global})}}function dN(n){return function(a){if(gt()!==n)return;const r={category:"console",data:{arguments:a.args,logger:"console"},level:JE(a.level),message:Py(a.args," ")};if(a.level==="assert")if(a.args[0]===!1)r.message=`Assertion failed: ${Py(a.args.slice(1)," ")||"console.assert"}`,r.data.arguments=a.args.slice(1);else return;Ji(r,{input:a.args,level:a.level})}}function hN(n){return function(a){if(gt()!==n)return;const{startTimestamp:r,endTimestamp:l}=a,c=a.xhr[or];if(!r||!l||!c)return;const{method:f,url:h,status_code:m,body:p}=c,v={method:f,url:h,status_code:m},x={xhr:a.xhr,input:p,startTimestamp:r,endTimestamp:l},S={category:"xhr",data:v,type:"http",level:fb(m)};n.emit("beforeOutgoingRequestBreadcrumb",S,x),Ji(S,x)}}function mN(n){return function(a){if(gt()!==n)return;const{startTimestamp:r,endTimestamp:l}=a;if(l&&!(a.fetchData.url.match(/sentry_key/)&&a.fetchData.method==="POST"))if(a.error){const c={data:a.error,input:a.args,startTimestamp:r,endTimestamp:l},f={category:"fetch",data:a.fetchData,level:"error",type:"http"};n.emit("beforeOutgoingRequestBreadcrumb",f,c),Ji(f,c)}else{const c=a.response,f={...a.fetchData,status_code:c==null?void 0:c.status},h={input:a.args,response:c,startTimestamp:r,endTimestamp:l},m={category:"fetch",data:f,type:"http",level:fb(f.status_code)};n.emit("beforeOutgoingRequestBreadcrumb",m,h),Ji(m,h)}}}function pN(n){return function(a){if(gt()!==n)return;let r=a.from,l=a.to;const c=Af(Ke.location.href);let f=r?Af(r):void 0;const h=Af(l);f!=null&&f.path||(f=c),c.protocol===h.protocol&&c.host===h.host&&(l=h.relative),c.protocol===f.protocol&&c.host===f.host&&(r=f.relative),Ji({category:"navigation",data:{from:r,to:l}})}}function gN(n){return!!n&&!!n.target}const yN="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(","),vN="BrowserApiErrors",xN=((n={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...n};return{name:vN,setupOnce(){t.setTimeout&&Ut(Ke,"setTimeout",j0),t.setInterval&&Ut(Ke,"setInterval",j0),t.requestAnimationFrame&&Ut(Ke,"requestAnimationFrame",SN),t.XMLHttpRequest&&"XMLHttpRequest"in Ke&&Ut(XMLHttpRequest.prototype,"send",wN);const a=t.eventTarget;a&&(Array.isArray(a)?a:yN).forEach(l=>_N(l,t))}}}),bN=xN;function j0(n){return function(...t){const a=t[0];return t[0]=Ja(a,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${gi(n)}`}}),n.apply(this,t)}}function SN(n){return function(t){return n.apply(this,[Ja(t,{mechanism:{data:{handler:gi(n)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function wN(n){return function(...t){const a=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(l=>{l in a&&typeof a[l]=="function"&&Ut(a,l,function(c){const f={mechanism:{data:{handler:gi(c)},handled:!1,type:`auto.browser.browserapierrors.xhr.${l}`}},h=Yd(c);return h&&(f.mechanism.data.handler=gi(h)),Ja(c,f)})}),n.apply(this,t)}}function _N(n,t){var l,c;const r=(l=Ke[n])==null?void 0:l.prototype;(c=r==null?void 0:r.hasOwnProperty)!=null&&c.call(r,"addEventListener")&&(Ut(r,"addEventListener",function(f){return function(h,m,p){try{TN(m)&&(m.handleEvent=Ja(m.handleEvent,{mechanism:{data:{handler:gi(m),target:n},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&EN(this,h,m),f.apply(this,[h,Ja(m,{mechanism:{data:{handler:gi(m),target:n},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),p])}}),Ut(r,"removeEventListener",function(f){return function(h,m,p){try{const v=m.__sentry_wrapped__;v&&f.call(this,h,v,p)}catch{}return f.call(this,h,m,p)}}))}function TN(n){return typeof n.handleEvent=="function"}function EN(n,t,a){n&&typeof n=="object"&&"removeEventListener"in n&&typeof n.removeEventListener=="function"&&n.removeEventListener(t,a)}const AN=(n={})=>{const t=n.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof Ke.document>"u"){Yl&&ae.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}c0({ignoreDuration:!0}),Tf();const a=Si();let r=a.getUser();a.addScopeListener(l=>{const c=l.getUser();((r==null?void 0:r.id)!==(c==null?void 0:c.id)||(r==null?void 0:r.ip_address)!==(c==null?void 0:c.ip_address))&&(Tf(),r=c)}),t==="route"&&mb(({from:l,to:c})=>{l!==c&&(c0({ignoreDuration:!0}),Tf())})}}},NN="CultureContext",DN=(()=>({name:NN,preprocessEvent(n){var a;const t=CN();t&&(n.contexts={...n.contexts,culture:{...t,...(a=n.contexts)==null?void 0:a.culture}})}})),jN=DN;function CN(){try{const n=Ke.Intl;if(!n)return;const t=n.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}const MN="GlobalHandlers",ON=((n={})=>{const t={onerror:!0,onunhandledrejection:!0,...n};return{name:MN,setupOnce(){Error.stackTraceLimit=50},setup(a){t.onerror&&(kN(a),C0("onerror")),t.onunhandledrejection&&(LN(a),C0("onunhandledrejection"))}}}),RN=ON;function kN(n){a_(t=>{const{stackParser:a,attachStacktrace:r}=gb();if(gt()!==n||db())return;const{msg:l,url:c,line:f,column:h,error:m}=t,p=BN(eh(a,m||l,void 0,r,!1),c,f,h);p.level="error",Kx(p,{originalException:m,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function LN(n){r_(t=>{const{stackParser:a,attachStacktrace:r}=gb();if(gt()!==n||db())return;const l=zN(t),c=Hl(l)?VN(l):eh(a,l,void 0,r,!0);c.level="error",Kx(c,{originalException:l,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function zN(n){if(Hl(n))return n;try{if("reason"in n)return n.reason;if("detail"in n&&"reason"in n.detail)return n.detail.reason}catch{}return n}function VN(n){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(n)}`}]}}}function BN(n,t,a,r){const l=n.exception=n.exception||{},c=l.values=l.values||[],f=c[0]=c[0]||{},h=f.stacktrace=f.stacktrace||{},m=h.frames=h.frames||[];return m.length===0&&m.push({colno:r,lineno:a,filename:UN(t)??Gd(),function:Zi,in_app:!0}),n}function C0(n){Yl&&ae.log(`Global Handler attached: ${n}`)}function gb(){const n=gt();return(n==null?void 0:n.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function UN(n){if(!(!Bn(n)||n.length===0))return n.startsWith("data:")?`<${OE(n,!1)}>`:n}const HN=()=>({name:"HttpContext",preprocessEvent(n){var r;if(!Ke.navigator&&!Ke.location&&!Ke.document)return;const t=yA(),a={...t.headers,...(r=n.request)==null?void 0:r.headers};n.request={...t,...n.request,headers:a}}}),PN="cause",qN=5,IN="LinkedErrors",FN=((n={})=>{const t=n.limit||qN,a=n.key||PN;return{name:IN,preprocessEvent(r,l,c){const f=c.getOptions();$E(Jd,f.stackParser,a,t,r,l)}}}),GN=FN;function YN(){return KN()?(Yl&&ns(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function KN(){var l;if(typeof Ke.window>"u")return!1;const n=Ke;if(n.nw)return!1;const t=n.chrome||n.browser;if(!((l=t==null?void 0:t.runtime)!=null&&l.id))return!1;const a=Gd();return!(Ke===Ke.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(a))}function XN(n){return[PE(),VE(),oA(),bN(),cN(),RN(),GN(),tA(),HN(),jN(),AN()]}function $N(n={}){const t=!n.skipBrowserExtensionCheck&&YN();let a=n.defaultIntegrations==null?XN():n.defaultIntegrations;const r={...n,enabled:t?!1:n.enabled,stackParser:n_(n.stackParser||rN),integrations:rE({integrations:n.integrations,defaultIntegrations:a}),transport:n.transport||YA};return CE(jA,r)}var Df={exports:{}},le={};/**
|
||
* @license React
|
||
* react.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var M0;function QN(){if(M0)return le;M0=1;var n=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),S=Symbol.iterator;function w(A){return A===null||typeof A!="object"?null:(A=S&&A[S]||A["@@iterator"],typeof A=="function"?A:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,z={};function B(A,V,G){this.props=A,this.context=V,this.refs=z,this.updater=G||T}B.prototype.isReactComponent={},B.prototype.setState=function(A,V){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,V,"setState")},B.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function q(){}q.prototype=B.prototype;function P(A,V,G){this.props=A,this.context=V,this.refs=z,this.updater=G||T}var F=P.prototype=new q;F.constructor=P,k(F,B.prototype),F.isPureReactComponent=!0;var X=Array.isArray;function he(){}var J={H:null,A:null,T:null,S:null},te=Object.prototype.hasOwnProperty;function ue(A,V,G){var $=G.ref;return{$$typeof:n,type:A,key:V,ref:$!==void 0?$:null,props:G}}function K(A,V){return ue(A.type,V,A.props)}function Se(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function Ae(A){var V={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(G){return V[G]})}var De=/\/+/g;function _e(A,V){return typeof A=="object"&&A!==null&&A.key!=null?Ae(""+A.key):V.toString(36)}function Pe(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(he,he):(A.status="pending",A.then(function(V){A.status==="pending"&&(A.status="fulfilled",A.value=V)},function(V){A.status==="pending"&&(A.status="rejected",A.reason=V)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function O(A,V,G,$,oe){var pe=typeof A;(pe==="undefined"||pe==="boolean")&&(A=null);var je=!1;if(A===null)je=!0;else switch(pe){case"bigint":case"string":case"number":je=!0;break;case"object":switch(A.$$typeof){case n:case t:je=!0;break;case v:return je=A._init,O(je(A._payload),V,G,$,oe)}}if(je)return oe=oe(A),je=$===""?"."+_e(A,0):$,X(oe)?(G="",je!=null&&(G=je.replace(De,"$&/")+"/"),O(oe,V,G,"",function(ls){return ls})):oe!=null&&(Se(oe)&&(oe=K(oe,G+(oe.key==null||A&&A.key===oe.key?"":(""+oe.key).replace(De,"$&/")+"/")+je)),V.push(oe)),1;je=0;var yt=$===""?".":$+":";if(X(A))for(var Xe=0;Xe<A.length;Xe++)$=A[Xe],pe=yt+_e($,Xe),je+=O($,V,G,pe,oe);else if(Xe=w(A),typeof Xe=="function")for(A=Xe.call(A),Xe=0;!($=A.next()).done;)$=$.value,pe=yt+_e($,Xe++),je+=O($,V,G,pe,oe);else if(pe==="object"){if(typeof A.then=="function")return O(Pe(A),V,G,$,oe);throw V=String(A),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return je}function I(A,V,G){if(A==null)return A;var $=[],oe=0;return O(A,$,"","",function(pe){return V.call(G,pe,oe++)}),$}function Y(A){if(A._status===-1){var V=A._result;V=V(),V.then(function(G){(A._status===0||A._status===-1)&&(A._status=1,A._result=G)},function(G){(A._status===0||A._status===-1)&&(A._status=2,A._result=G)}),A._status===-1&&(A._status=0,A._result=V)}if(A._status===1)return A._result.default;throw A._result}var se=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},me={map:I,forEach:function(A,V,G){I(A,function(){V.apply(this,arguments)},G)},count:function(A){var V=0;return I(A,function(){V++}),V},toArray:function(A){return I(A,function(V){return V})||[]},only:function(A){if(!Se(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return le.Activity=x,le.Children=me,le.Component=B,le.Fragment=a,le.Profiler=l,le.PureComponent=P,le.StrictMode=r,le.Suspense=m,le.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,le.__COMPILER_RUNTIME={__proto__:null,c:function(A){return J.H.useMemoCache(A)}},le.cache=function(A){return function(){return A.apply(null,arguments)}},le.cacheSignal=function(){return null},le.cloneElement=function(A,V,G){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var $=k({},A.props),oe=A.key;if(V!=null)for(pe in V.key!==void 0&&(oe=""+V.key),V)!te.call(V,pe)||pe==="key"||pe==="__self"||pe==="__source"||pe==="ref"&&V.ref===void 0||($[pe]=V[pe]);var pe=arguments.length-2;if(pe===1)$.children=G;else if(1<pe){for(var je=Array(pe),yt=0;yt<pe;yt++)je[yt]=arguments[yt+2];$.children=je}return ue(A.type,oe,$)},le.createContext=function(A){return A={$$typeof:f,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:c,_context:A},A},le.createElement=function(A,V,G){var $,oe={},pe=null;if(V!=null)for($ in V.key!==void 0&&(pe=""+V.key),V)te.call(V,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(oe[$]=V[$]);var je=arguments.length-2;if(je===1)oe.children=G;else if(1<je){for(var yt=Array(je),Xe=0;Xe<je;Xe++)yt[Xe]=arguments[Xe+2];oe.children=yt}if(A&&A.defaultProps)for($ in je=A.defaultProps,je)oe[$]===void 0&&(oe[$]=je[$]);return ue(A,pe,oe)},le.createRef=function(){return{current:null}},le.forwardRef=function(A){return{$$typeof:h,render:A}},le.isValidElement=Se,le.lazy=function(A){return{$$typeof:v,_payload:{_status:-1,_result:A},_init:Y}},le.memo=function(A,V){return{$$typeof:p,type:A,compare:V===void 0?null:V}},le.startTransition=function(A){var V=J.T,G={};J.T=G;try{var $=A(),oe=J.S;oe!==null&&oe(G,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(he,se)}catch(pe){se(pe)}finally{V!==null&&G.types!==null&&(V.types=G.types),J.T=V}},le.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},le.use=function(A){return J.H.use(A)},le.useActionState=function(A,V,G){return J.H.useActionState(A,V,G)},le.useCallback=function(A,V){return J.H.useCallback(A,V)},le.useContext=function(A){return J.H.useContext(A)},le.useDebugValue=function(){},le.useDeferredValue=function(A,V){return J.H.useDeferredValue(A,V)},le.useEffect=function(A,V){return J.H.useEffect(A,V)},le.useEffectEvent=function(A){return J.H.useEffectEvent(A)},le.useId=function(){return J.H.useId()},le.useImperativeHandle=function(A,V,G){return J.H.useImperativeHandle(A,V,G)},le.useInsertionEffect=function(A,V){return J.H.useInsertionEffect(A,V)},le.useLayoutEffect=function(A,V){return J.H.useLayoutEffect(A,V)},le.useMemo=function(A,V){return J.H.useMemo(A,V)},le.useOptimistic=function(A,V){return J.H.useOptimistic(A,V)},le.useReducer=function(A,V,G){return J.H.useReducer(A,V,G)},le.useRef=function(A){return J.H.useRef(A)},le.useState=function(A){return J.H.useState(A)},le.useSyncExternalStore=function(A,V,G){return J.H.useSyncExternalStore(A,V,G)},le.useTransition=function(){return J.H.useTransition()},le.version="19.2.5",le}var O0;function th(){return O0||(O0=1,Df.exports=QN()),Df.exports}var ee=th();function ZN(n){const t={...n};return ob(t,"react"),WT("react",{version:ee.version}),$N(t)}var jf={exports:{}},ir={},Cf={exports:{}},Mf={};/**
|
||
* @license React
|
||
* scheduler.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var R0;function JN(){return R0||(R0=1,(function(n){function t(O,I){var Y=O.length;O.push(I);e:for(;0<Y;){var se=Y-1>>>1,me=O[se];if(0<l(me,I))O[se]=I,O[Y]=me,Y=se;else break e}}function a(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var I=O[0],Y=O.pop();if(Y!==I){O[0]=Y;e:for(var se=0,me=O.length,A=me>>>1;se<A;){var V=2*(se+1)-1,G=O[V],$=V+1,oe=O[$];if(0>l(G,Y))$<me&&0>l(oe,G)?(O[se]=oe,O[$]=Y,se=$):(O[se]=G,O[V]=Y,se=V);else if($<me&&0>l(oe,Y))O[se]=oe,O[$]=Y,se=$;else break e}}return I}function l(O,I){var Y=O.sortIndex-I.sortIndex;return Y!==0?Y:O.id-I.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var f=Date,h=f.now();n.unstable_now=function(){return f.now()-h}}var m=[],p=[],v=1,x=null,S=3,w=!1,T=!1,k=!1,z=!1,B=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;function F(O){for(var I=a(p);I!==null;){if(I.callback===null)r(p);else if(I.startTime<=O)r(p),I.sortIndex=I.expirationTime,t(m,I);else break;I=a(p)}}function X(O){if(k=!1,F(O),!T)if(a(m)!==null)T=!0,he||(he=!0,Ae());else{var I=a(p);I!==null&&Pe(X,I.startTime-O)}}var he=!1,J=-1,te=5,ue=-1;function K(){return z?!0:!(n.unstable_now()-ue<te)}function Se(){if(z=!1,he){var O=n.unstable_now();ue=O;var I=!0;try{e:{T=!1,k&&(k=!1,q(J),J=-1),w=!0;var Y=S;try{t:{for(F(O),x=a(m);x!==null&&!(x.expirationTime>O&&K());){var se=x.callback;if(typeof se=="function"){x.callback=null,S=x.priorityLevel;var me=se(x.expirationTime<=O);if(O=n.unstable_now(),typeof me=="function"){x.callback=me,F(O),I=!0;break t}x===a(m)&&r(m),F(O)}else r(m);x=a(m)}if(x!==null)I=!0;else{var A=a(p);A!==null&&Pe(X,A.startTime-O),I=!1}}break e}finally{x=null,S=Y,w=!1}I=void 0}}finally{I?Ae():he=!1}}}var Ae;if(typeof P=="function")Ae=function(){P(Se)};else if(typeof MessageChannel<"u"){var De=new MessageChannel,_e=De.port2;De.port1.onmessage=Se,Ae=function(){_e.postMessage(null)}}else Ae=function(){B(Se,0)};function Pe(O,I){J=B(function(){O(n.unstable_now())},I)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(O){O.callback=null},n.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):te=0<O?Math.floor(1e3/O):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(O){switch(S){case 1:case 2:case 3:var I=3;break;default:I=S}var Y=S;S=I;try{return O()}finally{S=Y}},n.unstable_requestPaint=function(){z=!0},n.unstable_runWithPriority=function(O,I){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var Y=S;S=O;try{return I()}finally{S=Y}},n.unstable_scheduleCallback=function(O,I,Y){var se=n.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?se+Y:se):Y=se,O){case 1:var me=-1;break;case 2:me=250;break;case 5:me=1073741823;break;case 4:me=1e4;break;default:me=5e3}return me=Y+me,O={id:v++,callback:I,priorityLevel:O,startTime:Y,expirationTime:me,sortIndex:-1},Y>se?(O.sortIndex=Y,t(p,O),a(m)===null&&O===a(p)&&(k?(q(J),J=-1):k=!0,Pe(X,Y-se))):(O.sortIndex=me,t(m,O),T||w||(T=!0,he||(he=!0,Ae()))),O},n.unstable_shouldYield=K,n.unstable_wrapCallback=function(O){var I=S;return function(){var Y=S;S=I;try{return O.apply(this,arguments)}finally{S=Y}}}})(Mf)),Mf}var k0;function WN(){return k0||(k0=1,Cf.exports=JN()),Cf.exports}var Of={exports:{}},pt={};/**
|
||
* @license React
|
||
* react-dom.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var L0;function eD(){if(L0)return pt;L0=1;var n=th();function t(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var r={d:{f:a,r:function(){throw Error(t(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},l=Symbol.for("react.portal");function c(m,p,v){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:x==null?null:""+x,children:m,containerInfo:p,implementation:v}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return pt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,pt.createPortal=function(m,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return c(m,p,null,v)},pt.flushSync=function(m){var p=f.T,v=r.p;try{if(f.T=null,r.p=2,m)return m()}finally{f.T=p,r.p=v,r.d.f()}},pt.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(m,p))},pt.prefetchDNS=function(m){typeof m=="string"&&r.d.D(m)},pt.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var v=p.as,x=h(v,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,w=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?r.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:x,integrity:S,fetchPriority:w}):v==="script"&&r.d.X(m,{crossOrigin:x,integrity:S,fetchPriority:w,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},pt.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=h(p.as,p.crossOrigin);r.d.M(m,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(m)},pt.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,x=h(v,p.crossOrigin);r.d.L(m,v,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},pt.preloadModule=function(m,p){if(typeof m=="string")if(p){var v=h(p.as,p.crossOrigin);r.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(m)},pt.requestFormReset=function(m){r.d.r(m)},pt.unstable_batchedUpdates=function(m,p){return m(p)},pt.useFormState=function(m,p,v){return f.H.useFormState(m,p,v)},pt.useFormStatus=function(){return f.H.useHostTransitionStatus()},pt.version="19.2.5",pt}var z0;function tD(){if(z0)return Of.exports;z0=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(t){console.error(t)}}return n(),Of.exports=eD(),Of.exports}/**
|
||
* @license React
|
||
* react-dom-client.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var V0;function nD(){if(V0)return ir;V0=1;var n=WN(),t=th(),a=tD();function r(e){var i="https://react.dev/errors/"+e;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)i+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+e+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var i=e,s=e;if(e.alternate)for(;i.return;)i=i.return;else{e=i;do i=e,(i.flags&4098)!==0&&(s=i.return),e=i.return;while(e)}return i.tag===3?s:null}function f(e){if(e.tag===13){var i=e.memoizedState;if(i===null&&(e=e.alternate,e!==null&&(i=e.memoizedState)),i!==null)return i.dehydrated}return null}function h(e){if(e.tag===31){var i=e.memoizedState;if(i===null&&(e=e.alternate,e!==null&&(i=e.memoizedState)),i!==null)return i.dehydrated}return null}function m(e){if(c(e)!==e)throw Error(r(188))}function p(e){var i=e.alternate;if(!i){if(i=c(e),i===null)throw Error(r(188));return i!==e?null:e}for(var s=e,o=i;;){var u=s.return;if(u===null)break;var d=u.alternate;if(d===null){if(o=u.return,o!==null){s=o;continue}break}if(u.child===d.child){for(d=u.child;d;){if(d===s)return m(u),e;if(d===o)return m(u),i;d=d.sibling}throw Error(r(188))}if(s.return!==o.return)s=u,o=d;else{for(var y=!1,b=u.child;b;){if(b===s){y=!0,s=u,o=d;break}if(b===o){y=!0,o=u,s=d;break}b=b.sibling}if(!y){for(b=d.child;b;){if(b===s){y=!0,s=d,o=u;break}if(b===o){y=!0,o=d,s=u;break}b=b.sibling}if(!y)throw Error(r(189))}}if(s.alternate!==o)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?e:i}function v(e){var i=e.tag;if(i===5||i===26||i===27||i===6)return e;for(e=e.child;e!==null;){if(i=v(e),i!==null)return i;e=e.sibling}return null}var x=Object.assign,S=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),P=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),he=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),ue=Symbol.for("react.activity"),K=Symbol.for("react.memo_cache_sentinel"),Se=Symbol.iterator;function Ae(e){return e===null||typeof e!="object"?null:(e=Se&&e[Se]||e["@@iterator"],typeof e=="function"?e:null)}var De=Symbol.for("react.client.reference");function _e(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===De?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case B:return"Profiler";case z:return"StrictMode";case X:return"Suspense";case he:return"SuspenseList";case ue:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case P:return e.displayName||"Context";case q:return(e._context.displayName||"Context")+".Consumer";case F:var i=e.render;return e=e.displayName,e||(e=i.displayName||i.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case J:return i=e.displayName||null,i!==null?i:_e(e.type)||"Memo";case te:i=e._payload,e=e._init;try{return _e(e(i))}catch{}}return null}var Pe=Array.isArray,O=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y={pending:!1,data:null,method:null,action:null},se=[],me=-1;function A(e){return{current:e}}function V(e){0>me||(e.current=se[me],se[me]=null,me--)}function G(e,i){me++,se[me]=e.current,e.current=i}var $=A(null),oe=A(null),pe=A(null),je=A(null);function yt(e,i){switch(G(pe,i),G(oe,e),G($,null),i.nodeType){case 9:case 11:e=(e=i.documentElement)&&(e=e.namespaceURI)?ty(e):0;break;default:if(e=i.tagName,i=i.namespaceURI)i=ty(i),e=ny(i,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V($),G($,e)}function Xe(){V($),V(oe),V(pe)}function ls(e){e.memoizedState!==null&&G(je,e);var i=$.current,s=ny(i,e.type);i!==s&&(G(oe,e),G($,s))}function Rr(e){oe.current===e&&(V($),V(oe)),je.current===e&&(V(je),Zs._currentValue=Y)}var Wl,Mh;function _i(e){if(Wl===void 0)try{throw Error()}catch(s){var i=s.stack.trim().match(/\n( *(at )?)/);Wl=i&&i[1]||"",Mh=-1<s.stack.indexOf(`
|
||
at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
`+Wl+e+Mh}var ec=!1;function tc(e,i){if(!e||ec)return"";ec=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(i){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(R){var M=R}Reflect.construct(e,[],H)}else{try{H.call()}catch(R){M=R}e.call(H.prototype)}}else{try{throw Error()}catch(R){M=R}(H=e())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(R){if(R&&M&&typeof R.stack=="string")return[R.stack,M.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=o.DetermineComponentFrameRoot(),y=d[0],b=d[1];if(y&&b){var E=y.split(`
|
||
`),C=b.split(`
|
||
`);for(u=o=0;o<E.length&&!E[o].includes("DetermineComponentFrameRoot");)o++;for(;u<C.length&&!C[u].includes("DetermineComponentFrameRoot");)u++;if(o===E.length||u===C.length)for(o=E.length-1,u=C.length-1;1<=o&&0<=u&&E[o]!==C[u];)u--;for(;1<=o&&0<=u;o--,u--)if(E[o]!==C[u]){if(o!==1||u!==1)do if(o--,u--,0>u||E[o]!==C[u]){var L=`
|
||
`+E[o].replace(" at new "," at ");return e.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",e.displayName)),L}while(1<=o&&0<=u);break}}}finally{ec=!1,Error.prepareStackTrace=s}return(s=e?e.displayName||e.name:"")?_i(s):""}function TS(e,i){switch(e.tag){case 26:case 27:case 5:return _i(e.type);case 16:return _i("Lazy");case 13:return e.child!==i&&i!==null?_i("Suspense Fallback"):_i("Suspense");case 19:return _i("SuspenseList");case 0:case 15:return tc(e.type,!1);case 11:return tc(e.type.render,!1);case 1:return tc(e.type,!0);case 31:return _i("Activity");default:return""}}function Oh(e){try{var i="",s=null;do i+=TS(e,s),s=e,e=e.return;while(e);return i}catch(o){return`
|
||
Error generating stack: `+o.message+`
|
||
`+o.stack}}var nc=Object.prototype.hasOwnProperty,ic=n.unstable_scheduleCallback,ac=n.unstable_cancelCallback,ES=n.unstable_shouldYield,AS=n.unstable_requestPaint,jt=n.unstable_now,NS=n.unstable_getCurrentPriorityLevel,Rh=n.unstable_ImmediatePriority,kh=n.unstable_UserBlockingPriority,kr=n.unstable_NormalPriority,DS=n.unstable_LowPriority,Lh=n.unstable_IdlePriority,jS=n.log,CS=n.unstable_setDisableYieldValue,cs=null,Ct=null;function Pn(e){if(typeof jS=="function"&&CS(e),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode(cs,e)}catch{}}var Mt=Math.clz32?Math.clz32:RS,MS=Math.log,OS=Math.LN2;function RS(e){return e>>>=0,e===0?32:31-(MS(e)/OS|0)|0}var Lr=256,zr=262144,Vr=4194304;function Ti(e){var i=e&42;if(i!==0)return i;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Br(e,i,s){var o=e.pendingLanes;if(o===0)return 0;var u=0,d=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var b=o&134217727;return b!==0?(o=b&~d,o!==0?u=Ti(o):(y&=b,y!==0?u=Ti(y):s||(s=b&~e,s!==0&&(u=Ti(s))))):(b=o&~d,b!==0?u=Ti(b):y!==0?u=Ti(y):s||(s=o&~e,s!==0&&(u=Ti(s)))),u===0?0:i!==0&&i!==u&&(i&d)===0&&(d=u&-u,s=i&-i,d>=s||d===32&&(s&4194048)!==0)?i:u}function us(e,i){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&i)===0}function kS(e,i){switch(e){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function zh(){var e=Vr;return Vr<<=1,(Vr&62914560)===0&&(Vr=4194304),e}function sc(e){for(var i=[],s=0;31>s;s++)i.push(e);return i}function fs(e,i){e.pendingLanes|=i,i!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function LS(e,i,s,o,u,d){var y=e.pendingLanes;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=s,e.entangledLanes&=s,e.errorRecoveryDisabledLanes&=s,e.shellSuspendCounter=0;var b=e.entanglements,E=e.expirationTimes,C=e.hiddenUpdates;for(s=y&~s;0<s;){var L=31-Mt(s),H=1<<L;b[L]=0,E[L]=-1;var M=C[L];if(M!==null)for(C[L]=null,L=0;L<M.length;L++){var R=M[L];R!==null&&(R.lane&=-536870913)}s&=~H}o!==0&&Vh(e,o,0),d!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=d&~(y&~i))}function Vh(e,i,s){e.pendingLanes|=i,e.suspendedLanes&=~i;var o=31-Mt(i);e.entangledLanes|=i,e.entanglements[o]=e.entanglements[o]|1073741824|s&261930}function Bh(e,i){var s=e.entangledLanes|=i;for(e=e.entanglements;s;){var o=31-Mt(s),u=1<<o;u&i|e[o]&i&&(e[o]|=i),s&=~u}}function Uh(e,i){var s=i&-i;return s=(s&42)!==0?1:rc(s),(s&(e.suspendedLanes|i))!==0?0:s}function rc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function oc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Hh(){var e=I.p;return e!==0?e:(e=window.event,e===void 0?32:Ey(e.type))}function Ph(e,i){var s=I.p;try{return I.p=e,i()}finally{I.p=s}}var qn=Math.random().toString(36).slice(2),lt="__reactFiber$"+qn,wt="__reactProps$"+qn,na="__reactContainer$"+qn,lc="__reactEvents$"+qn,zS="__reactListeners$"+qn,VS="__reactHandles$"+qn,qh="__reactResources$"+qn,ds="__reactMarker$"+qn;function cc(e){delete e[lt],delete e[wt],delete e[lc],delete e[zS],delete e[VS]}function ia(e){var i=e[lt];if(i)return i;for(var s=e.parentNode;s;){if(i=s[na]||s[lt]){if(s=i.alternate,i.child!==null||s!==null&&s.child!==null)for(e=cy(e);e!==null;){if(s=e[lt])return s;e=cy(e)}return i}e=s,s=e.parentNode}return null}function aa(e){if(e=e[lt]||e[na]){var i=e.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return e}return null}function hs(e){var i=e.tag;if(i===5||i===26||i===27||i===6)return e.stateNode;throw Error(r(33))}function sa(e){var i=e[qh];return i||(i=e[qh]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function rt(e){e[ds]=!0}var Ih=new Set,Fh={};function Ei(e,i){ra(e,i),ra(e+"Capture",i)}function ra(e,i){for(Fh[e]=i,e=0;e<i.length;e++)Ih.add(i[e])}var BS=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Gh={},Yh={};function US(e){return nc.call(Yh,e)?!0:nc.call(Gh,e)?!1:BS.test(e)?Yh[e]=!0:(Gh[e]=!0,!1)}function Ur(e,i,s){if(US(i))if(s===null)e.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":e.removeAttribute(i);return;case"boolean":var o=i.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(i);return}}e.setAttribute(i,""+s)}}function Hr(e,i,s){if(s===null)e.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttribute(i,""+s)}}function vn(e,i,s,o){if(o===null)e.removeAttribute(s);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(s);return}e.setAttributeNS(i,s,""+o)}}function Pt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Kh(e){var i=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function HS(e,i,s){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,i);if(!e.hasOwnProperty(i)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var u=o.get,d=o.set;return Object.defineProperty(e,i,{configurable:!0,get:function(){return u.call(this)},set:function(y){s=""+y,d.call(this,y)}}),Object.defineProperty(e,i,{enumerable:o.enumerable}),{getValue:function(){return s},setValue:function(y){s=""+y},stopTracking:function(){e._valueTracker=null,delete e[i]}}}}function uc(e){if(!e._valueTracker){var i=Kh(e)?"checked":"value";e._valueTracker=HS(e,i,""+e[i])}}function Xh(e){if(!e)return!1;var i=e._valueTracker;if(!i)return!0;var s=i.getValue(),o="";return e&&(o=Kh(e)?e.checked?"true":"false":e.value),e=o,e!==s?(i.setValue(e),!0):!1}function Pr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var PS=/[\n"\\]/g;function qt(e){return e.replace(PS,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function fc(e,i,s,o,u,d,y,b){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),i!=null?y==="number"?(i===0&&e.value===""||e.value!=i)&&(e.value=""+Pt(i)):e.value!==""+Pt(i)&&(e.value=""+Pt(i)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),i!=null?dc(e,y,Pt(i)):s!=null?dc(e,y,Pt(s)):o!=null&&e.removeAttribute("value"),u==null&&d!=null&&(e.defaultChecked=!!d),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Pt(b):e.removeAttribute("name")}function $h(e,i,s,o,u,d,y,b){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),i!=null||s!=null){if(!(d!=="submit"&&d!=="reset"||i!=null)){uc(e);return}s=s!=null?""+Pt(s):"",i=i!=null?""+Pt(i):s,b||i===e.value||(e.value=i),e.defaultValue=i}o=o??u,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=b?e.checked:!!o,e.defaultChecked=!!o,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),uc(e)}function dc(e,i,s){i==="number"&&Pr(e.ownerDocument)===e||e.defaultValue===""+s||(e.defaultValue=""+s)}function oa(e,i,s,o){if(e=e.options,i){i={};for(var u=0;u<s.length;u++)i["$"+s[u]]=!0;for(s=0;s<e.length;s++)u=i.hasOwnProperty("$"+e[s].value),e[s].selected!==u&&(e[s].selected=u),u&&o&&(e[s].defaultSelected=!0)}else{for(s=""+Pt(s),i=null,u=0;u<e.length;u++){if(e[u].value===s){e[u].selected=!0,o&&(e[u].defaultSelected=!0);return}i!==null||e[u].disabled||(i=e[u])}i!==null&&(i.selected=!0)}}function Qh(e,i,s){if(i!=null&&(i=""+Pt(i),i!==e.value&&(e.value=i),s==null)){e.defaultValue!==i&&(e.defaultValue=i);return}e.defaultValue=s!=null?""+Pt(s):""}function Zh(e,i,s,o){if(i==null){if(o!=null){if(s!=null)throw Error(r(92));if(Pe(o)){if(1<o.length)throw Error(r(93));o=o[0]}s=o}s==null&&(s=""),i=s}s=Pt(i),e.defaultValue=s,o=e.textContent,o===s&&o!==""&&o!==null&&(e.value=o),uc(e)}function la(e,i){if(i){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=i;return}}e.textContent=i}var qS=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Jh(e,i,s){var o=i.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?o?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="":o?e.setProperty(i,s):typeof s!="number"||s===0||qS.has(i)?i==="float"?e.cssFloat=s:e[i]=(""+s).trim():e[i]=s+"px"}function Wh(e,i,s){if(i!=null&&typeof i!="object")throw Error(r(62));if(e=e.style,s!=null){for(var o in s)!s.hasOwnProperty(o)||i!=null&&i.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var u in i)o=i[u],i.hasOwnProperty(u)&&s[u]!==o&&Jh(e,u,o)}else for(var d in i)i.hasOwnProperty(d)&&Jh(e,d,i[d])}function hc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var IS=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),FS=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function qr(e){return FS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function xn(){}var mc=null;function pc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ca=null,ua=null;function em(e){var i=aa(e);if(i&&(e=i.stateNode)){var s=e[wt]||null;e:switch(e=i.stateNode,i.type){case"input":if(fc(e,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),i=s.name,s.type==="radio"&&i!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+qt(""+i)+'"][type="radio"]'),i=0;i<s.length;i++){var o=s[i];if(o!==e&&o.form===e.form){var u=o[wt]||null;if(!u)throw Error(r(90));fc(o,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(i=0;i<s.length;i++)o=s[i],o.form===e.form&&Xh(o)}break e;case"textarea":Qh(e,s.value,s.defaultValue);break e;case"select":i=s.value,i!=null&&oa(e,!!s.multiple,i,!1)}}}var gc=!1;function tm(e,i,s){if(gc)return e(i,s);gc=!0;try{var o=e(i);return o}finally{if(gc=!1,(ca!==null||ua!==null)&&(Co(),ca&&(i=ca,e=ua,ua=ca=null,em(i),e)))for(i=0;i<e.length;i++)em(e[i])}}function ms(e,i){var s=e.stateNode;if(s===null)return null;var o=s[wt]||null;if(o===null)return null;s=o[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(s&&typeof s!="function")throw Error(r(231,i,typeof s));return s}var bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yc=!1;if(bn)try{var ps={};Object.defineProperty(ps,"passive",{get:function(){yc=!0}}),window.addEventListener("test",ps,ps),window.removeEventListener("test",ps,ps)}catch{yc=!1}var In=null,vc=null,Ir=null;function nm(){if(Ir)return Ir;var e,i=vc,s=i.length,o,u="value"in In?In.value:In.textContent,d=u.length;for(e=0;e<s&&i[e]===u[e];e++);var y=s-e;for(o=1;o<=y&&i[s-o]===u[d-o];o++);return Ir=u.slice(e,1<o?1-o:void 0)}function Fr(e){var i=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&i===13&&(e=13)):e=i,e===10&&(e=13),32<=e||e===13?e:0}function Gr(){return!0}function im(){return!1}function _t(e){function i(s,o,u,d,y){this._reactName=s,this._targetInst=u,this.type=o,this.nativeEvent=d,this.target=y,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(s=e[b],this[b]=s?s(d):d[b]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Gr:im,this.isPropagationStopped=im,this}return x(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Gr)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Gr)},persist:function(){},isPersistent:Gr}),i}var Ai={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yr=_t(Ai),gs=x({},Ai,{view:0,detail:0}),GS=_t(gs),xc,bc,ys,Kr=x({},gs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ys&&(ys&&e.type==="mousemove"?(xc=e.screenX-ys.screenX,bc=e.screenY-ys.screenY):bc=xc=0,ys=e),xc)},movementY:function(e){return"movementY"in e?e.movementY:bc}}),am=_t(Kr),YS=x({},Kr,{dataTransfer:0}),KS=_t(YS),XS=x({},gs,{relatedTarget:0}),Sc=_t(XS),$S=x({},Ai,{animationName:0,elapsedTime:0,pseudoElement:0}),QS=_t($S),ZS=x({},Ai,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),JS=_t(ZS),WS=x({},Ai,{data:0}),sm=_t(WS),e2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},t2={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},n2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function i2(e){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(e):(e=n2[e])?!!i[e]:!1}function wc(){return i2}var a2=x({},gs,{key:function(e){if(e.key){var i=e2[e.key]||e.key;if(i!=="Unidentified")return i}return e.type==="keypress"?(e=Fr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?t2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wc,charCode:function(e){return e.type==="keypress"?Fr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Fr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),s2=_t(a2),r2=x({},Kr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rm=_t(r2),o2=x({},gs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wc}),l2=_t(o2),c2=x({},Ai,{propertyName:0,elapsedTime:0,pseudoElement:0}),u2=_t(c2),f2=x({},Kr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),d2=_t(f2),h2=x({},Ai,{newState:0,oldState:0}),m2=_t(h2),p2=[9,13,27,32],_c=bn&&"CompositionEvent"in window,vs=null;bn&&"documentMode"in document&&(vs=document.documentMode);var g2=bn&&"TextEvent"in window&&!vs,om=bn&&(!_c||vs&&8<vs&&11>=vs),lm=" ",cm=!1;function um(e,i){switch(e){case"keyup":return p2.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fa=!1;function y2(e,i){switch(e){case"compositionend":return fm(i);case"keypress":return i.which!==32?null:(cm=!0,lm);case"textInput":return e=i.data,e===lm&&cm?null:e;default:return null}}function v2(e,i){if(fa)return e==="compositionend"||!_c&&um(e,i)?(e=nm(),Ir=vc=In=null,fa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return om&&i.locale!=="ko"?null:i.data;default:return null}}var x2={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function dm(e){var i=e&&e.nodeName&&e.nodeName.toLowerCase();return i==="input"?!!x2[e.type]:i==="textarea"}function hm(e,i,s,o){ca?ua?ua.push(o):ua=[o]:ca=o,i=Vo(i,"onChange"),0<i.length&&(s=new Yr("onChange","change",null,s,o),e.push({event:s,listeners:i}))}var xs=null,bs=null;function b2(e){$g(e,0)}function Xr(e){var i=hs(e);if(Xh(i))return e}function mm(e,i){if(e==="change")return i}var pm=!1;if(bn){var Tc;if(bn){var Ec="oninput"in document;if(!Ec){var gm=document.createElement("div");gm.setAttribute("oninput","return;"),Ec=typeof gm.oninput=="function"}Tc=Ec}else Tc=!1;pm=Tc&&(!document.documentMode||9<document.documentMode)}function ym(){xs&&(xs.detachEvent("onpropertychange",vm),bs=xs=null)}function vm(e){if(e.propertyName==="value"&&Xr(bs)){var i=[];hm(i,bs,e,pc(e)),tm(b2,i)}}function S2(e,i,s){e==="focusin"?(ym(),xs=i,bs=s,xs.attachEvent("onpropertychange",vm)):e==="focusout"&&ym()}function w2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Xr(bs)}function _2(e,i){if(e==="click")return Xr(i)}function T2(e,i){if(e==="input"||e==="change")return Xr(i)}function E2(e,i){return e===i&&(e!==0||1/e===1/i)||e!==e&&i!==i}var Ot=typeof Object.is=="function"?Object.is:E2;function Ss(e,i){if(Ot(e,i))return!0;if(typeof e!="object"||e===null||typeof i!="object"||i===null)return!1;var s=Object.keys(e),o=Object.keys(i);if(s.length!==o.length)return!1;for(o=0;o<s.length;o++){var u=s[o];if(!nc.call(i,u)||!Ot(e[u],i[u]))return!1}return!0}function xm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function bm(e,i){var s=xm(e);e=0;for(var o;s;){if(s.nodeType===3){if(o=e+s.textContent.length,e<=i&&o>=i)return{node:s,offset:i-e};e=o}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=xm(s)}}function Sm(e,i){return e&&i?e===i?!0:e&&e.nodeType===3?!1:i&&i.nodeType===3?Sm(e,i.parentNode):"contains"in e?e.contains(i):e.compareDocumentPosition?!!(e.compareDocumentPosition(i)&16):!1:!1}function wm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var i=Pr(e.document);i instanceof e.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)e=i.contentWindow;else break;i=Pr(e.document)}return i}function Ac(e){var i=e&&e.nodeName&&e.nodeName.toLowerCase();return i&&(i==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||i==="textarea"||e.contentEditable==="true")}var A2=bn&&"documentMode"in document&&11>=document.documentMode,da=null,Nc=null,ws=null,Dc=!1;function _m(e,i,s){var o=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Dc||da==null||da!==Pr(o)||(o=da,"selectionStart"in o&&Ac(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),ws&&Ss(ws,o)||(ws=o,o=Vo(Nc,"onSelect"),0<o.length&&(i=new Yr("onSelect","select",null,i,s),e.push({event:i,listeners:o}),i.target=da)))}function Ni(e,i){var s={};return s[e.toLowerCase()]=i.toLowerCase(),s["Webkit"+e]="webkit"+i,s["Moz"+e]="moz"+i,s}var ha={animationend:Ni("Animation","AnimationEnd"),animationiteration:Ni("Animation","AnimationIteration"),animationstart:Ni("Animation","AnimationStart"),transitionrun:Ni("Transition","TransitionRun"),transitionstart:Ni("Transition","TransitionStart"),transitioncancel:Ni("Transition","TransitionCancel"),transitionend:Ni("Transition","TransitionEnd")},jc={},Tm={};bn&&(Tm=document.createElement("div").style,"AnimationEvent"in window||(delete ha.animationend.animation,delete ha.animationiteration.animation,delete ha.animationstart.animation),"TransitionEvent"in window||delete ha.transitionend.transition);function Di(e){if(jc[e])return jc[e];if(!ha[e])return e;var i=ha[e],s;for(s in i)if(i.hasOwnProperty(s)&&s in Tm)return jc[e]=i[s];return e}var Em=Di("animationend"),Am=Di("animationiteration"),Nm=Di("animationstart"),N2=Di("transitionrun"),D2=Di("transitionstart"),j2=Di("transitioncancel"),Dm=Di("transitionend"),jm=new Map,Cc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Cc.push("scrollEnd");function en(e,i){jm.set(e,i),Ei(i,[e])}var $r=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},It=[],ma=0,Mc=0;function Qr(){for(var e=ma,i=Mc=ma=0;i<e;){var s=It[i];It[i++]=null;var o=It[i];It[i++]=null;var u=It[i];It[i++]=null;var d=It[i];if(It[i++]=null,o!==null&&u!==null){var y=o.pending;y===null?u.next=u:(u.next=y.next,y.next=u),o.pending=u}d!==0&&Cm(s,u,d)}}function Zr(e,i,s,o){It[ma++]=e,It[ma++]=i,It[ma++]=s,It[ma++]=o,Mc|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Oc(e,i,s,o){return Zr(e,i,s,o),Jr(e)}function ji(e,i){return Zr(e,null,null,i),Jr(e)}function Cm(e,i,s){e.lanes|=s;var o=e.alternate;o!==null&&(o.lanes|=s);for(var u=!1,d=e.return;d!==null;)d.childLanes|=s,o=d.alternate,o!==null&&(o.childLanes|=s),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(u=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,u&&i!==null&&(u=31-Mt(s),e=d.hiddenUpdates,o=e[u],o===null?e[u]=[i]:o.push(i),i.lane=s|536870912),d):null}function Jr(e){if(50<Fs)throw Fs=0,Pu=null,Error(r(185));for(var i=e.return;i!==null;)e=i,i=e.return;return e.tag===3?e.stateNode:null}var pa={};function C2(e,i,s,o){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rt(e,i,s,o){return new C2(e,i,s,o)}function Rc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sn(e,i){var s=e.alternate;return s===null?(s=Rt(e.tag,i,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=i,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&65011712,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,i=e.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s.refCleanup=e.refCleanup,s}function Mm(e,i){e.flags&=65011714;var s=e.alternate;return s===null?(e.childLanes=0,e.lanes=i,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=s.childLanes,e.lanes=s.lanes,e.child=s.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=s.memoizedProps,e.memoizedState=s.memoizedState,e.updateQueue=s.updateQueue,e.type=s.type,i=s.dependencies,e.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),e}function Wr(e,i,s,o,u,d){var y=0;if(o=e,typeof e=="function")Rc(e)&&(y=1);else if(typeof e=="string")y=Lw(e,s,$.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ue:return e=Rt(31,s,i,u),e.elementType=ue,e.lanes=d,e;case k:return Ci(s.children,u,d,i);case z:y=8,u|=24;break;case B:return e=Rt(12,s,i,u|2),e.elementType=B,e.lanes=d,e;case X:return e=Rt(13,s,i,u),e.elementType=X,e.lanes=d,e;case he:return e=Rt(19,s,i,u),e.elementType=he,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case P:y=10;break e;case q:y=9;break e;case F:y=11;break e;case J:y=14;break e;case te:y=16,o=null;break e}y=29,s=Error(r(130,e===null?"null":typeof e,"")),o=null}return i=Rt(y,s,i,u),i.elementType=e,i.type=o,i.lanes=d,i}function Ci(e,i,s,o){return e=Rt(7,e,o,i),e.lanes=s,e}function kc(e,i,s){return e=Rt(6,e,null,i),e.lanes=s,e}function Om(e){var i=Rt(18,null,null,0);return i.stateNode=e,i}function Lc(e,i,s){return i=Rt(4,e.children!==null?e.children:[],e.key,i),i.lanes=s,i.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},i}var Rm=new WeakMap;function Ft(e,i){if(typeof e=="object"&&e!==null){var s=Rm.get(e);return s!==void 0?s:(i={value:e,source:i,stack:Oh(i)},Rm.set(e,i),i)}return{value:e,source:i,stack:Oh(i)}}var ga=[],ya=0,eo=null,_s=0,Gt=[],Yt=0,Fn=null,ln=1,cn="";function wn(e,i){ga[ya++]=_s,ga[ya++]=eo,eo=e,_s=i}function km(e,i,s){Gt[Yt++]=ln,Gt[Yt++]=cn,Gt[Yt++]=Fn,Fn=e;var o=ln;e=cn;var u=32-Mt(o)-1;o&=~(1<<u),s+=1;var d=32-Mt(i)+u;if(30<d){var y=u-u%5;d=(o&(1<<y)-1).toString(32),o>>=y,u-=y,ln=1<<32-Mt(i)+u|s<<u|o,cn=d+e}else ln=1<<d|s<<u|o,cn=e}function zc(e){e.return!==null&&(wn(e,1),km(e,1,0))}function Vc(e){for(;e===eo;)eo=ga[--ya],ga[ya]=null,_s=ga[--ya],ga[ya]=null;for(;e===Fn;)Fn=Gt[--Yt],Gt[Yt]=null,cn=Gt[--Yt],Gt[Yt]=null,ln=Gt[--Yt],Gt[Yt]=null}function Lm(e,i){Gt[Yt++]=ln,Gt[Yt++]=cn,Gt[Yt++]=Fn,ln=i.id,cn=i.overflow,Fn=e}var ct=null,Be=null,be=!1,Gn=null,Kt=!1,Bc=Error(r(519));function Yn(e){var i=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ts(Ft(i,e)),Bc}function zm(e){var i=e.stateNode,s=e.type,o=e.memoizedProps;switch(i[lt]=e,i[wt]=o,s){case"dialog":ye("cancel",i),ye("close",i);break;case"iframe":case"object":case"embed":ye("load",i);break;case"video":case"audio":for(s=0;s<Ys.length;s++)ye(Ys[s],i);break;case"source":ye("error",i);break;case"img":case"image":case"link":ye("error",i),ye("load",i);break;case"details":ye("toggle",i);break;case"input":ye("invalid",i),$h(i,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":ye("invalid",i);break;case"textarea":ye("invalid",i),Zh(i,o.value,o.defaultValue,o.children)}s=o.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||i.textContent===""+s||o.suppressHydrationWarning===!0||Wg(i.textContent,s)?(o.popover!=null&&(ye("beforetoggle",i),ye("toggle",i)),o.onScroll!=null&&ye("scroll",i),o.onScrollEnd!=null&&ye("scrollend",i),o.onClick!=null&&(i.onclick=xn),i=!0):i=!1,i||Yn(e,!0)}function Vm(e){for(ct=e.return;ct;)switch(ct.tag){case 5:case 31:case 13:Kt=!1;return;case 27:case 3:Kt=!0;return;default:ct=ct.return}}function va(e){if(e!==ct)return!1;if(!be)return Vm(e),be=!0,!1;var i=e.tag,s;if((s=i!==3&&i!==27)&&((s=i===5)&&(s=e.type,s=!(s!=="form"&&s!=="button")||nf(e.type,e.memoizedProps)),s=!s),s&&Be&&Yn(e),Vm(e),i===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Be=ly(e)}else if(i===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Be=ly(e)}else i===27?(i=Be,ri(e.type)?(e=lf,lf=null,Be=e):Be=i):Be=ct?$t(e.stateNode.nextSibling):null;return!0}function Mi(){Be=ct=null,be=!1}function Uc(){var e=Gn;return e!==null&&(Nt===null?Nt=e:Nt.push.apply(Nt,e),Gn=null),e}function Ts(e){Gn===null?Gn=[e]:Gn.push(e)}var Hc=A(null),Oi=null,_n=null;function Kn(e,i,s){G(Hc,i._currentValue),i._currentValue=s}function Tn(e){e._currentValue=Hc.current,V(Hc)}function Pc(e,i,s){for(;e!==null;){var o=e.alternate;if((e.childLanes&i)!==i?(e.childLanes|=i,o!==null&&(o.childLanes|=i)):o!==null&&(o.childLanes&i)!==i&&(o.childLanes|=i),e===s)break;e=e.return}}function qc(e,i,s,o){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var d=u.dependencies;if(d!==null){var y=u.child;d=d.firstContext;e:for(;d!==null;){var b=d;d=u;for(var E=0;E<i.length;E++)if(b.context===i[E]){d.lanes|=s,b=d.alternate,b!==null&&(b.lanes|=s),Pc(d.return,s,e),o||(y=null);break e}d=b.next}}else if(u.tag===18){if(y=u.return,y===null)throw Error(r(341));y.lanes|=s,d=y.alternate,d!==null&&(d.lanes|=s),Pc(y,s,e),y=null}else y=u.child;if(y!==null)y.return=u;else for(y=u;y!==null;){if(y===e){y=null;break}if(u=y.sibling,u!==null){u.return=y.return,y=u;break}y=y.return}u=y}}function xa(e,i,s,o){e=null;for(var u=i,d=!1;u!==null;){if(!d){if((u.flags&524288)!==0)d=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var y=u.alternate;if(y===null)throw Error(r(387));if(y=y.memoizedProps,y!==null){var b=u.type;Ot(u.pendingProps.value,y.value)||(e!==null?e.push(b):e=[b])}}else if(u===je.current){if(y=u.alternate,y===null)throw Error(r(387));y.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Zs):e=[Zs])}u=u.return}e!==null&&qc(i,e,s,o),i.flags|=262144}function to(e){for(e=e.firstContext;e!==null;){if(!Ot(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ri(e){Oi=e,_n=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ut(e){return Bm(Oi,e)}function no(e,i){return Oi===null&&Ri(e),Bm(e,i)}function Bm(e,i){var s=i._currentValue;if(i={context:i,memoizedValue:s,next:null},_n===null){if(e===null)throw Error(r(308));_n=i,e.dependencies={lanes:0,firstContext:i},e.flags|=524288}else _n=_n.next=i;return s}var M2=typeof AbortController<"u"?AbortController:function(){var e=[],i=this.signal={aborted:!1,addEventListener:function(s,o){e.push(o)}};this.abort=function(){i.aborted=!0,e.forEach(function(s){return s()})}},O2=n.unstable_scheduleCallback,R2=n.unstable_NormalPriority,Je={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ic(){return{controller:new M2,data:new Map,refCount:0}}function Es(e){e.refCount--,e.refCount===0&&O2(R2,function(){e.controller.abort()})}var As=null,Fc=0,ba=0,Sa=null;function k2(e,i){if(As===null){var s=As=[];Fc=0,ba=Ku(),Sa={status:"pending",value:void 0,then:function(o){s.push(o)}}}return Fc++,i.then(Um,Um),i}function Um(){if(--Fc===0&&As!==null){Sa!==null&&(Sa.status="fulfilled");var e=As;As=null,ba=0,Sa=null;for(var i=0;i<e.length;i++)(0,e[i])()}}function L2(e,i){var s=[],o={status:"pending",value:null,reason:null,then:function(u){s.push(u)}};return e.then(function(){o.status="fulfilled",o.value=i;for(var u=0;u<s.length;u++)(0,s[u])(i)},function(u){for(o.status="rejected",o.reason=u,u=0;u<s.length;u++)(0,s[u])(void 0)}),o}var Hm=O.S;O.S=function(e,i){_g=jt(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&k2(e,i),Hm!==null&&Hm(e,i)};var ki=A(null);function Gc(){var e=ki.current;return e!==null?e:ze.pooledCache}function io(e,i){i===null?G(ki,ki.current):G(ki,i.pool)}function Pm(){var e=Gc();return e===null?null:{parent:Je._currentValue,pool:e}}var wa=Error(r(460)),Yc=Error(r(474)),ao=Error(r(542)),so={then:function(){}};function qm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Im(e,i,s){switch(s=e[s],s===void 0?e.push(i):s!==i&&(i.then(xn,xn),i=s),i.status){case"fulfilled":return i.value;case"rejected":throw e=i.reason,Gm(e),e;default:if(typeof i.status=="string")i.then(xn,xn);else{if(e=ze,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=i,e.status="pending",e.then(function(o){if(i.status==="pending"){var u=i;u.status="fulfilled",u.value=o}},function(o){if(i.status==="pending"){var u=i;u.status="rejected",u.reason=o}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw e=i.reason,Gm(e),e}throw zi=i,wa}}function Li(e){try{var i=e._init;return i(e._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(zi=s,wa):s}}var zi=null;function Fm(){if(zi===null)throw Error(r(459));var e=zi;return zi=null,e}function Gm(e){if(e===wa||e===ao)throw Error(r(483))}var _a=null,Ns=0;function ro(e){var i=Ns;return Ns+=1,_a===null&&(_a=[]),Im(_a,e,i)}function Ds(e,i){i=i.props.ref,e.ref=i!==void 0?i:null}function oo(e,i){throw i.$$typeof===S?Error(r(525)):(e=Object.prototype.toString.call(i),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":e)))}function Ym(e){function i(D,N){if(e){var j=D.deletions;j===null?(D.deletions=[N],D.flags|=16):j.push(N)}}function s(D,N){if(!e)return null;for(;N!==null;)i(D,N),N=N.sibling;return null}function o(D){for(var N=new Map;D!==null;)D.key!==null?N.set(D.key,D):N.set(D.index,D),D=D.sibling;return N}function u(D,N){return D=Sn(D,N),D.index=0,D.sibling=null,D}function d(D,N,j){return D.index=j,e?(j=D.alternate,j!==null?(j=j.index,j<N?(D.flags|=67108866,N):j):(D.flags|=67108866,N)):(D.flags|=1048576,N)}function y(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function b(D,N,j,U){return N===null||N.tag!==6?(N=kc(j,D.mode,U),N.return=D,N):(N=u(N,j),N.return=D,N)}function E(D,N,j,U){var ne=j.type;return ne===k?L(D,N,j.props.children,U,j.key):N!==null&&(N.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===te&&Li(ne)===N.type)?(N=u(N,j.props),Ds(N,j),N.return=D,N):(N=Wr(j.type,j.key,j.props,null,D.mode,U),Ds(N,j),N.return=D,N)}function C(D,N,j,U){return N===null||N.tag!==4||N.stateNode.containerInfo!==j.containerInfo||N.stateNode.implementation!==j.implementation?(N=Lc(j,D.mode,U),N.return=D,N):(N=u(N,j.children||[]),N.return=D,N)}function L(D,N,j,U,ne){return N===null||N.tag!==7?(N=Ci(j,D.mode,U,ne),N.return=D,N):(N=u(N,j),N.return=D,N)}function H(D,N,j){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=kc(""+N,D.mode,j),N.return=D,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case w:return j=Wr(N.type,N.key,N.props,null,D.mode,j),Ds(j,N),j.return=D,j;case T:return N=Lc(N,D.mode,j),N.return=D,N;case te:return N=Li(N),H(D,N,j)}if(Pe(N)||Ae(N))return N=Ci(N,D.mode,j,null),N.return=D,N;if(typeof N.then=="function")return H(D,ro(N),j);if(N.$$typeof===P)return H(D,no(D,N),j);oo(D,N)}return null}function M(D,N,j,U){var ne=N!==null?N.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return ne!==null?null:b(D,N,""+j,U);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case w:return j.key===ne?E(D,N,j,U):null;case T:return j.key===ne?C(D,N,j,U):null;case te:return j=Li(j),M(D,N,j,U)}if(Pe(j)||Ae(j))return ne!==null?null:L(D,N,j,U,null);if(typeof j.then=="function")return M(D,N,ro(j),U);if(j.$$typeof===P)return M(D,N,no(D,j),U);oo(D,j)}return null}function R(D,N,j,U,ne){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return D=D.get(j)||null,b(N,D,""+U,ne);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case w:return D=D.get(U.key===null?j:U.key)||null,E(N,D,U,ne);case T:return D=D.get(U.key===null?j:U.key)||null,C(N,D,U,ne);case te:return U=Li(U),R(D,N,j,U,ne)}if(Pe(U)||Ae(U))return D=D.get(j)||null,L(N,D,U,ne,null);if(typeof U.then=="function")return R(D,N,j,ro(U),ne);if(U.$$typeof===P)return R(D,N,j,no(N,U),ne);oo(N,U)}return null}function Q(D,N,j,U){for(var ne=null,Te=null,W=N,de=N=0,xe=null;W!==null&&de<j.length;de++){W.index>de?(xe=W,W=null):xe=W.sibling;var Ee=M(D,W,j[de],U);if(Ee===null){W===null&&(W=xe);break}e&&W&&Ee.alternate===null&&i(D,W),N=d(Ee,N,de),Te===null?ne=Ee:Te.sibling=Ee,Te=Ee,W=xe}if(de===j.length)return s(D,W),be&&wn(D,de),ne;if(W===null){for(;de<j.length;de++)W=H(D,j[de],U),W!==null&&(N=d(W,N,de),Te===null?ne=W:Te.sibling=W,Te=W);return be&&wn(D,de),ne}for(W=o(W);de<j.length;de++)xe=R(W,D,de,j[de],U),xe!==null&&(e&&xe.alternate!==null&&W.delete(xe.key===null?de:xe.key),N=d(xe,N,de),Te===null?ne=xe:Te.sibling=xe,Te=xe);return e&&W.forEach(function(fi){return i(D,fi)}),be&&wn(D,de),ne}function ie(D,N,j,U){if(j==null)throw Error(r(151));for(var ne=null,Te=null,W=N,de=N=0,xe=null,Ee=j.next();W!==null&&!Ee.done;de++,Ee=j.next()){W.index>de?(xe=W,W=null):xe=W.sibling;var fi=M(D,W,Ee.value,U);if(fi===null){W===null&&(W=xe);break}e&&W&&fi.alternate===null&&i(D,W),N=d(fi,N,de),Te===null?ne=fi:Te.sibling=fi,Te=fi,W=xe}if(Ee.done)return s(D,W),be&&wn(D,de),ne;if(W===null){for(;!Ee.done;de++,Ee=j.next())Ee=H(D,Ee.value,U),Ee!==null&&(N=d(Ee,N,de),Te===null?ne=Ee:Te.sibling=Ee,Te=Ee);return be&&wn(D,de),ne}for(W=o(W);!Ee.done;de++,Ee=j.next())Ee=R(W,D,de,Ee.value,U),Ee!==null&&(e&&Ee.alternate!==null&&W.delete(Ee.key===null?de:Ee.key),N=d(Ee,N,de),Te===null?ne=Ee:Te.sibling=Ee,Te=Ee);return e&&W.forEach(function(Yw){return i(D,Yw)}),be&&wn(D,de),ne}function Le(D,N,j,U){if(typeof j=="object"&&j!==null&&j.type===k&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case w:e:{for(var ne=j.key;N!==null;){if(N.key===ne){if(ne=j.type,ne===k){if(N.tag===7){s(D,N.sibling),U=u(N,j.props.children),U.return=D,D=U;break e}}else if(N.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===te&&Li(ne)===N.type){s(D,N.sibling),U=u(N,j.props),Ds(U,j),U.return=D,D=U;break e}s(D,N);break}else i(D,N);N=N.sibling}j.type===k?(U=Ci(j.props.children,D.mode,U,j.key),U.return=D,D=U):(U=Wr(j.type,j.key,j.props,null,D.mode,U),Ds(U,j),U.return=D,D=U)}return y(D);case T:e:{for(ne=j.key;N!==null;){if(N.key===ne)if(N.tag===4&&N.stateNode.containerInfo===j.containerInfo&&N.stateNode.implementation===j.implementation){s(D,N.sibling),U=u(N,j.children||[]),U.return=D,D=U;break e}else{s(D,N);break}else i(D,N);N=N.sibling}U=Lc(j,D.mode,U),U.return=D,D=U}return y(D);case te:return j=Li(j),Le(D,N,j,U)}if(Pe(j))return Q(D,N,j,U);if(Ae(j)){if(ne=Ae(j),typeof ne!="function")throw Error(r(150));return j=ne.call(j),ie(D,N,j,U)}if(typeof j.then=="function")return Le(D,N,ro(j),U);if(j.$$typeof===P)return Le(D,N,no(D,j),U);oo(D,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,N!==null&&N.tag===6?(s(D,N.sibling),U=u(N,j),U.return=D,D=U):(s(D,N),U=kc(j,D.mode,U),U.return=D,D=U),y(D)):s(D,N)}return function(D,N,j,U){try{Ns=0;var ne=Le(D,N,j,U);return _a=null,ne}catch(W){if(W===wa||W===ao)throw W;var Te=Rt(29,W,null,D.mode);return Te.lanes=U,Te.return=D,Te}finally{}}}var Vi=Ym(!0),Km=Ym(!1),Xn=!1;function Kc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xc(e,i){e=e.updateQueue,i.updateQueue===e&&(i.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function $n(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Qn(e,i,s){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Ne&2)!==0){var u=o.pending;return u===null?i.next=i:(i.next=u.next,u.next=i),o.pending=i,i=Jr(e),Cm(e,null,s),i}return Zr(e,o,i,s),Jr(e)}function js(e,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194048)!==0)){var o=i.lanes;o&=e.pendingLanes,s|=o,i.lanes=s,Bh(e,s)}}function $c(e,i){var s=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,s===o)){var u=null,d=null;if(s=s.firstBaseUpdate,s!==null){do{var y={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};d===null?u=d=y:d=d.next=y,s=s.next}while(s!==null);d===null?u=d=i:d=d.next=i}else u=d=i;s={baseState:o.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:o.shared,callbacks:o.callbacks},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=i:e.next=i,s.lastBaseUpdate=i}var Qc=!1;function Cs(){if(Qc){var e=Sa;if(e!==null)throw e}}function Ms(e,i,s,o){Qc=!1;var u=e.updateQueue;Xn=!1;var d=u.firstBaseUpdate,y=u.lastBaseUpdate,b=u.shared.pending;if(b!==null){u.shared.pending=null;var E=b,C=E.next;E.next=null,y===null?d=C:y.next=C,y=E;var L=e.alternate;L!==null&&(L=L.updateQueue,b=L.lastBaseUpdate,b!==y&&(b===null?L.firstBaseUpdate=C:b.next=C,L.lastBaseUpdate=E))}if(d!==null){var H=u.baseState;y=0,L=C=E=null,b=d;do{var M=b.lane&-536870913,R=M!==b.lane;if(R?(ve&M)===M:(o&M)===M){M!==0&&M===ba&&(Qc=!0),L!==null&&(L=L.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var Q=e,ie=b;M=i;var Le=s;switch(ie.tag){case 1:if(Q=ie.payload,typeof Q=="function"){H=Q.call(Le,H,M);break e}H=Q;break e;case 3:Q.flags=Q.flags&-65537|128;case 0:if(Q=ie.payload,M=typeof Q=="function"?Q.call(Le,H,M):Q,M==null)break e;H=x({},H,M);break e;case 2:Xn=!0}}M=b.callback,M!==null&&(e.flags|=64,R&&(e.flags|=8192),R=u.callbacks,R===null?u.callbacks=[M]:R.push(M))}else R={lane:M,tag:b.tag,payload:b.payload,callback:b.callback,next:null},L===null?(C=L=R,E=H):L=L.next=R,y|=M;if(b=b.next,b===null){if(b=u.shared.pending,b===null)break;R=b,b=R.next,R.next=null,u.lastBaseUpdate=R,u.shared.pending=null}}while(!0);L===null&&(E=H),u.baseState=E,u.firstBaseUpdate=C,u.lastBaseUpdate=L,d===null&&(u.shared.lanes=0),ti|=y,e.lanes=y,e.memoizedState=H}}function Xm(e,i){if(typeof e!="function")throw Error(r(191,e));e.call(i)}function $m(e,i){var s=e.callbacks;if(s!==null)for(e.callbacks=null,e=0;e<s.length;e++)Xm(s[e],i)}var Ta=A(null),lo=A(0);function Qm(e,i){e=Rn,G(lo,e),G(Ta,i),Rn=e|i.baseLanes}function Zc(){G(lo,Rn),G(Ta,Ta.current)}function Jc(){Rn=lo.current,V(Ta),V(lo)}var kt=A(null),Xt=null;function Zn(e){var i=e.alternate;G($e,$e.current&1),G(kt,e),Xt===null&&(i===null||Ta.current!==null||i.memoizedState!==null)&&(Xt=e)}function Wc(e){G($e,$e.current),G(kt,e),Xt===null&&(Xt=e)}function Zm(e){e.tag===22?(G($e,$e.current),G(kt,e),Xt===null&&(Xt=e)):Jn()}function Jn(){G($e,$e.current),G(kt,kt.current)}function Lt(e){V(kt),Xt===e&&(Xt=null),V($e)}var $e=A(0);function co(e){for(var i=e;i!==null;){if(i.tag===13){var s=i.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||rf(s)||of(s)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)break;for(;i.sibling===null;){if(i.return===null||i.return===e)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var En=0,fe=null,Re=null,We=null,uo=!1,Ea=!1,Bi=!1,fo=0,Os=0,Aa=null,z2=0;function Fe(){throw Error(r(321))}function eu(e,i){if(i===null)return!1;for(var s=0;s<i.length&&s<e.length;s++)if(!Ot(e[s],i[s]))return!1;return!0}function tu(e,i,s,o,u,d){return En=d,fe=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,O.H=e===null||e.memoizedState===null?kp:gu,Bi=!1,d=s(o,u),Bi=!1,Ea&&(d=Wm(i,s,o,u)),Jm(e),d}function Jm(e){O.H=Ls;var i=Re!==null&&Re.next!==null;if(En=0,We=Re=fe=null,uo=!1,Os=0,Aa=null,i)throw Error(r(300));e===null||et||(e=e.dependencies,e!==null&&to(e)&&(et=!0))}function Wm(e,i,s,o){fe=e;var u=0;do{if(Ea&&(Aa=null),Os=0,Ea=!1,25<=u)throw Error(r(301));if(u+=1,We=Re=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}O.H=Lp,d=i(s,o)}while(Ea);return d}function V2(){var e=O.H,i=e.useState()[0];return i=typeof i.then=="function"?Rs(i):i,e=e.useState()[0],(Re!==null?Re.memoizedState:null)!==e&&(fe.flags|=1024),i}function nu(){var e=fo!==0;return fo=0,e}function iu(e,i,s){i.updateQueue=e.updateQueue,i.flags&=-2053,e.lanes&=~s}function au(e){if(uo){for(e=e.memoizedState;e!==null;){var i=e.queue;i!==null&&(i.pending=null),e=e.next}uo=!1}En=0,We=Re=fe=null,Ea=!1,Os=fo=0,Aa=null}function vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?fe.memoizedState=We=e:We=We.next=e,We}function Qe(){if(Re===null){var e=fe.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var i=We===null?fe.memoizedState:We.next;if(i!==null)We=i,Re=e;else{if(e===null)throw fe.alternate===null?Error(r(467)):Error(r(310));Re=e,e={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},We===null?fe.memoizedState=We=e:We=We.next=e}return We}function ho(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Rs(e){var i=Os;return Os+=1,Aa===null&&(Aa=[]),e=Im(Aa,e,i),i=fe,(We===null?i.memoizedState:We.next)===null&&(i=i.alternate,O.H=i===null||i.memoizedState===null?kp:gu),e}function mo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Rs(e);if(e.$$typeof===P)return ut(e)}throw Error(r(438,String(e)))}function su(e){var i=null,s=fe.updateQueue;if(s!==null&&(i=s.memoCache),i==null){var o=fe.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(i={data:o.data.map(function(u){return u.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),s===null&&(s=ho(),fe.updateQueue=s),s.memoCache=i,s=i.data[i.index],s===void 0)for(s=i.data[i.index]=Array(e),o=0;o<e;o++)s[o]=K;return i.index++,s}function An(e,i){return typeof i=="function"?i(e):i}function po(e){var i=Qe();return ru(i,Re,e)}function ru(e,i,s){var o=e.queue;if(o===null)throw Error(r(311));o.lastRenderedReducer=s;var u=e.baseQueue,d=o.pending;if(d!==null){if(u!==null){var y=u.next;u.next=d.next,d.next=y}i.baseQueue=u=d,o.pending=null}if(d=e.baseState,u===null)e.memoizedState=d;else{i=u.next;var b=y=null,E=null,C=i,L=!1;do{var H=C.lane&-536870913;if(H!==C.lane?(ve&H)===H:(En&H)===H){var M=C.revertLane;if(M===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),H===ba&&(L=!0);else if((En&M)===M){C=C.next,M===ba&&(L=!0);continue}else H={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},E===null?(b=E=H,y=d):E=E.next=H,fe.lanes|=M,ti|=M;H=C.action,Bi&&s(d,H),d=C.hasEagerState?C.eagerState:s(d,H)}else M={lane:H,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},E===null?(b=E=M,y=d):E=E.next=M,fe.lanes|=H,ti|=H;C=C.next}while(C!==null&&C!==i);if(E===null?y=d:E.next=b,!Ot(d,e.memoizedState)&&(et=!0,L&&(s=Sa,s!==null)))throw s;e.memoizedState=d,e.baseState=y,e.baseQueue=E,o.lastRenderedState=d}return u===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function ou(e){var i=Qe(),s=i.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=e;var o=s.dispatch,u=s.pending,d=i.memoizedState;if(u!==null){s.pending=null;var y=u=u.next;do d=e(d,y.action),y=y.next;while(y!==u);Ot(d,i.memoizedState)||(et=!0),i.memoizedState=d,i.baseQueue===null&&(i.baseState=d),s.lastRenderedState=d}return[d,o]}function ep(e,i,s){var o=fe,u=Qe(),d=be;if(d){if(s===void 0)throw Error(r(407));s=s()}else s=i();var y=!Ot((Re||u).memoizedState,s);if(y&&(u.memoizedState=s,et=!0),u=u.queue,uu(ip.bind(null,o,u,e),[e]),u.getSnapshot!==i||y||We!==null&&We.memoizedState.tag&1){if(o.flags|=2048,Na(9,{destroy:void 0},np.bind(null,o,u,s,i),null),ze===null)throw Error(r(349));d||(En&127)!==0||tp(o,i,s)}return s}function tp(e,i,s){e.flags|=16384,e={getSnapshot:i,value:s},i=fe.updateQueue,i===null?(i=ho(),fe.updateQueue=i,i.stores=[e]):(s=i.stores,s===null?i.stores=[e]:s.push(e))}function np(e,i,s,o){i.value=s,i.getSnapshot=o,ap(i)&&sp(e)}function ip(e,i,s){return s(function(){ap(i)&&sp(e)})}function ap(e){var i=e.getSnapshot;e=e.value;try{var s=i();return!Ot(e,s)}catch{return!0}}function sp(e){var i=ji(e,2);i!==null&&Dt(i,e,2)}function lu(e){var i=vt();if(typeof e=="function"){var s=e;if(e=s(),Bi){Pn(!0);try{s()}finally{Pn(!1)}}}return i.memoizedState=i.baseState=e,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:e},i}function rp(e,i,s,o){return e.baseState=s,ru(e,Re,typeof o=="function"?o:An)}function B2(e,i,s,o,u){if(vo(e))throw Error(r(485));if(e=i.action,e!==null){var d={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){d.listeners.push(y)}};O.T!==null?s(!0):d.isTransition=!1,o(d),s=i.pending,s===null?(d.next=i.pending=d,op(i,d)):(d.next=s.next,i.pending=s.next=d)}}function op(e,i){var s=i.action,o=i.payload,u=e.state;if(i.isTransition){var d=O.T,y={};O.T=y;try{var b=s(u,o),E=O.S;E!==null&&E(y,b),lp(e,i,b)}catch(C){cu(e,i,C)}finally{d!==null&&y.types!==null&&(d.types=y.types),O.T=d}}else try{d=s(u,o),lp(e,i,d)}catch(C){cu(e,i,C)}}function lp(e,i,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(o){cp(e,i,o)},function(o){return cu(e,i,o)}):cp(e,i,s)}function cp(e,i,s){i.status="fulfilled",i.value=s,up(i),e.state=s,i=e.pending,i!==null&&(s=i.next,s===i?e.pending=null:(s=s.next,i.next=s,op(e,s)))}function cu(e,i,s){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do i.status="rejected",i.reason=s,up(i),i=i.next;while(i!==o)}e.action=null}function up(e){e=e.listeners;for(var i=0;i<e.length;i++)(0,e[i])()}function fp(e,i){return i}function dp(e,i){if(be){var s=ze.formState;if(s!==null){e:{var o=fe;if(be){if(Be){t:{for(var u=Be,d=Kt;u.nodeType!==8;){if(!d){u=null;break t}if(u=$t(u.nextSibling),u===null){u=null;break t}}d=u.data,u=d==="F!"||d==="F"?u:null}if(u){Be=$t(u.nextSibling),o=u.data==="F!";break e}}Yn(o)}o=!1}o&&(i=s[0])}}return s=vt(),s.memoizedState=s.baseState=i,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fp,lastRenderedState:i},s.queue=o,s=Mp.bind(null,fe,o),o.dispatch=s,o=lu(!1),d=pu.bind(null,fe,!1,o.queue),o=vt(),u={state:i,dispatch:null,action:e,pending:null},o.queue=u,s=B2.bind(null,fe,u,d,s),u.dispatch=s,o.memoizedState=e,[i,s,!1]}function hp(e){var i=Qe();return mp(i,Re,e)}function mp(e,i,s){if(i=ru(e,i,fp)[0],e=po(An)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var o=Rs(i)}catch(y){throw y===wa?ao:y}else o=i;i=Qe();var u=i.queue,d=u.dispatch;return s!==i.memoizedState&&(fe.flags|=2048,Na(9,{destroy:void 0},U2.bind(null,u,s),null)),[o,d,e]}function U2(e,i){e.action=i}function pp(e){var i=Qe(),s=Re;if(s!==null)return mp(i,s,e);Qe(),i=i.memoizedState,s=Qe();var o=s.queue.dispatch;return s.memoizedState=e,[i,o,!1]}function Na(e,i,s,o){return e={tag:e,create:s,deps:o,inst:i,next:null},i=fe.updateQueue,i===null&&(i=ho(),fe.updateQueue=i),s=i.lastEffect,s===null?i.lastEffect=e.next=e:(o=s.next,s.next=e,e.next=o,i.lastEffect=e),e}function gp(){return Qe().memoizedState}function go(e,i,s,o){var u=vt();fe.flags|=e,u.memoizedState=Na(1|i,{destroy:void 0},s,o===void 0?null:o)}function yo(e,i,s,o){var u=Qe();o=o===void 0?null:o;var d=u.memoizedState.inst;Re!==null&&o!==null&&eu(o,Re.memoizedState.deps)?u.memoizedState=Na(i,d,s,o):(fe.flags|=e,u.memoizedState=Na(1|i,d,s,o))}function yp(e,i){go(8390656,8,e,i)}function uu(e,i){yo(2048,8,e,i)}function H2(e){fe.flags|=4;var i=fe.updateQueue;if(i===null)i=ho(),fe.updateQueue=i,i.events=[e];else{var s=i.events;s===null?i.events=[e]:s.push(e)}}function vp(e){var i=Qe().memoizedState;return H2({ref:i,nextImpl:e}),function(){if((Ne&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}function xp(e,i){return yo(4,2,e,i)}function bp(e,i){return yo(4,4,e,i)}function Sp(e,i){if(typeof i=="function"){e=e();var s=i(e);return function(){typeof s=="function"?s():i(null)}}if(i!=null)return e=e(),i.current=e,function(){i.current=null}}function wp(e,i,s){s=s!=null?s.concat([e]):null,yo(4,4,Sp.bind(null,i,e),s)}function fu(){}function _p(e,i){var s=Qe();i=i===void 0?null:i;var o=s.memoizedState;return i!==null&&eu(i,o[1])?o[0]:(s.memoizedState=[e,i],e)}function Tp(e,i){var s=Qe();i=i===void 0?null:i;var o=s.memoizedState;if(i!==null&&eu(i,o[1]))return o[0];if(o=e(),Bi){Pn(!0);try{e()}finally{Pn(!1)}}return s.memoizedState=[o,i],o}function du(e,i,s){return s===void 0||(En&1073741824)!==0&&(ve&261930)===0?e.memoizedState=i:(e.memoizedState=s,e=Eg(),fe.lanes|=e,ti|=e,s)}function Ep(e,i,s,o){return Ot(s,i)?s:Ta.current!==null?(e=du(e,s,o),Ot(e,i)||(et=!0),e):(En&42)===0||(En&1073741824)!==0&&(ve&261930)===0?(et=!0,e.memoizedState=s):(e=Eg(),fe.lanes|=e,ti|=e,i)}function Ap(e,i,s,o,u){var d=I.p;I.p=d!==0&&8>d?d:8;var y=O.T,b={};O.T=b,pu(e,!1,i,s);try{var E=u(),C=O.S;if(C!==null&&C(b,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var L=L2(E,o);ks(e,i,L,Bt(e))}else ks(e,i,o,Bt(e))}catch(H){ks(e,i,{then:function(){},status:"rejected",reason:H},Bt())}finally{I.p=d,y!==null&&b.types!==null&&(y.types=b.types),O.T=y}}function P2(){}function hu(e,i,s,o){if(e.tag!==5)throw Error(r(476));var u=Np(e).queue;Ap(e,u,i,Y,s===null?P2:function(){return Dp(e),s(o)})}function Np(e){var i=e.memoizedState;if(i!==null)return i;i={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:Y},next:null};var s={};return i.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:s},next:null},e.memoizedState=i,e=e.alternate,e!==null&&(e.memoizedState=i),i}function Dp(e){var i=Np(e);i.next===null&&(i=e.alternate.memoizedState),ks(e,i.next.queue,{},Bt())}function mu(){return ut(Zs)}function jp(){return Qe().memoizedState}function Cp(){return Qe().memoizedState}function q2(e){for(var i=e.return;i!==null;){switch(i.tag){case 24:case 3:var s=Bt();e=$n(s);var o=Qn(i,e,s);o!==null&&(Dt(o,i,s),js(o,i,s)),i={cache:Ic()},e.payload=i;return}i=i.return}}function I2(e,i,s){var o=Bt();s={lane:o,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},vo(e)?Op(i,s):(s=Oc(e,i,s,o),s!==null&&(Dt(s,e,o),Rp(s,i,o)))}function Mp(e,i,s){var o=Bt();ks(e,i,s,o)}function ks(e,i,s,o){var u={lane:o,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(vo(e))Op(i,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=i.lastRenderedReducer,d!==null))try{var y=i.lastRenderedState,b=d(y,s);if(u.hasEagerState=!0,u.eagerState=b,Ot(b,y))return Zr(e,i,u,0),ze===null&&Qr(),!1}catch{}finally{}if(s=Oc(e,i,u,o),s!==null)return Dt(s,e,o),Rp(s,i,o),!0}return!1}function pu(e,i,s,o){if(o={lane:2,revertLane:Ku(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},vo(e)){if(i)throw Error(r(479))}else i=Oc(e,s,o,2),i!==null&&Dt(i,e,2)}function vo(e){var i=e.alternate;return e===fe||i!==null&&i===fe}function Op(e,i){Ea=uo=!0;var s=e.pending;s===null?i.next=i:(i.next=s.next,s.next=i),e.pending=i}function Rp(e,i,s){if((s&4194048)!==0){var o=i.lanes;o&=e.pendingLanes,s|=o,i.lanes=s,Bh(e,s)}}var Ls={readContext:ut,use:mo,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useLayoutEffect:Fe,useInsertionEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useSyncExternalStore:Fe,useId:Fe,useHostTransitionStatus:Fe,useFormState:Fe,useActionState:Fe,useOptimistic:Fe,useMemoCache:Fe,useCacheRefresh:Fe};Ls.useEffectEvent=Fe;var kp={readContext:ut,use:mo,useCallback:function(e,i){return vt().memoizedState=[e,i===void 0?null:i],e},useContext:ut,useEffect:yp,useImperativeHandle:function(e,i,s){s=s!=null?s.concat([e]):null,go(4194308,4,Sp.bind(null,i,e),s)},useLayoutEffect:function(e,i){return go(4194308,4,e,i)},useInsertionEffect:function(e,i){go(4,2,e,i)},useMemo:function(e,i){var s=vt();i=i===void 0?null:i;var o=e();if(Bi){Pn(!0);try{e()}finally{Pn(!1)}}return s.memoizedState=[o,i],o},useReducer:function(e,i,s){var o=vt();if(s!==void 0){var u=s(i);if(Bi){Pn(!0);try{s(i)}finally{Pn(!1)}}}else u=i;return o.memoizedState=o.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},o.queue=e,e=e.dispatch=I2.bind(null,fe,e),[o.memoizedState,e]},useRef:function(e){var i=vt();return e={current:e},i.memoizedState=e},useState:function(e){e=lu(e);var i=e.queue,s=Mp.bind(null,fe,i);return i.dispatch=s,[e.memoizedState,s]},useDebugValue:fu,useDeferredValue:function(e,i){var s=vt();return du(s,e,i)},useTransition:function(){var e=lu(!1);return e=Ap.bind(null,fe,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,i,s){var o=fe,u=vt();if(be){if(s===void 0)throw Error(r(407));s=s()}else{if(s=i(),ze===null)throw Error(r(349));(ve&127)!==0||tp(o,i,s)}u.memoizedState=s;var d={value:s,getSnapshot:i};return u.queue=d,yp(ip.bind(null,o,d,e),[e]),o.flags|=2048,Na(9,{destroy:void 0},np.bind(null,o,d,s,i),null),s},useId:function(){var e=vt(),i=ze.identifierPrefix;if(be){var s=cn,o=ln;s=(o&~(1<<32-Mt(o)-1)).toString(32)+s,i="_"+i+"R_"+s,s=fo++,0<s&&(i+="H"+s.toString(32)),i+="_"}else s=z2++,i="_"+i+"r_"+s.toString(32)+"_";return e.memoizedState=i},useHostTransitionStatus:mu,useFormState:dp,useActionState:dp,useOptimistic:function(e){var i=vt();i.memoizedState=i.baseState=e;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=s,i=pu.bind(null,fe,!0,s),s.dispatch=i,[e,i]},useMemoCache:su,useCacheRefresh:function(){return vt().memoizedState=q2.bind(null,fe)},useEffectEvent:function(e){var i=vt(),s={impl:e};return i.memoizedState=s,function(){if((Ne&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}},gu={readContext:ut,use:mo,useCallback:_p,useContext:ut,useEffect:uu,useImperativeHandle:wp,useInsertionEffect:xp,useLayoutEffect:bp,useMemo:Tp,useReducer:po,useRef:gp,useState:function(){return po(An)},useDebugValue:fu,useDeferredValue:function(e,i){var s=Qe();return Ep(s,Re.memoizedState,e,i)},useTransition:function(){var e=po(An)[0],i=Qe().memoizedState;return[typeof e=="boolean"?e:Rs(e),i]},useSyncExternalStore:ep,useId:jp,useHostTransitionStatus:mu,useFormState:hp,useActionState:hp,useOptimistic:function(e,i){var s=Qe();return rp(s,Re,e,i)},useMemoCache:su,useCacheRefresh:Cp};gu.useEffectEvent=vp;var Lp={readContext:ut,use:mo,useCallback:_p,useContext:ut,useEffect:uu,useImperativeHandle:wp,useInsertionEffect:xp,useLayoutEffect:bp,useMemo:Tp,useReducer:ou,useRef:gp,useState:function(){return ou(An)},useDebugValue:fu,useDeferredValue:function(e,i){var s=Qe();return Re===null?du(s,e,i):Ep(s,Re.memoizedState,e,i)},useTransition:function(){var e=ou(An)[0],i=Qe().memoizedState;return[typeof e=="boolean"?e:Rs(e),i]},useSyncExternalStore:ep,useId:jp,useHostTransitionStatus:mu,useFormState:pp,useActionState:pp,useOptimistic:function(e,i){var s=Qe();return Re!==null?rp(s,Re,e,i):(s.baseState=e,[e,s.queue.dispatch])},useMemoCache:su,useCacheRefresh:Cp};Lp.useEffectEvent=vp;function yu(e,i,s,o){i=e.memoizedState,s=s(o,i),s=s==null?i:x({},i,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var vu={enqueueSetState:function(e,i,s){e=e._reactInternals;var o=Bt(),u=$n(o);u.payload=i,s!=null&&(u.callback=s),i=Qn(e,u,o),i!==null&&(Dt(i,e,o),js(i,e,o))},enqueueReplaceState:function(e,i,s){e=e._reactInternals;var o=Bt(),u=$n(o);u.tag=1,u.payload=i,s!=null&&(u.callback=s),i=Qn(e,u,o),i!==null&&(Dt(i,e,o),js(i,e,o))},enqueueForceUpdate:function(e,i){e=e._reactInternals;var s=Bt(),o=$n(s);o.tag=2,i!=null&&(o.callback=i),i=Qn(e,o,s),i!==null&&(Dt(i,e,s),js(i,e,s))}};function zp(e,i,s,o,u,d,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,d,y):i.prototype&&i.prototype.isPureReactComponent?!Ss(s,o)||!Ss(u,d):!0}function Vp(e,i,s,o){e=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(s,o),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(s,o),i.state!==e&&vu.enqueueReplaceState(i,i.state,null)}function Ui(e,i){var s=i;if("ref"in i){s={};for(var o in i)o!=="ref"&&(s[o]=i[o])}if(e=e.defaultProps){s===i&&(s=x({},s));for(var u in e)s[u]===void 0&&(s[u]=e[u])}return s}function Bp(e){$r(e)}function Up(e){console.error(e)}function Hp(e){$r(e)}function xo(e,i){try{var s=e.onUncaughtError;s(i.value,{componentStack:i.stack})}catch(o){setTimeout(function(){throw o})}}function Pp(e,i,s){try{var o=e.onCaughtError;o(s.value,{componentStack:s.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function xu(e,i,s){return s=$n(s),s.tag=3,s.payload={element:null},s.callback=function(){xo(e,i)},s}function qp(e){return e=$n(e),e.tag=3,e}function Ip(e,i,s,o){var u=s.type.getDerivedStateFromError;if(typeof u=="function"){var d=o.value;e.payload=function(){return u(d)},e.callback=function(){Pp(i,s,o)}}var y=s.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){Pp(i,s,o),typeof u!="function"&&(ni===null?ni=new Set([this]):ni.add(this));var b=o.stack;this.componentDidCatch(o.value,{componentStack:b!==null?b:""})})}function F2(e,i,s,o,u){if(s.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(i=s.alternate,i!==null&&xa(i,s,u,!0),s=kt.current,s!==null){switch(s.tag){case 31:case 13:return Xt===null?Mo():s.alternate===null&&Ge===0&&(Ge=3),s.flags&=-257,s.flags|=65536,s.lanes=u,o===so?s.flags|=16384:(i=s.updateQueue,i===null?s.updateQueue=new Set([o]):i.add(o),Fu(e,o,u)),!1;case 22:return s.flags|=65536,o===so?s.flags|=16384:(i=s.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([o])},s.updateQueue=i):(s=i.retryQueue,s===null?i.retryQueue=new Set([o]):s.add(o)),Fu(e,o,u)),!1}throw Error(r(435,s.tag))}return Fu(e,o,u),Mo(),!1}if(be)return i=kt.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=u,o!==Bc&&(e=Error(r(422),{cause:o}),Ts(Ft(e,s)))):(o!==Bc&&(i=Error(r(423),{cause:o}),Ts(Ft(i,s))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,o=Ft(o,s),u=xu(e.stateNode,o,u),$c(e,u),Ge!==4&&(Ge=2)),!1;var d=Error(r(520),{cause:o});if(d=Ft(d,s),Is===null?Is=[d]:Is.push(d),Ge!==4&&(Ge=2),i===null)return!0;o=Ft(o,s),s=i;do{switch(s.tag){case 3:return s.flags|=65536,e=u&-u,s.lanes|=e,e=xu(s.stateNode,o,e),$c(s,e),!1;case 1:if(i=s.type,d=s.stateNode,(s.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(ni===null||!ni.has(d))))return s.flags|=65536,u&=-u,s.lanes|=u,u=qp(u),Ip(u,e,s,o),$c(s,u),!1}s=s.return}while(s!==null);return!1}var bu=Error(r(461)),et=!1;function ft(e,i,s,o){i.child=e===null?Km(i,null,s,o):Vi(i,e.child,s,o)}function Fp(e,i,s,o,u){s=s.render;var d=i.ref;if("ref"in o){var y={};for(var b in o)b!=="ref"&&(y[b]=o[b])}else y=o;return Ri(i),o=tu(e,i,s,y,d,u),b=nu(),e!==null&&!et?(iu(e,i,u),Nn(e,i,u)):(be&&b&&zc(i),i.flags|=1,ft(e,i,o,u),i.child)}function Gp(e,i,s,o,u){if(e===null){var d=s.type;return typeof d=="function"&&!Rc(d)&&d.defaultProps===void 0&&s.compare===null?(i.tag=15,i.type=d,Yp(e,i,d,o,u)):(e=Wr(s.type,null,o,i,i.mode,u),e.ref=i.ref,e.return=i,i.child=e)}if(d=e.child,!Du(e,u)){var y=d.memoizedProps;if(s=s.compare,s=s!==null?s:Ss,s(y,o)&&e.ref===i.ref)return Nn(e,i,u)}return i.flags|=1,e=Sn(d,o),e.ref=i.ref,e.return=i,i.child=e}function Yp(e,i,s,o,u){if(e!==null){var d=e.memoizedProps;if(Ss(d,o)&&e.ref===i.ref)if(et=!1,i.pendingProps=o=d,Du(e,u))(e.flags&131072)!==0&&(et=!0);else return i.lanes=e.lanes,Nn(e,i,u)}return Su(e,i,s,o,u)}function Kp(e,i,s,o){var u=o.children,d=e!==null?e.memoizedState:null;if(e===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((i.flags&128)!==0){if(d=d!==null?d.baseLanes|s:s,e!==null){for(o=i.child=e.child,u=0;o!==null;)u=u|o.lanes|o.childLanes,o=o.sibling;o=u&~d}else o=0,i.child=null;return Xp(e,i,d,s,o)}if((s&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},e!==null&&io(i,d!==null?d.cachePool:null),d!==null?Qm(i,d):Zc(),Zm(i);else return o=i.lanes=536870912,Xp(e,i,d!==null?d.baseLanes|s:s,s,o)}else d!==null?(io(i,d.cachePool),Qm(i,d),Jn(),i.memoizedState=null):(e!==null&&io(i,null),Zc(),Jn());return ft(e,i,u,s),i.child}function zs(e,i){return e!==null&&e.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function Xp(e,i,s,o,u){var d=Gc();return d=d===null?null:{parent:Je._currentValue,pool:d},i.memoizedState={baseLanes:s,cachePool:d},e!==null&&io(i,null),Zc(),Zm(i),e!==null&&xa(e,i,o,!0),i.childLanes=u,null}function bo(e,i){return i=wo({mode:i.mode,children:i.children},e.mode),i.ref=e.ref,e.child=i,i.return=e,i}function $p(e,i,s){return Vi(i,e.child,null,s),e=bo(i,i.pendingProps),e.flags|=2,Lt(i),i.memoizedState=null,e}function G2(e,i,s){var o=i.pendingProps,u=(i.flags&128)!==0;if(i.flags&=-129,e===null){if(be){if(o.mode==="hidden")return e=bo(i,o),i.lanes=536870912,zs(null,e);if(Wc(i),(e=Be)?(e=oy(e,Kt),e=e!==null&&e.data==="&"?e:null,e!==null&&(i.memoizedState={dehydrated:e,treeContext:Fn!==null?{id:ln,overflow:cn}:null,retryLane:536870912,hydrationErrors:null},s=Om(e),s.return=i,i.child=s,ct=i,Be=null)):e=null,e===null)throw Yn(i);return i.lanes=536870912,null}return bo(i,o)}var d=e.memoizedState;if(d!==null){var y=d.dehydrated;if(Wc(i),u)if(i.flags&256)i.flags&=-257,i=$p(e,i,s);else if(i.memoizedState!==null)i.child=e.child,i.flags|=128,i=null;else throw Error(r(558));else if(et||xa(e,i,s,!1),u=(s&e.childLanes)!==0,et||u){if(o=ze,o!==null&&(y=Uh(o,s),y!==0&&y!==d.retryLane))throw d.retryLane=y,ji(e,y),Dt(o,e,y),bu;Mo(),i=$p(e,i,s)}else e=d.treeContext,Be=$t(y.nextSibling),ct=i,be=!0,Gn=null,Kt=!1,e!==null&&Lm(i,e),i=bo(i,o),i.flags|=4096;return i}return e=Sn(e.child,{mode:o.mode,children:o.children}),e.ref=i.ref,i.child=e,e.return=i,e}function So(e,i){var s=i.ref;if(s===null)e!==null&&e.ref!==null&&(i.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(r(284));(e===null||e.ref!==s)&&(i.flags|=4194816)}}function Su(e,i,s,o,u){return Ri(i),s=tu(e,i,s,o,void 0,u),o=nu(),e!==null&&!et?(iu(e,i,u),Nn(e,i,u)):(be&&o&&zc(i),i.flags|=1,ft(e,i,s,u),i.child)}function Qp(e,i,s,o,u,d){return Ri(i),i.updateQueue=null,s=Wm(i,o,s,u),Jm(e),o=nu(),e!==null&&!et?(iu(e,i,d),Nn(e,i,d)):(be&&o&&zc(i),i.flags|=1,ft(e,i,s,d),i.child)}function Zp(e,i,s,o,u){if(Ri(i),i.stateNode===null){var d=pa,y=s.contextType;typeof y=="object"&&y!==null&&(d=ut(y)),d=new s(o,d),i.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=vu,i.stateNode=d,d._reactInternals=i,d=i.stateNode,d.props=o,d.state=i.memoizedState,d.refs={},Kc(i),y=s.contextType,d.context=typeof y=="object"&&y!==null?ut(y):pa,d.state=i.memoizedState,y=s.getDerivedStateFromProps,typeof y=="function"&&(yu(i,s,y,o),d.state=i.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(y=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),y!==d.state&&vu.enqueueReplaceState(d,d.state,null),Ms(i,o,d,u),Cs(),d.state=i.memoizedState),typeof d.componentDidMount=="function"&&(i.flags|=4194308),o=!0}else if(e===null){d=i.stateNode;var b=i.memoizedProps,E=Ui(s,b);d.props=E;var C=d.context,L=s.contextType;y=pa,typeof L=="object"&&L!==null&&(y=ut(L));var H=s.getDerivedStateFromProps;L=typeof H=="function"||typeof d.getSnapshotBeforeUpdate=="function",b=i.pendingProps!==b,L||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(b||C!==y)&&Vp(i,d,o,y),Xn=!1;var M=i.memoizedState;d.state=M,Ms(i,o,d,u),Cs(),C=i.memoizedState,b||M!==C||Xn?(typeof H=="function"&&(yu(i,s,H,o),C=i.memoizedState),(E=Xn||zp(i,s,E,o,M,C,y))?(L||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(i.flags|=4194308)):(typeof d.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=o,i.memoizedState=C),d.props=o,d.state=C,d.context=y,o=E):(typeof d.componentDidMount=="function"&&(i.flags|=4194308),o=!1)}else{d=i.stateNode,Xc(e,i),y=i.memoizedProps,L=Ui(s,y),d.props=L,H=i.pendingProps,M=d.context,C=s.contextType,E=pa,typeof C=="object"&&C!==null&&(E=ut(C)),b=s.getDerivedStateFromProps,(C=typeof b=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(y!==H||M!==E)&&Vp(i,d,o,E),Xn=!1,M=i.memoizedState,d.state=M,Ms(i,o,d,u),Cs();var R=i.memoizedState;y!==H||M!==R||Xn||e!==null&&e.dependencies!==null&&to(e.dependencies)?(typeof b=="function"&&(yu(i,s,b,o),R=i.memoizedState),(L=Xn||zp(i,s,L,o,M,R,E)||e!==null&&e.dependencies!==null&&to(e.dependencies))?(C||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(o,R,E),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(o,R,E)),typeof d.componentDidUpdate=="function"&&(i.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&M===e.memoizedState||(i.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&M===e.memoizedState||(i.flags|=1024),i.memoizedProps=o,i.memoizedState=R),d.props=o,d.state=R,d.context=E,o=L):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&M===e.memoizedState||(i.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&M===e.memoizedState||(i.flags|=1024),o=!1)}return d=o,So(e,i),o=(i.flags&128)!==0,d||o?(d=i.stateNode,s=o&&typeof s.getDerivedStateFromError!="function"?null:d.render(),i.flags|=1,e!==null&&o?(i.child=Vi(i,e.child,null,u),i.child=Vi(i,null,s,u)):ft(e,i,s,u),i.memoizedState=d.state,e=i.child):e=Nn(e,i,u),e}function Jp(e,i,s,o){return Mi(),i.flags|=256,ft(e,i,s,o),i.child}var wu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function _u(e){return{baseLanes:e,cachePool:Pm()}}function Tu(e,i,s){return e=e!==null?e.childLanes&~s:0,i&&(e|=Vt),e}function Wp(e,i,s){var o=i.pendingProps,u=!1,d=(i.flags&128)!==0,y;if((y=d)||(y=e!==null&&e.memoizedState===null?!1:($e.current&2)!==0),y&&(u=!0,i.flags&=-129),y=(i.flags&32)!==0,i.flags&=-33,e===null){if(be){if(u?Zn(i):Jn(),(e=Be)?(e=oy(e,Kt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(i.memoizedState={dehydrated:e,treeContext:Fn!==null?{id:ln,overflow:cn}:null,retryLane:536870912,hydrationErrors:null},s=Om(e),s.return=i,i.child=s,ct=i,Be=null)):e=null,e===null)throw Yn(i);return of(e)?i.lanes=32:i.lanes=536870912,null}var b=o.children;return o=o.fallback,u?(Jn(),u=i.mode,b=wo({mode:"hidden",children:b},u),o=Ci(o,u,s,null),b.return=i,o.return=i,b.sibling=o,i.child=b,o=i.child,o.memoizedState=_u(s),o.childLanes=Tu(e,y,s),i.memoizedState=wu,zs(null,o)):(Zn(i),Eu(i,b))}var E=e.memoizedState;if(E!==null&&(b=E.dehydrated,b!==null)){if(d)i.flags&256?(Zn(i),i.flags&=-257,i=Au(e,i,s)):i.memoizedState!==null?(Jn(),i.child=e.child,i.flags|=128,i=null):(Jn(),b=o.fallback,u=i.mode,o=wo({mode:"visible",children:o.children},u),b=Ci(b,u,s,null),b.flags|=2,o.return=i,b.return=i,o.sibling=b,i.child=o,Vi(i,e.child,null,s),o=i.child,o.memoizedState=_u(s),o.childLanes=Tu(e,y,s),i.memoizedState=wu,i=zs(null,o));else if(Zn(i),of(b)){if(y=b.nextSibling&&b.nextSibling.dataset,y)var C=y.dgst;y=C,o=Error(r(419)),o.stack="",o.digest=y,Ts({value:o,source:null,stack:null}),i=Au(e,i,s)}else if(et||xa(e,i,s,!1),y=(s&e.childLanes)!==0,et||y){if(y=ze,y!==null&&(o=Uh(y,s),o!==0&&o!==E.retryLane))throw E.retryLane=o,ji(e,o),Dt(y,e,o),bu;rf(b)||Mo(),i=Au(e,i,s)}else rf(b)?(i.flags|=192,i.child=e.child,i=null):(e=E.treeContext,Be=$t(b.nextSibling),ct=i,be=!0,Gn=null,Kt=!1,e!==null&&Lm(i,e),i=Eu(i,o.children),i.flags|=4096);return i}return u?(Jn(),b=o.fallback,u=i.mode,E=e.child,C=E.sibling,o=Sn(E,{mode:"hidden",children:o.children}),o.subtreeFlags=E.subtreeFlags&65011712,C!==null?b=Sn(C,b):(b=Ci(b,u,s,null),b.flags|=2),b.return=i,o.return=i,o.sibling=b,i.child=o,zs(null,o),o=i.child,b=e.child.memoizedState,b===null?b=_u(s):(u=b.cachePool,u!==null?(E=Je._currentValue,u=u.parent!==E?{parent:E,pool:E}:u):u=Pm(),b={baseLanes:b.baseLanes|s,cachePool:u}),o.memoizedState=b,o.childLanes=Tu(e,y,s),i.memoizedState=wu,zs(e.child,o)):(Zn(i),s=e.child,e=s.sibling,s=Sn(s,{mode:"visible",children:o.children}),s.return=i,s.sibling=null,e!==null&&(y=i.deletions,y===null?(i.deletions=[e],i.flags|=16):y.push(e)),i.child=s,i.memoizedState=null,s)}function Eu(e,i){return i=wo({mode:"visible",children:i},e.mode),i.return=e,e.child=i}function wo(e,i){return e=Rt(22,e,null,i),e.lanes=0,e}function Au(e,i,s){return Vi(i,e.child,null,s),e=Eu(i,i.pendingProps.children),e.flags|=2,i.memoizedState=null,e}function eg(e,i,s){e.lanes|=i;var o=e.alternate;o!==null&&(o.lanes|=i),Pc(e.return,i,s)}function Nu(e,i,s,o,u,d){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:o,tail:s,tailMode:u,treeForkCount:d}:(y.isBackwards=i,y.rendering=null,y.renderingStartTime=0,y.last=o,y.tail=s,y.tailMode=u,y.treeForkCount=d)}function tg(e,i,s){var o=i.pendingProps,u=o.revealOrder,d=o.tail;o=o.children;var y=$e.current,b=(y&2)!==0;if(b?(y=y&1|2,i.flags|=128):y&=1,G($e,y),ft(e,i,o,s),o=be?_s:0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=i.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&eg(e,s,i);else if(e.tag===19)eg(e,s,i);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===i)break e;for(;e.sibling===null;){if(e.return===null||e.return===i)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(s=i.child,u=null;s!==null;)e=s.alternate,e!==null&&co(e)===null&&(u=s),s=s.sibling;s=u,s===null?(u=i.child,i.child=null):(u=s.sibling,s.sibling=null),Nu(i,!1,u,s,d,o);break;case"backwards":case"unstable_legacy-backwards":for(s=null,u=i.child,i.child=null;u!==null;){if(e=u.alternate,e!==null&&co(e)===null){i.child=u;break}e=u.sibling,u.sibling=s,s=u,u=e}Nu(i,!0,s,null,d,o);break;case"together":Nu(i,!1,null,null,void 0,o);break;default:i.memoizedState=null}return i.child}function Nn(e,i,s){if(e!==null&&(i.dependencies=e.dependencies),ti|=i.lanes,(s&i.childLanes)===0)if(e!==null){if(xa(e,i,s,!1),(s&i.childLanes)===0)return null}else return null;if(e!==null&&i.child!==e.child)throw Error(r(153));if(i.child!==null){for(e=i.child,s=Sn(e,e.pendingProps),i.child=s,s.return=i;e.sibling!==null;)e=e.sibling,s=s.sibling=Sn(e,e.pendingProps),s.return=i;s.sibling=null}return i.child}function Du(e,i){return(e.lanes&i)!==0?!0:(e=e.dependencies,!!(e!==null&&to(e)))}function Y2(e,i,s){switch(i.tag){case 3:yt(i,i.stateNode.containerInfo),Kn(i,Je,e.memoizedState.cache),Mi();break;case 27:case 5:ls(i);break;case 4:yt(i,i.stateNode.containerInfo);break;case 10:Kn(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,Wc(i),null;break;case 13:var o=i.memoizedState;if(o!==null)return o.dehydrated!==null?(Zn(i),i.flags|=128,null):(s&i.child.childLanes)!==0?Wp(e,i,s):(Zn(i),e=Nn(e,i,s),e!==null?e.sibling:null);Zn(i);break;case 19:var u=(e.flags&128)!==0;if(o=(s&i.childLanes)!==0,o||(xa(e,i,s,!1),o=(s&i.childLanes)!==0),u){if(o)return tg(e,i,s);i.flags|=128}if(u=i.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),G($e,$e.current),o)break;return null;case 22:return i.lanes=0,Kp(e,i,s,i.pendingProps);case 24:Kn(i,Je,e.memoizedState.cache)}return Nn(e,i,s)}function ng(e,i,s){if(e!==null)if(e.memoizedProps!==i.pendingProps)et=!0;else{if(!Du(e,s)&&(i.flags&128)===0)return et=!1,Y2(e,i,s);et=(e.flags&131072)!==0}else et=!1,be&&(i.flags&1048576)!==0&&km(i,_s,i.index);switch(i.lanes=0,i.tag){case 16:e:{var o=i.pendingProps;if(e=Li(i.elementType),i.type=e,typeof e=="function")Rc(e)?(o=Ui(e,o),i.tag=1,i=Zp(null,i,e,o,s)):(i.tag=0,i=Su(null,i,e,o,s));else{if(e!=null){var u=e.$$typeof;if(u===F){i.tag=11,i=Fp(null,i,e,o,s);break e}else if(u===J){i.tag=14,i=Gp(null,i,e,o,s);break e}}throw i=_e(e)||e,Error(r(306,i,""))}}return i;case 0:return Su(e,i,i.type,i.pendingProps,s);case 1:return o=i.type,u=Ui(o,i.pendingProps),Zp(e,i,o,u,s);case 3:e:{if(yt(i,i.stateNode.containerInfo),e===null)throw Error(r(387));o=i.pendingProps;var d=i.memoizedState;u=d.element,Xc(e,i),Ms(i,o,null,s);var y=i.memoizedState;if(o=y.cache,Kn(i,Je,o),o!==d.cache&&qc(i,[Je],s,!0),Cs(),o=y.element,d.isDehydrated)if(d={element:o,isDehydrated:!1,cache:y.cache},i.updateQueue.baseState=d,i.memoizedState=d,i.flags&256){i=Jp(e,i,o,s);break e}else if(o!==u){u=Ft(Error(r(424)),i),Ts(u),i=Jp(e,i,o,s);break e}else{switch(e=i.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Be=$t(e.firstChild),ct=i,be=!0,Gn=null,Kt=!0,s=Km(i,null,o,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(Mi(),o===u){i=Nn(e,i,s);break e}ft(e,i,o,s)}i=i.child}return i;case 26:return So(e,i),e===null?(s=hy(i.type,null,i.pendingProps,null))?i.memoizedState=s:be||(s=i.type,e=i.pendingProps,o=Bo(pe.current).createElement(s),o[lt]=i,o[wt]=e,dt(o,s,e),rt(o),i.stateNode=o):i.memoizedState=hy(i.type,e.memoizedProps,i.pendingProps,e.memoizedState),null;case 27:return ls(i),e===null&&be&&(o=i.stateNode=uy(i.type,i.pendingProps,pe.current),ct=i,Kt=!0,u=Be,ri(i.type)?(lf=u,Be=$t(o.firstChild)):Be=u),ft(e,i,i.pendingProps.children,s),So(e,i),e===null&&(i.flags|=4194304),i.child;case 5:return e===null&&be&&((u=o=Be)&&(o=ww(o,i.type,i.pendingProps,Kt),o!==null?(i.stateNode=o,ct=i,Be=$t(o.firstChild),Kt=!1,u=!0):u=!1),u||Yn(i)),ls(i),u=i.type,d=i.pendingProps,y=e!==null?e.memoizedProps:null,o=d.children,nf(u,d)?o=null:y!==null&&nf(u,y)&&(i.flags|=32),i.memoizedState!==null&&(u=tu(e,i,V2,null,null,s),Zs._currentValue=u),So(e,i),ft(e,i,o,s),i.child;case 6:return e===null&&be&&((e=s=Be)&&(s=_w(s,i.pendingProps,Kt),s!==null?(i.stateNode=s,ct=i,Be=null,e=!0):e=!1),e||Yn(i)),null;case 13:return Wp(e,i,s);case 4:return yt(i,i.stateNode.containerInfo),o=i.pendingProps,e===null?i.child=Vi(i,null,o,s):ft(e,i,o,s),i.child;case 11:return Fp(e,i,i.type,i.pendingProps,s);case 7:return ft(e,i,i.pendingProps,s),i.child;case 8:return ft(e,i,i.pendingProps.children,s),i.child;case 12:return ft(e,i,i.pendingProps.children,s),i.child;case 10:return o=i.pendingProps,Kn(i,i.type,o.value),ft(e,i,o.children,s),i.child;case 9:return u=i.type._context,o=i.pendingProps.children,Ri(i),u=ut(u),o=o(u),i.flags|=1,ft(e,i,o,s),i.child;case 14:return Gp(e,i,i.type,i.pendingProps,s);case 15:return Yp(e,i,i.type,i.pendingProps,s);case 19:return tg(e,i,s);case 31:return G2(e,i,s);case 22:return Kp(e,i,s,i.pendingProps);case 24:return Ri(i),o=ut(Je),e===null?(u=Gc(),u===null&&(u=ze,d=Ic(),u.pooledCache=d,d.refCount++,d!==null&&(u.pooledCacheLanes|=s),u=d),i.memoizedState={parent:o,cache:u},Kc(i),Kn(i,Je,u)):((e.lanes&s)!==0&&(Xc(e,i),Ms(i,null,null,s),Cs()),u=e.memoizedState,d=i.memoizedState,u.parent!==o?(u={parent:o,cache:o},i.memoizedState=u,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=u),Kn(i,Je,o)):(o=d.cache,Kn(i,Je,o),o!==u.cache&&qc(i,[Je],s,!0))),ft(e,i,i.pendingProps.children,s),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}function Dn(e){e.flags|=4}function ju(e,i,s,o,u){if((i=(e.mode&32)!==0)&&(i=!1),i){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(jg())e.flags|=8192;else throw zi=so,Yc}else e.flags&=-16777217}function ig(e,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!vy(i))if(jg())e.flags|=8192;else throw zi=so,Yc}function _o(e,i){i!==null&&(e.flags|=4),e.flags&16384&&(i=e.tag!==22?zh():536870912,e.lanes|=i,Ma|=i)}function Vs(e,i){if(!be)switch(e.tailMode){case"hidden":i=e.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var o=null;s!==null;)s.alternate!==null&&(o=s),s=s.sibling;o===null?i||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Ue(e){var i=e.alternate!==null&&e.alternate.child===e.child,s=0,o=0;if(i)for(var u=e.child;u!==null;)s|=u.lanes|u.childLanes,o|=u.subtreeFlags&65011712,o|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)s|=u.lanes|u.childLanes,o|=u.subtreeFlags,o|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=o,e.childLanes=s,i}function K2(e,i,s){var o=i.pendingProps;switch(Vc(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(i),null;case 1:return Ue(i),null;case 3:return s=i.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),i.memoizedState.cache!==o&&(i.flags|=2048),Tn(Je),Xe(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(va(i)?Dn(i):e===null||e.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Uc())),Ue(i),null;case 26:var u=i.type,d=i.memoizedState;return e===null?(Dn(i),d!==null?(Ue(i),ig(i,d)):(Ue(i),ju(i,u,null,o,s))):d?d!==e.memoizedState?(Dn(i),Ue(i),ig(i,d)):(Ue(i),i.flags&=-16777217):(e=e.memoizedProps,e!==o&&Dn(i),Ue(i),ju(i,u,e,o,s)),null;case 27:if(Rr(i),s=pe.current,u=i.type,e!==null&&i.stateNode!=null)e.memoizedProps!==o&&Dn(i);else{if(!o){if(i.stateNode===null)throw Error(r(166));return Ue(i),null}e=$.current,va(i)?zm(i):(e=uy(u,o,s),i.stateNode=e,Dn(i))}return Ue(i),null;case 5:if(Rr(i),u=i.type,e!==null&&i.stateNode!=null)e.memoizedProps!==o&&Dn(i);else{if(!o){if(i.stateNode===null)throw Error(r(166));return Ue(i),null}if(d=$.current,va(i))zm(i);else{var y=Bo(pe.current);switch(d){case 1:d=y.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:d=y.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":d=y.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":d=y.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":d=y.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof o.is=="string"?y.createElement("select",{is:o.is}):y.createElement("select"),o.multiple?d.multiple=!0:o.size&&(d.size=o.size);break;default:d=typeof o.is=="string"?y.createElement(u,{is:o.is}):y.createElement(u)}}d[lt]=i,d[wt]=o;e:for(y=i.child;y!==null;){if(y.tag===5||y.tag===6)d.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===i)break e;for(;y.sibling===null;){if(y.return===null||y.return===i)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}i.stateNode=d;e:switch(dt(d,u,o),u){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Dn(i)}}return Ue(i),ju(i,i.type,e===null?null:e.memoizedProps,i.pendingProps,s),null;case 6:if(e&&i.stateNode!=null)e.memoizedProps!==o&&Dn(i);else{if(typeof o!="string"&&i.stateNode===null)throw Error(r(166));if(e=pe.current,va(i)){if(e=i.stateNode,s=i.memoizedProps,o=null,u=ct,u!==null)switch(u.tag){case 27:case 5:o=u.memoizedProps}e[lt]=i,e=!!(e.nodeValue===s||o!==null&&o.suppressHydrationWarning===!0||Wg(e.nodeValue,s)),e||Yn(i,!0)}else e=Bo(e).createTextNode(o),e[lt]=i,i.stateNode=e}return Ue(i),null;case 31:if(s=i.memoizedState,e===null||e.memoizedState!==null){if(o=va(i),s!==null){if(e===null){if(!o)throw Error(r(318));if(e=i.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[lt]=i}else Mi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Ue(i),e=!1}else s=Uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),e=!0;if(!e)return i.flags&256?(Lt(i),i):(Lt(i),null);if((i.flags&128)!==0)throw Error(r(558))}return Ue(i),null;case 13:if(o=i.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=va(i),o!==null&&o.dehydrated!==null){if(e===null){if(!u)throw Error(r(318));if(u=i.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[lt]=i}else Mi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Ue(i),u=!1}else u=Uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return i.flags&256?(Lt(i),i):(Lt(i),null)}return Lt(i),(i.flags&128)!==0?(i.lanes=s,i):(s=o!==null,e=e!==null&&e.memoizedState!==null,s&&(o=i.child,u=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(u=o.alternate.memoizedState.cachePool.pool),d=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),d!==u&&(o.flags|=2048)),s!==e&&s&&(i.child.flags|=8192),_o(i,i.updateQueue),Ue(i),null);case 4:return Xe(),e===null&&Zu(i.stateNode.containerInfo),Ue(i),null;case 10:return Tn(i.type),Ue(i),null;case 19:if(V($e),o=i.memoizedState,o===null)return Ue(i),null;if(u=(i.flags&128)!==0,d=o.rendering,d===null)if(u)Vs(o,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=i.child;e!==null;){if(d=co(e),d!==null){for(i.flags|=128,Vs(o,!1),e=d.updateQueue,i.updateQueue=e,_o(i,e),i.subtreeFlags=0,e=s,s=i.child;s!==null;)Mm(s,e),s=s.sibling;return G($e,$e.current&1|2),be&&wn(i,o.treeForkCount),i.child}e=e.sibling}o.tail!==null&&jt()>Do&&(i.flags|=128,u=!0,Vs(o,!1),i.lanes=4194304)}else{if(!u)if(e=co(d),e!==null){if(i.flags|=128,u=!0,e=e.updateQueue,i.updateQueue=e,_o(i,e),Vs(o,!0),o.tail===null&&o.tailMode==="hidden"&&!d.alternate&&!be)return Ue(i),null}else 2*jt()-o.renderingStartTime>Do&&s!==536870912&&(i.flags|=128,u=!0,Vs(o,!1),i.lanes=4194304);o.isBackwards?(d.sibling=i.child,i.child=d):(e=o.last,e!==null?e.sibling=d:i.child=d,o.last=d)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=jt(),e.sibling=null,s=$e.current,G($e,u?s&1|2:s&1),be&&wn(i,o.treeForkCount),e):(Ue(i),null);case 22:case 23:return Lt(i),Jc(),o=i.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(i.flags|=8192):o&&(i.flags|=8192),o?(s&536870912)!==0&&(i.flags&128)===0&&(Ue(i),i.subtreeFlags&6&&(i.flags|=8192)):Ue(i),s=i.updateQueue,s!==null&&_o(i,s.retryQueue),s=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==s&&(i.flags|=2048),e!==null&&V(ki),null;case 24:return s=null,e!==null&&(s=e.memoizedState.cache),i.memoizedState.cache!==s&&(i.flags|=2048),Tn(Je),Ue(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function X2(e,i){switch(Vc(i),i.tag){case 1:return e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 3:return Tn(Je),Xe(),e=i.flags,(e&65536)!==0&&(e&128)===0?(i.flags=e&-65537|128,i):null;case 26:case 27:case 5:return Rr(i),null;case 31:if(i.memoizedState!==null){if(Lt(i),i.alternate===null)throw Error(r(340));Mi()}return e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 13:if(Lt(i),e=i.memoizedState,e!==null&&e.dehydrated!==null){if(i.alternate===null)throw Error(r(340));Mi()}return e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 19:return V($e),null;case 4:return Xe(),null;case 10:return Tn(i.type),null;case 22:case 23:return Lt(i),Jc(),e!==null&&V(ki),e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 24:return Tn(Je),null;case 25:return null;default:return null}}function ag(e,i){switch(Vc(i),i.tag){case 3:Tn(Je),Xe();break;case 26:case 27:case 5:Rr(i);break;case 4:Xe();break;case 31:i.memoizedState!==null&&Lt(i);break;case 13:Lt(i);break;case 19:V($e);break;case 10:Tn(i.type);break;case 22:case 23:Lt(i),Jc(),e!==null&&V(ki);break;case 24:Tn(Je)}}function Bs(e,i){try{var s=i.updateQueue,o=s!==null?s.lastEffect:null;if(o!==null){var u=o.next;s=u;do{if((s.tag&e)===e){o=void 0;var d=s.create,y=s.inst;o=d(),y.destroy=o}s=s.next}while(s!==u)}}catch(b){Me(i,i.return,b)}}function Wn(e,i,s){try{var o=i.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var d=u.next;o=d;do{if((o.tag&e)===e){var y=o.inst,b=y.destroy;if(b!==void 0){y.destroy=void 0,u=i;var E=s,C=b;try{C()}catch(L){Me(u,E,L)}}}o=o.next}while(o!==d)}}catch(L){Me(i,i.return,L)}}function sg(e){var i=e.updateQueue;if(i!==null){var s=e.stateNode;try{$m(i,s)}catch(o){Me(e,e.return,o)}}}function rg(e,i,s){s.props=Ui(e.type,e.memoizedProps),s.state=e.memoizedState;try{s.componentWillUnmount()}catch(o){Me(e,i,o)}}function Us(e,i){try{var s=e.ref;if(s!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof s=="function"?e.refCleanup=s(o):s.current=o}}catch(u){Me(e,i,u)}}function un(e,i){var s=e.ref,o=e.refCleanup;if(s!==null)if(typeof o=="function")try{o()}catch(u){Me(e,i,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(u){Me(e,i,u)}else s.current=null}function og(e){var i=e.type,s=e.memoizedProps,o=e.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":s.autoFocus&&o.focus();break e;case"img":s.src?o.src=s.src:s.srcSet&&(o.srcset=s.srcSet)}}catch(u){Me(e,e.return,u)}}function Cu(e,i,s){try{var o=e.stateNode;gw(o,e.type,s,i),o[wt]=i}catch(u){Me(e,e.return,u)}}function lg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ri(e.type)||e.tag===4}function Mu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||lg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ri(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ou(e,i,s){var o=e.tag;if(o===5||o===6)e=e.stateNode,i?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(e,i):(i=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,i.appendChild(e),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=xn));else if(o!==4&&(o===27&&ri(e.type)&&(s=e.stateNode,i=null),e=e.child,e!==null))for(Ou(e,i,s),e=e.sibling;e!==null;)Ou(e,i,s),e=e.sibling}function To(e,i,s){var o=e.tag;if(o===5||o===6)e=e.stateNode,i?s.insertBefore(e,i):s.appendChild(e);else if(o!==4&&(o===27&&ri(e.type)&&(s=e.stateNode),e=e.child,e!==null))for(To(e,i,s),e=e.sibling;e!==null;)To(e,i,s),e=e.sibling}function cg(e){var i=e.stateNode,s=e.memoizedProps;try{for(var o=e.type,u=i.attributes;u.length;)i.removeAttributeNode(u[0]);dt(i,o,s),i[lt]=e,i[wt]=s}catch(d){Me(e,e.return,d)}}var jn=!1,tt=!1,Ru=!1,ug=typeof WeakSet=="function"?WeakSet:Set,ot=null;function $2(e,i){if(e=e.containerInfo,ef=Go,e=wm(e),Ac(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var o=s.getSelection&&s.getSelection();if(o&&o.rangeCount!==0){s=o.anchorNode;var u=o.anchorOffset,d=o.focusNode;o=o.focusOffset;try{s.nodeType,d.nodeType}catch{s=null;break e}var y=0,b=-1,E=-1,C=0,L=0,H=e,M=null;t:for(;;){for(var R;H!==s||u!==0&&H.nodeType!==3||(b=y+u),H!==d||o!==0&&H.nodeType!==3||(E=y+o),H.nodeType===3&&(y+=H.nodeValue.length),(R=H.firstChild)!==null;)M=H,H=R;for(;;){if(H===e)break t;if(M===s&&++C===u&&(b=y),M===d&&++L===o&&(E=y),(R=H.nextSibling)!==null)break;H=M,M=H.parentNode}H=R}s=b===-1||E===-1?null:{start:b,end:E}}else s=null}s=s||{start:0,end:0}}else s=null;for(tf={focusedElem:e,selectionRange:s},Go=!1,ot=i;ot!==null;)if(i=ot,e=i.child,(i.subtreeFlags&1028)!==0&&e!==null)e.return=i,ot=e;else for(;ot!==null;){switch(i=ot,d=i.alternate,e=i.flags,i.tag){case 0:if((e&4)!==0&&(e=i.updateQueue,e=e!==null?e.events:null,e!==null))for(s=0;s<e.length;s++)u=e[s],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,s=i,u=d.memoizedProps,d=d.memoizedState,o=s.stateNode;try{var Q=Ui(s.type,u);e=o.getSnapshotBeforeUpdate(Q,d),o.__reactInternalSnapshotBeforeUpdate=e}catch(ie){Me(s,s.return,ie)}}break;case 3:if((e&1024)!==0){if(e=i.stateNode.containerInfo,s=e.nodeType,s===9)sf(e);else if(s===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":sf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=i.sibling,e!==null){e.return=i.return,ot=e;break}ot=i.return}}function fg(e,i,s){var o=s.flags;switch(s.tag){case 0:case 11:case 15:Mn(e,s),o&4&&Bs(5,s);break;case 1:if(Mn(e,s),o&4)if(e=s.stateNode,i===null)try{e.componentDidMount()}catch(y){Me(s,s.return,y)}else{var u=Ui(s.type,i.memoizedProps);i=i.memoizedState;try{e.componentDidUpdate(u,i,e.__reactInternalSnapshotBeforeUpdate)}catch(y){Me(s,s.return,y)}}o&64&&sg(s),o&512&&Us(s,s.return);break;case 3:if(Mn(e,s),o&64&&(e=s.updateQueue,e!==null)){if(i=null,s.child!==null)switch(s.child.tag){case 27:case 5:i=s.child.stateNode;break;case 1:i=s.child.stateNode}try{$m(e,i)}catch(y){Me(s,s.return,y)}}break;case 27:i===null&&o&4&&cg(s);case 26:case 5:Mn(e,s),i===null&&o&4&&og(s),o&512&&Us(s,s.return);break;case 12:Mn(e,s);break;case 31:Mn(e,s),o&4&&mg(e,s);break;case 13:Mn(e,s),o&4&&pg(e,s),o&64&&(e=s.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=aw.bind(null,s),Tw(e,s))));break;case 22:if(o=s.memoizedState!==null||jn,!o){i=i!==null&&i.memoizedState!==null||tt,u=jn;var d=tt;jn=o,(tt=i)&&!d?On(e,s,(s.subtreeFlags&8772)!==0):Mn(e,s),jn=u,tt=d}break;case 30:break;default:Mn(e,s)}}function dg(e){var i=e.alternate;i!==null&&(e.alternate=null,dg(i)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(i=e.stateNode,i!==null&&cc(i)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var qe=null,Tt=!1;function Cn(e,i,s){for(s=s.child;s!==null;)hg(e,i,s),s=s.sibling}function hg(e,i,s){if(Ct&&typeof Ct.onCommitFiberUnmount=="function")try{Ct.onCommitFiberUnmount(cs,s)}catch{}switch(s.tag){case 26:tt||un(s,i),Cn(e,i,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:tt||un(s,i);var o=qe,u=Tt;ri(s.type)&&(qe=s.stateNode,Tt=!1),Cn(e,i,s),Xs(s.stateNode),qe=o,Tt=u;break;case 5:tt||un(s,i);case 6:if(o=qe,u=Tt,qe=null,Cn(e,i,s),qe=o,Tt=u,qe!==null)if(Tt)try{(qe.nodeType===9?qe.body:qe.nodeName==="HTML"?qe.ownerDocument.body:qe).removeChild(s.stateNode)}catch(d){Me(s,i,d)}else try{qe.removeChild(s.stateNode)}catch(d){Me(s,i,d)}break;case 18:qe!==null&&(Tt?(e=qe,sy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,s.stateNode),Ua(e)):sy(qe,s.stateNode));break;case 4:o=qe,u=Tt,qe=s.stateNode.containerInfo,Tt=!0,Cn(e,i,s),qe=o,Tt=u;break;case 0:case 11:case 14:case 15:Wn(2,s,i),tt||Wn(4,s,i),Cn(e,i,s);break;case 1:tt||(un(s,i),o=s.stateNode,typeof o.componentWillUnmount=="function"&&rg(s,i,o)),Cn(e,i,s);break;case 21:Cn(e,i,s);break;case 22:tt=(o=tt)||s.memoizedState!==null,Cn(e,i,s),tt=o;break;default:Cn(e,i,s)}}function mg(e,i){if(i.memoizedState===null&&(e=i.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ua(e)}catch(s){Me(i,i.return,s)}}}function pg(e,i){if(i.memoizedState===null&&(e=i.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ua(e)}catch(s){Me(i,i.return,s)}}function Q2(e){switch(e.tag){case 31:case 13:case 19:var i=e.stateNode;return i===null&&(i=e.stateNode=new ug),i;case 22:return e=e.stateNode,i=e._retryCache,i===null&&(i=e._retryCache=new ug),i;default:throw Error(r(435,e.tag))}}function Eo(e,i){var s=Q2(e);i.forEach(function(o){if(!s.has(o)){s.add(o);var u=sw.bind(null,e,o);o.then(u,u)}})}function Et(e,i){var s=i.deletions;if(s!==null)for(var o=0;o<s.length;o++){var u=s[o],d=e,y=i,b=y;e:for(;b!==null;){switch(b.tag){case 27:if(ri(b.type)){qe=b.stateNode,Tt=!1;break e}break;case 5:qe=b.stateNode,Tt=!1;break e;case 3:case 4:qe=b.stateNode.containerInfo,Tt=!0;break e}b=b.return}if(qe===null)throw Error(r(160));hg(d,y,u),qe=null,Tt=!1,d=u.alternate,d!==null&&(d.return=null),u.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)gg(i,e),i=i.sibling}var tn=null;function gg(e,i){var s=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Et(i,e),At(e),o&4&&(Wn(3,e,e.return),Bs(3,e),Wn(5,e,e.return));break;case 1:Et(i,e),At(e),o&512&&(tt||s===null||un(s,s.return)),o&64&&jn&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(s=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=s===null?o:s.concat(o))));break;case 26:var u=tn;if(Et(i,e),At(e),o&512&&(tt||s===null||un(s,s.return)),o&4){var d=s!==null?s.memoizedState:null;if(o=e.memoizedState,s===null)if(o===null)if(e.stateNode===null){e:{o=e.type,s=e.memoizedProps,u=u.ownerDocument||u;t:switch(o){case"title":d=u.getElementsByTagName("title")[0],(!d||d[ds]||d[lt]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=u.createElement(o),u.head.insertBefore(d,u.querySelector("head > title"))),dt(d,o,s),d[lt]=e,rt(d),o=d;break e;case"link":var y=gy("link","href",u).get(o+(s.href||""));if(y){for(var b=0;b<y.length;b++)if(d=y[b],d.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&d.getAttribute("rel")===(s.rel==null?null:s.rel)&&d.getAttribute("title")===(s.title==null?null:s.title)&&d.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){y.splice(b,1);break t}}d=u.createElement(o),dt(d,o,s),u.head.appendChild(d);break;case"meta":if(y=gy("meta","content",u).get(o+(s.content||""))){for(b=0;b<y.length;b++)if(d=y[b],d.getAttribute("content")===(s.content==null?null:""+s.content)&&d.getAttribute("name")===(s.name==null?null:s.name)&&d.getAttribute("property")===(s.property==null?null:s.property)&&d.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&d.getAttribute("charset")===(s.charSet==null?null:s.charSet)){y.splice(b,1);break t}}d=u.createElement(o),dt(d,o,s),u.head.appendChild(d);break;default:throw Error(r(468,o))}d[lt]=e,rt(d),o=d}e.stateNode=o}else yy(u,e.type,e.stateNode);else e.stateNode=py(u,o,e.memoizedProps);else d!==o?(d===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):d.count--,o===null?yy(u,e.type,e.stateNode):py(u,o,e.memoizedProps)):o===null&&e.stateNode!==null&&Cu(e,e.memoizedProps,s.memoizedProps)}break;case 27:Et(i,e),At(e),o&512&&(tt||s===null||un(s,s.return)),s!==null&&o&4&&Cu(e,e.memoizedProps,s.memoizedProps);break;case 5:if(Et(i,e),At(e),o&512&&(tt||s===null||un(s,s.return)),e.flags&32){u=e.stateNode;try{la(u,"")}catch(Q){Me(e,e.return,Q)}}o&4&&e.stateNode!=null&&(u=e.memoizedProps,Cu(e,u,s!==null?s.memoizedProps:u)),o&1024&&(Ru=!0);break;case 6:if(Et(i,e),At(e),o&4){if(e.stateNode===null)throw Error(r(162));o=e.memoizedProps,s=e.stateNode;try{s.nodeValue=o}catch(Q){Me(e,e.return,Q)}}break;case 3:if(Po=null,u=tn,tn=Uo(i.containerInfo),Et(i,e),tn=u,At(e),o&4&&s!==null&&s.memoizedState.isDehydrated)try{Ua(i.containerInfo)}catch(Q){Me(e,e.return,Q)}Ru&&(Ru=!1,yg(e));break;case 4:o=tn,tn=Uo(e.stateNode.containerInfo),Et(i,e),At(e),tn=o;break;case 12:Et(i,e),At(e);break;case 31:Et(i,e),At(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Eo(e,o)));break;case 13:Et(i,e),At(e),e.child.flags&8192&&e.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(No=jt()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Eo(e,o)));break;case 22:u=e.memoizedState!==null;var E=s!==null&&s.memoizedState!==null,C=jn,L=tt;if(jn=C||u,tt=L||E,Et(i,e),tt=L,jn=C,At(e),o&8192)e:for(i=e.stateNode,i._visibility=u?i._visibility&-2:i._visibility|1,u&&(s===null||E||jn||tt||Hi(e)),s=null,i=e;;){if(i.tag===5||i.tag===26){if(s===null){E=s=i;try{if(d=E.stateNode,u)y=d.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{b=E.stateNode;var H=E.memoizedProps.style,M=H!=null&&H.hasOwnProperty("display")?H.display:null;b.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch(Q){Me(E,E.return,Q)}}}else if(i.tag===6){if(s===null){E=i;try{E.stateNode.nodeValue=u?"":E.memoizedProps}catch(Q){Me(E,E.return,Q)}}}else if(i.tag===18){if(s===null){E=i;try{var R=E.stateNode;u?ry(R,!0):ry(E.stateNode,!1)}catch(Q){Me(E,E.return,Q)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===e)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)break e;for(;i.sibling===null;){if(i.return===null||i.return===e)break e;s===i&&(s=null),i=i.return}s===i&&(s=null),i.sibling.return=i.return,i=i.sibling}o&4&&(o=e.updateQueue,o!==null&&(s=o.retryQueue,s!==null&&(o.retryQueue=null,Eo(e,s))));break;case 19:Et(i,e),At(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Eo(e,o)));break;case 30:break;case 21:break;default:Et(i,e),At(e)}}function At(e){var i=e.flags;if(i&2){try{for(var s,o=e.return;o!==null;){if(lg(o)){s=o;break}o=o.return}if(s==null)throw Error(r(160));switch(s.tag){case 27:var u=s.stateNode,d=Mu(e);To(e,d,u);break;case 5:var y=s.stateNode;s.flags&32&&(la(y,""),s.flags&=-33);var b=Mu(e);To(e,b,y);break;case 3:case 4:var E=s.stateNode.containerInfo,C=Mu(e);Ou(e,C,E);break;default:throw Error(r(161))}}catch(L){Me(e,e.return,L)}e.flags&=-3}i&4096&&(e.flags&=-4097)}function yg(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var i=e;yg(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),e=e.sibling}}function Mn(e,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)fg(e,i.alternate,i),i=i.sibling}function Hi(e){for(e=e.child;e!==null;){var i=e;switch(i.tag){case 0:case 11:case 14:case 15:Wn(4,i,i.return),Hi(i);break;case 1:un(i,i.return);var s=i.stateNode;typeof s.componentWillUnmount=="function"&&rg(i,i.return,s),Hi(i);break;case 27:Xs(i.stateNode);case 26:case 5:un(i,i.return),Hi(i);break;case 22:i.memoizedState===null&&Hi(i);break;case 30:Hi(i);break;default:Hi(i)}e=e.sibling}}function On(e,i,s){for(s=s&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var o=i.alternate,u=e,d=i,y=d.flags;switch(d.tag){case 0:case 11:case 15:On(u,d,s),Bs(4,d);break;case 1:if(On(u,d,s),o=d,u=o.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(C){Me(o,o.return,C)}if(o=d,u=o.updateQueue,u!==null){var b=o.stateNode;try{var E=u.shared.hiddenCallbacks;if(E!==null)for(u.shared.hiddenCallbacks=null,u=0;u<E.length;u++)Xm(E[u],b)}catch(C){Me(o,o.return,C)}}s&&y&64&&sg(d),Us(d,d.return);break;case 27:cg(d);case 26:case 5:On(u,d,s),s&&o===null&&y&4&&og(d),Us(d,d.return);break;case 12:On(u,d,s);break;case 31:On(u,d,s),s&&y&4&&mg(u,d);break;case 13:On(u,d,s),s&&y&4&&pg(u,d);break;case 22:d.memoizedState===null&&On(u,d,s),Us(d,d.return);break;case 30:break;default:On(u,d,s)}i=i.sibling}}function ku(e,i){var s=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),e=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(e=i.memoizedState.cachePool.pool),e!==s&&(e!=null&&e.refCount++,s!=null&&Es(s))}function Lu(e,i){e=null,i.alternate!==null&&(e=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==e&&(i.refCount++,e!=null&&Es(e))}function nn(e,i,s,o){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)vg(e,i,s,o),i=i.sibling}function vg(e,i,s,o){var u=i.flags;switch(i.tag){case 0:case 11:case 15:nn(e,i,s,o),u&2048&&Bs(9,i);break;case 1:nn(e,i,s,o);break;case 3:nn(e,i,s,o),u&2048&&(e=null,i.alternate!==null&&(e=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==e&&(i.refCount++,e!=null&&Es(e)));break;case 12:if(u&2048){nn(e,i,s,o),e=i.stateNode;try{var d=i.memoizedProps,y=d.id,b=d.onPostCommit;typeof b=="function"&&b(y,i.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Me(i,i.return,E)}}else nn(e,i,s,o);break;case 31:nn(e,i,s,o);break;case 13:nn(e,i,s,o);break;case 23:break;case 22:d=i.stateNode,y=i.alternate,i.memoizedState!==null?d._visibility&2?nn(e,i,s,o):Hs(e,i):d._visibility&2?nn(e,i,s,o):(d._visibility|=2,Da(e,i,s,o,(i.subtreeFlags&10256)!==0||!1)),u&2048&&ku(y,i);break;case 24:nn(e,i,s,o),u&2048&&Lu(i.alternate,i);break;default:nn(e,i,s,o)}}function Da(e,i,s,o,u){for(u=u&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var d=e,y=i,b=s,E=o,C=y.flags;switch(y.tag){case 0:case 11:case 15:Da(d,y,b,E,u),Bs(8,y);break;case 23:break;case 22:var L=y.stateNode;y.memoizedState!==null?L._visibility&2?Da(d,y,b,E,u):Hs(d,y):(L._visibility|=2,Da(d,y,b,E,u)),u&&C&2048&&ku(y.alternate,y);break;case 24:Da(d,y,b,E,u),u&&C&2048&&Lu(y.alternate,y);break;default:Da(d,y,b,E,u)}i=i.sibling}}function Hs(e,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var s=e,o=i,u=o.flags;switch(o.tag){case 22:Hs(s,o),u&2048&&ku(o.alternate,o);break;case 24:Hs(s,o),u&2048&&Lu(o.alternate,o);break;default:Hs(s,o)}i=i.sibling}}var Ps=8192;function ja(e,i,s){if(e.subtreeFlags&Ps)for(e=e.child;e!==null;)xg(e,i,s),e=e.sibling}function xg(e,i,s){switch(e.tag){case 26:ja(e,i,s),e.flags&Ps&&e.memoizedState!==null&&zw(s,tn,e.memoizedState,e.memoizedProps);break;case 5:ja(e,i,s);break;case 3:case 4:var o=tn;tn=Uo(e.stateNode.containerInfo),ja(e,i,s),tn=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=Ps,Ps=16777216,ja(e,i,s),Ps=o):ja(e,i,s));break;default:ja(e,i,s)}}function bg(e){var i=e.alternate;if(i!==null&&(e=i.child,e!==null)){i.child=null;do i=e.sibling,e.sibling=null,e=i;while(e!==null)}}function qs(e){var i=e.deletions;if((e.flags&16)!==0){if(i!==null)for(var s=0;s<i.length;s++){var o=i[s];ot=o,wg(o,e)}bg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Sg(e),e=e.sibling}function Sg(e){switch(e.tag){case 0:case 11:case 15:qs(e),e.flags&2048&&Wn(9,e,e.return);break;case 3:qs(e);break;case 12:qs(e);break;case 22:var i=e.stateNode;e.memoizedState!==null&&i._visibility&2&&(e.return===null||e.return.tag!==13)?(i._visibility&=-3,Ao(e)):qs(e);break;default:qs(e)}}function Ao(e){var i=e.deletions;if((e.flags&16)!==0){if(i!==null)for(var s=0;s<i.length;s++){var o=i[s];ot=o,wg(o,e)}bg(e)}for(e=e.child;e!==null;){switch(i=e,i.tag){case 0:case 11:case 15:Wn(8,i,i.return),Ao(i);break;case 22:s=i.stateNode,s._visibility&2&&(s._visibility&=-3,Ao(i));break;default:Ao(i)}e=e.sibling}}function wg(e,i){for(;ot!==null;){var s=ot;switch(s.tag){case 0:case 11:case 15:Wn(8,s,i);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var o=s.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Es(s.memoizedState.cache)}if(o=s.child,o!==null)o.return=s,ot=o;else e:for(s=e;ot!==null;){o=ot;var u=o.sibling,d=o.return;if(dg(o),o===s){ot=null;break e}if(u!==null){u.return=d,ot=u;break e}ot=d}}}var Z2={getCacheForType:function(e){var i=ut(Je),s=i.data.get(e);return s===void 0&&(s=e(),i.data.set(e,s)),s},cacheSignal:function(){return ut(Je).controller.signal}},J2=typeof WeakMap=="function"?WeakMap:Map,Ne=0,ze=null,ge=null,ve=0,Ce=0,zt=null,ei=!1,Ca=!1,zu=!1,Rn=0,Ge=0,ti=0,Pi=0,Vu=0,Vt=0,Ma=0,Is=null,Nt=null,Bu=!1,No=0,_g=0,Do=1/0,jo=null,ni=null,at=0,ii=null,Oa=null,kn=0,Uu=0,Hu=null,Tg=null,Fs=0,Pu=null;function Bt(){return(Ne&2)!==0&&ve!==0?ve&-ve:O.T!==null?Ku():Hh()}function Eg(){if(Vt===0)if((ve&536870912)===0||be){var e=zr;zr<<=1,(zr&3932160)===0&&(zr=262144),Vt=e}else Vt=536870912;return e=kt.current,e!==null&&(e.flags|=32),Vt}function Dt(e,i,s){(e===ze&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)&&(Ra(e,0),ai(e,ve,Vt,!1)),fs(e,s),((Ne&2)===0||e!==ze)&&(e===ze&&((Ne&2)===0&&(Pi|=s),Ge===4&&ai(e,ve,Vt,!1)),fn(e))}function Ag(e,i,s){if((Ne&6)!==0)throw Error(r(327));var o=!s&&(i&127)===0&&(i&e.expiredLanes)===0||us(e,i),u=o?tw(e,i):Iu(e,i,!0),d=o;do{if(u===0){Ca&&!o&&ai(e,i,0,!1);break}else{if(s=e.current.alternate,d&&!W2(s)){u=Iu(e,i,!1),d=!1;continue}if(u===2){if(d=i,e.errorRecoveryDisabledLanes&d)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){i=y;e:{var b=e;u=Is;var E=b.current.memoizedState.isDehydrated;if(E&&(Ra(b,y).flags|=256),y=Iu(b,y,!1),y!==2){if(zu&&!E){b.errorRecoveryDisabledLanes|=d,Pi|=d,u=4;break e}d=Nt,Nt=u,d!==null&&(Nt===null?Nt=d:Nt.push.apply(Nt,d))}u=y}if(d=!1,u!==2)continue}}if(u===1){Ra(e,0),ai(e,i,0,!0);break}e:{switch(o=e,d=u,d){case 0:case 1:throw Error(r(345));case 4:if((i&4194048)!==i)break;case 6:ai(o,i,Vt,!ei);break e;case 2:Nt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((i&62914560)===i&&(u=No+300-jt(),10<u)){if(ai(o,i,Vt,!ei),Br(o,0,!0)!==0)break e;kn=i,o.timeoutHandle=iy(Ng.bind(null,o,s,Nt,jo,Bu,i,Vt,Pi,Ma,ei,d,"Throttled",-0,0),u);break e}Ng(o,s,Nt,jo,Bu,i,Vt,Pi,Ma,ei,d,null,-0,0)}}break}while(!0);fn(e)}function Ng(e,i,s,o,u,d,y,b,E,C,L,H,M,R){if(e.timeoutHandle=-1,H=i.subtreeFlags,H&8192||(H&16785408)===16785408){H={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:xn},xg(i,d,H);var Q=(d&62914560)===d?No-jt():(d&4194048)===d?_g-jt():0;if(Q=Vw(H,Q),Q!==null){kn=d,e.cancelPendingCommit=Q(Lg.bind(null,e,i,d,s,o,u,y,b,E,L,H,null,M,R)),ai(e,d,y,!C);return}}Lg(e,i,d,s,o,u,y,b,E)}function W2(e){for(var i=e;;){var s=i.tag;if((s===0||s===11||s===15)&&i.flags&16384&&(s=i.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var o=0;o<s.length;o++){var u=s[o],d=u.getSnapshot;u=u.value;try{if(!Ot(d(),u))return!1}catch{return!1}}if(s=i.child,i.subtreeFlags&16384&&s!==null)s.return=i,i=s;else{if(i===e)break;for(;i.sibling===null;){if(i.return===null||i.return===e)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function ai(e,i,s,o){i&=~Vu,i&=~Pi,e.suspendedLanes|=i,e.pingedLanes&=~i,o&&(e.warmLanes|=i),o=e.expirationTimes;for(var u=i;0<u;){var d=31-Mt(u),y=1<<d;o[d]=-1,u&=~y}s!==0&&Vh(e,s,i)}function Co(){return(Ne&6)===0?(Gs(0),!1):!0}function qu(){if(ge!==null){if(Ce===0)var e=ge.return;else e=ge,_n=Oi=null,au(e),_a=null,Ns=0,e=ge;for(;e!==null;)ag(e.alternate,e),e=e.return;ge=null}}function Ra(e,i){var s=e.timeoutHandle;s!==-1&&(e.timeoutHandle=-1,xw(s)),s=e.cancelPendingCommit,s!==null&&(e.cancelPendingCommit=null,s()),kn=0,qu(),ze=e,ge=s=Sn(e.current,null),ve=i,Ce=0,zt=null,ei=!1,Ca=us(e,i),zu=!1,Ma=Vt=Vu=Pi=ti=Ge=0,Nt=Is=null,Bu=!1,(i&8)!==0&&(i|=i&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=i;0<o;){var u=31-Mt(o),d=1<<u;i|=e[u],o&=~d}return Rn=i,Qr(),s}function Dg(e,i){fe=null,O.H=Ls,i===wa||i===ao?(i=Fm(),Ce=3):i===Yc?(i=Fm(),Ce=4):Ce=i===bu?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,zt=i,ge===null&&(Ge=1,xo(e,Ft(i,e.current)))}function jg(){var e=kt.current;return e===null?!0:(ve&4194048)===ve?Xt===null:(ve&62914560)===ve||(ve&536870912)!==0?e===Xt:!1}function Cg(){var e=O.H;return O.H=Ls,e===null?Ls:e}function Mg(){var e=O.A;return O.A=Z2,e}function Mo(){Ge=4,ei||(ve&4194048)!==ve&&kt.current!==null||(Ca=!0),(ti&134217727)===0&&(Pi&134217727)===0||ze===null||ai(ze,ve,Vt,!1)}function Iu(e,i,s){var o=Ne;Ne|=2;var u=Cg(),d=Mg();(ze!==e||ve!==i)&&(jo=null,Ra(e,i)),i=!1;var y=Ge;e:do try{if(Ce!==0&&ge!==null){var b=ge,E=zt;switch(Ce){case 8:qu(),y=6;break e;case 3:case 2:case 9:case 6:kt.current===null&&(i=!0);var C=Ce;if(Ce=0,zt=null,ka(e,b,E,C),s&&Ca){y=0;break e}break;default:C=Ce,Ce=0,zt=null,ka(e,b,E,C)}}ew(),y=Ge;break}catch(L){Dg(e,L)}while(!0);return i&&e.shellSuspendCounter++,_n=Oi=null,Ne=o,O.H=u,O.A=d,ge===null&&(ze=null,ve=0,Qr()),y}function ew(){for(;ge!==null;)Og(ge)}function tw(e,i){var s=Ne;Ne|=2;var o=Cg(),u=Mg();ze!==e||ve!==i?(jo=null,Do=jt()+500,Ra(e,i)):Ca=us(e,i);e:do try{if(Ce!==0&&ge!==null){i=ge;var d=zt;t:switch(Ce){case 1:Ce=0,zt=null,ka(e,i,d,1);break;case 2:case 9:if(qm(d)){Ce=0,zt=null,Rg(i);break}i=function(){Ce!==2&&Ce!==9||ze!==e||(Ce=7),fn(e)},d.then(i,i);break e;case 3:Ce=7;break e;case 4:Ce=5;break e;case 7:qm(d)?(Ce=0,zt=null,Rg(i)):(Ce=0,zt=null,ka(e,i,d,7));break;case 5:var y=null;switch(ge.tag){case 26:y=ge.memoizedState;case 5:case 27:var b=ge;if(y?vy(y):b.stateNode.complete){Ce=0,zt=null;var E=b.sibling;if(E!==null)ge=E;else{var C=b.return;C!==null?(ge=C,Oo(C)):ge=null}break t}}Ce=0,zt=null,ka(e,i,d,5);break;case 6:Ce=0,zt=null,ka(e,i,d,6);break;case 8:qu(),Ge=6;break e;default:throw Error(r(462))}}nw();break}catch(L){Dg(e,L)}while(!0);return _n=Oi=null,O.H=o,O.A=u,Ne=s,ge!==null?0:(ze=null,ve=0,Qr(),Ge)}function nw(){for(;ge!==null&&!ES();)Og(ge)}function Og(e){var i=ng(e.alternate,e,Rn);e.memoizedProps=e.pendingProps,i===null?Oo(e):ge=i}function Rg(e){var i=e,s=i.alternate;switch(i.tag){case 15:case 0:i=Qp(s,i,i.pendingProps,i.type,void 0,ve);break;case 11:i=Qp(s,i,i.pendingProps,i.type.render,i.ref,ve);break;case 5:au(i);default:ag(s,i),i=ge=Mm(i,Rn),i=ng(s,i,Rn)}e.memoizedProps=e.pendingProps,i===null?Oo(e):ge=i}function ka(e,i,s,o){_n=Oi=null,au(i),_a=null,Ns=0;var u=i.return;try{if(F2(e,u,i,s,ve)){Ge=1,xo(e,Ft(s,e.current)),ge=null;return}}catch(d){if(u!==null)throw ge=u,d;Ge=1,xo(e,Ft(s,e.current)),ge=null;return}i.flags&32768?(be||o===1?e=!0:Ca||(ve&536870912)!==0?e=!1:(ei=e=!0,(o===2||o===9||o===3||o===6)&&(o=kt.current,o!==null&&o.tag===13&&(o.flags|=16384))),kg(i,e)):Oo(i)}function Oo(e){var i=e;do{if((i.flags&32768)!==0){kg(i,ei);return}e=i.return;var s=K2(i.alternate,i,Rn);if(s!==null){ge=s;return}if(i=i.sibling,i!==null){ge=i;return}ge=i=e}while(i!==null);Ge===0&&(Ge=5)}function kg(e,i){do{var s=X2(e.alternate,e);if(s!==null){s.flags&=32767,ge=s;return}if(s=e.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!i&&(e=e.sibling,e!==null)){ge=e;return}ge=e=s}while(e!==null);Ge=6,ge=null}function Lg(e,i,s,o,u,d,y,b,E){e.cancelPendingCommit=null;do Ro();while(at!==0);if((Ne&6)!==0)throw Error(r(327));if(i!==null){if(i===e.current)throw Error(r(177));if(d=i.lanes|i.childLanes,d|=Mc,LS(e,s,d,y,b,E),e===ze&&(ge=ze=null,ve=0),Oa=i,ii=e,kn=s,Uu=d,Hu=u,Tg=o,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,rw(kr,function(){return Hg(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||o){o=O.T,O.T=null,u=I.p,I.p=2,y=Ne,Ne|=4;try{$2(e,i,s)}finally{Ne=y,I.p=u,O.T=o}}at=1,zg(),Vg(),Bg()}}function zg(){if(at===1){at=0;var e=ii,i=Oa,s=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||s){s=O.T,O.T=null;var o=I.p;I.p=2;var u=Ne;Ne|=4;try{gg(i,e);var d=tf,y=wm(e.containerInfo),b=d.focusedElem,E=d.selectionRange;if(y!==b&&b&&b.ownerDocument&&Sm(b.ownerDocument.documentElement,b)){if(E!==null&&Ac(b)){var C=E.start,L=E.end;if(L===void 0&&(L=C),"selectionStart"in b)b.selectionStart=C,b.selectionEnd=Math.min(L,b.value.length);else{var H=b.ownerDocument||document,M=H&&H.defaultView||window;if(M.getSelection){var R=M.getSelection(),Q=b.textContent.length,ie=Math.min(E.start,Q),Le=E.end===void 0?ie:Math.min(E.end,Q);!R.extend&&ie>Le&&(y=Le,Le=ie,ie=y);var D=bm(b,ie),N=bm(b,Le);if(D&&N&&(R.rangeCount!==1||R.anchorNode!==D.node||R.anchorOffset!==D.offset||R.focusNode!==N.node||R.focusOffset!==N.offset)){var j=H.createRange();j.setStart(D.node,D.offset),R.removeAllRanges(),ie>Le?(R.addRange(j),R.extend(N.node,N.offset)):(j.setEnd(N.node,N.offset),R.addRange(j))}}}}for(H=[],R=b;R=R.parentNode;)R.nodeType===1&&H.push({element:R,left:R.scrollLeft,top:R.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<H.length;b++){var U=H[b];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Go=!!ef,tf=ef=null}finally{Ne=u,I.p=o,O.T=s}}e.current=i,at=2}}function Vg(){if(at===2){at=0;var e=ii,i=Oa,s=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||s){s=O.T,O.T=null;var o=I.p;I.p=2;var u=Ne;Ne|=4;try{fg(e,i.alternate,i)}finally{Ne=u,I.p=o,O.T=s}}at=3}}function Bg(){if(at===4||at===3){at=0,AS();var e=ii,i=Oa,s=kn,o=Tg;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?at=5:(at=0,Oa=ii=null,Ug(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(ni=null),oc(s),i=i.stateNode,Ct&&typeof Ct.onCommitFiberRoot=="function")try{Ct.onCommitFiberRoot(cs,i,void 0,(i.current.flags&128)===128)}catch{}if(o!==null){i=O.T,u=I.p,I.p=2,O.T=null;try{for(var d=e.onRecoverableError,y=0;y<o.length;y++){var b=o[y];d(b.value,{componentStack:b.stack})}}finally{O.T=i,I.p=u}}(kn&3)!==0&&Ro(),fn(e),u=e.pendingLanes,(s&261930)!==0&&(u&42)!==0?e===Pu?Fs++:(Fs=0,Pu=e):Fs=0,Gs(0)}}function Ug(e,i){(e.pooledCacheLanes&=i)===0&&(i=e.pooledCache,i!=null&&(e.pooledCache=null,Es(i)))}function Ro(){return zg(),Vg(),Bg(),Hg()}function Hg(){if(at!==5)return!1;var e=ii,i=Uu;Uu=0;var s=oc(kn),o=O.T,u=I.p;try{I.p=32>s?32:s,O.T=null,s=Hu,Hu=null;var d=ii,y=kn;if(at=0,Oa=ii=null,kn=0,(Ne&6)!==0)throw Error(r(331));var b=Ne;if(Ne|=4,Sg(d.current),vg(d,d.current,y,s),Ne=b,Gs(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(cs,d)}catch{}return!0}finally{I.p=u,O.T=o,Ug(e,i)}}function Pg(e,i,s){i=Ft(s,i),i=xu(e.stateNode,i,2),e=Qn(e,i,2),e!==null&&(fs(e,2),fn(e))}function Me(e,i,s){if(e.tag===3)Pg(e,e,s);else for(;i!==null;){if(i.tag===3){Pg(i,e,s);break}else if(i.tag===1){var o=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(ni===null||!ni.has(o))){e=Ft(s,e),s=qp(2),o=Qn(i,s,2),o!==null&&(Ip(s,o,i,e),fs(o,2),fn(o));break}}i=i.return}}function Fu(e,i,s){var o=e.pingCache;if(o===null){o=e.pingCache=new J2;var u=new Set;o.set(i,u)}else u=o.get(i),u===void 0&&(u=new Set,o.set(i,u));u.has(s)||(zu=!0,u.add(s),e=iw.bind(null,e,i,s),i.then(e,e))}function iw(e,i,s){var o=e.pingCache;o!==null&&o.delete(i),e.pingedLanes|=e.suspendedLanes&s,e.warmLanes&=~s,ze===e&&(ve&s)===s&&(Ge===4||Ge===3&&(ve&62914560)===ve&&300>jt()-No?(Ne&2)===0&&Ra(e,0):Vu|=s,Ma===ve&&(Ma=0)),fn(e)}function qg(e,i){i===0&&(i=zh()),e=ji(e,i),e!==null&&(fs(e,i),fn(e))}function aw(e){var i=e.memoizedState,s=0;i!==null&&(s=i.retryLane),qg(e,s)}function sw(e,i){var s=0;switch(e.tag){case 31:case 13:var o=e.stateNode,u=e.memoizedState;u!==null&&(s=u.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(r(314))}o!==null&&o.delete(i),qg(e,s)}function rw(e,i){return ic(e,i)}var ko=null,La=null,Gu=!1,Lo=!1,Yu=!1,si=0;function fn(e){e!==La&&e.next===null&&(La===null?ko=La=e:La=La.next=e),Lo=!0,Gu||(Gu=!0,lw())}function Gs(e,i){if(!Yu&&Lo){Yu=!0;do for(var s=!1,o=ko;o!==null;){if(e!==0){var u=o.pendingLanes;if(u===0)var d=0;else{var y=o.suspendedLanes,b=o.pingedLanes;d=(1<<31-Mt(42|e)+1)-1,d&=u&~(y&~b),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(s=!0,Yg(o,d))}else d=ve,d=Br(o,o===ze?d:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(d&3)===0||us(o,d)||(s=!0,Yg(o,d));o=o.next}while(s);Yu=!1}}function ow(){Ig()}function Ig(){Lo=Gu=!1;var e=0;si!==0&&vw()&&(e=si);for(var i=jt(),s=null,o=ko;o!==null;){var u=o.next,d=Fg(o,i);d===0?(o.next=null,s===null?ko=u:s.next=u,u===null&&(La=s)):(s=o,(e!==0||(d&3)!==0)&&(Lo=!0)),o=u}at!==0&&at!==5||Gs(e),si!==0&&(si=0)}function Fg(e,i){for(var s=e.suspendedLanes,o=e.pingedLanes,u=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var y=31-Mt(d),b=1<<y,E=u[y];E===-1?((b&s)===0||(b&o)!==0)&&(u[y]=kS(b,i)):E<=i&&(e.expiredLanes|=b),d&=~b}if(i=ze,s=ve,s=Br(e,e===i?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,s===0||e===i&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&ac(o),e.callbackNode=null,e.callbackPriority=0;if((s&3)===0||us(e,s)){if(i=s&-s,i===e.callbackPriority)return i;switch(o!==null&&ac(o),oc(s)){case 2:case 8:s=kh;break;case 32:s=kr;break;case 268435456:s=Lh;break;default:s=kr}return o=Gg.bind(null,e),s=ic(s,o),e.callbackPriority=i,e.callbackNode=s,i}return o!==null&&o!==null&&ac(o),e.callbackPriority=2,e.callbackNode=null,2}function Gg(e,i){if(at!==0&&at!==5)return e.callbackNode=null,e.callbackPriority=0,null;var s=e.callbackNode;if(Ro()&&e.callbackNode!==s)return null;var o=ve;return o=Br(e,e===ze?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(Ag(e,o,i),Fg(e,jt()),e.callbackNode!=null&&e.callbackNode===s?Gg.bind(null,e):null)}function Yg(e,i){if(Ro())return null;Ag(e,i,!0)}function lw(){bw(function(){(Ne&6)!==0?ic(Rh,ow):Ig()})}function Ku(){if(si===0){var e=ba;e===0&&(e=Lr,Lr<<=1,(Lr&261888)===0&&(Lr=256)),si=e}return si}function Kg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:qr(""+e)}function Xg(e,i){var s=i.ownerDocument.createElement("input");return s.name=i.name,s.value=i.value,e.id&&s.setAttribute("form",e.id),i.parentNode.insertBefore(s,i),e=new FormData(e),s.parentNode.removeChild(s),e}function cw(e,i,s,o,u){if(i==="submit"&&s&&s.stateNode===u){var d=Kg((u[wt]||null).action),y=o.submitter;y&&(i=(i=y[wt]||null)?Kg(i.formAction):y.getAttribute("formAction"),i!==null&&(d=i,y=null));var b=new Yr("action","action",null,o,u);e.push({event:b,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(si!==0){var E=y?Xg(u,y):new FormData(u);hu(s,{pending:!0,data:E,method:u.method,action:d},null,E)}}else typeof d=="function"&&(b.preventDefault(),E=y?Xg(u,y):new FormData(u),hu(s,{pending:!0,data:E,method:u.method,action:d},d,E))},currentTarget:u}]})}}for(var Xu=0;Xu<Cc.length;Xu++){var $u=Cc[Xu],uw=$u.toLowerCase(),fw=$u[0].toUpperCase()+$u.slice(1);en(uw,"on"+fw)}en(Em,"onAnimationEnd"),en(Am,"onAnimationIteration"),en(Nm,"onAnimationStart"),en("dblclick","onDoubleClick"),en("focusin","onFocus"),en("focusout","onBlur"),en(N2,"onTransitionRun"),en(D2,"onTransitionStart"),en(j2,"onTransitionCancel"),en(Dm,"onTransitionEnd"),ra("onMouseEnter",["mouseout","mouseover"]),ra("onMouseLeave",["mouseout","mouseover"]),ra("onPointerEnter",["pointerout","pointerover"]),ra("onPointerLeave",["pointerout","pointerover"]),Ei("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ei("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ei("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ei("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ei("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ei("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ys="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),dw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ys));function $g(e,i){i=(i&4)!==0;for(var s=0;s<e.length;s++){var o=e[s],u=o.event;o=o.listeners;e:{var d=void 0;if(i)for(var y=o.length-1;0<=y;y--){var b=o[y],E=b.instance,C=b.currentTarget;if(b=b.listener,E!==d&&u.isPropagationStopped())break e;d=b,u.currentTarget=C;try{d(u)}catch(L){$r(L)}u.currentTarget=null,d=E}else for(y=0;y<o.length;y++){if(b=o[y],E=b.instance,C=b.currentTarget,b=b.listener,E!==d&&u.isPropagationStopped())break e;d=b,u.currentTarget=C;try{d(u)}catch(L){$r(L)}u.currentTarget=null,d=E}}}}function ye(e,i){var s=i[lc];s===void 0&&(s=i[lc]=new Set);var o=e+"__bubble";s.has(o)||(Qg(i,e,2,!1),s.add(o))}function Qu(e,i,s){var o=0;i&&(o|=4),Qg(s,e,o,i)}var zo="_reactListening"+Math.random().toString(36).slice(2);function Zu(e){if(!e[zo]){e[zo]=!0,Ih.forEach(function(s){s!=="selectionchange"&&(dw.has(s)||Qu(s,!1,e),Qu(s,!0,e))});var i=e.nodeType===9?e:e.ownerDocument;i===null||i[zo]||(i[zo]=!0,Qu("selectionchange",!1,i))}}function Qg(e,i,s,o){switch(Ey(i)){case 2:var u=Hw;break;case 8:u=Pw;break;default:u=hf}s=u.bind(null,i,s,e),u=void 0,!yc||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(u=!0),o?u!==void 0?e.addEventListener(i,s,{capture:!0,passive:u}):e.addEventListener(i,s,!0):u!==void 0?e.addEventListener(i,s,{passive:u}):e.addEventListener(i,s,!1)}function Ju(e,i,s,o,u){var d=o;if((i&1)===0&&(i&2)===0&&o!==null)e:for(;;){if(o===null)return;var y=o.tag;if(y===3||y===4){var b=o.stateNode.containerInfo;if(b===u)break;if(y===4)for(y=o.return;y!==null;){var E=y.tag;if((E===3||E===4)&&y.stateNode.containerInfo===u)return;y=y.return}for(;b!==null;){if(y=ia(b),y===null)return;if(E=y.tag,E===5||E===6||E===26||E===27){o=d=y;continue e}b=b.parentNode}}o=o.return}tm(function(){var C=d,L=pc(s),H=[];e:{var M=jm.get(e);if(M!==void 0){var R=Yr,Q=e;switch(e){case"keypress":if(Fr(s)===0)break e;case"keydown":case"keyup":R=s2;break;case"focusin":Q="focus",R=Sc;break;case"focusout":Q="blur",R=Sc;break;case"beforeblur":case"afterblur":R=Sc;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":R=am;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":R=KS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":R=l2;break;case Em:case Am:case Nm:R=QS;break;case Dm:R=u2;break;case"scroll":case"scrollend":R=GS;break;case"wheel":R=d2;break;case"copy":case"cut":case"paste":R=JS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":R=rm;break;case"toggle":case"beforetoggle":R=m2}var ie=(i&4)!==0,Le=!ie&&(e==="scroll"||e==="scrollend"),D=ie?M!==null?M+"Capture":null:M;ie=[];for(var N=C,j;N!==null;){var U=N;if(j=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||j===null||D===null||(U=ms(N,D),U!=null&&ie.push(Ks(N,U,j))),Le)break;N=N.return}0<ie.length&&(M=new R(M,Q,null,s,L),H.push({event:M,listeners:ie}))}}if((i&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",R=e==="mouseout"||e==="pointerout",M&&s!==mc&&(Q=s.relatedTarget||s.fromElement)&&(ia(Q)||Q[na]))break e;if((R||M)&&(M=L.window===L?L:(M=L.ownerDocument)?M.defaultView||M.parentWindow:window,R?(Q=s.relatedTarget||s.toElement,R=C,Q=Q?ia(Q):null,Q!==null&&(Le=c(Q),ie=Q.tag,Q!==Le||ie!==5&&ie!==27&&ie!==6)&&(Q=null)):(R=null,Q=C),R!==Q)){if(ie=am,U="onMouseLeave",D="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(ie=rm,U="onPointerLeave",D="onPointerEnter",N="pointer"),Le=R==null?M:hs(R),j=Q==null?M:hs(Q),M=new ie(U,N+"leave",R,s,L),M.target=Le,M.relatedTarget=j,U=null,ia(L)===C&&(ie=new ie(D,N+"enter",Q,s,L),ie.target=j,ie.relatedTarget=Le,U=ie),Le=U,R&&Q)t:{for(ie=hw,D=R,N=Q,j=0,U=D;U;U=ie(U))j++;U=0;for(var ne=N;ne;ne=ie(ne))U++;for(;0<j-U;)D=ie(D),j--;for(;0<U-j;)N=ie(N),U--;for(;j--;){if(D===N||N!==null&&D===N.alternate){ie=D;break t}D=ie(D),N=ie(N)}ie=null}else ie=null;R!==null&&Zg(H,M,R,ie,!1),Q!==null&&Le!==null&&Zg(H,Le,Q,ie,!0)}}e:{if(M=C?hs(C):window,R=M.nodeName&&M.nodeName.toLowerCase(),R==="select"||R==="input"&&M.type==="file")var Te=mm;else if(dm(M))if(pm)Te=T2;else{Te=w2;var W=S2}else R=M.nodeName,!R||R.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?C&&hc(C.elementType)&&(Te=mm):Te=_2;if(Te&&(Te=Te(e,C))){hm(H,Te,s,L);break e}W&&W(e,M,C),e==="focusout"&&C&&M.type==="number"&&C.memoizedProps.value!=null&&dc(M,"number",M.value)}switch(W=C?hs(C):window,e){case"focusin":(dm(W)||W.contentEditable==="true")&&(da=W,Nc=C,ws=null);break;case"focusout":ws=Nc=da=null;break;case"mousedown":Dc=!0;break;case"contextmenu":case"mouseup":case"dragend":Dc=!1,_m(H,s,L);break;case"selectionchange":if(A2)break;case"keydown":case"keyup":_m(H,s,L)}var de;if(_c)e:{switch(e){case"compositionstart":var xe="onCompositionStart";break e;case"compositionend":xe="onCompositionEnd";break e;case"compositionupdate":xe="onCompositionUpdate";break e}xe=void 0}else fa?um(e,s)&&(xe="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(xe="onCompositionStart");xe&&(om&&s.locale!=="ko"&&(fa||xe!=="onCompositionStart"?xe==="onCompositionEnd"&&fa&&(de=nm()):(In=L,vc="value"in In?In.value:In.textContent,fa=!0)),W=Vo(C,xe),0<W.length&&(xe=new sm(xe,e,null,s,L),H.push({event:xe,listeners:W}),de?xe.data=de:(de=fm(s),de!==null&&(xe.data=de)))),(de=g2?y2(e,s):v2(e,s))&&(xe=Vo(C,"onBeforeInput"),0<xe.length&&(W=new sm("onBeforeInput","beforeinput",null,s,L),H.push({event:W,listeners:xe}),W.data=de)),cw(H,e,C,s,L)}$g(H,i)})}function Ks(e,i,s){return{instance:e,listener:i,currentTarget:s}}function Vo(e,i){for(var s=i+"Capture",o=[];e!==null;){var u=e,d=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||d===null||(u=ms(e,s),u!=null&&o.unshift(Ks(e,u,d)),u=ms(e,i),u!=null&&o.push(Ks(e,u,d))),e.tag===3)return o;e=e.return}return[]}function hw(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Zg(e,i,s,o,u){for(var d=i._reactName,y=[];s!==null&&s!==o;){var b=s,E=b.alternate,C=b.stateNode;if(b=b.tag,E!==null&&E===o)break;b!==5&&b!==26&&b!==27||C===null||(E=C,u?(C=ms(s,d),C!=null&&y.unshift(Ks(s,C,E))):u||(C=ms(s,d),C!=null&&y.push(Ks(s,C,E)))),s=s.return}y.length!==0&&e.push({event:i,listeners:y})}var mw=/\r\n?/g,pw=/\u0000|\uFFFD/g;function Jg(e){return(typeof e=="string"?e:""+e).replace(mw,`
|
||
`).replace(pw,"")}function Wg(e,i){return i=Jg(i),Jg(e)===i}function ke(e,i,s,o,u,d){switch(s){case"children":typeof o=="string"?i==="body"||i==="textarea"&&o===""||la(e,o):(typeof o=="number"||typeof o=="bigint")&&i!=="body"&&la(e,""+o);break;case"className":Hr(e,"class",o);break;case"tabIndex":Hr(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Hr(e,s,o);break;case"style":Wh(e,o,d);break;case"data":if(i!=="object"){Hr(e,"data",o);break}case"src":case"href":if(o===""&&(i!=="a"||s!=="href")){e.removeAttribute(s);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(s);break}o=qr(""+o),e.setAttribute(s,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(s==="formAction"?(i!=="input"&&ke(e,i,"name",u.name,u,null),ke(e,i,"formEncType",u.formEncType,u,null),ke(e,i,"formMethod",u.formMethod,u,null),ke(e,i,"formTarget",u.formTarget,u,null)):(ke(e,i,"encType",u.encType,u,null),ke(e,i,"method",u.method,u,null),ke(e,i,"target",u.target,u,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(s);break}o=qr(""+o),e.setAttribute(s,o);break;case"onClick":o!=null&&(e.onclick=xn);break;case"onScroll":o!=null&&ye("scroll",e);break;case"onScrollEnd":o!=null&&ye("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(r(61));if(s=o.__html,s!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=s}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}s=qr(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(s,""+o):e.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(s,""):e.removeAttribute(s);break;case"capture":case"download":o===!0?e.setAttribute(s,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(s,o):e.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(s,o):e.removeAttribute(s);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(s):e.setAttribute(s,o);break;case"popover":ye("beforetoggle",e),ye("toggle",e),Ur(e,"popover",o);break;case"xlinkActuate":vn(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":vn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":vn(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":vn(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":vn(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":vn(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":vn(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":vn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":vn(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Ur(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=IS.get(s)||s,Ur(e,s,o))}}function Wu(e,i,s,o,u,d){switch(s){case"style":Wh(e,o,d);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(r(61));if(s=o.__html,s!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=s}}break;case"children":typeof o=="string"?la(e,o):(typeof o=="number"||typeof o=="bigint")&&la(e,""+o);break;case"onScroll":o!=null&&ye("scroll",e);break;case"onScrollEnd":o!=null&&ye("scrollend",e);break;case"onClick":o!=null&&(e.onclick=xn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Fh.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(u=s.endsWith("Capture"),i=s.slice(2,u?s.length-7:void 0),d=e[wt]||null,d=d!=null?d[s]:null,typeof d=="function"&&e.removeEventListener(i,d,u),typeof o=="function")){typeof d!="function"&&d!==null&&(s in e?e[s]=null:e.hasAttribute(s)&&e.removeAttribute(s)),e.addEventListener(i,o,u);break e}s in e?e[s]=o:o===!0?e.setAttribute(s,""):Ur(e,s,o)}}}function dt(e,i,s){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ye("error",e),ye("load",e);var o=!1,u=!1,d;for(d in s)if(s.hasOwnProperty(d)){var y=s[d];if(y!=null)switch(d){case"src":o=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:ke(e,i,d,y,s,null)}}u&&ke(e,i,"srcSet",s.srcSet,s,null),o&&ke(e,i,"src",s.src,s,null);return;case"input":ye("invalid",e);var b=d=y=u=null,E=null,C=null;for(o in s)if(s.hasOwnProperty(o)){var L=s[o];if(L!=null)switch(o){case"name":u=L;break;case"type":y=L;break;case"checked":E=L;break;case"defaultChecked":C=L;break;case"value":d=L;break;case"defaultValue":b=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(r(137,i));break;default:ke(e,i,o,L,s,null)}}$h(e,d,b,E,C,y,u,!1);return;case"select":ye("invalid",e),o=y=d=null;for(u in s)if(s.hasOwnProperty(u)&&(b=s[u],b!=null))switch(u){case"value":d=b;break;case"defaultValue":y=b;break;case"multiple":o=b;default:ke(e,i,u,b,s,null)}i=d,s=y,e.multiple=!!o,i!=null?oa(e,!!o,i,!1):s!=null&&oa(e,!!o,s,!0);return;case"textarea":ye("invalid",e),d=u=o=null;for(y in s)if(s.hasOwnProperty(y)&&(b=s[y],b!=null))switch(y){case"value":o=b;break;case"defaultValue":u=b;break;case"children":d=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(r(91));break;default:ke(e,i,y,b,s,null)}Zh(e,o,u,d);return;case"option":for(E in s)if(s.hasOwnProperty(E)&&(o=s[E],o!=null))switch(E){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:ke(e,i,E,o,s,null)}return;case"dialog":ye("beforetoggle",e),ye("toggle",e),ye("cancel",e),ye("close",e);break;case"iframe":case"object":ye("load",e);break;case"video":case"audio":for(o=0;o<Ys.length;o++)ye(Ys[o],e);break;case"image":ye("error",e),ye("load",e);break;case"details":ye("toggle",e);break;case"embed":case"source":case"link":ye("error",e),ye("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(C in s)if(s.hasOwnProperty(C)&&(o=s[C],o!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:ke(e,i,C,o,s,null)}return;default:if(hc(i)){for(L in s)s.hasOwnProperty(L)&&(o=s[L],o!==void 0&&Wu(e,i,L,o,s,void 0));return}}for(b in s)s.hasOwnProperty(b)&&(o=s[b],o!=null&&ke(e,i,b,o,s,null))}function gw(e,i,s,o){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,d=null,y=null,b=null,E=null,C=null,L=null;for(R in s){var H=s[R];if(s.hasOwnProperty(R)&&H!=null)switch(R){case"checked":break;case"value":break;case"defaultValue":E=H;default:o.hasOwnProperty(R)||ke(e,i,R,null,o,H)}}for(var M in o){var R=o[M];if(H=s[M],o.hasOwnProperty(M)&&(R!=null||H!=null))switch(M){case"type":d=R;break;case"name":u=R;break;case"checked":C=R;break;case"defaultChecked":L=R;break;case"value":y=R;break;case"defaultValue":b=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(137,i));break;default:R!==H&&ke(e,i,M,R,o,H)}}fc(e,y,b,E,C,L,d,u);return;case"select":R=y=b=M=null;for(d in s)if(E=s[d],s.hasOwnProperty(d)&&E!=null)switch(d){case"value":break;case"multiple":R=E;default:o.hasOwnProperty(d)||ke(e,i,d,null,o,E)}for(u in o)if(d=o[u],E=s[u],o.hasOwnProperty(u)&&(d!=null||E!=null))switch(u){case"value":M=d;break;case"defaultValue":b=d;break;case"multiple":y=d;default:d!==E&&ke(e,i,u,d,o,E)}i=b,s=y,o=R,M!=null?oa(e,!!s,M,!1):!!o!=!!s&&(i!=null?oa(e,!!s,i,!0):oa(e,!!s,s?[]:"",!1));return;case"textarea":R=M=null;for(b in s)if(u=s[b],s.hasOwnProperty(b)&&u!=null&&!o.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:ke(e,i,b,null,o,u)}for(y in o)if(u=o[y],d=s[y],o.hasOwnProperty(y)&&(u!=null||d!=null))switch(y){case"value":M=u;break;case"defaultValue":R=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==d&&ke(e,i,y,u,o,d)}Qh(e,M,R);return;case"option":for(var Q in s)if(M=s[Q],s.hasOwnProperty(Q)&&M!=null&&!o.hasOwnProperty(Q))switch(Q){case"selected":e.selected=!1;break;default:ke(e,i,Q,null,o,M)}for(E in o)if(M=o[E],R=s[E],o.hasOwnProperty(E)&&M!==R&&(M!=null||R!=null))switch(E){case"selected":e.selected=M&&typeof M!="function"&&typeof M!="symbol";break;default:ke(e,i,E,M,o,R)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ie in s)M=s[ie],s.hasOwnProperty(ie)&&M!=null&&!o.hasOwnProperty(ie)&&ke(e,i,ie,null,o,M);for(C in o)if(M=o[C],R=s[C],o.hasOwnProperty(C)&&M!==R&&(M!=null||R!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(137,i));break;default:ke(e,i,C,M,o,R)}return;default:if(hc(i)){for(var Le in s)M=s[Le],s.hasOwnProperty(Le)&&M!==void 0&&!o.hasOwnProperty(Le)&&Wu(e,i,Le,void 0,o,M);for(L in o)M=o[L],R=s[L],!o.hasOwnProperty(L)||M===R||M===void 0&&R===void 0||Wu(e,i,L,M,o,R);return}}for(var D in s)M=s[D],s.hasOwnProperty(D)&&M!=null&&!o.hasOwnProperty(D)&&ke(e,i,D,null,o,M);for(H in o)M=o[H],R=s[H],!o.hasOwnProperty(H)||M===R||M==null&&R==null||ke(e,i,H,M,o,R)}function ey(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function yw(){if(typeof performance.getEntriesByType=="function"){for(var e=0,i=0,s=performance.getEntriesByType("resource"),o=0;o<s.length;o++){var u=s[o],d=u.transferSize,y=u.initiatorType,b=u.duration;if(d&&b&&ey(y)){for(y=0,b=u.responseEnd,o+=1;o<s.length;o++){var E=s[o],C=E.startTime;if(C>b)break;var L=E.transferSize,H=E.initiatorType;L&&ey(H)&&(E=E.responseEnd,y+=L*(E<b?1:(b-C)/(E-C)))}if(--o,i+=8*(d+y)/(u.duration/1e3),e++,10<e)break}}if(0<e)return i/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ef=null,tf=null;function Bo(e){return e.nodeType===9?e:e.ownerDocument}function ty(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ny(e,i){if(e===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&i==="foreignObject"?0:e}function nf(e,i){return e==="textarea"||e==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var af=null;function vw(){var e=window.event;return e&&e.type==="popstate"?e===af?!1:(af=e,!0):(af=null,!1)}var iy=typeof setTimeout=="function"?setTimeout:void 0,xw=typeof clearTimeout=="function"?clearTimeout:void 0,ay=typeof Promise=="function"?Promise:void 0,bw=typeof queueMicrotask=="function"?queueMicrotask:typeof ay<"u"?function(e){return ay.resolve(null).then(e).catch(Sw)}:iy;function Sw(e){setTimeout(function(){throw e})}function ri(e){return e==="head"}function sy(e,i){var s=i,o=0;do{var u=s.nextSibling;if(e.removeChild(s),u&&u.nodeType===8)if(s=u.data,s==="/$"||s==="/&"){if(o===0){e.removeChild(u),Ua(i);return}o--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")o++;else if(s==="html")Xs(e.ownerDocument.documentElement);else if(s==="head"){s=e.ownerDocument.head,Xs(s);for(var d=s.firstChild;d;){var y=d.nextSibling,b=d.nodeName;d[ds]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&d.rel.toLowerCase()==="stylesheet"||s.removeChild(d),d=y}}else s==="body"&&Xs(e.ownerDocument.body);s=u}while(s);Ua(i)}function ry(e,i){var s=e;e=0;do{var o=s.nextSibling;if(s.nodeType===1?i?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(i?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),o&&o.nodeType===8)if(s=o.data,s==="/$"){if(e===0)break;e--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||e++;s=o}while(s)}function sf(e){var i=e.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var s=i;switch(i=i.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":sf(s),cc(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}e.removeChild(s)}}function ww(e,i,s,o){for(;e.nodeType===1;){var u=s;if(e.nodeName.toLowerCase()!==i.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[ds])switch(i){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(i==="input"&&e.type==="hidden"){var d=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=$t(e.nextSibling),e===null)break}return null}function _w(e,i,s){if(i==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!s||(e=$t(e.nextSibling),e===null))return null;return e}function oy(e,i){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=$t(e.nextSibling),e===null))return null;return e}function rf(e){return e.data==="$?"||e.data==="$~"}function of(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Tw(e,i){var s=e.ownerDocument;if(e.data==="$~")e._reactRetry=i;else if(e.data!=="$?"||s.readyState!=="loading")i();else{var o=function(){i(),s.removeEventListener("DOMContentLoaded",o)};s.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function $t(e){for(;e!=null;e=e.nextSibling){var i=e.nodeType;if(i===1||i===3)break;if(i===8){if(i=e.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return e}var lf=null;function ly(e){e=e.nextSibling;for(var i=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"||s==="/&"){if(i===0)return $t(e.nextSibling);i--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||i++}e=e.nextSibling}return null}function cy(e){e=e.previousSibling;for(var i=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(i===0)return e;i--}else s!=="/$"&&s!=="/&"||i++}e=e.previousSibling}return null}function uy(e,i,s){switch(i=Bo(s),e){case"html":if(e=i.documentElement,!e)throw Error(r(452));return e;case"head":if(e=i.head,!e)throw Error(r(453));return e;case"body":if(e=i.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Xs(e){for(var i=e.attributes;i.length;)e.removeAttributeNode(i[0]);cc(e)}var Qt=new Map,fy=new Set;function Uo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ln=I.d;I.d={f:Ew,r:Aw,D:Nw,C:Dw,L:jw,m:Cw,X:Ow,S:Mw,M:Rw};function Ew(){var e=Ln.f(),i=Co();return e||i}function Aw(e){var i=aa(e);i!==null&&i.tag===5&&i.type==="form"?Dp(i):Ln.r(e)}var za=typeof document>"u"?null:document;function dy(e,i,s){var o=za;if(o&&typeof i=="string"&&i){var u=qt(i);u='link[rel="'+e+'"][href="'+u+'"]',typeof s=="string"&&(u+='[crossorigin="'+s+'"]'),fy.has(u)||(fy.add(u),e={rel:e,crossOrigin:s,href:i},o.querySelector(u)===null&&(i=o.createElement("link"),dt(i,"link",e),rt(i),o.head.appendChild(i)))}}function Nw(e){Ln.D(e),dy("dns-prefetch",e,null)}function Dw(e,i){Ln.C(e,i),dy("preconnect",e,i)}function jw(e,i,s){Ln.L(e,i,s);var o=za;if(o&&e&&i){var u='link[rel="preload"][as="'+qt(i)+'"]';i==="image"&&s&&s.imageSrcSet?(u+='[imagesrcset="'+qt(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(u+='[imagesizes="'+qt(s.imageSizes)+'"]')):u+='[href="'+qt(e)+'"]';var d=u;switch(i){case"style":d=Va(e);break;case"script":d=Ba(e)}Qt.has(d)||(e=x({rel:"preload",href:i==="image"&&s&&s.imageSrcSet?void 0:e,as:i},s),Qt.set(d,e),o.querySelector(u)!==null||i==="style"&&o.querySelector($s(d))||i==="script"&&o.querySelector(Qs(d))||(i=o.createElement("link"),dt(i,"link",e),rt(i),o.head.appendChild(i)))}}function Cw(e,i){Ln.m(e,i);var s=za;if(s&&e){var o=i&&typeof i.as=="string"?i.as:"script",u='link[rel="modulepreload"][as="'+qt(o)+'"][href="'+qt(e)+'"]',d=u;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Ba(e)}if(!Qt.has(d)&&(e=x({rel:"modulepreload",href:e},i),Qt.set(d,e),s.querySelector(u)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Qs(d)))return}o=s.createElement("link"),dt(o,"link",e),rt(o),s.head.appendChild(o)}}}function Mw(e,i,s){Ln.S(e,i,s);var o=za;if(o&&e){var u=sa(o).hoistableStyles,d=Va(e);i=i||"default";var y=u.get(d);if(!y){var b={loading:0,preload:null};if(y=o.querySelector($s(d)))b.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":i},s),(s=Qt.get(d))&&cf(e,s);var E=y=o.createElement("link");rt(E),dt(E,"link",e),E._p=new Promise(function(C,L){E.onload=C,E.onerror=L}),E.addEventListener("load",function(){b.loading|=1}),E.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Ho(y,i,o)}y={type:"stylesheet",instance:y,count:1,state:b},u.set(d,y)}}}function Ow(e,i){Ln.X(e,i);var s=za;if(s&&e){var o=sa(s).hoistableScripts,u=Ba(e),d=o.get(u);d||(d=s.querySelector(Qs(u)),d||(e=x({src:e,async:!0},i),(i=Qt.get(u))&&uf(e,i),d=s.createElement("script"),rt(d),dt(d,"link",e),s.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(u,d))}}function Rw(e,i){Ln.M(e,i);var s=za;if(s&&e){var o=sa(s).hoistableScripts,u=Ba(e),d=o.get(u);d||(d=s.querySelector(Qs(u)),d||(e=x({src:e,async:!0,type:"module"},i),(i=Qt.get(u))&&uf(e,i),d=s.createElement("script"),rt(d),dt(d,"link",e),s.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(u,d))}}function hy(e,i,s,o){var u=(u=pe.current)?Uo(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(i=Va(s.href),s=sa(u).hoistableStyles,o=s.get(i),o||(o={type:"style",instance:null,count:0,state:null},s.set(i,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){e=Va(s.href);var d=sa(u).hoistableStyles,y=d.get(e);if(y||(u=u.ownerDocument||u,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,y),(d=u.querySelector($s(e)))&&!d._p&&(y.instance=d,y.state.loading=5),Qt.has(e)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Qt.set(e,s),d||kw(u,e,s,y.state))),i&&o===null)throw Error(r(528,""));return y}if(i&&o!==null)throw Error(r(529,""));return null;case"script":return i=s.async,s=s.src,typeof s=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Ba(s),s=sa(u).hoistableScripts,o=s.get(i),o||(o={type:"script",instance:null,count:0,state:null},s.set(i,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Va(e){return'href="'+qt(e)+'"'}function $s(e){return'link[rel="stylesheet"]['+e+"]"}function my(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function kw(e,i,s,o){e.querySelector('link[rel="preload"][as="style"]['+i+"]")?o.loading=1:(i=e.createElement("link"),o.preload=i,i.addEventListener("load",function(){return o.loading|=1}),i.addEventListener("error",function(){return o.loading|=2}),dt(i,"link",s),rt(i),e.head.appendChild(i))}function Ba(e){return'[src="'+qt(e)+'"]'}function Qs(e){return"script[async]"+e}function py(e,i,s){if(i.count++,i.instance===null)switch(i.type){case"style":var o=e.querySelector('style[data-href~="'+qt(s.href)+'"]');if(o)return i.instance=o,rt(o),o;var u=x({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),rt(o),dt(o,"style",u),Ho(o,s.precedence,e),i.instance=o;case"stylesheet":u=Va(s.href);var d=e.querySelector($s(u));if(d)return i.state.loading|=4,i.instance=d,rt(d),d;o=my(s),(u=Qt.get(u))&&cf(o,u),d=(e.ownerDocument||e).createElement("link"),rt(d);var y=d;return y._p=new Promise(function(b,E){y.onload=b,y.onerror=E}),dt(d,"link",o),i.state.loading|=4,Ho(d,s.precedence,e),i.instance=d;case"script":return d=Ba(s.src),(u=e.querySelector(Qs(d)))?(i.instance=u,rt(u),u):(o=s,(u=Qt.get(d))&&(o=x({},s),uf(o,u)),e=e.ownerDocument||e,u=e.createElement("script"),rt(u),dt(u,"link",o),e.head.appendChild(u),i.instance=u);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(o=i.instance,i.state.loading|=4,Ho(o,s.precedence,e));return i.instance}function Ho(e,i,s){for(var o=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=o.length?o[o.length-1]:null,d=u,y=0;y<o.length;y++){var b=o[y];if(b.dataset.precedence===i)d=b;else if(d!==u)break}d?d.parentNode.insertBefore(e,d.nextSibling):(i=s.nodeType===9?s.head:s,i.insertBefore(e,i.firstChild))}function cf(e,i){e.crossOrigin==null&&(e.crossOrigin=i.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=i.referrerPolicy),e.title==null&&(e.title=i.title)}function uf(e,i){e.crossOrigin==null&&(e.crossOrigin=i.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=i.referrerPolicy),e.integrity==null&&(e.integrity=i.integrity)}var Po=null;function gy(e,i,s){if(Po===null){var o=new Map,u=Po=new Map;u.set(s,o)}else u=Po,o=u.get(s),o||(o=new Map,u.set(s,o));if(o.has(e))return o;for(o.set(e,null),s=s.getElementsByTagName(e),u=0;u<s.length;u++){var d=s[u];if(!(d[ds]||d[lt]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var y=d.getAttribute(i)||"";y=e+y;var b=o.get(y);b?b.push(d):o.set(y,[d])}}return o}function yy(e,i,s){e=e.ownerDocument||e,e.head.insertBefore(s,i==="title"?e.querySelector("head > title"):null)}function Lw(e,i,s){if(s===1||i.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return e=i.disabled,typeof i.precedence=="string"&&e==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function vy(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function zw(e,i,s,o){if(s.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var u=Va(o.href),d=i.querySelector($s(u));if(d){i=d._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(e.count++,e=qo.bind(e),i.then(e,e)),s.state.loading|=4,s.instance=d,rt(d);return}d=i.ownerDocument||i,o=my(o),(u=Qt.get(u))&&cf(o,u),d=d.createElement("link"),rt(d);var y=d;y._p=new Promise(function(b,E){y.onload=b,y.onerror=E}),dt(d,"link",o),s.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(s,i),(i=s.state.preload)&&(s.state.loading&3)===0&&(e.count++,s=qo.bind(e),i.addEventListener("load",s),i.addEventListener("error",s))}}var ff=0;function Vw(e,i){return e.stylesheets&&e.count===0&&Fo(e,e.stylesheets),0<e.count||0<e.imgCount?function(s){var o=setTimeout(function(){if(e.stylesheets&&Fo(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+i);0<e.imgBytes&&ff===0&&(ff=62500*yw());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Fo(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>ff?50:800)+i);return e.unsuspend=s,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(u)}}:null}function qo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Fo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Io=null;function Fo(e,i){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Io=new Map,i.forEach(Bw,e),Io=null,qo.call(e))}function Bw(e,i){if(!(i.state.loading&4)){var s=Io.get(e);if(s)var o=s.get(null);else{s=new Map,Io.set(e,s);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<u.length;d++){var y=u[d];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(s.set(y.dataset.precedence,y),o=y)}o&&s.set(null,o)}u=i.instance,y=u.getAttribute("data-precedence"),d=s.get(y)||o,d===o&&s.set(null,u),s.set(y,u),this.count++,o=qo.bind(this),u.addEventListener("load",o),u.addEventListener("error",o),d?d.parentNode.insertBefore(u,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),i.state.loading|=4}}var Zs={$$typeof:P,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function Uw(e,i,s,o,u,d,y,b,E){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=sc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sc(0),this.hiddenUpdates=sc(null),this.identifierPrefix=o,this.onUncaughtError=u,this.onCaughtError=d,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function xy(e,i,s,o,u,d,y,b,E,C,L,H){return e=new Uw(e,i,s,y,E,C,L,H,b),i=1,d===!0&&(i|=24),d=Rt(3,null,null,i),e.current=d,d.stateNode=e,i=Ic(),i.refCount++,e.pooledCache=i,i.refCount++,d.memoizedState={element:o,isDehydrated:s,cache:i},Kc(d),e}function by(e){return e?(e=pa,e):pa}function Sy(e,i,s,o,u,d){u=by(u),o.context===null?o.context=u:o.pendingContext=u,o=$n(i),o.payload={element:s},d=d===void 0?null:d,d!==null&&(o.callback=d),s=Qn(e,o,i),s!==null&&(Dt(s,e,i),js(s,e,i))}function wy(e,i){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<i?s:i}}function df(e,i){wy(e,i),(e=e.alternate)&&wy(e,i)}function _y(e){if(e.tag===13||e.tag===31){var i=ji(e,67108864);i!==null&&Dt(i,e,67108864),df(e,67108864)}}function Ty(e){if(e.tag===13||e.tag===31){var i=Bt();i=rc(i);var s=ji(e,i);s!==null&&Dt(s,e,i),df(e,i)}}var Go=!0;function Hw(e,i,s,o){var u=O.T;O.T=null;var d=I.p;try{I.p=2,hf(e,i,s,o)}finally{I.p=d,O.T=u}}function Pw(e,i,s,o){var u=O.T;O.T=null;var d=I.p;try{I.p=8,hf(e,i,s,o)}finally{I.p=d,O.T=u}}function hf(e,i,s,o){if(Go){var u=mf(o);if(u===null)Ju(e,i,o,Yo,s),Ay(e,o);else if(Iw(u,e,i,s,o))o.stopPropagation();else if(Ay(e,o),i&4&&-1<qw.indexOf(e)){for(;u!==null;){var d=aa(u);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var y=Ti(d.pendingLanes);if(y!==0){var b=d;for(b.pendingLanes|=2,b.entangledLanes|=2;y;){var E=1<<31-Mt(y);b.entanglements[1]|=E,y&=~E}fn(d),(Ne&6)===0&&(Do=jt()+500,Gs(0))}}break;case 31:case 13:b=ji(d,2),b!==null&&Dt(b,d,2),Co(),df(d,2)}if(d=mf(o),d===null&&Ju(e,i,o,Yo,s),d===u)break;u=d}u!==null&&o.stopPropagation()}else Ju(e,i,o,null,s)}}function mf(e){return e=pc(e),pf(e)}var Yo=null;function pf(e){if(Yo=null,e=ia(e),e!==null){var i=c(e);if(i===null)e=null;else{var s=i.tag;if(s===13){if(e=f(i),e!==null)return e;e=null}else if(s===31){if(e=h(i),e!==null)return e;e=null}else if(s===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;e=null}else i!==e&&(e=null)}}return Yo=e,null}function Ey(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(NS()){case Rh:return 2;case kh:return 8;case kr:case DS:return 32;case Lh:return 268435456;default:return 32}default:return 32}}var gf=!1,oi=null,li=null,ci=null,Js=new Map,Ws=new Map,ui=[],qw="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Ay(e,i){switch(e){case"focusin":case"focusout":oi=null;break;case"dragenter":case"dragleave":li=null;break;case"mouseover":case"mouseout":ci=null;break;case"pointerover":case"pointerout":Js.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ws.delete(i.pointerId)}}function er(e,i,s,o,u,d){return e===null||e.nativeEvent!==d?(e={blockedOn:i,domEventName:s,eventSystemFlags:o,nativeEvent:d,targetContainers:[u]},i!==null&&(i=aa(i),i!==null&&_y(i)),e):(e.eventSystemFlags|=o,i=e.targetContainers,u!==null&&i.indexOf(u)===-1&&i.push(u),e)}function Iw(e,i,s,o,u){switch(i){case"focusin":return oi=er(oi,e,i,s,o,u),!0;case"dragenter":return li=er(li,e,i,s,o,u),!0;case"mouseover":return ci=er(ci,e,i,s,o,u),!0;case"pointerover":var d=u.pointerId;return Js.set(d,er(Js.get(d)||null,e,i,s,o,u)),!0;case"gotpointercapture":return d=u.pointerId,Ws.set(d,er(Ws.get(d)||null,e,i,s,o,u)),!0}return!1}function Ny(e){var i=ia(e.target);if(i!==null){var s=c(i);if(s!==null){if(i=s.tag,i===13){if(i=f(s),i!==null){e.blockedOn=i,Ph(e.priority,function(){Ty(s)});return}}else if(i===31){if(i=h(s),i!==null){e.blockedOn=i,Ph(e.priority,function(){Ty(s)});return}}else if(i===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ko(e){if(e.blockedOn!==null)return!1;for(var i=e.targetContainers;0<i.length;){var s=mf(e.nativeEvent);if(s===null){s=e.nativeEvent;var o=new s.constructor(s.type,s);mc=o,s.target.dispatchEvent(o),mc=null}else return i=aa(s),i!==null&&_y(i),e.blockedOn=s,!1;i.shift()}return!0}function Dy(e,i,s){Ko(e)&&s.delete(i)}function Fw(){gf=!1,oi!==null&&Ko(oi)&&(oi=null),li!==null&&Ko(li)&&(li=null),ci!==null&&Ko(ci)&&(ci=null),Js.forEach(Dy),Ws.forEach(Dy)}function Xo(e,i){e.blockedOn===i&&(e.blockedOn=null,gf||(gf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Fw)))}var $o=null;function jy(e){$o!==e&&($o=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){$o===e&&($o=null);for(var i=0;i<e.length;i+=3){var s=e[i],o=e[i+1],u=e[i+2];if(typeof o!="function"){if(pf(o||s)===null)continue;break}var d=aa(s);d!==null&&(e.splice(i,3),i-=3,hu(d,{pending:!0,data:u,method:s.method,action:o},o,u))}}))}function Ua(e){function i(E){return Xo(E,e)}oi!==null&&Xo(oi,e),li!==null&&Xo(li,e),ci!==null&&Xo(ci,e),Js.forEach(i),Ws.forEach(i);for(var s=0;s<ui.length;s++){var o=ui[s];o.blockedOn===e&&(o.blockedOn=null)}for(;0<ui.length&&(s=ui[0],s.blockedOn===null);)Ny(s),s.blockedOn===null&&ui.shift();if(s=(e.ownerDocument||e).$$reactFormReplay,s!=null)for(o=0;o<s.length;o+=3){var u=s[o],d=s[o+1],y=u[wt]||null;if(typeof d=="function")y||jy(s);else if(y){var b=null;if(d&&d.hasAttribute("formAction")){if(u=d,y=d[wt]||null)b=y.formAction;else if(pf(u)!==null)continue}else b=y.action;typeof b=="function"?s[o+1]=b:(s.splice(o,3),o-=3),jy(s)}}}function Cy(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(y){return u=y})},focusReset:"manual",scroll:"manual"})}function i(){u!==null&&(u(),u=null),o||setTimeout(s,20)}function s(){if(!o&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(s,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),u!==null&&(u(),u=null)}}}function yf(e){this._internalRoot=e}Qo.prototype.render=yf.prototype.render=function(e){var i=this._internalRoot;if(i===null)throw Error(r(409));var s=i.current,o=Bt();Sy(s,o,e,i,null,null)},Qo.prototype.unmount=yf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var i=e.containerInfo;Sy(e.current,2,null,e,null,null),Co(),i[na]=null}};function Qo(e){this._internalRoot=e}Qo.prototype.unstable_scheduleHydration=function(e){if(e){var i=Hh();e={blockedOn:null,target:e,priority:i};for(var s=0;s<ui.length&&i!==0&&i<ui[s].priority;s++);ui.splice(s,0,e),s===0&&Ny(e)}};var My=t.version;if(My!=="19.2.5")throw Error(r(527,My,"19.2.5"));I.findDOMNode=function(e){var i=e._reactInternals;if(i===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=p(i),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var Gw={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zo.isDisabled&&Zo.supportsFiber)try{cs=Zo.inject(Gw),Ct=Zo}catch{}}return ir.createRoot=function(e,i){if(!l(e))throw Error(r(299));var s=!1,o="",u=Bp,d=Up,y=Hp;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(o=i.identifierPrefix),i.onUncaughtError!==void 0&&(u=i.onUncaughtError),i.onCaughtError!==void 0&&(d=i.onCaughtError),i.onRecoverableError!==void 0&&(y=i.onRecoverableError)),i=xy(e,1,!1,null,null,s,o,null,u,d,y,Cy),e[na]=i.current,Zu(e),new yf(i)},ir.hydrateRoot=function(e,i,s){if(!l(e))throw Error(r(299));var o=!1,u="",d=Bp,y=Up,b=Hp,E=null;return s!=null&&(s.unstable_strictMode===!0&&(o=!0),s.identifierPrefix!==void 0&&(u=s.identifierPrefix),s.onUncaughtError!==void 0&&(d=s.onUncaughtError),s.onCaughtError!==void 0&&(y=s.onCaughtError),s.onRecoverableError!==void 0&&(b=s.onRecoverableError),s.formState!==void 0&&(E=s.formState)),i=xy(e,1,!0,i,s??null,o,u,E,d,y,b,Cy),i.context=by(null),s=i.current,o=Bt(),o=rc(o),u=$n(o),u.callback=null,Qn(s,u,o),s=o,i.current.lanes=s,fs(i,s),fn(i),e[na]=i.current,Zu(e),new Qo(i)},ir.version="19.2.5",ir}var B0;function iD(){if(B0)return jf.exports;B0=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(t){console.error(t)}}return n(),jf.exports=nD(),jf.exports}var aD=iD();const yb=ee.createContext({});function sD(n){const t=ee.useRef(null);return t.current===null&&(t.current=n()),t.current}const rD=typeof window<"u",oD=rD?ee.useLayoutEffect:ee.useEffect,nh=ee.createContext(null);function ih(n,t){n.indexOf(t)===-1&&n.push(t)}function _l(n,t){const a=n.indexOf(t);a>-1&&n.splice(a,1)}const yn=(n,t,a)=>a>t?t:a<n?n:a;let ah=()=>{};const xi={},vb=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function xb(n){return typeof n=="object"&&n!==null}const bb=n=>/^0[^.\s]+$/u.test(n);function Sb(n){let t;return()=>(t===void 0&&(t=n()),t)}const Wt=n=>n,lD=(n,t)=>a=>t(n(a)),jr=(...n)=>n.reduce(lD),xr=(n,t,a)=>{const r=t-n;return r===0?1:(a-n)/r};class sh{constructor(){this.subscriptions=[]}add(t){return ih(this.subscriptions,t),()=>_l(this.subscriptions,t)}notify(t,a,r){const l=this.subscriptions.length;if(l)if(l===1)this.subscriptions[0](t,a,r);else for(let c=0;c<l;c++){const f=this.subscriptions[c];f&&f(t,a,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ht=n=>n*1e3,Zt=n=>n/1e3;function wb(n,t){return t?n*(1e3/t):0}const _b=(n,t,a)=>(((1-3*a+3*t)*n+(3*a-6*t))*n+3*t)*n,cD=1e-7,uD=12;function fD(n,t,a,r,l){let c,f,h=0;do f=t+(a-t)/2,c=_b(f,r,l)-n,c>0?a=f:t=f;while(Math.abs(c)>cD&&++h<uD);return f}function Cr(n,t,a,r){if(n===t&&a===r)return Wt;const l=c=>fD(c,0,1,n,a);return c=>c===0||c===1?c:_b(l(c),t,r)}const Tb=n=>t=>t<=.5?n(2*t)/2:(2-n(2*(1-t)))/2,Eb=n=>t=>1-n(1-t),Ab=Cr(.33,1.53,.69,.99),rh=Eb(Ab),Nb=Tb(rh),Db=n=>n>=1?1:(n*=2)<1?.5*rh(n):.5*(2-Math.pow(2,-10*(n-1))),oh=n=>1-Math.sin(Math.acos(n)),jb=Eb(oh),Cb=Tb(oh),dD=Cr(.42,0,1,1),hD=Cr(0,0,.58,1),Mb=Cr(.42,0,.58,1),mD=n=>Array.isArray(n)&&typeof n[0]!="number",Ob=n=>Array.isArray(n)&&typeof n[0]=="number",pD={linear:Wt,easeIn:dD,easeInOut:Mb,easeOut:hD,circIn:oh,circInOut:Cb,circOut:jb,backIn:rh,backInOut:Nb,backOut:Ab,anticipate:Db},gD=n=>typeof n=="string",U0=n=>{if(Ob(n)){ah(n.length===4);const[t,a,r,l]=n;return Cr(t,a,r,l)}else if(gD(n))return pD[n];return n},tl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function yD(n,t){let a=new Set,r=new Set,l=!1,c=!1;const f=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function m(v){f.has(v)&&(p.schedule(v),n()),v(h)}const p={schedule:(v,x=!1,S=!1)=>{const T=S&&l?a:r;return x&&f.add(v),T.add(v),v},cancel:v=>{r.delete(v),f.delete(v)},process:v=>{if(h=v,l){c=!0;return}l=!0;const x=a;a=r,r=x,a.forEach(m),a.clear(),l=!1,c&&(c=!1,p.process(v))}};return p}const vD=40;function Rb(n,t){let a=!1,r=!0;const l={delta:0,timestamp:0,isProcessing:!1},c=()=>a=!0,f=tl.reduce((P,F)=>(P[F]=yD(c),P),{}),{setup:h,read:m,resolveKeyframes:p,preUpdate:v,update:x,preRender:S,render:w,postRender:T}=f,k=()=>{const P=xi.useManualTiming,F=P?l.timestamp:performance.now();a=!1,P||(l.delta=r?1e3/60:Math.max(Math.min(F-l.timestamp,vD),1)),l.timestamp=F,l.isProcessing=!0,h.process(l),m.process(l),p.process(l),v.process(l),x.process(l),S.process(l),w.process(l),T.process(l),l.isProcessing=!1,a&&t&&(r=!1,n(k))},z=()=>{a=!0,r=!0,l.isProcessing||n(k)};return{schedule:tl.reduce((P,F)=>{const X=f[F];return P[F]=(he,J=!1,te=!1)=>(a||z(),X.schedule(he,J,te)),P},{}),cancel:P=>{for(let F=0;F<tl.length;F++)f[tl[F]].cancel(P)},state:l,steps:f}}const{schedule:Ve,cancel:bi,state:ht,steps:Rf}=Rb(typeof requestAnimationFrame<"u"?requestAnimationFrame:Wt,!0);let fl;function xD(){fl=void 0}const bt={now:()=>(fl===void 0&&bt.set(ht.isProcessing||xi.useManualTiming?ht.timestamp:performance.now()),fl),set:n=>{fl=n,queueMicrotask(xD)}},kb=n=>t=>typeof t=="string"&&t.startsWith(n),Lb=kb("--"),bD=kb("var(--"),lh=n=>bD(n)?SD.test(n.split("/*")[0].trim()):!1,SD=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function H0(n){return typeof n!="string"?!1:n.split("/*")[0].includes("var(--")}const ss={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},br={...ss,transform:n=>yn(0,1,n)},nl={...ss,default:1},cr=n=>Math.round(n*1e5)/1e5,ch=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function wD(n){return n==null}const _D=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,uh=(n,t)=>a=>!!(typeof a=="string"&&_D.test(a)&&a.startsWith(n)||t&&!wD(a)&&Object.prototype.hasOwnProperty.call(a,t)),zb=(n,t,a)=>r=>{if(typeof r!="string")return r;const[l,c,f,h]=r.match(ch);return{[n]:parseFloat(l),[t]:parseFloat(c),[a]:parseFloat(f),alpha:h!==void 0?parseFloat(h):1}},TD=n=>yn(0,255,n),kf={...ss,transform:n=>Math.round(TD(n))},Yi={test:uh("rgb","red"),parse:zb("red","green","blue"),transform:({red:n,green:t,blue:a,alpha:r=1})=>"rgba("+kf.transform(n)+", "+kf.transform(t)+", "+kf.transform(a)+", "+cr(br.transform(r))+")"};function ED(n){let t="",a="",r="",l="";return n.length>5?(t=n.substring(1,3),a=n.substring(3,5),r=n.substring(5,7),l=n.substring(7,9)):(t=n.substring(1,2),a=n.substring(2,3),r=n.substring(3,4),l=n.substring(4,5),t+=t,a+=a,r+=r,l+=l),{red:parseInt(t,16),green:parseInt(a,16),blue:parseInt(r,16),alpha:l?parseInt(l,16)/255:1}}const pd={test:uh("#"),parse:ED,transform:Yi.transform},Mr=n=>({test:t=>typeof t=="string"&&t.endsWith(n)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${n}`}),hi=Mr("deg"),pn=Mr("%"),Z=Mr("px"),AD=Mr("vh"),ND=Mr("vw"),P0={...pn,parse:n=>pn.parse(n)/100,transform:n=>pn.transform(n*100)},Fa={test:uh("hsl","hue"),parse:zb("hue","saturation","lightness"),transform:({hue:n,saturation:t,lightness:a,alpha:r=1})=>"hsla("+Math.round(n)+", "+pn.transform(cr(t))+", "+pn.transform(cr(a))+", "+cr(br.transform(r))+")"},it={test:n=>Yi.test(n)||pd.test(n)||Fa.test(n),parse:n=>Yi.test(n)?Yi.parse(n):Fa.test(n)?Fa.parse(n):pd.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Yi.transform(n):Fa.transform(n),getAnimatableNone:n=>{const t=it.parse(n);return t.alpha=0,it.transform(t)}},DD=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function jD(n){var t,a;return isNaN(n)&&typeof n=="string"&&(((t=n.match(ch))==null?void 0:t.length)||0)+(((a=n.match(DD))==null?void 0:a.length)||0)>0}const Vb="number",Bb="color",CD="var",MD="var(",q0="${}",OD=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Wa(n){const t=n.toString(),a=[],r={color:[],number:[],var:[]},l=[];let c=0;const h=t.replace(OD,m=>(it.test(m)?(r.color.push(c),l.push(Bb),a.push(it.parse(m))):m.startsWith(MD)?(r.var.push(c),l.push(CD),a.push(m)):(r.number.push(c),l.push(Vb),a.push(parseFloat(m))),++c,q0)).split(q0);return{values:a,split:h,indexes:r,types:l}}function RD(n){return Wa(n).values}function Ub({split:n,types:t}){const a=n.length;return r=>{let l="";for(let c=0;c<a;c++)if(l+=n[c],r[c]!==void 0){const f=t[c];f===Vb?l+=cr(r[c]):f===Bb?l+=it.transform(r[c]):l+=r[c]}return l}}function kD(n){return Ub(Wa(n))}const LD=n=>typeof n=="number"?0:it.test(n)?it.getAnimatableNone(n):n,zD=(n,t)=>typeof n=="number"?t!=null&&t.trim().endsWith("/")?n:0:LD(n);function VD(n){const t=Wa(n);return Ub(t)(t.values.map((r,l)=>zD(r,t.split[l])))}const on={test:jD,parse:RD,createTransformer:kD,getAnimatableNone:VD};function Lf(n,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?n+(t-n)*6*a:a<1/2?t:a<2/3?n+(t-n)*(2/3-a)*6:n}function BD({hue:n,saturation:t,lightness:a,alpha:r}){n/=360,t/=100,a/=100;let l=0,c=0,f=0;if(!t)l=c=f=a;else{const h=a<.5?a*(1+t):a+t-a*t,m=2*a-h;l=Lf(m,h,n+1/3),c=Lf(m,h,n),f=Lf(m,h,n-1/3)}return{red:Math.round(l*255),green:Math.round(c*255),blue:Math.round(f*255),alpha:r}}function Tl(n,t){return a=>a>0?t:n}const He=(n,t,a)=>n+(t-n)*a,zf=(n,t,a)=>{const r=n*n,l=a*(t*t-r)+r;return l<0?0:Math.sqrt(l)},UD=[pd,Yi,Fa],HD=n=>UD.find(t=>t.test(n));function I0(n){const t=HD(n);if(!t)return!1;let a=t.parse(n);return t===Fa&&(a=BD(a)),a}const F0=(n,t)=>{const a=I0(n),r=I0(t);if(!a||!r)return Tl(n,t);const l={...a};return c=>(l.red=zf(a.red,r.red,c),l.green=zf(a.green,r.green,c),l.blue=zf(a.blue,r.blue,c),l.alpha=He(a.alpha,r.alpha,c),Yi.transform(l))},gd=new Set(["none","hidden"]);function PD(n,t){return gd.has(n)?a=>a<=0?n:t:a=>a>=1?t:n}function qD(n,t){return a=>He(n,t,a)}function fh(n){return typeof n=="number"?qD:typeof n=="string"?lh(n)?Tl:it.test(n)?F0:GD:Array.isArray(n)?Hb:typeof n=="object"?it.test(n)?F0:ID:Tl}function Hb(n,t){const a=[...n],r=a.length,l=n.map((c,f)=>fh(c)(c,t[f]));return c=>{for(let f=0;f<r;f++)a[f]=l[f](c);return a}}function ID(n,t){const a={...n,...t},r={};for(const l in a)n[l]!==void 0&&t[l]!==void 0&&(r[l]=fh(n[l])(n[l],t[l]));return l=>{for(const c in r)a[c]=r[c](l);return a}}function FD(n,t){const a=[],r={color:0,var:0,number:0};for(let l=0;l<t.values.length;l++){const c=t.types[l],f=n.indexes[c][r[c]],h=n.values[f]??0;a[l]=h,r[c]++}return a}const GD=(n,t)=>{const a=on.createTransformer(t),r=Wa(n),l=Wa(t);return r.indexes.var.length===l.indexes.var.length&&r.indexes.color.length===l.indexes.color.length&&r.indexes.number.length>=l.indexes.number.length?gd.has(n)&&!l.values.length||gd.has(t)&&!r.values.length?PD(n,t):jr(Hb(FD(r,l),l.values),a):Tl(n,t)};function Pb(n,t,a){return typeof n=="number"&&typeof t=="number"&&typeof a=="number"?He(n,t,a):fh(n)(n,t)}const YD=n=>{const t=({timestamp:a})=>n(a);return{start:(a=!0)=>Ve.update(t,a),stop:()=>bi(t),now:()=>ht.isProcessing?ht.timestamp:bt.now()}},qb=(n,t,a=10)=>{let r="";const l=Math.max(Math.round(t/a),2);for(let c=0;c<l;c++)r+=Math.round(n(c/(l-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},El=2e4;function dh(n){let t=0;const a=50;let r=n.next(t);for(;!r.done&&t<El;)t+=a,r=n.next(t);return t>=El?1/0:t}function KD(n,t=100,a){const r=a({...n,keyframes:[0,t]}),l=Math.min(dh(r),El);return{type:"keyframes",ease:c=>r.next(l*c).value/t,duration:Zt(l)}}const Ye={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function yd(n,t){return n*Math.sqrt(1-t*t)}const XD=12;function $D(n,t,a){let r=a;for(let l=1;l<XD;l++)r=r-n(r)/t(r);return r}const Vf=.001;function QD({duration:n=Ye.duration,bounce:t=Ye.bounce,velocity:a=Ye.velocity,mass:r=Ye.mass}){let l,c,f=1-t;f=yn(Ye.minDamping,Ye.maxDamping,f),n=yn(Ye.minDuration,Ye.maxDuration,Zt(n)),f<1?(l=p=>{const v=p*f,x=v*n,S=v-a,w=yd(p,f),T=Math.exp(-x);return Vf-S/w*T},c=p=>{const x=p*f*n,S=x*a+a,w=Math.pow(f,2)*Math.pow(p,2)*n,T=Math.exp(-x),k=yd(Math.pow(p,2),f);return(-l(p)+Vf>0?-1:1)*((S-w)*T)/k}):(l=p=>{const v=Math.exp(-p*n),x=(p-a)*n+1;return-Vf+v*x},c=p=>{const v=Math.exp(-p*n),x=(a-p)*(n*n);return v*x});const h=5/n,m=$D(l,c,h);if(n=Ht(n),isNaN(m))return{stiffness:Ye.stiffness,damping:Ye.damping,duration:n};{const p=Math.pow(m,2)*r;return{stiffness:p,damping:f*2*Math.sqrt(r*p),duration:n}}}const ZD=["duration","bounce"],JD=["stiffness","damping","mass"];function G0(n,t){return t.some(a=>n[a]!==void 0)}function WD(n){let t={velocity:Ye.velocity,stiffness:Ye.stiffness,damping:Ye.damping,mass:Ye.mass,isResolvedFromDuration:!1,...n};if(!G0(n,JD)&&G0(n,ZD))if(t.velocity=0,n.visualDuration){const a=n.visualDuration,r=2*Math.PI/(a*1.2),l=r*r,c=2*yn(.05,1,1-(n.bounce||0))*Math.sqrt(l);t={...t,mass:Ye.mass,stiffness:l,damping:c}}else{const a=QD({...n,velocity:0});t={...t,...a,mass:Ye.mass},t.isResolvedFromDuration=!0}return t}function Al(n=Ye.visualDuration,t=Ye.bounce){const a=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:t}:n;let{restSpeed:r,restDelta:l}=a;const c=a.keyframes[0],f=a.keyframes[a.keyframes.length-1],h={done:!1,value:c},{stiffness:m,damping:p,mass:v,duration:x,velocity:S,isResolvedFromDuration:w}=WD({...a,velocity:-Zt(a.velocity||0)}),T=S||0,k=p/(2*Math.sqrt(m*v)),z=f-c,B=Zt(Math.sqrt(m/v)),q=Math.abs(z)<5;r||(r=q?Ye.restSpeed.granular:Ye.restSpeed.default),l||(l=q?Ye.restDelta.granular:Ye.restDelta.default);let P,F,X,he,J,te;if(k<1)X=yd(B,k),he=(T+k*B*z)/X,P=K=>{const Se=Math.exp(-k*B*K);return f-Se*(he*Math.sin(X*K)+z*Math.cos(X*K))},J=k*B*he+z*X,te=k*B*z-he*X,F=K=>Math.exp(-k*B*K)*(J*Math.sin(X*K)+te*Math.cos(X*K));else if(k===1){P=Se=>f-Math.exp(-B*Se)*(z+(T+B*z)*Se);const K=T+B*z;F=Se=>Math.exp(-B*Se)*(B*K*Se-T)}else{const K=B*Math.sqrt(k*k-1);P=_e=>{const Pe=Math.exp(-k*B*_e),O=Math.min(K*_e,300);return f-Pe*((T+k*B*z)*Math.sinh(O)+K*z*Math.cosh(O))/K};const Se=(T+k*B*z)/K,Ae=k*B*Se-z*K,De=k*B*z-Se*K;F=_e=>{const Pe=Math.exp(-k*B*_e),O=Math.min(K*_e,300);return Pe*(Ae*Math.sinh(O)+De*Math.cosh(O))}}const ue={calculatedDuration:w&&x||null,velocity:K=>Ht(F(K)),next:K=>{if(!w&&k<1){const Ae=Math.exp(-k*B*K),De=Math.sin(X*K),_e=Math.cos(X*K),Pe=f-Ae*(he*De+z*_e),O=Ht(Ae*(J*De+te*_e));return h.done=Math.abs(O)<=r&&Math.abs(f-Pe)<=l,h.value=h.done?f:Pe,h}const Se=P(K);if(w)h.done=K>=x;else{const Ae=Ht(F(K));h.done=Math.abs(Ae)<=r&&Math.abs(f-Se)<=l}return h.value=h.done?f:Se,h},toString:()=>{const K=Math.min(dh(ue),El),Se=qb(Ae=>ue.next(K*Ae).value,K,30);return K+"ms "+Se},toTransition:()=>{}};return ue}Al.applyToOptions=n=>{const t=KD(n,100,Al);return n.ease=t.ease,n.duration=Ht(t.duration),n.type="keyframes",n};const ej=5;function Ib(n,t,a){const r=Math.max(t-ej,0);return wb(a-n(r),t-r)}function vd({keyframes:n,velocity:t=0,power:a=.8,timeConstant:r=325,bounceDamping:l=10,bounceStiffness:c=500,modifyTarget:f,min:h,max:m,restDelta:p=.5,restSpeed:v}){const x=n[0],S={done:!1,value:x},w=te=>h!==void 0&&te<h||m!==void 0&&te>m,T=te=>h===void 0?m:m===void 0||Math.abs(h-te)<Math.abs(m-te)?h:m;let k=a*t;const z=x+k,B=f===void 0?z:f(z);B!==z&&(k=B-x);const q=te=>-k*Math.exp(-te/r),P=te=>B+q(te),F=te=>{const ue=q(te),K=P(te);S.done=Math.abs(ue)<=p,S.value=S.done?B:K};let X,he;const J=te=>{w(S.value)&&(X=te,he=Al({keyframes:[S.value,T(S.value)],velocity:Ib(P,te,S.value),damping:l,stiffness:c,restDelta:p,restSpeed:v}))};return J(0),{calculatedDuration:null,next:te=>{let ue=!1;return!he&&X===void 0&&(ue=!0,F(te),J(te)),X!==void 0&&te>=X?he.next(te-X):(!ue&&F(te),S)}}}function tj(n,t,a){const r=[],l=a||xi.mix||Pb,c=n.length-1;for(let f=0;f<c;f++){let h=l(n[f],n[f+1]);if(t){const m=Array.isArray(t)?t[f]||Wt:t;h=jr(m,h)}r.push(h)}return r}function nj(n,t,{clamp:a=!0,ease:r,mixer:l}={}){const c=n.length;if(ah(c===t.length),c===1)return()=>t[0];if(c===2&&t[0]===t[1])return()=>t[1];const f=n[0]===n[1];n[0]>n[c-1]&&(n=[...n].reverse(),t=[...t].reverse());const h=tj(t,r,l),m=h.length,p=v=>{if(f&&v<n[0])return t[0];let x=0;if(m>1)for(;x<n.length-2&&!(v<n[x+1]);x++);const S=xr(n[x],n[x+1],v);return h[x](S)};return a?v=>p(yn(n[0],n[c-1],v)):p}function ij(n,t){const a=n[n.length-1];for(let r=1;r<=t;r++){const l=xr(0,t,r);n.push(He(a,1,l))}}function aj(n){const t=[0];return ij(t,n.length-1),t}function sj(n,t){return n.map(a=>a*t)}function rj(n,t){return n.map(()=>t||Mb).splice(0,n.length-1)}function ur({duration:n=300,keyframes:t,times:a,ease:r="easeInOut"}){const l=mD(r)?r.map(U0):U0(r),c={done:!1,value:t[0]},f=sj(a&&a.length===t.length?a:aj(t),n),h=nj(f,t,{ease:Array.isArray(l)?l:rj(t,l)});return{calculatedDuration:n,next:m=>(c.value=h(m),c.done=m>=n,c)}}const oj=n=>n!==null;function Kl(n,{repeat:t,repeatType:a="loop"},r,l=1){const c=n.filter(oj),h=l<0||t&&a!=="loop"&&t%2===1?0:c.length-1;return!h||r===void 0?c[h]:r}const lj={decay:vd,inertia:vd,tween:ur,keyframes:ur,spring:Al};function Fb(n){typeof n.type=="string"&&(n.type=lj[n.type])}class hh{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,a){return this.finished.then(t,a)}}const cj=n=>n/100;class Nl extends hh{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,l;const{motionValue:a}=this.options;a&&a.updatedAt!==bt.now()&&this.tick(bt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(l=(r=this.options).onStop)==null||l.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Fb(t);const{type:a=ur,repeat:r=0,repeatDelay:l=0,repeatType:c,velocity:f=0}=t;let{keyframes:h}=t;const m=a||ur;m!==ur&&typeof h[0]!="number"&&(this.mixKeyframes=jr(cj,Pb(h[0],h[1])),h=[0,100]);const p=m({...t,keyframes:h});c==="mirror"&&(this.mirroredGenerator=m({...t,keyframes:[...h].reverse(),velocity:-f})),p.calculatedDuration===null&&(p.calculatedDuration=dh(p));const{calculatedDuration:v}=p;this.calculatedDuration=v,this.resolvedDuration=v+l,this.totalDuration=this.resolvedDuration*(r+1)-l,this.generator=p}updateTime(t){const a=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=a}tick(t,a=!1){const{generator:r,totalDuration:l,mixKeyframes:c,mirroredGenerator:f,resolvedDuration:h,calculatedDuration:m}=this;if(this.startTime===null)return r.next(0);const{delay:p=0,keyframes:v,repeat:x,repeatType:S,repeatDelay:w,type:T,onUpdate:k,finalKeyframe:z}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-l/this.speed,this.startTime)),a?this.currentTime=t:this.updateTime(t);const B=this.currentTime-p*(this.playbackSpeed>=0?1:-1),q=this.playbackSpeed>=0?B<0:B>l;this.currentTime=Math.max(B,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=l);let P=this.currentTime,F=r;if(x){const te=Math.min(this.currentTime,l)/h;let ue=Math.floor(te),K=te%1;!K&&te>=1&&(K=1),K===1&&ue--,ue=Math.min(ue,x+1),!!(ue%2)&&(S==="reverse"?(K=1-K,w&&(K-=w/h)):S==="mirror"&&(F=f)),P=yn(0,1,K)*h}let X;q?(this.delayState.value=v[0],X=this.delayState):X=F.next(P),c&&!q&&(X.value=c(X.value));let{done:he}=X;!q&&m!==null&&(he=this.playbackSpeed>=0?this.currentTime>=l:this.currentTime<=0);const J=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&he);return J&&T!==vd&&(X.value=Kl(v,this.options,z,this.speed)),k&&k(X.value),J&&this.finish(),X}then(t,a){return this.finished.then(t,a)}get duration(){return Zt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Zt(t)}get time(){return Zt(this.currentTime)}set time(t){t=Ht(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const a=this.generator.next(t).value;return Ib(r=>this.generator.next(r).value,t,a)}get speed(){return this.playbackSpeed}set speed(t){const a=this.playbackSpeed!==t;a&&this.driver&&this.updateTime(bt.now()),this.playbackSpeed=t,a&&this.driver&&(this.time=Zt(this.currentTime))}play(){var l,c;if(this.isStopped)return;const{driver:t=YD,startTime:a}=this.options;this.driver||(this.driver=t(f=>this.tick(f))),(c=(l=this.options).onPlay)==null||c.call(l);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=a??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(bt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,a;this.notifyFinished(),this.teardown(),this.state="finished",(a=(t=this.options).onComplete)==null||a.call(t)}cancel(){var t,a;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(a=(t=this.options).onCancel)==null||a.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var a;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(a=this.driver)==null||a.stop(),t.observe(this)}}function uj(n){for(let t=1;t<n.length;t++)n[t]??(n[t]=n[t-1])}const Ki=n=>n*180/Math.PI,xd=n=>{const t=Ki(Math.atan2(n[1],n[0]));return bd(t)},fj={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:xd,rotateZ:xd,skewX:n=>Ki(Math.atan(n[1])),skewY:n=>Ki(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},bd=n=>(n=n%360,n<0&&(n+=360),n),Y0=xd,K0=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),X0=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),dj={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:K0,scaleY:X0,scale:n=>(K0(n)+X0(n))/2,rotateX:n=>bd(Ki(Math.atan2(n[6],n[5]))),rotateY:n=>bd(Ki(Math.atan2(-n[2],n[0]))),rotateZ:Y0,rotate:Y0,skewX:n=>Ki(Math.atan(n[4])),skewY:n=>Ki(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function Sd(n){return n.includes("scale")?1:0}function wd(n,t){if(!n||n==="none")return Sd(t);const a=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,l;if(a)r=dj,l=a;else{const h=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=fj,l=h}if(!l)return Sd(t);const c=r[t],f=l[1].split(",").map(mj);return typeof c=="function"?c(f):f[c]}const hj=(n,t)=>{const{transform:a="none"}=getComputedStyle(n);return wd(a,t)};function mj(n){return parseFloat(n.trim())}const rs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],os=new Set(rs),$0=n=>n===ss||n===Z,pj=new Set(["x","y","z"]),gj=rs.filter(n=>!pj.has(n));function yj(n){const t=[];return gj.forEach(a=>{const r=n.getValue(a);r!==void 0&&(t.push([a,r.get()]),r.set(a.startsWith("scale")?1:0))}),t}const pi={width:({x:n},{paddingLeft:t="0",paddingRight:a="0",boxSizing:r})=>{const l=n.max-n.min;return r==="border-box"?l:l-parseFloat(t)-parseFloat(a)},height:({y:n},{paddingTop:t="0",paddingBottom:a="0",boxSizing:r})=>{const l=n.max-n.min;return r==="border-box"?l:l-parseFloat(t)-parseFloat(a)},top:(n,{top:t})=>parseFloat(t),left:(n,{left:t})=>parseFloat(t),bottom:({y:n},{top:t})=>parseFloat(t)+(n.max-n.min),right:({x:n},{left:t})=>parseFloat(t)+(n.max-n.min),x:(n,{transform:t})=>wd(t,"x"),y:(n,{transform:t})=>wd(t,"y")};pi.translateX=pi.x;pi.translateY=pi.y;const $i=new Set;let _d=!1,Td=!1,Ed=!1;function Gb(){if(Td){const n=Array.from($i).filter(r=>r.needsMeasurement),t=new Set(n.map(r=>r.element)),a=new Map;t.forEach(r=>{const l=yj(r);l.length&&(a.set(r,l),r.render())}),n.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const l=a.get(r);l&&l.forEach(([c,f])=>{var h;(h=r.getValue(c))==null||h.set(f)})}),n.forEach(r=>r.measureEndState()),n.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Td=!1,_d=!1,$i.forEach(n=>n.complete(Ed)),$i.clear()}function Yb(){$i.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Td=!0)})}function vj(){Ed=!0,Yb(),Gb(),Ed=!1}class mh{constructor(t,a,r,l,c,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=a,this.name=r,this.motionValue=l,this.element=c,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?($i.add(this),_d||(_d=!0,Ve.read(Yb),Ve.resolveKeyframes(Gb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:a,element:r,motionValue:l}=this;if(t[0]===null){const c=l==null?void 0:l.get(),f=t[t.length-1];if(c!==void 0)t[0]=c;else if(r&&a){const h=r.readValue(a,f);h!=null&&(t[0]=h)}t[0]===void 0&&(t[0]=f),l&&c===void 0&&l.set(t[0])}uj(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),$i.delete(this)}cancel(){this.state==="scheduled"&&($i.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const xj=n=>n.startsWith("--");function Kb(n,t,a){xj(t)?n.style.setProperty(t,a):n.style[t]=a}const bj={};function Xb(n,t){const a=Sb(n);return()=>bj[t]??a()}const Sj=Xb(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),$b=Xb(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),lr=([n,t,a,r])=>`cubic-bezier(${n}, ${t}, ${a}, ${r})`,Q0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:lr([0,.65,.55,1]),circOut:lr([.55,0,1,.45]),backIn:lr([.31,.01,.66,-.59]),backOut:lr([.33,1.53,.69,.99])};function Qb(n,t){if(n)return typeof n=="function"?$b()?qb(n,t):"ease-out":Ob(n)?lr(n):Array.isArray(n)?n.map(a=>Qb(a,t)||Q0.easeOut):Q0[n]}function wj(n,t,a,{delay:r=0,duration:l=300,repeat:c=0,repeatType:f="loop",ease:h="easeOut",times:m}={},p=void 0){const v={[t]:a};m&&(v.offset=m);const x=Qb(h,l);Array.isArray(x)&&(v.easing=x);const S={delay:r,duration:l,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:c+1,direction:f==="reverse"?"alternate":"normal"};return p&&(S.pseudoElement=p),n.animate(v,S)}function Zb(n){return typeof n=="function"&&"applyToOptions"in n}function _j({type:n,...t}){return Zb(n)&&$b()?n.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Jb extends hh{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:a,name:r,keyframes:l,pseudoElement:c,allowFlatten:f=!1,finalKeyframe:h,onComplete:m}=t;this.isPseudoElement=!!c,this.allowFlatten=f,this.options=t,ah(typeof t.type!="string");const p=_j(t);this.animation=wj(a,r,l,p,c),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!c){const v=Kl(l,this.options,h,this.speed);this.updateMotionValue&&this.updateMotionValue(v),Kb(a,r,v),this.animation.cancel()}m==null||m(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,a;(a=(t=this.animation).finish)==null||a.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var a,r,l;const t=(a=this.options)==null?void 0:a.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((l=(r=this.animation).commitStyles)==null||l.call(r))}get duration(){var a,r;const t=((r=(a=this.animation.effect)==null?void 0:a.getComputedTiming)==null?void 0:r.call(a).duration)||0;return Zt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Zt(t)}get time(){return Zt(Number(this.animation.currentTime)||0)}set time(t){const a=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ht(t),a&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:a,rangeEnd:r,observe:l}){var c;return this.allowFlatten&&((c=this.animation.effect)==null||c.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Sj()?(this.animation.timeline=t,a&&(this.animation.rangeStart=a),r&&(this.animation.rangeEnd=r),Wt):l(this)}}const Wb={anticipate:Db,backInOut:Nb,circInOut:Cb};function Tj(n){return n in Wb}function Ej(n){typeof n.ease=="string"&&Tj(n.ease)&&(n.ease=Wb[n.ease])}const Bf=10;class Aj extends Jb{constructor(t){Ej(t),Fb(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:a,onUpdate:r,onComplete:l,element:c,...f}=this.options;if(!a)return;if(t!==void 0){a.set(t);return}const h=new Nl({...f,autoplay:!1}),m=Math.max(Bf,bt.now()-this.startTime),p=yn(0,Bf,m-Bf),v=h.sample(m).value,{name:x}=this.options;c&&x&&Kb(c,x,v),a.setWithVelocity(h.sample(Math.max(0,m-p)).value,v,p),h.stop()}}const Z0=(n,t)=>t==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(on.test(n)||n==="0")&&!n.startsWith("url("));function Nj(n){const t=n[0];if(n.length===1)return!0;for(let a=0;a<n.length;a++)if(n[a]!==t)return!0}function Dj(n,t,a,r){const l=n[0];if(l===null)return!1;if(t==="display"||t==="visibility")return!0;const c=n[n.length-1],f=Z0(l,t),h=Z0(c,t);return!f||!h?!1:Nj(n)||(a==="spring"||Zb(a))&&r}function Ad(n){n.duration=0,n.type="keyframes"}const e1=new Set(["opacity","clipPath","filter","transform"]),jj=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Cj(n){for(let t=0;t<n.length;t++)if(typeof n[t]=="string"&&jj.test(n[t]))return!0;return!1}const Mj=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Oj=Sb(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Rj(n){var x;const{motionValue:t,name:a,repeatDelay:r,repeatType:l,damping:c,type:f,keyframes:h}=n;if(!(((x=t==null?void 0:t.owner)==null?void 0:x.current)instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:v}=t.owner.getProps();return Oj()&&a&&(e1.has(a)||Mj.has(a)&&Cj(h))&&(a!=="transform"||!v)&&!p&&!r&&l!=="mirror"&&c!==0&&f!=="inertia"}const kj=40;class Lj extends hh{constructor({autoplay:t=!0,delay:a=0,type:r="keyframes",repeat:l=0,repeatDelay:c=0,repeatType:f="loop",keyframes:h,name:m,motionValue:p,element:v,...x}){var T;super(),this.stop=()=>{var k,z;this._animation&&(this._animation.stop(),(k=this.stopTimeline)==null||k.call(this)),(z=this.keyframeResolver)==null||z.cancel()},this.createdAt=bt.now();const S={autoplay:t,delay:a,type:r,repeat:l,repeatDelay:c,repeatType:f,name:m,motionValue:p,element:v,...x},w=(v==null?void 0:v.KeyframeResolver)||mh;this.keyframeResolver=new w(h,(k,z,B)=>this.onKeyframesResolved(k,z,S,!B),m,p,v),(T=this.keyframeResolver)==null||T.scheduleResolve()}onKeyframesResolved(t,a,r,l){var B,q;this.keyframeResolver=void 0;const{name:c,type:f,velocity:h,delay:m,isHandoff:p,onUpdate:v}=r;this.resolvedAt=bt.now();let x=!0;Dj(t,c,f,h)||(x=!1,(xi.instantAnimations||!m)&&(v==null||v(Kl(t,r,a))),t[0]=t[t.length-1],Ad(r),r.repeat=0);const w={startTime:l?this.resolvedAt?this.resolvedAt-this.createdAt>kj?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:a,...r,keyframes:t},T=x&&!p&&Rj(w),k=(q=(B=w.motionValue)==null?void 0:B.owner)==null?void 0:q.current;let z;if(T)try{z=new Aj({...w,element:k})}catch{z=new Nl(w)}else z=new Nl(w);z.finished.then(()=>{this.notifyFinished()}).catch(Wt),this.pendingTimeline&&(this.stopTimeline=z.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=z}get finished(){return this._animation?this.animation.finished:this._finished}then(t,a){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),vj()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function t1(n,t,a,r=0,l=1){const c=Array.from(n).sort((p,v)=>p.sortNodePosition(v)).indexOf(t),f=n.size,h=(f-1)*r;return typeof a=="function"?a(c,f):l===1?c*r:h-c*r}const zj=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Vj(n){const t=zj.exec(n);if(!t)return[,];const[,a,r,l]=t;return[`--${a??r}`,l]}function n1(n,t,a=1){const[r,l]=Vj(n);if(!r)return;const c=window.getComputedStyle(t).getPropertyValue(r);if(c){const f=c.trim();return vb(f)?parseFloat(f):f}return lh(l)?n1(l,t,a+1):l}const Bj={type:"spring",stiffness:500,damping:25,restSpeed:10},Uj=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),Hj={type:"keyframes",duration:.8},Pj={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},qj=(n,{keyframes:t})=>t.length>2?Hj:os.has(n)?n.startsWith("scale")?Uj(t[1]):Bj:Pj;function i1(n,t){if(n!=null&&n.inherit&&t){const{inherit:a,...r}=n;return{...t,...r}}return n}function ph(n,t){const a=(n==null?void 0:n[t])??(n==null?void 0:n.default)??n;return a!==n?i1(a,n):a}const Ij=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Fj(n){for(const t in n)if(!Ij.has(t))return!0;return!1}const gh=(n,t,a,r={},l,c)=>f=>{const h=ph(r,n)||{},m=h.delay||r.delay||0;let{elapsed:p=0}=r;p=p-Ht(m);const v={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:t.getVelocity(),...h,delay:-p,onUpdate:S=>{t.set(S),h.onUpdate&&h.onUpdate(S)},onComplete:()=>{f(),h.onComplete&&h.onComplete()},name:n,motionValue:t,element:c?void 0:l};Fj(h)||Object.assign(v,qj(n,v)),v.duration&&(v.duration=Ht(v.duration)),v.repeatDelay&&(v.repeatDelay=Ht(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let x=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(Ad(v),v.delay===0&&(x=!0)),(xi.instantAnimations||xi.skipAnimations||l!=null&&l.shouldSkipAnimations)&&(x=!0,Ad(v),v.delay=0),v.allowFlatten=!h.type&&!h.ease,x&&!c&&t.get()!==void 0){const S=Kl(v.keyframes,h);if(S!==void 0){Ve.update(()=>{v.onUpdate(S),v.onComplete()});return}}return h.isSync?new Nl(v):new Lj(v)};function J0(n){const t=[{},{}];return n==null||n.values.forEach((a,r)=>{t[0][r]=a.get(),t[1][r]=a.getVelocity()}),t}function yh(n,t,a,r){if(typeof t=="function"){const[l,c]=J0(r);t=t(a!==void 0?a:n.custom,l,c)}if(typeof t=="string"&&(t=n.variants&&n.variants[t]),typeof t=="function"){const[l,c]=J0(r);t=t(a!==void 0?a:n.custom,l,c)}return t}function Qi(n,t,a){const r=n.getProps();return yh(r,t,a!==void 0?a:r.custom,n)}const a1=new Set(["width","height","top","left","right","bottom",...rs]),W0=30,Gj=n=>!isNaN(parseFloat(n));class Yj{constructor(t,a={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var c;const l=bt.now();if(this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((c=this.events.change)==null||c.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=a.owner}setCurrent(t){this.current=t,this.updatedAt=bt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Gj(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,a){this.events[t]||(this.events[t]=new sh);const r=this.events[t].add(a);return t==="change"?()=>{r(),Ve.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,a){this.passiveEffect=t,this.stopPassiveEffect=a}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,a,r){this.set(a),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,a=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=bt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>W0)return 0;const a=Math.min(this.updatedAt-this.prevUpdatedAt,W0);return wb(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(t){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=t(a),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,a;(t=this.dependents)==null||t.clear(),(a=this.events.destroy)==null||a.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function es(n,t){return new Yj(n,t)}const Nd=n=>Array.isArray(n);function Kj(n,t,a){n.hasValue(t)?n.getValue(t).set(a):n.addValue(t,es(a))}function Xj(n){return Nd(n)?n[n.length-1]||0:n}function $j(n,t){const a=Qi(n,t);let{transitionEnd:r={},transition:l={},...c}=a||{};c={...c,...r};for(const f in c){const h=Xj(c[f]);Kj(n,f,h)}}const mt=n=>!!(n&&n.getVelocity);function Qj(n){return!!(mt(n)&&n.add)}function Dd(n,t){const a=n.getValue("willChange");if(Qj(a))return a.add(t);if(!a&&xi.WillChange){const r=new xi.WillChange("auto");n.addValue("willChange",r),r.add(t)}}function vh(n){return n.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const Zj="framerAppearId",s1="data-"+vh(Zj);function r1(n){return n.props[s1]}function Jj({protectedKeys:n,needsAnimating:t},a){const r=n.hasOwnProperty(a)&&t[a]!==!0;return t[a]=!1,r}function o1(n,t,{delay:a=0,transitionOverride:r,type:l}={}){let{transition:c,transitionEnd:f,...h}=t;const m=n.getDefaultTransition();c=c?i1(c,m):m;const p=c==null?void 0:c.reduceMotion;r&&(c=r);const v=[],x=l&&n.animationState&&n.animationState.getState()[l];for(const S in h){const w=n.getValue(S,n.latestValues[S]??null),T=h[S];if(T===void 0||x&&Jj(x,S))continue;const k={delay:a,...ph(c||{},S)},z=w.get();if(z!==void 0&&!w.isAnimating()&&!Array.isArray(T)&&T===z&&!k.velocity){Ve.update(()=>w.set(T));continue}let B=!1;if(window.MotionHandoffAnimation){const F=r1(n);if(F){const X=window.MotionHandoffAnimation(F,S,Ve);X!==null&&(k.startTime=X,B=!0)}}Dd(n,S);const q=p??n.shouldReduceMotion;w.start(gh(S,w,T,q&&a1.has(S)?{type:!1}:k,n,B));const P=w.animation;P&&v.push(P)}if(f){const S=()=>Ve.update(()=>{f&&$j(n,f)});v.length?Promise.all(v).then(S):S()}return v}function jd(n,t,a={}){var m;const r=Qi(n,t,a.type==="exit"?(m=n.presenceContext)==null?void 0:m.custom:void 0);let{transition:l=n.getDefaultTransition()||{}}=r||{};a.transitionOverride&&(l=a.transitionOverride);const c=r?()=>Promise.all(o1(n,r,a)):()=>Promise.resolve(),f=n.variantChildren&&n.variantChildren.size?(p=0)=>{const{delayChildren:v=0,staggerChildren:x,staggerDirection:S}=l;return Wj(n,t,p,v,x,S,a)}:()=>Promise.resolve(),{when:h}=l;if(h){const[p,v]=h==="beforeChildren"?[c,f]:[f,c];return p().then(()=>v())}else return Promise.all([c(),f(a.delay)])}function Wj(n,t,a=0,r=0,l=0,c=1,f){const h=[];for(const m of n.variantChildren)m.notify("AnimationStart",t),h.push(jd(m,t,{...f,delay:a+(typeof r=="function"?0:r)+t1(n.variantChildren,m,r,l,c)}).then(()=>m.notify("AnimationComplete",t)));return Promise.all(h)}function e5(n,t,a={}){n.notify("AnimationStart",t);let r;if(Array.isArray(t)){const l=t.map(c=>jd(n,c,a));r=Promise.all(l)}else if(typeof t=="string")r=jd(n,t,a);else{const l=typeof t=="function"?Qi(n,t,a.custom):t;r=Promise.all(o1(n,l,a))}return r.then(()=>{n.notify("AnimationComplete",t)})}const t5={test:n=>n==="auto",parse:n=>n},l1=n=>t=>t.test(n),c1=[ss,Z,pn,hi,ND,AD,t5],ev=n=>c1.find(l1(n));function n5(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||bb(n):!0}const i5=new Set(["brightness","contrast","saturate","opacity"]);function a5(n){const[t,a]=n.slice(0,-1).split("(");if(t==="drop-shadow")return n;const[r]=a.match(ch)||[];if(!r)return n;const l=a.replace(r,"");let c=i5.has(t)?1:0;return r!==a&&(c*=100),t+"("+c+l+")"}const s5=/\b([a-z-]*)\(.*?\)/gu,Cd={...on,getAnimatableNone:n=>{const t=n.match(s5);return t?t.map(a5).join(" "):n}},Md={...on,getAnimatableNone:n=>{const t=on.parse(n);return on.createTransformer(n)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},tv={...ss,transform:Math.round},r5={rotate:hi,rotateX:hi,rotateY:hi,rotateZ:hi,scale:nl,scaleX:nl,scaleY:nl,scaleZ:nl,skew:hi,skewX:hi,skewY:hi,distance:Z,translateX:Z,translateY:Z,translateZ:Z,x:Z,y:Z,z:Z,perspective:Z,transformPerspective:Z,opacity:br,originX:P0,originY:P0,originZ:Z},xh={borderWidth:Z,borderTopWidth:Z,borderRightWidth:Z,borderBottomWidth:Z,borderLeftWidth:Z,borderRadius:Z,borderTopLeftRadius:Z,borderTopRightRadius:Z,borderBottomRightRadius:Z,borderBottomLeftRadius:Z,width:Z,maxWidth:Z,height:Z,maxHeight:Z,top:Z,right:Z,bottom:Z,left:Z,inset:Z,insetBlock:Z,insetBlockStart:Z,insetBlockEnd:Z,insetInline:Z,insetInlineStart:Z,insetInlineEnd:Z,padding:Z,paddingTop:Z,paddingRight:Z,paddingBottom:Z,paddingLeft:Z,paddingBlock:Z,paddingBlockStart:Z,paddingBlockEnd:Z,paddingInline:Z,paddingInlineStart:Z,paddingInlineEnd:Z,margin:Z,marginTop:Z,marginRight:Z,marginBottom:Z,marginLeft:Z,marginBlock:Z,marginBlockStart:Z,marginBlockEnd:Z,marginInline:Z,marginInlineStart:Z,marginInlineEnd:Z,fontSize:Z,backgroundPositionX:Z,backgroundPositionY:Z,...r5,zIndex:tv,fillOpacity:br,strokeOpacity:br,numOctaves:tv},o5={...xh,color:it,backgroundColor:it,outlineColor:it,fill:it,stroke:it,borderColor:it,borderTopColor:it,borderRightColor:it,borderBottomColor:it,borderLeftColor:it,filter:Cd,WebkitFilter:Cd,mask:Md,WebkitMask:Md},u1=n=>o5[n],l5=new Set([Cd,Md]);function f1(n,t){let a=u1(n);return l5.has(a)||(a=on),a.getAnimatableNone?a.getAnimatableNone(t):void 0}const c5=new Set(["auto","none","0"]);function u5(n,t,a){let r=0,l;for(;r<n.length&&!l;){const c=n[r];typeof c=="string"&&!c5.has(c)&&Wa(c).values.length&&(l=n[r]),r++}if(l&&a)for(const c of t)n[c]=f1(a,l)}class f5 extends mh{constructor(t,a,r,l,c){super(t,a,r,l,c,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:a,name:r}=this;if(!a||!a.current)return;super.readKeyframes();for(let v=0;v<t.length;v++){let x=t[v];if(typeof x=="string"&&(x=x.trim(),lh(x))){const S=n1(x,a.current);S!==void 0&&(t[v]=S),v===t.length-1&&(this.finalKeyframe=x)}}if(this.resolveNoneKeyframes(),!a1.has(r)||t.length!==2)return;const[l,c]=t,f=ev(l),h=ev(c),m=H0(l),p=H0(c);if(m!==p&&pi[r]){this.needsMeasurement=!0;return}if(f!==h)if($0(f)&&$0(h))for(let v=0;v<t.length;v++){const x=t[v];typeof x=="string"&&(t[v]=parseFloat(x))}else pi[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:a}=this,r=[];for(let l=0;l<t.length;l++)(t[l]===null||n5(t[l]))&&r.push(l);r.length&&u5(t,r,a)}measureInitialState(){const{element:t,unresolvedKeyframes:a,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=pi[r](t.measureViewportBox(),window.getComputedStyle(t.current)),a[0]=this.measuredOrigin;const l=a[a.length-1];l!==void 0&&t.getValue(r,l).jump(l,!1)}measureEndState(){var h;const{element:t,name:a,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const l=t.getValue(a);l&&l.jump(this.measuredOrigin,!1);const c=r.length-1,f=r[c];r[c]=pi[a](t.measureViewportBox(),window.getComputedStyle(t.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),(h=this.removedTransforms)!=null&&h.length&&this.removedTransforms.forEach(([m,p])=>{t.getValue(m).set(p)}),this.resolveNoneKeyframes()}}function d1(n,t,a){if(n==null)return[];if(n instanceof EventTarget)return[n];if(typeof n=="string"){let r=document;const l=(a==null?void 0:a[n])??r.querySelectorAll(n);return l?Array.from(l):[]}return Array.from(n).filter(r=>r!=null)}const h1=(n,t)=>t&&typeof n=="number"?t.transform(n):n;function d5(n){return xb(n)&&"offsetHeight"in n&&!("ownerSVGElement"in n)}const{schedule:bh}=Rb(queueMicrotask,!1),sn={x:!1,y:!1};function m1(){return sn.x||sn.y}function h5(n){return n==="x"||n==="y"?sn[n]?null:(sn[n]=!0,()=>{sn[n]=!1}):sn.x||sn.y?null:(sn.x=sn.y=!0,()=>{sn.x=sn.y=!1})}function p1(n,t){const a=d1(n),r=new AbortController,l={passive:!0,...t,signal:r.signal};return[a,l,()=>r.abort()]}function m5(n){return!(n.pointerType==="touch"||m1())}function p5(n,t,a={}){const[r,l,c]=p1(n,a);return r.forEach(f=>{let h=!1,m=!1,p;const v=()=>{f.removeEventListener("pointerleave",T)},x=z=>{p&&(p(z),p=void 0),v()},S=z=>{h=!1,window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",S),m&&(m=!1,x(z))},w=()=>{h=!0,window.addEventListener("pointerup",S,l),window.addEventListener("pointercancel",S,l)},T=z=>{if(z.pointerType!=="touch"){if(h){m=!0;return}x(z)}},k=z=>{if(!m5(z))return;m=!1;const B=t(f,z);typeof B=="function"&&(p=B,f.addEventListener("pointerleave",T,l))};f.addEventListener("pointerenter",k,l),f.addEventListener("pointerdown",w,l)}),c}const g1=(n,t)=>t?n===t?!0:g1(n,t.parentElement):!1,Sh=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,g5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function y5(n){return g5.has(n.tagName)||n.isContentEditable===!0}const v5=new Set(["INPUT","SELECT","TEXTAREA"]);function x5(n){return v5.has(n.tagName)||n.isContentEditable===!0}const dl=new WeakSet;function nv(n){return t=>{t.key==="Enter"&&n(t)}}function Uf(n,t){n.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const b5=(n,t)=>{const a=n.currentTarget;if(!a)return;const r=nv(()=>{if(dl.has(a))return;Uf(a,"down");const l=nv(()=>{Uf(a,"up")}),c=()=>Uf(a,"cancel");a.addEventListener("keyup",l,t),a.addEventListener("blur",c,t)});a.addEventListener("keydown",r,t),a.addEventListener("blur",()=>a.removeEventListener("keydown",r),t)};function iv(n){return Sh(n)&&!m1()}const av=new WeakSet;function S5(n,t,a={}){const[r,l,c]=p1(n,a),f=h=>{const m=h.currentTarget;if(!iv(h)||av.has(h))return;dl.add(m),a.stopPropagation&&av.add(h);const p=t(m,h),v=(w,T)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",S),dl.has(m)&&dl.delete(m),iv(w)&&typeof p=="function"&&p(w,{success:T})},x=w=>{v(w,m===window||m===document||a.useGlobalTarget||g1(m,w.target))},S=w=>{v(w,!1)};window.addEventListener("pointerup",x,l),window.addEventListener("pointercancel",S,l)};return r.forEach(h=>{(a.useGlobalTarget?window:h).addEventListener("pointerdown",f,l),d5(h)&&(h.addEventListener("focus",p=>b5(p,l)),!y5(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),c}function wh(n){return xb(n)&&"ownerSVGElement"in n}const hl=new WeakMap;let mi;const y1=(n,t,a)=>(r,l)=>l&&l[0]?l[0][n+"Size"]:wh(r)&&"getBBox"in r?r.getBBox()[t]:r[a],w5=y1("inline","width","offsetWidth"),_5=y1("block","height","offsetHeight");function T5({target:n,borderBoxSize:t}){var a;(a=hl.get(n))==null||a.forEach(r=>{r(n,{get width(){return w5(n,t)},get height(){return _5(n,t)}})})}function E5(n){n.forEach(T5)}function A5(){typeof ResizeObserver>"u"||(mi=new ResizeObserver(E5))}function N5(n,t){mi||A5();const a=d1(n);return a.forEach(r=>{let l=hl.get(r);l||(l=new Set,hl.set(r,l)),l.add(t),mi==null||mi.observe(r)}),()=>{a.forEach(r=>{const l=hl.get(r);l==null||l.delete(t),l!=null&&l.size||mi==null||mi.unobserve(r)})}}const ml=new Set;let Ga;function D5(){Ga=()=>{const n={get width(){return window.innerWidth},get height(){return window.innerHeight}};ml.forEach(t=>t(n))},window.addEventListener("resize",Ga)}function j5(n){return ml.add(n),Ga||D5(),()=>{ml.delete(n),!ml.size&&typeof Ga=="function"&&(window.removeEventListener("resize",Ga),Ga=void 0)}}function sv(n,t){return typeof n=="function"?j5(n):N5(n,t)}function C5(n){return wh(n)&&n.tagName==="svg"}const M5=[...c1,it,on],O5=n=>M5.find(l1(n)),rv=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ya=()=>({x:rv(),y:rv()}),ov=()=>({min:0,max:0}),st=()=>({x:ov(),y:ov()}),R5=new WeakMap;function Xl(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function Sr(n){return typeof n=="string"||Array.isArray(n)}const _h=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Th=["initial",..._h];function $l(n){return Xl(n.animate)||Th.some(t=>Sr(n[t]))}function v1(n){return!!($l(n)||n.variants)}function k5(n,t,a){for(const r in t){const l=t[r],c=a[r];if(mt(l))n.addValue(r,l);else if(mt(c))n.addValue(r,es(l,{owner:n}));else if(c!==l)if(n.hasValue(r)){const f=n.getValue(r);f.liveStyle===!0?f.jump(l):f.hasAnimated||f.set(l)}else{const f=n.getStaticValue(r);n.addValue(r,es(f!==void 0?f:l,{owner:n}))}}for(const r in a)t[r]===void 0&&n.removeValue(r);return t}const Od={current:null},x1={current:!1},L5=typeof window<"u";function z5(){if(x1.current=!0,!!L5)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),t=()=>Od.current=n.matches;n.addEventListener("change",t),t()}else Od.current=!1}const lv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Dl={};function b1(n){Dl=n}function V5(){return Dl}class B5{scrapeMotionValuesFromProps(t,a,r){return{}}constructor({parent:t,props:a,presenceContext:r,reducedMotionConfig:l,skipAnimations:c,blockInitialAnimation:f,visualState:h},m={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=mh,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const w=bt.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,Ve.render(this.render,!1,!0))};const{latestValues:p,renderState:v}=h;this.latestValues=p,this.baseTarget={...p},this.initialValues=a.initial?{...p}:{},this.renderState=v,this.parent=t,this.props=a,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=l,this.skipAnimationsConfig=c,this.options=m,this.blockInitialAnimation=!!f,this.isControllingVariants=$l(a),this.isVariantNode=v1(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:x,...S}=this.scrapeMotionValuesFromProps(a,{},this);for(const w in S){const T=S[w];p[w]!==void 0&&mt(T)&&T.set(p[w])}}mount(t){var a,r;if(this.hasBeenMounted)for(const l in this.initialValues)(a=this.values.get(l))==null||a.jump(this.initialValues[l]),this.latestValues[l]=this.initialValues[l];this.current=t,R5.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((l,c)=>this.bindToMotionValue(c,l)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(x1.current||z5(),this.shouldReduceMotion=Od.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),bi(this.notifyUpdate),bi(this.render),this.valueSubscriptions.forEach(a=>a()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const a in this.events)this.events[a].clear();for(const a in this.features){const r=this.features[a];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,a){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),a.accelerate&&e1.has(t)&&this.current instanceof HTMLElement){const{factory:f,keyframes:h,times:m,ease:p,duration:v}=a.accelerate,x=new Jb({element:this.current,name:t,keyframes:h,times:m,ease:p,duration:Ht(v)}),S=f(x);this.valueSubscriptions.set(t,()=>{S(),x.cancel()});return}const r=os.has(t);r&&this.onBindTransform&&this.onBindTransform();const l=a.on("change",f=>{this.latestValues[t]=f,this.props.onUpdate&&Ve.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let c;typeof window<"u"&&window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,t,a)),this.valueSubscriptions.set(t,()=>{l(),c&&c(),a.owner&&a.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Dl){const a=Dl[t];if(!a)continue;const{isEnabled:r,Feature:l}=a;if(!this.features[t]&&l&&r(this.props)&&(this.features[t]=new l(this)),this.features[t]){const c=this.features[t];c.isMounted?c.update():(c.mount(),c.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):st()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,a){this.latestValues[t]=a}update(t,a){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let r=0;r<lv.length;r++){const l=lv[r];this.propEventSubscriptions[l]&&(this.propEventSubscriptions[l](),delete this.propEventSubscriptions[l]);const c="on"+l,f=t[c];f&&(this.propEventSubscriptions[l]=this.on(l,f))}this.prevMotionValues=k5(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(t),()=>a.variantChildren.delete(t)}addValue(t,a){const r=this.values.get(t);a!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,a),this.values.set(t,a),this.latestValues[t]=a.get())}removeValue(t){this.values.delete(t);const a=this.valueSubscriptions.get(t);a&&(a(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,a){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&a!==void 0&&(r=es(a===null?void 0:a,{owner:this}),this.addValue(t,r)),r}readValue(t,a){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(vb(r)||bb(r))?r=parseFloat(r):!O5(r)&&on.test(a)&&(r=f1(t,a)),this.setBaseTarget(t,mt(r)?r.get():r)),mt(r)?r.get():r}setBaseTarget(t,a){this.baseTarget[t]=a}getBaseTarget(t){var c;const{initial:a}=this.props;let r;if(typeof a=="string"||typeof a=="object"){const f=yh(this.props,a,(c=this.presenceContext)==null?void 0:c.custom);f&&(r=f[t])}if(a&&r!==void 0)return r;const l=this.getBaseTargetFromProps(this.props,t);return l!==void 0&&!mt(l)?l:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,a){return this.events[t]||(this.events[t]=new sh),this.events[t].add(a)}notify(t,...a){this.events[t]&&this.events[t].notify(...a)}scheduleRenderMicrotask(){bh.render(this.render)}}class S1 extends B5{constructor(){super(...arguments),this.KeyframeResolver=f5}sortInstanceNodePosition(t,a){return t.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(t,a){const r=t.style;return r?r[a]:void 0}removeValueFromRenderState(t,{vars:a,style:r}){delete a[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;mt(t)&&(this.childSubscription=t.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}class wi{constructor(t){this.isMounted=!1,this.node=t}update(){}}function w1({top:n,left:t,right:a,bottom:r}){return{x:{min:t,max:a},y:{min:n,max:r}}}function U5({x:n,y:t}){return{top:t.min,right:n.max,bottom:t.max,left:n.min}}function H5(n,t){if(!t)return n;const a=t({x:n.left,y:n.top}),r=t({x:n.right,y:n.bottom});return{top:a.y,left:a.x,bottom:r.y,right:r.x}}function Hf(n){return n===void 0||n===1}function Rd({scale:n,scaleX:t,scaleY:a}){return!Hf(n)||!Hf(t)||!Hf(a)}function Fi(n){return Rd(n)||_1(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function _1(n){return cv(n.x)||cv(n.y)}function cv(n){return n&&n!=="0%"}function jl(n,t,a){const r=n-a,l=t*r;return a+l}function uv(n,t,a,r,l){return l!==void 0&&(n=jl(n,l,r)),jl(n,a,r)+t}function kd(n,t=0,a=1,r,l){n.min=uv(n.min,t,a,r,l),n.max=uv(n.max,t,a,r,l)}function T1(n,{x:t,y:a}){kd(n.x,t.translate,t.scale,t.originPoint),kd(n.y,a.translate,a.scale,a.originPoint)}const fv=.999999999999,dv=1.0000000000001;function P5(n,t,a,r=!1){var h;const l=a.length;if(!l)return;t.x=t.y=1;let c,f;for(let m=0;m<l;m++){c=a[m],f=c.projectionDelta;const{visualElement:p}=c.options;p&&p.props.style&&p.props.style.display==="contents"||(r&&c.options.layoutScroll&&c.scroll&&c!==c.root&&(hn(n.x,-c.scroll.offset.x),hn(n.y,-c.scroll.offset.y)),f&&(t.x*=f.x.scale,t.y*=f.y.scale,T1(n,f)),r&&Fi(c.latestValues)&&pl(n,c.latestValues,(h=c.layout)==null?void 0:h.layoutBox))}t.x<dv&&t.x>fv&&(t.x=1),t.y<dv&&t.y>fv&&(t.y=1)}function hn(n,t){n.min+=t,n.max+=t}function hv(n,t,a,r,l=.5){const c=He(n.min,n.max,l);kd(n,t,a,c,r)}function mv(n,t){return typeof n=="string"?parseFloat(n)/100*(t.max-t.min):n}function pl(n,t,a){const r=a??n;hv(n.x,mv(t.x,r.x),t.scaleX,t.scale,t.originX),hv(n.y,mv(t.y,r.y),t.scaleY,t.scale,t.originY)}function E1(n,t){return w1(H5(n.getBoundingClientRect(),t))}function q5(n,t,a){const r=E1(n,a),{scroll:l}=t;return l&&(hn(r.x,l.offset.x),hn(r.y,l.offset.y)),r}const I5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},F5=rs.length;function G5(n,t,a){let r="",l=!0;for(let c=0;c<F5;c++){const f=rs[c],h=n[f];if(h===void 0)continue;let m=!0;if(typeof h=="number")m=h===(f.startsWith("scale")?1:0);else{const p=parseFloat(h);m=f.startsWith("scale")?p===1:p===0}if(!m||a){const p=h1(h,xh[f]);if(!m){l=!1;const v=I5[f]||f;r+=`${v}(${p}) `}a&&(t[f]=p)}}return r=r.trim(),a?r=a(t,l?"":r):l&&(r="none"),r}function Eh(n,t,a){const{style:r,vars:l,transformOrigin:c}=n;let f=!1,h=!1;for(const m in t){const p=t[m];if(os.has(m)){f=!0;continue}else if(Lb(m)){l[m]=p;continue}else{const v=h1(p,xh[m]);m.startsWith("origin")?(h=!0,c[m]=v):r[m]=v}}if(t.transform||(f||a?r.transform=G5(t,n.transform,a):r.transform&&(r.transform="none")),h){const{originX:m="50%",originY:p="50%",originZ:v=0}=c;r.transformOrigin=`${m} ${p} ${v}`}}function A1(n,{style:t,vars:a},r,l){const c=n.style;let f;for(f in t)c[f]=t[f];l==null||l.applyProjectionStyles(c,r);for(f in a)c.setProperty(f,a[f])}function pv(n,t){return t.max===t.min?0:n/(t.max-t.min)*100}const ar={correct:(n,t)=>{if(!t.target)return n;if(typeof n=="string")if(Z.test(n))n=parseFloat(n);else return n;const a=pv(n,t.target.x),r=pv(n,t.target.y);return`${a}% ${r}%`}},Y5={correct:(n,{treeScale:t,projectionDelta:a})=>{const r=n,l=on.parse(n);if(l.length>5)return r;const c=on.createTransformer(n),f=typeof l[0]!="number"?1:0,h=a.x.scale*t.x,m=a.y.scale*t.y;l[0+f]/=h,l[1+f]/=m;const p=He(h,m,.5);return typeof l[2+f]=="number"&&(l[2+f]/=p),typeof l[3+f]=="number"&&(l[3+f]/=p),c(l)}},Ld={borderRadius:{...ar,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ar,borderTopRightRadius:ar,borderBottomLeftRadius:ar,borderBottomRightRadius:ar,boxShadow:Y5};function N1(n,{layout:t,layoutId:a}){return os.has(n)||n.startsWith("origin")||(t||a!==void 0)&&(!!Ld[n]||n==="opacity")}function Ah(n,t,a){var f;const r=n.style,l=t==null?void 0:t.style,c={};if(!r)return c;for(const h in r)(mt(r[h])||l&&mt(l[h])||N1(h,n)||((f=a==null?void 0:a.getValue(h))==null?void 0:f.liveStyle)!==void 0)&&(c[h]=r[h]);return c}function K5(n){return window.getComputedStyle(n)}class X5 extends S1{constructor(){super(...arguments),this.type="html",this.renderInstance=A1}readValueFromInstance(t,a){var r;if(os.has(a))return(r=this.projection)!=null&&r.isProjecting?Sd(a):hj(t,a);{const l=K5(t),c=(Lb(a)?l.getPropertyValue(a):l[a])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(t,{transformPagePoint:a}){return E1(t,a)}build(t,a,r){Eh(t,a,r.transformTemplate)}scrapeMotionValuesFromProps(t,a,r){return Ah(t,a,r)}}const $5={offset:"stroke-dashoffset",array:"stroke-dasharray"},Q5={offset:"strokeDashoffset",array:"strokeDasharray"};function Z5(n,t,a=1,r=0,l=!0){n.pathLength=1;const c=l?$5:Q5;n[c.offset]=`${-r}`,n[c.array]=`${t} ${a}`}const J5=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function D1(n,{attrX:t,attrY:a,attrScale:r,pathLength:l,pathSpacing:c=1,pathOffset:f=0,...h},m,p,v){if(Eh(n,h,p),m){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:x,style:S}=n;x.transform&&(S.transform=x.transform,delete x.transform),(S.transform||x.transformOrigin)&&(S.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),S.transform&&(S.transformBox=(v==null?void 0:v.transformBox)??"fill-box",delete x.transformBox);for(const w of J5)x[w]!==void 0&&(S[w]=x[w],delete x[w]);t!==void 0&&(x.x=t),a!==void 0&&(x.y=a),r!==void 0&&(x.scale=r),l!==void 0&&Z5(x,l,c,f,!1)}const j1=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),C1=n=>typeof n=="string"&&n.toLowerCase()==="svg";function W5(n,t,a,r){A1(n,t,void 0,r);for(const l in t.attrs)n.setAttribute(j1.has(l)?l:vh(l),t.attrs[l])}function M1(n,t,a){const r=Ah(n,t,a);for(const l in n)if(mt(n[l])||mt(t[l])){const c=rs.indexOf(l)!==-1?"attr"+l.charAt(0).toUpperCase()+l.substring(1):l;r[c]=n[l]}return r}class eC extends S1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=st}getBaseTargetFromProps(t,a){return t[a]}readValueFromInstance(t,a){if(os.has(a)){const r=u1(a);return r&&r.default||0}return a=j1.has(a)?a:vh(a),t.getAttribute(a)}scrapeMotionValuesFromProps(t,a,r){return M1(t,a,r)}build(t,a,r){D1(t,a,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,a,r,l){W5(t,a,r,l)}mount(t){this.isSVGTag=C1(t.tagName),super.mount(t)}}const tC=Th.length;function O1(n){if(!n)return;if(!n.isControllingVariants){const a=n.parent?O1(n.parent)||{}:{};return n.props.initial!==void 0&&(a.initial=n.props.initial),a}const t={};for(let a=0;a<tC;a++){const r=Th[a],l=n.props[r];(Sr(l)||l===!1)&&(t[r]=l)}return t}function R1(n,t){if(!Array.isArray(t))return!1;const a=t.length;if(a!==n.length)return!1;for(let r=0;r<a;r++)if(t[r]!==n[r])return!1;return!0}const nC=[..._h].reverse(),iC=_h.length;function aC(n){return t=>Promise.all(t.map(({animation:a,options:r})=>e5(n,a,r)))}function sC(n){let t=aC(n),a=gv(),r=!0,l=!1;const c=p=>(v,x)=>{var w;const S=Qi(n,x,p==="exit"?(w=n.presenceContext)==null?void 0:w.custom:void 0);if(S){const{transition:T,transitionEnd:k,...z}=S;v={...v,...z,...k}}return v};function f(p){t=p(n)}function h(p){const{props:v}=n,x=O1(n.parent)||{},S=[],w=new Set;let T={},k=1/0;for(let B=0;B<iC;B++){const q=nC[B],P=a[q],F=v[q]!==void 0?v[q]:x[q],X=Sr(F),he=q===p?P.isActive:null;he===!1&&(k=B);let J=F===x[q]&&F!==v[q]&&X;if(J&&(r||l)&&n.manuallyAnimateOnMount&&(J=!1),P.protectedKeys={...T},!P.isActive&&he===null||!F&&!P.prevProp||Xl(F)||typeof F=="boolean")continue;if(q==="exit"&&P.isActive&&he!==!0){P.prevResolvedValues&&(T={...T,...P.prevResolvedValues});continue}const te=rC(P.prevProp,F);let ue=te||q===p&&P.isActive&&!J&&X||B>k&&X,K=!1;const Se=Array.isArray(F)?F:[F];let Ae=Se.reduce(c(q),{});he===!1&&(Ae={});const{prevResolvedValues:De={}}=P,_e={...De,...Ae},Pe=Y=>{ue=!0,w.has(Y)&&(K=!0,w.delete(Y)),P.needsAnimating[Y]=!0;const se=n.getValue(Y);se&&(se.liveStyle=!1)};for(const Y in _e){const se=Ae[Y],me=De[Y];if(T.hasOwnProperty(Y))continue;let A=!1;Nd(se)&&Nd(me)?A=!R1(se,me):A=se!==me,A?se!=null?Pe(Y):w.add(Y):se!==void 0&&w.has(Y)?Pe(Y):P.protectedKeys[Y]=!0}P.prevProp=F,P.prevResolvedValues=Ae,P.isActive&&(T={...T,...Ae}),(r||l)&&n.blockInitialAnimation&&(ue=!1);const O=J&&te;ue&&(!O||K)&&S.push(...Se.map(Y=>{const se={type:q};if(typeof Y=="string"&&(r||l)&&!O&&n.manuallyAnimateOnMount&&n.parent){const{parent:me}=n,A=Qi(me,Y);if(me.enteringChildren&&A){const{delayChildren:V}=A.transition||{};se.delay=t1(me.enteringChildren,n,V)}}return{animation:Y,options:se}}))}if(w.size){const B={};if(typeof v.initial!="boolean"){const q=Qi(n,Array.isArray(v.initial)?v.initial[0]:v.initial);q&&q.transition&&(B.transition=q.transition)}w.forEach(q=>{const P=n.getBaseTarget(q),F=n.getValue(q);F&&(F.liveStyle=!0),B[q]=P??null}),S.push({animation:B})}let z=!!S.length;return r&&(v.initial===!1||v.initial===v.animate)&&!n.manuallyAnimateOnMount&&(z=!1),r=!1,l=!1,z?t(S):Promise.resolve()}function m(p,v){var S;if(a[p].isActive===v)return Promise.resolve();(S=n.variantChildren)==null||S.forEach(w=>{var T;return(T=w.animationState)==null?void 0:T.setActive(p,v)}),a[p].isActive=v;const x=h(p);for(const w in a)a[w].protectedKeys={};return x}return{animateChanges:h,setActive:m,setAnimateFunction:f,getState:()=>a,reset:()=>{a=gv(),l=!0}}}function rC(n,t){return typeof t=="string"?t!==n:Array.isArray(t)?!R1(t,n):!1}function qi(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function gv(){return{animate:qi(!0),whileInView:qi(),whileHover:qi(),whileTap:qi(),whileDrag:qi(),whileFocus:qi(),exit:qi()}}function zd(n,t){n.min=t.min,n.max=t.max}function an(n,t){zd(n.x,t.x),zd(n.y,t.y)}function yv(n,t){n.translate=t.translate,n.scale=t.scale,n.originPoint=t.originPoint,n.origin=t.origin}const k1=1e-4,oC=1-k1,lC=1+k1,L1=.01,cC=0-L1,uC=0+L1;function St(n){return n.max-n.min}function fC(n,t,a){return Math.abs(n-t)<=a}function vv(n,t,a,r=.5){n.origin=r,n.originPoint=He(t.min,t.max,n.origin),n.scale=St(a)/St(t),n.translate=He(a.min,a.max,n.origin)-n.originPoint,(n.scale>=oC&&n.scale<=lC||isNaN(n.scale))&&(n.scale=1),(n.translate>=cC&&n.translate<=uC||isNaN(n.translate))&&(n.translate=0)}function fr(n,t,a,r){vv(n.x,t.x,a.x,r?r.originX:void 0),vv(n.y,t.y,a.y,r?r.originY:void 0)}function xv(n,t,a,r=0){const l=r?He(a.min,a.max,r):a.min;n.min=l+t.min,n.max=n.min+St(t)}function dC(n,t,a,r){xv(n.x,t.x,a.x,r==null?void 0:r.x),xv(n.y,t.y,a.y,r==null?void 0:r.y)}function bv(n,t,a,r=0){const l=r?He(a.min,a.max,r):a.min;n.min=t.min-l,n.max=n.min+St(t)}function Cl(n,t,a,r){bv(n.x,t.x,a.x,r==null?void 0:r.x),bv(n.y,t.y,a.y,r==null?void 0:r.y)}function Sv(n,t,a,r,l){return n-=t,n=jl(n,1/a,r),l!==void 0&&(n=jl(n,1/l,r)),n}function hC(n,t=0,a=1,r=.5,l,c=n,f=n){if(pn.test(t)&&(t=parseFloat(t),t=He(f.min,f.max,t/100)-f.min),typeof t!="number")return;let h=He(c.min,c.max,r);n===c&&(h-=t),n.min=Sv(n.min,t,a,h,l),n.max=Sv(n.max,t,a,h,l)}function wv(n,t,[a,r,l],c,f){hC(n,t[a],t[r],t[l],t.scale,c,f)}const mC=["x","scaleX","originX"],pC=["y","scaleY","originY"];function _v(n,t,a,r){wv(n.x,t,mC,a?a.x:void 0,r?r.x:void 0),wv(n.y,t,pC,a?a.y:void 0,r?r.y:void 0)}function Tv(n){return n.translate===0&&n.scale===1}function z1(n){return Tv(n.x)&&Tv(n.y)}function Ev(n,t){return n.min===t.min&&n.max===t.max}function gC(n,t){return Ev(n.x,t.x)&&Ev(n.y,t.y)}function Av(n,t){return Math.round(n.min)===Math.round(t.min)&&Math.round(n.max)===Math.round(t.max)}function V1(n,t){return Av(n.x,t.x)&&Av(n.y,t.y)}function Nv(n){return St(n.x)/St(n.y)}function Dv(n,t){return n.translate===t.translate&&n.scale===t.scale&&n.originPoint===t.originPoint}function dn(n){return[n("x"),n("y")]}function yC(n,t,a){let r="";const l=n.x.translate/t.x,c=n.y.translate/t.y,f=(a==null?void 0:a.z)||0;if((l||c||f)&&(r=`translate3d(${l}px, ${c}px, ${f}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),a){const{transformPerspective:p,rotate:v,rotateX:x,rotateY:S,skewX:w,skewY:T}=a;p&&(r=`perspective(${p}px) ${r}`),v&&(r+=`rotate(${v}deg) `),x&&(r+=`rotateX(${x}deg) `),S&&(r+=`rotateY(${S}deg) `),w&&(r+=`skewX(${w}deg) `),T&&(r+=`skewY(${T}deg) `)}const h=n.x.scale*t.x,m=n.y.scale*t.y;return(h!==1||m!==1)&&(r+=`scale(${h}, ${m})`),r||"none"}const B1=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],vC=B1.length,jv=n=>typeof n=="string"?parseFloat(n):n,Cv=n=>typeof n=="number"||Z.test(n);function xC(n,t,a,r,l,c){l?(n.opacity=He(0,a.opacity??1,bC(r)),n.opacityExit=He(t.opacity??1,0,SC(r))):c&&(n.opacity=He(t.opacity??1,a.opacity??1,r));for(let f=0;f<vC;f++){const h=B1[f];let m=Mv(t,h),p=Mv(a,h);if(m===void 0&&p===void 0)continue;m||(m=0),p||(p=0),m===0||p===0||Cv(m)===Cv(p)?(n[h]=Math.max(He(jv(m),jv(p),r),0),(pn.test(p)||pn.test(m))&&(n[h]+="%")):n[h]=p}(t.rotate||a.rotate)&&(n.rotate=He(t.rotate||0,a.rotate||0,r))}function Mv(n,t){return n[t]!==void 0?n[t]:n.borderRadius}const bC=U1(0,.5,jb),SC=U1(.5,.95,Wt);function U1(n,t,a){return r=>r<n?0:r>t?1:a(xr(n,t,r))}function wC(n,t,a){const r=mt(n)?n:es(n);return r.start(gh("",r,t,a)),r.animation}function wr(n,t,a,r={passive:!0}){return n.addEventListener(t,a,r),()=>n.removeEventListener(t,a)}const _C=(n,t)=>n.depth-t.depth;class TC{constructor(){this.children=[],this.isDirty=!1}add(t){ih(this.children,t),this.isDirty=!0}remove(t){_l(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(_C),this.isDirty=!1,this.children.forEach(t)}}function EC(n,t){const a=bt.now(),r=({timestamp:l})=>{const c=l-a;c>=t&&(bi(r),n(c-t))};return Ve.setup(r,!0),()=>bi(r)}function gl(n){return mt(n)?n.get():n}class AC{constructor(){this.members=[]}add(t){ih(this.members,t);for(let a=this.members.length-1;a>=0;a--){const r=this.members[a];if(r===t||r===this.lead||r===this.prevLead)continue;const l=r.instance;(!l||l.isConnected===!1)&&!r.snapshot&&(_l(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(_l(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(t){var a;for(let r=this.members.indexOf(t)-1;r>=0;r--){const l=this.members[r];if(l.isPresent!==!1&&((a=l.instance)==null?void 0:a.isConnected)!==!1)return this.promote(l),!0}return!1}promote(t,a){var l;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:c}=r.options,{layoutDependency:f}=t.options;(c===void 0||c!==f)&&(t.resumeFrom=r,a&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(l=t.root)!=null&&l.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var a,r,l,c,f;(r=(a=t.options).onExitComplete)==null||r.call(a),(f=(l=t.resumingFrom)==null?void 0:(c=l.options).onExitComplete)==null||f.call(c)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const yl={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Pf=["","X","Y","Z"],NC=1e3;let DC=0;function qf(n,t,a,r){const{latestValues:l}=t;l[n]&&(a[n]=l[n],t.setStaticValue(n,0),r&&(r[n]=0))}function H1(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:t}=n.options;if(!t)return;const a=r1(t);if(window.MotionHasOptimisedAnimation(a,"transform")){const{layout:l,layoutId:c}=n.options;window.MotionCancelOptimisedAnimation(a,"transform",Ve,!(l||c))}const{parent:r}=n;r&&!r.hasCheckedOptimisedAppear&&H1(r)}function P1({attachResizeListener:n,defaultParent:t,measureScroll:a,checkIsScrollRoot:r,resetTransform:l}){return class{constructor(f={},h=t==null?void 0:t()){this.id=DC++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(MC),this.nodes.forEach(VC),this.nodes.forEach(BC),this.nodes.forEach(OC)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new TC)}addEventListener(f,h){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new sh),this.eventHandlers.get(f).add(h)}notifyListeners(f,...h){const m=this.eventHandlers.get(f);m&&m.notify(...h)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=wh(f)&&!C5(f),this.instance=f;const{layoutId:h,layout:m,visualElement:p}=this.options;if(p&&!p.current&&p.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||h)&&(this.isLayoutDirty=!0),n){let v,x=0;const S=()=>this.root.updateBlockedByResize=!1;Ve.read(()=>{x=window.innerWidth}),n(f,()=>{const w=window.innerWidth;w!==x&&(x=w,this.root.updateBlockedByResize=!0,v&&v(),v=EC(S,250),yl.hasAnimatedSinceResize&&(yl.hasAnimatedSinceResize=!1,this.nodes.forEach(kv)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&p&&(h||m)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:x,hasRelativeLayoutChanged:S,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const T=this.options.transition||p.getDefaultTransition()||IC,{onLayoutAnimationStart:k,onLayoutAnimationComplete:z}=p.getProps(),B=!this.targetLayout||!V1(this.targetLayout,w),q=!x&&S;if(this.options.layoutRoot||this.resumeFrom||q||x&&(B||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const P={...ph(T,"layout"),onPlay:k,onComplete:z};(p.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P),this.setAnimationOrigin(v,q)}else x||kv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),bi(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(UC),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&H1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const x=this.path[v];x.shouldResetTransform=!0,(typeof x.latestValues.x=="string"||typeof x.latestValues.y=="string")&&(x.isLayoutDirty=!0),x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:h,layout:m}=this.options;if(h===void 0&&!m)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const m=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),m&&this.nodes.forEach(kC),this.nodes.forEach(Ov);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Rv);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(LC),this.nodes.forEach(zC),this.nodes.forEach(jC),this.nodes.forEach(CC)):this.nodes.forEach(Rv),this.clearAllSnapshots();const h=bt.now();ht.delta=yn(0,1e3/60,h-ht.timestamp),ht.timestamp=h,ht.isProcessing=!0,Rf.update.process(ht),Rf.preRender.process(ht),Rf.render.process(ht),ht.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,bh.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(RC),this.sharedNodes.forEach(HC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ve.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ve.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!St(this.snapshot.measuredBox.x)&&!St(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let m=0;m<this.path.length;m++)this.path[m].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=st()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(h=!1),h&&this.instance){const m=r(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:m,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!l)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!z1(this.projectionDelta),m=this.getTransformTemplate(),p=m?m(this.latestValues,""):void 0,v=p!==this.prevTransformTemplateValue;f&&this.instance&&(h||Fi(this.latestValues)||v)&&(l(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const h=this.measurePageBox();let m=this.removeElementScroll(h);return f&&(m=this.removeTransform(m)),FC(m),{animationId:this.root.animationId,measuredBox:h,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){var p;const{visualElement:f}=this.options;if(!f)return st();const h=f.measureViewportBox();if(!(((p=this.scroll)==null?void 0:p.wasRoot)||this.path.some(GC))){const{scroll:v}=this.root;v&&(hn(h.x,v.offset.x),hn(h.y,v.offset.y))}return h}removeElementScroll(f){var m;const h=st();if(an(h,f),(m=this.scroll)!=null&&m.wasRoot)return h;for(let p=0;p<this.path.length;p++){const v=this.path[p],{scroll:x,options:S}=v;v!==this.root&&x&&S.layoutScroll&&(x.wasRoot&&an(h,f),hn(h.x,x.offset.x),hn(h.y,x.offset.y))}return h}applyTransform(f,h=!1,m){var v,x;const p=m||st();an(p,f);for(let S=0;S<this.path.length;S++){const w=this.path[S];!h&&w.options.layoutScroll&&w.scroll&&w!==w.root&&(hn(p.x,-w.scroll.offset.x),hn(p.y,-w.scroll.offset.y)),Fi(w.latestValues)&&pl(p,w.latestValues,(v=w.layout)==null?void 0:v.layoutBox)}return Fi(this.latestValues)&&pl(p,this.latestValues,(x=this.layout)==null?void 0:x.layoutBox),p}removeTransform(f){var m;const h=st();an(h,f);for(let p=0;p<this.path.length;p++){const v=this.path[p];if(!Fi(v.latestValues))continue;let x;v.instance&&(Rd(v.latestValues)&&v.updateSnapshot(),x=st(),an(x,v.measurePageBox())),_v(h,v.latestValues,(m=v.snapshot)==null?void 0:m.layoutBox,x)}return Fi(this.latestValues)&&_v(h,this.latestValues),h}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ht.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){var w;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==h;if(!(f||m&&this.isSharedProjectionDirty||this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:x}=this.options;if(!this.layout||!(v||x))return;this.resolvedRelativeTargetAt=ht.timestamp;const S=this.getClosestProjectingParent();S&&this.linkedParentVersion!==S.layoutVersion&&!S.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&S&&S.layout?this.createRelativeTarget(S,this.layout.layoutBox,S.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=st(),this.targetWithTransforms=st()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),dC(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):an(this.target,this.layout.layoutBox),T1(this.target,this.targetDelta)):an(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?this.createRelativeTarget(S,this.target,S.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Rd(this.parent.latestValues)||_1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(f,h,m){this.relativeParent=f,this.linkedParentVersion=f.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=st(),this.relativeTargetOrigin=st(),Cl(this.relativeTargetOrigin,h,m,this.options.layoutAnchor||void 0),an(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var T;const f=this.getLead(),h=!!this.resumingFrom||this!==f;let m=!0;if((this.isProjectionDirty||(T=this.parent)!=null&&T.isProjectionDirty)&&(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===ht.timestamp&&(m=!1),m)return;const{layout:p,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||v))return;an(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,S=this.treeScale.y;P5(this.layoutCorrected,this.treeScale,this.path,h),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=st());const{target:w}=f;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(yv(this.prevProjectionDelta.x,this.projectionDelta.x),yv(this.prevProjectionDelta.y,this.projectionDelta.y)),fr(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==S||!Dv(this.projectionDelta.x,this.prevProjectionDelta.x)||!Dv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){var h;if((h=this.options.visualElement)==null||h.scheduleRender(),f){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ya(),this.projectionDelta=Ya(),this.projectionDeltaWithTransform=Ya()}setAnimationOrigin(f,h=!1){const m=this.snapshot,p=m?m.latestValues:{},v={...this.latestValues},x=Ya();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const S=st(),w=m?m.source:void 0,T=this.layout?this.layout.source:void 0,k=w!==T,z=this.getStack(),B=!z||z.members.length<=1,q=!!(k&&!B&&this.options.crossfade===!0&&!this.path.some(qC));this.animationProgress=0;let P;this.mixTargetDelta=F=>{const X=F/1e3;Lv(x.x,f.x,X),Lv(x.y,f.y,X),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Cl(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),PC(this.relativeTarget,this.relativeTargetOrigin,S,X),P&&gC(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=st()),an(P,this.relativeTarget)),k&&(this.animationValues=v,xC(v,p,this.latestValues,X,q,B)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=X},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){var h,m,p;this.notifyListeners("animationStart"),(h=this.currentAnimation)==null||h.stop(),(p=(m=this.resumingFrom)==null?void 0:m.currentAnimation)==null||p.stop(),this.pendingAnimation&&(bi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ve.update(()=>{yl.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=es(0)),this.motionValue.jump(0,!1),this.currentAnimation=wC(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:v=>{this.mixTargetDelta(v),f.onUpdate&&f.onUpdate(v)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(NC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:h,target:m,layout:p,latestValues:v}=f;if(!(!h||!m||!p)){if(this!==f&&this.layout&&p&&q1(this.options.animationType,this.layout.layoutBox,p.layoutBox)){m=this.target||st();const x=St(this.layout.layoutBox.x);m.x.min=f.target.x.min,m.x.max=m.x.min+x;const S=St(this.layout.layoutBox.y);m.y.min=f.target.y.min,m.y.max=m.y.min+S}an(h,m),pl(h,v),fr(this.projectionDeltaWithTransform,this.layoutCorrected,h,v)}}registerSharedNode(f,h){this.sharedNodes.has(f)||this.sharedNodes.set(f,new AC),this.sharedNodes.get(f).add(h);const p=h.options.initialPromotionConfig;h.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(h):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){var h;const{layoutId:f}=this.options;return f?((h=this.getStack())==null?void 0:h.lead)||this:this}getPrevLead(){var h;const{layoutId:f}=this.options;return f?(h=this.getStack())==null?void 0:h.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:h,preserveFollowOpacity:m}={}){const p=this.getStack();p&&p.promote(this,m),f&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let h=!1;const{latestValues:m}=f;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(h=!0),!h)return;const p={};m.z&&qf("z",f,p,this.animationValues);for(let v=0;v<Pf.length;v++)qf(`rotate${Pf[v]}`,f,p,this.animationValues),qf(`skew${Pf[v]}`,f,p,this.animationValues);f.render();for(const v in p)f.setStaticValue(v,p[v]),this.animationValues&&(this.animationValues[v]=p[v]);f.scheduleRender()}applyProjectionStyles(f,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=gl(h==null?void 0:h.pointerEvents)||"",f.transform=m?m(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=gl(h==null?void 0:h.pointerEvents)||""),this.hasProjected&&!Fi(this.latestValues)&&(f.transform=m?m({},""):"none",this.hasProjected=!1);return}f.visibility="";const v=p.animationValues||p.latestValues;this.applyTransformsToTarget();let x=yC(this.projectionDeltaWithTransform,this.treeScale,v);m&&(x=m(v,x)),f.transform=x;const{x:S,y:w}=this.projectionDelta;f.transformOrigin=`${S.origin*100}% ${w.origin*100}% 0`,p.animationValues?f.opacity=p===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:f.opacity=p===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const T in Ld){if(v[T]===void 0)continue;const{correct:k,applyTo:z,isCSSVariable:B}=Ld[T],q=x==="none"?v[T]:k(v[T],p);if(z){const P=z.length;for(let F=0;F<P;F++)f[z[F]]=q}else B?this.options.visualElement.renderState.vars[T]=q:f[T]=q}this.options.layoutId&&(f.pointerEvents=p===this?gl(h==null?void 0:h.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>{var h;return(h=f.currentAnimation)==null?void 0:h.stop()}),this.root.nodes.forEach(Ov),this.root.sharedNodes.clear()}}}function jC(n){n.updateLayout()}function CC(n){var a;const t=((a=n.resumeFrom)==null?void 0:a.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&t&&n.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:l}=n.layout,{animationType:c}=n.options,f=t.source!==n.layout.source;if(c==="size")dn(x=>{const S=f?t.measuredBox[x]:t.layoutBox[x],w=St(S);S.min=r[x].min,S.max=S.min+w});else if(c==="x"||c==="y"){const x=c==="x"?"y":"x";zd(f?t.measuredBox[x]:t.layoutBox[x],r[x])}else q1(c,t.layoutBox,r)&&dn(x=>{const S=f?t.measuredBox[x]:t.layoutBox[x],w=St(r[x]);S.max=S.min+w,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[x].max=n.relativeTarget[x].min+w)});const h=Ya();fr(h,r,t.layoutBox);const m=Ya();f?fr(m,n.applyTransform(l,!0),t.measuredBox):fr(m,r,t.layoutBox);const p=!z1(h);let v=!1;if(!n.resumeFrom){const x=n.getClosestProjectingParent();if(x&&!x.resumeFrom){const{snapshot:S,layout:w}=x;if(S&&w){const T=n.options.layoutAnchor||void 0,k=st();Cl(k,t.layoutBox,S.layoutBox,T);const z=st();Cl(z,r,w.layoutBox,T),V1(k,z)||(v=!0),x.options.layoutRoot&&(n.relativeTarget=z,n.relativeTargetOrigin=k,n.relativeParent=x)}}}n.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:m,layoutDelta:h,hasLayoutChanged:p,hasRelativeLayoutChanged:v})}else if(n.isLead()){const{onExitComplete:r}=n.options;r&&r()}n.options.transition=void 0}function MC(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function OC(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function RC(n){n.clearSnapshot()}function Ov(n){n.clearMeasurements()}function kC(n){n.isLayoutDirty=!0,n.updateLayout()}function Rv(n){n.isLayoutDirty=!1}function LC(n){n.isAnimationBlocked&&n.layout&&!n.isLayoutDirty&&(n.snapshot=n.layout,n.isLayoutDirty=!0)}function zC(n){const{visualElement:t}=n.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),n.resetTransform()}function kv(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function VC(n){n.resolveTargetDelta()}function BC(n){n.calcProjection()}function UC(n){n.resetSkewAndRotation()}function HC(n){n.removeLeadSnapshot()}function Lv(n,t,a){n.translate=He(t.translate,0,a),n.scale=He(t.scale,1,a),n.origin=t.origin,n.originPoint=t.originPoint}function zv(n,t,a,r){n.min=He(t.min,a.min,r),n.max=He(t.max,a.max,r)}function PC(n,t,a,r){zv(n.x,t.x,a.x,r),zv(n.y,t.y,a.y,r)}function qC(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const IC={duration:.45,ease:[.4,0,.1,1]},Vv=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),Bv=Vv("applewebkit/")&&!Vv("chrome/")?Math.round:Wt;function Uv(n){n.min=Bv(n.min),n.max=Bv(n.max)}function FC(n){Uv(n.x),Uv(n.y)}function q1(n,t,a){return n==="position"||n==="preserve-aspect"&&!fC(Nv(t),Nv(a),.2)}function GC(n){var t;return n!==n.root&&((t=n.scroll)==null?void 0:t.wasRoot)}const YC=P1({attachResizeListener:(n,t)=>wr(n,"resize",t),measureScroll:()=>{var n,t;return{x:document.documentElement.scrollLeft||((n=document.body)==null?void 0:n.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),If={current:void 0},I1=P1({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!If.current){const n=new YC({});n.mount(window),n.setOptions({layoutScroll:!0}),If.current=n}return If.current},resetTransform:(n,t)=>{n.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),F1=ee.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function KC(n=!0){const t=ee.useContext(nh);if(t===null)return[!0,null];const{isPresent:a,onExitComplete:r,register:l}=t,c=ee.useId();ee.useEffect(()=>{if(n)return l(c)},[n]);const f=ee.useCallback(()=>n&&r&&r(c),[c,r,n]);return!a&&r?[!1,f]:[!0]}const G1=ee.createContext({strict:!1}),Hv={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Pv=!1;function XC(){if(Pv)return;const n={};for(const t in Hv)n[t]={isEnabled:a=>Hv[t].some(r=>!!a[r])};b1(n),Pv=!0}function Y1(){return XC(),V5()}function $C(n){const t=Y1();for(const a in n)t[a]={...t[a],...n[a]};b1(t)}const QC=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Ml(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||QC.has(n)}let K1=n=>!Ml(n);function ZC(n){typeof n=="function"&&(K1=t=>t.startsWith("on")?!Ml(t):n(t))}try{ZC(require("@emotion/is-prop-valid").default)}catch{}function JC(n,t,a){const r={};for(const l in n)l==="values"&&typeof n.values=="object"||mt(n[l])||(K1(l)||a===!0&&Ml(l)||!t&&!Ml(l)||n.draggable&&l.startsWith("onDrag"))&&(r[l]=n[l]);return r}const Ql=ee.createContext({});function WC(n,t){if($l(n)){const{initial:a,animate:r}=n;return{initial:a===!1||Sr(a)?a:void 0,animate:Sr(r)?r:void 0}}return n.inherit!==!1?t:{}}function eM(n){const{initial:t,animate:a}=WC(n,ee.useContext(Ql));return ee.useMemo(()=>({initial:t,animate:a}),[qv(t),qv(a)])}function qv(n){return Array.isArray(n)?n.join(" "):n}const Nh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function X1(n,t,a){for(const r in t)!mt(t[r])&&!N1(r,a)&&(n[r]=t[r])}function tM({transformTemplate:n},t){return ee.useMemo(()=>{const a=Nh();return Eh(a,t,n),Object.assign({},a.vars,a.style)},[t])}function nM(n,t){const a=n.style||{},r={};return X1(r,a,n),Object.assign(r,tM(n,t)),r}function iM(n,t){const a={},r=nM(n,t);return n.drag&&n.dragListener!==!1&&(a.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(a.tabIndex=0),a.style=r,a}const $1=()=>({...Nh(),attrs:{}});function aM(n,t,a,r){const l=ee.useMemo(()=>{const c=$1();return D1(c,t,C1(r),n.transformTemplate,n.style),{...c.attrs,style:{...c.style}}},[t]);if(n.style){const c={};X1(c,n.style,n),l.style={...c,...l.style}}return l}const sM=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Dh(n){return typeof n!="string"||n.includes("-")?!1:!!(sM.indexOf(n)>-1||/[A-Z]/u.test(n))}function rM(n,t,a,{latestValues:r},l,c=!1,f){const m=(f??Dh(n)?aM:iM)(t,r,l,n),p=JC(t,typeof n=="string",c),v=n!==ee.Fragment?{...p,...m,ref:a}:{},{children:x}=t,S=ee.useMemo(()=>mt(x)?x.get():x,[x]);return ee.createElement(n,{...v,children:S})}function oM({scrapeMotionValuesFromProps:n,createRenderState:t},a,r,l){return{latestValues:lM(a,r,l,n),renderState:t()}}function lM(n,t,a,r){const l={},c=r(n,{});for(const S in c)l[S]=gl(c[S]);let{initial:f,animate:h}=n;const m=$l(n),p=v1(n);t&&p&&!m&&n.inherit!==!1&&(f===void 0&&(f=t.initial),h===void 0&&(h=t.animate));let v=a?a.initial===!1:!1;v=v||f===!1;const x=v?h:f;if(x&&typeof x!="boolean"&&!Xl(x)){const S=Array.isArray(x)?x:[x];for(let w=0;w<S.length;w++){const T=yh(n,S[w]);if(T){const{transitionEnd:k,transition:z,...B}=T;for(const q in B){let P=B[q];if(Array.isArray(P)){const F=v?P.length-1:0;P=P[F]}P!==null&&(l[q]=P)}for(const q in k)l[q]=k[q]}}}return l}const Q1=n=>(t,a)=>{const r=ee.useContext(Ql),l=ee.useContext(nh),c=()=>oM(n,t,r,l);return a?c():sD(c)},cM=Q1({scrapeMotionValuesFromProps:Ah,createRenderState:Nh}),uM=Q1({scrapeMotionValuesFromProps:M1,createRenderState:$1}),fM=Symbol.for("motionComponentSymbol");function dM(n,t,a){const r=ee.useRef(a);ee.useInsertionEffect(()=>{r.current=a});const l=ee.useRef(null);return ee.useCallback(c=>{var h;c&&((h=n.onMount)==null||h.call(n,c));const f=r.current;if(typeof f=="function")if(c){const m=f(c);typeof m=="function"&&(l.current=m)}else l.current?(l.current(),l.current=null):f(c);else f&&(f.current=c);t&&(c?t.mount(c):t.unmount())},[t])}const Z1=ee.createContext({});function Ia(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function hM(n,t,a,r,l,c){var P,F;const{visualElement:f}=ee.useContext(Ql),h=ee.useContext(G1),m=ee.useContext(nh),p=ee.useContext(F1),v=p.reducedMotion,x=p.skipAnimations,S=ee.useRef(null),w=ee.useRef(!1);r=r||h.renderer,!S.current&&r&&(S.current=r(n,{visualState:t,parent:f,props:a,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:v,skipAnimations:x,isSVG:c}),w.current&&S.current&&(S.current.manuallyAnimateOnMount=!0));const T=S.current,k=ee.useContext(Z1);T&&!T.projection&&l&&(T.type==="html"||T.type==="svg")&&mM(S.current,a,l,k);const z=ee.useRef(!1);ee.useInsertionEffect(()=>{T&&z.current&&T.update(a,m)});const B=a[s1],q=ee.useRef(!!B&&typeof window<"u"&&!((P=window.MotionHandoffIsComplete)!=null&&P.call(window,B))&&((F=window.MotionHasOptimisedAnimation)==null?void 0:F.call(window,B)));return oD(()=>{w.current=!0,T&&(z.current=!0,window.MotionIsMounted=!0,T.updateFeatures(),T.scheduleRenderMicrotask(),q.current&&T.animationState&&T.animationState.animateChanges())}),ee.useEffect(()=>{T&&(!q.current&&T.animationState&&T.animationState.animateChanges(),q.current&&(queueMicrotask(()=>{var X;(X=window.MotionHandoffMarkAsComplete)==null||X.call(window,B)}),q.current=!1),T.enteringChildren=void 0)}),T}function mM(n,t,a,r){const{layoutId:l,layout:c,drag:f,dragConstraints:h,layoutScroll:m,layoutRoot:p,layoutAnchor:v,layoutCrossfade:x}=t;n.projection=new a(n.latestValues,t["data-framer-portal-id"]?void 0:J1(n.parent)),n.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!f||h&&Ia(h),visualElement:n,animationType:typeof c=="string"?c:"both",initialPromotionConfig:r,crossfade:x,layoutScroll:m,layoutRoot:p,layoutAnchor:v})}function J1(n){if(n)return n.options.allowProjection!==!1?n.projection:J1(n.parent)}function Ff(n,{forwardMotionProps:t=!1,type:a}={},r,l){r&&$C(r);const c=a?a==="svg":Dh(n),f=c?uM:cM;function h(p,v){let x;const S={...ee.useContext(F1),...p,layoutId:pM(p)},{isStatic:w}=S,T=eM(p),k=f(p,w);if(!w&&typeof window<"u"){gM();const z=yM(S);x=z.MeasureLayout,T.visualElement=hM(n,k,S,l,z.ProjectionNode,c)}return g.jsxs(Ql.Provider,{value:T,children:[x&&T.visualElement?g.jsx(x,{visualElement:T.visualElement,...S}):null,rM(n,p,dM(k,T.visualElement,v),k,w,t,c)]})}h.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const m=ee.forwardRef(h);return m[fM]=n,m}function pM({layoutId:n}){const t=ee.useContext(yb).id;return t&&n!==void 0?t+"-"+n:n}function gM(n,t){ee.useContext(G1).strict}function yM(n){const t=Y1(),{drag:a,layout:r}=t;if(!a&&!r)return{};const l={...a,...r};return{MeasureLayout:a!=null&&a.isEnabled(n)||r!=null&&r.isEnabled(n)?l.MeasureLayout:void 0,ProjectionNode:l.ProjectionNode}}function vM(n,t){if(typeof Proxy>"u")return Ff;const a=new Map,r=(c,f)=>Ff(c,f,n,t),l=(c,f)=>r(c,f);return new Proxy(l,{get:(c,f)=>f==="create"?r:(a.has(f)||a.set(f,Ff(f,void 0,n,t)),a.get(f))})}const xM=(n,t)=>t.isSVG??Dh(n)?new eC(t):new X5(t,{allowProjection:n!==ee.Fragment});class bM extends wi{constructor(t){super(t),t.animationState||(t.animationState=sC(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Xl(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:a}=this.node.prevProps||{};t!==a&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let SM=0;class wM extends wi{constructor(){super(...arguments),this.id=SM++,this.isExitComplete=!1}update(){var c;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:a}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:f,custom:h}=this.node.getProps();if(typeof f=="string"){const m=Qi(this.node,f,h);if(m){const{transition:p,transitionEnd:v,...x}=m;for(const S in x)(c=this.node.getValue(S))==null||c.jump(x[S])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const l=this.node.animationState.setActive("exit",!t);a&&!t&&l.then(()=>{this.isExitComplete=!0,a(this.id)})}mount(){const{register:t,onExitComplete:a}=this.node.presenceContext||{};a&&a(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const _M={animation:{Feature:bM},exit:{Feature:wM}};function Or(n){return{point:{x:n.pageX,y:n.pageY}}}const TM=n=>t=>Sh(t)&&n(t,Or(t));function dr(n,t,a,r){return wr(n,t,TM(a),r)}const W1=({current:n})=>n?n.ownerDocument.defaultView:null,Iv=(n,t)=>Math.abs(n-t);function EM(n,t){const a=Iv(n.x,t.x),r=Iv(n.y,t.y);return Math.sqrt(a**2+r**2)}const Fv=new Set(["auto","scroll"]);class eS{constructor(t,a,{transformPagePoint:r,contextWindow:l=window,dragSnapToOrigin:c=!1,distanceThreshold:f=3,element:h}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=w=>{this.handleScroll(w.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=il(this.lastRawMoveEventInfo,this.transformPagePoint));const w=Gf(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,k=EM(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!T&&!k)return;const{point:z}=w,{timestamp:B}=ht;this.history.push({...z,timestamp:B});const{onStart:q,onMove:P}=this.handlers;T||(q&&q(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),P&&P(this.lastMoveEvent,w)},this.handlePointerMove=(w,T)=>{this.lastMoveEvent=w,this.lastRawMoveEventInfo=T,this.lastMoveEventInfo=il(T,this.transformPagePoint),Ve.update(this.updatePoint,!0)},this.handlePointerUp=(w,T)=>{this.end();const{onEnd:k,onSessionEnd:z,resumeAnimation:B}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&B&&B(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const q=Gf(w.type==="pointercancel"?this.lastMoveEventInfo:il(T,this.transformPagePoint),this.history);this.startEvent&&k&&k(w,q),z&&z(w,q)},!Sh(t))return;this.dragSnapToOrigin=c,this.handlers=a,this.transformPagePoint=r,this.distanceThreshold=f,this.contextWindow=l||window;const m=Or(t),p=il(m,this.transformPagePoint),{point:v}=p,{timestamp:x}=ht;this.history=[{...v,timestamp:x}];const{onSessionStart:S}=a;S&&S(t,Gf(p,this.history)),this.removeListeners=jr(dr(this.contextWindow,"pointermove",this.handlePointerMove),dr(this.contextWindow,"pointerup",this.handlePointerUp),dr(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(t){let a=t.parentElement;for(;a;){const r=getComputedStyle(a);(Fv.has(r.overflowX)||Fv.has(r.overflowY))&&this.scrollPositions.set(a,{x:a.scrollLeft,y:a.scrollTop}),a=a.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const a=this.scrollPositions.get(t);if(!a)return;const r=t===window,l=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},c={x:l.x-a.x,y:l.y-a.y};c.x===0&&c.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=c.x,this.lastMoveEventInfo.point.y+=c.y):this.history.length>0&&(this.history[0].x-=c.x,this.history[0].y-=c.y),this.scrollPositions.set(t,l),Ve.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),bi(this.updatePoint)}}function il(n,t){return t?{point:t(n.point)}:n}function Gv(n,t){return{x:n.x-t.x,y:n.y-t.y}}function Gf({point:n},t){return{point:n,delta:Gv(n,tS(t)),offset:Gv(n,AM(t)),velocity:NM(t,.1)}}function AM(n){return n[0]}function tS(n){return n[n.length-1]}function NM(n,t){if(n.length<2)return{x:0,y:0};let a=n.length-1,r=null;const l=tS(n);for(;a>=0&&(r=n[a],!(l.timestamp-r.timestamp>Ht(t)));)a--;if(!r)return{x:0,y:0};r===n[0]&&n.length>2&&l.timestamp-r.timestamp>Ht(t)*2&&(r=n[1]);const c=Zt(l.timestamp-r.timestamp);if(c===0)return{x:0,y:0};const f={x:(l.x-r.x)/c,y:(l.y-r.y)/c};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function DM(n,{min:t,max:a},r){return t!==void 0&&n<t?n=r?He(t,n,r.min):Math.max(n,t):a!==void 0&&n>a&&(n=r?He(a,n,r.max):Math.min(n,a)),n}function Yv(n,t,a){return{min:t!==void 0?n.min+t:void 0,max:a!==void 0?n.max+a-(n.max-n.min):void 0}}function jM(n,{top:t,left:a,bottom:r,right:l}){return{x:Yv(n.x,a,l),y:Yv(n.y,t,r)}}function Kv(n,t){let a=t.min-n.min,r=t.max-n.max;return t.max-t.min<n.max-n.min&&([a,r]=[r,a]),{min:a,max:r}}function CM(n,t){return{x:Kv(n.x,t.x),y:Kv(n.y,t.y)}}function MM(n,t){let a=.5;const r=St(n),l=St(t);return l>r?a=xr(t.min,t.max-r,n.min):r>l&&(a=xr(n.min,n.max-l,t.min)),yn(0,1,a)}function OM(n,t){const a={};return t.min!==void 0&&(a.min=t.min-n.min),t.max!==void 0&&(a.max=t.max-n.min),a}const Vd=.35;function RM(n=Vd){return n===!1?n=0:n===!0&&(n=Vd),{x:Xv(n,"left","right"),y:Xv(n,"top","bottom")}}function Xv(n,t,a){return{min:$v(n,t),max:$v(n,a)}}function $v(n,t){return typeof n=="number"?n:n[t]||0}const kM=new WeakMap;class LM{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=st(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:a=!1,distanceThreshold:r}={}){const{presenceContext:l}=this.visualElement;if(l&&l.isPresent===!1)return;const c=x=>{a&&this.snapToCursor(Or(x).point),this.stopAnimation()},f=(x,S)=>{const{drag:w,dragPropagation:T,onDragStart:k}=this.getProps();if(w&&!T&&(this.openDragLock&&this.openDragLock(),this.openDragLock=h5(w),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=S,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),dn(B=>{let q=this.getAxisMotionValue(B).get()||0;if(pn.test(q)){const{projection:P}=this.visualElement;if(P&&P.layout){const F=P.layout.layoutBox[B];F&&(q=St(F)*(parseFloat(q)/100))}}this.originPoint[B]=q}),k&&Ve.update(()=>k(x,S),!1,!0),Dd(this.visualElement,"transform");const{animationState:z}=this.visualElement;z&&z.setActive("whileDrag",!0)},h=(x,S)=>{this.latestPointerEvent=x,this.latestPanInfo=S;const{dragPropagation:w,dragDirectionLock:T,onDirectionLock:k,onDrag:z}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:B}=S;if(T&&this.currentDirection===null){this.currentDirection=VM(B),this.currentDirection!==null&&k&&k(this.currentDirection);return}this.updateAxis("x",S.point,B),this.updateAxis("y",S.point,B),this.visualElement.render(),z&&Ve.update(()=>z(x,S),!1,!0)},m=(x,S)=>{this.latestPointerEvent=x,this.latestPanInfo=S,this.stop(x,S),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:x}=this.getProps();(x||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:v}=this.getProps();this.panSession=new eS(t,{onSessionStart:c,onStart:f,onMove:h,onSessionEnd:m,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:r,contextWindow:W1(this.visualElement),element:this.visualElement.current})}stop(t,a){const r=t||this.latestPointerEvent,l=a||this.latestPanInfo,c=this.isDragging;if(this.cancel(),!c||!l||!r)return;const{velocity:f}=l;this.startAnimation(f);const{onDragEnd:h}=this.getProps();h&&Ve.postRender(()=>h(r,l))}cancel(){this.isDragging=!1;const{projection:t,animationState:a}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,a,r){const{drag:l}=this.getProps();if(!r||!al(t,l,this.currentDirection))return;const c=this.getAxisMotionValue(t);let f=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(f=DM(f,this.constraints[t],this.elastic[t])),c.set(f)}resolveConstraints(){var c;const{dragConstraints:t,dragElastic:a}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(c=this.visualElement.projection)==null?void 0:c.layout,l=this.constraints;t&&Ia(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=jM(r.layoutBox,t):this.constraints=!1,this.elastic=RM(a),l!==this.constraints&&!Ia(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&dn(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=OM(r.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:a}=this.getProps();if(!t||!Ia(t))return!1;const r=t.current,{projection:l}=this.visualElement;if(!l||!l.layout)return!1;const c=q5(r,l.root,this.visualElement.getTransformPagePoint());let f=CM(l.layout.layoutBox,c);if(a){const h=a(U5(f));this.hasMutatedConstraints=!!h,h&&(f=w1(h))}return f}startAnimation(t){const{drag:a,dragMomentum:r,dragElastic:l,dragTransition:c,dragSnapToOrigin:f,onDragTransitionEnd:h}=this.getProps(),m=this.constraints||{},p=dn(v=>{if(!al(v,a,this.currentDirection))return;let x=m&&m[v]||{};(f===!0||f===v)&&(x={min:0,max:0});const S=l?200:1e6,w=l?40:1e7,T={type:"inertia",velocity:r?t[v]:0,bounceStiffness:S,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...c,...x};return this.startAxisValueAnimation(v,T)});return Promise.all(p).then(h)}startAxisValueAnimation(t,a){const r=this.getAxisMotionValue(t);return Dd(this.visualElement,t),r.start(gh(t,r,0,a,this.visualElement,!1))}stopAnimation(){dn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const a=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),l=r[a];return l||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){dn(a=>{const{drag:r}=this.getProps();if(!al(a,r,this.currentDirection))return;const{projection:l}=this.visualElement,c=this.getAxisMotionValue(a);if(l&&l.layout){const{min:f,max:h}=l.layout.layoutBox[a],m=c.get()||0;c.set(t[a]-He(f,h,.5)+m)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:a}=this.getProps(),{projection:r}=this.visualElement;if(!Ia(a)||!r||!this.constraints)return;this.stopAnimation();const l={x:0,y:0};dn(f=>{const h=this.getAxisMotionValue(f);if(h&&this.constraints!==!1){const m=h.get();l[f]=MM({min:m,max:m},this.constraints[f])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),dn(f=>{if(!al(f,t,null))return;const h=this.getAxisMotionValue(f),{min:m,max:p}=this.constraints[f];h.set(He(m,p,l[f]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;kM.set(this.visualElement,this);const t=this.visualElement.current,a=dr(t,"pointerdown",p=>{const{drag:v,dragListener:x=!0}=this.getProps(),S=p.target,w=S!==t&&x5(S);v&&x&&!w&&this.start(p)});let r;const l=()=>{const{dragConstraints:p}=this.getProps();Ia(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),r||(r=zM(t,p.current,()=>this.scalePositionWithinConstraints())))},{projection:c}=this.visualElement,f=c.addEventListener("measure",l);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),Ve.read(l);const h=wr(window,"resize",()=>this.scalePositionWithinConstraints()),m=c.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:v})=>{this.isDragging&&v&&(dn(x=>{const S=this.getAxisMotionValue(x);S&&(this.originPoint[x]+=p[x].translate,S.set(S.get()+p[x].translate))}),this.visualElement.render())}));return()=>{h(),a(),f(),m&&m(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:r=!1,dragPropagation:l=!1,dragConstraints:c=!1,dragElastic:f=Vd,dragMomentum:h=!0}=t;return{...t,drag:a,dragDirectionLock:r,dragPropagation:l,dragConstraints:c,dragElastic:f,dragMomentum:h}}}function Qv(n){let t=!0;return()=>{if(t){t=!1;return}n()}}function zM(n,t,a){const r=sv(n,Qv(a)),l=sv(t,Qv(a));return()=>{r(),l()}}function al(n,t,a){return(t===!0||t===n)&&(a===null||a===n)}function VM(n,t=10){let a=null;return Math.abs(n.y)>t?a="y":Math.abs(n.x)>t&&(a="x"),a}class BM extends wi{constructor(t){super(t),this.removeGroupControls=Wt,this.removeListeners=Wt,this.controls=new LM(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Wt}update(){const{dragControls:t}=this.node.getProps(),{dragControls:a}=this.node.prevProps||{};t!==a&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Yf=n=>(t,a)=>{n&&Ve.update(()=>n(t,a),!1,!0)};class UM extends wi{constructor(){super(...arguments),this.removePointerDownListener=Wt}onPointerDown(t){this.session=new eS(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:W1(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:a,onPan:r,onPanEnd:l}=this.node.getProps();return{onSessionStart:Yf(t),onStart:Yf(a),onMove:Yf(r),onEnd:(c,f)=>{delete this.session,l&&Ve.postRender(()=>l(c,f))}}}mount(){this.removePointerDownListener=dr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Kf=!1;class HM extends ee.Component{componentDidMount(){const{visualElement:t,layoutGroup:a,switchLayoutGroup:r,layoutId:l}=this.props,{projection:c}=t;c&&(a.group&&a.group.add(c),r&&r.register&&l&&r.register(c),Kf&&c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),yl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:a,visualElement:r,drag:l,isPresent:c}=this.props,{projection:f}=r;return f&&(f.isPresent=c,t.layoutDependency!==a&&f.setOptions({...f.options,layoutDependency:a}),Kf=!0,l||t.layoutDependency!==a||a===void 0||t.isPresent!==c?f.willUpdate():this.safeToRemove(),t.isPresent!==c&&(c?f.promote():f.relegate()||Ve.postRender(()=>{const h=f.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:a}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=a,r.root.didUpdate(),bh.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:a,switchLayoutGroup:r}=this.props,{projection:l}=t;Kf=!0,l&&(l.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(l),r&&r.deregister&&r.deregister(l))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nS(n){const[t,a]=KC(),r=ee.useContext(yb);return g.jsx(HM,{...n,layoutGroup:r,switchLayoutGroup:ee.useContext(Z1),isPresent:t,safeToRemove:a})}const PM={pan:{Feature:UM},drag:{Feature:BM,ProjectionNode:I1,MeasureLayout:nS}};function Zv(n,t,a){const{props:r}=n;n.animationState&&r.whileHover&&n.animationState.setActive("whileHover",a==="Start");const l="onHover"+a,c=r[l];c&&Ve.postRender(()=>c(t,Or(t)))}class qM extends wi{mount(){const{current:t}=this.node;t&&(this.unmount=p5(t,(a,r)=>(Zv(this.node,r,"Start"),l=>Zv(this.node,l,"End"))))}unmount(){}}class IM extends wi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=jr(wr(this.node.current,"focus",()=>this.onFocus()),wr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Jv(n,t,a){const{props:r}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&r.whileTap&&n.animationState.setActive("whileTap",a==="Start");const l="onTap"+(a==="End"?"":a),c=r[l];c&&Ve.postRender(()=>c(t,Or(t)))}class FM extends wi{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:a,propagate:r}=this.node.props;this.unmount=S5(t,(l,c)=>(Jv(this.node,c,"Start"),(f,{success:h})=>Jv(this.node,f,h?"End":"Cancel")),{useGlobalTarget:a,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const Bd=new WeakMap,Xf=new WeakMap,GM=n=>{const t=Bd.get(n.target);t&&t(n)},YM=n=>{n.forEach(GM)};function KM({root:n,...t}){const a=n||document;Xf.has(a)||Xf.set(a,{});const r=Xf.get(a),l=JSON.stringify(t);return r[l]||(r[l]=new IntersectionObserver(YM,{root:n,...t})),r[l]}function XM(n,t,a){const r=KM(t);return Bd.set(n,a),r.observe(n),()=>{Bd.delete(n),r.unobserve(n)}}const $M={some:0,all:1};class QM extends wi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var m;(m=this.stopObserver)==null||m.call(this);const{viewport:t={}}=this.node.getProps(),{root:a,margin:r,amount:l="some",once:c}=t,f={root:a?a.current:void 0,rootMargin:r,threshold:typeof l=="number"?l:$M[l]},h=p=>{const{isIntersecting:v}=p;if(this.isInView===v||(this.isInView=v,c&&!v&&this.hasEnteredView))return;v&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",v);const{onViewportEnter:x,onViewportLeave:S}=this.node.getProps(),w=v?x:S;w&&w(p)};this.stopObserver=XM(this.node.current,f,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:a}=this.node;["amount","margin","root"].some(ZM(t,a))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function ZM({viewport:n={}},{viewport:t={}}={}){return a=>n[a]!==t[a]}const JM={inView:{Feature:QM},tap:{Feature:FM},focus:{Feature:IM},hover:{Feature:qM}},WM={layout:{ProjectionNode:I1,MeasureLayout:nS}},e3={..._M,...JM,...PM,...WM},Ka=vM(e3,xM);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const t3=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),n3=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,r)=>r?r.toUpperCase():a.toLowerCase()),Wv=n=>{const t=n3(n);return t.charAt(0).toUpperCase()+t.slice(1)},iS=(...n)=>n.filter((t,a,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===a).join(" ").trim(),i3=n=>{for(const t in n)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/var a3={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const s3=ee.forwardRef(({color:n="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:r,className:l="",children:c,iconNode:f,...h},m)=>ee.createElement("svg",{ref:m,...a3,width:t,height:t,stroke:n,strokeWidth:r?Number(a)*24/Number(t):a,className:iS("lucide",l),...!c&&!i3(h)&&{"aria-hidden":"true"},...h},[...f.map(([p,v])=>ee.createElement(p,v)),...Array.isArray(c)?c:[c]]));/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const we=(n,t)=>{const a=ee.forwardRef(({className:r,...l},c)=>ee.createElement(s3,{ref:c,iconNode:t,className:iS(`lucide-${t3(Wv(n))}`,`lucide-${n}`,r),...l}));return a.displayName=Wv(n),a};/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const r3=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],o3=we("activity",r3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const l3=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Wi=we("arrow-right",l3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const c3=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],u3=we("bell",c3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const f3=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],d3=we("brain",f3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const h3=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],m3=we("building-2",h3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const p3=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],jh=we("chart-column",p3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const g3=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],y3=we("chart-line",g3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const v3=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ud=we("check",v3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const x3=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],b3=we("chevron-down",x3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const S3=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],w3=we("clock",S3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const _3=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],aS=we("cpu",_3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const T3=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],E3=we("database",T3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const A3=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],sS=we("external-link",A3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const N3=[["path",{d:"M14 13h2a2 2 0 0 1 2 2v2a2 2 0 0 0 4 0v-6.998a2 2 0 0 0-.59-1.42L18 5",key:"1wtuz0"}],["path",{d:"M14 21V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v16",key:"e09ifn"}],["path",{d:"M2 21h13",key:"1x0fut"}],["path",{d:"M3 9h11",key:"1p7c0w"}]],D3=we("fuel",N3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const j3=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],C3=we("funnel",j3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const M3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Ol=we("globe",M3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const O3=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],R3=we("key",O3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const k3=[["path",{d:"M10 18v-7",key:"wt116b"}],["path",{d:"M11.12 2.198a2 2 0 0 1 1.76.006l7.866 3.847c.476.233.31.949-.22.949H3.474c-.53 0-.695-.716-.22-.949z",key:"1m329m"}],["path",{d:"M14 18v-7",key:"vav6t3"}],["path",{d:"M18 18v-7",key:"aexdmj"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M6 18v-7",key:"1ivflk"}]],L3=we("landmark",k3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const z3=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],rS=we("layers",z3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const V3=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],B3=we("lock",V3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const U3=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],H3=we("mail",U3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const P3=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],q3=we("message-square",P3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const I3=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}]],oS=we("panel-top",I3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const F3=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]],Zl=we("plug",F3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const G3=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Y3=we("search",G3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const K3=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],X3=we("send",K3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const $3=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],Q3=we("server",$3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Z3=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],Ch=we("shield-alert",Z3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const J3=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],W3=we("sliders-horizontal",J3);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const eO=[["path",{d:"m10.065 12.493-6.18 1.318a.934.934 0 0 1-1.108-.702l-.537-2.15a1.07 1.07 0 0 1 .691-1.265l13.504-4.44",key:"k4qptu"}],["path",{d:"m13.56 11.747 4.332-.924",key:"19l80z"}],["path",{d:"m16 21-3.105-6.21",key:"7oh9d"}],["path",{d:"M16.485 5.94a2 2 0 0 1 1.455-2.425l1.09-.272a1 1 0 0 1 1.212.727l1.515 6.06a1 1 0 0 1-.727 1.213l-1.09.272a2 2 0 0 1-2.425-1.455z",key:"m7xp4m"}],["path",{d:"m6.158 8.633 1.114 4.456",key:"74o979"}],["path",{d:"m8 21 3.105-6.21",key:"1fvxut"}],["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}]],lS=we("telescope",eO);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const tO=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],nO=we("terminal",tO);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const iO=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],cS=we("trending-up",iO);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const aO=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],sO=we("zap",aO),rO="modulepreload",oO=function(n){return"/pro/"+n},ex={},Ie=function(t,a,r){let l=Promise.resolve();if(a&&a.length>0){let f=function(p){return Promise.all(p.map(v=>Promise.resolve(v).then(x=>({status:"fulfilled",value:x}),x=>({status:"rejected",reason:x}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),m=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));l=f(a.map(p=>{if(p=oO(p),p in ex)return;ex[p]=!0;const v=p.endsWith(".css"),x=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${x}`))return;const S=document.createElement("link");if(S.rel=v?"stylesheet":rO,v||(S.as="script"),S.crossOrigin="",S.href=p,m&&S.setAttribute("nonce",m),document.head.appendChild(S),v)return new Promise((w,T)=>{S.addEventListener("load",w),S.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${p}`)))})}))}function c(f){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=f,window.dispatchEvent(h),!h.defaultPrevented)throw f}return l.then(f=>{for(const h of f||[])h.status==="rejected"&&c(h.reason);return t().catch(c)})};var $f={};const re=n=>typeof n=="string",sr=()=>{let n,t;const a=new Promise((r,l)=>{n=r,t=l});return a.resolve=n,a.reject=t,a},tx=n=>n==null?"":""+n,lO=(n,t,a)=>{n.forEach(r=>{t[r]&&(a[r]=t[r])})},cO=/###/g,nx=n=>n&&n.indexOf("###")>-1?n.replace(cO,"."):n,ix=n=>!n||re(n),hr=(n,t,a)=>{const r=re(t)?t.split("."):t;let l=0;for(;l<r.length-1;){if(ix(n))return{};const c=nx(r[l]);!n[c]&&a&&(n[c]=new a),Object.prototype.hasOwnProperty.call(n,c)?n=n[c]:n={},++l}return ix(n)?{}:{obj:n,k:nx(r[l])}},ax=(n,t,a)=>{const{obj:r,k:l}=hr(n,t,Object);if(r!==void 0||t.length===1){r[l]=a;return}let c=t[t.length-1],f=t.slice(0,t.length-1),h=hr(n,f,Object);for(;h.obj===void 0&&f.length;)c=`${f[f.length-1]}.${c}`,f=f.slice(0,f.length-1),h=hr(n,f,Object),h!=null&&h.obj&&typeof h.obj[`${h.k}.${c}`]<"u"&&(h.obj=void 0);h.obj[`${h.k}.${c}`]=a},uO=(n,t,a,r)=>{const{obj:l,k:c}=hr(n,t,Object);l[c]=l[c]||[],l[c].push(a)},Rl=(n,t)=>{const{obj:a,k:r}=hr(n,t);if(a&&Object.prototype.hasOwnProperty.call(a,r))return a[r]},fO=(n,t,a)=>{const r=Rl(n,a);return r!==void 0?r:Rl(t,a)},uS=(n,t,a)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in n?re(n[r])||n[r]instanceof String||re(t[r])||t[r]instanceof String?a&&(n[r]=t[r]):uS(n[r],t[r],a):n[r]=t[r]);return n},Ii=n=>n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var dO={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const hO=n=>re(n)?n.replace(/[&<>"'\/]/g,t=>dO[t]):n;class mO{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const a=this.regExpMap.get(t);if(a!==void 0)return a;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const pO=[" ",",","?","!",";"],gO=new mO(20),yO=(n,t,a)=>{t=t||"",a=a||"";const r=pO.filter(f=>t.indexOf(f)<0&&a.indexOf(f)<0);if(r.length===0)return!0;const l=gO.getRegExp(`(${r.map(f=>f==="?"?"\\?":f).join("|")})`);let c=!l.test(n);if(!c){const f=n.indexOf(a);f>0&&!l.test(n.substring(0,f))&&(c=!0)}return c},Hd=(n,t,a=".")=>{if(!n)return;if(n[t])return Object.prototype.hasOwnProperty.call(n,t)?n[t]:void 0;const r=t.split(a);let l=n;for(let c=0;c<r.length;){if(!l||typeof l!="object")return;let f,h="";for(let m=c;m<r.length;++m)if(m!==c&&(h+=a),h+=r[m],f=l[h],f!==void 0){if(["string","number","boolean"].indexOf(typeof f)>-1&&m<r.length-1)continue;c+=m-c+1;break}l=f}return l},_r=n=>n==null?void 0:n.replace(/_/g,"-"),vO={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,t){var a,r;(r=(a=console==null?void 0:console[n])==null?void 0:a.apply)==null||r.call(a,console,t)}};class kl{constructor(t,a={}){this.init(t,a)}init(t,a={}){this.prefix=a.prefix||"i18next:",this.logger=t||vO,this.options=a,this.debug=a.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,a,r,l){return l&&!this.debug?null:(re(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[a](t))}create(t){return new kl(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new kl(this.logger,t)}}var mn=new kl;class Jl{constructor(){this.observers={}}on(t,a){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const l=this.observers[r].get(a)||0;this.observers[r].set(a,l+1)}),this}off(t,a){if(this.observers[t]){if(!a){delete this.observers[t];return}this.observers[t].delete(a)}}emit(t,...a){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([l,c])=>{for(let f=0;f<c;f++)l(...a)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([l,c])=>{for(let f=0;f<c;f++)l.apply(l,[t,...a])})}}class sx extends Jl{constructor(t,a={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const a=this.options.ns.indexOf(t);a>-1&&this.options.ns.splice(a,1)}getResource(t,a,r,l={}){var p,v;const c=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,f=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure;let h;t.indexOf(".")>-1?h=t.split("."):(h=[t,a],r&&(Array.isArray(r)?h.push(...r):re(r)&&c?h.push(...r.split(c)):h.push(r)));const m=Rl(this.data,h);return!m&&!a&&!r&&t.indexOf(".")>-1&&(t=h[0],a=h[1],r=h.slice(2).join(".")),m||!f||!re(r)?m:Hd((v=(p=this.data)==null?void 0:p[t])==null?void 0:v[a],r,c)}addResource(t,a,r,l,c={silent:!1}){const f=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator;let h=[t,a];r&&(h=h.concat(f?r.split(f):r)),t.indexOf(".")>-1&&(h=t.split("."),l=a,a=h[1]),this.addNamespaces(a),ax(this.data,h,l),c.silent||this.emit("added",t,a,r,l)}addResources(t,a,r,l={silent:!1}){for(const c in r)(re(r[c])||Array.isArray(r[c]))&&this.addResource(t,a,c,r[c],{silent:!0});l.silent||this.emit("added",t,a,r)}addResourceBundle(t,a,r,l,c,f={silent:!1,skipCopy:!1}){let h=[t,a];t.indexOf(".")>-1&&(h=t.split("."),l=r,r=a,a=h[1]),this.addNamespaces(a);let m=Rl(this.data,h)||{};f.skipCopy||(r=JSON.parse(JSON.stringify(r))),l?uS(m,r,c):m={...m,...r},ax(this.data,h,m),f.silent||this.emit("added",t,a,r)}removeResourceBundle(t,a){this.hasResourceBundle(t,a)&&delete this.data[t][a],this.removeNamespaces(a),this.emit("removed",t,a)}hasResourceBundle(t,a){return this.getResource(t,a)!==void 0}getResourceBundle(t,a){return a||(a=this.options.defaultNS),this.getResource(t,a)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const a=this.getDataByLanguage(t);return!!(a&&Object.keys(a)||[]).find(l=>a[l]&&Object.keys(a[l]).length>0)}toJSON(){return this.data}}var fS={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,t,a,r,l){return n.forEach(c=>{var f;t=((f=this.processors[c])==null?void 0:f.process(t,a,r,l))??t}),t}};const dS=Symbol("i18next/PATH_KEY");function xO(){const n=[],t=Object.create(null);let a;return t.get=(r,l)=>{var c;return(c=a==null?void 0:a.revoke)==null||c.call(a),l===dS?n:(n.push(l),a=Proxy.revocable(r,t),a.proxy)},Proxy.revocable(Object.create(null),t).proxy}function Xa(n,t){const{[dS]:a}=n(xO()),r=(t==null?void 0:t.keySeparator)??".",l=(t==null?void 0:t.nsSeparator)??":";if(a.length>1&&l){const c=t==null?void 0:t.ns,f=Array.isArray(c)?c:null;if(f&&f.length>1&&f.slice(1).includes(a[0]))return`${a[0]}${l}${a.slice(1).join(r)}`}return a.join(r)}const rx={},Qf=n=>!re(n)&&typeof n!="boolean"&&typeof n!="number";class Ll extends Jl{constructor(t,a={}){super(),lO(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=mn.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,a={interpolation:{}}){const r={...a};if(t==null)return!1;const l=this.resolve(t,r);if((l==null?void 0:l.res)===void 0)return!1;const c=Qf(l.res);return!(r.returnObjects===!1&&c)}extractFromKey(t,a){let r=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let c=a.ns||this.options.defaultNS||[];const f=r&&t.indexOf(r)>-1,h=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!yO(t,r,l);if(f&&!h){const m=t.match(this.interpolator.nestingRegexp);if(m&&m.length>0)return{key:t,namespaces:re(c)?[c]:c};const p=t.split(r);(r!==l||r===l&&this.options.ns.indexOf(p[0])>-1)&&(c=p.shift()),t=p.join(l)}return{key:t,namespaces:re(c)?[c]:c}}translate(t,a,r){let l=typeof a=="object"?{...a}:a;if(typeof l!="object"&&this.options.overloadTranslationOptionHandler&&(l=this.options.overloadTranslationOptionHandler(arguments)),typeof l=="object"&&(l={...l}),l||(l={}),t==null)return"";typeof t=="function"&&(t=Xa(t,{...this.options,...l})),Array.isArray(t)||(t=[String(t)]),t=t.map(De=>typeof De=="function"?Xa(De,{...this.options,...l}):String(De));const c=l.returnDetails!==void 0?l.returnDetails:this.options.returnDetails,f=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,{key:h,namespaces:m}=this.extractFromKey(t[t.length-1],l),p=m[m.length-1];let v=l.nsSeparator!==void 0?l.nsSeparator:this.options.nsSeparator;v===void 0&&(v=":");const x=l.lng||this.language,S=l.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((x==null?void 0:x.toLowerCase())==="cimode")return S?c?{res:`${p}${v}${h}`,usedKey:h,exactUsedKey:h,usedLng:x,usedNS:p,usedParams:this.getUsedParamsDetails(l)}:`${p}${v}${h}`:c?{res:h,usedKey:h,exactUsedKey:h,usedLng:x,usedNS:p,usedParams:this.getUsedParamsDetails(l)}:h;const w=this.resolve(t,l);let T=w==null?void 0:w.res;const k=(w==null?void 0:w.usedKey)||h,z=(w==null?void 0:w.exactUsedKey)||h,B=["[object Number]","[object Function]","[object RegExp]"],q=l.joinArrays!==void 0?l.joinArrays:this.options.joinArrays,P=!this.i18nFormat||this.i18nFormat.handleAsObject,F=l.count!==void 0&&!re(l.count),X=Ll.hasDefaultValue(l),he=F?this.pluralResolver.getSuffix(x,l.count,l):"",J=l.ordinal&&F?this.pluralResolver.getSuffix(x,l.count,{ordinal:!1}):"",te=F&&!l.ordinal&&l.count===0,ue=te&&l[`defaultValue${this.options.pluralSeparator}zero`]||l[`defaultValue${he}`]||l[`defaultValue${J}`]||l.defaultValue;let K=T;P&&!T&&X&&(K=ue);const Se=Qf(K),Ae=Object.prototype.toString.apply(K);if(P&&K&&Se&&B.indexOf(Ae)<0&&!(re(q)&&Array.isArray(K))){if(!l.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const De=this.options.returnedObjectHandler?this.options.returnedObjectHandler(k,K,{...l,ns:m}):`key '${h} (${this.language})' returned an object instead of string.`;return c?(w.res=De,w.usedParams=this.getUsedParamsDetails(l),w):De}if(f){const De=Array.isArray(K),_e=De?[]:{},Pe=De?z:k;for(const O in K)if(Object.prototype.hasOwnProperty.call(K,O)){const I=`${Pe}${f}${O}`;X&&!T?_e[O]=this.translate(I,{...l,defaultValue:Qf(ue)?ue[O]:void 0,joinArrays:!1,ns:m}):_e[O]=this.translate(I,{...l,joinArrays:!1,ns:m}),_e[O]===I&&(_e[O]=K[O])}T=_e}}else if(P&&re(q)&&Array.isArray(T))T=T.join(q),T&&(T=this.extendTranslation(T,t,l,r));else{let De=!1,_e=!1;!this.isValidLookup(T)&&X&&(De=!0,T=ue),this.isValidLookup(T)||(_e=!0,T=h);const O=(l.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&_e?void 0:T,I=X&&ue!==T&&this.options.updateMissing;if(_e||De||I){if(this.logger.log(I?"updateKey":"missingKey",x,p,h,I?ue:T),f){const A=this.resolve(h,{...l,keySeparator:!1});A&&A.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Y=[];const se=this.languageUtils.getFallbackCodes(this.options.fallbackLng,l.lng||this.language);if(this.options.saveMissingTo==="fallback"&&se&&se[0])for(let A=0;A<se.length;A++)Y.push(se[A]);else this.options.saveMissingTo==="all"?Y=this.languageUtils.toResolveHierarchy(l.lng||this.language):Y.push(l.lng||this.language);const me=(A,V,G)=>{var oe;const $=X&&G!==T?G:O;this.options.missingKeyHandler?this.options.missingKeyHandler(A,p,V,$,I,l):(oe=this.backendConnector)!=null&&oe.saveMissing&&this.backendConnector.saveMissing(A,p,V,$,I,l),this.emit("missingKey",A,p,V,T)};this.options.saveMissing&&(this.options.saveMissingPlurals&&F?Y.forEach(A=>{const V=this.pluralResolver.getSuffixes(A,l);te&&l[`defaultValue${this.options.pluralSeparator}zero`]&&V.indexOf(`${this.options.pluralSeparator}zero`)<0&&V.push(`${this.options.pluralSeparator}zero`),V.forEach(G=>{me([A],h+G,l[`defaultValue${G}`]||ue)})}):me(Y,h,ue))}T=this.extendTranslation(T,t,l,w,r),_e&&T===h&&this.options.appendNamespaceToMissingKey&&(T=`${p}${v}${h}`),(_e||De)&&this.options.parseMissingKeyHandler&&(T=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}${v}${h}`:h,De?T:void 0,l))}return c?(w.res=T,w.usedParams=this.getUsedParamsDetails(l),w):T}extendTranslation(t,a,r,l,c){var m,p;if((m=this.i18nFormat)!=null&&m.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||l.usedLng,l.usedNS,l.usedKey,{resolved:l});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const v=re(t)&&(((p=r==null?void 0:r.interpolation)==null?void 0:p.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let x;if(v){const w=t.match(this.interpolator.nestingRegexp);x=w&&w.length}let S=r.replace&&!re(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(S={...this.options.interpolation.defaultVariables,...S}),t=this.interpolator.interpolate(t,S,r.lng||this.language||l.usedLng,r),v){const w=t.match(this.interpolator.nestingRegexp),T=w&&w.length;x<T&&(r.nest=!1)}!r.lng&&l&&l.res&&(r.lng=this.language||l.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...w)=>(c==null?void 0:c[0])===w[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${w[0]} in key: ${a[0]}`),null):this.translate(...w,a),r)),r.interpolation&&this.interpolator.reset()}const f=r.postProcess||this.options.postProcess,h=re(f)?[f]:f;return t!=null&&(h!=null&&h.length)&&r.applyPostProcessor!==!1&&(t=fS.handle(h,t,a,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...l,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,a={}){let r,l,c,f,h;return re(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(m=>typeof m=="function"?Xa(m,{...this.options,...a}):m)),t.forEach(m=>{if(this.isValidLookup(r))return;const p=this.extractFromKey(m,a),v=p.key;l=v;let x=p.namespaces;this.options.fallbackNS&&(x=x.concat(this.options.fallbackNS));const S=a.count!==void 0&&!re(a.count),w=S&&!a.ordinal&&a.count===0,T=a.context!==void 0&&(re(a.context)||typeof a.context=="number")&&a.context!=="",k=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);x.forEach(z=>{var B,q;this.isValidLookup(r)||(h=z,!rx[`${k[0]}-${z}`]&&((B=this.utils)!=null&&B.hasLoadedNamespace)&&!((q=this.utils)!=null&&q.hasLoadedNamespace(h))&&(rx[`${k[0]}-${z}`]=!0,this.logger.warn(`key "${l}" for languages "${k.join(", ")}" won't get resolved as namespace "${h}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),k.forEach(P=>{var he;if(this.isValidLookup(r))return;f=P;const F=[v];if((he=this.i18nFormat)!=null&&he.addLookupKeys)this.i18nFormat.addLookupKeys(F,v,P,z,a);else{let J;S&&(J=this.pluralResolver.getSuffix(P,a.count,a));const te=`${this.options.pluralSeparator}zero`,ue=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(S&&(a.ordinal&&J.indexOf(ue)===0&&F.push(v+J.replace(ue,this.options.pluralSeparator)),F.push(v+J),w&&F.push(v+te)),T){const K=`${v}${this.options.contextSeparator||"_"}${a.context}`;F.push(K),S&&(a.ordinal&&J.indexOf(ue)===0&&F.push(K+J.replace(ue,this.options.pluralSeparator)),F.push(K+J),w&&F.push(K+te))}}let X;for(;X=F.pop();)this.isValidLookup(r)||(c=X,r=this.getResource(P,z,X,a))}))})}),{res:r,usedKey:l,exactUsedKey:c,usedLng:f,usedNS:h}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,a,r,l={}){var c;return(c=this.i18nFormat)!=null&&c.getResource?this.i18nFormat.getResource(t,a,r,l):this.resourceStore.getResource(t,a,r,l)}getUsedParamsDetails(t={}){const a=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!re(t.replace);let l=r?t.replace:t;if(r&&typeof t.count<"u"&&(l.count=t.count),this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),!r){l={...l};for(const c of a)delete l[c]}return l}static hasDefaultValue(t){const a="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&a===r.substring(0,a.length)&&t[r]!==void 0)return!0;return!1}}class ox{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=mn.create("languageUtils")}getScriptPartFromCode(t){if(t=_r(t),!t||t.indexOf("-")<0)return null;const a=t.split("-");return a.length===2||(a.pop(),a[a.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(a.join("-"))}getLanguagePartFromCode(t){if(t=_r(t),!t||t.indexOf("-")<0)return t;const a=t.split("-");return this.formatLanguageCode(a[0])}formatLanguageCode(t){if(re(t)&&t.indexOf("-")>-1){let a;try{a=Intl.getCanonicalLocales(t)[0]}catch{}return a&&this.options.lowerCaseLng&&(a=a.toLowerCase()),a||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let a;return t.forEach(r=>{if(a)return;const l=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(l))&&(a=l)}),!a&&this.options.supportedLngs&&t.forEach(r=>{if(a)return;const l=this.getScriptPartFromCode(r);if(this.isSupportedCode(l))return a=l;const c=this.getLanguagePartFromCode(r);if(this.isSupportedCode(c))return a=c;a=this.options.supportedLngs.find(f=>{if(f===c)return f;if(!(f.indexOf("-")<0&&c.indexOf("-")<0)&&(f.indexOf("-")>0&&c.indexOf("-")<0&&f.substring(0,f.indexOf("-"))===c||f.indexOf(c)===0&&c.length>1))return f})}),a||(a=this.getFallbackCodes(this.options.fallbackLng)[0]),a}getFallbackCodes(t,a){if(!t)return[];if(typeof t=="function"&&(t=t(a)),re(t)&&(t=[t]),Array.isArray(t))return t;if(!a)return t.default||[];let r=t[a];return r||(r=t[this.getScriptPartFromCode(a)]),r||(r=t[this.formatLanguageCode(a)]),r||(r=t[this.getLanguagePartFromCode(a)]),r||(r=t.default),r||[]}toResolveHierarchy(t,a){const r=this.getFallbackCodes((a===!1?[]:a)||this.options.fallbackLng||[],t),l=[],c=f=>{f&&(this.isSupportedCode(f)?l.push(f):this.logger.warn(`rejecting language code not found in supportedLngs: ${f}`))};return re(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&c(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&c(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&c(this.getLanguagePartFromCode(t))):re(t)&&c(this.formatLanguageCode(t)),r.forEach(f=>{l.indexOf(f)<0&&c(this.formatLanguageCode(f))}),l}}const lx={zero:0,one:1,two:2,few:3,many:4,other:5},cx={select:n=>n===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class bO{constructor(t,a={}){this.languageUtils=t,this.options=a,this.logger=mn.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,a={}){const r=_r(t==="dev"?"en":t),l=a.ordinal?"ordinal":"cardinal",c=JSON.stringify({cleanedCode:r,type:l});if(c in this.pluralRulesCache)return this.pluralRulesCache[c];let f;try{f=new Intl.PluralRules(r,{type:l})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),cx;if(!t.match(/-|_/))return cx;const m=this.languageUtils.getLanguagePartFromCode(t);f=this.getRule(m,a)}return this.pluralRulesCache[c]=f,f}needsPlural(t,a={}){let r=this.getRule(t,a);return r||(r=this.getRule("dev",a)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,a,r={}){return this.getSuffixes(t,r).map(l=>`${a}${l}`)}getSuffixes(t,a={}){let r=this.getRule(t,a);return r||(r=this.getRule("dev",a)),r?r.resolvedOptions().pluralCategories.sort((l,c)=>lx[l]-lx[c]).map(l=>`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${l}`):[]}getSuffix(t,a,r={}){const l=this.getRule(t,r);return l?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${l.select(a)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",a,r))}}const ux=(n,t,a,r=".",l=!0)=>{let c=fO(n,t,a);return!c&&l&&re(a)&&(c=Hd(n,a,r),c===void 0&&(c=Hd(t,a,r))),c},Zf=n=>n.replace(/\$/g,"$$$$");class fx{constructor(t={}){var a;this.logger=mn.create("interpolator"),this.options=t,this.format=((a=t==null?void 0:t.interpolation)==null?void 0:a.format)||(r=>r),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:a,escapeValue:r,useRawValueToEscape:l,prefix:c,prefixEscaped:f,suffix:h,suffixEscaped:m,formatSeparator:p,unescapeSuffix:v,unescapePrefix:x,nestingPrefix:S,nestingPrefixEscaped:w,nestingSuffix:T,nestingSuffixEscaped:k,nestingOptionsSeparator:z,maxReplaces:B,alwaysFormat:q}=t.interpolation;this.escape=a!==void 0?a:hO,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=l!==void 0?l:!1,this.prefix=c?Ii(c):f||"{{",this.suffix=h?Ii(h):m||"}}",this.formatSeparator=p||",",this.unescapePrefix=v?"":x||"-",this.unescapeSuffix=this.unescapePrefix?"":v||"",this.nestingPrefix=S?Ii(S):w||Ii("$t("),this.nestingSuffix=T?Ii(T):k||Ii(")"),this.nestingOptionsSeparator=z||",",this.maxReplaces=B||1e3,this.alwaysFormat=q!==void 0?q:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(a,r)=>(a==null?void 0:a.source)===r?(a.lastIndex=0,a):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,a,r,l){var w;let c,f,h;const m=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=T=>{if(T.indexOf(this.formatSeparator)<0){const q=ux(a,m,T,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(q,void 0,r,{...l,...a,interpolationkey:T}):q}const k=T.split(this.formatSeparator),z=k.shift().trim(),B=k.join(this.formatSeparator).trim();return this.format(ux(a,m,z,this.options.keySeparator,this.options.ignoreJSONStructure),B,r,{...l,...a,interpolationkey:z})};this.resetRegExp();const v=(l==null?void 0:l.missingInterpolationHandler)||this.options.missingInterpolationHandler,x=((w=l==null?void 0:l.interpolation)==null?void 0:w.skipOnVariables)!==void 0?l.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:T=>Zf(T)},{regex:this.regexp,safeValue:T=>this.escapeValue?Zf(this.escape(T)):Zf(T)}].forEach(T=>{for(h=0;c=T.regex.exec(t);){const k=c[1].trim();if(f=p(k),f===void 0)if(typeof v=="function"){const B=v(t,c,l);f=re(B)?B:""}else if(l&&Object.prototype.hasOwnProperty.call(l,k))f="";else if(x){f=c[0];continue}else this.logger.warn(`missed to pass in variable ${k} for interpolating ${t}`),f="";else!re(f)&&!this.useRawValueToEscape&&(f=tx(f));const z=T.safeValue(f);if(t=t.replace(c[0],z),x?(T.regex.lastIndex+=f.length,T.regex.lastIndex-=c[0].length):T.regex.lastIndex=0,h++,h>=this.maxReplaces)break}}),t}nest(t,a,r={}){let l,c,f;const h=(m,p)=>{const v=this.nestingOptionsSeparator;if(m.indexOf(v)<0)return m;const x=m.split(new RegExp(`${Ii(v)}[ ]*{`));let S=`{${x[1]}`;m=x[0],S=this.interpolate(S,f);const w=S.match(/'/g),T=S.match(/"/g);(((w==null?void 0:w.length)??0)%2===0&&!T||((T==null?void 0:T.length)??0)%2!==0)&&(S=S.replace(/'/g,'"'));try{f=JSON.parse(S),p&&(f={...p,...f})}catch(k){return this.logger.warn(`failed parsing options string in nesting for key ${m}`,k),`${m}${v}${S}`}return f.defaultValue&&f.defaultValue.indexOf(this.prefix)>-1&&delete f.defaultValue,m};for(;l=this.nestingRegexp.exec(t);){let m=[];f={...r},f=f.replace&&!re(f.replace)?f.replace:f,f.applyPostProcessor=!1,delete f.defaultValue;const p=/{.*}/.test(l[1])?l[1].lastIndexOf("}")+1:l[1].indexOf(this.formatSeparator);if(p!==-1&&(m=l[1].slice(p).split(this.formatSeparator).map(v=>v.trim()).filter(Boolean),l[1]=l[1].slice(0,p)),c=a(h.call(this,l[1].trim(),f),f),c&&l[0]===t&&!re(c))return c;re(c)||(c=tx(c)),c||(this.logger.warn(`missed to resolve ${l[1]} for nesting ${t}`),c=""),m.length&&(c=m.reduce((v,x)=>this.format(v,x,r.lng,{...r,interpolationkey:l[1].trim()}),c.trim())),t=t.replace(l[0],c),this.regexp.lastIndex=0}return t}}const SO=n=>{let t=n.toLowerCase().trim();const a={};if(n.indexOf("(")>-1){const r=n.split("(");t=r[0].toLowerCase().trim();const l=r[1].substring(0,r[1].length-1);t==="currency"&&l.indexOf(":")<0?a.currency||(a.currency=l.trim()):t==="relativetime"&&l.indexOf(":")<0?a.range||(a.range=l.trim()):l.split(";").forEach(f=>{if(f){const[h,...m]=f.split(":"),p=m.join(":").trim().replace(/^'+|'+$/g,""),v=h.trim();a[v]||(a[v]=p),p==="false"&&(a[v]=!1),p==="true"&&(a[v]=!0),isNaN(p)||(a[v]=parseInt(p,10))}})}return{formatName:t,formatOptions:a}},dx=n=>{const t={};return(a,r,l)=>{let c=l;l&&l.interpolationkey&&l.formatParams&&l.formatParams[l.interpolationkey]&&l[l.interpolationkey]&&(c={...c,[l.interpolationkey]:void 0});const f=r+JSON.stringify(c);let h=t[f];return h||(h=n(_r(r),l),t[f]=h),h(a)}},wO=n=>(t,a,r)=>n(_r(a),r)(t);class _O{constructor(t={}){this.logger=mn.create("formatter"),this.options=t,this.init(t)}init(t,a={interpolation:{}}){this.formatSeparator=a.interpolation.formatSeparator||",";const r=a.cacheInBuiltFormats?dx:wO;this.formats={number:r((l,c)=>{const f=new Intl.NumberFormat(l,{...c});return h=>f.format(h)}),currency:r((l,c)=>{const f=new Intl.NumberFormat(l,{...c,style:"currency"});return h=>f.format(h)}),datetime:r((l,c)=>{const f=new Intl.DateTimeFormat(l,{...c});return h=>f.format(h)}),relativetime:r((l,c)=>{const f=new Intl.RelativeTimeFormat(l,{...c});return h=>f.format(h,c.range||"day")}),list:r((l,c)=>{const f=new Intl.ListFormat(l,{...c});return h=>f.format(h)})}}add(t,a){this.formats[t.toLowerCase().trim()]=a}addCached(t,a){this.formats[t.toLowerCase().trim()]=dx(a)}format(t,a,r,l={}){const c=a.split(this.formatSeparator);if(c.length>1&&c[0].indexOf("(")>1&&c[0].indexOf(")")<0&&c.find(h=>h.indexOf(")")>-1)){const h=c.findIndex(m=>m.indexOf(")")>-1);c[0]=[c[0],...c.splice(1,h)].join(this.formatSeparator)}return c.reduce((h,m)=>{var x;const{formatName:p,formatOptions:v}=SO(m);if(this.formats[p]){let S=h;try{const w=((x=l==null?void 0:l.formatParams)==null?void 0:x[l.interpolationkey])||{},T=w.locale||w.lng||l.locale||l.lng||r;S=this.formats[p](h,T,{...v,...l,...w})}catch(w){this.logger.warn(w)}return S}else this.logger.warn(`there was no format function for ${p}`);return h},t)}}const TO=(n,t)=>{n.pending[t]!==void 0&&(delete n.pending[t],n.pendingCount--)};class EO extends Jl{constructor(t,a,r,l={}){var c,f;super(),this.backend=t,this.store=a,this.services=r,this.languageUtils=r.languageUtils,this.options=l,this.logger=mn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=l.maxParallelReads||10,this.readingCalls=0,this.maxRetries=l.maxRetries>=0?l.maxRetries:5,this.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,this.state={},this.queue=[],(f=(c=this.backend)==null?void 0:c.init)==null||f.call(c,r,l.backend,l)}queueLoad(t,a,r,l){const c={},f={},h={},m={};return t.forEach(p=>{let v=!0;a.forEach(x=>{const S=`${p}|${x}`;!r.reload&&this.store.hasResourceBundle(p,x)?this.state[S]=2:this.state[S]<0||(this.state[S]===1?f[S]===void 0&&(f[S]=!0):(this.state[S]=1,v=!1,f[S]===void 0&&(f[S]=!0),c[S]===void 0&&(c[S]=!0),m[x]===void 0&&(m[x]=!0)))}),v||(h[p]=!0)}),(Object.keys(c).length||Object.keys(f).length)&&this.queue.push({pending:f,pendingCount:Object.keys(f).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(c),pending:Object.keys(f),toLoadLanguages:Object.keys(h),toLoadNamespaces:Object.keys(m)}}loaded(t,a,r){const l=t.split("|"),c=l[0],f=l[1];a&&this.emit("failedLoading",c,f,a),!a&&r&&this.store.addResourceBundle(c,f,r,void 0,void 0,{skipCopy:!0}),this.state[t]=a?-1:2,a&&r&&(this.state[t]=0);const h={};this.queue.forEach(m=>{uO(m.loaded,[c],f),TO(m,t),a&&m.errors.push(a),m.pendingCount===0&&!m.done&&(Object.keys(m.loaded).forEach(p=>{h[p]||(h[p]={});const v=m.loaded[p];v.length&&v.forEach(x=>{h[p][x]===void 0&&(h[p][x]=!0)})}),m.done=!0,m.errors.length?m.callback(m.errors):m.callback())}),this.emit("loaded",h),this.queue=this.queue.filter(m=>!m.done)}read(t,a,r,l=0,c=this.retryTimeout,f){if(!t.length)return f(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:a,fcName:r,tried:l,wait:c,callback:f});return}this.readingCalls++;const h=(p,v)=>{if(this.readingCalls--,this.waitingReads.length>0){const x=this.waitingReads.shift();this.read(x.lng,x.ns,x.fcName,x.tried,x.wait,x.callback)}if(p&&v&&l<this.maxRetries){setTimeout(()=>{this.read.call(this,t,a,r,l+1,c*2,f)},c);return}f(p,v)},m=this.backend[r].bind(this.backend);if(m.length===2){try{const p=m(t,a);p&&typeof p.then=="function"?p.then(v=>h(null,v)).catch(h):h(null,p)}catch(p){h(p)}return}return m(t,a,h)}prepareLoading(t,a,r={},l){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();re(t)&&(t=this.languageUtils.toResolveHierarchy(t)),re(a)&&(a=[a]);const c=this.queueLoad(t,a,r,l);if(!c.toLoad.length)return c.pending.length||l(),null;c.toLoad.forEach(f=>{this.loadOne(f)})}load(t,a,r){this.prepareLoading(t,a,{},r)}reload(t,a,r){this.prepareLoading(t,a,{reload:!0},r)}loadOne(t,a=""){const r=t.split("|"),l=r[0],c=r[1];this.read(l,c,"read",void 0,void 0,(f,h)=>{f&&this.logger.warn(`${a}loading namespace ${c} for language ${l} failed`,f),!f&&h&&this.logger.log(`${a}loaded namespace ${c} for language ${l}`,h),this.loaded(t,f,h)})}saveMissing(t,a,r,l,c,f={},h=()=>{}){var m,p,v,x,S;if((p=(m=this.services)==null?void 0:m.utils)!=null&&p.hasLoadedNamespace&&!((x=(v=this.services)==null?void 0:v.utils)!=null&&x.hasLoadedNamespace(a))){this.logger.warn(`did not save key "${r}" as the namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((S=this.backend)!=null&&S.create){const w={...f,isUpdate:c},T=this.backend.create.bind(this.backend);if(T.length<6)try{let k;T.length===5?k=T(t,a,r,l,w):k=T(t,a,r,l),k&&typeof k.then=="function"?k.then(z=>h(null,z)).catch(h):h(null,k)}catch(k){h(k)}else T(t,a,r,l,h,w)}!t||!t[0]||this.store.addResource(t[0],a,r,l)}}}const Jf=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:n=>{let t={};if(typeof n[1]=="object"&&(t=n[1]),re(n[1])&&(t.defaultValue=n[1]),re(n[2])&&(t.tDescription=n[2]),typeof n[2]=="object"||typeof n[3]=="object"){const a=n[3]||n[2];Object.keys(a).forEach(r=>{t[r]=a[r]})}return t},interpolation:{escapeValue:!0,format:n=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),hx=n=>{var t,a;return re(n.ns)&&(n.ns=[n.ns]),re(n.fallbackLng)&&(n.fallbackLng=[n.fallbackLng]),re(n.fallbackNS)&&(n.fallbackNS=[n.fallbackNS]),((a=(t=n.supportedLngs)==null?void 0:t.indexOf)==null?void 0:a.call(t,"cimode"))<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),typeof n.initImmediate=="boolean"&&(n.initAsync=n.initImmediate),n},sl=()=>{},AO=n=>{Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(a=>{typeof n[a]=="function"&&(n[a]=n[a].bind(n))})},hS="__i18next_supportNoticeShown",NO=()=>!!(typeof globalThis<"u"&&globalThis[hS]||typeof process<"u"&&$f&&$f.I18NEXT_NO_SUPPORT_NOTICE||typeof process<"u"&&$f),DO=()=>{typeof globalThis<"u"&&(globalThis[hS]=!0)},jO=n=>{var t,a,r,l,c,f,h,m,p,v,x,S,w;return!!(((r=(a=(t=n==null?void 0:n.modules)==null?void 0:t.backend)==null?void 0:a.name)==null?void 0:r.indexOf("Locize"))>0||((h=(f=(c=(l=n==null?void 0:n.modules)==null?void 0:l.backend)==null?void 0:c.constructor)==null?void 0:f.name)==null?void 0:h.indexOf("Locize"))>0||(p=(m=n==null?void 0:n.options)==null?void 0:m.backend)!=null&&p.backends&&n.options.backend.backends.some(T=>{var k,z,B;return((k=T==null?void 0:T.name)==null?void 0:k.indexOf("Locize"))>0||((B=(z=T==null?void 0:T.constructor)==null?void 0:z.name)==null?void 0:B.indexOf("Locize"))>0})||(x=(v=n==null?void 0:n.options)==null?void 0:v.backend)!=null&&x.projectId||(w=(S=n==null?void 0:n.options)==null?void 0:S.backend)!=null&&w.backendOptions&&n.options.backend.backendOptions.some(T=>T==null?void 0:T.projectId))};class mr extends Jl{constructor(t={},a){if(super(),this.options=hx(t),this.services={},this.logger=mn,this.modules={external:[]},AO(this),a&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,a),this;setTimeout(()=>{this.init(t,a)},0)}}init(t={},a){this.isInitializing=!0,typeof t=="function"&&(a=t,t={}),t.defaultNS==null&&t.ns&&(re(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=Jf();this.options={...r,...this.options,...hx(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!jO(this)&&!NO()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),DO());const l=p=>p?typeof p=="function"?new p:p:null;if(!this.options.isClone){this.modules.logger?mn.init(l(this.modules.logger),this.options):mn.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=_O;const v=new ox(this.options);this.store=new sx(this.options.resources,this.options);const x=this.services;x.logger=mn,x.resourceStore=this.store,x.languageUtils=v,x.pluralResolver=new bO(v,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),p&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(x.formatter=l(p),x.formatter.init&&x.formatter.init(x,this.options),this.options.interpolation.format=x.formatter.format.bind(x.formatter)),x.interpolator=new fx(this.options),x.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},x.backendConnector=new EO(l(this.modules.backend),x.resourceStore,x,this.options),x.backendConnector.on("*",(w,...T)=>{this.emit(w,...T)}),this.modules.languageDetector&&(x.languageDetector=l(this.modules.languageDetector),x.languageDetector.init&&x.languageDetector.init(x,this.options.detection,this.options)),this.modules.i18nFormat&&(x.i18nFormat=l(this.modules.i18nFormat),x.i18nFormat.init&&x.i18nFormat.init(this)),this.translator=new Ll(this.services,this.options),this.translator.on("*",(w,...T)=>{this.emit(w,...T)}),this.modules.external.forEach(w=>{w.init&&w.init(this)})}if(this.format=this.options.interpolation.format,a||(a=sl),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(p=>{this[p]=(...v)=>this.store[p](...v)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=(...v)=>(this.store[p](...v),this)});const h=sr(),m=()=>{const p=(v,x)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),h.resolve(x),a(v,x)};if(this.languages&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initAsync?m():setTimeout(m,0),h}loadResources(t,a=sl){var c,f;let r=a;const l=re(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if((l==null?void 0:l.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const h=[],m=p=>{if(!p||p==="cimode")return;this.services.languageUtils.toResolveHierarchy(p).forEach(x=>{x!=="cimode"&&h.indexOf(x)<0&&h.push(x)})};l?m(l):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(v=>m(v)),(f=(c=this.options.preload)==null?void 0:c.forEach)==null||f.call(c,p=>m(p)),this.services.backendConnector.load(h,this.options.ns,p=>{!p&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(p)})}else r(null)}reloadResources(t,a,r){const l=sr();return typeof t=="function"&&(r=t,t=void 0),typeof a=="function"&&(r=a,a=void 0),t||(t=this.languages),a||(a=this.options.ns),r||(r=sl),this.services.backendConnector.reload(t,a,c=>{l.resolve(),r(c)}),l}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&fS.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let a=0;a<this.languages.length;a++){const r=this.languages[a];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,a){this.isLanguageChangingTo=t;const r=sr();this.emit("languageChanging",t);const l=h=>{this.language=h,this.languages=this.services.languageUtils.toResolveHierarchy(h),this.resolvedLanguage=void 0,this.setResolvedLanguage(h)},c=(h,m)=>{m?this.isLanguageChangingTo===t&&(l(m),this.translator.changeLanguage(m),this.isLanguageChangingTo=void 0,this.emit("languageChanged",m),this.logger.log("languageChanged",m)):this.isLanguageChangingTo=void 0,r.resolve((...p)=>this.t(...p)),a&&a(h,(...p)=>this.t(...p))},f=h=>{var v,x;!t&&!h&&this.services.languageDetector&&(h=[]);const m=re(h)?h:h&&h[0],p=this.store.hasLanguageSomeTranslations(m)?m:this.services.languageUtils.getBestMatchFromCodes(re(h)?[h]:h);p&&(this.language||l(p),this.translator.language||this.translator.changeLanguage(p),(x=(v=this.services.languageDetector)==null?void 0:v.cacheUserLanguage)==null||x.call(v,p)),this.loadResources(p,S=>{c(S,p)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?f(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(f):this.services.languageDetector.detect(f):f(t),r}getFixedT(t,a,r){const l=(c,f,...h)=>{let m;typeof f!="object"?m=this.options.overloadTranslationOptionHandler([c,f].concat(h)):m={...f},m.lng=m.lng||l.lng,m.lngs=m.lngs||l.lngs,m.ns=m.ns||l.ns,m.keyPrefix!==""&&(m.keyPrefix=m.keyPrefix||r||l.keyPrefix);const p={...this.options,...m};typeof m.keyPrefix=="function"&&(m.keyPrefix=Xa(m.keyPrefix,p));const v=this.options.keySeparator||".";let x;return m.keyPrefix&&Array.isArray(c)?x=c.map(S=>(typeof S=="function"&&(S=Xa(S,p)),`${m.keyPrefix}${v}${S}`)):(typeof c=="function"&&(c=Xa(c,p)),x=m.keyPrefix?`${m.keyPrefix}${v}${c}`:c),this.t(x,m)};return re(t)?l.lng=t:l.lngs=t,l.ns=a,l.keyPrefix=r,l}t(...t){var a;return(a=this.translator)==null?void 0:a.translate(...t)}exists(...t){var a;return(a=this.translator)==null?void 0:a.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,a={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=a.lng||this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const f=(h,m)=>{const p=this.services.backendConnector.state[`${h}|${m}`];return p===-1||p===0||p===2};if(a.precheck){const h=a.precheck(this,f);if(h!==void 0)return h}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||f(r,t)&&(!l||f(c,t)))}loadNamespaces(t,a){const r=sr();return this.options.ns?(re(t)&&(t=[t]),t.forEach(l=>{this.options.ns.indexOf(l)<0&&this.options.ns.push(l)}),this.loadResources(l=>{r.resolve(),a&&a(l)}),r):(a&&a(),Promise.resolve())}loadLanguages(t,a){const r=sr();re(t)&&(t=[t]);const l=this.options.preload||[],c=t.filter(f=>l.indexOf(f)<0&&this.services.languageUtils.isSupportedCode(f));return c.length?(this.options.preload=l.concat(c),this.loadResources(f=>{r.resolve(),a&&a(f)}),r):(a&&a(),Promise.resolve())}dir(t){var l,c;if(t||(t=this.resolvedLanguage||(((l=this.languages)==null?void 0:l.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{const f=new Intl.Locale(t);if(f&&f.getTextInfo){const h=f.getTextInfo();if(h&&h.direction)return h.direction}}catch{}const a=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((c=this.services)==null?void 0:c.languageUtils)||new ox(Jf());return t.toLowerCase().indexOf("-latn")>1?"ltr":a.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},a){const r=new mr(t,a);return r.createInstance=mr.createInstance,r}cloneInstance(t={},a=sl){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const l={...this.options,...t,isClone:!0},c=new mr(l);if((t.debug!==void 0||t.prefix!==void 0)&&(c.logger=c.logger.clone(t)),["store","services","language"].forEach(h=>{c[h]=this[h]}),c.services={...this.services},c.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},r){const h=Object.keys(this.store.data).reduce((m,p)=>(m[p]={...this.store.data[p]},m[p]=Object.keys(m[p]).reduce((v,x)=>(v[x]={...m[p][x]},v),m[p]),m),{});c.store=new sx(h,l),c.services.resourceStore=c.store}if(t.interpolation){const m={...Jf().interpolation,...this.options.interpolation,...t.interpolation},p={...l,interpolation:m};c.services.interpolator=new fx(p)}return c.translator=new Ll(c.services,l),c.translator.on("*",(h,...m)=>{c.emit(h,...m)}),c.init(l,a),c.translator.options=l,c.translator.backendConnector.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ze=mr.createInstance();Ze.createInstance;Ze.dir;Ze.init;Ze.loadResources;Ze.reloadResources;Ze.use;Ze.changeLanguage;Ze.getFixedT;Ze.t;Ze.exists;Ze.setDefaultNamespace;Ze.hasLoadedNamespace;Ze.loadNamespaces;Ze.loadLanguages;const{slice:CO,forEach:MO}=[];function OO(n){return MO.call(CO.call(arguments,1),t=>{if(t)for(const a in t)n[a]===void 0&&(n[a]=t[a])}),n}function RO(n){return typeof n!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(a=>a.test(n))}const mx=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,kO=function(n,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},l=encodeURIComponent(t);let c=`${n}=${l}`;if(r.maxAge>0){const f=r.maxAge-0;if(Number.isNaN(f))throw new Error("maxAge should be a Number");c+=`; Max-Age=${Math.floor(f)}`}if(r.domain){if(!mx.test(r.domain))throw new TypeError("option domain is invalid");c+=`; Domain=${r.domain}`}if(r.path){if(!mx.test(r.path))throw new TypeError("option path is invalid");c+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");c+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(c+="; HttpOnly"),r.secure&&(c+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"strict":c+="; SameSite=Strict";break;case"none":c+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(c+="; Partitioned"),c},px={create(n,t,a,r){let l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};a&&(l.expires=new Date,l.expires.setTime(l.expires.getTime()+a*60*1e3)),r&&(l.domain=r),document.cookie=kO(n,t,l)},read(n){const t=`${n}=`,a=document.cookie.split(";");for(let r=0;r<a.length;r++){let l=a[r];for(;l.charAt(0)===" ";)l=l.substring(1,l.length);if(l.indexOf(t)===0)return l.substring(t.length,l.length)}return null},remove(n,t){this.create(n,"",-1,t)}};var LO={name:"cookie",lookup(n){let{lookupCookie:t}=n;if(t&&typeof document<"u")return px.read(t)||void 0},cacheUserLanguage(n,t){let{lookupCookie:a,cookieMinutes:r,cookieDomain:l,cookieOptions:c}=t;a&&typeof document<"u"&&px.create(a,n,r,l,c)}},zO={name:"querystring",lookup(n){var r;let{lookupQuerystring:t}=n,a;if(typeof window<"u"){let{search:l}=window.location;!window.location.search&&((r=window.location.hash)==null?void 0:r.indexOf("?"))>-1&&(l=window.location.hash.substring(window.location.hash.indexOf("?")));const f=l.substring(1).split("&");for(let h=0;h<f.length;h++){const m=f[h].indexOf("=");m>0&&f[h].substring(0,m)===t&&(a=f[h].substring(m+1))}}return a}},VO={name:"hash",lookup(n){var l;let{lookupHash:t,lookupFromHashIndex:a}=n,r;if(typeof window<"u"){const{hash:c}=window.location;if(c&&c.length>2){const f=c.substring(1);if(t){const h=f.split("&");for(let m=0;m<h.length;m++){const p=h[m].indexOf("=");p>0&&h[m].substring(0,p)===t&&(r=h[m].substring(p+1))}}if(r)return r;if(!r&&a>-1){const h=c.match(/\/([a-zA-Z-]*)/g);return Array.isArray(h)?(l=h[typeof a=="number"?a:0])==null?void 0:l.replace("/",""):void 0}}}return r}};let Pa=null;const gx=()=>{if(Pa!==null)return Pa;try{if(Pa=typeof window<"u"&&window.localStorage!==null,!Pa)return!1;const n="i18next.translate.boo";window.localStorage.setItem(n,"foo"),window.localStorage.removeItem(n)}catch{Pa=!1}return Pa};var BO={name:"localStorage",lookup(n){let{lookupLocalStorage:t}=n;if(t&&gx())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(n,t){let{lookupLocalStorage:a}=t;a&&gx()&&window.localStorage.setItem(a,n)}};let qa=null;const yx=()=>{if(qa!==null)return qa;try{if(qa=typeof window<"u"&&window.sessionStorage!==null,!qa)return!1;const n="i18next.translate.boo";window.sessionStorage.setItem(n,"foo"),window.sessionStorage.removeItem(n)}catch{qa=!1}return qa};var UO={name:"sessionStorage",lookup(n){let{lookupSessionStorage:t}=n;if(t&&yx())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(n,t){let{lookupSessionStorage:a}=t;a&&yx()&&window.sessionStorage.setItem(a,n)}},HO={name:"navigator",lookup(n){const t=[];if(typeof navigator<"u"){const{languages:a,userLanguage:r,language:l}=navigator;if(a)for(let c=0;c<a.length;c++)t.push(a[c]);r&&t.push(r),l&&t.push(l)}return t.length>0?t:void 0}},PO={name:"htmlTag",lookup(n){let{htmlTag:t}=n,a;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(a=r.getAttribute("lang")),a}},qO={name:"path",lookup(n){var l;let{lookupFromPathIndex:t}=n;if(typeof window>"u")return;const a=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(a)?(l=a[typeof t=="number"?t:0])==null?void 0:l.replace("/",""):void 0}},IO={name:"subdomain",lookup(n){var l,c;let{lookupFromSubdomainIndex:t}=n;const a=typeof t=="number"?t+1:1,r=typeof window<"u"&&((c=(l=window.location)==null?void 0:l.hostname)==null?void 0:c.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[a]}};let mS=!1;try{document.cookie,mS=!0}catch{}const pS=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];mS||pS.splice(1,1);const FO=()=>({order:pS,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:n=>n});class gS{constructor(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,a)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=OO(a,this.options||{},FO()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=l=>l.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(LO),this.addDetector(zO),this.addDetector(BO),this.addDetector(UO),this.addDetector(HO),this.addDetector(PO),this.addDetector(qO),this.addDetector(IO),this.addDetector(VO)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,a=[];return t.forEach(r=>{if(this.detectors[r]){let l=this.detectors[r].lookup(this.options);l&&typeof l=="string"&&(l=[l]),l&&(a=a.concat(l))}}),a=a.filter(r=>r!=null&&!RO(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?a:a.length>0?a[0]:null}cacheUserLanguage(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;a&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||a.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}gS.type="languageDetector";const GO={free:"Free",pro:"Pro",api:"API",enterprise:"Enterprise",reserveAccess:"Reserve Your Early Access",signIn:"Sign In",upgradeToPro:"Upgrade to Pro"},YO={noiseWord:"Noise",signalWord:"Signal",valueProps:"The intelligence geopolitical AI layer — ask it, subscribe to it, build on it.",reserveEarlyAccess:"Reserve Your Early Access",launchingDate:"Live now",tryFreeDashboard:"Try the free dashboard",emailPlaceholder:"Enter your email",emailAriaLabel:"Email address for waitlist",choosePlan:"Choose Your Plan",signIn:"Sign In"},KO={asFeaturedIn:"As featured in"},XO={proTitle:"World Monitor Pro",proDesc:"Your AI analyst. A personal intelligence desk. A platform you can build on. One key across 30+ live services.",proF1:"WM Analyst chat — query all 30+ services conversationally",proF2:"AI digest — daily, twice-daily, or weekly — to Slack, Discord, Telegram, Email, or webhook",proF3:"Custom Widget Builder — HTML/CSS/JS with AI-assisted modification",proF4:"MCP connectors — plug WorldMonitor into Claude, GPT, custom LLMs",proF5:"Equity research, stock analysis & backtesting",proF6:"Flight search & price comparison",proF7:"Alert rules engine — custom triggers, quiet hours, AES-256 encrypted channels",proF8:"Market watchlist, macro & central bank tracking",proF9:"AI Market Implications & Regional Intelligence (Soon: orbital surveillance, premium map layers, longer history)",proCta:"Reserve Your Early Access",choosePlan:"Choose Your Plan",entTitle:"World Monitor Enterprise",entDesc:"For teams that need shared monitoring, API access, deployment options, TV apps, and direct support.",entF1:"Everything in Pro, plus:",entF2:"Live-edge + satellite imagery & SAR",entF3:"AI agents with investor personas & MCP",entF4:"50,000+ infrastructure assets mapped",entF5:"100+ data connectors (Splunk, Snowflake, Sentinel...)",entF6:"REST API + webhooks + bulk export",entF7:"Team workspaces with SSO/MFA/RBAC",entF8:"White-label & embeddable panels",entF9:"Android TV app for SOC walls & trading floors",entF10:"Cloud, on-prem, or air-gapped deployment",entF11:"Dedicated onboarding & support",entCta:"Talk to Sales"},$O={title:"Why upgrade",noiseTitle:"Know first",noiseDesc:"AIS anomaly → Brent spike → your Slack in under a minute. Signal, not headlines.",fasterTitle:"Ask anything",fasterDesc:"Chat the same 30+ services your dashboard sees. WM Analyst, always on.",controlTitle:"Build anything",controlDesc:"Custom widget builder (HTML/CSS/JS + AI) plus MCP for your own AI workflows.",deeperTitle:"Wake up informed",deeperDesc:"30-item AI digest ranked by your alert rules. Critical, High, Medium — with Assessment and Signals to watch."},QO={askIt:"Ask it",askItDesc:"WM Analyst chat. All 30+ services queryable in plain English.",subscribeIt:"Subscribe to it",subscribeItDesc:"AI digest on your schedule — daily, twice-daily, or weekly. Slack, Discord, Telegram, Email, webhook.",buildOnIt:"Build on it",buildOnItDesc:"Custom Widget Builder (HTML/CSS/JS + AI) and MCP for Claude, GPT, custom LLMs."},ZO={eyebrow:"DELIVERY DESK",title:"Your personal intelligence desk",body:"Up to 30 ranked items per send, deduped across 500+ sources, scored against your watchlist. Choose your cadence — daily, twice-daily, or weekly — with an AI Assessment and Signals to watch delivered to Slack, Discord, Telegram, Email, or webhook.",closer:"Not a newsletter. An analyst.",channels:"Slack · Discord · Telegram · Email · Webhook · AES-256 encrypted · Quiet hours"},JO={windowTitle:"worldmonitor.app — Live Dashboard",openFullScreen:"Open full screen",tryLiveDashboard:"Try the Live Dashboard",iframeTitle:"World Monitor — Live Intelligence Dashboard",description:"3D WebGL globe · 45+ interactive map layers · Real-time market, macro, geopolitical, energy, and infrastructure data"},WO={uniqueVisitors:"Unique visitors",peakDailyUsers:"Peak daily users",countriesReached:"Countries reached",liveDataSources:"Live data sources",quote:"Markets, monetary policy, geopolitics, energy — everything moves together now. I needed something that showed me how these forces connect in real time, not just the headlines but the underlying drivers.",ceo:"CEO of",asToldTo:"as told to"},eR={title:"Built for people who need signal fast",investorsTitle:"Investors & portfolio managers",investorsDesc:"Track global equities, analyst targets, valuation metrics, and macro indicators alongside geopolitical risk signals.",tradersTitle:"Energy & commodities traders",tradersDesc:"Track vessel movements, cargo inference, supply chain disruptions, and market-moving geopolitical signals.",researchersTitle:"Researchers & analysts",researchersDesc:"Equity research, economy analytics, and geopolitical frameworks for deeper analysis and reporting.",journalistsTitle:"Journalists & media",journalistsDesc:"Follow fast-moving developments across markets and regions without stitching sources together manually.",govTitle:"Government & institutions",govDesc:"Macro policy tracking, central bank monitoring, and situational awareness across geopolitical and infrastructure signals.",teamsTitle:"Teams & organizations",teamsDesc:"Move from individual use to shared workflows, API access, TV apps, and managed deployments."},tR={title:"What World Monitor Tracks",subtitle:"30+ service domains ingested simultaneously. Markets, macro, geopolitics, energy, infrastructure — everything normalized and rendered on a WebGL globe.",markets:"Financial Markets & Equities",marketsDesc:"Global stock analysis, commodities, crypto, ETF flows, analyst targets, and FRED macro data",economy:"Economy & Central Banks",economyDesc:"GDP, inflation, interest rates, growth cycles, and monetary policy tracking across major economies",geopolitical:"Geopolitical Analysis",geopoliticalDesc:"ACLED & UCDP events with escalation scoring, risk frameworks, and trend analysis",maritime:"Maritime & Trade",maritimeDesc:"Ship movements, vessel detection, port activity, and cargo inference",aviation:"Aviation Tracking",aviationDesc:"ADS-B transponder tracking of global flight patterns",infra:"Critical Infrastructure",infraDesc:"Nuclear sites, power grids, pipelines, refineries — 50K+ mapped assets",fire:"Satellite Fire Detection",fireDesc:"NASA FIRMS near-real-time fire and hotspot data",cables:"Submarine Cables",cablesDesc:"Undersea cable routes and landing stations",internet:"Internet & GPS",internetDesc:"Outage detection, BGP anomalies, GPS jamming zones",cyber:"Cyber Threats",cyberDesc:"Ransomware feeds, BGP hijacks, DDoS detection",gdelt:"GDELT & News",gdeltDesc:"500+ RSS feeds, AI-scored GDELT events, live broadcasts",seismology:"Seismology & Natural",seismologyDesc:"USGS earthquakes, volcanic activity, severe weather"},nR={free:"Free",freeTagline:"See everything",freeDesc:"The open-source dashboard",freeF1:"5-15 min refresh",freeF2:"500+ feeds, 45 map layers",freeF3:"BYOK for AI",freeF4:"Free forever",openDashboard:"Open Dashboard",pro:"Pro",proTagline:"Markets, macro & geopolitics",proDesc:"Your AI analyst",proF1:"Equity research & stock analysis",proF2:"+ daily briefs, economy analytics",proF3:"AI included, 1 key",proF4:"Priority data refresh (Soon)",priceMonthly:"$39.99 / month",priceAnnual:"$399.99 / year",annualSavingsNote:"2 months free",enterprise:"Enterprise",enterpriseTagline:"Act before anyone else",enterpriseDesc:"The intelligence platform",entF1:"Live-edge + satellite imagery",entF2:"+ AI agents, 50K+ infra, SAR",entF3:"Custom AI, investor personas",entF4:"Contact us",contactSales:"Contact Sales"},iR={proTier:"PRO TIER",title:"Your AI Analyst That Never Sleeps",subtitle:"The free dashboard shows you the world. Pro gives you an analyst to ask, a digest you subscribe to, and primitives to build on. Stocks, macro, geopolitical risk — and the connections between them.",equityResearch:"Equity Research",equityResearchDesc:"Global stock analysis with financials visualization, analyst price targets, and valuation metrics. Track what moves markets.",geopoliticalAnalysis:"Geopolitical Analysis",geopoliticalAnalysisDesc:"Grand Chessboard strategic framework, Prisoners of Geography models, and central bank & monetary policy tracking.",economyAnalytics:"Economy Analytics",economyAnalyticsDesc:"GDP, inflation, interest rates, and growth cycles. Macro data correlated with market signals and geopolitical events.",riskMonitoring:"Risk Monitoring & Scenarios",riskMonitoringDesc:"Global risk scoring, scenario analysis, and geopolitical risk assessment. Convergence detection across market and political signals.",orbitalSurveillance:"Orbital Surveillance",orbitalSurveillanceDesc:"(Soon) Overhead pass predictions, revisit frequency analysis, and imaging window alerts. Know when intelligence satellites are watching your areas of interest.",morningBriefs:"Personal Intelligence Desk",morningBriefsDesc:"Up to 30 ranked stories per digest, deduped across 500+ sources. Pick daily, twice-daily, or weekly cadence — or real-time alerts for critical events. AI Assessment and Signals to watch delivered to Slack, Discord, Telegram, Email, or webhook. Not a newsletter — an analyst.",oneKey:"30+ Services, 1 Key",oneKeyDesc:"Finnhub, FRED, ACLED, UCDP, NASA FIRMS, AISStream, OpenSky, and more — all active, no separate registrations.",deliveryLabel:"Choose how intelligence finds you"},aR={morningBrief:"Morning Brief",markets:"Markets",marketsText:"S&P 500 futures -1.2% pre-market. Fed Chair testimony at 10am EST — rate-sensitive sectors under pressure. Analyst consensus shifting on Q2 earnings.",elevated:"Macro",elevatedText:"ECB holds rates at 3.75%. Euro area GDP revised up to 1.1%. Central bank divergence widening — USD/EUR at 3-month high.",watch:"Geopolitical",watchText:"Brent +2.3% on Hormuz AIS anomaly. 4 dark ships in 6h. Commodity supply chain risk elevated — energy sector correlations spiking."},sR={apiTier:"API TIER",title:"Programmatic Intelligence",subtitle:"For developers, analysts, and teams building on World Monitor data. Separate from Pro — use both or either.",restApi:"REST API across all 30+ service domains",authenticated:"Authenticated per-key, rate-limited per tier",structured:"Structured JSON with cache headers and OpenAPI 3.1 docs",starter:"Starter",starterReqs:"1,000 req/day",starterWebhooks:"5 webhook rules",business:"Business",businessReqs:"50,000 req/day",businessWebhooks:"Unlimited webhooks + SLA",feedData:"Feed data into your dashboards, automate alerting via Zapier/n8n/Make, build custom scoring models on CII/risk data."},rR={enterpriseTier:"ENTERPRISE TIER",title:"Intelligence Infrastructure",subtitle:"For governments, institutions, trading desks, and organizations that need the full platform with maximum security, AI agents, TV apps, and data depth.",security:"Government-Grade Security",securityDesc:"Air-gapped deployment, on-premises Docker, dedicated cloud tenant, SOC 2 Type II path, SSO/MFA, and full audit trail.",aiAgents:"AI Agents & MCP",aiAgentsDesc:"Autonomous intelligence agents with investor personas. Connect World Monitor as a tool to Claude, GPT, or custom LLMs via MCP.",dataLayers:"Expanded Data Layers",dataLayersDesc:"Tens of thousands of infrastructure assets mapped globally. Satellite imagery integration with change detection and SAR.",connectors:"100+ Data Connectors",connectorsDesc:"PostgreSQL, Snowflake, Splunk, Sentinel, Jira, Slack, Teams, and more. Export to PDF, PowerPoint, CSV, GeoJSON.",whiteLabel:"White-Label, TV & Embeddable",whiteLabelDesc:"Your brand, your domain, your desktop app. Android TV app for SOC walls and trading floors. Embeddable iframe panels.",financial:"Financial Intelligence",financialDesc:"Earnings calendar, energy grid data, enhanced commodity tracking with cargo inference, sanctions screening with AIS correlation.",commodity:"Commodity Trading",commodityDesc:"Vessel tracking + cargo inference + supply chain graph. Know before the market moves.",government:"Government & Institutions",governmentDesc:"Air-gapped, AI agents, full situational awareness, MCP. No data leaves your network.",risk:"Risk Consultancies",riskDesc:"Scenario simulation, investor personas, branded PDF/PowerPoint reports on demand.",soc:"SOCs & CERT",socDesc:"Cyber threat layer, SIEM integration, BGP anomaly monitoring, ransomware feeds.",talkToSales:"Talk to Sales",contactFormTitle:"Talk to our team",contactFormSubtitle:"Tell us about your organization and we'll get back to you within one business day.",namePlaceholder:"Your name",emailPlaceholder:"Work email",orgPlaceholder:"Company *",phonePlaceholder:"Phone number *",messagePlaceholder:"What are you looking for?",workEmailRequired:"Please use your work email address",submitContact:"Send Message",contactSending:"Sending...",contactSent:"Message sent. We'll be in touch.",contactFailed:"Failed to send. Please email enterprise@worldmonitor.app"},oR={title:"Compare Tiers",feature:"Feature",freeHeader:"Free ($0)",proHeader:"Pro ($39.99)",apiHeader:"API ($99.99)",entHeader:"Enterprise (Contact)",dataRefresh:"Data refresh",dashboard:"Dashboard",ai:"AI",briefsAlerts:"Briefs & alerts",delivery:"Delivery",apiRow:"API",infraLayers:"Infrastructure layers",satellite:"Orbital Surveillance",connectorsRow:"Connectors",deployment:"Deployment",securityRow:"Security",f5_15min:"5-15 min",fLt60s:"<60 seconds",fPerRequest:"Per-request",fLiveEdge:"Live-edge",f50panels:"50+ panels",fWhiteLabel:"White-label",fBYOK:"BYOK",fIncluded:"Included",fAgentsPersonas:"Agents + personas",fDailyFlash:"Daily + flash",fTeamDist:"Team distribution",fSlackTgWa:"Slack/Discord/TG/Email/Webhook",fWebhook:"Webhook",fSiemMcp:"+ SIEM/MCP",fRestWebhook:"REST + webhook",fMcpBulk:"+ MCP + bulk",f45:"45",fTensOfThousands:"+ tens of thousands",fLiveTracking:"Live tracking",fPassAlerts:"Pass alerts + analysis",fImagerySar:"Imagery + SAR",f100plus:"100+",fCloud:"Cloud",fCloudOnPrem:"Cloud/on-prem/air-gap",fStandard:"Standard",fKeyAuth:"Key auth",fSsoMfa:"SSO/MFA/RBAC/audit",noteBelow:"The core platform remains free. Paid plans unlock equity research, macro analytics, AI briefings, and organizational use."},lR={title:"Frequently Asked Questions",q1:"Is World Monitor still free?",a1:"Yes. The core platform remains free. Pro adds equity research, macro analytics, and AI briefings. Enterprise adds team deployments and TV apps.",q2:"Why pay for Pro?",a2:"Pro is for investors, analysts, and professionals who want stock monitoring, geopolitical analysis, economy analytics, and AI-powered daily briefings — all under one key.",q3:"Who is Enterprise for?",a3:"Enterprise is for teams that need shared use, APIs, integrations, deployment options, and direct support.",q4:"Can I start with Pro and upgrade later?",a4:"Yes. Pro works for serious individuals. Enterprise is there when team and deployment needs grow.",q5:"Is this only for conflict monitoring?",a5:"No. World Monitor is primarily a global intelligence platform covering stock markets, macroeconomics, geopolitical analysis, energy, infrastructure, and more. Conflict tracking is one of many capabilities — not the focus.",q6:"Why keep the core platform free?",a6:"Because public access matters. Paid plans fund deeper workflows for serious users and organizations.",q7:"Can I still use my own API keys?",a7:"Yes. Bring-your-own-keys always works. Pro simply means you don't have to register for 20+ separate services.",q8:"What's MCP?",a8:"MCP lets AI agents — Claude, GPT, custom LLMs — use WorldMonitor as a tool, querying all 30+ services. Included in Pro. Enterprise adds private MCP servers and custom deployments.",q9:"Can I build my own panels?",a9:"Yes. Pro includes the Custom Widget Builder — build panels from HTML, CSS, and JavaScript, with AI-assisted modification.",q10:"Can I connect Claude or GPT to WorldMonitor?",a10:"Yes. MCP is included in Pro — plug WorldMonitor into Claude, GPT, or any MCP-compatible LLM as a live tool.",q11:"How personalized is the digest?",a11:"Pick your cadence — daily, twice-daily, or weekly. We re-score every tracked story against your alert rules and watchlist, dedupe across 500+ sources, and send up to 30 ranked items with an AI Assessment and Signals to watch written to your context. Real-time alerts are also available for critical events.",q12:"What's the refresh rate?",a12:"Near real time for Pro. 5–15 minutes on Free.",q13:"Where does my data go?",a13:"Notification channels are AES-256 encrypted at rest. Digests never leave our pipeline unredacted."},cR={title:"Start with Pro. Scale to Enterprise.",subtitle:"Keep using World Monitor for free, or upgrade for equity research, macro analytics, and AI briefings. If your organization needs team access, TV apps, or API support, talk to us.",getPro:"Reserve Your Early Access",talkToSales:"Talk to Sales"},uR={beFirstInLine:"Be first in line.",lookingForEnterprise:"Looking for Enterprise?",contactUs:"Contact us",wiredArticle:"WIRED Article"},fR={submitting:"Submitting...",joinWaitlist:"Reserve Your Early Access",tooManyRequests:"Too many requests",failedTryAgain:"Failed — try again"},dR={alreadyOnList:"You're already on the list.",shareHint:"Share your link to move up the line. Each friend who joins bumps you closer to the front.",copied:"Copied!",shareOnX:"Share on X",linkedin:"LinkedIn",whatsapp:"WhatsApp",telegram:"Telegram",shareText:"I just joined the World Monitor Pro waitlist — stock monitoring, geopolitical analysis, and AI daily briefings in one platform. Join me:",joinWaitlistShare:"Join the World Monitor Pro waitlist:",youreIn:"You're in!",invitedBanner:"You've been invited — join the waitlist"},hR="Soon",yS={nav:GO,hero:YO,wired:KO,twoPath:XO,whyUpgrade:$O,pillars:QO,deliveryDesk:ZO,livePreview:JO,socialProof:WO,audience:eR,dataCoverage:tR,tiers:nR,proShowcase:iR,slackMock:aR,apiSection:sR,enterpriseShowcase:rR,pricingTable:oR,faq:lR,finalCta:cR,footer:uR,form:fR,referral:dR,soonBadge:hR},vS=["en","ar","bg","cs","de","el","es","fr","it","ja","ko","nl","pl","pt","ro","ru","sv","th","tr","vi","zh"],mR=new Set(vS),vx=new Set(["en"]),pR=new Set(["ar"]),gR=Object.assign({"./locales/ar.json":()=>Ie(()=>import("./ar-Cm8L16fJ.js"),[]).then(n=>n.default),"./locales/bg.json":()=>Ie(()=>import("./bg-meSd4JsJ.js"),[]).then(n=>n.default),"./locales/cs.json":()=>Ie(()=>import("./cs-ptRTyzJj.js"),[]).then(n=>n.default),"./locales/de.json":()=>Ie(()=>import("./de-C3_MVNE9.js"),[]).then(n=>n.default),"./locales/el.json":()=>Ie(()=>import("./el-B9-X35aF.js"),[]).then(n=>n.default),"./locales/es.json":()=>Ie(()=>import("./es-DKuPMUhm.js"),[]).then(n=>n.default),"./locales/fr.json":()=>Ie(()=>import("./fr-CqZfnoPg.js"),[]).then(n=>n.default),"./locales/it.json":()=>Ie(()=>import("./it-xRd9wXeo.js"),[]).then(n=>n.default),"./locales/ja.json":()=>Ie(()=>import("./ja-BvG2yjL7.js"),[]).then(n=>n.default),"./locales/ko.json":()=>Ie(()=>import("./ko-Bp1BAWvm.js"),[]).then(n=>n.default),"./locales/nl.json":()=>Ie(()=>import("./nl-CIy0NOIy.js"),[]).then(n=>n.default),"./locales/pl.json":()=>Ie(()=>import("./pl-P7FWM5y7.js"),[]).then(n=>n.default),"./locales/pt.json":()=>Ie(()=>import("./pt-RlnECMQU.js"),[]).then(n=>n.default),"./locales/ro.json":()=>Ie(()=>import("./ro-OfGDlDfm.js"),[]).then(n=>n.default),"./locales/ru.json":()=>Ie(()=>import("./ru-BgqyPHlN.js"),[]).then(n=>n.default),"./locales/sv.json":()=>Ie(()=>import("./sv-DuX3Lsqd.js"),[]).then(n=>n.default),"./locales/th.json":()=>Ie(()=>import("./th-CD3FOyKH.js"),[]).then(n=>n.default),"./locales/tr.json":()=>Ie(()=>import("./tr-F4p4sScu.js"),[]).then(n=>n.default),"./locales/vi.json":()=>Ie(()=>import("./vi-D1texoPw.js"),[]).then(n=>n.default),"./locales/zh.json":()=>Ie(()=>import("./zh-BxyDCIra.js"),[]).then(n=>n.default)});function yR(n){var a;const t=((a=(n||"en").split("-")[0])==null?void 0:a.toLowerCase())||"en";return mR.has(t)?t:"en"}async function vR(n){const t=yR(n);if(vx.has(t))return t;const a=gR[`./locales/${t}.json`],r=a?await a():yS;return Ze.addResourceBundle(t,"translation",r,!0,!0),vx.add(t),t}async function xR(){if(Ze.isInitialized)return;await Ze.use(gS).init({resources:{en:{translation:yS}},supportedLngs:[...vS],nonExplicitSupportedLngs:!0,fallbackLng:"en",interpolation:{escapeValue:!1},detection:{order:["querystring","localStorage","navigator"],lookupQuerystring:"lang",caches:["localStorage"]}});const n=await vR(Ze.language||"en");n!=="en"&&await Ze.changeLanguage(n);const t=(Ze.language||n).split("-")[0]||"en";document.documentElement.setAttribute("lang",t==="zh"?"zh-CN":t),pR.has(t)&&document.documentElement.setAttribute("dir","rtl")}function _(n,t){return Ze.t(n,t)}const xS="https://api.worldmonitor.app/api",xx="https://customer.dodopayments.com",bR="ACTIVE_SUBSCRIPTION_EXISTS",bx="'SF Mono', Monaco, 'Cascadia Code', 'Fira Code', monospace";let nt=null,pr=null,zl=null,vl=!1,rr=null;async function bS(){return nt||rr||(rr=SR().catch(n=>{throw rr=null,n}),rr)}async function SR(){const{Clerk:n}=await Ie(async()=>{const{Clerk:r}=await import("./clerk-PNSFEZs8.js");return{Clerk:r}},[]),t="pk_live_Y2xlcmsud29ybGRtb25pdG9yLmFwcCQ",a=new n(t);return await a.load({appearance:{variables:{colorBackground:"#0f0f0f",colorInputBackground:"#141414",colorInputText:"#e8e8e8",colorText:"#e8e8e8",colorTextSecondary:"#aaaaaa",colorPrimary:"#44ff88",colorNeutral:"#e8e8e8",colorDanger:"#ff4444",borderRadius:"4px",fontFamily:bx,fontFamilyButtons:bx},elements:{card:{backgroundColor:"#111111",border:"1px solid #2a2a2a",boxShadow:"0 8px 32px rgba(0,0,0,0.6)"},formButtonPrimary:{color:"#000000",fontWeight:"600"},footerActionLink:{color:"#44ff88"},socialButtonsBlockButton:{borderColor:"#2a2a2a",color:"#e8e8e8",backgroundColor:"#141414"}}}}),nt=a,nt.addListener(()=>{if(nt!=null&&nt.user&&pr){const r=pr,l=zl;pr=null,zl=null,SS(r,l??{})}}),nt}function wR(n){Ie(async()=>{const{DodoPayments:t}=await import("./index.esm-BiNDwt_v.js");return{DodoPayments:t}},[]).then(({DodoPayments:t})=>{t.Initialize({mode:"test",displayType:"overlay",onEvent:a=>{var r,l,c;a.event_type==="checkout.status"&&(((r=a.data)==null?void 0:r.status)??((c=(l=a.data)==null?void 0:l.message)==null?void 0:c.status))==="succeeded"&&(n==null||n())}})}).catch(t=>{console.error("[checkout] Failed to load Dodo overlay SDK:",t)})}async function _R(n,t){if(vl)return!1;let a;try{a=await bS()}catch(r){return console.error("[checkout] Failed to load Clerk:",r),Sl(r,{tags:{surface:"pro-marketing",action:"load-clerk"}}),!1}if(!a.user){pr=n,zl=t??null;try{a.openSignIn()}catch(r){console.error("[checkout] Failed to open sign in:",r),Sl(r,{tags:{surface:"pro-marketing",action:"checkout-sign-in"}}),pr=null,zl=null}return!1}return SS(n,t??{})}async function SS(n,t){if(vl)return!1;vl=!0;try{const a=await TR();if(!a)return console.error("[checkout] No auth token after retry"),!1;const r=await fetch(`${xS}/create-checkout`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify({productId:n,returnUrl:"https://worldmonitor.app",discountCode:t.discountCode,referralCode:t.referralCode}),signal:AbortSignal.timeout(15e3)});if(!r.ok){const f=await r.json().catch(()=>({}));return console.error("[checkout] Edge error:",r.status,f),r.status===409&&(f==null?void 0:f.error)===bR&&await ER(a,f==null?void 0:f.message),!1}const l=await r.json();if(!(l!=null&&l.checkout_url))return console.error("[checkout] No checkout_url in response"),!1;const{DodoPayments:c}=await Ie(async()=>{const{DodoPayments:f}=await import("./index.esm-BiNDwt_v.js");return{DodoPayments:f}},[]);return c.Checkout.open({checkoutUrl:l.checkout_url,options:{manualRedirect:!0,themeConfig:{dark:{bgPrimary:"#0d0d0d",bgSecondary:"#1a1a1a",borderPrimary:"#323232",textPrimary:"#ffffff",textSecondary:"#909090",buttonPrimary:"#22c55e",buttonPrimaryHover:"#16a34a",buttonTextPrimary:"#0d0d0d"},light:{bgPrimary:"#ffffff",bgSecondary:"#f8f9fa",borderPrimary:"#d4d4d4",textPrimary:"#1a1a1a",textSecondary:"#555555",buttonPrimary:"#16a34a",buttonPrimaryHover:"#15803d",buttonTextPrimary:"#ffffff"},radius:"4px"}}}),!0}catch(a){return console.error("[checkout] Failed:",a),!1}finally{vl=!1}}async function TR(){var t,a,r,l;let n=await((t=nt==null?void 0:nt.session)==null?void 0:t.getToken({template:"convex"}).catch(()=>null))??await((a=nt==null?void 0:nt.session)==null?void 0:a.getToken().catch(()=>null));return n||(await new Promise(c=>setTimeout(c,2e3)),n=await((r=nt==null?void 0:nt.session)==null?void 0:r.getToken({template:"convex"}).catch(()=>null))??await((l=nt==null?void 0:nt.session)==null?void 0:l.getToken().catch(()=>null))),n}async function ER(n,t){t&&console.warn("[checkout] Redirecting to billing portal:",t);try{const a=await fetch(`${xS}/customer-portal`,{method:"POST",headers:{Authorization:`Bearer ${n}`},signal:AbortSignal.timeout(15e3)}),r=await a.json().catch(()=>({})),l=typeof(r==null?void 0:r.portal_url)=="string"?r.portal_url:xx;a.ok||console.error("[checkout] Customer portal error:",a.status,r),window.location.assign(l)}catch(a){console.error("[checkout] Failed to open billing portal:",a),window.location.assign(xx)}}const AR=[{name:"Free",price:0,period:"forever",description:"Get started with the essentials",features:["Core dashboard panels","Global news feed","Earthquake & weather alerts","Basic map view"],cta:"Get Started",href:"https://worldmonitor.app",highlighted:!1},{name:"Pro",monthlyPrice:39.99,annualPrice:399.99,description:"Full intelligence dashboard",features:["Everything in Free","AI stock analysis & backtesting","Daily market briefs","Military & geopolitical tracking","Custom widget builder","MCP data connectors","Priority data refresh"],monthlyProductId:"pdt_0Nbtt71uObulf7fGXhQup",annualProductId:"pdt_0NbttMIfjLWC10jHQWYgJ",highlighted:!0},{name:"API",monthlyPrice:99.99,annualPrice:999,description:"Programmatic access to intelligence data",features:["REST API access","Real-time data streams","1,000 requests/day","Webhook notifications","Custom data exports"],monthlyProductId:"pdt_0NbttVmG1SERrxhygbbUq",annualProductId:"pdt_0Nbu2lawHYE3dv2THgSEV",highlighted:!1},{name:"Enterprise",price:null,description:"Custom solutions for organizations",features:["Everything in Pro + API","Unlimited API requests","Dedicated support","Custom integrations","SLA guarantee","On-premise option"],cta:"Contact Sales",href:"mailto:enterprise@worldmonitor.app",highlighted:!1}],NR="https://api.worldmonitor.app/api/product-catalog";function DR(){const[n,t]=ee.useState(AR);return ee.useEffect(()=>{let a=!1;return fetch(NR,{signal:AbortSignal.timeout(5e3)}).then(r=>r.ok?r.json():null).then(r=>{var l;!a&&((l=r==null?void 0:r.tiers)!=null&&l.length)&&t(r.tiers)}).catch(()=>{}),()=>{a=!0}},[]),n}function jR(n,t){return n.price===0?{amount:"$0",suffix:"forever"}:n.price===null&&n.monthlyPrice===void 0?{amount:"Custom",suffix:"tailored to you"}:n.annualPrice===null&&n.monthlyPrice!==void 0?{amount:`$${n.monthlyPrice}`,suffix:"/mo"}:t==="annual"&&n.annualPrice!=null?{amount:`$${n.annualPrice}`,suffix:"/yr"}:{amount:`$${n.monthlyPrice}`,suffix:"/mo"}}function CR(n,t){return n.cta&&n.href&&n.price===0?{type:"link",label:n.cta,href:n.href,external:!0}:n.cta&&n.href&&n.price===null?{type:"link",label:n.cta,href:n.href,external:!0}:n.monthlyProductId?{type:"checkout",label:"Get Started",productId:t==="annual"&&n.annualProductId?n.annualProductId:n.monthlyProductId}:{type:"link",label:"Learn More",href:"#",external:!1}}function MR({refCode:n}){const[t,a]=ee.useState("monthly"),r=DR(),l=ee.useCallback(c=>{_R(c,{referralCode:n})},[n]);return g.jsx("section",{id:"pricing",className:"py-24 px-6 border-t border-wm-border bg-[#060606]",children:g.jsxs("div",{className:"max-w-7xl mx-auto",children:[g.jsxs("div",{className:"text-center mb-16",children:[g.jsx(Ka.h2,{className:"text-3xl md:text-5xl font-display font-bold mb-4",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:"Choose Your Plan"}),g.jsx(Ka.p,{className:"text-wm-muted max-w-xl mx-auto mb-8",initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.1},children:"From real-time monitoring to full intelligence infrastructure. Pick the tier that fits your mission."}),g.jsxs(Ka.div,{className:"inline-flex items-center gap-3 bg-wm-card border border-wm-border rounded-sm p-1",initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.2},children:[g.jsx("button",{onClick:()=>a("monthly"),className:`px-4 py-2 rounded-sm font-mono text-xs uppercase tracking-wider transition-colors ${t==="monthly"?"bg-wm-green text-wm-bg font-bold":"text-wm-muted hover:text-wm-text"}`,children:"Monthly"}),g.jsxs("button",{onClick:()=>a("annual"),className:`px-4 py-2 rounded-sm font-mono text-xs uppercase tracking-wider transition-colors flex items-center gap-2 ${t==="annual"?"bg-wm-green text-wm-bg font-bold":"text-wm-muted hover:text-wm-text"}`,children:["Annual",g.jsx("span",{className:`text-[10px] px-1.5 py-0.5 rounded-sm ${t==="annual"?"bg-wm-bg/20 text-wm-bg":"bg-wm-green/10 text-wm-green"}`,children:"Save 17%"})]})]})]}),g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:r.map((c,f)=>{const h=jR(c,t),m=CR(c,t);return g.jsxs(Ka.div,{className:`relative bg-zinc-900 rounded-lg p-6 flex flex-col ${c.highlighted?"border-2 border-wm-green shadow-lg shadow-wm-green/10":"border border-wm-border"}`,initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:f*.1},children:[c.highlighted&&g.jsxs("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2 inline-flex items-center gap-1 bg-wm-green text-wm-bg px-3 py-1 rounded-full text-xs font-mono font-bold uppercase tracking-wider",children:[g.jsx(sO,{className:"w-3 h-3","aria-hidden":"true"}),"Most Popular"]}),g.jsx("h3",{className:`font-display text-lg font-bold mb-1 ${c.highlighted?"text-wm-green":"text-wm-text"}`,children:c.name}),g.jsx("p",{className:"text-xs text-wm-muted mb-4",children:c.description}),g.jsxs("div",{className:"mb-6",children:[g.jsx("span",{className:"text-4xl font-display font-bold",children:h.amount}),g.jsxs("span",{className:"text-sm text-wm-muted ml-1",children:["/",h.suffix]})]}),g.jsx("ul",{className:"space-y-3 mb-8 flex-1",children:c.features.map((p,v)=>g.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[g.jsx(Ud,{className:`w-4 h-4 shrink-0 mt-0.5 ${c.highlighted?"text-wm-green":"text-wm-muted"}`,"aria-hidden":"true"}),g.jsx("span",{className:"text-wm-muted",children:p})]},v))}),m.type==="link"?g.jsxs("a",{href:m.href,target:m.external?"_blank":void 0,rel:m.external?"noreferrer":void 0,className:`block text-center py-3 rounded-sm font-mono text-xs uppercase tracking-wider font-bold transition-colors ${c.highlighted?"bg-wm-green text-wm-bg hover:bg-green-400":"border border-wm-border text-wm-muted hover:text-wm-text hover:border-wm-text"}`,children:[m.label," ",g.jsx(Wi,{className:"w-3.5 h-3.5 inline-block ml-1","aria-hidden":"true"})]}):g.jsxs("button",{onClick:()=>l(m.productId),className:`block w-full text-center py-3 rounded-sm font-mono text-xs uppercase tracking-wider font-bold transition-colors cursor-pointer ${c.highlighted?"bg-wm-green text-wm-bg hover:bg-green-400":"border border-wm-border text-wm-muted hover:text-wm-text hover:border-wm-text"}`,children:[m.label," ",g.jsx(Wi,{className:"w-3.5 h-3.5 inline-block ml-1","aria-hidden":"true"})]})]},c.name)})}),g.jsx("p",{className:"text-center text-xs text-wm-muted font-mono mt-8",children:"Have a promo code? Enter it during checkout."})]})})}function OR(){return g.jsx("span",{style:{display:"inline-block",padding:"2px 8px",marginLeft:"6px",fontSize:"10px",fontWeight:600,letterSpacing:"0.04em",textTransform:"uppercase",color:"#fbbf24",background:"rgba(251,191,36,0.12)",border:"1px solid rgba(251,191,36,0.3)",borderRadius:"4px",verticalAlign:"middle"},children:_("soonBadge")})}const RR="/pro/assets/worldmonitor-7-mar-2026-CtI5YvxO.jpg",kR="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0.11%2010.99%20124.78%2024.98'%3e%3cpath%20d='M105.375%2014.875v17.25h8.5c2.375%200%203.75-.375%204.75-1.25%201.25-1.125%201.875-3.125%201.875-7.375s-.625-6.25-1.875-7.375c-1-.875-2.375-1.25-4.75-1.25zM117%2023.5c0%203.75-.25%204.625-1%205.125-.5.375-1.125.5-2.375.5h-4.75V17.75h4.75c1.25%200%201.875%200%202.375.5.75.625%201%201.5%201%205.25zm7.875%2012.438H99.937V11h24.938zM79.563%2017.75v-2.875h14.75v5.5h-3.126V17.75h-6v4.125h4.75v2.75h-4.75v4.625h6.126v-3h3.124v5.875H79.564V29.25h2.374v-11.5zM66.188%2027.625c0%201.875.124%203.25.374%204.375h3.376c-.126-.875-.25-2.5-.25-4.625-.126-2.5-.876-2.875-2.626-3.25%202-.375%202.876-1.25%202.876-4.375%200-2.5-.376-3.5-1.126-4.125-.5-.5-1.374-.75-2.75-.75h-10.5v17.25h3.5v-6.75h4.876c1%200%201.374.125%201.75.375s.5.625.5%201.875zm-7.126-5v-4.75h5.626c.75%200%201%20.125%201.124.25.25.25.5.625.5%202.125s-.25%202-.5%202.25c-.124.125-.374.25-1.124.25zm15.876%2013.313h-25V11h24.937v24.938zM43.438%2029.25v2.875H31.562V29.25h4.25v-11.5h-4.25v-2.875h11.875v2.875h-4.25v11.5zM23.375%2014.875h-3.25L17.75%2028.5%2015%2015.875c-.125-.875-.5-1-1.25-1H12c-.75%200-1.125.25-1.25%201L8%2028.5%205.625%2014.875h-3.5L5.5%2031.25c.125.75.375.875%201.25.875h2.375c.75%200%201-.125%201.25-.875L13%2019.375l2.625%2011.875c.125.75.375.875%201.25.875h2.25c.75%200%201.125-.125%201.25-.875zm1.75%2021.063h-25V11h24.938v24.938z'%3e%3c/path%3e%3c/svg%3e",LR="https://api.worldmonitor.app/api",zR="0x4AAAAAACnaYgHIyxclu8Tj";function VR(){if(!window.turnstile)return 0;let n=0;return document.querySelectorAll(".cf-turnstile:not([data-rendered])").forEach(t=>{const a=window.turnstile.render(t,{sitekey:zR,size:"flexible",callback:r=>{t.dataset.token=r},"expired-callback":()=>{delete t.dataset.token},"error-callback":()=>{delete t.dataset.token}});t.dataset.rendered="true",t.dataset.widgetId=String(a),n++}),n}function BR(){return new URLSearchParams(window.location.search).get("ref")||void 0}function wS(){bS().then(n=>n.openSignIn()).catch(n=>{console.error("[auth] Failed to open sign in:",n),Sl(n,{tags:{surface:"pro-marketing",action:"open-sign-in"}})})}const UR=()=>g.jsx("svg",{viewBox:"0 0 24 24",className:"w-5 h-5",fill:"currentColor","aria-hidden":"true",children:g.jsx("path",{d:"M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"})}),_S=()=>g.jsxs("a",{href:"https://worldmonitor.app",className:"flex items-center gap-2 hover:opacity-80 transition-opacity","aria-label":"World Monitor — Home",children:[g.jsxs("div",{className:"relative w-8 h-8 rounded-full bg-wm-card border border-wm-border flex items-center justify-center overflow-hidden",children:[g.jsx(Ol,{className:"w-5 h-5 text-wm-blue opacity-50 absolute","aria-hidden":"true"}),g.jsx(o3,{className:"w-6 h-6 text-wm-green absolute z-10","aria-hidden":"true"})]}),g.jsxs("div",{className:"flex flex-col",children:[g.jsx("span",{className:"font-display font-bold text-sm leading-none tracking-tight",children:"WORLD MONITOR"}),g.jsx("span",{className:"text-[9px] text-wm-muted font-mono uppercase tracking-widest leading-none mt-1",children:"by Someone.ceo"})]})]}),HR=()=>g.jsx("nav",{className:"fixed top-0 left-0 right-0 z-50 glass-panel border-b-0 border-x-0 rounded-none","aria-label":"Main navigation",children:g.jsxs("div",{className:"max-w-7xl mx-auto px-6 h-16 flex items-center justify-between",children:[g.jsx(_S,{}),g.jsxs("div",{className:"hidden md:flex items-center gap-8 text-sm font-mono text-wm-muted",children:[g.jsx("a",{href:"#tiers",className:"hover:text-wm-text transition-colors",children:_("nav.free")}),g.jsx("a",{href:"#pro",className:"hover:text-wm-green transition-colors",children:_("nav.pro")}),g.jsx("a",{href:"#api",className:"hover:text-wm-text transition-colors",children:_("nav.api")}),g.jsx("a",{href:"#enterprise",className:"hover:text-wm-text transition-colors",children:_("nav.enterprise")})]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("button",{type:"button",onClick:wS,className:"border border-wm-border text-wm-text px-4 py-2 rounded-sm font-mono text-xs uppercase tracking-wider font-bold hover:border-wm-text transition-colors",children:_("nav.signIn")}),g.jsx("a",{href:"#pricing",className:"bg-wm-green text-wm-bg px-4 py-2 rounded-sm font-mono text-xs uppercase tracking-wider font-bold hover:bg-green-400 transition-colors",children:_("nav.upgradeToPro")})]})]})}),PR=()=>g.jsxs("a",{href:"https://www.wired.me/story/the-music-streaming-ceo-who-built-a-global-war-map",target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full border border-wm-border bg-wm-card/50 text-wm-muted text-xs font-mono hover:border-wm-green/30 hover:text-wm-text transition-colors",children:[_("wired.asFeaturedIn")," ",g.jsx("span",{className:"text-wm-text font-bold",children:"WIRED"})," ",g.jsx(sS,{className:"w-3 h-3","aria-hidden":"true"})]}),qR=()=>g.jsxs("div",{className:"relative my-4 md:my-8 -mx-6",children:[g.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:g.jsx("div",{className:"w-64 h-40 md:w-96 md:h-56 bg-wm-green/8 rounded-full blur-[80px]"})}),g.jsx("div",{className:"flex items-end justify-center gap-[3px] md:gap-1 h-28 md:h-44 relative px-4","aria-hidden":"true",children:Array.from({length:60}).map((r,l)=>{const c=Math.abs(l-30),f=c<=8,h=f?1-c/8:0,m=60+h*110,p=Math.max(8,35-c*.8);return g.jsx(Ka.div,{className:`flex-1 max-w-2 md:max-w-3 rounded-sm ${f?"bg-wm-green":"bg-wm-muted/20"}`,style:f?{boxShadow:`0 0 ${6+h*12}px rgba(74,222,128,${h*.5})`}:void 0,initial:{height:f?m*.3:p*.5,opacity:f?.4:.08},animate:f?{height:[m*.5,m,m*.65,m*.9],opacity:[.6+h*.3,1,.75+h*.2,.95]}:{height:[p,p*.3,p*.7,p*.15,p*.5],opacity:[.2,.06,.15,.04,.12]},transition:{duration:f?2.5+h*.5:1+Math.random()*.6,repeat:1/0,repeatType:"reverse",delay:f?c*.07:Math.random()*.6,ease:"easeInOut"}},l)})})]}),IR=()=>g.jsxs("section",{className:"pt-28 pb-12 px-6 relative overflow-hidden",children:[g.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_50%_20%,rgba(74,222,128,0.08)_0%,transparent_50%)] pointer-events-none"}),g.jsx("div",{className:"max-w-4xl mx-auto text-center relative z-10",children:g.jsxs(Ka.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[g.jsx("div",{className:"mb-4",children:g.jsx(PR,{})}),g.jsxs("h1",{className:"text-6xl md:text-8xl font-display font-bold tracking-tighter leading-[0.95]",children:[g.jsx("span",{className:"text-wm-muted/40",children:_("hero.noiseWord")}),g.jsx("span",{className:"mx-3 md:mx-5 text-wm-border/50",children:"→"}),g.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-wm-green to-emerald-300 text-glow",children:_("hero.signalWord")})]}),g.jsx(qR,{}),g.jsx("p",{className:"text-lg md:text-xl text-wm-muted max-w-xl mx-auto font-light leading-relaxed",children:_("hero.valueProps")}),g.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center mt-8",children:[g.jsxs("a",{href:"#pricing",className:"bg-wm-green text-wm-bg px-6 py-3 rounded-sm font-mono text-sm uppercase tracking-wider font-bold hover:bg-green-400 transition-colors flex items-center justify-center gap-2",children:[_("hero.choosePlan")," ",g.jsx(Wi,{className:"w-4 h-4","aria-hidden":"true"})]}),g.jsx("button",{type:"button",onClick:wS,className:"border border-wm-border text-wm-text px-6 py-3 rounded-sm font-mono text-sm uppercase tracking-wider font-bold hover:border-wm-text transition-colors",children:_("hero.signIn")})]}),g.jsx("div",{className:"flex items-center justify-center mt-4",children:g.jsxs("a",{href:"https://worldmonitor.app",className:"text-xs text-wm-green font-mono hover:text-green-300 transition-colors flex items-center gap-1",children:[_("hero.tryFreeDashboard")," ",g.jsx(Wi,{className:"w-3 h-3","aria-hidden":"true"})]})})]})})]}),FR=()=>g.jsx("section",{className:"border-y border-wm-border bg-wm-card/30 py-16 px-6",children:g.jsxs("div",{className:"max-w-5xl mx-auto",children:[g.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-8 text-center mb-12",children:[{value:"2M+",label:_("socialProof.uniqueVisitors")},{value:"421K",label:_("socialProof.peakDailyUsers")},{value:"190+",label:_("socialProof.countriesReached")},{value:"500+",label:_("socialProof.liveDataSources")}].map((n,t)=>g.jsxs("div",{children:[g.jsx("p",{className:"text-3xl md:text-4xl font-display font-bold text-wm-green",children:n.value}),g.jsx("p",{className:"text-xs font-mono text-wm-muted uppercase tracking-widest mt-1",children:n.label})]},t))}),g.jsxs("blockquote",{className:"max-w-3xl mx-auto text-center",children:[g.jsxs("p",{className:"text-lg md:text-xl text-wm-muted italic leading-relaxed",children:['"',_("socialProof.quote"),'"']}),g.jsx("footer",{className:"mt-6 flex items-center justify-center gap-3",children:g.jsx("a",{href:"https://www.wired.me/story/the-music-streaming-ceo-who-built-a-global-war-map",target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-2 text-wm-muted hover:text-wm-text transition-colors",children:g.jsx("img",{src:kR,alt:"WIRED",className:"h-5 brightness-0 invert opacity-60 hover:opacity-100 transition-opacity"})})})]})]})}),GR=()=>g.jsxs("section",{className:"py-24 px-6 max-w-5xl mx-auto",id:"tiers",children:[g.jsx("h2",{className:"sr-only",children:"Plans"}),g.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[g.jsxs("div",{className:"bg-wm-card border border-wm-green p-8 relative border-glow",children:[g.jsx("div",{className:"absolute top-0 left-0 w-full h-1 bg-wm-green"}),g.jsx("h3",{className:"font-display text-2xl font-bold mb-2",children:_("twoPath.proTitle")}),g.jsx("p",{className:"text-sm text-wm-muted mb-6",children:_("twoPath.proDesc")}),g.jsx("ul",{className:"space-y-3 mb-8",children:[_("twoPath.proF1"),_("twoPath.proF2"),_("twoPath.proF3"),_("twoPath.proF4"),_("twoPath.proF5"),_("twoPath.proF6"),_("twoPath.proF7"),_("twoPath.proF8"),_("twoPath.proF9")].map((n,t)=>g.jsxs("li",{className:"flex items-start gap-3 text-sm",children:[g.jsx(Ud,{className:"w-4 h-4 shrink-0 mt-0.5 text-wm-green","aria-hidden":"true"}),g.jsx("span",{className:"text-wm-muted",children:n})]},t))}),g.jsx("a",{href:"#pricing",className:"block text-center py-2.5 rounded-sm font-mono text-xs uppercase tracking-wider font-bold bg-wm-green text-wm-bg hover:bg-green-400 transition-colors",children:_("twoPath.choosePlan")})]}),g.jsxs("div",{className:"bg-wm-card border border-wm-border p-8",children:[g.jsx("h3",{className:"font-display text-2xl font-bold mb-2",children:_("twoPath.entTitle")}),g.jsx("p",{className:"text-sm text-wm-muted mb-6",children:_("twoPath.entDesc")}),g.jsxs("ul",{className:"space-y-3 mb-8",children:[g.jsx("li",{className:"text-xs font-mono text-wm-green uppercase tracking-wider mb-1",children:_("twoPath.entF1")}),[_("twoPath.entF2"),_("twoPath.entF3"),_("twoPath.entF4"),_("twoPath.entF5"),_("twoPath.entF6"),_("twoPath.entF7"),_("twoPath.entF8"),_("twoPath.entF9"),_("twoPath.entF10"),_("twoPath.entF11")].map((n,t)=>g.jsxs("li",{className:"flex items-start gap-3 text-sm",children:[g.jsx(Ud,{className:"w-4 h-4 shrink-0 mt-0.5 text-wm-muted","aria-hidden":"true"}),g.jsx("span",{className:"text-wm-muted",children:n})]},t))]}),g.jsx("a",{href:"#enterprise",className:"block text-center py-2.5 rounded-sm font-mono text-xs uppercase tracking-wider font-bold border border-wm-border text-wm-muted hover:text-wm-text hover:border-wm-text transition-colors",children:_("twoPath.entCta")})]})]})]}),YR=()=>{const n=[{icon:g.jsx(C3,{className:"w-6 h-6","aria-hidden":"true"}),title:_("whyUpgrade.noiseTitle"),desc:_("whyUpgrade.noiseDesc")},{icon:g.jsx(cS,{className:"w-6 h-6","aria-hidden":"true"}),title:_("whyUpgrade.fasterTitle"),desc:_("whyUpgrade.fasterDesc")},{icon:g.jsx(W3,{className:"w-6 h-6","aria-hidden":"true"}),title:_("whyUpgrade.controlTitle"),desc:_("whyUpgrade.controlDesc")},{icon:g.jsx(lS,{className:"w-6 h-6","aria-hidden":"true"}),title:_("whyUpgrade.deeperTitle"),desc:_("whyUpgrade.deeperDesc")}];return g.jsx("section",{className:"py-24 px-6 border-t border-wm-border bg-wm-card/20",children:g.jsxs("div",{className:"max-w-5xl mx-auto",children:[g.jsx("h2",{className:"text-3xl md:text-5xl font-display font-bold mb-16 text-center",children:_("whyUpgrade.title")}),g.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:n.map((t,a)=>g.jsxs("div",{className:"flex gap-5",children:[g.jsx("div",{className:"text-wm-green shrink-0 mt-1",children:t.icon}),g.jsxs("div",{children:[g.jsx("h3",{className:"font-bold text-lg mb-2",children:t.title}),g.jsx("p",{className:"text-sm text-wm-muted leading-relaxed",children:t.desc})]})]},a))})]})})},KR=()=>{const n=[{icon:g.jsx(d3,{className:"w-7 h-7","aria-hidden":"true"}),title:_("pillars.askIt"),desc:_("pillars.askItDesc")},{icon:g.jsx(u3,{className:"w-7 h-7","aria-hidden":"true"}),title:_("pillars.subscribeIt"),desc:_("pillars.subscribeItDesc")},{icon:g.jsx(Zl,{className:"w-7 h-7","aria-hidden":"true"}),title:_("pillars.buildOnIt"),desc:_("pillars.buildOnItDesc")}];return g.jsx("section",{className:"py-20 px-6 border-t border-wm-border",children:g.jsx("div",{className:"max-w-5xl mx-auto",children:g.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:n.map((t,a)=>g.jsxs("div",{className:"bg-wm-card border border-wm-border p-6 hover:border-wm-green/30 transition-colors",children:[g.jsx("div",{className:"text-wm-green mb-4",children:t.icon}),g.jsx("h3",{className:"font-display text-xl font-bold mb-2",children:t.title}),g.jsx("p",{className:"text-sm text-wm-muted leading-relaxed",children:t.desc})]},a))})})})},XR=()=>g.jsx("section",{className:"py-24 px-6 border-t border-wm-border bg-wm-card/20",children:g.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[g.jsx("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full border border-wm-green/30 bg-wm-green/10 text-wm-green text-xs font-mono mb-6",children:_("deliveryDesk.eyebrow")}),g.jsx("h2",{className:"text-3xl md:text-5xl font-display font-bold mb-6",children:_("deliveryDesk.title")}),g.jsx("p",{className:"text-lg text-wm-muted leading-relaxed mb-6",children:_("deliveryDesk.body")}),g.jsx("p",{className:"text-xl md:text-2xl font-display font-bold text-wm-green mb-8",children:_("deliveryDesk.closer")}),g.jsx("p",{className:"font-mono text-xs text-wm-muted uppercase tracking-widest",children:_("deliveryDesk.channels")})]})}),$R=()=>g.jsx("section",{className:"px-6 py-16",children:g.jsxs("div",{className:"max-w-6xl mx-auto",children:[g.jsxs("div",{className:"relative rounded-lg overflow-hidden border border-wm-border shadow-2xl shadow-wm-green/5",children:[g.jsxs("div",{className:"bg-wm-card px-4 py-2 border-b border-wm-border flex items-center gap-3",children:[g.jsxs("div",{className:"flex gap-1.5",children:[g.jsx("div",{className:"w-3 h-3 rounded-full bg-red-500/70"}),g.jsx("div",{className:"w-3 h-3 rounded-full bg-yellow-500/70"}),g.jsx("div",{className:"w-3 h-3 rounded-full bg-green-500/70"})]}),g.jsx("span",{className:"font-mono text-xs text-wm-muted ml-2",children:_("livePreview.windowTitle")}),g.jsxs("a",{href:"https://worldmonitor.app",target:"_blank",rel:"noreferrer",className:"ml-auto text-xs text-wm-green font-mono hover:text-green-300 transition-colors flex items-center gap-1",children:[_("livePreview.openFullScreen")," ",g.jsx(sS,{className:"w-3 h-3","aria-hidden":"true"})]})]}),g.jsxs("div",{className:"relative aspect-[16/9] bg-black",children:[g.jsx("img",{src:RR,alt:"World Monitor Dashboard",className:"absolute inset-0 w-full h-full object-cover"}),g.jsx("iframe",{src:"https://worldmonitor.app?embed=pro-preview",title:_("livePreview.iframeTitle"),className:"relative w-full h-full border-0",loading:"lazy",sandbox:"allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox"}),g.jsx("div",{className:"absolute inset-0 pointer-events-none bg-gradient-to-t from-wm-bg/80 via-transparent to-transparent"}),g.jsx("div",{className:"absolute bottom-4 left-0 right-0 text-center pointer-events-auto",children:g.jsxs("a",{href:"https://worldmonitor.app",target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-2 bg-wm-green text-wm-bg px-6 py-3 rounded-sm font-mono text-sm uppercase tracking-wider font-bold hover:bg-green-400 transition-colors",children:[_("livePreview.tryLiveDashboard")," ",g.jsx(Wi,{className:"w-4 h-4","aria-hidden":"true"})]})})]})]}),g.jsx("p",{className:"text-center text-xs text-wm-muted font-mono mt-4",children:_("livePreview.description")})]})}),QR=()=>{const t=["Finnhub","FRED","Bloomberg","CNBC","Nikkei","CoinGecko","Polymarket","Reuters","ACLED","UCDP","GDELT","NASA FIRMS","USGS","OpenSky","AISStream","Cloudflare Radar","BGPStream","GPSJam","NOAA","Copernicus","IAEA","Al Jazeera","Sky News","Euronews","DW News","France 24","OilPrice","Rigzone","Maritime Executive","Hellenic Shipping News","Defense One","Jane's","The War Zone","TechCrunch","Ars Technica","The Verge","Wired","Krebs on Security","BleepingComputer","The Record"].join(" · ");return g.jsx("section",{className:"border-y border-wm-border bg-wm-card/20 overflow-hidden py-4","aria-label":"Data sources",children:g.jsxs("div",{className:"marquee-track whitespace-nowrap font-mono text-xs text-wm-muted uppercase tracking-widest",children:[g.jsxs("span",{className:"inline-block px-4",children:[t," · "]}),g.jsxs("span",{className:"inline-block px-4",children:[t," · "]})]})})},ZR=()=>g.jsx("section",{className:"py-24 px-6 border-t border-wm-border bg-wm-card/30",id:"pro",children:g.jsxs("div",{className:"max-w-7xl mx-auto grid lg:grid-cols-2 gap-16 items-start",children:[g.jsxs("div",{children:[g.jsx("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full border border-wm-green/30 bg-wm-green/10 text-wm-green text-xs font-mono mb-6",children:_("proShowcase.proTier")}),g.jsx("h2",{className:"text-3xl md:text-5xl font-display font-bold mb-6",children:_("proShowcase.title")}),g.jsx("p",{className:"text-wm-muted mb-8",children:_("proShowcase.subtitle")}),g.jsxs("div",{className:"space-y-6",children:[g.jsxs("div",{className:"flex gap-4",children:[g.jsx(cS,{className:"w-6 h-6 text-wm-green shrink-0","aria-hidden":"true"}),g.jsxs("div",{children:[g.jsx("h3",{className:"font-bold mb-1",children:_("proShowcase.equityResearch")}),g.jsx("p",{className:"text-sm text-wm-muted",children:_("proShowcase.equityResearchDesc")})]})]}),g.jsxs("div",{className:"flex gap-4",children:[g.jsx(Ol,{className:"w-6 h-6 text-wm-green shrink-0","aria-hidden":"true"}),g.jsxs("div",{children:[g.jsx("h3",{className:"font-bold mb-1",children:_("proShowcase.geopoliticalAnalysis")}),g.jsx("p",{className:"text-sm text-wm-muted",children:_("proShowcase.geopoliticalAnalysisDesc")})]})]}),g.jsxs("div",{className:"flex gap-4",children:[g.jsx(jh,{className:"w-6 h-6 text-wm-green shrink-0","aria-hidden":"true"}),g.jsxs("div",{children:[g.jsx("h3",{className:"font-bold mb-1",children:_("proShowcase.economyAnalytics")}),g.jsx("p",{className:"text-sm text-wm-muted",children:_("proShowcase.economyAnalyticsDesc")})]})]}),g.jsxs("div",{className:"flex gap-4",children:[g.jsx(Ch,{className:"w-6 h-6 text-wm-green shrink-0","aria-hidden":"true"}),g.jsxs("div",{children:[g.jsx("h3",{className:"font-bold mb-1",children:_("proShowcase.riskMonitoring")}),g.jsx("p",{className:"text-sm text-wm-muted",children:_("proShowcase.riskMonitoringDesc")})]})]}),g.jsxs("div",{className:"flex gap-4",children:[g.jsx(lS,{className:"w-6 h-6 text-wm-green shrink-0","aria-hidden":"true"}),g.jsxs("div",{children:[g.jsxs("h4",{className:"font-bold mb-1",children:[_("proShowcase.orbitalSurveillance"),g.jsx(OR,{})]}),g.jsx("p",{className:"text-sm text-wm-muted",children:_("proShowcase.orbitalSurveillanceDesc").replace(/^\(Soon\)\s*/,"")})]})]}),g.jsxs("div",{className:"flex gap-4",children:[g.jsx(w3,{className:"w-6 h-6 text-wm-green shrink-0","aria-hidden":"true"}),g.jsxs("div",{children:[g.jsx("h3",{className:"font-bold mb-1",children:_("proShowcase.morningBriefs")}),g.jsx("p",{className:"text-sm text-wm-muted",children:_("proShowcase.morningBriefsDesc")})]})]}),g.jsxs("div",{className:"flex gap-4",children:[g.jsx(R3,{className:"w-6 h-6 text-wm-green shrink-0","aria-hidden":"true"}),g.jsxs("div",{children:[g.jsx("h3",{className:"font-bold mb-1",children:_("proShowcase.oneKey")}),g.jsx("p",{className:"text-sm text-wm-muted",children:_("proShowcase.oneKeyDesc")})]})]})]}),g.jsxs("div",{className:"mt-10 pt-8 border-t border-wm-border",children:[g.jsx("p",{className:"font-mono text-xs text-wm-muted uppercase tracking-widest mb-4",children:_("proShowcase.deliveryLabel")}),g.jsx("div",{className:"flex gap-6",children:[{icon:g.jsx(UR,{}),label:"Slack"},{icon:g.jsx(q3,{className:"w-5 h-5","aria-hidden":"true"}),label:"Discord"},{icon:g.jsx(X3,{className:"w-5 h-5","aria-hidden":"true"}),label:"Telegram"},{icon:g.jsx(H3,{className:"w-5 h-5","aria-hidden":"true"}),label:"Email"},{icon:g.jsx(Zl,{className:"w-5 h-5","aria-hidden":"true"}),label:"Webhook"}].map((n,t)=>g.jsxs("div",{className:"flex flex-col items-center gap-1.5 text-wm-muted hover:text-wm-text transition-colors cursor-pointer",children:[n.icon,g.jsx("span",{className:"text-[10px] font-mono",children:n.label})]},t))})]})]}),g.jsxs("div",{className:"bg-[#1a1d21] rounded-lg border border-[#35373b] overflow-hidden shadow-2xl sticky top-24",children:[g.jsxs("div",{className:"bg-[#222529] px-4 py-3 border-b border-[#35373b] flex items-center gap-3",children:[g.jsx("div",{className:"w-3 h-3 rounded-full bg-red-500"}),g.jsx("div",{className:"w-3 h-3 rounded-full bg-yellow-500"}),g.jsx("div",{className:"w-3 h-3 rounded-full bg-green-500"}),g.jsx("span",{className:"ml-2 font-mono text-xs text-gray-400",children:"#world-monitor-alerts"})]}),g.jsx("div",{className:"p-6 space-y-6 font-sans text-sm",children:g.jsxs("div",{className:"flex gap-4",children:[g.jsx("div",{className:"w-10 h-10 rounded bg-wm-green/20 flex items-center justify-center shrink-0",children:g.jsx(Ol,{className:"w-6 h-6 text-wm-green","aria-hidden":"true"})}),g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-baseline gap-2 mb-1",children:[g.jsx("span",{className:"font-bold text-gray-200",children:"World Monitor"}),g.jsx("span",{className:"text-xs text-gray-500 bg-gray-800 px-1 rounded",children:"APP"}),g.jsx("span",{className:"text-xs text-gray-500",children:"8:00 AM"})]}),g.jsxs("p",{className:"text-gray-300 font-bold mb-3",children:[_("slackMock.morningBrief")," · Mar 6"]}),g.jsxs("div",{className:"space-y-3",children:[g.jsxs("div",{className:"pl-3 border-l-2 border-blue-500",children:[g.jsx("span",{className:"text-blue-400 font-bold text-xs uppercase tracking-wider",children:_("slackMock.markets")}),g.jsx("p",{className:"text-gray-300 mt-1",children:_("slackMock.marketsText")})]}),g.jsxs("div",{className:"pl-3 border-l-2 border-orange-500",children:[g.jsx("span",{className:"text-orange-400 font-bold text-xs uppercase tracking-wider",children:_("slackMock.elevated")}),g.jsx("p",{className:"text-gray-300 mt-1",children:_("slackMock.elevatedText")})]}),g.jsxs("div",{className:"pl-3 border-l-2 border-yellow-500",children:[g.jsx("span",{className:"text-yellow-400 font-bold text-xs uppercase tracking-wider",children:_("slackMock.watch")}),g.jsx("p",{className:"text-gray-300 mt-1",children:_("slackMock.watchText")})]})]})]})]})})]})]})}),JR=()=>{const n=[{icon:g.jsx(y3,{className:"w-6 h-6","aria-hidden":"true"}),title:_("audience.investorsTitle"),desc:_("audience.investorsDesc")},{icon:g.jsx(D3,{className:"w-6 h-6","aria-hidden":"true"}),title:_("audience.tradersTitle"),desc:_("audience.tradersDesc")},{icon:g.jsx(Y3,{className:"w-6 h-6","aria-hidden":"true"}),title:_("audience.researchersTitle"),desc:_("audience.researchersDesc")},{icon:g.jsx(Ol,{className:"w-6 h-6","aria-hidden":"true"}),title:_("audience.journalistsTitle"),desc:_("audience.journalistsDesc")},{icon:g.jsx(L3,{className:"w-6 h-6","aria-hidden":"true"}),title:_("audience.govTitle"),desc:_("audience.govDesc")},{icon:g.jsx(m3,{className:"w-6 h-6","aria-hidden":"true"}),title:_("audience.teamsTitle"),desc:_("audience.teamsDesc")}];return g.jsx("section",{className:"py-24 px-6",children:g.jsxs("div",{className:"max-w-5xl mx-auto",children:[g.jsx("h2",{className:"text-3xl md:text-5xl font-display font-bold mb-16 text-center",children:_("audience.title")}),g.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:n.map((t,a)=>g.jsxs("div",{className:"bg-wm-card border border-wm-border p-6 hover:border-wm-green/30 transition-colors",children:[g.jsx("div",{className:"text-wm-green mb-4",children:t.icon}),g.jsx("h3",{className:"font-bold mb-2",children:t.title}),g.jsx("p",{className:"text-sm text-wm-muted",children:t.desc})]},a))})]})})},WR=()=>g.jsx("section",{className:"py-24 px-6 border-y border-wm-border bg-[#0a0a0a]",id:"api",children:g.jsxs("div",{className:"max-w-7xl mx-auto grid lg:grid-cols-2 gap-16 items-center",children:[g.jsx("div",{className:"order-2 lg:order-1",children:g.jsxs("div",{className:"bg-black border border-wm-border rounded-lg overflow-hidden font-mono text-sm",children:[g.jsxs("div",{className:"bg-wm-card px-4 py-2 border-b border-wm-border flex items-center gap-2",children:[g.jsx(nO,{className:"w-4 h-4 text-wm-muted","aria-hidden":"true"}),g.jsx("span",{className:"text-wm-muted text-xs",children:"api.worldmonitor.app"})]}),g.jsx("div",{className:"p-6 text-gray-300 overflow-x-auto",children:g.jsx("pre",{children:g.jsxs("code",{children:[g.jsx("span",{className:"text-wm-blue",children:"curl"})," \\",g.jsx("br",{}),g.jsx("span",{className:"text-wm-green",children:'"https://api.worldmonitor.app/v1/intelligence/convergence?region=MENA&time_window=6h"'})," \\",g.jsx("br",{}),"-H ",g.jsx("span",{className:"text-wm-green",children:'"Authorization: Bearer wm_live_xxx"'}),g.jsx("br",{}),g.jsx("br",{}),g.jsx("span",{className:"text-wm-muted",children:"{"}),g.jsx("br",{}),g.jsx("span",{className:"text-wm-blue",children:'"status"'}),": ",g.jsx("span",{className:"text-wm-green",children:'"success"'}),",",g.jsx("br",{}),g.jsx("span",{className:"text-wm-blue",children:'"data"'}),": ",g.jsx("span",{className:"text-wm-muted",children:"["}),g.jsx("br",{}),g.jsx("span",{className:"text-wm-muted",children:"{"}),g.jsx("br",{}),g.jsx("span",{className:"text-wm-blue",children:'"type"'}),": ",g.jsx("span",{className:"text-wm-green",children:'"multi_signal_convergence"'}),",",g.jsx("br",{}),g.jsx("span",{className:"text-wm-blue",children:'"signals"'}),": ",g.jsx("span",{className:"text-wm-muted",children:'["military_flights", "ais_dark_ships", "oref_sirens"]'}),",",g.jsx("br",{}),g.jsx("span",{className:"text-wm-blue",children:'"confidence"'}),": ",g.jsx("span",{className:"text-orange-400",children:"0.92"}),",",g.jsx("br",{}),g.jsx("span",{className:"text-wm-blue",children:'"location"'}),": ",g.jsx("span",{className:"text-wm-muted",children:"{"})," ",g.jsx("span",{className:"text-wm-blue",children:'"lat"'}),": ",g.jsx("span",{className:"text-orange-400",children:"34.05"}),", ",g.jsx("span",{className:"text-wm-blue",children:'"lng"'}),": ",g.jsx("span",{className:"text-orange-400",children:"35.12"})," ",g.jsx("span",{className:"text-wm-muted",children:"}"}),g.jsx("br",{}),g.jsx("span",{className:"text-wm-muted",children:"}"}),g.jsx("br",{}),g.jsx("span",{className:"text-wm-muted",children:"]"}),g.jsx("br",{}),g.jsx("span",{className:"text-wm-muted",children:"}"})]})})})]})}),g.jsxs("div",{className:"order-1 lg:order-2",children:[g.jsx("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full border border-wm-border bg-wm-card text-wm-muted text-xs font-mono mb-6",children:_("apiSection.apiTier")}),g.jsx("h2",{className:"text-3xl md:text-5xl font-display font-bold mb-6",children:_("apiSection.title")}),g.jsx("p",{className:"text-wm-muted mb-8",children:_("apiSection.subtitle")}),g.jsxs("ul",{className:"space-y-4 mb-8",children:[g.jsxs("li",{className:"flex items-start gap-3",children:[g.jsx(Q3,{className:"w-5 h-5 text-wm-muted shrink-0","aria-hidden":"true"}),g.jsx("span",{className:"text-sm",children:_("apiSection.restApi")})]}),g.jsxs("li",{className:"flex items-start gap-3",children:[g.jsx(B3,{className:"w-5 h-5 text-wm-muted shrink-0","aria-hidden":"true"}),g.jsx("span",{className:"text-sm",children:_("apiSection.authenticated")})]}),g.jsxs("li",{className:"flex items-start gap-3",children:[g.jsx(E3,{className:"w-5 h-5 text-wm-muted shrink-0","aria-hidden":"true"}),g.jsx("span",{className:"text-sm",children:_("apiSection.structured")})]})]}),g.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-8 p-4 bg-wm-card border border-wm-border rounded-sm",children:[g.jsxs("div",{children:[g.jsx("p",{className:"font-mono text-xs text-wm-muted uppercase tracking-widest mb-2",children:_("apiSection.starter")}),g.jsx("p",{className:"text-sm font-bold",children:_("apiSection.starterReqs")}),g.jsx("p",{className:"text-xs text-wm-muted",children:_("apiSection.starterWebhooks")})]}),g.jsxs("div",{children:[g.jsx("p",{className:"font-mono text-xs text-wm-muted uppercase tracking-widest mb-2",children:_("apiSection.business")}),g.jsx("p",{className:"text-sm font-bold",children:_("apiSection.businessReqs")}),g.jsx("p",{className:"text-xs text-wm-muted",children:_("apiSection.businessWebhooks")})]})]}),g.jsx("p",{className:"text-sm text-wm-muted border-l-2 border-wm-border pl-4",children:_("apiSection.feedData")})]})]})}),e4=()=>g.jsx("section",{className:"py-24 px-6",id:"enterprise",children:g.jsxs("div",{className:"max-w-7xl mx-auto",children:[g.jsxs("div",{className:"text-center mb-16",children:[g.jsx("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full border border-wm-border bg-wm-card text-wm-muted text-xs font-mono mb-6",children:_("enterpriseShowcase.enterpriseTier")}),g.jsx("h2",{className:"text-3xl md:text-5xl font-display font-bold mb-6",children:_("enterpriseShowcase.title")}),g.jsx("p",{className:"text-wm-muted max-w-2xl mx-auto",children:_("enterpriseShowcase.subtitle")})]}),g.jsxs("div",{className:"grid md:grid-cols-3 gap-6 mb-6",children:[g.jsxs("div",{className:"bg-wm-card border border-wm-border p-6",children:[g.jsx(Ch,{className:"w-8 h-8 text-wm-muted mb-4","aria-hidden":"true"}),g.jsx("h3",{className:"font-bold mb-2",children:_("enterpriseShowcase.security")}),g.jsx("p",{className:"text-sm text-wm-muted",children:_("enterpriseShowcase.securityDesc")})]}),g.jsxs("div",{className:"bg-wm-card border border-wm-border p-6",children:[g.jsx(aS,{className:"w-8 h-8 text-wm-muted mb-4","aria-hidden":"true"}),g.jsx("h3",{className:"font-bold mb-2",children:_("enterpriseShowcase.aiAgents")}),g.jsx("p",{className:"text-sm text-wm-muted",children:_("enterpriseShowcase.aiAgentsDesc")})]}),g.jsxs("div",{className:"bg-wm-card border border-wm-border p-6",children:[g.jsx(rS,{className:"w-8 h-8 text-wm-muted mb-4","aria-hidden":"true"}),g.jsx("h3",{className:"font-bold mb-2",children:_("enterpriseShowcase.dataLayers")}),g.jsx("p",{className:"text-sm text-wm-muted",children:_("enterpriseShowcase.dataLayersDesc")})]})]}),g.jsxs("div",{className:"grid md:grid-cols-3 gap-6 mb-12",children:[g.jsxs("div",{className:"bg-wm-card border border-wm-border p-6",children:[g.jsx(Zl,{className:"w-8 h-8 text-wm-muted mb-4","aria-hidden":"true"}),g.jsx("h3",{className:"font-bold mb-2",children:_("enterpriseShowcase.connectors")}),g.jsx("p",{className:"text-sm text-wm-muted",children:_("enterpriseShowcase.connectorsDesc")})]}),g.jsxs("div",{className:"bg-wm-card border border-wm-border p-6",children:[g.jsx(oS,{className:"w-8 h-8 text-wm-muted mb-4","aria-hidden":"true"}),g.jsx("h3",{className:"font-bold mb-2",children:_("enterpriseShowcase.whiteLabel")}),g.jsx("p",{className:"text-sm text-wm-muted",children:_("enterpriseShowcase.whiteLabelDesc")})]}),g.jsxs("div",{className:"bg-wm-card border border-wm-border p-6",children:[g.jsx(jh,{className:"w-8 h-8 text-wm-muted mb-4","aria-hidden":"true"}),g.jsx("h3",{className:"font-bold mb-2",children:_("enterpriseShowcase.financial")}),g.jsx("p",{className:"text-sm text-wm-muted",children:_("enterpriseShowcase.financialDesc")})]})]}),g.jsxs("div",{className:"data-grid mb-12",children:[g.jsxs("div",{className:"data-cell",children:[g.jsx("h4",{className:"font-mono text-xs text-wm-muted uppercase tracking-widest mb-2",children:_("enterpriseShowcase.commodity")}),g.jsx("p",{className:"text-sm",children:_("enterpriseShowcase.commodityDesc")})]}),g.jsxs("div",{className:"data-cell",children:[g.jsx("h4",{className:"font-mono text-xs text-wm-muted uppercase tracking-widest mb-2",children:_("enterpriseShowcase.government")}),g.jsx("p",{className:"text-sm",children:_("enterpriseShowcase.governmentDesc")})]}),g.jsxs("div",{className:"data-cell",children:[g.jsx("h4",{className:"font-mono text-xs text-wm-muted uppercase tracking-widest mb-2",children:_("enterpriseShowcase.risk")}),g.jsx("p",{className:"text-sm",children:_("enterpriseShowcase.riskDesc")})]}),g.jsxs("div",{className:"data-cell",children:[g.jsx("h4",{className:"font-mono text-xs text-wm-muted uppercase tracking-widest mb-2",children:_("enterpriseShowcase.soc")}),g.jsx("p",{className:"text-sm",children:_("enterpriseShowcase.socDesc")})]})]}),g.jsx("div",{className:"text-center mt-12",children:g.jsxs("a",{href:"#enterprise-contact","aria-label":"Talk to sales about Enterprise plans",className:"inline-flex items-center gap-2 bg-wm-green text-wm-bg px-8 py-3 rounded-sm font-mono text-sm uppercase tracking-wider font-bold hover:bg-green-400 transition-colors",children:[_("enterpriseShowcase.talkToSales")," ",g.jsx(Wi,{className:"w-4 h-4","aria-hidden":"true"})]})})]})}),t4=()=>{const n=[{feature:_("pricingTable.dataRefresh"),free:_("pricingTable.f5_15min"),pro:_("pricingTable.fLt60s"),api:_("pricingTable.fPerRequest"),ent:_("pricingTable.fLiveEdge")},{feature:_("pricingTable.dashboard"),free:_("pricingTable.f50panels"),pro:_("pricingTable.f50panels"),api:"—",ent:_("pricingTable.fWhiteLabel")},{feature:_("pricingTable.ai"),free:_("pricingTable.fBYOK"),pro:_("pricingTable.fIncluded"),api:"—",ent:_("pricingTable.fAgentsPersonas")},{feature:_("pricingTable.briefsAlerts"),free:"—",pro:_("pricingTable.fDailyFlash"),api:"—",ent:_("pricingTable.fTeamDist")},{feature:_("pricingTable.delivery"),free:"—",pro:_("pricingTable.fSlackTgWa"),api:_("pricingTable.fWebhook"),ent:_("pricingTable.fSiemMcp")},{feature:_("pricingTable.apiRow"),free:"—",pro:"—",api:_("pricingTable.fRestWebhook"),ent:_("pricingTable.fMcpBulk")},{feature:_("pricingTable.infraLayers"),free:_("pricingTable.f45"),pro:_("pricingTable.f45"),api:"—",ent:_("pricingTable.fTensOfThousands")},{feature:_("pricingTable.satellite"),free:_("pricingTable.fLiveTracking"),pro:_("pricingTable.fPassAlerts"),api:"—",ent:_("pricingTable.fImagerySar")},{feature:_("pricingTable.connectorsRow"),free:"—",pro:"—",api:"—",ent:_("pricingTable.f100plus")},{feature:_("pricingTable.deployment"),free:_("pricingTable.fCloud"),pro:_("pricingTable.fCloud"),api:_("pricingTable.fCloud"),ent:_("pricingTable.fCloudOnPrem")},{feature:_("pricingTable.securityRow"),free:_("pricingTable.fStandard"),pro:_("pricingTable.fStandard"),api:_("pricingTable.fKeyAuth"),ent:_("pricingTable.fSsoMfa")}];return g.jsxs("section",{className:"py-24 px-6 max-w-7xl mx-auto",children:[g.jsx("div",{className:"text-center mb-16",children:g.jsx("h2",{className:"text-3xl md:text-5xl font-display font-bold mb-6",children:_("pricingTable.title")})}),g.jsxs("div",{className:"hidden md:block",children:[g.jsxs("div",{className:"grid grid-cols-5 gap-4 mb-4 pb-4 border-b border-wm-border font-mono text-xs uppercase tracking-widest text-wm-muted",children:[g.jsx("div",{children:_("pricingTable.feature")}),g.jsx("div",{children:_("pricingTable.freeHeader")}),g.jsx("div",{className:"text-wm-green",children:_("pricingTable.proHeader")}),g.jsx("div",{children:_("pricingTable.apiHeader")}),g.jsx("div",{children:_("pricingTable.entHeader")})]}),n.map((t,a)=>g.jsxs("div",{className:"grid grid-cols-5 gap-4 py-4 border-b border-wm-border/50 text-sm hover:bg-wm-card/50 transition-colors",children:[g.jsx("div",{className:"font-medium",children:t.feature}),g.jsx("div",{className:"text-wm-muted",children:t.free}),g.jsx("div",{className:"text-wm-green",children:t.pro}),g.jsx("div",{className:"text-wm-muted",children:t.api}),g.jsx("div",{className:"text-wm-muted",children:t.ent})]},a))]}),g.jsx("div",{className:"md:hidden space-y-4",children:n.map((t,a)=>g.jsxs("div",{className:"bg-wm-card border border-wm-border p-4 rounded-sm",children:[g.jsx("p",{className:"font-medium text-sm mb-3",children:t.feature}),g.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",children:[g.jsxs("div",{children:[g.jsxs("span",{className:"text-wm-muted",children:[_("tiers.free"),":"]})," ",t.free]}),g.jsxs("div",{children:[g.jsxs("span",{className:"text-wm-green",children:[_("tiers.pro"),":"]})," ",g.jsx("span",{className:"text-wm-green",children:t.pro})]}),g.jsxs("div",{children:[g.jsxs("span",{className:"text-wm-muted",children:[_("nav.api"),":"]})," ",t.api]}),g.jsxs("div",{children:[g.jsxs("span",{className:"text-wm-muted",children:[_("tiers.enterprise"),":"]})," ",t.ent]})]})]},a))}),g.jsx("p",{className:"text-center text-sm text-wm-muted mt-8",children:_("pricingTable.noteBelow")})]})},n4=()=>{const n=[{q:_("faq.q1"),a:_("faq.a1"),open:!0},{q:_("faq.q2"),a:_("faq.a2")},{q:_("faq.q3"),a:_("faq.a3")},{q:_("faq.q4"),a:_("faq.a4")},{q:_("faq.q5"),a:_("faq.a5")},{q:_("faq.q6"),a:_("faq.a6")},{q:_("faq.q7"),a:_("faq.a7")},{q:_("faq.q8"),a:_("faq.a8")},{q:_("faq.q9"),a:_("faq.a9")},{q:_("faq.q10"),a:_("faq.a10")},{q:_("faq.q11"),a:_("faq.a11")},{q:_("faq.q12"),a:_("faq.a12")},{q:_("faq.q13"),a:_("faq.a13")}];return g.jsxs("section",{className:"py-24 px-6 max-w-3xl mx-auto",children:[g.jsx("h2",{className:"text-3xl font-display font-bold mb-12 text-center",children:_("faq.title")}),g.jsx("div",{className:"space-y-4",children:n.map((t,a)=>g.jsxs("details",{open:t.open,className:"group bg-wm-card border border-wm-border rounded-sm [&_summary::-webkit-details-marker]:hidden",children:[g.jsxs("summary",{className:"flex items-center justify-between p-6 cursor-pointer font-medium",children:[t.q,g.jsx(b3,{className:"w-5 h-5 text-wm-muted group-open:rotate-180 transition-transform","aria-hidden":"true"})]}),g.jsx("div",{className:"px-6 pb-6 text-wm-muted text-sm border-t border-wm-border pt-4 mt-2",children:t.a})]},a))})]})},i4=()=>g.jsx("footer",{className:"border-t border-wm-border bg-[#020202] pt-8 pb-12 px-6 text-center",children:g.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between max-w-7xl mx-auto text-xs text-wm-muted font-mono",children:[g.jsxs("div",{className:"flex items-center gap-3 mb-4 md:mb-0",children:[g.jsx("img",{src:"/favico/favicon-32x32.png",alt:"",width:"28",height:"28",className:"rounded-full"}),g.jsxs("div",{className:"flex flex-col",children:[g.jsx("span",{className:"font-display font-bold text-sm leading-none tracking-tight text-wm-text",children:"WORLD MONITOR"}),g.jsx("span",{className:"text-[9px] uppercase tracking-[2px] opacity-60 mt-0.5",children:"by Someone.ceo"})]})]}),g.jsxs("div",{className:"flex items-center gap-6",children:[g.jsx("a",{href:"/",className:"hover:text-wm-text transition-colors",children:"Dashboard"}),g.jsx("a",{href:"https://www.worldmonitor.app/blog/",className:"hover:text-wm-text transition-colors",children:"Blog"}),g.jsx("a",{href:"https://www.worldmonitor.app/docs",className:"hover:text-wm-text transition-colors",children:"Docs"}),g.jsx("a",{href:"https://status.worldmonitor.app/",target:"_blank",rel:"noreferrer",className:"hover:text-wm-text transition-colors",children:"Status"}),g.jsx("a",{href:"https://github.com/koala73/worldmonitor",target:"_blank",rel:"noreferrer",className:"hover:text-wm-text transition-colors",children:"GitHub"}),g.jsx("a",{href:"https://discord.gg/re63kWKxaz",target:"_blank",rel:"noreferrer",className:"hover:text-wm-text transition-colors",children:"Discord"}),g.jsx("a",{href:"https://x.com/worldmonitorai",target:"_blank",rel:"noreferrer",className:"hover:text-wm-text transition-colors",children:"X"})]}),g.jsxs("span",{className:"text-[10px] opacity-40 mt-4 md:mt-0",children:["© ",new Date().getFullYear()," WorldMonitor"]})]})}),a4=()=>g.jsxs("div",{className:"min-h-screen selection:bg-wm-green/30 selection:text-wm-green",children:[g.jsx("nav",{className:"fixed top-0 left-0 right-0 z-50 glass-panel border-b-0 border-x-0 rounded-none","aria-label":"Main navigation",children:g.jsxs("div",{className:"max-w-7xl mx-auto px-6 h-16 flex items-center justify-between",children:[g.jsx("a",{href:"#",onClick:n=>{n.preventDefault(),window.location.hash=""},children:g.jsx(_S,{})}),g.jsxs("div",{className:"hidden md:flex items-center gap-8 text-sm font-mono text-wm-muted",children:[g.jsx("a",{href:"#",onClick:n=>{n.preventDefault(),window.location.hash=""},className:"hover:text-wm-text transition-colors",children:_("nav.pro")}),g.jsx("a",{href:"#enterprise",onClick:n=>{var t;n.preventDefault(),(t=document.getElementById("features"))==null||t.scrollIntoView({behavior:"smooth"})},className:"hover:text-wm-text transition-colors",children:_("nav.enterprise")}),g.jsx("a",{href:"#enterprise-contact",onClick:n=>{var t;n.preventDefault(),(t=document.getElementById("contact"))==null||t.scrollIntoView({behavior:"smooth"})},className:"hover:text-wm-green transition-colors",children:_("enterpriseShowcase.talkToSales")})]}),g.jsx("a",{href:"#enterprise-contact",onClick:n=>{var t;n.preventDefault(),(t=document.getElementById("contact"))==null||t.scrollIntoView({behavior:"smooth"})},className:"bg-wm-green text-wm-bg px-4 py-2 rounded-sm font-mono text-xs uppercase tracking-wider font-bold hover:bg-green-400 transition-colors",children:_("enterpriseShowcase.talkToSales")})]})}),g.jsxs("main",{className:"pt-24",children:[g.jsx("section",{className:"py-24 px-6 text-center",children:g.jsxs("div",{className:"max-w-4xl mx-auto",children:[g.jsx("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full border border-wm-border bg-wm-card text-wm-muted text-xs font-mono mb-6",children:_("enterpriseShowcase.enterpriseTier")}),g.jsx("h2",{className:"text-4xl md:text-6xl font-display font-bold mb-6",children:_("enterpriseShowcase.title")}),g.jsx("p",{className:"text-lg text-wm-muted max-w-2xl mx-auto mb-10",children:_("enterpriseShowcase.subtitle")}),g.jsxs("a",{href:"#enterprise-contact",onClick:n=>{var t;n.preventDefault(),(t=document.getElementById("contact"))==null||t.scrollIntoView({behavior:"smooth"})},className:"inline-flex items-center gap-2 bg-wm-green text-wm-bg px-8 py-3 rounded-sm font-mono text-sm uppercase tracking-wider font-bold hover:bg-green-400 transition-colors",children:[_("enterpriseShowcase.talkToSales")," ",g.jsx(Wi,{className:"w-4 h-4","aria-hidden":"true"})]})]})}),g.jsx("section",{className:"py-24 px-6",id:"features",children:g.jsxs("div",{className:"max-w-7xl mx-auto",children:[g.jsx("h2",{className:"sr-only",children:"Enterprise Features"}),g.jsxs("div",{className:"grid md:grid-cols-3 gap-6 mb-6",children:[g.jsxs("div",{className:"bg-wm-card border border-wm-border p-6",children:[g.jsx(Ch,{className:"w-8 h-8 text-wm-muted mb-4","aria-hidden":"true"}),g.jsx("h3",{className:"font-bold mb-2",children:_("enterpriseShowcase.security")}),g.jsx("p",{className:"text-sm text-wm-muted",children:_("enterpriseShowcase.securityDesc")})]}),g.jsxs("div",{className:"bg-wm-card border border-wm-border p-6",children:[g.jsx(aS,{className:"w-8 h-8 text-wm-muted mb-4","aria-hidden":"true"}),g.jsx("h3",{className:"font-bold mb-2",children:_("enterpriseShowcase.aiAgents")}),g.jsx("p",{className:"text-sm text-wm-muted",children:_("enterpriseShowcase.aiAgentsDesc")})]}),g.jsxs("div",{className:"bg-wm-card border border-wm-border p-6",children:[g.jsx(rS,{className:"w-8 h-8 text-wm-muted mb-4","aria-hidden":"true"}),g.jsx("h3",{className:"font-bold mb-2",children:_("enterpriseShowcase.dataLayers")}),g.jsx("p",{className:"text-sm text-wm-muted",children:_("enterpriseShowcase.dataLayersDesc")})]})]}),g.jsxs("div",{className:"grid md:grid-cols-3 gap-6 mb-12",children:[g.jsxs("div",{className:"bg-wm-card border border-wm-border p-6",children:[g.jsx(Zl,{className:"w-8 h-8 text-wm-muted mb-4","aria-hidden":"true"}),g.jsx("h3",{className:"font-bold mb-2",children:_("enterpriseShowcase.connectors")}),g.jsx("p",{className:"text-sm text-wm-muted",children:_("enterpriseShowcase.connectorsDesc")})]}),g.jsxs("div",{className:"bg-wm-card border border-wm-border p-6",children:[g.jsx(oS,{className:"w-8 h-8 text-wm-muted mb-4","aria-hidden":"true"}),g.jsx("h3",{className:"font-bold mb-2",children:_("enterpriseShowcase.whiteLabel")}),g.jsx("p",{className:"text-sm text-wm-muted",children:_("enterpriseShowcase.whiteLabelDesc")})]}),g.jsxs("div",{className:"bg-wm-card border border-wm-border p-6",children:[g.jsx(jh,{className:"w-8 h-8 text-wm-muted mb-4","aria-hidden":"true"}),g.jsx("h3",{className:"font-bold mb-2",children:_("enterpriseShowcase.financial")}),g.jsx("p",{className:"text-sm text-wm-muted",children:_("enterpriseShowcase.financialDesc")})]})]})]})}),g.jsx("section",{className:"py-24 px-6 border-t border-wm-border",children:g.jsxs("div",{className:"max-w-7xl mx-auto",children:[g.jsx("h2",{className:"text-3xl font-display font-bold mb-12 text-center",children:_("enterpriseShowcase.title")}),g.jsxs("div",{className:"data-grid",children:[g.jsxs("div",{className:"data-cell",children:[g.jsx("h3",{className:"font-mono text-xs text-wm-muted uppercase tracking-widest mb-2",children:_("enterpriseShowcase.commodity")}),g.jsx("p",{className:"text-sm",children:_("enterpriseShowcase.commodityDesc")})]}),g.jsxs("div",{className:"data-cell",children:[g.jsx("h3",{className:"font-mono text-xs text-wm-muted uppercase tracking-widest mb-2",children:_("enterpriseShowcase.government")}),g.jsx("p",{className:"text-sm",children:_("enterpriseShowcase.governmentDesc")})]}),g.jsxs("div",{className:"data-cell",children:[g.jsx("h3",{className:"font-mono text-xs text-wm-muted uppercase tracking-widest mb-2",children:_("enterpriseShowcase.risk")}),g.jsx("p",{className:"text-sm",children:_("enterpriseShowcase.riskDesc")})]}),g.jsxs("div",{className:"data-cell",children:[g.jsx("h3",{className:"font-mono text-xs text-wm-muted uppercase tracking-widest mb-2",children:_("enterpriseShowcase.soc")}),g.jsx("p",{className:"text-sm",children:_("enterpriseShowcase.socDesc")})]})]})]})}),g.jsx("section",{className:"py-24 px-6 border-t border-wm-border",id:"contact",children:g.jsxs("div",{className:"max-w-xl mx-auto",children:[g.jsx("h2",{className:"font-display text-3xl font-bold mb-2 text-center",children:_("enterpriseShowcase.contactFormTitle")}),g.jsx("p",{className:"text-sm text-wm-muted mb-10 text-center",children:_("enterpriseShowcase.contactFormSubtitle")}),g.jsxs("form",{className:"space-y-4",onSubmit:async n=>{var m;n.preventDefault();const t=n.currentTarget,a=t.querySelector('button[type="submit"]'),r=a.textContent;a.disabled=!0,a.textContent=_("enterpriseShowcase.contactSending");const l=new FormData(t),c=((m=t.querySelector('input[name="website"]'))==null?void 0:m.value)||"",f=t.querySelector(".cf-turnstile"),h=(f==null?void 0:f.dataset.token)||"";try{const p=await fetch(`${LR}/contact`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:l.get("email"),name:l.get("name"),organization:l.get("organization"),phone:l.get("phone"),message:l.get("message"),source:"enterprise-contact",website:c,turnstileToken:h})}),v=t.querySelector("[data-form-error]");if(!p.ok){const x=await p.json().catch(()=>({}));if(p.status===422&&v){v.textContent=x.error||_("enterpriseShowcase.workEmailRequired"),v.classList.remove("hidden"),a.textContent=r,a.disabled=!1;return}throw new Error}v&&v.classList.add("hidden"),a.textContent=_("enterpriseShowcase.contactSent"),a.className=a.className.replace("bg-wm-green","bg-wm-card border border-wm-green text-wm-green")}catch{a.textContent=_("enterpriseShowcase.contactFailed"),a.disabled=!1,f!=null&&f.dataset.widgetId&&window.turnstile&&(window.turnstile.reset(f.dataset.widgetId),delete f.dataset.token),setTimeout(()=>{a.textContent=r},4e3)}},children:[g.jsx("input",{type:"text",name:"website",autoComplete:"off",tabIndex:-1,"aria-hidden":"true",className:"absolute opacity-0 h-0 w-0 pointer-events-none"}),g.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g.jsx("input",{type:"text",name:"name",placeholder:_("enterpriseShowcase.namePlaceholder"),required:!0,className:"bg-wm-bg border border-wm-border rounded-sm px-4 py-3 text-sm focus:outline-none focus:border-wm-green transition-colors font-mono"}),g.jsx("input",{type:"email",name:"email",placeholder:_("enterpriseShowcase.emailPlaceholder"),required:!0,className:"bg-wm-bg border border-wm-border rounded-sm px-4 py-3 text-sm focus:outline-none focus:border-wm-green transition-colors font-mono"})]}),g.jsx("span",{"data-form-error":!0,className:"hidden text-red-400 text-xs font-mono block"}),g.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g.jsx("input",{type:"text",name:"organization",placeholder:_("enterpriseShowcase.orgPlaceholder"),required:!0,className:"bg-wm-bg border border-wm-border rounded-sm px-4 py-3 text-sm focus:outline-none focus:border-wm-green transition-colors font-mono"}),g.jsx("input",{type:"tel",name:"phone",placeholder:_("enterpriseShowcase.phonePlaceholder"),required:!0,className:"bg-wm-bg border border-wm-border rounded-sm px-4 py-3 text-sm focus:outline-none focus:border-wm-green transition-colors font-mono"})]}),g.jsx("textarea",{name:"message",placeholder:_("enterpriseShowcase.messagePlaceholder"),rows:4,className:"w-full bg-wm-bg border border-wm-border rounded-sm px-4 py-3 text-sm focus:outline-none focus:border-wm-green transition-colors font-mono resize-none"}),g.jsx("div",{className:"cf-turnstile mx-auto"}),g.jsx("button",{type:"submit",className:"w-full bg-wm-green text-wm-bg py-3 rounded-sm font-mono text-sm uppercase tracking-wider font-bold hover:bg-green-400 transition-colors",children:_("enterpriseShowcase.submitContact")})]})]})})]}),g.jsx("footer",{className:"border-t border-wm-border bg-[#020202] py-8 px-6 text-center",children:g.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between max-w-7xl mx-auto text-xs text-wm-muted font-mono",children:[g.jsxs("div",{className:"flex items-center gap-3 mb-4 md:mb-0",children:[g.jsx("img",{src:"/favico/favicon-32x32.png",alt:"",width:"28",height:"28",className:"rounded-full"}),g.jsxs("div",{className:"flex flex-col",children:[g.jsx("span",{className:"font-display font-bold text-sm leading-none tracking-tight text-wm-text",children:"WORLD MONITOR"}),g.jsx("span",{className:"text-[9px] uppercase tracking-[2px] opacity-60 mt-0.5",children:"by Someone.ceo"})]})]}),g.jsxs("div",{className:"flex items-center gap-6",children:[g.jsx("a",{href:"/",className:"hover:text-wm-text transition-colors",children:"Dashboard"}),g.jsx("a",{href:"https://www.worldmonitor.app/blog/",className:"hover:text-wm-text transition-colors",children:"Blog"}),g.jsx("a",{href:"https://www.worldmonitor.app/docs",className:"hover:text-wm-text transition-colors",children:"Docs"}),g.jsx("a",{href:"https://status.worldmonitor.app/",target:"_blank",rel:"noreferrer",className:"hover:text-wm-text transition-colors",children:"Status"}),g.jsx("a",{href:"https://github.com/koala73/worldmonitor",target:"_blank",rel:"noreferrer",className:"hover:text-wm-text transition-colors",children:"GitHub"}),g.jsx("a",{href:"https://discord.gg/re63kWKxaz",target:"_blank",rel:"noreferrer",className:"hover:text-wm-text transition-colors",children:"Discord"}),g.jsx("a",{href:"https://x.com/worldmonitorai",target:"_blank",rel:"noreferrer",className:"hover:text-wm-text transition-colors",children:"X"})]}),g.jsxs("span",{className:"text-[10px] opacity-40 mt-4 md:mt-0",children:["© ",new Date().getFullYear()," WorldMonitor"]})]})})]});function s4(){const[n,t]=ee.useState(()=>window.location.hash.startsWith("#enterprise")?"enterprise":"home");return ee.useEffect(()=>{wR(()=>{const a=document.createElement("div");Object.assign(a.style,{position:"fixed",top:"0",left:"0",right:"0",zIndex:"99999",padding:"14px 20px",background:"linear-gradient(135deg, #16a34a, #22c55e)",color:"#fff",fontWeight:"600",fontSize:"14px",textAlign:"center",boxShadow:"0 2px 12px rgba(0,0,0,0.3)",transition:"opacity 0.4s ease, transform 0.4s ease",transform:"translateY(-100%)",opacity:"0"}),a.textContent="Payment received! Unlocking your premium features...",document.body.appendChild(a),requestAnimationFrame(()=>{a.style.transform="translateY(0)",a.style.opacity="1"}),setTimeout(()=>{window.location.href="https://worldmonitor.app"},3e3)})},[]),ee.useEffect(()=>{const a=()=>{const r=window.location.hash,l=r.startsWith("#enterprise")?"enterprise":"home",c=n==="enterprise";t(l),l==="enterprise"&&!c&&window.scrollTo(0,0),r==="#enterprise-contact"&&setTimeout(()=>{var f;(f=document.getElementById("contact"))==null||f.scrollIntoView({behavior:"smooth"})},c?0:100)};return window.addEventListener("hashchange",a),()=>window.removeEventListener("hashchange",a)},[n]),ee.useEffect(()=>{n==="enterprise"&&window.location.hash==="#enterprise-contact"&&setTimeout(()=>{var a;(a=document.getElementById("contact"))==null||a.scrollIntoView({behavior:"smooth"})},100)},[]),n==="enterprise"?g.jsx(a4,{}):g.jsxs("div",{className:"min-h-screen selection:bg-wm-green/30 selection:text-wm-green",children:[g.jsx(HR,{}),g.jsxs("main",{children:[g.jsx(IR,{}),g.jsx(QR,{}),g.jsx(KR,{}),g.jsx(YR,{}),g.jsx(GR,{}),g.jsx(ZR,{}),g.jsx(XR,{}),g.jsx(JR,{}),g.jsx(FR,{}),g.jsx($R,{}),g.jsx(MR,{refCode:BR()}),g.jsx(t4,{}),g.jsx(WR,{}),g.jsx(e4,{}),g.jsx(n4,{})]}),g.jsx(i4,{})]})}const r4=void 0;ZN({dsn:void 0,environment:location.hostname==="worldmonitor.app"||location.hostname.endsWith(".worldmonitor.app")?"production":location.hostname.includes("vercel.app")?"preview":"development",enabled:!!r4&&!location.hostname.startsWith("localhost"),allowUrls:[/https?:\/\/(www\.|tech\.|finance\.|commodity\.|happy\.)?worldmonitor\.app/,/https?:\/\/.*\.vercel\.app/],tracesSampleRate:.1,ignoreErrors:[/ResizeObserver loop/,/^TypeError: Load failed/,/^TypeError: Failed to fetch/,/^TypeError: NetworkError/,/Non-Error promise rejection captured with value:/]});const o4='script[src^="https://challenges.cloudflare.com/turnstile/v0/api.js"]';xR().then(()=>{aD.createRoot(document.getElementById("root")).render(g.jsx(ee.StrictMode,{children:g.jsx(s4,{})}));const n=()=>window.turnstile?VR()>0:!1,t=document.querySelector(o4);if(t==null||t.addEventListener("load",()=>{n()},{once:!0}),!n()){let a=0;const r=window.setInterval(()=>{(n()||++a>=20)&&window.clearInterval(r)},500)}window.addEventListener("hashchange",()=>{let a=0;const r=()=>{n()||++a>=10||setTimeout(r,200)};setTimeout(r,100)})});
|