conductor-remote 1.2.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,40 @@
1
+ (function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();function Af(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var zc={exports:{}},Yr={};var rg;function i0(){if(rg)return Yr;rg=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(a,o,s){var c=null;if(s!==void 0&&(c=""+s),o.key!==void 0&&(c=""+o.key),"key"in o){s={};for(var d in o)d!=="key"&&(s[d]=o[d])}else s=o;return o=s.ref,{$$typeof:t,type:a,key:c,ref:o!==void 0?o:null,props:s}}return Yr.Fragment=l,Yr.jsx=r,Yr.jsxs=r,Yr}var ag;function r0(){return ag||(ag=1,zc.exports=i0()),zc.exports}var _=r0();const a0="modulepreload",u0=function(t){return"/"+t},ug={},o0=function(l,r,a){let o=Promise.resolve();if(r&&r.length>0){let p=function(y){return Promise.all(y.map(g=>Promise.resolve(g).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};var c=p;document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),m=d?.nonce||d?.getAttribute("nonce");o=p(r.map(y=>{if(y=u0(y),y in ug)return;ug[y]=!0;const g=y.endsWith(".css"),v=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${v}`))return;const x=document.createElement("link");if(x.rel=g?"stylesheet":a0,g||(x.as="script"),x.crossOrigin="",x.href=y,m&&x.setAttribute("nonce",m),document.head.appendChild(x),g)return new Promise((E,A)=>{x.addEventListener("load",E),x.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${y}`)))})}))}function s(d){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=d,window.dispatchEvent(m),!m.defaultPrevented)throw d}return o.then(d=>{for(const m of d||[])m.status==="rejected"&&s(m.reason);return l().catch(s)})};function s0(t={}){const{immediate:l=!1,onNeedReload:r,onNeedRefresh:a,onOfflineReady:o,onRegistered:s,onRegisteredSW:c,onRegisterError:d}=t;let m,p;const y=async(v=!0)=>{await p};async function g(){if("serviceWorker"in navigator){if(m=await o0(async()=>{const{Workbox:v}=await import("./workbox-window.prod.es5-BBnX5xw4.js");return{Workbox:v}},[]).then(({Workbox:v})=>new v("/sw.js",{scope:"/",type:"classic"})).catch(v=>{d?.(v)}),!m)return;m.addEventListener("activated",v=>{(v.isUpdate||v.isExternal)&&(r?r():window.location.reload())}),m.addEventListener("installed",v=>{v.isUpdate||o?.()}),m.register({immediate:l}).then(v=>{c?c("/sw.js",v):s?.(v)}).catch(v=>{d?.(v)})}}return p=g(),y}var ca=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},c0=class extends ca{#e;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const l=()=>t();return window.addEventListener("visibilitychange",l,!1),()=>{window.removeEventListener("visibilitychange",l)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(l=>{l(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},zf=new c0,f0={setTimeout:(t,l)=>setTimeout(t,l),clearTimeout:t=>clearTimeout(t),setInterval:(t,l)=>setInterval(t,l),clearInterval:t=>clearInterval(t)},h0=class{#e=f0;#t=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,l){return this.#e.setTimeout(t,l)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,l){return this.#e.setInterval(t,l)}clearInterval(t){this.#e.clearInterval(t)}},Jl=new h0;function d0(t){setTimeout(t,0)}var m0=typeof window>"u"||"Deno"in globalThis;function Bt(){}function p0(t,l){return typeof t=="function"?t(l):t}function lf(t){return typeof t=="number"&&t>=0&&t!==1/0}function Ly(t,l){return Math.max(t+(l||0)-Date.now(),0)}function Tl(t,l){return typeof t=="function"?t(l):t}function Kt(t,l){return typeof t=="function"?t(l):t}function og(t,l){const{type:r="all",exact:a,fetchStatus:o,predicate:s,queryKey:c,stale:d}=t;if(c){if(a){if(l.queryHash!==Rf(c,l.options))return!1}else if(!ia(l.queryKey,c))return!1}if(r!=="all"){const m=l.isActive();if(r==="active"&&!m||r==="inactive"&&m)return!1}return!(typeof d=="boolean"&&l.isStale()!==d||o&&o!==l.state.fetchStatus||s&&!s(l))}function sg(t,l){const{exact:r,status:a,predicate:o,mutationKey:s}=t;if(s){if(!l.options.mutationKey)return!1;if(r){if(la(l.options.mutationKey)!==la(s))return!1}else if(!ia(l.options.mutationKey,s))return!1}return!(a&&l.state.status!==a||o&&!o(l))}function Rf(t,l){return(l?.queryKeyHashFn||la)(t)}function la(t){return JSON.stringify(t,(l,r)=>af(r)?Object.keys(r).sort().reduce((a,o)=>(a[o]=r[o],a),{}):r)}function ia(t,l){return t===l?!0:typeof t!=typeof l?!1:t&&l&&typeof t=="object"&&typeof l=="object"?Object.keys(l).every(r=>ia(t[r],l[r])):!1}var g0=Object.prototype.hasOwnProperty;function Uy(t,l,r=0){if(t===l)return t;if(r>500)return l;const a=cg(t)&&cg(l);if(!a&&!(af(t)&&af(l)))return l;const s=(a?t:Object.keys(t)).length,c=a?l:Object.keys(l),d=c.length,m=a?new Array(d):{};let p=0;for(let y=0;y<d;y++){const g=a?y:c[y],v=t[g],x=l[g];if(v===x){m[g]=v,(a?y<s:g0.call(t,g))&&p++;continue}if(v===null||x===null||typeof v!="object"||typeof x!="object"){m[g]=x;continue}const E=Uy(v,x,r+1);m[g]=E,E===v&&p++}return s===d&&p===s?t:m}function rf(t,l){if(!l||Object.keys(t).length!==Object.keys(l).length)return!1;for(const r in t)if(t[r]!==l[r])return!1;return!0}function cg(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function af(t){if(!fg(t))return!1;const l=t.constructor;if(l===void 0)return!0;const r=l.prototype;return!(!fg(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function fg(t){return Object.prototype.toString.call(t)==="[object Object]"}function y0(t){return new Promise(l=>{Jl.setTimeout(l,t)})}function uf(t,l,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,l):r.structuralSharing!==!1?Uy(t,l):l}function b0(t,l,r=0){const a=[...t,l];return r&&a.length>r?a.slice(1):a}function v0(t,l,r=0){const a=[l,...t];return r&&a.length>r?a.slice(0,-1):a}var Of=Symbol();function By(t,l){return!t.queryFn&&l?.initialPromise?()=>l.initialPromise:!t.queryFn||t.queryFn===Of?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Hy(t,l){return typeof t=="function"?t(...l):!!t}function x0(t,l,r){let a=!1,o;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(o??=l(),a||(a=!0,o.aborted?r():o.addEventListener("abort",r,{once:!0})),o)}),t}var ra=(()=>{let t=()=>m0;return{isServer(){return t()},setIsServer(l){t=l}}})();function of(){let t,l;const r=new Promise((o,s)=>{t=o,l=s});r.status="pending",r.catch(()=>{});function a(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{a({status:"fulfilled",value:o}),t(o)},r.reject=o=>{a({status:"rejected",reason:o}),l(o)},r}var S0=d0;function k0(){let t=[],l=0,r=d=>{d()},a=d=>{d()},o=S0;const s=d=>{l?t.push(d):o(()=>{r(d)})},c=()=>{const d=t;t=[],d.length&&o(()=>{a(()=>{d.forEach(m=>{r(m)})})})};return{batch:d=>{let m;l++;try{m=d()}finally{l--,l||c()}return m},batchCalls:d=>(...m)=>{s(()=>{d(...m)})},schedule:s,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{a=d},setScheduler:d=>{o=d}}}var bt=k0(),w0=class extends ca{#e=!0;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const l=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",l,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",l),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(r=>{r(t)}))}isOnline(){return this.#e}},Iu=new w0;function E0(t){return Math.min(1e3*2**t,3e4)}function qy(t){return(t??"online")==="online"?Iu.isOnline():!0}var sf=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function Qy(t){let l=!1,r=0,a;const o=of(),s=()=>o.status!=="pending",c=A=>{if(!s()){const z=new sf(A);v(z),t.onCancel?.(z)}},d=()=>{l=!0},m=()=>{l=!1},p=()=>zf.isFocused()&&(t.networkMode==="always"||Iu.isOnline())&&t.canRun(),y=()=>qy(t.networkMode)&&t.canRun(),g=A=>{s()||(a?.(),o.resolve(A))},v=A=>{s()||(a?.(),o.reject(A))},x=()=>new Promise(A=>{a=z=>{(s()||p())&&A(z)},t.onPause?.()}).then(()=>{a=void 0,s()||t.onContinue?.()}),E=()=>{if(s())return;let A;const z=r===0?t.initialPromise:void 0;try{A=z??t.fn()}catch(C){A=Promise.reject(C)}Promise.resolve(A).then(g).catch(C=>{if(s())return;const B=t.retry??(ra.isServer()?0:3),j=t.retryDelay??E0,W=typeof j=="function"?j(r,C):j,ee=B===!0||typeof B=="number"&&r<B||typeof B=="function"&&B(r,C);if(l||!ee){v(C);return}r++,t.onFail?.(r,C),y0(W).then(()=>p()?void 0:x()).then(()=>{l?v(C):E()})})};return{promise:o,status:()=>o.status,cancel:c,continue:()=>(a?.(),o),cancelRetry:d,continueRetry:m,canStart:y,start:()=>(y()?E():x().then(E),o)}}var Gy=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),lf(this.gcTime)&&(this.#e=Jl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(ra.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Jl.clearTimeout(this.#e),this.#e=void 0)}};function C0(t){return{onFetch:(l,r)=>{const a=l.options,o=l.fetchOptions?.meta?.fetchMore?.direction,s=l.state.data?.pages||[],c=l.state.data?.pageParams||[];let d={pages:[],pageParams:[]},m=0;const p=async()=>{let y=!1;const g=E=>{x0(E,()=>l.signal,()=>y=!0)},v=By(l.options,l.fetchOptions),x=async(E,A,z)=>{if(y)return Promise.reject(l.signal.reason);if(A==null&&E.pages.length)return Promise.resolve(E);const B=(()=>{const Q={client:l.client,queryKey:l.queryKey,pageParam:A,direction:z?"backward":"forward",meta:l.options.meta};return g(Q),Q})(),j=await v(B),{maxPages:W}=l.options,ee=z?v0:b0;return{pages:ee(E.pages,j,W),pageParams:ee(E.pageParams,A,W)}};if(o&&s.length){const E=o==="backward",A=E?T0:hg,z={pages:s,pageParams:c},C=A(a,z);d=await x(z,C,E)}else{const E=t??s.length;do{const A=m===0?c[0]??a.initialPageParam:hg(a,d);if(m>0&&A==null)break;d=await x(d,A),m++}while(m<E)}return d};l.options.persister?l.fetchFn=()=>l.options.persister?.(p,{client:l.client,queryKey:l.queryKey,meta:l.options.meta,signal:l.signal},r):l.fetchFn=p}}}function hg(t,{pages:l,pageParams:r}){const a=l.length-1;return l.length>0?t.getNextPageParam(l[a],l,r[a],r):void 0}function T0(t,{pages:l,pageParams:r}){return l.length>0?t.getPreviousPageParam?.(l[0],l,r[0],r):void 0}var A0=class extends Gy{#e;#t;#n;#l;#r;#i;#u;#a;constructor(t){super(),this.#a=!1,this.#u=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#r=t.client,this.#l=this.#r.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#t=mg(this.options),this.state=t.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#i?.promise}setOptions(t){if(this.options={...this.#u,...t},t?._type&&(this.#e=t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const l=mg(this.options);l.data!==void 0&&(this.setState(dg(l.data,l.dataUpdatedAt)),this.#t=l)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#l.remove(this)}setData(t,l){const r=uf(this.state.data,t,this.options);return this.#o({data:r,type:"success",dataUpdatedAt:l?.updatedAt,manual:l?.manual}),r}setState(t){this.#o({type:"setState",state:t})}cancel(t){const l=this.#i?.promise;return this.#i?.cancel(t),l?l.then(Bt).catch(Bt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Kt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Of||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Tl(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Ly(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(l=>l.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(l=>l.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#l.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(l=>l!==t),this.observers.length||(this.#i&&(this.#a||this.#c()?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#l.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(t,l){if(this.state.fetchStatus!=="idle"&&this.#i?.status()!=="rejected"){if(this.state.data!==void 0&&l?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(p=>p.options.queryFn);m&&this.setOptions(m.options)}const r=new AbortController,a=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#a=!0,r.signal)})},o=()=>{const m=By(this.options,l),y=(()=>{const g={client:this.#r,queryKey:this.queryKey,meta:this.meta};return a(g),g})();return this.#a=!1,this.options.persister?this.options.persister(m,y,this):m(y)},c=(()=>{const m={fetchOptions:l,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:o};return a(m),m})();(this.#e==="infinite"?C0(this.options.pages):this.options.behavior)?.onFetch(c,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#o({type:"fetch",meta:c.fetchOptions?.meta}),this.#i=Qy({initialPromise:l?.initialPromise,fn:c.fetchFn,onCancel:m=>{m instanceof sf&&m.revert&&this.setState({...this.#n,fetchStatus:"idle"}),r.abort()},onFail:(m,p)=>{this.#o({type:"failed",failureCount:m,error:p})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const m=await this.#i.start();if(m===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(m),this.#l.config.onSuccess?.(m,this),this.#l.config.onSettled?.(m,this.state.error,this),m}catch(m){if(m instanceof sf){if(m.silent)return this.#i.promise;if(m.revert){if(this.state.data===void 0)throw m;return this.state.data}}throw this.#o({type:"error",error:m}),this.#l.config.onError?.(m,this),this.#l.config.onSettled?.(this.state.data,m,this),m}finally{this.scheduleGc()}}#o(t){const l=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Fy(r.data,this.options),fetchMeta:t.meta??null};case"success":const a={...r,...dg(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=t.manual?a:void 0,a;case"error":const o=t.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=l(this.state),bt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#l.notify({query:this,type:"updated",action:t})})}};function Fy(t,l){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:qy(l.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function dg(t,l){return{data:t,dataUpdatedAt:l??Date.now(),error:null,isInvalidated:!1,status:"success"}}function mg(t){const l=typeof t.initialData=="function"?t.initialData():t.initialData,r=l!==void 0,a=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:l,dataUpdateCount:0,dataUpdatedAt:r?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var z0=class extends ca{constructor(t,l){super(),this.options=l,this.#e=t,this.#a=null,this.#u=of(),this.bindMethods(),this.setOptions(l)}#e;#t=void 0;#n=void 0;#l=void 0;#r;#i;#u;#a;#c;#o;#m;#f;#h;#s;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),pg(this.#t,this.options)?this.#d():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return cf(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return cf(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#t.removeObserver(this)}setOptions(t){const l=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Kt(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#k(),this.#t.setOptions(this.options),l._defaulted&&!rf(this.options,l)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const a=this.hasListeners();a&&gg(this.#t,r,this.options,l)&&this.#d(),this.updateResult(),a&&(this.#t!==r||Kt(this.options.enabled,this.#t)!==Kt(l.enabled,this.#t)||Tl(this.options.staleTime,this.#t)!==Tl(l.staleTime,this.#t))&&this.#g();const o=this.#y();a&&(this.#t!==r||Kt(this.options.enabled,this.#t)!==Kt(l.enabled,this.#t)||o!==this.#s)&&this.#b(o)}getOptimisticResult(t){const l=this.#e.getQueryCache().build(this.#e,t),r=this.createResult(l,t);return O0(this,r)&&(this.#l=r,this.#i=this.options,this.#r=this.#t.state),r}getCurrentResult(){return this.#l}trackResult(t,l){return new Proxy(t,{get:(r,a)=>(this.trackProp(a),l?.(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#u.status==="pending"&&this.#u.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,a))})}trackProp(t){this.#p.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const l=this.#e.defaultQueryOptions(t),r=this.#e.getQueryCache().build(this.#e,l);return r.fetch().then(()=>this.createResult(r,l))}fetch(t){return this.#d({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#l))}#d(t){this.#k();let l=this.#t.fetch(this.options,t);return t?.throwOnError||(l=l.catch(Bt)),l}#g(){this.#x();const t=Tl(this.options.staleTime,this.#t);if(ra.isServer()||this.#l.isStale||!lf(t))return;const r=Ly(this.#l.dataUpdatedAt,t)+1;this.#f=Jl.setTimeout(()=>{this.#l.isStale||this.updateResult()},r)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#b(t){this.#S(),this.#s=t,!(ra.isServer()||Kt(this.options.enabled,this.#t)===!1||!lf(this.#s)||this.#s===0)&&(this.#h=Jl.setInterval(()=>{(this.options.refetchIntervalInBackground||zf.isFocused())&&this.#d()},this.#s))}#v(){this.#g(),this.#b(this.#y())}#x(){this.#f!==void 0&&(Jl.clearTimeout(this.#f),this.#f=void 0)}#S(){this.#h!==void 0&&(Jl.clearInterval(this.#h),this.#h=void 0)}createResult(t,l){const r=this.#t,a=this.options,o=this.#l,s=this.#r,c=this.#i,m=t!==r?t.state:this.#n,{state:p}=t;let y={...p},g=!1,v;if(l._optimisticResults){const V=this.hasListeners(),ae=!V&&pg(t,l),q=V&&gg(t,r,l,a);(ae||q)&&(y={...y,...Fy(p.data,t.options)}),l._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:x,errorUpdatedAt:E,status:A}=y;v=y.data;let z=!1;if(l.placeholderData!==void 0&&v===void 0&&A==="pending"){let V;o?.isPlaceholderData&&l.placeholderData===c?.placeholderData?(V=o.data,z=!0):V=typeof l.placeholderData=="function"?l.placeholderData(this.#m?.state.data,this.#m):l.placeholderData,V!==void 0&&(A="success",v=uf(o?.data,V,l),g=!0)}if(l.select&&v!==void 0&&!z)if(o&&v===s?.data&&l.select===this.#c)v=this.#o;else try{this.#c=l.select,v=l.select(v),v=uf(o?.data,v,l),this.#o=v,this.#a=null}catch(V){this.#a=V}this.#a&&(x=this.#a,v=this.#o,E=Date.now(),A="error");const C=y.fetchStatus==="fetching",B=A==="pending",j=A==="error",W=B&&C,ee=v!==void 0,J={status:A,fetchStatus:y.fetchStatus,isPending:B,isSuccess:A==="success",isError:j,isInitialLoading:W,isLoading:W,data:v,dataUpdatedAt:y.dataUpdatedAt,error:x,errorUpdatedAt:E,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:y.dataUpdateCount>m.dataUpdateCount||y.errorUpdateCount>m.errorUpdateCount,isFetching:C,isRefetching:C&&!B,isLoadingError:j&&!ee,isPaused:y.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:j&&ee,isStale:_f(t,l),refetch:this.refetch,promise:this.#u,isEnabled:Kt(l.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const V=J.data!==void 0,ae=J.status==="error"&&!V,q=ye=>{ae?ye.reject(J.error):V&&ye.resolve(J.data)},ie=()=>{const ye=this.#u=J.promise=of();q(ye)},te=this.#u;switch(te.status){case"pending":t.queryHash===r.queryHash&&q(te);break;case"fulfilled":(ae||J.data!==te.value)&&ie();break;case"rejected":(!ae||J.error!==te.reason)&&ie();break}}return J}updateResult(){const t=this.#l,l=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#i=this.options,this.#r.data!==void 0&&(this.#m=this.#t),rf(l,t))return;this.#l=l;const r=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!this.#p.size)return!0;const s=new Set(o??this.#p);return this.options.throwOnError&&s.add("error"),Object.keys(this.#l).some(c=>{const d=c;return this.#l[d]!==t[d]&&s.has(d)})};this.#w({listeners:r()})}#k(){const t=this.#e.getQueryCache().build(this.#e,this.options);if(t===this.#t)return;const l=this.#t;this.#t=t,this.#n=t.state,this.hasListeners()&&(l?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#w(t){bt.batch(()=>{t.listeners&&this.listeners.forEach(l=>{l(this.#l)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function R0(t,l){return Kt(l.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&Kt(l.retryOnMount,t)===!1)}function pg(t,l){return R0(t,l)||t.state.data!==void 0&&cf(t,l,l.refetchOnMount)}function cf(t,l,r){if(Kt(l.enabled,t)!==!1&&Tl(l.staleTime,t)!=="static"){const a=typeof r=="function"?r(t):r;return a==="always"||a!==!1&&_f(t,l)}return!1}function gg(t,l,r,a){return(t!==l||Kt(a.enabled,t)===!1)&&(!r.suspense||t.state.status!=="error")&&_f(t,r)}function _f(t,l){return Kt(l.enabled,t)!==!1&&t.isStaleByTime(Tl(l.staleTime,t))}function O0(t,l){return!rf(t.getCurrentResult(),l)}var _0=class extends Gy{#e;#t;#n;#l;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#n=t.mutationCache,this.#t=[],this.state=t.state||M0(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(l=>l!==t),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(t){const l=()=>{this.#r({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#l=Qy({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(s,c)=>{this.#r({type:"failed",failureCount:s,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:l,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const a=this.state.status==="pending",o=!this.#l.canStart();try{if(a)l();else{this.#r({type:"pending",variables:t,isPaused:o}),this.#n.config.onMutate&&await this.#n.config.onMutate(t,this,r);const c=await this.options.onMutate?.(t,r);c!==this.state.context&&this.#r({type:"pending",context:c,variables:t,isPaused:o})}const s=await this.#l.start();return await this.#n.config.onSuccess?.(s,t,this.state.context,this,r),await this.options.onSuccess?.(s,t,this.state.context,r),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(s,null,t,this.state.context,r),this.#r({type:"success",data:s}),s}catch(s){try{await this.#n.config.onError?.(s,t,this.state.context,this,r)}catch(c){Promise.reject(c)}try{await this.options.onError?.(s,t,this.state.context,r)}catch(c){Promise.reject(c)}try{await this.#n.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,r)}catch(c){Promise.reject(c)}try{await this.options.onSettled?.(void 0,s,t,this.state.context,r)}catch(c){Promise.reject(c)}throw this.#r({type:"error",error:s}),s}finally{this.#n.runNext(this)}}#r(t){const l=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=l(this.state),bt.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(t)}),this.#n.notify({mutation:this,type:"updated",action:t})})}};function M0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var D0=class extends ca{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(t,l,r){const a=new _0({client:t,mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(l),state:r});return this.add(a),a}add(t){this.#e.add(t);const l=ju(t);if(typeof l=="string"){const r=this.#t.get(l);r?r.push(t):this.#t.set(l,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const l=ju(t);if(typeof l=="string"){const r=this.#t.get(l);if(r)if(r.length>1){const a=r.indexOf(t);a!==-1&&r.splice(a,1)}else r[0]===t&&this.#t.delete(l)}}this.notify({type:"removed",mutation:t})}canRun(t){const l=ju(t);if(typeof l=="string"){const a=this.#t.get(l)?.find(o=>o.state.status==="pending");return!a||a===t}else return!0}runNext(t){const l=ju(t);return typeof l=="string"?this.#t.get(l)?.find(a=>a!==t&&a.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){bt.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const l={exact:!0,...t};return this.getAll().find(r=>sg(l,r))}findAll(t={}){return this.getAll().filter(l=>sg(t,l))}notify(t){bt.batch(()=>{this.listeners.forEach(l=>{l(t)})})}resumePausedMutations(){const t=this.getAll().filter(l=>l.state.isPaused);return bt.batch(()=>Promise.all(t.map(l=>l.continue().catch(Bt))))}};function ju(t){return t.options.scope?.id}var N0=class extends ca{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,l,r){const a=l.queryKey,o=l.queryHash??Rf(a,l);let s=this.get(o);return s||(s=new A0({client:t,queryKey:a,queryHash:o,options:t.defaultQueryOptions(l),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(s)),s}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const l=this.#e.get(t.queryHash);l&&(t.destroy(),l===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){bt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const l={exact:!0,...t};return this.getAll().find(r=>og(l,r))}findAll(t={}){const l=this.getAll();return Object.keys(t).length>0?l.filter(r=>og(t,r)):l}notify(t){bt.batch(()=>{this.listeners.forEach(l=>{l(t)})})}onFocus(){bt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){bt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},j0=class{#e;#t;#n;#l;#r;#i;#u;#a;constructor(t={}){this.#e=t.queryCache||new N0,this.#t=t.mutationCache||new D0,this.#n=t.defaultOptions||{},this.#l=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#u=zf.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=Iu.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#u?.(),this.#u=void 0,this.#a?.(),this.#a=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const l=this.defaultQueryOptions({queryKey:t});return this.#e.get(l.queryHash)?.state.data}ensureQueryData(t){const l=this.defaultQueryOptions(t),r=this.#e.build(this,l),a=r.state.data;return a===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(Tl(l.staleTime,r))&&this.prefetchQuery(l),Promise.resolve(a))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:l,state:r})=>{const a=r.data;return[l,a]})}setQueryData(t,l,r){const a=this.defaultQueryOptions({queryKey:t}),s=this.#e.get(a.queryHash)?.state.data,c=p0(l,s);if(c!==void 0)return this.#e.build(this,a).setData(c,{...r,manual:!0})}setQueriesData(t,l,r){return bt.batch(()=>this.#e.findAll(t).map(({queryKey:a})=>[a,this.setQueryData(a,l,r)]))}getQueryState(t){const l=this.defaultQueryOptions({queryKey:t});return this.#e.get(l.queryHash)?.state}removeQueries(t){const l=this.#e;bt.batch(()=>{l.findAll(t).forEach(r=>{l.remove(r)})})}resetQueries(t,l){const r=this.#e;return bt.batch(()=>(r.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...t},l)))}cancelQueries(t,l={}){const r={revert:!0,...l},a=bt.batch(()=>this.#e.findAll(t).map(o=>o.cancel(r)));return Promise.all(a).then(Bt).catch(Bt)}invalidateQueries(t,l={}){return bt.batch(()=>(this.#e.findAll(t).forEach(r=>{r.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},l)))}refetchQueries(t,l={}){const r={...l,cancelRefetch:l.cancelRefetch??!0},a=bt.batch(()=>this.#e.findAll(t).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,r);return r.throwOnError||(s=s.catch(Bt)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(a).then(Bt)}fetchQuery(t){const l=this.defaultQueryOptions(t);l.retry===void 0&&(l.retry=!1);const r=this.#e.build(this,l);return r.isStaleByTime(Tl(l.staleTime,r))?r.fetch(l):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Bt).catch(Bt)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Bt).catch(Bt)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return Iu.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,l){this.#l.set(la(t),{queryKey:t,defaultOptions:l})}getQueryDefaults(t){const l=[...this.#l.values()],r={};return l.forEach(a=>{ia(t,a.queryKey)&&Object.assign(r,a.defaultOptions)}),r}setMutationDefaults(t,l){this.#r.set(la(t),{mutationKey:t,defaultOptions:l})}getMutationDefaults(t){const l=[...this.#r.values()],r={};return l.forEach(a=>{ia(t,a.mutationKey)&&Object.assign(r,a.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const l={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return l.queryHash||(l.queryHash=Rf(l.queryKey,l)),l.refetchOnReconnect===void 0&&(l.refetchOnReconnect=l.networkMode!=="always"),l.throwOnError===void 0&&(l.throwOnError=!!l.suspense),!l.networkMode&&l.persister&&(l.networkMode="offlineFirst"),l.queryFn===Of&&(l.enabled=!1),l}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Rc={exports:{}},Se={};var yg;function L0(){if(yg)return Se;yg=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function x(R){return R===null||typeof R!="object"?null:(R=v&&R[v]||R["@@iterator"],typeof R=="function"?R:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,z={};function C(R,Y,w){this.props=R,this.context=Y,this.refs=z,this.updater=w||E}C.prototype.isReactComponent={},C.prototype.setState=function(R,Y){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,Y,"setState")},C.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function B(){}B.prototype=C.prototype;function j(R,Y,w){this.props=R,this.context=Y,this.refs=z,this.updater=w||E}var W=j.prototype=new B;W.constructor=j,A(W,C.prototype),W.isPureReactComponent=!0;var ee=Array.isArray;function Q(){}var J={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function ae(R,Y,w){var le=w.ref;return{$$typeof:t,type:R,key:Y,ref:le!==void 0?le:null,props:w}}function q(R,Y){return ae(R.type,Y,R.props)}function ie(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function te(R){var Y={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(w){return Y[w]})}var ye=/\/+/g;function ue(R,Y){return typeof R=="object"&&R!==null&&R.key!=null?te(""+R.key):Y.toString(36)}function P(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(Q,Q):(R.status="pending",R.then(function(Y){R.status==="pending"&&(R.status="fulfilled",R.value=Y)},function(Y){R.status==="pending"&&(R.status="rejected",R.reason=Y)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function N(R,Y,w,le,se){var re=typeof R;(re==="undefined"||re==="boolean")&&(R=null);var Ee=!1;if(R===null)Ee=!0;else switch(re){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(R.$$typeof){case t:case l:Ee=!0;break;case y:return Ee=R._init,N(Ee(R._payload),Y,w,le,se)}}if(Ee)return se=se(R),Ee=le===""?"."+ue(R,0):le,ee(se)?(w="",Ee!=null&&(w=Ee.replace(ye,"$&/")+"/"),N(se,Y,w,"",function(kt){return kt})):se!=null&&(ie(se)&&(se=q(se,w+(se.key==null||R&&R.key===se.key?"":(""+se.key).replace(ye,"$&/")+"/")+Ee)),Y.push(se)),1;Ee=0;var Ye=le===""?".":le+":";if(ee(R))for(var ve=0;ve<R.length;ve++)le=R[ve],re=Ye+ue(le,ve),Ee+=N(le,Y,w,re,se);else if(ve=x(R),typeof ve=="function")for(R=ve.call(R),ve=0;!(le=R.next()).done;)le=le.value,re=Ye+ue(le,ve++),Ee+=N(le,Y,w,re,se);else if(re==="object"){if(typeof R.then=="function")return N(P(R),Y,w,le,se);throw Y=String(R),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function K(R,Y,w){if(R==null)return R;var le=[],se=0;return N(R,le,"","",function(re){return Y.call(w,re,se++)}),le}function he(R){if(R._status===-1){var Y=R._result;Y=Y(),Y.then(function(w){(R._status===0||R._status===-1)&&(R._status=1,R._result=w)},function(w){(R._status===0||R._status===-1)&&(R._status=2,R._result=w)}),R._status===-1&&(R._status=0,R._result=Y)}if(R._status===1)return R._result.default;throw R._result}var ke=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},k={map:K,forEach:function(R,Y,w){K(R,function(){Y.apply(this,arguments)},w)},count:function(R){var Y=0;return K(R,function(){Y++}),Y},toArray:function(R){return K(R,function(Y){return Y})||[]},only:function(R){if(!ie(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return Se.Activity=g,Se.Children=k,Se.Component=C,Se.Fragment=r,Se.Profiler=o,Se.PureComponent=j,Se.StrictMode=a,Se.Suspense=m,Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,Se.__COMPILER_RUNTIME={__proto__:null,c:function(R){return J.H.useMemoCache(R)}},Se.cache=function(R){return function(){return R.apply(null,arguments)}},Se.cacheSignal=function(){return null},Se.cloneElement=function(R,Y,w){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var le=A({},R.props),se=R.key;if(Y!=null)for(re in Y.key!==void 0&&(se=""+Y.key),Y)!V.call(Y,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&Y.ref===void 0||(le[re]=Y[re]);var re=arguments.length-2;if(re===1)le.children=w;else if(1<re){for(var Ee=Array(re),Ye=0;Ye<re;Ye++)Ee[Ye]=arguments[Ye+2];le.children=Ee}return ae(R.type,se,le)},Se.createContext=function(R){return R={$$typeof:c,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:s,_context:R},R},Se.createElement=function(R,Y,w){var le,se={},re=null;if(Y!=null)for(le in Y.key!==void 0&&(re=""+Y.key),Y)V.call(Y,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(se[le]=Y[le]);var Ee=arguments.length-2;if(Ee===1)se.children=w;else if(1<Ee){for(var Ye=Array(Ee),ve=0;ve<Ee;ve++)Ye[ve]=arguments[ve+2];se.children=Ye}if(R&&R.defaultProps)for(le in Ee=R.defaultProps,Ee)se[le]===void 0&&(se[le]=Ee[le]);return ae(R,re,se)},Se.createRef=function(){return{current:null}},Se.forwardRef=function(R){return{$$typeof:d,render:R}},Se.isValidElement=ie,Se.lazy=function(R){return{$$typeof:y,_payload:{_status:-1,_result:R},_init:he}},Se.memo=function(R,Y){return{$$typeof:p,type:R,compare:Y===void 0?null:Y}},Se.startTransition=function(R){var Y=J.T,w={};J.T=w;try{var le=R(),se=J.S;se!==null&&se(w,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(Q,ke)}catch(re){ke(re)}finally{Y!==null&&w.types!==null&&(Y.types=w.types),J.T=Y}},Se.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},Se.use=function(R){return J.H.use(R)},Se.useActionState=function(R,Y,w){return J.H.useActionState(R,Y,w)},Se.useCallback=function(R,Y){return J.H.useCallback(R,Y)},Se.useContext=function(R){return J.H.useContext(R)},Se.useDebugValue=function(){},Se.useDeferredValue=function(R,Y){return J.H.useDeferredValue(R,Y)},Se.useEffect=function(R,Y){return J.H.useEffect(R,Y)},Se.useEffectEvent=function(R){return J.H.useEffectEvent(R)},Se.useId=function(){return J.H.useId()},Se.useImperativeHandle=function(R,Y,w){return J.H.useImperativeHandle(R,Y,w)},Se.useInsertionEffect=function(R,Y){return J.H.useInsertionEffect(R,Y)},Se.useLayoutEffect=function(R,Y){return J.H.useLayoutEffect(R,Y)},Se.useMemo=function(R,Y){return J.H.useMemo(R,Y)},Se.useOptimistic=function(R,Y){return J.H.useOptimistic(R,Y)},Se.useReducer=function(R,Y,w){return J.H.useReducer(R,Y,w)},Se.useRef=function(R){return J.H.useRef(R)},Se.useState=function(R){return J.H.useState(R)},Se.useSyncExternalStore=function(R,Y,w){return J.H.useSyncExternalStore(R,Y,w)},Se.useTransition=function(){return J.H.useTransition()},Se.version="19.2.7",Se}var bg;function Mf(){return bg||(bg=1,Rc.exports=L0()),Rc.exports}var D=Mf();const Lu=Af(D);var Yy=D.createContext(void 0),U0=t=>{const l=D.useContext(Yy);if(!l)throw new Error("No QueryClient set, use QueryClientProvider to set one");return l},B0=({client:t,children:l})=>(D.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),_.jsx(Yy.Provider,{value:t,children:l})),Vy=D.createContext(!1),H0=()=>D.useContext(Vy);Vy.Provider;function q0(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var Q0=D.createContext(q0()),G0=()=>D.useContext(Q0),F0=(t,l,r)=>{const a=r?.state.error&&typeof t.throwOnError=="function"?Hy(t.throwOnError,[r.state.error,r]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||a)&&(l.isReset()||(t.retryOnMount=!1))},Y0=t=>{D.useEffect(()=>{t.clearReset()},[t])},V0=({result:t,errorResetBoundary:l,throwOnError:r,query:a,suspense:o})=>t.isError&&!l.isReset()&&!t.isFetching&&a&&(o&&t.data===void 0||Hy(r,[t.error,a])),X0=t=>{if(t.suspense){const r=o=>o==="static"?o:Math.max(o??1e3,1e3),a=t.staleTime;t.staleTime=typeof a=="function"?(...o)=>r(a(...o)):r(a),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},I0=(t,l)=>t.isLoading&&t.isFetching&&!l,Z0=(t,l)=>t?.suspense&&l.isPending,vg=(t,l,r)=>l.fetchOptimistic(t).catch(()=>{r.clearReset()});function K0(t,l,r){const a=H0(),o=G0(),s=U0(),c=s.defaultQueryOptions(t);s.getDefaultOptions().queries?._experimental_beforeQuery?.(c);const d=s.getQueryCache().get(c.queryHash),m=t.subscribed!==!1;c._optimisticResults=a?"isRestoring":m?"optimistic":void 0,X0(c),F0(c,o,d),Y0(o);const p=!s.getQueryCache().get(c.queryHash),[y]=D.useState(()=>new l(s,c)),g=y.getOptimisticResult(c),v=!a&&m;if(D.useSyncExternalStore(D.useCallback(x=>{const E=v?y.subscribe(bt.batchCalls(x)):Bt;return y.updateResult(),E},[y,v]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),D.useEffect(()=>{y.setOptions(c)},[c,y]),Z0(c,g))throw vg(c,y,o);if(V0({result:g,errorResetBoundary:o,throwOnError:c.throwOnError,query:d,suspense:c.suspense}))throw g.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(c,g),c.experimental_prefetchInRender&&!ra.isServer()&&I0(g,a)&&(p?vg(c,y,o):d?.promise)?.catch(Bt).finally(()=>{y.updateResult()}),c.notifyOnChangeProps?g:y.trackResult(g)}function Df(t,l){return K0(t,z0)}var Oc={exports:{}},Vr={},_c={exports:{}},Mc={};var xg;function J0(){return xg||(xg=1,(function(t){function l(N,K){var he=N.length;N.push(K);e:for(;0<he;){var ke=he-1>>>1,k=N[ke];if(0<o(k,K))N[ke]=K,N[he]=k,he=ke;else break e}}function r(N){return N.length===0?null:N[0]}function a(N){if(N.length===0)return null;var K=N[0],he=N.pop();if(he!==K){N[0]=he;e:for(var ke=0,k=N.length,R=k>>>1;ke<R;){var Y=2*(ke+1)-1,w=N[Y],le=Y+1,se=N[le];if(0>o(w,he))le<k&&0>o(se,w)?(N[ke]=se,N[le]=he,ke=le):(N[ke]=w,N[Y]=he,ke=Y);else if(le<k&&0>o(se,he))N[ke]=se,N[le]=he,ke=le;else break e}}return K}function o(N,K){var he=N.sortIndex-K.sortIndex;return he!==0?he:N.id-K.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var c=Date,d=c.now();t.unstable_now=function(){return c.now()-d}}var m=[],p=[],y=1,g=null,v=3,x=!1,E=!1,A=!1,z=!1,C=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function W(N){for(var K=r(p);K!==null;){if(K.callback===null)a(p);else if(K.startTime<=N)a(p),K.sortIndex=K.expirationTime,l(m,K);else break;K=r(p)}}function ee(N){if(A=!1,W(N),!E)if(r(m)!==null)E=!0,Q||(Q=!0,te());else{var K=r(p);K!==null&&P(ee,K.startTime-N)}}var Q=!1,J=-1,V=5,ae=-1;function q(){return z?!0:!(t.unstable_now()-ae<V)}function ie(){if(z=!1,Q){var N=t.unstable_now();ae=N;var K=!0;try{e:{E=!1,A&&(A=!1,B(J),J=-1),x=!0;var he=v;try{t:{for(W(N),g=r(m);g!==null&&!(g.expirationTime>N&&q());){var ke=g.callback;if(typeof ke=="function"){g.callback=null,v=g.priorityLevel;var k=ke(g.expirationTime<=N);if(N=t.unstable_now(),typeof k=="function"){g.callback=k,W(N),K=!0;break t}g===r(m)&&a(m),W(N)}else a(m);g=r(m)}if(g!==null)K=!0;else{var R=r(p);R!==null&&P(ee,R.startTime-N),K=!1}}break e}finally{g=null,v=he,x=!1}K=void 0}}finally{K?te():Q=!1}}}var te;if(typeof j=="function")te=function(){j(ie)};else if(typeof MessageChannel<"u"){var ye=new MessageChannel,ue=ye.port2;ye.port1.onmessage=ie,te=function(){ue.postMessage(null)}}else te=function(){C(ie,0)};function P(N,K){J=C(function(){N(t.unstable_now())},K)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(N){N.callback=null},t.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<N?Math.floor(1e3/N):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_next=function(N){switch(v){case 1:case 2:case 3:var K=3;break;default:K=v}var he=v;v=K;try{return N()}finally{v=he}},t.unstable_requestPaint=function(){z=!0},t.unstable_runWithPriority=function(N,K){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var he=v;v=N;try{return K()}finally{v=he}},t.unstable_scheduleCallback=function(N,K,he){var ke=t.unstable_now();switch(typeof he=="object"&&he!==null?(he=he.delay,he=typeof he=="number"&&0<he?ke+he:ke):he=ke,N){case 1:var k=-1;break;case 2:k=250;break;case 5:k=1073741823;break;case 4:k=1e4;break;default:k=5e3}return k=he+k,N={id:y++,callback:K,priorityLevel:N,startTime:he,expirationTime:k,sortIndex:-1},he>ke?(N.sortIndex=he,l(p,N),r(m)===null&&N===r(p)&&(A?(B(J),J=-1):A=!0,P(ee,he-ke))):(N.sortIndex=k,l(m,N),E||x||(E=!0,Q||(Q=!0,te()))),N},t.unstable_shouldYield=q,t.unstable_wrapCallback=function(N){var K=v;return function(){var he=v;v=K;try{return N.apply(this,arguments)}finally{v=he}}}})(Mc)),Mc}var Sg;function P0(){return Sg||(Sg=1,_c.exports=J0()),_c.exports}var Dc={exports:{}},vt={};var kg;function $0(){if(kg)return vt;kg=1;var t=Mf();function l(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}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 r(){}var a={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(m,p,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:m,containerInfo:p,implementation:y}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,vt.createPortal=function(m,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return s(m,p,null,y)},vt.flushSync=function(m){var p=c.T,y=a.p;try{if(c.T=null,a.p=2,m)return m()}finally{c.T=p,a.p=y,a.d.f()}},vt.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,a.d.C(m,p))},vt.prefetchDNS=function(m){typeof m=="string"&&a.d.D(m)},vt.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var y=p.as,g=d(y,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,x=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?a.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:x}):y==="script"&&a.d.X(m,{crossOrigin:g,integrity:v,fetchPriority:x,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},vt.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=d(p.as,p.crossOrigin);a.d.M(m,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&a.d.M(m)},vt.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,g=d(y,p.crossOrigin);a.d.L(m,y,{crossOrigin:g,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})}},vt.preloadModule=function(m,p){if(typeof m=="string")if(p){var y=d(p.as,p.crossOrigin);a.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else a.d.m(m)},vt.requestFormReset=function(m){a.d.r(m)},vt.unstable_batchedUpdates=function(m,p){return m(p)},vt.useFormState=function(m,p,y){return c.H.useFormState(m,p,y)},vt.useFormStatus=function(){return c.H.useHostTransitionStatus()},vt.version="19.2.7",vt}var wg;function W0(){if(wg)return Dc.exports;wg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(l){console.error(l)}}return t(),Dc.exports=$0(),Dc.exports}var Eg;function eS(){if(Eg)return Vr;Eg=1;var t=P0(),l=Mf(),r=W0();function a(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(e){var n=e,i=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(i=n.return),e=n.return;while(e)}return n.tag===3?i:null}function c(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function d(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function m(e){if(s(e)!==e)throw Error(a(188))}function p(e){var n=e.alternate;if(!n){if(n=s(e),n===null)throw Error(a(188));return n!==e?null:e}for(var i=e,u=n;;){var f=i.return;if(f===null)break;var h=f.alternate;if(h===null){if(u=f.return,u!==null){i=u;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===i)return m(f),e;if(h===u)return m(f),n;h=h.sibling}throw Error(a(188))}if(i.return!==u.return)i=f,u=h;else{for(var b=!1,S=f.child;S;){if(S===i){b=!0,i=f,u=h;break}if(S===u){b=!0,u=f,i=h;break}S=S.sibling}if(!b){for(S=h.child;S;){if(S===i){b=!0,i=h,u=f;break}if(S===u){b=!0,u=h,i=f;break}S=S.sibling}if(!b)throw Error(a(189))}}if(i.alternate!==u)throw Error(a(190))}if(i.tag!==3)throw Error(a(188));return i.stateNode.current===i?e:n}function y(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=y(e),n!==null)return n;e=e.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),j=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),ie=Symbol.iterator;function te(e){return e===null||typeof e!="object"?null:(e=ie&&e[ie]||e["@@iterator"],typeof e=="function"?e:null)}var ye=Symbol.for("react.client.reference");function ue(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ye?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case C:return"Profiler";case z:return"StrictMode";case ee:return"Suspense";case Q:return"SuspenseList";case ae:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case j:return e.displayName||"Context";case B:return(e._context.displayName||"Context")+".Consumer";case W:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case J:return n=e.displayName||null,n!==null?n:ue(e.type)||"Memo";case V:n=e._payload,e=e._init;try{return ue(e(n))}catch{}}return null}var P=Array.isArray,N=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he={pending:!1,data:null,method:null,action:null},ke=[],k=-1;function R(e){return{current:e}}function Y(e){0>k||(e.current=ke[k],ke[k]=null,k--)}function w(e,n){k++,ke[k]=e.current,e.current=n}var le=R(null),se=R(null),re=R(null),Ee=R(null);function Ye(e,n){switch(w(re,n),w(se,e),w(le,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?zp(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=zp(n),e=Rp(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(le),w(le,e)}function ve(){Y(le),Y(se),Y(re)}function kt(e){e.memoizedState!==null&&w(Ee,e);var n=le.current,i=Rp(n,e.type);n!==i&&(w(se,e),w(le,i))}function At(e){se.current===e&&(Y(le),Y(se)),Ee.current===e&&(Y(Ee),qr._currentValue=he)}var Sn,$n;function zt(e){if(Sn===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);Sn=n&&n[1]||"",$n=-1<i.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+Sn+e+$n}var li=!1;function ii(e,n){if(!e||li)return"";li=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(n){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(G){var H=G}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(G){H=G}e.call(Z.prototype)}}else{try{throw Error()}catch(G){H=G}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(G){if(G&&H&&typeof G.stack=="string")return[G.stack,H.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=u.DetermineComponentFrameRoot(),b=h[0],S=h[1];if(b&&S){var T=b.split(`
4
+ `),U=S.split(`
5
+ `);for(f=u=0;u<T.length&&!T[u].includes("DetermineComponentFrameRoot");)u++;for(;f<U.length&&!U[f].includes("DetermineComponentFrameRoot");)f++;if(u===T.length||f===U.length)for(u=T.length-1,f=U.length-1;1<=u&&0<=f&&T[u]!==U[f];)f--;for(;1<=u&&0<=f;u--,f--)if(T[u]!==U[f]){if(u!==1||f!==1)do if(u--,f--,0>f||T[u]!==U[f]){var F=`
6
+ `+T[u].replace(" at new "," at ");return e.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",e.displayName)),F}while(1<=u&&0<=f);break}}}finally{li=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?zt(i):""}function ya(e,n){switch(e.tag){case 26:case 27:case 5:return zt(e.type);case 16:return zt("Lazy");case 13:return e.child!==n&&n!==null?zt("Suspense Fallback"):zt("Suspense");case 19:return zt("SuspenseList");case 0:case 15:return ii(e.type,!1);case 11:return ii(e.type.render,!1);case 1:return ii(e.type,!0);case 31:return zt("Activity");default:return""}}function ba(e){try{var n="",i=null;do n+=ya(e,i),i=e,e=e.return;while(e);return n}catch(u){return`
7
+ Error generating stack: `+u.message+`
8
+ `+u.stack}}var ri=Object.prototype.hasOwnProperty,ai=t.unstable_scheduleCallback,$i=t.unstable_cancelCallback,ho=t.unstable_shouldYield,mo=t.unstable_requestPaint,wt=t.unstable_now,po=t.unstable_getCurrentPriorityLevel,X=t.unstable_ImmediatePriority,ne=t.unstable_UserBlockingPriority,be=t.unstable_NormalPriority,Ae=t.unstable_LowPriority,Be=t.unstable_IdlePriority,qt=t.log,Rn=t.unstable_setDisableYieldValue,Et=null,ot=null;function Rt(e){if(typeof qt=="function"&&Rn(e),ot&&typeof ot.setStrictMode=="function")try{ot.setStrictMode(Et,e)}catch{}}var Ve=Math.clz32?Math.clz32:Yv,Wn=Math.log,dn=Math.LN2;function Yv(e){return e>>>=0,e===0?32:31-(Wn(e)/dn|0)|0}var va=256,xa=262144,Sa=4194304;function Rl(e){var n=e&42;if(n!==0)return n;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 ka(e,n,i){var u=e.pendingLanes;if(u===0)return 0;var f=0,h=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var S=u&134217727;return S!==0?(u=S&~h,u!==0?f=Rl(u):(b&=S,b!==0?f=Rl(b):i||(i=S&~e,i!==0&&(f=Rl(i))))):(S=u&~h,S!==0?f=Rl(S):b!==0?f=Rl(b):i||(i=u&~e,i!==0&&(f=Rl(i)))),f===0?0:n!==0&&n!==f&&(n&h)===0&&(h=f&-f,i=n&-n,h>=i||h===32&&(i&4194048)!==0)?n:f}function Wi(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Vv(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 sh(){var e=Sa;return Sa<<=1,(Sa&62914560)===0&&(Sa=4194304),e}function go(e){for(var n=[],i=0;31>i;i++)n.push(e);return n}function er(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Xv(e,n,i,u,f,h){var b=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var S=e.entanglements,T=e.expirationTimes,U=e.hiddenUpdates;for(i=b&~i;0<i;){var F=31-Ve(i),Z=1<<F;S[F]=0,T[F]=-1;var H=U[F];if(H!==null)for(U[F]=null,F=0;F<H.length;F++){var G=H[F];G!==null&&(G.lane&=-536870913)}i&=~Z}u!==0&&ch(e,u,0),h!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=h&~(b&~n))}function ch(e,n,i){e.pendingLanes|=n,e.suspendedLanes&=~n;var u=31-Ve(n);e.entangledLanes|=n,e.entanglements[u]=e.entanglements[u]|1073741824|i&261930}function fh(e,n){var i=e.entangledLanes|=n;for(e=e.entanglements;i;){var u=31-Ve(i),f=1<<u;f&n|e[u]&n&&(e[u]|=n),i&=~f}}function hh(e,n){var i=n&-n;return i=(i&42)!==0?1:yo(i),(i&(e.suspendedLanes|n))!==0?0:i}function yo(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 bo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function dh(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:$p(e.type))}function mh(e,n){var i=K.p;try{return K.p=e,n()}finally{K.p=i}}var el=Math.random().toString(36).slice(2),dt="__reactFiber$"+el,Ot="__reactProps$"+el,ui="__reactContainer$"+el,vo="__reactEvents$"+el,Iv="__reactListeners$"+el,Zv="__reactHandles$"+el,ph="__reactResources$"+el,tr="__reactMarker$"+el;function xo(e){delete e[dt],delete e[Ot],delete e[vo],delete e[Iv],delete e[Zv]}function oi(e){var n=e[dt];if(n)return n;for(var i=e.parentNode;i;){if(n=i[ui]||i[dt]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(e=Lp(e);e!==null;){if(i=e[dt])return i;e=Lp(e)}return n}e=i,i=e.parentNode}return null}function si(e){if(e=e[dt]||e[ui]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function nr(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(a(33))}function ci(e){var n=e[ph];return n||(n=e[ph]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function ft(e){e[tr]=!0}var gh=new Set,yh={};function Ol(e,n){fi(e,n),fi(e+"Capture",n)}function fi(e,n){for(yh[e]=n,e=0;e<n.length;e++)gh.add(n[e])}var Kv=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]*$"),bh={},vh={};function Jv(e){return ri.call(vh,e)?!0:ri.call(bh,e)?!1:Kv.test(e)?vh[e]=!0:(bh[e]=!0,!1)}function wa(e,n,i){if(Jv(n))if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var u=n.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+i)}}function Ea(e,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+i)}}function On(e,n,i,u){if(u===null)e.removeAttribute(i);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(n,i,""+u)}}function $t(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xh(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Pv(e,n,i){var u=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var f=u.get,h=u.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(b){i=""+b,h.call(this,b)}}),Object.defineProperty(e,n,{enumerable:u.enumerable}),{getValue:function(){return i},setValue:function(b){i=""+b},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function So(e){if(!e._valueTracker){var n=xh(e)?"checked":"value";e._valueTracker=Pv(e,n,""+e[n])}}function Sh(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var i=n.getValue(),u="";return e&&(u=xh(e)?e.checked?"true":"false":e.value),e=u,e!==i?(n.setValue(e),!0):!1}function Ca(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 $v=/[\n"\\]/g;function Wt(e){return e.replace($v,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function ko(e,n,i,u,f,h,b,S){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),n!=null?b==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+$t(n)):e.value!==""+$t(n)&&(e.value=""+$t(n)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),n!=null?wo(e,b,$t(n)):i!=null?wo(e,b,$t(i)):u!=null&&e.removeAttribute("value"),f==null&&h!=null&&(e.defaultChecked=!!h),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+$t(S):e.removeAttribute("name")}function kh(e,n,i,u,f,h,b,S){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),n!=null||i!=null){if(!(h!=="submit"&&h!=="reset"||n!=null)){So(e);return}i=i!=null?""+$t(i):"",n=n!=null?""+$t(n):i,S||n===e.value||(e.value=n),e.defaultValue=n}u=u??f,u=typeof u!="function"&&typeof u!="symbol"&&!!u,e.checked=S?e.checked:!!u,e.defaultChecked=!!u,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),So(e)}function wo(e,n,i){n==="number"&&Ca(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function hi(e,n,i,u){if(e=e.options,n){n={};for(var f=0;f<i.length;f++)n["$"+i[f]]=!0;for(i=0;i<e.length;i++)f=n.hasOwnProperty("$"+e[i].value),e[i].selected!==f&&(e[i].selected=f),f&&u&&(e[i].defaultSelected=!0)}else{for(i=""+$t(i),n=null,f=0;f<e.length;f++){if(e[f].value===i){e[f].selected=!0,u&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function wh(e,n,i){if(n!=null&&(n=""+$t(n),n!==e.value&&(e.value=n),i==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=i!=null?""+$t(i):""}function Eh(e,n,i,u){if(n==null){if(u!=null){if(i!=null)throw Error(a(92));if(P(u)){if(1<u.length)throw Error(a(93));u=u[0]}i=u}i==null&&(i=""),n=i}i=$t(n),e.defaultValue=i,u=e.textContent,u===i&&u!==""&&u!==null&&(e.value=u),So(e)}function di(e,n){if(n){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=n;return}}e.textContent=n}var Wv=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 Ch(e,n,i){var u=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?u?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":u?e.setProperty(n,i):typeof i!="number"||i===0||Wv.has(n)?n==="float"?e.cssFloat=i:e[n]=(""+i).trim():e[n]=i+"px"}function Th(e,n,i){if(n!=null&&typeof n!="object")throw Error(a(62));if(e=e.style,i!=null){for(var u in i)!i.hasOwnProperty(u)||n!=null&&n.hasOwnProperty(u)||(u.indexOf("--")===0?e.setProperty(u,""):u==="float"?e.cssFloat="":e[u]="");for(var f in n)u=n[f],n.hasOwnProperty(f)&&i[f]!==u&&Ch(e,f,u)}else for(var h in n)n.hasOwnProperty(h)&&Ch(e,h,n[h])}function Eo(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 e1=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"]]),t1=/^[\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 Ta(e){return t1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function _n(){}var Co=null;function To(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mi=null,pi=null;function Ah(e){var n=si(e);if(n&&(e=n.stateNode)){var i=e[Ot]||null;e:switch(e=n.stateNode,n.type){case"input":if(ko(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Wt(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var u=i[n];if(u!==e&&u.form===e.form){var f=u[Ot]||null;if(!f)throw Error(a(90));ko(u,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(n=0;n<i.length;n++)u=i[n],u.form===e.form&&Sh(u)}break e;case"textarea":wh(e,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&hi(e,!!i.multiple,n,!1)}}}var Ao=!1;function zh(e,n,i){if(Ao)return e(n,i);Ao=!0;try{var u=e(n);return u}finally{if(Ao=!1,(mi!==null||pi!==null)&&(du(),mi&&(n=mi,e=pi,pi=mi=null,Ah(n),e)))for(n=0;n<e.length;n++)Ah(e[n])}}function lr(e,n){var i=e.stateNode;if(i===null)return null;var u=i[Ot]||null;if(u===null)return null;i=u[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(a(231,n,typeof i));return i}var Mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zo=!1;if(Mn)try{var ir={};Object.defineProperty(ir,"passive",{get:function(){zo=!0}}),window.addEventListener("test",ir,ir),window.removeEventListener("test",ir,ir)}catch{zo=!1}var tl=null,Ro=null,Aa=null;function Rh(){if(Aa)return Aa;var e,n=Ro,i=n.length,u,f="value"in tl?tl.value:tl.textContent,h=f.length;for(e=0;e<i&&n[e]===f[e];e++);var b=i-e;for(u=1;u<=b&&n[i-u]===f[h-u];u++);return Aa=f.slice(e,1<u?1-u:void 0)}function za(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Ra(){return!0}function Oh(){return!1}function _t(e){function n(i,u,f,h,b){this._reactName=i,this._targetInst=f,this.type=u,this.nativeEvent=h,this.target=b,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(i=e[S],this[S]=i?i(h):h[S]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Ra:Oh,this.isPropagationStopped=Oh,this}return g(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Ra)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Ra)},persist:function(){},isPersistent:Ra}),n}var _l={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Oa=_t(_l),rr=g({},_l,{view:0,detail:0}),n1=_t(rr),Oo,_o,ar,_a=g({},rr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Do,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!==ar&&(ar&&e.type==="mousemove"?(Oo=e.screenX-ar.screenX,_o=e.screenY-ar.screenY):_o=Oo=0,ar=e),Oo)},movementY:function(e){return"movementY"in e?e.movementY:_o}}),_h=_t(_a),l1=g({},_a,{dataTransfer:0}),i1=_t(l1),r1=g({},rr,{relatedTarget:0}),Mo=_t(r1),a1=g({},_l,{animationName:0,elapsedTime:0,pseudoElement:0}),u1=_t(a1),o1=g({},_l,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),s1=_t(o1),c1=g({},_l,{data:0}),Mh=_t(c1),f1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},h1={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"},d1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function m1(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=d1[e])?!!n[e]:!1}function Do(){return m1}var p1=g({},rr,{key:function(e){if(e.key){var n=f1[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=za(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?h1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Do,charCode:function(e){return e.type==="keypress"?za(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?za(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),g1=_t(p1),y1=g({},_a,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Dh=_t(y1),b1=g({},rr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Do}),v1=_t(b1),x1=g({},_l,{propertyName:0,elapsedTime:0,pseudoElement:0}),S1=_t(x1),k1=g({},_a,{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}),w1=_t(k1),E1=g({},_l,{newState:0,oldState:0}),C1=_t(E1),T1=[9,13,27,32],No=Mn&&"CompositionEvent"in window,ur=null;Mn&&"documentMode"in document&&(ur=document.documentMode);var A1=Mn&&"TextEvent"in window&&!ur,Nh=Mn&&(!No||ur&&8<ur&&11>=ur),jh=" ",Lh=!1;function Uh(e,n){switch(e){case"keyup":return T1.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var gi=!1;function z1(e,n){switch(e){case"compositionend":return Bh(n);case"keypress":return n.which!==32?null:(Lh=!0,jh);case"textInput":return e=n.data,e===jh&&Lh?null:e;default:return null}}function R1(e,n){if(gi)return e==="compositionend"||!No&&Uh(e,n)?(e=Rh(),Aa=Ro=tl=null,gi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Nh&&n.locale!=="ko"?null:n.data;default:return null}}var O1={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 Hh(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!O1[e.type]:n==="textarea"}function qh(e,n,i,u){mi?pi?pi.push(u):pi=[u]:mi=u,n=xu(n,"onChange"),0<n.length&&(i=new Oa("onChange","change",null,i,u),e.push({event:i,listeners:n}))}var or=null,sr=null;function _1(e){kp(e,0)}function Ma(e){var n=nr(e);if(Sh(n))return e}function Qh(e,n){if(e==="change")return n}var Gh=!1;if(Mn){var jo;if(Mn){var Lo="oninput"in document;if(!Lo){var Fh=document.createElement("div");Fh.setAttribute("oninput","return;"),Lo=typeof Fh.oninput=="function"}jo=Lo}else jo=!1;Gh=jo&&(!document.documentMode||9<document.documentMode)}function Yh(){or&&(or.detachEvent("onpropertychange",Vh),sr=or=null)}function Vh(e){if(e.propertyName==="value"&&Ma(sr)){var n=[];qh(n,sr,e,To(e)),zh(_1,n)}}function M1(e,n,i){e==="focusin"?(Yh(),or=n,sr=i,or.attachEvent("onpropertychange",Vh)):e==="focusout"&&Yh()}function D1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ma(sr)}function N1(e,n){if(e==="click")return Ma(n)}function j1(e,n){if(e==="input"||e==="change")return Ma(n)}function L1(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Qt=typeof Object.is=="function"?Object.is:L1;function cr(e,n){if(Qt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var i=Object.keys(e),u=Object.keys(n);if(i.length!==u.length)return!1;for(u=0;u<i.length;u++){var f=i[u];if(!ri.call(n,f)||!Qt(e[f],n[f]))return!1}return!0}function Xh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ih(e,n){var i=Xh(e);e=0;for(var u;i;){if(i.nodeType===3){if(u=e+i.textContent.length,e<=n&&u>=n)return{node:i,offset:n-e};e=u}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Xh(i)}}function Zh(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Zh(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Kh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Ca(e.document);n instanceof e.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)e=n.contentWindow;else break;n=Ca(e.document)}return n}function Uo(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var U1=Mn&&"documentMode"in document&&11>=document.documentMode,yi=null,Bo=null,fr=null,Ho=!1;function Jh(e,n,i){var u=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Ho||yi==null||yi!==Ca(u)||(u=yi,"selectionStart"in u&&Uo(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),fr&&cr(fr,u)||(fr=u,u=xu(Bo,"onSelect"),0<u.length&&(n=new Oa("onSelect","select",null,n,i),e.push({event:n,listeners:u}),n.target=yi)))}function Ml(e,n){var i={};return i[e.toLowerCase()]=n.toLowerCase(),i["Webkit"+e]="webkit"+n,i["Moz"+e]="moz"+n,i}var bi={animationend:Ml("Animation","AnimationEnd"),animationiteration:Ml("Animation","AnimationIteration"),animationstart:Ml("Animation","AnimationStart"),transitionrun:Ml("Transition","TransitionRun"),transitionstart:Ml("Transition","TransitionStart"),transitioncancel:Ml("Transition","TransitionCancel"),transitionend:Ml("Transition","TransitionEnd")},qo={},Ph={};Mn&&(Ph=document.createElement("div").style,"AnimationEvent"in window||(delete bi.animationend.animation,delete bi.animationiteration.animation,delete bi.animationstart.animation),"TransitionEvent"in window||delete bi.transitionend.transition);function Dl(e){if(qo[e])return qo[e];if(!bi[e])return e;var n=bi[e],i;for(i in n)if(n.hasOwnProperty(i)&&i in Ph)return qo[e]=n[i];return e}var $h=Dl("animationend"),Wh=Dl("animationiteration"),ed=Dl("animationstart"),B1=Dl("transitionrun"),H1=Dl("transitionstart"),q1=Dl("transitioncancel"),td=Dl("transitionend"),nd=new Map,Qo="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(" ");Qo.push("scrollEnd");function mn(e,n){nd.set(e,n),Ol(n,[e])}var Da=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=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(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},en=[],vi=0,Go=0;function Na(){for(var e=vi,n=Go=vi=0;n<e;){var i=en[n];en[n++]=null;var u=en[n];en[n++]=null;var f=en[n];en[n++]=null;var h=en[n];if(en[n++]=null,u!==null&&f!==null){var b=u.pending;b===null?f.next=f:(f.next=b.next,b.next=f),u.pending=f}h!==0&&ld(i,f,h)}}function ja(e,n,i,u){en[vi++]=e,en[vi++]=n,en[vi++]=i,en[vi++]=u,Go|=u,e.lanes|=u,e=e.alternate,e!==null&&(e.lanes|=u)}function Fo(e,n,i,u){return ja(e,n,i,u),La(e)}function Nl(e,n){return ja(e,null,null,n),La(e)}function ld(e,n,i){e.lanes|=i;var u=e.alternate;u!==null&&(u.lanes|=i);for(var f=!1,h=e.return;h!==null;)h.childLanes|=i,u=h.alternate,u!==null&&(u.childLanes|=i),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(f=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,f&&n!==null&&(f=31-Ve(i),e=h.hiddenUpdates,u=e[f],u===null?e[f]=[n]:u.push(n),n.lane=i|536870912),h):null}function La(e){if(50<Dr)throw Dr=0,$s=null,Error(a(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var xi={};function Q1(e,n,i,u){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gt(e,n,i,u){return new Q1(e,n,i,u)}function Yo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Dn(e,n){var i=e.alternate;return i===null?(i=Gt(e.tag,n,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=n,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,n=e.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function id(e,n){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,n=i.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Ua(e,n,i,u,f,h){var b=0;if(u=e,typeof e=="function")Yo(e)&&(b=1);else if(typeof e=="string")b=Xx(e,i,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ae:return e=Gt(31,i,n,f),e.elementType=ae,e.lanes=h,e;case A:return jl(i.children,f,h,n);case z:b=8,f|=24;break;case C:return e=Gt(12,i,n,f|2),e.elementType=C,e.lanes=h,e;case ee:return e=Gt(13,i,n,f),e.elementType=ee,e.lanes=h,e;case Q:return e=Gt(19,i,n,f),e.elementType=Q,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case j:b=10;break e;case B:b=9;break e;case W:b=11;break e;case J:b=14;break e;case V:b=16,u=null;break e}b=29,i=Error(a(130,e===null?"null":typeof e,"")),u=null}return n=Gt(b,i,n,f),n.elementType=e,n.type=u,n.lanes=h,n}function jl(e,n,i,u){return e=Gt(7,e,u,n),e.lanes=i,e}function Vo(e,n,i){return e=Gt(6,e,null,n),e.lanes=i,e}function rd(e){var n=Gt(18,null,null,0);return n.stateNode=e,n}function Xo(e,n,i){return n=Gt(4,e.children!==null?e.children:[],e.key,n),n.lanes=i,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var ad=new WeakMap;function tn(e,n){if(typeof e=="object"&&e!==null){var i=ad.get(e);return i!==void 0?i:(n={value:e,source:n,stack:ba(n)},ad.set(e,n),n)}return{value:e,source:n,stack:ba(n)}}var Si=[],ki=0,Ba=null,hr=0,nn=[],ln=0,nl=null,kn=1,wn="";function Nn(e,n){Si[ki++]=hr,Si[ki++]=Ba,Ba=e,hr=n}function ud(e,n,i){nn[ln++]=kn,nn[ln++]=wn,nn[ln++]=nl,nl=e;var u=kn;e=wn;var f=32-Ve(u)-1;u&=~(1<<f),i+=1;var h=32-Ve(n)+f;if(30<h){var b=f-f%5;h=(u&(1<<b)-1).toString(32),u>>=b,f-=b,kn=1<<32-Ve(n)+f|i<<f|u,wn=h+e}else kn=1<<h|i<<f|u,wn=e}function Io(e){e.return!==null&&(Nn(e,1),ud(e,1,0))}function Zo(e){for(;e===Ba;)Ba=Si[--ki],Si[ki]=null,hr=Si[--ki],Si[ki]=null;for(;e===nl;)nl=nn[--ln],nn[ln]=null,wn=nn[--ln],nn[ln]=null,kn=nn[--ln],nn[ln]=null}function od(e,n){nn[ln++]=kn,nn[ln++]=wn,nn[ln++]=nl,kn=n.id,wn=n.overflow,nl=e}var mt=null,Ke=null,De=!1,ll=null,rn=!1,Ko=Error(a(519));function il(e){var n=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw dr(tn(n,e)),Ko}function sd(e){var n=e.stateNode,i=e.type,u=e.memoizedProps;switch(n[dt]=e,n[Ot]=u,i){case"dialog":Re("cancel",n),Re("close",n);break;case"iframe":case"object":case"embed":Re("load",n);break;case"video":case"audio":for(i=0;i<jr.length;i++)Re(jr[i],n);break;case"source":Re("error",n);break;case"img":case"image":case"link":Re("error",n),Re("load",n);break;case"details":Re("toggle",n);break;case"input":Re("invalid",n),kh(n,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":Re("invalid",n);break;case"textarea":Re("invalid",n),Eh(n,u.value,u.defaultValue,u.children)}i=u.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||u.suppressHydrationWarning===!0||Tp(n.textContent,i)?(u.popover!=null&&(Re("beforetoggle",n),Re("toggle",n)),u.onScroll!=null&&Re("scroll",n),u.onScrollEnd!=null&&Re("scrollend",n),u.onClick!=null&&(n.onclick=_n),n=!0):n=!1,n||il(e,!0)}function cd(e){for(mt=e.return;mt;)switch(mt.tag){case 5:case 31:case 13:rn=!1;return;case 27:case 3:rn=!0;return;default:mt=mt.return}}function wi(e){if(e!==mt)return!1;if(!De)return cd(e),De=!0,!1;var n=e.tag,i;if((i=n!==3&&n!==27)&&((i=n===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||dc(e.type,e.memoizedProps)),i=!i),i&&Ke&&il(e),cd(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));Ke=jp(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));Ke=jp(e)}else n===27?(n=Ke,bl(e.type)?(e=bc,bc=null,Ke=e):Ke=n):Ke=mt?un(e.stateNode.nextSibling):null;return!0}function Ll(){Ke=mt=null,De=!1}function Jo(){var e=ll;return e!==null&&(jt===null?jt=e:jt.push.apply(jt,e),ll=null),e}function dr(e){ll===null?ll=[e]:ll.push(e)}var Po=R(null),Ul=null,jn=null;function rl(e,n,i){w(Po,n._currentValue),n._currentValue=i}function Ln(e){e._currentValue=Po.current,Y(Po)}function $o(e,n,i){for(;e!==null;){var u=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,u!==null&&(u.childLanes|=n)):u!==null&&(u.childLanes&n)!==n&&(u.childLanes|=n),e===i)break;e=e.return}}function Wo(e,n,i,u){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var h=f.dependencies;if(h!==null){var b=f.child;h=h.firstContext;e:for(;h!==null;){var S=h;h=f;for(var T=0;T<n.length;T++)if(S.context===n[T]){h.lanes|=i,S=h.alternate,S!==null&&(S.lanes|=i),$o(h.return,i,e),u||(b=null);break e}h=S.next}}else if(f.tag===18){if(b=f.return,b===null)throw Error(a(341));b.lanes|=i,h=b.alternate,h!==null&&(h.lanes|=i),$o(b,i,e),b=null}else b=f.child;if(b!==null)b.return=f;else for(b=f;b!==null;){if(b===e){b=null;break}if(f=b.sibling,f!==null){f.return=b.return,b=f;break}b=b.return}f=b}}function Ei(e,n,i,u){e=null;for(var f=n,h=!1;f!==null;){if(!h){if((f.flags&524288)!==0)h=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var b=f.alternate;if(b===null)throw Error(a(387));if(b=b.memoizedProps,b!==null){var S=f.type;Qt(f.pendingProps.value,b.value)||(e!==null?e.push(S):e=[S])}}else if(f===Ee.current){if(b=f.alternate,b===null)throw Error(a(387));b.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(qr):e=[qr])}f=f.return}e!==null&&Wo(n,e,i,u),n.flags|=262144}function Ha(e){for(e=e.firstContext;e!==null;){if(!Qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Bl(e){Ul=e,jn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pt(e){return fd(Ul,e)}function qa(e,n){return Ul===null&&Bl(e),fd(e,n)}function fd(e,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},jn===null){if(e===null)throw Error(a(308));jn=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else jn=jn.next=n;return i}var G1=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(i,u){e.push(u)}};this.abort=function(){n.aborted=!0,e.forEach(function(i){return i()})}},F1=t.unstable_scheduleCallback,Y1=t.unstable_NormalPriority,lt={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function es(){return{controller:new G1,data:new Map,refCount:0}}function mr(e){e.refCount--,e.refCount===0&&F1(Y1,function(){e.controller.abort()})}var pr=null,ts=0,Ci=0,Ti=null;function V1(e,n){if(pr===null){var i=pr=[];ts=0,Ci=ic(),Ti={status:"pending",value:void 0,then:function(u){i.push(u)}}}return ts++,n.then(hd,hd),n}function hd(){if(--ts===0&&pr!==null){Ti!==null&&(Ti.status="fulfilled");var e=pr;pr=null,Ci=0,Ti=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function X1(e,n){var i=[],u={status:"pending",value:null,reason:null,then:function(f){i.push(f)}};return e.then(function(){u.status="fulfilled",u.value=n;for(var f=0;f<i.length;f++)(0,i[f])(n)},function(f){for(u.status="rejected",u.reason=f,f=0;f<i.length;f++)(0,i[f])(void 0)}),u}var dd=N.S;N.S=function(e,n){Jm=wt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&V1(e,n),dd!==null&&dd(e,n)};var Hl=R(null);function ns(){var e=Hl.current;return e!==null?e:Xe.pooledCache}function Qa(e,n){n===null?w(Hl,Hl.current):w(Hl,n.pool)}function md(){var e=ns();return e===null?null:{parent:lt._currentValue,pool:e}}var Ai=Error(a(460)),ls=Error(a(474)),Ga=Error(a(542)),Fa={then:function(){}};function pd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function gd(e,n,i){switch(i=e[i],i===void 0?e.push(n):i!==n&&(n.then(_n,_n),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,bd(e),e;default:if(typeof n.status=="string")n.then(_n,_n);else{if(e=Xe,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=n,e.status="pending",e.then(function(u){if(n.status==="pending"){var f=n;f.status="fulfilled",f.value=u}},function(u){if(n.status==="pending"){var f=n;f.status="rejected",f.reason=u}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,bd(e),e}throw Ql=n,Ai}}function ql(e){try{var n=e._init;return n(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Ql=i,Ai):i}}var Ql=null;function yd(){if(Ql===null)throw Error(a(459));var e=Ql;return Ql=null,e}function bd(e){if(e===Ai||e===Ga)throw Error(a(483))}var zi=null,gr=0;function Ya(e){var n=gr;return gr+=1,zi===null&&(zi=[]),gd(zi,e,n)}function yr(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Va(e,n){throw n.$$typeof===v?Error(a(525)):(e=Object.prototype.toString.call(n),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function vd(e){function n(M,O){if(e){var L=M.deletions;L===null?(M.deletions=[O],M.flags|=16):L.push(O)}}function i(M,O){if(!e)return null;for(;O!==null;)n(M,O),O=O.sibling;return null}function u(M){for(var O=new Map;M!==null;)M.key!==null?O.set(M.key,M):O.set(M.index,M),M=M.sibling;return O}function f(M,O){return M=Dn(M,O),M.index=0,M.sibling=null,M}function h(M,O,L){return M.index=L,e?(L=M.alternate,L!==null?(L=L.index,L<O?(M.flags|=67108866,O):L):(M.flags|=67108866,O)):(M.flags|=1048576,O)}function b(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function S(M,O,L,I){return O===null||O.tag!==6?(O=Vo(L,M.mode,I),O.return=M,O):(O=f(O,L),O.return=M,O)}function T(M,O,L,I){var me=L.type;return me===A?F(M,O,L.props.children,I,L.key):O!==null&&(O.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===V&&ql(me)===O.type)?(O=f(O,L.props),yr(O,L),O.return=M,O):(O=Ua(L.type,L.key,L.props,null,M.mode,I),yr(O,L),O.return=M,O)}function U(M,O,L,I){return O===null||O.tag!==4||O.stateNode.containerInfo!==L.containerInfo||O.stateNode.implementation!==L.implementation?(O=Xo(L,M.mode,I),O.return=M,O):(O=f(O,L.children||[]),O.return=M,O)}function F(M,O,L,I,me){return O===null||O.tag!==7?(O=jl(L,M.mode,I,me),O.return=M,O):(O=f(O,L),O.return=M,O)}function Z(M,O,L){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Vo(""+O,M.mode,L),O.return=M,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case x:return L=Ua(O.type,O.key,O.props,null,M.mode,L),yr(L,O),L.return=M,L;case E:return O=Xo(O,M.mode,L),O.return=M,O;case V:return O=ql(O),Z(M,O,L)}if(P(O)||te(O))return O=jl(O,M.mode,L,null),O.return=M,O;if(typeof O.then=="function")return Z(M,Ya(O),L);if(O.$$typeof===j)return Z(M,qa(M,O),L);Va(M,O)}return null}function H(M,O,L,I){var me=O!==null?O.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return me!==null?null:S(M,O,""+L,I);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case x:return L.key===me?T(M,O,L,I):null;case E:return L.key===me?U(M,O,L,I):null;case V:return L=ql(L),H(M,O,L,I)}if(P(L)||te(L))return me!==null?null:F(M,O,L,I,null);if(typeof L.then=="function")return H(M,O,Ya(L),I);if(L.$$typeof===j)return H(M,O,qa(M,L),I);Va(M,L)}return null}function G(M,O,L,I,me){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return M=M.get(L)||null,S(O,M,""+I,me);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case x:return M=M.get(I.key===null?L:I.key)||null,T(O,M,I,me);case E:return M=M.get(I.key===null?L:I.key)||null,U(O,M,I,me);case V:return I=ql(I),G(M,O,L,I,me)}if(P(I)||te(I))return M=M.get(L)||null,F(O,M,I,me,null);if(typeof I.then=="function")return G(M,O,L,Ya(I),me);if(I.$$typeof===j)return G(M,O,L,qa(O,I),me);Va(O,I)}return null}function fe(M,O,L,I){for(var me=null,je=null,de=O,Ce=O=0,Me=null;de!==null&&Ce<L.length;Ce++){de.index>Ce?(Me=de,de=null):Me=de.sibling;var Le=H(M,de,L[Ce],I);if(Le===null){de===null&&(de=Me);break}e&&de&&Le.alternate===null&&n(M,de),O=h(Le,O,Ce),je===null?me=Le:je.sibling=Le,je=Le,de=Me}if(Ce===L.length)return i(M,de),De&&Nn(M,Ce),me;if(de===null){for(;Ce<L.length;Ce++)de=Z(M,L[Ce],I),de!==null&&(O=h(de,O,Ce),je===null?me=de:je.sibling=de,je=de);return De&&Nn(M,Ce),me}for(de=u(de);Ce<L.length;Ce++)Me=G(de,M,Ce,L[Ce],I),Me!==null&&(e&&Me.alternate!==null&&de.delete(Me.key===null?Ce:Me.key),O=h(Me,O,Ce),je===null?me=Me:je.sibling=Me,je=Me);return e&&de.forEach(function(wl){return n(M,wl)}),De&&Nn(M,Ce),me}function ge(M,O,L,I){if(L==null)throw Error(a(151));for(var me=null,je=null,de=O,Ce=O=0,Me=null,Le=L.next();de!==null&&!Le.done;Ce++,Le=L.next()){de.index>Ce?(Me=de,de=null):Me=de.sibling;var wl=H(M,de,Le.value,I);if(wl===null){de===null&&(de=Me);break}e&&de&&wl.alternate===null&&n(M,de),O=h(wl,O,Ce),je===null?me=wl:je.sibling=wl,je=wl,de=Me}if(Le.done)return i(M,de),De&&Nn(M,Ce),me;if(de===null){for(;!Le.done;Ce++,Le=L.next())Le=Z(M,Le.value,I),Le!==null&&(O=h(Le,O,Ce),je===null?me=Le:je.sibling=Le,je=Le);return De&&Nn(M,Ce),me}for(de=u(de);!Le.done;Ce++,Le=L.next())Le=G(de,M,Ce,Le.value,I),Le!==null&&(e&&Le.alternate!==null&&de.delete(Le.key===null?Ce:Le.key),O=h(Le,O,Ce),je===null?me=Le:je.sibling=Le,je=Le);return e&&de.forEach(function(l0){return n(M,l0)}),De&&Nn(M,Ce),me}function Fe(M,O,L,I){if(typeof L=="object"&&L!==null&&L.type===A&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case x:e:{for(var me=L.key;O!==null;){if(O.key===me){if(me=L.type,me===A){if(O.tag===7){i(M,O.sibling),I=f(O,L.props.children),I.return=M,M=I;break e}}else if(O.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===V&&ql(me)===O.type){i(M,O.sibling),I=f(O,L.props),yr(I,L),I.return=M,M=I;break e}i(M,O);break}else n(M,O);O=O.sibling}L.type===A?(I=jl(L.props.children,M.mode,I,L.key),I.return=M,M=I):(I=Ua(L.type,L.key,L.props,null,M.mode,I),yr(I,L),I.return=M,M=I)}return b(M);case E:e:{for(me=L.key;O!==null;){if(O.key===me)if(O.tag===4&&O.stateNode.containerInfo===L.containerInfo&&O.stateNode.implementation===L.implementation){i(M,O.sibling),I=f(O,L.children||[]),I.return=M,M=I;break e}else{i(M,O);break}else n(M,O);O=O.sibling}I=Xo(L,M.mode,I),I.return=M,M=I}return b(M);case V:return L=ql(L),Fe(M,O,L,I)}if(P(L))return fe(M,O,L,I);if(te(L)){if(me=te(L),typeof me!="function")throw Error(a(150));return L=me.call(L),ge(M,O,L,I)}if(typeof L.then=="function")return Fe(M,O,Ya(L),I);if(L.$$typeof===j)return Fe(M,O,qa(M,L),I);Va(M,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,O!==null&&O.tag===6?(i(M,O.sibling),I=f(O,L),I.return=M,M=I):(i(M,O),I=Vo(L,M.mode,I),I.return=M,M=I),b(M)):i(M,O)}return function(M,O,L,I){try{gr=0;var me=Fe(M,O,L,I);return zi=null,me}catch(de){if(de===Ai||de===Ga)throw de;var je=Gt(29,de,null,M.mode);return je.lanes=I,je.return=M,je}}}var Gl=vd(!0),xd=vd(!1),al=!1;function is(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function rs(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ul(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ol(e,n,i){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,(Ue&2)!==0){var f=u.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),u.pending=n,n=La(e),ld(e,null,i),n}return ja(e,u,n,i),La(e)}function br(e,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var u=n.lanes;u&=e.pendingLanes,i|=u,n.lanes=i,fh(e,i)}}function as(e,n){var i=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,i===u)){var f=null,h=null;if(i=i.firstBaseUpdate,i!==null){do{var b={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};h===null?f=h=b:h=h.next=b,i=i.next}while(i!==null);h===null?f=h=n:h=h.next=n}else f=h=n;i={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:u.shared,callbacks:u.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=n:e.next=n,i.lastBaseUpdate=n}var us=!1;function vr(){if(us){var e=Ti;if(e!==null)throw e}}function xr(e,n,i,u){us=!1;var f=e.updateQueue;al=!1;var h=f.firstBaseUpdate,b=f.lastBaseUpdate,S=f.shared.pending;if(S!==null){f.shared.pending=null;var T=S,U=T.next;T.next=null,b===null?h=U:b.next=U,b=T;var F=e.alternate;F!==null&&(F=F.updateQueue,S=F.lastBaseUpdate,S!==b&&(S===null?F.firstBaseUpdate=U:S.next=U,F.lastBaseUpdate=T))}if(h!==null){var Z=f.baseState;b=0,F=U=T=null,S=h;do{var H=S.lane&-536870913,G=H!==S.lane;if(G?(_e&H)===H:(u&H)===H){H!==0&&H===Ci&&(us=!0),F!==null&&(F=F.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var fe=e,ge=S;H=n;var Fe=i;switch(ge.tag){case 1:if(fe=ge.payload,typeof fe=="function"){Z=fe.call(Fe,Z,H);break e}Z=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=ge.payload,H=typeof fe=="function"?fe.call(Fe,Z,H):fe,H==null)break e;Z=g({},Z,H);break e;case 2:al=!0}}H=S.callback,H!==null&&(e.flags|=64,G&&(e.flags|=8192),G=f.callbacks,G===null?f.callbacks=[H]:G.push(H))}else G={lane:H,tag:S.tag,payload:S.payload,callback:S.callback,next:null},F===null?(U=F=G,T=Z):F=F.next=G,b|=H;if(S=S.next,S===null){if(S=f.shared.pending,S===null)break;G=S,S=G.next,G.next=null,f.lastBaseUpdate=G,f.shared.pending=null}}while(!0);F===null&&(T=Z),f.baseState=T,f.firstBaseUpdate=U,f.lastBaseUpdate=F,h===null&&(f.shared.lanes=0),dl|=b,e.lanes=b,e.memoizedState=Z}}function Sd(e,n){if(typeof e!="function")throw Error(a(191,e));e.call(n)}function kd(e,n){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)Sd(i[e],n)}var Ri=R(null),Xa=R(0);function wd(e,n){e=Vn,w(Xa,e),w(Ri,n),Vn=e|n.baseLanes}function os(){w(Xa,Vn),w(Ri,Ri.current)}function ss(){Vn=Xa.current,Y(Ri),Y(Xa)}var Ft=R(null),an=null;function sl(e){var n=e.alternate;w(tt,tt.current&1),w(Ft,e),an===null&&(n===null||Ri.current!==null||n.memoizedState!==null)&&(an=e)}function cs(e){w(tt,tt.current),w(Ft,e),an===null&&(an=e)}function Ed(e){e.tag===22?(w(tt,tt.current),w(Ft,e),an===null&&(an=e)):cl()}function cl(){w(tt,tt.current),w(Ft,Ft.current)}function Yt(e){Y(Ft),an===e&&(an=null),Y(tt)}var tt=R(0);function Ia(e){for(var n=e;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||gc(i)||yc(i)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Un=0,we=null,Qe=null,it=null,Za=!1,Oi=!1,Fl=!1,Ka=0,Sr=0,_i=null,I1=0;function We(){throw Error(a(321))}function fs(e,n){if(n===null)return!1;for(var i=0;i<n.length&&i<e.length;i++)if(!Qt(e[i],n[i]))return!1;return!0}function hs(e,n,i,u,f,h){return Un=h,we=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,N.H=e===null||e.memoizedState===null?um:As,Fl=!1,h=i(u,f),Fl=!1,Oi&&(h=Td(n,i,u,f)),Cd(e),h}function Cd(e){N.H=Er;var n=Qe!==null&&Qe.next!==null;if(Un=0,it=Qe=we=null,Za=!1,Sr=0,_i=null,n)throw Error(a(300));e===null||rt||(e=e.dependencies,e!==null&&Ha(e)&&(rt=!0))}function Td(e,n,i,u){we=e;var f=0;do{if(Oi&&(_i=null),Sr=0,Oi=!1,25<=f)throw Error(a(301));if(f+=1,it=Qe=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}N.H=om,h=n(i,u)}while(Oi);return h}function Z1(){var e=N.H,n=e.useState()[0];return n=typeof n.then=="function"?kr(n):n,e=e.useState()[0],(Qe!==null?Qe.memoizedState:null)!==e&&(we.flags|=1024),n}function ds(){var e=Ka!==0;return Ka=0,e}function ms(e,n,i){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~i}function ps(e){if(Za){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Za=!1}Un=0,it=Qe=we=null,Oi=!1,Sr=Ka=0,_i=null}function Ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return it===null?we.memoizedState=it=e:it=it.next=e,it}function nt(){if(Qe===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=Qe.next;var n=it===null?we.memoizedState:it.next;if(n!==null)it=n,Qe=e;else{if(e===null)throw we.alternate===null?Error(a(467)):Error(a(310));Qe=e,e={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},it===null?we.memoizedState=it=e:it=it.next=e}return it}function Ja(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function kr(e){var n=Sr;return Sr+=1,_i===null&&(_i=[]),e=gd(_i,e,n),n=we,(it===null?n.memoizedState:it.next)===null&&(n=n.alternate,N.H=n===null||n.memoizedState===null?um:As),e}function Pa(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return kr(e);if(e.$$typeof===j)return pt(e)}throw Error(a(438,String(e)))}function gs(e){var n=null,i=we.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var u=we.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(n={data:u.data.map(function(f){return f.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=Ja(),we.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(e),u=0;u<e;u++)i[u]=q;return n.index++,i}function Bn(e,n){return typeof n=="function"?n(e):n}function $a(e){var n=nt();return ys(n,Qe,e)}function ys(e,n,i){var u=e.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=i;var f=e.baseQueue,h=u.pending;if(h!==null){if(f!==null){var b=f.next;f.next=h.next,h.next=b}n.baseQueue=f=h,u.pending=null}if(h=e.baseState,f===null)e.memoizedState=h;else{n=f.next;var S=b=null,T=null,U=n,F=!1;do{var Z=U.lane&-536870913;if(Z!==U.lane?(_e&Z)===Z:(Un&Z)===Z){var H=U.revertLane;if(H===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),Z===Ci&&(F=!0);else if((Un&H)===H){U=U.next,H===Ci&&(F=!0);continue}else Z={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},T===null?(S=T=Z,b=h):T=T.next=Z,we.lanes|=H,dl|=H;Z=U.action,Fl&&i(h,Z),h=U.hasEagerState?U.eagerState:i(h,Z)}else H={lane:Z,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},T===null?(S=T=H,b=h):T=T.next=H,we.lanes|=Z,dl|=Z;U=U.next}while(U!==null&&U!==n);if(T===null?b=h:T.next=S,!Qt(h,e.memoizedState)&&(rt=!0,F&&(i=Ti,i!==null)))throw i;e.memoizedState=h,e.baseState=b,e.baseQueue=T,u.lastRenderedState=h}return f===null&&(u.lanes=0),[e.memoizedState,u.dispatch]}function bs(e){var n=nt(),i=n.queue;if(i===null)throw Error(a(311));i.lastRenderedReducer=e;var u=i.dispatch,f=i.pending,h=n.memoizedState;if(f!==null){i.pending=null;var b=f=f.next;do h=e(h,b.action),b=b.next;while(b!==f);Qt(h,n.memoizedState)||(rt=!0),n.memoizedState=h,n.baseQueue===null&&(n.baseState=h),i.lastRenderedState=h}return[h,u]}function Ad(e,n,i){var u=we,f=nt(),h=De;if(h){if(i===void 0)throw Error(a(407));i=i()}else i=n();var b=!Qt((Qe||f).memoizedState,i);if(b&&(f.memoizedState=i,rt=!0),f=f.queue,Ss(Od.bind(null,u,f,e),[e]),f.getSnapshot!==n||b||it!==null&&it.memoizedState.tag&1){if(u.flags|=2048,Mi(9,{destroy:void 0},Rd.bind(null,u,f,i,n),null),Xe===null)throw Error(a(349));h||(Un&127)!==0||zd(u,n,i)}return i}function zd(e,n,i){e.flags|=16384,e={getSnapshot:n,value:i},n=we.updateQueue,n===null?(n=Ja(),we.updateQueue=n,n.stores=[e]):(i=n.stores,i===null?n.stores=[e]:i.push(e))}function Rd(e,n,i,u){n.value=i,n.getSnapshot=u,_d(n)&&Md(e)}function Od(e,n,i){return i(function(){_d(n)&&Md(e)})}function _d(e){var n=e.getSnapshot;e=e.value;try{var i=n();return!Qt(e,i)}catch{return!0}}function Md(e){var n=Nl(e,2);n!==null&&Lt(n,e,2)}function vs(e){var n=Ct();if(typeof e=="function"){var i=e;if(e=i(),Fl){Rt(!0);try{i()}finally{Rt(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:e},n}function Dd(e,n,i,u){return e.baseState=i,ys(e,Qe,typeof u=="function"?u:Bn)}function K1(e,n,i,u,f){if(tu(e))throw Error(a(485));if(e=n.action,e!==null){var h={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){h.listeners.push(b)}};N.T!==null?i(!0):h.isTransition=!1,u(h),i=n.pending,i===null?(h.next=n.pending=h,Nd(n,h)):(h.next=i.next,n.pending=i.next=h)}}function Nd(e,n){var i=n.action,u=n.payload,f=e.state;if(n.isTransition){var h=N.T,b={};N.T=b;try{var S=i(f,u),T=N.S;T!==null&&T(b,S),jd(e,n,S)}catch(U){xs(e,n,U)}finally{h!==null&&b.types!==null&&(h.types=b.types),N.T=h}}else try{h=i(f,u),jd(e,n,h)}catch(U){xs(e,n,U)}}function jd(e,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(u){Ld(e,n,u)},function(u){return xs(e,n,u)}):Ld(e,n,i)}function Ld(e,n,i){n.status="fulfilled",n.value=i,Ud(n),e.state=i,n=e.pending,n!==null&&(i=n.next,i===n?e.pending=null:(i=i.next,n.next=i,Nd(e,i)))}function xs(e,n,i){var u=e.pending;if(e.pending=null,u!==null){u=u.next;do n.status="rejected",n.reason=i,Ud(n),n=n.next;while(n!==u)}e.action=null}function Ud(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Bd(e,n){return n}function Hd(e,n){if(De){var i=Xe.formState;if(i!==null){e:{var u=we;if(De){if(Ke){t:{for(var f=Ke,h=rn;f.nodeType!==8;){if(!h){f=null;break t}if(f=un(f.nextSibling),f===null){f=null;break t}}h=f.data,f=h==="F!"||h==="F"?f:null}if(f){Ke=un(f.nextSibling),u=f.data==="F!";break e}}il(u)}u=!1}u&&(n=i[0])}}return i=Ct(),i.memoizedState=i.baseState=n,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bd,lastRenderedState:n},i.queue=u,i=im.bind(null,we,u),u.dispatch=i,u=vs(!1),h=Ts.bind(null,we,!1,u.queue),u=Ct(),f={state:n,dispatch:null,action:e,pending:null},u.queue=f,i=K1.bind(null,we,f,h,i),f.dispatch=i,u.memoizedState=e,[n,i,!1]}function qd(e){var n=nt();return Qd(n,Qe,e)}function Qd(e,n,i){if(n=ys(e,n,Bd)[0],e=$a(Bn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var u=kr(n)}catch(b){throw b===Ai?Ga:b}else u=n;n=nt();var f=n.queue,h=f.dispatch;return i!==n.memoizedState&&(we.flags|=2048,Mi(9,{destroy:void 0},J1.bind(null,f,i),null)),[u,h,e]}function J1(e,n){e.action=n}function Gd(e){var n=nt(),i=Qe;if(i!==null)return Qd(n,i,e);nt(),n=n.memoizedState,i=nt();var u=i.queue.dispatch;return i.memoizedState=e,[n,u,!1]}function Mi(e,n,i,u){return e={tag:e,create:i,deps:u,inst:n,next:null},n=we.updateQueue,n===null&&(n=Ja(),we.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=e.next=e:(u=i.next,i.next=e,e.next=u,n.lastEffect=e),e}function Fd(){return nt().memoizedState}function Wa(e,n,i,u){var f=Ct();we.flags|=e,f.memoizedState=Mi(1|n,{destroy:void 0},i,u===void 0?null:u)}function eu(e,n,i,u){var f=nt();u=u===void 0?null:u;var h=f.memoizedState.inst;Qe!==null&&u!==null&&fs(u,Qe.memoizedState.deps)?f.memoizedState=Mi(n,h,i,u):(we.flags|=e,f.memoizedState=Mi(1|n,h,i,u))}function Yd(e,n){Wa(8390656,8,e,n)}function Ss(e,n){eu(2048,8,e,n)}function P1(e){we.flags|=4;var n=we.updateQueue;if(n===null)n=Ja(),we.updateQueue=n,n.events=[e];else{var i=n.events;i===null?n.events=[e]:i.push(e)}}function Vd(e){var n=nt().memoizedState;return P1({ref:n,nextImpl:e}),function(){if((Ue&2)!==0)throw Error(a(440));return n.impl.apply(void 0,arguments)}}function Xd(e,n){return eu(4,2,e,n)}function Id(e,n){return eu(4,4,e,n)}function Zd(e,n){if(typeof n=="function"){e=e();var i=n(e);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Kd(e,n,i){i=i!=null?i.concat([e]):null,eu(4,4,Zd.bind(null,n,e),i)}function ks(){}function Jd(e,n){var i=nt();n=n===void 0?null:n;var u=i.memoizedState;return n!==null&&fs(n,u[1])?u[0]:(i.memoizedState=[e,n],e)}function Pd(e,n){var i=nt();n=n===void 0?null:n;var u=i.memoizedState;if(n!==null&&fs(n,u[1]))return u[0];if(u=e(),Fl){Rt(!0);try{e()}finally{Rt(!1)}}return i.memoizedState=[u,n],u}function ws(e,n,i){return i===void 0||(Un&1073741824)!==0&&(_e&261930)===0?e.memoizedState=n:(e.memoizedState=i,e=$m(),we.lanes|=e,dl|=e,i)}function $d(e,n,i,u){return Qt(i,n)?i:Ri.current!==null?(e=ws(e,i,u),Qt(e,n)||(rt=!0),e):(Un&42)===0||(Un&1073741824)!==0&&(_e&261930)===0?(rt=!0,e.memoizedState=i):(e=$m(),we.lanes|=e,dl|=e,n)}function Wd(e,n,i,u,f){var h=K.p;K.p=h!==0&&8>h?h:8;var b=N.T,S={};N.T=S,Ts(e,!1,n,i);try{var T=f(),U=N.S;if(U!==null&&U(S,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var F=X1(T,u);wr(e,n,F,It(e))}else wr(e,n,u,It(e))}catch(Z){wr(e,n,{then:function(){},status:"rejected",reason:Z},It())}finally{K.p=h,b!==null&&S.types!==null&&(b.types=S.types),N.T=b}}function $1(){}function Es(e,n,i,u){if(e.tag!==5)throw Error(a(476));var f=em(e).queue;Wd(e,f,n,he,i===null?$1:function(){return tm(e),i(u)})}function em(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:he,baseState:he,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:he},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:i},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function tm(e){var n=em(e);n.next===null&&(n=e.alternate.memoizedState),wr(e,n.next.queue,{},It())}function Cs(){return pt(qr)}function nm(){return nt().memoizedState}function lm(){return nt().memoizedState}function W1(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var i=It();e=ul(i);var u=ol(n,e,i);u!==null&&(Lt(u,n,i),br(u,n,i)),n={cache:es()},e.payload=n;return}n=n.return}}function ex(e,n,i){var u=It();i={lane:u,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},tu(e)?rm(n,i):(i=Fo(e,n,i,u),i!==null&&(Lt(i,e,u),am(i,n,u)))}function im(e,n,i){var u=It();wr(e,n,i,u)}function wr(e,n,i,u){var f={lane:u,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(tu(e))rm(n,f);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null))try{var b=n.lastRenderedState,S=h(b,i);if(f.hasEagerState=!0,f.eagerState=S,Qt(S,b))return ja(e,n,f,0),Xe===null&&Na(),!1}catch{}if(i=Fo(e,n,f,u),i!==null)return Lt(i,e,u),am(i,n,u),!0}return!1}function Ts(e,n,i,u){if(u={lane:2,revertLane:ic(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},tu(e)){if(n)throw Error(a(479))}else n=Fo(e,i,u,2),n!==null&&Lt(n,e,2)}function tu(e){var n=e.alternate;return e===we||n!==null&&n===we}function rm(e,n){Oi=Za=!0;var i=e.pending;i===null?n.next=n:(n.next=i.next,i.next=n),e.pending=n}function am(e,n,i){if((i&4194048)!==0){var u=n.lanes;u&=e.pendingLanes,i|=u,n.lanes=i,fh(e,i)}}var Er={readContext:pt,use:Pa,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useLayoutEffect:We,useInsertionEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useSyncExternalStore:We,useId:We,useHostTransitionStatus:We,useFormState:We,useActionState:We,useOptimistic:We,useMemoCache:We,useCacheRefresh:We};Er.useEffectEvent=We;var um={readContext:pt,use:Pa,useCallback:function(e,n){return Ct().memoizedState=[e,n===void 0?null:n],e},useContext:pt,useEffect:Yd,useImperativeHandle:function(e,n,i){i=i!=null?i.concat([e]):null,Wa(4194308,4,Zd.bind(null,n,e),i)},useLayoutEffect:function(e,n){return Wa(4194308,4,e,n)},useInsertionEffect:function(e,n){Wa(4,2,e,n)},useMemo:function(e,n){var i=Ct();n=n===void 0?null:n;var u=e();if(Fl){Rt(!0);try{e()}finally{Rt(!1)}}return i.memoizedState=[u,n],u},useReducer:function(e,n,i){var u=Ct();if(i!==void 0){var f=i(n);if(Fl){Rt(!0);try{i(n)}finally{Rt(!1)}}}else f=n;return u.memoizedState=u.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},u.queue=e,e=e.dispatch=ex.bind(null,we,e),[u.memoizedState,e]},useRef:function(e){var n=Ct();return e={current:e},n.memoizedState=e},useState:function(e){e=vs(e);var n=e.queue,i=im.bind(null,we,n);return n.dispatch=i,[e.memoizedState,i]},useDebugValue:ks,useDeferredValue:function(e,n){var i=Ct();return ws(i,e,n)},useTransition:function(){var e=vs(!1);return e=Wd.bind(null,we,e.queue,!0,!1),Ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,i){var u=we,f=Ct();if(De){if(i===void 0)throw Error(a(407));i=i()}else{if(i=n(),Xe===null)throw Error(a(349));(_e&127)!==0||zd(u,n,i)}f.memoizedState=i;var h={value:i,getSnapshot:n};return f.queue=h,Yd(Od.bind(null,u,h,e),[e]),u.flags|=2048,Mi(9,{destroy:void 0},Rd.bind(null,u,h,i,n),null),i},useId:function(){var e=Ct(),n=Xe.identifierPrefix;if(De){var i=wn,u=kn;i=(u&~(1<<32-Ve(u)-1)).toString(32)+i,n="_"+n+"R_"+i,i=Ka++,0<i&&(n+="H"+i.toString(32)),n+="_"}else i=I1++,n="_"+n+"r_"+i.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:Cs,useFormState:Hd,useActionState:Hd,useOptimistic:function(e){var n=Ct();n.memoizedState=n.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=Ts.bind(null,we,!0,i),i.dispatch=n,[e,n]},useMemoCache:gs,useCacheRefresh:function(){return Ct().memoizedState=W1.bind(null,we)},useEffectEvent:function(e){var n=Ct(),i={impl:e};return n.memoizedState=i,function(){if((Ue&2)!==0)throw Error(a(440));return i.impl.apply(void 0,arguments)}}},As={readContext:pt,use:Pa,useCallback:Jd,useContext:pt,useEffect:Ss,useImperativeHandle:Kd,useInsertionEffect:Xd,useLayoutEffect:Id,useMemo:Pd,useReducer:$a,useRef:Fd,useState:function(){return $a(Bn)},useDebugValue:ks,useDeferredValue:function(e,n){var i=nt();return $d(i,Qe.memoizedState,e,n)},useTransition:function(){var e=$a(Bn)[0],n=nt().memoizedState;return[typeof e=="boolean"?e:kr(e),n]},useSyncExternalStore:Ad,useId:nm,useHostTransitionStatus:Cs,useFormState:qd,useActionState:qd,useOptimistic:function(e,n){var i=nt();return Dd(i,Qe,e,n)},useMemoCache:gs,useCacheRefresh:lm};As.useEffectEvent=Vd;var om={readContext:pt,use:Pa,useCallback:Jd,useContext:pt,useEffect:Ss,useImperativeHandle:Kd,useInsertionEffect:Xd,useLayoutEffect:Id,useMemo:Pd,useReducer:bs,useRef:Fd,useState:function(){return bs(Bn)},useDebugValue:ks,useDeferredValue:function(e,n){var i=nt();return Qe===null?ws(i,e,n):$d(i,Qe.memoizedState,e,n)},useTransition:function(){var e=bs(Bn)[0],n=nt().memoizedState;return[typeof e=="boolean"?e:kr(e),n]},useSyncExternalStore:Ad,useId:nm,useHostTransitionStatus:Cs,useFormState:Gd,useActionState:Gd,useOptimistic:function(e,n){var i=nt();return Qe!==null?Dd(i,Qe,e,n):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:gs,useCacheRefresh:lm};om.useEffectEvent=Vd;function zs(e,n,i,u){n=e.memoizedState,i=i(u,n),i=i==null?n:g({},n,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var Rs={enqueueSetState:function(e,n,i){e=e._reactInternals;var u=It(),f=ul(u);f.payload=n,i!=null&&(f.callback=i),n=ol(e,f,u),n!==null&&(Lt(n,e,u),br(n,e,u))},enqueueReplaceState:function(e,n,i){e=e._reactInternals;var u=It(),f=ul(u);f.tag=1,f.payload=n,i!=null&&(f.callback=i),n=ol(e,f,u),n!==null&&(Lt(n,e,u),br(n,e,u))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var i=It(),u=ul(i);u.tag=2,n!=null&&(u.callback=n),n=ol(e,u,i),n!==null&&(Lt(n,e,i),br(n,e,i))}};function sm(e,n,i,u,f,h,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(u,h,b):n.prototype&&n.prototype.isPureReactComponent?!cr(i,u)||!cr(f,h):!0}function cm(e,n,i,u){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,u),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,u),n.state!==e&&Rs.enqueueReplaceState(n,n.state,null)}function Yl(e,n){var i=n;if("ref"in n){i={};for(var u in n)u!=="ref"&&(i[u]=n[u])}if(e=e.defaultProps){i===n&&(i=g({},i));for(var f in e)i[f]===void 0&&(i[f]=e[f])}return i}function fm(e){Da(e)}function hm(e){console.error(e)}function dm(e){Da(e)}function nu(e,n){try{var i=e.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(u){setTimeout(function(){throw u})}}function mm(e,n,i){try{var u=e.onCaughtError;u(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Os(e,n,i){return i=ul(i),i.tag=3,i.payload={element:null},i.callback=function(){nu(e,n)},i}function pm(e){return e=ul(e),e.tag=3,e}function gm(e,n,i,u){var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var h=u.value;e.payload=function(){return f(h)},e.callback=function(){mm(n,i,u)}}var b=i.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){mm(n,i,u),typeof f!="function"&&(ml===null?ml=new Set([this]):ml.add(this));var S=u.stack;this.componentDidCatch(u.value,{componentStack:S!==null?S:""})})}function tx(e,n,i,u,f){if(i.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(n=i.alternate,n!==null&&Ei(n,i,f,!0),i=Ft.current,i!==null){switch(i.tag){case 31:case 13:return an===null?mu():i.alternate===null&&et===0&&(et=3),i.flags&=-257,i.flags|=65536,i.lanes=f,u===Fa?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([u]):n.add(u),tc(e,u,f)),!1;case 22:return i.flags|=65536,u===Fa?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([u])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([u]):i.add(u)),tc(e,u,f)),!1}throw Error(a(435,i.tag))}return tc(e,u,f),mu(),!1}if(De)return n=Ft.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,u!==Ko&&(e=Error(a(422),{cause:u}),dr(tn(e,i)))):(u!==Ko&&(n=Error(a(423),{cause:u}),dr(tn(n,i))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,u=tn(u,i),f=Os(e.stateNode,u,f),as(e,f),et!==4&&(et=2)),!1;var h=Error(a(520),{cause:u});if(h=tn(h,i),Mr===null?Mr=[h]:Mr.push(h),et!==4&&(et=2),n===null)return!0;u=tn(u,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,e=f&-f,i.lanes|=e,e=Os(i.stateNode,u,e),as(i,e),!1;case 1:if(n=i.type,h=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(ml===null||!ml.has(h))))return i.flags|=65536,f&=-f,i.lanes|=f,f=pm(f),gm(f,e,i,u),as(i,f),!1}i=i.return}while(i!==null);return!1}var _s=Error(a(461)),rt=!1;function gt(e,n,i,u){n.child=e===null?xd(n,null,i,u):Gl(n,e.child,i,u)}function ym(e,n,i,u,f){i=i.render;var h=n.ref;if("ref"in u){var b={};for(var S in u)S!=="ref"&&(b[S]=u[S])}else b=u;return Bl(n),u=hs(e,n,i,b,h,f),S=ds(),e!==null&&!rt?(ms(e,n,f),Hn(e,n,f)):(De&&S&&Io(n),n.flags|=1,gt(e,n,u,f),n.child)}function bm(e,n,i,u,f){if(e===null){var h=i.type;return typeof h=="function"&&!Yo(h)&&h.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=h,vm(e,n,h,u,f)):(e=Ua(i.type,null,u,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(h=e.child,!Hs(e,f)){var b=h.memoizedProps;if(i=i.compare,i=i!==null?i:cr,i(b,u)&&e.ref===n.ref)return Hn(e,n,f)}return n.flags|=1,e=Dn(h,u),e.ref=n.ref,e.return=n,n.child=e}function vm(e,n,i,u,f){if(e!==null){var h=e.memoizedProps;if(cr(h,u)&&e.ref===n.ref)if(rt=!1,n.pendingProps=u=h,Hs(e,f))(e.flags&131072)!==0&&(rt=!0);else return n.lanes=e.lanes,Hn(e,n,f)}return Ms(e,n,i,u,f)}function xm(e,n,i,u){var f=u.children,h=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((n.flags&128)!==0){if(h=h!==null?h.baseLanes|i:i,e!==null){for(u=n.child=e.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;u=f&~h}else u=0,n.child=null;return Sm(e,n,h,i,u)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Qa(n,h!==null?h.cachePool:null),h!==null?wd(n,h):os(),Ed(n);else return u=n.lanes=536870912,Sm(e,n,h!==null?h.baseLanes|i:i,i,u)}else h!==null?(Qa(n,h.cachePool),wd(n,h),cl(),n.memoizedState=null):(e!==null&&Qa(n,null),os(),cl());return gt(e,n,f,i),n.child}function Cr(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Sm(e,n,i,u,f){var h=ns();return h=h===null?null:{parent:lt._currentValue,pool:h},n.memoizedState={baseLanes:i,cachePool:h},e!==null&&Qa(n,null),os(),Ed(n),e!==null&&Ei(e,n,u,!0),n.childLanes=f,null}function lu(e,n){return n=ru({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function km(e,n,i){return Gl(n,e.child,null,i),e=lu(n,n.pendingProps),e.flags|=2,Yt(n),n.memoizedState=null,e}function nx(e,n,i){var u=n.pendingProps,f=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(De){if(u.mode==="hidden")return e=lu(n,u),n.lanes=536870912,Cr(null,e);if(cs(n),(e=Ke)?(e=Np(e,rn),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:nl!==null?{id:kn,overflow:wn}:null,retryLane:536870912,hydrationErrors:null},i=rd(e),i.return=n,n.child=i,mt=n,Ke=null)):e=null,e===null)throw il(n);return n.lanes=536870912,null}return lu(n,u)}var h=e.memoizedState;if(h!==null){var b=h.dehydrated;if(cs(n),f)if(n.flags&256)n.flags&=-257,n=km(e,n,i);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(a(558));else if(rt||Ei(e,n,i,!1),f=(i&e.childLanes)!==0,rt||f){if(u=Xe,u!==null&&(b=hh(u,i),b!==0&&b!==h.retryLane))throw h.retryLane=b,Nl(e,b),Lt(u,e,b),_s;mu(),n=km(e,n,i)}else e=h.treeContext,Ke=un(b.nextSibling),mt=n,De=!0,ll=null,rn=!1,e!==null&&od(n,e),n=lu(n,u),n.flags|=4096;return n}return e=Dn(e.child,{mode:u.mode,children:u.children}),e.ref=n.ref,n.child=e,e.return=n,e}function iu(e,n){var i=n.ref;if(i===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(a(284));(e===null||e.ref!==i)&&(n.flags|=4194816)}}function Ms(e,n,i,u,f){return Bl(n),i=hs(e,n,i,u,void 0,f),u=ds(),e!==null&&!rt?(ms(e,n,f),Hn(e,n,f)):(De&&u&&Io(n),n.flags|=1,gt(e,n,i,f),n.child)}function wm(e,n,i,u,f,h){return Bl(n),n.updateQueue=null,i=Td(n,u,i,f),Cd(e),u=ds(),e!==null&&!rt?(ms(e,n,h),Hn(e,n,h)):(De&&u&&Io(n),n.flags|=1,gt(e,n,i,h),n.child)}function Em(e,n,i,u,f){if(Bl(n),n.stateNode===null){var h=xi,b=i.contextType;typeof b=="object"&&b!==null&&(h=pt(b)),h=new i(u,h),n.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Rs,n.stateNode=h,h._reactInternals=n,h=n.stateNode,h.props=u,h.state=n.memoizedState,h.refs={},is(n),b=i.contextType,h.context=typeof b=="object"&&b!==null?pt(b):xi,h.state=n.memoizedState,b=i.getDerivedStateFromProps,typeof b=="function"&&(zs(n,i,b,u),h.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(b=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),b!==h.state&&Rs.enqueueReplaceState(h,h.state,null),xr(n,u,h,f),vr(),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308),u=!0}else if(e===null){h=n.stateNode;var S=n.memoizedProps,T=Yl(i,S);h.props=T;var U=h.context,F=i.contextType;b=xi,typeof F=="object"&&F!==null&&(b=pt(F));var Z=i.getDerivedStateFromProps;F=typeof Z=="function"||typeof h.getSnapshotBeforeUpdate=="function",S=n.pendingProps!==S,F||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(S||U!==b)&&cm(n,h,u,b),al=!1;var H=n.memoizedState;h.state=H,xr(n,u,h,f),vr(),U=n.memoizedState,S||H!==U||al?(typeof Z=="function"&&(zs(n,i,Z,u),U=n.memoizedState),(T=al||sm(n,i,T,u,H,U,b))?(F||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(n.flags|=4194308)):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=u,n.memoizedState=U),h.props=u,h.state=U,h.context=b,u=T):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),u=!1)}else{h=n.stateNode,rs(e,n),b=n.memoizedProps,F=Yl(i,b),h.props=F,Z=n.pendingProps,H=h.context,U=i.contextType,T=xi,typeof U=="object"&&U!==null&&(T=pt(U)),S=i.getDerivedStateFromProps,(U=typeof S=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(b!==Z||H!==T)&&cm(n,h,u,T),al=!1,H=n.memoizedState,h.state=H,xr(n,u,h,f),vr();var G=n.memoizedState;b!==Z||H!==G||al||e!==null&&e.dependencies!==null&&Ha(e.dependencies)?(typeof S=="function"&&(zs(n,i,S,u),G=n.memoizedState),(F=al||sm(n,i,F,u,H,G,T)||e!==null&&e.dependencies!==null&&Ha(e.dependencies))?(U||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(u,G,T),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(u,G,T)),typeof h.componentDidUpdate=="function"&&(n.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(n.flags|=1024),n.memoizedProps=u,n.memoizedState=G),h.props=u,h.state=G,h.context=T,u=F):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(n.flags|=1024),u=!1)}return h=u,iu(e,n),u=(n.flags&128)!==0,h||u?(h=n.stateNode,i=u&&typeof i.getDerivedStateFromError!="function"?null:h.render(),n.flags|=1,e!==null&&u?(n.child=Gl(n,e.child,null,f),n.child=Gl(n,null,i,f)):gt(e,n,i,f),n.memoizedState=h.state,e=n.child):e=Hn(e,n,f),e}function Cm(e,n,i,u){return Ll(),n.flags|=256,gt(e,n,i,u),n.child}var Ds={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ns(e){return{baseLanes:e,cachePool:md()}}function js(e,n,i){return e=e!==null?e.childLanes&~i:0,n&&(e|=Xt),e}function Tm(e,n,i){var u=n.pendingProps,f=!1,h=(n.flags&128)!==0,b;if((b=h)||(b=e!==null&&e.memoizedState===null?!1:(tt.current&2)!==0),b&&(f=!0,n.flags&=-129),b=(n.flags&32)!==0,n.flags&=-33,e===null){if(De){if(f?sl(n):cl(),(e=Ke)?(e=Np(e,rn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:nl!==null?{id:kn,overflow:wn}:null,retryLane:536870912,hydrationErrors:null},i=rd(e),i.return=n,n.child=i,mt=n,Ke=null)):e=null,e===null)throw il(n);return yc(e)?n.lanes=32:n.lanes=536870912,null}var S=u.children;return u=u.fallback,f?(cl(),f=n.mode,S=ru({mode:"hidden",children:S},f),u=jl(u,f,i,null),S.return=n,u.return=n,S.sibling=u,n.child=S,u=n.child,u.memoizedState=Ns(i),u.childLanes=js(e,b,i),n.memoizedState=Ds,Cr(null,u)):(sl(n),Ls(n,S))}var T=e.memoizedState;if(T!==null&&(S=T.dehydrated,S!==null)){if(h)n.flags&256?(sl(n),n.flags&=-257,n=Us(e,n,i)):n.memoizedState!==null?(cl(),n.child=e.child,n.flags|=128,n=null):(cl(),S=u.fallback,f=n.mode,u=ru({mode:"visible",children:u.children},f),S=jl(S,f,i,null),S.flags|=2,u.return=n,S.return=n,u.sibling=S,n.child=u,Gl(n,e.child,null,i),u=n.child,u.memoizedState=Ns(i),u.childLanes=js(e,b,i),n.memoizedState=Ds,n=Cr(null,u));else if(sl(n),yc(S)){if(b=S.nextSibling&&S.nextSibling.dataset,b)var U=b.dgst;b=U,u=Error(a(419)),u.stack="",u.digest=b,dr({value:u,source:null,stack:null}),n=Us(e,n,i)}else if(rt||Ei(e,n,i,!1),b=(i&e.childLanes)!==0,rt||b){if(b=Xe,b!==null&&(u=hh(b,i),u!==0&&u!==T.retryLane))throw T.retryLane=u,Nl(e,u),Lt(b,e,u),_s;gc(S)||mu(),n=Us(e,n,i)}else gc(S)?(n.flags|=192,n.child=e.child,n=null):(e=T.treeContext,Ke=un(S.nextSibling),mt=n,De=!0,ll=null,rn=!1,e!==null&&od(n,e),n=Ls(n,u.children),n.flags|=4096);return n}return f?(cl(),S=u.fallback,f=n.mode,T=e.child,U=T.sibling,u=Dn(T,{mode:"hidden",children:u.children}),u.subtreeFlags=T.subtreeFlags&65011712,U!==null?S=Dn(U,S):(S=jl(S,f,i,null),S.flags|=2),S.return=n,u.return=n,u.sibling=S,n.child=u,Cr(null,u),u=n.child,S=e.child.memoizedState,S===null?S=Ns(i):(f=S.cachePool,f!==null?(T=lt._currentValue,f=f.parent!==T?{parent:T,pool:T}:f):f=md(),S={baseLanes:S.baseLanes|i,cachePool:f}),u.memoizedState=S,u.childLanes=js(e,b,i),n.memoizedState=Ds,Cr(e.child,u)):(sl(n),i=e.child,e=i.sibling,i=Dn(i,{mode:"visible",children:u.children}),i.return=n,i.sibling=null,e!==null&&(b=n.deletions,b===null?(n.deletions=[e],n.flags|=16):b.push(e)),n.child=i,n.memoizedState=null,i)}function Ls(e,n){return n=ru({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function ru(e,n){return e=Gt(22,e,null,n),e.lanes=0,e}function Us(e,n,i){return Gl(n,e.child,null,i),e=Ls(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Am(e,n,i){e.lanes|=n;var u=e.alternate;u!==null&&(u.lanes|=n),$o(e.return,n,i)}function Bs(e,n,i,u,f,h){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:u,tail:i,tailMode:f,treeForkCount:h}:(b.isBackwards=n,b.rendering=null,b.renderingStartTime=0,b.last=u,b.tail=i,b.tailMode=f,b.treeForkCount=h)}function zm(e,n,i){var u=n.pendingProps,f=u.revealOrder,h=u.tail;u=u.children;var b=tt.current,S=(b&2)!==0;if(S?(b=b&1|2,n.flags|=128):b&=1,w(tt,b),gt(e,n,u,i),u=De?hr:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Am(e,i,n);else if(e.tag===19)Am(e,i,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(f){case"forwards":for(i=n.child,f=null;i!==null;)e=i.alternate,e!==null&&Ia(e)===null&&(f=i),i=i.sibling;i=f,i===null?(f=n.child,n.child=null):(f=i.sibling,i.sibling=null),Bs(n,!1,f,i,h,u);break;case"backwards":case"unstable_legacy-backwards":for(i=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&Ia(e)===null){n.child=f;break}e=f.sibling,f.sibling=i,i=f,f=e}Bs(n,!0,i,null,h,u);break;case"together":Bs(n,!1,null,null,void 0,u);break;default:n.memoizedState=null}return n.child}function Hn(e,n,i){if(e!==null&&(n.dependencies=e.dependencies),dl|=n.lanes,(i&n.childLanes)===0)if(e!==null){if(Ei(e,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(a(153));if(n.child!==null){for(e=n.child,i=Dn(e,e.pendingProps),n.child=i,i.return=n;e.sibling!==null;)e=e.sibling,i=i.sibling=Dn(e,e.pendingProps),i.return=n;i.sibling=null}return n.child}function Hs(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Ha(e)))}function lx(e,n,i){switch(n.tag){case 3:Ye(n,n.stateNode.containerInfo),rl(n,lt,e.memoizedState.cache),Ll();break;case 27:case 5:kt(n);break;case 4:Ye(n,n.stateNode.containerInfo);break;case 10:rl(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,cs(n),null;break;case 13:var u=n.memoizedState;if(u!==null)return u.dehydrated!==null?(sl(n),n.flags|=128,null):(i&n.child.childLanes)!==0?Tm(e,n,i):(sl(n),e=Hn(e,n,i),e!==null?e.sibling:null);sl(n);break;case 19:var f=(e.flags&128)!==0;if(u=(i&n.childLanes)!==0,u||(Ei(e,n,i,!1),u=(i&n.childLanes)!==0),f){if(u)return zm(e,n,i);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),w(tt,tt.current),u)break;return null;case 22:return n.lanes=0,xm(e,n,i,n.pendingProps);case 24:rl(n,lt,e.memoizedState.cache)}return Hn(e,n,i)}function Rm(e,n,i){if(e!==null)if(e.memoizedProps!==n.pendingProps)rt=!0;else{if(!Hs(e,i)&&(n.flags&128)===0)return rt=!1,lx(e,n,i);rt=(e.flags&131072)!==0}else rt=!1,De&&(n.flags&1048576)!==0&&ud(n,hr,n.index);switch(n.lanes=0,n.tag){case 16:e:{var u=n.pendingProps;if(e=ql(n.elementType),n.type=e,typeof e=="function")Yo(e)?(u=Yl(e,u),n.tag=1,n=Em(null,n,e,u,i)):(n.tag=0,n=Ms(null,n,e,u,i));else{if(e!=null){var f=e.$$typeof;if(f===W){n.tag=11,n=ym(null,n,e,u,i);break e}else if(f===J){n.tag=14,n=bm(null,n,e,u,i);break e}}throw n=ue(e)||e,Error(a(306,n,""))}}return n;case 0:return Ms(e,n,n.type,n.pendingProps,i);case 1:return u=n.type,f=Yl(u,n.pendingProps),Em(e,n,u,f,i);case 3:e:{if(Ye(n,n.stateNode.containerInfo),e===null)throw Error(a(387));u=n.pendingProps;var h=n.memoizedState;f=h.element,rs(e,n),xr(n,u,null,i);var b=n.memoizedState;if(u=b.cache,rl(n,lt,u),u!==h.cache&&Wo(n,[lt],i,!0),vr(),u=b.element,h.isDehydrated)if(h={element:u,isDehydrated:!1,cache:b.cache},n.updateQueue.baseState=h,n.memoizedState=h,n.flags&256){n=Cm(e,n,u,i);break e}else if(u!==f){f=tn(Error(a(424)),n),dr(f),n=Cm(e,n,u,i);break e}else for(e=n.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ke=un(e.firstChild),mt=n,De=!0,ll=null,rn=!0,i=xd(n,null,u,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Ll(),u===f){n=Hn(e,n,i);break e}gt(e,n,u,i)}n=n.child}return n;case 26:return iu(e,n),e===null?(i=qp(n.type,null,n.pendingProps,null))?n.memoizedState=i:De||(i=n.type,e=n.pendingProps,u=Su(re.current).createElement(i),u[dt]=n,u[Ot]=e,yt(u,i,e),ft(u),n.stateNode=u):n.memoizedState=qp(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return kt(n),e===null&&De&&(u=n.stateNode=Up(n.type,n.pendingProps,re.current),mt=n,rn=!0,f=Ke,bl(n.type)?(bc=f,Ke=un(u.firstChild)):Ke=f),gt(e,n,n.pendingProps.children,i),iu(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&De&&((f=u=Ke)&&(u=Dx(u,n.type,n.pendingProps,rn),u!==null?(n.stateNode=u,mt=n,Ke=un(u.firstChild),rn=!1,f=!0):f=!1),f||il(n)),kt(n),f=n.type,h=n.pendingProps,b=e!==null?e.memoizedProps:null,u=h.children,dc(f,h)?u=null:b!==null&&dc(f,b)&&(n.flags|=32),n.memoizedState!==null&&(f=hs(e,n,Z1,null,null,i),qr._currentValue=f),iu(e,n),gt(e,n,u,i),n.child;case 6:return e===null&&De&&((e=i=Ke)&&(i=Nx(i,n.pendingProps,rn),i!==null?(n.stateNode=i,mt=n,Ke=null,e=!0):e=!1),e||il(n)),null;case 13:return Tm(e,n,i);case 4:return Ye(n,n.stateNode.containerInfo),u=n.pendingProps,e===null?n.child=Gl(n,null,u,i):gt(e,n,u,i),n.child;case 11:return ym(e,n,n.type,n.pendingProps,i);case 7:return gt(e,n,n.pendingProps,i),n.child;case 8:return gt(e,n,n.pendingProps.children,i),n.child;case 12:return gt(e,n,n.pendingProps.children,i),n.child;case 10:return u=n.pendingProps,rl(n,n.type,u.value),gt(e,n,u.children,i),n.child;case 9:return f=n.type._context,u=n.pendingProps.children,Bl(n),f=pt(f),u=u(f),n.flags|=1,gt(e,n,u,i),n.child;case 14:return bm(e,n,n.type,n.pendingProps,i);case 15:return vm(e,n,n.type,n.pendingProps,i);case 19:return zm(e,n,i);case 31:return nx(e,n,i);case 22:return xm(e,n,i,n.pendingProps);case 24:return Bl(n),u=pt(lt),e===null?(f=ns(),f===null&&(f=Xe,h=es(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=i),f=h),n.memoizedState={parent:u,cache:f},is(n),rl(n,lt,f)):((e.lanes&i)!==0&&(rs(e,n),xr(n,null,null,i),vr()),f=e.memoizedState,h=n.memoizedState,f.parent!==u?(f={parent:u,cache:u},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),rl(n,lt,u)):(u=h.cache,rl(n,lt,u),u!==f.cache&&Wo(n,[lt],i,!0))),gt(e,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(a(156,n.tag))}function qn(e){e.flags|=4}function qs(e,n,i,u,f){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(np())e.flags|=8192;else throw Ql=Fa,ls}else e.flags&=-16777217}function Om(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Vp(n))if(np())e.flags|=8192;else throw Ql=Fa,ls}function au(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?sh():536870912,e.lanes|=n,Li|=n)}function Tr(e,n){if(!De)switch(e.tailMode){case"hidden":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var u=null;i!==null;)i.alternate!==null&&(u=i),i=i.sibling;u===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function Je(e){var n=e.alternate!==null&&e.alternate.child===e.child,i=0,u=0;if(n)for(var f=e.child;f!==null;)i|=f.lanes|f.childLanes,u|=f.subtreeFlags&65011712,u|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)i|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=u,e.childLanes=i,n}function ix(e,n,i){var u=n.pendingProps;switch(Zo(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(n),null;case 1:return Je(n),null;case 3:return i=n.stateNode,u=null,e!==null&&(u=e.memoizedState.cache),n.memoizedState.cache!==u&&(n.flags|=2048),Ln(lt),ve(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(wi(n)?qn(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Jo())),Je(n),null;case 26:var f=n.type,h=n.memoizedState;return e===null?(qn(n),h!==null?(Je(n),Om(n,h)):(Je(n),qs(n,f,null,u,i))):h?h!==e.memoizedState?(qn(n),Je(n),Om(n,h)):(Je(n),n.flags&=-16777217):(e=e.memoizedProps,e!==u&&qn(n),Je(n),qs(n,f,e,u,i)),null;case 27:if(At(n),i=re.current,f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==u&&qn(n);else{if(!u){if(n.stateNode===null)throw Error(a(166));return Je(n),null}e=le.current,wi(n)?sd(n):(e=Up(f,u,i),n.stateNode=e,qn(n))}return Je(n),null;case 5:if(At(n),f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==u&&qn(n);else{if(!u){if(n.stateNode===null)throw Error(a(166));return Je(n),null}if(h=le.current,wi(n))sd(n);else{var b=Su(re.current);switch(h){case 1:h=b.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:h=b.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":h=b.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":h=b.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":h=b.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof u.is=="string"?b.createElement("select",{is:u.is}):b.createElement("select"),u.multiple?h.multiple=!0:u.size&&(h.size=u.size);break;default:h=typeof u.is=="string"?b.createElement(f,{is:u.is}):b.createElement(f)}}h[dt]=n,h[Ot]=u;e:for(b=n.child;b!==null;){if(b.tag===5||b.tag===6)h.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===n)break e;for(;b.sibling===null;){if(b.return===null||b.return===n)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}n.stateNode=h;e:switch(yt(h,f,u),f){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&qn(n)}}return Je(n),qs(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,i),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==u&&qn(n);else{if(typeof u!="string"&&n.stateNode===null)throw Error(a(166));if(e=re.current,wi(n)){if(e=n.stateNode,i=n.memoizedProps,u=null,f=mt,f!==null)switch(f.tag){case 27:case 5:u=f.memoizedProps}e[dt]=n,e=!!(e.nodeValue===i||u!==null&&u.suppressHydrationWarning===!0||Tp(e.nodeValue,i)),e||il(n,!0)}else e=Su(e).createTextNode(u),e[dt]=n,n.stateNode=e}return Je(n),null;case 31:if(i=n.memoizedState,e===null||e.memoizedState!==null){if(u=wi(n),i!==null){if(e===null){if(!u)throw Error(a(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(557));e[dt]=n}else Ll(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Je(n),e=!1}else i=Jo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return n.flags&256?(Yt(n),n):(Yt(n),null);if((n.flags&128)!==0)throw Error(a(558))}return Je(n),null;case 13:if(u=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=wi(n),u!==null&&u.dehydrated!==null){if(e===null){if(!f)throw Error(a(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(317));f[dt]=n}else Ll(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Je(n),f=!1}else f=Jo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return n.flags&256?(Yt(n),n):(Yt(n),null)}return Yt(n),(n.flags&128)!==0?(n.lanes=i,n):(i=u!==null,e=e!==null&&e.memoizedState!==null,i&&(u=n.child,f=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(f=u.alternate.memoizedState.cachePool.pool),h=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(h=u.memoizedState.cachePool.pool),h!==f&&(u.flags|=2048)),i!==e&&i&&(n.child.flags|=8192),au(n,n.updateQueue),Je(n),null);case 4:return ve(),e===null&&oc(n.stateNode.containerInfo),Je(n),null;case 10:return Ln(n.type),Je(n),null;case 19:if(Y(tt),u=n.memoizedState,u===null)return Je(n),null;if(f=(n.flags&128)!==0,h=u.rendering,h===null)if(f)Tr(u,!1);else{if(et!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(h=Ia(e),h!==null){for(n.flags|=128,Tr(u,!1),e=h.updateQueue,n.updateQueue=e,au(n,e),n.subtreeFlags=0,e=i,i=n.child;i!==null;)id(i,e),i=i.sibling;return w(tt,tt.current&1|2),De&&Nn(n,u.treeForkCount),n.child}e=e.sibling}u.tail!==null&&wt()>fu&&(n.flags|=128,f=!0,Tr(u,!1),n.lanes=4194304)}else{if(!f)if(e=Ia(h),e!==null){if(n.flags|=128,f=!0,e=e.updateQueue,n.updateQueue=e,au(n,e),Tr(u,!0),u.tail===null&&u.tailMode==="hidden"&&!h.alternate&&!De)return Je(n),null}else 2*wt()-u.renderingStartTime>fu&&i!==536870912&&(n.flags|=128,f=!0,Tr(u,!1),n.lanes=4194304);u.isBackwards?(h.sibling=n.child,n.child=h):(e=u.last,e!==null?e.sibling=h:n.child=h,u.last=h)}return u.tail!==null?(e=u.tail,u.rendering=e,u.tail=e.sibling,u.renderingStartTime=wt(),e.sibling=null,i=tt.current,w(tt,f?i&1|2:i&1),De&&Nn(n,u.treeForkCount),e):(Je(n),null);case 22:case 23:return Yt(n),ss(),u=n.memoizedState!==null,e!==null?e.memoizedState!==null!==u&&(n.flags|=8192):u&&(n.flags|=8192),u?(i&536870912)!==0&&(n.flags&128)===0&&(Je(n),n.subtreeFlags&6&&(n.flags|=8192)):Je(n),i=n.updateQueue,i!==null&&au(n,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==i&&(n.flags|=2048),e!==null&&Y(Hl),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),Ln(lt),Je(n),null;case 25:return null;case 30:return null}throw Error(a(156,n.tag))}function rx(e,n){switch(Zo(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Ln(lt),ve(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return At(n),null;case 31:if(n.memoizedState!==null){if(Yt(n),n.alternate===null)throw Error(a(340));Ll()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(Yt(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(a(340));Ll()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Y(tt),null;case 4:return ve(),null;case 10:return Ln(n.type),null;case 22:case 23:return Yt(n),ss(),e!==null&&Y(Hl),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return Ln(lt),null;case 25:return null;default:return null}}function _m(e,n){switch(Zo(n),n.tag){case 3:Ln(lt),ve();break;case 26:case 27:case 5:At(n);break;case 4:ve();break;case 31:n.memoizedState!==null&&Yt(n);break;case 13:Yt(n);break;case 19:Y(tt);break;case 10:Ln(n.type);break;case 22:case 23:Yt(n),ss(),e!==null&&Y(Hl);break;case 24:Ln(lt)}}function Ar(e,n){try{var i=n.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var f=u.next;i=f;do{if((i.tag&e)===e){u=void 0;var h=i.create,b=i.inst;u=h(),b.destroy=u}i=i.next}while(i!==f)}}catch(S){qe(n,n.return,S)}}function fl(e,n,i){try{var u=n.updateQueue,f=u!==null?u.lastEffect:null;if(f!==null){var h=f.next;u=h;do{if((u.tag&e)===e){var b=u.inst,S=b.destroy;if(S!==void 0){b.destroy=void 0,f=n;var T=i,U=S;try{U()}catch(F){qe(f,T,F)}}}u=u.next}while(u!==h)}}catch(F){qe(n,n.return,F)}}function Mm(e){var n=e.updateQueue;if(n!==null){var i=e.stateNode;try{kd(n,i)}catch(u){qe(e,e.return,u)}}}function Dm(e,n,i){i.props=Yl(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(u){qe(e,n,u)}}function zr(e,n){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var u=e.stateNode;break;case 30:u=e.stateNode;break;default:u=e.stateNode}typeof i=="function"?e.refCleanup=i(u):i.current=u}}catch(f){qe(e,n,f)}}function En(e,n){var i=e.ref,u=e.refCleanup;if(i!==null)if(typeof u=="function")try{u()}catch(f){qe(e,n,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(f){qe(e,n,f)}else i.current=null}function Nm(e){var n=e.type,i=e.memoizedProps,u=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&u.focus();break e;case"img":i.src?u.src=i.src:i.srcSet&&(u.srcset=i.srcSet)}}catch(f){qe(e,e.return,f)}}function Qs(e,n,i){try{var u=e.stateNode;Ax(u,e.type,i,n),u[Ot]=n}catch(f){qe(e,e.return,f)}}function jm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&bl(e.type)||e.tag===4}function Gs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jm(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&&bl(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 Fs(e,n,i){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,n):(n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(e),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=_n));else if(u!==4&&(u===27&&bl(e.type)&&(i=e.stateNode,n=null),e=e.child,e!==null))for(Fs(e,n,i),e=e.sibling;e!==null;)Fs(e,n,i),e=e.sibling}function uu(e,n,i){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?i.insertBefore(e,n):i.appendChild(e);else if(u!==4&&(u===27&&bl(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(uu(e,n,i),e=e.sibling;e!==null;)uu(e,n,i),e=e.sibling}function Lm(e){var n=e.stateNode,i=e.memoizedProps;try{for(var u=e.type,f=n.attributes;f.length;)n.removeAttributeNode(f[0]);yt(n,u,i),n[dt]=e,n[Ot]=i}catch(h){qe(e,e.return,h)}}var Qn=!1,at=!1,Ys=!1,Um=typeof WeakSet=="function"?WeakSet:Set,ht=null;function ax(e,n){if(e=e.containerInfo,fc=zu,e=Kh(e),Uo(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var u=i.getSelection&&i.getSelection();if(u&&u.rangeCount!==0){i=u.anchorNode;var f=u.anchorOffset,h=u.focusNode;u=u.focusOffset;try{i.nodeType,h.nodeType}catch{i=null;break e}var b=0,S=-1,T=-1,U=0,F=0,Z=e,H=null;t:for(;;){for(var G;Z!==i||f!==0&&Z.nodeType!==3||(S=b+f),Z!==h||u!==0&&Z.nodeType!==3||(T=b+u),Z.nodeType===3&&(b+=Z.nodeValue.length),(G=Z.firstChild)!==null;)H=Z,Z=G;for(;;){if(Z===e)break t;if(H===i&&++U===f&&(S=b),H===h&&++F===u&&(T=b),(G=Z.nextSibling)!==null)break;Z=H,H=Z.parentNode}Z=G}i=S===-1||T===-1?null:{start:S,end:T}}else i=null}i=i||{start:0,end:0}}else i=null;for(hc={focusedElem:e,selectionRange:i},zu=!1,ht=n;ht!==null;)if(n=ht,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,ht=e;else for(;ht!==null;){switch(n=ht,h=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i<e.length;i++)f=e[i],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,i=n,f=h.memoizedProps,h=h.memoizedState,u=i.stateNode;try{var fe=Yl(i.type,f);e=u.getSnapshotBeforeUpdate(fe,h),u.__reactInternalSnapshotBeforeUpdate=e}catch(ge){qe(i,i.return,ge)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,i=e.nodeType,i===9)pc(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":pc(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(a(163))}if(e=n.sibling,e!==null){e.return=n.return,ht=e;break}ht=n.return}}function Bm(e,n,i){var u=i.flags;switch(i.tag){case 0:case 11:case 15:Fn(e,i),u&4&&Ar(5,i);break;case 1:if(Fn(e,i),u&4)if(e=i.stateNode,n===null)try{e.componentDidMount()}catch(b){qe(i,i.return,b)}else{var f=Yl(i.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(f,n,e.__reactInternalSnapshotBeforeUpdate)}catch(b){qe(i,i.return,b)}}u&64&&Mm(i),u&512&&zr(i,i.return);break;case 3:if(Fn(e,i),u&64&&(e=i.updateQueue,e!==null)){if(n=null,i.child!==null)switch(i.child.tag){case 27:case 5:n=i.child.stateNode;break;case 1:n=i.child.stateNode}try{kd(e,n)}catch(b){qe(i,i.return,b)}}break;case 27:n===null&&u&4&&Lm(i);case 26:case 5:Fn(e,i),n===null&&u&4&&Nm(i),u&512&&zr(i,i.return);break;case 12:Fn(e,i);break;case 31:Fn(e,i),u&4&&Qm(e,i);break;case 13:Fn(e,i),u&4&&Gm(e,i),u&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=px.bind(null,i),jx(e,i))));break;case 22:if(u=i.memoizedState!==null||Qn,!u){n=n!==null&&n.memoizedState!==null||at,f=Qn;var h=at;Qn=u,(at=n)&&!h?Yn(e,i,(i.subtreeFlags&8772)!==0):Fn(e,i),Qn=f,at=h}break;case 30:break;default:Fn(e,i)}}function Hm(e){var n=e.alternate;n!==null&&(e.alternate=null,Hm(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&xo(n)),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 $e=null,Mt=!1;function Gn(e,n,i){for(i=i.child;i!==null;)qm(e,n,i),i=i.sibling}function qm(e,n,i){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(Et,i)}catch{}switch(i.tag){case 26:at||En(i,n),Gn(e,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:at||En(i,n);var u=$e,f=Mt;bl(i.type)&&($e=i.stateNode,Mt=!1),Gn(e,n,i),Ur(i.stateNode),$e=u,Mt=f;break;case 5:at||En(i,n);case 6:if(u=$e,f=Mt,$e=null,Gn(e,n,i),$e=u,Mt=f,$e!==null)if(Mt)try{($e.nodeType===9?$e.body:$e.nodeName==="HTML"?$e.ownerDocument.body:$e).removeChild(i.stateNode)}catch(h){qe(i,n,h)}else try{$e.removeChild(i.stateNode)}catch(h){qe(i,n,h)}break;case 18:$e!==null&&(Mt?(e=$e,Mp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),Yi(e)):Mp($e,i.stateNode));break;case 4:u=$e,f=Mt,$e=i.stateNode.containerInfo,Mt=!0,Gn(e,n,i),$e=u,Mt=f;break;case 0:case 11:case 14:case 15:fl(2,i,n),at||fl(4,i,n),Gn(e,n,i);break;case 1:at||(En(i,n),u=i.stateNode,typeof u.componentWillUnmount=="function"&&Dm(i,n,u)),Gn(e,n,i);break;case 21:Gn(e,n,i);break;case 22:at=(u=at)||i.memoizedState!==null,Gn(e,n,i),at=u;break;default:Gn(e,n,i)}}function Qm(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Yi(e)}catch(i){qe(n,n.return,i)}}}function Gm(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Yi(e)}catch(i){qe(n,n.return,i)}}function ux(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Um),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Um),n;default:throw Error(a(435,e.tag))}}function ou(e,n){var i=ux(e);n.forEach(function(u){if(!i.has(u)){i.add(u);var f=gx.bind(null,e,u);u.then(f,f)}})}function Dt(e,n){var i=n.deletions;if(i!==null)for(var u=0;u<i.length;u++){var f=i[u],h=e,b=n,S=b;e:for(;S!==null;){switch(S.tag){case 27:if(bl(S.type)){$e=S.stateNode,Mt=!1;break e}break;case 5:$e=S.stateNode,Mt=!1;break e;case 3:case 4:$e=S.stateNode.containerInfo,Mt=!0;break e}S=S.return}if($e===null)throw Error(a(160));qm(h,b,f),$e=null,Mt=!1,h=f.alternate,h!==null&&(h.return=null),f.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Fm(n,e),n=n.sibling}var pn=null;function Fm(e,n){var i=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dt(n,e),Nt(e),u&4&&(fl(3,e,e.return),Ar(3,e),fl(5,e,e.return));break;case 1:Dt(n,e),Nt(e),u&512&&(at||i===null||En(i,i.return)),u&64&&Qn&&(e=e.updateQueue,e!==null&&(u=e.callbacks,u!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?u:i.concat(u))));break;case 26:var f=pn;if(Dt(n,e),Nt(e),u&512&&(at||i===null||En(i,i.return)),u&4){var h=i!==null?i.memoizedState:null;if(u=e.memoizedState,i===null)if(u===null)if(e.stateNode===null){e:{u=e.type,i=e.memoizedProps,f=f.ownerDocument||f;t:switch(u){case"title":h=f.getElementsByTagName("title")[0],(!h||h[tr]||h[dt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=f.createElement(u),f.head.insertBefore(h,f.querySelector("head > title"))),yt(h,u,i),h[dt]=e,ft(h),u=h;break e;case"link":var b=Fp("link","href",f).get(u+(i.href||""));if(b){for(var S=0;S<b.length;S++)if(h=b[S],h.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&h.getAttribute("rel")===(i.rel==null?null:i.rel)&&h.getAttribute("title")===(i.title==null?null:i.title)&&h.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){b.splice(S,1);break t}}h=f.createElement(u),yt(h,u,i),f.head.appendChild(h);break;case"meta":if(b=Fp("meta","content",f).get(u+(i.content||""))){for(S=0;S<b.length;S++)if(h=b[S],h.getAttribute("content")===(i.content==null?null:""+i.content)&&h.getAttribute("name")===(i.name==null?null:i.name)&&h.getAttribute("property")===(i.property==null?null:i.property)&&h.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&h.getAttribute("charset")===(i.charSet==null?null:i.charSet)){b.splice(S,1);break t}}h=f.createElement(u),yt(h,u,i),f.head.appendChild(h);break;default:throw Error(a(468,u))}h[dt]=e,ft(h),u=h}e.stateNode=u}else Yp(f,e.type,e.stateNode);else e.stateNode=Gp(f,u,e.memoizedProps);else h!==u?(h===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):h.count--,u===null?Yp(f,e.type,e.stateNode):Gp(f,u,e.memoizedProps)):u===null&&e.stateNode!==null&&Qs(e,e.memoizedProps,i.memoizedProps)}break;case 27:Dt(n,e),Nt(e),u&512&&(at||i===null||En(i,i.return)),i!==null&&u&4&&Qs(e,e.memoizedProps,i.memoizedProps);break;case 5:if(Dt(n,e),Nt(e),u&512&&(at||i===null||En(i,i.return)),e.flags&32){f=e.stateNode;try{di(f,"")}catch(fe){qe(e,e.return,fe)}}u&4&&e.stateNode!=null&&(f=e.memoizedProps,Qs(e,f,i!==null?i.memoizedProps:f)),u&1024&&(Ys=!0);break;case 6:if(Dt(n,e),Nt(e),u&4){if(e.stateNode===null)throw Error(a(162));u=e.memoizedProps,i=e.stateNode;try{i.nodeValue=u}catch(fe){qe(e,e.return,fe)}}break;case 3:if(Eu=null,f=pn,pn=ku(n.containerInfo),Dt(n,e),pn=f,Nt(e),u&4&&i!==null&&i.memoizedState.isDehydrated)try{Yi(n.containerInfo)}catch(fe){qe(e,e.return,fe)}Ys&&(Ys=!1,Ym(e));break;case 4:u=pn,pn=ku(e.stateNode.containerInfo),Dt(n,e),Nt(e),pn=u;break;case 12:Dt(n,e),Nt(e);break;case 31:Dt(n,e),Nt(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,ou(e,u)));break;case 13:Dt(n,e),Nt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(cu=wt()),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,ou(e,u)));break;case 22:f=e.memoizedState!==null;var T=i!==null&&i.memoizedState!==null,U=Qn,F=at;if(Qn=U||f,at=F||T,Dt(n,e),at=F,Qn=U,Nt(e),u&8192)e:for(n=e.stateNode,n._visibility=f?n._visibility&-2:n._visibility|1,f&&(i===null||T||Qn||at||Vl(e)),i=null,n=e;;){if(n.tag===5||n.tag===26){if(i===null){T=i=n;try{if(h=T.stateNode,f)b=h.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{S=T.stateNode;var Z=T.memoizedProps.style,H=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;S.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(fe){qe(T,T.return,fe)}}}else if(n.tag===6){if(i===null){T=n;try{T.stateNode.nodeValue=f?"":T.memoizedProps}catch(fe){qe(T,T.return,fe)}}}else if(n.tag===18){if(i===null){T=n;try{var G=T.stateNode;f?Dp(G,!0):Dp(T.stateNode,!1)}catch(fe){qe(T,T.return,fe)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}u&4&&(u=e.updateQueue,u!==null&&(i=u.retryQueue,i!==null&&(u.retryQueue=null,ou(e,i))));break;case 19:Dt(n,e),Nt(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,ou(e,u)));break;case 30:break;case 21:break;default:Dt(n,e),Nt(e)}}function Nt(e){var n=e.flags;if(n&2){try{for(var i,u=e.return;u!==null;){if(jm(u)){i=u;break}u=u.return}if(i==null)throw Error(a(160));switch(i.tag){case 27:var f=i.stateNode,h=Gs(e);uu(e,h,f);break;case 5:var b=i.stateNode;i.flags&32&&(di(b,""),i.flags&=-33);var S=Gs(e);uu(e,S,b);break;case 3:case 4:var T=i.stateNode.containerInfo,U=Gs(e);Fs(e,U,T);break;default:throw Error(a(161))}}catch(F){qe(e,e.return,F)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Ym(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Ym(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Fn(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Bm(e,n.alternate,n),n=n.sibling}function Vl(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:fl(4,n,n.return),Vl(n);break;case 1:En(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&Dm(n,n.return,i),Vl(n);break;case 27:Ur(n.stateNode);case 26:case 5:En(n,n.return),Vl(n);break;case 22:n.memoizedState===null&&Vl(n);break;case 30:Vl(n);break;default:Vl(n)}e=e.sibling}}function Yn(e,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var u=n.alternate,f=e,h=n,b=h.flags;switch(h.tag){case 0:case 11:case 15:Yn(f,h,i),Ar(4,h);break;case 1:if(Yn(f,h,i),u=h,f=u.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(U){qe(u,u.return,U)}if(u=h,f=u.updateQueue,f!==null){var S=u.stateNode;try{var T=f.shared.hiddenCallbacks;if(T!==null)for(f.shared.hiddenCallbacks=null,f=0;f<T.length;f++)Sd(T[f],S)}catch(U){qe(u,u.return,U)}}i&&b&64&&Mm(h),zr(h,h.return);break;case 27:Lm(h);case 26:case 5:Yn(f,h,i),i&&u===null&&b&4&&Nm(h),zr(h,h.return);break;case 12:Yn(f,h,i);break;case 31:Yn(f,h,i),i&&b&4&&Qm(f,h);break;case 13:Yn(f,h,i),i&&b&4&&Gm(f,h);break;case 22:h.memoizedState===null&&Yn(f,h,i),zr(h,h.return);break;case 30:break;default:Yn(f,h,i)}n=n.sibling}}function Vs(e,n){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&mr(i))}function Xs(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&mr(e))}function gn(e,n,i,u){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Vm(e,n,i,u),n=n.sibling}function Vm(e,n,i,u){var f=n.flags;switch(n.tag){case 0:case 11:case 15:gn(e,n,i,u),f&2048&&Ar(9,n);break;case 1:gn(e,n,i,u);break;case 3:gn(e,n,i,u),f&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&mr(e)));break;case 12:if(f&2048){gn(e,n,i,u),e=n.stateNode;try{var h=n.memoizedProps,b=h.id,S=h.onPostCommit;typeof S=="function"&&S(b,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){qe(n,n.return,T)}}else gn(e,n,i,u);break;case 31:gn(e,n,i,u);break;case 13:gn(e,n,i,u);break;case 23:break;case 22:h=n.stateNode,b=n.alternate,n.memoizedState!==null?h._visibility&2?gn(e,n,i,u):Rr(e,n):h._visibility&2?gn(e,n,i,u):(h._visibility|=2,Di(e,n,i,u,(n.subtreeFlags&10256)!==0||!1)),f&2048&&Vs(b,n);break;case 24:gn(e,n,i,u),f&2048&&Xs(n.alternate,n);break;default:gn(e,n,i,u)}}function Di(e,n,i,u,f){for(f=f&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var h=e,b=n,S=i,T=u,U=b.flags;switch(b.tag){case 0:case 11:case 15:Di(h,b,S,T,f),Ar(8,b);break;case 23:break;case 22:var F=b.stateNode;b.memoizedState!==null?F._visibility&2?Di(h,b,S,T,f):Rr(h,b):(F._visibility|=2,Di(h,b,S,T,f)),f&&U&2048&&Vs(b.alternate,b);break;case 24:Di(h,b,S,T,f),f&&U&2048&&Xs(b.alternate,b);break;default:Di(h,b,S,T,f)}n=n.sibling}}function Rr(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=e,u=n,f=u.flags;switch(u.tag){case 22:Rr(i,u),f&2048&&Vs(u.alternate,u);break;case 24:Rr(i,u),f&2048&&Xs(u.alternate,u);break;default:Rr(i,u)}n=n.sibling}}var Or=8192;function Ni(e,n,i){if(e.subtreeFlags&Or)for(e=e.child;e!==null;)Xm(e,n,i),e=e.sibling}function Xm(e,n,i){switch(e.tag){case 26:Ni(e,n,i),e.flags&Or&&e.memoizedState!==null&&Ix(i,pn,e.memoizedState,e.memoizedProps);break;case 5:Ni(e,n,i);break;case 3:case 4:var u=pn;pn=ku(e.stateNode.containerInfo),Ni(e,n,i),pn=u;break;case 22:e.memoizedState===null&&(u=e.alternate,u!==null&&u.memoizedState!==null?(u=Or,Or=16777216,Ni(e,n,i),Or=u):Ni(e,n,i));break;default:Ni(e,n,i)}}function Im(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function _r(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var u=n[i];ht=u,Km(u,e)}Im(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Zm(e),e=e.sibling}function Zm(e){switch(e.tag){case 0:case 11:case 15:_r(e),e.flags&2048&&fl(9,e,e.return);break;case 3:_r(e);break;case 12:_r(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,su(e)):_r(e);break;default:_r(e)}}function su(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var u=n[i];ht=u,Km(u,e)}Im(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:fl(8,n,n.return),su(n);break;case 22:i=n.stateNode,i._visibility&2&&(i._visibility&=-3,su(n));break;default:su(n)}e=e.sibling}}function Km(e,n){for(;ht!==null;){var i=ht;switch(i.tag){case 0:case 11:case 15:fl(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var u=i.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:mr(i.memoizedState.cache)}if(u=i.child,u!==null)u.return=i,ht=u;else e:for(i=e;ht!==null;){u=ht;var f=u.sibling,h=u.return;if(Hm(u),u===i){ht=null;break e}if(f!==null){f.return=h,ht=f;break e}ht=h}}}var ox={getCacheForType:function(e){var n=pt(lt),i=n.data.get(e);return i===void 0&&(i=e(),n.data.set(e,i)),i},cacheSignal:function(){return pt(lt).controller.signal}},sx=typeof WeakMap=="function"?WeakMap:Map,Ue=0,Xe=null,ze=null,_e=0,He=0,Vt=null,hl=!1,ji=!1,Is=!1,Vn=0,et=0,dl=0,Xl=0,Zs=0,Xt=0,Li=0,Mr=null,jt=null,Ks=!1,cu=0,Jm=0,fu=1/0,hu=null,ml=null,st=0,pl=null,Ui=null,Xn=0,Js=0,Ps=null,Pm=null,Dr=0,$s=null;function It(){return(Ue&2)!==0&&_e!==0?_e&-_e:N.T!==null?ic():dh()}function $m(){if(Xt===0)if((_e&536870912)===0||De){var e=xa;xa<<=1,(xa&3932160)===0&&(xa=262144),Xt=e}else Xt=536870912;return e=Ft.current,e!==null&&(e.flags|=32),Xt}function Lt(e,n,i){(e===Xe&&(He===2||He===9)||e.cancelPendingCommit!==null)&&(Bi(e,0),gl(e,_e,Xt,!1)),er(e,i),((Ue&2)===0||e!==Xe)&&(e===Xe&&((Ue&2)===0&&(Xl|=i),et===4&&gl(e,_e,Xt,!1)),Cn(e))}function Wm(e,n,i){if((Ue&6)!==0)throw Error(a(327));var u=!i&&(n&127)===0&&(n&e.expiredLanes)===0||Wi(e,n),f=u?hx(e,n):ec(e,n,!0),h=u;do{if(f===0){ji&&!u&&gl(e,n,0,!1);break}else{if(i=e.current.alternate,h&&!cx(i)){f=ec(e,n,!1),h=!1;continue}if(f===2){if(h=n,e.errorRecoveryDisabledLanes&h)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){n=b;e:{var S=e;f=Mr;var T=S.current.memoizedState.isDehydrated;if(T&&(Bi(S,b).flags|=256),b=ec(S,b,!1),b!==2){if(Is&&!T){S.errorRecoveryDisabledLanes|=h,Xl|=h,f=4;break e}h=jt,jt=f,h!==null&&(jt===null?jt=h:jt.push.apply(jt,h))}f=b}if(h=!1,f!==2)continue}}if(f===1){Bi(e,0),gl(e,n,0,!0);break}e:{switch(u=e,h=f,h){case 0:case 1:throw Error(a(345));case 4:if((n&4194048)!==n)break;case 6:gl(u,n,Xt,!hl);break e;case 2:jt=null;break;case 3:case 5:break;default:throw Error(a(329))}if((n&62914560)===n&&(f=cu+300-wt(),10<f)){if(gl(u,n,Xt,!hl),ka(u,0,!0)!==0)break e;Xn=n,u.timeoutHandle=Op(ep.bind(null,u,i,jt,hu,Ks,n,Xt,Xl,Li,hl,h,"Throttled",-0,0),f);break e}ep(u,i,jt,hu,Ks,n,Xt,Xl,Li,hl,h,null,-0,0)}}break}while(!0);Cn(e)}function ep(e,n,i,u,f,h,b,S,T,U,F,Z,H,G){if(e.timeoutHandle=-1,Z=n.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:_n},Xm(n,h,Z);var fe=(h&62914560)===h?cu-wt():(h&4194048)===h?Jm-wt():0;if(fe=Zx(Z,fe),fe!==null){Xn=h,e.cancelPendingCommit=fe(op.bind(null,e,n,h,i,u,f,b,S,T,F,Z,null,H,G)),gl(e,h,b,!U);return}}op(e,n,h,i,u,f,b,S,T)}function cx(e){for(var n=e;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var u=0;u<i.length;u++){var f=i[u],h=f.getSnapshot;f=f.value;try{if(!Qt(h(),f))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function gl(e,n,i,u){n&=~Zs,n&=~Xl,e.suspendedLanes|=n,e.pingedLanes&=~n,u&&(e.warmLanes|=n),u=e.expirationTimes;for(var f=n;0<f;){var h=31-Ve(f),b=1<<h;u[h]=-1,f&=~b}i!==0&&ch(e,i,n)}function du(){return(Ue&6)===0?(Nr(0),!1):!0}function Ws(){if(ze!==null){if(He===0)var e=ze.return;else e=ze,jn=Ul=null,ps(e),zi=null,gr=0,e=ze;for(;e!==null;)_m(e.alternate,e),e=e.return;ze=null}}function Bi(e,n){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,Ox(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),Xn=0,Ws(),Xe=e,ze=i=Dn(e.current,null),_e=n,He=0,Vt=null,hl=!1,ji=Wi(e,n),Is=!1,Li=Xt=Zs=Xl=dl=et=0,jt=Mr=null,Ks=!1,(n&8)!==0&&(n|=n&32);var u=e.entangledLanes;if(u!==0)for(e=e.entanglements,u&=n;0<u;){var f=31-Ve(u),h=1<<f;n|=e[f],u&=~h}return Vn=n,Na(),i}function tp(e,n){we=null,N.H=Er,n===Ai||n===Ga?(n=yd(),He=3):n===ls?(n=yd(),He=4):He=n===_s?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Vt=n,ze===null&&(et=1,nu(e,tn(n,e.current)))}function np(){var e=Ft.current;return e===null?!0:(_e&4194048)===_e?an===null:(_e&62914560)===_e||(_e&536870912)!==0?e===an:!1}function lp(){var e=N.H;return N.H=Er,e===null?Er:e}function ip(){var e=N.A;return N.A=ox,e}function mu(){et=4,hl||(_e&4194048)!==_e&&Ft.current!==null||(ji=!0),(dl&134217727)===0&&(Xl&134217727)===0||Xe===null||gl(Xe,_e,Xt,!1)}function ec(e,n,i){var u=Ue;Ue|=2;var f=lp(),h=ip();(Xe!==e||_e!==n)&&(hu=null,Bi(e,n)),n=!1;var b=et;e:do try{if(He!==0&&ze!==null){var S=ze,T=Vt;switch(He){case 8:Ws(),b=6;break e;case 3:case 2:case 9:case 6:Ft.current===null&&(n=!0);var U=He;if(He=0,Vt=null,Hi(e,S,T,U),i&&ji){b=0;break e}break;default:U=He,He=0,Vt=null,Hi(e,S,T,U)}}fx(),b=et;break}catch(F){tp(e,F)}while(!0);return n&&e.shellSuspendCounter++,jn=Ul=null,Ue=u,N.H=f,N.A=h,ze===null&&(Xe=null,_e=0,Na()),b}function fx(){for(;ze!==null;)rp(ze)}function hx(e,n){var i=Ue;Ue|=2;var u=lp(),f=ip();Xe!==e||_e!==n?(hu=null,fu=wt()+500,Bi(e,n)):ji=Wi(e,n);e:do try{if(He!==0&&ze!==null){n=ze;var h=Vt;t:switch(He){case 1:He=0,Vt=null,Hi(e,n,h,1);break;case 2:case 9:if(pd(h)){He=0,Vt=null,ap(n);break}n=function(){He!==2&&He!==9||Xe!==e||(He=7),Cn(e)},h.then(n,n);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:pd(h)?(He=0,Vt=null,ap(n)):(He=0,Vt=null,Hi(e,n,h,7));break;case 5:var b=null;switch(ze.tag){case 26:b=ze.memoizedState;case 5:case 27:var S=ze;if(b?Vp(b):S.stateNode.complete){He=0,Vt=null;var T=S.sibling;if(T!==null)ze=T;else{var U=S.return;U!==null?(ze=U,pu(U)):ze=null}break t}}He=0,Vt=null,Hi(e,n,h,5);break;case 6:He=0,Vt=null,Hi(e,n,h,6);break;case 8:Ws(),et=6;break e;default:throw Error(a(462))}}dx();break}catch(F){tp(e,F)}while(!0);return jn=Ul=null,N.H=u,N.A=f,Ue=i,ze!==null?0:(Xe=null,_e=0,Na(),et)}function dx(){for(;ze!==null&&!ho();)rp(ze)}function rp(e){var n=Rm(e.alternate,e,Vn);e.memoizedProps=e.pendingProps,n===null?pu(e):ze=n}function ap(e){var n=e,i=n.alternate;switch(n.tag){case 15:case 0:n=wm(i,n,n.pendingProps,n.type,void 0,_e);break;case 11:n=wm(i,n,n.pendingProps,n.type.render,n.ref,_e);break;case 5:ps(n);default:_m(i,n),n=ze=id(n,Vn),n=Rm(i,n,Vn)}e.memoizedProps=e.pendingProps,n===null?pu(e):ze=n}function Hi(e,n,i,u){jn=Ul=null,ps(n),zi=null,gr=0;var f=n.return;try{if(tx(e,f,n,i,_e)){et=1,nu(e,tn(i,e.current)),ze=null;return}}catch(h){if(f!==null)throw ze=f,h;et=1,nu(e,tn(i,e.current)),ze=null;return}n.flags&32768?(De||u===1?e=!0:ji||(_e&536870912)!==0?e=!1:(hl=e=!0,(u===2||u===9||u===3||u===6)&&(u=Ft.current,u!==null&&u.tag===13&&(u.flags|=16384))),up(n,e)):pu(n)}function pu(e){var n=e;do{if((n.flags&32768)!==0){up(n,hl);return}e=n.return;var i=ix(n.alternate,n,Vn);if(i!==null){ze=i;return}if(n=n.sibling,n!==null){ze=n;return}ze=n=e}while(n!==null);et===0&&(et=5)}function up(e,n){do{var i=rx(e.alternate,e);if(i!==null){i.flags&=32767,ze=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(e=e.sibling,e!==null)){ze=e;return}ze=e=i}while(e!==null);et=6,ze=null}function op(e,n,i,u,f,h,b,S,T){e.cancelPendingCommit=null;do gu();while(st!==0);if((Ue&6)!==0)throw Error(a(327));if(n!==null){if(n===e.current)throw Error(a(177));if(h=n.lanes|n.childLanes,h|=Go,Xv(e,i,h,b,S,T),e===Xe&&(ze=Xe=null,_e=0),Ui=n,pl=e,Xn=i,Js=h,Ps=f,Pm=u,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,yx(be,function(){return dp(),null})):(e.callbackNode=null,e.callbackPriority=0),u=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||u){u=N.T,N.T=null,f=K.p,K.p=2,b=Ue,Ue|=4;try{ax(e,n,i)}finally{Ue=b,K.p=f,N.T=u}}st=1,sp(),cp(),fp()}}function sp(){if(st===1){st=0;var e=pl,n=Ui,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=N.T,N.T=null;var u=K.p;K.p=2;var f=Ue;Ue|=4;try{Fm(n,e);var h=hc,b=Kh(e.containerInfo),S=h.focusedElem,T=h.selectionRange;if(b!==S&&S&&S.ownerDocument&&Zh(S.ownerDocument.documentElement,S)){if(T!==null&&Uo(S)){var U=T.start,F=T.end;if(F===void 0&&(F=U),"selectionStart"in S)S.selectionStart=U,S.selectionEnd=Math.min(F,S.value.length);else{var Z=S.ownerDocument||document,H=Z&&Z.defaultView||window;if(H.getSelection){var G=H.getSelection(),fe=S.textContent.length,ge=Math.min(T.start,fe),Fe=T.end===void 0?ge:Math.min(T.end,fe);!G.extend&&ge>Fe&&(b=Fe,Fe=ge,ge=b);var M=Ih(S,ge),O=Ih(S,Fe);if(M&&O&&(G.rangeCount!==1||G.anchorNode!==M.node||G.anchorOffset!==M.offset||G.focusNode!==O.node||G.focusOffset!==O.offset)){var L=Z.createRange();L.setStart(M.node,M.offset),G.removeAllRanges(),ge>Fe?(G.addRange(L),G.extend(O.node,O.offset)):(L.setEnd(O.node,O.offset),G.addRange(L))}}}}for(Z=[],G=S;G=G.parentNode;)G.nodeType===1&&Z.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<Z.length;S++){var I=Z[S];I.element.scrollLeft=I.left,I.element.scrollTop=I.top}}zu=!!fc,hc=fc=null}finally{Ue=f,K.p=u,N.T=i}}e.current=n,st=2}}function cp(){if(st===2){st=0;var e=pl,n=Ui,i=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||i){i=N.T,N.T=null;var u=K.p;K.p=2;var f=Ue;Ue|=4;try{Bm(e,n.alternate,n)}finally{Ue=f,K.p=u,N.T=i}}st=3}}function fp(){if(st===4||st===3){st=0,mo();var e=pl,n=Ui,i=Xn,u=Pm;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?st=5:(st=0,Ui=pl=null,hp(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(ml=null),bo(i),n=n.stateNode,ot&&typeof ot.onCommitFiberRoot=="function")try{ot.onCommitFiberRoot(Et,n,void 0,(n.current.flags&128)===128)}catch{}if(u!==null){n=N.T,f=K.p,K.p=2,N.T=null;try{for(var h=e.onRecoverableError,b=0;b<u.length;b++){var S=u[b];h(S.value,{componentStack:S.stack})}}finally{N.T=n,K.p=f}}(Xn&3)!==0&&gu(),Cn(e),f=e.pendingLanes,(i&261930)!==0&&(f&42)!==0?e===$s?Dr++:(Dr=0,$s=e):Dr=0,Nr(0)}}function hp(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,mr(n)))}function gu(){return sp(),cp(),fp(),dp()}function dp(){if(st!==5)return!1;var e=pl,n=Js;Js=0;var i=bo(Xn),u=N.T,f=K.p;try{K.p=32>i?32:i,N.T=null,i=Ps,Ps=null;var h=pl,b=Xn;if(st=0,Ui=pl=null,Xn=0,(Ue&6)!==0)throw Error(a(331));var S=Ue;if(Ue|=4,Zm(h.current),Vm(h,h.current,b,i),Ue=S,Nr(0,!1),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(Et,h)}catch{}return!0}finally{K.p=f,N.T=u,hp(e,n)}}function mp(e,n,i){n=tn(i,n),n=Os(e.stateNode,n,2),e=ol(e,n,2),e!==null&&(er(e,2),Cn(e))}function qe(e,n,i){if(e.tag===3)mp(e,e,i);else for(;n!==null;){if(n.tag===3){mp(n,e,i);break}else if(n.tag===1){var u=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(ml===null||!ml.has(u))){e=tn(i,e),i=pm(2),u=ol(n,i,2),u!==null&&(gm(i,u,n,e),er(u,2),Cn(u));break}}n=n.return}}function tc(e,n,i){var u=e.pingCache;if(u===null){u=e.pingCache=new sx;var f=new Set;u.set(n,f)}else f=u.get(n),f===void 0&&(f=new Set,u.set(n,f));f.has(i)||(Is=!0,f.add(i),e=mx.bind(null,e,n,i),n.then(e,e))}function mx(e,n,i){var u=e.pingCache;u!==null&&u.delete(n),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,Xe===e&&(_e&i)===i&&(et===4||et===3&&(_e&62914560)===_e&&300>wt()-cu?(Ue&2)===0&&Bi(e,0):Zs|=i,Li===_e&&(Li=0)),Cn(e)}function pp(e,n){n===0&&(n=sh()),e=Nl(e,n),e!==null&&(er(e,n),Cn(e))}function px(e){var n=e.memoizedState,i=0;n!==null&&(i=n.retryLane),pp(e,i)}function gx(e,n){var i=0;switch(e.tag){case 31:case 13:var u=e.stateNode,f=e.memoizedState;f!==null&&(i=f.retryLane);break;case 19:u=e.stateNode;break;case 22:u=e.stateNode._retryCache;break;default:throw Error(a(314))}u!==null&&u.delete(n),pp(e,i)}function yx(e,n){return ai(e,n)}var yu=null,qi=null,nc=!1,bu=!1,lc=!1,yl=0;function Cn(e){e!==qi&&e.next===null&&(qi===null?yu=qi=e:qi=qi.next=e),bu=!0,nc||(nc=!0,vx())}function Nr(e,n){if(!lc&&bu){lc=!0;do for(var i=!1,u=yu;u!==null;){if(e!==0){var f=u.pendingLanes;if(f===0)var h=0;else{var b=u.suspendedLanes,S=u.pingedLanes;h=(1<<31-Ve(42|e)+1)-1,h&=f&~(b&~S),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(i=!0,vp(u,h))}else h=_e,h=ka(u,u===Xe?h:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(h&3)===0||Wi(u,h)||(i=!0,vp(u,h));u=u.next}while(i);lc=!1}}function bx(){gp()}function gp(){bu=nc=!1;var e=0;yl!==0&&Rx()&&(e=yl);for(var n=wt(),i=null,u=yu;u!==null;){var f=u.next,h=yp(u,n);h===0?(u.next=null,i===null?yu=f:i.next=f,f===null&&(qi=i)):(i=u,(e!==0||(h&3)!==0)&&(bu=!0)),u=f}st!==0&&st!==5||Nr(e),yl!==0&&(yl=0)}function yp(e,n){for(var i=e.suspendedLanes,u=e.pingedLanes,f=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var b=31-Ve(h),S=1<<b,T=f[b];T===-1?((S&i)===0||(S&u)!==0)&&(f[b]=Vv(S,n)):T<=n&&(e.expiredLanes|=S),h&=~S}if(n=Xe,i=_e,i=ka(e,e===n?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u=e.callbackNode,i===0||e===n&&(He===2||He===9)||e.cancelPendingCommit!==null)return u!==null&&u!==null&&$i(u),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||Wi(e,i)){if(n=i&-i,n===e.callbackPriority)return n;switch(u!==null&&$i(u),bo(i)){case 2:case 8:i=ne;break;case 32:i=be;break;case 268435456:i=Be;break;default:i=be}return u=bp.bind(null,e),i=ai(i,u),e.callbackPriority=n,e.callbackNode=i,n}return u!==null&&u!==null&&$i(u),e.callbackPriority=2,e.callbackNode=null,2}function bp(e,n){if(st!==0&&st!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(gu()&&e.callbackNode!==i)return null;var u=_e;return u=ka(e,e===Xe?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u===0?null:(Wm(e,u,n),yp(e,wt()),e.callbackNode!=null&&e.callbackNode===i?bp.bind(null,e):null)}function vp(e,n){if(gu())return null;Wm(e,n,!0)}function vx(){_x(function(){(Ue&6)!==0?ai(X,bx):gp()})}function ic(){if(yl===0){var e=Ci;e===0&&(e=va,va<<=1,(va&261888)===0&&(va=256)),yl=e}return yl}function xp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ta(""+e)}function Sp(e,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,e.id&&i.setAttribute("form",e.id),n.parentNode.insertBefore(i,n),e=new FormData(e),i.parentNode.removeChild(i),e}function xx(e,n,i,u,f){if(n==="submit"&&i&&i.stateNode===f){var h=xp((f[Ot]||null).action),b=u.submitter;b&&(n=(n=b[Ot]||null)?xp(n.formAction):b.getAttribute("formAction"),n!==null&&(h=n,b=null));var S=new Oa("action","action",null,u,f);e.push({event:S,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(yl!==0){var T=b?Sp(f,b):new FormData(f);Es(i,{pending:!0,data:T,method:f.method,action:h},null,T)}}else typeof h=="function"&&(S.preventDefault(),T=b?Sp(f,b):new FormData(f),Es(i,{pending:!0,data:T,method:f.method,action:h},h,T))},currentTarget:f}]})}}for(var rc=0;rc<Qo.length;rc++){var ac=Qo[rc],Sx=ac.toLowerCase(),kx=ac[0].toUpperCase()+ac.slice(1);mn(Sx,"on"+kx)}mn($h,"onAnimationEnd"),mn(Wh,"onAnimationIteration"),mn(ed,"onAnimationStart"),mn("dblclick","onDoubleClick"),mn("focusin","onFocus"),mn("focusout","onBlur"),mn(B1,"onTransitionRun"),mn(H1,"onTransitionStart"),mn(q1,"onTransitionCancel"),mn(td,"onTransitionEnd"),fi("onMouseEnter",["mouseout","mouseover"]),fi("onMouseLeave",["mouseout","mouseover"]),fi("onPointerEnter",["pointerout","pointerover"]),fi("onPointerLeave",["pointerout","pointerover"]),Ol("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ol("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ol("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ol("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ol("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ol("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jr="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(" "),wx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(jr));function kp(e,n){n=(n&4)!==0;for(var i=0;i<e.length;i++){var u=e[i],f=u.event;u=u.listeners;e:{var h=void 0;if(n)for(var b=u.length-1;0<=b;b--){var S=u[b],T=S.instance,U=S.currentTarget;if(S=S.listener,T!==h&&f.isPropagationStopped())break e;h=S,f.currentTarget=U;try{h(f)}catch(F){Da(F)}f.currentTarget=null,h=T}else for(b=0;b<u.length;b++){if(S=u[b],T=S.instance,U=S.currentTarget,S=S.listener,T!==h&&f.isPropagationStopped())break e;h=S,f.currentTarget=U;try{h(f)}catch(F){Da(F)}f.currentTarget=null,h=T}}}}function Re(e,n){var i=n[vo];i===void 0&&(i=n[vo]=new Set);var u=e+"__bubble";i.has(u)||(wp(n,e,2,!1),i.add(u))}function uc(e,n,i){var u=0;n&&(u|=4),wp(i,e,u,n)}var vu="_reactListening"+Math.random().toString(36).slice(2);function oc(e){if(!e[vu]){e[vu]=!0,gh.forEach(function(i){i!=="selectionchange"&&(wx.has(i)||uc(i,!1,e),uc(i,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[vu]||(n[vu]=!0,uc("selectionchange",!1,n))}}function wp(e,n,i,u){switch($p(n)){case 2:var f=Px;break;case 8:f=$x;break;default:f=wc}i=f.bind(null,n,i,e),f=void 0,!zo||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),u?f!==void 0?e.addEventListener(n,i,{capture:!0,passive:f}):e.addEventListener(n,i,!0):f!==void 0?e.addEventListener(n,i,{passive:f}):e.addEventListener(n,i,!1)}function sc(e,n,i,u,f){var h=u;if((n&1)===0&&(n&2)===0&&u!==null)e:for(;;){if(u===null)return;var b=u.tag;if(b===3||b===4){var S=u.stateNode.containerInfo;if(S===f)break;if(b===4)for(b=u.return;b!==null;){var T=b.tag;if((T===3||T===4)&&b.stateNode.containerInfo===f)return;b=b.return}for(;S!==null;){if(b=oi(S),b===null)return;if(T=b.tag,T===5||T===6||T===26||T===27){u=h=b;continue e}S=S.parentNode}}u=u.return}zh(function(){var U=h,F=To(i),Z=[];e:{var H=nd.get(e);if(H!==void 0){var G=Oa,fe=e;switch(e){case"keypress":if(za(i)===0)break e;case"keydown":case"keyup":G=g1;break;case"focusin":fe="focus",G=Mo;break;case"focusout":fe="blur",G=Mo;break;case"beforeblur":case"afterblur":G=Mo;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=_h;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=i1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=v1;break;case $h:case Wh:case ed:G=u1;break;case td:G=S1;break;case"scroll":case"scrollend":G=n1;break;case"wheel":G=w1;break;case"copy":case"cut":case"paste":G=s1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=Dh;break;case"toggle":case"beforetoggle":G=C1}var ge=(n&4)!==0,Fe=!ge&&(e==="scroll"||e==="scrollend"),M=ge?H!==null?H+"Capture":null:H;ge=[];for(var O=U,L;O!==null;){var I=O;if(L=I.stateNode,I=I.tag,I!==5&&I!==26&&I!==27||L===null||M===null||(I=lr(O,M),I!=null&&ge.push(Lr(O,I,L))),Fe)break;O=O.return}0<ge.length&&(H=new G(H,fe,null,i,F),Z.push({event:H,listeners:ge}))}}if((n&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",H&&i!==Co&&(fe=i.relatedTarget||i.fromElement)&&(oi(fe)||fe[ui]))break e;if((G||H)&&(H=F.window===F?F:(H=F.ownerDocument)?H.defaultView||H.parentWindow:window,G?(fe=i.relatedTarget||i.toElement,G=U,fe=fe?oi(fe):null,fe!==null&&(Fe=s(fe),ge=fe.tag,fe!==Fe||ge!==5&&ge!==27&&ge!==6)&&(fe=null)):(G=null,fe=U),G!==fe)){if(ge=_h,I="onMouseLeave",M="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(ge=Dh,I="onPointerLeave",M="onPointerEnter",O="pointer"),Fe=G==null?H:nr(G),L=fe==null?H:nr(fe),H=new ge(I,O+"leave",G,i,F),H.target=Fe,H.relatedTarget=L,I=null,oi(F)===U&&(ge=new ge(M,O+"enter",fe,i,F),ge.target=L,ge.relatedTarget=Fe,I=ge),Fe=I,G&&fe)t:{for(ge=Ex,M=G,O=fe,L=0,I=M;I;I=ge(I))L++;I=0;for(var me=O;me;me=ge(me))I++;for(;0<L-I;)M=ge(M),L--;for(;0<I-L;)O=ge(O),I--;for(;L--;){if(M===O||O!==null&&M===O.alternate){ge=M;break t}M=ge(M),O=ge(O)}ge=null}else ge=null;G!==null&&Ep(Z,H,G,ge,!1),fe!==null&&Fe!==null&&Ep(Z,Fe,fe,ge,!0)}}e:{if(H=U?nr(U):window,G=H.nodeName&&H.nodeName.toLowerCase(),G==="select"||G==="input"&&H.type==="file")var je=Qh;else if(Hh(H))if(Gh)je=j1;else{je=D1;var de=M1}else G=H.nodeName,!G||G.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?U&&Eo(U.elementType)&&(je=Qh):je=N1;if(je&&(je=je(e,U))){qh(Z,je,i,F);break e}de&&de(e,H,U),e==="focusout"&&U&&H.type==="number"&&U.memoizedProps.value!=null&&wo(H,"number",H.value)}switch(de=U?nr(U):window,e){case"focusin":(Hh(de)||de.contentEditable==="true")&&(yi=de,Bo=U,fr=null);break;case"focusout":fr=Bo=yi=null;break;case"mousedown":Ho=!0;break;case"contextmenu":case"mouseup":case"dragend":Ho=!1,Jh(Z,i,F);break;case"selectionchange":if(U1)break;case"keydown":case"keyup":Jh(Z,i,F)}var Ce;if(No)e:{switch(e){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else gi?Uh(e,i)&&(Me="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Me="onCompositionStart");Me&&(Nh&&i.locale!=="ko"&&(gi||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&gi&&(Ce=Rh()):(tl=F,Ro="value"in tl?tl.value:tl.textContent,gi=!0)),de=xu(U,Me),0<de.length&&(Me=new Mh(Me,e,null,i,F),Z.push({event:Me,listeners:de}),Ce?Me.data=Ce:(Ce=Bh(i),Ce!==null&&(Me.data=Ce)))),(Ce=A1?z1(e,i):R1(e,i))&&(Me=xu(U,"onBeforeInput"),0<Me.length&&(de=new Mh("onBeforeInput","beforeinput",null,i,F),Z.push({event:de,listeners:Me}),de.data=Ce)),xx(Z,e,U,i,F)}kp(Z,n)})}function Lr(e,n,i){return{instance:e,listener:n,currentTarget:i}}function xu(e,n){for(var i=n+"Capture",u=[];e!==null;){var f=e,h=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||h===null||(f=lr(e,i),f!=null&&u.unshift(Lr(e,f,h)),f=lr(e,n),f!=null&&u.push(Lr(e,f,h))),e.tag===3)return u;e=e.return}return[]}function Ex(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ep(e,n,i,u,f){for(var h=n._reactName,b=[];i!==null&&i!==u;){var S=i,T=S.alternate,U=S.stateNode;if(S=S.tag,T!==null&&T===u)break;S!==5&&S!==26&&S!==27||U===null||(T=U,f?(U=lr(i,h),U!=null&&b.unshift(Lr(i,U,T))):f||(U=lr(i,h),U!=null&&b.push(Lr(i,U,T)))),i=i.return}b.length!==0&&e.push({event:n,listeners:b})}var Cx=/\r\n?/g,Tx=/\u0000|\uFFFD/g;function Cp(e){return(typeof e=="string"?e:""+e).replace(Cx,`
9
+ `).replace(Tx,"")}function Tp(e,n){return n=Cp(n),Cp(e)===n}function Ge(e,n,i,u,f,h){switch(i){case"children":typeof u=="string"?n==="body"||n==="textarea"&&u===""||di(e,u):(typeof u=="number"||typeof u=="bigint")&&n!=="body"&&di(e,""+u);break;case"className":Ea(e,"class",u);break;case"tabIndex":Ea(e,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Ea(e,i,u);break;case"style":Th(e,u,h);break;case"data":if(n!=="object"){Ea(e,"data",u);break}case"src":case"href":if(u===""&&(n!=="a"||i!=="href")){e.removeAttribute(i);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(i);break}u=Ta(""+u),e.setAttribute(i,u);break;case"action":case"formAction":if(typeof u=="function"){e.setAttribute(i,"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 h=="function"&&(i==="formAction"?(n!=="input"&&Ge(e,n,"name",f.name,f,null),Ge(e,n,"formEncType",f.formEncType,f,null),Ge(e,n,"formMethod",f.formMethod,f,null),Ge(e,n,"formTarget",f.formTarget,f,null)):(Ge(e,n,"encType",f.encType,f,null),Ge(e,n,"method",f.method,f,null),Ge(e,n,"target",f.target,f,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(i);break}u=Ta(""+u),e.setAttribute(i,u);break;case"onClick":u!=null&&(e.onclick=_n);break;case"onScroll":u!=null&&Re("scroll",e);break;case"onScrollEnd":u!=null&&Re("scrollend",e);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(i=u.__html,i!=null){if(f.children!=null)throw Error(a(60));e.innerHTML=i}}break;case"multiple":e.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":e.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){e.removeAttribute("xlink:href");break}i=Ta(""+u),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(i,""+u):e.removeAttribute(i);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":u&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":u===!0?e.setAttribute(i,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(i,u):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?e.setAttribute(i,u):e.removeAttribute(i);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?e.removeAttribute(i):e.setAttribute(i,u);break;case"popover":Re("beforetoggle",e),Re("toggle",e),wa(e,"popover",u);break;case"xlinkActuate":On(e,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":On(e,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":On(e,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":On(e,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":On(e,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":On(e,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":On(e,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":On(e,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":On(e,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":wa(e,"is",u);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=e1.get(i)||i,wa(e,i,u))}}function cc(e,n,i,u,f,h){switch(i){case"style":Th(e,u,h);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(i=u.__html,i!=null){if(f.children!=null)throw Error(a(60));e.innerHTML=i}}break;case"children":typeof u=="string"?di(e,u):(typeof u=="number"||typeof u=="bigint")&&di(e,""+u);break;case"onScroll":u!=null&&Re("scroll",e);break;case"onScrollEnd":u!=null&&Re("scrollend",e);break;case"onClick":u!=null&&(e.onclick=_n);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!yh.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(f=i.endsWith("Capture"),n=i.slice(2,f?i.length-7:void 0),h=e[Ot]||null,h=h!=null?h[i]:null,typeof h=="function"&&e.removeEventListener(n,h,f),typeof u=="function")){typeof h!="function"&&h!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(n,u,f);break e}i in e?e[i]=u:u===!0?e.setAttribute(i,""):wa(e,i,u)}}}function yt(e,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Re("error",e),Re("load",e);var u=!1,f=!1,h;for(h in i)if(i.hasOwnProperty(h)){var b=i[h];if(b!=null)switch(h){case"src":u=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:Ge(e,n,h,b,i,null)}}f&&Ge(e,n,"srcSet",i.srcSet,i,null),u&&Ge(e,n,"src",i.src,i,null);return;case"input":Re("invalid",e);var S=h=b=f=null,T=null,U=null;for(u in i)if(i.hasOwnProperty(u)){var F=i[u];if(F!=null)switch(u){case"name":f=F;break;case"type":b=F;break;case"checked":T=F;break;case"defaultChecked":U=F;break;case"value":h=F;break;case"defaultValue":S=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(a(137,n));break;default:Ge(e,n,u,F,i,null)}}kh(e,h,S,T,U,b,f,!1);return;case"select":Re("invalid",e),u=b=h=null;for(f in i)if(i.hasOwnProperty(f)&&(S=i[f],S!=null))switch(f){case"value":h=S;break;case"defaultValue":b=S;break;case"multiple":u=S;default:Ge(e,n,f,S,i,null)}n=h,i=b,e.multiple=!!u,n!=null?hi(e,!!u,n,!1):i!=null&&hi(e,!!u,i,!0);return;case"textarea":Re("invalid",e),h=f=u=null;for(b in i)if(i.hasOwnProperty(b)&&(S=i[b],S!=null))switch(b){case"value":u=S;break;case"defaultValue":f=S;break;case"children":h=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(a(91));break;default:Ge(e,n,b,S,i,null)}Eh(e,u,f,h);return;case"option":for(T in i)i.hasOwnProperty(T)&&(u=i[T],u!=null)&&(T==="selected"?e.selected=u&&typeof u!="function"&&typeof u!="symbol":Ge(e,n,T,u,i,null));return;case"dialog":Re("beforetoggle",e),Re("toggle",e),Re("cancel",e),Re("close",e);break;case"iframe":case"object":Re("load",e);break;case"video":case"audio":for(u=0;u<jr.length;u++)Re(jr[u],e);break;case"image":Re("error",e),Re("load",e);break;case"details":Re("toggle",e);break;case"embed":case"source":case"link":Re("error",e),Re("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(U in i)if(i.hasOwnProperty(U)&&(u=i[U],u!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:Ge(e,n,U,u,i,null)}return;default:if(Eo(n)){for(F in i)i.hasOwnProperty(F)&&(u=i[F],u!==void 0&&cc(e,n,F,u,i,void 0));return}}for(S in i)i.hasOwnProperty(S)&&(u=i[S],u!=null&&Ge(e,n,S,u,i,null))}function Ax(e,n,i,u){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,h=null,b=null,S=null,T=null,U=null,F=null;for(G in i){var Z=i[G];if(i.hasOwnProperty(G)&&Z!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":T=Z;default:u.hasOwnProperty(G)||Ge(e,n,G,null,u,Z)}}for(var H in u){var G=u[H];if(Z=i[H],u.hasOwnProperty(H)&&(G!=null||Z!=null))switch(H){case"type":h=G;break;case"name":f=G;break;case"checked":U=G;break;case"defaultChecked":F=G;break;case"value":b=G;break;case"defaultValue":S=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(a(137,n));break;default:G!==Z&&Ge(e,n,H,G,u,Z)}}ko(e,b,S,T,U,F,h,f);return;case"select":G=b=S=H=null;for(h in i)if(T=i[h],i.hasOwnProperty(h)&&T!=null)switch(h){case"value":break;case"multiple":G=T;default:u.hasOwnProperty(h)||Ge(e,n,h,null,u,T)}for(f in u)if(h=u[f],T=i[f],u.hasOwnProperty(f)&&(h!=null||T!=null))switch(f){case"value":H=h;break;case"defaultValue":S=h;break;case"multiple":b=h;default:h!==T&&Ge(e,n,f,h,u,T)}n=S,i=b,u=G,H!=null?hi(e,!!i,H,!1):!!u!=!!i&&(n!=null?hi(e,!!i,n,!0):hi(e,!!i,i?[]:"",!1));return;case"textarea":G=H=null;for(S in i)if(f=i[S],i.hasOwnProperty(S)&&f!=null&&!u.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Ge(e,n,S,null,u,f)}for(b in u)if(f=u[b],h=i[b],u.hasOwnProperty(b)&&(f!=null||h!=null))switch(b){case"value":H=f;break;case"defaultValue":G=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(a(91));break;default:f!==h&&Ge(e,n,b,f,u,h)}wh(e,H,G);return;case"option":for(var fe in i)H=i[fe],i.hasOwnProperty(fe)&&H!=null&&!u.hasOwnProperty(fe)&&(fe==="selected"?e.selected=!1:Ge(e,n,fe,null,u,H));for(T in u)H=u[T],G=i[T],u.hasOwnProperty(T)&&H!==G&&(H!=null||G!=null)&&(T==="selected"?e.selected=H&&typeof H!="function"&&typeof H!="symbol":Ge(e,n,T,H,u,G));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 ge in i)H=i[ge],i.hasOwnProperty(ge)&&H!=null&&!u.hasOwnProperty(ge)&&Ge(e,n,ge,null,u,H);for(U in u)if(H=u[U],G=i[U],u.hasOwnProperty(U)&&H!==G&&(H!=null||G!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(a(137,n));break;default:Ge(e,n,U,H,u,G)}return;default:if(Eo(n)){for(var Fe in i)H=i[Fe],i.hasOwnProperty(Fe)&&H!==void 0&&!u.hasOwnProperty(Fe)&&cc(e,n,Fe,void 0,u,H);for(F in u)H=u[F],G=i[F],!u.hasOwnProperty(F)||H===G||H===void 0&&G===void 0||cc(e,n,F,H,u,G);return}}for(var M in i)H=i[M],i.hasOwnProperty(M)&&H!=null&&!u.hasOwnProperty(M)&&Ge(e,n,M,null,u,H);for(Z in u)H=u[Z],G=i[Z],!u.hasOwnProperty(Z)||H===G||H==null&&G==null||Ge(e,n,Z,H,u,G)}function Ap(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function zx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,i=performance.getEntriesByType("resource"),u=0;u<i.length;u++){var f=i[u],h=f.transferSize,b=f.initiatorType,S=f.duration;if(h&&S&&Ap(b)){for(b=0,S=f.responseEnd,u+=1;u<i.length;u++){var T=i[u],U=T.startTime;if(U>S)break;var F=T.transferSize,Z=T.initiatorType;F&&Ap(Z)&&(T=T.responseEnd,b+=F*(T<S?1:(S-U)/(T-U)))}if(--u,n+=8*(h+b)/(f.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var fc=null,hc=null;function Su(e){return e.nodeType===9?e:e.ownerDocument}function zp(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 Rp(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function dc(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var mc=null;function Rx(){var e=window.event;return e&&e.type==="popstate"?e===mc?!1:(mc=e,!0):(mc=null,!1)}var Op=typeof setTimeout=="function"?setTimeout:void 0,Ox=typeof clearTimeout=="function"?clearTimeout:void 0,_p=typeof Promise=="function"?Promise:void 0,_x=typeof queueMicrotask=="function"?queueMicrotask:typeof _p<"u"?function(e){return _p.resolve(null).then(e).catch(Mx)}:Op;function Mx(e){setTimeout(function(){throw e})}function bl(e){return e==="head"}function Mp(e,n){var i=n,u=0;do{var f=i.nextSibling;if(e.removeChild(i),f&&f.nodeType===8)if(i=f.data,i==="/$"||i==="/&"){if(u===0){e.removeChild(f),Yi(n);return}u--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")u++;else if(i==="html")Ur(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,Ur(i);for(var h=i.firstChild;h;){var b=h.nextSibling,S=h.nodeName;h[tr]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&h.rel.toLowerCase()==="stylesheet"||i.removeChild(h),h=b}}else i==="body"&&Ur(e.ownerDocument.body);i=f}while(i);Yi(n)}function Dp(e,n){var i=e;e=0;do{var u=i.nextSibling;if(i.nodeType===1?n?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(n?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),u&&u.nodeType===8)if(i=u.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=u}while(i)}function pc(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":pc(i),xo(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function Dx(e,n,i,u){for(;e.nodeType===1;){var f=i;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!u&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(u){if(!e[tr])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(h=e.getAttribute("rel"),h==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(h!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var h=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=un(e.nextSibling),e===null)break}return null}function Nx(e,n,i){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=un(e.nextSibling),e===null))return null;return e}function Np(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=un(e.nextSibling),e===null))return null;return e}function gc(e){return e.data==="$?"||e.data==="$~"}function yc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function jx(e,n){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||i.readyState!=="loading")n();else{var u=function(){n(),i.removeEventListener("DOMContentLoaded",u)};i.addEventListener("DOMContentLoaded",u),e._reactRetry=u}}function un(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var bc=null;function jp(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(n===0)return un(e.nextSibling);n--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||n++}e=e.nextSibling}return null}function Lp(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(n===0)return e;n--}else i!=="/$"&&i!=="/&"||n++}e=e.previousSibling}return null}function Up(e,n,i){switch(n=Su(i),e){case"html":if(e=n.documentElement,!e)throw Error(a(452));return e;case"head":if(e=n.head,!e)throw Error(a(453));return e;case"body":if(e=n.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function Ur(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);xo(e)}var on=new Map,Bp=new Set;function ku(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var In=K.d;K.d={f:Lx,r:Ux,D:Bx,C:Hx,L:qx,m:Qx,X:Fx,S:Gx,M:Yx};function Lx(){var e=In.f(),n=du();return e||n}function Ux(e){var n=si(e);n!==null&&n.tag===5&&n.type==="form"?tm(n):In.r(e)}var Qi=typeof document>"u"?null:document;function Hp(e,n,i){var u=Qi;if(u&&typeof n=="string"&&n){var f=Wt(n);f='link[rel="'+e+'"][href="'+f+'"]',typeof i=="string"&&(f+='[crossorigin="'+i+'"]'),Bp.has(f)||(Bp.add(f),e={rel:e,crossOrigin:i,href:n},u.querySelector(f)===null&&(n=u.createElement("link"),yt(n,"link",e),ft(n),u.head.appendChild(n)))}}function Bx(e){In.D(e),Hp("dns-prefetch",e,null)}function Hx(e,n){In.C(e,n),Hp("preconnect",e,n)}function qx(e,n,i){In.L(e,n,i);var u=Qi;if(u&&e&&n){var f='link[rel="preload"][as="'+Wt(n)+'"]';n==="image"&&i&&i.imageSrcSet?(f+='[imagesrcset="'+Wt(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(f+='[imagesizes="'+Wt(i.imageSizes)+'"]')):f+='[href="'+Wt(e)+'"]';var h=f;switch(n){case"style":h=Gi(e);break;case"script":h=Fi(e)}on.has(h)||(e=g({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:e,as:n},i),on.set(h,e),u.querySelector(f)!==null||n==="style"&&u.querySelector(Br(h))||n==="script"&&u.querySelector(Hr(h))||(n=u.createElement("link"),yt(n,"link",e),ft(n),u.head.appendChild(n)))}}function Qx(e,n){In.m(e,n);var i=Qi;if(i&&e){var u=n&&typeof n.as=="string"?n.as:"script",f='link[rel="modulepreload"][as="'+Wt(u)+'"][href="'+Wt(e)+'"]',h=f;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Fi(e)}if(!on.has(h)&&(e=g({rel:"modulepreload",href:e},n),on.set(h,e),i.querySelector(f)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Hr(h)))return}u=i.createElement("link"),yt(u,"link",e),ft(u),i.head.appendChild(u)}}}function Gx(e,n,i){In.S(e,n,i);var u=Qi;if(u&&e){var f=ci(u).hoistableStyles,h=Gi(e);n=n||"default";var b=f.get(h);if(!b){var S={loading:0,preload:null};if(b=u.querySelector(Br(h)))S.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":n},i),(i=on.get(h))&&vc(e,i);var T=b=u.createElement("link");ft(T),yt(T,"link",e),T._p=new Promise(function(U,F){T.onload=U,T.onerror=F}),T.addEventListener("load",function(){S.loading|=1}),T.addEventListener("error",function(){S.loading|=2}),S.loading|=4,wu(b,n,u)}b={type:"stylesheet",instance:b,count:1,state:S},f.set(h,b)}}}function Fx(e,n){In.X(e,n);var i=Qi;if(i&&e){var u=ci(i).hoistableScripts,f=Fi(e),h=u.get(f);h||(h=i.querySelector(Hr(f)),h||(e=g({src:e,async:!0},n),(n=on.get(f))&&xc(e,n),h=i.createElement("script"),ft(h),yt(h,"link",e),i.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},u.set(f,h))}}function Yx(e,n){In.M(e,n);var i=Qi;if(i&&e){var u=ci(i).hoistableScripts,f=Fi(e),h=u.get(f);h||(h=i.querySelector(Hr(f)),h||(e=g({src:e,async:!0,type:"module"},n),(n=on.get(f))&&xc(e,n),h=i.createElement("script"),ft(h),yt(h,"link",e),i.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},u.set(f,h))}}function qp(e,n,i,u){var f=(f=re.current)?ku(f):null;if(!f)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=Gi(i.href),i=ci(f).hoistableStyles,u=i.get(n),u||(u={type:"style",instance:null,count:0,state:null},i.set(n,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=Gi(i.href);var h=ci(f).hoistableStyles,b=h.get(e);if(b||(f=f.ownerDocument||f,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,b),(h=f.querySelector(Br(e)))&&!h._p&&(b.instance=h,b.state.loading=5),on.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},on.set(e,i),h||Vx(f,e,i,b.state))),n&&u===null)throw Error(a(528,""));return b}if(n&&u!==null)throw Error(a(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Fi(i),i=ci(f).hoistableScripts,u=i.get(n),u||(u={type:"script",instance:null,count:0,state:null},i.set(n,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Gi(e){return'href="'+Wt(e)+'"'}function Br(e){return'link[rel="stylesheet"]['+e+"]"}function Qp(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function Vx(e,n,i,u){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?u.loading=1:(n=e.createElement("link"),u.preload=n,n.addEventListener("load",function(){return u.loading|=1}),n.addEventListener("error",function(){return u.loading|=2}),yt(n,"link",i),ft(n),e.head.appendChild(n))}function Fi(e){return'[src="'+Wt(e)+'"]'}function Hr(e){return"script[async]"+e}function Gp(e,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var u=e.querySelector('style[data-href~="'+Wt(i.href)+'"]');if(u)return n.instance=u,ft(u),u;var f=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return u=(e.ownerDocument||e).createElement("style"),ft(u),yt(u,"style",f),wu(u,i.precedence,e),n.instance=u;case"stylesheet":f=Gi(i.href);var h=e.querySelector(Br(f));if(h)return n.state.loading|=4,n.instance=h,ft(h),h;u=Qp(i),(f=on.get(f))&&vc(u,f),h=(e.ownerDocument||e).createElement("link"),ft(h);var b=h;return b._p=new Promise(function(S,T){b.onload=S,b.onerror=T}),yt(h,"link",u),n.state.loading|=4,wu(h,i.precedence,e),n.instance=h;case"script":return h=Fi(i.src),(f=e.querySelector(Hr(h)))?(n.instance=f,ft(f),f):(u=i,(f=on.get(h))&&(u=g({},i),xc(u,f)),e=e.ownerDocument||e,f=e.createElement("script"),ft(f),yt(f,"link",u),e.head.appendChild(f),n.instance=f);case"void":return null;default:throw Error(a(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(u=n.instance,n.state.loading|=4,wu(u,i.precedence,e));return n.instance}function wu(e,n,i){for(var u=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=u.length?u[u.length-1]:null,h=f,b=0;b<u.length;b++){var S=u[b];if(S.dataset.precedence===n)h=S;else if(h!==f)break}h?h.parentNode.insertBefore(e,h.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(e,n.firstChild))}function vc(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function xc(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Eu=null;function Fp(e,n,i){if(Eu===null){var u=new Map,f=Eu=new Map;f.set(i,u)}else f=Eu,u=f.get(i),u||(u=new Map,f.set(i,u));if(u.has(e))return u;for(u.set(e,null),i=i.getElementsByTagName(e),f=0;f<i.length;f++){var h=i[f];if(!(h[tr]||h[dt]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var b=h.getAttribute(n)||"";b=e+b;var S=u.get(b);S?S.push(h):u.set(b,[h])}}return u}function Yp(e,n,i){e=e.ownerDocument||e,e.head.insertBefore(i,n==="title"?e.querySelector("head > title"):null)}function Xx(e,n,i){if(i===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;return n.rel==="stylesheet"?(e=n.disabled,typeof n.precedence=="string"&&e==null):!0;case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Vp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Ix(e,n,i,u){if(i.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var f=Gi(u.href),h=n.querySelector(Br(f));if(h){n=h._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Cu.bind(e),n.then(e,e)),i.state.loading|=4,i.instance=h,ft(h);return}h=n.ownerDocument||n,u=Qp(u),(f=on.get(f))&&vc(u,f),h=h.createElement("link"),ft(h);var b=h;b._p=new Promise(function(S,T){b.onload=S,b.onerror=T}),yt(h,"link",u),i.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=Cu.bind(e),n.addEventListener("load",i),n.addEventListener("error",i))}}var Sc=0;function Zx(e,n){return e.stylesheets&&e.count===0&&Au(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var u=setTimeout(function(){if(e.stylesheets&&Au(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+n);0<e.imgBytes&&Sc===0&&(Sc=62500*zx());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Au(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>Sc?50:800)+n);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(u),clearTimeout(f)}}:null}function Cu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Au(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Tu=null;function Au(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Tu=new Map,n.forEach(Kx,e),Tu=null,Cu.call(e))}function Kx(e,n){if(!(n.state.loading&4)){var i=Tu.get(e);if(i)var u=i.get(null);else{i=new Map,Tu.set(e,i);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<f.length;h++){var b=f[h];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(i.set(b.dataset.precedence,b),u=b)}u&&i.set(null,u)}f=n.instance,b=f.getAttribute("data-precedence"),h=i.get(b)||u,h===u&&i.set(null,f),i.set(b,f),this.count++,u=Cu.bind(this),f.addEventListener("load",u),f.addEventListener("error",u),h?h.parentNode.insertBefore(f,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),n.state.loading|=4}}var qr={$$typeof:j,Provider:null,Consumer:null,_currentValue:he,_currentValue2:he,_threadCount:0};function Jx(e,n,i,u,f,h,b,S,T){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=go(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=go(0),this.hiddenUpdates=go(null),this.identifierPrefix=u,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function Xp(e,n,i,u,f,h,b,S,T,U,F,Z){return e=new Jx(e,n,i,b,T,U,F,Z,S),n=1,h===!0&&(n|=24),h=Gt(3,null,null,n),e.current=h,h.stateNode=e,n=es(),n.refCount++,e.pooledCache=n,n.refCount++,h.memoizedState={element:u,isDehydrated:i,cache:n},is(h),e}function Ip(e){return e?(e=xi,e):xi}function Zp(e,n,i,u,f,h){f=Ip(f),u.context===null?u.context=f:u.pendingContext=f,u=ul(n),u.payload={element:i},h=h===void 0?null:h,h!==null&&(u.callback=h),i=ol(e,u,n),i!==null&&(Lt(i,e,n),br(i,e,n))}function Kp(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<n?i:n}}function kc(e,n){Kp(e,n),(e=e.alternate)&&Kp(e,n)}function Jp(e){if(e.tag===13||e.tag===31){var n=Nl(e,67108864);n!==null&&Lt(n,e,67108864),kc(e,67108864)}}function Pp(e){if(e.tag===13||e.tag===31){var n=It();n=yo(n);var i=Nl(e,n);i!==null&&Lt(i,e,n),kc(e,n)}}var zu=!0;function Px(e,n,i,u){var f=N.T;N.T=null;var h=K.p;try{K.p=2,wc(e,n,i,u)}finally{K.p=h,N.T=f}}function $x(e,n,i,u){var f=N.T;N.T=null;var h=K.p;try{K.p=8,wc(e,n,i,u)}finally{K.p=h,N.T=f}}function wc(e,n,i,u){if(zu){var f=Ec(u);if(f===null)sc(e,n,u,Ru,i),Wp(e,u);else if(e0(f,e,n,i,u))u.stopPropagation();else if(Wp(e,u),n&4&&-1<Wx.indexOf(e)){for(;f!==null;){var h=si(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var b=Rl(h.pendingLanes);if(b!==0){var S=h;for(S.pendingLanes|=2,S.entangledLanes|=2;b;){var T=1<<31-Ve(b);S.entanglements[1]|=T,b&=~T}Cn(h),(Ue&6)===0&&(fu=wt()+500,Nr(0))}}break;case 31:case 13:S=Nl(h,2),S!==null&&Lt(S,h,2),du(),kc(h,2)}if(h=Ec(u),h===null&&sc(e,n,u,Ru,i),h===f)break;f=h}f!==null&&u.stopPropagation()}else sc(e,n,u,null,i)}}function Ec(e){return e=To(e),Cc(e)}var Ru=null;function Cc(e){if(Ru=null,e=oi(e),e!==null){var n=s(e);if(n===null)e=null;else{var i=n.tag;if(i===13){if(e=c(n),e!==null)return e;e=null}else if(i===31){if(e=d(n),e!==null)return e;e=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Ru=e,null}function $p(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(po()){case X:return 2;case ne:return 8;case be:case Ae:return 32;case Be:return 268435456;default:return 32}default:return 32}}var Tc=!1,vl=null,xl=null,Sl=null,Qr=new Map,Gr=new Map,kl=[],Wx="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 Wp(e,n){switch(e){case"focusin":case"focusout":vl=null;break;case"dragenter":case"dragleave":xl=null;break;case"mouseover":case"mouseout":Sl=null;break;case"pointerover":case"pointerout":Qr.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gr.delete(n.pointerId)}}function Fr(e,n,i,u,f,h){return e===null||e.nativeEvent!==h?(e={blockedOn:n,domEventName:i,eventSystemFlags:u,nativeEvent:h,targetContainers:[f]},n!==null&&(n=si(n),n!==null&&Jp(n)),e):(e.eventSystemFlags|=u,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function e0(e,n,i,u,f){switch(n){case"focusin":return vl=Fr(vl,e,n,i,u,f),!0;case"dragenter":return xl=Fr(xl,e,n,i,u,f),!0;case"mouseover":return Sl=Fr(Sl,e,n,i,u,f),!0;case"pointerover":var h=f.pointerId;return Qr.set(h,Fr(Qr.get(h)||null,e,n,i,u,f)),!0;case"gotpointercapture":return h=f.pointerId,Gr.set(h,Fr(Gr.get(h)||null,e,n,i,u,f)),!0}return!1}function eg(e){var n=oi(e.target);if(n!==null){var i=s(n);if(i!==null){if(n=i.tag,n===13){if(n=c(i),n!==null){e.blockedOn=n,mh(e.priority,function(){Pp(i)});return}}else if(n===31){if(n=d(i),n!==null){e.blockedOn=n,mh(e.priority,function(){Pp(i)});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ou(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var i=Ec(e.nativeEvent);if(i===null){i=e.nativeEvent;var u=new i.constructor(i.type,i);Co=u,i.target.dispatchEvent(u),Co=null}else return n=si(i),n!==null&&Jp(n),e.blockedOn=i,!1;n.shift()}return!0}function tg(e,n,i){Ou(e)&&i.delete(n)}function t0(){Tc=!1,vl!==null&&Ou(vl)&&(vl=null),xl!==null&&Ou(xl)&&(xl=null),Sl!==null&&Ou(Sl)&&(Sl=null),Qr.forEach(tg),Gr.forEach(tg)}function _u(e,n){e.blockedOn===n&&(e.blockedOn=null,Tc||(Tc=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,t0)))}var Mu=null;function ng(e){Mu!==e&&(Mu=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Mu===e&&(Mu=null);for(var n=0;n<e.length;n+=3){var i=e[n],u=e[n+1],f=e[n+2];if(typeof u!="function"){if(Cc(u||i)===null)continue;break}var h=si(i);h!==null&&(e.splice(n,3),n-=3,Es(h,{pending:!0,data:f,method:i.method,action:u},u,f))}}))}function Yi(e){function n(T){return _u(T,e)}vl!==null&&_u(vl,e),xl!==null&&_u(xl,e),Sl!==null&&_u(Sl,e),Qr.forEach(n),Gr.forEach(n);for(var i=0;i<kl.length;i++){var u=kl[i];u.blockedOn===e&&(u.blockedOn=null)}for(;0<kl.length&&(i=kl[0],i.blockedOn===null);)eg(i),i.blockedOn===null&&kl.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(u=0;u<i.length;u+=3){var f=i[u],h=i[u+1],b=f[Ot]||null;if(typeof h=="function")b||ng(i);else if(b){var S=null;if(h&&h.hasAttribute("formAction")){if(f=h,b=h[Ot]||null)S=b.formAction;else if(Cc(f)!==null)continue}else S=b.action;typeof S=="function"?i[u+1]=S:(i.splice(u,3),u-=3),ng(i)}}}function lg(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(b){return f=b})},focusReset:"manual",scroll:"manual"})}function n(){f!==null&&(f(),f=null),u||setTimeout(i,20)}function i(){if(!u&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(i,100),function(){u=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),f!==null&&(f(),f=null)}}}function Ac(e){this._internalRoot=e}Du.prototype.render=Ac.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(a(409));var i=n.current,u=It();Zp(i,u,e,n,null,null)},Du.prototype.unmount=Ac.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Zp(e.current,2,null,e,null,null),du(),n[ui]=null}};function Du(e){this._internalRoot=e}Du.prototype.unstable_scheduleHydration=function(e){if(e){var n=dh();e={blockedOn:null,target:e,priority:n};for(var i=0;i<kl.length&&n!==0&&n<kl[i].priority;i++);kl.splice(i,0,e),i===0&&eg(e)}};var ig=l.version;if(ig!=="19.2.7")throw Error(a(527,ig,"19.2.7"));K.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=p(n),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var n0={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nu.isDisabled&&Nu.supportsFiber)try{Et=Nu.inject(n0),ot=Nu}catch{}}return Vr.createRoot=function(e,n){if(!o(e))throw Error(a(299));var i=!1,u="",f=fm,h=hm,b=dm;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError)),n=Xp(e,1,!1,null,null,i,u,null,f,h,b,lg),e[ui]=n.current,oc(e),new Ac(n)},Vr.hydrateRoot=function(e,n,i){if(!o(e))throw Error(a(299));var u=!1,f="",h=fm,b=hm,S=dm,T=null;return i!=null&&(i.unstable_strictMode===!0&&(u=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(h=i.onUncaughtError),i.onCaughtError!==void 0&&(b=i.onCaughtError),i.onRecoverableError!==void 0&&(S=i.onRecoverableError),i.formState!==void 0&&(T=i.formState)),n=Xp(e,1,!0,n,i??null,u,f,T,h,b,S,lg),n.context=Ip(null),i=n.current,u=It(),u=yo(u),f=ul(u),f.callback=null,ol(i,f,u),i=u,n.current.lanes=i,er(n,i),Cn(n),e[ui]=n.current,oc(e),new Du(n)},Vr.version="19.2.7",Vr}var Cg;function tS(){if(Cg)return Oc.exports;Cg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(l){console.error(l)}}return t(),Oc.exports=eS(),Oc.exports}var nS=tS();var Nf=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Xy=/^[\\/]{2}/;function lS(t,l){return l+t.replace(/\\/g,"/")}var Tg="popstate";function Ag(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function iS(t={}){function l(a,o){let s=o.state?.masked,{pathname:c,search:d,hash:m}=s||a.location;return ff("",{pathname:c,search:d,hash:m},o.state&&o.state.usr||null,o.state&&o.state.key||"default",s?{pathname:a.location.pathname,search:a.location.search,hash:a.location.hash}:void 0)}function r(a,o){return typeof o=="string"?o:aa(o)}return aS(l,r,null,t)}function Pe(t,l){if(t===!1||t===null||typeof t>"u")throw new Error(l)}function vn(t,l){if(!t){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function rS(){return Math.random().toString(36).substring(2,10)}function zg(t,l){return{usr:t.state,key:t.key,idx:l,masked:t.mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function ff(t,l,r=null,a,o){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof l=="string"?Zi(l):l,state:r,key:l&&l.key||a||rS(),mask:o}}function aa({pathname:t="/",search:l="",hash:r=""}){return l&&l!=="?"&&(t+=l.charAt(0)==="?"?l:"?"+l),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Zi(t){let l={};if(t){let r=t.indexOf("#");r>=0&&(l.hash=t.substring(r),t=t.substring(0,r));let a=t.indexOf("?");a>=0&&(l.search=t.substring(a),t=t.substring(0,a)),t&&(l.pathname=t)}return l}function aS(t,l,r,a={}){let{window:o=document.defaultView,v5Compat:s=!1}=a,c=o.history,d="POP",m=null,p=y();p==null&&(p=0,c.replaceState({...c.state,idx:p},""));function y(){return(c.state||{idx:null}).idx}function g(){d="POP";let z=y(),C=z==null?null:z-p;p=z,m&&m({action:d,location:A.location,delta:C})}function v(z,C){d="PUSH";let B=Ag(z)?z:ff(A.location,z,C);p=y()+1;let j=zg(B,p),W=A.createHref(B.mask||B);try{c.pushState(j,"",W)}catch(ee){if(ee instanceof DOMException&&ee.name==="DataCloneError")throw ee;o.location.assign(W)}s&&m&&m({action:d,location:A.location,delta:1})}function x(z,C){d="REPLACE";let B=Ag(z)?z:ff(A.location,z,C);p=y();let j=zg(B,p),W=A.createHref(B.mask||B);c.replaceState(j,"",W),s&&m&&m({action:d,location:A.location,delta:0})}function E(z){return uS(o,z)}let A={get action(){return d},get location(){return t(o,c)},listen(z){if(m)throw new Error("A history only accepts one active listener");return o.addEventListener(Tg,g),m=z,()=>{o.removeEventListener(Tg,g),m=null}},createHref(z){return l(o,z)},createURL:E,encodeLocation(z){let C=E(z);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:v,replace:x,go(z){return c.go(z)}};return A}function uS(t,l,r=!1){let a="http://localhost";t&&(a=t.location.origin!=="null"?t.location.origin:t.location.href),Pe(a,"No window.location.(origin|href) available to create URL");let o=typeof l=="string"?l:aa(l);return o=o.replace(/ $/,"%20"),!r&&Xy.test(o)&&(o=a+o),new URL(o,a)}function Iy(t,l,r="/"){return oS(t,l,r,!1)}function oS(t,l,r,a,o){let s=typeof l=="string"?Zi(l):l,c=Jn(s.pathname||"/",r);if(c==null)return null;let d=sS(t),m=null,p=$y(c);for(let y=0;m==null&&y<d.length;++y)m=vS(d[y],p,a);return m}function sS(t){let l=Zy(t);return cS(l),l}function Zy(t,l=[],r=[],a="",o=!1){let s=(c,d,m=o,p)=>{let y={relativePath:p===void 0?c.path||"":p,caseSensitive:c.caseSensitive===!0,childrenIndex:d,route:c};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(a)&&m)return;Pe(y.relativePath.startsWith(a),`Absolute route path "${y.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(a.length)}let g=yn([a,y.relativePath]),v=r.concat(y);c.children&&c.children.length>0&&(Pe(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Zy(c.children,l,v,g,m)),!(c.path==null&&!c.index)&&l.push({path:g,score:yS(g,c.index),routesMeta:v.map((x,E)=>{let[A,z]=Py(x.relativePath,x.caseSensitive,E===v.length-1);return{...x,matcher:A,compiledParams:z}})})};return t.forEach((c,d)=>{if(c.path===""||!c.path?.includes("?"))s(c,d);else for(let m of Ky(c.path))s(c,d,!0,m)}),l}function Ky(t){let l=t.split("/");if(l.length===0)return[];let[r,...a]=l,o=r.endsWith("?"),s=r.replace(/\?$/,"");if(a.length===0)return o?[s,""]:[s];let c=Ky(a.join("/")),d=[];return d.push(...c.map(m=>m===""?s:[s,m].join("/"))),o&&d.push(...c),d.map(m=>t.startsWith("/")&&m===""?"/":m)}function cS(t){t.sort((l,r)=>l.score!==r.score?r.score-l.score:bS(l.routesMeta.map(a=>a.childrenIndex),r.routesMeta.map(a=>a.childrenIndex)))}var fS=/^:[\w-]+$/,hS=3,dS=2,mS=1,pS=10,gS=-2,Rg=t=>t==="*";function yS(t,l){let r=t.split("/"),a=r.length;return r.some(Rg)&&(a+=gS),l&&(a+=dS),r.filter(o=>!Rg(o)).reduce((o,s)=>o+(fS.test(s)?hS:s===""?mS:pS),a)}function bS(t,l){return t.length===l.length&&t.slice(0,-1).every((a,o)=>a===l[o])?t[t.length-1]-l[l.length-1]:0}function vS(t,l,r=!1){let{routesMeta:a}=t,o={},s="/",c=[];for(let d=0;d<a.length;++d){let m=a[d],p=d===a.length-1,y=s==="/"?l:l.slice(s.length)||"/",g={path:m.relativePath,caseSensitive:m.caseSensitive,end:p},v=m.matcher&&m.compiledParams?Jy(g,y,m.matcher,m.compiledParams):ua(g,y),x=m.route;if(!v&&p&&r&&!a[a.length-1].route.index&&(v=ua({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},y)),!v)return null;Object.assign(o,v.params),c.push({params:o,pathname:yn([s,v.pathname]),pathnameBase:kS(yn([s,v.pathnameBase])),route:x}),v.pathnameBase!=="/"&&(s=yn([s,v.pathnameBase]))}return c}function ua(t,l){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,a]=Py(t.path,t.caseSensitive,t.end);return Jy(t,l,r,a)}function Jy(t,l,r,a){let o=l.match(r);if(!o)return null;let s=o[0],c=s.replace(/(.)\/+$/,"$1"),d=o.slice(1);return{params:a.reduce((p,{paramName:y,isOptional:g},v)=>{if(y==="*"){let E=d[v]||"";c=s.slice(0,s.length-E.length).replace(/(.)\/+$/,"$1")}const x=d[v];return g&&!x?p[y]=void 0:p[y]=(x||"").replace(/%2F/g,"/"),p},{}),pathname:s,pathnameBase:c,pattern:t}}function Py(t,l=!1,r=!0){vn(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let a=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,m,p,y)=>{if(a.push({paramName:d,isOptional:m!=null}),m){let g=y.charAt(p+c.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(a.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,l?void 0:"i"),a]}function $y(t){try{return t.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return vn(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),t}}function Jn(t,l){if(l==="/")return t;if(!t.toLowerCase().startsWith(l.toLowerCase()))return null;let r=l.endsWith("/")?l.length-1:l.length,a=t.charAt(r);return a&&a!=="/"?null:t.slice(r)||"/"}function xS(t,l="/"){let{pathname:r,search:a="",hash:o=""}=typeof t=="string"?Zi(t):t,s;return r?(r=Wy(r),r.startsWith("/")?s=Og(r.substring(1),"/"):s=Og(r,l)):s=l,{pathname:s,search:wS(a),hash:ES(o)}}function Og(t,l){let r=Zu(l).split("/");return t.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Nc(t,l,r,a){return`Cannot include a '${t}' character in a manually specified \`to.${l}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function SS(t){return t.filter((l,r)=>r===0||l.route.path&&l.route.path.length>0)}function jf(t){let l=SS(t);return l.map((r,a)=>a===l.length-1?r.pathname:r.pathnameBase)}function to(t,l,r,a=!1){let o;typeof t=="string"?o=Zi(t):(o={...t},Pe(!o.pathname||!o.pathname.includes("?"),Nc("?","pathname","search",o)),Pe(!o.pathname||!o.pathname.includes("#"),Nc("#","pathname","hash",o)),Pe(!o.search||!o.search.includes("#"),Nc("#","search","hash",o)));let s=t===""||o.pathname==="",c=s?"/":o.pathname,d;if(c==null)d=r;else{let g=l.length-1;if(!a&&c.startsWith("..")){let v=c.split("/");for(;v[0]==="..";)v.shift(),g-=1;o.pathname=v.join("/")}d=g>=0?l[g]:"/"}let m=xS(o,d),p=c&&c!=="/"&&c.endsWith("/"),y=(s||c===".")&&r.endsWith("/");return!m.pathname.endsWith("/")&&(p||y)&&(m.pathname+="/"),m}var Wy=t=>t.replace(/[\\/]{2,}/g,"/"),yn=t=>Wy(t.join("/")),Zu=t=>t.replace(/\/+$/,""),kS=t=>Zu(t).replace(/^\/*/,"/"),wS=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,ES=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,CS=class{constructor(t,l,r,a=!1){this.status=t,this.statusText=l||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function TS(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function AS(t){let l=t.map(r=>r.route.path).filter(Boolean);return yn(l)||"/"}var eb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function tb(t,l){let r=t;if(typeof r!="string"||!Nf.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let a=r,o=!1;if(eb)try{let s=new URL(window.location.href),c=Xy.test(r)?new URL(lS(r,s.protocol)):new URL(r),d=Jn(c.pathname,l);c.origin===s.origin&&d!=null?r=d+c.search+c.hash:o=!0}catch{vn(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:a,isExternal:o,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var nb=["POST","PUT","PATCH","DELETE"];new Set(nb);var zS=["GET",...nb];new Set(zS);var RS=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function OS(t){try{return RS.includes(new URL(t).protocol)}catch{return!1}}var Ki=D.createContext(null);Ki.displayName="DataRouter";var no=D.createContext(null);no.displayName="DataRouterState";var lb=D.createContext(!1);function _S(){return D.useContext(lb)}var ib=D.createContext({isTransitioning:!1});ib.displayName="ViewTransition";var MS=D.createContext(new Map);MS.displayName="Fetchers";var DS=D.createContext(null);DS.displayName="Await";var Pt=D.createContext(null);Pt.displayName="Navigation";var fa=D.createContext(null);fa.displayName="Location";var hn=D.createContext({outlet:null,matches:[],isDataRoute:!1});hn.displayName="Route";var Lf=D.createContext(null);Lf.displayName="RouteError";var rb="REACT_ROUTER_ERROR",NS="REDIRECT",jS="ROUTE_ERROR_RESPONSE";function LS(t){if(t.startsWith(`${rb}:${NS}:{`))try{let l=JSON.parse(t.slice(28));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.location=="string"&&typeof l.reloadDocument=="boolean"&&typeof l.replace=="boolean")return l}catch{}}function US(t){if(t.startsWith(`${rb}:${jS}:{`))try{let l=JSON.parse(t.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new CS(l.status,l.statusText,l.data)}catch{}}function BS(t,{relative:l}={}){Pe(Wl(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:a}=D.useContext(Pt),{hash:o,pathname:s,search:c}=ha(t,{relative:l}),d=s;return r!=="/"&&(d=s==="/"?r:yn([r,s])),a.createHref({pathname:d,search:c,hash:o})}function Wl(){return D.useContext(fa)!=null}function xn(){return Pe(Wl(),"useLocation() may be used only in the context of a <Router> component."),D.useContext(fa).location}function HS(t){Pe(Wl(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:l}=xn();return D.useMemo(()=>ua(t,$y(l)),[l,t])}var ab="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ub(t){D.useContext(Pt).static||D.useLayoutEffect(t)}function Uf(){let{isDataRoute:t}=D.useContext(hn);return t?tk():qS()}function qS(){Pe(Wl(),"useNavigate() may be used only in the context of a <Router> component.");let t=D.useContext(Ki),{basename:l,navigator:r}=D.useContext(Pt),{matches:a}=D.useContext(hn),{pathname:o}=xn(),s=JSON.stringify(jf(a)),c=D.useRef(!1);return ub(()=>{c.current=!0}),D.useCallback((m,p={})=>{if(vn(c.current,ab),!c.current)return;if(typeof m=="number"){r.go(m);return}let y=to(m,JSON.parse(s),o,p.relative==="path");t==null&&l!=="/"&&(y.pathname=y.pathname==="/"?l:yn([l,y.pathname])),(p.replace?r.replace:r.push)(y,p.state,p)},[l,r,s,o,t])}var QS=D.createContext(null);function GS(t){let l=D.useContext(hn).outlet;return D.useMemo(()=>l&&D.createElement(QS.Provider,{value:t},l),[l,t])}function FS(){let{matches:t}=D.useContext(hn);return t[t.length-1]?.params??{}}function ha(t,{relative:l}={}){let{matches:r}=D.useContext(hn),{pathname:a}=xn(),o=JSON.stringify(jf(r));return D.useMemo(()=>to(t,JSON.parse(o),a,l==="path"),[t,o,a,l])}function YS(t,l){return ob(t,l)}function ob(t,l,r){Pe(Wl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=D.useContext(Pt),{matches:o}=D.useContext(hn),s=o[o.length-1],c=s?s.params:{},d=s?s.pathname:"/",m=s?s.pathnameBase:"/",p=s&&s.route;{let z=p&&p.path||"";cb(d,!p||z.endsWith("*")||z.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${z}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
10
+
11
+ Please change the parent <Route path="${z}"> to <Route path="${z==="/"?"*":`${z}/*`}">.`)}let y=xn(),g;if(l){let z=typeof l=="string"?Zi(l):l;Pe(m==="/"||z.pathname?.startsWith(m),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${z.pathname}" was given in the \`location\` prop.`),g=z}else g=y;let v=g.pathname||"/",x=v;if(m!=="/"){let z=m.replace(/^\//,"").split("/");x="/"+v.replace(/^\//,"").split("/").slice(z.length).join("/")}let E=r&&r.state.matches.length?r.state.matches.map(z=>Object.assign(z,{route:r.manifest[z.route.id]||z.route})):Iy(t,{pathname:x});vn(p||E!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),vn(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let A=KS(E&&E.map(z=>Object.assign({},z,{params:Object.assign({},c,z.params),pathname:yn([m,a.encodeLocation?a.encodeLocation(z.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathname]),pathnameBase:z.pathnameBase==="/"?m:yn([m,a.encodeLocation?a.encodeLocation(z.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathnameBase])})),o,r);return l&&A?D.createElement(fa.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...g},navigationType:"POP"}},A):A}function VS(){let t=ek(),l=TS(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,a="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:a},s={padding:"2px 4px",backgroundColor:a},c=null;return console.error("Error handled by React Router default ErrorBoundary:",t),c=D.createElement(D.Fragment,null,D.createElement("p",null,"💿 Hey developer 👋"),D.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",D.createElement("code",{style:s},"ErrorBoundary")," or"," ",D.createElement("code",{style:s},"errorElement")," prop on your route.")),D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},l),r?D.createElement("pre",{style:o},r):null,c)}var XS=D.createElement(VS,null),sb=class extends D.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,l){return l.location!==t.location||l.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:l.error,location:l.location,revalidation:t.revalidation||l.revalidation}}componentDidCatch(t,l){this.props.onError?this.props.onError(t,l):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const r=US(t.digest);r&&(t=r)}let l=t!==void 0?D.createElement(hn.Provider,{value:this.props.routeContext},D.createElement(Lf.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?D.createElement(IS,{error:t},l):l}};sb.contextType=lb;var jc=new WeakMap;function IS({children:t,error:l}){let{basename:r}=D.useContext(Pt);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let a=LS(l.digest);if(a){let o=jc.get(l);if(o)throw o;let s=tb(a.location,r),c=s.absoluteURL||s.to;if(OS(c))throw new Error("Invalid redirect location");if(eb&&!jc.get(l))if(s.isExternal||a.reloadDocument)window.location.href=c;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:a.replace}));throw jc.set(l,d),d}return D.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c}`})}}return t}function ZS({routeContext:t,match:l,children:r}){let a=D.useContext(Ki);return a&&a.static&&a.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=l.route.id),D.createElement(hn.Provider,{value:t},r)}function KS(t,l=[],r){let a=r?.state;if(t==null){if(!a)return null;if(a.errors)t=a.matches;else if(l.length===0&&!a.initialized&&a.matches.length>0)t=a.matches;else return null}let o=t,s=a?.errors;if(s!=null){let y=o.findIndex(g=>g.route.id&&s?.[g.route.id]!==void 0);Pe(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,y+1))}let c=!1,d=-1;if(r&&a){c=a.renderFallback;for(let y=0;y<o.length;y++){let g=o[y];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(d=y),g.route.id){let{loaderData:v,errors:x}=a,E=g.route.loader&&!v.hasOwnProperty(g.route.id)&&(!x||x[g.route.id]===void 0);if(g.route.lazy||E){r.isStatic&&(c=!0),d>=0?o=o.slice(0,d+1):o=[o[0]];break}}}}let m=r?.onError,p=a&&m?(y,g)=>{m(y,{location:a.location,params:a.matches?.[0]?.params??{},pattern:AS(a.matches),errorInfo:g})}:void 0;return o.reduceRight((y,g,v)=>{let x,E=!1,A=null,z=null;a&&(x=s&&g.route.id?s[g.route.id]:void 0,A=g.route.errorElement||XS,c&&(d<0&&v===0?(cb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,z=null):d===v&&(E=!0,z=g.route.hydrateFallbackElement||null)));let C=l.concat(o.slice(0,v+1)),B=()=>{let j;return x?j=A:E?j=z:g.route.Component?j=D.createElement(g.route.Component,null):g.route.element?j=g.route.element:j=y,D.createElement(ZS,{match:g,routeContext:{outlet:y,matches:C,isDataRoute:a!=null},children:j})};return a&&(g.route.ErrorBoundary||g.route.errorElement||v===0)?D.createElement(sb,{location:a.location,revalidation:a.revalidation,component:A,error:x,children:B(),routeContext:{outlet:null,matches:C,isDataRoute:!0},onError:p}):B()},null)}function Bf(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function JS(t){let l=D.useContext(Ki);return Pe(l,Bf(t)),l}function PS(t){let l=D.useContext(no);return Pe(l,Bf(t)),l}function $S(t){let l=D.useContext(hn);return Pe(l,Bf(t)),l}function Hf(t){let l=$S(t),r=l.matches[l.matches.length-1];return Pe(r.route.id,`${t} can only be used on routes that contain a unique "id"`),r.route.id}function WS(){return Hf("useRouteId")}function ek(){let t=D.useContext(Lf),l=PS("useRouteError"),r=Hf("useRouteError");return t!==void 0?t:l.errors?.[r]}function tk(){let{router:t}=JS("useNavigate"),l=Hf("useNavigate"),r=D.useRef(!1);return ub(()=>{r.current=!0}),D.useCallback(async(o,s={})=>{vn(r.current,ab),r.current&&(typeof o=="number"?await t.navigate(o):await t.navigate(o,{fromRouteId:l,...s}))},[t,l])}var _g={};function cb(t,l,r){!l&&!_g[t]&&(_g[t]=!0,vn(!1,r))}D.memo(nk);function nk({routes:t,manifest:l,future:r,state:a,isStatic:o,onError:s}){return ob(t,void 0,{manifest:l,state:a,isStatic:o,onError:s})}function lk({to:t,replace:l,state:r,relative:a}){Pe(Wl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=D.useContext(Pt);vn(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=D.useContext(hn),{pathname:c}=xn(),d=Uf(),m=to(t,jf(s),c,a==="path"),p=JSON.stringify(m);return D.useEffect(()=>{d(JSON.parse(p),{replace:l,state:r,relative:a})},[d,p,a,l,r]),null}function ik(t){return GS(t.context)}function Wr(t){Pe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function rk({basename:t="/",children:l=null,location:r,navigationType:a="POP",navigator:o,static:s=!1,useTransitions:c}){Pe(!Wl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=t.replace(/^\/*/,"/"),m=D.useMemo(()=>({basename:d,navigator:o,static:s,useTransitions:c,future:{}}),[d,o,s,c]);typeof r=="string"&&(r=Zi(r));let{pathname:p="/",search:y="",hash:g="",state:v=null,key:x="default",mask:E}=r,A=D.useMemo(()=>{let z=Jn(p,d);return z==null?null:{location:{pathname:z,search:y,hash:g,state:v,key:x,mask:E},navigationType:a}},[d,p,y,g,v,x,a,E]);return vn(A!=null,`<Router basename="${d}"> is not able to match the URL "${p}${y}${g}" because it does not start with the basename, so the <Router> won't render anything.`),A==null?null:D.createElement(Pt.Provider,{value:m},D.createElement(fa.Provider,{children:l,value:A}))}function ak({children:t,location:l}){return YS(hf(t),l)}function hf(t,l=[]){let r=[];return D.Children.forEach(t,(a,o)=>{if(!D.isValidElement(a))return;let s=[...l,o];if(a.type===D.Fragment){r.push.apply(r,hf(a.props.children,s));return}Pe(a.type===Wr,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Pe(!a.props.index||!a.props.children,"An index route cannot have child routes.");let c={id:a.props.id||s.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,middleware:a.props.middleware,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(c.children=hf(a.props.children,s)),r.push(c)}),r}var Yu="get",Vu="application/x-www-form-urlencoded";function lo(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function uk(t){return lo(t)&&t.tagName.toLowerCase()==="button"}function ok(t){return lo(t)&&t.tagName.toLowerCase()==="form"}function sk(t){return lo(t)&&t.tagName.toLowerCase()==="input"}function ck(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function fk(t,l){return t.button===0&&(!l||l==="_self")&&!ck(t)}var Uu=null;function hk(){if(Uu===null)try{new FormData(document.createElement("form"),0),Uu=!1}catch{Uu=!0}return Uu}var dk=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Lc(t){return t!=null&&!dk.has(t)?(vn(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Vu}"`),null):t}function mk(t,l){let r,a,o,s,c;if(ok(t)){let d=t.getAttribute("action");a=d?Jn(d,l):null,r=t.getAttribute("method")||Yu,o=Lc(t.getAttribute("enctype"))||Vu,s=new FormData(t)}else if(uk(t)||sk(t)&&(t.type==="submit"||t.type==="image")){let d=t.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=t.getAttribute("formaction")||d.getAttribute("action");if(a=m?Jn(m,l):null,r=t.getAttribute("formmethod")||d.getAttribute("method")||Yu,o=Lc(t.getAttribute("formenctype"))||Lc(d.getAttribute("enctype"))||Vu,s=new FormData(d,t),!hk()){let{name:p,type:y,value:g}=t;if(y==="image"){let v=p?`${p}.`:"";s.append(`${v}x`,"0"),s.append(`${v}y`,"0")}else p&&s.append(p,g)}}else{if(lo(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Yu,a=null,o=Vu,c=t}return s&&o==="text/plain"&&(c=s,s=void 0),{action:a,method:r.toLowerCase(),encType:o,formData:s,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function qf(t,l){if(t===!1||t===null||typeof t>"u")throw new Error(l)}function fb(t,l,r,a){let o=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return r?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${a}`:o.pathname=`${o.pathname}.${a}`:o.pathname==="/"?o.pathname=`_root.${a}`:l&&Jn(o.pathname,l)==="/"?o.pathname=`${Zu(l)}/_root.${a}`:o.pathname=`${Zu(o.pathname)}.${a}`,o}async function pk(t,l){if(t.id in l)return l[t.id];try{let r=await import(t.module);return l[t.id]=r,r}catch(r){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function gk(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function yk(t,l,r){let a=await Promise.all(t.map(async o=>{let s=l.routes[o.route.id];if(s){let c=await pk(s,r);return c.links?c.links():[]}return[]}));return Sk(a.flat(1).filter(gk).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Mg(t,l,r,a,o,s){let c=(m,p)=>r[p]?m.route.id!==r[p].route.id:!0,d=(m,p)=>r[p].pathname!==m.pathname||r[p].route.path?.endsWith("*")&&r[p].params["*"]!==m.params["*"];return s==="assets"?l.filter((m,p)=>c(m,p)||d(m,p)):s==="data"?l.filter((m,p)=>{let y=a.routes[m.route.id];if(!y||!y.hasLoader)return!1;if(c(m,p)||d(m,p))return!0;if(m.route.shouldRevalidate){let g=m.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(t,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function bk(t,l,{includeHydrateFallback:r}={}){return vk(t.map(a=>{let o=l.routes[a.route.id];if(!o)return[];let s=[o.module];return o.clientActionModule&&(s=s.concat(o.clientActionModule)),o.clientLoaderModule&&(s=s.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(s=s.concat(o.hydrateFallbackModule)),o.imports&&(s=s.concat(o.imports)),s}).flat(1))}function vk(t){return[...new Set(t)]}function xk(t){let l={},r=Object.keys(t).sort();for(let a of r)l[a]=t[a];return l}function Sk(t,l){let r=new Set;return new Set(l),t.reduce((a,o)=>{let s=JSON.stringify(xk(o));return r.has(s)||(r.add(s),a.push({key:s,link:o})),a},[])}function Qf(){let t=D.useContext(Ki);return qf(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function kk(){let t=D.useContext(no);return qf(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var Gf=D.createContext(void 0);Gf.displayName="FrameworkContext";function io(){let t=D.useContext(Gf);return qf(t,"You must render this element inside a <HydratedRouter> element"),t}function wk(t,l){let r=D.useContext(Gf),[a,o]=D.useState(!1),[s,c]=D.useState(!1),{onFocus:d,onBlur:m,onMouseEnter:p,onMouseLeave:y,onTouchStart:g}=l,v=D.useRef(null);D.useEffect(()=>{if(t==="render"&&c(!0),t==="viewport"){let A=C=>{C.forEach(B=>{c(B.isIntersecting)})},z=new IntersectionObserver(A,{threshold:.5});return v.current&&z.observe(v.current),()=>{z.disconnect()}}},[t]),D.useEffect(()=>{if(a){let A=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(A)}}},[a]);let x=()=>{o(!0)},E=()=>{o(!1),c(!1)};return r?t!=="intent"?[s,v,{}]:[s,v,{onFocus:Xr(d,x),onBlur:Xr(m,E),onMouseEnter:Xr(p,x),onMouseLeave:Xr(y,E),onTouchStart:Xr(g,x)}]:[!1,v,{}]}function Xr(t,l){return r=>{t&&t(r),r.defaultPrevented||l(r)}}function Ek({page:t,...l}){let r=_S(),{nonce:a}=io(),{router:o}=Qf(),s=D.useMemo(()=>Iy(o.routes,t,o.basename),[o.routes,t,o.basename]);return s?(l.nonce==null&&a&&(l={...l,nonce:a}),r?D.createElement(Tk,{page:t,matches:s,...l}):D.createElement(Ak,{page:t,matches:s,...l})):null}function Ck(t){let{manifest:l,routeModules:r}=io(),[a,o]=D.useState([]);return D.useEffect(()=>{let s=!1;return yk(t,l,r).then(c=>{s||o(c)}),()=>{s=!0}},[t,l,r]),a}function Tk({page:t,matches:l,...r}){let a=xn(),{future:o}=io(),{basename:s}=Qf(),c=D.useMemo(()=>{if(t===a.pathname+a.search+a.hash)return[];let d=fb(t,s,o.v8_trailingSlashAwareDataRequests,"rsc"),m=!1,p=[];for(let y of l)typeof y.route.shouldRevalidate=="function"?m=!0:p.push(y.route.id);return m&&p.length>0&&d.searchParams.set("_routes",p.join(",")),[d.pathname+d.search]},[s,o.v8_trailingSlashAwareDataRequests,t,a,l]);return D.createElement(D.Fragment,null,c.map(d=>D.createElement("link",{key:d,rel:"prefetch",as:"fetch",href:d,...r})))}function Ak({page:t,matches:l,...r}){let a=xn(),{future:o,manifest:s,routeModules:c}=io(),{basename:d}=Qf(),{loaderData:m,matches:p}=kk(),y=D.useMemo(()=>Mg(t,l,p,s,a,"data"),[t,l,p,s,a]),g=D.useMemo(()=>Mg(t,l,p,s,a,"assets"),[t,l,p,s,a]),v=D.useMemo(()=>{if(t===a.pathname+a.search+a.hash)return[];let A=new Set,z=!1;if(l.forEach(B=>{let j=s.routes[B.route.id];!j||!j.hasLoader||(!y.some(W=>W.route.id===B.route.id)&&B.route.id in m&&c[B.route.id]?.shouldRevalidate||j.hasClientLoader?z=!0:A.add(B.route.id))}),A.size===0)return[];let C=fb(t,d,o.v8_trailingSlashAwareDataRequests,"data");return z&&A.size>0&&C.searchParams.set("_routes",l.filter(B=>A.has(B.route.id)).map(B=>B.route.id).join(",")),[C.pathname+C.search]},[d,o.v8_trailingSlashAwareDataRequests,m,a,s,y,l,t,c]),x=D.useMemo(()=>bk(g,s),[g,s]),E=Ck(g);return D.createElement(D.Fragment,null,v.map(A=>D.createElement("link",{key:A,rel:"prefetch",as:"fetch",href:A,...r})),x.map(A=>D.createElement("link",{key:A,rel:"modulepreload",href:A,...r})),E.map(({key:A,link:z})=>D.createElement("link",{key:A,nonce:r.nonce,...z,crossOrigin:z.crossOrigin??r.crossOrigin})))}function zk(...t){return l=>{t.forEach(r=>{typeof r=="function"?r(l):r!=null&&(r.current=l)})}}var Rk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Rk&&(window.__reactRouterVersion="7.18.1")}catch{}function Ok({basename:t,children:l,useTransitions:r,window:a}){let o=D.useRef();o.current==null&&(o.current=iS({window:a,v5Compat:!0}));let s=o.current,[c,d]=D.useState({action:s.action,location:s.location}),m=D.useCallback(p=>{r===!1?d(p):D.startTransition(()=>d(p))},[r]);return D.useLayoutEffect(()=>s.listen(m),[s,m]),D.createElement(rk,{basename:t,children:l,location:c.location,navigationType:c.action,navigator:s,useTransitions:r})}var hb=D.forwardRef(function({onClick:l,discover:r="render",prefetch:a="none",relative:o,reloadDocument:s,replace:c,mask:d,state:m,target:p,to:y,preventScrollReset:g,viewTransition:v,defaultShouldRevalidate:x,...E},A){let{basename:z,navigator:C,useTransitions:B}=D.useContext(Pt),j=typeof y=="string"&&Nf.test(y),W=tb(y,z);y=W.to;let ee=BS(y,{relative:o}),Q=xn(),J=null;if(d){let P=to(d,[],Q.mask?Q.mask.pathname:"/",!0);z!=="/"&&(P.pathname=P.pathname==="/"?z:yn([z,P.pathname])),J=C.createHref(P)}let[V,ae,q]=wk(a,E),ie=Nk(y,{replace:c,mask:d,state:m,target:p,preventScrollReset:g,relative:o,viewTransition:v,defaultShouldRevalidate:x,useTransitions:B});function te(P){l&&l(P),P.defaultPrevented||ie(P)}let ye=!(W.isExternal||s),ue=D.createElement("a",{...E,...q,href:(ye?J:void 0)||W.absoluteURL||ee,onClick:ye?te:l,ref:zk(A,ae),target:p,"data-discover":!j&&r==="render"?"true":void 0});return V&&!j?D.createElement(D.Fragment,null,ue,D.createElement(Ek,{page:ee})):ue});hb.displayName="Link";var _k=D.forwardRef(function({"aria-current":l="page",caseSensitive:r=!1,className:a="",end:o=!1,style:s,to:c,viewTransition:d,children:m,...p},y){let g=ha(c,{relative:p.relative}),v=xn(),x=D.useContext(no),{navigator:E,basename:A}=D.useContext(Pt),z=x!=null&&Hk(g)&&d===!0,C=E.encodeLocation?E.encodeLocation(g).pathname:g.pathname,B=v.pathname,j=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;r||(B=B.toLowerCase(),j=j?j.toLowerCase():null,C=C.toLowerCase()),j&&A&&(j=Jn(j,A)||j);const W=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let ee=B===C||!o&&B.startsWith(C)&&B.charAt(W)==="/",Q=j!=null&&(j===C||!o&&j.startsWith(C)&&j.charAt(C.length)==="/"),J={isActive:ee,isPending:Q,isTransitioning:z},V=ee?l:void 0,ae;typeof a=="function"?ae=a(J):ae=[a,ee?"active":null,Q?"pending":null,z?"transitioning":null].filter(Boolean).join(" ");let q=typeof s=="function"?s(J):s;return D.createElement(hb,{...p,"aria-current":V,className:ae,ref:y,style:q,to:c,viewTransition:d},typeof m=="function"?m(J):m)});_k.displayName="NavLink";var Mk=D.forwardRef(({discover:t="render",fetcherKey:l,navigate:r,reloadDocument:a,replace:o,state:s,method:c=Yu,action:d,onSubmit:m,relative:p,preventScrollReset:y,viewTransition:g,defaultShouldRevalidate:v,...x},E)=>{let{useTransitions:A}=D.useContext(Pt),z=Uk(),C=Bk(d,{relative:p}),B=c.toLowerCase()==="get"?"get":"post",j=typeof d=="string"&&Nf.test(d),W=ee=>{if(m&&m(ee),ee.defaultPrevented)return;ee.preventDefault();let Q=ee.nativeEvent.submitter,J=Q?.getAttribute("formmethod")||c,V=()=>z(Q||ee.currentTarget,{fetcherKey:l,method:J,navigate:r,replace:o,state:s,relative:p,preventScrollReset:y,viewTransition:g,defaultShouldRevalidate:v});A&&r!==!1?D.startTransition(()=>V()):V()};return D.createElement("form",{ref:E,method:B,action:C,onSubmit:a?m:W,...x,"data-discover":!j&&t==="render"?"true":void 0})});Mk.displayName="Form";function Dk(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function db(t){let l=D.useContext(Ki);return Pe(l,Dk(t)),l}function Nk(t,{target:l,replace:r,mask:a,state:o,preventScrollReset:s,relative:c,viewTransition:d,defaultShouldRevalidate:m,useTransitions:p}={}){let y=Uf(),g=xn(),v=ha(t,{relative:c});return D.useCallback(x=>{if(fk(x,l)){x.preventDefault();let E=r!==void 0?r:aa(g)===aa(v),A=()=>y(t,{replace:E,mask:a,state:o,preventScrollReset:s,relative:c,viewTransition:d,defaultShouldRevalidate:m});p?D.startTransition(()=>A()):A()}},[g,y,v,r,a,o,l,t,s,c,d,m,p])}var jk=0,Lk=()=>`__${String(++jk)}__`;function Uk(){let{router:t}=db("useSubmit"),{basename:l}=D.useContext(Pt),r=WS(),a=t.fetch,o=t.navigate;return D.useCallback(async(s,c={})=>{let{action:d,method:m,encType:p,formData:y,body:g}=mk(s,l);if(c.navigate===!1){let v=c.fetcherKey||Lk();await a(v,r,c.action||d,{defaultShouldRevalidate:c.defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:y,body:g,formMethod:c.method||m,formEncType:c.encType||p,flushSync:c.flushSync})}else await o(c.action||d,{defaultShouldRevalidate:c.defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:y,body:g,formMethod:c.method||m,formEncType:c.encType||p,replace:c.replace,state:c.state,fromRouteId:r,flushSync:c.flushSync,viewTransition:c.viewTransition})},[a,o,l,r])}function Bk(t,{relative:l}={}){let{basename:r}=D.useContext(Pt),a=D.useContext(hn);Pe(a,"useFormAction must be used inside a RouteContext");let[o]=a.matches.slice(-1),s={...ha(t||".",{relative:l})},c=xn();if(t==null){s.search=c.search;let d=new URLSearchParams(s.search),m=d.getAll("index");if(m.some(y=>y==="")){d.delete("index"),m.filter(g=>g).forEach(g=>d.append("index",g));let y=d.toString();s.search=y?`?${y}`:""}}return(!t||t===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(s.pathname=s.pathname==="/"?r:yn([r,s.pathname])),aa(s)}function Hk(t,{relative:l}={}){let r=D.useContext(ib);Pe(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=db("useViewTransitionState"),o=ha(t,{relative:l});if(!r.isTransitioning)return!1;let s=Jn(r.currentLocation.pathname,a)||r.currentLocation.pathname,c=Jn(r.nextLocation.pathname,a)||r.nextLocation.pathname;return ua(o.pathname,c)!=null||ua(o.pathname,s)!=null}const mb=(...t)=>t.filter((l,r,a)=>!!l&&l.trim()!==""&&a.indexOf(l)===r).join(" ").trim();const qk=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Qk=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,r,a)=>a?a.toUpperCase():r.toLowerCase());const Dg=t=>{const l=Qk(t);return l.charAt(0).toUpperCase()+l.slice(1)};var Gk={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"};const Fk=t=>{for(const l in t)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1};const Yk=D.forwardRef(({color:t="currentColor",size:l=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:o="",children:s,iconNode:c,...d},m)=>D.createElement("svg",{ref:m,...Gk,width:l,height:l,stroke:t,strokeWidth:a?Number(r)*24/Number(l):r,className:mb("lucide",o),...!s&&!Fk(d)&&{"aria-hidden":"true"},...d},[...c.map(([p,y])=>D.createElement(p,y)),...Array.isArray(s)?s:[s]]));const ei=(t,l)=>{const r=D.forwardRef(({className:a,...o},s)=>D.createElement(Yk,{ref:s,iconNode:l,className:mb(`lucide-${qk(Dg(t))}`,`lucide-${t}`,a),...o}));return r.displayName=Dg(t),r};const Vk=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Xk=ei("arrow-up",Vk);const Ik=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Zk=ei("chevron-down",Ik);const Kk=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]],Jk=ei("file-diff",Kk);const Pk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],$k=ei("info",Pk);const Wk=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],ew=ei("panel-left",Wk);const tw=[["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"}]],nw=ei("sliders-horizontal",tw);const lw=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],pb=ei("x",lw),df="conductor-remote-token";function iw(){const l=new URLSearchParams(location.hash.slice(1)).get("token");return l&&(localStorage.setItem(df,l),history.replaceState(null,"",location.pathname+location.search)),localStorage.getItem(df)}function rw(){return localStorage.getItem(df)}class gb extends Error{constructor(l,r){super(l),this.status=r}status}async function Ir(t,l={}){const r=rw(),a=await fetch(t,{...l,headers:{authorization:`Bearer ${r??""}`,"content-type":"application/json",...l.headers}});if(!a.ok){const o=await a.json().catch(()=>({}));throw new gb(o.error||`HTTP ${a.status}`,a.status)}return a.json()}const da={state:()=>Ir("/api/state"),sessions:t=>Ir(`/api/workspaces/${encodeURIComponent(t)}/sessions`),messages:(t,l)=>Ir(`/api/sessions/${encodeURIComponent(t)}/messages?after=${l}`),diff:t=>Ir(`/api/workspaces/${encodeURIComponent(t)}/diff`),sendPrompt:(t,l,r)=>Ir(`/api/sessions/${encodeURIComponent(t)}/prompt`,{method:"POST",body:JSON.stringify({text:l,workspaceId:r})})},Ng=t=>{let l;const r=new Set,a=(p,y)=>{const g=typeof p=="function"?p(l):p;if(!Object.is(g,l)){const v=l;l=y??(typeof g!="object"||g===null)?g:Object.assign({},l,g),r.forEach(x=>x(l,v))}},o=()=>l,d={setState:a,getState:o,getInitialState:()=>m,subscribe:p=>(r.add(p),()=>r.delete(p))},m=l=t(a,o,d);return d},aw=(t=>t?Ng(t):Ng),uw=t=>t;function ow(t,l=uw){const r=Lu.useSyncExternalStore(t.subscribe,Lu.useCallback(()=>l(t.getState()),[t,l]),Lu.useCallback(()=>l(t.getInitialState()),[t,l]));return Lu.useDebugValue(r),r}const jg=t=>{const l=aw(t),r=a=>ow(l,a);return Object.assign(r,l),r},sw=(t=>t?jg(t):jg),yb="conductor-remote-view",Lg={groupBy:"status",repo:null,sortBy:"updated",collapsed:[]};function cw(){try{return{...Lg,...JSON.parse(localStorage.getItem(yb)??"{}")}}catch{return Lg}}const cn=sw((t,l)=>{const r=a=>{localStorage.setItem(yb,JSON.stringify(a)),t({view:a})};return{token:iw(),online:!0,sidebarOpen:!location.pathname.startsWith("/w/"),view:cw(),setToken:a=>t({token:a}),setOnline:a=>t({online:a}),setSidebarOpen:a=>t({sidebarOpen:a}),setView:a=>r({...l().view,...a}),toggleGroup:a=>{const{collapsed:o}=l().view;r({...l().view,collapsed:o.includes(a)?o.filter(s=>s!==a):[...o,a]})}}});function ro(){const t=cn(r=>r.setOnline),l=cn(r=>r.setToken);return D.useCallback((r,a)=>{t(r),a instanceof gb&&a.status===401&&l(null)},[t,l])}function bb(){const t=ro(),l=Df({queryKey:["state"],queryFn:()=>da.state(),refetchInterval:2500});return D.useEffect(()=>{l.isSuccess&&t(!0),l.isError&&t(!1,l.error)},[l.isSuccess,l.isError,l.error,t]),l}function fw(t){const l=ro(),r=Df({queryKey:["sessions",t],queryFn:()=>da.sessions(t),enabled:!!t,refetchInterval:4e3});return D.useEffect(()=>{r.isError&&l(!1,r.error)},[r.isError,r.error,l]),r}function hw(t,l){const r=ro(),a=Df({queryKey:["diff",t],queryFn:()=>da.diff(t),enabled:!!t,refetchInterval:5e3});return D.useEffect(()=>{a.isError&&r(!1,a.error)},[a.isError,a.error,r]),a}function dw(t){const l=ro(),[r,a]=D.useState({entries:[],loading:!0,error:null}),o=D.useRef(0);return D.useEffect(()=>{if(!t){a({entries:[],loading:!1,error:null});return}o.current=0,a({entries:[],loading:!0,error:null});let s=!0;const c=async()=>{try{const{entries:m,cursor:p}=await da.messages(t,o.current);if(!s)return;l(!0),m.length?(o.current=p,a(y=>({entries:[...y.entries,...m],loading:!1,error:null}))):a(y=>y.loading?{...y,loading:!1}:y)}catch(m){if(!s)return;l(!1,m),a(p=>({...p,loading:!1,error:m instanceof Error?m.message:String(m)}))}};c();const d=setInterval(c,1800);return()=>{s=!1,clearInterval(d)}},[t,l]),r}function vb(t){var l,r,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(l=0;l<o;l++)t[l]&&(r=vb(t[l]))&&(a&&(a+=" "),a+=r)}else for(r in t)t[r]&&(a&&(a+=" "),a+=r);return a}function mw(){for(var t,l,r=0,a="",o=arguments.length;r<o;r++)(t=arguments[r])&&(l=vb(t))&&(a&&(a+=" "),a+=l);return a}const pw=(t,l)=>{const r=new Array(t.length+l.length);for(let a=0;a<t.length;a++)r[a]=t[a];for(let a=0;a<l.length;a++)r[t.length+a]=l[a];return r},gw=(t,l)=>({classGroupId:t,validator:l}),xb=(t=new Map,l=null,r)=>({nextPart:t,validators:l,classGroupId:r}),Ku="-",Ug=[],yw="arbitrary..",bw=t=>{const l=xw(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return vw(c);const d=c.split(Ku),m=d[0]===""&&d.length>1?1:0;return Sb(d,m,l)},getConflictingClassGroupIds:(c,d)=>{if(d){const m=a[c],p=r[c];return m?p?pw(p,m):m:p||Ug}return r[c]||Ug}}},Sb=(t,l,r)=>{if(t.length-l===0)return r.classGroupId;const o=t[l],s=r.nextPart.get(o);if(s){const p=Sb(t,l+1,s);if(p)return p}const c=r.validators;if(c===null)return;const d=l===0?t.join(Ku):t.slice(l).join(Ku),m=c.length;for(let p=0;p<m;p++){const y=c[p];if(y.validator(d))return y.classGroupId}},vw=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const l=t.slice(1,-1),r=l.indexOf(":"),a=l.slice(0,r);return a?yw+a:void 0})(),xw=t=>{const{theme:l,classGroups:r}=t;return Sw(r,l)},Sw=(t,l)=>{const r=xb();for(const a in t){const o=t[a];Ff(o,r,a,l)}return r},Ff=(t,l,r,a)=>{const o=t.length;for(let s=0;s<o;s++){const c=t[s];kw(c,l,r,a)}},kw=(t,l,r,a)=>{if(typeof t=="string"){ww(t,l,r);return}if(typeof t=="function"){Ew(t,l,r,a);return}Cw(t,l,r,a)},ww=(t,l,r)=>{const a=t===""?l:kb(l,t);a.classGroupId=r},Ew=(t,l,r,a)=>{if(Tw(t)){Ff(t(a),l,r,a);return}l.validators===null&&(l.validators=[]),l.validators.push(gw(r,t))},Cw=(t,l,r,a)=>{const o=Object.entries(t),s=o.length;for(let c=0;c<s;c++){const[d,m]=o[c];Ff(m,kb(l,d),r,a)}},kb=(t,l)=>{let r=t;const a=l.split(Ku),o=a.length;for(let s=0;s<o;s++){const c=a[s];let d=r.nextPart.get(c);d||(d=xb(),r.nextPart.set(c,d)),r=d}return r},Tw=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Aw=t=>{if(t<1)return{get:()=>{},set:()=>{}};let l=0,r=Object.create(null),a=Object.create(null);const o=(s,c)=>{r[s]=c,l++,l>t&&(l=0,a=r,r=Object.create(null))};return{get(s){let c=r[s];if(c!==void 0)return c;if((c=a[s])!==void 0)return o(s,c),c},set(s,c){s in r?r[s]=c:o(s,c)}}},mf="!",Bg=":",zw=[],Hg=(t,l,r,a,o)=>({modifiers:t,hasImportantModifier:l,baseClassName:r,maybePostfixModifierPosition:a,isExternal:o}),Rw=t=>{const{prefix:l,experimentalParseClassName:r}=t;let a=o=>{const s=[];let c=0,d=0,m=0,p;const y=o.length;for(let A=0;A<y;A++){const z=o[A];if(c===0&&d===0){if(z===Bg){s.push(o.slice(m,A)),m=A+1;continue}if(z==="/"){p=A;continue}}z==="["?c++:z==="]"?c--:z==="("?d++:z===")"&&d--}const g=s.length===0?o:o.slice(m);let v=g,x=!1;g.endsWith(mf)?(v=g.slice(0,-1),x=!0):g.startsWith(mf)&&(v=g.slice(1),x=!0);const E=p&&p>m?p-m:void 0;return Hg(s,x,v,E)};if(l){const o=l+Bg,s=a;a=c=>c.startsWith(o)?s(c.slice(o.length)):Hg(zw,!1,c,void 0,!0)}if(r){const o=a;a=s=>r({className:s,parseClassName:o})}return a},Ow=t=>{const l=new Map;return t.orderSensitiveModifiers.forEach((r,a)=>{l.set(r,1e6+a)}),r=>{const a=[];let o=[];for(let s=0;s<r.length;s++){const c=r[s],d=c[0]==="[",m=l.has(c);d||m?(o.length>0&&(o.sort(),a.push(...o),o=[]),a.push(c)):o.push(c)}return o.length>0&&(o.sort(),a.push(...o)),a}},_w=t=>({cache:Aw(t.cacheSize),parseClassName:Rw(t),sortModifiers:Ow(t),postfixLookupClassGroupIds:Mw(t),...bw(t)}),Mw=t=>{const l=Object.create(null),r=t.postfixLookupClassGroups;if(r)for(let a=0;a<r.length;a++)l[r[a]]=!0;return l},Dw=/\s+/,Nw=(t,l)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:o,sortModifiers:s,postfixLookupClassGroupIds:c}=l,d=[],m=t.trim().split(Dw);let p="";for(let y=m.length-1;y>=0;y-=1){const g=m[y],{isExternal:v,modifiers:x,hasImportantModifier:E,baseClassName:A,maybePostfixModifierPosition:z}=r(g);if(v){p=g+(p.length>0?" "+p:p);continue}let C=!!z,B;if(C){const J=A.substring(0,z);B=a(J);const V=B&&c[B]?a(A):void 0;V&&V!==B&&(B=V,C=!1)}else B=a(A);if(!B){if(!C){p=g+(p.length>0?" "+p:p);continue}if(B=a(A),!B){p=g+(p.length>0?" "+p:p);continue}C=!1}const j=x.length===0?"":x.length===1?x[0]:s(x).join(":"),W=E?j+mf:j,ee=W+B;if(d.indexOf(ee)>-1)continue;d.push(ee);const Q=o(B,C);for(let J=0;J<Q.length;++J){const V=Q[J];d.push(W+V)}p=g+(p.length>0?" "+p:p)}return p},jw=(...t)=>{let l=0,r,a,o="";for(;l<t.length;)(r=t[l++])&&(a=wb(r))&&(o&&(o+=" "),o+=a);return o},wb=t=>{if(typeof t=="string")return t;let l,r="";for(let a=0;a<t.length;a++)t[a]&&(l=wb(t[a]))&&(r&&(r+=" "),r+=l);return r},Lw=(t,...l)=>{let r,a,o,s;const c=m=>{const p=l.reduce((y,g)=>g(y),t());return r=_w(p),a=r.cache.get,o=r.cache.set,s=d,d(m)},d=m=>{const p=a(m);if(p)return p;const y=Nw(m,r);return o(m,y),y};return s=c,(...m)=>s(jw(...m))},Uw=[],ct=t=>{const l=r=>r[t]||Uw;return l.isThemeGetter=!0,l},Eb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Cb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Bw=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Hw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Qw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Gw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Fw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,El=t=>Bw.test(t),Te=t=>!!t&&!Number.isNaN(Number(t)),Tn=t=>!!t&&Number.isInteger(Number(t)),Uc=t=>t.endsWith("%")&&Te(t.slice(0,-1)),Zn=t=>Hw.test(t),Tb=()=>!0,Yw=t=>qw.test(t)&&!Qw.test(t),Yf=()=>!1,Vw=t=>Gw.test(t),Xw=t=>Fw.test(t),Iw=t=>!oe(t)&&!ce(t),Zw=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),Kw=t=>Al(t,Rb,Yf),oe=t=>Eb.test(t),Il=t=>Al(t,Ob,Yw),qg=t=>Al(t,lE,Te),Jw=t=>Al(t,Mb,Tb),Pw=t=>Al(t,_b,Yf),Qg=t=>Al(t,Ab,Yf),$w=t=>Al(t,zb,Xw),Bu=t=>Al(t,Db,Vw),ce=t=>Cb.test(t),Zr=t=>ti(t,Ob),Ww=t=>ti(t,_b),Gg=t=>ti(t,Ab),eE=t=>ti(t,Rb),tE=t=>ti(t,zb),Hu=t=>ti(t,Db,!0),nE=t=>ti(t,Mb,!0),Al=(t,l,r)=>{const a=Eb.exec(t);return a?a[1]?l(a[1]):r(a[2]):!1},ti=(t,l,r=!1)=>{const a=Cb.exec(t);return a?a[1]?l(a[1]):r:!1},Ab=t=>t==="position"||t==="percentage",zb=t=>t==="image"||t==="url",Rb=t=>t==="length"||t==="size"||t==="bg-size",Ob=t=>t==="length",lE=t=>t==="number",_b=t=>t==="family-name",Mb=t=>t==="number"||t==="weight",Db=t=>t==="shadow",iE=()=>{const t=ct("color"),l=ct("font"),r=ct("text"),a=ct("font-weight"),o=ct("tracking"),s=ct("leading"),c=ct("breakpoint"),d=ct("container"),m=ct("spacing"),p=ct("radius"),y=ct("shadow"),g=ct("inset-shadow"),v=ct("text-shadow"),x=ct("drop-shadow"),E=ct("blur"),A=ct("perspective"),z=ct("aspect"),C=ct("ease"),B=ct("animate"),j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],ee=()=>[...W(),ce,oe],Q=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto","contain","none"],V=()=>[ce,oe,m],ae=()=>[El,"full","auto",...V()],q=()=>[Tn,"none","subgrid",ce,oe],ie=()=>["auto",{span:["full",Tn,ce,oe]},Tn,ce,oe],te=()=>[Tn,"auto",ce,oe],ye=()=>["auto","min","max","fr",ce,oe],ue=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],P=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...V()],K=()=>[El,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],he=()=>[El,"screen","full","dvw","lvw","svw","min","max","fit",...V()],ke=()=>[El,"screen","full","lh","dvh","lvh","svh","min","max","fit",...V()],k=()=>[t,ce,oe],R=()=>[...W(),Gg,Qg,{position:[ce,oe]}],Y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],w=()=>["auto","cover","contain",eE,Kw,{size:[ce,oe]}],le=()=>[Uc,Zr,Il],se=()=>["","none","full",p,ce,oe],re=()=>["",Te,Zr,Il],Ee=()=>["solid","dashed","dotted","double"],Ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[Te,Uc,Gg,Qg],kt=()=>["","none",E,ce,oe],At=()=>["none",Te,ce,oe],Sn=()=>["none",Te,ce,oe],$n=()=>[Te,ce,oe],zt=()=>[El,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Zn],breakpoint:[Zn],color:[Tb],container:[Zn],"drop-shadow":[Zn],ease:["in","out","in-out"],font:[Iw],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Zn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Zn],shadow:[Zn],spacing:["px",Te],text:[Zn],"text-shadow":[Zn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",El,oe,ce,z]}],container:["container"],"container-type":[{"@container":["","normal","size",ce,oe]}],"container-named":[Zw],columns:[{columns:[Te,oe,ce,d]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:ee()}],overflow:[{overflow:Q()}],"overflow-x":[{"overflow-x":Q()}],"overflow-y":[{"overflow-y":Q()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ae()}],"inset-x":[{"inset-x":ae()}],"inset-y":[{"inset-y":ae()}],start:[{"inset-s":ae(),start:ae()}],end:[{"inset-e":ae(),end:ae()}],"inset-bs":[{"inset-bs":ae()}],"inset-be":[{"inset-be":ae()}],top:[{top:ae()}],right:[{right:ae()}],bottom:[{bottom:ae()}],left:[{left:ae()}],visibility:["visible","invisible","collapse"],z:[{z:[Tn,"auto",ce,oe]}],basis:[{basis:[El,"full","auto",d,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Te,El,"auto","initial","none",oe]}],grow:[{grow:["",Te,ce,oe]}],shrink:[{shrink:["",Te,ce,oe]}],order:[{order:[Tn,"first","last","none",ce,oe]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:ie()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:ie()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ye()}],"auto-rows":[{"auto-rows":ye()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...ue(),"normal"]}],"justify-items":[{"justify-items":[...P(),"normal"]}],"justify-self":[{"justify-self":["auto",...P()]}],"align-content":[{content:["normal",...ue()]}],"align-items":[{items:[...P(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...P(),{baseline:["","last"]}]}],"place-content":[{"place-content":ue()}],"place-items":[{"place-items":[...P(),"baseline"]}],"place-self":[{"place-self":["auto",...P()]}],p:[{p:V()}],px:[{px:V()}],py:[{py:V()}],ps:[{ps:V()}],pe:[{pe:V()}],pbs:[{pbs:V()}],pbe:[{pbe:V()}],pt:[{pt:V()}],pr:[{pr:V()}],pb:[{pb:V()}],pl:[{pl:V()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mbs:[{mbs:N()}],mbe:[{mbe:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":V()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":V()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],"inline-size":[{inline:["auto",...he()]}],"min-inline-size":[{"min-inline":["auto",...he()]}],"max-inline-size":[{"max-inline":["none",...he()]}],"block-size":[{block:["auto",...ke()]}],"min-block-size":[{"min-block":["auto",...ke()]}],"max-block-size":[{"max-block":["none",...ke()]}],w:[{w:[d,"screen",...K()]}],"min-w":[{"min-w":[d,"screen","none",...K()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",r,Zr,Il]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,nE,Jw]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Uc,oe]}],"font-family":[{font:[Ww,Pw,l]}],"font-features":[{"font-features":[oe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ce,oe]}],"line-clamp":[{"line-clamp":[Te,"none",ce,qg]}],leading:[{leading:[s,...V()]}],"list-image":[{"list-image":["none",ce,oe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ce,oe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[Te,"from-font","auto",ce,Il]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[Te,"auto",ce,oe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"tab-size":[{tab:[Tn,ce,oe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce,oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ce,oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:Y()}],"bg-size":[{bg:w()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Tn,ce,oe],radial:["",ce,oe],conic:[Tn,ce,oe]},tE,$w]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:le()}],"gradient-via-pos":[{via:le()}],"gradient-to-pos":[{to:le()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:se()}],"rounded-s":[{"rounded-s":se()}],"rounded-e":[{"rounded-e":se()}],"rounded-t":[{"rounded-t":se()}],"rounded-r":[{"rounded-r":se()}],"rounded-b":[{"rounded-b":se()}],"rounded-l":[{"rounded-l":se()}],"rounded-ss":[{"rounded-ss":se()}],"rounded-se":[{"rounded-se":se()}],"rounded-ee":[{"rounded-ee":se()}],"rounded-es":[{"rounded-es":se()}],"rounded-tl":[{"rounded-tl":se()}],"rounded-tr":[{"rounded-tr":se()}],"rounded-br":[{"rounded-br":se()}],"rounded-bl":[{"rounded-bl":se()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-bs":[{"border-bs":re()}],"border-w-be":[{"border-be":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ee(),"hidden","none"]}],"divide-style":[{divide:[...Ee(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-bs":[{"border-bs":k()}],"border-color-be":[{"border-be":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...Ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Te,ce,oe]}],"outline-w":[{outline:["",Te,Zr,Il]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",y,Hu,Bu]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",g,Hu,Bu]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[Te,Il]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",v,Hu,Bu]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[Te,ce,oe]}],"mix-blend":[{"mix-blend":[...Ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ye()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Te]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[ce,oe]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":W()}],"mask-image-conic-pos":[{"mask-conic":[Te]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:Y()}],"mask-size":[{mask:w()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ce,oe]}],filter:[{filter:["","none",ce,oe]}],blur:[{blur:kt()}],brightness:[{brightness:[Te,ce,oe]}],contrast:[{contrast:[Te,ce,oe]}],"drop-shadow":[{"drop-shadow":["","none",x,Hu,Bu]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",Te,ce,oe]}],"hue-rotate":[{"hue-rotate":[Te,ce,oe]}],invert:[{invert:["",Te,ce,oe]}],saturate:[{saturate:[Te,ce,oe]}],sepia:[{sepia:["",Te,ce,oe]}],"backdrop-filter":[{"backdrop-filter":["","none",ce,oe]}],"backdrop-blur":[{"backdrop-blur":kt()}],"backdrop-brightness":[{"backdrop-brightness":[Te,ce,oe]}],"backdrop-contrast":[{"backdrop-contrast":[Te,ce,oe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Te,ce,oe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Te,ce,oe]}],"backdrop-invert":[{"backdrop-invert":["",Te,ce,oe]}],"backdrop-opacity":[{"backdrop-opacity":[Te,ce,oe]}],"backdrop-saturate":[{"backdrop-saturate":[Te,ce,oe]}],"backdrop-sepia":[{"backdrop-sepia":["",Te,ce,oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":V()}],"border-spacing-x":[{"border-spacing-x":V()}],"border-spacing-y":[{"border-spacing-y":V()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ce,oe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Te,"initial",ce,oe]}],ease:[{ease:["linear","initial",C,ce,oe]}],delay:[{delay:[Te,ce,oe]}],animate:[{animate:["none",B,ce,oe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,ce,oe]}],"perspective-origin":[{"perspective-origin":ee()}],rotate:[{rotate:At()}],"rotate-x":[{"rotate-x":At()}],"rotate-y":[{"rotate-y":At()}],"rotate-z":[{"rotate-z":At()}],scale:[{scale:Sn()}],"scale-x":[{"scale-x":Sn()}],"scale-y":[{"scale-y":Sn()}],"scale-z":[{"scale-z":Sn()}],"scale-3d":["scale-3d"],skew:[{skew:$n()}],"skew-x":[{"skew-x":$n()}],"skew-y":[{"skew-y":$n()}],transform:[{transform:[ce,oe,"","none","gpu","cpu"]}],"transform-origin":[{origin:ee()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:zt()}],"translate-x":[{"translate-x":zt()}],"translate-y":[{"translate-y":zt()}],"translate-z":[{"translate-z":zt()}],"translate-none":["translate-none"],zoom:[{zoom:[Tn,ce,oe]}],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ce,oe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":k()}],"scrollbar-track-color":[{"scrollbar-track":k()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mbs":[{"scroll-mbs":V()}],"scroll-mbe":[{"scroll-mbe":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pbs":[{"scroll-pbs":V()}],"scroll-pbe":[{"scroll-pbe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ce,oe]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[Te,Zr,Il,qg]}],stroke:[{stroke:["none",...k()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},rE=Lw(iE);function fn(...t){return rE(mw(t))}function Ju(t){return t.workspace_name||aE(t.branch)||t.directory_name||t.id.slice(0,8)}function aE(t){if(!t)return"";const r=(t.includes("/")?t.slice(t.indexOf("/")+1):t).replace(/[-_]/g," ").trim();return r?r[0].toUpperCase()+r.slice(1):""}function Nb(t){return t.session_status==="working"?"working":t.derived_status==="done"||t.manual_status==="done"?"done":"idle"}function uE(t){const l=Nb(t);return l==="working"?"working":l==="done"?"done":t.session_status||"idle"}function oE(t){return t.manual_status||t.derived_status||"in-progress"}const Fg=["done","in-review","in-progress","backlog"];function sE(t){return{done:"Done","in-review":"In review","in-progress":"In progress",backlog:"Backlog"}[t]??t}function jb(t){return t?t.replace(/^claude-/,"").replace(/-\d{8}$/,"").replace(/-latest$/,""):""}function cE(t){const l=new Date(t).getTime();if(!Number.isFinite(l))return"";const r=Math.round((Date.now()-l)/1e3);if(r<45)return"now";if(r<90)return"1m";const a=Math.round(r/60);if(a<60)return`${a}m`;const o=Math.round(a/60);return o<24?`${o}h`:`${Math.round(o/24)}d`}function fE({sessionId:t,workspaceId:l,actuator:r}){const[a,o]=D.useState(""),[s,c]=D.useState(!1),[d,m]=D.useState(null),p=D.useRef(null);D.useEffect(()=>{if(!d)return;const E=setTimeout(()=>m(null),d.kind==="err"?5e3:2800);return()=>clearTimeout(E)},[d]);const y=()=>{const E=p.current;E&&(E.style.height="auto",E.style.height=`${Math.min(E.scrollHeight,160)}px`)},g=async()=>{const E=a.trim();if(!(!E||!t||s)){c(!0);try{const A=await da.sendPrompt(t,E,l);A.ok?(o(""),requestAnimationFrame(y),m({kind:A.warning?"warn":"ok",msg:A.warning||"Sent"})):m({kind:"err",msg:A.error||"Send failed"})}catch(A){m({kind:"err",msg:A instanceof Error?A.message:String(A)})}finally{c(!1)}}},v=!t,x=r?.precise&&r.available;return _.jsxs("div",{className:"pb-safe border-t border-border-soft bg-bg px-3 pt-2",children:[d?_.jsx("div",{className:fn("mb-2 rounded-lg px-3 py-1.5 text-xs",d.kind==="ok"&&"bg-idle/10 text-idle",d.kind==="warn"&&"bg-working/10 text-working",d.kind==="err"&&"bg-del/10 text-del"),children:d.msg}):_.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5 px-1 text-[11px] text-faint",children:[_.jsx($k,{size:12}),x?"Precise send — targets this session directly":r?.caveat||"Sends to the focused session"]}),_.jsxs("div",{className:"flex items-end gap-2 rounded-2xl border border-border bg-surface px-2.5 py-1.5 focus-within:border-accent/60",children:[_.jsx("textarea",{ref:p,rows:1,value:a,disabled:v,placeholder:v?"No active session":"Send a prompt…",className:"max-h-40 flex-1 resize-none bg-transparent py-1.5 text-[15px] outline-none placeholder:text-faint disabled:opacity-50",onChange:E=>{o(E.target.value),y()},onKeyDown:E=>{E.key==="Enter"&&(E.metaKey||E.ctrlKey)&&(E.preventDefault(),g())}}),_.jsx("button",{type:"button",onClick:g,disabled:v||s||!a.trim(),"aria-label":"Send",className:"mb-0.5 flex size-9 shrink-0 items-center justify-center rounded-full bg-accent text-white transition active:scale-90 disabled:bg-surface-2 disabled:text-faint",children:_.jsx(Xk,{size:19})})]})]})}function hE({status:t,className:l}){return _.jsx("span",{className:fn("dot",`dot-${t}`,l)})}function dE(){const t=cn(l=>l.online);return _.jsx("span",{title:t?"connected":"offline",className:"dot",style:{background:t?"var(--color-idle)":"var(--color-del)"}})}function Yg({children:t,className:l}){return _.jsx("span",{className:fn("rounded-md bg-surface-2 px-1.5 py-0.5 font-mono text-[11px] text-muted",l),children:t})}function Lb({children:t}){return _.jsx("span",{className:"grid min-w-5 place-items-center rounded-full bg-accent px-1.5 text-[11px] font-bold text-white",children:t})}function Kn({children:t}){return _.jsx("div",{className:"mx-auto max-w-xs px-6 py-16 text-center text-sm text-muted",children:t})}function ao({label:t}){return _.jsxs("div",{className:"flex items-center justify-center gap-2 py-16 text-sm text-muted",children:[_.jsx("span",{className:"size-4 animate-spin rounded-full border-2 border-border border-t-accent"}),t]})}function mE({workspaceId:t}){const{data:l,isLoading:r,isError:a,error:o}=hw(t);return r&&!l?_.jsx(ao,{label:"Computing diff…"}):a?_.jsx(Kn,{children:o?.message}):l?l.files.length===0?_.jsxs(Kn,{children:["No changes vs ",_.jsx("span",{className:"font-mono",children:l.base}),"."]}):_.jsxs("div",{className:"pb-safe flex-1 overflow-y-auto",children:[_.jsxs("div",{className:"border-b border-border-soft px-3 py-2 text-xs text-muted",children:["vs ",_.jsx("span",{className:"font-mono text-faint",children:l.base})," · ",l.files.length," file",l.files.length===1?"":"s"]}),_.jsx("ul",{className:"flex flex-col gap-1 px-3 py-3",children:l.files.map(s=>_.jsxs("li",{className:"flex items-center gap-2 font-mono text-[12px]",children:[_.jsx("span",{className:"truncate text-muted",children:s.path}),_.jsxs("span",{className:"ml-auto shrink-0 text-add",children:["+",s.added]}),_.jsxs("span",{className:"shrink-0 text-del",children:["−",s.removed]})]},s.path))}),_.jsx(pE,{patch:l.patch,truncated:l.truncated})]}):_.jsx(Kn,{children:"No diff."})}function pE({patch:t,truncated:l}){const r=D.useMemo(()=>t.split(`
12
+ `),[t]);return _.jsxs("pre",{className:"overflow-x-auto border-t border-border-soft px-3 py-3 font-mono text-[11.5px] leading-[1.5]",children:[r.map((a,o)=>_.jsx("div",{className:fn("whitespace-pre",gE(a)),children:a||" "},o)),l?_.jsx("div",{className:"mt-2 text-faint",children:"… diff truncated …"}):null]})}function gE(t){return t.startsWith("+")&&!t.startsWith("+++")?"text-add":t.startsWith("-")&&!t.startsWith("---")?"text-del":t.startsWith("@@")?"text-accent":t.startsWith("diff ")||t.startsWith("index ")||t.startsWith("+++")||t.startsWith("---")?"text-faint":"text-muted"}function pf({title:t,subtitle:l,menu:r,right:a}){const o=cn(s=>s.setSidebarOpen);return _.jsxs("header",{className:"pt-safe sticky top-0 z-10 flex items-center gap-2 border-b border-border-soft bg-bg/80 px-3 pb-2.5 backdrop-blur-xl",children:[r?_.jsx("button",{type:"button",onClick:()=>o(!0),"aria-label":"Open workspaces",className:"-ml-1 flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2 md:hidden",children:_.jsx(ew,{size:20})}):_.jsx("span",{className:"w-1"}),_.jsxs("div",{className:"min-w-0 flex-1",children:[_.jsx("div",{className:"truncate text-[15px] font-semibold leading-tight",children:t}),l?_.jsx("div",{className:"truncate text-xs leading-tight text-muted",children:l}):null]}),a,_.jsx(dE,{})]})}function yE(t,l){const r={};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const bE=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vE=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,xE={};function Vg(t,l){return(xE.jsx?vE:bE).test(t)}const SE=/[ \t\n\f\r]/g;function kE(t){return typeof t=="object"?t.type==="text"?Xg(t.value):!1:Xg(t)}function Xg(t){return t.replace(SE,"")===""}class ma{constructor(l,r,a){this.normal=r,this.property=l,a&&(this.space=a)}}ma.prototype.normal={};ma.prototype.property={};ma.prototype.space=void 0;function Ub(t,l){const r={},a={};for(const o of t)Object.assign(r,o.property),Object.assign(a,o.normal);return new ma(r,a,l)}function gf(t){return t.toLowerCase()}class Ht{constructor(l,r){this.attribute=r,this.property=l}}Ht.prototype.attribute="";Ht.prototype.booleanish=!1;Ht.prototype.boolean=!1;Ht.prototype.commaOrSpaceSeparated=!1;Ht.prototype.commaSeparated=!1;Ht.prototype.defined=!1;Ht.prototype.mustUseProperty=!1;Ht.prototype.number=!1;Ht.prototype.overloadedBoolean=!1;Ht.prototype.property="";Ht.prototype.spaceSeparated=!1;Ht.prototype.space=void 0;let wE=0;const xe=ni(),ut=ni(),yf=ni(),$=ni(),Ie=ni(),Pl=ni(),Zt=ni();function ni(){return 2**++wE}const bf=Object.freeze(Object.defineProperty({__proto__:null,boolean:xe,booleanish:ut,commaOrSpaceSeparated:Zt,commaSeparated:Pl,number:$,overloadedBoolean:yf,spaceSeparated:Ie},Symbol.toStringTag,{value:"Module"})),Bc=Object.keys(bf);class Vf extends Ht{constructor(l,r,a,o){let s=-1;if(super(l,r),Ig(this,"space",o),typeof a=="number")for(;++s<Bc.length;){const c=Bc[s];Ig(this,Bc[s],(a&bf[c])===bf[c])}}}Vf.prototype.defined=!0;function Ig(t,l,r){r&&(t[l]=r)}function Ji(t){const l={},r={};for(const[a,o]of Object.entries(t.properties)){const s=new Vf(a,t.transform(t.attributes||{},a),o,t.space);t.mustUseProperty&&t.mustUseProperty.includes(a)&&(s.mustUseProperty=!0),l[a]=s,r[gf(a)]=a,r[gf(s.attribute)]=a}return new ma(l,r,t.space)}const Bb=Ji({properties:{ariaActiveDescendant:null,ariaAtomic:ut,ariaAutoComplete:null,ariaBusy:ut,ariaChecked:ut,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControls:Ie,ariaCurrent:null,ariaDescribedBy:Ie,ariaDetails:null,ariaDisabled:ut,ariaDropEffect:Ie,ariaErrorMessage:null,ariaExpanded:ut,ariaFlowTo:Ie,ariaGrabbed:ut,ariaHasPopup:null,ariaHidden:ut,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ie,ariaLevel:$,ariaLive:null,ariaModal:ut,ariaMultiLine:ut,ariaMultiSelectable:ut,ariaOrientation:null,ariaOwns:Ie,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:ut,ariaReadOnly:ut,ariaRelevant:null,ariaRequired:ut,ariaRoleDescription:Ie,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:ut,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null},transform(t,l){return l==="role"?l:"aria-"+l.slice(4).toLowerCase()}});function Hb(t,l){return l in t?t[l]:l}function qb(t,l){return Hb(t,l.toLowerCase())}const EE=Ji({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Pl,acceptCharset:Ie,accessKey:Ie,action:null,allow:null,allowFullScreen:xe,allowPaymentRequest:xe,allowUserMedia:xe,alpha:xe,alt:null,as:null,async:xe,autoCapitalize:null,autoComplete:Ie,autoFocus:xe,autoPlay:xe,blocking:Ie,capture:null,charSet:null,checked:xe,cite:null,className:Ie,closedBy:null,colorSpace:null,cols:$,colSpan:$,command:null,commandFor:null,content:null,contentEditable:ut,controls:xe,controlsList:Ie,coords:$|Pl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:xe,defer:xe,dir:null,dirName:null,disabled:xe,download:yf,draggable:ut,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:xe,formTarget:null,headers:Ie,height:$,hidden:yf,high:$,href:null,hrefLang:null,htmlFor:Ie,httpEquiv:Ie,id:null,imageSizes:null,imageSrcSet:null,inert:xe,inputMode:null,integrity:null,is:null,isMap:xe,itemId:null,itemProp:Ie,itemRef:Ie,itemScope:xe,itemType:Ie,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:xe,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:xe,muted:xe,name:null,nonce:null,noModule:xe,noValidate:xe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:xe,optimum:$,pattern:null,ping:Ie,placeholder:null,playsInline:xe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:xe,referrerPolicy:null,rel:Ie,required:xe,reversed:xe,rows:$,rowSpan:$,sandbox:Ie,scope:null,scoped:xe,seamless:xe,selected:xe,shadowRootClonable:xe,shadowRootCustomElementRegistry:xe,shadowRootDelegatesFocus:xe,shadowRootMode:null,shadowRootSerializable:xe,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:ut,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:xe,useMap:null,value:ut,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ie,axis:null,background:null,bgColor:null,border:$,borderColor:null,bottomMargin:$,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:xe,declare:xe,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,noResize:xe,noHref:xe,noShade:xe,noWrap:xe,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:ut,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:xe,disablePictureInPicture:xe,disableRemotePlayback:xe,exportParts:Pl,part:Ie,prefix:null,property:null,results:$,security:null,unselectable:null},space:"html",transform:qb}),CE=Ji({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Zt,accentHeight:$,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$,amplitude:$,arabicForm:null,ascent:$,attributeName:null,attributeType:null,azimuth:$,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$,by:null,calcMode:null,capHeight:$,className:Ie,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:$,diffuseConstant:$,direction:null,display:null,dur:null,divisor:$,dominantBaseline:null,download:xe,dx:null,dy:null,edgeMode:null,editable:null,elevation:$,enableBackground:null,end:null,event:null,exponent:$,externalResourcesRequired:null,fill:null,fillOpacity:$,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Pl,g2:Pl,glyphName:Pl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$,horizOriginX:$,horizOriginY:$,id:null,ideographic:$,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$,k:$,k1:$,k2:$,k3:$,k4:$,kernelMatrix:Zt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:$,overlineThickness:$,paintOrder:null,panose1:null,path:null,pathLength:$,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ie,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Zt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Zt,rev:Zt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Zt,requiredFeatures:Zt,requiredFonts:Zt,requiredFormats:Zt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:$,specularExponent:$,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$,strikethroughThickness:$,string:null,stroke:null,strokeDashArray:Zt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Zt,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Zt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$,underlineThickness:$,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$,values:null,vAlphabetic:$,vMathematical:$,vectorEffect:null,vHanging:$,vIdeographic:$,version:null,vertAdvY:$,vertOriginX:$,vertOriginY:$,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Hb}),Qb=Ji({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,l){return"xlink:"+l.slice(5).toLowerCase()}}),Gb=Ji({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:qb}),Fb=Ji({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,l){return"xml:"+l.slice(3).toLowerCase()}}),TE={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},AE=/[A-Z]/g,Zg=/-[a-z]/g,zE=/^data[-\w.:]+$/i;function RE(t,l){const r=gf(l);let a=l,o=Ht;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&zE.test(l)){if(l.charAt(4)==="-"){const s=l.slice(5).replace(Zg,_E);a="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=l.slice(4);if(!Zg.test(s)){let c=s.replace(AE,OE);c.charAt(0)!=="-"&&(c="-"+c),l="data"+c}}o=Vf}return new o(a,l)}function OE(t){return"-"+t.toLowerCase()}function _E(t){return t.charAt(1).toUpperCase()}const ME=Ub([Bb,EE,Qb,Gb,Fb],"html"),Xf=Ub([Bb,CE,Qb,Gb,Fb],"svg");function DE(t){return t.join(" ").trim()}var Vi={},Hc,Kg;function NE(){if(Kg)return Hc;Kg=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,l=/\n/g,r=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,m=`
13
+ `,p="/",y="*",g="",v="comment",x="declaration";function E(z,C){if(typeof z!="string")throw new TypeError("First argument must be a string");if(!z)return[];C=C||{};var B=1,j=1;function W(ue){var P=ue.match(l);P&&(B+=P.length);var N=ue.lastIndexOf(m);j=~N?ue.length-N:j+ue.length}function ee(){var ue={line:B,column:j};return function(P){return P.position=new Q(ue),ae(),P}}function Q(ue){this.start=ue,this.end={line:B,column:j},this.source=C.source}Q.prototype.content=z;function J(ue){var P=new Error(C.source+":"+B+":"+j+": "+ue);if(P.reason=ue,P.filename=C.source,P.line=B,P.column=j,P.source=z,!C.silent)throw P}function V(ue){var P=ue.exec(z);if(P){var N=P[0];return W(N),z=z.slice(N.length),P}}function ae(){V(r)}function q(ue){var P;for(ue=ue||[];P=ie();)P!==!1&&ue.push(P);return ue}function ie(){var ue=ee();if(!(p!=z.charAt(0)||y!=z.charAt(1))){for(var P=2;g!=z.charAt(P)&&(y!=z.charAt(P)||p!=z.charAt(P+1));)++P;if(P+=2,g===z.charAt(P-1))return J("End of comment missing");var N=z.slice(2,P-2);return j+=2,W(N),z=z.slice(P),j+=2,ue({type:v,comment:N})}}function te(){var ue=ee(),P=V(a);if(P){if(ie(),!V(o))return J("property missing ':'");var N=V(s),K=ue({type:x,property:A(P[0].replace(t,g)),value:N?A(N[0].replace(t,g)):g});return V(c),K}}function ye(){var ue=[];q(ue);for(var P;P=te();)P!==!1&&(ue.push(P),q(ue));return ue}return ae(),ye()}function A(z){return z?z.replace(d,g):g}return Hc=E,Hc}var Jg;function jE(){if(Jg)return Vi;Jg=1;var t=Vi&&Vi.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.default=r;const l=t(NE());function r(a,o){let s=null;if(!a||typeof a!="string")return s;const c=(0,l.default)(a),d=typeof o=="function";return c.forEach(m=>{if(m.type!=="declaration")return;const{property:p,value:y}=m;d?o(p,y,m):y&&(s=s||{},s[p]=y)}),s}return Vi}var Kr={},Pg;function LE(){if(Pg)return Kr;Pg=1,Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,l=/-([a-z])/g,r=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(p){return!p||r.test(p)||t.test(p)},c=function(p,y){return y.toUpperCase()},d=function(p,y){return"".concat(y,"-")},m=function(p,y){return y===void 0&&(y={}),s(p)?p:(p=p.toLowerCase(),y.reactCompat?p=p.replace(o,d):p=p.replace(a,d),p.replace(l,c))};return Kr.camelCase=m,Kr}var Jr,$g;function UE(){if($g)return Jr;$g=1;var t=Jr&&Jr.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},l=t(jE()),r=LE();function a(o,s){var c={};return!o||typeof o!="string"||(0,l.default)(o,function(d,m){d&&m&&(c[(0,r.camelCase)(d,s)]=m)}),c}return a.default=a,Jr=a,Jr}var BE=UE();const HE=Af(BE),Yb=Vb("end"),If=Vb("start");function Vb(t){return l;function l(r){const a=r&&r.position&&r.position[t]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function qE(t){const l=If(t),r=Yb(t);if(l&&r)return{start:l,end:r}}function ea(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?Wg(t.position):"start"in t||"end"in t?Wg(t):"line"in t||"column"in t?vf(t):""}function vf(t){return ey(t&&t.line)+":"+ey(t&&t.column)}function Wg(t){return vf(t&&t.start)+"-"+vf(t&&t.end)}function ey(t){return t&&typeof t=="number"?t:1}class St extends Error{constructor(l,r,a){super(),typeof r=="string"&&(a=r,r=void 0);let o="",s={},c=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof l=="string"?o=l:!s.cause&&l&&(c=!0,o=l.message,s.cause=l),!s.ruleId&&!s.source&&typeof a=="string"){const m=a.indexOf(":");m===-1?s.ruleId=a:(s.source=a.slice(0,m),s.ruleId=a.slice(m+1))}if(!s.place&&s.ancestors&&s.ancestors){const m=s.ancestors[s.ancestors.length-1];m&&(s.place=m.position)}const d=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=d?d.line:void 0,this.name=ea(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=c&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}St.prototype.file="";St.prototype.name="";St.prototype.reason="";St.prototype.message="";St.prototype.stack="";St.prototype.column=void 0;St.prototype.line=void 0;St.prototype.ancestors=void 0;St.prototype.cause=void 0;St.prototype.fatal=void 0;St.prototype.place=void 0;St.prototype.ruleId=void 0;St.prototype.source=void 0;const Zf={}.hasOwnProperty,QE=new Map,GE=/[A-Z]/g,FE=new Set(["table","tbody","thead","tfoot","tr"]),YE=new Set(["td","th"]),Xb="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function VE(t,l){if(!l||l.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=l.filePath||void 0;let a;if(l.development){if(typeof l.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=WE(r,l.jsxDEV)}else{if(typeof l.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof l.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=$E(r,l.jsx,l.jsxs)}const o={Fragment:l.Fragment,ancestors:[],components:l.components||{},create:a,elementAttributeNameCase:l.elementAttributeNameCase||"react",evaluater:l.createEvaluater?l.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:l.ignoreInvalidStyle||!1,passKeys:l.passKeys!==!1,passNode:l.passNode||!1,schema:l.space==="svg"?Xf:ME,stylePropertyNameCase:l.stylePropertyNameCase||"dom",tableCellAlignToStyle:l.tableCellAlignToStyle!==!1},s=Ib(o,t,void 0);return s&&typeof s!="string"?s:o.create(t,o.Fragment,{children:s||void 0},void 0)}function Ib(t,l,r){if(l.type==="element")return XE(t,l,r);if(l.type==="mdxFlowExpression"||l.type==="mdxTextExpression")return IE(t,l);if(l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement")return KE(t,l,r);if(l.type==="mdxjsEsm")return ZE(t,l);if(l.type==="root")return JE(t,l,r);if(l.type==="text")return PE(t,l)}function XE(t,l,r){const a=t.schema;let o=a;l.tagName.toLowerCase()==="svg"&&a.space==="html"&&(o=Xf,t.schema=o),t.ancestors.push(l);const s=Kb(t,l.tagName,!1),c=eC(t,l);let d=Jf(t,l);return FE.has(l.tagName)&&(d=d.filter(function(m){return typeof m=="string"?!kE(m):!0})),Zb(t,c,s,l),Kf(c,d),t.ancestors.pop(),t.schema=a,t.create(l,s,c,r)}function IE(t,l){if(l.data&&l.data.estree&&t.evaluater){const a=l.data.estree.body[0];return a.type,t.evaluater.evaluateExpression(a.expression)}oa(t,l.position)}function ZE(t,l){if(l.data&&l.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(l.data.estree);oa(t,l.position)}function KE(t,l,r){const a=t.schema;let o=a;l.name==="svg"&&a.space==="html"&&(o=Xf,t.schema=o),t.ancestors.push(l);const s=l.name===null?t.Fragment:Kb(t,l.name,!0),c=tC(t,l),d=Jf(t,l);return Zb(t,c,s,l),Kf(c,d),t.ancestors.pop(),t.schema=a,t.create(l,s,c,r)}function JE(t,l,r){const a={};return Kf(a,Jf(t,l)),t.create(l,t.Fragment,a,r)}function PE(t,l){return l.value}function Zb(t,l,r,a){typeof r!="string"&&r!==t.Fragment&&t.passNode&&(l.node=a)}function Kf(t,l){if(l.length>0){const r=l.length>1?l:l[0];r&&(t.children=r)}}function $E(t,l,r){return a;function a(o,s,c,d){const p=Array.isArray(c.children)?r:l;return d?p(s,c,d):p(s,c)}}function WE(t,l){return r;function r(a,o,s,c){const d=Array.isArray(s.children),m=If(a);return l(o,s,c,d,{columnNumber:m?m.column-1:void 0,fileName:t,lineNumber:m?m.line:void 0},void 0)}}function eC(t,l){const r={};let a,o;for(o in l.properties)if(o!=="children"&&Zf.call(l.properties,o)){const s=nC(t,o,l.properties[o]);if(s){const[c,d]=s;t.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&YE.has(l.tagName)?a=d:r[c]=d}}if(a){const s=r.style||(r.style={});s[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return r}function tC(t,l){const r={};for(const a of l.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&t.evaluater){const s=a.data.estree.body[0];s.type;const c=s.expression;c.type;const d=c.properties[0];d.type,Object.assign(r,t.evaluater.evaluateExpression(d.argument))}else oa(t,l.position);else{const o=a.name;let s;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&t.evaluater){const d=a.value.data.estree.body[0];d.type,s=t.evaluater.evaluateExpression(d.expression)}else oa(t,l.position);else s=a.value===null?!0:a.value;r[o]=s}return r}function Jf(t,l){const r=[];let a=-1;const o=t.passKeys?new Map:QE;for(;++a<l.children.length;){const s=l.children[a];let c;if(t.passKeys){const m=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(m){const p=o.get(m)||0;c=m+"-"+p,o.set(m,p+1)}}const d=Ib(t,s,c);d!==void 0&&r.push(d)}return r}function nC(t,l,r){const a=RE(t.schema,l);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?yE(r):DE(r)),a.property==="style"){let o=typeof r=="object"?r:lC(t,String(r));return t.stylePropertyNameCase==="css"&&(o=iC(o)),["style",o]}return[t.elementAttributeNameCase==="react"&&a.space?TE[a.property]||a.property:a.attribute,r]}}function lC(t,l){try{return HE(l,{reactCompat:!0})}catch(r){if(t.ignoreInvalidStyle)return{};const a=r,o=new St("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=t.filePath||void 0,o.url=Xb+"#cannot-parse-style-attribute",o}}function Kb(t,l,r){let a;if(!r)a={type:"Literal",value:l};else if(l.includes(".")){const o=l.split(".");let s=-1,c;for(;++s<o.length;){const d=Vg(o[s])?{type:"Identifier",name:o[s]}:{type:"Literal",value:o[s]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(s&&d.type==="Literal"),optional:!1}:d}a=c}else a=Vg(l)&&!/^[a-z]/.test(l)?{type:"Identifier",name:l}:{type:"Literal",value:l};if(a.type==="Literal"){const o=a.value;return Zf.call(t.components,o)?t.components[o]:o}if(t.evaluater)return t.evaluater.evaluateExpression(a);oa(t)}function oa(t,l){const r=new St("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:l,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=Xb+"#cannot-handle-mdx-estrees-without-createevaluater",r}function iC(t){const l={};let r;for(r in t)Zf.call(t,r)&&(l[rC(r)]=t[r]);return l}function rC(t){let l=t.replace(GE,aC);return l.slice(0,3)==="ms-"&&(l="-"+l),l}function aC(t){return"-"+t.toLowerCase()}const qc={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},uC={};function Pf(t,l){const r=uC,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Jb(t,a,o)}function Jb(t,l,r){if(oC(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(l&&"alt"in t&&t.alt)return t.alt;if("children"in t)return ty(t.children,l,r)}return Array.isArray(t)?ty(t,l,r):""}function ty(t,l,r){const a=[];let o=-1;for(;++o<t.length;)a[o]=Jb(t[o],l,r);return a.join("")}function oC(t){return!!(t&&typeof t=="object")}const ny=document.createElement("i");function $f(t){const l="&"+t+";";ny.innerHTML=l;const r=ny.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===l?!1:r}function Jt(t,l,r,a){const o=t.length;let s=0,c;if(l<0?l=-l>o?0:o+l:l=l>o?o:l,r=r>0?r:0,a.length<1e4)c=Array.from(a),c.unshift(l,r),t.splice(...c);else for(r&&t.splice(l,r);s<a.length;)c=a.slice(s,s+1e4),c.unshift(l,0),t.splice(...c),s+=1e4,l+=1e4}function sn(t,l){return t.length>0?(Jt(t,t.length,0,l),t):l}const ly={}.hasOwnProperty;function Pb(t){const l={};let r=-1;for(;++r<t.length;)sC(l,t[r]);return l}function sC(t,l){let r;for(r in l){const o=(ly.call(t,r)?t[r]:void 0)||(t[r]={}),s=l[r];let c;if(s)for(c in s){ly.call(o,c)||(o[c]=[]);const d=s[c];cC(o[c],Array.isArray(d)?d:d?[d]:[])}}}function cC(t,l){let r=-1;const a=[];for(;++r<l.length;)(l[r].add==="after"?t:a).push(l[r]);Jt(t,0,0,a)}function $b(t,l){const r=Number.parseInt(t,l);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function bn(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Tt=zl(/[A-Za-z]/),xt=zl(/[\dA-Za-z]/),fC=zl(/[#-'*+\--9=?A-Z^-~]/);function Pu(t){return t!==null&&(t<32||t===127)}const xf=zl(/\d/),hC=zl(/[\dA-Fa-f]/),dC=zl(/[!-/:-@[-`{-~]/);function pe(t){return t!==null&&t<-2}function Ze(t){return t!==null&&(t<0||t===32)}function Oe(t){return t===-2||t===-1||t===32}const uo=zl(new RegExp("\\p{P}|\\p{S}","u")),$l=zl(/\s/);function zl(t){return l;function l(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function Pi(t){const l=[];let r=-1,a=0,o=0;for(;++r<t.length;){const s=t.charCodeAt(r);let c="";if(s===37&&xt(t.charCodeAt(r+1))&&xt(t.charCodeAt(r+2)))o=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(c=String.fromCharCode(s));else if(s>55295&&s<57344){const d=t.charCodeAt(r+1);s<56320&&d>56319&&d<57344?(c=String.fromCharCode(s,d),o=1):c="�"}else c=String.fromCharCode(s);c&&(l.push(t.slice(a,r),encodeURIComponent(c)),a=r+o+1,c=""),o&&(r+=o,o=0)}return l.join("")+t.slice(a)}function Ne(t,l,r,a){const o=a?a-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(m){return Oe(m)?(t.enter(r),d(m)):l(m)}function d(m){return Oe(m)&&s++<o?(t.consume(m),d):(t.exit(r),l(m))}}const mC={tokenize:pC};function pC(t){const l=t.attempt(this.parser.constructs.contentInitial,a,o);let r;return l;function a(d){if(d===null){t.consume(d);return}return t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),Ne(t,l,"linePrefix")}function o(d){return t.enter("paragraph"),s(d)}function s(d){const m=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=m),r=m,c(d)}function c(d){if(d===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(d);return}return pe(d)?(t.consume(d),t.exit("chunkText"),s):(t.consume(d),c)}}const gC={tokenize:yC},iy={tokenize:bC};function yC(t){const l=this,r=[];let a=0,o,s,c;return d;function d(j){if(a<r.length){const W=r[a];return l.containerState=W[1],t.attempt(W[0].continuation,m,p)(j)}return p(j)}function m(j){if(a++,l.containerState._closeFlow){l.containerState._closeFlow=void 0,o&&B();const W=l.events.length;let ee=W,Q;for(;ee--;)if(l.events[ee][0]==="exit"&&l.events[ee][1].type==="chunkFlow"){Q=l.events[ee][1].end;break}C(a);let J=W;for(;J<l.events.length;)l.events[J][1].end={...Q},J++;return Jt(l.events,ee+1,0,l.events.slice(W)),l.events.length=J,p(j)}return d(j)}function p(j){if(a===r.length){if(!o)return v(j);if(o.currentConstruct&&o.currentConstruct.concrete)return E(j);l.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return l.containerState={},t.check(iy,y,g)(j)}function y(j){return o&&B(),C(a),v(j)}function g(j){return l.parser.lazy[l.now().line]=a!==r.length,c=l.now().offset,E(j)}function v(j){return l.containerState={},t.attempt(iy,x,E)(j)}function x(j){return a++,r.push([l.currentConstruct,l.containerState]),v(j)}function E(j){if(j===null){o&&B(),C(0),t.consume(j);return}return o=o||l.parser.flow(l.now()),t.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:s}),A(j)}function A(j){if(j===null){z(t.exit("chunkFlow"),!0),C(0),t.consume(j);return}return pe(j)?(t.consume(j),z(t.exit("chunkFlow")),a=0,l.interrupt=void 0,d):(t.consume(j),A)}function z(j,W){const ee=l.sliceStream(j);if(W&&ee.push(null),j.previous=s,s&&(s.next=j),s=j,o.defineSkip(j.start),o.write(ee),l.parser.lazy[j.start.line]){let Q=o.events.length;for(;Q--;)if(o.events[Q][1].start.offset<c&&(!o.events[Q][1].end||o.events[Q][1].end.offset>c))return;const J=l.events.length;let V=J,ae,q;for(;V--;)if(l.events[V][0]==="exit"&&l.events[V][1].type==="chunkFlow"){if(ae){q=l.events[V][1].end;break}ae=!0}for(C(a),Q=J;Q<l.events.length;)l.events[Q][1].end={...q},Q++;Jt(l.events,V+1,0,l.events.slice(J)),l.events.length=Q}}function C(j){let W=r.length;for(;W-- >j;){const ee=r[W];l.containerState=ee[1],ee[0].exit.call(l,t)}r.length=j}function B(){o.write([null]),s=void 0,o=void 0,l.containerState._closeFlow=void 0}}function bC(t,l,r){return Ne(t,t.attempt(this.parser.constructs.document,l,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ii(t){if(t===null||Ze(t)||$l(t))return 1;if(uo(t))return 2}function oo(t,l,r){const a=[];let o=-1;for(;++o<t.length;){const s=t[o].resolveAll;s&&!a.includes(s)&&(l=s(l,r),a.push(s))}return l}const Sf={name:"attention",resolveAll:vC,tokenize:xC};function vC(t,l){let r=-1,a,o,s,c,d,m,p,y;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(a=r;a--;)if(t[a][0]==="exit"&&t[a][1].type==="attentionSequence"&&t[a][1]._open&&l.sliceSerialize(t[a][1]).charCodeAt(0)===l.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[a][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[a][1].end.offset-t[a][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;m=t[a][1].end.offset-t[a][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const g={...t[a][1].end},v={...t[r][1].start};ry(g,-m),ry(v,m),c={type:m>1?"strongSequence":"emphasisSequence",start:g,end:{...t[a][1].end}},d={type:m>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:v},s={type:m>1?"strongText":"emphasisText",start:{...t[a][1].end},end:{...t[r][1].start}},o={type:m>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},t[a][1].end={...c.start},t[r][1].start={...d.end},p=[],t[a][1].end.offset-t[a][1].start.offset&&(p=sn(p,[["enter",t[a][1],l],["exit",t[a][1],l]])),p=sn(p,[["enter",o,l],["enter",c,l],["exit",c,l],["enter",s,l]]),p=sn(p,oo(l.parser.constructs.insideSpan.null,t.slice(a+1,r),l)),p=sn(p,[["exit",s,l],["enter",d,l],["exit",d,l],["exit",o,l]]),t[r][1].end.offset-t[r][1].start.offset?(y=2,p=sn(p,[["enter",t[r][1],l],["exit",t[r][1],l]])):y=0,Jt(t,a-1,r-a+3,p),r=a+p.length-y-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function xC(t,l){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,o=Ii(a);let s;return c;function c(m){return s=m,t.enter("attentionSequence"),d(m)}function d(m){if(m===s)return t.consume(m),d;const p=t.exit("attentionSequence"),y=Ii(m),g=!y||y===2&&o||r.includes(m),v=!o||o===2&&y||r.includes(a);return p._open=!!(s===42?g:g&&(o||!v)),p._close=!!(s===42?v:v&&(y||!g)),l(m)}}function ry(t,l){t.column+=l,t.offset+=l,t._bufferIndex+=l}const SC={name:"autolink",tokenize:kC};function kC(t,l,r){let a=0;return o;function o(x){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),s}function s(x){return Tt(x)?(t.consume(x),c):x===64?r(x):p(x)}function c(x){return x===43||x===45||x===46||xt(x)?(a=1,d(x)):p(x)}function d(x){return x===58?(t.consume(x),a=0,m):(x===43||x===45||x===46||xt(x))&&a++<32?(t.consume(x),d):(a=0,p(x))}function m(x){return x===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.exit("autolink"),l):x===null||x===32||x===60||Pu(x)?r(x):(t.consume(x),m)}function p(x){return x===64?(t.consume(x),y):fC(x)?(t.consume(x),p):r(x)}function y(x){return xt(x)?g(x):r(x)}function g(x){return x===46?(t.consume(x),a=0,y):x===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.exit("autolink"),l):v(x)}function v(x){if((x===45||xt(x))&&a++<63){const E=x===45?v:g;return t.consume(x),E}return r(x)}}const pa={partial:!0,tokenize:wC};function wC(t,l,r){return a;function a(s){return Oe(s)?Ne(t,o,"linePrefix")(s):o(s)}function o(s){return s===null||pe(s)?l(s):r(s)}}const Wb={continuation:{tokenize:CC},exit:TC,name:"blockQuote",tokenize:EC};function EC(t,l,r){const a=this;return o;function o(c){if(c===62){const d=a.containerState;return d.open||(t.enter("blockQuote",{_container:!0}),d.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(c),t.exit("blockQuoteMarker"),s}return r(c)}function s(c){return Oe(c)?(t.enter("blockQuotePrefixWhitespace"),t.consume(c),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),l):(t.exit("blockQuotePrefix"),l(c))}}function CC(t,l,r){const a=this;return o;function o(c){return Oe(c)?Ne(t,s,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return t.attempt(Wb,l,r)(c)}}function TC(t){t.exit("blockQuote")}const ev={name:"characterEscape",tokenize:AC};function AC(t,l,r){return a;function a(s){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(s),t.exit("escapeMarker"),o}function o(s){return dC(s)?(t.enter("characterEscapeValue"),t.consume(s),t.exit("characterEscapeValue"),t.exit("characterEscape"),l):r(s)}}const tv={name:"characterReference",tokenize:zC};function zC(t,l,r){const a=this;let o=0,s,c;return d;function d(g){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),m}function m(g){return g===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(g),t.exit("characterReferenceMarkerNumeric"),p):(t.enter("characterReferenceValue"),s=31,c=xt,y(g))}function p(g){return g===88||g===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(g),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),s=6,c=hC,y):(t.enter("characterReferenceValue"),s=7,c=xf,y(g))}function y(g){if(g===59&&o){const v=t.exit("characterReferenceValue");return c===xt&&!$f(a.sliceSerialize(v))?r(g):(t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),t.exit("characterReference"),l)}return c(g)&&o++<s?(t.consume(g),y):r(g)}}const ay={partial:!0,tokenize:OC},uy={concrete:!0,name:"codeFenced",tokenize:RC};function RC(t,l,r){const a=this,o={partial:!0,tokenize:ee};let s=0,c=0,d;return m;function m(Q){return p(Q)}function p(Q){const J=a.events[a.events.length-1];return s=J&&J[1].type==="linePrefix"?J[2].sliceSerialize(J[1],!0).length:0,d=Q,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),y(Q)}function y(Q){return Q===d?(c++,t.consume(Q),y):c<3?r(Q):(t.exit("codeFencedFenceSequence"),Oe(Q)?Ne(t,g,"whitespace")(Q):g(Q))}function g(Q){return Q===null||pe(Q)?(t.exit("codeFencedFence"),a.interrupt?l(Q):t.check(ay,A,W)(Q)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),v(Q))}function v(Q){return Q===null||pe(Q)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),g(Q)):Oe(Q)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Ne(t,x,"whitespace")(Q)):Q===96&&Q===d?r(Q):(t.consume(Q),v)}function x(Q){return Q===null||pe(Q)?g(Q):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),E(Q))}function E(Q){return Q===null||pe(Q)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),g(Q)):Q===96&&Q===d?r(Q):(t.consume(Q),E)}function A(Q){return t.attempt(o,W,z)(Q)}function z(Q){return t.enter("lineEnding"),t.consume(Q),t.exit("lineEnding"),C}function C(Q){return s>0&&Oe(Q)?Ne(t,B,"linePrefix",s+1)(Q):B(Q)}function B(Q){return Q===null||pe(Q)?t.check(ay,A,W)(Q):(t.enter("codeFlowValue"),j(Q))}function j(Q){return Q===null||pe(Q)?(t.exit("codeFlowValue"),B(Q)):(t.consume(Q),j)}function W(Q){return t.exit("codeFenced"),l(Q)}function ee(Q,J,V){let ae=0;return q;function q(P){return Q.enter("lineEnding"),Q.consume(P),Q.exit("lineEnding"),ie}function ie(P){return Q.enter("codeFencedFence"),Oe(P)?Ne(Q,te,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):te(P)}function te(P){return P===d?(Q.enter("codeFencedFenceSequence"),ye(P)):V(P)}function ye(P){return P===d?(ae++,Q.consume(P),ye):ae>=c?(Q.exit("codeFencedFenceSequence"),Oe(P)?Ne(Q,ue,"whitespace")(P):ue(P)):V(P)}function ue(P){return P===null||pe(P)?(Q.exit("codeFencedFence"),J(P)):V(P)}}}function OC(t,l,r){const a=this;return o;function o(c){return c===null?r(c):(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),s)}function s(c){return a.parser.lazy[a.now().line]?r(c):l(c)}}const Qc={name:"codeIndented",tokenize:MC},_C={partial:!0,tokenize:DC};function MC(t,l,r){const a=this;return o;function o(p){return t.enter("codeIndented"),Ne(t,s,"linePrefix",5)(p)}function s(p){const y=a.events[a.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?c(p):r(p)}function c(p){return p===null?m(p):pe(p)?t.attempt(_C,c,m)(p):(t.enter("codeFlowValue"),d(p))}function d(p){return p===null||pe(p)?(t.exit("codeFlowValue"),c(p)):(t.consume(p),d)}function m(p){return t.exit("codeIndented"),l(p)}}function DC(t,l,r){const a=this;return o;function o(c){return a.parser.lazy[a.now().line]?r(c):pe(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),o):Ne(t,s,"linePrefix",5)(c)}function s(c){const d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(c):pe(c)?o(c):r(c)}}const NC={name:"codeText",previous:LC,resolve:jC,tokenize:UC};function jC(t){let l=t.length-4,r=3,a,o;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[l][1].type==="lineEnding"||t[l][1].type==="space")){for(a=r;++a<l;)if(t[a][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[l][1].type="codeTextPadding",r+=2,l-=2;break}}for(a=r-1,l++;++a<=l;)o===void 0?a!==l&&t[a][1].type!=="lineEnding"&&(o=a):(a===l||t[a][1].type==="lineEnding")&&(t[o][1].type="codeTextData",a!==o+2&&(t[o][1].end=t[a-1][1].end,t.splice(o+2,a-o-2),l-=a-o-2,a=o+2),o=void 0);return t}function LC(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function UC(t,l,r){let a=0,o,s;return c;function c(g){return t.enter("codeText"),t.enter("codeTextSequence"),d(g)}function d(g){return g===96?(t.consume(g),a++,d):(t.exit("codeTextSequence"),m(g))}function m(g){return g===null?r(g):g===32?(t.enter("space"),t.consume(g),t.exit("space"),m):g===96?(s=t.enter("codeTextSequence"),o=0,y(g)):pe(g)?(t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),m):(t.enter("codeTextData"),p(g))}function p(g){return g===null||g===32||g===96||pe(g)?(t.exit("codeTextData"),m(g)):(t.consume(g),p)}function y(g){return g===96?(t.consume(g),o++,y):o===a?(t.exit("codeTextSequence"),t.exit("codeText"),l(g)):(s.type="codeTextData",p(g))}}class BC{constructor(l){this.left=l?[...l]:[],this.right=[]}get(l){if(l<0||l>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+l+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return l<this.left.length?this.left[l]:this.right[this.right.length-l+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(l,r){const a=r??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(l,a):l>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-l+this.left.length).reverse():this.left.slice(l).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(l,r,a){const o=r||0;this.setCursor(Math.trunc(l));const s=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return a&&Pr(this.left,a),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(l){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(l)}pushMany(l){this.setCursor(Number.POSITIVE_INFINITY),Pr(this.left,l)}unshift(l){this.setCursor(0),this.right.push(l)}unshiftMany(l){this.setCursor(0),Pr(this.right,l.reverse())}setCursor(l){if(!(l===this.left.length||l>this.left.length&&this.right.length===0||l<0&&this.left.length===0))if(l<this.left.length){const r=this.left.splice(l,Number.POSITIVE_INFINITY);Pr(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-l,Number.POSITIVE_INFINITY);Pr(this.left,r.reverse())}}}function Pr(t,l){let r=0;if(l.length<1e4)t.push(...l);else for(;r<l.length;)t.push(...l.slice(r,r+1e4)),r+=1e4}function nv(t){const l={};let r=-1,a,o,s,c,d,m,p;const y=new BC(t);for(;++r<y.length;){for(;r in l;)r=l[r];if(a=y.get(r),r&&a[1].type==="chunkFlow"&&y.get(r-1)[1].type==="listItemPrefix"&&(m=a[1]._tokenizer.events,s=0,s<m.length&&m[s][1].type==="lineEndingBlank"&&(s+=2),s<m.length&&m[s][1].type==="content"))for(;++s<m.length&&m[s][1].type!=="content";)m[s][1].type==="chunkText"&&(m[s][1]._isInFirstContentOfListItem=!0,s++);if(a[0]==="enter")a[1].contentType&&(Object.assign(l,HC(y,r)),r=l[r],p=!0);else if(a[1]._container){for(s=r,o=void 0;s--;)if(c=y.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(y.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=s);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(a[1].end={...y.get(o)[1].start},d=y.slice(o,r),d.unshift(a),y.splice(o,r-o+1,d))}}return Jt(t,0,Number.POSITIVE_INFINITY,y.slice(0)),!p}function HC(t,l){const r=t.get(l)[1],a=t.get(l)[2];let o=l-1;const s=[];let c=r._tokenizer;c||(c=a.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,m=[],p={};let y,g,v=-1,x=r,E=0,A=0;const z=[A];for(;x;){for(;t.get(++o)[1]!==x;);s.push(o),x._tokenizer||(y=a.sliceStream(x),x.next||y.push(null),g&&c.defineSkip(x.start),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(y),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=x,x=x.next}for(x=r;++v<d.length;)d[v][0]==="exit"&&d[v-1][0]==="enter"&&d[v][1].type===d[v-1][1].type&&d[v][1].start.line!==d[v][1].end.line&&(A=v+1,z.push(A),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(c.events=[],x?(x._tokenizer=void 0,x.previous=void 0):z.pop(),v=z.length;v--;){const C=d.slice(z[v],z[v+1]),B=s.pop();m.push([B,B+C.length-1]),t.splice(B,2,C)}for(m.reverse(),v=-1;++v<m.length;)p[E+m[v][0]]=E+m[v][1],E+=m[v][1]-m[v][0]-1;return p}const qC={resolve:GC,tokenize:FC},QC={partial:!0,tokenize:YC};function GC(t){return nv(t),t}function FC(t,l){let r;return a;function a(d){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),o(d)}function o(d){return d===null?s(d):pe(d)?t.check(QC,c,s)(d):(t.consume(d),o)}function s(d){return t.exit("chunkContent"),t.exit("content"),l(d)}function c(d){return t.consume(d),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}function YC(t,l,r){const a=this;return o;function o(c){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),Ne(t,s,"linePrefix")}function s(c){if(c===null||pe(c))return r(c);const d=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(c):t.interrupt(a.parser.constructs.flow,r,l)(c)}}function lv(t,l,r,a,o,s,c,d,m){const p=m||Number.POSITIVE_INFINITY;let y=0;return g;function g(C){return C===60?(t.enter(a),t.enter(o),t.enter(s),t.consume(C),t.exit(s),v):C===null||C===32||C===41||Pu(C)?r(C):(t.enter(a),t.enter(c),t.enter(d),t.enter("chunkString",{contentType:"string"}),A(C))}function v(C){return C===62?(t.enter(s),t.consume(C),t.exit(s),t.exit(o),t.exit(a),l):(t.enter(d),t.enter("chunkString",{contentType:"string"}),x(C))}function x(C){return C===62?(t.exit("chunkString"),t.exit(d),v(C)):C===null||C===60||pe(C)?r(C):(t.consume(C),C===92?E:x)}function E(C){return C===60||C===62||C===92?(t.consume(C),x):x(C)}function A(C){return!y&&(C===null||C===41||Ze(C))?(t.exit("chunkString"),t.exit(d),t.exit(c),t.exit(a),l(C)):y<p&&C===40?(t.consume(C),y++,A):C===41?(t.consume(C),y--,A):C===null||C===32||C===40||Pu(C)?r(C):(t.consume(C),C===92?z:A)}function z(C){return C===40||C===41||C===92?(t.consume(C),A):A(C)}}function iv(t,l,r,a,o,s){const c=this;let d=0,m;return p;function p(x){return t.enter(a),t.enter(o),t.consume(x),t.exit(o),t.enter(s),y}function y(x){return d>999||x===null||x===91||x===93&&!m||x===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?r(x):x===93?(t.exit(s),t.enter(o),t.consume(x),t.exit(o),t.exit(a),l):pe(x)?(t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),y):(t.enter("chunkString",{contentType:"string"}),g(x))}function g(x){return x===null||x===91||x===93||pe(x)||d++>999?(t.exit("chunkString"),y(x)):(t.consume(x),m||(m=!Oe(x)),x===92?v:g)}function v(x){return x===91||x===92||x===93?(t.consume(x),d++,g):g(x)}}function rv(t,l,r,a,o,s){let c;return d;function d(v){return v===34||v===39||v===40?(t.enter(a),t.enter(o),t.consume(v),t.exit(o),c=v===40?41:v,m):r(v)}function m(v){return v===c?(t.enter(o),t.consume(v),t.exit(o),t.exit(a),l):(t.enter(s),p(v))}function p(v){return v===c?(t.exit(s),m(c)):v===null?r(v):pe(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),Ne(t,p,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===c||v===null||pe(v)?(t.exit("chunkString"),p(v)):(t.consume(v),v===92?g:y)}function g(v){return v===c||v===92?(t.consume(v),y):y(v)}}function ta(t,l){let r;return a;function a(o){return pe(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),r=!0,a):Oe(o)?Ne(t,a,r?"linePrefix":"lineSuffix")(o):l(o)}}const VC={name:"definition",tokenize:IC},XC={partial:!0,tokenize:ZC};function IC(t,l,r){const a=this;let o;return s;function s(x){return t.enter("definition"),c(x)}function c(x){return iv.call(a,t,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function d(x){return o=bn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),x===58?(t.enter("definitionMarker"),t.consume(x),t.exit("definitionMarker"),m):r(x)}function m(x){return Ze(x)?ta(t,p)(x):p(x)}function p(x){return lv(t,y,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function y(x){return t.attempt(XC,g,g)(x)}function g(x){return Oe(x)?Ne(t,v,"whitespace")(x):v(x)}function v(x){return x===null||pe(x)?(t.exit("definition"),a.parser.defined.push(o),l(x)):r(x)}}function ZC(t,l,r){return a;function a(d){return Ze(d)?ta(t,o)(d):r(d)}function o(d){return rv(t,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function s(d){return Oe(d)?Ne(t,c,"whitespace")(d):c(d)}function c(d){return d===null||pe(d)?l(d):r(d)}}const KC={name:"hardBreakEscape",tokenize:JC};function JC(t,l,r){return a;function a(s){return t.enter("hardBreakEscape"),t.consume(s),o}function o(s){return pe(s)?(t.exit("hardBreakEscape"),l(s)):r(s)}}const PC={name:"headingAtx",resolve:$C,tokenize:WC};function $C(t,l){let r=t.length-2,a=3,o,s;return t[a][1].type==="whitespace"&&(a+=2),r-2>a&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(a===r-1||r-4>a&&t[r-2][1].type==="whitespace")&&(r-=a+1===r?2:4),r>a&&(o={type:"atxHeadingText",start:t[a][1].start,end:t[r][1].end},s={type:"chunkText",start:t[a][1].start,end:t[r][1].end,contentType:"text"},Jt(t,a,r-a+1,[["enter",o,l],["enter",s,l],["exit",s,l],["exit",o,l]])),t}function WC(t,l,r){let a=0;return o;function o(y){return t.enter("atxHeading"),s(y)}function s(y){return t.enter("atxHeadingSequence"),c(y)}function c(y){return y===35&&a++<6?(t.consume(y),c):y===null||Ze(y)?(t.exit("atxHeadingSequence"),d(y)):r(y)}function d(y){return y===35?(t.enter("atxHeadingSequence"),m(y)):y===null||pe(y)?(t.exit("atxHeading"),l(y)):Oe(y)?Ne(t,d,"whitespace")(y):(t.enter("atxHeadingText"),p(y))}function m(y){return y===35?(t.consume(y),m):(t.exit("atxHeadingSequence"),d(y))}function p(y){return y===null||y===35||Ze(y)?(t.exit("atxHeadingText"),d(y)):(t.consume(y),p)}}const e2=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],oy=["pre","script","style","textarea"],t2={concrete:!0,name:"htmlFlow",resolveTo:i2,tokenize:r2},n2={partial:!0,tokenize:u2},l2={partial:!0,tokenize:a2};function i2(t){let l=t.length;for(;l--&&!(t[l][0]==="enter"&&t[l][1].type==="htmlFlow"););return l>1&&t[l-2][1].type==="linePrefix"&&(t[l][1].start=t[l-2][1].start,t[l+1][1].start=t[l-2][1].start,t.splice(l-2,2)),t}function r2(t,l,r){const a=this;let o,s,c,d,m;return p;function p(w){return y(w)}function y(w){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(w),g}function g(w){return w===33?(t.consume(w),v):w===47?(t.consume(w),s=!0,A):w===63?(t.consume(w),o=3,a.interrupt?l:k):Tt(w)?(t.consume(w),c=String.fromCharCode(w),z):r(w)}function v(w){return w===45?(t.consume(w),o=2,x):w===91?(t.consume(w),o=5,d=0,E):Tt(w)?(t.consume(w),o=4,a.interrupt?l:k):r(w)}function x(w){return w===45?(t.consume(w),a.interrupt?l:k):r(w)}function E(w){const le="CDATA[";return w===le.charCodeAt(d++)?(t.consume(w),d===le.length?a.interrupt?l:te:E):r(w)}function A(w){return Tt(w)?(t.consume(w),c=String.fromCharCode(w),z):r(w)}function z(w){if(w===null||w===47||w===62||Ze(w)){const le=w===47,se=c.toLowerCase();return!le&&!s&&oy.includes(se)?(o=1,a.interrupt?l(w):te(w)):e2.includes(c.toLowerCase())?(o=6,le?(t.consume(w),C):a.interrupt?l(w):te(w)):(o=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(w):s?B(w):j(w))}return w===45||xt(w)?(t.consume(w),c+=String.fromCharCode(w),z):r(w)}function C(w){return w===62?(t.consume(w),a.interrupt?l:te):r(w)}function B(w){return Oe(w)?(t.consume(w),B):q(w)}function j(w){return w===47?(t.consume(w),q):w===58||w===95||Tt(w)?(t.consume(w),W):Oe(w)?(t.consume(w),j):q(w)}function W(w){return w===45||w===46||w===58||w===95||xt(w)?(t.consume(w),W):ee(w)}function ee(w){return w===61?(t.consume(w),Q):Oe(w)?(t.consume(w),ee):j(w)}function Q(w){return w===null||w===60||w===61||w===62||w===96?r(w):w===34||w===39?(t.consume(w),m=w,J):Oe(w)?(t.consume(w),Q):V(w)}function J(w){return w===m?(t.consume(w),m=null,ae):w===null||pe(w)?r(w):(t.consume(w),J)}function V(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||Ze(w)?ee(w):(t.consume(w),V)}function ae(w){return w===47||w===62||Oe(w)?j(w):r(w)}function q(w){return w===62?(t.consume(w),ie):r(w)}function ie(w){return w===null||pe(w)?te(w):Oe(w)?(t.consume(w),ie):r(w)}function te(w){return w===45&&o===2?(t.consume(w),N):w===60&&o===1?(t.consume(w),K):w===62&&o===4?(t.consume(w),R):w===63&&o===3?(t.consume(w),k):w===93&&o===5?(t.consume(w),ke):pe(w)&&(o===6||o===7)?(t.exit("htmlFlowData"),t.check(n2,Y,ye)(w)):w===null||pe(w)?(t.exit("htmlFlowData"),ye(w)):(t.consume(w),te)}function ye(w){return t.check(l2,ue,Y)(w)}function ue(w){return t.enter("lineEnding"),t.consume(w),t.exit("lineEnding"),P}function P(w){return w===null||pe(w)?ye(w):(t.enter("htmlFlowData"),te(w))}function N(w){return w===45?(t.consume(w),k):te(w)}function K(w){return w===47?(t.consume(w),c="",he):te(w)}function he(w){if(w===62){const le=c.toLowerCase();return oy.includes(le)?(t.consume(w),R):te(w)}return Tt(w)&&c.length<8?(t.consume(w),c+=String.fromCharCode(w),he):te(w)}function ke(w){return w===93?(t.consume(w),k):te(w)}function k(w){return w===62?(t.consume(w),R):w===45&&o===2?(t.consume(w),k):te(w)}function R(w){return w===null||pe(w)?(t.exit("htmlFlowData"),Y(w)):(t.consume(w),R)}function Y(w){return t.exit("htmlFlow"),l(w)}}function a2(t,l,r){const a=this;return o;function o(c){return pe(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),s):r(c)}function s(c){return a.parser.lazy[a.now().line]?r(c):l(c)}}function u2(t,l,r){return a;function a(o){return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),t.attempt(pa,l,r)}}const o2={name:"htmlText",tokenize:s2};function s2(t,l,r){const a=this;let o,s,c;return d;function d(k){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(k),m}function m(k){return k===33?(t.consume(k),p):k===47?(t.consume(k),ee):k===63?(t.consume(k),j):Tt(k)?(t.consume(k),V):r(k)}function p(k){return k===45?(t.consume(k),y):k===91?(t.consume(k),s=0,E):Tt(k)?(t.consume(k),B):r(k)}function y(k){return k===45?(t.consume(k),x):r(k)}function g(k){return k===null?r(k):k===45?(t.consume(k),v):pe(k)?(c=g,K(k)):(t.consume(k),g)}function v(k){return k===45?(t.consume(k),x):g(k)}function x(k){return k===62?N(k):k===45?v(k):g(k)}function E(k){const R="CDATA[";return k===R.charCodeAt(s++)?(t.consume(k),s===R.length?A:E):r(k)}function A(k){return k===null?r(k):k===93?(t.consume(k),z):pe(k)?(c=A,K(k)):(t.consume(k),A)}function z(k){return k===93?(t.consume(k),C):A(k)}function C(k){return k===62?N(k):k===93?(t.consume(k),C):A(k)}function B(k){return k===null||k===62?N(k):pe(k)?(c=B,K(k)):(t.consume(k),B)}function j(k){return k===null?r(k):k===63?(t.consume(k),W):pe(k)?(c=j,K(k)):(t.consume(k),j)}function W(k){return k===62?N(k):j(k)}function ee(k){return Tt(k)?(t.consume(k),Q):r(k)}function Q(k){return k===45||xt(k)?(t.consume(k),Q):J(k)}function J(k){return pe(k)?(c=J,K(k)):Oe(k)?(t.consume(k),J):N(k)}function V(k){return k===45||xt(k)?(t.consume(k),V):k===47||k===62||Ze(k)?ae(k):r(k)}function ae(k){return k===47?(t.consume(k),N):k===58||k===95||Tt(k)?(t.consume(k),q):pe(k)?(c=ae,K(k)):Oe(k)?(t.consume(k),ae):N(k)}function q(k){return k===45||k===46||k===58||k===95||xt(k)?(t.consume(k),q):ie(k)}function ie(k){return k===61?(t.consume(k),te):pe(k)?(c=ie,K(k)):Oe(k)?(t.consume(k),ie):ae(k)}function te(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(t.consume(k),o=k,ye):pe(k)?(c=te,K(k)):Oe(k)?(t.consume(k),te):(t.consume(k),ue)}function ye(k){return k===o?(t.consume(k),o=void 0,P):k===null?r(k):pe(k)?(c=ye,K(k)):(t.consume(k),ye)}function ue(k){return k===null||k===34||k===39||k===60||k===61||k===96?r(k):k===47||k===62||Ze(k)?ae(k):(t.consume(k),ue)}function P(k){return k===47||k===62||Ze(k)?ae(k):r(k)}function N(k){return k===62?(t.consume(k),t.exit("htmlTextData"),t.exit("htmlText"),l):r(k)}function K(k){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),he}function he(k){return Oe(k)?Ne(t,ke,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):ke(k)}function ke(k){return t.enter("htmlTextData"),c(k)}}const Wf={name:"labelEnd",resolveAll:d2,resolveTo:m2,tokenize:p2},c2={tokenize:g2},f2={tokenize:y2},h2={tokenize:b2};function d2(t){let l=-1;const r=[];for(;++l<t.length;){const a=t[l][1];if(r.push(t[l]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const o=a.type==="labelImage"?4:2;a.type="data",l+=o}}return t.length!==r.length&&Jt(t,0,t.length,r),t}function m2(t,l){let r=t.length,a=0,o,s,c,d;for(;r--;)if(o=t[r][1],s){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;t[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(t[r][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(s=r,o.type!=="labelLink")){a=2;break}}else o.type==="labelEnd"&&(c=r);const m={type:t[s][1].type==="labelLink"?"link":"image",start:{...t[s][1].start},end:{...t[t.length-1][1].end}},p={type:"label",start:{...t[s][1].start},end:{...t[c][1].end}},y={type:"labelText",start:{...t[s+a+2][1].end},end:{...t[c-2][1].start}};return d=[["enter",m,l],["enter",p,l]],d=sn(d,t.slice(s+1,s+a+3)),d=sn(d,[["enter",y,l]]),d=sn(d,oo(l.parser.constructs.insideSpan.null,t.slice(s+a+4,c-3),l)),d=sn(d,[["exit",y,l],t[c-2],t[c-1],["exit",p,l]]),d=sn(d,t.slice(c+1)),d=sn(d,[["exit",m,l]]),Jt(t,s,t.length,d),t}function p2(t,l,r){const a=this;let o=a.events.length,s,c;for(;o--;)if((a.events[o][1].type==="labelImage"||a.events[o][1].type==="labelLink")&&!a.events[o][1]._balanced){s=a.events[o][1];break}return d;function d(v){return s?s._inactive?g(v):(c=a.parser.defined.includes(bn(a.sliceSerialize({start:s.end,end:a.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(v),t.exit("labelMarker"),t.exit("labelEnd"),m):r(v)}function m(v){return v===40?t.attempt(c2,y,c?y:g)(v):v===91?t.attempt(f2,y,c?p:g)(v):c?y(v):g(v)}function p(v){return t.attempt(h2,y,g)(v)}function y(v){return l(v)}function g(v){return s._balanced=!0,r(v)}}function g2(t,l,r){return a;function a(g){return t.enter("resource"),t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),o}function o(g){return Ze(g)?ta(t,s)(g):s(g)}function s(g){return g===41?y(g):lv(t,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return Ze(g)?ta(t,m)(g):y(g)}function d(g){return r(g)}function m(g){return g===34||g===39||g===40?rv(t,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function p(g){return Ze(g)?ta(t,y)(g):y(g)}function y(g){return g===41?(t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),t.exit("resource"),l):r(g)}}function y2(t,l,r){const a=this;return o;function o(d){return iv.call(a,t,s,c,"reference","referenceMarker","referenceString")(d)}function s(d){return a.parser.defined.includes(bn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?l(d):r(d)}function c(d){return r(d)}}function b2(t,l,r){return a;function a(s){return t.enter("reference"),t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),o}function o(s){return s===93?(t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),t.exit("reference"),l):r(s)}}const v2={name:"labelStartImage",resolveAll:Wf.resolveAll,tokenize:x2};function x2(t,l,r){const a=this;return o;function o(d){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(d),t.exit("labelImageMarker"),s}function s(d){return d===91?(t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelImage"),c):r(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(d):l(d)}}const S2={name:"labelStartLink",resolveAll:Wf.resolveAll,tokenize:k2};function k2(t,l,r){const a=this;return o;function o(c){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelLink"),s}function s(c){return c===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(c):l(c)}}const Gc={name:"lineEnding",tokenize:w2};function w2(t,l){return r;function r(a){return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),Ne(t,l,"linePrefix")}}const Xu={name:"thematicBreak",tokenize:E2};function E2(t,l,r){let a=0,o;return s;function s(p){return t.enter("thematicBreak"),c(p)}function c(p){return o=p,d(p)}function d(p){return p===o?(t.enter("thematicBreakSequence"),m(p)):a>=3&&(p===null||pe(p))?(t.exit("thematicBreak"),l(p)):r(p)}function m(p){return p===o?(t.consume(p),a++,m):(t.exit("thematicBreakSequence"),Oe(p)?Ne(t,d,"whitespace")(p):d(p))}}const Ut={continuation:{tokenize:z2},exit:O2,name:"list",tokenize:A2},C2={partial:!0,tokenize:_2},T2={partial:!0,tokenize:R2};function A2(t,l,r){const a=this,o=a.events[a.events.length-1];let s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return d;function d(x){const E=a.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!a.containerState.marker||x===a.containerState.marker:xf(x)){if(a.containerState.type||(a.containerState.type=E,t.enter(E,{_container:!0})),E==="listUnordered")return t.enter("listItemPrefix"),x===42||x===45?t.check(Xu,r,p)(x):p(x);if(!a.interrupt||x===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),m(x)}return r(x)}function m(x){return xf(x)&&++c<10?(t.consume(x),m):(!a.interrupt||c<2)&&(a.containerState.marker?x===a.containerState.marker:x===41||x===46)?(t.exit("listItemValue"),p(x)):r(x)}function p(x){return t.enter("listItemMarker"),t.consume(x),t.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||x,t.check(pa,a.interrupt?r:y,t.attempt(C2,v,g))}function y(x){return a.containerState.initialBlankLine=!0,s++,v(x)}function g(x){return Oe(x)?(t.enter("listItemPrefixWhitespace"),t.consume(x),t.exit("listItemPrefixWhitespace"),v):r(x)}function v(x){return a.containerState.size=s+a.sliceSerialize(t.exit("listItemPrefix"),!0).length,l(x)}}function z2(t,l,r){const a=this;return a.containerState._closeFlow=void 0,t.check(pa,o,s);function o(d){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,Ne(t,l,"listItemIndent",a.containerState.size+1)(d)}function s(d){return a.containerState.furtherBlankLines||!Oe(d)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(d)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,t.attempt(T2,l,c)(d))}function c(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,Ne(t,t.attempt(Ut,l,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function R2(t,l,r){const a=this;return Ne(t,o,"listItemIndent",a.containerState.size+1);function o(s){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?l(s):r(s)}}function O2(t){t.exit(this.containerState.type)}function _2(t,l,r){const a=this;return Ne(t,o,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){const c=a.events[a.events.length-1];return!Oe(s)&&c&&c[1].type==="listItemPrefixWhitespace"?l(s):r(s)}}const sy={name:"setextUnderline",resolveTo:M2,tokenize:D2};function M2(t,l){let r=t.length,a,o,s;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){a=r;break}t[r][1].type==="paragraph"&&(o=r)}else t[r][1].type==="content"&&t.splice(r,1),!s&&t[r][1].type==="definition"&&(s=r);const c={type:"setextHeading",start:{...t[a][1].start},end:{...t[t.length-1][1].end}};return t[o][1].type="setextHeadingText",s?(t.splice(o,0,["enter",c,l]),t.splice(s+1,0,["exit",t[a][1],l]),t[a][1].end={...t[s][1].end}):t[a][1]=c,t.push(["exit",c,l]),t}function D2(t,l,r){const a=this;let o;return s;function s(p){let y=a.events.length,g;for(;y--;)if(a.events[y][1].type!=="lineEnding"&&a.events[y][1].type!=="linePrefix"&&a.events[y][1].type!=="content"){g=a.events[y][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||g)?(t.enter("setextHeadingLine"),o=p,c(p)):r(p)}function c(p){return t.enter("setextHeadingLineSequence"),d(p)}function d(p){return p===o?(t.consume(p),d):(t.exit("setextHeadingLineSequence"),Oe(p)?Ne(t,m,"lineSuffix")(p):m(p))}function m(p){return p===null||pe(p)?(t.exit("setextHeadingLine"),l(p)):r(p)}}const N2={tokenize:j2};function j2(t){const l=this,r=t.attempt(pa,a,t.attempt(this.parser.constructs.flowInitial,o,Ne(t,t.attempt(this.parser.constructs.flow,o,t.attempt(qC,o)),"linePrefix")));return r;function a(s){if(s===null){t.consume(s);return}return t.enter("lineEndingBlank"),t.consume(s),t.exit("lineEndingBlank"),l.currentConstruct=void 0,r}function o(s){if(s===null){t.consume(s);return}return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),l.currentConstruct=void 0,r}}const L2={resolveAll:uv()},U2=av("string"),B2=av("text");function av(t){return{resolveAll:uv(t==="text"?H2:void 0),tokenize:l};function l(r){const a=this,o=this.parser.constructs[t],s=r.attempt(o,c,d);return c;function c(y){return p(y)?s(y):d(y)}function d(y){if(y===null){r.consume(y);return}return r.enter("data"),r.consume(y),m}function m(y){return p(y)?(r.exit("data"),s(y)):(r.consume(y),m)}function p(y){if(y===null)return!0;const g=o[y];let v=-1;if(g)for(;++v<g.length;){const x=g[v];if(!x.previous||x.previous.call(a,a.previous))return!0}return!1}}}function uv(t){return l;function l(r,a){let o=-1,s;for(;++o<=r.length;)s===void 0?r[o]&&r[o][1].type==="data"&&(s=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==s+2&&(r[s][1].end=r[o-1][1].end,r.splice(s+2,o-s-2),o=s+2),s=void 0);return t?t(r,a):r}}function H2(t,l){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){const a=t[r-1][1],o=l.sliceStream(a);let s=o.length,c=-1,d=0,m;for(;s--;){const p=o[s];if(typeof p=="string"){for(c=p.length;p.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(p===-2)m=!0,d++;else if(p!==-1){s++;break}}if(l._contentTypeTextTrailing&&r===t.length&&(d=0),d){const p={type:r===t.length||m||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?c:a.start._bufferIndex+c,_index:a.start._index+s,line:a.end.line,column:a.end.column-d,offset:a.end.offset-d},end:{...a.end}};a.end={...p.start},a.start.offset===a.end.offset?Object.assign(a,p):(t.splice(r,0,["enter",p,l],["exit",p,l]),r+=2)}r++}return t}const q2={42:Ut,43:Ut,45:Ut,48:Ut,49:Ut,50:Ut,51:Ut,52:Ut,53:Ut,54:Ut,55:Ut,56:Ut,57:Ut,62:Wb},Q2={91:VC},G2={[-2]:Qc,[-1]:Qc,32:Qc},F2={35:PC,42:Xu,45:[sy,Xu],60:t2,61:sy,95:Xu,96:uy,126:uy},Y2={38:tv,92:ev},V2={[-5]:Gc,[-4]:Gc,[-3]:Gc,33:v2,38:tv,42:Sf,60:[SC,o2],91:S2,92:[KC,ev],93:Wf,95:Sf,96:NC},X2={null:[Sf,L2]},I2={null:[42,95]},Z2={null:[]},K2=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:I2,contentInitial:Q2,disable:Z2,document:q2,flow:F2,flowInitial:G2,insideSpan:X2,string:Y2,text:V2},Symbol.toStringTag,{value:"Module"}));function J2(t,l,r){let a={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const o={},s=[];let c=[],d=[];const m={attempt:J(ee),check:J(Q),consume:B,enter:j,exit:W,interrupt:J(Q,{interrupt:!0})},p={code:null,containerState:{},defineSkip:A,events:[],now:E,parser:t,previous:null,sliceSerialize:v,sliceStream:x,write:g};let y=l.tokenize.call(p,m);return l.resolveAll&&s.push(l),p;function g(ie){return c=sn(c,ie),z(),c[c.length-1]!==null?[]:(V(l,0),p.events=oo(s,p.events,p),p.events)}function v(ie,te){return $2(x(ie),te)}function x(ie){return P2(c,ie)}function E(){const{_bufferIndex:ie,_index:te,line:ye,column:ue,offset:P}=a;return{_bufferIndex:ie,_index:te,line:ye,column:ue,offset:P}}function A(ie){o[ie.line]=ie.column,q()}function z(){let ie;for(;a._index<c.length;){const te=c[a._index];if(typeof te=="string")for(ie=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===ie&&a._bufferIndex<te.length;)C(te.charCodeAt(a._bufferIndex));else C(te)}}function C(ie){y=y(ie)}function B(ie){pe(ie)?(a.line++,a.column=1,a.offset+=ie===-3?2:1,q()):ie!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===c[a._index].length&&(a._bufferIndex=-1,a._index++)),p.previous=ie}function j(ie,te){const ye=te||{};return ye.type=ie,ye.start=E(),p.events.push(["enter",ye,p]),d.push(ye),ye}function W(ie){const te=d.pop();return te.end=E(),p.events.push(["exit",te,p]),te}function ee(ie,te){V(ie,te.from)}function Q(ie,te){te.restore()}function J(ie,te){return ye;function ye(ue,P,N){let K,he,ke,k;return Array.isArray(ue)?Y(ue):"tokenize"in ue?Y([ue]):R(ue);function R(re){return Ee;function Ee(Ye){const ve=Ye!==null&&re[Ye],kt=Ye!==null&&re.null,At=[...Array.isArray(ve)?ve:ve?[ve]:[],...Array.isArray(kt)?kt:kt?[kt]:[]];return Y(At)(Ye)}}function Y(re){return K=re,he=0,re.length===0?N:w(re[he])}function w(re){return Ee;function Ee(Ye){return k=ae(),ke=re,re.partial||(p.currentConstruct=re),re.name&&p.parser.constructs.disable.null.includes(re.name)?se():re.tokenize.call(te?Object.assign(Object.create(p),te):p,m,le,se)(Ye)}}function le(re){return ie(ke,k),P}function se(re){return k.restore(),++he<K.length?w(K[he]):N}}}function V(ie,te){ie.resolveAll&&!s.includes(ie)&&s.push(ie),ie.resolve&&Jt(p.events,te,p.events.length-te,ie.resolve(p.events.slice(te),p)),ie.resolveTo&&(p.events=ie.resolveTo(p.events,p))}function ae(){const ie=E(),te=p.previous,ye=p.currentConstruct,ue=p.events.length,P=Array.from(d);return{from:ue,restore:N};function N(){a=ie,p.previous=te,p.currentConstruct=ye,p.events.length=ue,d=P,q()}}function q(){a.line in o&&a.column<2&&(a.column=o[a.line],a.offset+=o[a.line]-1)}}function P2(t,l){const r=l.start._index,a=l.start._bufferIndex,o=l.end._index,s=l.end._bufferIndex;let c;if(r===o)c=[t[r].slice(a,s)];else{if(c=t.slice(r,o),a>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(a):c.shift()}s>0&&c.push(t[o].slice(0,s))}return c}function $2(t,l){let r=-1;const a=[];let o;for(;++r<t.length;){const s=t[r];let c;if(typeof s=="string")c=s;else switch(s){case-5:{c="\r";break}case-4:{c=`
14
+ `;break}case-3:{c=`\r
15
+ `;break}case-2:{c=l?" ":" ";break}case-1:{if(!l&&o)continue;c=" ";break}default:c=String.fromCharCode(s)}o=s===-2,a.push(c)}return a.join("")}function W2(t){const a={constructs:Pb([K2,...(t||{}).extensions||[]]),content:o(mC),defined:[],document:o(gC),flow:o(N2),lazy:{},string:o(U2),text:o(B2)};return a;function o(s){return c;function c(d){return J2(a,s,d)}}}function eT(t){for(;!nv(t););return t}const cy=/[\0\t\n\r]/g;function tT(){let t=1,l="",r=!0,a;return o;function o(s,c,d){const m=[];let p,y,g,v,x;for(s=l+(typeof s=="string"?s.toString():new TextDecoder(c||void 0).decode(s)),g=0,l="",r&&(s.charCodeAt(0)===65279&&g++,r=void 0);g<s.length;){if(cy.lastIndex=g,p=cy.exec(s),v=p&&p.index!==void 0?p.index:s.length,x=s.charCodeAt(v),!p){l=s.slice(g);break}if(x===10&&g===v&&a)m.push(-3),a=void 0;else switch(a&&(m.push(-5),a=void 0),g<v&&(m.push(s.slice(g,v)),t+=v-g),x){case 0:{m.push(65533),t++;break}case 9:{for(y=Math.ceil(t/4)*4,m.push(-2);t++<y;)m.push(-1);break}case 10:{m.push(-4),t=1;break}default:a=!0,t=1}g=v+1}return d&&(a&&m.push(-5),l&&m.push(l),m.push(null)),m}}const nT=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function lT(t){return t.replace(nT,iT)}function iT(t,l,r){if(l)return l;if(r.charCodeAt(0)===35){const o=r.charCodeAt(1),s=o===120||o===88;return $b(r.slice(s?2:1),s?16:10)}return $f(r)||t}const ov={}.hasOwnProperty;function rT(t,l,r){return l&&typeof l=="object"&&(r=l,l=void 0),aT(r)(eT(W2(r).document().write(tT()(t,l,!0))))}function aT(t){const l={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ri),autolinkProtocol:ae,autolinkEmail:ae,atxHeading:s(li),blockQuote:s(kt),characterEscape:ae,characterReference:ae,codeFenced:s(At),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(At,c),codeText:s(Sn,c),codeTextData:ae,data:ae,codeFlowValue:ae,definition:s($n),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(zt),hardBreakEscape:s(ii),hardBreakTrailing:s(ii),htmlFlow:s(ya,c),htmlFlowData:ae,htmlText:s(ya,c),htmlTextData:ae,image:s(ba),label:c,link:s(ri),listItem:s($i),listItemValue:v,listOrdered:s(ai,g),listUnordered:s(ai),paragraph:s(ho),reference:w,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(li),strong:s(mo),thematicBreak:s(po)},exit:{atxHeading:m(),atxHeadingSequence:ee,autolink:m(),autolinkEmail:ve,autolinkProtocol:Ye,blockQuote:m(),characterEscapeValue:q,characterReferenceMarkerHexadecimal:se,characterReferenceMarkerNumeric:se,characterReferenceValue:re,characterReference:Ee,codeFenced:m(z),codeFencedFence:A,codeFencedFenceInfo:x,codeFencedFenceMeta:E,codeFlowValue:q,codeIndented:m(C),codeText:m(P),codeTextData:q,data:q,definition:m(),definitionDestinationString:W,definitionLabelString:B,definitionTitleString:j,emphasis:m(),hardBreakEscape:m(te),hardBreakTrailing:m(te),htmlFlow:m(ye),htmlFlowData:q,htmlText:m(ue),htmlTextData:q,image:m(K),label:ke,labelText:he,lineEnding:ie,link:m(N),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:le,resourceDestinationString:k,resourceTitleString:R,resource:Y,setextHeading:m(V),setextHeadingLineSequence:J,setextHeadingText:Q,strong:m(),thematicBreak:m()}};sv(l,(t||{}).mdastExtensions||[]);const r={};return a;function a(X){let ne={type:"root",children:[]};const be={stack:[ne],tokenStack:[],config:l,enter:d,exit:p,buffer:c,resume:y,data:r},Ae=[];let Be=-1;for(;++Be<X.length;)if(X[Be][1].type==="listOrdered"||X[Be][1].type==="listUnordered")if(X[Be][0]==="enter")Ae.push(Be);else{const qt=Ae.pop();Be=o(X,qt,Be)}for(Be=-1;++Be<X.length;){const qt=l[X[Be][0]];ov.call(qt,X[Be][1].type)&&qt[X[Be][1].type].call(Object.assign({sliceSerialize:X[Be][2].sliceSerialize},be),X[Be][1])}if(be.tokenStack.length>0){const qt=be.tokenStack[be.tokenStack.length-1];(qt[1]||fy).call(be,void 0,qt[0])}for(ne.position={start:Cl(X.length>0?X[0][1].start:{line:1,column:1,offset:0}),end:Cl(X.length>0?X[X.length-2][1].end:{line:1,column:1,offset:0})},Be=-1;++Be<l.transforms.length;)ne=l.transforms[Be](ne)||ne;return ne}function o(X,ne,be){let Ae=ne-1,Be=-1,qt=!1,Rn,Et,ot,Rt;for(;++Ae<=be;){const Ve=X[Ae];switch(Ve[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ve[0]==="enter"?Be++:Be--,Rt=void 0;break}case"lineEndingBlank":{Ve[0]==="enter"&&(Rn&&!Rt&&!Be&&!ot&&(ot=Ae),Rt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Rt=void 0}if(!Be&&Ve[0]==="enter"&&Ve[1].type==="listItemPrefix"||Be===-1&&Ve[0]==="exit"&&(Ve[1].type==="listUnordered"||Ve[1].type==="listOrdered")){if(Rn){let Wn=Ae;for(Et=void 0;Wn--;){const dn=X[Wn];if(dn[1].type==="lineEnding"||dn[1].type==="lineEndingBlank"){if(dn[0]==="exit")continue;Et&&(X[Et][1].type="lineEndingBlank",qt=!0),dn[1].type="lineEnding",Et=Wn}else if(!(dn[1].type==="linePrefix"||dn[1].type==="blockQuotePrefix"||dn[1].type==="blockQuotePrefixWhitespace"||dn[1].type==="blockQuoteMarker"||dn[1].type==="listItemIndent"))break}ot&&(!Et||ot<Et)&&(Rn._spread=!0),Rn.end=Object.assign({},Et?X[Et][1].start:Ve[1].end),X.splice(Et||Ae,0,["exit",Rn,Ve[2]]),Ae++,be++}if(Ve[1].type==="listItemPrefix"){const Wn={type:"listItem",_spread:!1,start:Object.assign({},Ve[1].start),end:void 0};Rn=Wn,X.splice(Ae,0,["enter",Wn,Ve[2]]),Ae++,be++,ot=void 0,Rt=!0}}}return X[ne][1]._spread=qt,be}function s(X,ne){return be;function be(Ae){d.call(this,X(Ae),Ae),ne&&ne.call(this,Ae)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(X,ne,be){this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push([ne,be||void 0]),X.position={start:Cl(ne.start),end:void 0}}function m(X){return ne;function ne(be){X&&X.call(this,be),p.call(this,be)}}function p(X,ne){const be=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==X.type&&(ne?ne.call(this,X,Ae[0]):(Ae[1]||fy).call(this,X,Ae[0]));else throw new Error("Cannot close `"+X.type+"` ("+ea({start:X.start,end:X.end})+"): it’s not open");be.position.end=Cl(X.end)}function y(){return Pf(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(X){if(this.data.expectingFirstListItemValue){const ne=this.stack[this.stack.length-2];ne.start=Number.parseInt(this.sliceSerialize(X),10),this.data.expectingFirstListItemValue=void 0}}function x(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.lang=X}function E(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.meta=X}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function z(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function C(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.value=X.replace(/(\r?\n|\r)$/g,"")}function B(X){const ne=this.resume(),be=this.stack[this.stack.length-1];be.label=ne,be.identifier=bn(this.sliceSerialize(X)).toLowerCase()}function j(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.title=X}function W(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.url=X}function ee(X){const ne=this.stack[this.stack.length-1];if(!ne.depth){const be=this.sliceSerialize(X).length;ne.depth=be}}function Q(){this.data.setextHeadingSlurpLineEnding=!0}function J(X){const ne=this.stack[this.stack.length-1];ne.depth=this.sliceSerialize(X).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function ae(X){const be=this.stack[this.stack.length-1].children;let Ae=be[be.length-1];(!Ae||Ae.type!=="text")&&(Ae=wt(),Ae.position={start:Cl(X.start),end:void 0},be.push(Ae)),this.stack.push(Ae)}function q(X){const ne=this.stack.pop();ne.value+=this.sliceSerialize(X),ne.position.end=Cl(X.end)}function ie(X){const ne=this.stack[this.stack.length-1];if(this.data.atHardBreak){const be=ne.children[ne.children.length-1];be.position.end=Cl(X.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&l.canContainEols.includes(ne.type)&&(ae.call(this,X),q.call(this,X))}function te(){this.data.atHardBreak=!0}function ye(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.value=X}function ue(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.value=X}function P(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.value=X}function N(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=ne,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function K(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=ne,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function he(X){const ne=this.sliceSerialize(X),be=this.stack[this.stack.length-2];be.label=lT(ne),be.identifier=bn(ne).toLowerCase()}function ke(){const X=this.stack[this.stack.length-1],ne=this.resume(),be=this.stack[this.stack.length-1];if(this.data.inReference=!0,be.type==="link"){const Ae=X.children;be.children=Ae}else be.alt=ne}function k(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.url=X}function R(){const X=this.resume(),ne=this.stack[this.stack.length-1];ne.title=X}function Y(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function le(X){const ne=this.resume(),be=this.stack[this.stack.length-1];be.label=ne,be.identifier=bn(this.sliceSerialize(X)).toLowerCase(),this.data.referenceType="full"}function se(X){this.data.characterReferenceType=X.type}function re(X){const ne=this.sliceSerialize(X),be=this.data.characterReferenceType;let Ae;be?(Ae=$b(ne,be==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=$f(ne);const Be=this.stack[this.stack.length-1];Be.value+=Ae}function Ee(X){const ne=this.stack.pop();ne.position.end=Cl(X.end)}function Ye(X){q.call(this,X);const ne=this.stack[this.stack.length-1];ne.url=this.sliceSerialize(X)}function ve(X){q.call(this,X);const ne=this.stack[this.stack.length-1];ne.url="mailto:"+this.sliceSerialize(X)}function kt(){return{type:"blockquote",children:[]}}function At(){return{type:"code",lang:null,meta:null,value:""}}function Sn(){return{type:"inlineCode",value:""}}function $n(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function zt(){return{type:"emphasis",children:[]}}function li(){return{type:"heading",depth:0,children:[]}}function ii(){return{type:"break"}}function ya(){return{type:"html",value:""}}function ba(){return{type:"image",title:null,url:"",alt:null}}function ri(){return{type:"link",title:null,url:"",children:[]}}function ai(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function $i(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function ho(){return{type:"paragraph",children:[]}}function mo(){return{type:"strong",children:[]}}function wt(){return{type:"text",value:""}}function po(){return{type:"thematicBreak"}}}function Cl(t){return{line:t.line,column:t.column,offset:t.offset}}function sv(t,l){let r=-1;for(;++r<l.length;){const a=l[r];Array.isArray(a)?sv(t,a):uT(t,a)}}function uT(t,l){let r;for(r in l)if(ov.call(l,r))switch(r){case"canContainEols":{const a=l[r];a&&t[r].push(...a);break}case"transforms":{const a=l[r];a&&t[r].push(...a);break}case"enter":case"exit":{const a=l[r];a&&Object.assign(t[r],a);break}}}function fy(t,l){throw t?new Error("Cannot close `"+t.type+"` ("+ea({start:t.start,end:t.end})+"): a different token (`"+l.type+"`, "+ea({start:l.start,end:l.end})+") is open"):new Error("Cannot close document, a token (`"+l.type+"`, "+ea({start:l.start,end:l.end})+") is still open")}function oT(t){const l=this;l.parser=r;function r(a){return rT(a,{...l.data("settings"),...t,extensions:l.data("micromarkExtensions")||[],mdastExtensions:l.data("fromMarkdownExtensions")||[]})}}function sT(t,l){const r={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(l),!0)};return t.patch(l,r),t.applyData(l,r)}function cT(t,l){const r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(l,r),[t.applyData(l,r),{type:"text",value:`
16
+ `}]}function fT(t,l){const r=l.value?l.value+`
17
+ `:"",a={},o=l.lang?l.lang.split(/\s+/):[];o.length>0&&(a.className=["language-"+o[0]]);let s={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return l.meta&&(s.data={meta:l.meta}),t.patch(l,s),s=t.applyData(l,s),s={type:"element",tagName:"pre",properties:{},children:[s]},t.patch(l,s),s}function hT(t,l){const r={type:"element",tagName:"del",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function dT(t,l){const r={type:"element",tagName:"em",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function mT(t,l){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",a=String(l.identifier).toUpperCase(),o=Pi(a.toLowerCase()),s=t.footnoteOrder.indexOf(a);let c,d=t.footnoteCounts.get(a);d===void 0?(d=0,t.footnoteOrder.push(a),c=t.footnoteOrder.length):c=s+1,d+=1,t.footnoteCounts.set(a,d);const m={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};t.patch(l,m);const p={type:"element",tagName:"sup",properties:{},children:[m]};return t.patch(l,p),t.applyData(l,p)}function pT(t,l){const r={type:"element",tagName:"h"+l.depth,properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function gT(t,l){if(t.options.allowDangerousHtml){const r={type:"raw",value:l.value};return t.patch(l,r),t.applyData(l,r)}}function cv(t,l){const r=l.referenceType;let a="]";if(r==="collapsed"?a+="[]":r==="full"&&(a+="["+(l.label||l.identifier)+"]"),l.type==="imageReference")return[{type:"text",value:"!["+l.alt+a}];const o=t.all(l),s=o[0];s&&s.type==="text"?s.value="["+s.value:o.unshift({type:"text",value:"["});const c=o[o.length-1];return c&&c.type==="text"?c.value+=a:o.push({type:"text",value:a}),o}function yT(t,l){const r=String(l.identifier).toUpperCase(),a=t.definitionById.get(r);if(!a)return cv(t,l);const o={src:Pi(a.url||""),alt:l.alt};a.title!==null&&a.title!==void 0&&(o.title=a.title);const s={type:"element",tagName:"img",properties:o,children:[]};return t.patch(l,s),t.applyData(l,s)}function bT(t,l){const r={src:Pi(l.url)};l.alt!==null&&l.alt!==void 0&&(r.alt=l.alt),l.title!==null&&l.title!==void 0&&(r.title=l.title);const a={type:"element",tagName:"img",properties:r,children:[]};return t.patch(l,a),t.applyData(l,a)}function vT(t,l){const r={type:"text",value:l.value.replace(/\r?\n|\r/g," ")};t.patch(l,r);const a={type:"element",tagName:"code",properties:{},children:[r]};return t.patch(l,a),t.applyData(l,a)}function xT(t,l){const r=String(l.identifier).toUpperCase(),a=t.definitionById.get(r);if(!a)return cv(t,l);const o={href:Pi(a.url||"")};a.title!==null&&a.title!==void 0&&(o.title=a.title);const s={type:"element",tagName:"a",properties:o,children:t.all(l)};return t.patch(l,s),t.applyData(l,s)}function ST(t,l){const r={href:Pi(l.url)};l.title!==null&&l.title!==void 0&&(r.title=l.title);const a={type:"element",tagName:"a",properties:r,children:t.all(l)};return t.patch(l,a),t.applyData(l,a)}function kT(t,l,r){const a=t.all(l),o=r?wT(r):fv(l),s={},c=[];if(typeof l.checked=="boolean"){const y=a[0];let g;y&&y.type==="element"&&y.tagName==="p"?g=y:(g={type:"element",tagName:"p",properties:{},children:[]},a.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:l.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let d=-1;for(;++d<a.length;){const y=a[d];(o||d!==0||y.type!=="element"||y.tagName!=="p")&&c.push({type:"text",value:`
18
+ `}),y.type==="element"&&y.tagName==="p"&&!o?c.push(...y.children):c.push(y)}const m=a[a.length-1];m&&(o||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
19
+ `});const p={type:"element",tagName:"li",properties:s,children:c};return t.patch(l,p),t.applyData(l,p)}function wT(t){let l=!1;if(t.type==="list"){l=t.spread||!1;const r=t.children;let a=-1;for(;!l&&++a<r.length;)l=fv(r[a])}return l}function fv(t){const l=t.spread;return l??t.children.length>1}function ET(t,l){const r={},a=t.all(l);let o=-1;for(typeof l.start=="number"&&l.start!==1&&(r.start=l.start);++o<a.length;){const c=a[o];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const s={type:"element",tagName:l.ordered?"ol":"ul",properties:r,children:t.wrap(a,!0)};return t.patch(l,s),t.applyData(l,s)}function CT(t,l){const r={type:"element",tagName:"p",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function TT(t,l){const r={type:"root",children:t.wrap(t.all(l))};return t.patch(l,r),t.applyData(l,r)}function AT(t,l){const r={type:"element",tagName:"strong",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function zT(t,l){const r=t.all(l),a=r.shift(),o=[];if(a){const c={type:"element",tagName:"thead",properties:{},children:t.wrap([a],!0)};t.patch(l.children[0],c),o.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:t.wrap(r,!0)},d=If(l.children[1]),m=Yb(l.children[l.children.length-1]);d&&m&&(c.position={start:d,end:m}),o.push(c)}const s={type:"element",tagName:"table",properties:{},children:t.wrap(o,!0)};return t.patch(l,s),t.applyData(l,s)}function RT(t,l,r){const a=r?r.children:void 0,s=(a?a.indexOf(l):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,d=c?c.length:l.children.length;let m=-1;const p=[];for(;++m<d;){const g=l.children[m],v={},x=c?c[m]:void 0;x&&(v.align=x);let E={type:"element",tagName:s,properties:v,children:[]};g&&(E.children=t.all(g),t.patch(g,E),E=t.applyData(g,E)),p.push(E)}const y={type:"element",tagName:"tr",properties:{},children:t.wrap(p,!0)};return t.patch(l,y),t.applyData(l,y)}function OT(t,l){const r={type:"element",tagName:"td",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}const hy=9,dy=32;function _T(t){const l=String(t),r=/\r?\n|\r/g;let a=r.exec(l),o=0;const s=[];for(;a;)s.push(my(l.slice(o,a.index),o>0,!0),a[0]),o=a.index+a[0].length,a=r.exec(l);return s.push(my(l.slice(o),o>0,!1)),s.join("")}function my(t,l,r){let a=0,o=t.length;if(l){let s=t.codePointAt(a);for(;s===hy||s===dy;)a++,s=t.codePointAt(a)}if(r){let s=t.codePointAt(o-1);for(;s===hy||s===dy;)o--,s=t.codePointAt(o-1)}return o>a?t.slice(a,o):""}function MT(t,l){const r={type:"text",value:_T(String(l.value))};return t.patch(l,r),t.applyData(l,r)}function DT(t,l){const r={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(l,r),t.applyData(l,r)}const NT={blockquote:sT,break:cT,code:fT,delete:hT,emphasis:dT,footnoteReference:mT,heading:pT,html:gT,imageReference:yT,image:bT,inlineCode:vT,linkReference:xT,link:ST,listItem:kT,list:ET,paragraph:CT,root:TT,strong:AT,table:zT,tableCell:OT,tableRow:RT,text:MT,thematicBreak:DT,toml:qu,yaml:qu,definition:qu,footnoteDefinition:qu};function qu(){}const hv=-1,so=0,na=1,$u=2,eh=3,th=4,nh=5,lh=6,dv=7,mv=8,pv=typeof self=="object"?self:globalThis,py=(t,l)=>{switch(t){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+t)}return new pv[t](l)},jT=(t,l)=>{const r=(o,s)=>(t.set(s,o),o),a=o=>{if(t.has(o))return t.get(o);const[s,c]=l[o];switch(s){case so:case hv:return r(c,o);case na:{const d=r([],o);for(const m of c)d.push(a(m));return d}case $u:{const d=r({},o);for(const[m,p]of c)d[a(m)]=a(p);return d}case eh:return r(new Date(c),o);case th:{const{source:d,flags:m}=c;return r(new RegExp(d,m),o)}case nh:{const d=r(new Map,o);for(const[m,p]of c)d.set(a(m),a(p));return d}case lh:{const d=r(new Set,o);for(const m of c)d.add(a(m));return d}case dv:{const{name:d,message:m}=c;return r(typeof pv[d]=="function"?py(d,m):new Error(m),o)}case mv:return r(BigInt(c),o);case"BigInt":return r(Object(BigInt(c)),o);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return r(new DataView(d),c)}}return r(py(s,c),o)};return a},gy=t=>jT(new Map,t)(0),Kl="",{toString:LT}={},{keys:UT}=Object,$r=t=>{const l=typeof t;if(l!=="object"||!t)return[so,l];const r=LT.call(t).slice(8,-1);switch(r){case"Array":return[na,Kl];case"Object":return[$u,Kl];case"Date":return[eh,Kl];case"RegExp":return[th,Kl];case"Map":return[nh,Kl];case"Set":return[lh,Kl];case"DataView":return[na,r]}return r.includes("Array")?[na,r]:t instanceof Error?[dv,t.name||"Error"]:[$u,r]},Qu=([t,l])=>t===so&&(l==="function"||l==="symbol"),BT=(t,l,r,a)=>{const o=(c,d)=>{const m=a.push(c)-1;return r.set(d,m),m},s=c=>{if(r.has(c))return r.get(c);let[d,m]=$r(c);switch(d){case so:{let y=c;switch(m){case"bigint":d=mv,y=c.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+m);y=null;break;case"undefined":return o([hv],c)}return o([d,y],c)}case na:{if(m){let v=c;return m==="DataView"?v=new Uint8Array(c.buffer):m==="ArrayBuffer"&&(v=new Uint8Array(c)),o([m,[...v]],c)}const y=[],g=o([d,y],c);for(const v of c)y.push(s(v));return g}case $u:{if(m)switch(m){case"BigInt":return o([m,c.toString()],c);case"Boolean":case"Number":case"String":return o([m,c.valueOf()],c)}if(l&&"toJSON"in c)return s(c.toJSON());const y=[],g=o([d,y],c);for(const v of UT(c))(t||!Qu($r(c[v])))&&y.push([s(v),s(c[v])]);return g}case eh:return o([d,isNaN(c.getTime())?Kl:c.toISOString()],c);case th:{const{source:y,flags:g}=c;return o([d,{source:y,flags:g}],c)}case nh:{const y=[],g=o([d,y],c);for(const[v,x]of c)(t||!(Qu($r(v))||Qu($r(x))))&&y.push([s(v),s(x)]);return g}case lh:{const y=[],g=o([d,y],c);for(const v of c)(t||!Qu($r(v)))&&y.push(s(v));return g}}const{message:p}=c;return o([d,{name:m,message:p}],c)};return s},yy=(t,{json:l,lossy:r}={})=>{const a=[];return BT(!(l||r),!!l,new Map,a)(t),a},Wu=typeof structuredClone=="function"?(t,l)=>l&&("json"in l||"lossy"in l)?gy(yy(t,l)):structuredClone(t):(t,l)=>gy(yy(t,l));function HT(t,l){const r=[{type:"text",value:"↩"}];return l>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(l)}]}),r}function qT(t,l){return"Back to reference "+(t+1)+(l>1?"-"+l:"")}function QT(t){const l=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=t.options.footnoteBackContent||HT,a=t.options.footnoteBackLabel||qT,o=t.options.footnoteLabel||"Footnotes",s=t.options.footnoteLabelTagName||"h2",c=t.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let m=-1;for(;++m<t.footnoteOrder.length;){const p=t.footnoteById.get(t.footnoteOrder[m]);if(!p)continue;const y=t.all(p),g=String(p.identifier).toUpperCase(),v=Pi(g.toLowerCase());let x=0;const E=[],A=t.footnoteCounts.get(g);for(;A!==void 0&&++x<=A;){E.length>0&&E.push({type:"text",value:" "});let B=typeof r=="string"?r:r(m,x);typeof B=="string"&&(B={type:"text",value:B}),E.push({type:"element",tagName:"a",properties:{href:"#"+l+"fnref-"+v+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(m,x),className:["data-footnote-backref"]},children:Array.isArray(B)?B:[B]})}const z=y[y.length-1];if(z&&z.type==="element"&&z.tagName==="p"){const B=z.children[z.children.length-1];B&&B.type==="text"?B.value+=" ":z.children.push({type:"text",value:" "}),z.children.push(...E)}else y.push(...E);const C={type:"element",tagName:"li",properties:{id:l+"fn-"+v},children:t.wrap(y,!0)};t.patch(p,C),d.push(C)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Wu(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
20
+ `},{type:"element",tagName:"ol",properties:{},children:t.wrap(d,!0)},{type:"text",value:`
21
+ `}]}}const co=(function(t){if(t==null)return VT;if(typeof t=="function")return fo(t);if(typeof t=="object")return Array.isArray(t)?GT(t):FT(t);if(typeof t=="string")return YT(t);throw new Error("Expected function, string, or object as test")});function GT(t){const l=[];let r=-1;for(;++r<t.length;)l[r]=co(t[r]);return fo(a);function a(...o){let s=-1;for(;++s<l.length;)if(l[s].apply(this,o))return!0;return!1}}function FT(t){const l=t;return fo(r);function r(a){const o=a;let s;for(s in t)if(o[s]!==l[s])return!1;return!0}}function YT(t){return fo(l);function l(r){return r&&r.type===t}}function fo(t){return l;function l(r,a,o){return!!(XT(r)&&t.call(this,r,typeof a=="number"?a:void 0,o||void 0))}}function VT(){return!0}function XT(t){return t!==null&&typeof t=="object"&&"type"in t}const gv=[],IT=!0,kf=!1,ZT="skip";function yv(t,l,r,a){let o;typeof l=="function"&&typeof r!="function"?(a=r,r=l):o=l;const s=co(o),c=a?-1:1;d(t,void 0,[])();function d(m,p,y){const g=m&&typeof m=="object"?m:{};if(typeof g.type=="string"){const x=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(m.type+(x?"<"+x+">":""))+")"})}return v;function v(){let x=gv,E,A,z;if((!l||s(m,p,y[y.length-1]||void 0))&&(x=KT(r(m,y)),x[0]===kf))return x;if("children"in m&&m.children){const C=m;if(C.children&&x[0]!==ZT)for(A=(a?C.children.length:-1)+c,z=y.concat(C);A>-1&&A<C.children.length;){const B=C.children[A];if(E=d(B,A,z)(),E[0]===kf)return E;A=typeof E[1]=="number"?E[1]:A+c}}return x}}}function KT(t){return Array.isArray(t)?t:typeof t=="number"?[IT,t]:t==null?gv:[t]}function ih(t,l,r,a){let o,s,c;typeof l=="function"&&typeof r!="function"?(s=void 0,c=l,o=r):(s=l,c=r,o=a),yv(t,s,d,o);function d(m,p){const y=p[p.length-1],g=y?y.children.indexOf(m):void 0;return c(m,g,y)}}const wf={}.hasOwnProperty,JT={};function PT(t,l){const r=l||JT,a=new Map,o=new Map,s=new Map,c={...NT,...r.handlers},d={all:p,applyData:WT,definitionById:a,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:c,one:m,options:r,patch:$T,wrap:tA};return ih(t,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const g=y.type==="definition"?a:o,v=String(y.identifier).toUpperCase();g.has(v)||g.set(v,y)}}),d;function m(y,g){const v=y.type,x=d.handlers[v];if(wf.call(d.handlers,v)&&x)return x(d,y,g);if(d.options.passThrough&&d.options.passThrough.includes(v)){if("children"in y){const{children:A,...z}=y,C=Wu(z);return C.children=d.all(y),C}return Wu(y)}return(d.options.unknownHandler||eA)(d,y,g)}function p(y){const g=[];if("children"in y){const v=y.children;let x=-1;for(;++x<v.length;){const E=d.one(v[x],y);if(E){if(x&&v[x-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=by(E.value)),!Array.isArray(E)&&E.type==="element")){const A=E.children[0];A&&A.type==="text"&&(A.value=by(A.value))}Array.isArray(E)?g.push(...E):g.push(E)}}}return g}}function $T(t,l){t.position&&(l.position=qE(t))}function WT(t,l){let r=l;if(t&&t.data){const a=t.data.hName,o=t.data.hChildren,s=t.data.hProperties;if(typeof a=="string")if(r.type==="element")r.tagName=a;else{const c="children"in r?r.children:[r];r={type:"element",tagName:a,properties:{},children:c}}r.type==="element"&&s&&Object.assign(r.properties,Wu(s)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}function eA(t,l){const r=l.data||{},a="value"in l&&!(wf.call(r,"hProperties")||wf.call(r,"hChildren"))?{type:"text",value:l.value}:{type:"element",tagName:"div",properties:{},children:t.all(l)};return t.patch(l,a),t.applyData(l,a)}function tA(t,l){const r=[];let a=-1;for(l&&r.push({type:"text",value:`
22
+ `});++a<t.length;)a&&r.push({type:"text",value:`
23
+ `}),r.push(t[a]);return l&&t.length>0&&r.push({type:"text",value:`
24
+ `}),r}function by(t){let l=0,r=t.charCodeAt(l);for(;r===9||r===32;)l++,r=t.charCodeAt(l);return t.slice(l)}function vy(t,l){const r=PT(t,l),a=r.one(t,void 0),o=QT(r),s=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return o&&s.children.push({type:"text",value:`
25
+ `},o),s}function nA(t,l){return t&&"run"in t?async function(r,a){const o=vy(r,{file:a,...l});await t.run(o,a)}:function(r,a){return vy(r,{file:a,...t||l})}}function xy(t){if(t)throw t}var Fc,Sy;function lA(){if(Sy)return Fc;Sy=1;var t=Object.prototype.hasOwnProperty,l=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(p){return typeof Array.isArray=="function"?Array.isArray(p):l.call(p)==="[object Array]"},s=function(p){if(!p||l.call(p)!=="[object Object]")return!1;var y=t.call(p,"constructor"),g=p.constructor&&p.constructor.prototype&&t.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!y&&!g)return!1;var v;for(v in p);return typeof v>"u"||t.call(p,v)},c=function(p,y){r&&y.name==="__proto__"?r(p,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):p[y.name]=y.newValue},d=function(p,y){if(y==="__proto__")if(t.call(p,y)){if(a)return a(p,y).value}else return;return p[y]};return Fc=function m(){var p,y,g,v,x,E,A=arguments[0],z=1,C=arguments.length,B=!1;for(typeof A=="boolean"&&(B=A,A=arguments[1]||{},z=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});z<C;++z)if(p=arguments[z],p!=null)for(y in p)g=d(A,y),v=d(p,y),A!==v&&(B&&v&&(s(v)||(x=o(v)))?(x?(x=!1,E=g&&o(g)?g:[]):E=g&&s(g)?g:{},c(A,{name:y,newValue:m(B,E,v)})):typeof v<"u"&&c(A,{name:y,newValue:v}));return A},Fc}var iA=lA();const Yc=Af(iA);function Ef(t){if(typeof t!="object"||t===null)return!1;const l=Object.getPrototypeOf(t);return(l===null||l===Object.prototype||Object.getPrototypeOf(l)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function rA(){const t=[],l={run:r,use:a};return l;function r(...o){let s=-1;const c=o.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...o);function d(m,...p){const y=t[++s];let g=-1;if(m){c(m);return}for(;++g<o.length;)(p[g]===null||p[g]===void 0)&&(p[g]=o[g]);o=p,y?aA(y,d)(...p):c(null,...p)}}function a(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return t.push(o),l}}function aA(t,l){let r;return a;function a(...c){const d=t.length>c.length;let m;d&&c.push(o);try{m=t.apply(this,c)}catch(p){const y=p;if(d&&r)throw y;return o(y)}d||(m&&m.then&&typeof m.then=="function"?m.then(s,o):m instanceof Error?o(m):s(m))}function o(c,...d){r||(r=!0,l(c,...d))}function s(c){o(null,c)}}const An={basename:uA,dirname:oA,extname:sA,join:cA,sep:"/"};function uA(t,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');ga(t);let r=0,a=-1,o=t.length,s;if(l===void 0||l.length===0||l.length>t.length){for(;o--;)if(t.codePointAt(o)===47){if(s){r=o+1;break}}else a<0&&(s=!0,a=o+1);return a<0?"":t.slice(r,a)}if(l===t)return"";let c=-1,d=l.length-1;for(;o--;)if(t.codePointAt(o)===47){if(s){r=o+1;break}}else c<0&&(s=!0,c=o+1),d>-1&&(t.codePointAt(o)===l.codePointAt(d--)?d<0&&(a=o):(d=-1,a=c));return r===a?a=c:a<0&&(a=t.length),t.slice(r,a)}function oA(t){if(ga(t),t.length===0)return".";let l=-1,r=t.length,a;for(;--r;)if(t.codePointAt(r)===47){if(a){l=r;break}}else a||(a=!0);return l<0?t.codePointAt(0)===47?"/":".":l===1&&t.codePointAt(0)===47?"//":t.slice(0,l)}function sA(t){ga(t);let l=t.length,r=-1,a=0,o=-1,s=0,c;for(;l--;){const d=t.codePointAt(l);if(d===47){if(c){a=l+1;break}continue}r<0&&(c=!0,r=l+1),d===46?o<0?o=l:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||r<0||s===0||s===1&&o===r-1&&o===a+1?"":t.slice(o,r)}function cA(...t){let l=-1,r;for(;++l<t.length;)ga(t[l]),t[l]&&(r=r===void 0?t[l]:r+"/"+t[l]);return r===void 0?".":fA(r)}function fA(t){ga(t);const l=t.codePointAt(0)===47;let r=hA(t,!l);return r.length===0&&!l&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),l?"/"+r:r}function hA(t,l){let r="",a=0,o=-1,s=0,c=-1,d,m;for(;++c<=t.length;){if(c<t.length)d=t.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(o===c-1||s===1))if(o!==c-1&&s===2){if(r.length<2||a!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(m=r.lastIndexOf("/"),m!==r.length-1){m<0?(r="",a=0):(r=r.slice(0,m),a=r.length-1-r.lastIndexOf("/")),o=c,s=0;continue}}else if(r.length>0){r="",a=0,o=c,s=0;continue}}l&&(r=r.length>0?r+"/..":"..",a=2)}else r.length>0?r+="/"+t.slice(o+1,c):r=t.slice(o+1,c),a=c-o-1;o=c,s=0}else d===46&&s>-1?s++:s=-1}return r}function ga(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const dA={cwd:mA};function mA(){return"/"}function Cf(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function pA(t){if(typeof t=="string")t=new URL(t);else if(!Cf(t)){const l=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw l.code="ERR_INVALID_ARG_TYPE",l}if(t.protocol!=="file:"){const l=new TypeError("The URL must be of scheme file");throw l.code="ERR_INVALID_URL_SCHEME",l}return gA(t)}function gA(t){if(t.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const l=t.pathname;let r=-1;for(;++r<l.length;)if(l.codePointAt(r)===37&&l.codePointAt(r+1)===50){const a=l.codePointAt(r+2);if(a===70||a===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(l)}const Vc=["history","path","basename","stem","extname","dirname"];class bv{constructor(l){let r;l?Cf(l)?r={path:l}:typeof l=="string"||yA(l)?r={value:l}:r=l:r={},this.cwd="cwd"in r?"":dA.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<Vc.length;){const s=Vc[a];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let o;for(o in r)Vc.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?An.basename(this.path):void 0}set basename(l){Ic(l,"basename"),Xc(l,"basename"),this.path=An.join(this.dirname||"",l)}get dirname(){return typeof this.path=="string"?An.dirname(this.path):void 0}set dirname(l){ky(this.basename,"dirname"),this.path=An.join(l||"",this.basename)}get extname(){return typeof this.path=="string"?An.extname(this.path):void 0}set extname(l){if(Xc(l,"extname"),ky(this.dirname,"extname"),l){if(l.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(l.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=An.join(this.dirname,this.stem+(l||""))}get path(){return this.history[this.history.length-1]}set path(l){Cf(l)&&(l=pA(l)),Ic(l,"path"),this.path!==l&&this.history.push(l)}get stem(){return typeof this.path=="string"?An.basename(this.path,this.extname):void 0}set stem(l){Ic(l,"stem"),Xc(l,"stem"),this.path=An.join(this.dirname||"",l+(this.extname||""))}fail(l,r,a){const o=this.message(l,r,a);throw o.fatal=!0,o}info(l,r,a){const o=this.message(l,r,a);return o.fatal=void 0,o}message(l,r,a){const o=new St(l,r,a);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(l){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(l||void 0).decode(this.value)}}function Xc(t,l){if(t&&t.includes(An.sep))throw new Error("`"+l+"` cannot be a path: did not expect `"+An.sep+"`")}function Ic(t,l){if(!t)throw new Error("`"+l+"` cannot be empty")}function ky(t,l){if(!t)throw new Error("Setting `"+l+"` requires `path` to be set too")}function yA(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const bA=(function(t){const a=this.constructor.prototype,o=a[t],s=function(){return o.apply(s,arguments)};return Object.setPrototypeOf(s,a),s}),vA={}.hasOwnProperty;class rh extends bA{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=rA()}copy(){const l=new rh;let r=-1;for(;++r<this.attachers.length;){const a=this.attachers[r];l.use(...a)}return l.data(Yc(!0,{},this.namespace)),l}data(l,r){return typeof l=="string"?arguments.length===2?(Jc("data",this.frozen),this.namespace[l]=r,this):vA.call(this.namespace,l)&&this.namespace[l]||void 0:l?(Jc("data",this.frozen),this.namespace=l,this):this.namespace}freeze(){if(this.frozen)return this;const l=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const o=r.call(l,...a);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(l){this.freeze();const r=Gu(l),a=this.parser||this.Parser;return Zc("parse",a),a(String(r),r)}process(l,r){const a=this;return this.freeze(),Zc("process",this.parser||this.Parser),Kc("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(s,c){const d=Gu(l),m=a.parse(d);a.run(m,d,function(y,g,v){if(y||!g||!v)return p(y);const x=g,E=a.stringify(x,v);kA(E)?v.value=E:v.result=E,p(y,v)});function p(y,g){y||!g?c(y):s?s(g):r(void 0,g)}}}processSync(l){let r=!1,a;return this.freeze(),Zc("processSync",this.parser||this.Parser),Kc("processSync",this.compiler||this.Compiler),this.process(l,o),Ey("processSync","process",r),a;function o(s,c){r=!0,xy(s),a=c}}run(l,r,a){wy(l),this.freeze();const o=this.transformers;return!a&&typeof r=="function"&&(a=r,r=void 0),a?s(void 0,a):new Promise(s);function s(c,d){const m=Gu(r);o.run(l,m,p);function p(y,g,v){const x=g||l;y?d(y):c?c(x):a(void 0,x,v)}}}runSync(l,r){let a=!1,o;return this.run(l,r,s),Ey("runSync","run",a),o;function s(c,d){xy(c),o=d,a=!0}}stringify(l,r){this.freeze();const a=Gu(r),o=this.compiler||this.Compiler;return Kc("stringify",o),wy(l),o(l,a)}use(l,...r){const a=this.attachers,o=this.namespace;if(Jc("use",this.frozen),l!=null)if(typeof l=="function")m(l,r);else if(typeof l=="object")Array.isArray(l)?d(l):c(l);else throw new TypeError("Expected usable value, not `"+l+"`");return this;function s(p){if(typeof p=="function")m(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[y,...g]=p;m(y,g)}else c(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function c(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(p.plugins),p.settings&&(o.settings=Yc(!0,o.settings,p.settings))}function d(p){let y=-1;if(p!=null)if(Array.isArray(p))for(;++y<p.length;){const g=p[y];s(g)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function m(p,y){let g=-1,v=-1;for(;++g<a.length;)if(a[g][0]===p){v=g;break}if(v===-1)a.push([p,...y]);else if(y.length>0){let[x,...E]=y;const A=a[v][1];Ef(A)&&Ef(x)&&(x=Yc(!0,A,x)),a[v]=[p,x,...E]}}}}const xA=new rh().freeze();function Zc(t,l){if(typeof l!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function Kc(t,l){if(typeof l!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function Jc(t,l){if(l)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function wy(t){if(!Ef(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Ey(t,l,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+l+"` instead")}function Gu(t){return SA(t)?t:new bv(t)}function SA(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function kA(t){return typeof t=="string"||wA(t)}function wA(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const EA="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Cy=[],Ty={allowDangerousHtml:!0},CA=/^(https?|ircs?|mailto|xmpp)$/i,TA=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function AA(t){const l=zA(t),r=RA(t);return OA(l.runSync(l.parse(r),r),t)}function zA(t){const l=t.rehypePlugins||Cy,r=t.remarkPlugins||Cy,a=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...Ty}:Ty;return xA().use(oT).use(r).use(nA,a).use(l)}function RA(t){const l=t.children||"",r=new bv;return typeof l=="string"&&(r.value=l),r}function OA(t,l){const r=l.allowedElements,a=l.allowElement,o=l.components,s=l.disallowedElements,c=l.skipHtml,d=l.unwrapDisallowed,m=l.urlTransform||_A;for(const y of TA)Object.hasOwn(l,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+EA+y.id,void 0);return ih(t,p),VE(t,{Fragment:_.Fragment,components:o,ignoreInvalidStyle:!0,jsx:_.jsx,jsxs:_.jsxs,passKeys:!0,passNode:!0});function p(y,g,v){if(y.type==="raw"&&v&&typeof g=="number")return c?v.children.splice(g,1):v.children[g]={type:"text",value:y.value},g;if(y.type==="element"){let x;for(x in qc)if(Object.hasOwn(qc,x)&&Object.hasOwn(y.properties,x)){const E=y.properties[x],A=qc[x];(A===null||A.includes(y.tagName))&&(y.properties[x]=m(String(E||""),x,y))}}if(y.type==="element"){let x=r?!r.includes(y.tagName):s?s.includes(y.tagName):!1;if(!x&&a&&typeof g=="number"&&(x=!a(y,g,v)),x&&v&&typeof g=="number")return d&&y.children?v.children.splice(g,1,...y.children):v.children.splice(g,1),g}}}function _A(t){const l=t.indexOf(":"),r=t.indexOf("?"),a=t.indexOf("#"),o=t.indexOf("/");return l===-1||o!==-1&&l>o||r!==-1&&l>r||a!==-1&&l>a||CA.test(t.slice(0,l))?t:""}function MA(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function vv(t,l,r){const o=co((r||{}).ignore||[]),s=DA(l);let c=-1;for(;++c<s.length;)yv(t,"text",d);function d(p,y){let g=-1,v;for(;++g<y.length;){const x=y[g],E=v?v.children:void 0;if(o(x,E?E.indexOf(x):void 0,v))return;v=x}if(v)return m(p,y)}function m(p,y){const g=y[y.length-1],v=s[c][0],x=s[c][1];let E=0;const z=g.children.indexOf(p);let C=!1,B=[];v.lastIndex=0;let j=v.exec(p.value);for(;j;){const W=j.index,ee={index:j.index,input:j.input,stack:[...y,p]};let Q=x(...j,ee);if(typeof Q=="string"&&(Q=Q.length>0?{type:"text",value:Q}:void 0),Q===!1?v.lastIndex=W+1:(E!==W&&B.push({type:"text",value:p.value.slice(E,W)}),Array.isArray(Q)?B.push(...Q):Q&&B.push(Q),E=W+j[0].length,C=!0),!v.global)break;j=v.exec(p.value)}return C?(E<p.value.length&&B.push({type:"text",value:p.value.slice(E)}),g.children.splice(z,1,...B)):B=[p],z+B.length}}function DA(t){const l=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!t[0]||Array.isArray(t[0])?t:[t];let a=-1;for(;++a<r.length;){const o=r[a];l.push([NA(o[0]),jA(o[1])])}return l}function NA(t){return typeof t=="string"?new RegExp(MA(t),"g"):t}function jA(t){return typeof t=="function"?t:function(){return t}}function LA(t){vv(t,[/\r?\n|\r/g,UA])}function UA(){return{type:"break"}}function BA(){return function(t){LA(t)}}function Ay(t,l){const r=String(t);if(typeof l!="string")throw new TypeError("Expected character");let a=0,o=r.indexOf(l);for(;o!==-1;)a++,o=r.indexOf(l,o+l.length);return a}const Pc="phrasing",$c=["autolink","link","image","label"];function HA(){return{transforms:[XA],enter:{literalAutolink:QA,literalAutolinkEmail:Wc,literalAutolinkHttp:Wc,literalAutolinkWww:Wc},exit:{literalAutolink:VA,literalAutolinkEmail:YA,literalAutolinkHttp:GA,literalAutolinkWww:FA}}}function qA(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Pc,notInConstruct:$c},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Pc,notInConstruct:$c},{character:":",before:"[ps]",after:"\\/",inConstruct:Pc,notInConstruct:$c}]}}function QA(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function Wc(t){this.config.enter.autolinkProtocol.call(this,t)}function GA(t){this.config.exit.autolinkProtocol.call(this,t)}function FA(t){this.config.exit.data.call(this,t);const l=this.stack[this.stack.length-1];l.type,l.url="http://"+this.sliceSerialize(t)}function YA(t){this.config.exit.autolinkEmail.call(this,t)}function VA(t){this.exit(t)}function XA(t){vv(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,IA],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),ZA]],{ignore:["link","linkReference"]})}function IA(t,l,r,a,o){let s="";if(!xv(o)||(/^w/i.test(l)&&(r=l+r,l="",s="http://"),!KA(r)))return!1;const c=JA(r+a);if(!c[0])return!1;const d={type:"link",title:null,url:s+l+c[0],children:[{type:"text",value:l+c[0]}]};return c[1]?[d,{type:"text",value:c[1]}]:d}function ZA(t,l,r,a){return!xv(a,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+l+"@"+r,children:[{type:"text",value:l+"@"+r}]}}function KA(t){const l=t.split(".");return!(l.length<2||l[l.length-1]&&(/_/.test(l[l.length-1])||!/[a-zA-Z\d]/.test(l[l.length-1]))||l[l.length-2]&&(/_/.test(l[l.length-2])||!/[a-zA-Z\d]/.test(l[l.length-2])))}function JA(t){const l=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!l)return[t,void 0];t=t.slice(0,l.index);let r=l[0],a=r.indexOf(")");const o=Ay(t,"(");let s=Ay(t,")");for(;a!==-1&&o>s;)t+=r.slice(0,a+1),r=r.slice(a+1),a=r.indexOf(")"),s++;return[t,r]}function xv(t,l){const r=t.input.charCodeAt(t.index-1);return(t.index===0||$l(r)||uo(r))&&(!l||r!==47)}Sv.peek=rz;function PA(){this.buffer()}function $A(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function WA(){this.buffer()}function ez(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function tz(t){const l=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=bn(this.sliceSerialize(t)).toLowerCase(),r.label=l}function nz(t){this.exit(t)}function lz(t){const l=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=bn(this.sliceSerialize(t)).toLowerCase(),r.label=l}function iz(t){this.exit(t)}function rz(){return"["}function Sv(t,l,r,a){const o=r.createTracker(a);let s=o.move("[^");const c=r.enter("footnoteReference"),d=r.enter("reference");return s+=o.move(r.safe(r.associationId(t),{after:"]",before:s})),d(),c(),s+=o.move("]"),s}function az(){return{enter:{gfmFootnoteCallString:PA,gfmFootnoteCall:$A,gfmFootnoteDefinitionLabelString:WA,gfmFootnoteDefinition:ez},exit:{gfmFootnoteCallString:tz,gfmFootnoteCall:nz,gfmFootnoteDefinitionLabelString:lz,gfmFootnoteDefinition:iz}}}function uz(t){let l=!1;return t&&t.firstLineBlank&&(l=!0),{handlers:{footnoteDefinition:r,footnoteReference:Sv},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(a,o,s,c){const d=s.createTracker(c);let m=d.move("[^");const p=s.enter("footnoteDefinition"),y=s.enter("label");return m+=d.move(s.safe(s.associationId(a),{before:m,after:"]"})),y(),m+=d.move("]:"),a.children&&a.children.length>0&&(d.shift(4),m+=d.move((l?`
26
+ `:" ")+s.indentLines(s.containerFlow(a,d.current()),l?kv:oz))),p(),m}}function oz(t,l,r){return l===0?t:kv(t,l,r)}function kv(t,l,r){return(r?"":" ")+t}const sz=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];wv.peek=mz;function cz(){return{canContainEols:["delete"],enter:{strikethrough:hz},exit:{strikethrough:dz}}}function fz(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:sz}],handlers:{delete:wv}}}function hz(t){this.enter({type:"delete",children:[]},t)}function dz(t){this.exit(t)}function wv(t,l,r,a){const o=r.createTracker(a),s=r.enter("strikethrough");let c=o.move("~~");return c+=r.containerPhrasing(t,{...o.current(),before:c,after:"~"}),c+=o.move("~~"),s(),c}function mz(){return"~"}function pz(t){return t.length}function gz(t,l){const r=l||{},a=(r.align||[]).concat(),o=r.stringLength||pz,s=[],c=[],d=[],m=[];let p=0,y=-1;for(;++y<t.length;){const A=[],z=[];let C=-1;for(t[y].length>p&&(p=t[y].length);++C<t[y].length;){const B=yz(t[y][C]);if(r.alignDelimiters!==!1){const j=o(B);z[C]=j,(m[C]===void 0||j>m[C])&&(m[C]=j)}A.push(B)}c[y]=A,d[y]=z}let g=-1;if(typeof a=="object"&&"length"in a)for(;++g<p;)s[g]=zy(a[g]);else{const A=zy(a);for(;++g<p;)s[g]=A}g=-1;const v=[],x=[];for(;++g<p;){const A=s[g];let z="",C="";A===99?(z=":",C=":"):A===108?z=":":A===114&&(C=":");let B=r.alignDelimiters===!1?1:Math.max(1,m[g]-z.length-C.length);const j=z+"-".repeat(B)+C;r.alignDelimiters!==!1&&(B=z.length+B+C.length,B>m[g]&&(m[g]=B),x[g]=B),v[g]=j}c.splice(1,0,v),d.splice(1,0,x),y=-1;const E=[];for(;++y<c.length;){const A=c[y],z=d[y];g=-1;const C=[];for(;++g<p;){const B=A[g]||"";let j="",W="";if(r.alignDelimiters!==!1){const ee=m[g]-(z[g]||0),Q=s[g];Q===114?j=" ".repeat(ee):Q===99?ee%2?(j=" ".repeat(ee/2+.5),W=" ".repeat(ee/2-.5)):(j=" ".repeat(ee/2),W=j):W=" ".repeat(ee)}r.delimiterStart!==!1&&!g&&C.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&B==="")&&(r.delimiterStart!==!1||g)&&C.push(" "),r.alignDelimiters!==!1&&C.push(j),C.push(B),r.alignDelimiters!==!1&&C.push(W),r.padding!==!1&&C.push(" "),(r.delimiterEnd!==!1||g!==p-1)&&C.push("|")}E.push(r.delimiterEnd===!1?C.join("").replace(/ +$/,""):C.join(""))}return E.join(`
27
+ `)}function yz(t){return t==null?"":String(t)}function zy(t){const l=typeof t=="string"?t.codePointAt(0):0;return l===67||l===99?99:l===76||l===108?108:l===82||l===114?114:0}function bz(t,l,r,a){const o=r.enter("blockquote"),s=r.createTracker(a);s.move("> "),s.shift(2);const c=r.indentLines(r.containerFlow(t,s.current()),vz);return o(),c}function vz(t,l,r){return">"+(r?"":" ")+t}function xz(t,l){return Ry(t,l.inConstruct,!0)&&!Ry(t,l.notInConstruct,!1)}function Ry(t,l,r){if(typeof l=="string"&&(l=[l]),!l||l.length===0)return r;let a=-1;for(;++a<l.length;)if(t.includes(l[a]))return!0;return!1}function Oy(t,l,r,a){let o=-1;for(;++o<r.unsafe.length;)if(r.unsafe[o].character===`
28
+ `&&xz(r.stack,r.unsafe[o]))return/[ \t]/.test(a.before)?"":" ";return`\\
29
+ `}function Sz(t,l){const r=String(t);let a=r.indexOf(l),o=a,s=0,c=0;if(typeof l!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===o?++s>c&&(c=s):s=1,o=a+l.length,a=r.indexOf(l,o);return c}function kz(t,l){return!!(l.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function wz(t){const l=t.options.fence||"`";if(l!=="`"&&l!=="~")throw new Error("Cannot serialize code with `"+l+"` for `options.fence`, expected `` ` `` or `~`");return l}function Ez(t,l,r,a){const o=wz(r),s=t.value||"",c=o==="`"?"GraveAccent":"Tilde";if(kz(t,r)){const g=r.enter("codeIndented"),v=r.indentLines(s,Cz);return g(),v}const d=r.createTracker(a),m=o.repeat(Math.max(Sz(s,o)+1,3)),p=r.enter("codeFenced");let y=d.move(m);if(t.lang){const g=r.enter(`codeFencedLang${c}`);y+=d.move(r.safe(t.lang,{before:y,after:" ",encode:["`"],...d.current()})),g()}if(t.lang&&t.meta){const g=r.enter(`codeFencedMeta${c}`);y+=d.move(" "),y+=d.move(r.safe(t.meta,{before:y,after:`
30
+ `,encode:["`"],...d.current()})),g()}return y+=d.move(`
31
+ `),s&&(y+=d.move(s+`
32
+ `)),y+=d.move(m),p(),y}function Cz(t,l,r){return(r?"":" ")+t}function ah(t){const l=t.options.quote||'"';if(l!=='"'&&l!=="'")throw new Error("Cannot serialize title with `"+l+"` for `options.quote`, expected `\"`, or `'`");return l}function Tz(t,l,r,a){const o=ah(r),s=o==='"'?"Quote":"Apostrophe",c=r.enter("definition");let d=r.enter("label");const m=r.createTracker(a);let p=m.move("[");return p+=m.move(r.safe(r.associationId(t),{before:p,after:"]",...m.current()})),p+=m.move("]: "),d(),!t.url||/[\0- \u007F]/.test(t.url)?(d=r.enter("destinationLiteral"),p+=m.move("<"),p+=m.move(r.safe(t.url,{before:p,after:">",...m.current()})),p+=m.move(">")):(d=r.enter("destinationRaw"),p+=m.move(r.safe(t.url,{before:p,after:t.title?" ":`
33
+ `,...m.current()}))),d(),t.title&&(d=r.enter(`title${s}`),p+=m.move(" "+o),p+=m.move(r.safe(t.title,{before:p,after:o,...m.current()})),p+=m.move(o),d()),c(),p}function Az(t){const l=t.options.emphasis||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize emphasis with `"+l+"` for `options.emphasis`, expected `*`, or `_`");return l}function sa(t){return"&#x"+t.toString(16).toUpperCase()+";"}function eo(t,l,r){const a=Ii(t),o=Ii(l);return a===void 0?o===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Ev.peek=zz;function Ev(t,l,r,a){const o=Az(r),s=r.enter("emphasis"),c=r.createTracker(a),d=c.move(o);let m=c.move(r.containerPhrasing(t,{after:o,before:d,...c.current()}));const p=m.charCodeAt(0),y=eo(a.before.charCodeAt(a.before.length-1),p,o);y.inside&&(m=sa(p)+m.slice(1));const g=m.charCodeAt(m.length-1),v=eo(a.after.charCodeAt(0),g,o);v.inside&&(m=m.slice(0,-1)+sa(g));const x=c.move(o);return s(),r.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},d+m+x}function zz(t,l,r){return r.options.emphasis||"*"}function Rz(t,l){let r=!1;return ih(t,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return r=!0,kf}),!!((!t.depth||t.depth<3)&&Pf(t)&&(l.options.setext||r))}function Oz(t,l,r,a){const o=Math.max(Math.min(6,t.depth||1),1),s=r.createTracker(a);if(Rz(t,r)){const y=r.enter("headingSetext"),g=r.enter("phrasing"),v=r.containerPhrasing(t,{...s.current(),before:`
34
+ `,after:`
35
+ `});return g(),y(),v+`
36
+ `+(o===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
37
+ `))+1))}const c="#".repeat(o),d=r.enter("headingAtx"),m=r.enter("phrasing");s.move(c+" ");let p=r.containerPhrasing(t,{before:"# ",after:`
38
+ `,...s.current()});return/^[\t ]/.test(p)&&(p=sa(p.charCodeAt(0))+p.slice(1)),p=p?c+" "+p:c,r.options.closeAtx&&(p+=" "+c),m(),d(),p}Cv.peek=_z;function Cv(t){return t.value||""}function _z(){return"<"}Tv.peek=Mz;function Tv(t,l,r,a){const o=ah(r),s=o==='"'?"Quote":"Apostrophe",c=r.enter("image");let d=r.enter("label");const m=r.createTracker(a);let p=m.move("![");return p+=m.move(r.safe(t.alt,{before:p,after:"]",...m.current()})),p+=m.move("]("),d(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(d=r.enter("destinationLiteral"),p+=m.move("<"),p+=m.move(r.safe(t.url,{before:p,after:">",...m.current()})),p+=m.move(">")):(d=r.enter("destinationRaw"),p+=m.move(r.safe(t.url,{before:p,after:t.title?" ":")",...m.current()}))),d(),t.title&&(d=r.enter(`title${s}`),p+=m.move(" "+o),p+=m.move(r.safe(t.title,{before:p,after:o,...m.current()})),p+=m.move(o),d()),p+=m.move(")"),c(),p}function Mz(){return"!"}Av.peek=Dz;function Av(t,l,r,a){const o=t.referenceType,s=r.enter("imageReference");let c=r.enter("label");const d=r.createTracker(a);let m=d.move("![");const p=r.safe(t.alt,{before:m,after:"]",...d.current()});m+=d.move(p+"]["),c();const y=r.stack;r.stack=[],c=r.enter("reference");const g=r.safe(r.associationId(t),{before:m,after:"]",...d.current()});return c(),r.stack=y,s(),o==="full"||!p||p!==g?m+=d.move(g+"]"):o==="shortcut"?m=m.slice(0,-1):m+=d.move("]"),m}function Dz(){return"!"}zv.peek=Nz;function zv(t,l,r){let a=t.value||"",o="`",s=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(a);)o+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++s<r.unsafe.length;){const c=r.unsafe[s],d=r.compilePattern(c);let m;if(c.atBreak)for(;m=d.exec(a);){let p=m.index;a.charCodeAt(p)===10&&a.charCodeAt(p-1)===13&&p--,a=a.slice(0,p)+" "+a.slice(m.index+1)}}return o+a+o}function Nz(){return"`"}function Rv(t,l){const r=Pf(t);return!!(!l.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(r===t.url||"mailto:"+r===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}Ov.peek=jz;function Ov(t,l,r,a){const o=ah(r),s=o==='"'?"Quote":"Apostrophe",c=r.createTracker(a);let d,m;if(Rv(t,r)){const y=r.stack;r.stack=[],d=r.enter("autolink");let g=c.move("<");return g+=c.move(r.containerPhrasing(t,{before:g,after:">",...c.current()})),g+=c.move(">"),d(),r.stack=y,g}d=r.enter("link"),m=r.enter("label");let p=c.move("[");return p+=c.move(r.containerPhrasing(t,{before:p,after:"](",...c.current()})),p+=c.move("]("),m(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(m=r.enter("destinationLiteral"),p+=c.move("<"),p+=c.move(r.safe(t.url,{before:p,after:">",...c.current()})),p+=c.move(">")):(m=r.enter("destinationRaw"),p+=c.move(r.safe(t.url,{before:p,after:t.title?" ":")",...c.current()}))),m(),t.title&&(m=r.enter(`title${s}`),p+=c.move(" "+o),p+=c.move(r.safe(t.title,{before:p,after:o,...c.current()})),p+=c.move(o),m()),p+=c.move(")"),d(),p}function jz(t,l,r){return Rv(t,r)?"<":"["}_v.peek=Lz;function _v(t,l,r,a){const o=t.referenceType,s=r.enter("linkReference");let c=r.enter("label");const d=r.createTracker(a);let m=d.move("[");const p=r.containerPhrasing(t,{before:m,after:"]",...d.current()});m+=d.move(p+"]["),c();const y=r.stack;r.stack=[],c=r.enter("reference");const g=r.safe(r.associationId(t),{before:m,after:"]",...d.current()});return c(),r.stack=y,s(),o==="full"||!p||p!==g?m+=d.move(g+"]"):o==="shortcut"?m=m.slice(0,-1):m+=d.move("]"),m}function Lz(){return"["}function uh(t){const l=t.options.bullet||"*";if(l!=="*"&&l!=="+"&&l!=="-")throw new Error("Cannot serialize items with `"+l+"` for `options.bullet`, expected `*`, `+`, or `-`");return l}function Uz(t){const l=uh(t),r=t.options.bulletOther;if(!r)return l==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===l)throw new Error("Expected `bullet` (`"+l+"`) and `bulletOther` (`"+r+"`) to be different");return r}function Bz(t){const l=t.options.bulletOrdered||".";if(l!=="."&&l!==")")throw new Error("Cannot serialize items with `"+l+"` for `options.bulletOrdered`, expected `.` or `)`");return l}function Mv(t){const l=t.options.rule||"*";if(l!=="*"&&l!=="-"&&l!=="_")throw new Error("Cannot serialize rules with `"+l+"` for `options.rule`, expected `*`, `-`, or `_`");return l}function Hz(t,l,r,a){const o=r.enter("list"),s=r.bulletCurrent;let c=t.ordered?Bz(r):uh(r);const d=t.ordered?c==="."?")":".":Uz(r);let m=l&&r.bulletLastUsed?c===r.bulletLastUsed:!1;if(!t.ordered){const y=t.children?t.children[0]:void 0;if((c==="*"||c==="-")&&y&&(!y.children||!y.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(m=!0),Mv(r)===c&&y){let g=-1;for(;++g<t.children.length;){const v=t.children[g];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){m=!0;break}}}}m&&(c=d),r.bulletCurrent=c;const p=r.containerFlow(t,a);return r.bulletLastUsed=c,r.bulletCurrent=s,o(),p}function qz(t){const l=t.options.listItemIndent||"one";if(l!=="tab"&&l!=="one"&&l!=="mixed")throw new Error("Cannot serialize items with `"+l+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return l}function Qz(t,l,r,a){const o=qz(r);let s=r.bulletCurrent||uh(r);l&&l.type==="list"&&l.ordered&&(s=(typeof l.start=="number"&&l.start>-1?l.start:1)+(r.options.incrementListMarker===!1?0:l.children.indexOf(t))+s);let c=s.length+1;(o==="tab"||o==="mixed"&&(l&&l.type==="list"&&l.spread||t.spread))&&(c=Math.ceil(c/4)*4);const d=r.createTracker(a);d.move(s+" ".repeat(c-s.length)),d.shift(c);const m=r.enter("listItem"),p=r.indentLines(r.containerFlow(t,d.current()),y);return m(),p;function y(g,v,x){return v?(x?"":" ".repeat(c))+g:(x?s:s+" ".repeat(c-s.length))+g}}function Gz(t,l,r,a){const o=r.enter("paragraph"),s=r.enter("phrasing"),c=r.containerPhrasing(t,a);return s(),o(),c}const Fz=co(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Yz(t,l,r,a){return(t.children.some(function(c){return Fz(c)})?r.containerPhrasing:r.containerFlow).call(r,t,a)}function Vz(t){const l=t.options.strong||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize strong with `"+l+"` for `options.strong`, expected `*`, or `_`");return l}Dv.peek=Xz;function Dv(t,l,r,a){const o=Vz(r),s=r.enter("strong"),c=r.createTracker(a),d=c.move(o+o);let m=c.move(r.containerPhrasing(t,{after:o,before:d,...c.current()}));const p=m.charCodeAt(0),y=eo(a.before.charCodeAt(a.before.length-1),p,o);y.inside&&(m=sa(p)+m.slice(1));const g=m.charCodeAt(m.length-1),v=eo(a.after.charCodeAt(0),g,o);v.inside&&(m=m.slice(0,-1)+sa(g));const x=c.move(o+o);return s(),r.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},d+m+x}function Xz(t,l,r){return r.options.strong||"*"}function Iz(t,l,r,a){return r.safe(t.value,a)}function Zz(t){const l=t.options.ruleRepetition||3;if(l<3)throw new Error("Cannot serialize rules with repetition `"+l+"` for `options.ruleRepetition`, expected `3` or more");return l}function Kz(t,l,r){const a=(Mv(r)+(r.options.ruleSpaces?" ":"")).repeat(Zz(r));return r.options.ruleSpaces?a.slice(0,-1):a}const Nv={blockquote:bz,break:Oy,code:Ez,definition:Tz,emphasis:Ev,hardBreak:Oy,heading:Oz,html:Cv,image:Tv,imageReference:Av,inlineCode:zv,link:Ov,linkReference:_v,list:Hz,listItem:Qz,paragraph:Gz,root:Yz,strong:Dv,text:Iz,thematicBreak:Kz};function Jz(){return{enter:{table:Pz,tableData:_y,tableHeader:_y,tableRow:Wz},exit:{codeText:eR,table:$z,tableData:ef,tableHeader:ef,tableRow:ef}}}function Pz(t){const l=t._align;this.enter({type:"table",align:l.map(function(r){return r==="none"?null:r}),children:[]},t),this.data.inTable=!0}function $z(t){this.exit(t),this.data.inTable=void 0}function Wz(t){this.enter({type:"tableRow",children:[]},t)}function ef(t){this.exit(t)}function _y(t){this.enter({type:"tableCell",children:[]},t)}function eR(t){let l=this.resume();this.data.inTable&&(l=l.replace(/\\([\\|])/g,tR));const r=this.stack[this.stack.length-1];r.type,r.value=l,this.exit(t)}function tR(t,l){return l==="|"?l:t}function nR(t){const l=t||{},r=l.tableCellPadding,a=l.tablePipeAlign,o=l.stringLength,s=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
39
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:c,tableCell:m,tableRow:d}};function c(x,E,A,z){return p(y(x,A,z),x.align)}function d(x,E,A,z){const C=g(x,A,z),B=p([C]);return B.slice(0,B.indexOf(`
40
+ `))}function m(x,E,A,z){const C=A.enter("tableCell"),B=A.enter("phrasing"),j=A.containerPhrasing(x,{...z,before:s,after:s});return B(),C(),j}function p(x,E){return gz(x,{align:E,alignDelimiters:a,padding:r,stringLength:o})}function y(x,E,A){const z=x.children;let C=-1;const B=[],j=E.enter("table");for(;++C<z.length;)B[C]=g(z[C],E,A);return j(),B}function g(x,E,A){const z=x.children;let C=-1;const B=[],j=E.enter("tableRow");for(;++C<z.length;)B[C]=m(z[C],x,E,A);return j(),B}function v(x,E,A){let z=Nv.inlineCode(x,E,A);return A.stack.includes("tableCell")&&(z=z.replace(/\|/g,"\\$&")),z}}function lR(){return{exit:{taskListCheckValueChecked:My,taskListCheckValueUnchecked:My,paragraph:rR}}}function iR(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:aR}}}function My(t){const l=this.stack[this.stack.length-2];l.type,l.checked=t.type==="taskListCheckValueChecked"}function rR(t){const l=this.stack[this.stack.length-2];if(l&&l.type==="listItem"&&typeof l.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const a=r.children[0];if(a&&a.type==="text"){const o=l.children;let s=-1,c;for(;++s<o.length;){const d=o[s];if(d.type==="paragraph"){c=d;break}}c===r&&(a.value=a.value.slice(1),a.value.length===0?r.children.shift():r.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,r.position.start=Object.assign({},a.position.start)))}}this.exit(t)}function aR(t,l,r,a){const o=t.children[0],s=typeof t.checked=="boolean"&&o&&o.type==="paragraph",c="["+(t.checked?"x":" ")+"] ",d=r.createTracker(a);s&&d.move(c);let m=Nv.listItem(t,l,r,{...a,...d.current()});return s&&(m=m.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),m;function p(y){return y+c}}function uR(){return[HA(),az(),cz(),Jz(),lR()]}function oR(t){return{extensions:[qA(),uz(t),fz(),nR(t),iR()]}}const sR={tokenize:pR,partial:!0},jv={tokenize:gR,partial:!0},Lv={tokenize:yR,partial:!0},Uv={tokenize:bR,partial:!0},cR={tokenize:vR,partial:!0},Bv={name:"wwwAutolink",tokenize:dR,previous:qv},Hv={name:"protocolAutolink",tokenize:mR,previous:Qv},Pn={name:"emailAutolink",tokenize:hR,previous:Gv},zn={};function fR(){return{text:zn}}let Zl=48;for(;Zl<123;)zn[Zl]=Pn,Zl++,Zl===58?Zl=65:Zl===91&&(Zl=97);zn[43]=Pn;zn[45]=Pn;zn[46]=Pn;zn[95]=Pn;zn[72]=[Pn,Hv];zn[104]=[Pn,Hv];zn[87]=[Pn,Bv];zn[119]=[Pn,Bv];function hR(t,l,r){const a=this;let o,s;return c;function c(g){return!Tf(g)||!Gv.call(a,a.previous)||oh(a.events)?r(g):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),d(g))}function d(g){return Tf(g)?(t.consume(g),d):g===64?(t.consume(g),m):r(g)}function m(g){return g===46?t.check(cR,y,p)(g):g===45||g===95||xt(g)?(s=!0,t.consume(g),m):y(g)}function p(g){return t.consume(g),o=!0,m}function y(g){return s&&o&&Tt(a.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),l(g)):r(g)}}function dR(t,l,r){const a=this;return o;function o(c){return c!==87&&c!==119||!qv.call(a,a.previous)||oh(a.events)?r(c):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(sR,t.attempt(jv,t.attempt(Lv,s),r),r)(c))}function s(c){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),l(c)}}function mR(t,l,r){const a=this;let o="",s=!1;return c;function c(g){return(g===72||g===104)&&Qv.call(a,a.previous)&&!oh(a.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),o+=String.fromCodePoint(g),t.consume(g),d):r(g)}function d(g){if(Tt(g)&&o.length<5)return o+=String.fromCodePoint(g),t.consume(g),d;if(g===58){const v=o.toLowerCase();if(v==="http"||v==="https")return t.consume(g),m}return r(g)}function m(g){return g===47?(t.consume(g),s?p:(s=!0,m)):r(g)}function p(g){return g===null||Pu(g)||Ze(g)||$l(g)||uo(g)?r(g):t.attempt(jv,t.attempt(Lv,y),r)(g)}function y(g){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),l(g)}}function pR(t,l,r){let a=0;return o;function o(c){return(c===87||c===119)&&a<3?(a++,t.consume(c),o):c===46&&a===3?(t.consume(c),s):r(c)}function s(c){return c===null?r(c):l(c)}}function gR(t,l,r){let a,o,s;return c;function c(p){return p===46||p===95?t.check(Uv,m,d)(p):p===null||Ze(p)||$l(p)||p!==45&&uo(p)?m(p):(s=!0,t.consume(p),c)}function d(p){return p===95?a=!0:(o=a,a=void 0),t.consume(p),c}function m(p){return o||a||!s?r(p):l(p)}}function yR(t,l){let r=0,a=0;return o;function o(c){return c===40?(r++,t.consume(c),o):c===41&&a<r?s(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?t.check(Uv,l,s)(c):c===null||Ze(c)||$l(c)?l(c):(t.consume(c),o)}function s(c){return c===41&&a++,t.consume(c),o}}function bR(t,l,r){return a;function a(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(t.consume(d),a):d===38?(t.consume(d),s):d===93?(t.consume(d),o):d===60||d===null||Ze(d)||$l(d)?l(d):r(d)}function o(d){return d===null||d===40||d===91||Ze(d)||$l(d)?l(d):a(d)}function s(d){return Tt(d)?c(d):r(d)}function c(d){return d===59?(t.consume(d),a):Tt(d)?(t.consume(d),c):r(d)}}function vR(t,l,r){return a;function a(s){return t.consume(s),o}function o(s){return xt(s)?r(s):l(s)}}function qv(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||Ze(t)}function Qv(t){return!Tt(t)}function Gv(t){return!(t===47||Tf(t))}function Tf(t){return t===43||t===45||t===46||t===95||xt(t)}function oh(t){let l=t.length,r=!1;for(;l--;){const a=t[l][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){r=!0;break}if(a._gfmAutolinkLiteralWalkedInto){r=!1;break}}return t.length>0&&!r&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const xR={tokenize:zR,partial:!0};function SR(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:CR,continuation:{tokenize:TR},exit:AR}},text:{91:{name:"gfmFootnoteCall",tokenize:ER},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:kR,resolveTo:wR}}}}function kR(t,l,r){const a=this;let o=a.events.length;const s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c;for(;o--;){const m=a.events[o][1];if(m.type==="labelImage"){c=m;break}if(m.type==="gfmFootnoteCall"||m.type==="labelLink"||m.type==="label"||m.type==="image"||m.type==="link")break}return d;function d(m){if(!c||!c._balanced)return r(m);const p=bn(a.sliceSerialize({start:c.end,end:a.now()}));return p.codePointAt(0)!==94||!s.includes(p.slice(1))?r(m):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(m),t.exit("gfmFootnoteCallLabelMarker"),l(m))}}function wR(t,l){let r=t.length;for(;r--;)if(t[r][1].type==="labelImage"&&t[r][0]==="enter"){t[r][1];break}t[r+1][1].type="data",t[r+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},t[r+3][1].start),end:Object.assign({},t[t.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},t[r+3][1].end),end:Object.assign({},t[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},t[t.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},d=[t[r+1],t[r+2],["enter",a,l],t[r+3],t[r+4],["enter",o,l],["exit",o,l],["enter",s,l],["enter",c,l],["exit",c,l],["exit",s,l],t[t.length-2],t[t.length-1],["exit",a,l]];return t.splice(r,t.length-r+1,...d),t}function ER(t,l,r){const a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s=0,c;return d;function d(g){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),m}function m(g){return g!==94?r(g):(t.enter("gfmFootnoteCallMarker"),t.consume(g),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",p)}function p(g){if(s>999||g===93&&!c||g===null||g===91||Ze(g))return r(g);if(g===93){t.exit("chunkString");const v=t.exit("gfmFootnoteCallString");return o.includes(bn(a.sliceSerialize(v)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),l):r(g)}return Ze(g)||(c=!0),s++,t.consume(g),g===92?y:p}function y(g){return g===91||g===92||g===93?(t.consume(g),s++,p):p(g)}}function CR(t,l,r){const a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s,c=0,d;return m;function m(E){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(E),t.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(E){return E===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(E),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",y):r(E)}function y(E){if(c>999||E===93&&!d||E===null||E===91||Ze(E))return r(E);if(E===93){t.exit("chunkString");const A=t.exit("gfmFootnoteDefinitionLabelString");return s=bn(a.sliceSerialize(A)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(E),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),v}return Ze(E)||(d=!0),c++,t.consume(E),E===92?g:y}function g(E){return E===91||E===92||E===93?(t.consume(E),c++,y):y(E)}function v(E){return E===58?(t.enter("definitionMarker"),t.consume(E),t.exit("definitionMarker"),o.includes(s)||o.push(s),Ne(t,x,"gfmFootnoteDefinitionWhitespace")):r(E)}function x(E){return l(E)}}function TR(t,l,r){return t.check(pa,l,t.attempt(xR,l,r))}function AR(t){t.exit("gfmFootnoteDefinition")}function zR(t,l,r){const a=this;return Ne(t,o,"gfmFootnoteDefinitionIndent",5);function o(s){const c=a.events[a.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?l(s):r(s)}}function RR(t){let r=(t||{}).singleTilde;const a={name:"strikethrough",tokenize:s,resolveAll:o};return r==null&&(r=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function o(c,d){let m=-1;for(;++m<c.length;)if(c[m][0]==="enter"&&c[m][1].type==="strikethroughSequenceTemporary"&&c[m][1]._close){let p=m;for(;p--;)if(c[p][0]==="exit"&&c[p][1].type==="strikethroughSequenceTemporary"&&c[p][1]._open&&c[m][1].end.offset-c[m][1].start.offset===c[p][1].end.offset-c[p][1].start.offset){c[m][1].type="strikethroughSequence",c[p][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},c[p][1].start),end:Object.assign({},c[m][1].end)},g={type:"strikethroughText",start:Object.assign({},c[p][1].end),end:Object.assign({},c[m][1].start)},v=[["enter",y,d],["enter",c[p][1],d],["exit",c[p][1],d],["enter",g,d]],x=d.parser.constructs.insideSpan.null;x&&Jt(v,v.length,0,oo(x,c.slice(p+1,m),d)),Jt(v,v.length,0,[["exit",g,d],["enter",c[m][1],d],["exit",c[m][1],d],["exit",y,d]]),Jt(c,p-1,m-p+3,v),m=p+v.length-2;break}}for(m=-1;++m<c.length;)c[m][1].type==="strikethroughSequenceTemporary"&&(c[m][1].type="data");return c}function s(c,d,m){const p=this.previous,y=this.events;let g=0;return v;function v(E){return p===126&&y[y.length-1][1].type!=="characterEscape"?m(E):(c.enter("strikethroughSequenceTemporary"),x(E))}function x(E){const A=Ii(p);if(E===126)return g>1?m(E):(c.consume(E),g++,x);if(g<2&&!r)return m(E);const z=c.exit("strikethroughSequenceTemporary"),C=Ii(E);return z._open=!C||C===2&&!!A,z._close=!A||A===2&&!!C,d(E)}}}class OR{constructor(){this.map=[]}add(l,r,a){_R(this,l,r,a)}consume(l){if(this.map.sort(function(s,c){return s[0]-c[0]}),this.map.length===0)return;let r=this.map.length;const a=[];for(;r>0;)r-=1,a.push(l.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),l.length=this.map[r][0];a.push(l.slice()),l.length=0;let o=a.pop();for(;o;){for(const s of o)l.push(s);o=a.pop()}this.map.length=0}}function _R(t,l,r,a){let o=0;if(!(r===0&&a.length===0)){for(;o<t.map.length;){if(t.map[o][0]===l){t.map[o][1]+=r,t.map[o][2].push(...a);return}o+=1}t.map.push([l,r,a])}}function MR(t,l){let r=!1;const a=[];for(;l<t.length;){const o=t[l];if(r){if(o[0]==="enter")o[1].type==="tableContent"&&a.push(t[l+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(t[l-1][1].type==="tableDelimiterMarker"){const s=a.length-1;a[s]=a[s]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(r=!0);l+=1}return a}function DR(){return{flow:{null:{name:"table",tokenize:NR,resolveAll:jR}}}}function NR(t,l,r){const a=this;let o=0,s=0,c;return d;function d(q){let ie=a.events.length-1;for(;ie>-1;){const ue=a.events[ie][1].type;if(ue==="lineEnding"||ue==="linePrefix")ie--;else break}const te=ie>-1?a.events[ie][1].type:null,ye=te==="tableHead"||te==="tableRow"?Q:m;return ye===Q&&a.parser.lazy[a.now().line]?r(q):ye(q)}function m(q){return t.enter("tableHead"),t.enter("tableRow"),p(q)}function p(q){return q===124||(c=!0,s+=1),y(q)}function y(q){return q===null?r(q):pe(q)?s>1?(s=0,a.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(q),t.exit("lineEnding"),x):r(q):Oe(q)?Ne(t,y,"whitespace")(q):(s+=1,c&&(c=!1,o+=1),q===124?(t.enter("tableCellDivider"),t.consume(q),t.exit("tableCellDivider"),c=!0,y):(t.enter("data"),g(q)))}function g(q){return q===null||q===124||Ze(q)?(t.exit("data"),y(q)):(t.consume(q),q===92?v:g)}function v(q){return q===92||q===124?(t.consume(q),g):g(q)}function x(q){return a.interrupt=!1,a.parser.lazy[a.now().line]?r(q):(t.enter("tableDelimiterRow"),c=!1,Oe(q)?Ne(t,E,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):E(q))}function E(q){return q===45||q===58?z(q):q===124?(c=!0,t.enter("tableCellDivider"),t.consume(q),t.exit("tableCellDivider"),A):ee(q)}function A(q){return Oe(q)?Ne(t,z,"whitespace")(q):z(q)}function z(q){return q===58?(s+=1,c=!0,t.enter("tableDelimiterMarker"),t.consume(q),t.exit("tableDelimiterMarker"),C):q===45?(s+=1,C(q)):q===null||pe(q)?W(q):ee(q)}function C(q){return q===45?(t.enter("tableDelimiterFiller"),B(q)):ee(q)}function B(q){return q===45?(t.consume(q),B):q===58?(c=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(q),t.exit("tableDelimiterMarker"),j):(t.exit("tableDelimiterFiller"),j(q))}function j(q){return Oe(q)?Ne(t,W,"whitespace")(q):W(q)}function W(q){return q===124?E(q):q===null||pe(q)?!c||o!==s?ee(q):(t.exit("tableDelimiterRow"),t.exit("tableHead"),l(q)):ee(q)}function ee(q){return r(q)}function Q(q){return t.enter("tableRow"),J(q)}function J(q){return q===124?(t.enter("tableCellDivider"),t.consume(q),t.exit("tableCellDivider"),J):q===null||pe(q)?(t.exit("tableRow"),l(q)):Oe(q)?Ne(t,J,"whitespace")(q):(t.enter("data"),V(q))}function V(q){return q===null||q===124||Ze(q)?(t.exit("data"),J(q)):(t.consume(q),q===92?ae:V)}function ae(q){return q===92||q===124?(t.consume(q),V):V(q)}}function jR(t,l){let r=-1,a=!0,o=0,s=[0,0,0,0],c=[0,0,0,0],d=!1,m=0,p,y,g;const v=new OR;for(;++r<t.length;){const x=t[r],E=x[1];x[0]==="enter"?E.type==="tableHead"?(d=!1,m!==0&&(Dy(v,l,m,p,y),y=void 0,m=0),p={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},v.add(r,0,[["enter",p,l]])):E.type==="tableRow"||E.type==="tableDelimiterRow"?(a=!0,g=void 0,s=[0,0,0,0],c=[0,r+1,0,0],d&&(d=!1,y={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},v.add(r,0,[["enter",y,l]])),o=E.type==="tableDelimiterRow"?2:y?3:1):o&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")?(a=!1,c[2]===0&&(s[1]!==0&&(c[0]=c[1],g=Fu(v,l,s,o,void 0,g),s=[0,0,0,0]),c[2]=r)):E.type==="tableCellDivider"&&(a?a=!1:(s[1]!==0&&(c[0]=c[1],g=Fu(v,l,s,o,void 0,g)),s=c,c=[s[1],r,0,0])):E.type==="tableHead"?(d=!0,m=r):E.type==="tableRow"||E.type==="tableDelimiterRow"?(m=r,s[1]!==0?(c[0]=c[1],g=Fu(v,l,s,o,r,g)):c[1]!==0&&(g=Fu(v,l,c,o,r,g)),o=0):o&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")&&(c[3]=r)}for(m!==0&&Dy(v,l,m,p,y),v.consume(l.events),r=-1;++r<l.events.length;){const x=l.events[r];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=MR(l.events,r))}return t}function Fu(t,l,r,a,o,s){const c=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",d="tableContent";r[0]!==0&&(s.end=Object.assign({},Xi(l.events,r[0])),t.add(r[0],0,[["exit",s,l]]));const m=Xi(l.events,r[1]);if(s={type:c,start:Object.assign({},m),end:Object.assign({},m)},t.add(r[1],0,[["enter",s,l]]),r[2]!==0){const p=Xi(l.events,r[2]),y=Xi(l.events,r[3]),g={type:d,start:Object.assign({},p),end:Object.assign({},y)};if(t.add(r[2],0,[["enter",g,l]]),a!==2){const v=l.events[r[2]],x=l.events[r[3]];if(v[1].end=Object.assign({},x[1].end),v[1].type="chunkText",v[1].contentType="text",r[3]>r[2]+1){const E=r[2]+1,A=r[3]-r[2]-1;t.add(E,A,[])}}t.add(r[3]+1,0,[["exit",g,l]])}return o!==void 0&&(s.end=Object.assign({},Xi(l.events,o)),t.add(o,0,[["exit",s,l]]),s=void 0),s}function Dy(t,l,r,a,o){const s=[],c=Xi(l.events,r);o&&(o.end=Object.assign({},c),s.push(["exit",o,l])),a.end=Object.assign({},c),s.push(["exit",a,l]),t.add(r+1,0,s)}function Xi(t,l){const r=t[l],a=r[0]==="enter"?"start":"end";return r[1][a]}const LR={name:"tasklistCheck",tokenize:BR};function UR(){return{text:{91:LR}}}function BR(t,l,r){const a=this;return o;function o(m){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?r(m):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(m),t.exit("taskListCheckMarker"),s)}function s(m){return Ze(m)?(t.enter("taskListCheckValueUnchecked"),t.consume(m),t.exit("taskListCheckValueUnchecked"),c):m===88||m===120?(t.enter("taskListCheckValueChecked"),t.consume(m),t.exit("taskListCheckValueChecked"),c):r(m)}function c(m){return m===93?(t.enter("taskListCheckMarker"),t.consume(m),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),d):r(m)}function d(m){return pe(m)?l(m):Oe(m)?t.check({tokenize:HR},l,r)(m):r(m)}}function HR(t,l,r){return Ne(t,a,"whitespace");function a(o){return o===null?r(o):l(o)}}function qR(t){return Pb([fR(),SR(),RR(t),DR(),UR()])}const QR={};function GR(t){const l=this,r=t||QR,a=l.data(),o=a.micromarkExtensions||(a.micromarkExtensions=[]),s=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),c=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);o.push(qR(r)),s.push(uR()),c.push(oR(r))}function Ny({children:t}){return _.jsx("div",{className:"md",children:_.jsx(AA,{remarkPlugins:[GR,BA],children:t})})}function FR({sessionId:t}){const{entries:l,loading:r,error:a}=dw(t),o=D.useRef(null),s=D.useRef(!0),c=()=>{const d=o.current;d&&(s.current=d.scrollHeight-d.scrollTop-d.clientHeight<120)};return D.useLayoutEffect(()=>{const d=o.current;d&&s.current&&(d.scrollTop=d.scrollHeight)},[l]),D.useEffect(()=>{s.current=!0},[t]),t?_.jsx("div",{ref:o,onScroll:c,className:"min-w-0 flex-1 overflow-y-auto overflow-x-hidden px-3 py-3",children:r&&l.length===0?_.jsx(ao,{label:"Loading transcript…"}):a&&l.length===0?_.jsx(Kn,{children:a}):l.length===0?_.jsx(Kn,{children:"No messages yet."}):_.jsx("div",{className:"flex min-w-0 flex-col gap-2.5",children:l.map(d=>_.jsx(YR,{e:d},`${d.rowid}-${d.id}`))})}):_.jsx(Kn,{children:"No active session in this workspace."})}function YR({e:t}){return t.role==="user"?_.jsx("div",{className:"flex justify-end",children:_.jsxs(jy,{className:fn("max-w-[85%] bg-accent-soft text-text",t.queued&&"opacity-60"),children:[t.queued?_.jsx(VR,{children:"queued"}):null,_.jsx(Ny,{children:t.text})]})}):t.role==="tool"?_.jsx("div",{className:"overflow-hidden rounded-xl border border-border-soft bg-surface/60 px-3 py-2",children:_.jsx("pre",{className:"whitespace-pre-wrap font-mono text-[12px] leading-relaxed text-muted [overflow-wrap:anywhere]",children:t.text})}):t.role==="system"?_.jsx("div",{className:"px-2 text-center text-[11px] text-faint",children:t.text}):_.jsx("div",{className:"flex justify-start",children:_.jsx(jy,{className:fn("max-w-[92%] bg-surface",t.role==="thinking"&&"italic text-muted"),children:_.jsx(Ny,{children:t.text})})})}function jy({children:t,className:l}){return _.jsx("div",{className:fn("min-w-0 rounded-2xl px-3.5 py-2.5 text-[14px] leading-relaxed [overflow-wrap:anywhere]",l),children:t})}function VR({children:t}){return _.jsx("div",{className:"mb-1 text-[10px] font-semibold uppercase tracking-wide text-faint",children:t})}function XR(){const{workspaceId:t}=FS(),[l,r]=D.useState(!1),[a,o]=D.useState(null),{data:s,isLoading:c}=bb(),{data:d}=fw(t);D.useEffect(()=>o(null),[t]);const m=s?.workspaces.find(x=>x.id===t),p=s?.actuator;if(!m)return _.jsxs("div",{className:"flex h-full flex-col overflow-hidden",children:[_.jsx(pf,{title:"Session",menu:!0}),c?_.jsx(ao,{}):_.jsx("div",{className:"p-6 text-center text-sm text-muted",children:"Workspace not found."})]});const y=d?.sessions??[],g=(a&&y.some(x=>x.id===a)?a:null)??m.active_session_id??y[0]?.id??null,v=[m.repo_name,m.branch,jb(m.model)].filter(Boolean).join(" · ");return _.jsxs("div",{className:"flex h-full min-w-0 overflow-hidden",children:[_.jsxs("div",{className:"flex min-w-0 flex-1 flex-col overflow-hidden",children:[_.jsx(pf,{title:Ju(m),subtitle:v,menu:!0,right:_.jsx("button",{type:"button",onClick:()=>r(x=>!x),"aria-label":"Toggle diff panel","aria-pressed":l,className:fn("flex size-9 shrink-0 items-center justify-center rounded-full text-muted transition active:bg-surface-2",l&&"bg-surface-2 text-text"),children:_.jsx(Jk,{size:19})})}),y.length>1?_.jsx(IR,{sessions:y,activeId:g,onSelect:o}):null,_.jsx(FR,{sessionId:g}),_.jsx(fE,{sessionId:g,workspaceId:m.id,actuator:p})]}),l?_.jsx(ZR,{workspaceId:m.id,onClose:()=>r(!1)}):null]})}function IR({sessions:t,activeId:l,onSelect:r}){return _.jsx("nav",{className:"flex shrink-0 gap-1 overflow-x-auto border-b border-border-soft bg-bg px-3 py-2",children:t.map(a=>_.jsxs("button",{type:"button",onClick:()=>r(a.id),className:fn("pill flex shrink-0 items-center gap-1.5",a.id===l&&"pill-active"),children:[a.status==="working"?_.jsx("span",{className:"dot dot-working size-1.5!"}):null,_.jsx("span",{className:"max-w-36 truncate",children:a.title||"Untitled"}),a.unread_count?_.jsx(Lb,{children:a.unread_count}):null]},a.id))})}function ZR({workspaceId:t,onClose:l}){return _.jsxs("aside",{className:"fixed inset-0 z-40 flex flex-col bg-bg lg:static lg:z-auto lg:w-[380px] lg:shrink-0 lg:border-l lg:border-border-soft xl:w-[460px]",children:[_.jsxs("header",{className:"pt-safe flex items-center gap-2 border-b border-border-soft px-3 pb-2.5",children:[_.jsx("span",{className:"flex-1 text-[15px] font-semibold",children:"Diff"}),_.jsx("button",{type:"button",onClick:l,"aria-label":"Close diff panel",className:"-mr-1 flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:_.jsx(pb,{size:20})})]}),_.jsx(mE,{workspaceId:t})]})}function KR(){return _.jsxs("div",{className:"pt-safe pb-safe flex h-full flex-col items-center justify-center gap-5 px-8 text-center",children:[_.jsx("img",{src:"/icon.svg",alt:"",className:"size-20 rounded-3xl"}),_.jsxs("div",{children:[_.jsx("h1",{className:"text-xl font-semibold",children:"Conductor Remote"}),_.jsx("p",{className:"mt-1 text-sm text-muted",children:"Phone control panel for your local agents"})]}),_.jsxs("p",{className:"max-w-xs text-sm leading-relaxed text-muted",children:["Open the URL the relay printed on startup — it carries your access token in the address (",_.jsx("span",{className:"font-mono text-faint",children:"/#token=…"}),"). Then use"," ",_.jsx("b",{className:"text-text",children:"Add to Home Screen"})," to install it."]})]})}function JR(t,l){return[...t].sort((r,a)=>{const o=+!!a.pinned_at-+!!r.pinned_at;return o||(l==="name"?Ju(r).localeCompare(Ju(a)):l==="created"?a.created_at.localeCompare(r.created_at):a.updated_at.localeCompare(r.updated_at))})}function PR(t,l){if(l==="none")return[{key:"all",label:"",items:t}];const r=new Map;for(const a of t){const o=l==="status"?oE(a):a.repo_name??"",s=r.get(o);s?s.push(a):r.set(o,[a])}return l==="status"?[...Fg,...[...r.keys()].filter(o=>!Fg.includes(o))].filter(o=>r.has(o)).map(o=>({key:`status:${o}`,label:sE(o),status:o,items:r.get(o)??[]})):[...r.keys()].sort((a,o)=>a.localeCompare(o)).map(a=>({key:`repo:${a}`,label:a||"No repo",items:r.get(a)??[]}))}function $R({selectedId:t}){const l=Uf(),r=cn(C=>C.setSidebarOpen),a=cn(C=>C.view),o=cn(C=>C.toggleGroup),[s,c]=D.useState(!1),{data:d,isLoading:m,isError:p,error:y}=bb(),g=d?.workspaces??[],v=[...new Set(g.map(C=>C.repo_name).filter(C=>!!C))].sort();a.repo&&!v.includes(a.repo)&&v.push(a.repo);const x=a.repo?g.filter(C=>C.repo_name===a.repo):g,E=PR(JR(x,a.sortBy),a.groupBy),A=C=>{l(`/w/${C}`),r(!1)},z=g.length?a.repo?`${x.length} of ${g.length} · ${a.repo}`:`${g.length} active`:void 0;return _.jsxs("div",{className:"flex h-full min-w-0 flex-col overflow-hidden",children:[_.jsxs("div",{className:"relative",children:[_.jsx(pf,{title:"Workspaces",subtitle:z,right:_.jsxs(_.Fragment,{children:[_.jsxs("button",{type:"button",onClick:()=>c(C=>!C),"aria-label":"View options",className:"relative flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:[_.jsx(nw,{size:18}),a.repo?_.jsx("span",{className:"absolute right-1.5 top-1.5 size-1.5 rounded-full bg-accent"}):null]}),_.jsx("button",{type:"button",onClick:()=>r(!1),"aria-label":"Close workspaces",className:"flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2 md:hidden",children:_.jsx(pb,{size:20})})]})}),s?_.jsx(eO,{repos:v,view:a,onClose:()=>c(!1)}):null]}),_.jsx("nav",{className:"pb-safe min-w-0 flex-1 overflow-y-auto overflow-x-hidden px-3 py-3",children:m&&!d?_.jsx(ao,{label:"Loading workspaces…"}):p?_.jsxs(Kn,{children:[y?.message,_.jsx("br",{}),_.jsx("br",{}),"Check the relay is running and the token is correct."]}):g.length===0?_.jsx(Kn,{children:"No active workspaces. Start one in Conductor and it’ll appear here."}):x.length===0?_.jsxs(Kn,{children:["No workspaces in ",a.repo,"."]}):E.map(C=>{const B=!!C.label&&a.collapsed.includes(C.key);return _.jsxs("section",{children:[C.label?_.jsxs("button",{type:"button",onClick:()=>o(C.key),className:"flex w-full items-center gap-2 px-1 py-2 text-sm font-semibold",children:[_.jsx(WR,{status:C.status}),_.jsx("span",{className:"truncate",children:C.label}),B?_.jsx("span",{className:"font-normal text-muted text-xs",children:C.items.length}):null,_.jsx(Zk,{size:14,className:fn("ml-auto shrink-0 text-faint transition-transform",B&&"-rotate-90")})]}):null,B?null:_.jsx("ul",{className:"flex flex-col gap-2 pb-2",children:C.items.map(j=>_.jsx("li",{className:"fade-in",children:_.jsx("button",{type:"button",className:fn("card w-full",j.id===t&&"border-accent/50 bg-surface-2"),onClick:()=>A(j.id),children:_.jsx(tO,{w:j})})},j.id))})]},C.key)})})]})}function WR({status:t}){if(!t)return null;const r={done:"var(--color-done)","in-review":"var(--color-idle)","in-progress":"var(--color-working)"}[t];return r?_.jsx("span",{className:"dot size-2",style:{background:r}}):_.jsx("span",{className:"dot size-2 border border-faint bg-transparent"})}function eO({repos:t,view:l,onClose:r}){const a=cn(o=>o.setView);return _.jsxs(_.Fragment,{children:[_.jsx("div",{className:"fixed inset-0 z-20",onClick:r,"aria-hidden":!0}),_.jsxs("div",{className:"fade-in absolute right-2 top-full z-30 mt-1 flex w-64 flex-col gap-2.5 rounded-2xl border border-border bg-surface p-3 shadow-xl",children:[_.jsx(tf,{id:"view-group",label:"Group by",children:_.jsx(nf,{id:"view-group",value:l.groupBy,onChange:o=>a({groupBy:o}),options:[["status","Status"],["repo","Repo"],["none","None"]]})}),_.jsx(tf,{id:"view-repo",label:"Repo",children:_.jsx(nf,{id:"view-repo",value:l.repo??"all",onChange:o=>a({repo:o==="all"?null:o}),options:[["all","All repos"],...t.map(o=>[o,o])]})}),_.jsx(tf,{id:"view-sort",label:"Sort by",children:_.jsx(nf,{id:"view-sort",value:l.sortBy,onChange:o=>a({sortBy:o}),options:[["updated","Updated"],["created","Created"],["name","Name"]]})})]})]})}function tf({id:t,label:l,children:r}){return _.jsxs("div",{className:"flex items-center justify-between gap-3 text-sm text-muted",children:[_.jsx("label",{htmlFor:t,children:l}),r]})}function nf({id:t,value:l,options:r,onChange:a}){return _.jsx("select",{id:t,value:l,onChange:o=>a(o.target.value),className:"max-w-36 truncate rounded-lg border border-border bg-surface-2 px-2 py-1.5 text-sm text-text [color-scheme:dark]",children:r.map(([o,s])=>_.jsx("option",{value:o,children:s},o))})}function tO({w:t}){const l=Nb(t),r=jb(t.model),a=t.context_used_percent;return _.jsxs(_.Fragment,{children:[_.jsx(hE,{status:l,className:"mt-1.5 self-start"}),_.jsxs("div",{className:"min-w-0 flex-1 overflow-hidden",children:[_.jsxs("div",{className:"flex items-center gap-2",children:[_.jsx("span",{className:"min-w-0 flex-1 truncate font-medium",children:Ju(t)}),t.pinned_at?_.jsx("span",{className:"shrink-0 text-xs text-faint",children:"📌"}):null,t.unread?_.jsx(Lb,{children:t.unread}):null,_.jsx("span",{className:"shrink-0 text-xs capitalize text-muted",children:uE(t)})]}),_.jsxs("div",{className:"mt-1 flex min-w-0 items-center gap-2 text-xs text-muted",children:[t.repo_name?_.jsx("span",{className:"shrink-0 font-mono text-faint",children:t.repo_name}):null,t.branch?_.jsx(Yg,{className:"min-w-0 flex-1 truncate",children:t.branch}):null]}),_.jsxs("div",{className:"mt-1 flex min-w-0 items-center gap-2 text-xs text-muted",children:[r?_.jsx(Yg,{children:r}):null,typeof a=="number"&&a>0?_.jsxs("span",{className:"shrink-0 text-faint",children:[Math.round(a),"% ctx"]}):null,_.jsx("span",{className:"ml-auto shrink-0 pl-2 text-[11px] text-faint",children:cE(t.updated_at)})]})]})]})}function nO(){return cn(l=>l.token)?_.jsxs(ak,{children:[_.jsxs(Wr,{element:_.jsx(lO,{}),children:[_.jsx(Wr,{index:!0,element:_.jsx(iO,{})}),_.jsx(Wr,{path:"/w/:workspaceId",element:_.jsx(XR,{})})]}),_.jsx(Wr,{path:"*",element:_.jsx(lk,{to:"/",replace:!0})})]}):_.jsx(KR,{})}function lO(){const t=HS("/w/:workspaceId"),l=cn(a=>a.sidebarOpen),r=cn(a=>a.setSidebarOpen);return _.jsxs("div",{className:"flex h-full overflow-hidden",children:[l?_.jsx("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:()=>r(!1),"aria-hidden":!0}):null,_.jsx("aside",{className:fn("fixed inset-y-0 left-0 z-50 flex w-[85%] max-w-80 flex-col border-r border-border-soft bg-bg transition-transform duration-200 ease-out","md:static md:z-auto md:w-72 md:max-w-none md:shrink-0 md:translate-x-0 md:transition-none lg:w-80",l?"translate-x-0":"-translate-x-full"),children:_.jsx($R,{selectedId:t?.params.workspaceId})}),_.jsx("main",{className:"flex min-w-0 flex-1 flex-col",children:_.jsx(ik,{})})]})}function iO(){const t=cn(l=>l.setSidebarOpen);return _.jsxs("div",{className:"grid h-full place-items-center",children:[_.jsx("button",{type:"button",onClick:()=>t(!0),className:"pill pill-active md:hidden",children:"Browse workspaces"}),_.jsx("span",{className:"hidden text-sm text-muted md:block",children:"Select a workspace"})]})}s0({immediate:!0});const rO=new j0({defaultOptions:{queries:{staleTime:1e3,retry:1,refetchOnWindowFocus:!0}}}),Fv=document.getElementById("root");if(!Fv)throw new Error("#root missing");nS.createRoot(Fv).render(_.jsx(D.StrictMode,{children:_.jsx(B0,{client:rO,children:_.jsx(Ok,{children:_.jsx(nO,{})})})}));