@cuadra-ai/uikit 0.1.31 → 0.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.
Files changed (44) hide show
  1. package/README.md +142 -2
  2. package/dist/adapters/attachmentAdapter.d.ts +63 -4
  3. package/dist/adapters/attachmentAdapter.d.ts.map +1 -1
  4. package/dist/components/CuadraChat.d.ts +54 -108
  5. package/dist/components/CuadraChat.d.ts.map +1 -1
  6. package/dist/components/CuadraChatContext.d.ts +141 -0
  7. package/dist/components/CuadraChatContext.d.ts.map +1 -0
  8. package/dist/components/ErrorBoundary.d.ts +79 -0
  9. package/dist/components/ErrorBoundary.d.ts.map +1 -0
  10. package/dist/index.cjs +425 -18
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.d.ts +8 -0
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.mjs +52836 -2805
  15. package/dist/index.mjs.map +1 -1
  16. package/dist/lib/cuadraChatClient.d.ts +2 -1
  17. package/dist/lib/cuadraChatClient.d.ts.map +1 -1
  18. package/dist/magic-string.es-B81Zo59j.cjs +11 -0
  19. package/dist/magic-string.es-B81Zo59j.cjs.map +1 -0
  20. package/dist/magic-string.es-uPKorP4O.js +664 -0
  21. package/dist/magic-string.es-uPKorP4O.js.map +1 -0
  22. package/dist/test/fixtures/index.d.ts +7 -0
  23. package/dist/test/fixtures/index.d.ts.map +1 -0
  24. package/dist/test/fixtures/mockChats.d.ts +41 -0
  25. package/dist/test/fixtures/mockChats.d.ts.map +1 -0
  26. package/dist/test/fixtures/mockModels.d.ts +31 -0
  27. package/dist/test/fixtures/mockModels.d.ts.map +1 -0
  28. package/dist/test/fixtures/mockStreams.d.ts +60 -0
  29. package/dist/test/fixtures/mockStreams.d.ts.map +1 -0
  30. package/dist/test/utils/index.d.ts +6 -0
  31. package/dist/test/utils/index.d.ts.map +1 -0
  32. package/dist/test/utils/mockFetch.d.ts +67 -0
  33. package/dist/test/utils/mockFetch.d.ts.map +1 -0
  34. package/dist/test/utils/renderWithProviders.d.ts +136 -0
  35. package/dist/test/utils/renderWithProviders.d.ts.map +1 -0
  36. package/dist/types/props.d.ts +500 -0
  37. package/dist/types/props.d.ts.map +1 -0
  38. package/dist/uikit.css +1 -1
  39. package/dist/utils/sanitize.d.ts +90 -0
  40. package/dist/utils/sanitize.d.ts.map +1 -0
  41. package/dist/widget/cuadra-uikit.css +1 -1
  42. package/dist/widget/cuadra-uikit.umd.js +24 -24
  43. package/dist/widget/cuadra-uikit.umd.js.map +1 -1
  44. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -1,23 +1,430 @@
1
- "use strict";var xr=Object.defineProperty;var br=(e,r,t)=>r in e?xr(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var ae=(e,r,t)=>br(e,typeof r!="symbol"?r+"":r,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),y=require("react"),qe=require("react-dom"),M=require("@assistant-ui/react"),He=require("@assistant-ui/react-markdown");var fe=typeof document<"u"?document.currentScript:null;let ge=!1,dt=!1;function ft(){if(dt||(dt=!0,typeof document>"u"||typeof window>"u"))return;const e=document.querySelector("link[data-cuadra-uikit-styles]"),r=document.querySelector("style[data-cuadra-uikit-styles]");if(e||r){ge=!0;return}try{const t=document.createElement("div");t.className="cuadra-flex",t.style.visibility="hidden",t.style.position="absolute",t.style.pointerEvents="none",document.body.appendChild(t);const a=window.getComputedStyle(t).display==="flex";if(document.body.removeChild(t),a){ge=!0;return}}catch{}yr()}function yr(){if(ge)return;const e=document.createElement("link");e.setAttribute("data-cuadra-uikit-styles","true"),e.rel="stylesheet",e.type="text/css";try{const r=new URL(typeof document>"u"?require("url").pathToFileURL(__filename).href:fe&&fe.tagName.toUpperCase()==="SCRIPT"&&fe.src||new URL("index.cjs",document.baseURI).href),t=new URL("../dist/uikit.css",r);e.href=t.href}catch{e.href="/node_modules/@cuadra-ai/uikit/dist/uikit.css"}e.onload=()=>{ge=!0},e.onerror=()=>{const r=["/node_modules/@cuadra-ai/uikit/dist/uikit.css","https://unpkg.com/@cuadra-ai/uikit@latest/dist/uikit.css"];let t=0;const a=()=>{t<r.length&&(e.href=r[t++],e.onerror=a,e.onload=()=>{ge=!0})};a()},document.head.appendChild(e)}typeof document<"u"&&typeof window<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",ft):ft());const kr=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),wr=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,t,a)=>a?a.toUpperCase():t.toLowerCase()),ht=e=>{const r=wr(e);return r.charAt(0).toUpperCase()+r.slice(1)},At=(...e)=>e.filter((r,t,a)=>!!r&&r.trim()!==""&&a.indexOf(r)===t).join(" ").trim(),vr=e=>{for(const r in e)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};var Cr={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 jr=y.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:t=2,absoluteStrokeWidth:a,className:i="",children:o,iconNode:n,...c},s)=>y.createElement("svg",{ref:s,...Cr,width:r,height:r,stroke:e,strokeWidth:a?Number(t)*24/Number(r):t,className:At("lucide",i),...!o&&!vr(c)&&{"aria-hidden":"true"},...c},[...n.map(([l,f])=>y.createElement(l,f)),...Array.isArray(o)?o:[o]]));const O=(e,r)=>{const t=y.forwardRef(({className:a,...i},o)=>y.createElement(jr,{ref:o,iconNode:r,className:At(`lucide-${kr(ht(e))}`,`lucide-${e}`,a),...i}));return t.displayName=ht(e),t};const Tr=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Mr=O("arrow-up",Tr);const Ar=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Sr=O("check",Ar);const Ir=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ve=O("chevron-down",Ir);const Nr=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 18a6 6 0 0 0 0-12v12z",key:"j4l70d"}]],Pr=O("contrast",Nr);const Rr=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Lr=O("copy",Rr);const Er=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],Dr=O("ellipsis-vertical",Er);const _r=[["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:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],Fr=O("file-spreadsheet",_r);const zr=[["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:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],St=O("file-text",zr);const $r=[["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:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M11 18h2",key:"12mj7e"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"M9 13v-.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v.5",key:"qbrxap"}]],Or=O("file-type",$r);const Ur=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],It=O("loader-circle",Ur);const Br=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Wr=O("log-out",Br);const qr=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Hr=O("menu",qr);const Vr=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],Nt=O("paperclip",Vr);const Xr=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Kr=O("plus",Xr);const Qr=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ge=O("x",Qr);class Pt{constructor(r,t,a=!1){ae(this,"baseUrl");ae(this,"sessionToken",null);ae(this,"isProxyMode",!1);this.baseUrl=r.replace(/\/$/,""),this.isProxyMode=a,t&&(this.sessionToken=t)}setSessionToken(r){this.sessionToken=r}getUrl(r){if(this.isProxyMode){const t=`${this.baseUrl}${r.replace("/v1","")}`;return t.startsWith("/")||t.startsWith("./"),t}return`${this.baseUrl}${r}`}async createOrContinueChat(r,t){const a=this.getUrl("/v1/chats"),o={"Content-Type":"application/json",Accept:"text/event-stream","Accept-Encoding":"identity","Cache-Control":"no-cache","X-Accel-Buffering":"no","Idempotency-Key":this.generateIdempotencyKey()};this.sessionToken&&(o.Authorization=`Bearer ${this.sessionToken}`);const n={...r,stream:!0},c=await fetch(a,{method:"POST",headers:o,body:JSON.stringify(n),signal:t,cache:"no-store"});if(!c.ok){const s=await c.json().catch(()=>({}));throw new Error(s.detail||s.message||`API error: ${c.status} ${c.statusText}`)}if(!c.body)throw new Error("Response body is null");return c.body}async getChat(r){const t=this.getUrl(`/v1/chats/${r}`),a={"Content-Type":"application/json"};this.sessionToken&&(a.Authorization=`Bearer ${this.sessionToken}`);const i=await fetch(t,{method:"GET",headers:a});if(!i.ok){const o=await i.json().catch(()=>({}));throw new Error(o.detail||o.message||`API error: ${i.status} ${i.statusText}`)}return i.json()}async listChats(r){const t=this.getUrl("/v1/chats"),a=t.startsWith("/")||t.startsWith("./")?new URL(t,window.location.origin):new URL(t);r?.limit&&a.searchParams.set("limit",r.limit.toString()),r?.cursor&&a.searchParams.set("cursor",r.cursor),r?.["expand[]"]&&r["expand[]"].forEach(n=>{a.searchParams.append("expand[]",n)});const i={"Content-Type":"application/json"};this.sessionToken&&(i.Authorization=`Bearer ${this.sessionToken}`);const o=await fetch(a.toString(),{method:"GET",headers:i});if(!o.ok){const n=await o.json().catch(()=>({}));throw new Error(n.detail||n.message||`API error: ${o.status} ${o.statusText}`)}return o.json()}generateIdempotencyKey(){try{if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID()}catch{}const r=a=>Array.from({length:a},()=>Math.floor(Math.random()*16).toString(16)).join(""),t=()=>{const a=["8","9","a","b"];return a[Math.floor(Math.random()*a.length)]};return`${r(8)}-${r(4)}-4${r(3)}-${t()}${r(3)}-${r(12)}`}async updateChat(r,t){const a=`/v1/chats/${r}`,i=this.getUrl(a),o=i.startsWith("/")||i.startsWith("./")?new URL(i,window.location.origin):new URL(i),c={"Content-Type":"application/json","Idempotency-Key":this.generateIdempotencyKey()};this.sessionToken&&(c.Authorization=`Bearer ${this.sessionToken}`);const s=await fetch(o.toString(),{method:"PATCH",headers:c,body:JSON.stringify(t)});if(!s.ok){const f=await s.text();let d={};try{d=JSON.parse(f)}catch{d={detail:f}}throw new Error(d.detail||d.message||`API error: ${s.status} ${s.statusText}`)}if(s.status===204)return{};const l=await s.text();if(!l)return{};try{return JSON.parse(l)}catch{return{}}}async deleteChat(r){const t=`/v1/chats/${r}`,a=this.getUrl(t),i=a.startsWith("/")||a.startsWith("./")?new URL(a,window.location.origin):new URL(a),n={"Content-Type":"application/json","Idempotency-Key":this.generateIdempotencyKey()};this.sessionToken&&(n.Authorization=`Bearer ${this.sessionToken}`);const c=await fetch(i.toString(),{method:"DELETE",headers:n});if(!c.ok){const s=await c.json().catch(()=>({}));throw new Error(s.detail||s.message||`API error: ${c.status} ${c.statusText}`)}}async listModels(r){const t=this.getUrl("/v1/models"),a=t.startsWith("/")||t.startsWith("./")?new URL(t,window.location.origin):new URL(t);r?.limit&&a.searchParams.set("limit",r.limit.toString()),r?.cursor&&a.searchParams.set("cursor",r.cursor),r?.["expand[]"]&&r["expand[]"].forEach(n=>{a.searchParams.append("expand[]",n)});const i={"Content-Type":"application/json"};this.sessionToken&&(i.Authorization=`Bearer ${this.sessionToken}`);const o=await fetch(a.toString(),{method:"GET",headers:i});if(!o.ok){const n=await o.json().catch(()=>({}));throw new Error(n.detail||n.message||`API error: ${o.status} ${o.statusText}`)}return o.json()}async getModel(r){const t=this.getUrl(`/v1/models/${r}`),a={"Content-Type":"application/json"};this.sessionToken&&(a.Authorization=`Bearer ${this.sessionToken}`);const i=await fetch(t,{method:"GET",headers:a});if(!i.ok){const o=await i.json().catch(()=>({}));throw new Error(o.detail||o.message||`API error: ${i.status} ${i.statusText}`)}return i.json()}async uploadFile(r,t,a){const i=this.getUrl("/v1/files"),o=this.generateIdempotencyKey(),n=new FormData;n.append("file",r),t&&n.append("resource_type",t),a&&n.append("resource_id",a);const c={"Idempotency-Key":o};this.sessionToken&&(c.Authorization=`Bearer ${this.sessionToken}`);const s=await fetch(i,{method:"POST",headers:c,body:n});if(!s.ok){const l=await s.json().catch(()=>({}));throw new Error(l.detail||l.message||`API error: ${s.status} ${s.statusText}`)}return s.json()}}async function*Gr(e,r){const t=e.getReader(),a=new TextDecoder;let i="";try{for(;;){if(r?.aborted){t.cancel();break}const{done:o,value:n}=await t.read();if(o)break;i+=a.decode(n,{stream:!0});const c=i.split(`
2
-
3
- `);i=c.pop()||"";for(const s of c)if(s.startsWith("data: ")){const l=s.slice(6);if(l.trim()==="[DONE]"){yield{done:!0};continue}try{yield JSON.parse(l)}catch{}}}}finally{t.releaseLock()}}function Zr(e){return e.map(r=>{let t="";if(typeof r.content=="string")t=r.content;else if(Array.isArray(r.content)){const a=r.content.find(i=>i.type==="text");a&&typeof a=="object"&&"text"in a&&(t=a.text)}return{role:r.role,content:t}})}function Jr(e){return{id:e.id,role:e.role,content:[{type:"text",text:e.content}],createdAt:new Date(e.createdAt),metadata:{custom:{}},...e.role==="assistant"&&{status:{type:"complete",reason:"stop"},metadata:{unstable_state:null,unstable_annotations:[],unstable_data:[],steps:[],custom:{}}},...e.role==="user"&&{attachments:[]}}}const Ie=new Map;function Yr(e,r){return{async list(){const t=[];let i,o=0;do{const c=await e.listChats({limit:50,cursor:i}),s=c.items||[];Array.isArray(s)&&s.length>0&&t.push(...s),i=c.nextCursor||void 0,o++}while(i&&o<50);return{threads:t.map(c=>{const s=c.id;return!s||c.deletedAt?null:{status:"regular",remoteId:s,title:c.title||"New Chat",createdAt:c.createdAt?new Date(c.createdAt):new Date,updatedAt:c.updatedAt?new Date(c.updatedAt):new Date}}).filter(c=>c!==null)}},async initialize(t){return{remoteId:Ie.get(t)||t,externalId:void 0}},async rename(t,a){await e.updateChat(t,{title:a})},async archive(t){},async unarchive(t){},async delete(t){await e.deleteChat(t)},async generateTitle(t,a){return new ReadableStream},async fetch(t){try{const a=await e.getChat(t);return{status:"regular",remoteId:a.id||t,title:a.title||"Chat",createdAt:a.createdAt?new Date(a.createdAt):new Date,updatedAt:a.updatedAt?new Date(a.updatedAt):new Date}}catch{return{status:"regular",remoteId:t,createdAt:new Date,updatedAt:new Date}}},updateRemoteId(t,a){Ie.set(t,a),r?.(t,a)},unstable_Provider:({children:t})=>{const i=M.useThreadListItem()?.remoteId,o=y.useMemo(()=>({async load(){if(!i)return{messages:[]};try{const c=await e.getChat(i);return!c.messages||c.messages.length===0?{messages:[]}:{messages:c.messages.map(l=>Jr(l))}}catch{return{messages:[]}}},async append(c){}}),[i,e]),n=y.useMemo(()=>({history:o}),[o]);return u.jsx(M.RuntimeAdapterProvider,{adapters:n,children:t})}}}class ea{constructor(){ae(this,"messageMetadata",new Map);ae(this,"currentMessageId",null);ae(this,"listeners",new Set)}setCurrentMessage(r){this.currentMessageId=r}update(r){if(!this.currentMessageId)return;const t=this.messageMetadata.get(this.currentMessageId)||{},a=r.sources;a&&a.length>0&&(this.messageMetadata.set(this.currentMessageId,{...t,sources:a}),this.notify())}get(){return this.currentMessageId?this.messageMetadata.get(this.currentMessageId)||{}:{}}getForMessage(r){return this.messageMetadata.get(r)||{}}getCurrentMessageId(){return this.currentMessageId}clear(){this.currentMessageId=null}subscribe(r){return this.listeners.add(r),()=>this.listeners.delete(r)}notify(){this.listeners.forEach(r=>r())}}const J=new ea,mt=new Map,Xe=[];let Me=[];function Rt(e,r,t=50,a=800){Xe.push({question:e,response:r,streamingSpeed:t,initialDelay:a})}function Lt(e,r){const{modelId:t,systemPrompt:a,ephemeral:i,enableReasoning:o,onChatCreated:n,onUserMessage:c,onThreadIdUpdate:s,onBeforeRequest:l,mockResponseOnBlocked:f}=r;let d;return{async*run(p){const{messages:g,abortSignal:m,context:k}=p,x=Xe.shift();if(x){c?.();const j=x.initialDelay??800;if(j>0&&await new Promise(N=>setTimeout(N,j)),m?.aborted)throw new Error("Request aborted");const S=x.response.split(" ");let E="";const P=x.streamingSpeed||50,q=`premade-${Date.now()}`;i&&n?.(q);for(let N=0;N<S.length;N++){if(m?.aborted)throw new Error("Request aborted");E+=(N===0?"":" ")+S[N],yield{content:[{type:"text",text:E}]},await new Promise(W=>setTimeout(W,P+Math.random()*(P*.5)))}yield{content:[{type:"text",text:E}]},Me.push({role:"user",content:x.question},{role:"assistant",content:x.response});return}const b=k?.threadId;let w=b;if(!w&&g.length>0){const j=g.find(S=>S.role==="user");j&&(w=(typeof j.content=="string"?j.content:Array.isArray(j.content)&&j.content.find(E=>E.type==="text")?.text||"").substring(0,50))}let v;b&&(v=Ie.get(b)),!v&&w&&(v=mt.get(w)),!v&&d&&(v=d),c?.();let R=g,I=-1;for(let j=g.length-1;j>=0;j--)if(g[j].role==="assistant"){I=j;break}(v||I>=0)&&I>=0&&(R=g.slice(I+1));const C=Zr(R);if(Me.length>0&&!v){const j=Me.map(S=>({role:S.role,content:S.content}));C.unshift(...j),Me=[]}const L={messages:C,chatId:v||null,systemPrompt:a,ephemeral:i,enableReasoning:o,stream:!0};if(t&&t.trim()!==""&&(L.modelId=t),l&&!await l()){if(f){const S=typeof f=="function"?f():f,E=g.filter(W=>W.role==="user"),P=E.length>0?E[E.length-1]:void 0;let q="Message";P&&(typeof P.content=="string"?q=P.content:Array.isArray(P.content)&&(q=P.content.find(H=>H.type==="text")?.text||"Message")),Rt(q,S,40,400);const N=Xe.shift();if(N){c?.();const W=N.initialDelay??400;if(W>0&&await new Promise(G=>setTimeout(G,W)),m?.aborted)throw new Error("Request aborted");const H=N.response.split(" ");let re="";const oe=N.streamingSpeed||40,se=`mock-${Date.now()}`;i&&n?.(se);for(let G=0;G<H.length;G++){if(m?.aborted)throw new Error("Request aborted");re+=(G===0?"":" ")+H[G],yield{content:[{type:"text",text:re}]},await new Promise(ve=>setTimeout(ve,oe+Math.random()*(oe*.3)))}yield{content:[{type:"text",text:re}]};return}}throw new Error("Request blocked")}const D=await e.createOrContinueChat(L,m);let A="",h="",U;const F=[];let V=0,X=!1;const ke=`msg_${Date.now()}_${Math.random().toString(36).substring(2,9)}`;J.clear(),J.setCurrentMessage(ke);const we=()=>{F.length!==V&&(V=F.length,J.update({sources:F.length>0?[...F]:void 0}))},Q=()=>{we();const j=[];return h&&j.push({type:"reasoning",text:h}),A&&j.push({type:"text",text:A}),j.length===0&&j.push({type:"text",text:""}),{content:j}};for await(const j of Gr(D,m)){if(m?.aborted)throw new Error("Request aborted");const S=j.id||j.chatId||j.messageId;S&&!U&&(U=S,d=S,n?.(S),b&&s&&(s(b,S),Ie.set(b,S)),w&&mt.set(w,S));const E=j.sources;if(E&&Array.isArray(E)&&E.length>0)for(const N of E)F.some(W=>W.sourceId===N.sourceId)||F.push({sourceId:N.sourceId,filename:N.filename||"Unknown",score:N.score??1,chunkId:N.chunkId,datasetId:N.datasetId});const P=j.reasoning;if(P&&P.length>0&&(h+=P,yield Q()),j.type)switch(j.type){case"source-document":j.sourceId&&F.push({sourceId:j.sourceId,filename:j.title||"Unknown",score:1});continue;case"reasoning-start":continue;case"reasoning-delta":j.delta&&(h+=j.delta),(A||h)&&(yield Q());continue;case"reasoning-end":(A||h)&&(yield Q());continue;case"text-delta":j.delta&&(h&&!X&&!A&&(X=!0,await new Promise(N=>setTimeout(N,400))),A+=j.delta),A&&(yield Q());continue;case"error":throw new Error(j.errorText||"Stream error");case"text-start":case"text-end":case"start":case"start-step":case"finish-step":case"finish":continue}const q=j.delta;if(q!=null&&(h&&!X&&!A&&(X=!0,await new Promise(N=>setTimeout(N,400))),A+=q),j.content&&(A+=j.content),j.message&&(A+=j.message.content||""),j.finished){(A||h||F.length>0)&&(yield Q());break}(A||h||F.length>0)&&(yield Q())}(A||h||F.length>0)&&(yield Q())}}}function Et(){return{accept:".pdf,.docx,.txt,.md,.csv,.json,image/*",async add({file:e}){let r="file";return e.type.startsWith("image/")?r="image":(e.type.includes("pdf")||e.type.includes("document")||e.type.includes("text")||e.name.endsWith(".pdf")||e.name.endsWith(".docx")||e.name.endsWith(".txt")||e.name.endsWith(".md")||e.name.endsWith(".csv")||e.name.endsWith(".json"))&&(r="document"),{id:`${e.name}-${Date.now()}`,type:r,name:e.name,contentType:e.type,file:e,status:{type:"requires-action",reason:"composer-send"}}},async remove(){},async send(e){if(e.type==="image"&&e.file){const r=await new Promise((t,a)=>{const i=new FileReader;i.onload=()=>t(i.result),i.onerror=a,i.readAsDataURL(e.file)});return{...e,status:{type:"complete"},content:[{type:"image",image:r}]}}return{...e,status:{type:"complete"},content:[]}}}}function ta({children:e,baseUrl:r,sessionToken:t,isProxyMode:a=!1,mode:i="multiChat",modelId:o,onModelChange:n,ephemeral:c=!1,systemPrompt:s,enableReasoning:l=!1,initialThreadId:f,onError:d,onChatCreated:p,onUserMessage:g,onThreadIdUpdate:m,onChatsLoaded:k,enableAttachments:x=!1,onBeforeRequest:b,mockResponseOnBlocked:w}){const v=y.useMemo(()=>new Pt(r,t||void 0,a),[r,t,a]),[R,I]=y.useState(o||null);y.useEffect(()=>{o&&I(o)},[o]);const C=y.useCallback(A=>{p?.(A)},[p]),L=y.useCallback((A,h)=>{m?.(A,h)},[m]),D=y.useMemo(()=>Lt(v,{modelId:R||void 0,systemPrompt:s,ephemeral:c,enableReasoning:l,onChatCreated:C,onUserMessage:g,onBeforeRequest:b,mockResponseOnBlocked:w}),[v,R,s,c,l,C,g,b,w]);return i==="singleChat"?u.jsx(ra,{modelAdapter:D,enableAttachments:x,children:e}):u.jsx(aa,{client:v,modelAdapterOptions:{modelId:R||void 0,systemPrompt:s,ephemeral:c,enableReasoning:l,onChatCreated:C,onUserMessage:g,onBeforeRequest:b,mockResponseOnBlocked:w},initialThreadId:f,onChatsLoaded:k,onThreadIdUpdate:L,onError:d,enableAttachments:x,children:e})}function ra({modelAdapter:e,enableAttachments:r,children:t}){const a=y.useMemo(()=>r?Et():void 0,[r]),i=M.useLocalRuntime(e,{adapters:{...a&&{attachments:a}}});return u.jsx(M.AssistantRuntimeProvider,{runtime:i,children:t})}function aa({client:e,modelAdapterOptions:r,initialThreadId:t,onChatsLoaded:a,onThreadIdUpdate:i,onError:o,enableAttachments:n,children:c}){const s=y.useMemo(()=>Yr(e,(k,x)=>{i?.(k,x)}),[e,i]),l=y.useCallback((k,x)=>{s.updateRemoteId&&s.updateRemoteId(k,x),i?.(k,x)},[s,i]),f=y.useMemo(()=>({...s,async list(){const k=await s.list();return a?.(),k}}),[s,a]);y.useEffect(()=>{window.__cuadraThreadListAdapter=f,window.__cuadraThreadListRuntime=null},[f]);const d=y.useMemo(()=>Lt(e,{...r,onThreadIdUpdate:l}),[e,r,l]),p=y.useMemo(()=>n?Et():void 0,[n]),g=y.useCallback(()=>M.useLocalRuntime(d,{adapters:{...p&&{attachments:p}}}),[d,p]),m=M.unstable_useRemoteThreadListRuntime({adapter:f,runtimeHook:g});return y.useEffect(()=>{window.__cuadraThreadListRuntime=m},[m]),u.jsx(M.AssistantRuntimeProvider,{runtime:m,children:c})}function pt(e,r){const t=String(e);if(typeof r!="string")throw new TypeError("Expected character");let a=0,i=t.indexOf(r);for(;i!==-1;)a++,i=t.indexOf(r,i+r.length);return a}const xe=Le(/[A-Za-z]/),Ze=Le(/[\dA-Za-z]/);function na(e){return e!==null&&(e<32||e===127)}function de(e){return e!==null&&e<-2}function B(e){return e!==null&&(e<0||e===32)}function Y(e){return e===-2||e===-1||e===32}const Re=Le(/\p{P}|\p{S}/u),ie=Le(/\s/);function Le(e){return r;function r(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function ia(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Ee=(function(e){if(e==null)return ua;if(typeof e=="function")return De(e);if(typeof e=="object")return Array.isArray(e)?oa(e):sa(e);if(typeof e=="string")return ca(e);throw new Error("Expected function, string, or object as test")});function oa(e){const r=[];let t=-1;for(;++t<e.length;)r[t]=Ee(e[t]);return De(a);function a(...i){let o=-1;for(;++o<r.length;)if(r[o].apply(this,i))return!0;return!1}}function sa(e){const r=e;return De(t);function t(a){const i=a;let o;for(o in e)if(i[o]!==r[o])return!1;return!0}}function ca(e){return De(r);function r(t){return t&&t.type===e}}function De(e){return r;function r(t,a,i){return!!(la(t)&&e.call(this,t,typeof a=="number"?a:void 0,i||void 0))}}function ua(){return!0}function la(e){return e!==null&&typeof e=="object"&&"type"in e}const Dt=[],da=!0,Ke=!1,fa="skip";function _t(e,r,t,a){let i;typeof r=="function"&&typeof t!="function"?(a=t,t=r):i=r;const o=Ee(i),n=a?-1:1;c(e,void 0,[])();function c(s,l,f){const d=s&&typeof s=="object"?s:{};if(typeof d.type=="string"){const g=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(s.type+(g?"<"+g+">":""))+")"})}return p;function p(){let g=Dt,m,k,x;if((!r||o(s,l,f[f.length-1]||void 0))&&(g=ha(t(s,f)),g[0]===Ke))return g;if("children"in s&&s.children){const b=s;if(b.children&&g[0]!==fa)for(k=(a?b.children.length:-1)+n,x=f.concat(b);k>-1&&k<b.children.length;){const w=b.children[k];if(m=c(w,k,x)(),m[0]===Ke)return m;k=typeof m[1]=="number"?m[1]:k+n}}return g}}}function ha(e){return Array.isArray(e)?e:typeof e=="number"?[da,e]:e==null?Dt:[e]}function ma(e,r,t){const i=Ee((t||{}).ignore||[]),o=pa(r);let n=-1;for(;++n<o.length;)_t(e,"text",c);function c(l,f){let d=-1,p;for(;++d<f.length;){const g=f[d],m=p?p.children:void 0;if(i(g,m?m.indexOf(g):void 0,p))return;p=g}if(p)return s(l,f)}function s(l,f){const d=f[f.length-1],p=o[n][0],g=o[n][1];let m=0;const x=d.children.indexOf(l);let b=!1,w=[];p.lastIndex=0;let v=p.exec(l.value);for(;v;){const R=v.index,I={index:v.index,input:v.input,stack:[...f,l]};let C=g(...v,I);if(typeof C=="string"&&(C=C.length>0?{type:"text",value:C}:void 0),C===!1?p.lastIndex=R+1:(m!==R&&w.push({type:"text",value:l.value.slice(m,R)}),Array.isArray(C)?w.push(...C):C&&w.push(C),m=R+v[0].length,b=!0),!p.global)break;v=p.exec(l.value)}return b?(m<l.value.length&&w.push({type:"text",value:l.value.slice(m)}),d.children.splice(x,1,...w)):w=[l],x+w.length}}function pa(e){const r=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let a=-1;for(;++a<t.length;){const i=t[a];r.push([ga(i[0]),xa(i[1])])}return r}function ga(e){return typeof e=="string"?new RegExp(ia(e),"g"):e}function xa(e){return typeof e=="function"?e:function(){return e}}const ze="phrasing",$e=["autolink","link","image","label"];function ba(){return{transforms:[Ta],enter:{literalAutolink:ka,literalAutolinkEmail:Oe,literalAutolinkHttp:Oe,literalAutolinkWww:Oe},exit:{literalAutolink:ja,literalAutolinkEmail:Ca,literalAutolinkHttp:wa,literalAutolinkWww:va}}}function ya(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ze,notInConstruct:$e},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ze,notInConstruct:$e},{character:":",before:"[ps]",after:"\\/",inConstruct:ze,notInConstruct:$e}]}}function ka(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Oe(e){this.config.enter.autolinkProtocol.call(this,e)}function wa(e){this.config.exit.autolinkProtocol.call(this,e)}function va(e){this.config.exit.data.call(this,e);const r=this.stack[this.stack.length-1];r.type,r.url="http://"+this.sliceSerialize(e)}function Ca(e){this.config.exit.autolinkEmail.call(this,e)}function ja(e){this.exit(e)}function Ta(e){ma(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Ma],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Aa]],{ignore:["link","linkReference"]})}function Ma(e,r,t,a,i){let o="";if(!Ft(i)||(/^w/i.test(r)&&(t=r+t,r="",o="http://"),!Sa(t)))return!1;const n=Ia(t+a);if(!n[0])return!1;const c={type:"link",title:null,url:o+r+n[0],children:[{type:"text",value:r+n[0]}]};return n[1]?[c,{type:"text",value:n[1]}]:c}function Aa(e,r,t,a){return!Ft(a,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+t,children:[{type:"text",value:r+"@"+t}]}}function Sa(e){const r=e.split(".");return!(r.length<2||r[r.length-1]&&(/_/.test(r[r.length-1])||!/[a-zA-Z\d]/.test(r[r.length-1]))||r[r.length-2]&&(/_/.test(r[r.length-2])||!/[a-zA-Z\d]/.test(r[r.length-2])))}function Ia(e){const r=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!r)return[e,void 0];e=e.slice(0,r.index);let t=r[0],a=t.indexOf(")");const i=pt(e,"(");let o=pt(e,")");for(;a!==-1&&i>o;)e+=t.slice(0,a+1),t=t.slice(a+1),a=t.indexOf(")"),o++;return[e,t]}function Ft(e,r){const t=e.input.charCodeAt(e.index-1);return(e.index===0||ie(t)||Re(t))&&(!r||t!==47)}function ye(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}zt.peek=za;function Na(){this.buffer()}function Pa(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Ra(){this.buffer()}function La(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Ea(e){const r=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=ye(this.sliceSerialize(e)).toLowerCase(),t.label=r}function Da(e){this.exit(e)}function _a(e){const r=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=ye(this.sliceSerialize(e)).toLowerCase(),t.label=r}function Fa(e){this.exit(e)}function za(){return"["}function zt(e,r,t,a){const i=t.createTracker(a);let o=i.move("[^");const n=t.enter("footnoteReference"),c=t.enter("reference");return o+=i.move(t.safe(t.associationId(e),{after:"]",before:o})),c(),n(),o+=i.move("]"),o}function $a(){return{enter:{gfmFootnoteCallString:Na,gfmFootnoteCall:Pa,gfmFootnoteDefinitionLabelString:Ra,gfmFootnoteDefinition:La},exit:{gfmFootnoteCallString:Ea,gfmFootnoteCall:Da,gfmFootnoteDefinitionLabelString:_a,gfmFootnoteDefinition:Fa}}}function Oa(e){let r=!1;return e&&e.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:t,footnoteReference:zt},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(a,i,o,n){const c=o.createTracker(n);let s=c.move("[^");const l=o.enter("footnoteDefinition"),f=o.enter("label");return s+=c.move(o.safe(o.associationId(a),{before:s,after:"]"})),f(),s+=c.move("]:"),a.children&&a.children.length>0&&(c.shift(4),s+=c.move((r?`
4
- `:" ")+o.indentLines(o.containerFlow(a,c.current()),r?$t:Ua))),l(),s}}function Ua(e,r,t){return r===0?e:$t(e,r,t)}function $t(e,r,t){return(t?"":" ")+e}const Ba=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Ot.peek=Xa;function Wa(){return{canContainEols:["delete"],enter:{strikethrough:Ha},exit:{strikethrough:Va}}}function qa(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Ba}],handlers:{delete:Ot}}}function Ha(e){this.enter({type:"delete",children:[]},e)}function Va(e){this.exit(e)}function Ot(e,r,t,a){const i=t.createTracker(a),o=t.enter("strikethrough");let n=i.move("~~");return n+=t.containerPhrasing(e,{...i.current(),before:n,after:"~"}),n+=i.move("~~"),o(),n}function Xa(){return"~"}function Ka(e){return e.length}function Qa(e,r){const t=r||{},a=(t.align||[]).concat(),i=t.stringLength||Ka,o=[],n=[],c=[],s=[];let l=0,f=-1;for(;++f<e.length;){const k=[],x=[];let b=-1;for(e[f].length>l&&(l=e[f].length);++b<e[f].length;){const w=Ga(e[f][b]);if(t.alignDelimiters!==!1){const v=i(w);x[b]=v,(s[b]===void 0||v>s[b])&&(s[b]=v)}k.push(w)}n[f]=k,c[f]=x}let d=-1;if(typeof a=="object"&&"length"in a)for(;++d<l;)o[d]=gt(a[d]);else{const k=gt(a);for(;++d<l;)o[d]=k}d=-1;const p=[],g=[];for(;++d<l;){const k=o[d];let x="",b="";k===99?(x=":",b=":"):k===108?x=":":k===114&&(b=":");let w=t.alignDelimiters===!1?1:Math.max(1,s[d]-x.length-b.length);const v=x+"-".repeat(w)+b;t.alignDelimiters!==!1&&(w=x.length+w+b.length,w>s[d]&&(s[d]=w),g[d]=w),p[d]=v}n.splice(1,0,p),c.splice(1,0,g),f=-1;const m=[];for(;++f<n.length;){const k=n[f],x=c[f];d=-1;const b=[];for(;++d<l;){const w=k[d]||"";let v="",R="";if(t.alignDelimiters!==!1){const I=s[d]-(x[d]||0),C=o[d];C===114?v=" ".repeat(I):C===99?I%2?(v=" ".repeat(I/2+.5),R=" ".repeat(I/2-.5)):(v=" ".repeat(I/2),R=v):R=" ".repeat(I)}t.delimiterStart!==!1&&!d&&b.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&w==="")&&(t.delimiterStart!==!1||d)&&b.push(" "),t.alignDelimiters!==!1&&b.push(v),b.push(w),t.alignDelimiters!==!1&&b.push(R),t.padding!==!1&&b.push(" "),(t.delimiterEnd!==!1||d!==l-1)&&b.push("|")}m.push(t.delimiterEnd===!1?b.join("").replace(/ +$/,""):b.join(""))}return m.join(`
5
- `)}function Ga(e){return e==null?"":String(e)}function gt(e){const r=typeof e=="string"?e.codePointAt(0):0;return r===67||r===99?99:r===76||r===108?108:r===82||r===114?114:0}function Za(e,r,t,a){const i=t.enter("blockquote"),o=t.createTracker(a);o.move("> "),o.shift(2);const n=t.indentLines(t.containerFlow(e,o.current()),Ja);return i(),n}function Ja(e,r,t){return">"+(t?"":" ")+e}function Ya(e,r){return xt(e,r.inConstruct,!0)&&!xt(e,r.notInConstruct,!1)}function xt(e,r,t){if(typeof r=="string"&&(r=[r]),!r||r.length===0)return t;let a=-1;for(;++a<r.length;)if(e.includes(r[a]))return!0;return!1}function bt(e,r,t,a){let i=-1;for(;++i<t.unsafe.length;)if(t.unsafe[i].character===`
6
- `&&Ya(t.stack,t.unsafe[i]))return/[ \t]/.test(a.before)?"":" ";return`\\
7
- `}function en(e,r){const t=String(e);let a=t.indexOf(r),i=a,o=0,n=0;if(typeof r!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===i?++o>n&&(n=o):o=1,i=a+r.length,a=t.indexOf(r,i);return n}function tn(e,r){return!!(r.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function rn(e){const r=e.options.fence||"`";if(r!=="`"&&r!=="~")throw new Error("Cannot serialize code with `"+r+"` for `options.fence`, expected `` ` `` or `~`");return r}function an(e,r,t,a){const i=rn(t),o=e.value||"",n=i==="`"?"GraveAccent":"Tilde";if(tn(e,t)){const d=t.enter("codeIndented"),p=t.indentLines(o,nn);return d(),p}const c=t.createTracker(a),s=i.repeat(Math.max(en(o,i)+1,3)),l=t.enter("codeFenced");let f=c.move(s);if(e.lang){const d=t.enter(`codeFencedLang${n}`);f+=c.move(t.safe(e.lang,{before:f,after:" ",encode:["`"],...c.current()})),d()}if(e.lang&&e.meta){const d=t.enter(`codeFencedMeta${n}`);f+=c.move(" "),f+=c.move(t.safe(e.meta,{before:f,after:`
8
- `,encode:["`"],...c.current()})),d()}return f+=c.move(`
9
- `),o&&(f+=c.move(o+`
10
- `)),f+=c.move(s),l(),f}function nn(e,r,t){return(t?"":" ")+e}function Je(e){const r=e.options.quote||'"';if(r!=='"'&&r!=="'")throw new Error("Cannot serialize title with `"+r+"` for `options.quote`, expected `\"`, or `'`");return r}function on(e,r,t,a){const i=Je(t),o=i==='"'?"Quote":"Apostrophe",n=t.enter("definition");let c=t.enter("label");const s=t.createTracker(a);let l=s.move("[");return l+=s.move(t.safe(t.associationId(e),{before:l,after:"]",...s.current()})),l+=s.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=t.enter("destinationLiteral"),l+=s.move("<"),l+=s.move(t.safe(e.url,{before:l,after:">",...s.current()})),l+=s.move(">")):(c=t.enter("destinationRaw"),l+=s.move(t.safe(e.url,{before:l,after:e.title?" ":`
11
- `,...s.current()}))),c(),e.title&&(c=t.enter(`title${o}`),l+=s.move(" "+i),l+=s.move(t.safe(e.title,{before:l,after:i,...s.current()})),l+=s.move(i),c()),n(),l}function sn(e){const r=e.options.emphasis||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize emphasis with `"+r+"` for `options.emphasis`, expected `*`, or `_`");return r}function be(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ne(e){if(e===null||B(e)||ie(e))return 1;if(Re(e))return 2}function Pe(e,r,t){const a=Ne(e),i=Ne(r);return a===void 0?i===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Ut.peek=cn;function Ut(e,r,t,a){const i=sn(t),o=t.enter("emphasis"),n=t.createTracker(a),c=n.move(i);let s=n.move(t.containerPhrasing(e,{after:i,before:c,...n.current()}));const l=s.charCodeAt(0),f=Pe(a.before.charCodeAt(a.before.length-1),l,i);f.inside&&(s=be(l)+s.slice(1));const d=s.charCodeAt(s.length-1),p=Pe(a.after.charCodeAt(0),d,i);p.inside&&(s=s.slice(0,-1)+be(d));const g=n.move(i);return o(),t.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},c+s+g}function cn(e,r,t){return t.options.emphasis||"*"}function un(e,r,t,a){let i,o,n;typeof r=="function"&&typeof t!="function"?(o=void 0,n=r,i=t):(o=r,n=t,i=a),_t(e,o,c,i);function c(s,l){const f=l[l.length-1],d=f?f.children.indexOf(s):void 0;return n(s,d,f)}}const ln={};function Bt(e,r){const t=ln,a=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Wt(e,a,i)}function Wt(e,r,t){if(dn(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(r&&"alt"in e&&e.alt)return e.alt;if("children"in e)return yt(e.children,r,t)}return Array.isArray(e)?yt(e,r,t):""}function yt(e,r,t){const a=[];let i=-1;for(;++i<e.length;)a[i]=Wt(e[i],r,t);return a.join("")}function dn(e){return!!(e&&typeof e=="object")}function fn(e,r){let t=!1;return un(e,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return t=!0,Ke}),!!((!e.depth||e.depth<3)&&Bt(e)&&(r.options.setext||t))}function hn(e,r,t,a){const i=Math.max(Math.min(6,e.depth||1),1),o=t.createTracker(a);if(fn(e,t)){const f=t.enter("headingSetext"),d=t.enter("phrasing"),p=t.containerPhrasing(e,{...o.current(),before:`
1
+ "use strict";var EU=Object.defineProperty;var TU=(t,a,i)=>a in t?EU(t,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[a]=i;var ot=(t,a,i)=>TU(t,typeof a!="symbol"?a+"":a,i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const X=require("react/jsx-runtime"),Ne=require("react"),Fs=require("react-dom"),kt=require("@assistant-ui/react"),tA=require("@assistant-ui/react-markdown");var hy=typeof document<"u"?document.currentScript:null;function wU(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const u=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(a,i,u.get?u:{enumerable:!0,get:()=>t[i]})}}return a.default=t,Object.freeze(a)}const CS=wU(Ne);let ES=!1,A2=!1;function _2(){if(A2||(A2=!0,typeof document>"u"||typeof window>"u"))return;const t=document.querySelector("link[data-cuadra-uikit-styles]"),a=document.querySelector("style[data-cuadra-uikit-styles]");if(t||a){ES=!0;return}try{const i=document.createElement("div");i.className="cuadra-flex",i.style.visibility="hidden",i.style.position="absolute",i.style.pointerEvents="none",document.body.appendChild(i);const u=window.getComputedStyle(i).display==="flex";if(document.body.removeChild(i),u){ES=!0;return}}catch{}xU()}function xU(){if(ES)return;const t=document.createElement("link");t.setAttribute("data-cuadra-uikit-styles","true"),t.rel="stylesheet",t.type="text/css";try{const a=new URL(typeof document>"u"?require("url").pathToFileURL(__filename).href:hy&&hy.tagName.toUpperCase()==="SCRIPT"&&hy.src||new URL("index.cjs",document.baseURI).href),i=new URL("../dist/uikit.css",a);t.href=i.href}catch{t.href="/node_modules/@cuadra-ai/uikit/dist/uikit.css"}t.onload=()=>{ES=!0},t.onerror=()=>{const a=["/node_modules/@cuadra-ai/uikit/dist/uikit.css","https://unpkg.com/@cuadra-ai/uikit@latest/dist/uikit.css"];let i=0;const u=()=>{i<a.length&&(t.href=a[i++],t.onerror=u,t.onload=()=>{ES=!0})};u()},document.head.appendChild(t)}typeof document<"u"&&typeof window<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",_2):_2());const RU=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),CU=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,i,u)=>u?u.toUpperCase():i.toLowerCase()),M2=t=>{const a=CU(t);return a.charAt(0).toUpperCase()+a.slice(1)},xz=(...t)=>t.filter((a,i,u)=>!!a&&a.trim()!==""&&u.indexOf(a)===i).join(" ").trim(),AU=t=>{for(const a in t)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};var _U={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 MU=Ne.forwardRef(({color:t="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:u,className:f="",children:m,iconNode:h,...y},b)=>Ne.createElement("svg",{ref:b,..._U,width:a,height:a,stroke:t,strokeWidth:u?Number(i)*24/Number(a):i,className:xz("lucide",f),...!m&&!AU(y)&&{"aria-hidden":"true"},...y},[...h.map(([v,x])=>Ne.createElement(v,x)),...Array.isArray(m)?m:[m]]));const el=(t,a)=>{const i=Ne.forwardRef(({className:u,...f},m)=>Ne.createElement(MU,{ref:m,iconNode:a,className:xz(`lucide-${RU(M2(t))}`,`lucide-${t}`,u),...f}));return i.displayName=M2(t),i};const OU=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],qU=el("arrow-up",OU);const DU=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],NU=el("check",DU);const jU=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],nA=el("chevron-down",jU);const zU=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 18a6 6 0 0 0 0-12v12z",key:"j4l70d"}]],kU=el("contrast",zU);const BU=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],UU=el("copy",BU);const LU=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],$U=el("ellipsis-vertical",LU);const HU=[["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:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],PU=el("file-spreadsheet",HU);const IU=[["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:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Rz=el("file-text",IU);const VU=[["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:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M11 18h2",key:"12mj7e"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"M9 13v-.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v.5",key:"qbrxap"}]],GU=el("file-type",VU);const YU=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Cz=el("loader-circle",YU);const XU=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],FU=el("log-out",XU);const QU=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],ZU=el("menu",QU);const JU=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],Az=el("paperclip",JU);const KU=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],WU=el("plus",KU);const e5=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],XA=el("x",e5);function t5(){if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();if(typeof crypto<"u"&&crypto.getRandomValues){const t=new Uint8Array(16);crypto.getRandomValues(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128;const a=Array.from(t,i=>i.toString(16).padStart(2,"0")).join("");return`${a.slice(0,8)}-${a.slice(8,12)}-${a.slice(12,16)}-${a.slice(16,20)}-${a.slice(20)}`}return typeof process<"u"&&process.env?.NODE_ENV==="development"&&console.warn("[CuadraUIKit] Using non-cryptographic fallback for UUID generation"),`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}-${Math.random().toString(36).slice(2)}`}class _z{constructor(a,i,u=!1){ot(this,"baseUrl");ot(this,"sessionToken",null);ot(this,"isProxyMode",!1);this.baseUrl=a.replace(/\/$/,""),this.isProxyMode=u,i&&(this.sessionToken=i)}setSessionToken(a){this.sessionToken=a}getUrl(a){if(this.isProxyMode){const i=`${this.baseUrl}${a.replace("/v1","")}`;return i.startsWith("/")||i.startsWith("./"),i}return`${this.baseUrl}${a}`}async createOrContinueChat(a,i){const u=this.getUrl("/v1/chats"),m={"Content-Type":"application/json",Accept:"text/event-stream","Accept-Encoding":"identity","Cache-Control":"no-cache","X-Accel-Buffering":"no","Idempotency-Key":this.generateIdempotencyKey()};this.sessionToken&&(m.Authorization=`Bearer ${this.sessionToken}`);const h={...a,stream:!0},y=await fetch(u,{method:"POST",headers:m,body:JSON.stringify(h),signal:i,cache:"no-store"});if(!y.ok){const b=await y.json().catch(()=>({}));throw new Error(b.detail||b.message||`API error: ${y.status} ${y.statusText}`)}if(!y.body)throw new Error("Response body is null");return y.body}async getChat(a){const i=this.getUrl(`/v1/chats/${a}`),u={"Content-Type":"application/json"};this.sessionToken&&(u.Authorization=`Bearer ${this.sessionToken}`);const f=await fetch(i,{method:"GET",headers:u});if(!f.ok){const m=await f.json().catch(()=>({}));throw new Error(m.detail||m.message||`API error: ${f.status} ${f.statusText}`)}return f.json()}async listChats(a){const i=this.getUrl("/v1/chats"),u=i.startsWith("/")||i.startsWith("./")?new URL(i,window.location.origin):new URL(i);a?.limit&&u.searchParams.set("limit",a.limit.toString()),a?.cursor&&u.searchParams.set("cursor",a.cursor),a?.["expand[]"]&&a["expand[]"].forEach(h=>{u.searchParams.append("expand[]",h)});const f={"Content-Type":"application/json"};this.sessionToken&&(f.Authorization=`Bearer ${this.sessionToken}`);const m=await fetch(u.toString(),{method:"GET",headers:f});if(!m.ok){const h=await m.json().catch(()=>({}));throw new Error(h.detail||h.message||`API error: ${m.status} ${m.statusText}`)}return m.json()}generateIdempotencyKey(){return t5()}async updateChat(a,i){const u=`/v1/chats/${a}`,f=this.getUrl(u),m=f.startsWith("/")||f.startsWith("./")?new URL(f,window.location.origin):new URL(f),y={"Content-Type":"application/json","Idempotency-Key":this.generateIdempotencyKey()};this.sessionToken&&(y.Authorization=`Bearer ${this.sessionToken}`);const b=await fetch(m.toString(),{method:"PATCH",headers:y,body:JSON.stringify(i)});if(!b.ok){const x=await b.text();let E={};try{E=JSON.parse(x)}catch{E={detail:x}}throw new Error(E.detail||E.message||`API error: ${b.status} ${b.statusText}`)}if(b.status===204)return{};const v=await b.text();if(!v)return{};try{return JSON.parse(v)}catch{return{}}}async deleteChat(a){const i=`/v1/chats/${a}`,u=this.getUrl(i),f=u.startsWith("/")||u.startsWith("./")?new URL(u,window.location.origin):new URL(u),h={"Content-Type":"application/json","Idempotency-Key":this.generateIdempotencyKey()};this.sessionToken&&(h.Authorization=`Bearer ${this.sessionToken}`);const y=await fetch(f.toString(),{method:"DELETE",headers:h});if(!y.ok){const b=await y.json().catch(()=>({}));throw new Error(b.detail||b.message||`API error: ${y.status} ${y.statusText}`)}}async listModels(a){const i=this.getUrl("/v1/models"),u=i.startsWith("/")||i.startsWith("./")?new URL(i,window.location.origin):new URL(i);a?.limit&&u.searchParams.set("limit",a.limit.toString()),a?.cursor&&u.searchParams.set("cursor",a.cursor),a?.["expand[]"]&&a["expand[]"].forEach(h=>{u.searchParams.append("expand[]",h)});const f={"Content-Type":"application/json"};this.sessionToken&&(f.Authorization=`Bearer ${this.sessionToken}`);const m=await fetch(u.toString(),{method:"GET",headers:f});if(!m.ok){const h=await m.json().catch(()=>({}));throw new Error(h.detail||h.message||`API error: ${m.status} ${m.statusText}`)}return m.json()}async getModel(a){const i=this.getUrl(`/v1/models/${a}`),u={"Content-Type":"application/json"};this.sessionToken&&(u.Authorization=`Bearer ${this.sessionToken}`);const f=await fetch(i,{method:"GET",headers:u});if(!f.ok){const m=await f.json().catch(()=>({}));throw new Error(m.detail||m.message||`API error: ${f.status} ${f.statusText}`)}return f.json()}async uploadFile(a,i,u){const f=this.getUrl("/v1/files"),m=this.generateIdempotencyKey(),h=new FormData;h.append("file",a),i&&h.append("resource_type",i),u&&h.append("resource_id",u);const y={"Idempotency-Key":m};this.sessionToken&&(y.Authorization=`Bearer ${this.sessionToken}`);const b=await fetch(f,{method:"POST",headers:y,body:h});if(!b.ok){const v=await b.json().catch(()=>({}));throw new Error(v.detail||v.message||`API error: ${b.status} ${b.statusText}`)}return b.json()}}async function*n5(t,a){const i=t.getReader(),u=new TextDecoder;let f="";try{for(;;){if(a?.aborted){i.cancel();break}const{done:m,value:h}=await i.read();if(m)break;f+=u.decode(h,{stream:!0});const y=f.split(`
2
+
3
+ `);f=y.pop()||"";for(const b of y)if(b.startsWith("data: ")){const v=b.slice(6);if(v.trim()==="[DONE]"){yield{done:!0};continue}try{yield JSON.parse(v)}catch{}}}}finally{i.releaseLock()}}function a5(t){return t.map(a=>{let i="";if(typeof a.content=="string")i=a.content;else if(Array.isArray(a.content)){const u=a.content.find(f=>f.type==="text");u&&typeof u=="object"&&"text"in u&&(i=u.text)}return{role:a.role,content:i}})}function r5(t){return{id:t.id,role:t.role,content:[{type:"text",text:t.content}],createdAt:new Date(t.createdAt),metadata:{custom:{}},...t.role==="assistant"&&{status:{type:"complete",reason:"stop"},metadata:{unstable_state:null,unstable_annotations:[],unstable_data:[],steps:[],custom:{}}},...t.role==="user"&&{attachments:[]}}}const $w=new Map;function l5(t,a){return{async list(){const i=[];let f,m=0;do{const y=await t.listChats({limit:50,cursor:f}),b=y.items||[];Array.isArray(b)&&b.length>0&&i.push(...b),f=y.nextCursor||void 0,m++}while(f&&m<50);return{threads:i.map(y=>{const b=y.id;return!b||y.deletedAt?null:{status:"regular",remoteId:b,title:y.title||"New Chat",createdAt:y.createdAt?new Date(y.createdAt):new Date,updatedAt:y.updatedAt?new Date(y.updatedAt):new Date}}).filter(y=>y!==null)}},async initialize(i){return{remoteId:$w.get(i)||i,externalId:void 0}},async rename(i,u){await t.updateChat(i,{title:u})},async archive(i){},async unarchive(i){},async delete(i){await t.deleteChat(i)},async generateTitle(i,u){return new ReadableStream},async fetch(i){try{const u=await t.getChat(i);return{status:"regular",remoteId:u.id||i,title:u.title||"Chat",createdAt:u.createdAt?new Date(u.createdAt):new Date,updatedAt:u.updatedAt?new Date(u.updatedAt):new Date}}catch{return{status:"regular",remoteId:i,createdAt:new Date,updatedAt:new Date}}},updateRemoteId(i,u){$w.set(i,u),a?.(i,u)},unstable_Provider:({children:i})=>{const f=kt.useThreadListItem()?.remoteId,m=Ne.useMemo(()=>({async load(){if(!f)return{messages:[]};try{const y=await t.getChat(f);return!y.messages||y.messages.length===0?{messages:[]}:{messages:y.messages.map(v=>r5(v))}}catch{return{messages:[]}}},async append(y){}}),[f,t]),h=Ne.useMemo(()=>({history:m}),[m]);return X.jsx(kt.RuntimeAdapterProvider,{adapters:h,children:i})}}}class i5{constructor(){ot(this,"messageMetadata",new Map);ot(this,"currentMessageId",null);ot(this,"listeners",new Set)}setCurrentMessage(a){this.currentMessageId=a}update(a){if(!this.currentMessageId)return;const i=this.messageMetadata.get(this.currentMessageId)||{},u=a.sources;u&&u.length>0&&(this.messageMetadata.set(this.currentMessageId,{...i,sources:u}),this.notify())}get(){return this.currentMessageId?this.messageMetadata.get(this.currentMessageId)||{}:{}}getForMessage(a){return this.messageMetadata.get(a)||{}}getCurrentMessageId(){return this.currentMessageId}clear(){this.currentMessageId=null}subscribe(a){return this.listeners.add(a),()=>this.listeners.delete(a)}notify(){this.listeners.forEach(a=>a())}}const Ps=new i5,O2=new Map,aA=[];let hw=[];function Mz(t,a,i=50,u=800){aA.push({question:t,response:a,streamingSpeed:i,initialDelay:u})}function Oz(t,a){const{modelId:i,systemPrompt:u,ephemeral:f,enableReasoning:m,onChatCreated:h,onUserMessage:y,onThreadIdUpdate:b,onBeforeRequest:v,mockResponseOnBlocked:x}=a;let E;return{async*run(R){const{messages:A,abortSignal:M,context:q}=R,N=aA.shift();if(N){y?.();const te=N.initialDelay??800;if(te>0&&await new Promise(xe=>setTimeout(xe,te)),M?.aborted)throw new Error("Request aborted");const De=N.response.split(" ");let je="";const Ye=N.streamingSpeed||50,Xe=`premade-${Date.now()}`;f&&h?.(Xe);for(let xe=0;xe<De.length;xe++){if(M?.aborted)throw new Error("Request aborted");je+=(xe===0?"":" ")+De[xe],yield{content:[{type:"text",text:je}]},await new Promise(Ie=>setTimeout(Ie,Ye+Math.random()*(Ye*.5)))}yield{content:[{type:"text",text:je}]},hw.push({role:"user",content:N.question},{role:"assistant",content:N.response});return}const _=q?.threadId;let L=_;if(!L&&A.length>0){const te=A.find(De=>De.role==="user");te&&(L=(typeof te.content=="string"?te.content:Array.isArray(te.content)&&te.content.find(je=>je.type==="text")?.text||"").substring(0,50))}let $;_&&($=$w.get(_)),!$&&L&&($=O2.get(L)),!$&&E&&($=E),y?.();let I=A,V=-1;for(let te=A.length-1;te>=0;te--)if(A[te].role==="assistant"){V=te;break}($||V>=0)&&V>=0&&(I=A.slice(V+1));const z=a5(I);if(hw.length>0&&!$){const te=hw.map(De=>({role:De.role,content:De.content}));z.unshift(...te),hw=[]}const k={messages:z,chatId:$||null,systemPrompt:u,ephemeral:f,enableReasoning:m,stream:!0};if(i&&i.trim()!==""&&(k.modelId=i),v&&!await v()){if(x){const De=typeof x=="function"?x():x,je=A.filter(Ie=>Ie.role==="user"),Ye=je.length>0?je[je.length-1]:void 0;let Xe="Message";Ye&&(typeof Ye.content=="string"?Xe=Ye.content:Array.isArray(Ye.content)&&(Xe=Ye.content.find(Je=>Je.type==="text")?.text||"Message")),Mz(Xe,De,40,400);const xe=aA.shift();if(xe){y?.();const Ie=xe.initialDelay??400;if(Ie>0&&await new Promise(ie=>setTimeout(ie,Ie)),M?.aborted)throw new Error("Request aborted");const Je=xe.response.split(" ");let at="";const Lt=xe.streamingSpeed||40,an=`mock-${Date.now()}`;f&&h?.(an);for(let ie=0;ie<Je.length;ie++){if(M?.aborted)throw new Error("Request aborted");at+=(ie===0?"":" ")+Je[ie],yield{content:[{type:"text",text:at}]},await new Promise(Pe=>setTimeout(Pe,Lt+Math.random()*(Lt*.3)))}yield{content:[{type:"text",text:at}]};return}}throw new Error("Request blocked")}const U=await t.createOrContinueChat(k,M);let F="",H="",J;const ve=[];let se=0,Se=!1;const ke=`msg_${Date.now()}_${Math.random().toString(36).substring(2,9)}`;Ps.clear(),Ps.setCurrentMessage(ke);const P=()=>{ve.length!==se&&(se=ve.length,Ps.update({sources:ve.length>0?[...ve]:void 0}))},ue=()=>{P();const te=[];return H&&te.push({type:"reasoning",text:H}),F&&te.push({type:"text",text:F}),te.length===0&&te.push({type:"text",text:""}),{content:te}};for await(const te of n5(U,M)){if(M?.aborted)throw new Error("Request aborted");const De=te.id||te.chatId||te.messageId;De&&!J&&(J=De,E=De,h?.(De),_&&b&&(b(_,De),$w.set(_,De)),L&&O2.set(L,De));const je=te.sources;if(je&&Array.isArray(je)&&je.length>0)for(const xe of je)ve.some(Ie=>Ie.sourceId===xe.sourceId)||ve.push({sourceId:xe.sourceId,filename:xe.filename||"Unknown",score:xe.score??1,chunkId:xe.chunkId,datasetId:xe.datasetId});const Ye=te.reasoning;if(Ye&&Ye.length>0&&(H+=Ye,yield ue()),te.type)switch(te.type){case"source-document":te.sourceId&&ve.push({sourceId:te.sourceId,filename:te.title||"Unknown",score:1});continue;case"reasoning-start":continue;case"reasoning-delta":te.delta&&(H+=te.delta),(F||H)&&(yield ue());continue;case"reasoning-end":(F||H)&&(yield ue());continue;case"text-delta":te.delta&&(H&&!Se&&!F&&(Se=!0,await new Promise(xe=>setTimeout(xe,400))),F+=te.delta),F&&(yield ue());continue;case"error":throw new Error(te.errorText||"Stream error");case"text-start":case"text-end":case"start":case"start-step":case"finish-step":case"finish":continue}const Xe=te.delta;if(Xe!=null&&(H&&!Se&&!F&&(Se=!0,await new Promise(xe=>setTimeout(xe,400))),F+=Xe),te.content&&(F+=te.content),te.message&&(F+=te.message.content||""),te.finished){(F||H||ve.length>0)&&(yield ue());break}(F||H||ve.length>0)&&(yield ue())}(F||H||ve.length>0)&&(yield ue())}}}class gS extends Error{constructor(a,i,u){super(a),this.code=i,this.file=u,this.name="AttachmentValidationError"}}const o5=["image/jpeg","image/png","image/gif","image/webp","image/svg+xml","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","text/plain","text/markdown","text/csv","application/json"],u5=[".pdf",".doc",".docx",".xls",".xlsx",".txt",".md",".csv",".json",".jpg",".jpeg",".png",".gif",".webp",".svg"],s5=10*1024*1024;function q2(t){if(t===0)return"0 Bytes";const a=1024,i=["Bytes","KB","MB","GB"],u=Math.floor(Math.log(t)/Math.log(a));return parseFloat((t/Math.pow(a,u)).toFixed(2))+" "+i[u]}function c5(t){return t.lastIndexOf(".")>=0?t.slice(t.lastIndexOf(".")).toLowerCase():""}function f5(t,a){const u={"image/jpeg":[".jpg",".jpeg"],"image/png":[".png"],"image/gif":[".gif"],"image/webp":[".webp"],"image/svg+xml":[".svg"],"application/pdf":[".pdf"],"text/plain":[".txt"],"text/markdown":[".md"],"text/csv":[".csv"],"application/json":[".json"]}[t];return u?u.includes(a.toLowerCase()):!0}function d5(){return typeof crypto<"u"&&crypto.randomUUID?"attachment-"+crypto.randomUUID():"attachment-"+Date.now()+"-"+Math.random().toString(36).slice(2,11)}function FA(t={}){const{validation:a={},onValidationError:i,onAttachmentAdded:u,onAttachmentRemoved:f}=t,{maxFileSizeBytes:m=s5,allowedMimeTypes:h=o5,allowedExtensions:y=u5,validateContentType:b=!0}=a,v=y.join(",");function x(E){if(E.size>m){const A=new gS('File "'+E.name+'" is too large ('+q2(E.size)+"). Maximum size is "+q2(m)+".","FILE_TOO_LARGE",E);throw i?.(A),A}const R=c5(E.name);if(R&&!y.some(A=>A.toLowerCase()===R)){const A=new gS('File type "'+R+'" is not allowed. Allowed types: '+y.join(", "),"INVALID_TYPE",E);throw i?.(A),A}if(E.type&&!h.some(A=>{if(A.endsWith("/*")){const M=A.slice(0,-1);return E.type.startsWith(M)}return E.type===A})){const A=new gS('File type "'+E.type+'" is not allowed.',"INVALID_TYPE",E);throw i?.(A),A}if(b&&E.type&&R&&!f5(E.type,R)){const A=new gS('File extension "'+R+'" does not match content type "'+E.type+'".',"VALIDATION_FAILED",E);throw i?.(A),A}}return{accept:v,async add({file:E}){x(E);let R="file";E.type.startsWith("image/")?R="image":(E.type.includes("pdf")||E.type.includes("document")||E.type.includes("text")||E.name.endsWith(".pdf")||E.name.endsWith(".docx")||E.name.endsWith(".txt")||E.name.endsWith(".md")||E.name.endsWith(".csv")||E.name.endsWith(".json"))&&(R="document");const A={id:d5(),type:R,name:E.name,contentType:E.type,file:E,status:{type:"requires-action",reason:"composer-send"}};return u?.(A),A},async remove(E){f?.(E.id)},async send(E){if(E.type==="image"&&E.file){const R=await new Promise((A,M)=>{const q=new FileReader;q.onload=()=>A(q.result),q.onerror=()=>M(new Error("Failed to read file")),q.readAsDataURL(E.file)});return{...E,status:{type:"complete"},content:[{type:"image",image:R}]}}return{...E,status:{type:"complete"},content:[]}}}}function p5({children:t,baseUrl:a,sessionToken:i,isProxyMode:u=!1,mode:f="multiChat",modelId:m,onModelChange:h,ephemeral:y=!1,systemPrompt:b,enableReasoning:v=!1,initialThreadId:x,onError:E,onChatCreated:R,onUserMessage:A,onThreadIdUpdate:M,onChatsLoaded:q,enableAttachments:N=!1,onBeforeRequest:_,mockResponseOnBlocked:L}){const $=Ne.useMemo(()=>new _z(a,i||void 0,u),[a,i,u]),[I,V]=Ne.useState(m||null);Ne.useEffect(()=>{m&&V(m)},[m]);const z=Ne.useCallback(F=>{R?.(F)},[R]),k=Ne.useCallback((F,H)=>{M?.(F,H)},[M]),U=Ne.useMemo(()=>Oz($,{modelId:I||void 0,systemPrompt:b,ephemeral:y,enableReasoning:v,onChatCreated:z,onUserMessage:A,onBeforeRequest:_,mockResponseOnBlocked:L}),[$,I,b,y,v,z,A,_,L]);return f==="singleChat"?X.jsx(h5,{modelAdapter:U,enableAttachments:N,children:t}):X.jsx(m5,{client:$,modelAdapterOptions:{modelId:I||void 0,systemPrompt:b,ephemeral:y,enableReasoning:v,onChatCreated:z,onUserMessage:A,onBeforeRequest:_,mockResponseOnBlocked:L},initialThreadId:x,onChatsLoaded:q,onThreadIdUpdate:k,onError:E,enableAttachments:N,children:t})}function h5({modelAdapter:t,enableAttachments:a,children:i}){const u=Ne.useMemo(()=>a?FA():void 0,[a]),f=kt.useLocalRuntime(t,{adapters:{...u&&{attachments:u}}});return X.jsx(kt.AssistantRuntimeProvider,{runtime:f,children:i})}function m5({client:t,modelAdapterOptions:a,initialThreadId:i,onChatsLoaded:u,onThreadIdUpdate:f,onError:m,enableAttachments:h,children:y}){const b=Ne.useMemo(()=>l5(t,(q,N)=>{f?.(q,N)}),[t,f]),v=Ne.useCallback((q,N)=>{b.updateRemoteId&&b.updateRemoteId(q,N),f?.(q,N)},[b,f]),x=Ne.useMemo(()=>({...b,async list(){const q=await b.list();return u?.(),q}}),[b,u]);Ne.useEffect(()=>{window.__cuadraThreadListAdapter=x,window.__cuadraThreadListRuntime=null},[x]);const E=Ne.useMemo(()=>Oz(t,{...a,onThreadIdUpdate:v}),[t,a,v]),R=Ne.useMemo(()=>h?FA():void 0,[h]),A=Ne.useCallback(()=>kt.useLocalRuntime(E,{adapters:{...R&&{attachments:R}}}),[E,R]),M=kt.unstable_useRemoteThreadListRuntime({adapter:x,runtimeHook:A});return Ne.useEffect(()=>{window.__cuadraThreadListRuntime=M},[M]),X.jsx(kt.AssistantRuntimeProvider,{runtime:M,children:y})}function D2(t,a){const i=String(t);if(typeof a!="string")throw new TypeError("Expected character");let u=0,f=i.indexOf(a);for(;f!==-1;)u++,f=i.indexOf(a,f+a.length);return u}const AS=ux(/[A-Za-z]/),QA=ux(/[\dA-Za-z]/);function y5(t){return t!==null&&(t<32||t===127)}function cy(t){return t!==null&&t<-2}function Tl(t){return t!==null&&(t<0||t===32)}function Is(t){return t===-2||t===-1||t===32}const ox=ux(/\p{P}|\p{S}/u),zp=ux(/\s/);function ux(t){return a;function a(i){return i!==null&&i>-1&&t.test(String.fromCharCode(i))}}function g5(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const sx=(function(t){if(t==null)return E5;if(typeof t=="function")return cx(t);if(typeof t=="object")return Array.isArray(t)?b5(t):v5(t);if(typeof t=="string")return S5(t);throw new Error("Expected function, string, or object as test")});function b5(t){const a=[];let i=-1;for(;++i<t.length;)a[i]=sx(t[i]);return cx(u);function u(...f){let m=-1;for(;++m<a.length;)if(a[m].apply(this,f))return!0;return!1}}function v5(t){const a=t;return cx(i);function i(u){const f=u;let m;for(m in t)if(f[m]!==a[m])return!1;return!0}}function S5(t){return cx(a);function a(i){return i&&i.type===t}}function cx(t){return a;function a(i,u,f){return!!(T5(i)&&t.call(this,i,typeof u=="number"?u:void 0,f||void 0))}}function E5(){return!0}function T5(t){return t!==null&&typeof t=="object"&&"type"in t}const qz=[],w5=!0,rA=!1,x5="skip";function Dz(t,a,i,u){let f;typeof a=="function"&&typeof i!="function"?(u=i,i=a):f=a;const m=sx(f),h=u?-1:1;y(t,void 0,[])();function y(b,v,x){const E=b&&typeof b=="object"?b:{};if(typeof E.type=="string"){const A=typeof E.tagName=="string"?E.tagName:typeof E.name=="string"?E.name:void 0;Object.defineProperty(R,"name",{value:"node ("+(b.type+(A?"<"+A+">":""))+")"})}return R;function R(){let A=qz,M,q,N;if((!a||m(b,v,x[x.length-1]||void 0))&&(A=R5(i(b,x)),A[0]===rA))return A;if("children"in b&&b.children){const _=b;if(_.children&&A[0]!==x5)for(q=(u?_.children.length:-1)+h,N=x.concat(_);q>-1&&q<_.children.length;){const L=_.children[q];if(M=y(L,q,N)(),M[0]===rA)return M;q=typeof M[1]=="number"?M[1]:q+h}}return A}}}function R5(t){return Array.isArray(t)?t:typeof t=="number"?[w5,t]:t==null?qz:[t]}function C5(t,a,i){const f=sx((i||{}).ignore||[]),m=A5(a);let h=-1;for(;++h<m.length;)Dz(t,"text",y);function y(v,x){let E=-1,R;for(;++E<x.length;){const A=x[E],M=R?R.children:void 0;if(f(A,M?M.indexOf(A):void 0,R))return;R=A}if(R)return b(v,x)}function b(v,x){const E=x[x.length-1],R=m[h][0],A=m[h][1];let M=0;const N=E.children.indexOf(v);let _=!1,L=[];R.lastIndex=0;let $=R.exec(v.value);for(;$;){const I=$.index,V={index:$.index,input:$.input,stack:[...x,v]};let z=A(...$,V);if(typeof z=="string"&&(z=z.length>0?{type:"text",value:z}:void 0),z===!1?R.lastIndex=I+1:(M!==I&&L.push({type:"text",value:v.value.slice(M,I)}),Array.isArray(z)?L.push(...z):z&&L.push(z),M=I+$[0].length,_=!0),!R.global)break;$=R.exec(v.value)}return _?(M<v.value.length&&L.push({type:"text",value:v.value.slice(M)}),E.children.splice(N,1,...L)):L=[v],N+L.length}}function A5(t){const a=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const i=!t[0]||Array.isArray(t[0])?t:[t];let u=-1;for(;++u<i.length;){const f=i[u];a.push([_5(f[0]),M5(f[1])])}return a}function _5(t){return typeof t=="string"?new RegExp(g5(t),"g"):t}function M5(t){return typeof t=="function"?t:function(){return t}}const tC="phrasing",nC=["autolink","link","image","label"];function O5(){return{transforms:[B5],enter:{literalAutolink:D5,literalAutolinkEmail:aC,literalAutolinkHttp:aC,literalAutolinkWww:aC},exit:{literalAutolink:k5,literalAutolinkEmail:z5,literalAutolinkHttp:N5,literalAutolinkWww:j5}}}function q5(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:tC,notInConstruct:nC},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:tC,notInConstruct:nC},{character:":",before:"[ps]",after:"\\/",inConstruct:tC,notInConstruct:nC}]}}function D5(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function aC(t){this.config.enter.autolinkProtocol.call(this,t)}function N5(t){this.config.exit.autolinkProtocol.call(this,t)}function j5(t){this.config.exit.data.call(this,t);const a=this.stack[this.stack.length-1];a.type,a.url="http://"+this.sliceSerialize(t)}function z5(t){this.config.exit.autolinkEmail.call(this,t)}function k5(t){this.exit(t)}function B5(t){C5(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,U5],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,L5]],{ignore:["link","linkReference"]})}function U5(t,a,i,u,f){let m="";if(!Nz(f)||(/^w/i.test(a)&&(i=a+i,a="",m="http://"),!$5(i)))return!1;const h=H5(i+u);if(!h[0])return!1;const y={type:"link",title:null,url:m+a+h[0],children:[{type:"text",value:a+h[0]}]};return h[1]?[y,{type:"text",value:h[1]}]:y}function L5(t,a,i,u){return!Nz(u,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+i,children:[{type:"text",value:a+"@"+i}]}}function $5(t){const a=t.split(".");return!(a.length<2||a[a.length-1]&&(/_/.test(a[a.length-1])||!/[a-zA-Z\d]/.test(a[a.length-1]))||a[a.length-2]&&(/_/.test(a[a.length-2])||!/[a-zA-Z\d]/.test(a[a.length-2])))}function H5(t){const a=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!a)return[t,void 0];t=t.slice(0,a.index);let i=a[0],u=i.indexOf(")");const f=D2(t,"(");let m=D2(t,")");for(;u!==-1&&f>m;)t+=i.slice(0,u+1),i=i.slice(u+1),u=i.indexOf(")"),m++;return[t,i]}function Nz(t,a){const i=t.input.charCodeAt(t.index-1);return(t.index===0||zp(i)||ox(i))&&(!a||i!==47)}function kS(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}jz.peek=Z5;function P5(){this.buffer()}function I5(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function V5(){this.buffer()}function G5(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function Y5(t){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=kS(this.sliceSerialize(t)).toLowerCase(),i.label=a}function X5(t){this.exit(t)}function F5(t){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=kS(this.sliceSerialize(t)).toLowerCase(),i.label=a}function Q5(t){this.exit(t)}function Z5(){return"["}function jz(t,a,i,u){const f=i.createTracker(u);let m=f.move("[^");const h=i.enter("footnoteReference"),y=i.enter("reference");return m+=f.move(i.safe(i.associationId(t),{after:"]",before:m})),y(),h(),m+=f.move("]"),m}function J5(){return{enter:{gfmFootnoteCallString:P5,gfmFootnoteCall:I5,gfmFootnoteDefinitionLabelString:V5,gfmFootnoteDefinition:G5},exit:{gfmFootnoteCallString:Y5,gfmFootnoteCall:X5,gfmFootnoteDefinitionLabelString:F5,gfmFootnoteDefinition:Q5}}}function K5(t){let a=!1;return t&&t.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:i,footnoteReference:jz},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(u,f,m,h){const y=m.createTracker(h);let b=y.move("[^");const v=m.enter("footnoteDefinition"),x=m.enter("label");return b+=y.move(m.safe(m.associationId(u),{before:b,after:"]"})),x(),b+=y.move("]:"),u.children&&u.children.length>0&&(y.shift(4),b+=y.move((a?`
4
+ `:" ")+m.indentLines(m.containerFlow(u,y.current()),a?zz:W5))),v(),b}}function W5(t,a,i){return a===0?t:zz(t,a,i)}function zz(t,a,i){return(i?"":" ")+t}const eL=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];kz.peek=lL;function tL(){return{canContainEols:["delete"],enter:{strikethrough:aL},exit:{strikethrough:rL}}}function nL(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:eL}],handlers:{delete:kz}}}function aL(t){this.enter({type:"delete",children:[]},t)}function rL(t){this.exit(t)}function kz(t,a,i,u){const f=i.createTracker(u),m=i.enter("strikethrough");let h=f.move("~~");return h+=i.containerPhrasing(t,{...f.current(),before:h,after:"~"}),h+=f.move("~~"),m(),h}function lL(){return"~"}function iL(t){return t.length}function oL(t,a){const i=a||{},u=(i.align||[]).concat(),f=i.stringLength||iL,m=[],h=[],y=[],b=[];let v=0,x=-1;for(;++x<t.length;){const q=[],N=[];let _=-1;for(t[x].length>v&&(v=t[x].length);++_<t[x].length;){const L=uL(t[x][_]);if(i.alignDelimiters!==!1){const $=f(L);N[_]=$,(b[_]===void 0||$>b[_])&&(b[_]=$)}q.push(L)}h[x]=q,y[x]=N}let E=-1;if(typeof u=="object"&&"length"in u)for(;++E<v;)m[E]=N2(u[E]);else{const q=N2(u);for(;++E<v;)m[E]=q}E=-1;const R=[],A=[];for(;++E<v;){const q=m[E];let N="",_="";q===99?(N=":",_=":"):q===108?N=":":q===114&&(_=":");let L=i.alignDelimiters===!1?1:Math.max(1,b[E]-N.length-_.length);const $=N+"-".repeat(L)+_;i.alignDelimiters!==!1&&(L=N.length+L+_.length,L>b[E]&&(b[E]=L),A[E]=L),R[E]=$}h.splice(1,0,R),y.splice(1,0,A),x=-1;const M=[];for(;++x<h.length;){const q=h[x],N=y[x];E=-1;const _=[];for(;++E<v;){const L=q[E]||"";let $="",I="";if(i.alignDelimiters!==!1){const V=b[E]-(N[E]||0),z=m[E];z===114?$=" ".repeat(V):z===99?V%2?($=" ".repeat(V/2+.5),I=" ".repeat(V/2-.5)):($=" ".repeat(V/2),I=$):I=" ".repeat(V)}i.delimiterStart!==!1&&!E&&_.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&L==="")&&(i.delimiterStart!==!1||E)&&_.push(" "),i.alignDelimiters!==!1&&_.push($),_.push(L),i.alignDelimiters!==!1&&_.push(I),i.padding!==!1&&_.push(" "),(i.delimiterEnd!==!1||E!==v-1)&&_.push("|")}M.push(i.delimiterEnd===!1?_.join("").replace(/ +$/,""):_.join(""))}return M.join(`
5
+ `)}function uL(t){return t==null?"":String(t)}function N2(t){const a=typeof t=="string"?t.codePointAt(0):0;return a===67||a===99?99:a===76||a===108?108:a===82||a===114?114:0}function sL(t,a,i,u){const f=i.enter("blockquote"),m=i.createTracker(u);m.move("> "),m.shift(2);const h=i.indentLines(i.containerFlow(t,m.current()),cL);return f(),h}function cL(t,a,i){return">"+(i?"":" ")+t}function fL(t,a){return j2(t,a.inConstruct,!0)&&!j2(t,a.notInConstruct,!1)}function j2(t,a,i){if(typeof a=="string"&&(a=[a]),!a||a.length===0)return i;let u=-1;for(;++u<a.length;)if(t.includes(a[u]))return!0;return!1}function z2(t,a,i,u){let f=-1;for(;++f<i.unsafe.length;)if(i.unsafe[f].character===`
6
+ `&&fL(i.stack,i.unsafe[f]))return/[ \t]/.test(u.before)?"":" ";return`\\
7
+ `}function dL(t,a){const i=String(t);let u=i.indexOf(a),f=u,m=0,h=0;if(typeof a!="string")throw new TypeError("Expected substring");for(;u!==-1;)u===f?++m>h&&(h=m):m=1,f=u+a.length,u=i.indexOf(a,f);return h}function pL(t,a){return!!(a.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function hL(t){const a=t.options.fence||"`";if(a!=="`"&&a!=="~")throw new Error("Cannot serialize code with `"+a+"` for `options.fence`, expected `` ` `` or `~`");return a}function mL(t,a,i,u){const f=hL(i),m=t.value||"",h=f==="`"?"GraveAccent":"Tilde";if(pL(t,i)){const E=i.enter("codeIndented"),R=i.indentLines(m,yL);return E(),R}const y=i.createTracker(u),b=f.repeat(Math.max(dL(m,f)+1,3)),v=i.enter("codeFenced");let x=y.move(b);if(t.lang){const E=i.enter(`codeFencedLang${h}`);x+=y.move(i.safe(t.lang,{before:x,after:" ",encode:["`"],...y.current()})),E()}if(t.lang&&t.meta){const E=i.enter(`codeFencedMeta${h}`);x+=y.move(" "),x+=y.move(i.safe(t.meta,{before:x,after:`
8
+ `,encode:["`"],...y.current()})),E()}return x+=y.move(`
9
+ `),m&&(x+=y.move(m+`
10
+ `)),x+=y.move(b),v(),x}function yL(t,a,i){return(i?"":" ")+t}function ZA(t){const a=t.options.quote||'"';if(a!=='"'&&a!=="'")throw new Error("Cannot serialize title with `"+a+"` for `options.quote`, expected `\"`, or `'`");return a}function gL(t,a,i,u){const f=ZA(i),m=f==='"'?"Quote":"Apostrophe",h=i.enter("definition");let y=i.enter("label");const b=i.createTracker(u);let v=b.move("[");return v+=b.move(i.safe(i.associationId(t),{before:v,after:"]",...b.current()})),v+=b.move("]: "),y(),!t.url||/[\0- \u007F]/.test(t.url)?(y=i.enter("destinationLiteral"),v+=b.move("<"),v+=b.move(i.safe(t.url,{before:v,after:">",...b.current()})),v+=b.move(">")):(y=i.enter("destinationRaw"),v+=b.move(i.safe(t.url,{before:v,after:t.title?" ":`
11
+ `,...b.current()}))),y(),t.title&&(y=i.enter(`title${m}`),v+=b.move(" "+f),v+=b.move(i.safe(t.title,{before:v,after:f,...b.current()})),v+=b.move(f),y()),h(),v}function bL(t){const a=t.options.emphasis||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize emphasis with `"+a+"` for `options.emphasis`, expected `*`, or `_`");return a}function _S(t){return"&#x"+t.toString(16).toUpperCase()+";"}function Hw(t){if(t===null||Tl(t)||zp(t))return 1;if(ox(t))return 2}function Pw(t,a,i){const u=Hw(t),f=Hw(a);return u===void 0?f===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:f===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:u===1?f===void 0?{inside:!1,outside:!1}:f===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:f===void 0?{inside:!1,outside:!1}:f===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Bz.peek=vL;function Bz(t,a,i,u){const f=bL(i),m=i.enter("emphasis"),h=i.createTracker(u),y=h.move(f);let b=h.move(i.containerPhrasing(t,{after:f,before:y,...h.current()}));const v=b.charCodeAt(0),x=Pw(u.before.charCodeAt(u.before.length-1),v,f);x.inside&&(b=_S(v)+b.slice(1));const E=b.charCodeAt(b.length-1),R=Pw(u.after.charCodeAt(0),E,f);R.inside&&(b=b.slice(0,-1)+_S(E));const A=h.move(f);return m(),i.attentionEncodeSurroundingInfo={after:R.outside,before:x.outside},y+b+A}function vL(t,a,i){return i.options.emphasis||"*"}function SL(t,a,i,u){let f,m,h;typeof a=="function"&&typeof i!="function"?(m=void 0,h=a,f=i):(m=a,h=i,f=u),Dz(t,m,y,f);function y(b,v){const x=v[v.length-1],E=x?x.children.indexOf(b):void 0;return h(b,E,x)}}const EL={};function Uz(t,a){const i=EL,u=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,f=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return Lz(t,u,f)}function Lz(t,a,i){if(TL(t)){if("value"in t)return t.type==="html"&&!i?"":t.value;if(a&&"alt"in t&&t.alt)return t.alt;if("children"in t)return k2(t.children,a,i)}return Array.isArray(t)?k2(t,a,i):""}function k2(t,a,i){const u=[];let f=-1;for(;++f<t.length;)u[f]=Lz(t[f],a,i);return u.join("")}function TL(t){return!!(t&&typeof t=="object")}function wL(t,a){let i=!1;return SL(t,function(u){if("value"in u&&/\r?\n|\r/.test(u.value)||u.type==="break")return i=!0,rA}),!!((!t.depth||t.depth<3)&&Uz(t)&&(a.options.setext||i))}function xL(t,a,i,u){const f=Math.max(Math.min(6,t.depth||1),1),m=i.createTracker(u);if(wL(t,i)){const x=i.enter("headingSetext"),E=i.enter("phrasing"),R=i.containerPhrasing(t,{...m.current(),before:`
12
12
  `,after:`
13
- `});return d(),f(),p+`
14
- `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
15
- `))+1))}const n="#".repeat(i),c=t.enter("headingAtx"),s=t.enter("phrasing");o.move(n+" ");let l=t.containerPhrasing(e,{before:"# ",after:`
16
- `,...o.current()});return/^[\t ]/.test(l)&&(l=be(l.charCodeAt(0))+l.slice(1)),l=l?n+" "+l:n,t.options.closeAtx&&(l+=" "+n),s(),c(),l}qt.peek=mn;function qt(e){return e.value||""}function mn(){return"<"}Ht.peek=pn;function Ht(e,r,t,a){const i=Je(t),o=i==='"'?"Quote":"Apostrophe",n=t.enter("image");let c=t.enter("label");const s=t.createTracker(a);let l=s.move("![");return l+=s.move(t.safe(e.alt,{before:l,after:"]",...s.current()})),l+=s.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=t.enter("destinationLiteral"),l+=s.move("<"),l+=s.move(t.safe(e.url,{before:l,after:">",...s.current()})),l+=s.move(">")):(c=t.enter("destinationRaw"),l+=s.move(t.safe(e.url,{before:l,after:e.title?" ":")",...s.current()}))),c(),e.title&&(c=t.enter(`title${o}`),l+=s.move(" "+i),l+=s.move(t.safe(e.title,{before:l,after:i,...s.current()})),l+=s.move(i),c()),l+=s.move(")"),n(),l}function pn(){return"!"}Vt.peek=gn;function Vt(e,r,t,a){const i=e.referenceType,o=t.enter("imageReference");let n=t.enter("label");const c=t.createTracker(a);let s=c.move("![");const l=t.safe(e.alt,{before:s,after:"]",...c.current()});s+=c.move(l+"]["),n();const f=t.stack;t.stack=[],n=t.enter("reference");const d=t.safe(t.associationId(e),{before:s,after:"]",...c.current()});return n(),t.stack=f,o(),i==="full"||!l||l!==d?s+=c.move(d+"]"):i==="shortcut"?s=s.slice(0,-1):s+=c.move("]"),s}function gn(){return"!"}Xt.peek=xn;function Xt(e,r,t){let a=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(a);)i+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++o<t.unsafe.length;){const n=t.unsafe[o],c=t.compilePattern(n);let s;if(n.atBreak)for(;s=c.exec(a);){let l=s.index;a.charCodeAt(l)===10&&a.charCodeAt(l-1)===13&&l--,a=a.slice(0,l)+" "+a.slice(s.index+1)}}return i+a+i}function xn(){return"`"}function Kt(e,r){const t=Bt(e);return!!(!r.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Qt.peek=bn;function Qt(e,r,t,a){const i=Je(t),o=i==='"'?"Quote":"Apostrophe",n=t.createTracker(a);let c,s;if(Kt(e,t)){const f=t.stack;t.stack=[],c=t.enter("autolink");let d=n.move("<");return d+=n.move(t.containerPhrasing(e,{before:d,after:">",...n.current()})),d+=n.move(">"),c(),t.stack=f,d}c=t.enter("link"),s=t.enter("label");let l=n.move("[");return l+=n.move(t.containerPhrasing(e,{before:l,after:"](",...n.current()})),l+=n.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=t.enter("destinationLiteral"),l+=n.move("<"),l+=n.move(t.safe(e.url,{before:l,after:">",...n.current()})),l+=n.move(">")):(s=t.enter("destinationRaw"),l+=n.move(t.safe(e.url,{before:l,after:e.title?" ":")",...n.current()}))),s(),e.title&&(s=t.enter(`title${o}`),l+=n.move(" "+i),l+=n.move(t.safe(e.title,{before:l,after:i,...n.current()})),l+=n.move(i),s()),l+=n.move(")"),c(),l}function bn(e,r,t){return Kt(e,t)?"<":"["}Gt.peek=yn;function Gt(e,r,t,a){const i=e.referenceType,o=t.enter("linkReference");let n=t.enter("label");const c=t.createTracker(a);let s=c.move("[");const l=t.containerPhrasing(e,{before:s,after:"]",...c.current()});s+=c.move(l+"]["),n();const f=t.stack;t.stack=[],n=t.enter("reference");const d=t.safe(t.associationId(e),{before:s,after:"]",...c.current()});return n(),t.stack=f,o(),i==="full"||!l||l!==d?s+=c.move(d+"]"):i==="shortcut"?s=s.slice(0,-1):s+=c.move("]"),s}function yn(){return"["}function Ye(e){const r=e.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function kn(e){const r=Ye(e),t=e.options.bulletOther;if(!t)return r==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===r)throw new Error("Expected `bullet` (`"+r+"`) and `bulletOther` (`"+t+"`) to be different");return t}function wn(e){const r=e.options.bulletOrdered||".";if(r!=="."&&r!==")")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrdered`, expected `.` or `)`");return r}function Zt(e){const r=e.options.rule||"*";if(r!=="*"&&r!=="-"&&r!=="_")throw new Error("Cannot serialize rules with `"+r+"` for `options.rule`, expected `*`, `-`, or `_`");return r}function vn(e,r,t,a){const i=t.enter("list"),o=t.bulletCurrent;let n=e.ordered?wn(t):Ye(t);const c=e.ordered?n==="."?")":".":kn(t);let s=r&&t.bulletLastUsed?n===t.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((n==="*"||n==="-")&&f&&(!f.children||!f.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(s=!0),Zt(t)===n&&f){let d=-1;for(;++d<e.children.length;){const p=e.children[d];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(n=c),t.bulletCurrent=n;const l=t.containerFlow(e,a);return t.bulletLastUsed=n,t.bulletCurrent=o,i(),l}function Cn(e){const r=e.options.listItemIndent||"one";if(r!=="tab"&&r!=="one"&&r!=="mixed")throw new Error("Cannot serialize items with `"+r+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return r}function jn(e,r,t,a){const i=Cn(t);let o=t.bulletCurrent||Ye(t);r&&r.type==="list"&&r.ordered&&(o=(typeof r.start=="number"&&r.start>-1?r.start:1)+(t.options.incrementListMarker===!1?0:r.children.indexOf(e))+o);let n=o.length+1;(i==="tab"||i==="mixed"&&(r&&r.type==="list"&&r.spread||e.spread))&&(n=Math.ceil(n/4)*4);const c=t.createTracker(a);c.move(o+" ".repeat(n-o.length)),c.shift(n);const s=t.enter("listItem"),l=t.indentLines(t.containerFlow(e,c.current()),f);return s(),l;function f(d,p,g){return p?(g?"":" ".repeat(n))+d:(g?o:o+" ".repeat(n-o.length))+d}}function Tn(e,r,t,a){const i=t.enter("paragraph"),o=t.enter("phrasing"),n=t.containerPhrasing(e,a);return o(),i(),n}const Mn=Ee(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function An(e,r,t,a){return(e.children.some(function(n){return Mn(n)})?t.containerPhrasing:t.containerFlow).call(t,e,a)}function Sn(e){const r=e.options.strong||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}Jt.peek=In;function Jt(e,r,t,a){const i=Sn(t),o=t.enter("strong"),n=t.createTracker(a),c=n.move(i+i);let s=n.move(t.containerPhrasing(e,{after:i,before:c,...n.current()}));const l=s.charCodeAt(0),f=Pe(a.before.charCodeAt(a.before.length-1),l,i);f.inside&&(s=be(l)+s.slice(1));const d=s.charCodeAt(s.length-1),p=Pe(a.after.charCodeAt(0),d,i);p.inside&&(s=s.slice(0,-1)+be(d));const g=n.move(i+i);return o(),t.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},c+s+g}function In(e,r,t){return t.options.strong||"*"}function Nn(e,r,t,a){return t.safe(e.value,a)}function Pn(e){const r=e.options.ruleRepetition||3;if(r<3)throw new Error("Cannot serialize rules with repetition `"+r+"` for `options.ruleRepetition`, expected `3` or more");return r}function Rn(e,r,t){const a=(Zt(t)+(t.options.ruleSpaces?" ":"")).repeat(Pn(t));return t.options.ruleSpaces?a.slice(0,-1):a}const Yt={blockquote:Za,break:bt,code:an,definition:on,emphasis:Ut,hardBreak:bt,heading:hn,html:qt,image:Ht,imageReference:Vt,inlineCode:Xt,link:Qt,linkReference:Gt,list:vn,listItem:jn,paragraph:Tn,root:An,strong:Jt,text:Nn,thematicBreak:Rn};function Ln(){return{enter:{table:En,tableData:kt,tableHeader:kt,tableRow:_n},exit:{codeText:Fn,table:Dn,tableData:Ue,tableHeader:Ue,tableRow:Ue}}}function En(e){const r=e._align;this.enter({type:"table",align:r.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function Dn(e){this.exit(e),this.data.inTable=void 0}function _n(e){this.enter({type:"tableRow",children:[]},e)}function Ue(e){this.exit(e)}function kt(e){this.enter({type:"tableCell",children:[]},e)}function Fn(e){let r=this.resume();this.data.inTable&&(r=r.replace(/\\([\\|])/g,zn));const t=this.stack[this.stack.length-1];t.type,t.value=r,this.exit(e)}function zn(e,r){return r==="|"?r:e}function $n(e){const r=e||{},t=r.tableCellPadding,a=r.tablePipeAlign,i=r.stringLength,o=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
17
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:n,tableCell:s,tableRow:c}};function n(g,m,k,x){return l(f(g,k,x),g.align)}function c(g,m,k,x){const b=d(g,k,x),w=l([b]);return w.slice(0,w.indexOf(`
18
- `))}function s(g,m,k,x){const b=k.enter("tableCell"),w=k.enter("phrasing"),v=k.containerPhrasing(g,{...x,before:o,after:o});return w(),b(),v}function l(g,m){return Qa(g,{align:m,alignDelimiters:a,padding:t,stringLength:i})}function f(g,m,k){const x=g.children;let b=-1;const w=[],v=m.enter("table");for(;++b<x.length;)w[b]=d(x[b],m,k);return v(),w}function d(g,m,k){const x=g.children;let b=-1;const w=[],v=m.enter("tableRow");for(;++b<x.length;)w[b]=s(x[b],g,m,k);return v(),w}function p(g,m,k){let x=Yt.inlineCode(g,m,k);return k.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function On(){return{exit:{taskListCheckValueChecked:wt,taskListCheckValueUnchecked:wt,paragraph:Bn}}}function Un(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Wn}}}function wt(e){const r=this.stack[this.stack.length-2];r.type,r.checked=e.type==="taskListCheckValueChecked"}function Bn(e){const r=this.stack[this.stack.length-2];if(r&&r.type==="listItem"&&typeof r.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const a=t.children[0];if(a&&a.type==="text"){const i=r.children;let o=-1,n;for(;++o<i.length;){const c=i[o];if(c.type==="paragraph"){n=c;break}}n===t&&(a.value=a.value.slice(1),a.value.length===0?t.children.shift():t.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,t.position.start=Object.assign({},a.position.start)))}}this.exit(e)}function Wn(e,r,t,a){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",n="["+(e.checked?"x":" ")+"] ",c=t.createTracker(a);o&&c.move(n);let s=Yt.listItem(e,r,t,{...a,...c.current()});return o&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),s;function l(f){return f+n}}function qn(){return[ba(),$a(),Wa(),Ln(),On()]}function Hn(e){return{extensions:[ya(),Oa(e),qa(),$n(e),Un()]}}function Se(e,r,t,a){const i=e.length;let o=0,n;if(r<0?r=-r>i?0:i+r:r=r>i?i:r,t=t>0?t:0,a.length<1e4)n=Array.from(a),n.unshift(r,t),e.splice(...n);else for(t&&e.splice(r,t);o<a.length;)n=a.slice(o,o+1e4),n.unshift(r,0),e.splice(...n),o+=1e4,r+=1e4}const vt={}.hasOwnProperty;function Vn(e){const r={};let t=-1;for(;++t<e.length;)Xn(r,e[t]);return r}function Xn(e,r){let t;for(t in r){const i=(vt.call(e,t)?e[t]:void 0)||(e[t]={}),o=r[t];let n;if(o)for(n in o){vt.call(i,n)||(i[n]=[]);const c=o[n];Kn(i[n],Array.isArray(c)?c:c?[c]:[])}}}function Kn(e,r){let t=-1;const a=[];for(;++t<r.length;)(r[t].add==="after"?e:a).push(r[t]);Se(e,0,0,a)}const Qn={tokenize:ti,partial:!0},er={tokenize:ri,partial:!0},tr={tokenize:ai,partial:!0},rr={tokenize:ni,partial:!0},Gn={tokenize:ii,partial:!0},ar={name:"wwwAutolink",tokenize:Yn,previous:ir},nr={name:"protocolAutolink",tokenize:ei,previous:or},te={name:"emailAutolink",tokenize:Jn,previous:sr},K={};function Zn(){return{text:K}}let ne=48;for(;ne<123;)K[ne]=te,ne++,ne===58?ne=65:ne===91&&(ne=97);K[43]=te;K[45]=te;K[46]=te;K[95]=te;K[72]=[te,nr];K[104]=[te,nr];K[87]=[te,ar];K[119]=[te,ar];function Jn(e,r,t){const a=this;let i,o;return n;function n(d){return!Qe(d)||!sr.call(a,a.previous)||et(a.events)?t(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(d))}function c(d){return Qe(d)?(e.consume(d),c):d===64?(e.consume(d),s):t(d)}function s(d){return d===46?e.check(Gn,f,l)(d):d===45||d===95||Ze(d)?(o=!0,e.consume(d),s):f(d)}function l(d){return e.consume(d),i=!0,s}function f(d){return o&&i&&xe(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),r(d)):t(d)}}function Yn(e,r,t){const a=this;return i;function i(n){return n!==87&&n!==119||!ir.call(a,a.previous)||et(a.events)?t(n):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Qn,e.attempt(er,e.attempt(tr,o),t),t)(n))}function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),r(n)}}function ei(e,r,t){const a=this;let i="",o=!1;return n;function n(d){return(d===72||d===104)&&or.call(a,a.previous)&&!et(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),c):t(d)}function c(d){if(xe(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),c;if(d===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(d),s}return t(d)}function s(d){return d===47?(e.consume(d),o?l:(o=!0,s)):t(d)}function l(d){return d===null||na(d)||B(d)||ie(d)||Re(d)?t(d):e.attempt(er,e.attempt(tr,f),t)(d)}function f(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),r(d)}}function ti(e,r,t){let a=0;return i;function i(n){return(n===87||n===119)&&a<3?(a++,e.consume(n),i):n===46&&a===3?(e.consume(n),o):t(n)}function o(n){return n===null?t(n):r(n)}}function ri(e,r,t){let a,i,o;return n;function n(l){return l===46||l===95?e.check(rr,s,c)(l):l===null||B(l)||ie(l)||l!==45&&Re(l)?s(l):(o=!0,e.consume(l),n)}function c(l){return l===95?a=!0:(i=a,a=void 0),e.consume(l),n}function s(l){return i||a||!o?t(l):r(l)}}function ai(e,r){let t=0,a=0;return i;function i(n){return n===40?(t++,e.consume(n),i):n===41&&a<t?o(n):n===33||n===34||n===38||n===39||n===41||n===42||n===44||n===46||n===58||n===59||n===60||n===63||n===93||n===95||n===126?e.check(rr,r,o)(n):n===null||B(n)||ie(n)?r(n):(e.consume(n),i)}function o(n){return n===41&&a++,e.consume(n),i}}function ni(e,r,t){return a;function a(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),a):c===38?(e.consume(c),o):c===93?(e.consume(c),i):c===60||c===null||B(c)||ie(c)?r(c):t(c)}function i(c){return c===null||c===40||c===91||B(c)||ie(c)?r(c):a(c)}function o(c){return xe(c)?n(c):t(c)}function n(c){return c===59?(e.consume(c),a):xe(c)?(e.consume(c),n):t(c)}}function ii(e,r,t){return a;function a(o){return e.consume(o),i}function i(o){return Ze(o)?t(o):r(o)}}function ir(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||B(e)}function or(e){return!xe(e)}function sr(e){return!(e===47||Qe(e))}function Qe(e){return e===43||e===45||e===46||e===95||Ze(e)}function et(e){let r=e.length,t=!1;for(;r--;){const a=e[r][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){t=!0;break}if(a._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}function oi(e,r,t){const a=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!a.includes(o)&&(r=o(r,t),a.push(o))}return r}function ee(e,r,t,a){const i=a?a-1:Number.POSITIVE_INFINITY;let o=0;return n;function n(s){return Y(s)?(e.enter(t),c(s)):r(s)}function c(s){return Y(s)&&o++<i?(e.consume(s),c):(e.exit(t),r(s))}}const si={partial:!0,tokenize:ci};function ci(e,r,t){return a;function a(o){return Y(o)?ee(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||de(o)?r(o):t(o)}}const ui={tokenize:xi,partial:!0};function li(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:mi,continuation:{tokenize:pi},exit:gi}},text:{91:{name:"gfmFootnoteCall",tokenize:hi},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:di,resolveTo:fi}}}}function di(e,r,t){const a=this;let i=a.events.length;const o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let n;for(;i--;){const s=a.events[i][1];if(s.type==="labelImage"){n=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return c;function c(s){if(!n||!n._balanced)return t(s);const l=ye(a.sliceSerialize({start:n.end,end:a.now()}));return l.codePointAt(0)!==94||!o.includes(l.slice(1))?t(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),r(s))}}function fi(e,r){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},n={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},c=[e[t+1],e[t+2],["enter",a,r],e[t+3],e[t+4],["enter",i,r],["exit",i,r],["enter",o,r],["enter",n,r],["exit",n,r],["exit",o,r],e[e.length-2],e[e.length-1],["exit",a,r]];return e.splice(t,e.length-t+1,...c),e}function hi(e,r,t){const a=this,i=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let o=0,n;return c;function c(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),s}function s(d){return d!==94?t(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(d){if(o>999||d===93&&!n||d===null||d===91||B(d))return t(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(ye(a.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),r):t(d)}return B(d)||(n=!0),o++,e.consume(d),d===92?f:l}function f(d){return d===91||d===92||d===93?(e.consume(d),o++,l):l(d)}}function mi(e,r,t){const a=this,i=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let o,n=0,c;return s;function s(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):t(m)}function f(m){if(n>999||m===93&&!c||m===null||m===91||B(m))return t(m);if(m===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return o=ye(a.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return B(m)||(c=!0),n++,e.consume(m),m===92?d:f}function d(m){return m===91||m===92||m===93?(e.consume(m),n++,f):f(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(o)||i.push(o),ee(e,g,"gfmFootnoteDefinitionWhitespace")):t(m)}function g(m){return r(m)}}function pi(e,r,t){return e.check(si,r,e.attempt(ui,r,t))}function gi(e){e.exit("gfmFootnoteDefinition")}function xi(e,r,t){const a=this;return ee(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const n=a.events[a.events.length-1];return n&&n[1].type==="gfmFootnoteDefinitionIndent"&&n[2].sliceSerialize(n[1],!0).length===4?r(o):t(o)}}function bi(e){let t=(e||{}).singleTilde;const a={name:"strikethrough",tokenize:o,resolveAll:i};return t==null&&(t=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function i(n,c){let s=-1;for(;++s<n.length;)if(n[s][0]==="enter"&&n[s][1].type==="strikethroughSequenceTemporary"&&n[s][1]._close){let l=s;for(;l--;)if(n[l][0]==="exit"&&n[l][1].type==="strikethroughSequenceTemporary"&&n[l][1]._open&&n[s][1].end.offset-n[s][1].start.offset===n[l][1].end.offset-n[l][1].start.offset){n[s][1].type="strikethroughSequence",n[l][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},n[l][1].start),end:Object.assign({},n[s][1].end)},d={type:"strikethroughText",start:Object.assign({},n[l][1].end),end:Object.assign({},n[s][1].start)},p=[["enter",f,c],["enter",n[l][1],c],["exit",n[l][1],c],["enter",d,c]],g=c.parser.constructs.insideSpan.null;g&&Se(p,p.length,0,oi(g,n.slice(l+1,s),c)),Se(p,p.length,0,[["exit",d,c],["enter",n[s][1],c],["exit",n[s][1],c],["exit",f,c]]),Se(n,l-1,s-l+3,p),s=l+p.length-2;break}}for(s=-1;++s<n.length;)n[s][1].type==="strikethroughSequenceTemporary"&&(n[s][1].type="data");return n}function o(n,c,s){const l=this.previous,f=this.events;let d=0;return p;function p(m){return l===126&&f[f.length-1][1].type!=="characterEscape"?s(m):(n.enter("strikethroughSequenceTemporary"),g(m))}function g(m){const k=Ne(l);if(m===126)return d>1?s(m):(n.consume(m),d++,g);if(d<2&&!t)return s(m);const x=n.exit("strikethroughSequenceTemporary"),b=Ne(m);return x._open=!b||b===2&&!!k,x._close=!k||k===2&&!!b,c(m)}}}class yi{constructor(){this.map=[]}add(r,t,a){ki(this,r,t,a)}consume(r){if(this.map.sort(function(o,n){return o[0]-n[0]}),this.map.length===0)return;let t=this.map.length;const a=[];for(;t>0;)t-=1,a.push(r.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),r.length=this.map[t][0];a.push(r.slice()),r.length=0;let i=a.pop();for(;i;){for(const o of i)r.push(o);i=a.pop()}this.map.length=0}}function ki(e,r,t,a){let i=0;if(!(t===0&&a.length===0)){for(;i<e.map.length;){if(e.map[i][0]===r){e.map[i][1]+=t,e.map[i][2].push(...a);return}i+=1}e.map.push([r,t,a])}}function wi(e,r){let t=!1;const a=[];for(;r<e.length;){const i=e[r];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&a.push(e[r+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[r-1][1].type==="tableDelimiterMarker"){const o=a.length-1;a[o]=a[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);r+=1}return a}function vi(){return{flow:{null:{name:"table",tokenize:Ci,resolveAll:ji}}}}function Ci(e,r,t){const a=this;let i=0,o=0,n;return c;function c(h){let U=a.events.length-1;for(;U>-1;){const X=a.events[U][1].type;if(X==="lineEnding"||X==="linePrefix")U--;else break}const F=U>-1?a.events[U][1].type:null,V=F==="tableHead"||F==="tableRow"?C:s;return V===C&&a.parser.lazy[a.now().line]?t(h):V(h)}function s(h){return e.enter("tableHead"),e.enter("tableRow"),l(h)}function l(h){return h===124||(n=!0,o+=1),f(h)}function f(h){return h===null?t(h):de(h)?o>1?(o=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),g):t(h):Y(h)?ee(e,f,"whitespace")(h):(o+=1,n&&(n=!1,i+=1),h===124?(e.enter("tableCellDivider"),e.consume(h),e.exit("tableCellDivider"),n=!0,f):(e.enter("data"),d(h)))}function d(h){return h===null||h===124||B(h)?(e.exit("data"),f(h)):(e.consume(h),h===92?p:d)}function p(h){return h===92||h===124?(e.consume(h),d):d(h)}function g(h){return a.interrupt=!1,a.parser.lazy[a.now().line]?t(h):(e.enter("tableDelimiterRow"),n=!1,Y(h)?ee(e,m,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):m(h))}function m(h){return h===45||h===58?x(h):h===124?(n=!0,e.enter("tableCellDivider"),e.consume(h),e.exit("tableCellDivider"),k):I(h)}function k(h){return Y(h)?ee(e,x,"whitespace")(h):x(h)}function x(h){return h===58?(o+=1,n=!0,e.enter("tableDelimiterMarker"),e.consume(h),e.exit("tableDelimiterMarker"),b):h===45?(o+=1,b(h)):h===null||de(h)?R(h):I(h)}function b(h){return h===45?(e.enter("tableDelimiterFiller"),w(h)):I(h)}function w(h){return h===45?(e.consume(h),w):h===58?(n=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(h),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(h))}function v(h){return Y(h)?ee(e,R,"whitespace")(h):R(h)}function R(h){return h===124?m(h):h===null||de(h)?!n||i!==o?I(h):(e.exit("tableDelimiterRow"),e.exit("tableHead"),r(h)):I(h)}function I(h){return t(h)}function C(h){return e.enter("tableRow"),L(h)}function L(h){return h===124?(e.enter("tableCellDivider"),e.consume(h),e.exit("tableCellDivider"),L):h===null||de(h)?(e.exit("tableRow"),r(h)):Y(h)?ee(e,L,"whitespace")(h):(e.enter("data"),D(h))}function D(h){return h===null||h===124||B(h)?(e.exit("data"),L(h)):(e.consume(h),h===92?A:D)}function A(h){return h===92||h===124?(e.consume(h),D):D(h)}}function ji(e,r){let t=-1,a=!0,i=0,o=[0,0,0,0],n=[0,0,0,0],c=!1,s=0,l,f,d;const p=new yi;for(;++t<e.length;){const g=e[t],m=g[1];g[0]==="enter"?m.type==="tableHead"?(c=!1,s!==0&&(Ct(p,r,s,l,f),f=void 0,s=0),l={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(t,0,[["enter",l,r]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(a=!0,d=void 0,o=[0,0,0,0],n=[0,t+1,0,0],c&&(c=!1,f={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(t,0,[["enter",f,r]])),i=m.type==="tableDelimiterRow"?2:f?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(a=!1,n[2]===0&&(o[1]!==0&&(n[0]=n[1],d=Ae(p,r,o,i,void 0,d),o=[0,0,0,0]),n[2]=t)):m.type==="tableCellDivider"&&(a?a=!1:(o[1]!==0&&(n[0]=n[1],d=Ae(p,r,o,i,void 0,d)),o=n,n=[o[1],t,0,0])):m.type==="tableHead"?(c=!0,s=t):m.type==="tableRow"||m.type==="tableDelimiterRow"?(s=t,o[1]!==0?(n[0]=n[1],d=Ae(p,r,o,i,t,d)):n[1]!==0&&(d=Ae(p,r,n,i,t,d)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(n[3]=t)}for(s!==0&&Ct(p,r,s,l,f),p.consume(r.events),t=-1;++t<r.events.length;){const g=r.events[t];g[0]==="enter"&&g[1].type==="table"&&(g[1]._align=wi(r.events,t))}return e}function Ae(e,r,t,a,i,o){const n=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",c="tableContent";t[0]!==0&&(o.end=Object.assign({},le(r.events,t[0])),e.add(t[0],0,[["exit",o,r]]));const s=le(r.events,t[1]);if(o={type:n,start:Object.assign({},s),end:Object.assign({},s)},e.add(t[1],0,[["enter",o,r]]),t[2]!==0){const l=le(r.events,t[2]),f=le(r.events,t[3]),d={type:c,start:Object.assign({},l),end:Object.assign({},f)};if(e.add(t[2],0,[["enter",d,r]]),a!==2){const p=r.events[t[2]],g=r.events[t[3]];if(p[1].end=Object.assign({},g[1].end),p[1].type="chunkText",p[1].contentType="text",t[3]>t[2]+1){const m=t[2]+1,k=t[3]-t[2]-1;e.add(m,k,[])}}e.add(t[3]+1,0,[["exit",d,r]])}return i!==void 0&&(o.end=Object.assign({},le(r.events,i)),e.add(i,0,[["exit",o,r]]),o=void 0),o}function Ct(e,r,t,a,i){const o=[],n=le(r.events,t);i&&(i.end=Object.assign({},n),o.push(["exit",i,r])),a.end=Object.assign({},n),o.push(["exit",a,r]),e.add(t+1,0,o)}function le(e,r){const t=e[r],a=t[0]==="enter"?"start":"end";return t[1][a]}const Ti={name:"tasklistCheck",tokenize:Ai};function Mi(){return{text:{91:Ti}}}function Ai(e,r,t){const a=this;return i;function i(s){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?t(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),o)}function o(s){return B(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),n):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),n):t(s)}function n(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):t(s)}function c(s){return de(s)?r(s):Y(s)?e.check({tokenize:Si},r,t)(s):t(s)}}function Si(e,r,t){return ee(e,a,"whitespace");function a(i){return i===null?t(i):r(i)}}function Ii(e){return Vn([Zn(),li(),bi(e),vi(),Mi()])}const Ni={};function Pi(e){const r=this,t=e||Ni,a=r.data(),i=a.micromarkExtensions||(a.micromarkExtensions=[]),o=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),n=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);i.push(Ii(t)),o.push(qn()),n.push(Hn(t))}function $(...e){return e.filter(Boolean).join(" ")}const Ri=({content:e})=>u.jsx(He.MarkdownTextPrimitive,{remarkPlugins:[Pi],className:"cuadra-aui-md",components:Di,children:e}),tt=y.memo(Ri),Li=({language:e,code:r})=>{const{isCopied:t,copyToClipboard:a}=Ei(),i=()=>{!r||t||a(r)};return u.jsxs("div",{className:"cuadra-flex cuadra-items-center cuadra-justify-between cuadra-gap-4 cuadra-mt-4 cuadra-rounded-t-lg cuadra-bg-muted/50 cuadra-border-b cuadra-border-border cuadra-px-4 cuadra-py-2 cuadra-text-sm cuadra-font-normal cuadra-text-foreground cuadra-font-brand",children:[u.jsx("span",{className:"cuadra-lowercase [&>span]:cuadra-text-xs cuadra-font-brand",children:e}),u.jsxs("button",{onClick:i,className:"cuadra-p-1 cuadra-rounded hover:cuadra-bg-muted cuadra-transition-colors","aria-label":"Copy code",children:[!t&&u.jsx(Lr,{className:"cuadra-h-4 cuadra-w-4"}),t&&u.jsx(Sr,{className:"cuadra-h-4 cuadra-w-4"})]})]})},Ei=({copiedDuration:e=3e3}={})=>{const[r,t]=y.useState(!1);return{isCopied:r,copyToClipboard:i=>{i&&navigator.clipboard.writeText(i).then(()=>{t(!0),setTimeout(()=>t(!1),e)})}}},Di=He.unstable_memoizeMarkdownComponents({h1:({className:e,...r})=>u.jsx("h1",{className:$("cuadra-mb-6 cuadra-scroll-m-20 cuadra-text-2xl cuadra-font-normal cuadra-tracking-tight last:cuadra-mb-0 font-brand",e),...r}),h2:({className:e,...r})=>u.jsx("h2",{className:$("cuadra-mb-4 cuadra-mt-6 cuadra-scroll-m-20 cuadra-text-xl cuadra-font-normal cuadra-tracking-tight first:cuadra-mt-0 last:cuadra-mb-0 font-brand",e),...r}),h3:({className:e,...r})=>u.jsx("h3",{className:$("cuadra-mb-3 cuadra-mt-5 cuadra-scroll-m-20 cuadra-text-lg cuadra-font-normal cuadra-tracking-tight first:cuadra-mt-0 last:cuadra-mb-0 font-brand",e),...r}),h4:({className:e,...r})=>u.jsx("h4",{className:$("cuadra-mb-4 cuadra-mt-6 cuadra-scroll-m-20 cuadra-text-xl cuadra-font-normal cuadra-tracking-tight first:cuadra-mt-0 last:cuadra-mb-0 font-brand",e),...r}),h5:({className:e,...r})=>u.jsx("h5",{className:$("cuadra-my-4 cuadra-text-lg cuadra-font-normal first:cuadra-mt-0 last:cuadra-mb-0 font-brand",e),...r}),h6:({className:e,...r})=>u.jsx("h6",{className:$("cuadra-my-4 cuadra-font-normal first:cuadra-mb-0 font-brand",e),...r}),p:({className:e,...r})=>u.jsx("p",{className:$("cuadra-mb-5 cuadra-mt-5 cuadra-leading-7 first:cuadra-mt-0 last:cuadra-mb-0 font-brand",e),...r}),a:({className:e,...r})=>u.jsx("a",{className:$("cuadra-text-primary cuadra-font-medium cuadra-underline cuadra-underline-offset-4 font-brand",e),...r}),blockquote:({className:e,...r})=>u.jsx("blockquote",{className:$("cuadra-border-l-2 cuadra-pl-6 cuadra-italic font-brand",e),...r}),ul:({className:e,...r})=>u.jsx("ul",{className:$("cuadra-my-5 cuadra-ml-6 cuadra-list-disc [&>li]:cuadra-mt-2 font-brand",e),...r}),ol:({className:e,...r})=>u.jsx("ol",{className:$("cuadra-my-5 cuadra-ml-6 cuadra-list-decimal [&>li]:cuadra-mt-2 font-brand",e),...r}),hr:({className:e,...r})=>u.jsx("hr",{className:$("cuadra-my-5 cuadra-border-b",e),...r}),table:({className:e,...r})=>u.jsx("table",{className:$("cuadra-my-5 cuadra-w-full cuadra-border-separate cuadra-border-spacing-0 cuadra-overflow-y-auto font-brand",e),...r}),th:({className:e,...r})=>u.jsx("th",{className:$("cuadra-bg-muted cuadra-px-4 cuadra-py-2 cuadra-text-left cuadra-font-normal first:cuadra-rounded-tl-lg last:cuadra-rounded-tr-lg [&[align=center]]:cuadra-text-center [&[align=right]]:cuadra-text-right font-brand",e),...r}),td:({className:e,...r})=>u.jsx("td",{className:$("cuadra-border-b cuadra-border-l cuadra-px-4 cuadra-py-2 cuadra-text-left last:cuadra-border-r [&[align=center]]:cuadra-text-center [&[align=right]]:cuadra-text-right font-brand",e),...r}),tr:({className:e,...r})=>u.jsx("tr",{className:$("cuadra-m-0 cuadra-border-b cuadra-p-0 first:cuadra-border-t [&:last-child>td:first-child]:cuadra-rounded-bl-lg [&:last-child>td:last-child]:cuadra-rounded-br-lg",e),...r}),sup:({className:e,...r})=>u.jsx("sup",{className:$("[&>a]:cuadra-text-xs [&>a]:cuadra-no-underline font-brand",e),...r}),pre:({className:e,...r})=>u.jsx("pre",{className:$("cuadra-overflow-x-auto cuadra-rounded-b-lg !cuadra-rounded-t-none cuadra-bg-muted cuadra-p-4 cuadra-text-foreground font-brand",e),...r}),code:function({className:r,...t}){const a=He.useIsMarkdownCodeBlock();return u.jsx("code",{className:$(!a&&"cuadra-bg-muted cuadra-rounded cuadra-border cuadra-font-normal font-brand",r),...t})},CodeHeader:Li});function rt({className:e="",variant:r="default",...t}){const a="cuadra-inline-flex cuadra-items-center cuadra-rounded-md cuadra-px-3 cuadra-py-1.5 cuadra-text-xs cuadra-font-medium font-brand",i={default:"cuadra-border cuadra-border-border cuadra-bg-muted cuadra-text-muted-foreground",subtle:"cuadra-border cuadra-border-border/50 cuadra-bg-muted/50 cuadra-text-muted-foreground",outline:"cuadra-border cuadra-border-border cuadra-bg-background cuadra-text-foreground",ghost:"cuadra-text-muted-foreground"};return u.jsx("div",{className:`${a} ${i[r]||i.default} ${e}`,...t})}function _i(e){const r=new Map;for(const t of e){const a=r.get(t.filename);(!a||t.score>a.score)&&r.set(t.filename,t)}return Array.from(r.values()).sort((t,a)=>a.score-t.score)}function cr({sources:e,maxVisible:r=3}){if(!e||e.length===0)return null;const t=_i(e),a=t.slice(0,r),i=t.length-r;return u.jsxs("div",{className:"cuadra-mt-4 cuadra-pt-3 cuadra-border-t cuadra-border-border",children:[u.jsxs("div",{className:"cuadra-flex cuadra-items-center cuadra-gap-1.5 cuadra-mb-2.5",children:[u.jsx(St,{className:"cuadra-h-3.5 cuadra-w-3.5 cuadra-text-muted-foreground"}),u.jsx("span",{className:"cuadra-text-xs cuadra-font-medium cuadra-text-muted-foreground font-brand",children:"Sources"})]}),u.jsxs("div",{className:"cuadra-flex cuadra-flex-wrap cuadra-gap-2",children:[a.map((o,n)=>u.jsx(zi,{source:o},o.sourceId||n)),i>0&&u.jsxs(rt,{variant:"subtle",children:["+",i," more"]})]})]})}function Fi(e){switch(e.split(".").pop()?.toLowerCase()){case"csv":case"xlsx":case"xls":return Fr;case"md":case"txt":return Or;default:return St}}function zi({source:e}){const{filename:r,score:t}=e,a=Fi(r);return u.jsxs(rt,{className:"cuadra-gap-2 cuadra-cursor-default",title:t<1?`${Math.round(t*100)}% relevant`:void 0,children:[u.jsx(a,{className:"cuadra-h-3.5 cuadra-w-3.5 cuadra-shrink-0 cuadra-opacity-60"}),u.jsx("span",{className:"cuadra-truncate cuadra-max-w-[180px]",children:r}),t<1&&t>0&&u.jsxs("span",{className:"cuadra-opacity-50 cuadra-text-[10px] cuadra-tabular-nums",children:[Math.round(t*100),"%"]})]})}const jt=y.forwardRef(function({welcomeTitle:r="Hi, how can I help you today?",welcomeSubtitle:t="Start exploring our platform and discover what you can build.",extraTopPadding:a,suggestions:i,inputPlaceholder:o="Type your message...",enableAttachments:n=!1,preMadeResponseDelay:c=1e3,streamingSpeed:s=50},l){const f=M.useThreadRuntime(),d=M.useAssistantApi(),[p,g]=y.useState(!1),[m,k]=y.useState(null),[x,b]=y.useState(!1),w=y.useCallback((C,L,D)=>{if(!x)try{const A=D?.streamingSpeed??s,h=D?.delay??c;Rt(C,L,A,h),d.composer().setText(C),setTimeout(()=>{d.composer().send()},10)}catch{}},[x,s,c,d]),v=y.useCallback(C=>{try{d.composer().setText(C),setTimeout(()=>{d.composer().send()},10)}catch{}},[d]),R=y.useCallback(async C=>{if(!(x||!f))try{if(C.response){const L=C.responseDelay??c;await w(C.prompt,C.response,{delay:L,streamingSpeed:s})}else v(C.prompt)}catch{}},[f,x,c,s,w,v]),I=y.useCallback(()=>{try{const C=window.__cuadraThreadListRuntime;C?.switchToNewThread&&C.switchToNewThread()}catch{}},[]);return y.useImperativeHandle(l,()=>({sendMessage:v,sendPreMadeQA:w,clearChat:I}),[v,w,I]),y.useEffect(()=>{if(!f){g(!1);return}try{const C=f?.store;if(!C){g(!1);return}const L=C.subscribe?.(A=>{const h=A?.threadId,U=A?.messages||[],F=A?.isLoadingHistory||!1,V=U.length;h&&h!==m&&k(h),g(F&&V===0)}),D=C.getState?.();if(D){const A=D?.threadId,h=D?.messages||[],U=D?.isLoadingHistory||!1,F=h.length;A&&A!==m&&k(A),g(U&&F===0)}return()=>{L&&L()}}catch{g(!1)}},[f,m]),u.jsxs(M.ThreadPrimitive.Root,{className:"cuadra-bg-inherit cuadra-flex cuadra-flex-col cuadra-w-full cuadra-h-full",children:[u.jsx(M.ThreadPrimitive.Viewport,{className:"cuadra-w-full cuadra-bg-inherit cuadra-px-4 cuadra-flex-1 cuadra-min-h-0 cuadra-overflow-y-auto cuadra-relative scrollbar-thin cuadra-pt-4",style:a?{paddingTop:a}:void 0,children:p?u.jsx("div",{className:"cuadra-absolute cuadra-inset-0 cuadra-flex cuadra-items-center cuadra-justify-center",children:u.jsxs("div",{className:"cuadra-flex cuadra-flex-col cuadra-items-center cuadra-gap-2",children:[u.jsx(It,{className:"cuadra-h-6 cuadra-w-6 cuadra-animate-spin cuadra-text-muted-foreground"}),u.jsx("p",{className:"cuadra-text-sm cuadra-text-muted-foreground font-brand",children:"Loading messages..."})]})}):u.jsxs(u.Fragment,{children:[u.jsx(M.ThreadPrimitive.Empty,{children:u.jsx($i,{title:r,subtitle:t,suggestions:i,onSuggestionClick:R,isProcessing:x})}),u.jsx(M.ThreadPrimitive.Messages,{components:{UserMessage:Oi,AssistantMessage:Wi}})]})}),u.jsxs("div",{className:"cuadra-w-full cuadra-mt-3 cuadra-border-t cuadra-border-border cuadra-pt-4",children:[n&&u.jsx(M.ComposerPrimitive.Attachments,{components:{Attachment:()=>{const C=M.useAssistantState(({attachment:L})=>L);return C?u.jsxs("div",{className:"cuadra-relative cuadra-inline-flex cuadra-items-center cuadra-gap-2 cuadra-mb-2 cuadra-px-2 cuadra-py-1 cuadra-rounded-md cuadra-bg-muted cuadra-border cuadra-border-border",children:[u.jsx("span",{className:"cuadra-text-xs cuadra-text-muted-foreground font-brand",children:C.name||"Attachment"}),u.jsx(M.AttachmentPrimitive.Remove,{asChild:!0,children:u.jsx("button",{type:"button",className:"cuadra-flex cuadra-items-center cuadra-justify-center cuadra-size-4 cuadra-rounded hover:cuadra-bg-background cuadra-transition-colors","aria-label":"Remove attachment",children:u.jsx(Ge,{className:"cuadra-h-3 cuadra-w-3 cuadra-text-muted-foreground"})})})]}):null}}}),u.jsxs(M.ComposerPrimitive.Root,{className:"cuadra-relative !cuadra-relative cuadra-flex-1 cuadra-w-full",children:[u.jsx(M.ComposerPrimitive.Input,{asChild:!0,children:u.jsx("textarea",{rows:3,placeholder:o,className:"cuadra-flex cuadra-min-h-[80px] cuadra-w-full cuadra-rounded-md cuadra-border cuadra-border-border cuadra-bg-background cuadra-px-3 cuadra-py-2 cuadra-text-base cuadra-text-foreground placeholder:cuadra-text-muted-foreground focus-visible:cuadra-outline-none disabled:cuadra-cursor-not-allowed disabled:cuadra-opacity-50 cuadra-resize-none font-brand",style:{paddingRight:n?"5rem":"3rem",fontSize:"1rem",borderWidth:"1px"}})}),n&&u.jsx(M.ComposerPrimitive.AddAttachment,{multiple:!0,asChild:!0,children:u.jsx("button",{type:"button",className:"!cuadra-absolute !cuadra-bottom-2 !cuadra-right-12 cuadra-size-8 cuadra-rounded-md hover:cuadra-bg-muted cuadra-transition-colors cuadra-flex cuadra-items-center cuadra-justify-center cuadra-border cuadra-border-border",style:{position:"absolute",bottom:"0.5rem",right:"3rem"},"aria-label":"Attach file",children:u.jsx(Nt,{className:"cuadra-h-4 cuadra-w-4 cuadra-text-muted-foreground",strokeWidth:1.5})})}),u.jsx(M.ComposerPrimitive.Send,{asChild:!0,children:u.jsx("button",{className:"!cuadra-absolute !cuadra-bottom-2 !cuadra-right-2 cuadra-size-8 cuadra-rounded-md cuadra-shadow-sm hover:cuadra-opacity-90 disabled:cuadra-opacity-50 disabled:cuadra-cursor-not-allowed cuadra-flex cuadra-items-center cuadra-justify-center",style:{position:"absolute",bottom:"0.5rem",right:"0.5rem",backgroundColor:"var(--cuadra-primary)",color:"hsl(var(--cuadra-primary-foreground))"},"aria-label":"Send message",type:"button",children:u.jsx(Mr,{className:"cuadra-h-4 cuadra-w-4"})})})]})]})]})});function $i({title:e,subtitle:r,suggestions:t,onSuggestionClick:a,isProcessing:i}){return u.jsx("div",{className:"cuadra-flex cuadra-flex-col cuadra-items-center cuadra-h-full cuadra-py-12 cuadra-px-4 cuadra-overflow-y-auto scrollbar-hide",children:u.jsxs("div",{className:"cuadra-text-center cuadra-max-w-3xl cuadra-w-full cuadra-flex cuadra-flex-col cuadra-items-center cuadra-justify-center cuadra-min-h-full",children:[u.jsxs("div",{className:"cuadra-flex cuadra-flex-col cuadra-items-center cuadra-justify-center cuadra-mb-8",children:[u.jsx("h2",{className:"cuadra-text-lg cuadra-font-normal cuadra-text-foreground cuadra-mb-2 font-brand",children:e}),u.jsx("p",{className:"cuadra-text-muted-foreground font-brand",children:r})]}),t&&t.length>0&&u.jsx("div",{className:"cuadra-grid cuadra-grid-cols-2 cuadra-gap-2 cuadra-pb-4 cuadra-w-full cuadra-max-w-2xl",children:t.map((o,n)=>u.jsx("button",{type:"button",onClick:()=>a(o),disabled:i,className:"cuadra-w-full cuadra-text-center cuadra-px-4 cuadra-py-3 cuadra-rounded-lg cuadra-border cuadra-border-border cuadra-bg-background cuadra-text-sm cuadra-text-foreground font-brand cuadra-cursor-pointer focus:cuadra-outline-none focus:cuadra-ring-0 disabled:cuadra-opacity-50 disabled:cuadra-cursor-not-allowed",style:{borderWidth:"1px"},children:o.prompt},`suggestion-${n}`))})]})})}function Oi(){return u.jsxs(M.MessagePrimitive.Root,{className:"cuadra-grid cuadra-w-full cuadra-auto-rows-auto cuadra-grid-cols-[minmax(72px,1fr)_auto] cuadra-gap-y-2 cuadra-py-3 [&:where(>*)]:cuadra-col-start-2",children:[u.jsx(M.MessagePrimitive.Attachments,{components:{Attachment:()=>{const e=M.useAssistantState(({attachment:o})=>o);if(!e)return null;const r=e.type==="image",t=e.file,a=e.content?.find(o=>o.type==="image"),i=t?URL.createObjectURL(t):a?.image;return u.jsx("div",{className:"cuadra-col-start-2 cuadra-row-start-1 cuadra-mb-2 cuadra-max-w-[calc(42rem*0.8)]",children:r&&i?u.jsx("img",{src:i,alt:e.name||"Attachment",className:"cuadra-rounded-lg cuadra-border cuadra-border-border cuadra-max-h-64 cuadra-max-w-full cuadra-object-contain",style:{borderWidth:"1px"}}):u.jsxs("div",{className:"cuadra-flex cuadra-items-center cuadra-gap-2 cuadra-rounded-lg cuadra-border cuadra-border-border cuadra-bg-muted cuadra-px-3 cuadra-py-2",children:[u.jsx(Nt,{className:"cuadra-h-4 cuadra-w-4 cuadra-text-muted-foreground"}),u.jsx("span",{className:"cuadra-text-sm cuadra-text-foreground font-brand",children:e.name||"Attachment"})]})})}}}),u.jsx("div",{className:"cuadra-bg-muted cuadra-text-foreground cuadra-col-start-2 cuadra-row-start-2 cuadra-max-w-[calc(42rem*0.8)] cuadra-break-words cuadra-rounded-3xl cuadra-border cuadra-border-border cuadra-px-5 cuadra-py-2.5 font-brand",style:{maxWidth:"calc(42rem * 0.8)",borderRadius:"1.5rem",backgroundColor:"var(--cuadra-muted)",color:"hsl(var(--cuadra-foreground))",paddingLeft:"1.25rem",paddingRight:"1.25rem",paddingTop:"0.625rem",paddingBottom:"0.625rem",wordBreak:"break-word",borderWidth:"1px"},children:u.jsx(M.MessagePrimitive.Parts,{components:{Text:({text:e})=>u.jsx(tt,{content:e||""})}})})]})}function Ui({text:e}){const[r,t]=y.useState(!1),a=M.useAssistantState(({message:i})=>i?.status?.type==="running");return e?a?u.jsx("div",{className:"cuadra-mb-3 cuadra-py-1",children:u.jsx("div",{className:"cuadra-text-sm cuadra-text-muted-foreground cuadra-leading-relaxed font-brand cuadra-animate-text-shimmer",children:e})}):u.jsxs("div",{className:"cuadra-mb-3",children:[u.jsxs("button",{type:"button",onClick:()=>t(!r),className:"cuadra-flex cuadra-items-center cuadra-gap-1.5 cuadra-py-1 cuadra-text-sm cuadra-text-muted-foreground hover:cuadra-text-foreground cuadra-transition-colors font-brand",children:[u.jsx(Ve,{className:`cuadra-h-3.5 cuadra-w-3.5 cuadra-shrink-0 cuadra-transition-transform cuadra-duration-200 ${r?"":"cuadra--rotate-90"}`}),u.jsx("span",{children:"Reasoning"})]}),u.jsx("div",{className:`cuadra-overflow-hidden cuadra-transition-all cuadra-duration-200 cuadra-ease-out ${r?"cuadra-max-h-[2000px] cuadra-opacity-100":"cuadra-max-h-0 cuadra-opacity-0"}`,children:u.jsx("div",{className:"cuadra-pl-5 cuadra-pt-2 cuadra-text-sm cuadra-text-muted-foreground cuadra-leading-relaxed font-brand",children:u.jsx(tt,{content:e})})})]}):null}function Bi(){return u.jsxs("div",{className:"cuadra-flex cuadra-items-center cuadra-gap-2 cuadra-text-muted-foreground cuadra-text-sm font-brand cuadra-py-2",children:[u.jsxs("div",{className:"cuadra-flex cuadra-items-center cuadra-gap-1",children:[u.jsx("span",{className:"cuadra-inline-block cuadra-w-1.5 cuadra-h-1.5 cuadra-bg-current cuadra-rounded-full cuadra-animate-bounce",style:{animationDelay:"0ms"}}),u.jsx("span",{className:"cuadra-inline-block cuadra-w-1.5 cuadra-h-1.5 cuadra-bg-current cuadra-rounded-full cuadra-animate-bounce",style:{animationDelay:"150ms"}}),u.jsx("span",{className:"cuadra-inline-block cuadra-w-1.5 cuadra-h-1.5 cuadra-bg-current cuadra-rounded-full cuadra-animate-bounce",style:{animationDelay:"300ms"}})]}),u.jsx("span",{children:"Thinking..."})]})}function Wi(){const[e]=y.useState(()=>J.getCurrentMessageId()),r=M.useAssistantState(({message:i})=>i?.status?.type==="running"),t=M.useAssistantState(({message:i})=>{const o=i?.content;return!o||!Array.isArray(o)?!1:o.some(n=>!!(n.type==="text"&&n.text&&n.text.length>0||n.type==="reasoning"&&n.text&&n.text.length>0))}),a=y.useSyncExternalStore(i=>J.subscribe(i),()=>{if(e){const o=J.getForMessage(e);return o.sources?.length?o.sources:null}const i=J.getCurrentMessageId();if(i){const o=J.getForMessage(i);return o.sources?.length?o.sources:null}return null},()=>null);return u.jsx(M.MessagePrimitive.Root,{className:"cuadra-relative cuadra-grid cuadra-w-full cuadra-grid-cols-[auto_auto_1fr] cuadra-grid-rows-[auto_1fr] cuadra-py-3",children:u.jsxs("div",{className:"cuadra-text-foreground cuadra-col-span-2 cuadra-col-start-2 cuadra-row-start-1 cuadra-my-1.5 cuadra-max-w-[90%] cuadra-break-words cuadra-leading-7 font-brand",style:{maxWidth:"90%",marginTop:"0.375rem",marginBottom:"0.375rem"},children:[u.jsx(M.MessagePrimitive.Parts,{components:{Text:({text:i})=>u.jsx(tt,{content:i||""}),Reasoning:({text:i})=>u.jsx(Ui,{text:i||""})}}),r&&!t&&u.jsx(Bi,{}),a&&a.length>0&&u.jsx(cr,{sources:a})]})})}const ur=({className:e="",theme:r="system"})=>{const t=()=>{if(typeof window>"u")return"light";if(r==="system"){const n=localStorage.getItem("theme");return n||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")}return r},[a,i]=y.useState(t);y.useEffect(()=>{r!=="system"&&i(r)},[r]),y.useEffect(()=>{const n=document.documentElement;n.classList.remove("light","dark"),n.classList.add(a),r==="system"&&localStorage.setItem("theme",a)},[a,r]);const o=()=>{r==="system"&&i(n=>n==="light"?"dark":"light")};return u.jsx("button",{type:"button","aria-label":"Toggle theme",onClick:o,disabled:r!=="system",className:`cuadra-flex cuadra-items-center cuadra-justify-center cuadra-h-8 cuadra-w-8 cuadra-rounded-full cuadra-bg-muted hover:cuadra-bg-muted/80 cuadra-transition-colors disabled:cuadra-opacity-50 disabled:cuadra-cursor-not-allowed ${e}`,children:u.jsx(Pr,{className:`cuadra-h-4 cuadra-w-4 cuadra-transition-colors ${a==="dark"?"cuadra-text-primary":"cuadra-text-gray-400"}`})})};function qi({onThreadSelect:e}){const r=M.useThreadListItem(),t=M.useThread(x=>x.threadId),[a,i]=y.useState(null),o=r?.id===t,n=a===r?.id,[c,s]=y.useState(!1),[l,f]=y.useState(r?.title||""),[d,p]=y.useState(!1),[g,m]=y.useState(!1),k=async()=>{if(!r?.remoteId||!l||l===r.title){s(!1);return}try{m(!0);const x=window.__cuadraThreadListAdapter;x&&typeof x.rename=="function"&&await x.rename(r.remoteId,l),s(!1),p(!1)}catch{s(!1),p(!1)}finally{m(!1)}};return y.useEffect(()=>{r?.title&&!c&&f(r.title)},[r?.title,c]),r?u.jsxs(M.ThreadListItemPrimitive.Root,{className:`group cuadra-relative cuadra-flex cuadra-items-center cuadra-rounded-lg cuadra-transition-colors cuadra-cursor-pointer cuadra-border cuadra-mb-2 ${o?"cuadra-bg-muted cuadra-border-border":"cuadra-border-transparent hover:cuadra-bg-muted hover:cuadra-border-border"}`,style:{marginBottom:"0.5rem"},onMouseEnter:()=>i(r.id),onMouseLeave:()=>i(null),children:[u.jsx(M.ThreadListItemPrimitive.Trigger,{className:"cuadra-p-3 cuadra-flex-1 cuadra-flex cuadra-items-center cuadra-min-w-0 cuadra-cursor-pointer",onClick:()=>e?.(),children:u.jsx("div",{className:"cuadra-flex cuadra-flex-col cuadra-min-w-0 cuadra-flex-1 cuadra-items-start cuadra-text-left",children:c?u.jsx("input",{className:"cuadra-flex cuadra-w-full cuadra-rounded-md cuadra-border cuadra-border-input cuadra-bg-background cuadra-px-3 cuadra-py-2 cuadra-text-sm placeholder:cuadra-text-muted-foreground focus-visible:cuadra-outline-none disabled:cuadra-cursor-not-allowed disabled:cuadra-opacity-50 font-brand",value:l,onChange:x=>f(x.target.value),onKeyDown:x=>{x.key==="Enter"&&k(),x.key==="Escape"&&(s(!1),f(r.title||""))},disabled:g,autoFocus:!0,onClick:x=>x.stopPropagation()}):u.jsxs(u.Fragment,{children:[u.jsx("span",{className:"cuadra-text-sm cuadra-font-normal cuadra-text-foreground cuadra-truncate font-brand",children:(r.title?.length||0)>60?`${r.title?.slice(0,60)}…`:r.title||"Chat"}),r.updatedAt&&u.jsx("span",{className:"cuadra-text-xs cuadra-text-muted-foreground cuadra-mt-1 font-brand",children:new Date(r.updatedAt).toLocaleDateString()})]})})}),u.jsx("div",{className:"cuadra-mr-2 cuadra-flex-shrink-0 cuadra-w-6 cuadra-h-6 cuadra-flex cuadra-items-center cuadra-justify-center",children:(n||o||d)&&u.jsxs("div",{className:"cuadra-relative",children:[u.jsx("button",{type:"button",className:"cuadra-p-1 cuadra-rounded hover:cuadra-bg-background/50 cuadra-transition-colors",onClick:x=>{x.stopPropagation(),p(!d)},"aria-label":"Thread options",children:u.jsx(Dr,{className:"cuadra-h-4 cuadra-w-4 cuadra-text-muted-foreground"})}),d&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"cuadra-fixed cuadra-inset-0 cuadra-z-40",onClick:()=>p(!1)}),u.jsx("div",{className:"cuadra-absolute cuadra-right-0 cuadra-top-8 cuadra-z-50 cuadra-bg-background cuadra-border cuadra-border-border cuadra-rounded-lg cuadra-shadow-lg cuadra-min-w-[120px] cuadra-overflow-hidden",children:c?u.jsx("button",{type:"button",className:"cuadra-w-full cuadra-px-3 cuadra-py-2 cuadra-text-sm cuadra-text-left hover:cuadra-bg-muted cuadra-transition-colors font-brand",onClick:x=>{x.stopPropagation(),k()},disabled:g,children:"Save"}):u.jsxs(u.Fragment,{children:[u.jsx("button",{type:"button",className:"cuadra-w-full cuadra-px-3 cuadra-py-2 cuadra-text-sm cuadra-text-left hover:cuadra-bg-muted cuadra-transition-colors font-brand",onClick:x=>{x.stopPropagation(),s(!0),f(r.title||""),p(!1)},children:"Rename"}),u.jsx("div",{className:"cuadra-border-t cuadra-border-border"}),u.jsx(M.ThreadListItemPrimitive.Delete,{asChild:!0,children:u.jsx("button",{type:"button",className:"cuadra-w-full cuadra-px-3 cuadra-py-2 cuadra-text-sm cuadra-text-left cuadra-text-destructive hover:cuadra-bg-muted cuadra-transition-colors font-brand",onClick:x=>{x.stopPropagation(),p(!1)},children:"Delete"})})]})})]})]})})]}):null}function Tt({onThreadSelect:e,showThemeToggle:r,theme:t,onLogout:a}){return u.jsxs(M.ThreadListPrimitive.Root,{className:"!cuadra-border-r cuadra-border-border cuadra-flex cuadra-flex-col cuadra-bg-background cuadra-transition-all cuadra-duration-300 cuadra-ease-in-out cuadra-h-full cuadra-w-80",style:{borderRightWidth:"1px"},children:[u.jsx("div",{className:"cuadra-border-b cuadra-border-border cuadra-flex cuadra-items-center cuadra-justify-end cuadra-transition-all cuadra-duration-300 cuadra-h-16 cuadra-px-4",children:u.jsx("button",{type:"button",onClick:e,className:"cuadra-flex md:cuadra-hidden cuadra-items-center cuadra-justify-center cuadra-h-8 cuadra-w-8 cuadra-rounded-full cuadra-bg-muted hover:cuadra-bg-muted/80 cuadra-transition-colors","aria-label":"Close",children:u.jsx(Ge,{className:"cuadra-h-4 cuadra-w-4 cuadra-text-foreground"})})}),u.jsxs("div",{className:"cuadra-flex-1 cuadra-overflow-y-auto cuadra-p-2 scrollbar-thin",children:[u.jsx(M.ThreadListPrimitive.New,{className:"group cuadra-relative cuadra-flex cuadra-items-center cuadra-gap-3 cuadra-p-3 cuadra-rounded-lg cuadra-cursor-pointer cuadra-transition-colors cuadra-border cuadra-border-transparent hover:cuadra-bg-muted hover:cuadra-border-border",onClick:()=>e?.(),children:u.jsx("div",{className:"cuadra-flex-1 cuadra-min-w-0",children:u.jsxs("div",{className:"cuadra-flex cuadra-items-center cuadra-gap-2",children:[u.jsx(Kr,{className:"cuadra-h-4 cuadra-w-4 cuadra-text-muted-foreground"}),u.jsx("h4",{className:"cuadra-text-sm cuadra-font-normal cuadra-text-foreground font-brand",children:"New Chat"})]})})}),u.jsx("div",{className:"cuadra-my-2 cuadra-border-t cuadra-border-border"}),u.jsx(M.ThreadListPrimitive.Items,{components:{ThreadListItem:i=>u.jsx(qi,{...i,onThreadSelect:e})}})]}),(r||a)&&u.jsxs("div",{className:"cuadra-border-t cuadra-border-border cuadra-flex md:cuadra-hidden cuadra-items-center cuadra-justify-between cuadra-px-4 cuadra-py-4",children:[a&&u.jsx("button",{type:"button",onClick:a,className:"cuadra-flex cuadra-items-center cuadra-justify-center cuadra-h-8 cuadra-w-8 cuadra-rounded-full cuadra-bg-muted hover:cuadra-bg-muted/80 cuadra-transition-colors","aria-label":"Logout",children:u.jsx(Wr,{className:"cuadra-h-4 cuadra-w-4 cuadra-text-foreground"})}),r&&u.jsx(ur,{theme:t})]})]})}const Hi=`
13
+ `});return E(),x(),R+`
14
+ `+(f===1?"=":"-").repeat(R.length-(Math.max(R.lastIndexOf("\r"),R.lastIndexOf(`
15
+ `))+1))}const h="#".repeat(f),y=i.enter("headingAtx"),b=i.enter("phrasing");m.move(h+" ");let v=i.containerPhrasing(t,{before:"# ",after:`
16
+ `,...m.current()});return/^[\t ]/.test(v)&&(v=_S(v.charCodeAt(0))+v.slice(1)),v=v?h+" "+v:h,i.options.closeAtx&&(v+=" "+h),b(),y(),v}$z.peek=RL;function $z(t){return t.value||""}function RL(){return"<"}Hz.peek=CL;function Hz(t,a,i,u){const f=ZA(i),m=f==='"'?"Quote":"Apostrophe",h=i.enter("image");let y=i.enter("label");const b=i.createTracker(u);let v=b.move("![");return v+=b.move(i.safe(t.alt,{before:v,after:"]",...b.current()})),v+=b.move("]("),y(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(y=i.enter("destinationLiteral"),v+=b.move("<"),v+=b.move(i.safe(t.url,{before:v,after:">",...b.current()})),v+=b.move(">")):(y=i.enter("destinationRaw"),v+=b.move(i.safe(t.url,{before:v,after:t.title?" ":")",...b.current()}))),y(),t.title&&(y=i.enter(`title${m}`),v+=b.move(" "+f),v+=b.move(i.safe(t.title,{before:v,after:f,...b.current()})),v+=b.move(f),y()),v+=b.move(")"),h(),v}function CL(){return"!"}Pz.peek=AL;function Pz(t,a,i,u){const f=t.referenceType,m=i.enter("imageReference");let h=i.enter("label");const y=i.createTracker(u);let b=y.move("![");const v=i.safe(t.alt,{before:b,after:"]",...y.current()});b+=y.move(v+"]["),h();const x=i.stack;i.stack=[],h=i.enter("reference");const E=i.safe(i.associationId(t),{before:b,after:"]",...y.current()});return h(),i.stack=x,m(),f==="full"||!v||v!==E?b+=y.move(E+"]"):f==="shortcut"?b=b.slice(0,-1):b+=y.move("]"),b}function AL(){return"!"}Iz.peek=_L;function Iz(t,a,i){let u=t.value||"",f="`",m=-1;for(;new RegExp("(^|[^`])"+f+"([^`]|$)").test(u);)f+="`";for(/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^`|`$/.test(u))&&(u=" "+u+" ");++m<i.unsafe.length;){const h=i.unsafe[m],y=i.compilePattern(h);let b;if(h.atBreak)for(;b=y.exec(u);){let v=b.index;u.charCodeAt(v)===10&&u.charCodeAt(v-1)===13&&v--,u=u.slice(0,v)+" "+u.slice(b.index+1)}}return f+u+f}function _L(){return"`"}function Vz(t,a){const i=Uz(t);return!!(!a.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(i===t.url||"mailto:"+i===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}Gz.peek=ML;function Gz(t,a,i,u){const f=ZA(i),m=f==='"'?"Quote":"Apostrophe",h=i.createTracker(u);let y,b;if(Vz(t,i)){const x=i.stack;i.stack=[],y=i.enter("autolink");let E=h.move("<");return E+=h.move(i.containerPhrasing(t,{before:E,after:">",...h.current()})),E+=h.move(">"),y(),i.stack=x,E}y=i.enter("link"),b=i.enter("label");let v=h.move("[");return v+=h.move(i.containerPhrasing(t,{before:v,after:"](",...h.current()})),v+=h.move("]("),b(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(b=i.enter("destinationLiteral"),v+=h.move("<"),v+=h.move(i.safe(t.url,{before:v,after:">",...h.current()})),v+=h.move(">")):(b=i.enter("destinationRaw"),v+=h.move(i.safe(t.url,{before:v,after:t.title?" ":")",...h.current()}))),b(),t.title&&(b=i.enter(`title${m}`),v+=h.move(" "+f),v+=h.move(i.safe(t.title,{before:v,after:f,...h.current()})),v+=h.move(f),b()),v+=h.move(")"),y(),v}function ML(t,a,i){return Vz(t,i)?"<":"["}Yz.peek=OL;function Yz(t,a,i,u){const f=t.referenceType,m=i.enter("linkReference");let h=i.enter("label");const y=i.createTracker(u);let b=y.move("[");const v=i.containerPhrasing(t,{before:b,after:"]",...y.current()});b+=y.move(v+"]["),h();const x=i.stack;i.stack=[],h=i.enter("reference");const E=i.safe(i.associationId(t),{before:b,after:"]",...y.current()});return h(),i.stack=x,m(),f==="full"||!v||v!==E?b+=y.move(E+"]"):f==="shortcut"?b=b.slice(0,-1):b+=y.move("]"),b}function OL(){return"["}function JA(t){const a=t.options.bullet||"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bullet`, expected `*`, `+`, or `-`");return a}function qL(t){const a=JA(t),i=t.options.bulletOther;if(!i)return a==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===a)throw new Error("Expected `bullet` (`"+a+"`) and `bulletOther` (`"+i+"`) to be different");return i}function DL(t){const a=t.options.bulletOrdered||".";if(a!=="."&&a!==")")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOrdered`, expected `.` or `)`");return a}function Xz(t){const a=t.options.rule||"*";if(a!=="*"&&a!=="-"&&a!=="_")throw new Error("Cannot serialize rules with `"+a+"` for `options.rule`, expected `*`, `-`, or `_`");return a}function NL(t,a,i,u){const f=i.enter("list"),m=i.bulletCurrent;let h=t.ordered?DL(i):JA(i);const y=t.ordered?h==="."?")":".":qL(i);let b=a&&i.bulletLastUsed?h===i.bulletLastUsed:!1;if(!t.ordered){const x=t.children?t.children[0]:void 0;if((h==="*"||h==="-")&&x&&(!x.children||!x.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(b=!0),Xz(i)===h&&x){let E=-1;for(;++E<t.children.length;){const R=t.children[E];if(R&&R.type==="listItem"&&R.children&&R.children[0]&&R.children[0].type==="thematicBreak"){b=!0;break}}}}b&&(h=y),i.bulletCurrent=h;const v=i.containerFlow(t,u);return i.bulletLastUsed=h,i.bulletCurrent=m,f(),v}function jL(t){const a=t.options.listItemIndent||"one";if(a!=="tab"&&a!=="one"&&a!=="mixed")throw new Error("Cannot serialize items with `"+a+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return a}function zL(t,a,i,u){const f=jL(i);let m=i.bulletCurrent||JA(i);a&&a.type==="list"&&a.ordered&&(m=(typeof a.start=="number"&&a.start>-1?a.start:1)+(i.options.incrementListMarker===!1?0:a.children.indexOf(t))+m);let h=m.length+1;(f==="tab"||f==="mixed"&&(a&&a.type==="list"&&a.spread||t.spread))&&(h=Math.ceil(h/4)*4);const y=i.createTracker(u);y.move(m+" ".repeat(h-m.length)),y.shift(h);const b=i.enter("listItem"),v=i.indentLines(i.containerFlow(t,y.current()),x);return b(),v;function x(E,R,A){return R?(A?"":" ".repeat(h))+E:(A?m:m+" ".repeat(h-m.length))+E}}function kL(t,a,i,u){const f=i.enter("paragraph"),m=i.enter("phrasing"),h=i.containerPhrasing(t,u);return m(),f(),h}const BL=sx(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function UL(t,a,i,u){return(t.children.some(function(h){return BL(h)})?i.containerPhrasing:i.containerFlow).call(i,t,u)}function LL(t){const a=t.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}Fz.peek=$L;function Fz(t,a,i,u){const f=LL(i),m=i.enter("strong"),h=i.createTracker(u),y=h.move(f+f);let b=h.move(i.containerPhrasing(t,{after:f,before:y,...h.current()}));const v=b.charCodeAt(0),x=Pw(u.before.charCodeAt(u.before.length-1),v,f);x.inside&&(b=_S(v)+b.slice(1));const E=b.charCodeAt(b.length-1),R=Pw(u.after.charCodeAt(0),E,f);R.inside&&(b=b.slice(0,-1)+_S(E));const A=h.move(f+f);return m(),i.attentionEncodeSurroundingInfo={after:R.outside,before:x.outside},y+b+A}function $L(t,a,i){return i.options.strong||"*"}function HL(t,a,i,u){return i.safe(t.value,u)}function PL(t){const a=t.options.ruleRepetition||3;if(a<3)throw new Error("Cannot serialize rules with repetition `"+a+"` for `options.ruleRepetition`, expected `3` or more");return a}function IL(t,a,i){const u=(Xz(i)+(i.options.ruleSpaces?" ":"")).repeat(PL(i));return i.options.ruleSpaces?u.slice(0,-1):u}const Qz={blockquote:sL,break:z2,code:mL,definition:gL,emphasis:Bz,hardBreak:z2,heading:xL,html:$z,image:Hz,imageReference:Pz,inlineCode:Iz,link:Gz,linkReference:Yz,list:NL,listItem:zL,paragraph:kL,root:UL,strong:Fz,text:HL,thematicBreak:IL};function VL(){return{enter:{table:GL,tableData:B2,tableHeader:B2,tableRow:XL},exit:{codeText:FL,table:YL,tableData:rC,tableHeader:rC,tableRow:rC}}}function GL(t){const a=t._align;this.enter({type:"table",align:a.map(function(i){return i==="none"?null:i}),children:[]},t),this.data.inTable=!0}function YL(t){this.exit(t),this.data.inTable=void 0}function XL(t){this.enter({type:"tableRow",children:[]},t)}function rC(t){this.exit(t)}function B2(t){this.enter({type:"tableCell",children:[]},t)}function FL(t){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,QL));const i=this.stack[this.stack.length-1];i.type,i.value=a,this.exit(t)}function QL(t,a){return a==="|"?a:t}function ZL(t){const a=t||{},i=a.tableCellPadding,u=a.tablePipeAlign,f=a.stringLength,m=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
17
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:R,table:h,tableCell:b,tableRow:y}};function h(A,M,q,N){return v(x(A,q,N),A.align)}function y(A,M,q,N){const _=E(A,q,N),L=v([_]);return L.slice(0,L.indexOf(`
18
+ `))}function b(A,M,q,N){const _=q.enter("tableCell"),L=q.enter("phrasing"),$=q.containerPhrasing(A,{...N,before:m,after:m});return L(),_(),$}function v(A,M){return oL(A,{align:M,alignDelimiters:u,padding:i,stringLength:f})}function x(A,M,q){const N=A.children;let _=-1;const L=[],$=M.enter("table");for(;++_<N.length;)L[_]=E(N[_],M,q);return $(),L}function E(A,M,q){const N=A.children;let _=-1;const L=[],$=M.enter("tableRow");for(;++_<N.length;)L[_]=b(N[_],A,M,q);return $(),L}function R(A,M,q){let N=Qz.inlineCode(A,M,q);return q.stack.includes("tableCell")&&(N=N.replace(/\|/g,"\\$&")),N}}function JL(){return{exit:{taskListCheckValueChecked:U2,taskListCheckValueUnchecked:U2,paragraph:WL}}}function KL(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:e$}}}function U2(t){const a=this.stack[this.stack.length-2];a.type,a.checked=t.type==="taskListCheckValueChecked"}function WL(t){const a=this.stack[this.stack.length-2];if(a&&a.type==="listItem"&&typeof a.checked=="boolean"){const i=this.stack[this.stack.length-1];i.type;const u=i.children[0];if(u&&u.type==="text"){const f=a.children;let m=-1,h;for(;++m<f.length;){const y=f[m];if(y.type==="paragraph"){h=y;break}}h===i&&(u.value=u.value.slice(1),u.value.length===0?i.children.shift():i.position&&u.position&&typeof u.position.start.offset=="number"&&(u.position.start.column++,u.position.start.offset++,i.position.start=Object.assign({},u.position.start)))}}this.exit(t)}function e$(t,a,i,u){const f=t.children[0],m=typeof t.checked=="boolean"&&f&&f.type==="paragraph",h="["+(t.checked?"x":" ")+"] ",y=i.createTracker(u);m&&y.move(h);let b=Qz.listItem(t,a,i,{...u,...y.current()});return m&&(b=b.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,v)),b;function v(x){return x+h}}function t$(){return[O5(),J5(),tL(),VL(),JL()]}function n$(t){return{extensions:[q5(),K5(t),nL(),ZL(t),KL()]}}function Ow(t,a,i,u){const f=t.length;let m=0,h;if(a<0?a=-a>f?0:f+a:a=a>f?f:a,i=i>0?i:0,u.length<1e4)h=Array.from(u),h.unshift(a,i),t.splice(...h);else for(i&&t.splice(a,i);m<u.length;)h=u.slice(m,m+1e4),h.unshift(a,0),t.splice(...h),m+=1e4,a+=1e4}const L2={}.hasOwnProperty;function a$(t){const a={};let i=-1;for(;++i<t.length;)r$(a,t[i]);return a}function r$(t,a){let i;for(i in a){const f=(L2.call(t,i)?t[i]:void 0)||(t[i]={}),m=a[i];let h;if(m)for(h in m){L2.call(f,h)||(f[h]=[]);const y=m[h];l$(f[h],Array.isArray(y)?y:y?[y]:[])}}}function l$(t,a){let i=-1;const u=[];for(;++i<a.length;)(a[i].add==="after"?t:u).push(a[i]);Ow(t,0,0,u)}const i$={tokenize:d$,partial:!0},Zz={tokenize:p$,partial:!0},Jz={tokenize:h$,partial:!0},Kz={tokenize:m$,partial:!0},o$={tokenize:y$,partial:!0},Wz={name:"wwwAutolink",tokenize:c$,previous:t4},e4={name:"protocolAutolink",tokenize:f$,previous:n4},Zs={name:"emailAutolink",tokenize:s$,previous:a4},xu={};function u$(){return{text:xu}}let Rp=48;for(;Rp<123;)xu[Rp]=Zs,Rp++,Rp===58?Rp=65:Rp===91&&(Rp=97);xu[43]=Zs;xu[45]=Zs;xu[46]=Zs;xu[95]=Zs;xu[72]=[Zs,e4];xu[104]=[Zs,e4];xu[87]=[Zs,Wz];xu[119]=[Zs,Wz];function s$(t,a,i){const u=this;let f,m;return h;function h(E){return!lA(E)||!a4.call(u,u.previous)||KA(u.events)?i(E):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),y(E))}function y(E){return lA(E)?(t.consume(E),y):E===64?(t.consume(E),b):i(E)}function b(E){return E===46?t.check(o$,x,v)(E):E===45||E===95||QA(E)?(m=!0,t.consume(E),b):x(E)}function v(E){return t.consume(E),f=!0,b}function x(E){return m&&f&&AS(u.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),a(E)):i(E)}}function c$(t,a,i){const u=this;return f;function f(h){return h!==87&&h!==119||!t4.call(u,u.previous)||KA(u.events)?i(h):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(i$,t.attempt(Zz,t.attempt(Jz,m),i),i)(h))}function m(h){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),a(h)}}function f$(t,a,i){const u=this;let f="",m=!1;return h;function h(E){return(E===72||E===104)&&n4.call(u,u.previous)&&!KA(u.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),f+=String.fromCodePoint(E),t.consume(E),y):i(E)}function y(E){if(AS(E)&&f.length<5)return f+=String.fromCodePoint(E),t.consume(E),y;if(E===58){const R=f.toLowerCase();if(R==="http"||R==="https")return t.consume(E),b}return i(E)}function b(E){return E===47?(t.consume(E),m?v:(m=!0,b)):i(E)}function v(E){return E===null||y5(E)||Tl(E)||zp(E)||ox(E)?i(E):t.attempt(Zz,t.attempt(Jz,x),i)(E)}function x(E){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),a(E)}}function d$(t,a,i){let u=0;return f;function f(h){return(h===87||h===119)&&u<3?(u++,t.consume(h),f):h===46&&u===3?(t.consume(h),m):i(h)}function m(h){return h===null?i(h):a(h)}}function p$(t,a,i){let u,f,m;return h;function h(v){return v===46||v===95?t.check(Kz,b,y)(v):v===null||Tl(v)||zp(v)||v!==45&&ox(v)?b(v):(m=!0,t.consume(v),h)}function y(v){return v===95?u=!0:(f=u,u=void 0),t.consume(v),h}function b(v){return f||u||!m?i(v):a(v)}}function h$(t,a){let i=0,u=0;return f;function f(h){return h===40?(i++,t.consume(h),f):h===41&&u<i?m(h):h===33||h===34||h===38||h===39||h===41||h===42||h===44||h===46||h===58||h===59||h===60||h===63||h===93||h===95||h===126?t.check(Kz,a,m)(h):h===null||Tl(h)||zp(h)?a(h):(t.consume(h),f)}function m(h){return h===41&&u++,t.consume(h),f}}function m$(t,a,i){return u;function u(y){return y===33||y===34||y===39||y===41||y===42||y===44||y===46||y===58||y===59||y===63||y===95||y===126?(t.consume(y),u):y===38?(t.consume(y),m):y===93?(t.consume(y),f):y===60||y===null||Tl(y)||zp(y)?a(y):i(y)}function f(y){return y===null||y===40||y===91||Tl(y)||zp(y)?a(y):u(y)}function m(y){return AS(y)?h(y):i(y)}function h(y){return y===59?(t.consume(y),u):AS(y)?(t.consume(y),h):i(y)}}function y$(t,a,i){return u;function u(m){return t.consume(m),f}function f(m){return QA(m)?i(m):a(m)}}function t4(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||Tl(t)}function n4(t){return!AS(t)}function a4(t){return!(t===47||lA(t))}function lA(t){return t===43||t===45||t===46||t===95||QA(t)}function KA(t){let a=t.length,i=!1;for(;a--;){const u=t[a][1];if((u.type==="labelLink"||u.type==="labelImage")&&!u._balanced){i=!0;break}if(u._gfmAutolinkLiteralWalkedInto){i=!1;break}}return t.length>0&&!i&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}function g$(t,a,i){const u=[];let f=-1;for(;++f<t.length;){const m=t[f].resolveAll;m&&!u.includes(m)&&(a=m(a,i),u.push(m))}return a}function Vs(t,a,i,u){const f=u?u-1:Number.POSITIVE_INFINITY;let m=0;return h;function h(b){return Is(b)?(t.enter(i),y(b)):a(b)}function y(b){return Is(b)&&m++<f?(t.consume(b),y):(t.exit(i),a(b))}}const b$={partial:!0,tokenize:v$};function v$(t,a,i){return u;function u(m){return Is(m)?Vs(t,f,"linePrefix")(m):f(m)}function f(m){return m===null||cy(m)?a(m):i(m)}}const S$={tokenize:_$,partial:!0};function E$(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:R$,continuation:{tokenize:C$},exit:A$}},text:{91:{name:"gfmFootnoteCall",tokenize:x$},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:T$,resolveTo:w$}}}}function T$(t,a,i){const u=this;let f=u.events.length;const m=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let h;for(;f--;){const b=u.events[f][1];if(b.type==="labelImage"){h=b;break}if(b.type==="gfmFootnoteCall"||b.type==="labelLink"||b.type==="label"||b.type==="image"||b.type==="link")break}return y;function y(b){if(!h||!h._balanced)return i(b);const v=kS(u.sliceSerialize({start:h.end,end:u.now()}));return v.codePointAt(0)!==94||!m.includes(v.slice(1))?i(b):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(b),t.exit("gfmFootnoteCallLabelMarker"),a(b))}}function w$(t,a){let i=t.length;for(;i--;)if(t[i][1].type==="labelImage"&&t[i][0]==="enter"){t[i][1];break}t[i+1][1].type="data",t[i+3][1].type="gfmFootnoteCallLabelMarker";const u={type:"gfmFootnoteCall",start:Object.assign({},t[i+3][1].start),end:Object.assign({},t[t.length-1][1].end)},f={type:"gfmFootnoteCallMarker",start:Object.assign({},t[i+3][1].end),end:Object.assign({},t[i+3][1].end)};f.end.column++,f.end.offset++,f.end._bufferIndex++;const m={type:"gfmFootnoteCallString",start:Object.assign({},f.end),end:Object.assign({},t[t.length-1][1].start)},h={type:"chunkString",contentType:"string",start:Object.assign({},m.start),end:Object.assign({},m.end)},y=[t[i+1],t[i+2],["enter",u,a],t[i+3],t[i+4],["enter",f,a],["exit",f,a],["enter",m,a],["enter",h,a],["exit",h,a],["exit",m,a],t[t.length-2],t[t.length-1],["exit",u,a]];return t.splice(i,t.length-i+1,...y),t}function x$(t,a,i){const u=this,f=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let m=0,h;return y;function y(E){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(E),t.exit("gfmFootnoteCallLabelMarker"),b}function b(E){return E!==94?i(E):(t.enter("gfmFootnoteCallMarker"),t.consume(E),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",v)}function v(E){if(m>999||E===93&&!h||E===null||E===91||Tl(E))return i(E);if(E===93){t.exit("chunkString");const R=t.exit("gfmFootnoteCallString");return f.includes(kS(u.sliceSerialize(R)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(E),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),a):i(E)}return Tl(E)||(h=!0),m++,t.consume(E),E===92?x:v}function x(E){return E===91||E===92||E===93?(t.consume(E),m++,v):v(E)}}function R$(t,a,i){const u=this,f=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let m,h=0,y;return b;function b(M){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(M),t.exit("gfmFootnoteDefinitionLabelMarker"),v}function v(M){return M===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(M),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",x):i(M)}function x(M){if(h>999||M===93&&!y||M===null||M===91||Tl(M))return i(M);if(M===93){t.exit("chunkString");const q=t.exit("gfmFootnoteDefinitionLabelString");return m=kS(u.sliceSerialize(q)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(M),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),R}return Tl(M)||(y=!0),h++,t.consume(M),M===92?E:x}function E(M){return M===91||M===92||M===93?(t.consume(M),h++,x):x(M)}function R(M){return M===58?(t.enter("definitionMarker"),t.consume(M),t.exit("definitionMarker"),f.includes(m)||f.push(m),Vs(t,A,"gfmFootnoteDefinitionWhitespace")):i(M)}function A(M){return a(M)}}function C$(t,a,i){return t.check(b$,a,t.attempt(S$,a,i))}function A$(t){t.exit("gfmFootnoteDefinition")}function _$(t,a,i){const u=this;return Vs(t,f,"gfmFootnoteDefinitionIndent",5);function f(m){const h=u.events[u.events.length-1];return h&&h[1].type==="gfmFootnoteDefinitionIndent"&&h[2].sliceSerialize(h[1],!0).length===4?a(m):i(m)}}function M$(t){let i=(t||{}).singleTilde;const u={name:"strikethrough",tokenize:m,resolveAll:f};return i==null&&(i=!0),{text:{126:u},insideSpan:{null:[u]},attentionMarkers:{null:[126]}};function f(h,y){let b=-1;for(;++b<h.length;)if(h[b][0]==="enter"&&h[b][1].type==="strikethroughSequenceTemporary"&&h[b][1]._close){let v=b;for(;v--;)if(h[v][0]==="exit"&&h[v][1].type==="strikethroughSequenceTemporary"&&h[v][1]._open&&h[b][1].end.offset-h[b][1].start.offset===h[v][1].end.offset-h[v][1].start.offset){h[b][1].type="strikethroughSequence",h[v][1].type="strikethroughSequence";const x={type:"strikethrough",start:Object.assign({},h[v][1].start),end:Object.assign({},h[b][1].end)},E={type:"strikethroughText",start:Object.assign({},h[v][1].end),end:Object.assign({},h[b][1].start)},R=[["enter",x,y],["enter",h[v][1],y],["exit",h[v][1],y],["enter",E,y]],A=y.parser.constructs.insideSpan.null;A&&Ow(R,R.length,0,g$(A,h.slice(v+1,b),y)),Ow(R,R.length,0,[["exit",E,y],["enter",h[b][1],y],["exit",h[b][1],y],["exit",x,y]]),Ow(h,v-1,b-v+3,R),b=v+R.length-2;break}}for(b=-1;++b<h.length;)h[b][1].type==="strikethroughSequenceTemporary"&&(h[b][1].type="data");return h}function m(h,y,b){const v=this.previous,x=this.events;let E=0;return R;function R(M){return v===126&&x[x.length-1][1].type!=="characterEscape"?b(M):(h.enter("strikethroughSequenceTemporary"),A(M))}function A(M){const q=Hw(v);if(M===126)return E>1?b(M):(h.consume(M),E++,A);if(E<2&&!i)return b(M);const N=h.exit("strikethroughSequenceTemporary"),_=Hw(M);return N._open=!_||_===2&&!!q,N._close=!q||q===2&&!!_,y(M)}}}class O${constructor(){this.map=[]}add(a,i,u){q$(this,a,i,u)}consume(a){if(this.map.sort(function(m,h){return m[0]-h[0]}),this.map.length===0)return;let i=this.map.length;const u=[];for(;i>0;)i-=1,u.push(a.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),a.length=this.map[i][0];u.push(a.slice()),a.length=0;let f=u.pop();for(;f;){for(const m of f)a.push(m);f=u.pop()}this.map.length=0}}function q$(t,a,i,u){let f=0;if(!(i===0&&u.length===0)){for(;f<t.map.length;){if(t.map[f][0]===a){t.map[f][1]+=i,t.map[f][2].push(...u);return}f+=1}t.map.push([a,i,u])}}function D$(t,a){let i=!1;const u=[];for(;a<t.length;){const f=t[a];if(i){if(f[0]==="enter")f[1].type==="tableContent"&&u.push(t[a+1][1].type==="tableDelimiterMarker"?"left":"none");else if(f[1].type==="tableContent"){if(t[a-1][1].type==="tableDelimiterMarker"){const m=u.length-1;u[m]=u[m]==="left"?"center":"right"}}else if(f[1].type==="tableDelimiterRow")break}else f[0]==="enter"&&f[1].type==="tableDelimiterRow"&&(i=!0);a+=1}return u}function N$(){return{flow:{null:{name:"table",tokenize:j$,resolveAll:z$}}}}function j$(t,a,i){const u=this;let f=0,m=0,h;return y;function y(H){let J=u.events.length-1;for(;J>-1;){const Se=u.events[J][1].type;if(Se==="lineEnding"||Se==="linePrefix")J--;else break}const ve=J>-1?u.events[J][1].type:null,se=ve==="tableHead"||ve==="tableRow"?z:b;return se===z&&u.parser.lazy[u.now().line]?i(H):se(H)}function b(H){return t.enter("tableHead"),t.enter("tableRow"),v(H)}function v(H){return H===124||(h=!0,m+=1),x(H)}function x(H){return H===null?i(H):cy(H)?m>1?(m=0,u.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(H),t.exit("lineEnding"),A):i(H):Is(H)?Vs(t,x,"whitespace")(H):(m+=1,h&&(h=!1,f+=1),H===124?(t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),h=!0,x):(t.enter("data"),E(H)))}function E(H){return H===null||H===124||Tl(H)?(t.exit("data"),x(H)):(t.consume(H),H===92?R:E)}function R(H){return H===92||H===124?(t.consume(H),E):E(H)}function A(H){return u.interrupt=!1,u.parser.lazy[u.now().line]?i(H):(t.enter("tableDelimiterRow"),h=!1,Is(H)?Vs(t,M,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):M(H))}function M(H){return H===45||H===58?N(H):H===124?(h=!0,t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),q):V(H)}function q(H){return Is(H)?Vs(t,N,"whitespace")(H):N(H)}function N(H){return H===58?(m+=1,h=!0,t.enter("tableDelimiterMarker"),t.consume(H),t.exit("tableDelimiterMarker"),_):H===45?(m+=1,_(H)):H===null||cy(H)?I(H):V(H)}function _(H){return H===45?(t.enter("tableDelimiterFiller"),L(H)):V(H)}function L(H){return H===45?(t.consume(H),L):H===58?(h=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(H),t.exit("tableDelimiterMarker"),$):(t.exit("tableDelimiterFiller"),$(H))}function $(H){return Is(H)?Vs(t,I,"whitespace")(H):I(H)}function I(H){return H===124?M(H):H===null||cy(H)?!h||f!==m?V(H):(t.exit("tableDelimiterRow"),t.exit("tableHead"),a(H)):V(H)}function V(H){return i(H)}function z(H){return t.enter("tableRow"),k(H)}function k(H){return H===124?(t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),k):H===null||cy(H)?(t.exit("tableRow"),a(H)):Is(H)?Vs(t,k,"whitespace")(H):(t.enter("data"),U(H))}function U(H){return H===null||H===124||Tl(H)?(t.exit("data"),k(H)):(t.consume(H),H===92?F:U)}function F(H){return H===92||H===124?(t.consume(H),U):U(H)}}function z$(t,a){let i=-1,u=!0,f=0,m=[0,0,0,0],h=[0,0,0,0],y=!1,b=0,v,x,E;const R=new O$;for(;++i<t.length;){const A=t[i],M=A[1];A[0]==="enter"?M.type==="tableHead"?(y=!1,b!==0&&($2(R,a,b,v,x),x=void 0,b=0),v={type:"table",start:Object.assign({},M.start),end:Object.assign({},M.end)},R.add(i,0,[["enter",v,a]])):M.type==="tableRow"||M.type==="tableDelimiterRow"?(u=!0,E=void 0,m=[0,0,0,0],h=[0,i+1,0,0],y&&(y=!1,x={type:"tableBody",start:Object.assign({},M.start),end:Object.assign({},M.end)},R.add(i,0,[["enter",x,a]])),f=M.type==="tableDelimiterRow"?2:x?3:1):f&&(M.type==="data"||M.type==="tableDelimiterMarker"||M.type==="tableDelimiterFiller")?(u=!1,h[2]===0&&(m[1]!==0&&(h[0]=h[1],E=mw(R,a,m,f,void 0,E),m=[0,0,0,0]),h[2]=i)):M.type==="tableCellDivider"&&(u?u=!1:(m[1]!==0&&(h[0]=h[1],E=mw(R,a,m,f,void 0,E)),m=h,h=[m[1],i,0,0])):M.type==="tableHead"?(y=!0,b=i):M.type==="tableRow"||M.type==="tableDelimiterRow"?(b=i,m[1]!==0?(h[0]=h[1],E=mw(R,a,m,f,i,E)):h[1]!==0&&(E=mw(R,a,h,f,i,E)),f=0):f&&(M.type==="data"||M.type==="tableDelimiterMarker"||M.type==="tableDelimiterFiller")&&(h[3]=i)}for(b!==0&&$2(R,a,b,v,x),R.consume(a.events),i=-1;++i<a.events.length;){const A=a.events[i];A[0]==="enter"&&A[1].type==="table"&&(A[1]._align=D$(a.events,i))}return t}function mw(t,a,i,u,f,m){const h=u===1?"tableHeader":u===2?"tableDelimiter":"tableData",y="tableContent";i[0]!==0&&(m.end=Object.assign({},uy(a.events,i[0])),t.add(i[0],0,[["exit",m,a]]));const b=uy(a.events,i[1]);if(m={type:h,start:Object.assign({},b),end:Object.assign({},b)},t.add(i[1],0,[["enter",m,a]]),i[2]!==0){const v=uy(a.events,i[2]),x=uy(a.events,i[3]),E={type:y,start:Object.assign({},v),end:Object.assign({},x)};if(t.add(i[2],0,[["enter",E,a]]),u!==2){const R=a.events[i[2]],A=a.events[i[3]];if(R[1].end=Object.assign({},A[1].end),R[1].type="chunkText",R[1].contentType="text",i[3]>i[2]+1){const M=i[2]+1,q=i[3]-i[2]-1;t.add(M,q,[])}}t.add(i[3]+1,0,[["exit",E,a]])}return f!==void 0&&(m.end=Object.assign({},uy(a.events,f)),t.add(f,0,[["exit",m,a]]),m=void 0),m}function $2(t,a,i,u,f){const m=[],h=uy(a.events,i);f&&(f.end=Object.assign({},h),m.push(["exit",f,a])),u.end=Object.assign({},h),m.push(["exit",u,a]),t.add(i+1,0,m)}function uy(t,a){const i=t[a],u=i[0]==="enter"?"start":"end";return i[1][u]}const k$={name:"tasklistCheck",tokenize:U$};function B$(){return{text:{91:k$}}}function U$(t,a,i){const u=this;return f;function f(b){return u.previous!==null||!u._gfmTasklistFirstContentOfListItem?i(b):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(b),t.exit("taskListCheckMarker"),m)}function m(b){return Tl(b)?(t.enter("taskListCheckValueUnchecked"),t.consume(b),t.exit("taskListCheckValueUnchecked"),h):b===88||b===120?(t.enter("taskListCheckValueChecked"),t.consume(b),t.exit("taskListCheckValueChecked"),h):i(b)}function h(b){return b===93?(t.enter("taskListCheckMarker"),t.consume(b),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),y):i(b)}function y(b){return cy(b)?a(b):Is(b)?t.check({tokenize:L$},a,i)(b):i(b)}}function L$(t,a,i){return Vs(t,u,"whitespace");function u(f){return f===null?i(f):a(f)}}function $$(t){return a$([u$(),E$(),M$(t),N$(),B$()])}const H$={};function P$(t){const a=this,i=t||H$,u=a.data(),f=u.micromarkExtensions||(u.micromarkExtensions=[]),m=u.fromMarkdownExtensions||(u.fromMarkdownExtensions=[]),h=u.toMarkdownExtensions||(u.toMarkdownExtensions=[]);f.push($$(i)),m.push(t$()),h.push(n$(i))}function La(...t){return t.filter(Boolean).join(" ")}const I$=({content:t})=>X.jsx(tA.MarkdownTextPrimitive,{remarkPlugins:[P$],className:"cuadra-aui-md",components:Y$,children:t}),WA=Ne.memo(I$),V$=({language:t,code:a})=>{const{isCopied:i,copyToClipboard:u}=G$(),f=()=>{!a||i||u(a)};return X.jsxs("div",{className:"cuadra-flex cuadra-items-center cuadra-justify-between cuadra-gap-4 cuadra-mt-4 cuadra-rounded-t-lg cuadra-bg-muted/50 cuadra-border-b cuadra-border-border cuadra-px-4 cuadra-py-2 cuadra-text-sm cuadra-font-normal cuadra-text-foreground cuadra-font-brand",children:[X.jsx("span",{className:"cuadra-lowercase [&>span]:cuadra-text-xs cuadra-font-brand",children:t}),X.jsxs("button",{onClick:f,className:"cuadra-p-1 cuadra-rounded hover:cuadra-bg-muted cuadra-transition-colors","aria-label":"Copy code",children:[!i&&X.jsx(UU,{className:"cuadra-h-4 cuadra-w-4"}),i&&X.jsx(NU,{className:"cuadra-h-4 cuadra-w-4"})]})]})},G$=({copiedDuration:t=3e3}={})=>{const[a,i]=Ne.useState(!1);return{isCopied:a,copyToClipboard:f=>{f&&navigator.clipboard.writeText(f).then(()=>{i(!0),setTimeout(()=>i(!1),t)})}}},Y$=tA.unstable_memoizeMarkdownComponents({h1:({className:t,...a})=>X.jsx("h1",{className:La("cuadra-mb-6 cuadra-scroll-m-20 cuadra-text-2xl cuadra-font-normal cuadra-tracking-tight last:cuadra-mb-0 font-brand",t),...a}),h2:({className:t,...a})=>X.jsx("h2",{className:La("cuadra-mb-4 cuadra-mt-6 cuadra-scroll-m-20 cuadra-text-xl cuadra-font-normal cuadra-tracking-tight first:cuadra-mt-0 last:cuadra-mb-0 font-brand",t),...a}),h3:({className:t,...a})=>X.jsx("h3",{className:La("cuadra-mb-3 cuadra-mt-5 cuadra-scroll-m-20 cuadra-text-lg cuadra-font-normal cuadra-tracking-tight first:cuadra-mt-0 last:cuadra-mb-0 font-brand",t),...a}),h4:({className:t,...a})=>X.jsx("h4",{className:La("cuadra-mb-4 cuadra-mt-6 cuadra-scroll-m-20 cuadra-text-xl cuadra-font-normal cuadra-tracking-tight first:cuadra-mt-0 last:cuadra-mb-0 font-brand",t),...a}),h5:({className:t,...a})=>X.jsx("h5",{className:La("cuadra-my-4 cuadra-text-lg cuadra-font-normal first:cuadra-mt-0 last:cuadra-mb-0 font-brand",t),...a}),h6:({className:t,...a})=>X.jsx("h6",{className:La("cuadra-my-4 cuadra-font-normal first:cuadra-mb-0 font-brand",t),...a}),p:({className:t,...a})=>X.jsx("p",{className:La("cuadra-mb-5 cuadra-mt-5 cuadra-leading-7 first:cuadra-mt-0 last:cuadra-mb-0 font-brand",t),...a}),a:({className:t,...a})=>X.jsx("a",{className:La("cuadra-text-primary cuadra-font-medium cuadra-underline cuadra-underline-offset-4 font-brand",t),...a}),blockquote:({className:t,...a})=>X.jsx("blockquote",{className:La("cuadra-border-l-2 cuadra-pl-6 cuadra-italic font-brand",t),...a}),ul:({className:t,...a})=>X.jsx("ul",{className:La("cuadra-my-5 cuadra-ml-6 cuadra-list-disc [&>li]:cuadra-mt-2 font-brand",t),...a}),ol:({className:t,...a})=>X.jsx("ol",{className:La("cuadra-my-5 cuadra-ml-6 cuadra-list-decimal [&>li]:cuadra-mt-2 font-brand",t),...a}),hr:({className:t,...a})=>X.jsx("hr",{className:La("cuadra-my-5 cuadra-border-b",t),...a}),table:({className:t,...a})=>X.jsx("table",{className:La("cuadra-my-5 cuadra-w-full cuadra-border-separate cuadra-border-spacing-0 cuadra-overflow-y-auto font-brand",t),...a}),th:({className:t,...a})=>X.jsx("th",{className:La("cuadra-bg-muted cuadra-px-4 cuadra-py-2 cuadra-text-left cuadra-font-normal first:cuadra-rounded-tl-lg last:cuadra-rounded-tr-lg [&[align=center]]:cuadra-text-center [&[align=right]]:cuadra-text-right font-brand",t),...a}),td:({className:t,...a})=>X.jsx("td",{className:La("cuadra-border-b cuadra-border-l cuadra-px-4 cuadra-py-2 cuadra-text-left last:cuadra-border-r [&[align=center]]:cuadra-text-center [&[align=right]]:cuadra-text-right font-brand",t),...a}),tr:({className:t,...a})=>X.jsx("tr",{className:La("cuadra-m-0 cuadra-border-b cuadra-p-0 first:cuadra-border-t [&:last-child>td:first-child]:cuadra-rounded-bl-lg [&:last-child>td:last-child]:cuadra-rounded-br-lg",t),...a}),sup:({className:t,...a})=>X.jsx("sup",{className:La("[&>a]:cuadra-text-xs [&>a]:cuadra-no-underline font-brand",t),...a}),pre:({className:t,...a})=>X.jsx("pre",{className:La("cuadra-overflow-x-auto cuadra-rounded-b-lg !cuadra-rounded-t-none cuadra-bg-muted cuadra-p-4 cuadra-text-foreground font-brand",t),...a}),code:function({className:a,...i}){const u=tA.useIsMarkdownCodeBlock();return X.jsx("code",{className:La(!u&&"cuadra-bg-muted cuadra-rounded cuadra-border cuadra-font-normal font-brand",a),...i})},CodeHeader:V$});function e_({className:t="",variant:a="default",...i}){const u="cuadra-inline-flex cuadra-items-center cuadra-rounded-md cuadra-px-3 cuadra-py-1.5 cuadra-text-xs cuadra-font-medium font-brand",f={default:"cuadra-border cuadra-border-border cuadra-bg-muted cuadra-text-muted-foreground",subtle:"cuadra-border cuadra-border-border/50 cuadra-bg-muted/50 cuadra-text-muted-foreground",outline:"cuadra-border cuadra-border-border cuadra-bg-background cuadra-text-foreground",ghost:"cuadra-text-muted-foreground"};return X.jsx("div",{className:`${u} ${f[a]||f.default} ${t}`,...i})}function X$(t){const a=new Map;for(const i of t){const u=a.get(i.filename);(!u||i.score>u.score)&&a.set(i.filename,i)}return Array.from(a.values()).sort((i,u)=>u.score-i.score)}function r4({sources:t,maxVisible:a=3}){if(!t||t.length===0)return null;const i=X$(t),u=i.slice(0,a),f=i.length-a;return X.jsxs("div",{className:"cuadra-mt-4 cuadra-pt-3 cuadra-border-t cuadra-border-border",children:[X.jsxs("div",{className:"cuadra-flex cuadra-items-center cuadra-gap-1.5 cuadra-mb-2.5",children:[X.jsx(Rz,{className:"cuadra-h-3.5 cuadra-w-3.5 cuadra-text-muted-foreground"}),X.jsx("span",{className:"cuadra-text-xs cuadra-font-medium cuadra-text-muted-foreground font-brand",children:"Sources"})]}),X.jsxs("div",{className:"cuadra-flex cuadra-flex-wrap cuadra-gap-2",children:[u.map((m,h)=>X.jsx(Q$,{source:m},m.sourceId||h)),f>0&&X.jsxs(e_,{variant:"subtle",children:["+",f," more"]})]})]})}function F$(t){switch(t.split(".").pop()?.toLowerCase()){case"csv":case"xlsx":case"xls":return PU;case"md":case"txt":return GU;default:return Rz}}function Q$({source:t}){const{filename:a,score:i}=t,u=F$(a);return X.jsxs(e_,{className:"cuadra-gap-2 cuadra-cursor-default",title:i<1?`${Math.round(i*100)}% relevant`:void 0,children:[X.jsx(u,{className:"cuadra-h-3.5 cuadra-w-3.5 cuadra-shrink-0 cuadra-opacity-60"}),X.jsx("span",{className:"cuadra-truncate cuadra-max-w-[180px]",children:a}),i<1&&i>0&&X.jsxs("span",{className:"cuadra-opacity-50 cuadra-text-[10px] cuadra-tabular-nums",children:[Math.round(i*100),"%"]})]})}const H2=Ne.forwardRef(function({welcomeTitle:a="Hi, how can I help you today?",welcomeSubtitle:i="Start exploring our platform and discover what you can build.",extraTopPadding:u,suggestions:f,inputPlaceholder:m="Type your message...",enableAttachments:h=!1,preMadeResponseDelay:y=1e3,streamingSpeed:b=50},v){const x=kt.useThreadRuntime(),E=kt.useAssistantApi(),[R,A]=Ne.useState(!1),[M,q]=Ne.useState(null),[N,_]=Ne.useState(!1),L=Ne.useCallback((z,k,U)=>{if(!N)try{const F=U?.streamingSpeed??b,H=U?.delay??y;Mz(z,k,F,H),E.composer().setText(z),setTimeout(()=>{E.composer().send()},10)}catch{}},[N,b,y,E]),$=Ne.useCallback(z=>{try{E.composer().setText(z),setTimeout(()=>{E.composer().send()},10)}catch{}},[E]),I=Ne.useCallback(async z=>{if(!(N||!x))try{if(z.response){const k=z.responseDelay??y;await L(z.prompt,z.response,{delay:k,streamingSpeed:b})}else $(z.prompt)}catch{}},[x,N,y,b,L,$]),V=Ne.useCallback(()=>{try{const z=window.__cuadraThreadListRuntime;z?.switchToNewThread&&z.switchToNewThread()}catch{}},[]);return Ne.useImperativeHandle(v,()=>({sendMessage:$,sendPreMadeQA:L,clearChat:V}),[$,L,V]),Ne.useEffect(()=>{if(!x){A(!1);return}try{const z=x?.store;if(!z){A(!1);return}const k=z.subscribe?.(F=>{const H=F?.threadId,J=F?.messages||[],ve=F?.isLoadingHistory||!1,se=J.length;H&&H!==M&&q(H),A(ve&&se===0)}),U=z.getState?.();if(U){const F=U?.threadId,H=U?.messages||[],J=U?.isLoadingHistory||!1,ve=H.length;F&&F!==M&&q(F),A(J&&ve===0)}return()=>{k&&k()}}catch{A(!1)}},[x,M]),X.jsxs(kt.ThreadPrimitive.Root,{className:"cuadra-bg-inherit cuadra-flex cuadra-flex-col cuadra-w-full cuadra-h-full",children:[X.jsx(kt.ThreadPrimitive.Viewport,{className:"cuadra-w-full cuadra-bg-inherit cuadra-px-4 cuadra-flex-1 cuadra-min-h-0 cuadra-overflow-y-auto cuadra-relative scrollbar-thin cuadra-pt-4",style:u?{paddingTop:u}:void 0,children:R?X.jsx("div",{className:"cuadra-absolute cuadra-inset-0 cuadra-flex cuadra-items-center cuadra-justify-center",children:X.jsxs("div",{className:"cuadra-flex cuadra-flex-col cuadra-items-center cuadra-gap-2",children:[X.jsx(Cz,{className:"cuadra-h-6 cuadra-w-6 cuadra-animate-spin cuadra-text-muted-foreground"}),X.jsx("p",{className:"cuadra-text-sm cuadra-text-muted-foreground font-brand",children:"Loading messages..."})]})}):X.jsxs(X.Fragment,{children:[X.jsx(kt.ThreadPrimitive.Empty,{children:X.jsx(Z$,{title:a,subtitle:i,suggestions:f,onSuggestionClick:I,isProcessing:N})}),X.jsx(kt.ThreadPrimitive.Messages,{components:{UserMessage:J$,AssistantMessage:e8}})]})}),X.jsxs("div",{className:"cuadra-w-full cuadra-mt-3 cuadra-border-t cuadra-border-border cuadra-pt-4",children:[h&&X.jsx(kt.ComposerPrimitive.Attachments,{components:{Attachment:()=>{const z=kt.useAssistantState(({attachment:k})=>k);return z?X.jsxs("div",{className:"cuadra-relative cuadra-inline-flex cuadra-items-center cuadra-gap-2 cuadra-mb-2 cuadra-px-2 cuadra-py-1 cuadra-rounded-md cuadra-bg-muted cuadra-border cuadra-border-border",children:[X.jsx("span",{className:"cuadra-text-xs cuadra-text-muted-foreground font-brand",children:z.name||"Attachment"}),X.jsx(kt.AttachmentPrimitive.Remove,{asChild:!0,children:X.jsx("button",{type:"button",className:"cuadra-flex cuadra-items-center cuadra-justify-center cuadra-size-4 cuadra-rounded hover:cuadra-bg-background cuadra-transition-colors","aria-label":"Remove attachment",children:X.jsx(XA,{className:"cuadra-h-3 cuadra-w-3 cuadra-text-muted-foreground"})})})]}):null}}}),X.jsxs(kt.ComposerPrimitive.Root,{className:"cuadra-relative !cuadra-relative cuadra-flex-1 cuadra-w-full",children:[X.jsx(kt.ComposerPrimitive.Input,{asChild:!0,children:X.jsx("textarea",{rows:3,placeholder:m,className:"cuadra-flex cuadra-min-h-[80px] cuadra-w-full cuadra-rounded-md cuadra-border cuadra-border-border cuadra-bg-background cuadra-px-3 cuadra-py-2 cuadra-text-base cuadra-text-foreground placeholder:cuadra-text-muted-foreground focus-visible:cuadra-outline-none disabled:cuadra-cursor-not-allowed disabled:cuadra-opacity-50 cuadra-resize-none font-brand",style:{paddingRight:h?"5rem":"3rem",fontSize:"1rem",borderWidth:"1px"}})}),h&&X.jsx(kt.ComposerPrimitive.AddAttachment,{multiple:!0,asChild:!0,children:X.jsx("button",{type:"button",className:"!cuadra-absolute !cuadra-bottom-2 !cuadra-right-12 cuadra-size-8 cuadra-rounded-md hover:cuadra-bg-muted cuadra-transition-colors cuadra-flex cuadra-items-center cuadra-justify-center cuadra-border cuadra-border-border",style:{position:"absolute",bottom:"0.5rem",right:"3rem"},"aria-label":"Attach file",children:X.jsx(Az,{className:"cuadra-h-4 cuadra-w-4 cuadra-text-muted-foreground",strokeWidth:1.5})})}),X.jsx(kt.ComposerPrimitive.Send,{asChild:!0,children:X.jsx("button",{className:"!cuadra-absolute !cuadra-bottom-2 !cuadra-right-2 cuadra-size-8 cuadra-rounded-md cuadra-shadow-sm hover:cuadra-opacity-90 disabled:cuadra-opacity-50 disabled:cuadra-cursor-not-allowed cuadra-flex cuadra-items-center cuadra-justify-center",style:{position:"absolute",bottom:"0.5rem",right:"0.5rem",backgroundColor:"var(--cuadra-primary)",color:"hsl(var(--cuadra-primary-foreground))"},"aria-label":"Send message",type:"button",children:X.jsx(qU,{className:"cuadra-h-4 cuadra-w-4"})})})]})]})]})});function Z$({title:t,subtitle:a,suggestions:i,onSuggestionClick:u,isProcessing:f}){return X.jsx("div",{className:"cuadra-flex cuadra-flex-col cuadra-items-center cuadra-h-full cuadra-py-12 cuadra-px-4 cuadra-overflow-y-auto scrollbar-hide",children:X.jsxs("div",{className:"cuadra-text-center cuadra-max-w-3xl cuadra-w-full cuadra-flex cuadra-flex-col cuadra-items-center cuadra-justify-center cuadra-min-h-full",children:[X.jsxs("div",{className:"cuadra-flex cuadra-flex-col cuadra-items-center cuadra-justify-center cuadra-mb-8",children:[X.jsx("h2",{className:"cuadra-text-lg cuadra-font-normal cuadra-text-foreground cuadra-mb-2 font-brand",children:t}),X.jsx("p",{className:"cuadra-text-muted-foreground font-brand",children:a})]}),i&&i.length>0&&X.jsx("div",{className:"cuadra-grid cuadra-grid-cols-2 cuadra-gap-2 cuadra-pb-4 cuadra-w-full cuadra-max-w-2xl",children:i.map((m,h)=>X.jsx("button",{type:"button",onClick:()=>u(m),disabled:f,className:"cuadra-w-full cuadra-text-center cuadra-px-4 cuadra-py-3 cuadra-rounded-lg cuadra-border cuadra-border-border cuadra-bg-background cuadra-text-sm cuadra-text-foreground font-brand cuadra-cursor-pointer focus:cuadra-outline-none focus:cuadra-ring-0 disabled:cuadra-opacity-50 disabled:cuadra-cursor-not-allowed",style:{borderWidth:"1px"},children:m.prompt},`suggestion-${h}`))})]})})}function J$(){return X.jsxs(kt.MessagePrimitive.Root,{className:"cuadra-grid cuadra-w-full cuadra-auto-rows-auto cuadra-grid-cols-[minmax(72px,1fr)_auto] cuadra-gap-y-2 cuadra-py-3 [&:where(>*)]:cuadra-col-start-2",children:[X.jsx(kt.MessagePrimitive.Attachments,{components:{Attachment:()=>{const t=kt.useAssistantState(({attachment:m})=>m);if(!t)return null;const a=t.type==="image",i=t.file,u=t.content?.find(m=>m.type==="image"),f=i?URL.createObjectURL(i):u?.image;return X.jsx("div",{className:"cuadra-col-start-2 cuadra-row-start-1 cuadra-mb-2 cuadra-max-w-[calc(42rem*0.8)]",children:a&&f?X.jsx("img",{src:f,alt:t.name||"Attachment",className:"cuadra-rounded-lg cuadra-border cuadra-border-border cuadra-max-h-64 cuadra-max-w-full cuadra-object-contain",style:{borderWidth:"1px"}}):X.jsxs("div",{className:"cuadra-flex cuadra-items-center cuadra-gap-2 cuadra-rounded-lg cuadra-border cuadra-border-border cuadra-bg-muted cuadra-px-3 cuadra-py-2",children:[X.jsx(Az,{className:"cuadra-h-4 cuadra-w-4 cuadra-text-muted-foreground"}),X.jsx("span",{className:"cuadra-text-sm cuadra-text-foreground font-brand",children:t.name||"Attachment"})]})})}}}),X.jsx("div",{className:"cuadra-bg-muted cuadra-text-foreground cuadra-col-start-2 cuadra-row-start-2 cuadra-max-w-[calc(42rem*0.8)] cuadra-break-words cuadra-rounded-3xl cuadra-border cuadra-border-border cuadra-px-5 cuadra-py-2.5 font-brand",style:{maxWidth:"calc(42rem * 0.8)",borderRadius:"1.5rem",backgroundColor:"var(--cuadra-muted)",color:"hsl(var(--cuadra-foreground))",paddingLeft:"1.25rem",paddingRight:"1.25rem",paddingTop:"0.625rem",paddingBottom:"0.625rem",wordBreak:"break-word",borderWidth:"1px"},children:X.jsx(kt.MessagePrimitive.Parts,{components:{Text:({text:t})=>X.jsx(WA,{content:t||""})}})})]})}function K$({text:t}){const[a,i]=Ne.useState(!1),u=kt.useAssistantState(({message:f})=>f?.status?.type==="running");return t?u?X.jsx("div",{className:"cuadra-mb-3 cuadra-py-1",children:X.jsx("div",{className:"cuadra-text-sm cuadra-text-muted-foreground cuadra-leading-relaxed font-brand cuadra-animate-text-shimmer",children:t})}):X.jsxs("div",{className:"cuadra-mb-3",children:[X.jsxs("button",{type:"button",onClick:()=>i(!a),className:"cuadra-flex cuadra-items-center cuadra-gap-1.5 cuadra-py-1 cuadra-text-sm cuadra-text-muted-foreground hover:cuadra-text-foreground cuadra-transition-colors font-brand",children:[X.jsx(nA,{className:`cuadra-h-3.5 cuadra-w-3.5 cuadra-shrink-0 cuadra-transition-transform cuadra-duration-200 ${a?"":"cuadra--rotate-90"}`}),X.jsx("span",{children:"Reasoning"})]}),X.jsx("div",{className:`cuadra-overflow-hidden cuadra-transition-all cuadra-duration-200 cuadra-ease-out ${a?"cuadra-max-h-[2000px] cuadra-opacity-100":"cuadra-max-h-0 cuadra-opacity-0"}`,children:X.jsx("div",{className:"cuadra-pl-5 cuadra-pt-2 cuadra-text-sm cuadra-text-muted-foreground cuadra-leading-relaxed font-brand",children:X.jsx(WA,{content:t})})})]}):null}function W$(){return X.jsxs("div",{className:"cuadra-flex cuadra-items-center cuadra-gap-2 cuadra-text-muted-foreground cuadra-text-sm font-brand cuadra-py-2",children:[X.jsxs("div",{className:"cuadra-flex cuadra-items-center cuadra-gap-1",children:[X.jsx("span",{className:"cuadra-inline-block cuadra-w-1.5 cuadra-h-1.5 cuadra-bg-current cuadra-rounded-full cuadra-animate-bounce",style:{animationDelay:"0ms"}}),X.jsx("span",{className:"cuadra-inline-block cuadra-w-1.5 cuadra-h-1.5 cuadra-bg-current cuadra-rounded-full cuadra-animate-bounce",style:{animationDelay:"150ms"}}),X.jsx("span",{className:"cuadra-inline-block cuadra-w-1.5 cuadra-h-1.5 cuadra-bg-current cuadra-rounded-full cuadra-animate-bounce",style:{animationDelay:"300ms"}})]}),X.jsx("span",{children:"Thinking..."})]})}function e8(){const[t]=Ne.useState(()=>Ps.getCurrentMessageId()),a=kt.useAssistantState(({message:f})=>f?.status?.type==="running"),i=kt.useAssistantState(({message:f})=>{const m=f?.content;return!m||!Array.isArray(m)?!1:m.some(h=>!!(h.type==="text"&&h.text&&h.text.length>0||h.type==="reasoning"&&h.text&&h.text.length>0))}),u=Ne.useSyncExternalStore(f=>Ps.subscribe(f),()=>{if(t){const m=Ps.getForMessage(t);return m.sources?.length?m.sources:null}const f=Ps.getCurrentMessageId();if(f){const m=Ps.getForMessage(f);return m.sources?.length?m.sources:null}return null},()=>null);return X.jsx(kt.MessagePrimitive.Root,{className:"cuadra-relative cuadra-grid cuadra-w-full cuadra-grid-cols-[auto_auto_1fr] cuadra-grid-rows-[auto_1fr] cuadra-py-3",children:X.jsxs("div",{className:"cuadra-text-foreground cuadra-col-span-2 cuadra-col-start-2 cuadra-row-start-1 cuadra-my-1.5 cuadra-max-w-[90%] cuadra-break-words cuadra-leading-7 font-brand",style:{maxWidth:"90%",marginTop:"0.375rem",marginBottom:"0.375rem"},children:[X.jsx(kt.MessagePrimitive.Parts,{components:{Text:({text:f})=>X.jsx(WA,{content:f||""}),Reasoning:({text:f})=>X.jsx(K$,{text:f||""})}}),a&&!i&&X.jsx(W$,{}),u&&u.length>0&&X.jsx(r4,{sources:u})]})})}const l4=({className:t="",theme:a="system"})=>{const i=()=>{if(typeof window>"u")return"light";if(a==="system"){const h=localStorage.getItem("theme");return h||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")}return a},[u,f]=Ne.useState(i);Ne.useEffect(()=>{a!=="system"&&f(a)},[a]),Ne.useEffect(()=>{const h=document.documentElement;h.classList.remove("light","dark"),h.classList.add(u),a==="system"&&localStorage.setItem("theme",u)},[u,a]);const m=()=>{a==="system"&&f(h=>h==="light"?"dark":"light")};return X.jsx("button",{type:"button","aria-label":"Toggle theme",onClick:m,disabled:a!=="system",className:`cuadra-flex cuadra-items-center cuadra-justify-center cuadra-h-8 cuadra-w-8 cuadra-rounded-full cuadra-bg-muted hover:cuadra-bg-muted/80 cuadra-transition-colors disabled:cuadra-opacity-50 disabled:cuadra-cursor-not-allowed ${t}`,children:X.jsx(kU,{className:`cuadra-h-4 cuadra-w-4 cuadra-transition-colors ${u==="dark"?"cuadra-text-primary":"cuadra-text-gray-400"}`})})};function t8({onThreadSelect:t}){const a=kt.useThreadListItem(),i=kt.useThread(N=>N.threadId),[u,f]=Ne.useState(null),m=a?.id===i,h=u===a?.id,[y,b]=Ne.useState(!1),[v,x]=Ne.useState(a?.title||""),[E,R]=Ne.useState(!1),[A,M]=Ne.useState(!1),q=async()=>{if(!a?.remoteId||!v||v===a.title){b(!1);return}try{M(!0);const N=window.__cuadraThreadListAdapter;N&&typeof N.rename=="function"&&await N.rename(a.remoteId,v),b(!1),R(!1)}catch{b(!1),R(!1)}finally{M(!1)}};return Ne.useEffect(()=>{a?.title&&!y&&x(a.title)},[a?.title,y]),a?X.jsxs(kt.ThreadListItemPrimitive.Root,{className:`group cuadra-relative cuadra-flex cuadra-items-center cuadra-rounded-lg cuadra-transition-colors cuadra-cursor-pointer cuadra-border cuadra-mb-2 ${m?"cuadra-bg-muted cuadra-border-border":"cuadra-border-transparent hover:cuadra-bg-muted hover:cuadra-border-border"}`,style:{marginBottom:"0.5rem"},onMouseEnter:()=>f(a.id),onMouseLeave:()=>f(null),children:[X.jsx(kt.ThreadListItemPrimitive.Trigger,{className:"cuadra-p-3 cuadra-flex-1 cuadra-flex cuadra-items-center cuadra-min-w-0 cuadra-cursor-pointer",onClick:()=>t?.(),children:X.jsx("div",{className:"cuadra-flex cuadra-flex-col cuadra-min-w-0 cuadra-flex-1 cuadra-items-start cuadra-text-left",children:y?X.jsx("input",{className:"cuadra-flex cuadra-w-full cuadra-rounded-md cuadra-border cuadra-border-input cuadra-bg-background cuadra-px-3 cuadra-py-2 cuadra-text-sm placeholder:cuadra-text-muted-foreground focus-visible:cuadra-outline-none disabled:cuadra-cursor-not-allowed disabled:cuadra-opacity-50 font-brand",value:v,onChange:N=>x(N.target.value),onKeyDown:N=>{N.key==="Enter"&&q(),N.key==="Escape"&&(b(!1),x(a.title||""))},disabled:A,autoFocus:!0,onClick:N=>N.stopPropagation()}):X.jsxs(X.Fragment,{children:[X.jsx("span",{className:"cuadra-text-sm cuadra-font-normal cuadra-text-foreground cuadra-truncate font-brand",children:(a.title?.length||0)>60?`${a.title?.slice(0,60)}…`:a.title||"Chat"}),a.updatedAt&&X.jsx("span",{className:"cuadra-text-xs cuadra-text-muted-foreground cuadra-mt-1 font-brand",children:new Date(a.updatedAt).toLocaleDateString()})]})})}),X.jsx("div",{className:"cuadra-mr-2 cuadra-flex-shrink-0 cuadra-w-6 cuadra-h-6 cuadra-flex cuadra-items-center cuadra-justify-center",children:(h||m||E)&&X.jsxs("div",{className:"cuadra-relative",children:[X.jsx("button",{type:"button",className:"cuadra-p-1 cuadra-rounded hover:cuadra-bg-background/50 cuadra-transition-colors",onClick:N=>{N.stopPropagation(),R(!E)},"aria-label":"Thread options",children:X.jsx($U,{className:"cuadra-h-4 cuadra-w-4 cuadra-text-muted-foreground"})}),E&&X.jsxs(X.Fragment,{children:[X.jsx("div",{className:"cuadra-fixed cuadra-inset-0 cuadra-z-40",onClick:()=>R(!1)}),X.jsx("div",{className:"cuadra-absolute cuadra-right-0 cuadra-top-8 cuadra-z-50 cuadra-bg-background cuadra-border cuadra-border-border cuadra-rounded-lg cuadra-shadow-lg cuadra-min-w-[120px] cuadra-overflow-hidden",children:y?X.jsx("button",{type:"button",className:"cuadra-w-full cuadra-px-3 cuadra-py-2 cuadra-text-sm cuadra-text-left hover:cuadra-bg-muted cuadra-transition-colors font-brand",onClick:N=>{N.stopPropagation(),q()},disabled:A,children:"Save"}):X.jsxs(X.Fragment,{children:[X.jsx("button",{type:"button",className:"cuadra-w-full cuadra-px-3 cuadra-py-2 cuadra-text-sm cuadra-text-left hover:cuadra-bg-muted cuadra-transition-colors font-brand",onClick:N=>{N.stopPropagation(),b(!0),x(a.title||""),R(!1)},children:"Rename"}),X.jsx("div",{className:"cuadra-border-t cuadra-border-border"}),X.jsx(kt.ThreadListItemPrimitive.Delete,{asChild:!0,children:X.jsx("button",{type:"button",className:"cuadra-w-full cuadra-px-3 cuadra-py-2 cuadra-text-sm cuadra-text-left cuadra-text-destructive hover:cuadra-bg-muted cuadra-transition-colors font-brand",onClick:N=>{N.stopPropagation(),R(!1)},children:"Delete"})})]})})]})]})})]}):null}function P2({onThreadSelect:t,showThemeToggle:a,theme:i,onLogout:u}){return X.jsxs(kt.ThreadListPrimitive.Root,{className:"!cuadra-border-r cuadra-border-border cuadra-flex cuadra-flex-col cuadra-bg-background cuadra-transition-all cuadra-duration-300 cuadra-ease-in-out cuadra-h-full cuadra-w-80",style:{borderRightWidth:"1px"},children:[X.jsx("div",{className:"cuadra-border-b cuadra-border-border cuadra-flex cuadra-items-center cuadra-justify-end cuadra-transition-all cuadra-duration-300 cuadra-h-16 cuadra-px-4",children:X.jsx("button",{type:"button",onClick:t,className:"cuadra-flex md:cuadra-hidden cuadra-items-center cuadra-justify-center cuadra-h-8 cuadra-w-8 cuadra-rounded-full cuadra-bg-muted hover:cuadra-bg-muted/80 cuadra-transition-colors","aria-label":"Close",children:X.jsx(XA,{className:"cuadra-h-4 cuadra-w-4 cuadra-text-foreground"})})}),X.jsxs("div",{className:"cuadra-flex-1 cuadra-overflow-y-auto cuadra-p-2 scrollbar-thin",children:[X.jsx(kt.ThreadListPrimitive.New,{className:"group cuadra-relative cuadra-flex cuadra-items-center cuadra-gap-3 cuadra-p-3 cuadra-rounded-lg cuadra-cursor-pointer cuadra-transition-colors cuadra-border cuadra-border-transparent hover:cuadra-bg-muted hover:cuadra-border-border",onClick:()=>t?.(),children:X.jsx("div",{className:"cuadra-flex-1 cuadra-min-w-0",children:X.jsxs("div",{className:"cuadra-flex cuadra-items-center cuadra-gap-2",children:[X.jsx(WU,{className:"cuadra-h-4 cuadra-w-4 cuadra-text-muted-foreground"}),X.jsx("h4",{className:"cuadra-text-sm cuadra-font-normal cuadra-text-foreground font-brand",children:"New Chat"})]})})}),X.jsx("div",{className:"cuadra-my-2 cuadra-border-t cuadra-border-border"}),X.jsx(kt.ThreadListPrimitive.Items,{components:{ThreadListItem:f=>X.jsx(t8,{...f,onThreadSelect:t})}})]}),(a||u)&&X.jsxs("div",{className:"cuadra-border-t cuadra-border-border cuadra-flex md:cuadra-hidden cuadra-items-center cuadra-justify-between cuadra-px-4 cuadra-py-4",children:[u&&X.jsx("button",{type:"button",onClick:u,className:"cuadra-flex cuadra-items-center cuadra-justify-center cuadra-h-8 cuadra-w-8 cuadra-rounded-full cuadra-bg-muted hover:cuadra-bg-muted/80 cuadra-transition-colors","aria-label":"Logout",children:X.jsx(FU,{className:"cuadra-h-4 cuadra-w-4 cuadra-text-foreground"})}),a&&X.jsx(l4,{theme:i})]})]})}const n8=`
19
19
  @keyframes rotate {
20
20
  100% { transform: rotate(1turn); }
21
21
  }
22
- `,Be=({children:e,className:r="",paddingX:t="px-0",paddingY:a="py-0",borderSizePx:i=4,style:o,contentStyle:n,rotating:c=!1})=>u.jsxs(u.Fragment,{children:[u.jsx("style",{children:Hi}),u.jsxs("div",{className:`cuadra-relative cuadra-bg-background md:cuadra-rounded-xl cuadra-overflow-hidden ${r}`,style:{padding:i,...o},children:[u.jsx("div",{className:`cuadra-absolute md:cuadra-rounded-xl cuadra-textured-card-border ${c?"cuadra-textured-card-border-rotating":""}`,style:c?{left:"-100%",top:"-100%",width:"300%",height:"300%",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center",animation:"rotate 4s linear infinite"}:{backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",top:"0",left:"0",width:"100%",height:"100%"}}),u.jsx("div",{className:`cuadra-relative cuadra-bg-background cuadra-h-full cuadra-z-10 cuadra-flex cuadra-flex-col cuadra-overflow-hidden ${t} ${a}`,style:{borderRadius:"calc(0.75rem - 4px)",...n},children:e})]})]}),Mt=({currentModel:e,models:r,modelsLoading:t,modelsError:a,onModelChange:i,hideModelSelector:o=!1,showThemeToggle:n=!0,theme:c="system",onMobileMenuClick:s,showMobileMenuButton:l=!1})=>{const[f,d]=y.useState(!1),[p,g]=y.useState(!1),m=y.useRef(null);y.useEffect(()=>{const b=w=>{m.current&&!m.current.contains(w.target)&&d(!1)};return f&&document.addEventListener("mousedown",b),()=>{document.removeEventListener("mousedown",b)}},[f]);const k=r.find(b=>b.id===e),x=b=>{i(b),d(!1),g(!1)};return u.jsxs("div",{className:"cuadra-h-16 cuadra-px-4 cuadra-border-b cuadra-border-border cuadra-flex cuadra-items-center cuadra-justify-between cuadra-bg-background",children:[u.jsxs("div",{className:"cuadra-flex cuadra-items-center cuadra-gap-2",children:[l&&u.jsx("button",{type:"button",onClick:s,className:"cuadra-flex cuadra-items-center cuadra-justify-center cuadra-h-8 cuadra-w-8 cuadra-rounded-full cuadra-bg-muted hover:cuadra-bg-muted/80 cuadra-transition-colors disabled:cuadra-opacity-50 disabled:cuadra-cursor-not-allowed md:cuadra-hidden","aria-label":"Toggle thread list",children:u.jsx(Hr,{className:"cuadra-h-4 cuadra-w-4 cuadra-text-foreground"})}),n&&u.jsx("div",{className:"cuadra-hidden md:cuadra-flex cuadra-items-center cuadra-gap-2",children:u.jsx(ur,{theme:c})})]}),u.jsxs("div",{className:"cuadra-flex cuadra-items-center cuadra-gap-2 md:cuadra-ml-0 cuadra-ml-auto",children:[!o&&u.jsx("label",{className:"cuadra-hidden md:cuadra-inline cuadra-text-sm cuadra-text-muted-foreground cuadra-font-brand",children:"Model"}),o?null:t?u.jsx("div",{className:"cuadra-w-48 cuadra-rounded-md cuadra-border cuadra-border-border cuadra-px-3 cuadra-py-2 cuadra-bg-muted",children:u.jsx("span",{className:"cuadra-text-muted-foreground cuadra-text-sm cuadra-font-brand",children:"Loading..."})}):a?u.jsx("div",{className:"cuadra-w-48 cuadra-rounded-md cuadra-border cuadra-border-destructive cuadra-px-3 cuadra-py-2 cuadra-bg-destructive/10",children:u.jsx("span",{className:"cuadra-text-destructive cuadra-text-sm cuadra-font-brand",children:"Failed to load models"})}):u.jsxs(u.Fragment,{children:[u.jsxs("div",{ref:m,className:"cuadra-hidden md:cuadra-block cuadra-relative cuadra-w-48",children:[u.jsxs("button",{type:"button",onClick:()=>d(!f),disabled:t||r.length===0||!!a,className:"cuadra-flex cuadra-h-10 cuadra-w-full cuadra-items-center cuadra-justify-between cuadra-rounded-md cuadra-border cuadra-border-input cuadra-bg-background cuadra-px-3 cuadra-py-2 cuadra-text-sm placeholder:cuadra-text-muted-foreground focus:cuadra-outline-none disabled:cuadra-cursor-not-allowed disabled:cuadra-opacity-50 cuadra-font-brand",children:[u.jsx("span",{className:k?"cuadra-text-foreground":"cuadra-text-muted-foreground",children:k?.name||"Select model"}),u.jsx(Ve,{className:"cuadra-ml-2 cuadra-h-4 cuadra-w-4 cuadra-opacity-50"})]}),f&&r.length>0&&u.jsx("div",{className:"cuadra-absolute cuadra-z-50 cuadra-mt-1 cuadra-w-full cuadra-min-w-[8rem] cuadra-overflow-hidden cuadra-rounded-md glass-popover cuadra-text-popover-foreground cuadra-animate-in fade-in-80 cuadra-border cuadra-border-border cuadra-bg-popover cuadra-shadow-md",children:u.jsx("div",{className:"cuadra-p-1",children:r.map(b=>u.jsxs("button",{type:"button",onClick:()=>x(b.id),className:`cuadra-relative cuadra-flex cuadra-w-full cuadra-cursor-pointer cuadra-select-none cuadra-items-center cuadra-rounded-sm cuadra-py-1.5 cuadra-pl-8 cuadra-pr-2 cuadra-text-sm cuadra-outline-none focus:cuadra-bg-secondary focus:cuadra-text-secondary-foreground font-brand cuadra-transition-colors ${e===b.id?"cuadra-bg-secondary cuadra-text-secondary-foreground":"hover:cuadra-bg-secondary/50"}`,children:[e===b.id&&u.jsx("span",{className:"cuadra-absolute cuadra-left-2 cuadra-flex cuadra-h-3.5 cuadra-w-3.5 cuadra-items-center cuadra-justify-center",children:u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.47 10.03a.75.75 0 0 1-1.06-1.06l2-2a.75.75 0 0 1 1.06 0l2 2a.75.75 0 1 1-1.06 1.06L8 9.06l-1.53 1.53Z",clipRule:"evenodd"})})}),u.jsx("span",{children:b.name})]},b.id))})})]}),u.jsxs("button",{type:"button",onClick:()=>g(!0),disabled:t||r.length===0||!!a,className:"cuadra-flex md:cuadra-hidden cuadra-h-10 cuadra-w-full cuadra-items-center cuadra-justify-between cuadra-rounded-md cuadra-border cuadra-border-input cuadra-bg-background cuadra-px-3 cuadra-py-2 cuadra-text-sm placeholder:cuadra-text-muted-foreground focus:cuadra-outline-none disabled:cuadra-cursor-not-allowed disabled:cuadra-opacity-50 cuadra-font-brand",children:[u.jsx("span",{className:k?"cuadra-text-foreground":"cuadra-text-muted-foreground",children:k?.name||"Select model"}),u.jsx(Ve,{className:"cuadra-ml-2 cuadra-h-4 cuadra-w-4 cuadra-opacity-50"})]}),p&&typeof document<"u"&&qe.createPortal(u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"cuadra-fixed cuadra-inset-0 cuadra-bg-black/50 cuadra-z-50 md:cuadra-hidden",onClick:()=>g(!1)}),u.jsxs("div",{className:"cuadra-fixed cuadra-inset-0 cuadra-z-50 cuadra-flex cuadra-flex-col cuadra-bg-background md:cuadra-hidden",children:[u.jsxs("div",{className:"cuadra-flex cuadra-items-center cuadra-justify-between cuadra-border-b cuadra-border-border cuadra-px-4 cuadra-py-4",children:[u.jsx("h2",{className:"cuadra-text-lg cuadra-font-normal cuadra-text-foreground font-brand",children:"Select Model"}),u.jsx("button",{type:"button",onClick:()=>g(!1),className:"cuadra-flex cuadra-items-center cuadra-justify-center cuadra-h-8 cuadra-w-8 cuadra-rounded-full cuadra-bg-muted hover:cuadra-bg-muted/80 cuadra-transition-colors","aria-label":"Close",children:u.jsx(Ge,{className:"cuadra-h-4 cuadra-w-4 cuadra-text-foreground"})})]}),u.jsx("div",{className:"cuadra-flex-1 cuadra-overflow-y-auto cuadra-p-4",children:t?u.jsx("div",{className:"cuadra-flex cuadra-items-center cuadra-justify-center cuadra-py-8",children:u.jsx("span",{className:"cuadra-text-muted-foreground cuadra-text-sm cuadra-font-brand",children:"Loading models..."})}):a?u.jsx("div",{className:"cuadra-flex cuadra-items-center cuadra-justify-center cuadra-py-8",children:u.jsx("span",{className:"cuadra-text-destructive cuadra-text-sm cuadra-font-brand",children:"Failed to load models"})}):r.length===0?u.jsx("div",{className:"cuadra-flex cuadra-items-center cuadra-justify-center cuadra-py-8",children:u.jsx("span",{className:"cuadra-text-muted-foreground cuadra-text-sm cuadra-font-brand",children:"No models available"})}):u.jsx("div",{className:"cuadra-space-y-2",children:r.map(b=>u.jsxs("button",{type:"button",onClick:()=>x(b.id),className:`cuadra-w-full cuadra-flex cuadra-items-center cuadra-justify-between cuadra-rounded-lg cuadra-border cuadra-px-4 cuadra-py-4 cuadra-text-left cuadra-transition-colors font-brand cuadra-bg-background cuadra-text-foreground cuadra-border-border hover:cuadra-bg-muted ${e===b.id?"cuadra-border-primary":""}`,children:[u.jsx("span",{className:"cuadra-text-base cuadra-font-normal",children:b.name}),e===b.id&&u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20",className:"cuadra-text-primary",children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.707 5.293a1 1 0 0 1 0 1.414l-8 8a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 1.414-1.414L8 12.586l7.293-7.293a1 1 0 0 1 1.414 0Z",clipRule:"evenodd"})})]},b.id))})})]})]}),document.body)]})]})]})},Vi=y.createContext(void 0),We=({children:e,value:r})=>u.jsx(Vi.Provider,{value:r,children:e});function Xi(){y.useEffect(()=>{if(document.querySelector("style[data-cuadra-uikit]"))return;const r=document.createElement("div");r.className="cuadra-flex",document.body.appendChild(r);const t=window.getComputedStyle(r).display==="flex";if(document.body.removeChild(r),t)return;const a=document.createElement("link");a.setAttribute("data-cuadra-uikit","true"),a.rel="stylesheet",a.type="text/css";const i=["/node_modules/@cuadra-ai/uikit/dist/uikit.css",new URL("../dist/uikit.css",typeof document>"u"?require("url").pathToFileURL(__filename).href:fe&&fe.tagName.toUpperCase()==="SCRIPT"&&fe.src||new URL("index.cjs",document.baseURI).href).href];let o=!1;for(const n of i)if(a.href=n,a.onload=()=>{o=!0},a.onerror=()=>{},document.head.appendChild(a),o)break},[])}const Ki=y.forwardRef(function({config:r},t){Xi();const a=y.useRef(null),i=y.useRef(!1),{baseUrl:o,proxyUrl:n,sessionToken:c,mode:s="multiChat",modelMode:l="fixed",modelId:f,onModelChange:d,ephemeral:p=!1,systemPrompt:g,enableReasoning:m=!1,initialThreadId:k,welcomeTitle:x,welcomeSubtitle:b,extraTopPadding:w,suggestions:v,inputPlaceholder:R,preMadeResponseDelay:I=1e3,streamingSpeed:C=50,showThemeToggle:L=!0,initialMessage:D,initialPreMadeQA:A,theme:h="system",onError:U,onChatCreated:F,onUserMessage:V,onThreadIdUpdate:X,onLogout:ke,enableAttachments:we=!1,onBeforeRequest:Q,mockResponseOnBlocked:j}=r;y.useImperativeHandle(t,()=>({sendMessage:T=>{a.current?.sendMessage(T)},sendPreMadeQA:(T,_,z)=>{a.current?.sendPreMadeQA(T,_,z)},clearChat:()=>{a.current?.clearChat()}}),[]),y.useEffect(()=>{if(i.current)return;const T=setTimeout(()=>{A?(i.current=!0,a.current?.sendPreMadeQA(A.question,A.answer,{delay:I,streamingSpeed:C})):D&&(i.current=!0,a.current?.sendMessage(D))},500);return()=>clearTimeout(T)},[D,A,I,C]);const[S,E]=y.useState(!1),[P,q]=y.useState(null),[N,W]=y.useState(null),[H,re]=y.useState(!1),oe=y.useRef(null),se=T=>{if(T<30)return!0;if(oe.current){const _=oe.current.getBoundingClientRect();if(T-_.left<30)return!0}return!1},G=T=>{const z=T.touches[0].clientX;(se(z)||S)&&(q(z),W(z),re(!0))},ve=T=>{if(P===null||!H)return;const _=T.touches[0];W(_.clientX)},at=()=>{if(P===null||N===null){re(!1);return}const T=N-P,_=50,z=.3,lt=Math.abs(T)/300;T>_&&!S&&P!==null?se(P)&&E(!0):((T<-_||T<0&&lt>z)&&S||S&&T<-20&&lt>z)&&E(!1),q(null),W(null),re(!1)},fr=()=>{if(H&&P!==null&&N!==null){const T=N-P;if(S)return`translateX(${Math.min(0,T)}px)`;if(P!==null&&se(P))return`translateX(${Math.min(0,-320+T)}px)`}return S?"translateX(0)":"translateX(-100%)"},hr=()=>{if(!H||P===null||N===null)return S?.5:0;const _=N-P;return S?Math.max(0,Math.min(1,(320+_)/320))*.5:P!==null&&se(P)?Math.max(0,Math.min(1,(_+320)/320))*.5:0},Ce=n||o||"",je=!!n,nt=y.useMemo(()=>new Pt(Ce,c||void 0,je),[Ce,c,je]),[ce,mr]=y.useState(null),[he,it]=y.useState(!1),[me,ot]=y.useState(null),[pr,st]=y.useState(!1);y.useEffect(()=>{s==="multiChat"&&st(!0)},[s]);const ue=y.useCallback(async()=>{if(l==="selector"){it(!0),ot(null);try{const T=await nt.listModels();mr(T)}catch(T){ot(T instanceof Error?T:new Error("Failed to load models"))}finally{it(!1)}}},[nt,l]);y.useEffect(()=>{l==="selector"&&ue()},[l,ue]),y.useEffect(()=>(typeof window<"u"&&(window.__cuadraUIKitRefetchModels=ue),()=>{typeof window<"u"&&delete window.__cuadraUIKitRefetchModels}),[ue]);const[Z,ct]=y.useState(l==="fixed"&&f||null),ut=y.useRef(Z),pe=y.useCallback(T=>{const _=ut.current;ct(T),ut.current=T,d?.(T),_!==null&&_!==T&&s==="multiChat"&&setTimeout(()=>{const z=window.__cuadraThreadListRuntime;if(z?.threads?.switchToNewThread)try{z.threads.switchToNewThread()}catch{}else if(z?.threads?.createThread)try{z.threads.createThread()}catch{}else if(z?.switchToNewThread)try{z.switchToNewThread()}catch{}},100)},[d,s]);y.useEffect(()=>{if(l==="selector"&&ce?.items&&ce.items.length>0&&!Z){const T=ce.items[0];if(T?.id){const _=T.id;ct(_),d?.(_)}}},[l,ce?.items,Z,d]);const gr=l==="fixed"?!!f:!!Z,Te=y.useMemo(()=>(ce?.items||[]).filter(T=>T?.id&&T?.displayName).map(T=>({id:T.id,name:T.displayName})),[ce]),_e=y.useMemo(()=>({currentModelId:Z||"",models:Te,modelsLoading:he,modelsError:me,onModelChange:pe,refetchModels:ue}),[Z,Te,he,me,pe,ue]);return l==="selector"&&he||s==="multiChat"&&pr?u.jsx(We,{value:_e,children:u.jsx(Be,{className:"cuadra-h-full",paddingX:"cuadra-px-0",paddingY:"cuadra-py-0",children:u.jsx("div",{className:"cuadra-flex cuadra-items-center cuadra-justify-center cuadra-h-full",children:u.jsx(It,{className:"cuadra-h-6 cuadra-w-6 cuadra-animate-spin cuadra-text-muted-foreground"})})})}):l==="selector"&&!gr&&me?u.jsx(We,{value:_e,children:u.jsx(Be,{className:"cuadra-h-full",paddingX:"cuadra-px-0",paddingY:"cuadra-py-0",children:u.jsx("div",{className:"cuadra-flex cuadra-items-center cuadra-justify-center cuadra-h-full",children:u.jsx("div",{className:"cuadra-flex cuadra-flex-col cuadra-items-center cuadra-gap-2",children:u.jsx("p",{className:"cuadra-text-sm cuadra-text-destructive font-brand",children:"Failed to load models"})})})})}):u.jsx("div",{className:"cuadra-uikit cuadra-h-full cuadra-w-full",style:{height:"100%",width:"100%"},children:u.jsx(We,{value:_e,children:u.jsx(ta,{baseUrl:je?Ce:o||Ce,sessionToken:c,isProxyMode:je,mode:s,modelMode:l,modelId:Z||f||void 0,onModelChange:pe,ephemeral:p,systemPrompt:g,enableReasoning:m,initialThreadId:k,enableAttachments:we,onError:U,onChatCreated:F,onUserMessage:V,onThreadIdUpdate:X,onBeforeRequest:Q,mockResponseOnBlocked:j,onChatsLoaded:()=>{s==="multiChat"&&st(!1)},children:u.jsx(Be,{paddingX:"cuadra-px-0",paddingY:"cuadra-py-0",className:`cuadra-h-full ${r.containerClass||""}`,borderSizePx:4,style:{height:"100%"},children:u.jsx("div",{className:"cuadra-h-full cuadra-flex cuadra-relative",style:{height:"100%"},onTouchStart:G,onTouchMove:ve,onTouchEnd:at,children:s==="multiChat"?u.jsxs(u.Fragment,{children:[typeof document<"u"&&qe.createPortal(u.jsx("div",{className:`cuadra-fixed cuadra-inset-0 cuadra-bg-black cuadra-z-40 md:cuadra-hidden cuadra-transition-opacity cuadra-duration-300 ${S||H?"":"cuadra-pointer-events-none"}`,style:{opacity:hr()},onClick:()=>E(!1)}),document.body),typeof document<"u"&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"cuadra-hidden md:cuadra-block !cuadra-border-r cuadra-border-border cuadra-flex cuadra-flex-col cuadra-bg-background cuadra-transition-all cuadra-duration-300 cuadra-ease-in-out cuadra-h-full cuadra-w-80 cuadra-relative",style:{borderRightWidth:"1px",height:"100%"},children:u.jsx(Tt,{onThreadSelect:()=>E(!1),showThemeToggle:L,theme:h,onLogout:ke})}),typeof document<"u"&&qe.createPortal(u.jsx("div",{className:`cuadra-block md:cuadra-hidden !cuadra-border-r cuadra-border-border cuadra-flex cuadra-flex-col cuadra-bg-background cuadra-h-screen cuadra-w-80 cuadra-fixed cuadra-z-50 cuadra-top-0 cuadra-left-0 ${S||H?"":"cuadra-pointer-events-none"}`,style:{borderRightWidth:"1px",transform:fr(),transition:H?"none":"transform 0.3s ease-in-out"},onTouchStart:G,onTouchMove:ve,onTouchEnd:at,children:u.jsx(Tt,{onThreadSelect:()=>E(!1),showThemeToggle:L,theme:h,onLogout:ke})}),document.body)]}),u.jsxs("div",{ref:oe,className:"cuadra-flex-1 cuadra-flex cuadra-flex-col",children:[l==="selector"&&u.jsx(Mt,{currentModel:Z||"",models:Te,modelsLoading:he,modelsError:me,onModelChange:pe,showThemeToggle:L,theme:h,onMobileMenuClick:()=>E(!S),showMobileMenuButton:s==="multiChat"}),u.jsx("div",{className:"cuadra-flex-1 cuadra-relative cuadra-min-h-0 cuadra-space-y-4 cuadra-p-4",children:u.jsx(jt,{ref:a,welcomeTitle:x,welcomeSubtitle:b,extraTopPadding:w,suggestions:v,inputPlaceholder:R,enableAttachments:we,preMadeResponseDelay:I,streamingSpeed:C})})]})]}):u.jsxs("div",{className:"cuadra-flex-1 cuadra-flex cuadra-flex-col",children:[l==="selector"&&u.jsx(Mt,{currentModel:Z||"",models:Te,modelsLoading:he,modelsError:me,onModelChange:pe,showThemeToggle:L,theme:h}),u.jsx("div",{className:"cuadra-flex-1 cuadra-relative cuadra-min-h-0 cuadra-space-y-4 cuadra-p-4",children:u.jsx(jt,{ref:a,welcomeTitle:x,welcomeSubtitle:b,extraTopPadding:w,suggestions:v,inputPlaceholder:R,preMadeResponseDelay:I,streamingSpeed:C})})]})})})})})})});function lr(e,r=":root"){if(typeof document>"u")return;const t=document.documentElement;if(e.light&&Gi(e.light,t),e.dark){let a=document.getElementById("cuadra-theme-dark");a||(a=document.createElement("style"),a.id="cuadra-theme-dark",document.head.appendChild(a));const i=Zi(e.dark);a.textContent=`.dark { ${i} }`}}const Qi={background:"background",foreground:"foreground",card:"card",cardForeground:"card-foreground",popover:"popover",popoverForeground:"popover-foreground",primary:"primary",primaryForeground:"primary-foreground",primaryLight:"primary-light",primaryLighter:"primary-lighter",secondary:"secondary",secondaryForeground:"secondary-foreground",muted:"muted",mutedForeground:"muted-foreground",accent:"accent",accentForeground:"accent-foreground",border:"border",input:"input",ring:"ring",destructive:"destructive",destructiveForeground:"destructive-foreground",success:"success",successForeground:"success-foreground",info:"info",infoForeground:"info-foreground",warning:"warning",warningForeground:"warning-foreground"};function dr(e){const r=Qi[e];return r?`--cuadra-${r}`:`--cuadra-${e.replace(/([A-Z])/g,"-$1").toLowerCase()}`}function Gi(e,r){Object.entries(e).forEach(([t,a])=>{if(a){const i=dr(t);r.style.setProperty(i,a)}})}function Zi(e){return Object.entries(e).map(([r,t])=>t?`${dr(r)}: ${t};`:"").filter(Boolean).join(" ")}function Ji(){if(typeof document>"u")return;const e=document.documentElement;Array.from(e.style).filter(a=>a.startsWith("--cuadra-")).forEach(a=>e.style.removeProperty(a));const t=document.getElementById("cuadra-theme-dark");t&&t.remove()}const Yi=y.forwardRef(function(r,t){const a=y.useRef(null);y.useEffect(()=>{r.customTheme&&lr(r.customTheme)},[r.customTheme]),y.useImperativeHandle(t,()=>({sendMessage:o=>{a.current?.sendMessage(o)},sendPreMadeQA:(o,n,c)=>{a.current?.sendPreMadeQA(o,n,c)},clearChat:()=>{a.current?.clearChat()}}),[]),y.useEffect(()=>(typeof window<"u"&&(window.__cuadraChatControls={sendMessage:o=>a.current?.sendMessage(o),sendPreMadeQA:(o,n,c)=>a.current?.sendPreMadeQA(o,n,c),clearChat:()=>a.current?.clearChat()}),()=>{typeof window<"u"&&delete window.__cuadraChatControls}),[]);const i={baseUrl:r.baseUrl,proxyUrl:r.proxyUrl,sessionToken:r.sessionToken||null,mode:r.mode||"multiChat",modelMode:r.modelMode||"fixed",modelId:r.modelId,onModelChange:r.onModelChange,ephemeral:r.ephemeral,systemPrompt:r.systemPrompt,enableReasoning:r.enableReasoning,initialThreadId:r.initialThreadId,language:r.language,welcomeTitle:r.welcomeTitle,welcomeSubtitle:r.welcomeSubtitle,extraTopPadding:r.extraTopPadding,suggestions:r.suggestions,inputPlaceholder:r.inputPlaceholder,preMadeResponseDelay:r.preMadeResponseDelay,streamingSpeed:r.streamingSpeed,onError:r.onError,onChatCreated:r.onChatCreated,onUserMessage:r.onUserMessage,onThreadIdUpdate:r.onThreadIdUpdate,showThemeToggle:r.showThemeToggle,theme:r.theme,onLogout:r.onLogout,enableAttachments:r.enableAttachments,containerClass:r.className,initialMessage:r.initialMessage,initialPreMadeQA:r.initialPreMadeQA,onBeforeRequest:r.onBeforeRequest,mockResponseOnBlocked:r.mockResponseOnBlocked};return u.jsx(Ki,{ref:a,config:i})});exports.Badge=rt;exports.CuadraChat=Yi;exports.SourceCitations=cr;exports.applyTheme=lr;exports.removeTheme=Ji;exports.streamingMetadataStore=J;
22
+ `,lC=({children:t,className:a="",paddingX:i="px-0",paddingY:u="py-0",borderSizePx:f=4,style:m,contentStyle:h,rotating:y=!1})=>X.jsxs(X.Fragment,{children:[X.jsx("style",{children:n8}),X.jsxs("div",{className:`cuadra-relative cuadra-bg-background md:cuadra-rounded-xl cuadra-overflow-hidden ${a}`,style:{padding:f,...m},children:[X.jsx("div",{className:`cuadra-absolute md:cuadra-rounded-xl cuadra-textured-card-border ${y?"cuadra-textured-card-border-rotating":""}`,style:y?{left:"-100%",top:"-100%",width:"300%",height:"300%",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center",animation:"rotate 4s linear infinite"}:{backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",top:"0",left:"0",width:"100%",height:"100%"}}),X.jsx("div",{className:`cuadra-relative cuadra-bg-background cuadra-h-full cuadra-z-10 cuadra-flex cuadra-flex-col cuadra-overflow-hidden ${i} ${u}`,style:{borderRadius:"calc(0.75rem - 4px)",...h},children:t})]})]}),I2=({currentModel:t,models:a,modelsLoading:i,modelsError:u,onModelChange:f,hideModelSelector:m=!1,showThemeToggle:h=!0,theme:y="system",onMobileMenuClick:b,showMobileMenuButton:v=!1})=>{const[x,E]=Ne.useState(!1),[R,A]=Ne.useState(!1),M=Ne.useRef(null);Ne.useEffect(()=>{const _=L=>{M.current&&!M.current.contains(L.target)&&E(!1)};return x&&document.addEventListener("mousedown",_),()=>{document.removeEventListener("mousedown",_)}},[x]);const q=a.find(_=>_.id===t),N=_=>{f(_),E(!1),A(!1)};return X.jsxs("div",{className:"cuadra-h-16 cuadra-px-4 cuadra-border-b cuadra-border-border cuadra-flex cuadra-items-center cuadra-justify-between cuadra-bg-background",children:[X.jsxs("div",{className:"cuadra-flex cuadra-items-center cuadra-gap-2",children:[v&&X.jsx("button",{type:"button",onClick:b,className:"cuadra-flex cuadra-items-center cuadra-justify-center cuadra-h-8 cuadra-w-8 cuadra-rounded-full cuadra-bg-muted hover:cuadra-bg-muted/80 cuadra-transition-colors disabled:cuadra-opacity-50 disabled:cuadra-cursor-not-allowed md:cuadra-hidden","aria-label":"Toggle thread list",children:X.jsx(ZU,{className:"cuadra-h-4 cuadra-w-4 cuadra-text-foreground"})}),h&&X.jsx("div",{className:"cuadra-hidden md:cuadra-flex cuadra-items-center cuadra-gap-2",children:X.jsx(l4,{theme:y})})]}),X.jsxs("div",{className:"cuadra-flex cuadra-items-center cuadra-gap-2 md:cuadra-ml-0 cuadra-ml-auto",children:[!m&&X.jsx("label",{className:"cuadra-hidden md:cuadra-inline cuadra-text-sm cuadra-text-muted-foreground cuadra-font-brand",children:"Model"}),m?null:i?X.jsx("div",{className:"cuadra-w-48 cuadra-rounded-md cuadra-border cuadra-border-border cuadra-px-3 cuadra-py-2 cuadra-bg-muted",children:X.jsx("span",{className:"cuadra-text-muted-foreground cuadra-text-sm cuadra-font-brand",children:"Loading..."})}):u?X.jsx("div",{className:"cuadra-w-48 cuadra-rounded-md cuadra-border cuadra-border-destructive cuadra-px-3 cuadra-py-2 cuadra-bg-destructive/10",children:X.jsx("span",{className:"cuadra-text-destructive cuadra-text-sm cuadra-font-brand",children:"Failed to load models"})}):X.jsxs(X.Fragment,{children:[X.jsxs("div",{ref:M,className:"cuadra-hidden md:cuadra-block cuadra-relative cuadra-w-48",children:[X.jsxs("button",{type:"button",onClick:()=>E(!x),disabled:i||a.length===0||!!u,className:"cuadra-flex cuadra-h-10 cuadra-w-full cuadra-items-center cuadra-justify-between cuadra-rounded-md cuadra-border cuadra-border-input cuadra-bg-background cuadra-px-3 cuadra-py-2 cuadra-text-sm placeholder:cuadra-text-muted-foreground focus:cuadra-outline-none disabled:cuadra-cursor-not-allowed disabled:cuadra-opacity-50 cuadra-font-brand",children:[X.jsx("span",{className:q?"cuadra-text-foreground":"cuadra-text-muted-foreground",children:q?.name||"Select model"}),X.jsx(nA,{className:"cuadra-ml-2 cuadra-h-4 cuadra-w-4 cuadra-opacity-50"})]}),x&&a.length>0&&X.jsx("div",{className:"cuadra-absolute cuadra-z-50 cuadra-mt-1 cuadra-w-full cuadra-min-w-[8rem] cuadra-overflow-hidden cuadra-rounded-md glass-popover cuadra-text-popover-foreground cuadra-animate-in fade-in-80 cuadra-border cuadra-border-border cuadra-bg-popover cuadra-shadow-md",children:X.jsx("div",{className:"cuadra-p-1",children:a.map(_=>X.jsxs("button",{type:"button",onClick:()=>N(_.id),className:`cuadra-relative cuadra-flex cuadra-w-full cuadra-cursor-pointer cuadra-select-none cuadra-items-center cuadra-rounded-sm cuadra-py-1.5 cuadra-pl-8 cuadra-pr-2 cuadra-text-sm cuadra-outline-none focus:cuadra-bg-secondary focus:cuadra-text-secondary-foreground font-brand cuadra-transition-colors ${t===_.id?"cuadra-bg-secondary cuadra-text-secondary-foreground":"hover:cuadra-bg-secondary/50"}`,children:[t===_.id&&X.jsx("span",{className:"cuadra-absolute cuadra-left-2 cuadra-flex cuadra-h-3.5 cuadra-w-3.5 cuadra-items-center cuadra-justify-center",children:X.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:X.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.47 10.03a.75.75 0 0 1-1.06-1.06l2-2a.75.75 0 0 1 1.06 0l2 2a.75.75 0 1 1-1.06 1.06L8 9.06l-1.53 1.53Z",clipRule:"evenodd"})})}),X.jsx("span",{children:_.name})]},_.id))})})]}),X.jsxs("button",{type:"button",onClick:()=>A(!0),disabled:i||a.length===0||!!u,className:"cuadra-flex md:cuadra-hidden cuadra-h-10 cuadra-w-full cuadra-items-center cuadra-justify-between cuadra-rounded-md cuadra-border cuadra-border-input cuadra-bg-background cuadra-px-3 cuadra-py-2 cuadra-text-sm placeholder:cuadra-text-muted-foreground focus:cuadra-outline-none disabled:cuadra-cursor-not-allowed disabled:cuadra-opacity-50 cuadra-font-brand",children:[X.jsx("span",{className:q?"cuadra-text-foreground":"cuadra-text-muted-foreground",children:q?.name||"Select model"}),X.jsx(nA,{className:"cuadra-ml-2 cuadra-h-4 cuadra-w-4 cuadra-opacity-50"})]}),R&&typeof document<"u"&&Fs.createPortal(X.jsxs(X.Fragment,{children:[X.jsx("div",{className:"cuadra-fixed cuadra-inset-0 cuadra-bg-black/50 cuadra-z-50 md:cuadra-hidden",onClick:()=>A(!1)}),X.jsxs("div",{className:"cuadra-fixed cuadra-inset-0 cuadra-z-50 cuadra-flex cuadra-flex-col cuadra-bg-background md:cuadra-hidden",children:[X.jsxs("div",{className:"cuadra-flex cuadra-items-center cuadra-justify-between cuadra-border-b cuadra-border-border cuadra-px-4 cuadra-py-4",children:[X.jsx("h2",{className:"cuadra-text-lg cuadra-font-normal cuadra-text-foreground font-brand",children:"Select Model"}),X.jsx("button",{type:"button",onClick:()=>A(!1),className:"cuadra-flex cuadra-items-center cuadra-justify-center cuadra-h-8 cuadra-w-8 cuadra-rounded-full cuadra-bg-muted hover:cuadra-bg-muted/80 cuadra-transition-colors","aria-label":"Close",children:X.jsx(XA,{className:"cuadra-h-4 cuadra-w-4 cuadra-text-foreground"})})]}),X.jsx("div",{className:"cuadra-flex-1 cuadra-overflow-y-auto cuadra-p-4",children:i?X.jsx("div",{className:"cuadra-flex cuadra-items-center cuadra-justify-center cuadra-py-8",children:X.jsx("span",{className:"cuadra-text-muted-foreground cuadra-text-sm cuadra-font-brand",children:"Loading models..."})}):u?X.jsx("div",{className:"cuadra-flex cuadra-items-center cuadra-justify-center cuadra-py-8",children:X.jsx("span",{className:"cuadra-text-destructive cuadra-text-sm cuadra-font-brand",children:"Failed to load models"})}):a.length===0?X.jsx("div",{className:"cuadra-flex cuadra-items-center cuadra-justify-center cuadra-py-8",children:X.jsx("span",{className:"cuadra-text-muted-foreground cuadra-text-sm cuadra-font-brand",children:"No models available"})}):X.jsx("div",{className:"cuadra-space-y-2",children:a.map(_=>X.jsxs("button",{type:"button",onClick:()=>N(_.id),className:`cuadra-w-full cuadra-flex cuadra-items-center cuadra-justify-between cuadra-rounded-lg cuadra-border cuadra-px-4 cuadra-py-4 cuadra-text-left cuadra-transition-colors font-brand cuadra-bg-background cuadra-text-foreground cuadra-border-border hover:cuadra-bg-muted ${t===_.id?"cuadra-border-primary":""}`,children:[X.jsx("span",{className:"cuadra-text-base cuadra-font-normal",children:_.name}),t===_.id&&X.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20",className:"cuadra-text-primary",children:X.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.707 5.293a1 1 0 0 1 0 1.414l-8 8a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 1.414-1.414L8 12.586l7.293-7.293a1 1 0 0 1 1.414 0Z",clipRule:"evenodd"})})]},_.id))})})]})]}),document.body)]})]})]})},a8=Ne.createContext(void 0),iC=({children:t,value:a})=>X.jsx(a8.Provider,{value:a,children:t});function r8(){Ne.useEffect(()=>{if(document.querySelector("style[data-cuadra-uikit]"))return;const a=document.createElement("div");a.className="cuadra-flex",document.body.appendChild(a);const i=window.getComputedStyle(a).display==="flex";if(document.body.removeChild(a),i)return;const u=document.createElement("link");u.setAttribute("data-cuadra-uikit","true"),u.rel="stylesheet",u.type="text/css";const f=["/node_modules/@cuadra-ai/uikit/dist/uikit.css",new URL("../dist/uikit.css",typeof document>"u"?require("url").pathToFileURL(__filename).href:hy&&hy.tagName.toUpperCase()==="SCRIPT"&&hy.src||new URL("index.cjs",document.baseURI).href).href];let m=!1;for(const h of f)if(u.href=h,u.onload=()=>{m=!0},u.onerror=()=>{},document.head.appendChild(u),m)break},[])}const l8=Ne.forwardRef(function({config:a},i){r8();const u=Ne.useRef(null),f=Ne.useRef(!1),{baseUrl:m,proxyUrl:h,sessionToken:y,mode:b="multiChat",modelMode:v="fixed",modelId:x,onModelChange:E,ephemeral:R=!1,systemPrompt:A,enableReasoning:M=!1,initialThreadId:q,welcomeTitle:N,welcomeSubtitle:_,extraTopPadding:L,suggestions:$,inputPlaceholder:I,preMadeResponseDelay:V=1e3,streamingSpeed:z=50,showThemeToggle:k=!0,initialMessage:U,initialPreMadeQA:F,theme:H="system",onError:J,onChatCreated:ve,onUserMessage:se,onThreadIdUpdate:Se,onLogout:ke,enableAttachments:P=!1,onBeforeRequest:ue,mockResponseOnBlocked:te}=a;Ne.useImperativeHandle(i,()=>({sendMessage:Ae=>{u.current?.sendMessage(Ae)},sendPreMadeQA:(Ae,Ve,$e)=>{u.current?.sendPreMadeQA(Ae,Ve,$e)},clearChat:()=>{u.current?.clearChat()}}),[]),Ne.useEffect(()=>{if(f.current)return;const Ae=setTimeout(()=>{F?(f.current=!0,u.current?.sendPreMadeQA(F.question,F.answer,{delay:V,streamingSpeed:z})):U&&(f.current=!0,u.current?.sendMessage(U))},500);return()=>clearTimeout(Ae)},[U,F,V,z]);const[De,je]=Ne.useState(!1),[Ye,Xe]=Ne.useState(null),[xe,Ie]=Ne.useState(null),[Je,at]=Ne.useState(!1),Lt=Ne.useRef(null),an=Ae=>{if(Ae<30)return!0;if(Lt.current){const Ve=Lt.current.getBoundingClientRect();if(Ae-Ve.left<30)return!0}return!1},ie=Ae=>{const $e=Ae.touches[0].clientX;(an($e)||De)&&(Xe($e),Ie($e),at(!0))},Pe=Ae=>{if(Ye===null||!Je)return;const Ve=Ae.touches[0];Ie(Ve.clientX)},de=()=>{if(Ye===null||xe===null){at(!1);return}const Ae=xe-Ye,Ve=50,$e=.3,Cn=Math.abs(Ae)/300;Ae>Ve&&!De&&Ye!==null?an(Ye)&&je(!0):((Ae<-Ve||Ae<0&&Cn>$e)&&De||De&&Ae<-20&&Cn>$e)&&je(!1),Xe(null),Ie(null),at(!1)},ut=()=>{if(Je&&Ye!==null&&xe!==null){const Ae=xe-Ye;if(De)return`translateX(${Math.min(0,Ae)}px)`;if(Ye!==null&&an(Ye))return`translateX(${Math.min(0,-320+Ae)}px)`}return De?"translateX(0)":"translateX(-100%)"},dt=()=>{if(!Je||Ye===null||xe===null)return De?.5:0;const Ve=xe-Ye;return De?Math.max(0,Math.min(1,(320+Ve)/320))*.5:Ye!==null&&an(Ye)?Math.max(0,Math.min(1,(Ve+320)/320))*.5:0},Ue=h||m||"",Nt=!!h,Ke=Ne.useMemo(()=>new _z(Ue,y||void 0,Nt),[Ue,y,Nt]),[Tn,tl]=Ne.useState(null),[Cr,yt]=Ne.useState(!1),[ya,Za]=Ne.useState(null),[ni,oe]=Ne.useState(!1);Ne.useEffect(()=>{b==="multiChat"&&oe(!0)},[b]);const pe=Ne.useCallback(async()=>{if(v==="selector"){yt(!0),Za(null);try{const Ae=await Ke.listModels();tl(Ae)}catch(Ae){Za(Ae instanceof Error?Ae:new Error("Failed to load models"))}finally{yt(!1)}}},[Ke,v]);Ne.useEffect(()=>{v==="selector"&&pe()},[v,pe]),Ne.useEffect(()=>(typeof window<"u"&&(window.__cuadraUIKitRefetchModels=pe),()=>{typeof window<"u"&&delete window.__cuadraUIKitRefetchModels}),[pe]);const[qe,Be]=Ne.useState(v==="fixed"&&x||null),ee=Ne.useRef(qe),st=Ne.useCallback(Ae=>{const Ve=ee.current;Be(Ae),ee.current=Ae,E?.(Ae),Ve!==null&&Ve!==Ae&&b==="multiChat"&&setTimeout(()=>{const $e=window.__cuadraThreadListRuntime;if($e?.threads?.switchToNewThread)try{$e.threads.switchToNewThread()}catch{}else if($e?.threads?.createThread)try{$e.threads.createThread()}catch{}else if($e?.switchToNewThread)try{$e.switchToNewThread()}catch{}},100)},[E,b]);Ne.useEffect(()=>{if(v==="selector"&&Tn?.items&&Tn.items.length>0&&!qe){const Ae=Tn.items[0];if(Ae?.id){const Ve=Ae.id;Be(Ve),E?.(Ve)}}},[v,Tn?.items,qe,E]);const Rn=v==="fixed"?!!x:!!qe,Zt=Ne.useMemo(()=>(Tn?.items||[]).filter(Ae=>Ae?.id&&Ae?.displayName).map(Ae=>({id:Ae.id,name:Ae.displayName})),[Tn]),ia=Ne.useMemo(()=>({currentModelId:qe||"",models:Zt,modelsLoading:Cr,modelsError:ya,onModelChange:st,refetchModels:pe}),[qe,Zt,Cr,ya,st,pe]);return v==="selector"&&Cr||b==="multiChat"&&ni?X.jsx(iC,{value:ia,children:X.jsx(lC,{className:"cuadra-h-full",paddingX:"cuadra-px-0",paddingY:"cuadra-py-0",children:X.jsx("div",{className:"cuadra-flex cuadra-items-center cuadra-justify-center cuadra-h-full",children:X.jsx(Cz,{className:"cuadra-h-6 cuadra-w-6 cuadra-animate-spin cuadra-text-muted-foreground"})})})}):v==="selector"&&!Rn&&ya?X.jsx(iC,{value:ia,children:X.jsx(lC,{className:"cuadra-h-full",paddingX:"cuadra-px-0",paddingY:"cuadra-py-0",children:X.jsx("div",{className:"cuadra-flex cuadra-items-center cuadra-justify-center cuadra-h-full",children:X.jsx("div",{className:"cuadra-flex cuadra-flex-col cuadra-items-center cuadra-gap-2",children:X.jsx("p",{className:"cuadra-text-sm cuadra-text-destructive font-brand",children:"Failed to load models"})})})})}):X.jsx("div",{className:"cuadra-uikit cuadra-h-full cuadra-w-full",style:{height:"100%",width:"100%"},children:X.jsx(iC,{value:ia,children:X.jsx(p5,{baseUrl:Nt?Ue:m||Ue,sessionToken:y,isProxyMode:Nt,mode:b,modelMode:v,modelId:qe||x||void 0,onModelChange:st,ephemeral:R,systemPrompt:A,enableReasoning:M,initialThreadId:q,enableAttachments:P,onError:J,onChatCreated:ve,onUserMessage:se,onThreadIdUpdate:Se,onBeforeRequest:ue,mockResponseOnBlocked:te,onChatsLoaded:()=>{b==="multiChat"&&oe(!1)},children:X.jsx(lC,{paddingX:"cuadra-px-0",paddingY:"cuadra-py-0",className:`cuadra-h-full ${a.containerClass||""}`,borderSizePx:4,style:{height:"100%"},children:X.jsx("div",{className:"cuadra-h-full cuadra-flex cuadra-relative",style:{height:"100%"},onTouchStart:ie,onTouchMove:Pe,onTouchEnd:de,children:b==="multiChat"?X.jsxs(X.Fragment,{children:[typeof document<"u"&&Fs.createPortal(X.jsx("div",{className:`cuadra-fixed cuadra-inset-0 cuadra-bg-black cuadra-z-40 md:cuadra-hidden cuadra-transition-opacity cuadra-duration-300 ${De||Je?"":"cuadra-pointer-events-none"}`,style:{opacity:dt()},onClick:()=>je(!1)}),document.body),typeof document<"u"&&X.jsxs(X.Fragment,{children:[X.jsx("div",{className:"cuadra-hidden md:cuadra-block !cuadra-border-r cuadra-border-border cuadra-flex cuadra-flex-col cuadra-bg-background cuadra-transition-all cuadra-duration-300 cuadra-ease-in-out cuadra-h-full cuadra-w-80 cuadra-relative",style:{borderRightWidth:"1px",height:"100%"},children:X.jsx(P2,{onThreadSelect:()=>je(!1),showThemeToggle:k,theme:H,onLogout:ke})}),typeof document<"u"&&Fs.createPortal(X.jsx("div",{className:`cuadra-block md:cuadra-hidden !cuadra-border-r cuadra-border-border cuadra-flex cuadra-flex-col cuadra-bg-background cuadra-h-screen cuadra-w-80 cuadra-fixed cuadra-z-50 cuadra-top-0 cuadra-left-0 ${De||Je?"":"cuadra-pointer-events-none"}`,style:{borderRightWidth:"1px",transform:ut(),transition:Je?"none":"transform 0.3s ease-in-out"},onTouchStart:ie,onTouchMove:Pe,onTouchEnd:de,children:X.jsx(P2,{onThreadSelect:()=>je(!1),showThemeToggle:k,theme:H,onLogout:ke})}),document.body)]}),X.jsxs("div",{ref:Lt,className:"cuadra-flex-1 cuadra-flex cuadra-flex-col",children:[v==="selector"&&X.jsx(I2,{currentModel:qe||"",models:Zt,modelsLoading:Cr,modelsError:ya,onModelChange:st,showThemeToggle:k,theme:H,onMobileMenuClick:()=>je(!De),showMobileMenuButton:b==="multiChat"}),X.jsx("div",{className:"cuadra-flex-1 cuadra-relative cuadra-min-h-0 cuadra-space-y-4 cuadra-p-4",children:X.jsx(H2,{ref:u,welcomeTitle:N,welcomeSubtitle:_,extraTopPadding:L,suggestions:$,inputPlaceholder:I,enableAttachments:P,preMadeResponseDelay:V,streamingSpeed:z})})]})]}):X.jsxs("div",{className:"cuadra-flex-1 cuadra-flex cuadra-flex-col",children:[v==="selector"&&X.jsx(I2,{currentModel:qe||"",models:Zt,modelsLoading:Cr,modelsError:ya,onModelChange:st,showThemeToggle:k,theme:H}),X.jsx("div",{className:"cuadra-flex-1 cuadra-relative cuadra-min-h-0 cuadra-space-y-4 cuadra-p-4",children:X.jsx(H2,{ref:u,welcomeTitle:N,welcomeSubtitle:_,extraTopPadding:L,suggestions:$,inputPlaceholder:I,preMadeResponseDelay:V,streamingSpeed:z})})]})})})})})})});function i4(t,a=":root"){if(typeof document>"u")return;const i=document.documentElement;if(t.light&&o8(t.light,i),t.dark){let u=document.getElementById("cuadra-theme-dark");u||(u=document.createElement("style"),u.id="cuadra-theme-dark",document.head.appendChild(u));const f=u8(t.dark);u.textContent=`.dark { ${f} }`}}const i8={background:"background",foreground:"foreground",card:"card",cardForeground:"card-foreground",popover:"popover",popoverForeground:"popover-foreground",primary:"primary",primaryForeground:"primary-foreground",primaryLight:"primary-light",primaryLighter:"primary-lighter",secondary:"secondary",secondaryForeground:"secondary-foreground",muted:"muted",mutedForeground:"muted-foreground",accent:"accent",accentForeground:"accent-foreground",border:"border",input:"input",ring:"ring",destructive:"destructive",destructiveForeground:"destructive-foreground",success:"success",successForeground:"success-foreground",info:"info",infoForeground:"info-foreground",warning:"warning",warningForeground:"warning-foreground"};function o4(t){const a=i8[t];return a?`--cuadra-${a}`:`--cuadra-${t.replace(/([A-Z])/g,"-$1").toLowerCase()}`}function o8(t,a){Object.entries(t).forEach(([i,u])=>{if(u){const f=o4(i);a.style.setProperty(f,u)}})}function u8(t){return Object.entries(t).map(([a,i])=>i?`${o4(a)}: ${i};`:"").filter(Boolean).join(" ")}function s8(){if(typeof document>"u")return;const t=document.documentElement;Array.from(t.style).filter(u=>u.startsWith("--cuadra-")).forEach(u=>t.style.removeProperty(u));const i=document.getElementById("cuadra-theme-dark");i&&i.remove()}function c8({onReset:t,error:a}){return X.jsxs("div",{className:"cuadra-flex cuadra-flex-col cuadra-items-center cuadra-justify-center cuadra-h-full cuadra-p-6 cuadra-text-center",children:[X.jsx("div",{className:"cuadra-mb-4",children:X.jsx("svg",{className:"cuadra-w-12 cuadra-h-12 cuadra-text-destructive cuadra-mx-auto",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:X.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),X.jsx("h3",{className:"cuadra-text-lg cuadra-font-medium cuadra-text-foreground cuadra-mb-2",children:"Something went wrong"}),X.jsx("p",{className:"cuadra-text-sm cuadra-text-muted-foreground cuadra-mb-4 cuadra-max-w-sm",children:a?.message||"An unexpected error occurred. Please try again."}),X.jsx("button",{onClick:t,className:"cuadra-px-4 cuadra-py-2 cuadra-text-sm cuadra-font-medium cuadra-rounded-md cuadra-transition-colors",style:{backgroundColor:"var(--cuadra-primary)",color:"hsl(var(--cuadra-primary-foreground))"},children:"Try Again"})]})}class f8 extends Ne.Component{constructor(i){super(i);ot(this,"reset",()=>{this.setState({hasError:!1,error:null})});this.state={hasError:!1,error:null}}static getDerivedStateFromError(i){return{hasError:!0,error:i}}componentDidCatch(i,u){this.props.onError?.(i,u)}render(){if(this.state.hasError){const{fallback:i}=this.props,{error:u}=this.state;return typeof i=="function"?i(u,this.reset):i||X.jsx(c8,{error:u,onReset:this.reset})}return this.props.children}}const Ry=Ne.createContext(null);Ry.displayName="CuadraChatContext";function d8(){const t=Ne.useContext(Ry);if(t===null)throw new Error("useCuadraChat must be used within a CuadraChatProvider. Wrap your component tree with <CuadraChatProvider>...</CuadraChatProvider>");return{controls:t.controls,isReady:t.controls!==null}}function p8(){const t=Ne.useContext(Ry);return t===null?null:{controls:t.controls,isReady:t.controls!==null}}function t_({children:t}){const[a,i]=Ne.useState(null),u=Ne.useCallback(h=>{i(h)},[]),f=Ne.useCallback(()=>{i(null)},[]),m={controls:a,registerControls:u,unregisterControls:f};return X.jsx(Ry.Provider,{value:m,children:t})}function u4(t){return"connection"in t&&typeof t.connection=="object"}function s4(t){return u4(t)?h8(t):m8(t)}function h8(t){return{connection:{baseUrl:t.connection.baseUrl||"",proxyUrl:t.connection.proxyUrl||"",sessionToken:t.connection.sessionToken??null},chat:{mode:t.chat?.mode??"multiChat",modelMode:t.chat?.modelMode??"fixed",modelId:t.chat?.modelId??"",systemPrompt:t.chat?.systemPrompt??"",ephemeral:t.chat?.ephemeral??!1,enableReasoning:t.chat?.enableReasoning??!1,enableAttachments:t.chat?.enableAttachments??!1,initialThreadId:t.chat?.initialThreadId},ui:{theme:t.ui?.theme??"system",customTheme:t.ui?.customTheme,showThemeToggle:t.ui?.showThemeToggle??!0,language:t.ui?.language,welcomeTitle:t.ui?.welcomeTitle??"Hi, how can I help you today?",welcomeSubtitle:t.ui?.welcomeSubtitle??"Start exploring our platform and discover what you can build.",suggestions:t.ui?.suggestions,inputPlaceholder:t.ui?.inputPlaceholder??"Type your message...",extraTopPadding:t.ui?.extraTopPadding},preMade:{responseDelay:t.preMade?.responseDelay??1e3,streamingSpeed:t.preMade?.streamingSpeed??50},initial:{message:t.initial?.message,preMadeQA:t.initial?.preMadeQA},interceptors:{onBeforeRequest:t.interceptors?.onBeforeRequest,mockResponseOnBlocked:t.interceptors?.mockResponseOnBlocked},callbacks:{onChatCreated:t.callbacks?.onChatCreated,onError:t.callbacks?.onError,onUserMessage:t.callbacks?.onUserMessage,onModelChange:t.callbacks?.onModelChange,onThreadIdUpdate:t.callbacks?.onThreadIdUpdate,onLogout:t.callbacks?.onLogout},className:t.className,errorFallback:t.errorFallback}}function m8(t){return typeof process<"u"&&process.env?.NODE_ENV==="development"&&console.warn(`[CuadraUIKit] Using legacy flat props format. Consider migrating to grouped props for better organization.
23
+ See: https://docs.cuadra.ai/guides/uikit-migration`),{connection:{baseUrl:t.baseUrl||"",proxyUrl:t.proxyUrl||"",sessionToken:t.sessionToken??null},chat:{mode:t.mode??"multiChat",modelMode:t.modelMode??"fixed",modelId:t.modelId??"",systemPrompt:t.systemPrompt??"",ephemeral:t.ephemeral??!1,enableReasoning:t.enableReasoning??!1,enableAttachments:t.enableAttachments??!1,initialThreadId:t.initialThreadId},ui:{theme:t.theme??"system",customTheme:t.customTheme,showThemeToggle:t.showThemeToggle??!0,language:t.language,welcomeTitle:t.welcomeTitle??"Hi, how can I help you today?",welcomeSubtitle:t.welcomeSubtitle??"Start exploring our platform and discover what you can build.",suggestions:t.suggestions,inputPlaceholder:t.inputPlaceholder??"Type your message...",extraTopPadding:t.extraTopPadding},preMade:{responseDelay:t.preMadeResponseDelay??1e3,streamingSpeed:t.streamingSpeed??50},initial:{message:t.initialMessage,preMadeQA:t.initialPreMadeQA},interceptors:{onBeforeRequest:t.onBeforeRequest,mockResponseOnBlocked:t.mockResponseOnBlocked},callbacks:{onChatCreated:t.onChatCreated,onError:t.onError,onUserMessage:t.onUserMessage,onModelChange:t.onModelChange,onThreadIdUpdate:t.onThreadIdUpdate,onLogout:t.onLogout},className:t.className,errorFallback:t.errorFallback}}const y8=Ne.forwardRef(function({config:a},i){const u=Ne.useRef(null),f=Ne.useContext(Ry);Ne.useEffect(()=>{a.ui.customTheme&&i4(a.ui.customTheme)},[a.ui.customTheme]);const m={sendMessage:y=>u.current?.sendMessage(y),sendPreMadeQA:(y,b,v)=>u.current?.sendPreMadeQA(y,b,v),clearChat:()=>u.current?.clearChat()};Ne.useImperativeHandle(i,()=>m,[]),Ne.useEffect(()=>{if(f)return f.registerControls(m),()=>f.unregisterControls()},[f,m]),Ne.useEffect(()=>(typeof window<"u"&&(process.env.NODE_ENV==="development"&&console.warn("[CuadraUIKit] window.__cuadraChatControls is deprecated. Use CuadraChatProvider and useCuadraChat() hook instead. See: https://docs.cuadra.ai/guides/uikit-migration"),window.__cuadraChatControls=m),()=>{typeof window<"u"&&delete window.__cuadraChatControls}),[m]);const h={baseUrl:a.connection.baseUrl||void 0,proxyUrl:a.connection.proxyUrl||void 0,sessionToken:a.connection.sessionToken,mode:a.chat.mode,modelMode:a.chat.modelMode,modelId:a.chat.modelId||void 0,systemPrompt:a.chat.systemPrompt||void 0,ephemeral:a.chat.ephemeral,enableReasoning:a.chat.enableReasoning,enableAttachments:a.chat.enableAttachments,initialThreadId:a.chat.initialThreadId,theme:a.ui.theme,showThemeToggle:a.ui.showThemeToggle,language:a.ui.language,welcomeTitle:a.ui.welcomeTitle,welcomeSubtitle:a.ui.welcomeSubtitle,suggestions:a.ui.suggestions,inputPlaceholder:a.ui.inputPlaceholder,extraTopPadding:a.ui.extraTopPadding,containerClass:a.className,preMadeResponseDelay:a.preMade.responseDelay,streamingSpeed:a.preMade.streamingSpeed,initialMessage:a.initial.message,initialPreMadeQA:a.initial.preMadeQA,onBeforeRequest:a.interceptors.onBeforeRequest,mockResponseOnBlocked:a.interceptors.mockResponseOnBlocked,onChatCreated:a.callbacks.onChatCreated,onError:a.callbacks.onError,onUserMessage:a.callbacks.onUserMessage,onModelChange:a.callbacks.onModelChange,onThreadIdUpdate:a.callbacks.onThreadIdUpdate,onLogout:a.callbacks.onLogout};return X.jsx(l8,{ref:u,config:h})}),g8=Ne.forwardRef(function(a,i){const u=s4(a),f=u.errorFallback;return X.jsx(f8,{fallback:f,onError:(m,h)=>{u.callbacks.onError?.(m),process.env.NODE_ENV==="development"&&console.error("[CuadraChat] Error caught by boundary:",m,h)},children:X.jsx(y8,{ref:i,config:u})})});function _p(t={}){return{id:"model-test-123",displayName:"Test Model",description:"A test model for unit testing",provider:"openai",modelName:"gpt-4",contextWindow:128e3,maxTokensPerRequest:4096,supportsStreaming:!0,enabled:!0,isSystemModel:!1,creditMultiplier:1,createdAt:"2024-01-01T00:00:00Z",updatedAt:"2024-01-01T00:00:00Z",...t}}function b8(t=[_p()],a={}){return{items:t,hasMore:!1,...a}}const v8={gpt4:_p({id:"model-gpt4",displayName:"GPT-4",provider:"openai",modelName:"gpt-4",contextWindow:128e3}),claude:_p({id:"model-claude",displayName:"Claude 3",provider:"anthropic",modelName:"claude-3-opus",contextWindow:2e5}),reasoningModel:_p({id:"model-o1",displayName:"O1",provider:"openai",modelName:"o1-preview",description:"Model with reasoning capability"}),systemModel:_p({id:"model-system",displayName:"System Default",isSystemModel:!0})};function S8(t){return Array.from({length:t},(a,i)=>_p({id:`model-${i+1}`,displayName:`Test Model ${i+1}`}))}function bS(t={}){return{id:"chat-test-123",modelId:"model-test-123",organizationId:"org-test-123",title:"Test Conversation",messages:[],createdAt:"2024-01-01T00:00:00Z",updatedAt:"2024-01-01T00:00:00Z",createdBy:"user-test-123",...t}}function n_(t={}){return{id:"chat-test-123",modelId:"model-test-123",organizationId:"org-test-123",title:"Test Conversation",createdAt:"2024-01-01T00:00:00Z",updatedAt:"2024-01-01T00:00:00Z",...t}}function E8(t=[n_()],a={}){return{items:t,hasMore:!1,...a}}function Hs(t,a,i={}){return{id:`msg-${Date.now()}-${Math.random().toString(36).slice(2)}`,role:t,content:a,chatId:"chat-test-123",createdAt:new Date().toISOString(),...i}}const T8={empty:bS({id:"chat-empty",title:"New Conversation",messages:[]}),singleExchange:bS({id:"chat-single",title:"Quick Question",messages:[Hs("user","Hello, how are you?"),Hs("assistant","I'm doing well, thank you! How can I help you today?")]}),multipleExchanges:bS({id:"chat-multi",title:"Ongoing Discussion",messages:[Hs("user","What is TypeScript?"),Hs("assistant","TypeScript is a typed superset of JavaScript that compiles to plain JavaScript."),Hs("user","How do I use it with React?"),Hs("assistant","You can use TypeScript with React by creating .tsx files and adding type annotations to your components.")]}),withSources:bS({id:"chat-sources",title:"Research Query",messages:[Hs("user","Tell me about our product pricing"),Hs("assistant","Based on the documentation, here are the pricing tiers...",{metadata:{sources:[{sourceId:"src-1",filename:"pricing-guide.pdf",score:.95},{sourceId:"src-2",filename:"enterprise-plans.pdf",score:.87}]}})]})};function w8(t){return Array.from({length:t},(a,i)=>n_({id:`chat-${i+1}`,title:`Conversation ${i+1}`}))}function a_(t){const a=[];return t.id&&a.push(`id: ${t.id}`),t.event&&a.push(`event: ${t.event}`),a.push(`data: ${t.data}`),a.push(""),a.join(`
24
+ `)+`
25
+ `}function vS(t,a={}){const{chatId:i="chat-test-123",modelId:u="model-test-123",includeThinking:f=!1,thinkingContent:m="Let me think about this...",sources:h=[],chunkSize:y=10}=a,b=[];if(b.push({data:JSON.stringify({type:"chat_created",chat_id:i,model_id:u})}),f){const x=V2(m,y);for(const E of x)b.push({data:JSON.stringify({type:"thinking",content:E})});b.push({data:JSON.stringify({type:"thinking_end"})})}const v=V2(t,y);for(const x of v)b.push({data:JSON.stringify({type:"content",content:x})});return h.length>0&&b.push({data:JSON.stringify({type:"sources",sources:h})}),b.push({data:JSON.stringify({type:"done"})}),b.map(a_).join("")}function c4(t,a){return a_({data:JSON.stringify({type:"error",error:t,code:a})})}function V2(t,a){const i=[],u=t.split(" ");let f="";for(const m of u)f.length+m.length+1>a&&f.length>0?(i.push(f),f=m):f=f?`${f} ${m}`:m;return f&&i.push(f),i}function f4(t){const a=new TextEncoder,i=t.split(`
26
+
27
+ `).filter(Boolean).map(f=>f+`
28
+
29
+ `);let u=0;return new ReadableStream({pull(f){u<i.length?(f.enqueue(a.encode(i[u])),u++):f.close()}})}function r_(t,a=200){return new Response(f4(t),{status:a,headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache",Connection:"keep-alive"}})}const x8={simple:vS("Hello! How can I help you today?"),withThinking:vS("Based on my analysis, the answer is 42.",{includeThinking:!0,thinkingContent:"Let me analyze this step by step..."}),withSources:vS("According to the documentation, you can do this by following these steps...",{sources:[{id:"src-1",title:"Getting Started Guide",url:"https://docs.example.com/start"},{id:"src-2",title:"API Reference",url:"https://docs.example.com/api"}]}),longResponse:vS("This is a longer response that contains multiple sentences. It helps test how the UI handles progressively streaming content. The response should appear word by word or chunk by chunk. This simulates a real AI response that takes time to generate.",{chunkSize:5}),error:c4("Rate limit exceeded","RATE_LIMIT")};function R8(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var yw={exports:{}},oC={};var G2;function C8(){if(G2)return oC;G2=1;var t=Ne,a=!1;return oC.act=function(i){return a===!1&&(a=!0,console.error("`ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.")),t.act(i)},oC}var uC={};var Y2;function A8(){return Y2||(Y2=1,process.env.NODE_ENV!=="production"&&(function(){var t=Ne,a=!1;uC.act=function(i){return a===!1&&(a=!0,console.error("`ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.")),t.act(i)}})()),uC}var X2;function _8(){return X2||(X2=1,process.env.NODE_ENV==="production"?yw.exports=C8():yw.exports=A8()),yw.exports}var M8=_8(),gw={exports:{}},Cv={},bw={exports:{}},sC={};var F2;function O8(){return F2||(F2=1,(function(t){function a(P,ue){var te=P.length;P.push(ue);e:for(;0<te;){var De=te-1>>>1,je=P[De];if(0<f(je,ue))P[De]=ue,P[te]=je,te=De;else break e}}function i(P){return P.length===0?null:P[0]}function u(P){if(P.length===0)return null;var ue=P[0],te=P.pop();if(te!==ue){P[0]=te;e:for(var De=0,je=P.length,Ye=je>>>1;De<Ye;){var Xe=2*(De+1)-1,xe=P[Xe],Ie=Xe+1,Je=P[Ie];if(0>f(xe,te))Ie<je&&0>f(Je,xe)?(P[De]=Je,P[Ie]=te,De=Ie):(P[De]=xe,P[Xe]=te,De=Xe);else if(Ie<je&&0>f(Je,te))P[De]=Je,P[Ie]=te,De=Ie;else break e}}return ue}function f(P,ue){var te=P.sortIndex-ue.sortIndex;return te!==0?te:P.id-ue.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;t.unstable_now=function(){return m.now()}}else{var h=Date,y=h.now();t.unstable_now=function(){return h.now()-y}}var b=[],v=[],x=1,E=null,R=3,A=!1,M=!1,q=!1,N=!1,_=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function I(P){for(var ue=i(v);ue!==null;){if(ue.callback===null)u(v);else if(ue.startTime<=P)u(v),ue.sortIndex=ue.expirationTime,a(b,ue);else break;ue=i(v)}}function V(P){if(q=!1,I(P),!M)if(i(b)!==null)M=!0,z||(z=!0,ve());else{var ue=i(v);ue!==null&&ke(V,ue.startTime-P)}}var z=!1,k=-1,U=5,F=-1;function H(){return N?!0:!(t.unstable_now()-F<U)}function J(){if(N=!1,z){var P=t.unstable_now();F=P;var ue=!0;try{e:{M=!1,q&&(q=!1,L(k),k=-1),A=!0;var te=R;try{t:{for(I(P),E=i(b);E!==null&&!(E.expirationTime>P&&H());){var De=E.callback;if(typeof De=="function"){E.callback=null,R=E.priorityLevel;var je=De(E.expirationTime<=P);if(P=t.unstable_now(),typeof je=="function"){E.callback=je,I(P),ue=!0;break t}E===i(b)&&u(b),I(P)}else u(b);E=i(b)}if(E!==null)ue=!0;else{var Ye=i(v);Ye!==null&&ke(V,Ye.startTime-P),ue=!1}}break e}finally{E=null,R=te,A=!1}ue=void 0}}finally{ue?ve():z=!1}}}var ve;if(typeof $=="function")ve=function(){$(J)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,Se=se.port2;se.port1.onmessage=J,ve=function(){Se.postMessage(null)}}else ve=function(){_(J,0)};function ke(P,ue){k=_(function(){P(t.unstable_now())},ue)}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(P){P.callback=null},t.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<P?Math.floor(1e3/P):5},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_next=function(P){switch(R){case 1:case 2:case 3:var ue=3;break;default:ue=R}var te=R;R=ue;try{return P()}finally{R=te}},t.unstable_requestPaint=function(){N=!0},t.unstable_runWithPriority=function(P,ue){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var te=R;R=P;try{return ue()}finally{R=te}},t.unstable_scheduleCallback=function(P,ue,te){var De=t.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?De+te:De):te=De,P){case 1:var je=-1;break;case 2:je=250;break;case 5:je=1073741823;break;case 4:je=1e4;break;default:je=5e3}return je=te+je,P={id:x++,callback:ue,priorityLevel:P,startTime:te,expirationTime:je,sortIndex:-1},te>De?(P.sortIndex=te,a(v,P),i(b)===null&&P===i(v)&&(q?(L(k),k=-1):q=!0,ke(V,te-De))):(P.sortIndex=je,a(b,P),M||A||(M=!0,z||(z=!0,ve()))),P},t.unstable_shouldYield=H,t.unstable_wrapCallback=function(P){var ue=R;return function(){var te=R;R=ue;try{return P.apply(this,arguments)}finally{R=te}}}})(sC)),sC}var cC={};var Q2;function q8(){return Q2||(Q2=1,(function(t){process.env.NODE_ENV!=="production"&&(function(){function a(){if(V=!1,F){var P=t.unstable_now();ve=P;var ue=!0;try{e:{$=!1,I&&(I=!1,k(H),H=-1),L=!0;var te=_;try{t:{for(h(P),N=u(A);N!==null&&!(N.expirationTime>P&&b());){var De=N.callback;if(typeof De=="function"){N.callback=null,_=N.priorityLevel;var je=De(N.expirationTime<=P);if(P=t.unstable_now(),typeof je=="function"){N.callback=je,h(P),ue=!0;break t}N===u(A)&&f(A),h(P)}else f(A);N=u(A)}if(N!==null)ue=!0;else{var Ye=u(M);Ye!==null&&v(y,Ye.startTime-P),ue=!1}}break e}finally{N=null,_=te,L=!1}ue=void 0}}finally{ue?se():F=!1}}}function i(P,ue){var te=P.length;P.push(ue);e:for(;0<te;){var De=te-1>>>1,je=P[De];if(0<m(je,ue))P[De]=ue,P[te]=je,te=De;else break e}}function u(P){return P.length===0?null:P[0]}function f(P){if(P.length===0)return null;var ue=P[0],te=P.pop();if(te!==ue){P[0]=te;e:for(var De=0,je=P.length,Ye=je>>>1;De<Ye;){var Xe=2*(De+1)-1,xe=P[Xe],Ie=Xe+1,Je=P[Ie];if(0>m(xe,te))Ie<je&&0>m(Je,xe)?(P[De]=Je,P[Ie]=te,De=Ie):(P[De]=xe,P[Xe]=te,De=Xe);else if(Ie<je&&0>m(Je,te))P[De]=Je,P[Ie]=te,De=Ie;else break e}}return ue}function m(P,ue){var te=P.sortIndex-ue.sortIndex;return te!==0?te:P.id-ue.id}function h(P){for(var ue=u(M);ue!==null;){if(ue.callback===null)f(M);else if(ue.startTime<=P)f(M),ue.sortIndex=ue.expirationTime,i(A,ue);else break;ue=u(M)}}function y(P){if(I=!1,h(P),!$)if(u(A)!==null)$=!0,F||(F=!0,se());else{var ue=u(M);ue!==null&&v(y,ue.startTime-P)}}function b(){return V?!0:!(t.unstable_now()-ve<J)}function v(P,ue){H=z(function(){P(t.unstable_now())},ue)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var x=performance;t.unstable_now=function(){return x.now()}}else{var E=Date,R=E.now();t.unstable_now=function(){return E.now()-R}}var A=[],M=[],q=1,N=null,_=3,L=!1,$=!1,I=!1,V=!1,z=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null,F=!1,H=-1,J=5,ve=-1;if(typeof U=="function")var se=function(){U(a)};else if(typeof MessageChannel<"u"){var Se=new MessageChannel,ke=Se.port2;Se.port1.onmessage=a,se=function(){ke.postMessage(null)}}else se=function(){z(a,0)};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(P){P.callback=null},t.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<P?Math.floor(1e3/P):5},t.unstable_getCurrentPriorityLevel=function(){return _},t.unstable_next=function(P){switch(_){case 1:case 2:case 3:var ue=3;break;default:ue=_}var te=_;_=ue;try{return P()}finally{_=te}},t.unstable_requestPaint=function(){V=!0},t.unstable_runWithPriority=function(P,ue){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var te=_;_=P;try{return ue()}finally{_=te}},t.unstable_scheduleCallback=function(P,ue,te){var De=t.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?De+te:De):te=De,P){case 1:var je=-1;break;case 2:je=250;break;case 5:je=1073741823;break;case 4:je=1e4;break;default:je=5e3}return je=te+je,P={id:q++,callback:ue,priorityLevel:P,startTime:te,expirationTime:je,sortIndex:-1},te>De?(P.sortIndex=te,i(M,P),u(A)===null&&P===u(M)&&(I?(k(H),H=-1):I=!0,v(y,te-De))):(P.sortIndex=je,i(A,P),$||L||($=!0,F||(F=!0,se()))),P},t.unstable_shouldYield=b,t.unstable_wrapCallback=function(P){var ue=_;return function(){var te=_;_=ue;try{return P.apply(this,arguments)}finally{_=te}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(cC)),cC}var Z2;function d4(){return Z2||(Z2=1,process.env.NODE_ENV==="production"?bw.exports=O8():bw.exports=q8()),bw.exports}var J2;function D8(){if(J2)return Cv;J2=1;var t=d4(),a=Ne,i=Fs;function u(r){var o="https://react.dev/errors/"+r;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)o+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+r+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function m(r){var o=r,s=r;if(r.alternate)for(;o.return;)o=o.return;else{r=o;do o=r,(o.flags&4098)!==0&&(s=o.return),r=o.return;while(r)}return o.tag===3?s:null}function h(r){if(r.tag===13){var o=r.memoizedState;if(o===null&&(r=r.alternate,r!==null&&(o=r.memoizedState)),o!==null)return o.dehydrated}return null}function y(r){if(r.tag===31){var o=r.memoizedState;if(o===null&&(r=r.alternate,r!==null&&(o=r.memoizedState)),o!==null)return o.dehydrated}return null}function b(r){if(m(r)!==r)throw Error(u(188))}function v(r){var o=r.alternate;if(!o){if(o=m(r),o===null)throw Error(u(188));return o!==r?null:r}for(var s=r,d=o;;){var S=s.return;if(S===null)break;var T=S.alternate;if(T===null){if(d=S.return,d!==null){s=d;continue}break}if(S.child===T.child){for(T=S.child;T;){if(T===s)return b(S),r;if(T===d)return b(S),o;T=T.sibling}throw Error(u(188))}if(s.return!==d.return)s=S,d=T;else{for(var O=!1,B=S.child;B;){if(B===s){O=!0,s=S,d=T;break}if(B===d){O=!0,d=S,s=T;break}B=B.sibling}if(!O){for(B=T.child;B;){if(B===s){O=!0,s=T,d=S;break}if(B===d){O=!0,d=T,s=S;break}B=B.sibling}if(!O)throw Error(u(189))}}if(s.alternate!==d)throw Error(u(190))}if(s.tag!==3)throw Error(u(188));return s.stateNode.current===s?r:o}function x(r){var o=r.tag;if(o===5||o===26||o===27||o===6)return r;for(r=r.child;r!==null;){if(o=x(r),o!==null)return o;r=r.sibling}return null}var E=Object.assign,R=Symbol.for("react.element"),A=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),$=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),J=Symbol.iterator;function ve(r){return r===null||typeof r!="object"?null:(r=J&&r[J]||r["@@iterator"],typeof r=="function"?r:null)}var se=Symbol.for("react.client.reference");function Se(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===se?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case q:return"Fragment";case _:return"Profiler";case N:return"StrictMode";case V:return"Suspense";case z:return"SuspenseList";case F:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case M:return"Portal";case $:return r.displayName||"Context";case L:return(r._context.displayName||"Context")+".Consumer";case I:var o=r.render;return r=r.displayName,r||(r=o.displayName||o.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case k:return o=r.displayName||null,o!==null?o:Se(r.type)||"Memo";case U:o=r._payload,r=r._init;try{return Se(r(o))}catch{}}return null}var ke=Array.isArray,P=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},De=[],je=-1;function Ye(r){return{current:r}}function Xe(r){0>je||(r.current=De[je],De[je]=null,je--)}function xe(r,o){je++,De[je]=r.current,r.current=o}var Ie=Ye(null),Je=Ye(null),at=Ye(null),Lt=Ye(null);function an(r,o){switch(xe(at,o),xe(Je,r),xe(Ie,null),o.nodeType){case 9:case 11:r=(r=o.documentElement)&&(r=r.namespaceURI)?lT(r):0;break;default:if(r=o.tagName,o=o.namespaceURI)o=lT(o),r=Eb(o,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}Xe(Ie),xe(Ie,r)}function ie(){Xe(Ie),Xe(Je),Xe(at)}function Pe(r){r.memoizedState!==null&&xe(Lt,r);var o=Ie.current,s=Eb(o,r.type);o!==s&&(xe(Je,r),xe(Ie,s))}function de(r){Je.current===r&&(Xe(Ie),Xe(Je)),Lt.current===r&&(Xe(Lt),Kd._currentValue=te)}var ut,dt;function Ue(r){if(ut===void 0)try{throw Error()}catch(s){var o=s.stack.trim().match(/\n( *(at )?)/);ut=o&&o[1]||"",dt=-1<s.stack.indexOf(`
30
+ at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
31
+ `+ut+r+dt}var Nt=!1;function Ke(r,o){if(!r||Nt)return"";Nt=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(o){var Me=function(){throw Error()};if(Object.defineProperty(Me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Me,[])}catch(we){var ge=we}Reflect.construct(r,[],Me)}else{try{Me.call()}catch(we){ge=we}r.call(Me.prototype)}}else{try{throw Error()}catch(we){ge=we}(Me=r())&&typeof Me.catch=="function"&&Me.catch(function(){})}}catch(we){if(we&&ge&&typeof we.stack=="string")return[we.stack,ge.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var S=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");S&&S.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var T=d.DetermineComponentFrameRoot(),O=T[0],B=T[1];if(O&&B){var W=O.split(`
32
+ `),ye=B.split(`
33
+ `);for(S=d=0;d<W.length&&!W[d].includes("DetermineComponentFrameRoot");)d++;for(;S<ye.length&&!ye[S].includes("DetermineComponentFrameRoot");)S++;if(d===W.length||S===ye.length)for(d=W.length-1,S=ye.length-1;1<=d&&0<=S&&W[d]!==ye[S];)S--;for(;1<=d&&0<=S;d--,S--)if(W[d]!==ye[S]){if(d!==1||S!==1)do if(d--,S--,0>S||W[d]!==ye[S]){var Re=`
34
+ `+W[d].replace(" at new "," at ");return r.displayName&&Re.includes("<anonymous>")&&(Re=Re.replace("<anonymous>",r.displayName)),Re}while(1<=d&&0<=S);break}}}finally{Nt=!1,Error.prepareStackTrace=s}return(s=r?r.displayName||r.name:"")?Ue(s):""}function Tn(r,o){switch(r.tag){case 26:case 27:case 5:return Ue(r.type);case 16:return Ue("Lazy");case 13:return r.child!==o&&o!==null?Ue("Suspense Fallback"):Ue("Suspense");case 19:return Ue("SuspenseList");case 0:case 15:return Ke(r.type,!1);case 11:return Ke(r.type.render,!1);case 1:return Ke(r.type,!0);case 31:return Ue("Activity");default:return""}}function tl(r){try{var o="",s=null;do o+=Tn(r,s),s=r,r=r.return;while(r);return o}catch(d){return`
35
+ Error generating stack: `+d.message+`
36
+ `+d.stack}}var Cr=Object.prototype.hasOwnProperty,yt=t.unstable_scheduleCallback,ya=t.unstable_cancelCallback,Za=t.unstable_shouldYield,ni=t.unstable_requestPaint,oe=t.unstable_now,pe=t.unstable_getCurrentPriorityLevel,qe=t.unstable_ImmediatePriority,Be=t.unstable_UserBlockingPriority,ee=t.unstable_NormalPriority,st=t.unstable_LowPriority,Rn=t.unstable_IdlePriority,Zt=t.log,ia=t.unstable_setDisableYieldValue,tt=null,Ae=null;function Ve(r){if(typeof Zt=="function"&&ia(r),Ae&&typeof Ae.setStrictMode=="function")try{Ae.setStrictMode(tt,r)}catch{}}var $e=Math.clz32?Math.clz32:nl,Bt=Math.log,Cn=Math.LN2;function nl(r){return r>>>=0,r===0?32:31-(Bt(r)/Cn|0)|0}var $a=256,An=262144,oa=4194304;function ga(r){var o=r&42;if(o!==0)return o;switch(r&-r){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 r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function $t(r,o,s){var d=r.pendingLanes;if(d===0)return 0;var S=0,T=r.suspendedLanes,O=r.pingedLanes;r=r.warmLanes;var B=d&134217727;return B!==0?(d=B&~T,d!==0?S=ga(d):(O&=B,O!==0?S=ga(O):s||(s=B&~r,s!==0&&(S=ga(s))))):(B=d&~T,B!==0?S=ga(B):O!==0?S=ga(O):s||(s=d&~r,s!==0&&(S=ga(s)))),S===0?0:o!==0&&o!==S&&(o&T)===0&&(T=S&-S,s=o&-o,T>=s||T===32&&(s&4194048)!==0)?o:S}function Wn(r,o){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&o)===0}function Ln(r,o){switch(r){case 1:case 2:case 4:case 8:case 64:return o+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 o+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 ze(){var r=oa;return oa<<=1,(oa&62914560)===0&&(oa=4194304),r}function wl(r){for(var o=[],s=0;31>s;s++)o.push(r);return o}function al(r,o){r.pendingLanes|=o,o!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function rl(r,o,s,d,S,T){var O=r.pendingLanes;r.pendingLanes=s,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=s,r.entangledLanes&=s,r.errorRecoveryDisabledLanes&=s,r.shellSuspendCounter=0;var B=r.entanglements,W=r.expirationTimes,ye=r.hiddenUpdates;for(s=O&~s;0<s;){var Re=31-$e(s),Me=1<<Re;B[Re]=0,W[Re]=-1;var ge=ye[Re];if(ge!==null)for(ye[Re]=null,Re=0;Re<ge.length;Re++){var we=ge[Re];we!==null&&(we.lane&=-536870913)}s&=~Me}d!==0&&xl(r,d,0),T!==0&&S===0&&r.tag!==0&&(r.suspendedLanes|=T&~(O&~o))}function xl(r,o,s){r.pendingLanes|=o,r.suspendedLanes&=~o;var d=31-$e(o);r.entangledLanes|=o,r.entanglements[d]=r.entanglements[d]|1073741824|s&261930}function ai(r,o){var s=r.entangledLanes|=o;for(r=r.entanglements;s;){var d=31-$e(s),S=1<<d;S&o|r[d]&o&&(r[d]|=o),s&=~S}}function Ar(r,o){var s=o&-o;return s=(s&42)!==0?1:Hp(s),(s&(r.suspendedLanes|o))!==0?0:s}function Hp(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function qy(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function Pp(){var r=ue.p;return r!==0?r:(r=window.event,r===void 0?32:Wd(r.type))}function Dy(r,o){var s=ue.p;try{return ue.p=r,o()}finally{ue.p=s}}var Rl=Math.random().toString(36).slice(2),rn="__reactFiber$"+Rl,Ja="__reactProps$"+Rl,zo="__reactContainer$"+Rl,Ip="__reactEvents$"+Rl,Ny="__reactListeners$"+Rl,XS="__reactHandles$"+Rl,jy="__reactResources$"+Rl,ri="__reactMarker$"+Rl;function Vp(r){delete r[rn],delete r[Ja],delete r[Ip],delete r[Ny],delete r[XS]}function Ru(r){var o=r[rn];if(o)return o;for(var s=r.parentNode;s;){if(o=s[zo]||s[rn]){if(s=o.alternate,o.child!==null||s!==null&&s.child!==null)for(r=Yl(r);r!==null;){if(s=r[rn])return s;r=Yl(r)}return o}r=s,s=r.parentNode}return null}function Cu(r){if(r=r[rn]||r[zo]){var o=r.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return r}return null}function Ws(r){var o=r.tag;if(o===5||o===26||o===27||o===6)return r.stateNode;throw Error(u(33))}function Au(r){var o=r[jy];return o||(o=r[jy]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Jt(r){r[ri]=!0}var _u=new Set,ko={};function Bo(r,o){li(r,o),li(r+"Capture",o)}function li(r,o){for(ko[r]=o,r=0;r<o.length;r++)_u.add(o[r])}var Gp=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]*$"),Yp={},ec={};function tc(r){return Cr.call(ec,r)?!0:Cr.call(Yp,r)?!1:Gp.test(r)?ec[r]=!0:(Yp[r]=!0,!1)}function nc(r,o,s){if(tc(o))if(s===null)r.removeAttribute(o);else{switch(typeof s){case"undefined":case"function":case"symbol":r.removeAttribute(o);return;case"boolean":var d=o.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){r.removeAttribute(o);return}}r.setAttribute(o,""+s)}}function Xp(r,o,s){if(s===null)r.removeAttribute(o);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(o);return}r.setAttribute(o,""+s)}}function Ji(r,o,s,d){if(d===null)r.removeAttribute(s);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(s);return}r.setAttributeNS(o,s,""+d)}}function _r(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Fp(r){var o=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function zy(r,o,s){var d=Object.getOwnPropertyDescriptor(r.constructor.prototype,o);if(!r.hasOwnProperty(o)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var S=d.get,T=d.set;return Object.defineProperty(r,o,{configurable:!0,get:function(){return S.call(this)},set:function(O){s=""+O,T.call(this,O)}}),Object.defineProperty(r,o,{enumerable:d.enumerable}),{getValue:function(){return s},setValue:function(O){s=""+O},stopTracking:function(){r._valueTracker=null,delete r[o]}}}}function Qp(r){if(!r._valueTracker){var o=Fp(r)?"checked":"value";r._valueTracker=zy(r,o,""+r[o])}}function ky(r){if(!r)return!1;var o=r._valueTracker;if(!o)return!0;var s=o.getValue(),d="";return r&&(d=Fp(r)?r.checked?"true":"false":r.value),r=d,r!==s?(o.setValue(r),!0):!1}function Hf(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var Ox=/[\n"\\]/g;function Mr(r){return r.replace(Ox,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Pf(r,o,s,d,S,T,O,B){r.name="",O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?r.type=O:r.removeAttribute("type"),o!=null?O==="number"?(o===0&&r.value===""||r.value!=o)&&(r.value=""+_r(o)):r.value!==""+_r(o)&&(r.value=""+_r(o)):O!=="submit"&&O!=="reset"||r.removeAttribute("value"),o!=null?Mu(r,O,_r(o)):s!=null?Mu(r,O,_r(s)):d!=null&&r.removeAttribute("value"),S==null&&T!=null&&(r.defaultChecked=!!T),S!=null&&(r.checked=S&&typeof S!="function"&&typeof S!="symbol"),B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"?r.name=""+_r(B):r.removeAttribute("name")}function If(r,o,s,d,S,T,O,B){if(T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(r.type=T),o!=null||s!=null){if(!(T!=="submit"&&T!=="reset"||o!=null)){Qp(r);return}s=s!=null?""+_r(s):"",o=o!=null?""+_r(o):s,B||o===r.value||(r.value=o),r.defaultValue=o}d=d??S,d=typeof d!="function"&&typeof d!="symbol"&&!!d,r.checked=B?r.checked:!!d,r.defaultChecked=!!d,O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(r.name=O),Qp(r)}function Mu(r,o,s){o==="number"&&Hf(r.ownerDocument)===r||r.defaultValue===""+s||(r.defaultValue=""+s)}function ac(r,o,s,d){if(r=r.options,o){o={};for(var S=0;S<s.length;S++)o["$"+s[S]]=!0;for(s=0;s<r.length;s++)S=o.hasOwnProperty("$"+r[s].value),r[s].selected!==S&&(r[s].selected=S),S&&d&&(r[s].defaultSelected=!0)}else{for(s=""+_r(s),o=null,S=0;S<r.length;S++){if(r[S].value===s){r[S].selected=!0,d&&(r[S].defaultSelected=!0);return}o!==null||r[S].disabled||(o=r[S])}o!==null&&(o.selected=!0)}}function By(r,o,s){if(o!=null&&(o=""+_r(o),o!==r.value&&(r.value=o),s==null)){r.defaultValue!==o&&(r.defaultValue=o);return}r.defaultValue=s!=null?""+_r(s):""}function Uy(r,o,s,d){if(o==null){if(d!=null){if(s!=null)throw Error(u(92));if(ke(d)){if(1<d.length)throw Error(u(93));d=d[0]}s=d}s==null&&(s=""),o=s}s=_r(o),r.defaultValue=s,d=r.textContent,d===s&&d!==""&&d!==null&&(r.value=d),Qp(r)}function ii(r,o){if(o){var s=r.firstChild;if(s&&s===r.lastChild&&s.nodeType===3){s.nodeValue=o;return}}r.textContent=o}var FS=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 QS(r,o,s){var d=o.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?d?r.setProperty(o,""):o==="float"?r.cssFloat="":r[o]="":d?r.setProperty(o,s):typeof s!="number"||s===0||FS.has(o)?o==="float"?r.cssFloat=s:r[o]=(""+s).trim():r[o]=s+"px"}function ZS(r,o,s){if(o!=null&&typeof o!="object")throw Error(u(62));if(r=r.style,s!=null){for(var d in s)!s.hasOwnProperty(d)||o!=null&&o.hasOwnProperty(d)||(d.indexOf("--")===0?r.setProperty(d,""):d==="float"?r.cssFloat="":r[d]="");for(var S in o)d=o[S],o.hasOwnProperty(S)&&s[S]!==d&&QS(r,S,d)}else for(var T in o)o.hasOwnProperty(T)&&QS(r,T,o[T])}function Ly(r){if(r.indexOf("-")===-1)return!1;switch(r){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 qx=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"]]),Vf=/^[\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 ll(r){return Vf.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Cl(){}var Zp=null;function Jp(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var oi=null,Ou=null;function Gf(r){var o=Cu(r);if(o&&(r=o.stateNode)){var s=r[Ja]||null;e:switch(r=o.stateNode,o.type){case"input":if(Pf(r,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),o=s.name,s.type==="radio"&&o!=null){for(s=r;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+Mr(""+o)+'"][type="radio"]'),o=0;o<s.length;o++){var d=s[o];if(d!==r&&d.form===r.form){var S=d[Ja]||null;if(!S)throw Error(u(90));Pf(d,S.value,S.defaultValue,S.defaultValue,S.checked,S.defaultChecked,S.type,S.name)}}for(o=0;o<s.length;o++)d=s[o],d.form===r.form&&ky(d)}break e;case"textarea":By(r,s.value,s.defaultValue);break e;case"select":o=s.value,o!=null&&ac(r,!!s.multiple,o,!1)}}}var rc=!1;function $y(r,o,s){if(rc)return r(o,s);rc=!0;try{var d=r(o);return d}finally{if(rc=!1,(oi!==null||Ou!==null)&&($c(),oi&&(o=oi,r=Ou,Ou=oi=null,Gf(o),r)))for(o=0;o<r.length;o++)Gf(r[o])}}function ba(r,o){var s=r.stateNode;if(s===null)return null;var d=s[Ja]||null;if(d===null)return null;s=d[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(r=r.type,d=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!d;break e;default:r=!1}if(r)return null;if(s&&typeof s!="function")throw Error(u(231,o,typeof s));return s}var Ki=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yf=!1;if(Ki)try{var lc={};Object.defineProperty(lc,"passive",{get:function(){Yf=!0}}),window.addEventListener("test",lc,lc),window.removeEventListener("test",lc,lc)}catch{Yf=!1}var Wi=null,Hy=null,Kp=null;function Py(){if(Kp)return Kp;var r,o=Hy,s=o.length,d,S="value"in Wi?Wi.value:Wi.textContent,T=S.length;for(r=0;r<s&&o[r]===S[r];r++);var O=s-r;for(d=1;d<=O&&o[s-d]===S[T-d];d++);return Kp=S.slice(r,1<d?1-d:void 0)}function Wp(r){var o=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&o===13&&(r=13)):r=o,r===10&&(r=13),32<=r||r===13?r:0}function Xf(){return!0}function JS(){return!1}function Na(r){function o(s,d,S,T,O){this._reactName=s,this._targetInst=S,this.type=d,this.nativeEvent=T,this.target=O,this.currentTarget=null;for(var B in r)r.hasOwnProperty(B)&&(s=r[B],this[B]=s?s(T):T[B]);return this.isDefaultPrevented=(T.defaultPrevented!=null?T.defaultPrevented:T.returnValue===!1)?Xf:JS,this.isPropagationStopped=JS,this}return E(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Xf)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Xf)},persist:function(){},isPersistent:Xf}),o}var Uo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ff=Na(Uo),ic=E({},Uo,{view:0,detail:0}),Dx=Na(ic),Iy,Vy,Qf,eh=E({},ic,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:il,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Qf&&(Qf&&r.type==="mousemove"?(Iy=r.screenX-Qf.screenX,Vy=r.screenY-Qf.screenY):Vy=Iy=0,Qf=r),Iy)},movementY:function(r){return"movementY"in r?r.movementY:Vy}}),oc=Na(eh),KS=E({},eh,{dataTransfer:0}),WS=Na(KS),eE=E({},ic,{relatedTarget:0}),th=Na(eE),Gy=E({},Uo,{animationName:0,elapsedTime:0,pseudoElement:0}),tE=Na(Gy),qu=E({},Uo,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),Du=Na(qu),Al=E({},Uo,{data:0}),nE=Na(Al),Yy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ui={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"},aE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _l(r){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(r):(r=aE[r])?!!o[r]:!1}function il(){return _l}var nh=E({},ic,{key:function(r){if(r.key){var o=Yy[r.key]||r.key;if(o!=="Unidentified")return o}return r.type==="keypress"?(r=Wp(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?ui[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:il,charCode:function(r){return r.type==="keypress"?Wp(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Wp(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),ah=Na(nh),Xy=E({},eh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ml=Na(Xy),Nx=E({},ic,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:il}),rE=Na(Nx),lE=E({},Uo,{propertyName:0,elapsedTime:0,pseudoElement:0}),jx=Na(lE),Fy=E({},eh,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),zx=Na(Fy),iE=E({},Uo,{newState:0,oldState:0}),Qy=Na(iE),rh=[9,13,27,32],uc=Ki&&"CompositionEvent"in window,Nu=null;Ki&&"documentMode"in document&&(Nu=document.documentMode);var Ha=Ki&&"TextEvent"in window&&!Nu,Zy=Ki&&(!uc||Nu&&8<Nu&&11>=Nu),Zf=" ",Lo=!1;function lh(r,o){switch(r){case"keyup":return rh.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jy(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var ju=!1;function oE(r,o){switch(r){case"compositionend":return Jy(o);case"keypress":return o.which!==32?null:(Lo=!0,Zf);case"textInput":return r=o.data,r===Zf&&Lo?null:r;default:return null}}function kx(r,o){if(ju)return r==="compositionend"||!uc&&lh(r,o)?(r=Py(),Kp=Hy=Wi=null,ju=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Zy&&o.locale!=="ko"?null:o.data;default:return null}}var Ky={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 si(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o==="input"?!!Ky[r.type]:o==="textarea"}function Wy(r,o,s,d){oi?Ou?Ou.push(d):Ou=[d]:oi=d,o=Yd(o,"onChange"),0<o.length&&(s=new Ff("onChange","change",null,s,d),r.push({event:s,listeners:o}))}var zu=null,$o=null;function ku(r){nT(r,0)}function sc(r){var o=Ws(r);if(ky(o))return r}function eg(r,o){if(r==="change")return o}var ih=!1;if(Ki){var Ka;if(Ki){var Ol="oninput"in document;if(!Ol){var tg=document.createElement("div");tg.setAttribute("oninput","return;"),Ol=typeof tg.oninput=="function"}Ka=Ol}else Ka=!1;ih=Ka&&(!document.documentMode||9<document.documentMode)}function oh(){zu&&(zu.detachEvent("onpropertychange",uh),$o=zu=null)}function uh(r){if(r.propertyName==="value"&&sc($o)){var o=[];Wy(o,$o,r,Jp(r)),$y(ku,o)}}function uE(r,o,s){r==="focusin"?(oh(),zu=o,$o=s,zu.attachEvent("onpropertychange",uh)):r==="focusout"&&oh()}function sE(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return sc($o)}function Ho(r,o){if(r==="click")return sc(o)}function Bu(r,o){if(r==="input"||r==="change")return sc(o)}function cE(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}var Pa=typeof Object.is=="function"?Object.is:cE;function ol(r,o){if(Pa(r,o))return!0;if(typeof r!="object"||r===null||typeof o!="object"||o===null)return!1;var s=Object.keys(r),d=Object.keys(o);if(s.length!==d.length)return!1;for(d=0;d<s.length;d++){var S=s[d];if(!Cr.call(o,S)||!Pa(r[S],o[S]))return!1}return!0}function ng(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function ag(r,o){var s=ng(r);r=0;for(var d;s;){if(s.nodeType===3){if(d=r+s.textContent.length,r<=o&&d>=o)return{node:s,offset:o-r};r=d}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=ng(s)}}function Uu(r,o){return r&&o?r===o?!0:r&&r.nodeType===3?!1:o&&o.nodeType===3?Uu(r,o.parentNode):"contains"in r?r.contains(o):r.compareDocumentPosition?!!(r.compareDocumentPosition(o)&16):!1:!1}function Po(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var o=Hf(r.document);o instanceof r.HTMLIFrameElement;){try{var s=typeof o.contentWindow.location.href=="string"}catch{s=!1}if(s)r=o.contentWindow;else break;o=Hf(r.document)}return o}function Jf(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o&&(o==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||o==="textarea"||r.contentEditable==="true")}var Kf=Ki&&"documentMode"in document&&11>=document.documentMode,Io=null,cc=null,ul=null,ql=!1;function sh(r,o,s){var d=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;ql||Io==null||Io!==Hf(d)||(d=Io,"selectionStart"in d&&Jf(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),ul&&ol(ul,d)||(ul=d,d=Yd(cc,"onSelect"),0<d.length&&(o=new Ff("onSelect","select",null,o,s),r.push({event:o,listeners:d}),o.target=Io)))}function eo(r,o){var s={};return s[r.toLowerCase()]=o.toLowerCase(),s["Webkit"+r]="webkit"+o,s["Moz"+r]="moz"+o,s}var Dl={animationend:eo("Animation","AnimationEnd"),animationiteration:eo("Animation","AnimationIteration"),animationstart:eo("Animation","AnimationStart"),transitionrun:eo("Transition","TransitionRun"),transitionstart:eo("Transition","TransitionStart"),transitioncancel:eo("Transition","TransitionCancel"),transitionend:eo("Transition","TransitionEnd")},fc={},Vo={};Ki&&(Vo=document.createElement("div").style,"AnimationEvent"in window||(delete Dl.animationend.animation,delete Dl.animationiteration.animation,delete Dl.animationstart.animation),"TransitionEvent"in window||delete Dl.transitionend.transition);function Gt(r){if(fc[r])return fc[r];if(!Dl[r])return r;var o=Dl[r],s;for(s in o)if(o.hasOwnProperty(s)&&s in Vo)return fc[r]=o[s];return r}var Wf=Gt("animationend"),rg=Gt("animationiteration"),ch=Gt("animationstart"),Lu=Gt("transitionrun"),ed=Gt("transitionstart"),ci=Gt("transitioncancel"),fE=Gt("transitionend"),fi=new Map,dc="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(" ");dc.push("scrollEnd");function Wa(r,o){fi.set(r,o),Bo(o,[r])}var $u=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=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(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},_n=[],va=0,sl=0;function Or(){for(var r=va,o=sl=va=0;o<r;){var s=_n[o];_n[o++]=null;var d=_n[o];_n[o++]=null;var S=_n[o];_n[o++]=null;var T=_n[o];if(_n[o++]=null,d!==null&&S!==null){var O=d.pending;O===null?S.next=S:(S.next=O.next,O.next=S),d.pending=S}T!==0&&fh(s,S,T)}}function qr(r,o,s,d){_n[va++]=r,_n[va++]=o,_n[va++]=s,_n[va++]=d,sl|=d,r.lanes|=d,r=r.alternate,r!==null&&(r.lanes|=d)}function cl(r,o,s,d){return qr(r,o,s,d),td(r)}function to(r,o){return qr(r,null,null,o),td(r)}function fh(r,o,s){r.lanes|=s;var d=r.alternate;d!==null&&(d.lanes|=s);for(var S=!1,T=r.return;T!==null;)T.childLanes|=s,d=T.alternate,d!==null&&(d.childLanes|=s),T.tag===22&&(r=T.stateNode,r===null||r._visibility&1||(S=!0)),r=T,T=T.return;return r.tag===3?(T=r.stateNode,S&&o!==null&&(S=31-$e(s),r=T.hiddenUpdates,d=r[S],d===null?r[S]=[o]:d.push(o),o.lane=s|536870912),T):null}function td(r){if(50<Lc)throw Lc=0,Bd=null,Error(u(185));for(var o=r.return;o!==null;)r=o,o=r.return;return r.tag===3?r.stateNode:null}var er={};function dE(r,o,s,d){this.tag=r,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $n(r,o,s,d){return new dE(r,o,s,d)}function Hu(r){return r=r.prototype,!(!r||!r.isReactComponent)}function no(r,o){var s=r.alternate;return s===null?(s=$n(r.tag,o,r.key,r.mode),s.elementType=r.elementType,s.type=r.type,s.stateNode=r.stateNode,s.alternate=r,r.alternate=s):(s.pendingProps=o,s.type=r.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=r.flags&65011712,s.childLanes=r.childLanes,s.lanes=r.lanes,s.child=r.child,s.memoizedProps=r.memoizedProps,s.memoizedState=r.memoizedState,s.updateQueue=r.updateQueue,o=r.dependencies,s.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},s.sibling=r.sibling,s.index=r.index,s.ref=r.ref,s.refCleanup=r.refCleanup,s}function lg(r,o){r.flags&=65011714;var s=r.alternate;return s===null?(r.childLanes=0,r.lanes=o,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=s.childLanes,r.lanes=s.lanes,r.child=s.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=s.memoizedProps,r.memoizedState=s.memoizedState,r.updateQueue=s.updateQueue,r.type=s.type,o=s.dependencies,r.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),r}function dh(r,o,s,d,S,T){var O=0;if(d=r,typeof r=="function")Hu(r)&&(O=1);else if(typeof r=="string")O=_b(r,s,Ie.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case F:return r=$n(31,s,o,S),r.elementType=F,r.lanes=T,r;case q:return ao(s.children,S,T,o);case N:O=8,S|=24;break;case _:return r=$n(12,s,o,S|2),r.elementType=_,r.lanes=T,r;case V:return r=$n(13,s,o,S),r.elementType=V,r.lanes=T,r;case z:return r=$n(19,s,o,S),r.elementType=z,r.lanes=T,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case $:O=10;break e;case L:O=9;break e;case I:O=11;break e;case k:O=14;break e;case U:O=16,d=null;break e}O=29,s=Error(u(130,r===null?"null":typeof r,"")),d=null}return o=$n(O,s,o,S),o.elementType=r,o.type=d,o.lanes=T,o}function ao(r,o,s,d){return r=$n(7,r,d,o),r.lanes=s,r}function pc(r,o,s){return r=$n(6,r,null,o),r.lanes=s,r}function ig(r){var o=$n(18,null,null,0);return o.stateNode=r,o}function ph(r,o,s){return o=$n(4,r.children!==null?r.children:[],r.key,o),o.lanes=s,o.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},o}var og=new WeakMap;function Dr(r,o){if(typeof r=="object"&&r!==null){var s=og.get(r);return s!==void 0?s:(o={value:r,source:o,stack:tl(o)},og.set(r,o),o)}return{value:r,source:o,stack:tl(o)}}var Nr=[],Pu=0,nd=null,Yn=0,mr=[],tr=0,Nl=null,yr=1,jl="";function fl(r,o){Nr[Pu++]=Yn,Nr[Pu++]=nd,nd=r,Yn=o}function ug(r,o,s){mr[tr++]=yr,mr[tr++]=jl,mr[tr++]=Nl,Nl=r;var d=yr;r=jl;var S=32-$e(d)-1;d&=~(1<<S),s+=1;var T=32-$e(o)+S;if(30<T){var O=S-S%5;T=(d&(1<<O)-1).toString(32),d>>=O,S-=O,yr=1<<32-$e(o)+S|s<<S|d,jl=T+r}else yr=1<<T|s<<S|d,jl=r}function hc(r){r.return!==null&&(fl(r,1),ug(r,1,0))}function hh(r){for(;r===nd;)nd=Nr[--Pu],Nr[Pu]=null,Yn=Nr[--Pu],Nr[Pu]=null;for(;r===Nl;)Nl=mr[--tr],mr[tr]=null,jl=mr[--tr],mr[tr]=null,yr=mr[--tr],mr[tr]=null}function ad(r,o){mr[tr++]=yr,mr[tr++]=jl,mr[tr++]=Nl,yr=o.id,jl=o.overflow,Nl=r}var Sa=null,pn=null,Ot=!1,di=null,ua=!1,pi=Error(u(519));function dl(r){var o=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw yc(Dr(o,r)),pi}function rd(r){var o=r.stateNode,s=r.type,d=r.memoizedProps;switch(o[rn]=r,o[Ja]=d,s){case"dialog":Mt("cancel",o),Mt("close",o);break;case"iframe":case"object":case"embed":Mt("load",o);break;case"video":case"audio":for(s=0;s<Gc.length;s++)Mt(Gc[s],o);break;case"source":Mt("error",o);break;case"img":case"image":case"link":Mt("error",o),Mt("load",o);break;case"details":Mt("toggle",o);break;case"input":Mt("invalid",o),If(o,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"select":Mt("invalid",o);break;case"textarea":Mt("invalid",o),Uy(o,d.value,d.defaultValue,d.children)}s=d.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||o.textContent===""+s||d.suppressHydrationWarning===!0||gb(o.textContent,s)?(d.popover!=null&&(Mt("beforetoggle",o),Mt("toggle",o)),d.onScroll!=null&&Mt("scroll",o),d.onScrollEnd!=null&&Mt("scrollend",o),d.onClick!=null&&(o.onclick=Cl),o=!0):o=!1,o||dl(r,!0)}function mc(r){for(Sa=r.return;Sa;)switch(Sa.tag){case 5:case 31:case 13:ua=!1;return;case 27:case 3:ua=!0;return;default:Sa=Sa.return}}function hi(r){if(r!==Sa)return!1;if(!Ot)return mc(r),Ot=!0,!1;var o=r.tag,s;if((s=o!==3&&o!==27)&&((s=o===5)&&(s=r.type,s=!(s!=="form"&&s!=="button")||Xc(r.type,r.memoizedProps)),s=!s),s&&pn&&dl(r),mc(r),o===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(u(317));pn=gm(r)}else if(o===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(u(317));pn=gm(r)}else o===27?(o=pn,Gl(r.type)?(r=Qd,Qd=null,pn=r):pn=o):pn=Sa?fr(r.stateNode.nextSibling):null;return!0}function Go(){pn=Sa=null,Ot=!1}function sg(){var r=di;return r!==null&&(Bn===null?Bn=r:Bn.push.apply(Bn,r),di=null),r}function yc(r){di===null?di=[r]:di.push(r)}var mh=Ye(null),ro=null,zl=null;function nr(r,o,s){xe(mh,o._currentValue),o._currentValue=s}function kl(r){r._currentValue=mh.current,Xe(mh)}function yh(r,o,s){for(;r!==null;){var d=r.alternate;if((r.childLanes&o)!==o?(r.childLanes|=o,d!==null&&(d.childLanes|=o)):d!==null&&(d.childLanes&o)!==o&&(d.childLanes|=o),r===s)break;r=r.return}}function mi(r,o,s,d){var S=r.child;for(S!==null&&(S.return=r);S!==null;){var T=S.dependencies;if(T!==null){var O=S.child;T=T.firstContext;e:for(;T!==null;){var B=T;T=S;for(var W=0;W<o.length;W++)if(B.context===o[W]){T.lanes|=s,B=T.alternate,B!==null&&(B.lanes|=s),yh(T.return,s,r),d||(O=null);break e}T=B.next}}else if(S.tag===18){if(O=S.return,O===null)throw Error(u(341));O.lanes|=s,T=O.alternate,T!==null&&(T.lanes|=s),yh(O,s,r),O=null}else O=S.child;if(O!==null)O.return=S;else for(O=S;O!==null;){if(O===r){O=null;break}if(S=O.sibling,S!==null){S.return=O.return,O=S;break}O=O.return}S=O}}function Ea(r,o,s,d){r=null;for(var S=o,T=!1;S!==null;){if(!T){if((S.flags&524288)!==0)T=!0;else if((S.flags&262144)!==0)break}if(S.tag===10){var O=S.alternate;if(O===null)throw Error(u(387));if(O=O.memoizedProps,O!==null){var B=S.type;Pa(S.pendingProps.value,O.value)||(r!==null?r.push(B):r=[B])}}else if(S===Lt.current){if(O=S.alternate,O===null)throw Error(u(387));O.memoizedState.memoizedState!==S.memoizedState.memoizedState&&(r!==null?r.push(Kd):r=[Kd])}S=S.return}r!==null&&mi(o,r,s,d),o.flags|=262144}function Iu(r){for(r=r.firstContext;r!==null;){if(!Pa(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function pt(r){ro=r,zl=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Oe(r){return ld(ro,r)}function lo(r,o){return ro===null&&pt(r),ld(r,o)}function ld(r,o){var s=o._currentValue;if(o={context:o,memoizedValue:s,next:null},zl===null){if(r===null)throw Error(u(308));zl=o,r.dependencies={lanes:0,firstContext:o},r.flags|=524288}else zl=zl.next=o;return s}var Hn=typeof AbortController<"u"?AbortController:function(){var r=[],o=this.signal={aborted:!1,addEventListener:function(s,d){r.push(d)}};this.abort=function(){o.aborted=!0,r.forEach(function(s){return s()})}},cg=t.unstable_scheduleCallback,fg=t.unstable_NormalPriority,Xn={$$typeof:$,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function id(){return{controller:new Hn,data:new Map,refCount:0}}function od(r){r.refCount--,r.refCount===0&&cg(fg,function(){r.controller.abort()})}var Vu=null,ud=0,Yo=0,ea=null;function Kt(r,o){if(Vu===null){var s=Vu=[];ud=0,Yo=sm(),ea={status:"pending",value:void 0,then:function(d){s.push(d)}}}return ud++,o.then(sd,sd),o}function sd(){if(--ud===0&&Vu!==null){ea!==null&&(ea.status="fulfilled");var r=Vu;Vu=null,Yo=0,ea=null;for(var o=0;o<r.length;o++)(0,r[o])()}}function cd(r,o){var s=[],d={status:"pending",value:null,reason:null,then:function(S){s.push(S)}};return r.then(function(){d.status="fulfilled",d.value=o;for(var S=0;S<s.length;S++)(0,s[S])(o)},function(S){for(d.status="rejected",d.reason=S,S=0;S<s.length;S++)(0,s[S])(void 0)}),d}var io=P.S;P.S=function(r,o){rb=oe(),typeof o=="object"&&o!==null&&typeof o.then=="function"&&Kt(r,o),io!==null&&io(r,o)};var jr=Ye(null);function zr(){var r=jr.current;return r!==null?r:on.pooledCache}function gc(r,o){o===null?xe(jr,jr.current):xe(jr,o.pool)}function Gu(){var r=zr();return r===null?null:{parent:Xn._currentValue,pool:r}}var Xo=Error(u(460)),Yu=Error(u(474)),bc=Error(u(542)),Xu={then:function(){}};function dg(r){return r=r.status,r==="fulfilled"||r==="rejected"}function pg(r,o,s){switch(s=r[s],s===void 0?r.push(o):s!==o&&(o.then(Cl,Cl),o=s),o.status){case"fulfilled":return o.value;case"rejected":throw r=o.reason,gh(r),r;default:if(typeof o.status=="string")o.then(Cl,Cl);else{if(r=on,r!==null&&100<r.shellSuspendCounter)throw Error(u(482));r=o,r.status="pending",r.then(function(d){if(o.status==="pending"){var S=o;S.status="fulfilled",S.value=d}},function(d){if(o.status==="pending"){var S=o;S.status="rejected",S.reason=d}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw r=o.reason,gh(r),r}throw Qo=o,Xo}}function Fo(r){try{var o=r._init;return o(r._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(Qo=s,Xo):s}}var Qo=null;function hg(){if(Qo===null)throw Error(u(459));var r=Qo;return Qo=null,r}function gh(r){if(r===Xo||r===bc)throw Error(u(483))}var Zo=null,Fu=0;function fd(r){var o=Fu;return Fu+=1,Zo===null&&(Zo=[]),pg(Zo,r,o)}function vc(r,o){o=o.props.ref,r.ref=o!==void 0?o:null}function dd(r,o){throw o.$$typeof===R?Error(u(525)):(r=Object.prototype.toString.call(o),Error(u(31,r==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":r)))}function pE(r){function o(fe,re){if(r){var he=fe.deletions;he===null?(fe.deletions=[re],fe.flags|=16):he.push(re)}}function s(fe,re){if(!r)return null;for(;re!==null;)o(fe,re),re=re.sibling;return null}function d(fe){for(var re=new Map;fe!==null;)fe.key!==null?re.set(fe.key,fe):re.set(fe.index,fe),fe=fe.sibling;return re}function S(fe,re){return fe=no(fe,re),fe.index=0,fe.sibling=null,fe}function T(fe,re,he){return fe.index=he,r?(he=fe.alternate,he!==null?(he=he.index,he<re?(fe.flags|=67108866,re):he):(fe.flags|=67108866,re)):(fe.flags|=1048576,re)}function O(fe){return r&&fe.alternate===null&&(fe.flags|=67108866),fe}function B(fe,re,he,_e){return re===null||re.tag!==6?(re=pc(he,fe.mode,_e),re.return=fe,re):(re=S(re,he),re.return=fe,re)}function W(fe,re,he,_e){var We=he.type;return We===q?Re(fe,re,he.props.children,_e,he.key):re!==null&&(re.elementType===We||typeof We=="object"&&We!==null&&We.$$typeof===U&&Fo(We)===re.type)?(re=S(re,he.props),vc(re,he),re.return=fe,re):(re=dh(he.type,he.key,he.props,null,fe.mode,_e),vc(re,he),re.return=fe,re)}function ye(fe,re,he,_e){return re===null||re.tag!==4||re.stateNode.containerInfo!==he.containerInfo||re.stateNode.implementation!==he.implementation?(re=ph(he,fe.mode,_e),re.return=fe,re):(re=S(re,he.children||[]),re.return=fe,re)}function Re(fe,re,he,_e,We){return re===null||re.tag!==7?(re=ao(he,fe.mode,_e,We),re.return=fe,re):(re=S(re,he),re.return=fe,re)}function Me(fe,re,he){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return re=pc(""+re,fe.mode,he),re.return=fe,re;if(typeof re=="object"&&re!==null){switch(re.$$typeof){case A:return he=dh(re.type,re.key,re.props,null,fe.mode,he),vc(he,re),he.return=fe,he;case M:return re=ph(re,fe.mode,he),re.return=fe,re;case U:return re=Fo(re),Me(fe,re,he)}if(ke(re)||ve(re))return re=ao(re,fe.mode,he,null),re.return=fe,re;if(typeof re.then=="function")return Me(fe,fd(re),he);if(re.$$typeof===$)return Me(fe,lo(fe,re),he);dd(fe,re)}return null}function ge(fe,re,he,_e){var We=re!==null?re.key:null;if(typeof he=="string"&&he!==""||typeof he=="number"||typeof he=="bigint")return We!==null?null:B(fe,re,""+he,_e);if(typeof he=="object"&&he!==null){switch(he.$$typeof){case A:return he.key===We?W(fe,re,he,_e):null;case M:return he.key===We?ye(fe,re,he,_e):null;case U:return he=Fo(he),ge(fe,re,he,_e)}if(ke(he)||ve(he))return We!==null?null:Re(fe,re,he,_e,null);if(typeof he.then=="function")return ge(fe,re,fd(he),_e);if(he.$$typeof===$)return ge(fe,re,lo(fe,he),_e);dd(fe,he)}return null}function we(fe,re,he,_e,We){if(typeof _e=="string"&&_e!==""||typeof _e=="number"||typeof _e=="bigint")return fe=fe.get(he)||null,B(re,fe,""+_e,We);if(typeof _e=="object"&&_e!==null){switch(_e.$$typeof){case A:return fe=fe.get(_e.key===null?he:_e.key)||null,W(re,fe,_e,We);case M:return fe=fe.get(_e.key===null?he:_e.key)||null,ye(re,fe,_e,We);case U:return _e=Fo(_e),we(fe,re,he,_e,We)}if(ke(_e)||ve(_e))return fe=fe.get(he)||null,Re(re,fe,_e,We,null);if(typeof _e.then=="function")return we(fe,re,he,fd(_e),We);if(_e.$$typeof===$)return we(fe,re,he,lo(re,_e),We);dd(re,_e)}return null}function Fe(fe,re,he,_e){for(var We=null,Ht=null,Qe=re,gt=re=0,St=null;Qe!==null&&gt<he.length;gt++){Qe.index>gt?(St=Qe,Qe=null):St=Qe.sibling;var Vt=ge(fe,Qe,he[gt],_e);if(Vt===null){Qe===null&&(Qe=St);break}r&&Qe&&Vt.alternate===null&&o(fe,Qe),re=T(Vt,re,gt),Ht===null?We=Vt:Ht.sibling=Vt,Ht=Vt,Qe=St}if(gt===he.length)return s(fe,Qe),Ot&&fl(fe,gt),We;if(Qe===null){for(;gt<he.length;gt++)Qe=Me(fe,he[gt],_e),Qe!==null&&(re=T(Qe,re,gt),Ht===null?We=Qe:Ht.sibling=Qe,Ht=Qe);return Ot&&fl(fe,gt),We}for(Qe=d(Qe);gt<he.length;gt++)St=we(Qe,fe,gt,he[gt],_e),St!==null&&(r&&St.alternate!==null&&Qe.delete(St.key===null?gt:St.key),re=T(St,re,gt),Ht===null?We=St:Ht.sibling=St,Ht=St);return r&&Qe.forEach(function(Fl){return o(fe,Fl)}),Ot&&fl(fe,gt),We}function rt(fe,re,he,_e){if(he==null)throw Error(u(151));for(var We=null,Ht=null,Qe=re,gt=re=0,St=null,Vt=he.next();Qe!==null&&!Vt.done;gt++,Vt=he.next()){Qe.index>gt?(St=Qe,Qe=null):St=Qe.sibling;var Fl=ge(fe,Qe,Vt.value,_e);if(Fl===null){Qe===null&&(Qe=St);break}r&&Qe&&Fl.alternate===null&&o(fe,Qe),re=T(Fl,re,gt),Ht===null?We=Fl:Ht.sibling=Fl,Ht=Fl,Qe=St}if(Vt.done)return s(fe,Qe),Ot&&fl(fe,gt),We;if(Qe===null){for(;!Vt.done;gt++,Vt=he.next())Vt=Me(fe,Vt.value,_e),Vt!==null&&(re=T(Vt,re,gt),Ht===null?We=Vt:Ht.sibling=Vt,Ht=Vt);return Ot&&fl(fe,gt),We}for(Qe=d(Qe);!Vt.done;gt++,Vt=he.next())Vt=we(Qe,fe,gt,Vt.value,_e),Vt!==null&&(r&&Vt.alternate!==null&&Qe.delete(Vt.key===null?gt:Vt.key),re=T(Vt,re,gt),Ht===null?We=Vt:Ht.sibling=Vt,Ht=Vt);return r&&Qe.forEach(function(gT){return o(fe,gT)}),Ot&&fl(fe,gt),We}function sn(fe,re,he,_e){if(typeof he=="object"&&he!==null&&he.type===q&&he.key===null&&(he=he.props.children),typeof he=="object"&&he!==null){switch(he.$$typeof){case A:e:{for(var We=he.key;re!==null;){if(re.key===We){if(We=he.type,We===q){if(re.tag===7){s(fe,re.sibling),_e=S(re,he.props.children),_e.return=fe,fe=_e;break e}}else if(re.elementType===We||typeof We=="object"&&We!==null&&We.$$typeof===U&&Fo(We)===re.type){s(fe,re.sibling),_e=S(re,he.props),vc(_e,he),_e.return=fe,fe=_e;break e}s(fe,re);break}else o(fe,re);re=re.sibling}he.type===q?(_e=ao(he.props.children,fe.mode,_e,he.key),_e.return=fe,fe=_e):(_e=dh(he.type,he.key,he.props,null,fe.mode,_e),vc(_e,he),_e.return=fe,fe=_e)}return O(fe);case M:e:{for(We=he.key;re!==null;){if(re.key===We)if(re.tag===4&&re.stateNode.containerInfo===he.containerInfo&&re.stateNode.implementation===he.implementation){s(fe,re.sibling),_e=S(re,he.children||[]),_e.return=fe,fe=_e;break e}else{s(fe,re);break}else o(fe,re);re=re.sibling}_e=ph(he,fe.mode,_e),_e.return=fe,fe=_e}return O(fe);case U:return he=Fo(he),sn(fe,re,he,_e)}if(ke(he))return Fe(fe,re,he,_e);if(ve(he)){if(We=ve(he),typeof We!="function")throw Error(u(150));return he=We.call(he),rt(fe,re,he,_e)}if(typeof he.then=="function")return sn(fe,re,fd(he),_e);if(he.$$typeof===$)return sn(fe,re,lo(fe,he),_e);dd(fe,he)}return typeof he=="string"&&he!==""||typeof he=="number"||typeof he=="bigint"?(he=""+he,re!==null&&re.tag===6?(s(fe,re.sibling),_e=S(re,he),_e.return=fe,fe=_e):(s(fe,re),_e=pc(he,fe.mode,_e),_e.return=fe,fe=_e),O(fe)):s(fe,re)}return function(fe,re,he,_e){try{Fu=0;var We=sn(fe,re,he,_e);return Zo=null,We}catch(Qe){if(Qe===Xo||Qe===bc)throw Qe;var Ht=$n(29,Qe,null,fe.mode);return Ht.lanes=_e,Ht.return=fe,Ht}finally{}}}var Jo=pE(!0),mg=pE(!1),oo=!1;function pd(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bh(r,o){r=r.updateQueue,o.updateQueue===r&&(o.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function uo(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function kr(r,o,s){var d=r.updateQueue;if(d===null)return null;if(d=d.shared,(It&2)!==0){var S=d.pending;return S===null?o.next=o:(o.next=S.next,S.next=o),d.pending=o,o=td(r),fh(r,null,s),o}return qr(r,d,o,s),td(r)}function Ko(r,o,s){if(o=o.updateQueue,o!==null&&(o=o.shared,(s&4194048)!==0)){var d=o.lanes;d&=r.pendingLanes,s|=d,o.lanes=s,ai(r,s)}}function vh(r,o){var s=r.updateQueue,d=r.alternate;if(d!==null&&(d=d.updateQueue,s===d)){var S=null,T=null;if(s=s.firstBaseUpdate,s!==null){do{var O={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};T===null?S=T=O:T=T.next=O,s=s.next}while(s!==null);T===null?S=T=o:T=T.next=o}else S=T=o;s={baseState:d.baseState,firstBaseUpdate:S,lastBaseUpdate:T,shared:d.shared,callbacks:d.callbacks},r.updateQueue=s;return}r=s.lastBaseUpdate,r===null?s.firstBaseUpdate=o:r.next=o,s.lastBaseUpdate=o}var yg=!1;function Wo(){if(yg){var r=ea;if(r!==null)throw r}}function yi(r,o,s,d){yg=!1;var S=r.updateQueue;oo=!1;var T=S.firstBaseUpdate,O=S.lastBaseUpdate,B=S.shared.pending;if(B!==null){S.shared.pending=null;var W=B,ye=W.next;W.next=null,O===null?T=ye:O.next=ye,O=W;var Re=r.alternate;Re!==null&&(Re=Re.updateQueue,B=Re.lastBaseUpdate,B!==O&&(B===null?Re.firstBaseUpdate=ye:B.next=ye,Re.lastBaseUpdate=W))}if(T!==null){var Me=S.baseState;O=0,Re=ye=W=null,B=T;do{var ge=B.lane&-536870913,we=ge!==B.lane;if(we?(At&ge)===ge:(d&ge)===ge){ge!==0&&ge===Yo&&(yg=!0),Re!==null&&(Re=Re.next={lane:0,tag:B.tag,payload:B.payload,callback:null,next:null});e:{var Fe=r,rt=B;ge=o;var sn=s;switch(rt.tag){case 1:if(Fe=rt.payload,typeof Fe=="function"){Me=Fe.call(sn,Me,ge);break e}Me=Fe;break e;case 3:Fe.flags=Fe.flags&-65537|128;case 0:if(Fe=rt.payload,ge=typeof Fe=="function"?Fe.call(sn,Me,ge):Fe,ge==null)break e;Me=E({},Me,ge);break e;case 2:oo=!0}}ge=B.callback,ge!==null&&(r.flags|=64,we&&(r.flags|=8192),we=S.callbacks,we===null?S.callbacks=[ge]:we.push(ge))}else we={lane:ge,tag:B.tag,payload:B.payload,callback:B.callback,next:null},Re===null?(ye=Re=we,W=Me):Re=Re.next=we,O|=ge;if(B=B.next,B===null){if(B=S.shared.pending,B===null)break;we=B,B=we.next,we.next=null,S.lastBaseUpdate=we,S.shared.pending=null}}while(!0);Re===null&&(W=Me),S.baseState=W,S.firstBaseUpdate=ye,S.lastBaseUpdate=Re,T===null&&(S.shared.lanes=0),Il|=O,r.lanes=O,r.memoizedState=Me}}function Sh(r,o){if(typeof r!="function")throw Error(u(191,r));r.call(o)}function eu(r,o){var s=r.callbacks;if(s!==null)for(r.callbacks=null,r=0;r<s.length;r++)Sh(s[r],o)}var sa=Ye(null),Qu=Ye(0);function hE(r,o){r=Pl,xe(Qu,r),xe(sa,o),Pl=r|o.baseLanes}function hd(){xe(Qu,Pl),xe(sa,sa.current)}function Sc(){Pl=Qu.current,Xe(sa),Xe(Qu)}var ar=Ye(null),Br=null;function gi(r){var o=r.alternate;xe(Mn,Mn.current&1),xe(ar,r),Br===null&&(o===null||sa.current!==null||o.memoizedState!==null)&&(Br=r)}function Ec(r){xe(Mn,Mn.current),xe(ar,r),Br===null&&(Br=r)}function Eh(r){r.tag===22?(xe(Mn,Mn.current),xe(ar,r),Br===null&&(Br=r)):Bl()}function Bl(){xe(Mn,Mn.current),xe(ar,ar.current)}function rr(r){Xe(ar),Br===r&&(Br=null),Xe(Mn)}var Mn=Ye(0);function Tc(r){for(var o=r;o!==null;){if(o.tag===13){var s=o.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||yl(s)||du(s)))return o}else if(o.tag===19&&(o.memoizedProps.revealOrder==="forwards"||o.memoizedProps.revealOrder==="backwards"||o.memoizedProps.revealOrder==="unstable_legacy-backwards"||o.memoizedProps.revealOrder==="together")){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var bi=0,bt=null,Wt=null,Fn=null,Zu=!1,Ju=!1,so=!1,md=0,wc=0,tu=null,mE=0;function zn(){throw Error(u(321))}function co(r,o){if(o===null)return!1;for(var s=0;s<o.length&&s<r.length;s++)if(!Pa(r[s],o[s]))return!1;return!0}function yd(r,o,s,d,S,T){return bi=T,bt=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,P.H=r===null||r.memoizedState===null?wE:Uh,so=!1,T=s(d,S),so=!1,Ju&&(T=yE(o,s,d,S)),Th(r),T}function Th(r){P.H=Rd;var o=Wt!==null&&Wt.next!==null;if(bi=0,Fn=Wt=bt=null,Zu=!1,wc=0,tu=null,o)throw Error(u(300));r===null||Qn||(r=r.dependencies,r!==null&&Iu(r)&&(Qn=!0))}function yE(r,o,s,d){bt=r;var S=0;do{if(Ju&&(tu=null),wc=0,Ju=!1,25<=S)throw Error(u(301));if(S+=1,Fn=Wt=null,r.updateQueue!=null){var T=r.updateQueue;T.lastEffect=null,T.events=null,T.stores=null,T.memoCache!=null&&(T.memoCache.index=0)}P.H=xE,T=o(s,d)}while(Ju);return T}function Bx(){var r=P.H,o=r.useState()[0];return o=typeof o.then=="function"?Wu(o):o,r=r.useState()[0],(Wt!==null?Wt.memoizedState:null)!==r&&(bt.flags|=1024),o}function wh(){var r=md!==0;return md=0,r}function Ku(r,o,s){o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~s}function gd(r){if(Zu){for(r=r.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Zu=!1}bi=0,Fn=Wt=bt=null,Ju=!1,wc=md=0,tu=null}function Ta(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fn===null?bt.memoizedState=Fn=r:Fn=Fn.next=r,Fn}function Pn(){if(Wt===null){var r=bt.alternate;r=r!==null?r.memoizedState:null}else r=Wt.next;var o=Fn===null?bt.memoizedState:Fn.next;if(o!==null)Fn=o,Wt=r;else{if(r===null)throw bt.alternate===null?Error(u(467)):Error(u(310));Wt=r,r={memoizedState:Wt.memoizedState,baseState:Wt.baseState,baseQueue:Wt.baseQueue,queue:Wt.queue,next:null},Fn===null?bt.memoizedState=Fn=r:Fn=Fn.next=r}return Fn}function bd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Wu(r){var o=wc;return wc+=1,tu===null&&(tu=[]),r=pg(tu,r,o),o=bt,(Fn===null?o.memoizedState:Fn.next)===null&&(o=o.alternate,P.H=o===null||o.memoizedState===null?wE:Uh),r}function xc(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Wu(r);if(r.$$typeof===$)return Oe(r)}throw Error(u(438,String(r)))}function xh(r){var o=null,s=bt.updateQueue;if(s!==null&&(o=s.memoCache),o==null){var d=bt.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(o={data:d.data.map(function(S){return S.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),s===null&&(s=bd(),bt.updateQueue=s),s.memoCache=o,s=o.data[o.index],s===void 0)for(s=o.data[o.index]=Array(r),d=0;d<r;d++)s[d]=H;return o.index++,s}function vi(r,o){return typeof o=="function"?o(r):o}function Si(r){var o=Pn();return Rh(o,Wt,r)}function Rh(r,o,s){var d=r.queue;if(d===null)throw Error(u(311));d.lastRenderedReducer=s;var S=r.baseQueue,T=d.pending;if(T!==null){if(S!==null){var O=S.next;S.next=T.next,T.next=O}o.baseQueue=S=T,d.pending=null}if(T=r.baseState,S===null)r.memoizedState=T;else{o=S.next;var B=O=null,W=null,ye=o,Re=!1;do{var Me=ye.lane&-536870913;if(Me!==ye.lane?(At&Me)===Me:(bi&Me)===Me){var ge=ye.revertLane;if(ge===0)W!==null&&(W=W.next={lane:0,revertLane:0,gesture:null,action:ye.action,hasEagerState:ye.hasEagerState,eagerState:ye.eagerState,next:null}),Me===Yo&&(Re=!0);else if((bi&ge)===ge){ye=ye.next,ge===Yo&&(Re=!0);continue}else Me={lane:0,revertLane:ye.revertLane,gesture:null,action:ye.action,hasEagerState:ye.hasEagerState,eagerState:ye.eagerState,next:null},W===null?(B=W=Me,O=T):W=W.next=Me,bt.lanes|=ge,Il|=ge;Me=ye.action,so&&s(T,Me),T=ye.hasEagerState?ye.eagerState:s(T,Me)}else ge={lane:Me,revertLane:ye.revertLane,gesture:ye.gesture,action:ye.action,hasEagerState:ye.hasEagerState,eagerState:ye.eagerState,next:null},W===null?(B=W=ge,O=T):W=W.next=ge,bt.lanes|=Me,Il|=Me;ye=ye.next}while(ye!==null&&ye!==o);if(W===null?O=T:W.next=B,!Pa(T,r.memoizedState)&&(Qn=!0,Re&&(s=ea,s!==null)))throw s;r.memoizedState=T,r.baseState=O,r.baseQueue=W,d.lastRenderedState=T}return S===null&&(d.lanes=0),[r.memoizedState,d.dispatch]}function Ch(r){var o=Pn(),s=o.queue;if(s===null)throw Error(u(311));s.lastRenderedReducer=r;var d=s.dispatch,S=s.pending,T=o.memoizedState;if(S!==null){s.pending=null;var O=S=S.next;do T=r(T,O.action),O=O.next;while(O!==S);Pa(T,o.memoizedState)||(Qn=!0),o.memoizedState=T,o.baseQueue===null&&(o.baseState=T),s.lastRenderedState=T}return[T,d]}function gg(r,o,s){var d=bt,S=Pn(),T=Ot;if(T){if(s===void 0)throw Error(u(407));s=s()}else s=o();var O=!Pa((Wt||S).memoizedState,s);if(O&&(S.memoizedState=s,Qn=!0),S=S.queue,qh(Ah.bind(null,d,S,r),[r]),S.getSnapshot!==o||O||Fn!==null&&Fn.memoizedState.tag&1){if(d.flags|=2048,ts(9,{destroy:void 0},bg.bind(null,d,S,s,o),null),on===null)throw Error(u(349));T||(bi&127)!==0||vd(d,o,s)}return s}function vd(r,o,s){r.flags|=16384,r={getSnapshot:o,value:s},o=bt.updateQueue,o===null?(o=bd(),bt.updateQueue=o,o.stores=[r]):(s=o.stores,s===null?o.stores=[r]:s.push(r))}function bg(r,o,s,d){o.value=s,o.getSnapshot=d,_h(o)&&Mh(r)}function Ah(r,o,s){return s(function(){_h(o)&&Mh(r)})}function _h(r){var o=r.getSnapshot;r=r.value;try{var s=o();return!Pa(r,s)}catch{return!0}}function Mh(r){var o=to(r,2);o!==null&&cr(o,r,2)}function vg(r){var o=Ta();if(typeof r=="function"){var s=r;if(r=s(),so){Ve(!0);try{s()}finally{Ve(!1)}}}return o.memoizedState=o.baseState=r,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vi,lastRenderedState:r},o}function wa(r,o,s,d){return r.baseState=s,Rh(r,Wt,typeof d=="function"?d:vi)}function gE(r,o,s,d,S){if(xd(r))throw Error(u(485));if(r=o.action,r!==null){var T={payload:S,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(O){T.listeners.push(O)}};P.T!==null?s(!0):T.isTransition=!1,d(T),s=o.pending,s===null?(T.next=o.pending=T,Sg(o,T)):(T.next=s.next,o.pending=s.next=T)}}function Sg(r,o){var s=o.action,d=o.payload,S=r.state;if(o.isTransition){var T=P.T,O={};P.T=O;try{var B=s(S,d),W=P.S;W!==null&&W(O,B),Eg(r,o,B)}catch(ye){es(r,o,ye)}finally{T!==null&&O.types!==null&&(T.types=O.types),P.T=T}}else try{T=s(S,d),Eg(r,o,T)}catch(ye){es(r,o,ye)}}function Eg(r,o,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(d){Tg(r,o,d)},function(d){return es(r,o,d)}):Tg(r,o,s)}function Tg(r,o,s){o.status="fulfilled",o.value=s,wg(o),r.state=s,o=r.pending,o!==null&&(s=o.next,s===o?r.pending=null:(s=s.next,o.next=s,Sg(r,s)))}function es(r,o,s){var d=r.pending;if(r.pending=null,d!==null){d=d.next;do o.status="rejected",o.reason=s,wg(o),o=o.next;while(o!==d)}r.action=null}function wg(r){r=r.listeners;for(var o=0;o<r.length;o++)(0,r[o])()}function Sd(r,o){return o}function xg(r,o){if(Ot){var s=on.formState;if(s!==null){e:{var d=bt;if(Ot){if(pn){t:{for(var S=pn,T=ua;S.nodeType!==8;){if(!T){S=null;break t}if(S=fr(S.nextSibling),S===null){S=null;break t}}T=S.data,S=T==="F!"||T==="F"?S:null}if(S){pn=fr(S.nextSibling),d=S.data==="F!";break e}}dl(d)}d=!1}d&&(o=s[0])}}return s=Ta(),s.memoizedState=s.baseState=o,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sd,lastRenderedState:o},s.queue=d,s=kh.bind(null,bt,d),d.dispatch=s,d=vg(!1),T=nu.bind(null,bt,!1,d.queue),d=Ta(),S={state:o,dispatch:null,action:r,pending:null},d.queue=S,s=gE.bind(null,bt,S,T,s),S.dispatch=s,d.memoizedState=r,[o,s,!1]}function bE(r){var o=Pn();return Ed(o,Wt,r)}function Ed(r,o,s){if(o=Rh(r,o,Sd)[0],r=Si(vi)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var d=Wu(o)}catch(O){throw O===Xo?bc:O}else d=o;o=Pn();var S=o.queue,T=S.dispatch;return s!==o.memoizedState&&(bt.flags|=2048,ts(9,{destroy:void 0},Rg.bind(null,S,s),null)),[d,T,r]}function Rg(r,o){r.action=o}function Cg(r){var o=Pn(),s=Wt;if(s!==null)return Ed(o,s,r);Pn(),o=o.memoizedState,s=Pn();var d=s.queue.dispatch;return s.memoizedState=r,[o,d,!1]}function ts(r,o,s,d){return r={tag:r,create:s,deps:d,inst:o,next:null},o=bt.updateQueue,o===null&&(o=bd(),bt.updateQueue=o),s=o.lastEffect,s===null?o.lastEffect=r.next=r:(d=s.next,s.next=r,r.next=d,o.lastEffect=r),r}function Ag(){return Pn().memoizedState}function Rc(r,o,s,d){var S=Ta();bt.flags|=r,S.memoizedState=ts(1|o,{destroy:void 0},s,d===void 0?null:d)}function Cc(r,o,s,d){var S=Pn();d=d===void 0?null:d;var T=S.memoizedState.inst;Wt!==null&&d!==null&&co(d,Wt.memoizedState.deps)?S.memoizedState=ts(o,T,s,d):(bt.flags|=r,S.memoizedState=ts(1|o,T,s,d))}function Oh(r,o){Rc(8390656,8,r,o)}function qh(r,o){Cc(2048,8,r,o)}function _g(r){bt.flags|=4;var o=bt.updateQueue;if(o===null)o=bd(),bt.updateQueue=o,o.events=[r];else{var s=o.events;s===null?o.events=[r]:s.push(r)}}function Td(r){var o=Pn().memoizedState;return _g({ref:o,nextImpl:r}),function(){if((It&2)!==0)throw Error(u(440));return o.impl.apply(void 0,arguments)}}function Dh(r,o){return Cc(4,2,r,o)}function Mg(r,o){return Cc(4,4,r,o)}function Nh(r,o){if(typeof o=="function"){r=r();var s=o(r);return function(){typeof s=="function"?s():o(null)}}if(o!=null)return r=r(),o.current=r,function(){o.current=null}}function Og(r,o,s){s=s!=null?s.concat([r]):null,Cc(4,4,Nh.bind(null,o,r),s)}function Ul(){}function jh(r,o){var s=Pn();o=o===void 0?null:o;var d=s.memoizedState;return o!==null&&co(o,d[1])?d[0]:(s.memoizedState=[r,o],r)}function vE(r,o){var s=Pn();o=o===void 0?null:o;var d=s.memoizedState;if(o!==null&&co(o,d[1]))return d[0];if(d=r(),so){Ve(!0);try{r()}finally{Ve(!1)}}return s.memoizedState=[d,o],d}function wd(r,o,s){return s===void 0||(bi&1073741824)!==0&&(At&261930)===0?r.memoizedState=o:(r.memoizedState=s,r=jE(),bt.lanes|=r,Il|=r,s)}function Ei(r,o,s,d){return Pa(s,o)?s:sa.current!==null?(r=wd(r,s,d),Pa(r,o)||(Qn=!0),r):(bi&42)===0||(bi&1073741824)!==0&&(At&261930)===0?(Qn=!0,r.memoizedState=s):(r=jE(),bt.lanes|=r,Il|=r,o)}function zh(r,o,s,d,S){var T=ue.p;ue.p=T!==0&&8>T?T:8;var O=P.T,B={};P.T=B,nu(r,!1,o,s);try{var W=S(),ye=P.S;if(ye!==null&&ye(B,W),W!==null&&typeof W=="object"&&typeof W.then=="function"){var Re=cd(W,d);fo(r,o,Re,Sr(r))}else fo(r,o,d,Sr(r))}catch(Me){fo(r,o,{then:function(){},status:"rejected",reason:Me},Sr())}finally{ue.p=T,O!==null&&B.types!==null&&(O.types=B.types),P.T=O}}function SE(){}function Ac(r,o,s,d){if(r.tag!==5)throw Error(u(476));var S=_c(r).queue;zh(r,S,o,te,s===null?SE:function(){return ln(r),s(d)})}function _c(r){var o=r.memoizedState;if(o!==null)return o;o={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vi,lastRenderedState:te},next:null};var s={};return o.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vi,lastRenderedState:s},next:null},r.memoizedState=o,r=r.alternate,r!==null&&(r.memoizedState=o),o}function ln(r){var o=_c(r);o.next===null&&(o=r.alternate.memoizedState),fo(r,o.next.queue,{},Sr())}function qg(){return Oe(Kd)}function EE(){return Pn().memoizedState}function Dg(){return Pn().memoizedState}function Ti(r){for(var o=r.return;o!==null;){switch(o.tag){case 24:case 3:var s=Sr();r=uo(s);var d=kr(o,r,s);d!==null&&(cr(d,o,s),Ko(d,o,s)),o={cache:id()},r.payload=o;return}o=o.return}}function TE(r,o,s){var d=Sr();s={lane:d,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},xd(r)?Bh(o,s):(s=cl(r,o,s,d),s!==null&&(cr(s,r,d),Ng(s,o,d)))}function kh(r,o,s){var d=Sr();fo(r,o,s,d)}function fo(r,o,s,d){var S={lane:d,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(xd(r))Bh(o,S);else{var T=r.alternate;if(r.lanes===0&&(T===null||T.lanes===0)&&(T=o.lastRenderedReducer,T!==null))try{var O=o.lastRenderedState,B=T(O,s);if(S.hasEagerState=!0,S.eagerState=B,Pa(B,O))return qr(r,o,S,0),on===null&&Or(),!1}catch{}finally{}if(s=cl(r,o,S,d),s!==null)return cr(s,r,d),Ng(s,o,d),!0}return!1}function nu(r,o,s,d){if(d={lane:2,revertLane:sm(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},xd(r)){if(o)throw Error(u(479))}else o=cl(r,s,d,2),o!==null&&cr(o,r,2)}function xd(r){var o=r.alternate;return r===bt||o!==null&&o===bt}function Bh(r,o){Ju=Zu=!0;var s=r.pending;s===null?o.next=o:(o.next=s.next,s.next=o),r.pending=o}function Ng(r,o,s){if((s&4194048)!==0){var d=o.lanes;d&=r.pendingLanes,s|=d,o.lanes=s,ai(r,s)}}var Rd={readContext:Oe,use:xc,useCallback:zn,useContext:zn,useEffect:zn,useImperativeHandle:zn,useLayoutEffect:zn,useInsertionEffect:zn,useMemo:zn,useReducer:zn,useRef:zn,useState:zn,useDebugValue:zn,useDeferredValue:zn,useTransition:zn,useSyncExternalStore:zn,useId:zn,useHostTransitionStatus:zn,useFormState:zn,useActionState:zn,useOptimistic:zn,useMemoCache:zn,useCacheRefresh:zn};Rd.useEffectEvent=zn;var wE={readContext:Oe,use:xc,useCallback:function(r,o){return Ta().memoizedState=[r,o===void 0?null:o],r},useContext:Oe,useEffect:Oh,useImperativeHandle:function(r,o,s){s=s!=null?s.concat([r]):null,Rc(4194308,4,Nh.bind(null,o,r),s)},useLayoutEffect:function(r,o){return Rc(4194308,4,r,o)},useInsertionEffect:function(r,o){Rc(4,2,r,o)},useMemo:function(r,o){var s=Ta();o=o===void 0?null:o;var d=r();if(so){Ve(!0);try{r()}finally{Ve(!1)}}return s.memoizedState=[d,o],d},useReducer:function(r,o,s){var d=Ta();if(s!==void 0){var S=s(o);if(so){Ve(!0);try{s(o)}finally{Ve(!1)}}}else S=o;return d.memoizedState=d.baseState=S,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:S},d.queue=r,r=r.dispatch=TE.bind(null,bt,r),[d.memoizedState,r]},useRef:function(r){var o=Ta();return r={current:r},o.memoizedState=r},useState:function(r){r=vg(r);var o=r.queue,s=kh.bind(null,bt,o);return o.dispatch=s,[r.memoizedState,s]},useDebugValue:Ul,useDeferredValue:function(r,o){var s=Ta();return wd(s,r,o)},useTransition:function(){var r=vg(!1);return r=zh.bind(null,bt,r.queue,!0,!1),Ta().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,o,s){var d=bt,S=Ta();if(Ot){if(s===void 0)throw Error(u(407));s=s()}else{if(s=o(),on===null)throw Error(u(349));(At&127)!==0||vd(d,o,s)}S.memoizedState=s;var T={value:s,getSnapshot:o};return S.queue=T,Oh(Ah.bind(null,d,T,r),[r]),d.flags|=2048,ts(9,{destroy:void 0},bg.bind(null,d,T,s,o),null),s},useId:function(){var r=Ta(),o=on.identifierPrefix;if(Ot){var s=jl,d=yr;s=(d&~(1<<32-$e(d)-1)).toString(32)+s,o="_"+o+"R_"+s,s=md++,0<s&&(o+="H"+s.toString(32)),o+="_"}else s=mE++,o="_"+o+"r_"+s.toString(32)+"_";return r.memoizedState=o},useHostTransitionStatus:qg,useFormState:xg,useActionState:xg,useOptimistic:function(r){var o=Ta();o.memoizedState=o.baseState=r;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=s,o=nu.bind(null,bt,!0,s),s.dispatch=o,[r,o]},useMemoCache:xh,useCacheRefresh:function(){return Ta().memoizedState=Ti.bind(null,bt)},useEffectEvent:function(r){var o=Ta(),s={impl:r};return o.memoizedState=s,function(){if((It&2)!==0)throw Error(u(440));return s.impl.apply(void 0,arguments)}}},Uh={readContext:Oe,use:xc,useCallback:jh,useContext:Oe,useEffect:qh,useImperativeHandle:Og,useInsertionEffect:Dh,useLayoutEffect:Mg,useMemo:vE,useReducer:Si,useRef:Ag,useState:function(){return Si(vi)},useDebugValue:Ul,useDeferredValue:function(r,o){var s=Pn();return Ei(s,Wt.memoizedState,r,o)},useTransition:function(){var r=Si(vi)[0],o=Pn().memoizedState;return[typeof r=="boolean"?r:Wu(r),o]},useSyncExternalStore:gg,useId:EE,useHostTransitionStatus:qg,useFormState:bE,useActionState:bE,useOptimistic:function(r,o){var s=Pn();return wa(s,Wt,r,o)},useMemoCache:xh,useCacheRefresh:Dg};Uh.useEffectEvent=Td;var xE={readContext:Oe,use:xc,useCallback:jh,useContext:Oe,useEffect:qh,useImperativeHandle:Og,useInsertionEffect:Dh,useLayoutEffect:Mg,useMemo:vE,useReducer:Ch,useRef:Ag,useState:function(){return Ch(vi)},useDebugValue:Ul,useDeferredValue:function(r,o){var s=Pn();return Wt===null?wd(s,r,o):Ei(s,Wt.memoizedState,r,o)},useTransition:function(){var r=Ch(vi)[0],o=Pn().memoizedState;return[typeof r=="boolean"?r:Wu(r),o]},useSyncExternalStore:gg,useId:EE,useHostTransitionStatus:qg,useFormState:Cg,useActionState:Cg,useOptimistic:function(r,o){var s=Pn();return Wt!==null?wa(s,Wt,r,o):(s.baseState=r,[r,s.queue.dispatch])},useMemoCache:xh,useCacheRefresh:Dg};xE.useEffectEvent=Td;function ns(r,o,s,d){o=r.memoizedState,s=s(d,o),s=s==null?o:E({},o,s),r.memoizedState=s,r.lanes===0&&(r.updateQueue.baseState=s)}var pl={enqueueSetState:function(r,o,s){r=r._reactInternals;var d=Sr(),S=uo(d);S.payload=o,s!=null&&(S.callback=s),o=kr(r,S,d),o!==null&&(cr(o,r,d),Ko(o,r,d))},enqueueReplaceState:function(r,o,s){r=r._reactInternals;var d=Sr(),S=uo(d);S.tag=1,S.payload=o,s!=null&&(S.callback=s),o=kr(r,S,d),o!==null&&(cr(o,r,d),Ko(o,r,d))},enqueueForceUpdate:function(r,o){r=r._reactInternals;var s=Sr(),d=uo(s);d.tag=2,o!=null&&(d.callback=o),o=kr(r,d,s),o!==null&&(cr(o,r,s),Ko(o,r,s))}};function jg(r,o,s,d,S,T,O){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(d,T,O):o.prototype&&o.prototype.isPureReactComponent?!ol(s,d)||!ol(S,T):!0}function RE(r,o,s,d){r=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(s,d),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(s,d),o.state!==r&&pl.enqueueReplaceState(o,o.state,null)}function au(r,o){var s=o;if("ref"in o){s={};for(var d in o)d!=="ref"&&(s[d]=o[d])}if(r=r.defaultProps){s===o&&(s=E({},s));for(var S in r)s[S]===void 0&&(s[S]=r[S])}return s}function Lh(r){$u(r)}function zg(r){console.error(r)}function $h(r){$u(r)}function Mc(r,o){try{var s=r.onUncaughtError;s(o.value,{componentStack:o.stack})}catch(d){setTimeout(function(){throw d})}}function Cd(r,o,s){try{var d=r.onCaughtError;d(s.value,{componentStack:s.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(S){setTimeout(function(){throw S})}}function kg(r,o,s){return s=uo(s),s.tag=3,s.payload={element:null},s.callback=function(){Mc(r,o)},s}function Bg(r){return r=uo(r),r.tag=3,r}function Ug(r,o,s,d){var S=s.type.getDerivedStateFromError;if(typeof S=="function"){var T=d.value;r.payload=function(){return S(T)},r.callback=function(){Cd(o,s,d)}}var O=s.stateNode;O!==null&&typeof O.componentDidCatch=="function"&&(r.callback=function(){Cd(o,s,d),typeof S!="function"&&(On===null?On=new Set([this]):On.add(this));var B=d.stack;this.componentDidCatch(d.value,{componentStack:B!==null?B:""})})}function Ux(r,o,s,d,S){if(s.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(o=s.alternate,o!==null&&Ea(o,s,S,!0),s=ar.current,s!==null){switch(s.tag){case 31:case 13:return Br===null?lm():s.alternate===null&&mn===0&&(mn=3),s.flags&=-257,s.flags|=65536,s.lanes=S,d===Xu?s.flags|=16384:(o=s.updateQueue,o===null?s.updateQueue=new Set([d]):o.add(d),$d(r,d,S)),!1;case 22:return s.flags|=65536,d===Xu?s.flags|=16384:(o=s.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([d])},s.updateQueue=o):(s=o.retryQueue,s===null?o.retryQueue=new Set([d]):s.add(d)),$d(r,d,S)),!1}throw Error(u(435,s.tag))}return $d(r,d,S),lm(),!1}if(Ot)return o=ar.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=S,d!==pi&&(r=Error(u(422),{cause:d}),yc(Dr(r,s)))):(d!==pi&&(o=Error(u(423),{cause:d}),yc(Dr(o,s))),r=r.current.alternate,r.flags|=65536,S&=-S,r.lanes|=S,d=Dr(d,s),S=kg(r.stateNode,d,S),vh(r,S),mn!==4&&(mn=2)),!1;var T=Error(u(520),{cause:d});if(T=Dr(T,s),kd===null?kd=[T]:kd.push(T),mn!==4&&(mn=2),o===null)return!0;d=Dr(d,s),s=o;do{switch(s.tag){case 3:return s.flags|=65536,r=S&-S,s.lanes|=r,r=kg(s.stateNode,d,r),vh(s,r),!1;case 1:if(o=s.type,T=s.stateNode,(s.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(On===null||!On.has(T))))return s.flags|=65536,S&=-S,s.lanes|=S,S=Bg(S),Ug(S,r,s,d),vh(s,S),!1}s=s.return}while(s!==null);return!1}var Hh=Error(u(461)),Qn=!1;function wn(r,o,s,d){o.child=r===null?mg(o,null,s,d):Jo(o,r.child,s,d)}function Lg(r,o,s,d,S){s=s.render;var T=o.ref;if("ref"in d){var O={};for(var B in d)B!=="ref"&&(O[B]=d[B])}else O=d;return pt(o),d=yd(r,o,s,O,T,S),B=wh(),r!==null&&!Qn?(Ku(r,o,S),$r(r,o,S)):(Ot&&B&&hc(o),o.flags|=1,wn(r,o,d,S),o.child)}function $g(r,o,s,d,S){if(r===null){var T=s.type;return typeof T=="function"&&!Hu(T)&&T.defaultProps===void 0&&s.compare===null?(o.tag=15,o.type=T,Hg(r,o,T,d,S)):(r=dh(s.type,null,d,o,o.mode,S),r.ref=o.ref,r.return=o,o.child=r)}if(T=r.child,!Vh(r,S)){var O=T.memoizedProps;if(s=s.compare,s=s!==null?s:ol,s(O,d)&&r.ref===o.ref)return $r(r,o,S)}return o.flags|=1,r=no(T,d),r.ref=o.ref,r.return=o,o.child=r}function Hg(r,o,s,d,S){if(r!==null){var T=r.memoizedProps;if(ol(T,d)&&r.ref===o.ref)if(Qn=!1,o.pendingProps=d=T,Vh(r,S))(r.flags&131072)!==0&&(Qn=!0);else return o.lanes=r.lanes,$r(r,o,S)}return Ph(r,o,s,d,S)}function CE(r,o,s,d){var S=d.children,T=r!==null?r.memoizedState:null;if(r===null&&o.stateNode===null&&(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((o.flags&128)!==0){if(T=T!==null?T.baseLanes|s:s,r!==null){for(d=o.child=r.child,S=0;d!==null;)S=S|d.lanes|d.childLanes,d=d.sibling;d=S&~T}else d=0,o.child=null;return lr(r,o,T,s,d)}if((s&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},r!==null&&gc(o,T!==null?T.cachePool:null),T!==null?hE(o,T):hd(),Eh(o);else return d=o.lanes=536870912,lr(r,o,T!==null?T.baseLanes|s:s,s,d)}else T!==null?(gc(o,T.cachePool),hE(o,T),Bl(),o.memoizedState=null):(r!==null&&gc(o,null),hd(),Bl());return wn(r,o,S,s),o.child}function ru(r,o){return r!==null&&r.tag===22||o.stateNode!==null||(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function lr(r,o,s,d,S){var T=zr();return T=T===null?null:{parent:Xn._currentValue,pool:T},o.memoizedState={baseLanes:s,cachePool:T},r!==null&&gc(o,null),hd(),Eh(o),r!==null&&Ea(r,o,d,!0),o.childLanes=S,null}function Ad(r,o){return o=Od({mode:o.mode,children:o.children},r.mode),o.ref=r.ref,r.child=o,o.return=r,o}function ir(r,o,s){return Jo(o,r.child,null,s),r=Ad(o,o.pendingProps),r.flags|=2,rr(o),o.memoizedState=null,r}function AE(r,o,s){var d=o.pendingProps,S=(o.flags&128)!==0;if(o.flags&=-129,r===null){if(Ot){if(d.mode==="hidden")return r=Ad(o,d),o.lanes=536870912,ru(null,r);if(Ec(o),(r=pn)?(r=uT(r,ua),r=r!==null&&r.data==="&"?r:null,r!==null&&(o.memoizedState={dehydrated:r,treeContext:Nl!==null?{id:yr,overflow:jl}:null,retryLane:536870912,hydrationErrors:null},s=ig(r),s.return=o,o.child=s,Sa=o,pn=null)):r=null,r===null)throw dl(o);return o.lanes=536870912,null}return Ad(o,d)}var T=r.memoizedState;if(T!==null){var O=T.dehydrated;if(Ec(o),S)if(o.flags&256)o.flags&=-257,o=ir(r,o,s);else if(o.memoizedState!==null)o.child=r.child,o.flags|=128,o=null;else throw Error(u(558));else if(Qn||Ea(r,o,s,!1),S=(s&r.childLanes)!==0,Qn||S){if(d=on,d!==null&&(O=Ar(d,s),O!==0&&O!==T.retryLane))throw T.retryLane=O,to(r,O),cr(d,r,O),Hh;lm(),o=ir(r,o,s)}else r=T.treeContext,pn=fr(O.nextSibling),Sa=o,Ot=!0,di=null,ua=!1,r!==null&&ad(o,r),o=Ad(o,d),o.flags|=4096;return o}return r=no(r.child,{mode:d.mode,children:d.children}),r.ref=o.ref,o.child=r,r.return=o,r}function Ur(r,o){var s=o.ref;if(s===null)r!==null&&r.ref!==null&&(o.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(u(284));(r===null||r.ref!==s)&&(o.flags|=4194816)}}function Ph(r,o,s,d,S){return pt(o),s=yd(r,o,s,d,void 0,S),d=wh(),r!==null&&!Qn?(Ku(r,o,S),$r(r,o,S)):(Ot&&d&&hc(o),o.flags|=1,wn(r,o,s,S),o.child)}function lu(r,o,s,d,S,T){return pt(o),o.updateQueue=null,s=yE(o,d,s,S),Th(r),d=wh(),r!==null&&!Qn?(Ku(r,o,T),$r(r,o,T)):(Ot&&d&&hc(o),o.flags|=1,wn(r,o,s,T),o.child)}function Pg(r,o,s,d,S){if(pt(o),o.stateNode===null){var T=er,O=s.contextType;typeof O=="object"&&O!==null&&(T=Oe(O)),T=new s(d,T),o.memoizedState=T.state!==null&&T.state!==void 0?T.state:null,T.updater=pl,o.stateNode=T,T._reactInternals=o,T=o.stateNode,T.props=d,T.state=o.memoizedState,T.refs={},pd(o),O=s.contextType,T.context=typeof O=="object"&&O!==null?Oe(O):er,T.state=o.memoizedState,O=s.getDerivedStateFromProps,typeof O=="function"&&(ns(o,s,O,d),T.state=o.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof T.getSnapshotBeforeUpdate=="function"||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(O=T.state,typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount(),O!==T.state&&pl.enqueueReplaceState(T,T.state,null),yi(o,d,T,S),Wo(),T.state=o.memoizedState),typeof T.componentDidMount=="function"&&(o.flags|=4194308),d=!0}else if(r===null){T=o.stateNode;var B=o.memoizedProps,W=au(s,B);T.props=W;var ye=T.context,Re=s.contextType;O=er,typeof Re=="object"&&Re!==null&&(O=Oe(Re));var Me=s.getDerivedStateFromProps;Re=typeof Me=="function"||typeof T.getSnapshotBeforeUpdate=="function",B=o.pendingProps!==B,Re||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(B||ye!==O)&&RE(o,T,d,O),oo=!1;var ge=o.memoizedState;T.state=ge,yi(o,d,T,S),Wo(),ye=o.memoizedState,B||ge!==ye||oo?(typeof Me=="function"&&(ns(o,s,Me,d),ye=o.memoizedState),(W=oo||jg(o,s,W,d,ge,ye,O))?(Re||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount()),typeof T.componentDidMount=="function"&&(o.flags|=4194308)):(typeof T.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=d,o.memoizedState=ye),T.props=d,T.state=ye,T.context=O,d=W):(typeof T.componentDidMount=="function"&&(o.flags|=4194308),d=!1)}else{T=o.stateNode,bh(r,o),O=o.memoizedProps,Re=au(s,O),T.props=Re,Me=o.pendingProps,ge=T.context,ye=s.contextType,W=er,typeof ye=="object"&&ye!==null&&(W=Oe(ye)),B=s.getDerivedStateFromProps,(ye=typeof B=="function"||typeof T.getSnapshotBeforeUpdate=="function")||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(O!==Me||ge!==W)&&RE(o,T,d,W),oo=!1,ge=o.memoizedState,T.state=ge,yi(o,d,T,S),Wo();var we=o.memoizedState;O!==Me||ge!==we||oo||r!==null&&r.dependencies!==null&&Iu(r.dependencies)?(typeof B=="function"&&(ns(o,s,B,d),we=o.memoizedState),(Re=oo||jg(o,s,Re,d,ge,we,W)||r!==null&&r.dependencies!==null&&Iu(r.dependencies))?(ye||typeof T.UNSAFE_componentWillUpdate!="function"&&typeof T.componentWillUpdate!="function"||(typeof T.componentWillUpdate=="function"&&T.componentWillUpdate(d,we,W),typeof T.UNSAFE_componentWillUpdate=="function"&&T.UNSAFE_componentWillUpdate(d,we,W)),typeof T.componentDidUpdate=="function"&&(o.flags|=4),typeof T.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof T.componentDidUpdate!="function"||O===r.memoizedProps&&ge===r.memoizedState||(o.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||O===r.memoizedProps&&ge===r.memoizedState||(o.flags|=1024),o.memoizedProps=d,o.memoizedState=we),T.props=d,T.state=we,T.context=W,d=Re):(typeof T.componentDidUpdate!="function"||O===r.memoizedProps&&ge===r.memoizedState||(o.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||O===r.memoizedProps&&ge===r.memoizedState||(o.flags|=1024),d=!1)}return T=d,Ur(r,o),d=(o.flags&128)!==0,T||d?(T=o.stateNode,s=d&&typeof s.getDerivedStateFromError!="function"?null:T.render(),o.flags|=1,r!==null&&d?(o.child=Jo(o,r.child,null,S),o.child=Jo(o,null,s,S)):wn(r,o,s,S),o.memoizedState=T.state,r=o.child):r=$r(r,o,S),r}function Ll(r,o,s,d){return Go(),o.flags|=256,wn(r,o,s,d),o.child}var _d={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Md(r){return{baseLanes:r,cachePool:Gu()}}function Lr(r,o,s){return r=r!==null?r.childLanes&~s:0,o&&(r|=sr),r}function Ig(r,o,s){var d=o.pendingProps,S=!1,T=(o.flags&128)!==0,O;if((O=T)||(O=r!==null&&r.memoizedState===null?!1:(Mn.current&2)!==0),O&&(S=!0,o.flags&=-129),O=(o.flags&32)!==0,o.flags&=-33,r===null){if(Ot){if(S?gi(o):Bl(),(r=pn)?(r=uT(r,ua),r=r!==null&&r.data!=="&"?r:null,r!==null&&(o.memoizedState={dehydrated:r,treeContext:Nl!==null?{id:yr,overflow:jl}:null,retryLane:536870912,hydrationErrors:null},s=ig(r),s.return=o,o.child=s,Sa=o,pn=null)):r=null,r===null)throw dl(o);return du(r)?o.lanes=32:o.lanes=536870912,null}var B=d.children;return d=d.fallback,S?(Bl(),S=o.mode,B=Od({mode:"hidden",children:B},S),d=ao(d,S,s,null),B.return=o,d.return=o,B.sibling=d,o.child=B,d=o.child,d.memoizedState=Md(s),d.childLanes=Lr(r,O,s),o.memoizedState=_d,ru(null,d)):(gi(o),iu(o,B))}var W=r.memoizedState;if(W!==null&&(B=W.dehydrated,B!==null)){if(T)o.flags&256?(gi(o),o.flags&=-257,o=as(r,o,s)):o.memoizedState!==null?(Bl(),o.child=r.child,o.flags|=128,o=null):(Bl(),B=d.fallback,S=o.mode,d=Od({mode:"visible",children:d.children},S),B=ao(B,S,s,null),B.flags|=2,d.return=o,B.return=o,d.sibling=B,o.child=d,Jo(o,r.child,null,s),d=o.child,d.memoizedState=Md(s),d.childLanes=Lr(r,O,s),o.memoizedState=_d,o=ru(null,d));else if(gi(o),du(B)){if(O=B.nextSibling&&B.nextSibling.dataset,O)var ye=O.dgst;O=ye,d=Error(u(419)),d.stack="",d.digest=O,yc({value:d,source:null,stack:null}),o=as(r,o,s)}else if(Qn||Ea(r,o,s,!1),O=(s&r.childLanes)!==0,Qn||O){if(O=on,O!==null&&(d=Ar(O,s),d!==0&&d!==W.retryLane))throw W.retryLane=d,to(r,d),cr(O,r,d),Hh;yl(B)||lm(),o=as(r,o,s)}else yl(B)?(o.flags|=192,o.child=r.child,o=null):(r=W.treeContext,pn=fr(B.nextSibling),Sa=o,Ot=!0,di=null,ua=!1,r!==null&&ad(o,r),o=iu(o,d.children),o.flags|=4096);return o}return S?(Bl(),B=d.fallback,S=o.mode,W=r.child,ye=W.sibling,d=no(W,{mode:"hidden",children:d.children}),d.subtreeFlags=W.subtreeFlags&65011712,ye!==null?B=no(ye,B):(B=ao(B,S,s,null),B.flags|=2),B.return=o,d.return=o,d.sibling=B,o.child=d,ru(null,d),d=o.child,B=r.child.memoizedState,B===null?B=Md(s):(S=B.cachePool,S!==null?(W=Xn._currentValue,S=S.parent!==W?{parent:W,pool:W}:S):S=Gu(),B={baseLanes:B.baseLanes|s,cachePool:S}),d.memoizedState=B,d.childLanes=Lr(r,O,s),o.memoizedState=_d,ru(r.child,d)):(gi(o),s=r.child,r=s.sibling,s=no(s,{mode:"visible",children:d.children}),s.return=o,s.sibling=null,r!==null&&(O=o.deletions,O===null?(o.deletions=[r],o.flags|=16):O.push(r)),o.child=s,o.memoizedState=null,s)}function iu(r,o){return o=Od({mode:"visible",children:o},r.mode),o.return=r,r.child=o}function Od(r,o){return r=$n(22,r,null,o),r.lanes=0,r}function as(r,o,s){return Jo(o,r.child,null,s),r=iu(o,o.pendingProps.children),r.flags|=2,o.memoizedState=null,r}function rs(r,o,s){r.lanes|=o;var d=r.alternate;d!==null&&(d.lanes|=o),yh(r.return,o,s)}function Ih(r,o,s,d,S,T){var O=r.memoizedState;O===null?r.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:d,tail:s,tailMode:S,treeForkCount:T}:(O.isBackwards=o,O.rendering=null,O.renderingStartTime=0,O.last=d,O.tail=s,O.tailMode=S,O.treeForkCount=T)}function Vg(r,o,s){var d=o.pendingProps,S=d.revealOrder,T=d.tail;d=d.children;var O=Mn.current,B=(O&2)!==0;if(B?(O=O&1|2,o.flags|=128):O&=1,xe(Mn,O),wn(r,o,d,s),d=Ot?Yn:0,!B&&r!==null&&(r.flags&128)!==0)e:for(r=o.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&rs(r,s,o);else if(r.tag===19)rs(r,s,o);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===o)break e;for(;r.sibling===null;){if(r.return===null||r.return===o)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(S){case"forwards":for(s=o.child,S=null;s!==null;)r=s.alternate,r!==null&&Tc(r)===null&&(S=s),s=s.sibling;s=S,s===null?(S=o.child,o.child=null):(S=s.sibling,s.sibling=null),Ih(o,!1,S,s,T,d);break;case"backwards":case"unstable_legacy-backwards":for(s=null,S=o.child,o.child=null;S!==null;){if(r=S.alternate,r!==null&&Tc(r)===null){o.child=S;break}r=S.sibling,S.sibling=s,s=S,S=r}Ih(o,!0,s,null,T,d);break;case"together":Ih(o,!1,null,null,void 0,d);break;default:o.memoizedState=null}return o.child}function $r(r,o,s){if(r!==null&&(o.dependencies=r.dependencies),Il|=o.lanes,(s&o.childLanes)===0)if(r!==null){if(Ea(r,o,s,!1),(s&o.childLanes)===0)return null}else return null;if(r!==null&&o.child!==r.child)throw Error(u(153));if(o.child!==null){for(r=o.child,s=no(r,r.pendingProps),o.child=s,s.return=o;r.sibling!==null;)r=r.sibling,s=s.sibling=no(r,r.pendingProps),s.return=o;s.sibling=null}return o.child}function Vh(r,o){return(r.lanes&o)!==0?!0:(r=r.dependencies,!!(r!==null&&Iu(r)))}function Gh(r,o,s){switch(o.tag){case 3:an(o,o.stateNode.containerInfo),nr(o,Xn,r.memoizedState.cache),Go();break;case 27:case 5:Pe(o);break;case 4:an(o,o.stateNode.containerInfo);break;case 10:nr(o,o.type,o.memoizedProps.value);break;case 31:if(o.memoizedState!==null)return o.flags|=128,Ec(o),null;break;case 13:var d=o.memoizedState;if(d!==null)return d.dehydrated!==null?(gi(o),o.flags|=128,null):(s&o.child.childLanes)!==0?Ig(r,o,s):(gi(o),r=$r(r,o,s),r!==null?r.sibling:null);gi(o);break;case 19:var S=(r.flags&128)!==0;if(d=(s&o.childLanes)!==0,d||(Ea(r,o,s,!1),d=(s&o.childLanes)!==0),S){if(d)return Vg(r,o,s);o.flags|=128}if(S=o.memoizedState,S!==null&&(S.rendering=null,S.tail=null,S.lastEffect=null),xe(Mn,Mn.current),d)break;return null;case 22:return o.lanes=0,CE(r,o,s,o.pendingProps);case 24:nr(o,Xn,r.memoizedState.cache)}return $r(r,o,s)}function Gg(r,o,s){if(r!==null)if(r.memoizedProps!==o.pendingProps)Qn=!0;else{if(!Vh(r,s)&&(o.flags&128)===0)return Qn=!1,Gh(r,o,s);Qn=(r.flags&131072)!==0}else Qn=!1,Ot&&(o.flags&1048576)!==0&&ug(o,Yn,o.index);switch(o.lanes=0,o.tag){case 16:e:{var d=o.pendingProps;if(r=Fo(o.elementType),o.type=r,typeof r=="function")Hu(r)?(d=au(r,d),o.tag=1,o=Pg(null,o,r,d,s)):(o.tag=0,o=Ph(null,o,r,d,s));else{if(r!=null){var S=r.$$typeof;if(S===I){o.tag=11,o=Lg(null,o,r,d,s);break e}else if(S===k){o.tag=14,o=$g(null,o,r,d,s);break e}}throw o=Se(r)||r,Error(u(306,o,""))}}return o;case 0:return Ph(r,o,o.type,o.pendingProps,s);case 1:return d=o.type,S=au(d,o.pendingProps),Pg(r,o,d,S,s);case 3:e:{if(an(o,o.stateNode.containerInfo),r===null)throw Error(u(387));d=o.pendingProps;var T=o.memoizedState;S=T.element,bh(r,o),yi(o,d,null,s);var O=o.memoizedState;if(d=O.cache,nr(o,Xn,d),d!==T.cache&&mi(o,[Xn],s,!0),Wo(),d=O.element,T.isDehydrated)if(T={element:d,isDehydrated:!1,cache:O.cache},o.updateQueue.baseState=T,o.memoizedState=T,o.flags&256){o=Ll(r,o,d,s);break e}else if(d!==S){S=Dr(Error(u(424)),o),yc(S),o=Ll(r,o,d,s);break e}else{switch(r=o.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(pn=fr(r.firstChild),Sa=o,Ot=!0,di=null,ua=!0,s=mg(o,null,d,s),o.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(Go(),d===S){o=$r(r,o,s);break e}wn(r,o,d,s)}o=o.child}return o;case 26:return Ur(r,o),r===null?(s=Jc(o.type,null,o.pendingProps,null))?o.memoizedState=s:Ot||(s=o.type,r=o.pendingProps,d=fu(at.current).createElement(s),d[rn]=o,d[Ja]=r,ja(d,s,r),Jt(d),o.stateNode=d):o.memoizedState=Jc(o.type,r.memoizedProps,o.pendingProps,r.memoizedState),null;case 27:return Pe(o),r===null&&Ot&&(d=o.stateNode=Qc(o.type,o.pendingProps,at.current),Sa=o,ua=!0,S=pn,Gl(o.type)?(Qd=S,pn=fr(d.firstChild)):pn=S),wn(r,o,o.pendingProps.children,s),Ur(r,o),r===null&&(o.flags|=4194304),o.child;case 5:return r===null&&Ot&&((S=d=pn)&&(d=Hx(d,o.type,o.pendingProps,ua),d!==null?(o.stateNode=d,Sa=o,pn=fr(d.firstChild),ua=!1,S=!0):S=!1),S||dl(o)),Pe(o),S=o.type,T=o.pendingProps,O=r!==null?r.memoizedProps:null,d=T.children,Xc(S,T)?d=null:O!==null&&Xc(S,O)&&(o.flags|=32),o.memoizedState!==null&&(S=yd(r,o,Bx,null,null,s),Kd._currentValue=S),Ur(r,o),wn(r,o,d,s),o.child;case 6:return r===null&&Ot&&((r=s=pn)&&(s=Tt(s,o.pendingProps,ua),s!==null?(o.stateNode=s,Sa=o,pn=null,r=!0):r=!1),r||dl(o)),null;case 13:return Ig(r,o,s);case 4:return an(o,o.stateNode.containerInfo),d=o.pendingProps,r===null?o.child=Jo(o,null,d,s):wn(r,o,d,s),o.child;case 11:return Lg(r,o,o.type,o.pendingProps,s);case 7:return wn(r,o,o.pendingProps,s),o.child;case 8:return wn(r,o,o.pendingProps.children,s),o.child;case 12:return wn(r,o,o.pendingProps.children,s),o.child;case 10:return d=o.pendingProps,nr(o,o.type,d.value),wn(r,o,d.children,s),o.child;case 9:return S=o.type._context,d=o.pendingProps.children,pt(o),S=Oe(S),d=d(S),o.flags|=1,wn(r,o,d,s),o.child;case 14:return $g(r,o,o.type,o.pendingProps,s);case 15:return Hg(r,o,o.type,o.pendingProps,s);case 19:return Vg(r,o,s);case 31:return AE(r,o,s);case 22:return CE(r,o,s,o.pendingProps);case 24:return pt(o),d=Oe(Xn),r===null?(S=zr(),S===null&&(S=on,T=id(),S.pooledCache=T,T.refCount++,T!==null&&(S.pooledCacheLanes|=s),S=T),o.memoizedState={parent:d,cache:S},pd(o),nr(o,Xn,S)):((r.lanes&s)!==0&&(bh(r,o),yi(o,null,null,s),Wo()),S=r.memoizedState,T=o.memoizedState,S.parent!==d?(S={parent:d,cache:d},o.memoizedState=S,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=S),nr(o,Xn,d)):(d=T.cache,nr(o,Xn,d),d!==S.cache&&mi(o,[Xn],s,!0))),wn(r,o,o.pendingProps.children,s),o.child;case 29:throw o.pendingProps}throw Error(u(156,o.tag))}function wi(r){r.flags|=4}function Yg(r,o,s,d,S){if((o=(r.mode&32)!==0)&&(o=!1),o){if(r.flags|=16777216,(S&335544128)===S)if(r.stateNode.complete)r.flags|=8192;else if(BE())r.flags|=8192;else throw Qo=Xu,Yu}else r.flags&=-16777217}function Xg(r,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!Tr(o))if(BE())r.flags|=8192;else throw Qo=Xu,Yu}function Ia(r,o){o!==null&&(r.flags|=4),r.flags&16384&&(o=r.tag!==22?ze():536870912,r.lanes|=o,kn|=o)}function Oc(r,o){if(!Ot)switch(r.tailMode){case"hidden":o=r.tail;for(var s=null;o!==null;)o.alternate!==null&&(s=o),o=o.sibling;s===null?r.tail=null:s.sibling=null;break;case"collapsed":s=r.tail;for(var d=null;s!==null;)s.alternate!==null&&(d=s),s=s.sibling;d===null?o||r.tail===null?r.tail=null:r.tail.sibling=null:d.sibling=null}}function ft(r){var o=r.alternate!==null&&r.alternate.child===r.child,s=0,d=0;if(o)for(var S=r.child;S!==null;)s|=S.lanes|S.childLanes,d|=S.subtreeFlags&65011712,d|=S.flags&65011712,S.return=r,S=S.sibling;else for(S=r.child;S!==null;)s|=S.lanes|S.childLanes,d|=S.subtreeFlags,d|=S.flags,S.return=r,S=S.sibling;return r.subtreeFlags|=d,r.childLanes=s,o}function _E(r,o,s){var d=o.pendingProps;switch(hh(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(o),null;case 1:return ft(o),null;case 3:return s=o.stateNode,d=null,r!==null&&(d=r.memoizedState.cache),o.memoizedState.cache!==d&&(o.flags|=2048),kl(Xn),ie(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(r===null||r.child===null)&&(hi(o)?wi(o):r===null||r.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,sg())),ft(o),null;case 26:var S=o.type,T=o.memoizedState;return r===null?(wi(o),T!==null?(ft(o),Xg(o,T)):(ft(o),Yg(o,S,null,d,s))):T?T!==r.memoizedState?(wi(o),ft(o),Xg(o,T)):(ft(o),o.flags&=-16777217):(r=r.memoizedProps,r!==d&&wi(o),ft(o),Yg(o,S,r,d,s)),null;case 27:if(de(o),s=at.current,S=o.type,r!==null&&o.stateNode!=null)r.memoizedProps!==d&&wi(o);else{if(!d){if(o.stateNode===null)throw Error(u(166));return ft(o),null}r=Ie.current,hi(o)?rd(o):(r=Qc(S,d,s),o.stateNode=r,wi(o))}return ft(o),null;case 5:if(de(o),S=o.type,r!==null&&o.stateNode!=null)r.memoizedProps!==d&&wi(o);else{if(!d){if(o.stateNode===null)throw Error(u(166));return ft(o),null}if(T=Ie.current,hi(o))rd(o);else{var O=fu(at.current);switch(T){case 1:T=O.createElementNS("http://www.w3.org/2000/svg",S);break;case 2:T=O.createElementNS("http://www.w3.org/1998/Math/MathML",S);break;default:switch(S){case"svg":T=O.createElementNS("http://www.w3.org/2000/svg",S);break;case"math":T=O.createElementNS("http://www.w3.org/1998/Math/MathML",S);break;case"script":T=O.createElement("div"),T.innerHTML="<script><\/script>",T=T.removeChild(T.firstChild);break;case"select":T=typeof d.is=="string"?O.createElement("select",{is:d.is}):O.createElement("select"),d.multiple?T.multiple=!0:d.size&&(T.size=d.size);break;default:T=typeof d.is=="string"?O.createElement(S,{is:d.is}):O.createElement(S)}}T[rn]=o,T[Ja]=d;e:for(O=o.child;O!==null;){if(O.tag===5||O.tag===6)T.appendChild(O.stateNode);else if(O.tag!==4&&O.tag!==27&&O.child!==null){O.child.return=O,O=O.child;continue}if(O===o)break e;for(;O.sibling===null;){if(O.return===null||O.return===o)break e;O=O.return}O.sibling.return=O.return,O=O.sibling}o.stateNode=T;e:switch(ja(T,S,d),S){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&wi(o)}}return ft(o),Yg(o,o.type,r===null?null:r.memoizedProps,o.pendingProps,s),null;case 6:if(r&&o.stateNode!=null)r.memoizedProps!==d&&wi(o);else{if(typeof d!="string"&&o.stateNode===null)throw Error(u(166));if(r=at.current,hi(o)){if(r=o.stateNode,s=o.memoizedProps,d=null,S=Sa,S!==null)switch(S.tag){case 27:case 5:d=S.memoizedProps}r[rn]=o,r=!!(r.nodeValue===s||d!==null&&d.suppressHydrationWarning===!0||gb(r.nodeValue,s)),r||dl(o,!0)}else r=fu(r).createTextNode(d),r[rn]=o,o.stateNode=r}return ft(o),null;case 31:if(s=o.memoizedState,r===null||r.memoizedState!==null){if(d=hi(o),s!==null){if(r===null){if(!d)throw Error(u(318));if(r=o.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(u(557));r[rn]=o}else Go(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;ft(o),r=!1}else s=sg(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=s),r=!0;if(!r)return o.flags&256?(rr(o),o):(rr(o),null);if((o.flags&128)!==0)throw Error(u(558))}return ft(o),null;case 13:if(d=o.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(S=hi(o),d!==null&&d.dehydrated!==null){if(r===null){if(!S)throw Error(u(318));if(S=o.memoizedState,S=S!==null?S.dehydrated:null,!S)throw Error(u(317));S[rn]=o}else Go(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;ft(o),S=!1}else S=sg(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=S),S=!0;if(!S)return o.flags&256?(rr(o),o):(rr(o),null)}return rr(o),(o.flags&128)!==0?(o.lanes=s,o):(s=d!==null,r=r!==null&&r.memoizedState!==null,s&&(d=o.child,S=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(S=d.alternate.memoizedState.cachePool.pool),T=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(T=d.memoizedState.cachePool.pool),T!==S&&(d.flags|=2048)),s!==r&&s&&(o.child.flags|=8192),Ia(o,o.updateQueue),ft(o),null);case 4:return ie(),r===null&&Yc(o.stateNode.containerInfo),ft(o),null;case 10:return kl(o.type),ft(o),null;case 19:if(Xe(Mn),d=o.memoizedState,d===null)return ft(o),null;if(S=(o.flags&128)!==0,T=d.rendering,T===null)if(S)Oc(d,!1);else{if(mn!==0||r!==null&&(r.flags&128)!==0)for(r=o.child;r!==null;){if(T=Tc(r),T!==null){for(o.flags|=128,Oc(d,!1),r=T.updateQueue,o.updateQueue=r,Ia(o,r),o.subtreeFlags=0,r=s,s=o.child;s!==null;)lg(s,r),s=s.sibling;return xe(Mn,Mn.current&1|2),Ot&&fl(o,d.treeForkCount),o.child}r=r.sibling}d.tail!==null&&oe()>Yt&&(o.flags|=128,S=!0,Oc(d,!1),o.lanes=4194304)}else{if(!S)if(r=Tc(T),r!==null){if(o.flags|=128,S=!0,r=r.updateQueue,o.updateQueue=r,Ia(o,r),Oc(d,!0),d.tail===null&&d.tailMode==="hidden"&&!T.alternate&&!Ot)return ft(o),null}else 2*oe()-d.renderingStartTime>Yt&&s!==536870912&&(o.flags|=128,S=!0,Oc(d,!1),o.lanes=4194304);d.isBackwards?(T.sibling=o.child,o.child=T):(r=d.last,r!==null?r.sibling=T:o.child=T,d.last=T)}return d.tail!==null?(r=d.tail,d.rendering=r,d.tail=r.sibling,d.renderingStartTime=oe(),r.sibling=null,s=Mn.current,xe(Mn,S?s&1|2:s&1),Ot&&fl(o,d.treeForkCount),r):(ft(o),null);case 22:case 23:return rr(o),Sc(),d=o.memoizedState!==null,r!==null?r.memoizedState!==null!==d&&(o.flags|=8192):d&&(o.flags|=8192),d?(s&536870912)!==0&&(o.flags&128)===0&&(ft(o),o.subtreeFlags&6&&(o.flags|=8192)):ft(o),s=o.updateQueue,s!==null&&Ia(o,s.retryQueue),s=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(s=r.memoizedState.cachePool.pool),d=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),d!==s&&(o.flags|=2048),r!==null&&Xe(jr),null;case 24:return s=null,r!==null&&(s=r.memoizedState.cache),o.memoizedState.cache!==s&&(o.flags|=2048),kl(Xn),ft(o),null;case 25:return null;case 30:return null}throw Error(u(156,o.tag))}function ME(r,o){switch(hh(o),o.tag){case 1:return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 3:return kl(Xn),ie(),r=o.flags,(r&65536)!==0&&(r&128)===0?(o.flags=r&-65537|128,o):null;case 26:case 27:case 5:return de(o),null;case 31:if(o.memoizedState!==null){if(rr(o),o.alternate===null)throw Error(u(340));Go()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 13:if(rr(o),r=o.memoizedState,r!==null&&r.dehydrated!==null){if(o.alternate===null)throw Error(u(340));Go()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 19:return Xe(Mn),null;case 4:return ie(),null;case 10:return kl(o.type),null;case 22:case 23:return rr(o),Sc(),r!==null&&Xe(jr),r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 24:return kl(Xn),null;case 25:return null;default:return null}}function OE(r,o){switch(hh(o),o.tag){case 3:kl(Xn),ie();break;case 26:case 27:case 5:de(o);break;case 4:ie();break;case 31:o.memoizedState!==null&&rr(o);break;case 13:rr(o);break;case 19:Xe(Mn);break;case 10:kl(o.type);break;case 22:case 23:rr(o),Sc(),r!==null&&Xe(jr);break;case 24:kl(Xn)}}function hl(r,o){try{var s=o.updateQueue,d=s!==null?s.lastEffect:null;if(d!==null){var S=d.next;s=S;do{if((s.tag&r)===r){d=void 0;var T=s.create,O=s.inst;d=T(),O.destroy=d}s=s.next}while(s!==S)}}catch(B){tn(o,o.return,B)}}function Hr(r,o,s){try{var d=o.updateQueue,S=d!==null?d.lastEffect:null;if(S!==null){var T=S.next;d=T;do{if((d.tag&r)===r){var O=d.inst,B=O.destroy;if(B!==void 0){O.destroy=void 0,S=o;var W=s,ye=B;try{ye()}catch(Re){tn(S,W,Re)}}}d=d.next}while(d!==T)}}catch(Re){tn(o,o.return,Re)}}function Yh(r){var o=r.updateQueue;if(o!==null){var s=r.stateNode;try{eu(o,s)}catch(d){tn(r,r.return,d)}}}function ou(r,o,s){s.props=au(r.type,r.memoizedProps),s.state=r.memoizedState;try{s.componentWillUnmount()}catch(d){tn(r,o,d)}}function xi(r,o){try{var s=r.ref;if(s!==null){switch(r.tag){case 26:case 27:case 5:var d=r.stateNode;break;case 30:d=r.stateNode;break;default:d=r.stateNode}typeof s=="function"?r.refCleanup=s(d):s.current=d}}catch(S){tn(r,o,S)}}function $l(r,o){var s=r.ref,d=r.refCleanup;if(s!==null)if(typeof d=="function")try{d()}catch(S){tn(r,o,S)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(S){tn(r,o,S)}else s.current=null}function Fg(r){var o=r.type,s=r.memoizedProps,d=r.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":s.autoFocus&&d.focus();break e;case"img":s.src?d.src=s.src:s.srcSet&&(d.srcset=s.srcSet)}}catch(S){tn(r,r.return,S)}}function Xh(r,o,s){try{var d=r.stateNode;vb(d,r.type,s,o),d[Ja]=o}catch(S){tn(r,r.return,S)}}function Qg(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&Gl(r.type)||r.tag===4}function qc(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Qg(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&Gl(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Dc(r,o,s){var d=r.tag;if(d===5||d===6)r=r.stateNode,o?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(r,o):(o=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,o.appendChild(r),s=s._reactRootContainer,s!=null||o.onclick!==null||(o.onclick=Cl));else if(d!==4&&(d===27&&Gl(r.type)&&(s=r.stateNode,o=null),r=r.child,r!==null))for(Dc(r,o,s),r=r.sibling;r!==null;)Dc(r,o,s),r=r.sibling}function Nc(r,o,s){var d=r.tag;if(d===5||d===6)r=r.stateNode,o?s.insertBefore(r,o):s.appendChild(r);else if(d!==4&&(d===27&&Gl(r.type)&&(s=r.stateNode),r=r.child,r!==null))for(Nc(r,o,s),r=r.sibling;r!==null;)Nc(r,o,s),r=r.sibling}function Zg(r){var o=r.stateNode,s=r.memoizedProps;try{for(var d=r.type,S=o.attributes;S.length;)o.removeAttributeNode(S[0]);ja(o,d,s),o[rn]=r,o[Ja]=s}catch(T){tn(r,r.return,T)}}var po=!1,ta=!1,Fh=!1,Jg=typeof WeakSet=="function"?WeakSet:Set,xa=null;function jc(r,o){if(r=r.containerInfo,hm=fa,r=Po(r),Jf(r)){if("selectionStart"in r)var s={start:r.selectionStart,end:r.selectionEnd};else e:{s=(s=r.ownerDocument)&&s.defaultView||window;var d=s.getSelection&&s.getSelection();if(d&&d.rangeCount!==0){s=d.anchorNode;var S=d.anchorOffset,T=d.focusNode;d=d.focusOffset;try{s.nodeType,T.nodeType}catch{s=null;break e}var O=0,B=-1,W=-1,ye=0,Re=0,Me=r,ge=null;t:for(;;){for(var we;Me!==s||S!==0&&Me.nodeType!==3||(B=O+S),Me!==T||d!==0&&Me.nodeType!==3||(W=O+d),Me.nodeType===3&&(O+=Me.nodeValue.length),(we=Me.firstChild)!==null;)ge=Me,Me=we;for(;;){if(Me===r)break t;if(ge===s&&++ye===S&&(B=O),ge===T&&++Re===d&&(W=O),(we=Me.nextSibling)!==null)break;Me=ge,ge=Me.parentNode}Me=we}s=B===-1||W===-1?null:{start:B,end:W}}else s=null}s=s||{start:0,end:0}}else s=null;for(mm={focusedElem:r,selectionRange:s},fa=!1,xa=o;xa!==null;)if(o=xa,r=o.child,(o.subtreeFlags&1028)!==0&&r!==null)r.return=o,xa=r;else for(;xa!==null;){switch(o=xa,T=o.alternate,r=o.flags,o.tag){case 0:if((r&4)!==0&&(r=o.updateQueue,r=r!==null?r.events:null,r!==null))for(s=0;s<r.length;s++)S=r[s],S.ref.impl=S.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&T!==null){r=void 0,s=o,S=T.memoizedProps,T=T.memoizedState,d=s.stateNode;try{var Fe=au(s.type,S);r=d.getSnapshotBeforeUpdate(Fe,T),d.__reactInternalSnapshotBeforeUpdate=r}catch(rt){tn(s,s.return,rt)}}break;case 3:if((r&1024)!==0){if(r=o.stateNode.containerInfo,s=r.nodeType,s===9)Fd(r);else if(s===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Fd(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(u(163))}if(r=o.sibling,r!==null){r.return=o.return,xa=r;break}xa=o.return}}function qd(r,o,s){var d=s.flags;switch(s.tag){case 0:case 11:case 15:ho(r,s),d&4&&hl(5,s);break;case 1:if(ho(r,s),d&4)if(r=s.stateNode,o===null)try{r.componentDidMount()}catch(O){tn(s,s.return,O)}else{var S=au(s.type,o.memoizedProps);o=o.memoizedState;try{r.componentDidUpdate(S,o,r.__reactInternalSnapshotBeforeUpdate)}catch(O){tn(s,s.return,O)}}d&64&&Yh(s),d&512&&xi(s,s.return);break;case 3:if(ho(r,s),d&64&&(r=s.updateQueue,r!==null)){if(o=null,s.child!==null)switch(s.child.tag){case 27:case 5:o=s.child.stateNode;break;case 1:o=s.child.stateNode}try{eu(r,o)}catch(O){tn(s,s.return,O)}}break;case 27:o===null&&d&4&&Zg(s);case 26:case 5:ho(r,s),o===null&&d&4&&Fg(s),d&512&&xi(s,s.return);break;case 12:ho(r,s);break;case 31:ho(r,s),d&4&&qE(r,s);break;case 13:ho(r,s),d&4&&eb(r,s),d&64&&(r=s.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(s=Pr.bind(null,s),Fc(r,s))));break;case 22:if(d=s.memoizedState!==null||po,!d){o=o!==null&&o.memoizedState!==null||ta,S=po;var T=ta;po=d,(ta=o)&&!T?Hl(r,s,(s.subtreeFlags&8772)!==0):ho(r,s),po=S,ta=T}break;case 30:break;default:ho(r,s)}}function Kg(r){var o=r.alternate;o!==null&&(r.alternate=null,Kg(o)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(o=r.stateNode,o!==null&&Vp(o)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var hn=null,or=!1;function Ri(r,o,s){for(s=s.child;s!==null;)Wg(r,o,s),s=s.sibling}function Wg(r,o,s){if(Ae&&typeof Ae.onCommitFiberUnmount=="function")try{Ae.onCommitFiberUnmount(tt,s)}catch{}switch(s.tag){case 26:ta||$l(s,o),Ri(r,o,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:ta||$l(s,o);var d=hn,S=or;Gl(s.type)&&(hn=s.stateNode,or=!1),Ri(r,o,s),ds(s.stateNode),hn=d,or=S;break;case 5:ta||$l(s,o);case 6:if(d=hn,S=or,hn=null,Ri(r,o,s),hn=d,or=S,hn!==null)if(or)try{(hn.nodeType===9?hn.body:hn.nodeName==="HTML"?hn.ownerDocument.body:hn).removeChild(s.stateNode)}catch(T){tn(s,o,T)}else try{hn.removeChild(s.stateNode)}catch(T){tn(s,o,T)}break;case 18:hn!==null&&(or?(r=hn,wb(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,s.stateNode),lf(r)):wb(hn,s.stateNode));break;case 4:d=hn,S=or,hn=s.stateNode.containerInfo,or=!0,Ri(r,o,s),hn=d,or=S;break;case 0:case 11:case 14:case 15:Hr(2,s,o),ta||Hr(4,s,o),Ri(r,o,s);break;case 1:ta||($l(s,o),d=s.stateNode,typeof d.componentWillUnmount=="function"&&ou(s,o,d)),Ri(r,o,s);break;case 21:Ri(r,o,s);break;case 22:ta=(d=ta)||s.memoizedState!==null,Ri(r,o,s),ta=d;break;default:Ri(r,o,s)}}function qE(r,o){if(o.memoizedState===null&&(r=o.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{lf(r)}catch(s){tn(o,o.return,s)}}}function eb(r,o){if(o.memoizedState===null&&(r=o.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{lf(r)}catch(s){tn(o,o.return,s)}}function Dd(r){switch(r.tag){case 31:case 13:case 19:var o=r.stateNode;return o===null&&(o=r.stateNode=new Jg),o;case 22:return r=r.stateNode,o=r._retryCache,o===null&&(o=r._retryCache=new Jg),o;default:throw Error(u(435,r.tag))}}function Nd(r,o){var s=Dd(r);o.forEach(function(d){if(!s.has(d)){s.add(d);var S=KE.bind(null,r,d);d.then(S,S)}})}function ur(r,o){var s=o.deletions;if(s!==null)for(var d=0;d<s.length;d++){var S=s[d],T=r,O=o,B=O;e:for(;B!==null;){switch(B.tag){case 27:if(Gl(B.type)){hn=B.stateNode,or=!1;break e}break;case 5:hn=B.stateNode,or=!1;break e;case 3:case 4:hn=B.stateNode.containerInfo,or=!0;break e}B=B.return}if(hn===null)throw Error(u(160));Wg(T,O,S),hn=null,or=!1,T=S.alternate,T!==null&&(T.return=null),S.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)Qh(o,r),o=o.sibling}var vt=null;function Qh(r,o){var s=r.alternate,d=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:ur(o,r),gr(r),d&4&&(Hr(3,r,r.return),hl(3,r),Hr(5,r,r.return));break;case 1:ur(o,r),gr(r),d&512&&(ta||s===null||$l(s,s.return)),d&64&&po&&(r=r.updateQueue,r!==null&&(d=r.callbacks,d!==null&&(s=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=s===null?d:s.concat(d))));break;case 26:var S=vt;if(ur(o,r),gr(r),d&512&&(ta||s===null||$l(s,s.return)),d&4){var T=s!==null?s.memoizedState:null;if(d=r.memoizedState,s===null)if(d===null)if(r.stateNode===null){e:{d=r.type,s=r.memoizedProps,S=S.ownerDocument||S;t:switch(d){case"title":T=S.getElementsByTagName("title")[0],(!T||T[ri]||T[rn]||T.namespaceURI==="http://www.w3.org/2000/svg"||T.hasAttribute("itemprop"))&&(T=S.createElement(d),S.head.insertBefore(T,S.querySelector("head > title"))),ja(T,d,s),T[rn]=r,Jt(T),d=T;break e;case"link":var O=Ab("link","href",S).get(d+(s.href||""));if(O){for(var B=0;B<O.length;B++)if(T=O[B],T.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&T.getAttribute("rel")===(s.rel==null?null:s.rel)&&T.getAttribute("title")===(s.title==null?null:s.title)&&T.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){O.splice(B,1);break t}}T=S.createElement(d),ja(T,d,s),S.head.appendChild(T);break;case"meta":if(O=Ab("meta","content",S).get(d+(s.content||""))){for(B=0;B<O.length;B++)if(T=O[B],T.getAttribute("content")===(s.content==null?null:""+s.content)&&T.getAttribute("name")===(s.name==null?null:s.name)&&T.getAttribute("property")===(s.property==null?null:s.property)&&T.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&T.getAttribute("charset")===(s.charSet==null?null:s.charSet)){O.splice(B,1);break t}}T=S.createElement(d),ja(T,d,s),S.head.appendChild(T);break;default:throw Error(u(468,d))}T[rn]=r,Jt(T),d=T}r.stateNode=d}else Sm(S,r.type,r.stateNode);else r.stateNode=Cb(S,d,r.memoizedProps);else T!==d?(T===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):T.count--,d===null?Sm(S,r.type,r.stateNode):Cb(S,d,r.memoizedProps)):d===null&&r.stateNode!==null&&Xh(r,r.memoizedProps,s.memoizedProps)}break;case 27:ur(o,r),gr(r),d&512&&(ta||s===null||$l(s,s.return)),s!==null&&d&4&&Xh(r,r.memoizedProps,s.memoizedProps);break;case 5:if(ur(o,r),gr(r),d&512&&(ta||s===null||$l(s,s.return)),r.flags&32){S=r.stateNode;try{ii(S,"")}catch(Fe){tn(r,r.return,Fe)}}d&4&&r.stateNode!=null&&(S=r.memoizedProps,Xh(r,S,s!==null?s.memoizedProps:S)),d&1024&&(Fh=!0);break;case 6:if(ur(o,r),gr(r),d&4){if(r.stateNode===null)throw Error(u(162));d=r.memoizedProps,s=r.stateNode;try{s.nodeValue=d}catch(Fe){tn(r,r.return,Fe)}}break;case 3:if(ef=null,S=vt,vt=Va(o.containerInfo),ur(o,r),vt=S,gr(r),d&4&&s!==null&&s.memoizedState.isDehydrated)try{lf(o.containerInfo)}catch(Fe){tn(r,r.return,Fe)}Fh&&(Fh=!1,tb(r));break;case 4:d=vt,vt=Va(r.stateNode.containerInfo),ur(o,r),gr(r),vt=d;break;case 12:ur(o,r),gr(r);break;case 31:ur(o,r),gr(r),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,Nd(r,d)));break;case 13:ur(o,r),gr(r),r.child.flags&8192&&r.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(Vl=oe()),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,Nd(r,d)));break;case 22:S=r.memoizedState!==null;var W=s!==null&&s.memoizedState!==null,ye=po,Re=ta;if(po=ye||S,ta=Re||W,ur(o,r),ta=Re,po=ye,gr(r),d&8192)e:for(o=r.stateNode,o._visibility=S?o._visibility&-2:o._visibility|1,S&&(s===null||W||po||ta||ls(r)),s=null,o=r;;){if(o.tag===5||o.tag===26){if(s===null){W=s=o;try{if(T=W.stateNode,S)O=T.style,typeof O.setProperty=="function"?O.setProperty("display","none","important"):O.display="none";else{B=W.stateNode;var Me=W.memoizedProps.style,ge=Me!=null&&Me.hasOwnProperty("display")?Me.display:null;B.style.display=ge==null||typeof ge=="boolean"?"":(""+ge).trim()}}catch(Fe){tn(W,W.return,Fe)}}}else if(o.tag===6){if(s===null){W=o;try{W.stateNode.nodeValue=S?"":W.memoizedProps}catch(Fe){tn(W,W.return,Fe)}}}else if(o.tag===18){if(s===null){W=o;try{var we=W.stateNode;S?Zn(we,!0):Zn(W.stateNode,!1)}catch(Fe){tn(W,W.return,Fe)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===r)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break e;for(;o.sibling===null;){if(o.return===null||o.return===r)break e;s===o&&(s=null),o=o.return}s===o&&(s=null),o.sibling.return=o.return,o=o.sibling}d&4&&(d=r.updateQueue,d!==null&&(s=d.retryQueue,s!==null&&(d.retryQueue=null,Nd(r,s))));break;case 19:ur(o,r),gr(r),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,Nd(r,d)));break;case 30:break;case 21:break;default:ur(o,r),gr(r)}}function gr(r){var o=r.flags;if(o&2){try{for(var s,d=r.return;d!==null;){if(Qg(d)){s=d;break}d=d.return}if(s==null)throw Error(u(160));switch(s.tag){case 27:var S=s.stateNode,T=qc(r);Nc(r,T,S);break;case 5:var O=s.stateNode;s.flags&32&&(ii(O,""),s.flags&=-33);var B=qc(r);Nc(r,B,O);break;case 3:case 4:var W=s.stateNode.containerInfo,ye=qc(r);Dc(r,ye,W);break;default:throw Error(u(161))}}catch(Re){tn(r,r.return,Re)}r.flags&=-3}o&4096&&(r.flags&=-4097)}function tb(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var o=r;tb(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),r=r.sibling}}function ho(r,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)qd(r,o.alternate,o),o=o.sibling}function ls(r){for(r=r.child;r!==null;){var o=r;switch(o.tag){case 0:case 11:case 14:case 15:Hr(4,o,o.return),ls(o);break;case 1:$l(o,o.return);var s=o.stateNode;typeof s.componentWillUnmount=="function"&&ou(o,o.return,s),ls(o);break;case 27:ds(o.stateNode);case 26:case 5:$l(o,o.return),ls(o);break;case 22:o.memoizedState===null&&ls(o);break;case 30:ls(o);break;default:ls(o)}r=r.sibling}}function Hl(r,o,s){for(s=s&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var d=o.alternate,S=r,T=o,O=T.flags;switch(T.tag){case 0:case 11:case 15:Hl(S,T,s),hl(4,T);break;case 1:if(Hl(S,T,s),d=T,S=d.stateNode,typeof S.componentDidMount=="function")try{S.componentDidMount()}catch(ye){tn(d,d.return,ye)}if(d=T,S=d.updateQueue,S!==null){var B=d.stateNode;try{var W=S.shared.hiddenCallbacks;if(W!==null)for(S.shared.hiddenCallbacks=null,S=0;S<W.length;S++)Sh(W[S],B)}catch(ye){tn(d,d.return,ye)}}s&&O&64&&Yh(T),xi(T,T.return);break;case 27:Zg(T);case 26:case 5:Hl(S,T,s),s&&d===null&&O&4&&Fg(T),xi(T,T.return);break;case 12:Hl(S,T,s);break;case 31:Hl(S,T,s),s&&O&4&&qE(S,T);break;case 13:Hl(S,T,s),s&&O&4&&eb(S,T);break;case 22:T.memoizedState===null&&Hl(S,T,s),xi(T,T.return);break;case 30:break;default:Hl(S,T,s)}o=o.sibling}}function Zh(r,o){var s=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(s=r.memoizedState.cachePool.pool),r=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(r=o.memoizedState.cachePool.pool),r!==s&&(r!=null&&r.refCount++,s!=null&&od(s))}function Jh(r,o){r=null,o.alternate!==null&&(r=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==r&&(o.refCount++,r!=null&&od(r))}function ml(r,o,s,d){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)zc(r,o,s,d),o=o.sibling}function zc(r,o,s,d){var S=o.flags;switch(o.tag){case 0:case 11:case 15:ml(r,o,s,d),S&2048&&hl(9,o);break;case 1:ml(r,o,s,d);break;case 3:ml(r,o,s,d),S&2048&&(r=null,o.alternate!==null&&(r=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==r&&(o.refCount++,r!=null&&od(r)));break;case 12:if(S&2048){ml(r,o,s,d),r=o.stateNode;try{var T=o.memoizedProps,O=T.id,B=T.onPostCommit;typeof B=="function"&&B(O,o.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(W){tn(o,o.return,W)}}else ml(r,o,s,d);break;case 31:ml(r,o,s,d);break;case 13:ml(r,o,s,d);break;case 23:break;case 22:T=o.stateNode,O=o.alternate,o.memoizedState!==null?T._visibility&2?ml(r,o,s,d):jd(r,o):T._visibility&2?ml(r,o,s,d):(T._visibility|=2,kc(r,o,s,d,(o.subtreeFlags&10256)!==0||!1)),S&2048&&Zh(O,o);break;case 24:ml(r,o,s,d),S&2048&&Jh(o.alternate,o);break;default:ml(r,o,s,d)}}function kc(r,o,s,d,S){for(S=S&&((o.subtreeFlags&10256)!==0||!1),o=o.child;o!==null;){var T=r,O=o,B=s,W=d,ye=O.flags;switch(O.tag){case 0:case 11:case 15:kc(T,O,B,W,S),hl(8,O);break;case 23:break;case 22:var Re=O.stateNode;O.memoizedState!==null?Re._visibility&2?kc(T,O,B,W,S):jd(T,O):(Re._visibility|=2,kc(T,O,B,W,S)),S&&ye&2048&&Zh(O.alternate,O);break;case 24:kc(T,O,B,W,S),S&&ye&2048&&Jh(O.alternate,O);break;default:kc(T,O,B,W,S)}o=o.sibling}}function jd(r,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var s=r,d=o,S=d.flags;switch(d.tag){case 22:jd(s,d),S&2048&&Zh(d.alternate,d);break;case 24:jd(s,d),S&2048&&Jh(d.alternate,d);break;default:jd(s,d)}o=o.sibling}}var br=8192;function Ci(r,o,s){if(r.subtreeFlags&br)for(r=r.child;r!==null;)DE(r,o,s),r=r.sibling}function DE(r,o,s){switch(r.tag){case 26:Ci(r,o,s),r.flags&br&&r.memoizedState!==null&&qi(s,vt,r.memoizedState,r.memoizedProps);break;case 5:Ci(r,o,s);break;case 3:case 4:var d=vt;vt=Va(r.stateNode.containerInfo),Ci(r,o,s),vt=d;break;case 22:r.memoizedState===null&&(d=r.alternate,d!==null&&d.memoizedState!==null?(d=br,br=16777216,Ci(r,o,s),br=d):Ci(r,o,s));break;default:Ci(r,o,s)}}function Kh(r){var o=r.alternate;if(o!==null&&(r=o.child,r!==null)){o.child=null;do o=r.sibling,r.sibling=null,r=o;while(r!==null)}}function Bc(r){var o=r.deletions;if((r.flags&16)!==0){if(o!==null)for(var s=0;s<o.length;s++){var d=o[s];xa=d,Wh(d,r)}Kh(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)nb(r),r=r.sibling}function nb(r){switch(r.tag){case 0:case 11:case 15:Bc(r),r.flags&2048&&Hr(9,r,r.return);break;case 3:Bc(r);break;case 12:Bc(r);break;case 22:var o=r.stateNode;r.memoizedState!==null&&o._visibility&2&&(r.return===null||r.return.tag!==13)?(o._visibility&=-3,zd(r)):Bc(r);break;default:Bc(r)}}function zd(r){var o=r.deletions;if((r.flags&16)!==0){if(o!==null)for(var s=0;s<o.length;s++){var d=o[s];xa=d,Wh(d,r)}Kh(r)}for(r=r.child;r!==null;){switch(o=r,o.tag){case 0:case 11:case 15:Hr(8,o,o.return),zd(o);break;case 22:s=o.stateNode,s._visibility&2&&(s._visibility&=-3,zd(o));break;default:zd(o)}r=r.sibling}}function Wh(r,o){for(;xa!==null;){var s=xa;switch(s.tag){case 0:case 11:case 15:Hr(8,s,o);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var d=s.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:od(s.memoizedState.cache)}if(d=s.child,d!==null)d.return=s,xa=d;else e:for(s=r;xa!==null;){d=xa;var S=d.sibling,T=d.return;if(Kg(d),d===s){xa=null;break e}if(S!==null){S.return=T,xa=S;break e}xa=T}}}var NE={getCacheForType:function(r){var o=Oe(Xn),s=o.data.get(r);return s===void 0&&(s=r(),o.data.set(r,s)),s},cacheSignal:function(){return Oe(Xn).controller.signal}},ab=typeof WeakMap=="function"?WeakMap:Map,It=0,on=null,qt=null,At=0,en=0,it=null,Ai=!1,uu=!1,em=!1,Pl=0,mn=0,Il=0,is=0,tm=0,sr=0,kn=0,kd=null,Bn=null,nm=!1,Vl=0,rb=0,Yt=1/0,Uc=null,On=null,ca=0,mo=null,su=null,_i=0,vr=0,am=null,rm=null,Lc=0,Bd=null;function Sr(){return(It&2)!==0&&At!==0?At&-At:P.T!==null?sm():Pp()}function jE(){if(sr===0)if((At&536870912)===0||Ot){var r=An;An<<=1,(An&3932160)===0&&(An=262144),sr=r}else sr=536870912;return r=ar.current,r!==null&&(r.flags|=32),sr}function cr(r,o,s){(r===on&&(en===2||en===9)||r.cancelPendingCommit!==null)&&(Mi(r,0),yo(r,At,sr,!1)),al(r,s),((It&2)===0||r!==on)&&(r===on&&((It&2)===0&&(is|=s),mn===4&&yo(r,At,sr,!1)),Oi(r))}function zE(r,o,s){if((It&6)!==0)throw Error(u(327));var d=!s&&(o&127)===0&&(o&r.expiredLanes)===0||Wn(r,o),S=d?$E(r,o):im(r,o,!0),T=d;do{if(S===0){uu&&!d&&yo(r,o,0,!1);break}else{if(s=r.current.alternate,T&&!kE(s)){S=im(r,o,!1),T=!1;continue}if(S===2){if(T=o,r.errorRecoveryDisabledLanes&T)var O=0;else O=r.pendingLanes&-536870913,O=O!==0?O:O&536870912?536870912:0;if(O!==0){o=O;e:{var B=r;S=kd;var W=B.current.memoizedState.isDehydrated;if(W&&(Mi(B,O).flags|=256),O=im(B,O,!1),O!==2){if(em&&!W){B.errorRecoveryDisabledLanes|=T,is|=T,S=4;break e}T=Bn,Bn=S,T!==null&&(Bn===null?Bn=T:Bn.push.apply(Bn,T))}S=O}if(T=!1,S!==2)continue}}if(S===1){Mi(r,0),yo(r,o,0,!0);break}e:{switch(d=r,T=S,T){case 0:case 1:throw Error(u(345));case 4:if((o&4194048)!==o)break;case 6:yo(d,o,sr,!Ai);break e;case 2:Bn=null;break;case 3:case 5:break;default:throw Error(u(329))}if((o&62914560)===o&&(S=Vl+300-oe(),10<S)){if(yo(d,o,sr,!Ai),$t(d,0,!0)!==0)break e;_i=o,d.timeoutHandle=Xd(Ud.bind(null,d,s,Bn,Uc,nm,o,sr,is,kn,Ai,T,"Throttled",-0,0),S);break e}Ud(d,s,Bn,Uc,nm,o,sr,is,kn,Ai,T,null,-0,0)}}break}while(!0);Oi(r)}function Ud(r,o,s,d,S,T,O,B,W,ye,Re,Me,ge,we){if(r.timeoutHandle=-1,Me=o.subtreeFlags,Me&8192||(Me&16785408)===16785408){Me={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Cl},DE(o,T,Me);var Fe=(T&62914560)===T?Vl-oe():(T&4194048)===T?rb-oe():0;if(Fe=Mb(Me,Fe),Fe!==null){_i=T,r.cancelPendingCommit=Fe(VE.bind(null,r,o,T,s,d,S,O,B,W,Re,Me,null,ge,we)),yo(r,T,O,!ye);return}}VE(r,o,T,s,d,S,O,B,W)}function kE(r){for(var o=r;;){var s=o.tag;if((s===0||s===11||s===15)&&o.flags&16384&&(s=o.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var d=0;d<s.length;d++){var S=s[d],T=S.getSnapshot;S=S.value;try{if(!Pa(T(),S))return!1}catch{return!1}}if(s=o.child,o.subtreeFlags&16384&&s!==null)s.return=o,o=s;else{if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function yo(r,o,s,d){o&=~tm,o&=~is,r.suspendedLanes|=o,r.pingedLanes&=~o,d&&(r.warmLanes|=o),d=r.expirationTimes;for(var S=o;0<S;){var T=31-$e(S),O=1<<T;d[T]=-1,S&=~O}s!==0&&xl(r,s,o)}function $c(){return(It&6)===0?(bo(0),!1):!0}function lb(){if(qt!==null){if(en===0)var r=qt.return;else r=qt,zl=ro=null,gd(r),Zo=null,Fu=0,r=qt;for(;r!==null;)OE(r.alternate,r),r=r.return;qt=null}}function Mi(r,o){var s=r.timeoutHandle;s!==-1&&(r.timeoutHandle=-1,iT(s)),s=r.cancelPendingCommit,s!==null&&(r.cancelPendingCommit=null,s()),_i=0,lb(),on=r,qt=s=no(r.current,null),At=o,en=0,it=null,Ai=!1,uu=Wn(r,o),em=!1,kn=sr=tm=is=Il=mn=0,Bn=kd=null,nm=!1,(o&8)!==0&&(o|=o&32);var d=r.entangledLanes;if(d!==0)for(r=r.entanglements,d&=o;0<d;){var S=31-$e(d),T=1<<S;o|=r[S],d&=~T}return Pl=o,Or(),s}function Hc(r,o){bt=null,P.H=Rd,o===Xo||o===bc?(o=hg(),en=3):o===Yu?(o=hg(),en=4):en=o===Hh?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,it=o,qt===null&&(mn=1,Mc(r,Dr(o,r.current)))}function BE(){var r=ar.current;return r===null?!0:(At&4194048)===At?Br===null:(At&62914560)===At||(At&536870912)!==0?r===Br:!1}function UE(){var r=P.H;return P.H=Rd,r===null?Rd:r}function LE(){var r=P.A;return P.A=NE,r}function lm(){mn=4,Ai||(At&4194048)!==At&&ar.current!==null||(uu=!0),(Il&134217727)===0&&(is&134217727)===0||on===null||yo(on,At,sr,!1)}function im(r,o,s){var d=It;It|=2;var S=UE(),T=LE();(on!==r||At!==o)&&(Uc=null,Mi(r,o)),o=!1;var O=mn;e:do try{if(en!==0&&qt!==null){var B=qt,W=it;switch(en){case 8:lb(),O=6;break e;case 3:case 2:case 9:case 6:ar.current===null&&(o=!0);var ye=en;if(en=0,it=null,os(r,B,W,ye),s&&uu){O=0;break e}break;default:ye=en,en=0,it=null,os(r,B,W,ye)}}Lx(),O=mn;break}catch(Re){Hc(r,Re)}while(!0);return o&&r.shellSuspendCounter++,zl=ro=null,It=d,P.H=S,P.A=T,qt===null&&(on=null,At=0,Or()),O}function Lx(){for(;qt!==null;)HE(qt)}function $E(r,o){var s=It;It|=2;var d=UE(),S=LE();on!==r||At!==o?(Uc=null,Yt=oe()+500,Mi(r,o)):uu=Wn(r,o);e:do try{if(en!==0&&qt!==null){o=qt;var T=it;t:switch(en){case 1:en=0,it=null,os(r,o,T,1);break;case 2:case 9:if(dg(T)){en=0,it=null,PE(o);break}o=function(){en!==2&&en!==9||on!==r||(en=7),Oi(r)},T.then(o,o);break e;case 3:en=7;break e;case 4:en=5;break e;case 7:dg(T)?(en=0,it=null,PE(o)):(en=0,it=null,os(r,o,T,7));break;case 5:var O=null;switch(qt.tag){case 26:O=qt.memoizedState;case 5:case 27:var B=qt;if(O?Tr(O):B.stateNode.complete){en=0,it=null;var W=B.sibling;if(W!==null)qt=W;else{var ye=B.return;ye!==null?(qt=ye,Ld(ye)):qt=null}break t}}en=0,it=null,os(r,o,T,5);break;case 6:en=0,it=null,os(r,o,T,6);break;case 8:lb(),mn=6;break e;default:throw Error(u(462))}}cu();break}catch(Re){Hc(r,Re)}while(!0);return zl=ro=null,P.H=d,P.A=S,It=s,qt!==null?0:(on=null,At=0,Or(),mn)}function cu(){for(;qt!==null&&!Za();)HE(qt)}function HE(r){var o=Gg(r.alternate,r,Pl);r.memoizedProps=r.pendingProps,o===null?Ld(r):qt=o}function PE(r){var o=r,s=o.alternate;switch(o.tag){case 15:case 0:o=lu(s,o,o.pendingProps,o.type,void 0,At);break;case 11:o=lu(s,o,o.pendingProps,o.type.render,o.ref,At);break;case 5:gd(o);default:OE(s,o),o=qt=lg(o,Pl),o=Gg(s,o,Pl)}r.memoizedProps=r.pendingProps,o===null?Ld(r):qt=o}function os(r,o,s,d){zl=ro=null,gd(o),Zo=null,Fu=0;var S=o.return;try{if(Ux(r,S,o,s,At)){mn=1,Mc(r,Dr(s,r.current)),qt=null;return}}catch(T){if(S!==null)throw qt=S,T;mn=1,Mc(r,Dr(s,r.current)),qt=null;return}o.flags&32768?(Ot||d===1?r=!0:uu||(At&536870912)!==0?r=!1:(Ai=r=!0,(d===2||d===9||d===3||d===6)&&(d=ar.current,d!==null&&d.tag===13&&(d.flags|=16384))),IE(o,r)):Ld(o)}function Ld(r){var o=r;do{if((o.flags&32768)!==0){IE(o,Ai);return}r=o.return;var s=_E(o.alternate,o,Pl);if(s!==null){qt=s;return}if(o=o.sibling,o!==null){qt=o;return}qt=o=r}while(o!==null);mn===0&&(mn=5)}function IE(r,o){do{var s=ME(r.alternate,r);if(s!==null){s.flags&=32767,qt=s;return}if(s=r.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!o&&(r=r.sibling,r!==null)){qt=r;return}qt=r=s}while(r!==null);mn=6,qt=null}function VE(r,o,s,d,S,T,O,B,W){r.cancelPendingCommit=null;do Pc();while(ca!==0);if((It&6)!==0)throw Error(u(327));if(o!==null){if(o===r.current)throw Error(u(177));if(T=o.lanes|o.childLanes,T|=sl,rl(r,s,T,O,B,W),r===on&&(qt=on=null,At=0),su=o,mo=r,_i=s,vr=T,am=S,rm=d,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,WE(ee,function(){return QE(),null})):(r.callbackNode=null,r.callbackPriority=0),d=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||d){d=P.T,P.T=null,S=ue.p,ue.p=2,O=It,It|=4;try{jc(r,o,s)}finally{It=O,ue.p=S,P.T=d}}ca=1,GE(),YE(),XE()}}function GE(){if(ca===1){ca=0;var r=mo,o=su,s=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||s){s=P.T,P.T=null;var d=ue.p;ue.p=2;var S=It;It|=4;try{Qh(o,r);var T=mm,O=Po(r.containerInfo),B=T.focusedElem,W=T.selectionRange;if(O!==B&&B&&B.ownerDocument&&Uu(B.ownerDocument.documentElement,B)){if(W!==null&&Jf(B)){var ye=W.start,Re=W.end;if(Re===void 0&&(Re=ye),"selectionStart"in B)B.selectionStart=ye,B.selectionEnd=Math.min(Re,B.value.length);else{var Me=B.ownerDocument||document,ge=Me&&Me.defaultView||window;if(ge.getSelection){var we=ge.getSelection(),Fe=B.textContent.length,rt=Math.min(W.start,Fe),sn=W.end===void 0?rt:Math.min(W.end,Fe);!we.extend&&rt>sn&&(O=sn,sn=rt,rt=O);var fe=ag(B,rt),re=ag(B,sn);if(fe&&re&&(we.rangeCount!==1||we.anchorNode!==fe.node||we.anchorOffset!==fe.offset||we.focusNode!==re.node||we.focusOffset!==re.offset)){var he=Me.createRange();he.setStart(fe.node,fe.offset),we.removeAllRanges(),rt>sn?(we.addRange(he),we.extend(re.node,re.offset)):(he.setEnd(re.node,re.offset),we.addRange(he))}}}}for(Me=[],we=B;we=we.parentNode;)we.nodeType===1&&Me.push({element:we,left:we.scrollLeft,top:we.scrollTop});for(typeof B.focus=="function"&&B.focus(),B=0;B<Me.length;B++){var _e=Me[B];_e.element.scrollLeft=_e.left,_e.element.scrollTop=_e.top}}fa=!!hm,mm=hm=null}finally{It=S,ue.p=d,P.T=s}}r.current=o,ca=2}}function YE(){if(ca===2){ca=0;var r=mo,o=su,s=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||s){s=P.T,P.T=null;var d=ue.p;ue.p=2;var S=It;It|=4;try{qd(r,o.alternate,o)}finally{It=S,ue.p=d,P.T=s}}ca=3}}function XE(){if(ca===4||ca===3){ca=0,ni();var r=mo,o=su,s=_i,d=rm;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?ca=5:(ca=0,su=mo=null,FE(r,r.pendingLanes));var S=r.pendingLanes;if(S===0&&(On=null),qy(s),o=o.stateNode,Ae&&typeof Ae.onCommitFiberRoot=="function")try{Ae.onCommitFiberRoot(tt,o,void 0,(o.current.flags&128)===128)}catch{}if(d!==null){o=P.T,S=ue.p,ue.p=2,P.T=null;try{for(var T=r.onRecoverableError,O=0;O<d.length;O++){var B=d[O];T(B.value,{componentStack:B.stack})}}finally{P.T=o,ue.p=S}}(_i&3)!==0&&Pc(),Oi(r),S=r.pendingLanes,(s&261930)!==0&&(S&42)!==0?r===Bd?Lc++:(Lc=0,Bd=r):Lc=0,bo(0)}}function FE(r,o){(r.pooledCacheLanes&=o)===0&&(o=r.pooledCache,o!=null&&(r.pooledCache=null,od(o)))}function Pc(){return GE(),YE(),XE(),QE()}function QE(){if(ca!==5)return!1;var r=mo,o=vr;vr=0;var s=qy(_i),d=P.T,S=ue.p;try{ue.p=32>s?32:s,P.T=null,s=am,am=null;var T=mo,O=_i;if(ca=0,su=mo=null,_i=0,(It&6)!==0)throw Error(u(331));var B=It;if(It|=4,nb(T.current),zc(T,T.current,O,s),It=B,bo(0,!1),Ae&&typeof Ae.onPostCommitFiberRoot=="function")try{Ae.onPostCommitFiberRoot(tt,T)}catch{}return!0}finally{ue.p=S,P.T=d,FE(r,o)}}function ZE(r,o,s){o=Dr(s,o),o=kg(r.stateNode,o,2),r=kr(r,o,2),r!==null&&(al(r,2),Oi(r))}function tn(r,o,s){if(r.tag===3)ZE(r,r,s);else for(;o!==null;){if(o.tag===3){ZE(o,r,s);break}else if(o.tag===1){var d=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(On===null||!On.has(d))){r=Dr(s,r),s=Bg(2),d=kr(o,s,2),d!==null&&(Ug(s,d,o,r),al(d,2),Oi(d));break}}o=o.return}}function $d(r,o,s){var d=r.pingCache;if(d===null){d=r.pingCache=new ab;var S=new Set;d.set(o,S)}else S=d.get(o),S===void 0&&(S=new Set,d.set(o,S));S.has(s)||(em=!0,S.add(s),r=ib.bind(null,r,o,s),o.then(r,r))}function ib(r,o,s){var d=r.pingCache;d!==null&&d.delete(o),r.pingedLanes|=r.suspendedLanes&s,r.warmLanes&=~s,on===r&&(At&s)===s&&(mn===4||mn===3&&(At&62914560)===At&&300>oe()-Vl?(It&2)===0&&Mi(r,0):tm|=s,kn===At&&(kn=0)),Oi(r)}function JE(r,o){o===0&&(o=ze()),r=to(r,o),r!==null&&(al(r,o),Oi(r))}function Pr(r){var o=r.memoizedState,s=0;o!==null&&(s=o.retryLane),JE(r,s)}function KE(r,o){var s=0;switch(r.tag){case 31:case 13:var d=r.stateNode,S=r.memoizedState;S!==null&&(s=S.retryLane);break;case 19:d=r.stateNode;break;case 22:d=r.stateNode._retryCache;break;default:throw Error(u(314))}d!==null&&d.delete(o),JE(r,s)}function WE(r,o){return yt(r,o)}var Ic=null,us=null,ob=!1,om=!1,ub=!1,go=0;function Oi(r){r!==us&&r.next===null&&(us===null?Ic=us=r:us=us.next=r),om=!0,ob||(ob=!0,Pd())}function bo(r,o){if(!ub&&om){ub=!0;do for(var s=!1,d=Ic;d!==null;){if(r!==0){var S=d.pendingLanes;if(S===0)var T=0;else{var O=d.suspendedLanes,B=d.pingedLanes;T=(1<<31-$e(42|r)+1)-1,T&=S&~(O&~B),T=T&201326741?T&201326741|1:T?T|2:0}T!==0&&(s=!0,ss(d,T))}else T=At,T=$t(d,d===on?T:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(T&3)===0||Wn(d,T)||(s=!0,ss(d,T));d=d.next}while(s);ub=!1}}function um(){sb()}function sb(){om=ob=!1;var r=0;go!==0&&$x()&&(r=go);for(var o=oe(),s=null,d=Ic;d!==null;){var S=d.next,T=cb(d,o);T===0?(d.next=null,s===null?Ic=S:s.next=S,S===null&&(us=s)):(s=d,(r!==0||(T&3)!==0)&&(om=!0)),d=S}ca!==0&&ca!==5||bo(r),go!==0&&(go=0)}function cb(r,o){for(var s=r.suspendedLanes,d=r.pingedLanes,S=r.expirationTimes,T=r.pendingLanes&-62914561;0<T;){var O=31-$e(T),B=1<<O,W=S[O];W===-1?((B&s)===0||(B&d)!==0)&&(S[O]=Ln(B,o)):W<=o&&(r.expiredLanes|=B),T&=~B}if(o=on,s=At,s=$t(r,r===o?s:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),d=r.callbackNode,s===0||r===o&&(en===2||en===9)||r.cancelPendingCommit!==null)return d!==null&&d!==null&&ya(d),r.callbackNode=null,r.callbackPriority=0;if((s&3)===0||Wn(r,s)){if(o=s&-s,o===r.callbackPriority)return o;switch(d!==null&&ya(d),qy(s)){case 2:case 8:s=Be;break;case 32:s=ee;break;case 268435456:s=Rn;break;default:s=ee}return d=Hd.bind(null,r),s=yt(s,d),r.callbackPriority=o,r.callbackNode=s,o}return d!==null&&d!==null&&ya(d),r.callbackPriority=2,r.callbackNode=null,2}function Hd(r,o){if(ca!==0&&ca!==5)return r.callbackNode=null,r.callbackPriority=0,null;var s=r.callbackNode;if(Pc()&&r.callbackNode!==s)return null;var d=At;return d=$t(r,r===on?d:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),d===0?null:(zE(r,d,o),cb(r,oe()),r.callbackNode!=null&&r.callbackNode===s?Hd.bind(null,r):null)}function ss(r,o){if(Pc())return null;zE(r,o,!0)}function Pd(){oT(function(){(It&6)!==0?yt(qe,um):sb()})}function sm(){if(go===0){var r=Yo;r===0&&(r=$a,$a<<=1,($a&261888)===0&&($a=256)),go=r}return go}function eT(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:ll(""+r)}function cs(r,o){var s=o.ownerDocument.createElement("input");return s.name=o.name,s.value=o.value,r.id&&s.setAttribute("form",r.id),o.parentNode.insertBefore(s,o),r=new FormData(r),s.parentNode.removeChild(s),r}function Id(r,o,s,d,S){if(o==="submit"&&s&&s.stateNode===S){var T=eT((S[Ja]||null).action),O=d.submitter;O&&(o=(o=O[Ja]||null)?eT(o.formAction):O.getAttribute("formAction"),o!==null&&(T=o,O=null));var B=new Ff("action","action",null,d,S);r.push({event:B,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(go!==0){var W=O?cs(S,O):new FormData(S);Ac(s,{pending:!0,data:W,method:S.method,action:T},null,W)}}else typeof T=="function"&&(B.preventDefault(),W=O?cs(S,O):new FormData(S),Ac(s,{pending:!0,data:W,method:S.method,action:T},T,W))},currentTarget:S}]})}}for(var cm=0;cm<dc.length;cm++){var Vc=dc[cm],fb=Vc.toLowerCase(),db=Vc[0].toUpperCase()+Vc.slice(1);Wa(fb,"on"+db)}Wa(Wf,"onAnimationEnd"),Wa(rg,"onAnimationIteration"),Wa(ch,"onAnimationStart"),Wa("dblclick","onDoubleClick"),Wa("focusin","onFocus"),Wa("focusout","onBlur"),Wa(Lu,"onTransitionRun"),Wa(ed,"onTransitionStart"),Wa(ci,"onTransitionCancel"),Wa(fE,"onTransitionEnd"),li("onMouseEnter",["mouseout","mouseover"]),li("onMouseLeave",["mouseout","mouseover"]),li("onPointerEnter",["pointerout","pointerover"]),li("onPointerLeave",["pointerout","pointerover"]),Bo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Bo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Bo("onBeforeInput",["compositionend","keypress","textInput","paste"]),Bo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Bo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Bo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gc="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(" "),tT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Gc));function nT(r,o){o=(o&4)!==0;for(var s=0;s<r.length;s++){var d=r[s],S=d.event;d=d.listeners;e:{var T=void 0;if(o)for(var O=d.length-1;0<=O;O--){var B=d[O],W=B.instance,ye=B.currentTarget;if(B=B.listener,W!==T&&S.isPropagationStopped())break e;T=B,S.currentTarget=ye;try{T(S)}catch(Re){$u(Re)}S.currentTarget=null,T=W}else for(O=0;O<d.length;O++){if(B=d[O],W=B.instance,ye=B.currentTarget,B=B.listener,W!==T&&S.isPropagationStopped())break e;T=B,S.currentTarget=ye;try{T(S)}catch(Re){$u(Re)}S.currentTarget=null,T=W}}}}function Mt(r,o){var s=o[Ip];s===void 0&&(s=o[Ip]=new Set);var d=r+"__bubble";s.has(d)||(Vd(o,r,2,!1),s.add(d))}function pb(r,o,s){var d=0;o&&(d|=4),Vd(s,r,d,o)}var fm="_reactListening"+Math.random().toString(36).slice(2);function Yc(r){if(!r[fm]){r[fm]=!0,_u.forEach(function(s){s!=="selectionchange"&&(tT.has(s)||pb(s,!1,r),pb(s,!0,r))});var o=r.nodeType===9?r:r.ownerDocument;o===null||o[fm]||(o[fm]=!0,pb("selectionchange",!1,o))}}function Vd(r,o,s,d){switch(Wd(o)){case 2:var S=Di;break;case 8:S=Ni;break;default:S=za}s=S.bind(null,o,s,r),S=void 0,!Yf||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(S=!0),d?S!==void 0?r.addEventListener(o,s,{capture:!0,passive:S}):r.addEventListener(o,s,!0):S!==void 0?r.addEventListener(o,s,{passive:S}):r.addEventListener(o,s,!1)}function hb(r,o,s,d,S){var T=d;if((o&1)===0&&(o&2)===0&&d!==null)e:for(;;){if(d===null)return;var O=d.tag;if(O===3||O===4){var B=d.stateNode.containerInfo;if(B===S)break;if(O===4)for(O=d.return;O!==null;){var W=O.tag;if((W===3||W===4)&&O.stateNode.containerInfo===S)return;O=O.return}for(;B!==null;){if(O=Ru(B),O===null)return;if(W=O.tag,W===5||W===6||W===26||W===27){d=T=O;continue e}B=B.parentNode}}d=d.return}$y(function(){var ye=T,Re=Jp(s),Me=[];e:{var ge=fi.get(r);if(ge!==void 0){var we=Ff,Fe=r;switch(r){case"keypress":if(Wp(s)===0)break e;case"keydown":case"keyup":we=ah;break;case"focusin":Fe="focus",we=th;break;case"focusout":Fe="blur",we=th;break;case"beforeblur":case"afterblur":we=th;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":we=oc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":we=WS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":we=rE;break;case Wf:case rg:case ch:we=tE;break;case fE:we=jx;break;case"scroll":case"scrollend":we=Dx;break;case"wheel":we=zx;break;case"copy":case"cut":case"paste":we=Du;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":we=Ml;break;case"toggle":case"beforetoggle":we=Qy}var rt=(o&4)!==0,sn=!rt&&(r==="scroll"||r==="scrollend"),fe=rt?ge!==null?ge+"Capture":null:ge;rt=[];for(var re=ye,he;re!==null;){var _e=re;if(he=_e.stateNode,_e=_e.tag,_e!==5&&_e!==26&&_e!==27||he===null||fe===null||(_e=ba(re,fe),_e!=null&&rt.push(Gd(re,_e,he))),sn)break;re=re.return}0<rt.length&&(ge=new we(ge,Fe,null,s,Re),Me.push({event:ge,listeners:rt}))}}if((o&7)===0){e:{if(ge=r==="mouseover"||r==="pointerover",we=r==="mouseout"||r==="pointerout",ge&&s!==Zp&&(Fe=s.relatedTarget||s.fromElement)&&(Ru(Fe)||Fe[zo]))break e;if((we||ge)&&(ge=Re.window===Re?Re:(ge=Re.ownerDocument)?ge.defaultView||ge.parentWindow:window,we?(Fe=s.relatedTarget||s.toElement,we=ye,Fe=Fe?Ru(Fe):null,Fe!==null&&(sn=m(Fe),rt=Fe.tag,Fe!==sn||rt!==5&&rt!==27&&rt!==6)&&(Fe=null)):(we=null,Fe=ye),we!==Fe)){if(rt=oc,_e="onMouseLeave",fe="onMouseEnter",re="mouse",(r==="pointerout"||r==="pointerover")&&(rt=Ml,_e="onPointerLeave",fe="onPointerEnter",re="pointer"),sn=we==null?ge:Ws(we),he=Fe==null?ge:Ws(Fe),ge=new rt(_e,re+"leave",we,s,Re),ge.target=sn,ge.relatedTarget=he,_e=null,Ru(Re)===ye&&(rt=new rt(fe,re+"enter",Fe,s,Re),rt.target=he,rt.relatedTarget=sn,_e=rt),sn=_e,we&&Fe)t:{for(rt=aT,fe=we,re=Fe,he=0,_e=fe;_e;_e=rt(_e))he++;_e=0;for(var We=re;We;We=rt(We))_e++;for(;0<he-_e;)fe=rt(fe),he--;for(;0<_e-he;)re=rt(re),_e--;for(;he--;){if(fe===re||re!==null&&fe===re.alternate){rt=fe;break t}fe=rt(fe),re=rt(re)}rt=null}else rt=null;we!==null&&dm(Me,ge,we,rt,!1),Fe!==null&&sn!==null&&dm(Me,sn,Fe,rt,!0)}}e:{if(ge=ye?Ws(ye):window,we=ge.nodeName&&ge.nodeName.toLowerCase(),we==="select"||we==="input"&&ge.type==="file")var Ht=eg;else if(si(ge))if(ih)Ht=Bu;else{Ht=sE;var Qe=uE}else we=ge.nodeName,!we||we.toLowerCase()!=="input"||ge.type!=="checkbox"&&ge.type!=="radio"?ye&&Ly(ye.elementType)&&(Ht=eg):Ht=Ho;if(Ht&&(Ht=Ht(r,ye))){Wy(Me,Ht,s,Re);break e}Qe&&Qe(r,ge,ye),r==="focusout"&&ye&&ge.type==="number"&&ye.memoizedProps.value!=null&&Mu(ge,"number",ge.value)}switch(Qe=ye?Ws(ye):window,r){case"focusin":(si(Qe)||Qe.contentEditable==="true")&&(Io=Qe,cc=ye,ul=null);break;case"focusout":ul=cc=Io=null;break;case"mousedown":ql=!0;break;case"contextmenu":case"mouseup":case"dragend":ql=!1,sh(Me,s,Re);break;case"selectionchange":if(Kf)break;case"keydown":case"keyup":sh(Me,s,Re)}var gt;if(uc)e:{switch(r){case"compositionstart":var St="onCompositionStart";break e;case"compositionend":St="onCompositionEnd";break e;case"compositionupdate":St="onCompositionUpdate";break e}St=void 0}else ju?lh(r,s)&&(St="onCompositionEnd"):r==="keydown"&&s.keyCode===229&&(St="onCompositionStart");St&&(Zy&&s.locale!=="ko"&&(ju||St!=="onCompositionStart"?St==="onCompositionEnd"&&ju&&(gt=Py()):(Wi=Re,Hy="value"in Wi?Wi.value:Wi.textContent,ju=!0)),Qe=Yd(ye,St),0<Qe.length&&(St=new nE(St,r,null,s,Re),Me.push({event:St,listeners:Qe}),gt?St.data=gt:(gt=Jy(s),gt!==null&&(St.data=gt)))),(gt=Ha?oE(r,s):kx(r,s))&&(St=Yd(ye,"onBeforeInput"),0<St.length&&(Qe=new nE("onBeforeInput","beforeinput",null,s,Re),Me.push({event:Qe,listeners:St}),Qe.data=gt)),Id(Me,r,ye,s,Re)}nT(Me,o)})}function Gd(r,o,s){return{instance:r,listener:o,currentTarget:s}}function Yd(r,o){for(var s=o+"Capture",d=[];r!==null;){var S=r,T=S.stateNode;if(S=S.tag,S!==5&&S!==26&&S!==27||T===null||(S=ba(r,s),S!=null&&d.unshift(Gd(r,S,T)),S=ba(r,o),S!=null&&d.push(Gd(r,S,T))),r.tag===3)return d;r=r.return}return[]}function aT(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function dm(r,o,s,d,S){for(var T=o._reactName,O=[];s!==null&&s!==d;){var B=s,W=B.alternate,ye=B.stateNode;if(B=B.tag,W!==null&&W===d)break;B!==5&&B!==26&&B!==27||ye===null||(W=ye,S?(ye=ba(s,T),ye!=null&&O.unshift(Gd(s,ye,W))):S||(ye=ba(s,T),ye!=null&&O.push(Gd(s,ye,W)))),s=s.return}O.length!==0&&r.push({event:o,listeners:O})}var rT=/\r\n?/g,mb=/\u0000|\uFFFD/g;function yb(r){return(typeof r=="string"?r:""+r).replace(rT,`
37
+ `).replace(mb,"")}function gb(r,o){return o=yb(o),yb(r)===o}function un(r,o,s,d,S,T){switch(s){case"children":typeof d=="string"?o==="body"||o==="textarea"&&d===""||ii(r,d):(typeof d=="number"||typeof d=="bigint")&&o!=="body"&&ii(r,""+d);break;case"className":Xp(r,"class",d);break;case"tabIndex":Xp(r,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":Xp(r,s,d);break;case"style":ZS(r,d,T);break;case"data":if(o!=="object"){Xp(r,"data",d);break}case"src":case"href":if(d===""&&(o!=="a"||s!=="href")){r.removeAttribute(s);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(s);break}d=ll(""+d),r.setAttribute(s,d);break;case"action":case"formAction":if(typeof d=="function"){r.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof T=="function"&&(s==="formAction"?(o!=="input"&&un(r,o,"name",S.name,S,null),un(r,o,"formEncType",S.formEncType,S,null),un(r,o,"formMethod",S.formMethod,S,null),un(r,o,"formTarget",S.formTarget,S,null)):(un(r,o,"encType",S.encType,S,null),un(r,o,"method",S.method,S,null),un(r,o,"target",S.target,S,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(s);break}d=ll(""+d),r.setAttribute(s,d);break;case"onClick":d!=null&&(r.onclick=Cl);break;case"onScroll":d!=null&&Mt("scroll",r);break;case"onScrollEnd":d!=null&&Mt("scrollend",r);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(u(61));if(s=d.__html,s!=null){if(S.children!=null)throw Error(u(60));r.innerHTML=s}}break;case"multiple":r.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":r.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){r.removeAttribute("xlink:href");break}s=ll(""+d),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(s,""+d):r.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(s,""):r.removeAttribute(s);break;case"capture":case"download":d===!0?r.setAttribute(s,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(s,d):r.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?r.setAttribute(s,d):r.removeAttribute(s);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?r.removeAttribute(s):r.setAttribute(s,d);break;case"popover":Mt("beforetoggle",r),Mt("toggle",r),nc(r,"popover",d);break;case"xlinkActuate":Ji(r,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":Ji(r,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":Ji(r,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":Ji(r,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":Ji(r,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":Ji(r,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":Ji(r,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":Ji(r,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":Ji(r,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":nc(r,"is",d);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=qx.get(s)||s,nc(r,s,d))}}function bb(r,o,s,d,S,T){switch(s){case"style":ZS(r,d,T);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(u(61));if(s=d.__html,s!=null){if(S.children!=null)throw Error(u(60));r.innerHTML=s}}break;case"children":typeof d=="string"?ii(r,d):(typeof d=="number"||typeof d=="bigint")&&ii(r,""+d);break;case"onScroll":d!=null&&Mt("scroll",r);break;case"onScrollEnd":d!=null&&Mt("scrollend",r);break;case"onClick":d!=null&&(r.onclick=Cl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ko.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(S=s.endsWith("Capture"),o=s.slice(2,S?s.length-7:void 0),T=r[Ja]||null,T=T!=null?T[s]:null,typeof T=="function"&&r.removeEventListener(o,T,S),typeof d=="function")){typeof T!="function"&&T!==null&&(s in r?r[s]=null:r.hasAttribute(s)&&r.removeAttribute(s)),r.addEventListener(o,d,S);break e}s in r?r[s]=d:d===!0?r.setAttribute(s,""):nc(r,s,d)}}}function ja(r,o,s){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Mt("error",r),Mt("load",r);var d=!1,S=!1,T;for(T in s)if(s.hasOwnProperty(T)){var O=s[T];if(O!=null)switch(T){case"src":d=!0;break;case"srcSet":S=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,o));default:un(r,o,T,O,s,null)}}S&&un(r,o,"srcSet",s.srcSet,s,null),d&&un(r,o,"src",s.src,s,null);return;case"input":Mt("invalid",r);var B=T=O=S=null,W=null,ye=null;for(d in s)if(s.hasOwnProperty(d)){var Re=s[d];if(Re!=null)switch(d){case"name":S=Re;break;case"type":O=Re;break;case"checked":W=Re;break;case"defaultChecked":ye=Re;break;case"value":T=Re;break;case"defaultValue":B=Re;break;case"children":case"dangerouslySetInnerHTML":if(Re!=null)throw Error(u(137,o));break;default:un(r,o,d,Re,s,null)}}If(r,T,B,W,ye,O,S,!1);return;case"select":Mt("invalid",r),d=O=T=null;for(S in s)if(s.hasOwnProperty(S)&&(B=s[S],B!=null))switch(S){case"value":T=B;break;case"defaultValue":O=B;break;case"multiple":d=B;default:un(r,o,S,B,s,null)}o=T,s=O,r.multiple=!!d,o!=null?ac(r,!!d,o,!1):s!=null&&ac(r,!!d,s,!0);return;case"textarea":Mt("invalid",r),T=S=d=null;for(O in s)if(s.hasOwnProperty(O)&&(B=s[O],B!=null))switch(O){case"value":d=B;break;case"defaultValue":S=B;break;case"children":T=B;break;case"dangerouslySetInnerHTML":if(B!=null)throw Error(u(91));break;default:un(r,o,O,B,s,null)}Uy(r,d,S,T);return;case"option":for(W in s)if(s.hasOwnProperty(W)&&(d=s[W],d!=null))switch(W){case"selected":r.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:un(r,o,W,d,s,null)}return;case"dialog":Mt("beforetoggle",r),Mt("toggle",r),Mt("cancel",r),Mt("close",r);break;case"iframe":case"object":Mt("load",r);break;case"video":case"audio":for(d=0;d<Gc.length;d++)Mt(Gc[d],r);break;case"image":Mt("error",r),Mt("load",r);break;case"details":Mt("toggle",r);break;case"embed":case"source":case"link":Mt("error",r),Mt("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ye in s)if(s.hasOwnProperty(ye)&&(d=s[ye],d!=null))switch(ye){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,o));default:un(r,o,ye,d,s,null)}return;default:if(Ly(o)){for(Re in s)s.hasOwnProperty(Re)&&(d=s[Re],d!==void 0&&bb(r,o,Re,d,s,void 0));return}}for(B in s)s.hasOwnProperty(B)&&(d=s[B],d!=null&&un(r,o,B,d,s,null))}function vb(r,o,s,d){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var S=null,T=null,O=null,B=null,W=null,ye=null,Re=null;for(we in s){var Me=s[we];if(s.hasOwnProperty(we)&&Me!=null)switch(we){case"checked":break;case"value":break;case"defaultValue":W=Me;default:d.hasOwnProperty(we)||un(r,o,we,null,d,Me)}}for(var ge in d){var we=d[ge];if(Me=s[ge],d.hasOwnProperty(ge)&&(we!=null||Me!=null))switch(ge){case"type":T=we;break;case"name":S=we;break;case"checked":ye=we;break;case"defaultChecked":Re=we;break;case"value":O=we;break;case"defaultValue":B=we;break;case"children":case"dangerouslySetInnerHTML":if(we!=null)throw Error(u(137,o));break;default:we!==Me&&un(r,o,ge,we,d,Me)}}Pf(r,O,B,W,ye,Re,T,S);return;case"select":we=O=B=ge=null;for(T in s)if(W=s[T],s.hasOwnProperty(T)&&W!=null)switch(T){case"value":break;case"multiple":we=W;default:d.hasOwnProperty(T)||un(r,o,T,null,d,W)}for(S in d)if(T=d[S],W=s[S],d.hasOwnProperty(S)&&(T!=null||W!=null))switch(S){case"value":ge=T;break;case"defaultValue":B=T;break;case"multiple":O=T;default:T!==W&&un(r,o,S,T,d,W)}o=B,s=O,d=we,ge!=null?ac(r,!!s,ge,!1):!!d!=!!s&&(o!=null?ac(r,!!s,o,!0):ac(r,!!s,s?[]:"",!1));return;case"textarea":we=ge=null;for(B in s)if(S=s[B],s.hasOwnProperty(B)&&S!=null&&!d.hasOwnProperty(B))switch(B){case"value":break;case"children":break;default:un(r,o,B,null,d,S)}for(O in d)if(S=d[O],T=s[O],d.hasOwnProperty(O)&&(S!=null||T!=null))switch(O){case"value":ge=S;break;case"defaultValue":we=S;break;case"children":break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(u(91));break;default:S!==T&&un(r,o,O,S,d,T)}By(r,ge,we);return;case"option":for(var Fe in s)if(ge=s[Fe],s.hasOwnProperty(Fe)&&ge!=null&&!d.hasOwnProperty(Fe))switch(Fe){case"selected":r.selected=!1;break;default:un(r,o,Fe,null,d,ge)}for(W in d)if(ge=d[W],we=s[W],d.hasOwnProperty(W)&&ge!==we&&(ge!=null||we!=null))switch(W){case"selected":r.selected=ge&&typeof ge!="function"&&typeof ge!="symbol";break;default:un(r,o,W,ge,d,we)}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 rt in s)ge=s[rt],s.hasOwnProperty(rt)&&ge!=null&&!d.hasOwnProperty(rt)&&un(r,o,rt,null,d,ge);for(ye in d)if(ge=d[ye],we=s[ye],d.hasOwnProperty(ye)&&ge!==we&&(ge!=null||we!=null))switch(ye){case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(u(137,o));break;default:un(r,o,ye,ge,d,we)}return;default:if(Ly(o)){for(var sn in s)ge=s[sn],s.hasOwnProperty(sn)&&ge!==void 0&&!d.hasOwnProperty(sn)&&bb(r,o,sn,void 0,d,ge);for(Re in d)ge=d[Re],we=s[Re],!d.hasOwnProperty(Re)||ge===we||ge===void 0&&we===void 0||bb(r,o,Re,ge,d,we);return}}for(var fe in s)ge=s[fe],s.hasOwnProperty(fe)&&ge!=null&&!d.hasOwnProperty(fe)&&un(r,o,fe,null,d,ge);for(Me in d)ge=d[Me],we=s[Me],!d.hasOwnProperty(Me)||ge===we||ge==null&&we==null||un(r,o,Me,ge,d,we)}function pm(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Sb(){if(typeof performance.getEntriesByType=="function"){for(var r=0,o=0,s=performance.getEntriesByType("resource"),d=0;d<s.length;d++){var S=s[d],T=S.transferSize,O=S.initiatorType,B=S.duration;if(T&&B&&pm(O)){for(O=0,B=S.responseEnd,d+=1;d<s.length;d++){var W=s[d],ye=W.startTime;if(ye>B)break;var Re=W.transferSize,Me=W.initiatorType;Re&&pm(Me)&&(W=W.responseEnd,O+=Re*(W<B?1:(B-ye)/(W-ye)))}if(--d,o+=8*(T+O)/(S.duration/1e3),r++,10<r)break}}if(0<r)return o/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var hm=null,mm=null;function fu(r){return r.nodeType===9?r:r.ownerDocument}function lT(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Eb(r,o){if(r===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&o==="foreignObject"?0:r}function Xc(r,o){return r==="textarea"||r==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var ym=null;function $x(){var r=window.event;return r&&r.type==="popstate"?r===ym?!1:(ym=r,!0):(ym=null,!1)}var Xd=typeof setTimeout=="function"?setTimeout:void 0,iT=typeof clearTimeout=="function"?clearTimeout:void 0,fs=typeof Promise=="function"?Promise:void 0,oT=typeof queueMicrotask=="function"?queueMicrotask:typeof fs<"u"?function(r){return fs.resolve(null).then(r).catch(Tb)}:Xd;function Tb(r){setTimeout(function(){throw r})}function Gl(r){return r==="head"}function wb(r,o){var s=o,d=0;do{var S=s.nextSibling;if(r.removeChild(s),S&&S.nodeType===8)if(s=S.data,s==="/$"||s==="/&"){if(d===0){r.removeChild(S),lf(o);return}d--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")d++;else if(s==="html")ds(r.ownerDocument.documentElement);else if(s==="head"){s=r.ownerDocument.head,ds(s);for(var T=s.firstChild;T;){var O=T.nextSibling,B=T.nodeName;T[ri]||B==="SCRIPT"||B==="STYLE"||B==="LINK"&&T.rel.toLowerCase()==="stylesheet"||s.removeChild(T),T=O}}else s==="body"&&ds(r.ownerDocument.body);s=S}while(s);lf(o)}function Zn(r,o){var s=r;r=0;do{var d=s.nextSibling;if(s.nodeType===1?o?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(o?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),d&&d.nodeType===8)if(s=d.data,s==="/$"){if(r===0)break;r--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||r++;s=d}while(s)}function Fd(r){var o=r.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var s=o;switch(o=o.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Fd(s),Vp(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}r.removeChild(s)}}function Hx(r,o,s,d){for(;r.nodeType===1;){var S=s;if(r.nodeName.toLowerCase()!==o.toLowerCase()){if(!d&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(d){if(!r[ri])switch(o){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(T=r.getAttribute("rel"),T==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(T!==S.rel||r.getAttribute("href")!==(S.href==null||S.href===""?null:S.href)||r.getAttribute("crossorigin")!==(S.crossOrigin==null?null:S.crossOrigin)||r.getAttribute("title")!==(S.title==null?null:S.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(T=r.getAttribute("src"),(T!==(S.src==null?null:S.src)||r.getAttribute("type")!==(S.type==null?null:S.type)||r.getAttribute("crossorigin")!==(S.crossOrigin==null?null:S.crossOrigin))&&T&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(o==="input"&&r.type==="hidden"){var T=S.name==null?null:""+S.name;if(S.type==="hidden"&&r.getAttribute("name")===T)return r}else return r;if(r=fr(r.nextSibling),r===null)break}return null}function Tt(r,o,s){if(o==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!s||(r=fr(r.nextSibling),r===null))return null;return r}function uT(r,o){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!o||(r=fr(r.nextSibling),r===null))return null;return r}function yl(r){return r.data==="$?"||r.data==="$~"}function du(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function Fc(r,o){var s=r.ownerDocument;if(r.data==="$~")r._reactRetry=o;else if(r.data!=="$?"||s.readyState!=="loading")o();else{var d=function(){o(),s.removeEventListener("DOMContentLoaded",d)};s.addEventListener("DOMContentLoaded",d),r._reactRetry=d}}function fr(r){for(;r!=null;r=r.nextSibling){var o=r.nodeType;if(o===1||o===3)break;if(o===8){if(o=r.data,o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"||o==="F!"||o==="F")break;if(o==="/$"||o==="/&")return null}}return r}var Qd=null;function gm(r){r=r.nextSibling;for(var o=0;r;){if(r.nodeType===8){var s=r.data;if(s==="/$"||s==="/&"){if(o===0)return fr(r.nextSibling);o--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||o++}r=r.nextSibling}return null}function Yl(r){r=r.previousSibling;for(var o=0;r;){if(r.nodeType===8){var s=r.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(o===0)return r;o--}else s!=="/$"&&s!=="/&"||o++}r=r.previousSibling}return null}function Qc(r,o,s){switch(o=fu(s),r){case"html":if(r=o.documentElement,!r)throw Error(u(452));return r;case"head":if(r=o.head,!r)throw Error(u(453));return r;case"body":if(r=o.body,!r)throw Error(u(454));return r;default:throw Error(u(451))}}function ds(r){for(var o=r.attributes;o.length;)r.removeAttributeNode(o[0]);Vp(r)}var Er=new Map,Zd=new Set;function Va(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Xl=ue.d;ue.d={f:Px,r:sT,D:Te,C:Xt,L:Ix,m:xb,X:vo,S:Rb,M:pu};function Px(){var r=Xl.f(),o=$c();return r||o}function sT(r){var o=Cu(r);o!==null&&o.tag===5&&o.type==="form"?ln(o):Xl.r(r)}var Zc=typeof document>"u"?null:document;function na(r,o,s){var d=Zc;if(d&&typeof o=="string"&&o){var S=Mr(o);S='link[rel="'+r+'"][href="'+S+'"]',typeof s=="string"&&(S+='[crossorigin="'+s+'"]'),Zd.has(S)||(Zd.add(S),r={rel:r,crossOrigin:s,href:o},d.querySelector(S)===null&&(o=d.createElement("link"),ja(o,"link",r),Jt(o),d.head.appendChild(o)))}}function Te(r){Xl.D(r),na("dns-prefetch",r,null)}function Xt(r,o){Xl.C(r,o),na("preconnect",r,o)}function Ix(r,o,s){Xl.L(r,o,s);var d=Zc;if(d&&r&&o){var S='link[rel="preload"][as="'+Mr(o)+'"]';o==="image"&&s&&s.imageSrcSet?(S+='[imagesrcset="'+Mr(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(S+='[imagesizes="'+Mr(s.imageSizes)+'"]')):S+='[href="'+Mr(r)+'"]';var T=S;switch(o){case"style":T=Ir(r);break;case"script":T=ps(r)}Er.has(T)||(r=E({rel:"preload",href:o==="image"&&s&&s.imageSrcSet?void 0:r,as:o},s),Er.set(T,r),d.querySelector(S)!==null||o==="style"&&d.querySelector(hu(T))||o==="script"&&d.querySelector(Wc(T))||(o=d.createElement("link"),ja(o,"link",r),Jt(o),d.head.appendChild(o)))}}function xb(r,o){Xl.m(r,o);var s=Zc;if(s&&r){var d=o&&typeof o.as=="string"?o.as:"script",S='link[rel="modulepreload"][as="'+Mr(d)+'"][href="'+Mr(r)+'"]',T=S;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":T=ps(r)}if(!Er.has(T)&&(r=E({rel:"modulepreload",href:r},o),Er.set(T,r),s.querySelector(S)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Wc(T)))return}d=s.createElement("link"),ja(d,"link",r),Jt(d),s.head.appendChild(d)}}}function Rb(r,o,s){Xl.S(r,o,s);var d=Zc;if(d&&r){var S=Au(d).hoistableStyles,T=Ir(r);o=o||"default";var O=S.get(T);if(!O){var B={loading:0,preload:null};if(O=d.querySelector(hu(T)))B.loading=5;else{r=E({rel:"stylesheet",href:r,"data-precedence":o},s),(s=Er.get(T))&&bm(r,s);var W=O=d.createElement("link");Jt(W),ja(W,"link",r),W._p=new Promise(function(ye,Re){W.onload=ye,W.onerror=Re}),W.addEventListener("load",function(){B.loading|=1}),W.addEventListener("error",function(){B.loading|=2}),B.loading|=4,Jd(O,o,d)}O={type:"stylesheet",instance:O,count:1,state:B},S.set(T,O)}}}function vo(r,o){Xl.X(r,o);var s=Zc;if(s&&r){var d=Au(s).hoistableScripts,S=ps(r),T=d.get(S);T||(T=s.querySelector(Wc(S)),T||(r=E({src:r,async:!0},o),(o=Er.get(S))&&vm(r,o),T=s.createElement("script"),Jt(T),ja(T,"link",r),s.head.appendChild(T)),T={type:"script",instance:T,count:1,state:null},d.set(S,T))}}function pu(r,o){Xl.M(r,o);var s=Zc;if(s&&r){var d=Au(s).hoistableScripts,S=ps(r),T=d.get(S);T||(T=s.querySelector(Wc(S)),T||(r=E({src:r,async:!0,type:"module"},o),(o=Er.get(S))&&vm(r,o),T=s.createElement("script"),Jt(T),ja(T,"link",r),s.head.appendChild(T)),T={type:"script",instance:T,count:1,state:null},d.set(S,T))}}function Jc(r,o,s,d){var S=(S=at.current)?Va(S):null;if(!S)throw Error(u(446));switch(r){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(o=Ir(s.href),s=Au(S).hoistableStyles,d=s.get(o),d||(d={type:"style",instance:null,count:0,state:null},s.set(o,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){r=Ir(s.href);var T=Au(S).hoistableStyles,O=T.get(r);if(O||(S=S.ownerDocument||S,O={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},T.set(r,O),(T=S.querySelector(hu(r)))&&!T._p&&(O.instance=T,O.state.loading=5),Er.has(r)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Er.set(r,s),T||cT(S,r,s,O.state))),o&&d===null)throw Error(u(528,""));return O}if(o&&d!==null)throw Error(u(529,""));return null;case"script":return o=s.async,s=s.src,typeof s=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=ps(s),s=Au(S).hoistableScripts,d=s.get(o),d||(d={type:"script",instance:null,count:0,state:null},s.set(o,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,r))}}function Ir(r){return'href="'+Mr(r)+'"'}function hu(r){return'link[rel="stylesheet"]['+r+"]"}function Kc(r){return E({},r,{"data-precedence":r.precedence,precedence:null})}function cT(r,o,s,d){r.querySelector('link[rel="preload"][as="style"]['+o+"]")?d.loading=1:(o=r.createElement("link"),d.preload=o,o.addEventListener("load",function(){return d.loading|=1}),o.addEventListener("error",function(){return d.loading|=2}),ja(o,"link",s),Jt(o),r.head.appendChild(o))}function ps(r){return'[src="'+Mr(r)+'"]'}function Wc(r){return"script[async]"+r}function Cb(r,o,s){if(o.count++,o.instance===null)switch(o.type){case"style":var d=r.querySelector('style[data-href~="'+Mr(s.href)+'"]');if(d)return o.instance=d,Jt(d),d;var S=E({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return d=(r.ownerDocument||r).createElement("style"),Jt(d),ja(d,"style",S),Jd(d,s.precedence,r),o.instance=d;case"stylesheet":S=Ir(s.href);var T=r.querySelector(hu(S));if(T)return o.state.loading|=4,o.instance=T,Jt(T),T;d=Kc(s),(S=Er.get(S))&&bm(d,S),T=(r.ownerDocument||r).createElement("link"),Jt(T);var O=T;return O._p=new Promise(function(B,W){O.onload=B,O.onerror=W}),ja(T,"link",d),o.state.loading|=4,Jd(T,s.precedence,r),o.instance=T;case"script":return T=ps(s.src),(S=r.querySelector(Wc(T)))?(o.instance=S,Jt(S),S):(d=s,(S=Er.get(T))&&(d=E({},s),vm(d,S)),r=r.ownerDocument||r,S=r.createElement("script"),Jt(S),ja(S,"link",d),r.head.appendChild(S),o.instance=S);case"void":return null;default:throw Error(u(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(d=o.instance,o.state.loading|=4,Jd(d,s.precedence,r));return o.instance}function Jd(r,o,s){for(var d=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),S=d.length?d[d.length-1]:null,T=S,O=0;O<d.length;O++){var B=d[O];if(B.dataset.precedence===o)T=B;else if(T!==S)break}T?T.parentNode.insertBefore(r,T.nextSibling):(o=s.nodeType===9?s.head:s,o.insertBefore(r,o.firstChild))}function bm(r,o){r.crossOrigin==null&&(r.crossOrigin=o.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=o.referrerPolicy),r.title==null&&(r.title=o.title)}function vm(r,o){r.crossOrigin==null&&(r.crossOrigin=o.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=o.referrerPolicy),r.integrity==null&&(r.integrity=o.integrity)}var ef=null;function Ab(r,o,s){if(ef===null){var d=new Map,S=ef=new Map;S.set(s,d)}else S=ef,d=S.get(s),d||(d=new Map,S.set(s,d));if(d.has(r))return d;for(d.set(r,null),s=s.getElementsByTagName(r),S=0;S<s.length;S++){var T=s[S];if(!(T[ri]||T[rn]||r==="link"&&T.getAttribute("rel")==="stylesheet")&&T.namespaceURI!=="http://www.w3.org/2000/svg"){var O=T.getAttribute(o)||"";O=r+O;var B=d.get(O);B?B.push(T):d.set(O,[T])}}return d}function Sm(r,o,s){r=r.ownerDocument||r,r.head.insertBefore(s,o==="title"?r.querySelector("head > title"):null)}function _b(r,o,s){if(s===1||o.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return r=o.disabled,typeof o.precedence=="string"&&r==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function Tr(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function qi(r,o,s,d){if(s.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var S=Ir(d.href),T=o.querySelector(hu(S));if(T){o=T._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(r.count++,r=Em.bind(r),o.then(r,r)),s.state.loading|=4,s.instance=T,Jt(T);return}T=o.ownerDocument||o,d=Kc(d),(S=Er.get(S))&&bm(d,S),T=T.createElement("link"),Jt(T);var O=T;O._p=new Promise(function(B,W){O.onload=B,O.onerror=W}),ja(T,"link",d),s.instance=T}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(s,o),(o=s.state.preload)&&(s.state.loading&3)===0&&(r.count++,s=Em.bind(r),o.addEventListener("load",s),o.addEventListener("error",s))}}var Vr=0;function Mb(r,o){return r.stylesheets&&r.count===0&&wm(r,r.stylesheets),0<r.count||0<r.imgCount?function(s){var d=setTimeout(function(){if(r.stylesheets&&wm(r,r.stylesheets),r.unsuspend){var T=r.unsuspend;r.unsuspend=null,T()}},6e4+o);0<r.imgBytes&&Vr===0&&(Vr=62500*Sb());var S=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&wm(r,r.stylesheets),r.unsuspend)){var T=r.unsuspend;r.unsuspend=null,T()}},(r.imgBytes>Vr?50:800)+o);return r.unsuspend=s,function(){r.unsuspend=null,clearTimeout(d),clearTimeout(S)}}:null}function Em(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)wm(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Tm=null;function wm(r,o){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Tm=new Map,o.forEach(Ra,r),Tm=null,Em.call(r))}function Ra(r,o){if(!(o.state.loading&4)){var s=Tm.get(r);if(s)var d=s.get(null);else{s=new Map,Tm.set(r,s);for(var S=r.querySelectorAll("link[data-precedence],style[data-precedence]"),T=0;T<S.length;T++){var O=S[T];(O.nodeName==="LINK"||O.getAttribute("media")!=="not all")&&(s.set(O.dataset.precedence,O),d=O)}d&&s.set(null,d)}S=o.instance,O=S.getAttribute("data-precedence"),T=s.get(O)||d,T===d&&s.set(null,S),s.set(O,S),this.count++,d=Em.bind(this),S.addEventListener("load",d),S.addEventListener("error",d),T?T.parentNode.insertBefore(S,T.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(S,r.firstChild)),o.state.loading|=4}}var Kd={$$typeof:$,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function Ob(r,o,s,d,S,T,O,B,W){this.tag=1,this.containerInfo=r,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=wl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wl(0),this.hiddenUpdates=wl(null),this.identifierPrefix=d,this.onUncaughtError=S,this.onCaughtError=T,this.onRecoverableError=O,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=W,this.incompleteTransitions=new Map}function xm(r,o,s,d,S,T,O,B,W,ye,Re,Me){return r=new Ob(r,o,s,O,W,ye,Re,Me,B),o=1,T===!0&&(o|=24),T=$n(3,null,null,o),r.current=T,T.stateNode=r,o=id(),o.refCount++,r.pooledCache=o,o.refCount++,T.memoizedState={element:d,isDehydrated:s,cache:o},pd(T),r}function hs(r){return r?(r=er,r):er}function fT(r,o,s,d,S,T){S=hs(S),d.context===null?d.context=S:d.pendingContext=S,d=uo(o),d.payload={element:s},T=T===void 0?null:T,T!==null&&(d.callback=T),s=kr(r,d,o),s!==null&&(cr(s,r,o),Ko(s,r,o))}function Rm(r,o){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var s=r.retryLane;r.retryLane=s!==0&&s<o?s:o}}function qb(r,o){Rm(r,o),(r=r.alternate)&&Rm(r,o)}function dT(r){if(r.tag===13||r.tag===31){var o=to(r,67108864);o!==null&&cr(o,r,67108864),qb(r,67108864)}}function ms(r){if(r.tag===13||r.tag===31){var o=Sr();o=Hp(o);var s=to(r,o);s!==null&&cr(s,r,o),qb(r,o)}}var fa=!0;function Di(r,o,s,d){var S=P.T;P.T=null;var T=ue.p;try{ue.p=2,za(r,o,s,d)}finally{ue.p=T,P.T=S}}function Ni(r,o,s,d){var S=P.T;P.T=null;var T=ue.p;try{ue.p=8,za(r,o,s,d)}finally{ue.p=T,P.T=S}}function za(r,o,s,d){if(fa){var S=Db(d);if(S===null)hb(r,o,d,Cm,s),So(r,d);else if(Vx(S,r,o,s,d))d.stopPropagation();else if(So(r,d),o&4&&-1<dr.indexOf(r)){for(;S!==null;){var T=Cu(S);if(T!==null)switch(T.tag){case 3:if(T=T.stateNode,T.current.memoizedState.isDehydrated){var O=ga(T.pendingLanes);if(O!==0){var B=T;for(B.pendingLanes|=2,B.entangledLanes|=2;O;){var W=1<<31-$e(O);B.entanglements[1]|=W,O&=~W}Oi(T),(It&6)===0&&(Yt=oe()+500,bo(0))}}break;case 31:case 13:B=to(T,2),B!==null&&cr(B,T,2),$c(),qb(T,2)}if(T=Db(d),T===null&&hb(r,o,d,Cm,s),T===S)break;S=T}S!==null&&d.stopPropagation()}else hb(r,o,d,null,s)}}function Db(r){return r=Jp(r),tf(r)}var Cm=null;function tf(r){if(Cm=null,r=Ru(r),r!==null){var o=m(r);if(o===null)r=null;else{var s=o.tag;if(s===13){if(r=h(o),r!==null)return r;r=null}else if(s===31){if(r=y(o),r!==null)return r;r=null}else if(s===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;r=null}else o!==r&&(r=null)}}return Cm=r,null}function Wd(r){switch(r){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(pe()){case qe:return 2;case Be:return 8;case ee:case st:return 32;case Rn:return 268435456;default:return 32}default:return 32}}var nf=!1,da=null,ka=null,Ga=null,mu=new Map,gl=new Map,qn=[],dr="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 So(r,o){switch(r){case"focusin":case"focusout":da=null;break;case"dragenter":case"dragleave":ka=null;break;case"mouseover":case"mouseout":Ga=null;break;case"pointerover":case"pointerout":mu.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":gl.delete(o.pointerId)}}function ys(r,o,s,d,S,T){return r===null||r.nativeEvent!==T?(r={blockedOn:o,domEventName:s,eventSystemFlags:d,nativeEvent:T,targetContainers:[S]},o!==null&&(o=Cu(o),o!==null&&dT(o)),r):(r.eventSystemFlags|=d,o=r.targetContainers,S!==null&&o.indexOf(S)===-1&&o.push(S),r)}function Vx(r,o,s,d,S){switch(o){case"focusin":return da=ys(da,r,o,s,d,S),!0;case"dragenter":return ka=ys(ka,r,o,s,d,S),!0;case"mouseover":return Ga=ys(Ga,r,o,s,d,S),!0;case"pointerover":var T=S.pointerId;return mu.set(T,ys(mu.get(T)||null,r,o,s,d,S)),!0;case"gotpointercapture":return T=S.pointerId,gl.set(T,ys(gl.get(T)||null,r,o,s,d,S)),!0}return!1}function pT(r){var o=Ru(r.target);if(o!==null){var s=m(o);if(s!==null){if(o=s.tag,o===13){if(o=h(s),o!==null){r.blockedOn=o,Dy(r.priority,function(){ms(s)});return}}else if(o===31){if(o=y(s),o!==null){r.blockedOn=o,Dy(r.priority,function(){ms(s)});return}}else if(o===3&&s.stateNode.current.memoizedState.isDehydrated){r.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}r.blockedOn=null}function ep(r){if(r.blockedOn!==null)return!1;for(var o=r.targetContainers;0<o.length;){var s=Db(r.nativeEvent);if(s===null){s=r.nativeEvent;var d=new s.constructor(s.type,s);Zp=d,s.target.dispatchEvent(d),Zp=null}else return o=Cu(s),o!==null&&dT(o),r.blockedOn=s,!1;o.shift()}return!0}function af(r,o,s){ep(r)&&s.delete(o)}function hT(){nf=!1,da!==null&&ep(da)&&(da=null),ka!==null&&ep(ka)&&(ka=null),Ga!==null&&ep(Ga)&&(Ga=null),mu.forEach(af),gl.forEach(af)}function ji(r,o){r.blockedOn===o&&(r.blockedOn=null,nf||(nf=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,hT)))}var rf=null;function mT(r){rf!==r&&(rf=r,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){rf===r&&(rf=null);for(var o=0;o<r.length;o+=3){var s=r[o],d=r[o+1],S=r[o+2];if(typeof d!="function"){if(tf(d||s)===null)continue;break}var T=Cu(s);T!==null&&(r.splice(o,3),o-=3,Ac(T,{pending:!0,data:S,method:s.method,action:d},d,S))}}))}function lf(r){function o(W){return ji(W,r)}da!==null&&ji(da,r),ka!==null&&ji(ka,r),Ga!==null&&ji(Ga,r),mu.forEach(o),gl.forEach(o);for(var s=0;s<qn.length;s++){var d=qn[s];d.blockedOn===r&&(d.blockedOn=null)}for(;0<qn.length&&(s=qn[0],s.blockedOn===null);)pT(s),s.blockedOn===null&&qn.shift();if(s=(r.ownerDocument||r).$$reactFormReplay,s!=null)for(d=0;d<s.length;d+=3){var S=s[d],T=s[d+1],O=S[Ja]||null;if(typeof T=="function")O||mT(s);else if(O){var B=null;if(T&&T.hasAttribute("formAction")){if(S=T,O=T[Ja]||null)B=O.formAction;else if(tf(S)!==null)continue}else B=O.action;typeof B=="function"?s[d+1]=B:(s.splice(d,3),d-=3),mT(s)}}}function Nb(){function r(T){T.canIntercept&&T.info==="react-transition"&&T.intercept({handler:function(){return new Promise(function(O){return S=O})},focusReset:"manual",scroll:"manual"})}function o(){S!==null&&(S(),S=null),d||setTimeout(s,20)}function s(){if(!d&&!navigation.transition){var T=navigation.currentEntry;T&&T.url!=null&&navigation.navigate(T.url,{state:T.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var d=!1,S=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(s,100),function(){d=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),S!==null&&(S(),S=null)}}}function Am(r){this._internalRoot=r}_m.prototype.render=Am.prototype.render=function(r){var o=this._internalRoot;if(o===null)throw Error(u(409));var s=o.current,d=Sr();fT(s,d,r,o,null,null)},_m.prototype.unmount=Am.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var o=r.containerInfo;fT(r.current,2,null,r,null,null),$c(),o[zo]=null}};function _m(r){this._internalRoot=r}_m.prototype.unstable_scheduleHydration=function(r){if(r){var o=Pp();r={blockedOn:null,target:r,priority:o};for(var s=0;s<qn.length&&o!==0&&o<qn[s].priority;s++);qn.splice(s,0,r),s===0&&pT(r)}};var jb=a.version;if(jb!=="19.2.3")throw Error(u(527,jb,"19.2.3"));ue.findDOMNode=function(r){var o=r._reactInternals;if(o===void 0)throw typeof r.render=="function"?Error(u(188)):(r=Object.keys(r).join(","),Error(u(268,r)));return r=v(o),r=r!==null?x(r):null,r=r===null?null:r.stateNode,r};var yT={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:P,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var tp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tp.isDisabled&&tp.supportsFiber)try{tt=tp.inject(yT),Ae=tp}catch{}}return Cv.createRoot=function(r,o){if(!f(r))throw Error(u(299));var s=!1,d="",S=Lh,T=zg,O=$h;return o!=null&&(o.unstable_strictMode===!0&&(s=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onUncaughtError!==void 0&&(S=o.onUncaughtError),o.onCaughtError!==void 0&&(T=o.onCaughtError),o.onRecoverableError!==void 0&&(O=o.onRecoverableError)),o=xm(r,1,!1,null,null,s,d,null,S,T,O,Nb),r[zo]=o.current,Yc(r),new Am(o)},Cv.hydrateRoot=function(r,o,s){if(!f(r))throw Error(u(299));var d=!1,S="",T=Lh,O=zg,B=$h,W=null;return s!=null&&(s.unstable_strictMode===!0&&(d=!0),s.identifierPrefix!==void 0&&(S=s.identifierPrefix),s.onUncaughtError!==void 0&&(T=s.onUncaughtError),s.onCaughtError!==void 0&&(O=s.onCaughtError),s.onRecoverableError!==void 0&&(B=s.onRecoverableError),s.formState!==void 0&&(W=s.formState)),o=xm(r,1,!0,o,s??null,d,S,W,T,O,B,Nb),o.context=hs(null),s=o.current,d=Sr(),d=Hp(d),S=uo(d),S.callback=null,kr(s,S,d),s=d,o.current.lanes=s,al(o,s),Oi(o),r[zo]=o.current,Yc(r),new _m(o)},Cv.version="19.2.3",Cv}var Av={};var K2;function N8(){return K2||(K2=1,process.env.NODE_ENV!=="production"&&(function(){function t(e,n){for(e=e.memoizedState;e!==null&&0<n;)e=e.next,n--;return e}function a(e,n,l,c){if(l>=n.length)return c;var p=n[l],g=na(e)?e.slice():Tt({},e);return g[p]=a(e[p],n,l+1,c),g}function i(e,n,l){if(n.length!==l.length)console.warn("copyWithRename() expects paths of the same length");else{for(var c=0;c<l.length-1;c++)if(n[c]!==l[c]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return u(e,n,l,0)}}function u(e,n,l,c){var p=n[c],g=na(e)?e.slice():Tt({},e);return c+1===n.length?(g[l[c]]=g[p],na(g)?g.splice(p,1):delete g[p]):g[p]=u(e[p],n,l,c+1),g}function f(e,n,l){var c=n[l],p=na(e)?e.slice():Tt({},e);return l+1===n.length?(na(p)?p.splice(c,1):delete p[c],p):(p[c]=f(e[c],n,l+1),p)}function m(){return!1}function h(){return null}function y(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function b(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function v(){}function x(){}function E(e){var n=[];return e.forEach(function(l){n.push(l)}),n.sort().join(", ")}function R(e,n,l,c){return new kx(e,n,l,c)}function A(e,n){e.context===cf&&(dm(e.current,2,n,e,null,null),Hr())}function M(e,n){if(Bi!==null){var l=n.staleFamilies;n=n.updatedFamilies,Dd(),oE(e.current,n,l),Hr()}}function q(e){Bi=e}function N(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function _(e){var n=e,l=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(l=n.return),e=n.return;while(e)}return n.tag===3?l:null}function L(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 $(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 I(e){if(_(e)!==e)throw Error("Unable to find node on an unmounted component.")}function V(e){var n=e.alternate;if(!n){if(n=_(e),n===null)throw Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var l=e,c=n;;){var p=l.return;if(p===null)break;var g=p.alternate;if(g===null){if(c=p.return,c!==null){l=c;continue}break}if(p.child===g.child){for(g=p.child;g;){if(g===l)return I(p),e;if(g===c)return I(p),n;g=g.sibling}throw Error("Unable to find node on an unmounted component.")}if(l.return!==c.return)l=p,c=g;else{for(var w=!1,C=p.child;C;){if(C===l){w=!0,l=p,c=g;break}if(C===c){w=!0,c=p,l=g;break}C=C.sibling}if(!w){for(C=g.child;C;){if(C===l){w=!0,l=g,c=p;break}if(C===c){w=!0,c=g,l=p;break}C=C.sibling}if(!w)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(l.alternate!==c)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(l.tag!==3)throw Error("Unable to find node on an unmounted component.");return l.stateNode.current===l?e:n}function z(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=z(e),n!==null)return n;e=e.sibling}return null}function k(e){return e===null||typeof e!="object"?null:(e=sT&&e[sT]||e["@@iterator"],typeof e=="function"?e:null)}function U(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Zc?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fc:return"Fragment";case Qd:return"Profiler";case fr:return"StrictMode";case ds:return"Suspense";case Er:return"SuspenseList";case Xl:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case du:return"Portal";case Yl:return e.displayName||"Context";case gm:return(e._context.displayName||"Context")+".Consumer";case Qc:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Zd:return n=e.displayName||null,n!==null?n:U(e.type)||"Memo";case Va:n=e._payload,e=e._init;try{return U(e(n))}catch{}}return null}function F(e){return typeof e.tag=="number"?H(e):typeof e.name=="string"?e.name:null}function H(e){var n=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(n._context.displayName||"Context")+".Consumer";case 10:return n.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(n);case 8:return n===fr?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break;case 29:if(n=e._debugInfo,n!=null){for(var l=n.length-1;0<=l;l--)if(typeof n[l].name=="string")return n[l].name}if(e.return!==null)return H(e.return)}return null}function J(e){return{current:e}}function ve(e,n){0>vo?console.error("Unexpected pop."):(n!==Rb[vo]&&console.error("Unexpected Fiber popped."),e.current=xb[vo],xb[vo]=null,Rb[vo]=null,vo--)}function se(e,n,l){vo++,xb[vo]=e.current,Rb[vo]=l,e.current=n}function Se(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function ke(e,n){se(Ir,n,e),se(Jc,e,e),se(pu,null,e);var l=n.nodeType;switch(l){case 9:case 11:l=l===9?"#document":"#fragment",n=(n=n.documentElement)&&(n=n.namespaceURI)?kE(n):Os;break;default:if(l=n.tagName,n=n.namespaceURI)n=kE(n),n=yo(n,l);else switch(l){case"svg":n=ry;break;case"math":n=ow;break;default:n=Os}}l=l.toLowerCase(),l=ky(null,l),l={context:n,ancestorInfo:l},ve(pu,e),se(pu,l,e)}function P(e){ve(pu,e),ve(Jc,e),ve(Ir,e)}function ue(){return Se(pu.current)}function te(e){e.memoizedState!==null&&se(hu,e,e);var n=Se(pu.current),l=e.type,c=yo(n.context,l);l=ky(n.ancestorInfo,l),c={context:c,ancestorInfo:l},n!==c&&(se(Jc,e,e),se(pu,c,e))}function De(e){Jc.current===e&&(ve(pu,e),ve(Jc,e)),hu.current===e&&(ve(hu,e),wv._currentValue=xp)}function je(){}function Ye(){if(Kc===0){cT=console.log,ps=console.info,Wc=console.warn,Cb=console.error,Jd=console.group,bm=console.groupCollapsed,vm=console.groupEnd;var e={configurable:!0,enumerable:!0,value:je,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Kc++}function Xe(){if(Kc--,Kc===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Tt({},e,{value:cT}),info:Tt({},e,{value:ps}),warn:Tt({},e,{value:Wc}),error:Tt({},e,{value:Cb}),group:Tt({},e,{value:Jd}),groupCollapsed:Tt({},e,{value:bm}),groupEnd:Tt({},e,{value:vm})})}0>Kc&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function xe(e){var n=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=n,e.startsWith(`Error: react-stack-top-frame
38
+ `)&&(e=e.slice(29)),n=e.indexOf(`
39
+ `),n!==-1&&(e=e.slice(n+1)),n=e.indexOf("react_stack_bottom_frame"),n!==-1&&(n=e.lastIndexOf(`
40
+ `,n)),n!==-1)e=e.slice(0,n);else return"";return e}function Ie(e){if(ef===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);ef=n&&n[1]||"",Ab=-1<l.stack.indexOf(`
41
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
42
+ `+ef+e+Ab}function Je(e,n){if(!e||Sm)return"";var l=_b.get(e);if(l!==void 0)return l;Sm=!0,l=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var c=null;c=Te.H,Te.H=null,Ye();try{var p={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(Le){var be=Le}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(Le){be=Le}e.call(Z.prototype)}}else{try{throw Error()}catch(Le){be=Le}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(Le){if(Le&&be&&typeof Le.stack=="string")return[Le.stack,be.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var w=p.DetermineComponentFrameRoot(),C=w[0],D=w[1];if(C&&D){var j=C.split(`
43
+ `),ae=D.split(`
44
+ `);for(w=g=0;g<j.length&&!j[g].includes("DetermineComponentFrameRoot");)g++;for(;w<ae.length&&!ae[w].includes("DetermineComponentFrameRoot");)w++;if(g===j.length||w===ae.length)for(g=j.length-1,w=ae.length-1;1<=g&&0<=w&&j[g]!==ae[w];)w--;for(;1<=g&&0<=w;g--,w--)if(j[g]!==ae[w]){if(g!==1||w!==1)do if(g--,w--,0>w||j[g]!==ae[w]){var le=`
45
+ `+j[g].replace(" at new "," at ");return e.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",e.displayName)),typeof e=="function"&&_b.set(e,le),le}while(1<=g&&0<=w);break}}}finally{Sm=!1,Te.H=c,Xe(),Error.prepareStackTrace=l}return j=(j=e?e.displayName||e.name:"")?Ie(j):"",typeof e=="function"&&_b.set(e,j),j}function at(e,n){switch(e.tag){case 26:case 27:case 5:return Ie(e.type);case 16:return Ie("Lazy");case 13:return e.child!==n&&n!==null?Ie("Suspense Fallback"):Ie("Suspense");case 19:return Ie("SuspenseList");case 0:case 15:return Je(e.type,!1);case 11:return Je(e.type.render,!1);case 1:return Je(e.type,!0);case 31:return Ie("Activity");default:return""}}function Lt(e){try{var n="",l=null;do{n+=at(e,l);var c=e._debugInfo;if(c)for(var p=c.length-1;0<=p;p--){var g=c[p];if(typeof g.name=="string"){var w=n;e:{var C=g.name,D=g.env,j=g.debugLocation;if(j!=null){var ae=xe(j),le=ae.lastIndexOf(`
46
+ `),Z=le===-1?ae:ae.slice(le+1);if(Z.indexOf(C)!==-1){var be=`
47
+ `+Z;break e}}be=Ie(C+(D?" ["+D+"]":""))}n=w+be}}l=e,e=e.return}while(e);return n}catch(Le){return`
48
+ Error generating stack: `+Le.message+`
49
+ `+Le.stack}}function an(e){return(e=e?e.displayName||e.name:"")?Ie(e):""}function ie(){if(Tr===null)return null;var e=Tr._debugOwner;return e!=null?F(e):null}function Pe(){if(Tr===null)return"";var e=Tr;try{var n="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:n+=Ie(e.type);break;case 13:n+=Ie("Suspense");break;case 19:n+=Ie("SuspenseList");break;case 31:n+=Ie("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||n!==""||(n+=an(e.type));break;case 11:e._debugOwner||n!==""||(n+=an(e.type.render))}for(;e;)if(typeof e.tag=="number"){var l=e;e=l._debugOwner;var c=l._debugStack;if(e&&c){var p=xe(c);p!==""&&(n+=`
50
+ `+p)}}else if(e.debugStack!=null){var g=e.debugStack;(e=e.owner)&&g&&(n+=`
51
+ `+xe(g))}else break;var w=n}catch(C){w=`
52
+ Error generating stack: `+C.message+`
53
+ `+C.stack}return w}function de(e,n,l,c,p,g,w){var C=Tr;ut(e);try{return e!==null&&e._debugTask?e._debugTask.run(n.bind(null,l,c,p,g,w)):n(l,c,p,g,w)}finally{ut(C)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function ut(e){Te.getCurrentStack=e===null?null:Pe,qi=!1,Tr=e}function dt(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Ue(e){try{return Nt(e),!1}catch{return!0}}function Nt(e){return""+e}function Ke(e,n){if(Ue(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",n,dt(e)),Nt(e)}function Tn(e,n){if(Ue(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",n,dt(e)),Nt(e)}function tl(e){if(Ue(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",dt(e)),Nt(e)}function Cr(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var n=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(n.isDisabled)return!0;if(!n.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{ms=n.inject(e),fa=n}catch(l){console.error("React instrumentation encountered an error: %o.",l)}return!!n.checkDCE}function yt(e){if(typeof qb=="function"&&dT(e),fa&&typeof fa.setStrictMode=="function")try{fa.setStrictMode(ms,e)}catch(n){Di||(Di=!0,console.error("React instrumentation encountered an error: %o",n))}}function ya(e){return e>>>=0,e===0?32:31-(Db(e)/Cm|0)|0}function Za(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 console.error("Should have found matching lanes. This is a bug in React."),e}}function ni(e,n,l){var c=e.pendingLanes;if(c===0)return 0;var p=0,g=e.suspendedLanes,w=e.pingedLanes;e=e.warmLanes;var C=c&134217727;return C!==0?(c=C&~g,c!==0?p=Za(c):(w&=C,w!==0?p=Za(w):l||(l=C&~e,l!==0&&(p=Za(l))))):(C=c&~g,C!==0?p=Za(C):w!==0?p=Za(w):l||(l=c&~e,l!==0&&(p=Za(l)))),p===0?0:n!==0&&n!==p&&(n&g)===0&&(g=p&-p,l=n&-n,g>=l||g===32&&(l&4194048)!==0)?n:p}function oe(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function pe(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 console.error("Should have found matching lanes. This is a bug in React."),-1}}function qe(){var e=nf;return nf<<=1,(nf&62914560)===0&&(nf=4194304),e}function Be(e){for(var n=[],l=0;31>l;l++)n.push(e);return n}function ee(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function st(e,n,l,c,p,g){var w=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var C=e.entanglements,D=e.expirationTimes,j=e.hiddenUpdates;for(l=w&~l;0<l;){var ae=31-za(l),le=1<<ae;C[ae]=0,D[ae]=-1;var Z=j[ae];if(Z!==null)for(j[ae]=null,ae=0;ae<Z.length;ae++){var be=Z[ae];be!==null&&(be.lane&=-536870913)}l&=~le}c!==0&&Rn(e,c,0),g!==0&&p===0&&e.tag!==0&&(e.suspendedLanes|=g&~(w&~n))}function Rn(e,n,l){e.pendingLanes|=n,e.suspendedLanes&=~n;var c=31-za(n);e.entangledLanes|=n,e.entanglements[c]=e.entanglements[c]|1073741824|l&261930}function Zt(e,n){var l=e.entangledLanes|=n;for(e=e.entanglements;l;){var c=31-za(l),p=1<<c;p&n|e[c]&n&&(e[c]|=n),l&=~p}}function ia(e,n){var l=n&-n;return l=(l&42)!==0?1:tt(l),(l&(e.suspendedLanes|n))!==0?0:l}function tt(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 Ae(e,n,l){if(Ni)for(e=e.pendingUpdatersLaneMap;0<l;){var c=31-za(l),p=1<<c;e[c].add(n),l&=~p}}function Ve(e,n){if(Ni)for(var l=e.pendingUpdatersLaneMap,c=e.memoizedUpdaters;0<n;){var p=31-za(n);e=1<<p,p=l[p],0<p.size&&(p.forEach(function(g){var w=g.alternate;w!==null&&c.has(w)||c.add(g)}),p.clear()),n&=~e}}function $e(e){return e&=-e,da<e?ka<e?(e&134217727)!==0?Ga:mu:ka:da}function Bt(){var e=Xt.p;return e!==0?e:(e=window.event,e===void 0?Ga:hm(e.type))}function Cn(e,n){var l=Xt.p;try{return Xt.p=e,n()}finally{Xt.p=l}}function nl(e){delete e[qn],delete e[dr],delete e[ys],delete e[Vx],delete e[pT]}function $a(e){var n=e[qn];if(n)return n;for(var l=e.parentNode;l;){if(n=l[So]||l[qn]){if(l=n.alternate,n.child!==null||l!==null&&l.child!==null)for(e=us(e);e!==null;){if(l=e[qn])return l;e=us(e)}return n}e=l,l=e.parentNode}return null}function An(e){if(e=e[qn]||e[So]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function oa(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function ga(e){var n=e[ep];return n||(n=e[ep]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function $t(e){e[af]=!0}function Wn(e,n){Ln(e,n),Ln(e+"Capture",n)}function Ln(e,n){ji[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),ji[e]=n;var l=e.toLowerCase();for(rf[l]=e,e==="onDoubleClick"&&(rf.ondblclick=e),e=0;e<n.length;e++)hT.add(n[e])}function ze(e,n){mT[n.type]||n.onChange||n.onInput||n.readOnly||n.disabled||n.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),n.onChange||n.readOnly||n.disabled||n.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function wl(e){return Vr.call(Am,e)?!0:Vr.call(Nb,e)?!1:lf.test(e)?Am[e]=!0:(Nb[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function al(e,n,l){if(wl(n)){if(!e.hasAttribute(n)){switch(typeof l){case"symbol":case"object":return l;case"function":return l;case"boolean":if(l===!1)return l}return l===void 0?void 0:null}return e=e.getAttribute(n),e===""&&l===!0?!0:(Ke(l,n),e===""+l?l:e)}}function rl(e,n,l){if(wl(n))if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var c=n.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){e.removeAttribute(n);return}}Ke(l,n),e.setAttribute(n,""+l)}}function xl(e,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}Ke(l,n),e.setAttribute(n,""+l)}}function ai(e,n,l,c){if(c===null)e.removeAttribute(l);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}Ke(c,l),e.setAttributeNS(n,l,""+c)}}function Ar(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return tl(e),e;default:return""}}function Hp(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function qy(e,n,l){var c=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var p=c.get,g=c.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return p.call(this)},set:function(w){tl(w),l=""+w,g.call(this,w)}}),Object.defineProperty(e,n,{enumerable:c.enumerable}),{getValue:function(){return l},setValue:function(w){tl(w),l=""+w},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Pp(e){if(!e._valueTracker){var n=Hp(e)?"checked":"value";e._valueTracker=qy(e,n,""+e[n])}}function Dy(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var l=n.getValue(),c="";return e&&(c=Hp(e)?e.checked?"true":"false":e.value),e=c,e!==l?(n.setValue(e),!0):!1}function Rl(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}}function rn(e){return e.replace(_m,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Ja(e,n){n.checked===void 0||n.defaultChecked===void 0||yT||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",ie()||"A component",n.type),yT=!0),n.value===void 0||n.defaultValue===void 0||jb||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",ie()||"A component",n.type),jb=!0)}function zo(e,n,l,c,p,g,w,C){e.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?(Ke(w,"type"),e.type=w):e.removeAttribute("type"),n!=null?w==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+Ar(n)):e.value!==""+Ar(n)&&(e.value=""+Ar(n)):w!=="submit"&&w!=="reset"||e.removeAttribute("value"),n!=null?Ny(e,w,Ar(n)):l!=null?Ny(e,w,Ar(l)):c!=null&&e.removeAttribute("value"),p==null&&g!=null&&(e.defaultChecked=!!g),p!=null&&(e.checked=p&&typeof p!="function"&&typeof p!="symbol"),C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?(Ke(C,"name"),e.name=""+Ar(C)):e.removeAttribute("name")}function Ip(e,n,l,c,p,g,w,C){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(Ke(g,"type"),e.type=g),n!=null||l!=null){if(!(g!=="submit"&&g!=="reset"||n!=null)){Pp(e);return}l=l!=null?""+Ar(l):"",n=n!=null?""+Ar(n):l,C||n===e.value||(e.value=n),e.defaultValue=n}c=c??p,c=typeof c!="function"&&typeof c!="symbol"&&!!c,e.checked=C?e.checked:!!c,e.defaultChecked=!!c,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(Ke(w,"name"),e.name=w),Pp(e)}function Ny(e,n,l){n==="number"&&Rl(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function XS(e,n){n.value==null&&(typeof n.children=="object"&&n.children!==null?Fd.Children.forEach(n.children,function(l){l==null||typeof l=="string"||typeof l=="number"||typeof l=="bigint"||r||(r=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):n.dangerouslySetInnerHTML==null||o||(o=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),n.selected==null||tp||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),tp=!0)}function jy(){var e=ie();return e?`
54
+
55
+ Check the render method of \``+e+"`.":""}function ri(e,n,l,c){if(e=e.options,n){n={};for(var p=0;p<l.length;p++)n["$"+l[p]]=!0;for(l=0;l<e.length;l++)p=n.hasOwnProperty("$"+e[l].value),e[l].selected!==p&&(e[l].selected=p),p&&c&&(e[l].defaultSelected=!0)}else{for(l=""+Ar(l),n=null,p=0;p<e.length;p++){if(e[p].value===l){e[p].selected=!0,c&&(e[p].defaultSelected=!0);return}n!==null||e[p].disabled||(n=e[p])}n!==null&&(n.selected=!0)}}function Vp(e,n){for(e=0;e<d.length;e++){var l=d[e];if(n[l]!=null){var c=na(n[l]);n.multiple&&!c?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",l,jy()):!n.multiple&&c&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",l,jy())}}n.value===void 0||n.defaultValue===void 0||s||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),s=!0)}function Ru(e,n){n.value===void 0||n.defaultValue===void 0||S||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",ie()||"A component"),S=!0),n.children!=null&&n.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Cu(e,n,l){if(n!=null&&(n=""+Ar(n),n!==e.value&&(e.value=n),l==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=l!=null?""+Ar(l):""}function Ws(e,n,l,c){if(n==null){if(c!=null){if(l!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(na(c)){if(1<c.length)throw Error("<textarea> can only have at most one child.");c=c[0]}l=c}l==null&&(l=""),n=l}l=Ar(n),e.defaultValue=l,c=e.textContent,c===l&&c!==""&&c!==null&&(e.value=c),Pp(e)}function Au(e,n){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-n?Au(e.children[0],n):e}function Jt(e){return" "+" ".repeat(e)}function _u(e){return"+ "+" ".repeat(e)}function ko(e){return"- "+" ".repeat(e)}function Bo(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function li(e,n){return T.test(e)?(e=JSON.stringify(e),e.length>n-2?8>n?'{"..."}':"{"+e.slice(0,n-7)+'..."}':"{"+e+"}"):e.length>n?5>n?'{"..."}':e.slice(0,n-3)+"...":e}function Gp(e,n,l){var c=120-2*l;if(n===null)return _u(l)+li(e,c)+`
56
+ `;if(typeof n=="string"){for(var p=0;p<n.length&&p<e.length&&n.charCodeAt(p)===e.charCodeAt(p);p++);return p>c-8&&10<p&&(e="..."+e.slice(p-8),n="..."+n.slice(p-8)),_u(l)+li(e,c)+`
57
+ `+ko(l)+li(n,c)+`
58
+ `}return Jt(l)+li(e,c)+`
59
+ `}function Yp(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(n,l){return l})}function ec(e,n){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>n?5>n?'"..."':e.slice(0,n-4)+'..."':e;case"object":if(e===null)return"null";if(na(e))return"[...]";if(e.$$typeof===yl)return(n=U(e.type))?"<"+n+">":"<...>";var l=Yp(e);if(l==="Object"){l="",n-=2;for(var c in e)if(e.hasOwnProperty(c)){var p=JSON.stringify(c);if(p!=='"'+c+'"'&&(c=p),n-=c.length-2,p=ec(e[c],15>n?n:15),n-=p.length,0>n){l+=l===""?"...":", ...";break}l+=(l===""?"":",")+c+":"+p}return"{"+l+"}"}return l;case"function":return(n=e.displayName||e.name)?"function "+n:"function";default:return String(e)}}function tc(e,n){return typeof e!="string"||T.test(e)?"{"+ec(e,n-2)+"}":e.length>n-2?5>n?'"..."':'"'+e.slice(0,n-5)+'..."':'"'+e+'"'}function nc(e,n,l){var c=120-l.length-e.length,p=[],g;for(g in n)if(n.hasOwnProperty(g)&&g!=="children"){var w=tc(n[g],120-l.length-g.length-1);c-=g.length+w.length+2,p.push(g+"="+w)}return p.length===0?l+"<"+e+`>
60
+ `:0<c?l+"<"+e+" "+p.join(" ")+`>
61
+ `:l+"<"+e+`
62
+ `+l+" "+p.join(`
63
+ `+l+" ")+`
64
+ `+l+`>
65
+ `}function Xp(e,n,l){var c="",p=Tt({},n),g;for(g in e)if(e.hasOwnProperty(g)){delete p[g];var w=120-2*l-g.length-2,C=ec(e[g],w);n.hasOwnProperty(g)?(w=ec(n[g],w),c+=_u(l)+g+": "+C+`
66
+ `,c+=ko(l)+g+": "+w+`
67
+ `):c+=_u(l)+g+": "+C+`
68
+ `}for(var D in p)p.hasOwnProperty(D)&&(e=ec(p[D],120-2*l-D.length-2),c+=ko(l)+D+": "+e+`
69
+ `);return c}function Ji(e,n,l,c){var p="",g=new Map;for(j in l)l.hasOwnProperty(j)&&g.set(j.toLowerCase(),j);if(g.size===1&&g.has("children"))p+=nc(e,n,Jt(c));else{for(var w in n)if(n.hasOwnProperty(w)&&w!=="children"){var C=120-2*(c+1)-w.length-1,D=g.get(w.toLowerCase());if(D!==void 0){g.delete(w.toLowerCase());var j=n[w];D=l[D];var ae=tc(j,C);C=tc(D,C),typeof j=="object"&&j!==null&&typeof D=="object"&&D!==null&&Yp(j)==="Object"&&Yp(D)==="Object"&&(2<Object.keys(j).length||2<Object.keys(D).length||-1<ae.indexOf("...")||-1<C.indexOf("..."))?p+=Jt(c+1)+w+`={{
70
+ `+Xp(j,D,c+2)+Jt(c+1)+`}}
71
+ `:(p+=_u(c+1)+w+"="+ae+`
72
+ `,p+=ko(c+1)+w+"="+C+`
73
+ `)}else p+=Jt(c+1)+w+"="+tc(n[w],C)+`
74
+ `}g.forEach(function(le){if(le!=="children"){var Z=120-2*(c+1)-le.length-1;p+=ko(c+1)+le+"="+tc(l[le],Z)+`
75
+ `}}),p=p===""?Jt(c)+"<"+e+`>
76
+ `:Jt(c)+"<"+e+`
77
+ `+p+Jt(c)+`>
78
+ `}return e=l.children,n=n.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(g="",(typeof n=="string"||typeof n=="number"||typeof n=="bigint")&&(g=""+n),p+=Gp(g,""+e,c+1)):(typeof n=="string"||typeof n=="number"||typeof n=="bigint")&&(p=e==null?p+Gp(""+n,null,c+1):p+Gp(""+n,void 0,c+1)),p}function _r(e,n){var l=Bo(e);if(l===null){for(l="",e=e.child;e;)l+=_r(e,n),e=e.sibling;return l}return Jt(n)+"<"+l+`>
79
+ `}function Fp(e,n){var l=Au(e,n);if(l!==e&&(e.children.length!==1||e.children[0]!==l))return Jt(n)+`...
80
+ `+Fp(l,n+1);l="";var c=e.fiber._debugInfo;if(c)for(var p=0;p<c.length;p++){var g=c[p].name;typeof g=="string"&&(l+=Jt(n)+"<"+g+`>
81
+ `,n++)}if(c="",p=e.fiber.pendingProps,e.fiber.tag===6)c=Gp(p,e.serverProps,n),n++;else if(g=Bo(e.fiber),g!==null)if(e.serverProps===void 0){c=n;var w=120-2*c-g.length-2,C="";for(j in p)if(p.hasOwnProperty(j)&&j!=="children"){var D=tc(p[j],15);if(w-=j.length+D.length+2,0>w){C+=" ...";break}C+=" "+j+"="+D}c=Jt(c)+"<"+g+C+`>
82
+ `,n++}else e.serverProps===null?(c=nc(g,p,_u(n)),n++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(c=Ji(g,p,e.serverProps,n),n++);var j="";for(p=e.fiber.child,g=0;p&&g<e.children.length;)w=e.children[g],w.fiber===p?(j+=Fp(w,n),g++):j+=_r(p,n),p=p.sibling;for(p&&0<e.children.length&&(j+=Jt(n)+`...
83
+ `),p=e.serverTail,e.serverProps===null&&n--,e=0;e<p.length;e++)g=p[e],j=typeof g=="string"?j+(ko(n)+li(g,120-2*n)+`
84
+ `):j+nc(g.type,g.props,ko(n));return l+c+j}function zy(e){try{return`
85
+
86
+ `+Fp(e,0)}catch{return""}}function Qp(e,n,l){for(var c=n,p=null,g=0;c;)c===e&&(g=0),p={fiber:c,children:p!==null?[p]:[],serverProps:c===n?l:c===e?null:void 0,serverTail:[],distanceFromLeaf:g},g++,c=c.return;return p!==null?zy(p).replaceAll(/^[+-]/gm,">"):""}function ky(e,n){var l=Tt({},e||Re),c={tag:n};return B.indexOf(n)!==-1&&(l.aTagInScope=null,l.buttonTagInScope=null,l.nobrTagInScope=null),W.indexOf(n)!==-1&&(l.pTagInButtonScope=null),O.indexOf(n)!==-1&&n!=="address"&&n!=="div"&&n!=="p"&&(l.listItemTagAutoclosing=null,l.dlItemTagAutoclosing=null),l.current=c,n==="form"&&(l.formTag=c),n==="a"&&(l.aTagInScope=c),n==="button"&&(l.buttonTagInScope=c),n==="nobr"&&(l.nobrTagInScope=c),n==="p"&&(l.pTagInButtonScope=c),n==="li"&&(l.listItemTagAutoclosing=c),(n==="dd"||n==="dt")&&(l.dlItemTagAutoclosing=c),n==="#document"||n==="html"?l.containerTagInScope=null:l.containerTagInScope||(l.containerTagInScope=c),e!==null||n!=="#document"&&n!=="html"&&n!=="body"?l.implicitRootScope===!0&&(l.implicitRootScope=!1):l.implicitRootScope=!0,l}function Hf(e,n,l){switch(n){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(l)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!l)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n!=="h1"&&n!=="h2"&&n!=="h3"&&n!=="h4"&&n!=="h5"&&n!=="h6";case"rp":case"rt":return ye.indexOf(n)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return n==null;case"head":return l||n===null;case"html":return l&&n==="#document"||n===null;case"body":return l&&(n==="#document"||n==="html")||n===null}return!0}function Ox(e,n){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n.pTagInButtonScope;case"form":return n.formTag||n.pTagInButtonScope;case"li":return n.listItemTagAutoclosing;case"dd":case"dt":return n.dlItemTagAutoclosing;case"button":return n.buttonTagInScope;case"a":return n.aTagInScope;case"nobr":return n.nobrTagInScope}return null}function Mr(e,n){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===n)return e}e=e.return}return null}function Pf(e,n){n=n||Re;var l=n.current;if(n=(l=Hf(e,l&&l.tag,n.implicitRootScope)?null:l)?null:Ox(e,n),n=l||n,!n)return!0;var c=n.tag;if(n=String(!!l)+"|"+e+"|"+c,Me[n])return!1;Me[n]=!0;var p=(n=Tr)?Mr(n.return,c):null,g=n!==null&&p!==null?Qp(p,n,null):"",w="<"+e+">";return l?(l="",c==="table"&&e==="tr"&&(l+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
87
+ This will cause a hydration error.%s`,w,c,l,g)):console.error(`In HTML, %s cannot be a descendant of <%s>.
88
+ This will cause a hydration error.%s`,w,c,g),n&&(e=n.return,p===null||e===null||p===e&&e._debugOwner===n._debugOwner||de(p,function(){console.error(`<%s> cannot contain a nested %s.
89
+ See this log for the ancestor stack trace.`,c,w)})),!1}function If(e,n,l){if(l||Hf("#text",n,!1))return!0;if(l="#text|"+n,Me[l])return!1;Me[l]=!0;var c=(l=Tr)?Mr(l,n):null;return l=l!==null&&c!==null?Qp(c,l,l.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
90
+ This will cause a hydration error.%s`,n,l):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
91
+ This will cause a hydration error.%s`,n,l),!1}function Mu(e,n){if(n){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=n;return}}e.textContent=n}function ac(e){return e.replace(fe,function(n,l){return l.toUpperCase()})}function By(e,n,l){var c=n.indexOf("--")===0;c||(-1<n.indexOf("-")?he.hasOwnProperty(n)&&he[n]||(he[n]=!0,console.error("Unsupported style property %s. Did you mean %s?",n,ac(n.replace(sn,"ms-")))):rt.test(n)?he.hasOwnProperty(n)&&he[n]||(he[n]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",n,n.charAt(0).toUpperCase()+n.slice(1))):!re.test(l)||_e.hasOwnProperty(l)&&_e[l]||(_e[l]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,n,l.replace(re,""))),typeof l=="number"&&(isNaN(l)?We||(We=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",n)):isFinite(l)||Ht||(Ht=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",n)))),l==null||typeof l=="boolean"||l===""?c?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":c?e.setProperty(n,l):typeof l!="number"||l===0||Qe.has(n)?n==="float"?e.cssFloat=l:(Tn(l,n),e[n]=(""+l).trim()):e[n]=l+"px"}function Uy(e,n,l){if(n!=null&&typeof n!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(n&&Object.freeze(n),e=e.style,l!=null){if(n){var c={};if(l){for(var p in l)if(l.hasOwnProperty(p)&&!n.hasOwnProperty(p))for(var g=ge[p]||[p],w=0;w<g.length;w++)c[g[w]]=p}for(var C in n)if(n.hasOwnProperty(C)&&(!l||l[C]!==n[C]))for(p=ge[C]||[C],g=0;g<p.length;g++)c[p[g]]=C;C={};for(var D in n)for(p=ge[D]||[D],g=0;g<p.length;g++)C[p[g]]=D;D={};for(var j in c)if(p=c[j],(g=C[j])&&p!==g&&(w=p+","+g,!D[w])){D[w]=!0,w=console;var ae=n[p];w.error.call(w,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",ae==null||typeof ae=="boolean"||ae===""?"Removing":"Updating",p,g)}}for(var le in l)!l.hasOwnProperty(le)||n!=null&&n.hasOwnProperty(le)||(le.indexOf("--")===0?e.setProperty(le,""):le==="float"?e.cssFloat="":e[le]="");for(var Z in n)j=n[Z],n.hasOwnProperty(Z)&&l[Z]!==j&&By(e,Z,j)}else for(c in n)n.hasOwnProperty(c)&&By(e,c,n[c])}function ii(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}}function FS(e){return Vt.get(e)||e}function QS(e,n){if(Vr.call(Mm,n)&&Mm[n])return!0;if(eB.test(n)){if(e="aria-"+n.slice(4).toLowerCase(),e=gT.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",n),Mm[n]=!0;if(n!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",n,e),Mm[n]=!0}if(Wk.test(n)){if(e=n.toLowerCase(),e=gT.hasOwnProperty(e)?e:null,e==null)return Mm[n]=!0,!1;n!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",n,e),Mm[n]=!0)}return!0}function ZS(e,n){var l=[],c;for(c in n)QS(e,c)||l.push(c);n=l.map(function(p){return"`"+p+"`"}).join(", "),l.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",n,e):1<l.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",n,e)}function Ly(e,n,l,c){if(Vr.call(Gr,n)&&Gr[n])return!0;var p=n.toLowerCase();if(p==="onfocusin"||p==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Gr[n]=!0;if(typeof l=="function"&&(e==="form"&&n==="action"||e==="input"&&n==="formAction"||e==="button"&&n==="formAction"))return!0;if(c!=null){if(e=c.possibleRegistrationNames,c.registrationNameDependencies.hasOwnProperty(n))return!0;if(c=e.hasOwnProperty(p)?e[p]:null,c!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",n,c),Gr[n]=!0;if(bM.test(n))return console.error("Unknown event handler property `%s`. It will be ignored.",n),Gr[n]=!0}else if(bM.test(n))return tB.test(n)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",n),Gr[n]=!0;if(nB.test(n)||aB.test(n))return!0;if(p==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Gr[n]=!0;if(p==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Gr[n]=!0;if(p==="is"&&l!==null&&l!==void 0&&typeof l!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof l),Gr[n]=!0;if(typeof l=="number"&&isNaN(l))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",n),Gr[n]=!0;if(Fl.hasOwnProperty(p)){if(p=Fl[p],p!==n)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",n,p),Gr[n]=!0}else if(n!==p)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",n,p),Gr[n]=!0;switch(n){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof l){case"boolean":switch(n){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:return p=n.toLowerCase().slice(0,5),p==="data-"||p==="aria-"?!0:(l?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',l,n,n,l,n):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',l,n,n,l,n,n,n),Gr[n]=!0)}case"function":case"symbol":return Gr[n]=!0,!1;case"string":if(l==="false"||l==="true"){switch(n){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",l,n,l==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',n,l),Gr[n]=!0}}return!0}function qx(e,n,l){var c=[],p;for(p in n)Ly(e,p,n[p],l)||c.push(p);n=c.map(function(g){return"`"+g+"`"}).join(", "),c.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",n,e):1<c.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",n,e)}function Vf(e){return rB.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ll(){}function Cl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function Zp(e){var n=An(e);if(n&&(e=n.stateNode)){var l=e[dr]||null;e:switch(e=n.stateNode,n.type){case"input":if(zo(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),n=l.name,l.type==="radio"&&n!=null){for(l=e;l.parentNode;)l=l.parentNode;for(Ke(n,"name"),l=l.querySelectorAll('input[name="'+rn(""+n)+'"][type="radio"]'),n=0;n<l.length;n++){var c=l[n];if(c!==e&&c.form===e.form){var p=c[dr]||null;if(!p)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");zo(c,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(n=0;n<l.length;n++)c=l[n],c.form===e.form&&Dy(c)}break e;case"textarea":Cu(e,l.value,l.defaultValue);break e;case"select":n=l.value,n!=null&&ri(e,!!l.multiple,n,!1)}}}function Jp(e,n,l){if(Gx)return e(n,l);Gx=!0;try{var c=e(n);return c}finally{if(Gx=!1,(Om!==null||qm!==null)&&(Hr(),Om&&(n=Om,e=qm,qm=Om=null,Zp(n),e)))for(n=0;n<e.length;n++)Zp(e[n])}}function oi(e,n){var l=e.stateNode;if(l===null)return null;var c=l[dr]||null;if(c===null)return null;l=c[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":(c=!c.disabled)||(e=e.type,c=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!c;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error("Expected `"+n+"` listener to be a function, instead got a value of `"+typeof l+"` type.");return l}function Ou(){if(bT)return bT;var e,n=Xx,l=n.length,c,p="value"in of?of.value:of.textContent,g=p.length;for(e=0;e<l&&n[e]===p[e];e++);var w=l-e;for(c=1;c<=w&&n[l-c]===p[g-c];c++);return bT=p.slice(e,1<c?1-c:void 0)}function Gf(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 rc(){return!0}function $y(){return!1}function ba(e){function n(l,c,p,g,w){this._reactName=l,this._targetInst=p,this.type=c,this.nativeEvent=g,this.target=w,this.currentTarget=null;for(var C in e)e.hasOwnProperty(C)&&(l=e[C],this[C]=l?l(g):g[C]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?rc:$y,this.isPropagationStopped=$y,this}return Tt(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=rc)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=rc)},persist:function(){},isPersistent:rc}),n}function Ki(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=gB[e])?!!n[e]:!1}function Yf(){return Ki}function lc(e,n){switch(e){case"keyup":return MB.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==TM;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wi(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function Hy(e,n){switch(e){case"compositionend":return Wi(n);case"keypress":return n.which!==xM?null:(CM=!0,RM);case"textInput":return e=n.data,e===RM&&CM?null:e;default:return null}}function Kp(e,n){if(Dm)return e==="compositionend"||!Jx&&lc(e,n)?(e=Ou(),bT=Xx=of=null,Dm=!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 wM&&n.locale!=="ko"?null:n.data;default:return null}}function Py(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!qB[e.type]:n==="textarea"}function Wp(e){if(!yu)return!1;e="on"+e;var n=e in document;return n||(n=document.createElement("div"),n.setAttribute(e,"return;"),n=typeof n[e]=="function"),n}function Xf(e,n,l,c){Om?qm?qm.push(c):qm=[c]:Om=c,n=Il(n,"onChange"),0<n.length&&(l=new vT("onChange","change",null,l,c),e.push({event:l,listeners:n}))}function JS(e){en(e,0)}function Na(e){var n=oa(e);if(Dy(n))return e}function Uo(e,n){if(e==="change")return n}function Ff(){$b&&($b.detachEvent("onpropertychange",ic),Hb=$b=null)}function ic(e){if(e.propertyName==="value"&&Na(Hb)){var n=[];Xf(n,Hb,e,Cl(e)),Jp(JS,n)}}function Dx(e,n,l){e==="focusin"?(Ff(),$b=n,Hb=l,$b.attachEvent("onpropertychange",ic)):e==="focusout"&&Ff()}function Iy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Na(Hb)}function Vy(e,n){if(e==="click")return Na(n)}function Qf(e,n){if(e==="input"||e==="change")return Na(n)}function eh(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}function oc(e,n){if(Yr(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var l=Object.keys(e),c=Object.keys(n);if(l.length!==c.length)return!1;for(c=0;c<l.length;c++){var p=l[c];if(!Vr.call(n,p)||!Yr(e[p],n[p]))return!1}return!0}function KS(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function WS(e,n){var l=KS(e);e=0;for(var c;l;){if(l.nodeType===3){if(c=e+l.textContent.length,e<=n&&c>=n)return{node:l,offset:n-e};e=c}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=KS(l)}}function eE(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?eE(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function th(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Rl(e.document);n instanceof e.HTMLIFrameElement;){try{var l=typeof n.contentWindow.location.href=="string"}catch{l=!1}if(l)e=n.contentWindow;else break;n=Rl(e.document)}return n}function Gy(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")}function tE(e,n,l){var c=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Wx||Nm==null||Nm!==Rl(c)||(c=Nm,"selectionStart"in c&&Gy(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Pb&&oc(Pb,c)||(Pb=c,c=Il(Kx,"onSelect"),0<c.length&&(n=new vT("onSelect","select",null,n,l),e.push({event:n,listeners:c}),n.target=Nm)))}function qu(e,n){var l={};return l[e.toLowerCase()]=n.toLowerCase(),l["Webkit"+e]="webkit"+n,l["Moz"+e]="moz"+n,l}function Du(e){if(eR[e])return eR[e];if(!jm[e])return e;var n=jm[e],l;for(l in n)if(n.hasOwnProperty(l)&&l in _M)return eR[e]=n[l];return e}function Al(e,n){NM.set(e,n),Wn(n,[e])}function nE(e){for(var n=ET,l=0;l<e.length;l++){var c=e[l];if(typeof c=="object"&&c!==null)if(na(c)&&c.length===2&&typeof c[0]=="string"){if(n!==ET&&n!==lR)return aR;n=lR}else return aR;else{if(typeof c=="function"||typeof c=="string"&&50<c.length||n!==ET&&n!==rR)return aR;n=rR}}return n}function Yy(e,n,l,c){for(var p in e)Vr.call(e,p)&&p[0]!=="_"&&ui(p,e[p],n,l,c)}function ui(e,n,l,c,p){switch(typeof n){case"object":if(n===null){n="null";break}else{if(n.$$typeof===yl){var g=U(n.type)||"…",w=n.key;n=n.props;var C=Object.keys(n),D=C.length;if(w==null&&D===0){n="<"+g+" />";break}if(3>c||D===1&&C[0]==="children"&&w==null){n="<"+g+" … />";break}l.push([p+"  ".repeat(c)+e,"<"+g]),w!==null&&ui("key",w,l,c+1,p),e=!1;for(var j in n)j==="children"?n.children!=null&&(!na(n.children)||0<n.children.length)&&(e=!0):Vr.call(n,j)&&j[0]!=="_"&&ui(j,n[j],l,c+1,p);l.push(["",e?">…</"+g+">":"/>"]);return}if(g=Object.prototype.toString.call(n),g=g.slice(8,g.length-1),g==="Array"){if(j=nE(n),j===rR||j===ET){n=JSON.stringify(n);break}else if(j===lR){for(l.push([p+"  ".repeat(c)+e,""]),e=0;e<n.length;e++)g=n[e],ui(g[0],g[1],l,c+1,p);return}}if(g==="Promise"){if(n.status==="fulfilled"){if(g=l.length,ui(e,n.value,l,c,p),l.length>g){l=l[g],l[1]="Promise<"+(l[1]||"Object")+">";return}}else if(n.status==="rejected"&&(g=l.length,ui(e,n.reason,l,c,p),l.length>g)){l=l[g],l[1]="Rejected Promise<"+l[1]+">";return}l.push(["  ".repeat(c)+e,"Promise"]);return}g==="Object"&&(j=Object.getPrototypeOf(n))&&typeof j.constructor=="function"&&(g=j.constructor.name),l.push([p+"  ".repeat(c)+e,g==="Object"?3>c?"":"…":g]),3>c&&Yy(n,l,c+1,p);return}case"function":n=n.name===""?"() => {}":n.name+"() {}";break;case"string":n=n===UB?"…":JSON.stringify(n);break;case"undefined":n="undefined";break;case"boolean":n=n?"true":"false";break;default:n=String(n)}l.push([p+"  ".repeat(c)+e,n])}function aE(e,n,l,c){var p=!0;for(w in e)w in n||(l.push([TT+"  ".repeat(c)+w,"…"]),p=!1);for(var g in n)if(g in e){var w=e[g],C=n[g];if(w!==C){if(c===0&&g==="children")p="  ".repeat(c)+g,l.push([TT+p,"…"],[wT+p,"…"]);else{if(!(3<=c)){if(typeof w=="object"&&typeof C=="object"&&w!==null&&C!==null&&w.$$typeof===C.$$typeof)if(C.$$typeof===yl){if(w.type===C.type&&w.key===C.key){w=U(C.type)||"…",p="  ".repeat(c)+g,w="<"+w+" … />",l.push([TT+p,w],[wT+p,w]),p=!1;continue}}else{var D=Object.prototype.toString.call(w),j=Object.prototype.toString.call(C);if(D===j&&(j==="[object Object]"||j==="[object Array]")){D=[kM+"  ".repeat(c)+g,j==="[object Array]"?"Array":""],l.push(D),j=l.length,aE(w,C,l,c+1)?j===l.length&&(D[1]="Referentially unequal but deeply equal objects. Consider memoization."):p=!1;continue}}else if(typeof w=="function"&&typeof C=="function"&&w.name===C.name&&w.length===C.length&&(D=Function.prototype.toString.call(w),j=Function.prototype.toString.call(C),D===j)){w=C.name===""?"() => {}":C.name+"() {}",l.push([kM+"  ".repeat(c)+g,w+" Referentially unequal function closure. Consider memoization."]);continue}}ui(g,w,l,c,TT),ui(g,C,l,c,wT)}p=!1}}else l.push([wT+"  ".repeat(c)+g,"…"]),p=!1;return p}function _l(e){Ut=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function il(e,n,l,c){Dn&&(sf.start=n,sf.end=l,gs.color="warning",gs.tooltipText=c,gs.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,c,sf)):performance.measure(c,sf))}function nh(e,n,l){il(e,n,l,"Reconnect")}function ah(e,n,l,c,p){var g=H(e);if(g!==null&&Dn){var w=e.alternate,C=e.actualDuration;if(w===null||w.child!==e.child)for(var D=e.child;D!==null;D=D.sibling)C-=D.actualDuration;c=.5>C?c?"tertiary-light":"primary-light":10>C?c?"tertiary":"primary":100>C?c?"tertiary-dark":"primary-dark":"error";var j=e.memoizedProps;C=e._debugTask,j!==null&&w!==null&&w.memoizedProps!==j?(D=[LB],j=aE(w.memoizedProps,j,D,0),1<D.length&&(j&&!uf&&(w.lanes&p)===0&&100<e.actualDuration?(uf=!0,D[0]=$B,gs.color="warning",gs.tooltipText=BM):(gs.color=c,gs.tooltipText=g),gs.properties=D,sf.start=n,sf.end=l,C!=null?C.run(performance.measure.bind(performance,"​"+g,sf)):performance.measure("​"+g,sf))):C!=null?C.run(console.timeStamp.bind(console,g,n,l,zi,void 0,c)):console.timeStamp(g,n,l,zi,void 0,c)}}function Xy(e,n,l,c){if(Dn){var p=H(e);if(p!==null){for(var g=null,w=[],C=0;C<c.length;C++){var D=c[C];g==null&&D.source!==null&&(g=D.source._debugTask),D=D.value,w.push(["Error",typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D)])}e.key!==null&&ui("key",e.key,w,0,""),e.memoizedProps!==null&&Yy(e.memoizedProps,w,0,""),g==null&&(g=e._debugTask),e={start:n,end:l,detail:{devtools:{color:"error",track:zi,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:w}}},g?g.run(performance.measure.bind(performance,"​"+p,e)):performance.measure("​"+p,e)}}}function Ml(e,n,l,c,p){if(p!==null){if(Dn){var g=H(e);if(g!==null){c=[];for(var w=0;w<p.length;w++){var C=p[w].value;c.push(["Error",typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C)])}e.key!==null&&ui("key",e.key,c,0,""),e.memoizedProps!==null&&Yy(e.memoizedProps,c,0,""),n={start:n,end:l,detail:{devtools:{color:"error",track:zi,tooltipText:"A lifecycle or effect errored",properties:c}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+g,n)):performance.measure("​"+g,n)}}}else g=H(e),g!==null&&Dn&&(p=1>c?"secondary-light":100>c?"secondary":500>c?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,g,n,l,zi,void 0,p)):console.timeStamp(g,n,l,zi,void 0,p))}function Nx(e,n,l,c){if(Dn&&!(n<=e)){var p=(l&738197653)===l?"tertiary-dark":"primary-dark";l=(l&536870912)===l?"Prepared":(l&201326741)===l?"Hydrated":"Render",c?c.run(console.timeStamp.bind(console,l,e,n,Ut,jt,p)):console.timeStamp(l,e,n,Ut,jt,p)}}function rE(e,n,l,c){!Dn||n<=e||(l=(l&738197653)===l?"tertiary-dark":"primary-dark",c?c.run(console.timeStamp.bind(console,"Prewarm",e,n,Ut,jt,l)):console.timeStamp("Prewarm",e,n,Ut,jt,l))}function lE(e,n,l,c){!Dn||n<=e||(l=(l&738197653)===l?"tertiary-dark":"primary-dark",c?c.run(console.timeStamp.bind(console,"Suspended",e,n,Ut,jt,l)):console.timeStamp("Suspended",e,n,Ut,jt,l))}function jx(e,n,l,c,p,g){if(Dn&&!(n<=e)){l=[];for(var w=0;w<c.length;w++){var C=c[w].value;l.push(["Recoverable Error",typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C)])}e={start:e,end:n,detail:{devtools:{color:"primary-dark",track:Ut,trackGroup:jt,tooltipText:p?"Hydration Failed":"Recovered after Error",properties:l}}},g?g.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function Fy(e,n,l,c){!Dn||n<=e||(c?c.run(console.timeStamp.bind(console,"Errored",e,n,Ut,jt,"error")):console.timeStamp("Errored",e,n,Ut,jt,"error"))}function zx(e,n,l,c){!Dn||n<=e||(c?c.run(console.timeStamp.bind(console,l,e,n,Ut,jt,"secondary-light")):console.timeStamp(l,e,n,Ut,jt,"secondary-light"))}function iE(e,n,l,c,p){if(Dn&&!(n<=e)){for(var g=[],w=0;w<l.length;w++){var C=l[w].value;g.push(["Error",typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C)])}e={start:e,end:n,detail:{devtools:{color:"error",track:Ut,trackGroup:jt,tooltipText:c?"Remaining Effects Errored":"Commit Errored",properties:g}}},p?p.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function Qy(e,n,l){!Dn||n<=e||console.timeStamp("Animating",e,n,Ut,jt,"secondary-dark")}function rh(){for(var e=zm,n=iR=zm=0;n<e;){var l=ki[n];ki[n++]=null;var c=ki[n];ki[n++]=null;var p=ki[n];ki[n++]=null;var g=ki[n];if(ki[n++]=null,c!==null&&p!==null){var w=c.pending;w===null?p.next=p:(p.next=w.next,w.next=p),c.pending=p}g!==0&&Zy(l,p,g)}}function uc(e,n,l,c){ki[zm++]=e,ki[zm++]=n,ki[zm++]=l,ki[zm++]=c,iR|=c,e.lanes|=c,e=e.alternate,e!==null&&(e.lanes|=c)}function Nu(e,n,l,c){return uc(e,n,l,c),Zf(e)}function Ha(e,n){return uc(e,null,null,n),Zf(e)}function Zy(e,n,l){e.lanes|=l;var c=e.alternate;c!==null&&(c.lanes|=l);for(var p=!1,g=e.return;g!==null;)g.childLanes|=l,c=g.alternate,c!==null&&(c.childLanes|=l),g.tag===22&&(e=g.stateNode,e===null||e._visibility&Ib||(p=!0)),e=g,g=g.return;return e.tag===3?(g=e.stateNode,p&&n!==null&&(p=31-za(l),e=g.hiddenUpdates,c=e[p],c===null?e[p]=[n]:c.push(n),n.lane=l|536870912),g):null}function Zf(e){if(yv>nU)throw bp=yv=0,gv=LR=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");bp>aU&&(bp=0,gv=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&ml(e);for(var n=e,l=n.return;l!==null;)n.alternate===null&&(n.flags&4098)!==0&&ml(e),n=l,l=n.return;return n.tag===3?n.stateNode:null}function Lo(e){if(Bi===null)return e;var n=Bi(e);return n===void 0?e:n.current}function lh(e){if(Bi===null)return e;var n=Bi(e);return n===void 0?e!=null&&typeof e.render=="function"&&(n=Lo(e.render),e.render!==n)?(n={$$typeof:Qc,render:n},e.displayName!==void 0&&(n.displayName=e.displayName),n):e:n.current}function Jy(e,n){if(Bi===null)return!1;var l=e.elementType;n=n.type;var c=!1,p=typeof n=="object"&&n!==null?n.$$typeof:null;switch(e.tag){case 1:typeof n=="function"&&(c=!0);break;case 0:(typeof n=="function"||p===Va)&&(c=!0);break;case 11:(p===Qc||p===Va)&&(c=!0);break;case 14:case 15:(p===Zd||p===Va)&&(c=!0);break;default:return!1}return!!(c&&(e=Bi(l),e!==void 0&&e===Bi(n)))}function ju(e){Bi!==null&&typeof WeakSet=="function"&&(km===null&&(km=new WeakSet),km.add(e))}function oE(e,n,l){do{var c=e,p=c.alternate,g=c.child,w=c.sibling,C=c.tag;c=c.type;var D=null;switch(C){case 0:case 15:case 1:D=c;break;case 11:D=c.render}if(Bi===null)throw Error("Expected resolveFamily to be set during hot reload.");var j=!1;if(c=!1,D!==null&&(D=Bi(D),D!==void 0&&(l.has(D)?c=!0:n.has(D)&&(C===1?c=!0:j=!0))),km!==null&&(km.has(e)||p!==null&&km.has(p))&&(c=!0),c&&(e._debugNeedsRemount=!0),(c||j)&&(p=Ha(e,2),p!==null&&ft(p,e,2)),g===null||c||oE(g,n,l),w===null)break;e=w}while(!0)}function kx(e,n,l,c){this.tag=e,this.key=l,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=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,UM||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function Ky(e){return e=e.prototype,!(!e||!e.isReactComponent)}function si(e,n){var l=e.alternate;switch(l===null?(l=R(e.tag,n,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l._debugOwner=e._debugOwner,l._debugStack=e._debugStack,l._debugTask=e._debugTask,l._debugHookTypes=e._debugHookTypes,l.alternate=e,e.alternate=l):(l.pendingProps=n,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null,l.actualDuration=-0,l.actualStartTime=-1.1),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,n=e.dependencies,l.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext,_debugThenableState:n._debugThenableState},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l.selfBaseDuration=e.selfBaseDuration,l.treeBaseDuration=e.treeBaseDuration,l._debugInfo=e._debugInfo,l._debugNeedsRemount=e._debugNeedsRemount,l.tag){case 0:case 15:l.type=Lo(e.type);break;case 1:l.type=Lo(e.type);break;case 11:l.type=lh(e.type)}return l}function Wy(e,n){e.flags&=65011714;var l=e.alternate;return l===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.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,n=l.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext,_debugThenableState:n._debugThenableState},e.selfBaseDuration=l.selfBaseDuration,e.treeBaseDuration=l.treeBaseDuration),e}function zu(e,n,l,c,p,g){var w=0,C=e;if(typeof e=="function")Ky(e)&&(w=1),C=Lo(C);else if(typeof e=="string")w=ue(),w=nT(e,l,w)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Xl:return n=R(31,l,n,p),n.elementType=Xl,n.lanes=g,n;case Fc:return ku(l.children,p,g,n);case fr:w=8,p|=wr,p|=Eo;break;case Qd:return e=l,c=p,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),n=R(12,e,n,c|wt),n.elementType=Qd,n.lanes=g,n.stateNode={effectDuration:0,passiveEffectDuration:0},n;case ds:return n=R(13,l,n,p),n.elementType=ds,n.lanes=g,n;case Er:return n=R(19,l,n,p),n.elementType=Er,n.lanes=g,n;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Yl:w=10;break e;case gm:w=9;break e;case Qc:w=11,C=lh(C);break e;case Zd:w=14;break e;case Va:w=16,C=null;break e}C="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(C+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?l="null":na(e)?l="array":e!==void 0&&e.$$typeof===yl?(l="<"+(U(e.type)||"Unknown")+" />",C=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,(w=c?F(c):null)&&(C+=`
92
+
93
+ Check the render method of \``+w+"`."),w=29,l=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(l+"."+C)),C=null}return n=R(w,l,n,p),n.elementType=e,n.type=C,n.lanes=g,n._debugOwner=c,n}function $o(e,n,l){return n=zu(e.type,e.key,e.props,e._owner,n,l),n._debugOwner=e._owner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n}function ku(e,n,l,c){return e=R(7,e,c,n),e.lanes=l,e}function sc(e,n,l){return e=R(6,e,null,n),e.lanes=l,e}function eg(e){var n=R(18,null,null,ct);return n.stateNode=e,n}function ih(e,n,l){return n=R(4,e.children!==null?e.children:[],e.key,n),n.lanes=l,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Ka(e,n){if(typeof e=="object"&&e!==null){var l=oR.get(e);return l!==void 0?l:(n={value:e,source:n,stack:Lt(n)},oR.set(e,n),n)}return{value:e,source:n,stack:Lt(n)}}function Ol(e,n){Ho(),Bm[Um++]=Vb,Bm[Um++]=xT,xT=e,Vb=n}function tg(e,n,l){Ho(),Ui[Li++]=vs,Ui[Li++]=Ss,Ui[Li++]=ap,ap=e;var c=vs;e=Ss;var p=32-za(c)-1;c&=~(1<<p),l+=1;var g=32-za(n)+p;if(30<g){var w=p-p%5;g=(c&(1<<w)-1).toString(32),c>>=w,p-=w,vs=1<<32-za(n)+p|l<<p|c,Ss=g+e}else vs=1<<g|l<<p|c,Ss=e}function oh(e){Ho(),e.return!==null&&(Ol(e,1),tg(e,1,0))}function uh(e){for(;e===xT;)xT=Bm[--Um],Bm[Um]=null,Vb=Bm[--Um],Bm[Um]=null;for(;e===ap;)ap=Ui[--Li],Ui[Li]=null,Ss=Ui[--Li],Ui[Li]=null,vs=Ui[--Li],Ui[Li]=null}function uE(){return Ho(),ap!==null?{id:vs,overflow:Ss}:null}function sE(e,n){Ho(),Ui[Li++]=vs,Ui[Li++]=Ss,Ui[Li++]=ap,vs=n.id,Ss=n.overflow,ap=e}function Ho(){Dt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Bu(e,n){if(e.return===null){if(Ql===null)Ql={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:n};else{if(Ql.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Ql.distanceFromLeaf>n&&(Ql.distanceFromLeaf=n)}return Ql}var l=Bu(e.return,n+1).children;return 0<l.length&&l[l.length-1].fiber===e?(l=l[l.length-1],l.distanceFromLeaf>n&&(l.distanceFromLeaf=n),l):(n={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:n},l.push(n),n)}function cE(){Dt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Pa(e,n){gu||(e=Bu(e,0),e.serverProps=null,n!==null&&(n=KE(n),e.serverTail.push(n)))}function ol(e){var n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,l="",c=Ql;throw c!==null&&(Ql=null,l=zy(c)),Kf(Ka(Error("Hydration failed because the server rendered "+(n?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
94
+
95
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
96
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
97
+ - Date formatting in a user's locale which doesn't match the server.
98
+ - External changing data without sending a snapshot of it along with the HTML.
99
+ - Invalid HTML tag nesting.
100
+
101
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
102
+
103
+ https://react.dev/link/hydration-mismatch`+l),e)),uR}function ng(e){var n=e.stateNode,l=e.type,c=e.memoizedProps;switch(n[qn]=e,n[dr]=c,sr(l,c),l){case"dialog":it("cancel",n),it("close",n);break;case"iframe":case"object":case"embed":it("load",n);break;case"video":case"audio":for(l=0;l<bv.length;l++)it(bv[l],n);break;case"source":it("error",n);break;case"img":case"image":case"link":it("error",n),it("load",n);break;case"details":it("toggle",n);break;case"input":ze("input",c),it("invalid",n),Ja(n,c),Ip(n,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"option":XS(n,c);break;case"select":ze("select",c),it("invalid",n),Vp(n,c);break;case"textarea":ze("textarea",c),it("invalid",n),Ru(n,c),Ws(n,c.value,c.defaultValue,c.children)}l=c.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||n.textContent===""+l||c.suppressHydrationWarning===!0||rb(n.textContent,l)?(c.popover!=null&&(it("beforetoggle",n),it("toggle",n)),c.onScroll!=null&&it("scroll",n),c.onScrollEnd!=null&&it("scrollend",n),c.onClick!=null&&(n.onclick=ll),n=!0):n=!1,n||ol(e,!0)}function ag(e){for(pr=e.return;pr;)switch(pr.tag){case 5:case 31:case 13:$i=!1;return;case 27:case 3:$i=!0;return;default:pr=pr.return}}function Uu(e){if(e!==pr)return!1;if(!Dt)return ag(e),Dt=!0,!1;var n=e.tag,l;if((l=n!==3&&n!==27)&&((l=n===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||$c(e.type,e.memoizedProps)),l=!l),l&&Nn){for(l=Nn;l;){var c=Bu(e,0),p=KE(l);c.serverTail.push(p),l=p.type==="Suspense"?Ic(l):Pr(l.nextSibling)}ol(e)}if(ag(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Nn=Ic(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Nn=Ic(e)}else n===27?(n=Nn,cu(e.type)?(e=JR,JR=null,Nn=e):Nn=n):Nn=pr?Pr(e.stateNode.nextSibling):null;return!0}function Po(){Nn=pr=null,gu=Dt=!1}function Jf(){var e=ff;return e!==null&&(Zr===null?Zr=e:Zr.push.apply(Zr,e),ff=null),e}function Kf(e){ff===null?ff=[e]:ff.push(e)}function Io(){var e=Ql;if(e!==null){Ql=null;for(var n=zy(e);0<e.children.length;)e=e.children[0];de(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
104
+
105
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
106
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
107
+ - Date formatting in a user's locale which doesn't match the server.
108
+ - External changing data without sending a snapshot of it along with the HTML.
109
+ - Invalid HTML tag nesting.
110
+
111
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
112
+
113
+ %s%s`,"https://react.dev/link/hydration-mismatch",n)})}}function cc(){Lm=RT=null,$m=!1}function ul(e,n,l){se(sR,n._currentValue,e),n._currentValue=l,se(cR,n._currentRenderer,e),n._currentRenderer!==void 0&&n._currentRenderer!==null&&n._currentRenderer!==$M&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),n._currentRenderer=$M}function ql(e,n){e._currentValue=sR.current;var l=cR.current;ve(cR,n),e._currentRenderer=l,ve(sR,n)}function sh(e,n,l){for(;e!==null;){var c=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,c!==null&&(c.childLanes|=n)):c!==null&&(c.childLanes&n)!==n&&(c.childLanes|=n),e===l)break;e=e.return}e!==l&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function eo(e,n,l,c){var p=e.child;for(p!==null&&(p.return=e);p!==null;){var g=p.dependencies;if(g!==null){var w=p.child;g=g.firstContext;e:for(;g!==null;){var C=g;g=p;for(var D=0;D<n.length;D++)if(C.context===n[D]){g.lanes|=l,C=g.alternate,C!==null&&(C.lanes|=l),sh(g.return,l,e),c||(w=null);break e}g=C.next}}else if(p.tag===18){if(w=p.return,w===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");w.lanes|=l,g=w.alternate,g!==null&&(g.lanes|=l),sh(w,l,e),w=null}else w=p.child;if(w!==null)w.return=p;else for(w=p;w!==null;){if(w===e){w=null;break}if(p=w.sibling,p!==null){p.return=w.return,w=p;break}w=w.return}p=w}}function Dl(e,n,l,c){e=null;for(var p=n,g=!1;p!==null;){if(!g){if((p.flags&524288)!==0)g=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var w=p.alternate;if(w===null)throw Error("Should have a current fiber. This is a bug in React.");if(w=w.memoizedProps,w!==null){var C=p.type;Yr(p.pendingProps.value,w.value)||(e!==null?e.push(C):e=[C])}}else if(p===hu.current){if(w=p.alternate,w===null)throw Error("Should have a current fiber. This is a bug in React.");w.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(e!==null?e.push(wv):e=[wv])}p=p.return}e!==null&&eo(n,e,l,c),n.flags|=262144}function fc(e){for(e=e.firstContext;e!==null;){if(!Yr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Vo(e){RT=e,Lm=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Gt(e){return $m&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),rg(RT,e)}function Wf(e,n){return RT===null&&Vo(e),rg(e,n)}function rg(e,n){var l=n._currentValue;if(n={context:n,memoizedValue:l,next:null},Lm===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Lm=n,e.dependencies={lanes:0,firstContext:n,_debugThenableState:null},e.flags|=524288}else Lm=Lm.next=n;return l}function ch(){return{controller:new IB,data:new Map,refCount:0}}function Lu(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function ed(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&VB(GB,function(){e.controller.abort()})}function ci(e,n,l){(e&127)!==0?0>bu&&(bu=Aa(),Yb=CT(n),fR=n,l!=null&&(dR=H(l)),(Pt&(Ua|Kl))!==Fa&&(Jn=!0,pf=Gb),e=Hc(),n=Mi(),e!==Hm||n!==Xb?Hm=-1.1:n!==null&&(pf=Gb),ip=e,Xb=n):(e&4194048)!==0&&0>Hi&&(Hi=Aa(),Fb=CT(n),HM=n,l!=null&&(PM=H(l)),0>xs)&&(e=Hc(),n=Mi(),(e!==mf||n!==op)&&(mf=-1.1),hf=e,op=n)}function fE(e){if(0>bu){bu=Aa(),Yb=e._debugTask!=null?e._debugTask:null,(Pt&(Ua|Kl))!==Fa&&(pf=Gb);var n=Hc(),l=Mi();n!==Hm||l!==Xb?Hm=-1.1:l!==null&&(pf=Gb),ip=n,Xb=l}0>Hi&&(Hi=Aa(),Fb=e._debugTask!=null?e._debugTask:null,0>xs)&&(e=Hc(),n=Mi(),(e!==mf||n!==op)&&(mf=-1.1),hf=e,op=n)}function fi(){var e=rp;return rp=0,e}function dc(e){var n=rp;return rp=e,n}function Wa(e){var n=rp;return rp+=e,n}function $u(){lt=nt=-1.1}function _n(){var e=nt;return nt=-1.1,e}function va(e){0<=e&&(nt=e)}function sl(){var e=In;return In=-0,e}function Or(e){0<=e&&(In=e)}function qr(){var e=Un;return Un=null,e}function cl(){var e=Jn;return Jn=!1,e}function to(e){Xr=Aa(),0>e.actualStartTime&&(e.actualStartTime=Xr)}function fh(e){if(0<=Xr){var n=Aa()-Xr;e.actualDuration+=n,e.selfBaseDuration=n,Xr=-1}}function td(e){if(0<=Xr){var n=Aa()-Xr;e.actualDuration+=n,Xr=-1}}function er(){if(0<=Xr){var e=Aa(),n=e-Xr;Xr=-1,rp+=n,In+=n,lt=e}}function dE(e){Un===null&&(Un=[]),Un.push(e),Ts===null&&(Ts=[]),Ts.push(e)}function $n(){Xr=Aa(),0>nt&&(nt=Xr)}function Hu(e){for(var n=e.child;n;)e.actualDuration+=n.actualDuration,n=n.sibling}function no(e,n){if(Zb===null){var l=Zb=[];hR=0,up=ab(),Pm={status:"pending",value:void 0,then:function(c){l.push(c)}}}return hR++,n.then(lg,lg),n}function lg(){if(--hR===0&&(-1<Hi||(xs=-1.1),Zb!==null)){Pm!==null&&(Pm.status="fulfilled");var e=Zb;Zb=null,up=0,Pm=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function dh(e,n){var l=[],c={status:"pending",value:null,reason:null,then:function(p){l.push(p)}};return e.then(function(){c.status="fulfilled",c.value=n;for(var p=0;p<l.length;p++)(0,l[p])(n)},function(p){for(c.status="rejected",c.reason=p,p=0;p<l.length;p++)(0,l[p])(void 0)}),c}function ao(){var e=sp.current;return e!==null?e:gn.pooledCache}function pc(e,n){n===null?se(sp,sp.current,e):se(sp,n.pool,e)}function ig(){var e=ao();return e===null?null:{parent:Ca._currentValue,pool:e}}function ph(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function og(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Dr(e,n,l){Te.actQueue!==null&&(Te.didUsePromise=!0);var c=e.thenables;if(l=c[l],l===void 0?c.push(n):l!==n&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),n.then(ll,ll),n=l),n._debugInfo===void 0){e=performance.now(),c=n.displayName;var p={name:typeof c=="string"?c:"Promise",start:e,end:e,value:n};n._debugInfo=[{awaited:p}],n.status!=="fulfilled"&&n.status!=="rejected"&&(e=function(){p.end=performance.now()},n.then(e,e))}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,nd(e),e;default:if(typeof n.status=="string")n.then(ll,ll);else{if(e=gn,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=n,e.status="pending",e.then(function(g){if(n.status==="pending"){var w=n;w.status="fulfilled",w.value=g}},function(g){if(n.status==="pending"){var w=n;w.status="rejected",w.reason=g}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,nd(e),e}throw fp=n,av=!0,Im}}function Nr(e){try{return ZB(e)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(fp=n,av=!0,Im):n}}function Pu(){if(fp===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=fp;return fp=null,av=!1,e}function nd(e){if(e===Im||e===jT)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Yn(e){var n=xt;return e!=null&&(xt=n===null?e:n.concat(e)),n}function mr(){var e=xt;if(e!=null){for(var n=e.length-1;0<=n;n--)if(e[n].name!=null){var l=e[n].debugTask;if(l!=null)return l}}return null}function tr(e,n,l){for(var c=Object.keys(e.props),p=0;p<c.length;p++){var g=c[p];if(g!=="children"&&g!=="key"){n===null&&(n=$o(e,l.mode,0),n._debugInfo=xt,n.return=l),de(n,function(w){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",w)},g);break}}}function Nl(e){var n=rv;return rv+=1,Vm===null&&(Vm=ph()),Dr(Vm,e,n)}function yr(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function jl(e,n){throw n.$$typeof===uT?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
114
+ - Multiple copies of the "react" package is used.
115
+ - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
116
+ - A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(n),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function fl(e,n){var l=mr();l!==null?l.run(jl.bind(null,e,n)):jl(e,n)}function ug(e,n){var l=H(e)||"Component";uO[l]||(uO[l]=!0,n=n.displayName||n.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
117
+ root.render(%s)`,n,n,n):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
118
+ <%s>{%s}</%s>`,n,n,l,n,l))}function hc(e,n){var l=mr();l!==null?l.run(ug.bind(null,e,n)):ug(e,n)}function hh(e,n){var l=H(e)||"Component";sO[l]||(sO[l]=!0,n=String(n),e.tag===3?console.error(`Symbols are not valid as a React child.
119
+ root.render(%s)`,n):console.error(`Symbols are not valid as a React child.
120
+ <%s>%s</%s>`,l,n,l))}function ad(e,n){var l=mr();l!==null?l.run(hh.bind(null,e,n)):hh(e,n)}function Sa(e){function n(Q,K){if(e){var ne=Q.deletions;ne===null?(Q.deletions=[K],Q.flags|=16):ne.push(K)}}function l(Q,K){if(!e)return null;for(;K!==null;)n(Q,K),K=K.sibling;return null}function c(Q){for(var K=new Map;Q!==null;)Q.key!==null?K.set(Q.key,Q):K.set(Q.index,Q),Q=Q.sibling;return K}function p(Q,K){return Q=si(Q,K),Q.index=0,Q.sibling=null,Q}function g(Q,K,ne){return Q.index=ne,e?(ne=Q.alternate,ne!==null?(ne=ne.index,ne<K?(Q.flags|=67108866,K):ne):(Q.flags|=67108866,K)):(Q.flags|=1048576,K)}function w(Q){return e&&Q.alternate===null&&(Q.flags|=67108866),Q}function C(Q,K,ne,Ce){return K===null||K.tag!==6?(K=sc(ne,Q.mode,Ce),K.return=Q,K._debugOwner=Q,K._debugTask=Q._debugTask,K._debugInfo=xt,K):(K=p(K,ne),K.return=Q,K._debugInfo=xt,K)}function D(Q,K,ne,Ce){var He=ne.type;return He===Fc?(K=ae(Q,K,ne.props.children,Ce,ne.key),tr(ne,K,Q),K):K!==null&&(K.elementType===He||Jy(K,ne)||typeof He=="object"&&He!==null&&He.$$typeof===Va&&Nr(He)===K.type)?(K=p(K,ne.props),yr(K,ne),K.return=Q,K._debugOwner=ne._owner,K._debugInfo=xt,K):(K=$o(ne,Q.mode,Ce),yr(K,ne),K.return=Q,K._debugInfo=xt,K)}function j(Q,K,ne,Ce){return K===null||K.tag!==4||K.stateNode.containerInfo!==ne.containerInfo||K.stateNode.implementation!==ne.implementation?(K=ih(ne,Q.mode,Ce),K.return=Q,K._debugInfo=xt,K):(K=p(K,ne.children||[]),K.return=Q,K._debugInfo=xt,K)}function ae(Q,K,ne,Ce,He){return K===null||K.tag!==7?(K=ku(ne,Q.mode,Ce,He),K.return=Q,K._debugOwner=Q,K._debugTask=Q._debugTask,K._debugInfo=xt,K):(K=p(K,ne),K.return=Q,K._debugInfo=xt,K)}function le(Q,K,ne){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return K=sc(""+K,Q.mode,ne),K.return=Q,K._debugOwner=Q,K._debugTask=Q._debugTask,K._debugInfo=xt,K;if(typeof K=="object"&&K!==null){switch(K.$$typeof){case yl:return ne=$o(K,Q.mode,ne),yr(ne,K),ne.return=Q,Q=Yn(K._debugInfo),ne._debugInfo=xt,xt=Q,ne;case du:return K=ih(K,Q.mode,ne),K.return=Q,K._debugInfo=xt,K;case Va:var Ce=Yn(K._debugInfo);return K=Nr(K),Q=le(Q,K,ne),xt=Ce,Q}if(na(K)||k(K))return ne=ku(K,Q.mode,ne,null),ne.return=Q,ne._debugOwner=Q,ne._debugTask=Q._debugTask,Q=Yn(K._debugInfo),ne._debugInfo=xt,xt=Q,ne;if(typeof K.then=="function")return Ce=Yn(K._debugInfo),Q=le(Q,Nl(K),ne),xt=Ce,Q;if(K.$$typeof===Yl)return le(Q,Wf(Q,K),ne);fl(Q,K)}return typeof K=="function"&&hc(Q,K),typeof K=="symbol"&&ad(Q,K),null}function Z(Q,K,ne,Ce){var He=K!==null?K.key:null;if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return He!==null?null:C(Q,K,""+ne,Ce);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case yl:return ne.key===He?(He=Yn(ne._debugInfo),Q=D(Q,K,ne,Ce),xt=He,Q):null;case du:return ne.key===He?j(Q,K,ne,Ce):null;case Va:return He=Yn(ne._debugInfo),ne=Nr(ne),Q=Z(Q,K,ne,Ce),xt=He,Q}if(na(ne)||k(ne))return He!==null?null:(He=Yn(ne._debugInfo),Q=ae(Q,K,ne,Ce,null),xt=He,Q);if(typeof ne.then=="function")return He=Yn(ne._debugInfo),Q=Z(Q,K,Nl(ne),Ce),xt=He,Q;if(ne.$$typeof===Yl)return Z(Q,K,Wf(Q,ne),Ce);fl(Q,ne)}return typeof ne=="function"&&hc(Q,ne),typeof ne=="symbol"&&ad(Q,ne),null}function be(Q,K,ne,Ce,He){if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number"||typeof Ce=="bigint")return Q=Q.get(ne)||null,C(K,Q,""+Ce,He);if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case yl:return ne=Q.get(Ce.key===null?ne:Ce.key)||null,Q=Yn(Ce._debugInfo),K=D(K,ne,Ce,He),xt=Q,K;case du:return Q=Q.get(Ce.key===null?ne:Ce.key)||null,j(K,Q,Ce,He);case Va:var mt=Yn(Ce._debugInfo);return Ce=Nr(Ce),K=be(Q,K,ne,Ce,He),xt=mt,K}if(na(Ce)||k(Ce))return ne=Q.get(ne)||null,Q=Yn(Ce._debugInfo),K=ae(K,ne,Ce,He,null),xt=Q,K;if(typeof Ce.then=="function")return mt=Yn(Ce._debugInfo),K=be(Q,K,ne,Nl(Ce),He),xt=mt,K;if(Ce.$$typeof===Yl)return be(Q,K,ne,Wf(K,Ce),He);fl(K,Ce)}return typeof Ce=="function"&&hc(K,Ce),typeof Ce=="symbol"&&ad(K,Ce),null}function Le(Q,K,ne,Ce){if(typeof ne!="object"||ne===null)return Ce;switch(ne.$$typeof){case yl:case du:x(Q,K,ne);var He=ne.key;if(typeof He!="string")break;if(Ce===null){Ce=new Set,Ce.add(He);break}if(!Ce.has(He)){Ce.add(He);break}de(K,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",He)});break;case Va:ne=Nr(ne),Le(Q,K,ne,Ce)}return Ce}function Ge(Q,K,ne,Ce){for(var He=null,mt=null,et=null,Ze=K,Et=K=0,jn=null;Ze!==null&&Et<ne.length;Et++){Ze.index>Et?(jn=Ze,Ze=null):jn=Ze.sibling;var ha=Z(Q,Ze,ne[Et],Ce);if(ha===null){Ze===null&&(Ze=jn);break}He=Le(Q,ha,ne[Et],He),e&&Ze&&ha.alternate===null&&n(Q,Ze),K=g(ha,K,Et),et===null?mt=ha:et.sibling=ha,et=ha,Ze=jn}if(Et===ne.length)return l(Q,Ze),Dt&&Ol(Q,Et),mt;if(Ze===null){for(;Et<ne.length;Et++)Ze=le(Q,ne[Et],Ce),Ze!==null&&(He=Le(Q,Ze,ne[Et],He),K=g(Ze,K,Et),et===null?mt=Ze:et.sibling=Ze,et=Ze);return Dt&&Ol(Q,Et),mt}for(Ze=c(Ze);Et<ne.length;Et++)jn=be(Ze,Q,Et,ne[Et],Ce),jn!==null&&(He=Le(Q,jn,ne[Et],He),e&&jn.alternate!==null&&Ze.delete(jn.key===null?Et:jn.key),K=g(jn,K,Et),et===null?mt=jn:et.sibling=jn,et=jn);return e&&Ze.forEach(function(Ds){return n(Q,Ds)}),Dt&&Ol(Q,Et),mt}function xn(Q,K,ne,Ce){if(ne==null)throw Error("An iterable object provided no iterator.");for(var He=null,mt=null,et=K,Ze=K=0,Et=null,jn=null,ha=ne.next();et!==null&&!ha.done;Ze++,ha=ne.next()){et.index>Ze?(Et=et,et=null):Et=et.sibling;var Ds=Z(Q,et,ha.value,Ce);if(Ds===null){et===null&&(et=Et);break}jn=Le(Q,Ds,ha.value,jn),e&&et&&Ds.alternate===null&&n(Q,et),K=g(Ds,K,Ze),mt===null?He=Ds:mt.sibling=Ds,mt=Ds,et=Et}if(ha.done)return l(Q,et),Dt&&Ol(Q,Ze),He;if(et===null){for(;!ha.done;Ze++,ha=ne.next())et=le(Q,ha.value,Ce),et!==null&&(jn=Le(Q,et,ha.value,jn),K=g(et,K,Ze),mt===null?He=et:mt.sibling=et,mt=et);return Dt&&Ol(Q,Ze),He}for(et=c(et);!ha.done;Ze++,ha=ne.next())Et=be(et,Q,Ze,ha.value,Ce),Et!==null&&(jn=Le(Q,Et,ha.value,jn),e&&Et.alternate!==null&&et.delete(Et.key===null?Ze:Et.key),K=g(Et,K,Ze),mt===null?He=Et:mt.sibling=Et,mt=Et);return e&&et.forEach(function(SU){return n(Q,SU)}),Dt&&Ol(Q,Ze),He}function zt(Q,K,ne,Ce){if(typeof ne=="object"&&ne!==null&&ne.type===Fc&&ne.key===null&&(tr(ne,null,Q),ne=ne.props.children),typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case yl:var He=Yn(ne._debugInfo);e:{for(var mt=ne.key;K!==null;){if(K.key===mt){if(mt=ne.type,mt===Fc){if(K.tag===7){l(Q,K.sibling),Ce=p(K,ne.props.children),Ce.return=Q,Ce._debugOwner=ne._owner,Ce._debugInfo=xt,tr(ne,Ce,Q),Q=Ce;break e}}else if(K.elementType===mt||Jy(K,ne)||typeof mt=="object"&&mt!==null&&mt.$$typeof===Va&&Nr(mt)===K.type){l(Q,K.sibling),Ce=p(K,ne.props),yr(Ce,ne),Ce.return=Q,Ce._debugOwner=ne._owner,Ce._debugInfo=xt,Q=Ce;break e}l(Q,K);break}else n(Q,K);K=K.sibling}ne.type===Fc?(Ce=ku(ne.props.children,Q.mode,Ce,ne.key),Ce.return=Q,Ce._debugOwner=Q,Ce._debugTask=Q._debugTask,Ce._debugInfo=xt,tr(ne,Ce,Q),Q=Ce):(Ce=$o(ne,Q.mode,Ce),yr(Ce,ne),Ce.return=Q,Ce._debugInfo=xt,Q=Ce)}return Q=w(Q),xt=He,Q;case du:e:{for(He=ne,ne=He.key;K!==null;){if(K.key===ne)if(K.tag===4&&K.stateNode.containerInfo===He.containerInfo&&K.stateNode.implementation===He.implementation){l(Q,K.sibling),Ce=p(K,He.children||[]),Ce.return=Q,Q=Ce;break e}else{l(Q,K);break}else n(Q,K);K=K.sibling}Ce=ih(He,Q.mode,Ce),Ce.return=Q,Q=Ce}return w(Q);case Va:return He=Yn(ne._debugInfo),ne=Nr(ne),Q=zt(Q,K,ne,Ce),xt=He,Q}if(na(ne))return He=Yn(ne._debugInfo),Q=Ge(Q,K,ne,Ce),xt=He,Q;if(k(ne)){if(He=Yn(ne._debugInfo),mt=k(ne),typeof mt!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var et=mt.call(ne);return et===ne?(Q.tag!==0||Object.prototype.toString.call(Q.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(et)!=="[object Generator]")&&(iO||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),iO=!0):ne.entries!==mt||bR||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),bR=!0),Q=xn(Q,K,et,Ce),xt=He,Q}if(typeof ne.then=="function")return He=Yn(ne._debugInfo),Q=zt(Q,K,Nl(ne),Ce),xt=He,Q;if(ne.$$typeof===Yl)return zt(Q,K,Wf(Q,ne),Ce);fl(Q,ne)}return typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint"?(He=""+ne,K!==null&&K.tag===6?(l(Q,K.sibling),Ce=p(K,He),Ce.return=Q,Q=Ce):(l(Q,K),Ce=sc(He,Q.mode,Ce),Ce.return=Q,Ce._debugOwner=Q,Ce._debugTask=Q._debugTask,Ce._debugInfo=xt,Q=Ce),w(Q)):(typeof ne=="function"&&hc(Q,ne),typeof ne=="symbol"&&ad(Q,ne),l(Q,K))}return function(Q,K,ne,Ce){var He=xt;xt=null;try{rv=0;var mt=zt(Q,K,ne,Ce);return Vm=null,mt}catch(jn){if(jn===Im||jn===jT)throw jn;var et=R(29,jn,null,Q.mode);et.lanes=Ce,et.return=Q;var Ze=et._debugInfo=xt;if(et._debugOwner=Q._debugOwner,et._debugTask=Q._debugTask,Ze!=null){for(var Et=Ze.length-1;0<=Et;Et--)if(typeof Ze[Et].stack=="string"){et._debugOwner=Ze[Et],et._debugTask=Ze[Et].debugTask;break}}return et}finally{xt=He}}}function pn(e,n){var l=na(e);return e=!l&&typeof k(e)=="function",l||e?(l=l?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",l,n,l),!1):!0}function Ot(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function di(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 ua(e){return{lane:e,tag:fO,payload:null,callback:null,next:null}}function pi(e,n,l){var c=e.updateQueue;if(c===null)return null;if(c=c.shared,SR===c&&!hO){var p=H(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
121
+
122
+ Please update the following component: %s`,p),hO=!0}return(Pt&Ua)!==Fa?(p=c.pending,p===null?n.next=n:(n.next=p.next,p.next=n),c.pending=n,n=Zf(e),Zy(e,null,l),n):(uc(e,c,n,l),Zf(e))}function dl(e,n,l){if(n=n.updateQueue,n!==null&&(n=n.shared,(l&4194048)!==0)){var c=n.lanes;c&=e.pendingLanes,l|=c,n.lanes=l,Zt(e,l)}}function rd(e,n){var l=e.updateQueue,c=e.alternate;if(c!==null&&(c=c.updateQueue,l===c)){var p=null,g=null;if(l=l.firstBaseUpdate,l!==null){do{var w={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};g===null?p=g=w:g=g.next=w,l=l.next}while(l!==null);g===null?p=g=n:g=g.next=n}else p=g=n;l={baseState:c.baseState,firstBaseUpdate:p,lastBaseUpdate:g,shared:c.shared,callbacks:c.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=n:e.next=n,l.lastBaseUpdate=n}function mc(){if(ER){var e=Pm;if(e!==null)throw e}}function hi(e,n,l,c){ER=!1;var p=e.updateQueue;yf=!1,SR=p.shared;var g=p.firstBaseUpdate,w=p.lastBaseUpdate,C=p.shared.pending;if(C!==null){p.shared.pending=null;var D=C,j=D.next;D.next=null,w===null?g=j:w.next=j,w=D;var ae=e.alternate;ae!==null&&(ae=ae.updateQueue,C=ae.lastBaseUpdate,C!==w&&(C===null?ae.firstBaseUpdate=j:C.next=j,ae.lastBaseUpdate=D))}if(g!==null){var le=p.baseState;w=0,ae=j=D=null,C=g;do{var Z=C.lane&-536870913,be=Z!==C.lane;if(be?(Rt&Z)===Z:(c&Z)===Z){Z!==0&&Z===up&&(ER=!0),ae!==null&&(ae=ae.next={lane:0,tag:C.tag,payload:C.payload,callback:null,next:null});e:{Z=e;var Le=C,Ge=n,xn=l;switch(Le.tag){case dO:if(Le=Le.payload,typeof Le=="function"){$m=!0;var zt=Le.call(xn,le,Ge);if(Z.mode&wr){yt(!0);try{Le.call(xn,le,Ge)}finally{yt(!1)}}$m=!1,le=zt;break e}le=Le;break e;case vR:Z.flags=Z.flags&-65537|128;case fO:if(zt=Le.payload,typeof zt=="function"){if($m=!0,Le=zt.call(xn,le,Ge),Z.mode&wr){yt(!0);try{zt.call(xn,le,Ge)}finally{yt(!1)}}$m=!1}else Le=zt;if(Le==null)break e;le=Tt({},le,Le);break e;case pO:yf=!0}}Z=C.callback,Z!==null&&(e.flags|=64,be&&(e.flags|=8192),be=p.callbacks,be===null?p.callbacks=[Z]:be.push(Z))}else be={lane:Z,tag:C.tag,payload:C.payload,callback:C.callback,next:null},ae===null?(j=ae=be,D=le):ae=ae.next=be,w|=Z;if(C=C.next,C===null){if(C=p.shared.pending,C===null)break;be=C,C=be.next,be.next=null,p.lastBaseUpdate=be,p.shared.pending=null}}while(!0);ae===null&&(D=le),p.baseState=D,p.firstBaseUpdate=j,p.lastBaseUpdate=ae,g===null&&(p.shared.lanes=0),vf|=w,e.lanes=w,e.memoizedState=le}SR=null}function Go(e,n){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(n)}function sg(e,n){var l=e.shared.hiddenCallbacks;if(l!==null)for(e.shared.hiddenCallbacks=null,e=0;e<l.length;e++)Go(l[e],n)}function yc(e,n){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Go(l[e],n)}function mh(e,n){var l=Su;se(kT,l,e),se(Gm,n,e),Su=l|n.baseLanes}function ro(e){se(kT,Su,e),se(Gm,Gm.current,e)}function zl(e){Su=kT.current,ve(Gm,e),ve(kT,e)}function nr(e){var n=e.alternate;se(pa,pa.current&Ym,e),se(Zl,e,e),Pi===null&&(n===null||Gm.current!==null||n.memoizedState!==null)&&(Pi=e)}function kl(e){se(pa,pa.current,e),se(Zl,e,e),Pi===null&&(Pi=e)}function yh(e){e.tag===22?(se(pa,pa.current,e),se(Zl,e,e),Pi===null&&(Pi=e)):mi(e)}function mi(e){se(pa,pa.current,e),se(Zl,Zl.current,e)}function Ea(e){ve(Zl,e),Pi===e&&(Pi=null),ve(pa,e)}function Iu(e){for(var n=e;n!==null;){if(n.tag===13){var l=n.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||$d(l)||ib(l)))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}function pt(){var e=Ee;Vi===null?Vi=[e]:Vi.push(e)}function Oe(){var e=Ee;if(Vi!==null&&(As++,Vi[As]!==e)){var n=H(ht);if(!mO.has(n)&&(mO.add(n),Vi!==null)){for(var l="",c=0;c<=As;c++){var p=Vi[c],g=c===As?e:p;for(p=c+1+". "+p;30>p.length;)p+=" ";p+=g+`
123
+ `,l+=p}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
124
+
125
+ Previous render Next render
126
+ ------------------------------------------------------
127
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
128
+ `,n,l)}}}function lo(e){e==null||na(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Ee,typeof e)}function ld(){var e=H(ht);gO.has(e)||(gO.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function Hn(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
129
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
130
+ 2. You might be breaking the Rules of Hooks
131
+ 3. You might have more than one copy of React in the same app
132
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function cg(e,n){if(ov)return!1;if(n===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Ee),!1;e.length!==n.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
133
+
134
+ Previous: %s
135
+ Incoming: %s`,Ee,"["+n.join(", ")+"]","["+e.join(", ")+"]");for(var l=0;l<n.length&&l<e.length;l++)if(!Yr(e[l],n[l]))return!1;return!0}function fg(e,n,l,c,p,g){Rs=g,ht=n,Vi=e!==null?e._debugHookTypes:null,As=-1,ov=e!==null&&e.type!==n.type,(Object.prototype.toString.call(l)==="[object AsyncFunction]"||Object.prototype.toString.call(l)==="[object AsyncGeneratorFunction]")&&(g=H(ht),TR.has(g)||(TR.add(g),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",g===null?"An unknown Component":"<"+g+">"))),n.memoizedState=null,n.updateQueue=null,n.lanes=0,Te.H=e!==null&&e.memoizedState!==null?xR:Vi!==null?bO:wR,pp=g=(n.mode&wr)!==ct;var w=mR(l,c,p);if(pp=!1,Fm&&(w=id(n,l,c,p)),g){yt(!0);try{w=id(n,l,c,p)}finally{yt(!1)}}return Xn(e,n),w}function Xn(e,n){n._debugHookTypes=Vi,n.dependencies===null?Cs!==null&&(n.dependencies={lanes:0,firstContext:null,_debugThenableState:Cs}):n.dependencies._debugThenableState=Cs,Te.H=uv;var l=yn!==null&&yn.next!==null;if(Rs=0,Vi=Ee=_a=yn=ht=null,As=-1,e!==null&&(e.flags&65011712)!==(n.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),UT=!1,iv=0,Cs=null,l)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Ma||(e=e.dependencies,e!==null&&fc(e)&&(Ma=!0)),av?(av=!1,e=!0):e=!1,e&&(n=H(n)||"Unknown",yO.has(n)||TR.has(n)||(yO.add(n),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function id(e,n,l,c){ht=e;var p=0;do{if(Fm&&(Cs=null),iv=0,Fm=!1,p>=KB)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(p+=1,ov=!1,_a=yn=null,e.updateQueue!=null){var g=e.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}As=-1,Te.H=vO,g=mR(n,l,c)}while(Fm);return g}function od(){var e=Te.H,n=e.useState()[0];return n=typeof n.then=="function"?cd(n):n,e=e.useState()[0],(yn!==null?yn.memoizedState:null)!==e&&(ht.flags|=1024),n}function Vu(){var e=LT!==0;return LT=0,e}function ud(e,n,l){n.updateQueue=e.updateQueue,n.flags=(n.mode&Eo)!==ct?n.flags&-402655237:n.flags&-2053,e.lanes&=~l}function Yo(e){if(UT){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}UT=!1}Rs=0,Vi=_a=yn=ht=null,As=-1,Ee=null,Fm=!1,iv=LT=0,Cs=null}function ea(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _a===null?ht.memoizedState=_a=e:_a=_a.next=e,_a}function Kt(){if(yn===null){var e=ht.alternate;e=e!==null?e.memoizedState:null}else e=yn.next;var n=_a===null?ht.memoizedState:_a.next;if(n!==null)_a=n,yn=e;else{if(e===null)throw ht.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");yn=e,e={memoizedState:yn.memoizedState,baseState:yn.baseState,baseQueue:yn.baseQueue,queue:yn.queue,next:null},_a===null?ht.memoizedState=_a=e:_a=_a.next=e}return _a}function sd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function cd(e){var n=iv;return iv+=1,Cs===null&&(Cs=ph()),e=Dr(Cs,e,n),n=ht,(_a===null?n.memoizedState:_a.next)===null&&(n=n.alternate,Te.H=n!==null&&n.memoizedState!==null?xR:wR),e}function io(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return cd(e);if(e.$$typeof===Yl)return Gt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function jr(e){var n=null,l=ht.updateQueue;if(l!==null&&(n=l.memoCache),n==null){var c=ht.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(n={data:c.data.map(function(p){return p.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),l===null&&(l=sd(),ht.updateQueue=l),l.memoCache=n,l=n.data[n.index],l===void 0||ov)for(l=n.data[n.index]=Array(e),c=0;c<e;c++)l[c]=Px;else l.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",l.length,e);return n.index++,l}function zr(e,n){return typeof n=="function"?n(e):n}function gc(e,n,l){var c=ea();if(l!==void 0){var p=l(n);if(pp){yt(!0);try{l(n)}finally{yt(!1)}}}else p=n;return c.memoizedState=c.baseState=p,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:p},c.queue=e,e=e.dispatch=Bx.bind(null,ht,e),[c.memoizedState,e]}function Gu(e){var n=Kt();return Xo(n,yn,e)}function Xo(e,n,l){var c=e.queue;if(c===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");c.lastRenderedReducer=l;var p=e.baseQueue,g=c.pending;if(g!==null){if(p!==null){var w=p.next;p.next=g.next,g.next=w}n.baseQueue!==p&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),n.baseQueue=p=g,c.pending=null}if(g=e.baseState,p===null)e.memoizedState=g;else{n=p.next;var C=w=null,D=null,j=n,ae=!1;do{var le=j.lane&-536870913;if(le!==j.lane?(Rt&le)===le:(Rs&le)===le){var Z=j.revertLane;if(Z===0)D!==null&&(D=D.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),le===up&&(ae=!0);else if((Rs&Z)===Z){j=j.next,Z===up&&(ae=!0);continue}else le={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},D===null?(C=D=le,w=g):D=D.next=le,ht.lanes|=Z,vf|=Z;le=j.action,pp&&l(g,le),g=j.hasEagerState?j.eagerState:l(g,le)}else Z={lane:le,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},D===null?(C=D=Z,w=g):D=D.next=Z,ht.lanes|=le,vf|=le;j=j.next}while(j!==null&&j!==n);if(D===null?w=g:D.next=C,!Yr(g,e.memoizedState)&&(Ma=!0,ae&&(l=Pm,l!==null)))throw l;e.memoizedState=g,e.baseState=w,e.baseQueue=D,c.lastRenderedState=g}return p===null&&(c.lanes=0),[e.memoizedState,c.dispatch]}function Yu(e){var n=Kt(),l=n.queue;if(l===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");l.lastRenderedReducer=e;var c=l.dispatch,p=l.pending,g=n.memoizedState;if(p!==null){l.pending=null;var w=p=p.next;do g=e(g,w.action),w=w.next;while(w!==p);Yr(g,n.memoizedState)||(Ma=!0),n.memoizedState=g,n.baseQueue===null&&(n.baseState=g),l.lastRenderedState=g}return[g,c]}function bc(e,n,l){var c=ht,p=ea();if(Dt){if(l===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var g=l();Xm||g===l()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Xm=!0)}else{if(g=n(),Xm||(l=n(),Yr(g,l)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Xm=!0)),gn===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Rt&127)!==0||dg(c,n,g)}return p.memoizedState=g,l={value:g,getSnapshot:n},p.queue=l,Qu(Fo.bind(null,c,l,e),[e]),c.flags|=2048,yi(Ii|Qr,{destroy:void 0},pg.bind(null,c,l,g,n),null),g}function Xu(e,n,l){var c=ht,p=Kt(),g=Dt;if(g){if(l===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");l=l()}else if(l=n(),!Xm){var w=n();Yr(l,w)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Xm=!0)}(w=!Yr((yn||p).memoizedState,l))&&(p.memoizedState=l,Ma=!0),p=p.queue;var C=Fo.bind(null,c,p,e);if(sa(2048,Qr,C,[e]),p.getSnapshot!==n||w||_a!==null&&_a.memoizedState.tag&Ii){if(c.flags|=2048,yi(Ii|Qr,{destroy:void 0},pg.bind(null,c,p,l,n),null),gn===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");g||(Rs&127)!==0||dg(c,n,l)}return l}function dg(e,n,l){e.flags|=16384,e={getSnapshot:n,value:l},n=ht.updateQueue,n===null?(n=sd(),ht.updateQueue=n,n.stores=[e]):(l=n.stores,l===null?n.stores=[e]:l.push(e))}function pg(e,n,l,c){n.value=l,n.getSnapshot=c,Qo(n)&&hg(e)}function Fo(e,n,l){return l(function(){Qo(n)&&(ci(2,"updateSyncExternalStore()",e),hg(e))})}function Qo(e){var n=e.getSnapshot;e=e.value;try{var l=n();return!Yr(e,l)}catch{return!0}}function hg(e){var n=Ha(e,2);n!==null&&ft(n,e,2)}function gh(e){var n=ea();if(typeof e=="function"){var l=e;if(e=l(),pp){yt(!0);try{l()}finally{yt(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zr,lastRenderedState:e},n}function Zo(e){e=gh(e);var n=e.queue,l=wh.bind(null,ht,n);return n.dispatch=l,[e.memoizedState,l]}function Fu(e){var n=ea();n.memoizedState=n.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=l,n=gd.bind(null,ht,!0,l),l.dispatch=n,[e,n]}function fd(e,n){var l=Kt();return vc(l,yn,e,n)}function vc(e,n,l,c){return e.baseState=l,Xo(e,yn,typeof c=="function"?c:zr)}function dd(e,n){var l=Kt();return yn!==null?vc(l,yn,e,n):(l.baseState=e,[e,l.queue.dispatch])}function pE(e,n,l,c,p){if(Ta(e))throw Error("Cannot update form state while rendering.");if(e=n.action,e!==null){var g={payload:p,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(w){g.listeners.push(w)}};Te.T!==null?l(!0):g.isTransition=!1,c(g),l=n.pending,l===null?(g.next=n.pending=g,Jo(n,g)):(g.next=l.next,n.pending=l.next=g)}}function Jo(e,n){var l=n.action,c=n.payload,p=e.state;if(n.isTransition){var g=Te.T,w={};w._updatedFibers=new Set,Te.T=w;try{var C=l(p,c),D=Te.S;D!==null&&D(w,C),mg(e,n,C)}catch(j){pd(e,n,j)}finally{g!==null&&w.types!==null&&(g.types!==null&&g.types!==w.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),g.types=w.types),Te.T=g,g===null&&w._updatedFibers&&(e=w._updatedFibers.size,w._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{w=l(p,c),mg(e,n,w)}catch(j){pd(e,n,j)}}function mg(e,n,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?(Te.asyncTransitions++,l.then(Zu,Zu),l.then(function(c){oo(e,n,c)},function(c){return pd(e,n,c)}),n.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):oo(e,n,l)}function oo(e,n,l){n.status="fulfilled",n.value=l,bh(n),e.state=l,n=e.pending,n!==null&&(l=n.next,l===n?e.pending=null:(l=l.next,n.next=l,Jo(e,l)))}function pd(e,n,l){var c=e.pending;if(e.pending=null,c!==null){c=c.next;do n.status="rejected",n.reason=l,bh(n),n=n.next;while(n!==c)}e.action=null}function bh(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function uo(e,n){return n}function kr(e,n){if(Dt){var l=gn.formState;if(l!==null){e:{var c=ht;if(Dt){if(Nn){t:{for(var p=Nn,g=$i;p.nodeType!==8;){if(!g){p=null;break t}if(p=Pr(p.nextSibling),p===null){p=null;break t}}g=p.data,p=g===XR||g===r2?p:null}if(p){Nn=Pr(p.nextSibling),c=p.data===XR;break e}}ol(c)}c=!1}c&&(n=l[0])}}return l=ea(),l.memoizedState=l.baseState=n,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:uo,lastRenderedState:n},l.queue=c,l=wh.bind(null,ht,c),c.dispatch=l,c=gh(!1),g=gd.bind(null,ht,!1,c.queue),c=ea(),p={state:n,dispatch:null,action:e,pending:null},c.queue=p,l=pE.bind(null,ht,p,g,l),p.dispatch=l,c.memoizedState=e,[n,l,!1]}function Ko(e){var n=Kt();return vh(n,yn,e)}function vh(e,n,l){if(n=Xo(e,n,uo)[0],e=Gu(zr)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var c=cd(n)}catch(w){throw w===Im?jT:w}else c=n;n=Kt();var p=n.queue,g=p.dispatch;return l!==n.memoizedState&&(ht.flags|=2048,yi(Ii|Qr,{destroy:void 0},yg.bind(null,p,l),null)),[c,g,e]}function yg(e,n){e.action=n}function Wo(e){var n=Kt(),l=yn;if(l!==null)return vh(n,l,e);Kt(),n=n.memoizedState,l=Kt();var c=l.queue.dispatch;return l.memoizedState=e,[n,c,!1]}function yi(e,n,l,c){return e={tag:e,create:l,deps:c,inst:n,next:null},n=ht.updateQueue,n===null&&(n=sd(),ht.updateQueue=n),l=n.lastEffect,l===null?n.lastEffect=e.next=e:(c=l.next,l.next=e,e.next=c,n.lastEffect=e),e}function Sh(e){var n=ea();return e={current:e},n.memoizedState=e}function eu(e,n,l,c){var p=ea();ht.flags|=e,p.memoizedState=yi(Ii|n,{destroy:void 0},l,c===void 0?null:c)}function sa(e,n,l,c){var p=Kt();c=c===void 0?null:c;var g=p.memoizedState.inst;yn!==null&&c!==null&&cg(c,yn.memoizedState.deps)?p.memoizedState=yi(n,g,l,c):(ht.flags|=e,p.memoizedState=yi(Ii|n,g,l,c))}function Qu(e,n){(ht.mode&Eo)!==ct?eu(276826112,Qr,e,n):eu(8390656,Qr,e,n)}function hE(e){ht.flags|=4;var n=ht.updateQueue;if(n===null)n=sd(),ht.updateQueue=n,n.events=[e];else{var l=n.events;l===null?n.events=[e]:l.push(e)}}function hd(e){var n=ea(),l={impl:e};return n.memoizedState=l,function(){if((Pt&Ua)!==Fa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return l.impl.apply(void 0,arguments)}}function Sc(e){var n=Kt().memoizedState;return hE({ref:n,nextImpl:e}),function(){if((Pt&Ua)!==Fa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return n.impl.apply(void 0,arguments)}}function ar(e,n){var l=4194308;return(ht.mode&Eo)!==ct&&(l|=134217728),eu(l,Jl,e,n)}function Br(e,n){if(typeof n=="function"){e=e();var l=n(e);return function(){typeof l=="function"?l():n(null)}}if(n!=null)return n.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(n).join(", ")+"}"),e=e(),n.current=e,function(){n.current=null}}function gi(e,n,l){typeof n!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null"),l=l!=null?l.concat([e]):null;var c=4194308;(ht.mode&Eo)!==ct&&(c|=134217728),eu(c,Jl,Br.bind(null,n,e),l)}function Ec(e,n,l){typeof n!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null"),l=l!=null?l.concat([e]):null,sa(4,Jl,Br.bind(null,n,e),l)}function Eh(e,n){return ea().memoizedState=[e,n===void 0?null:n],e}function Bl(e,n){var l=Kt();n=n===void 0?null:n;var c=l.memoizedState;return n!==null&&cg(n,c[1])?c[0]:(l.memoizedState=[e,n],e)}function rr(e,n){var l=ea();n=n===void 0?null:n;var c=e();if(pp){yt(!0);try{e()}finally{yt(!1)}}return l.memoizedState=[c,n],c}function Mn(e,n){var l=Kt();n=n===void 0?null:n;var c=l.memoizedState;if(n!==null&&cg(n,c[1]))return c[0];if(c=e(),pp){yt(!0);try{e()}finally{yt(!1)}}return l.memoizedState=[c,n],c}function Tc(e,n){var l=ea();return Wt(l,e,n)}function bi(e,n){var l=Kt();return Fn(l,yn.memoizedState,e,n)}function bt(e,n){var l=Kt();return yn===null?Wt(l,e,n):Fn(l,yn.memoizedState,e,n)}function Wt(e,n,l){return l===void 0||(Rs&1073741824)!==0&&(Rt&261930)===0?e.memoizedState=n:(e.memoizedState=l,e=Oc(),ht.lanes|=e,vf|=e,l)}function Fn(e,n,l,c){return Yr(l,n)?l:Gm.current!==null?(e=Wt(e,l,c),Yr(e,n)||(Ma=!0),e):(Rs&42)===0||(Rs&1073741824)!==0&&(Rt&261930)===0?(Ma=!0,e.memoizedState=l):(e=Oc(),ht.lanes|=e,vf|=e,n)}function Zu(){Te.asyncTransitions--}function Ju(e,n,l,c,p){var g=Xt.p;Xt.p=g!==0&&g<ka?g:ka;var w=Te.T,C={};C._updatedFibers=new Set,Te.T=C,gd(e,!1,n,l);try{var D=p(),j=Te.S;if(j!==null&&j(C,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){Te.asyncTransitions++,D.then(Zu,Zu);var ae=dh(D,c);Ku(e,n,ae,Ia(e))}else Ku(e,n,c,Ia(e))}catch(le){Ku(e,n,{then:function(){},status:"rejected",reason:le},Ia(e))}finally{Xt.p=g,w!==null&&C.types!==null&&(w.types!==null&&w.types!==C.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),w.types=C.types),Te.T=w,w===null&&C._updatedFibers&&(e=C._updatedFibers.size,C._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function so(e,n,l,c){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var p=md(e).queue;fE(e),Ju(e,p,n,xp,l===null?v:function(){return wc(e),l(c)})}function md(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:xp,baseState:xp,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zr,lastRenderedState:xp},next:null};var l={};return n.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zr,lastRenderedState:l},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function wc(e){Te.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var n=md(e);n.next===null&&(n=e.alternate.memoizedState),Ku(e,n.next.queue,{},Ia(e))}function tu(){var e=gh(!1);return e=Ju.bind(null,ht,e.queue,!0,!1),ea().memoizedState=e,[!1,e]}function mE(){var e=Gu(zr)[0],n=Kt().memoizedState;return[typeof e=="boolean"?e:cd(e),n]}function zn(){var e=Yu(zr)[0],n=Kt().memoizedState;return[typeof e=="boolean"?e:cd(e),n]}function co(){return Gt(wv)}function yd(){var e=ea(),n=gn.identifierPrefix;if(Dt){var l=Ss,c=vs;l=(c&~(1<<32-za(c)-1)).toString(32)+l,n="_"+n+"R_"+l,l=LT++,0<l&&(n+="H"+l.toString(32)),n+="_"}else l=JB++,n="_"+n+"r_"+l.toString(32)+"_";return e.memoizedState=n}function Th(){return ea().memoizedState=yE.bind(null,ht)}function yE(e,n){for(var l=e.return;l!==null;){switch(l.tag){case 24:case 3:var c=Ia(l),p=ua(c),g=pi(l,p,c);g!==null&&(ci(c,"refresh()",e),ft(g,l,c),dl(g,l,c)),e=ch(),n!=null&&g!==null&&console.error("The seed argument is not enabled outside experimental channels."),p.payload={cache:e};return}l=l.return}}function Bx(e,n,l){var c=arguments;typeof c[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),c=Ia(e);var p={lane:c,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};Ta(e)?Pn(n,p):(p=Nu(e,n,p,c),p!==null&&(ci(c,"dispatch()",e),ft(p,e,c),bd(p,n,c)))}function wh(e,n,l){var c=arguments;typeof c[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),c=Ia(e),Ku(e,n,l,c)&&ci(c,"setState()",e)}function Ku(e,n,l,c){var p={lane:c,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ta(e))Pn(n,p);else{var g=e.alternate;if(e.lanes===0&&(g===null||g.lanes===0)&&(g=n.lastRenderedReducer,g!==null)){var w=Te.H;Te.H=wo;try{var C=n.lastRenderedState,D=g(C,l);if(p.hasEagerState=!0,p.eagerState=D,Yr(D,C))return uc(e,n,p,0),gn===null&&rh(),!1}catch{}finally{Te.H=w}}if(l=Nu(e,n,p,c),l!==null)return ft(l,e,c),bd(l,n,c),!0}return!1}function gd(e,n,l,c){if(Te.T===null&&up===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),c={lane:2,revertLane:ab(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Ta(e)){if(n)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else n=Nu(e,l,c,2),n!==null&&(ci(2,"setOptimistic()",e),ft(n,e,2))}function Ta(e){var n=e.alternate;return e===ht||n!==null&&n===ht}function Pn(e,n){Fm=UT=!0;var l=e.pending;l===null?n.next=n:(n.next=l.next,l.next=n),e.pending=n}function bd(e,n,l){if((l&4194048)!==0){var c=n.lanes;c&=e.pendingLanes,l|=c,n.lanes=l,Zt(e,l)}}function Wu(e){if(e!==null&&typeof e!="function"){var n=String(e);OO.has(n)||(OO.add(n),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function xc(e,n,l,c){var p=e.memoizedState,g=l(c,p);if(e.mode&wr){yt(!0);try{g=l(c,p)}finally{yt(!1)}}g===void 0&&(n=U(n)||"Component",CO.has(n)||(CO.add(n),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))),p=g==null?p:Tt({},p,g),e.memoizedState=p,e.lanes===0&&(e.updateQueue.baseState=p)}function xh(e,n,l,c,p,g,w){var C=e.stateNode;if(typeof C.shouldComponentUpdate=="function"){if(l=C.shouldComponentUpdate(c,g,w),e.mode&wr){yt(!0);try{l=C.shouldComponentUpdate(c,g,w)}finally{yt(!1)}}return l===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",U(n)||"Component"),l}return n.prototype&&n.prototype.isPureReactComponent?!oc(l,c)||!oc(p,g):!0}function vi(e,n,l,c){var p=n.state;typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(l,c),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(l,c),n.state!==p&&(e=H(e)||"Component",EO.has(e)||(EO.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),RR.enqueueReplaceState(n,n.state,null))}function Si(e,n){var l=n;if("ref"in n){l={};for(var c in n)c!=="ref"&&(l[c]=n[c])}if(e=e.defaultProps){l===n&&(l=Tt({},l));for(var p in e)l[p]===void 0&&(l[p]=e[p])}return l}function Rh(e){nR(e),console.warn(`%s
136
+
137
+ %s
138
+ `,Qm?"An error occurred in the <"+Qm+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
139
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function Ch(e){var n=Qm?"The above error occurred in the <"+Qm+"> component.":"The above error occurred in one of your React components.",l="React will try to recreate this component tree from scratch using the error boundary you provided, "+((CR||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var c=e.environmentName;e=[`%o
140
+
141
+ %s
142
+
143
+ %s
144
+ `,e,n,l].slice(0),typeof e[0]=="string"?e.splice(0,1,d2+" "+e[0],p2,cw+c+cw,h2):e.splice(0,0,d2,p2,cw+c+cw,h2),e.unshift(console),c=bU.apply(console.error,e),c()}else console.error(`%o
145
+
146
+ %s
147
+
148
+ %s
149
+ `,e,n,l)}function gg(e){nR(e)}function vd(e,n){try{Qm=n.source?H(n.source):null,CR=null;var l=n.value;if(Te.actQueue!==null)Te.thrownErrors.push(l);else{var c=e.onUncaughtError;c(l,{componentStack:n.stack})}}catch(p){setTimeout(function(){throw p})}}function bg(e,n,l){try{Qm=l.source?H(l.source):null,CR=H(n);var c=e.onCaughtError;c(l.value,{componentStack:l.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function Ah(e,n,l){return l=ua(l),l.tag=vR,l.payload={element:null},l.callback=function(){de(n.source,vd,e,n)},l}function _h(e){return e=ua(e),e.tag=vR,e}function Mh(e,n,l,c){var p=l.type.getDerivedStateFromError;if(typeof p=="function"){var g=c.value;e.payload=function(){return p(g)},e.callback=function(){ju(l),de(c.source,bg,n,l,c)}}var w=l.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(e.callback=function(){ju(l),de(c.source,bg,n,l,c),typeof p!="function"&&(Ef===null?Ef=new Set([this]):Ef.add(this)),XB(this,c),typeof p=="function"||(l.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",H(l)||"Unknown")})}function vg(e,n,l,c,p){if(l.flags|=32768,Ni&&zc(e,p),c!==null&&typeof c=="object"&&typeof c.then=="function"){if(n=l.alternate,n!==null&&Dl(n,l,p,!0),Dt&&(gu=!0),l=Zl.current,l!==null){switch(l.tag){case 31:case 13:return Pi===null?Dc():l.alternate===null&&Vn===Ms&&(Vn=PT),l.flags&=-257,l.flags|=65536,l.lanes=p,c===zT?l.flags|=16384:(n=l.updateQueue,n===null?l.updateQueue=new Set([c]):n.add(c),Qh(e,c,p)),!1;case 22:return l.flags|=65536,c===zT?l.flags|=16384:(n=l.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([c])},l.updateQueue=n):(l=n.retryQueue,l===null?n.retryQueue=new Set([c]):l.add(c)),Qh(e,c,p)),!1}throw Error("Unexpected Suspense handler tag ("+l.tag+"). This is a bug in React.")}return Qh(e,c,p),Dc(),!1}if(Dt)return gu=!0,n=Zl.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=p,c!==uR&&Kf(Ka(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:c}),l))):(c!==uR&&Kf(Ka(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:c}),l)),e=e.current.alternate,e.flags|=65536,p&=-p,e.lanes|=p,c=Ka(c,l),p=Ah(e.stateNode,c,p),rd(e,p),Vn!==gf&&(Vn=hp)),!1;var g=Ka(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:c}),l);if(hv===null?hv=[g]:hv.push(g),Vn!==gf&&(Vn=hp),n===null)return!0;c=Ka(c,l),l=n;do{switch(l.tag){case 3:return l.flags|=65536,e=p&-p,l.lanes|=e,e=Ah(l.stateNode,c,e),rd(l,e),!1;case 1:if(n=l.type,g=l.stateNode,(l.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Ef===null||!Ef.has(g))))return l.flags|=65536,p&=-p,l.lanes|=p,p=_h(p),Mh(p,e,l,c),rd(l,p),!1}l=l.return}while(l!==null);return!1}function wa(e,n,l,c){n.child=e===null?cO(n,null,l,c):dp(n,e.child,l,c)}function gE(e,n,l,c,p){l=l.render;var g=n.ref;if("ref"in c){var w={};for(var C in c)C!=="ref"&&(w[C]=c[C])}else w=c;return Vo(n),c=fg(e,n,l,w,g,p),C=Vu(),e!==null&&!Ma?(ud(e,n,p),Ul(e,n,p)):(Dt&&C&&oh(n),n.flags|=1,wa(e,n,c,p),n.child)}function Sg(e,n,l,c,p){if(e===null){var g=l.type;return typeof g=="function"&&!Ky(g)&&g.defaultProps===void 0&&l.compare===null?(l=Lo(g),n.tag=15,n.type=l,Rc(n,g),Eg(e,n,l,c,p)):(e=zu(l.type,null,c,n,n.mode,p),e.ref=n.ref,e.return=n,n.child=e)}if(g=e.child,!jh(e,p)){var w=g.memoizedProps;if(l=l.compare,l=l!==null?l:oc,l(w,c)&&e.ref===n.ref)return Ul(e,n,p)}return n.flags|=1,e=si(g,c),e.ref=n.ref,e.return=n,n.child=e}function Eg(e,n,l,c,p){if(e!==null){var g=e.memoizedProps;if(oc(g,c)&&e.ref===n.ref&&n.type===e.type)if(Ma=!1,n.pendingProps=c=g,jh(e,p))(e.flags&131072)!==0&&(Ma=!0);else return n.lanes=e.lanes,Ul(e,n,p)}return Rg(e,n,l,c,p)}function Tg(e,n,l,c){var p=c.children,g=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:Ib,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((n.flags&128)!==0){if(g=g!==null?g.baseLanes|l:l,e!==null){for(c=n.child=e.child,p=0;c!==null;)p=p|c.lanes|c.childLanes,c=c.sibling;c=p&~g}else c=0,n.child=null;return wg(e,n,g,l,c)}if((l&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&pc(n,g!==null?g.cachePool:null),g!==null?mh(n,g):ro(n),yh(n);else return c=n.lanes=536870912,wg(e,n,g!==null?g.baseLanes|l:l,l,c)}else g!==null?(pc(n,g.cachePool),mh(n,g),mi(n),n.memoizedState=null):(e!==null&&pc(n,null),ro(n),mi(n));return wa(e,n,p,l),n.child}function es(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:Ib,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function wg(e,n,l,c,p){var g=ao();return g=g===null?null:{parent:Ca._currentValue,pool:g},n.memoizedState={baseLanes:l,cachePool:g},e!==null&&pc(n,null),ro(n),yh(n),e!==null&&Dl(e,n,c,!0),n.childLanes=p,null}function Sd(e,n){var l=n.hidden;return l!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
150
+ - <Activity %s>
151
+ + <Activity %s>`,l===!0?"hidden":l===!1?"hidden={false}":"hidden={...}",l?'mode="hidden"':'mode="visible"'),n=Td({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function xg(e,n,l){return dp(n,e.child,null,l),e=Sd(n,n.pendingProps),e.flags|=2,Ea(n),n.memoizedState=null,e}function bE(e,n,l){var c=n.pendingProps,p=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Dt){if(c.mode==="hidden")return e=Sd(n,c),n.lanes=536870912,es(null,e);if(kl(n),(e=Nn)?(l=tn(e,$i),l=l!==null&&l.data===Sp?l:null,l!==null&&(c={dehydrated:l,treeContext:uE(),retryLane:536870912,hydrationErrors:null},n.memoizedState=c,c=eg(l),c.return=n,n.child=c,pr=n,Nn=null)):l=null,l===null)throw Pa(n,e),ol(n);return n.lanes=536870912,null}return Sd(n,c)}var g=e.memoizedState;if(g!==null){var w=g.dehydrated;if(kl(n),p)if(n.flags&256)n.flags&=-257,n=xg(e,n,l);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(cE(),(l&536870912)!==0&&qc(n),Ma||Dl(e,n,l,!1),p=(l&e.childLanes)!==0,Ma||p){if(c=gn,c!==null&&(w=ia(c,l),w!==0&&w!==g.retryLane))throw g.retryLane=w,Ha(e,w),ft(c,e,w),AR;Dc(),n=xg(e,n,l)}else e=g.treeContext,Nn=Pr(w.nextSibling),pr=n,Dt=!0,ff=null,gu=!1,Ql=null,$i=!1,e!==null&&sE(n,e),n=Sd(n,c),n.flags|=4096;return n}return g=e.child,c={mode:c.mode,children:c.children},(l&536870912)!==0&&(l&e.lanes)!==0&&qc(n),e=si(g,c),e.ref=n.ref,n.child=e,e.return=n,e}function Ed(e,n){var l=n.ref;if(l===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==l)&&(n.flags|=4194816)}}function Rg(e,n,l,c,p){if(l.prototype&&typeof l.prototype.render=="function"){var g=U(l)||"Unknown";qO[g]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",g,g),qO[g]=!0)}return n.mode&wr&&To.recordLegacyContextWarning(n,null),e===null&&(Rc(n,n.type),l.contextTypes&&(g=U(l)||"Unknown",NO[g]||(NO[g]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",g)))),Vo(n),l=fg(e,n,l,c,void 0,p),c=Vu(),e!==null&&!Ma?(ud(e,n,p),Ul(e,n,p)):(Dt&&c&&oh(n),n.flags|=1,wa(e,n,l,p),n.child)}function Cg(e,n,l,c,p,g){return Vo(n),As=-1,ov=e!==null&&e.type!==n.type,n.updateQueue=null,l=id(n,c,l,p),Xn(e,n),c=Vu(),e!==null&&!Ma?(ud(e,n,g),Ul(e,n,g)):(Dt&&c&&oh(n),n.flags|=1,wa(e,n,l,g),n.child)}function ts(e,n,l,c,p){switch(h(n)){case!1:var g=n.stateNode,w=new n.type(n.memoizedProps,g.context).state;g.updater.enqueueSetState(g,w,null);break;case!0:n.flags|=128,n.flags|=65536,g=Error("Simulated error coming from DevTools");var C=p&-p;if(n.lanes|=C,w=gn,w===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");C=_h(C),Mh(C,w,n,Ka(g,n)),rd(n,C)}if(Vo(n),n.stateNode===null){if(w=cf,g=l.contextType,"contextType"in l&&g!==null&&(g===void 0||g.$$typeof!==Yl)&&!MO.has(l)&&(MO.add(l),C=g===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof g!="object"?" However, it is set to a "+typeof g+".":g.$$typeof===gm?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(g).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",U(l)||"Component",C)),typeof g=="object"&&g!==null&&(w=Gt(g)),g=new l(c,w),n.mode&wr){yt(!0);try{g=new l(c,w)}finally{yt(!1)}}if(w=n.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=RR,n.stateNode=g,g._reactInternals=n,g._reactInternalInstance=SO,typeof l.getDerivedStateFromProps=="function"&&w===null&&(w=U(l)||"Component",TO.has(w)||(TO.add(w),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",w,g.state===null?"null":"undefined",w))),typeof l.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"){var D=C=w=null;if(typeof g.componentWillMount=="function"&&g.componentWillMount.__suppressDeprecationWarning!==!0?w="componentWillMount":typeof g.UNSAFE_componentWillMount=="function"&&(w="UNSAFE_componentWillMount"),typeof g.componentWillReceiveProps=="function"&&g.componentWillReceiveProps.__suppressDeprecationWarning!==!0?C="componentWillReceiveProps":typeof g.UNSAFE_componentWillReceiveProps=="function"&&(C="UNSAFE_componentWillReceiveProps"),typeof g.componentWillUpdate=="function"&&g.componentWillUpdate.__suppressDeprecationWarning!==!0?D="componentWillUpdate":typeof g.UNSAFE_componentWillUpdate=="function"&&(D="UNSAFE_componentWillUpdate"),w!==null||C!==null||D!==null){g=U(l)||"Component";var j=typeof l.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";xO.has(g)||(xO.add(g),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
152
+
153
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
154
+
155
+ The above lifecycles should be removed. Learn more about this warning here:
156
+ https://react.dev/link/unsafe-component-lifecycles`,g,j,w!==null?`
157
+ `+w:"",C!==null?`
158
+ `+C:"",D!==null?`
159
+ `+D:""))}}g=n.stateNode,w=U(l)||"Component",g.render||(l.prototype&&typeof l.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",w):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",w)),!g.getInitialState||g.getInitialState.isReactClassApproved||g.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",w),g.getDefaultProps&&!g.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",w),g.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",w),l.childContextTypes&&!_O.has(l)&&(_O.add(l),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",w)),l.contextTypes&&!AO.has(l)&&(AO.add(l),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",w)),typeof g.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",w),l.prototype&&l.prototype.isPureReactComponent&&typeof g.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",U(l)||"A pure component"),typeof g.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",w),typeof g.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",w),typeof g.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",w),typeof g.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",w),C=g.props!==c,g.props!==void 0&&C&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",w),g.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",w,w),typeof g.getSnapshotBeforeUpdate!="function"||typeof g.componentDidUpdate=="function"||wO.has(l)||(wO.add(l),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",U(l))),typeof g.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",w),typeof g.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",w),typeof l.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",w),(C=g.state)&&(typeof C!="object"||na(C))&&console.error("%s.state: must be set to an object or null",w),typeof g.getChildContext=="function"&&typeof l.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",w),g=n.stateNode,g.props=c,g.state=n.memoizedState,g.refs={},Ot(n),w=l.contextType,g.context=typeof w=="object"&&w!==null?Gt(w):cf,g.state===c&&(w=U(l)||"Component",RO.has(w)||(RO.add(w),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",w))),n.mode&wr&&To.recordLegacyContextWarning(n,g),To.recordUnsafeLifecycleWarnings(n,g),g.state=n.memoizedState,w=l.getDerivedStateFromProps,typeof w=="function"&&(xc(n,l,w,c),g.state=n.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(w=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),w!==g.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",H(n)||"Component"),RR.enqueueReplaceState(g,g.state,null)),hi(n,c,g,p),mc(),g.state=n.memoizedState),typeof g.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Eo)!==ct&&(n.flags|=134217728),g=!0}else if(e===null){g=n.stateNode;var ae=n.memoizedProps;C=Si(l,ae),g.props=C;var le=g.context;D=l.contextType,w=cf,typeof D=="object"&&D!==null&&(w=Gt(D)),j=l.getDerivedStateFromProps,D=typeof j=="function"||typeof g.getSnapshotBeforeUpdate=="function",ae=n.pendingProps!==ae,D||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(ae||le!==w)&&vi(n,g,c,w),yf=!1;var Z=n.memoizedState;g.state=Z,hi(n,c,g,p),mc(),le=n.memoizedState,ae||Z!==le||yf?(typeof j=="function"&&(xc(n,l,j,c),le=n.memoizedState),(C=yf||xh(n,l,C,c,Z,le,w))?(D||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Eo)!==ct&&(n.flags|=134217728)):(typeof g.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Eo)!==ct&&(n.flags|=134217728),n.memoizedProps=c,n.memoizedState=le),g.props=c,g.state=le,g.context=w,g=C):(typeof g.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Eo)!==ct&&(n.flags|=134217728),g=!1)}else{g=n.stateNode,di(e,n),w=n.memoizedProps,D=Si(l,w),g.props=D,j=n.pendingProps,Z=g.context,le=l.contextType,C=cf,typeof le=="object"&&le!==null&&(C=Gt(le)),ae=l.getDerivedStateFromProps,(le=typeof ae=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(w!==j||Z!==C)&&vi(n,g,c,C),yf=!1,Z=n.memoizedState,g.state=Z,hi(n,c,g,p),mc();var be=n.memoizedState;w!==j||Z!==be||yf||e!==null&&e.dependencies!==null&&fc(e.dependencies)?(typeof ae=="function"&&(xc(n,l,ae,c),be=n.memoizedState),(D=yf||xh(n,l,D,c,Z,be,C)||e!==null&&e.dependencies!==null&&fc(e.dependencies))?(le||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(c,be,C),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(c,be,C)),typeof g.componentDidUpdate=="function"&&(n.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof g.componentDidUpdate!="function"||w===e.memoizedProps&&Z===e.memoizedState||(n.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&Z===e.memoizedState||(n.flags|=1024),n.memoizedProps=c,n.memoizedState=be),g.props=c,g.state=be,g.context=C,g=D):(typeof g.componentDidUpdate!="function"||w===e.memoizedProps&&Z===e.memoizedState||(n.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&Z===e.memoizedState||(n.flags|=1024),g=!1)}if(C=g,Ed(e,n),w=(n.flags&128)!==0,C||w){if(C=n.stateNode,ut(n),w&&typeof l.getDerivedStateFromError!="function")l=null,Xr=-1;else if(l=ZM(C),n.mode&wr){yt(!0);try{ZM(C)}finally{yt(!1)}}n.flags|=1,e!==null&&w?(n.child=dp(n,e.child,null,p),n.child=dp(n,null,l,p)):wa(e,n,l,p),n.memoizedState=C.state,e=n.child}else e=Ul(e,n,p);return p=n.stateNode,g&&p.props!==c&&(Zm||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",H(n)||"a component"),Zm=!0),e}function Ag(e,n,l,c){return Po(),n.flags|=256,wa(e,n,l,c),n.child}function Rc(e,n){n&&n.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
160
+ %s.childContextTypes = ...`,n.displayName||n.name||"Component"),typeof n.getDerivedStateFromProps=="function"&&(e=U(n)||"Unknown",jO[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),jO[e]=!0)),typeof n.contextType=="object"&&n.contextType!==null&&(n=U(n)||"Unknown",DO[n]||(console.error("%s: Function components do not support contextType.",n),DO[n]=!0))}function Cc(e){return{baseLanes:e,cachePool:ig()}}function Oh(e,n,l){return e=e!==null?e.childLanes&~l:0,n&&(e|=Sl),e}function qh(e,n,l){var c,p=n.pendingProps;m(n)&&(n.flags|=128);var g=!1,w=(n.flags&128)!==0;if((c=w)||(c=e!==null&&e.memoizedState===null?!1:(pa.current&lv)!==0),c&&(g=!0,n.flags&=-129),c=(n.flags&32)!==0,n.flags&=-33,e===null){if(Dt){if(g?nr(n):mi(n),(e=Nn)?(l=tn(e,$i),l=l!==null&&l.data!==Sp?l:null,l!==null&&(c={dehydrated:l,treeContext:uE(),retryLane:536870912,hydrationErrors:null},n.memoizedState=c,c=eg(l),c.return=n,n.child=c,pr=n,Nn=null)):l=null,l===null)throw Pa(n,e),ol(n);return ib(l)?n.lanes=32:n.lanes=536870912,null}var C=p.children;if(p=p.fallback,g){mi(n);var D=n.mode;return C=Td({mode:"hidden",children:C},D),p=ku(p,D,l,null),C.return=n,p.return=n,C.sibling=p,n.child=C,p=n.child,p.memoizedState=Cc(l),p.childLanes=Oh(e,c,l),n.memoizedState=_R,es(null,p)}return nr(n),_g(n,C)}var j=e.memoizedState;if(j!==null){var ae=j.dehydrated;if(ae!==null){if(w)n.flags&256?(nr(n),n.flags&=-257,n=Dh(e,n,l)):n.memoizedState!==null?(mi(n),n.child=e.child,n.flags|=128,n=null):(mi(n),C=p.fallback,D=n.mode,p=Td({mode:"visible",children:p.children},D),C=ku(C,D,l,null),C.flags|=2,p.return=n,C.return=n,p.sibling=C,n.child=p,dp(n,e.child,null,l),p=n.child,p.memoizedState=Cc(l),p.childLanes=Oh(e,c,l),n.memoizedState=_R,n=es(null,p));else if(nr(n),cE(),(l&536870912)!==0&&qc(n),ib(ae)){if(c=ae.nextSibling&&ae.nextSibling.dataset,c){C=c.dgst;var le=c.msg;D=c.stck;var Z=c.cstck}g=le,c=C,p=D,ae=Z,C=g,D=ae,C=Error(C||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),C.stack=p||"",C.digest=c,c=D===void 0?null:D,p={value:C,source:null,stack:c},typeof c=="string"&&oR.set(C,p),Kf(p),n=Dh(e,n,l)}else if(Ma||Dl(e,n,l,!1),c=(l&e.childLanes)!==0,Ma||c){if(c=gn,c!==null&&(p=ia(c,l),p!==0&&p!==j.retryLane))throw j.retryLane=p,Ha(e,p),ft(c,e,p),AR;$d(ae)||Dc(),n=Dh(e,n,l)}else $d(ae)?(n.flags|=192,n.child=e.child,n=null):(e=j.treeContext,Nn=Pr(ae.nextSibling),pr=n,Dt=!0,ff=null,gu=!1,Ql=null,$i=!1,e!==null&&sE(n,e),n=_g(n,p.children),n.flags|=4096);return n}}return g?(mi(n),C=p.fallback,D=n.mode,Z=e.child,ae=Z.sibling,p=si(Z,{mode:"hidden",children:p.children}),p.subtreeFlags=Z.subtreeFlags&65011712,ae!==null?C=si(ae,C):(C=ku(C,D,l,null),C.flags|=2),C.return=n,p.return=n,p.sibling=C,n.child=p,es(null,p),p=n.child,C=e.child.memoizedState,C===null?C=Cc(l):(D=C.cachePool,D!==null?(Z=Ca._currentValue,D=D.parent!==Z?{parent:Z,pool:Z}:D):D=ig(),C={baseLanes:C.baseLanes|l,cachePool:D}),p.memoizedState=C,p.childLanes=Oh(e,c,l),n.memoizedState=_R,es(e.child,p)):(j!==null&&(l&62914560)===l&&(l&e.lanes)!==0&&qc(n),nr(n),l=e.child,e=l.sibling,l=si(l,{mode:"visible",children:p.children}),l.return=n,l.sibling=null,e!==null&&(c=n.deletions,c===null?(n.deletions=[e],n.flags|=16):c.push(e)),n.child=l,n.memoizedState=null,l)}function _g(e,n){return n=Td({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Td(e,n){return e=R(22,e,null,n),e.lanes=0,e}function Dh(e,n,l){return dp(n,e.child,null,l),e=_g(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Mg(e,n,l){e.lanes|=n;var c=e.alternate;c!==null&&(c.lanes|=n),sh(e.return,n,l)}function Nh(e,n,l,c,p,g){var w=e.memoizedState;w===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:c,tail:l,tailMode:p,treeForkCount:g}:(w.isBackwards=n,w.rendering=null,w.renderingStartTime=0,w.last=c,w.tail=l,w.tailMode=p,w.treeForkCount=g)}function Og(e,n,l){var c=n.pendingProps,p=c.revealOrder,g=c.tail,w=c.children,C=pa.current;if((c=(C&lv)!==0)?(C=C&Ym|lv,n.flags|=128):C&=Ym,se(pa,C,n),C=p??"null",p!=="forwards"&&p!=="unstable_legacy-backwards"&&p!=="together"&&p!=="independent"&&!zO[C])if(zO[C]=!0,p==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(p==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof p=="string")switch(p.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',p,p.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',p,p.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',p)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',p);C=g??"null",HT[C]||(g==null?(p==="forwards"||p==="backwards"||p==="unstable_legacy-backwards")&&(HT[C]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):g!=="visible"&&g!=="collapsed"&&g!=="hidden"?(HT[C]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',g)):p!=="forwards"&&p!=="backwards"&&p!=="unstable_legacy-backwards"&&(HT[C]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',g)));e:if((p==="forwards"||p==="backwards"||p==="unstable_legacy-backwards")&&w!==void 0&&w!==null&&w!==!1)if(na(w)){for(C=0;C<w.length;C++)if(!pn(w[C],C))break e}else if(C=k(w),typeof C=="function"){if(C=C.call(w))for(var D=C.next(),j=0;!D.done;D=C.next()){if(!pn(D.value,j))break e;j++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',p);if(wa(e,n,w,l),Dt?(Ho(),w=Vb):w=0,!c&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Mg(e,l,n);else if(e.tag===19)Mg(e,l,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(p){case"forwards":for(l=n.child,p=null;l!==null;)e=l.alternate,e!==null&&Iu(e)===null&&(p=l),l=l.sibling;l=p,l===null?(p=n.child,n.child=null):(p=l.sibling,l.sibling=null),Nh(n,!1,p,l,g,w);break;case"backwards":case"unstable_legacy-backwards":for(l=null,p=n.child,n.child=null;p!==null;){if(e=p.alternate,e!==null&&Iu(e)===null){n.child=p;break}e=p.sibling,p.sibling=l,l=p,p=e}Nh(n,!0,l,null,g,w);break;case"together":Nh(n,!1,null,null,void 0,w);break;default:n.memoizedState=null}return n.child}function Ul(e,n,l){if(e!==null&&(n.dependencies=e.dependencies),Xr=-1,vf|=n.lanes,(l&n.childLanes)===0)if(e!==null){if(Dl(e,n,l,!1),(l&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error("Resuming work not yet implemented.");if(n.child!==null){for(e=n.child,l=si(e,e.pendingProps),n.child=l,l.return=n;e.sibling!==null;)e=e.sibling,l=l.sibling=si(e,e.pendingProps),l.return=n;l.sibling=null}return n.child}function jh(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&fc(e)))}function vE(e,n,l){switch(n.tag){case 3:ke(n,n.stateNode.containerInfo),ul(n,Ca,e.memoizedState.cache),Po();break;case 27:case 5:te(n);break;case 4:ke(n,n.stateNode.containerInfo);break;case 10:ul(n,n.type,n.memoizedProps.value);break;case 12:(l&n.childLanes)!==0&&(n.flags|=4),n.flags|=2048;var c=n.stateNode;c.effectDuration=-0,c.passiveEffectDuration=-0;break;case 31:if(n.memoizedState!==null)return n.flags|=128,kl(n),null;break;case 13:if(c=n.memoizedState,c!==null)return c.dehydrated!==null?(nr(n),n.flags|=128,null):(l&n.child.childLanes)!==0?qh(e,n,l):(nr(n),e=Ul(e,n,l),e!==null?e.sibling:null);nr(n);break;case 19:var p=(e.flags&128)!==0;if(c=(l&n.childLanes)!==0,c||(Dl(e,n,l,!1),c=(l&n.childLanes)!==0),p){if(c)return Og(e,n,l);n.flags|=128}if(p=n.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),se(pa,pa.current,n),c)break;return null;case 22:return n.lanes=0,Tg(e,n,l,n.pendingProps);case 24:ul(n,Ca,e.memoizedState.cache)}return Ul(e,n,l)}function wd(e,n,l){if(n._debugNeedsRemount&&e!==null){l=zu(n.type,n.key,n.pendingProps,n._debugOwner||null,n.mode,n.lanes),l._debugStack=n._debugStack,l._debugTask=n._debugTask;var c=n.return;if(c===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,n.alternate=null,l.index=n.index,l.sibling=n.sibling,l.return=n.return,l.ref=n.ref,l._debugInfo=n._debugInfo,n===c.child)c.child=l;else{var p=c.child;if(p===null)throw Error("Expected parent to have a child.");for(;p.sibling!==n;)if(p=p.sibling,p===null)throw Error("Expected to find the previous sibling.");p.sibling=l}return n=c.deletions,n===null?(c.deletions=[e],c.flags|=16):n.push(e),l.flags|=2,l}if(e!==null)if(e.memoizedProps!==n.pendingProps||n.type!==e.type)Ma=!0;else{if(!jh(e,l)&&(n.flags&128)===0)return Ma=!1,vE(e,n,l);Ma=(e.flags&131072)!==0}else Ma=!1,(c=Dt)&&(Ho(),c=(n.flags&1048576)!==0),c&&(c=n.index,Ho(),tg(n,Vb,c));switch(n.lanes=0,n.tag){case 16:e:if(c=n.pendingProps,e=Nr(n.elementType),n.type=e,typeof e=="function")Ky(e)?(c=Si(e,c),n.tag=1,n.type=e=Lo(e),n=ts(null,n,e,c,l)):(n.tag=0,Rc(n,e),n.type=e=Lo(e),n=Rg(null,n,e,c,l));else{if(e!=null){if(p=e.$$typeof,p===Qc){n.tag=11,n.type=e=lh(e),n=gE(null,n,e,c,l);break e}else if(p===Zd){n.tag=14,n=Sg(null,n,e,c,l);break e}}throw n="",e!==null&&typeof e=="object"&&e.$$typeof===Va&&(n=" Did you wrap a component in React.lazy() more than once?"),l=U(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+l+". Lazy element type must resolve to a class or function."+n)}return n;case 0:return Rg(e,n,n.type,n.pendingProps,l);case 1:return c=n.type,p=Si(c,n.pendingProps),ts(e,n,c,p,l);case 3:e:{if(ke(n,n.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");c=n.pendingProps;var g=n.memoizedState;p=g.element,di(e,n),hi(n,c,null,l);var w=n.memoizedState;if(c=w.cache,ul(n,Ca,c),c!==g.cache&&eo(n,[Ca],l,!0),mc(),c=w.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:w.cache},n.updateQueue.baseState=g,n.memoizedState=g,n.flags&256){n=Ag(e,n,c,l);break e}else if(c!==p){p=Ka(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),n),Kf(p),n=Ag(e,n,c,l);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Nn=Pr(e.firstChild),pr=n,Dt=!0,ff=null,gu=!1,Ql=null,$i=!0,l=cO(n,null,c,l),n.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Po(),c===p){n=Ul(e,n,l);break e}wa(e,n,c,l)}n=n.child}return n;case 26:return Ed(e,n),e===null?(l=cb(n.type,null,n.pendingProps,null))?n.memoizedState=l:Dt||(l=n.type,e=n.pendingProps,c=Se(Ir.current),c=Ud(c).createElement(l),c[qn]=n,c[dr]=e,On(c,l,e),$t(c),n.stateNode=c):n.memoizedState=cb(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return te(n),e===null&&Dt&&(c=Se(Ir.current),p=ue(),c=n.stateNode=go(n.type,n.pendingProps,c,p,!1),gu||(p=Sr(c,n.type,n.pendingProps,p),p!==null&&(Bu(n,0).serverProps=p)),pr=n,$i=!0,p=Nn,cu(n.type)?(JR=p,Nn=Pr(c.firstChild)):Nn=p),wa(e,n,n.pendingProps.children,l),Ed(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Dt&&(g=ue(),c=Pf(n.type,g.ancestorInfo),p=Nn,(w=!p)||(w=QE(p,n.type,n.pendingProps,$i),w!==null?(n.stateNode=w,gu||(g=Sr(w,n.type,n.pendingProps,g),g!==null&&(Bu(n,0).serverProps=g)),pr=n,Nn=Pr(w.firstChild),$i=!1,g=!0):g=!1,w=!g),w&&(c&&Pa(n,p),ol(n))),te(n),p=n.type,g=n.pendingProps,w=e!==null?e.memoizedProps:null,c=g.children,$c(p,g)?c=null:w!==null&&$c(p,w)&&(n.flags|=32),n.memoizedState!==null&&(p=fg(e,n,od,null,null,l),wv._currentValue=p),Ed(e,n),wa(e,n,c,l),n.child;case 6:return e===null&&Dt&&(l=n.pendingProps,e=ue(),c=e.ancestorInfo.current,l=c!=null?If(l,c.tag,e.ancestorInfo.implicitRootScope):!0,e=Nn,(c=!e)||(c=ZE(e,n.pendingProps,$i),c!==null?(n.stateNode=c,pr=n,Nn=null,c=!0):c=!1,c=!c),c&&(l&&Pa(n,e),ol(n))),null;case 13:return qh(e,n,l);case 4:return ke(n,n.stateNode.containerInfo),c=n.pendingProps,e===null?n.child=dp(n,null,c,l):wa(e,n,c,l),n.child;case 11:return gE(e,n,n.type,n.pendingProps,l);case 7:return wa(e,n,n.pendingProps,l),n.child;case 8:return wa(e,n,n.pendingProps.children,l),n.child;case 12:return n.flags|=4,n.flags|=2048,c=n.stateNode,c.effectDuration=-0,c.passiveEffectDuration=-0,wa(e,n,n.pendingProps.children,l),n.child;case 10:return c=n.type,p=n.pendingProps,g=p.value,"value"in p||kO||(kO=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),ul(n,c,g),wa(e,n,p.children,l),n.child;case 9:return p=n.type._context,c=n.pendingProps.children,typeof c!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Vo(n),p=Gt(p),c=mR(c,p,void 0),n.flags|=1,wa(e,n,c,l),n.child;case 14:return Sg(e,n,n.type,n.pendingProps,l);case 15:return Eg(e,n,n.type,n.pendingProps,l);case 19:return Og(e,n,l);case 31:return bE(e,n,l);case 22:return Tg(e,n,l,n.pendingProps);case 24:return Vo(n),c=Gt(Ca),e===null?(p=ao(),p===null&&(p=gn,g=ch(),p.pooledCache=g,Lu(g),g!==null&&(p.pooledCacheLanes|=l),p=g),n.memoizedState={parent:c,cache:p},Ot(n),ul(n,Ca,p)):((e.lanes&l)!==0&&(di(e,n),hi(n,null,null,l),mc()),p=e.memoizedState,g=n.memoizedState,p.parent!==c?(p={parent:c,cache:c},n.memoizedState=p,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=p),ul(n,Ca,c)):(c=g.cache,ul(n,Ca,c),c!==p.cache&&eo(n,[Ca],l,!0))),wa(e,n,n.pendingProps.children,l),n.child;case 29:throw n.pendingProps}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Ei(e){e.flags|=4}function zh(e,n,l,c,p){if((n=(e.mode&PB)!==ct)&&(n=!1),n){if(e.flags|=16777216,(p&335544128)===p)if(e.stateNode.complete)e.flags|=8192;else if(Fg())e.flags|=8192;else throw fp=zT,gR}else e.flags&=-16777217}function SE(e,n){if(n.type!=="stylesheet"||(n.state.loading&Gi)!==wp)e.flags&=-16777217;else if(e.flags|=16777216,!Mt(n))if(Fg())e.flags|=8192;else throw fp=zT,gR}function Ac(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?qe():536870912,e.lanes|=n,gp|=n)}function _c(e,n){if(!Dt)switch(e.tailMode){case"hidden":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var c=null;l!==null;)l.alternate!==null&&(c=l),l=l.sibling;c===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:c.sibling=null}}function ln(e){var n=e.alternate!==null&&e.alternate.child===e.child,l=0,c=0;if(n)if((e.mode&wt)!==ct){for(var p=e.selfBaseDuration,g=e.child;g!==null;)l|=g.lanes|g.childLanes,c|=g.subtreeFlags&65011712,c|=g.flags&65011712,p+=g.treeBaseDuration,g=g.sibling;e.treeBaseDuration=p}else for(p=e.child;p!==null;)l|=p.lanes|p.childLanes,c|=p.subtreeFlags&65011712,c|=p.flags&65011712,p.return=e,p=p.sibling;else if((e.mode&wt)!==ct){p=e.actualDuration,g=e.selfBaseDuration;for(var w=e.child;w!==null;)l|=w.lanes|w.childLanes,c|=w.subtreeFlags,c|=w.flags,p+=w.actualDuration,g+=w.treeBaseDuration,w=w.sibling;e.actualDuration=p,e.treeBaseDuration=g}else for(p=e.child;p!==null;)l|=p.lanes|p.childLanes,c|=p.subtreeFlags,c|=p.flags,p.return=e,p=p.sibling;return e.subtreeFlags|=c,e.childLanes=l,n}function qg(e,n,l){var c=n.pendingProps;switch(uh(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ln(n),null;case 1:return ln(n),null;case 3:return l=n.stateNode,c=null,e!==null&&(c=e.memoizedState.cache),n.memoizedState.cache!==c&&(n.flags|=2048),ql(Ca,n),P(n),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Uu(n)?(Io(),Ei(n)):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Jf())),ln(n),null;case 26:var p=n.type,g=n.memoizedState;return e===null?(Ei(n),g!==null?(ln(n),SE(n,g)):(ln(n),zh(n,p,null,c,l))):g?g!==e.memoizedState?(Ei(n),ln(n),SE(n,g)):(ln(n),n.flags&=-16777217):(e=e.memoizedProps,e!==c&&Ei(n),ln(n),zh(n,p,e,c,l)),null;case 27:if(De(n),l=Se(Ir.current),p=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==c&&Ei(n);else{if(!c){if(n.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ln(n),null}e=ue(),Uu(n)?ng(n):(e=go(p,c,l,e,!0),n.stateNode=e,Ei(n))}return ln(n),null;case 5:if(De(n),p=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==c&&Ei(n);else{if(!c){if(n.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ln(n),null}var w=ue();if(Uu(n))ng(n);else{switch(g=Se(Ir.current),Pf(p,w.ancestorInfo),w=w.context,g=Ud(g),w){case ry:g=g.createElementNS(St,p);break;case ow:g=g.createElementNS(gt,p);break;default:switch(p){case"svg":g=g.createElementNS(St,p);break;case"math":g=g.createElementNS(gt,p);break;case"script":g=g.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof c.is=="string"?g.createElement("select",{is:c.is}):g.createElement("select"),c.multiple?g.multiple=!0:c.size&&(g.size=c.size);break;default:g=typeof c.is=="string"?g.createElement(p,{is:c.is}):g.createElement(p),p.indexOf("-")===-1&&(p!==p.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",p),Object.prototype.toString.call(g)!=="[object HTMLUnknownElement]"||Vr.call(i2,p)||(i2[p]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",p)))}}g[qn]=n,g[dr]=c;e:for(w=n.child;w!==null;){if(w.tag===5||w.tag===6)g.appendChild(w.stateNode);else if(w.tag!==4&&w.tag!==27&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===n)break e;for(;w.sibling===null;){if(w.return===null||w.return===n)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}n.stateNode=g;e:switch(On(g,p,c),p){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&Ei(n)}}return ln(n),zh(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,l),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==c&&Ei(n);else{if(typeof c!="string"&&n.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=Se(Ir.current),l=ue(),Uu(n)){if(e=n.stateNode,l=n.memoizedProps,p=!gu,c=null,g=pr,g!==null)switch(g.tag){case 3:p&&(p=WE(e,l,c),p!==null&&(Bu(n,0).serverProps=p));break;case 27:case 5:c=g.memoizedProps,p&&(p=WE(e,l,c),p!==null&&(Bu(n,0).serverProps=p))}e[qn]=n,e=!!(e.nodeValue===l||c!==null&&c.suppressHydrationWarning===!0||rb(e.nodeValue,l)),e||ol(n,!0)}else p=l.ancestorInfo.current,p!=null&&If(c,p.tag,l.ancestorInfo.implicitRootScope),e=Ud(e).createTextNode(c),e[qn]=n,n.stateNode=e}return ln(n),null;case 31:if(l=n.memoizedState,e===null||e.memoizedState!==null){if(c=Uu(n),l!==null){if(e===null){if(!c)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[qn]=n,ln(n),(n.mode&wt)!==ct&&l!==null&&(e=n.child,e!==null&&(n.treeBaseDuration-=e.treeBaseDuration))}else Io(),Po(),(n.flags&128)===0&&(l=n.memoizedState=null),n.flags|=4,ln(n),(n.mode&wt)!==ct&&l!==null&&(e=n.child,e!==null&&(n.treeBaseDuration-=e.treeBaseDuration));e=!1}else l=Jf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return n.flags&256?(Ea(n),n):(Ea(n),null);if((n.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return ln(n),null;case 13:if(c=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(p=c,g=Uu(n),p!==null&&p.dehydrated!==null){if(e===null){if(!g)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(g=n.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");g[qn]=n,ln(n),(n.mode&wt)!==ct&&p!==null&&(p=n.child,p!==null&&(n.treeBaseDuration-=p.treeBaseDuration))}else Io(),Po(),(n.flags&128)===0&&(p=n.memoizedState=null),n.flags|=4,ln(n),(n.mode&wt)!==ct&&p!==null&&(p=n.child,p!==null&&(n.treeBaseDuration-=p.treeBaseDuration));p=!1}else p=Jf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=p),p=!0;if(!p)return n.flags&256?(Ea(n),n):(Ea(n),null)}return Ea(n),(n.flags&128)!==0?(n.lanes=l,(n.mode&wt)!==ct&&Hu(n),n):(l=c!==null,e=e!==null&&e.memoizedState!==null,l&&(c=n.child,p=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(p=c.alternate.memoizedState.cachePool.pool),g=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(g=c.memoizedState.cachePool.pool),g!==p&&(c.flags|=2048)),l!==e&&l&&(n.child.flags|=8192),Ac(n,n.updateQueue),ln(n),(n.mode&wt)!==ct&&l&&(e=n.child,e!==null&&(n.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return P(n),e===null&&uu(n.stateNode.containerInfo),ln(n),null;case 10:return ql(n.type,n),ln(n),null;case 19:if(ve(pa,n),c=n.memoizedState,c===null)return ln(n),null;if(p=(n.flags&128)!==0,g=c.rendering,g===null)if(p)_c(c,!1);else{if(Vn!==Ms||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(g=Iu(e),g!==null){for(n.flags|=128,_c(c,!1),e=g.updateQueue,n.updateQueue=e,Ac(n,e),n.subtreeFlags=0,e=l,l=n.child;l!==null;)Wy(l,e),l=l.sibling;return se(pa,pa.current&Ym|lv,n),Dt&&Ol(n,c.treeForkCount),n.child}e=e.sibling}c.tail!==null&&Ra()>FT&&(n.flags|=128,p=!0,_c(c,!1),n.lanes=4194304)}else{if(!p)if(e=Iu(g),e!==null){if(n.flags|=128,p=!0,e=e.updateQueue,n.updateQueue=e,Ac(n,e),_c(c,!0),c.tail===null&&c.tailMode==="hidden"&&!g.alternate&&!Dt)return ln(n),null}else 2*Ra()-c.renderingStartTime>FT&&l!==536870912&&(n.flags|=128,p=!0,_c(c,!1),n.lanes=4194304);c.isBackwards?(g.sibling=n.child,n.child=g):(e=c.last,e!==null?e.sibling=g:n.child=g,c.last=g)}return c.tail!==null?(e=c.tail,c.rendering=e,c.tail=e.sibling,c.renderingStartTime=Ra(),e.sibling=null,l=pa.current,l=p?l&Ym|lv:l&Ym,se(pa,l,n),Dt&&Ol(n,c.treeForkCount),e):(ln(n),null);case 22:case 23:return Ea(n),zl(n),c=n.memoizedState!==null,e!==null?e.memoizedState!==null!==c&&(n.flags|=8192):c&&(n.flags|=8192),c?(l&536870912)!==0&&(n.flags&128)===0&&(ln(n),n.subtreeFlags&6&&(n.flags|=8192)):ln(n),l=n.updateQueue,l!==null&&Ac(n,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),c=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(c=n.memoizedState.cachePool.pool),c!==l&&(n.flags|=2048),e!==null&&ve(sp,n),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),ql(Ca,n),ln(n),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function EE(e,n){switch(uh(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,(n.mode&wt)!==ct&&Hu(n),n):null;case 3:return ql(Ca,n),P(n),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return De(n),null;case 31:if(n.memoizedState!==null){if(Ea(n),n.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Po()}return e=n.flags,e&65536?(n.flags=e&-65537|128,(n.mode&wt)!==ct&&Hu(n),n):null;case 13:if(Ea(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Po()}return e=n.flags,e&65536?(n.flags=e&-65537|128,(n.mode&wt)!==ct&&Hu(n),n):null;case 19:return ve(pa,n),null;case 4:return P(n),null;case 10:return ql(n.type,n),null;case 22:case 23:return Ea(n),zl(n),e!==null&&ve(sp,n),e=n.flags,e&65536?(n.flags=e&-65537|128,(n.mode&wt)!==ct&&Hu(n),n):null;case 24:return ql(Ca,n),null;case 25:return null;default:return null}}function Dg(e,n){switch(uh(n),n.tag){case 3:ql(Ca,n),P(n);break;case 26:case 27:case 5:De(n);break;case 4:P(n);break;case 31:n.memoizedState!==null&&Ea(n);break;case 13:Ea(n);break;case 19:ve(pa,n);break;case 10:ql(n.type,n);break;case 22:case 23:Ea(n),zl(n),e!==null&&ve(sp,n);break;case 24:ql(Ca,n)}}function Ti(e){return(e.mode&wt)!==ct}function TE(e,n){Ti(e)?($n(),fo(n,e),er()):fo(n,e)}function kh(e,n,l){Ti(e)?($n(),nu(l,e,n),er()):nu(l,e,n)}function fo(e,n){try{var l=n.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var p=c.next;l=p;do{if((l.tag&e)===e&&(c=void 0,(e&Fr)!==BT&&(ty=!0),c=de(n,FB,l),(e&Fr)!==BT&&(ty=!1),c!==void 0&&typeof c!="function")){var g=void 0;g=(l.tag&Jl)!==0?"useLayoutEffect":(l.tag&Fr)!==0?"useInsertionEffect":"useEffect";var w=void 0;w=c===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof c.then=="function"?`
161
+
162
+ It looks like you wrote `+g+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
163
+
164
+ `+g+`(() => {
165
+ async function fetchData() {
166
+ // You can await here
167
+ const response = await MyAPI.getData(someId);
168
+ // ...
169
+ }
170
+ fetchData();
171
+ }, [someId]); // Or [] if effect doesn't need props or state
172
+
173
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+c,de(n,function(C,D){console.error("%s must not return anything besides a function, which is used for clean-up.%s",C,D)},g,w)}l=l.next}while(l!==p)}}catch(C){vt(n,n.return,C)}}function nu(e,n,l){try{var c=n.updateQueue,p=c!==null?c.lastEffect:null;if(p!==null){var g=p.next;c=g;do{if((c.tag&e)===e){var w=c.inst,C=w.destroy;C!==void 0&&(w.destroy=void 0,(e&Fr)!==BT&&(ty=!0),p=n,de(p,QB,p,l,C),(e&Fr)!==BT&&(ty=!1))}c=c.next}while(c!==g)}}catch(D){vt(n,n.return,D)}}function xd(e,n){Ti(e)?($n(),fo(n,e),er()):fo(n,e)}function Bh(e,n,l){Ti(e)?($n(),nu(l,e,n),er()):nu(l,e,n)}function Ng(e){var n=e.updateQueue;if(n!==null){var l=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Zm||(l.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",H(e)||"instance"),l.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",H(e)||"instance"));try{de(e,yc,n,l)}catch(c){vt(e,e.return,c)}}}function Rd(e,n,l){return e.getSnapshotBeforeUpdate(n,l)}function wE(e,n){var l=n.memoizedProps,c=n.memoizedState;n=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Zm||(n.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",H(e)||"instance"),n.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",H(e)||"instance"));try{var p=Si(e.type,l),g=de(e,Rd,n,p,c);l=BO,g!==void 0||l.has(e.type)||(l.add(e.type),de(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",H(e))})),n.__reactInternalSnapshotBeforeUpdate=g}catch(w){vt(e,e.return,w)}}function Uh(e,n,l){l.props=Si(e.type,e.memoizedProps),l.state=e.memoizedState,Ti(e)?($n(),de(e,nO,e,n,l),er()):de(e,nO,e,n,l)}function xE(e){var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}if(typeof n=="function")if(Ti(e))try{$n(),e.refCleanup=n(l)}finally{er()}else e.refCleanup=n(l);else typeof n=="string"?console.error("String refs are no longer supported."):n.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",H(e)),n.current=l}}function ns(e,n){try{de(e,xE,e)}catch(l){vt(e,n,l)}}function pl(e,n){var l=e.ref,c=e.refCleanup;if(l!==null)if(typeof c=="function")try{if(Ti(e))try{$n(),de(e,c)}finally{er(e)}else de(e,c)}catch(p){vt(e,n,p)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{if(Ti(e))try{$n(),de(e,l,null)}finally{er(e)}else de(e,l,null)}catch(p){vt(e,n,p)}else l.current=null}function jg(e,n,l,c){var p=e.memoizedProps,g=p.id,w=p.onCommit;p=p.onRender,n=n===null?"mount":"update",qT&&(n="nested-update"),typeof p=="function"&&p(g,n,e.actualDuration,e.treeBaseDuration,e.actualStartTime,l),typeof w=="function"&&w(g,n,c,l)}function RE(e,n,l,c){var p=e.memoizedProps;e=p.id,p=p.onPostCommit,n=n===null?"mount":"update",qT&&(n="nested-update"),typeof p=="function"&&p(e,n,c,l)}function au(e){var n=e.type,l=e.memoizedProps,c=e.stateNode;try{de(e,UE,c,n,l,e)}catch(p){vt(e,e.return,p)}}function Lh(e,n,l){try{de(e,lm,e.stateNode,e.type,l,n,e)}catch(c){vt(e,e.return,c)}}function zg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&cu(e.type)||e.tag===4}function $h(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||zg(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&&cu(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 Mc(e,n,l){var c=e.tag;if(c===5||c===6)e=e.stateNode,n?($E(l),(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,n)):($E(l),n=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,n.appendChild(e),l=l._reactRootContainer,l!=null||n.onclick!==null||(n.onclick=ll));else if(c!==4&&(c===27&&cu(e.type)&&(l=e.stateNode,n=null),e=e.child,e!==null))for(Mc(e,n,l),e=e.sibling;e!==null;)Mc(e,n,l),e=e.sibling}function Cd(e,n,l){var c=e.tag;if(c===5||c===6)e=e.stateNode,n?l.insertBefore(e,n):l.appendChild(e);else if(c!==4&&(c===27&&cu(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Cd(e,n,l),e=e.sibling;e!==null;)Cd(e,n,l),e=e.sibling}function kg(e){for(var n,l=e.return;l!==null;){if(zg(l)){n=l;break}l=l.return}if(n==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(n.tag){case 27:n=n.stateNode,l=$h(e),Cd(e,l,n);break;case 5:l=n.stateNode,n.flags&32&&(im(l),n.flags&=-33),n=$h(e),Cd(e,n,l);break;case 3:case 4:n=n.stateNode.containerInfo,l=$h(e),Mc(e,l,n);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Bg(e){var n=e.stateNode,l=e.memoizedProps;try{de(e,Oi,e.type,l,n,e)}catch(c){vt(e,e.return,c)}}function Ug(e,n){return n.tag===31?(n=n.memoizedState,e.memoizedState!==null&&n===null):n.tag===13?(e=e.memoizedState,n=n.memoizedState,e!==null&&e.dehydrated!==null&&(n===null||n.dehydrated===null)):n.tag===3?e.memoizedState.isDehydrated&&(n.flags&256)===0:!1}function Ux(e,n){if(e=e.containerInfo,FR=fw,e=th(e),Gy(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var c=l.getSelection&&l.getSelection();if(c&&c.rangeCount!==0){l=c.anchorNode;var p=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{l.nodeType,g.nodeType}catch{l=null;break e}var w=0,C=-1,D=-1,j=0,ae=0,le=e,Z=null;t:for(;;){for(var be;le!==l||p!==0&&le.nodeType!==3||(C=w+p),le!==g||c!==0&&le.nodeType!==3||(D=w+c),le.nodeType===3&&(w+=le.nodeValue.length),(be=le.firstChild)!==null;)Z=le,le=be;for(;;){if(le===e)break t;if(Z===l&&++j===p&&(C=w),Z===g&&++ae===c&&(D=w),(be=le.nextSibling)!==null)break;le=Z,Z=le.parentNode}le=be}l=C===-1||D===-1?null:{start:C,end:D}}else l=null}l=l||{start:0,end:0}}else l=null;for(QR={focusedElem:e,selectionRange:l},fw=!1,Xa=n;Xa!==null;)if(n=Xa,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,Xa=e;else for(;Xa!==null;){switch(e=n=Xa,l=e.alternate,p=e.flags,e.tag){case 0:if((p&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)p=e[l],p.ref.impl=p.nextImpl;break;case 11:case 15:break;case 1:(p&1024)!==0&&l!==null&&wE(e,l);break;case 3:if((p&1024)!==0){if(e=e.stateNode.containerInfo,l=e.nodeType,l===9)Pc(e);else if(l===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((p&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=n.sibling,e!==null){e.return=n.return,Xa=e;break}Xa=n.return}}function Hh(e,n,l){var c=_n(),p=sl(),g=qr(),w=cl(),C=l.flags;switch(l.tag){case 0:case 11:case 15:Ur(e,l),C&4&&TE(l,Jl|Ii);break;case 1:if(Ur(e,l),C&4)if(e=l.stateNode,n===null)l.type.defaultProps||"ref"in l.memoizedProps||Zm||(e.props!==l.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",H(l)||"instance"),e.state!==l.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",H(l)||"instance")),Ti(l)?($n(),de(l,yR,l,e),er()):de(l,yR,l,e);else{var D=Si(l.type,n.memoizedProps);n=n.memoizedState,l.type.defaultProps||"ref"in l.memoizedProps||Zm||(e.props!==l.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",H(l)||"instance"),e.state!==l.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",H(l)||"instance")),Ti(l)?($n(),de(l,WM,l,e,D,n,e.__reactInternalSnapshotBeforeUpdate),er()):de(l,WM,l,e,D,n,e.__reactInternalSnapshotBeforeUpdate)}C&64&&Ng(l),C&512&&ns(l,l.return);break;case 3:if(n=fi(),Ur(e,l),C&64&&(C=l.updateQueue,C!==null)){if(D=null,l.child!==null)switch(l.child.tag){case 27:case 5:D=l.child.stateNode;break;case 1:D=l.child.stateNode}try{de(l,yc,C,D)}catch(ae){vt(l,l.return,ae)}}e.effectDuration+=dc(n);break;case 27:n===null&&C&4&&Bg(l);case 26:case 5:if(Ur(e,l),n===null){if(C&4)au(l);else if(C&64){e=l.type,n=l.memoizedProps,D=l.stateNode;try{de(l,LE,D,e,n,l)}catch(ae){vt(l,l.return,ae)}}}C&512&&ns(l,l.return);break;case 12:if(C&4){C=fi(),Ur(e,l),e=l.stateNode,e.effectDuration+=Wa(C);try{de(l,jg,l,n,df,e.effectDuration)}catch(ae){vt(l,l.return,ae)}}else Ur(e,l);break;case 31:Ur(e,l),C&4&&$g(e,l);break;case 13:Ur(e,l),C&4&&Hg(e,l),C&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(C=ho.bind(null,l),JE(e,C))));break;case 22:if(C=l.memoizedState!==null||_s,!C){n=n!==null&&n.memoizedState!==null||Oa,D=_s;var j=Oa;_s=C,(Oa=n)&&!j?(Ll(e,l,(l.subtreeFlags&8772)!==0),(l.mode&wt)!==ct&&0<=nt&&0<=lt&&.05<lt-nt&&nh(l,nt,lt)):Ur(e,l),_s=D,Oa=j}break;case 30:break;default:Ur(e,l)}(l.mode&wt)!==ct&&0<=nt&&0<=lt&&((Jn||.05<In)&&Ml(l,nt,lt,In,Un),l.alternate===null&&l.return!==null&&l.return.alternate!==null&&.05<lt-nt&&(Ug(l.return.alternate,l.return)||il(l,nt,lt,"Mount"))),va(c),Or(p),Un=g,Jn=w}function Qn(e){var n=e.alternate;n!==null&&(e.alternate=null,Qn(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&nl(n)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wn(e,n,l){for(l=l.child;l!==null;)Lg(e,n,l),l=l.sibling}function Lg(e,n,l){if(fa&&typeof fa.onCommitFiberUnmount=="function")try{fa.onCommitFiberUnmount(ms,l)}catch(j){Di||(Di=!0,console.error("React instrumentation encountered an error: %o",j))}var c=_n(),p=sl(),g=qr(),w=cl();switch(l.tag){case 26:Oa||pl(l,n),wn(e,n,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(e=l.stateNode,e.parentNode.removeChild(e));break;case 27:Oa||pl(l,n);var C=qa,D=bl;cu(l.type)&&(qa=l.stateNode,bl=!1),wn(e,n,l),de(l,bo,l.stateNode),qa=C,bl=D;break;case 5:Oa||pl(l,n);case 6:if(C=qa,D=bl,qa=null,wn(e,n,l),qa=C,bl=D,qa!==null)if(bl)try{de(l,PE,qa,l.stateNode)}catch(j){vt(l,n,j)}else try{de(l,HE,qa,l.stateNode)}catch(j){vt(l,n,j)}break;case 18:qa!==null&&(bl?(e=qa,os(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),fs(e)):os(qa,l.stateNode));break;case 4:C=qa,D=bl,qa=l.stateNode.containerInfo,bl=!0,wn(e,n,l),qa=C,bl=D;break;case 0:case 11:case 14:case 15:nu(Fr,l,n),Oa||kh(l,n,Jl),wn(e,n,l);break;case 1:Oa||(pl(l,n),C=l.stateNode,typeof C.componentWillUnmount=="function"&&Uh(l,n,C)),wn(e,n,l);break;case 21:wn(e,n,l);break;case 22:Oa=(C=Oa)||l.memoizedState!==null,wn(e,n,l),Oa=C;break;default:wn(e,n,l)}(l.mode&wt)!==ct&&0<=nt&&0<=lt&&(Jn||.05<In)&&Ml(l,nt,lt,In,Un),va(c),Or(p),Un=g,Jn=w}function $g(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{de(n,om,e)}catch(l){vt(n,n.return,l)}}}function Hg(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{de(n,ub,e)}catch(l){vt(n,n.return,l)}}function CE(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new UO),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new UO),n;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function ru(e,n){var l=CE(e);n.forEach(function(c){if(!l.has(c)){if(l.add(c),Ni)if(Jm!==null&&Km!==null)zc(Km,Jm);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var p=ls.bind(null,e,c);c.then(p,p)}})}function lr(e,n){var l=n.deletions;if(l!==null)for(var c=0;c<l.length;c++){var p=e,g=n,w=l[c],C=_n(),D=g;e:for(;D!==null;){switch(D.tag){case 27:if(cu(D.type)){qa=D.stateNode,bl=!1;break e}break;case 5:qa=D.stateNode,bl=!1;break e;case 3:case 4:qa=D.stateNode.containerInfo,bl=!0;break e}D=D.return}if(qa===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Lg(p,g,w),qa=null,bl=!1,(w.mode&wt)!==ct&&0<=nt&&0<=lt&&.05<lt-nt&&il(w,nt,lt,"Unmount"),va(C),p=w,g=p.alternate,g!==null&&(g.return=null),p.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Ad(n,e),n=n.sibling}function Ad(e,n){var l=_n(),c=sl(),p=qr(),g=cl(),w=e.alternate,C=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:lr(n,e),ir(e),C&4&&(nu(Fr|Ii,e,e.return),fo(Fr|Ii,e),kh(e,e.return,Jl|Ii));break;case 1:if(lr(n,e),ir(e),C&512&&(Oa||w===null||pl(w,w.return)),C&64&&_s&&(C=e.updateQueue,C!==null&&(w=C.callbacks,w!==null))){var D=C.shared.hiddenCallbacks;C.shared.hiddenCallbacks=D===null?w:D.concat(w)}break;case 26:if(D=xo,lr(n,e),ir(e),C&512&&(Oa||w===null||pl(w,w.return)),C&4){var j=w!==null?w.memoizedState:null;if(C=e.memoizedState,w===null)if(C===null)if(e.stateNode===null){e:{C=e.type,w=e.memoizedProps,D=D.ownerDocument||D;t:switch(C){case"title":j=D.getElementsByTagName("title")[0],(!j||j[af]||j[qn]||j.namespaceURI===St||j.hasAttribute("itemprop"))&&(j=D.createElement(C),D.head.insertBefore(j,D.querySelector("head > title"))),On(j,C,w),j[qn]=e,$t(j),C=j;break e;case"link":var ae=Gc("link","href",D).get(C+(w.href||""));if(ae){for(var le=0;le<ae.length;le++)if(j=ae[le],j.getAttribute("href")===(w.href==null||w.href===""?null:w.href)&&j.getAttribute("rel")===(w.rel==null?null:w.rel)&&j.getAttribute("title")===(w.title==null?null:w.title)&&j.getAttribute("crossorigin")===(w.crossOrigin==null?null:w.crossOrigin)){ae.splice(le,1);break t}}j=D.createElement(C),On(j,C,w),D.head.appendChild(j);break;case"meta":if(ae=Gc("meta","content",D).get(C+(w.content||""))){for(le=0;le<ae.length;le++)if(j=ae[le],Ke(w.content,"content"),j.getAttribute("content")===(w.content==null?null:""+w.content)&&j.getAttribute("name")===(w.name==null?null:w.name)&&j.getAttribute("property")===(w.property==null?null:w.property)&&j.getAttribute("http-equiv")===(w.httpEquiv==null?null:w.httpEquiv)&&j.getAttribute("charset")===(w.charSet==null?null:w.charSet)){ae.splice(le,1);break t}}j=D.createElement(C),On(j,C,w),D.head.appendChild(j);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+C+'". This is a bug in React.')}j[qn]=e,$t(j),C=j}e.stateNode=C}else tT(D,e.type,e.stateNode);else e.stateNode=cm(D,C,e.memoizedProps);else j!==C?(j===null?w.stateNode!==null&&(w=w.stateNode,w.parentNode.removeChild(w)):j.count--,C===null?tT(D,e.type,e.stateNode):cm(D,C,e.memoizedProps)):C===null&&e.stateNode!==null&&Lh(e,e.memoizedProps,w.memoizedProps)}break;case 27:lr(n,e),ir(e),C&512&&(Oa||w===null||pl(w,w.return)),w!==null&&C&4&&Lh(e,e.memoizedProps,w.memoizedProps);break;case 5:if(lr(n,e),ir(e),C&512&&(Oa||w===null||pl(w,w.return)),e.flags&32){D=e.stateNode;try{de(e,im,D)}catch(Ge){vt(e,e.return,Ge)}}C&4&&e.stateNode!=null&&(D=e.memoizedProps,Lh(e,D,w!==null?w.memoizedProps:D)),C&1024&&(MR=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(lr(n,e),ir(e),C&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");C=e.memoizedProps,w=w!==null?w.memoizedProps:C,D=e.stateNode;try{de(e,Lx,D,w,C)}catch(Ge){vt(e,e.return,Ge)}}break;case 3:if(D=fi(),uw=null,j=xo,xo=um(n.containerInfo),lr(n,e),xo=j,ir(e),C&4&&w!==null&&w.memoizedState.isDehydrated)try{de(e,ob,n.containerInfo)}catch(Ge){vt(e,e.return,Ge)}MR&&(MR=!1,AE(e)),n.effectDuration+=dc(D);break;case 4:C=xo,xo=um(e.stateNode.containerInfo),lr(n,e),ir(e),xo=C;break;case 12:C=fi(),lr(n,e),ir(e),e.stateNode.effectDuration+=Wa(C);break;case 31:lr(n,e),ir(e),C&4&&(C=e.updateQueue,C!==null&&(e.updateQueue=null,ru(e,C)));break;case 13:lr(n,e),ir(e),e.child.flags&8192&&e.memoizedState!==null!=(w!==null&&w.memoizedState!==null)&&(XT=Ra()),C&4&&(C=e.updateQueue,C!==null&&(e.updateQueue=null,ru(e,C)));break;case 22:D=e.memoizedState!==null;var Z=w!==null&&w.memoizedState!==null,be=_s,Le=Oa;if(_s=be||D,Oa=Le||Z,lr(n,e),Oa=Le,_s=be,Z&&!D&&!be&&!Le&&(e.mode&wt)!==ct&&0<=nt&&0<=lt&&.05<lt-nt&&nh(e,nt,lt),ir(e),C&8192)e:for(n=e.stateNode,n._visibility=D?n._visibility&~Ib:n._visibility|Ib,!D||w===null||Z||_s||Oa||(lu(e),(e.mode&wt)!==ct&&0<=nt&&0<=lt&&.05<lt-nt&&il(e,nt,lt,"Disconnect")),w=null,n=e;;){if(n.tag===5||n.tag===26){if(w===null){Z=w=n;try{j=Z.stateNode,D?de(Z,VE,j):de(Z,XE,Z.stateNode,Z.memoizedProps)}catch(Ge){vt(Z,Z.return,Ge)}}}else if(n.tag===6){if(w===null){Z=n;try{ae=Z.stateNode,D?de(Z,GE,ae):de(Z,FE,ae,Z.memoizedProps)}catch(Ge){vt(Z,Z.return,Ge)}}}else if(n.tag===18){if(w===null){Z=n;try{le=Z.stateNode,D?de(Z,IE,le):de(Z,YE,Z.stateNode)}catch(Ge){vt(Z,Z.return,Ge)}}}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;w===n&&(w=null),n=n.return}w===n&&(w=null),n.sibling.return=n.return,n=n.sibling}C&4&&(C=e.updateQueue,C!==null&&(w=C.retryQueue,w!==null&&(C.retryQueue=null,ru(e,w))));break;case 19:lr(n,e),ir(e),C&4&&(C=e.updateQueue,C!==null&&(e.updateQueue=null,ru(e,C)));break;case 30:break;case 21:break;default:lr(n,e),ir(e)}(e.mode&wt)!==ct&&0<=nt&&0<=lt&&((Jn||.05<In)&&Ml(e,nt,lt,In,Un),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<lt-nt&&(Ug(e.return.alternate,e.return)||il(e,nt,lt,"Mount"))),va(l),Or(c),Un=p,Jn=g}function ir(e){var n=e.flags;if(n&2){try{de(e,kg,e)}catch(l){vt(e,e.return,l)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function AE(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;AE(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Ur(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Hh(e,n.alternate,n),n=n.sibling}function Ph(e){var n=_n(),l=sl(),c=qr(),p=cl();switch(e.tag){case 0:case 11:case 14:case 15:kh(e,e.return,Jl),lu(e);break;case 1:pl(e,e.return);var g=e.stateNode;typeof g.componentWillUnmount=="function"&&Uh(e,e.return,g),lu(e);break;case 27:de(e,bo,e.stateNode);case 26:case 5:pl(e,e.return),lu(e);break;case 22:e.memoizedState===null&&lu(e);break;case 30:lu(e);break;default:lu(e)}(e.mode&wt)!==ct&&0<=nt&&0<=lt&&(Jn||.05<In)&&Ml(e,nt,lt,In,Un),va(n),Or(l),Un=c,Jn=p}function lu(e){for(e=e.child;e!==null;)Ph(e),e=e.sibling}function Pg(e,n,l,c){var p=_n(),g=sl(),w=qr(),C=cl(),D=l.flags;switch(l.tag){case 0:case 11:case 15:Ll(e,l,c),TE(l,Jl);break;case 1:if(Ll(e,l,c),n=l.stateNode,typeof n.componentDidMount=="function"&&de(l,yR,l,n),n=l.updateQueue,n!==null){e=l.stateNode;try{de(l,sg,n,e)}catch(j){vt(l,l.return,j)}}c&&D&64&&Ng(l),ns(l,l.return);break;case 27:Bg(l);case 26:case 5:Ll(e,l,c),c&&n===null&&D&4&&au(l),ns(l,l.return);break;case 12:if(c&&D&4){D=fi(),Ll(e,l,c),c=l.stateNode,c.effectDuration+=Wa(D);try{de(l,jg,l,n,df,c.effectDuration)}catch(j){vt(l,l.return,j)}}else Ll(e,l,c);break;case 31:Ll(e,l,c),c&&D&4&&$g(e,l);break;case 13:Ll(e,l,c),c&&D&4&&Hg(e,l);break;case 22:l.memoizedState===null&&Ll(e,l,c),ns(l,l.return);break;case 30:break;default:Ll(e,l,c)}(l.mode&wt)!==ct&&0<=nt&&0<=lt&&(Jn||.05<In)&&Ml(l,nt,lt,In,Un),va(p),Or(g),Un=w,Jn=C}function Ll(e,n,l){for(l=l&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;)Pg(e,n.alternate,n,l),n=n.sibling}function _d(e,n){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==l&&(e!=null&&Lu(e),l!=null&&ed(l))}function Md(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(Lu(n),e!=null&&ed(e))}function Lr(e,n,l,c,p){if(n.subtreeFlags&10256||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child))for(n=n.child;n!==null;){var g=n.sibling;Ig(e,n,l,c,g!==null?g.actualStartTime:p),n=g}}function Ig(e,n,l,c,p){var g=_n(),w=sl(),C=qr(),D=cl(),j=uf,ae=n.flags;switch(n.tag){case 0:case 11:case 15:(n.mode&wt)!==ct&&0<n.actualStartTime&&(n.flags&1)!==0&&ah(n,n.actualStartTime,p,Ba,l),Lr(e,n,l,c,p),ae&2048&&xd(n,Qr|Ii);break;case 1:(n.mode&wt)!==ct&&0<n.actualStartTime&&((n.flags&128)!==0?Xy(n,n.actualStartTime,p,[]):(n.flags&1)!==0&&ah(n,n.actualStartTime,p,Ba,l)),Lr(e,n,l,c,p);break;case 3:var le=fi(),Z=Ba;Ba=n.alternate!==null&&n.alternate.memoizedState.isDehydrated&&(n.flags&256)===0,Lr(e,n,l,c,p),Ba=Z,ae&2048&&(l=null,n.alternate!==null&&(l=n.alternate.memoizedState.cache),c=n.memoizedState.cache,c!==l&&(Lu(c),l!=null&&ed(l))),e.passiveEffectDuration+=dc(le);break;case 12:if(ae&2048){ae=fi(),Lr(e,n,l,c,p),e=n.stateNode,e.passiveEffectDuration+=Wa(ae);try{de(n,RE,n,n.alternate,df,e.passiveEffectDuration)}catch(be){vt(n,n.return,be)}}else Lr(e,n,l,c,p);break;case 31:ae=Ba,le=n.alternate!==null?n.alternate.memoizedState:null,Z=n.memoizedState,le!==null&&Z===null?(Z=n.deletions,Z!==null&&0<Z.length&&Z[0].tag===18?(Ba=!1,le=le.hydrationErrors,le!==null&&Xy(n,n.actualStartTime,p,le)):Ba=!0):Ba=!1,Lr(e,n,l,c,p),Ba=ae;break;case 13:ae=Ba,le=n.alternate!==null?n.alternate.memoizedState:null,Z=n.memoizedState,le===null||le.dehydrated===null||Z!==null&&Z.dehydrated!==null?Ba=!1:(Z=n.deletions,Z!==null&&0<Z.length&&Z[0].tag===18?(Ba=!1,le=le.hydrationErrors,le!==null&&Xy(n,n.actualStartTime,p,le)):Ba=!0),Lr(e,n,l,c,p),Ba=ae;break;case 23:break;case 22:Z=n.stateNode,le=n.alternate,n.memoizedState!==null?Z._visibility&bs?Lr(e,n,l,c,p):as(e,n,l,c,p):Z._visibility&bs?Lr(e,n,l,c,p):(Z._visibility|=bs,iu(e,n,l,c,(n.subtreeFlags&10256)!==0||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child),p),(n.mode&wt)===ct||Ba||(e=n.actualStartTime,0<=e&&.05<p-e&&nh(n,e,p),0<=nt&&0<=lt&&.05<lt-nt&&nh(n,nt,lt))),ae&2048&&_d(le,n);break;case 24:Lr(e,n,l,c,p),ae&2048&&Md(n.alternate,n);break;default:Lr(e,n,l,c,p)}(n.mode&wt)!==ct&&((e=!Ba&&n.alternate===null&&n.return!==null&&n.return.alternate!==null)&&(l=n.actualStartTime,0<=l&&.05<p-l&&il(n,l,p,"Mount")),0<=nt&&0<=lt&&((Jn||.05<In)&&Ml(n,nt,lt,In,Un),e&&.05<lt-nt&&il(n,nt,lt,"Mount"))),va(g),Or(w),Un=C,Jn=D,uf=j}function iu(e,n,l,c,p,g){for(p=p&&((n.subtreeFlags&10256)!==0||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child)),n=n.child;n!==null;){var w=n.sibling;Od(e,n,l,c,p,w!==null?w.actualStartTime:g),n=w}}function Od(e,n,l,c,p,g){var w=_n(),C=sl(),D=qr(),j=cl(),ae=uf;p&&(n.mode&wt)!==ct&&0<n.actualStartTime&&(n.flags&1)!==0&&ah(n,n.actualStartTime,g,Ba,l);var le=n.flags;switch(n.tag){case 0:case 11:case 15:iu(e,n,l,c,p,g),xd(n,Qr);break;case 23:break;case 22:var Z=n.stateNode;n.memoizedState!==null?Z._visibility&bs?iu(e,n,l,c,p,g):as(e,n,l,c,g):(Z._visibility|=bs,iu(e,n,l,c,p,g)),p&&le&2048&&_d(n.alternate,n);break;case 24:iu(e,n,l,c,p,g),p&&le&2048&&Md(n.alternate,n);break;default:iu(e,n,l,c,p,g)}(n.mode&wt)!==ct&&0<=nt&&0<=lt&&(Jn||.05<In)&&Ml(n,nt,lt,In,Un),va(w),Or(C),Un=D,Jn=j,uf=ae}function as(e,n,l,c,p){if(n.subtreeFlags&10256||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child))for(var g=n.child;g!==null;){n=g.sibling;var w=e,C=l,D=c,j=n!==null?n.actualStartTime:p,ae=uf;(g.mode&wt)!==ct&&0<g.actualStartTime&&(g.flags&1)!==0&&ah(g,g.actualStartTime,j,Ba,C);var le=g.flags;switch(g.tag){case 22:as(w,g,C,D,j),le&2048&&_d(g.alternate,g);break;case 24:as(w,g,C,D,j),le&2048&&Md(g.alternate,g);break;default:as(w,g,C,D,j)}uf=ae,g=n}}function rs(e,n,l){if(e.subtreeFlags&sv)for(e=e.child;e!==null;)Ih(e,n,l),e=e.sibling}function Ih(e,n,l){switch(e.tag){case 26:rs(e,n,l),e.flags&sv&&e.memoizedState!==null&&pb(l,xo,e.memoizedState,e.memoizedProps);break;case 5:rs(e,n,l);break;case 3:case 4:var c=xo;xo=um(e.stateNode.containerInfo),rs(e,n,l),xo=c;break;case 22:e.memoizedState===null&&(c=e.alternate,c!==null&&c.memoizedState!==null?(c=sv,sv=16777216,rs(e,n,l),sv=c):rs(e,n,l));break;default:rs(e,n,l)}}function Vg(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 l=0;l<n.length;l++){var c=n[l],p=_n();Xa=c,wi(c,e),(c.mode&wt)!==ct&&0<=nt&&0<=lt&&.05<lt-nt&&il(c,nt,lt,"Unmount"),va(p)}Vg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Vh(e),e=e.sibling}function Vh(e){var n=_n(),l=sl(),c=qr(),p=cl();switch(e.tag){case 0:case 11:case 15:$r(e),e.flags&2048&&Bh(e,e.return,Qr|Ii);break;case 3:var g=fi();$r(e),e.stateNode.passiveEffectDuration+=dc(g);break;case 12:g=fi(),$r(e),e.stateNode.passiveEffectDuration+=Wa(g);break;case 22:g=e.stateNode,e.memoizedState!==null&&g._visibility&bs&&(e.return===null||e.return.tag!==13)?(g._visibility&=~bs,Gh(e),(e.mode&wt)!==ct&&0<=nt&&0<=lt&&.05<lt-nt&&il(e,nt,lt,"Disconnect")):$r(e);break;default:$r(e)}(e.mode&wt)!==ct&&0<=nt&&0<=lt&&(Jn||.05<In)&&Ml(e,nt,lt,In,Un),va(n),Or(l),Jn=p,Un=c}function Gh(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var l=0;l<n.length;l++){var c=n[l],p=_n();Xa=c,wi(c,e),(c.mode&wt)!==ct&&0<=nt&&0<=lt&&.05<lt-nt&&il(c,nt,lt,"Unmount"),va(p)}Vg(e)}for(e=e.child;e!==null;)Gg(e),e=e.sibling}function Gg(e){var n=_n(),l=sl(),c=qr(),p=cl();switch(e.tag){case 0:case 11:case 15:Bh(e,e.return,Qr),Gh(e);break;case 22:var g=e.stateNode;g._visibility&bs&&(g._visibility&=~bs,Gh(e));break;default:Gh(e)}(e.mode&wt)!==ct&&0<=nt&&0<=lt&&(Jn||.05<In)&&Ml(e,nt,lt,In,Un),va(n),Or(l),Jn=p,Un=c}function wi(e,n){for(;Xa!==null;){var l=Xa,c=l,p=n,g=_n(),w=sl(),C=qr(),D=cl();switch(c.tag){case 0:case 11:case 15:Bh(c,p,Qr);break;case 23:case 22:c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(p=c.memoizedState.cachePool.pool,p!=null&&Lu(p));break;case 24:ed(c.memoizedState.cache)}if((c.mode&wt)!==ct&&0<=nt&&0<=lt&&(Jn||.05<In)&&Ml(c,nt,lt,In,Un),va(g),Or(w),Jn=D,Un=C,c=l.child,c!==null)c.return=l,Xa=c;else e:for(l=e;Xa!==null;){if(c=Xa,g=c.sibling,w=c.return,Qn(c),c===l){Xa=null;break e}if(g!==null){g.return=w,Xa=g;break e}Xa=w}}}function Yg(){eU.forEach(function(e){return e()})}function Xg(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||Te.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Ia(e){if((Pt&Ua)!==Fa&&Rt!==0)return Rt&-Rt;var n=Te.T;return n!==null?(n._updatedFibers||(n._updatedFibers=new Set),n._updatedFibers.add(e),ab()):Bt()}function Oc(){if(Sl===0)if((Rt&536870912)===0||Dt){var e=Wd;Wd<<=1,(Wd&3932160)===0&&(Wd=262144),Sl=e}else Sl=536870912;return e=Zl.current,e!==null&&(e.flags|=32),Sl}function ft(e,n,l){if(ty&&console.error("useInsertionEffect must not schedule updates."),$R&&(JT=!0),(e===gn&&(cn===mp||cn===yp)||e.cancelPendingCommit!==null)&&(xi(e,0),hl(e,Rt,Sl,!1)),ee(e,l),(Pt&Ua)!==Fa&&e===gn){if(qi)switch(n.tag){case 0:case 11:case 15:e=_t&&H(_t)||"Unknown",WO.has(e)||(WO.add(e),n=H(n)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",n,e,e));break;case 1:KO||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),KO=!0)}}else Ni&&Ae(e,n,l),jd(n),e===gn&&((Pt&Ua)===Fa&&(Sf|=l),Vn===gf&&hl(e,Rt,Sl,!1)),br(e)}function _E(e,n,l){if((Pt&(Ua|Kl))!==Fa)throw Error("Should not already be working.");if(Rt!==0&&_t!==null){var c=_t,p=Ra();switch(GM){case dv:case mp:var g=Qb;Dn&&((c=c._debugTask)?c.run(console.timeStamp.bind(console,"Suspended",g,p,zi,void 0,"primary-light")):console.timeStamp("Suspended",g,p,zi,void 0,"primary-light"));break;case yp:g=Qb,Dn&&((c=c._debugTask)?c.run(console.timeStamp.bind(console,"Action",g,p,zi,void 0,"primary-light")):console.timeStamp("Action",g,p,zi,void 0,"primary-light"));break;default:Dn&&(c=p-Qb,3>c||console.timeStamp("Blocked",Qb,p,zi,void 0,5>c?"primary-light":10>c?"primary":100>c?"primary-dark":"error"))}}g=(l=!l&&(n&127)===0&&(n&e.expiredLanes)===0||oe(e,n))?po(e,n):Nc(e,n,!0);var w=l;do{if(g===Ms){Wm&&!l&&hl(e,n,0,!1),n=cn,Qb=Aa(),GM=n;break}else{if(c=Ra(),p=e.current.alternate,w&&!OE(p)){_l(n),p=Ya,g=c,!Dn||g<=p||(aa?aa.run(console.timeStamp.bind(console,"Teared Render",p,g,Ut,jt,"error")):console.timeStamp("Teared Render",p,g,Ut,jt,"error")),ou(n,c),g=Nc(e,n,!1),w=!1;continue}if(g===hp){if(w=n,e.errorRecoveryDisabledLanes&w)var C=0;else C=e.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){_l(n),Fy(Ya,c,n,aa),ou(n,c),n=C;e:{c=e,g=w,w=hv;var D=c.current.memoizedState.isDehydrated;if(D&&(xi(c,C).flags|=256),C=Nc(c,C,!1),C!==hp){if(DR&&!D){c.errorRecoveryDisabledLanes|=g,Sf|=g,g=gf;break e}c=Zr,Zr=w,c!==null&&(Zr===null?Zr=c:Zr.push.apply(Zr,c))}g=C}if(w=!1,g!==hp)continue;c=Ra()}}if(g===fv){_l(n),Fy(Ya,c,n,aa),ou(n,c),xi(e,0),hl(e,n,0,!0);break}e:{switch(l=e,g){case Ms:case fv:throw Error("Root did not complete. This is a bug in React.");case gf:if((n&4194048)!==n)break;case IT:_l(n),rE(Ya,c,n,aa),ou(n,c),p=n,(p&127)!==0?_T=c:(p&4194048)!==0&&(MT=c),hl(l,n,Sl,!bf);break e;case hp:Zr=null;break;case PT:case LO:break;default:throw Error("Unknown root exit status.")}if(Te.actQueue!==null)hn(l,p,n,Zr,mv,YT,Sl,Sf,gp,g,null,null,Ya,c);else{if((n&62914560)===n&&(w=XT+PO-Ra(),10<w)){if(hl(l,n,Sl,!bf),ni(l,0,!0)!==0)break e;Ro=n,l.timeoutHandle=o2(ME.bind(null,l,p,Zr,mv,YT,n,Sl,Sf,gp,bf,g,"Throttled",Ya,c),w);break e}ME(l,p,Zr,mv,YT,n,Sl,Sf,gp,bf,g,null,Ya,c)}}}break}while(!0);br(e)}function ME(e,n,l,c,p,g,w,C,D,j,ae,le,Z,be){e.timeoutHandle=Tp;var Le=n.subtreeFlags,Ge=null;if((Le&8192||(Le&16785408)===16785408)&&(Ge={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ll},Ih(n,g,Ge),Le=(g&62914560)===g?XT-Ra():(g&4194048)===g?HO-Ra():0,Le=fm(Ge,Le),Le!==null)){Ro=g,e.cancelPendingCommit=Le(hn.bind(null,e,n,g,l,c,p,w,C,D,ae,Ge,Ge.waitingForViewTransition?"Waiting for the previous Animation":0<Ge.count?0<Ge.imgCount?"Suspended on CSS and Images":"Suspended on CSS":Ge.imgCount===1?"Suspended on an Image":0<Ge.imgCount?"Suspended on Images":null,Z,be)),hl(e,g,w,!j);return}hn(e,n,g,l,c,p,w,C,D,ae,Ge,le,Z,be)}function OE(e){for(var n=e;;){var l=n.tag;if((l===0||l===11||l===15)&&n.flags&16384&&(l=n.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var c=0;c<l.length;c++){var p=l[c],g=p.getSnapshot;p=p.value;try{if(!Yr(g(),p))return!1}catch{return!1}}if(l=n.child,n.subtreeFlags&16384&&l!==null)l.return=n,n=l;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 hl(e,n,l,c){n&=~NR,n&=~Sf,e.suspendedLanes|=n,e.pingedLanes&=~n,c&&(e.warmLanes|=n),c=e.expirationTimes;for(var p=n;0<p;){var g=31-za(p),w=1<<g;c[g]=-1,p&=~w}l!==0&&Rn(e,l,n)}function Hr(){return(Pt&(Ua|Kl))===Fa?(Ci(0),!1):!0}function Yh(){if(_t!==null){if(cn===vl)var e=_t.return;else e=_t,cc(),Yo(e),Vm=null,rv=0,e=_t;for(;e!==null;)Dg(e.alternate,e),e=e.return;_t=null}}function ou(e,n){(e&127)!==0&&(lp=n),(e&4194048)!==0&&(ws=n),(e&62914560)!==0&&(IM=n),(e&2080374784)!==0&&(VM=n)}function xi(e,n){Dn&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",jt,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",jt,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",jt,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",jt,"primary-light"));var l=Ya;if(Ya=Aa(),Rt!==0&&0<l){if(_l(Rt),Vn===PT||Vn===gf)rE(l,Ya,n,aa);else{var c=Ya,p=aa;if(Dn&&!(c<=l)){var g=(n&738197653)===n?"tertiary-dark":"primary-dark",w=(n&536870912)===n?"Prewarm":(n&201326741)===n?"Interrupted Hydration":"Interrupted Render";p?p.run(console.timeStamp.bind(console,w,l,c,Ut,jt,g)):console.timeStamp(w,l,c,Ut,jt,g)}}ou(Rt,Ya)}if(l=aa,aa=null,(n&127)!==0){aa=Yb,p=0<=bu&&bu<lp?lp:bu,c=0<=ip&&ip<lp?lp:ip,g=0<=c?c:0<=p?p:Ya,0<=_T?(_l(2),lE(_T,g,n,l)):OT&127,l=p;var C=c,D=Xb,j=0<Hm,ae=pf===Gb,le=pf===AT;if(p=Ya,c=Yb,g=fR,w=dR,Dn){if(Ut="Blocking",0<l?l>p&&(l=p):l=p,0<C?C>l&&(C=l):C=l,D!==null&&l>C){var Z=j?"secondary-light":"warning";c?c.run(console.timeStamp.bind(console,j?"Consecutive":"Event: "+D,C,l,Ut,jt,Z)):console.timeStamp(j?"Consecutive":"Event: "+D,C,l,Ut,jt,Z)}p>l&&(C=ae?"error":(n&738197653)===n?"tertiary-light":"primary-light",ae=le?"Promise Resolved":ae?"Cascading Update":5<p-l?"Update Blocked":"Update",le=[],w!=null&&le.push(["Component name",w]),g!=null&&le.push(["Method name",g]),l={start:l,end:p,detail:{devtools:{properties:le,track:Ut,trackGroup:jt,color:C}}},c?c.run(performance.measure.bind(performance,ae,l)):performance.measure(ae,l))}bu=-1.1,pf=0,dR=fR=null,_T=-1.1,Hm=ip,ip=-1.1,lp=Aa()}if((n&4194048)!==0&&(aa=Fb,p=0<=xs&&xs<ws?ws:xs,l=0<=Hi&&Hi<ws?ws:Hi,c=0<=hf&&hf<ws?ws:hf,g=0<=c?c:0<=l?l:Ya,0<=MT?(_l(256),lE(MT,g,n,aa)):OT&4194048,le=c,C=op,D=0<mf,j=pR===AT,g=Ya,c=Fb,w=HM,ae=PM,Dn&&(Ut="Transition",0<l?l>g&&(l=g):l=g,0<p?p>l&&(p=l):p=l,0<le?le>p&&(le=p):le=p,p>le&&C!==null&&(Z=D?"secondary-light":"warning",c?c.run(console.timeStamp.bind(console,D?"Consecutive":"Event: "+C,le,p,Ut,jt,Z)):console.timeStamp(D?"Consecutive":"Event: "+C,le,p,Ut,jt,Z)),l>p&&(c?c.run(console.timeStamp.bind(console,"Action",p,l,Ut,jt,"primary-dark")):console.timeStamp("Action",p,l,Ut,jt,"primary-dark")),g>l&&(p=j?"Promise Resolved":5<g-l?"Update Blocked":"Update",le=[],ae!=null&&le.push(["Component name",ae]),w!=null&&le.push(["Method name",w]),l={start:l,end:g,detail:{devtools:{properties:le,track:Ut,trackGroup:jt,color:"primary-light"}}},c?c.run(performance.measure.bind(performance,p,l)):performance.measure(p,l))),Hi=xs=-1.1,pR=0,MT=-1.1,mf=hf,hf=-1.1,ws=Aa()),(n&62914560)!==0&&(OT&62914560)!==0&&(_l(4194304),Qy(IM,Ya)),(n&2080374784)!==0&&(OT&2080374784)!==0&&(_l(268435456),Qy(VM,Ya)),l=e.timeoutHandle,l!==Tp&&(e.timeoutHandle=Tp,pU(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Ro=0,Yh(),gn=e,_t=l=si(e.current,null),Rt=n,cn=vl,Wl=null,bf=!1,Wm=oe(e,n),DR=!1,Vn=Ms,gp=Sl=NR=Sf=vf=0,Zr=hv=null,YT=!1,(n&8)!==0&&(n|=n&32),c=e.entangledLanes,c!==0)for(e=e.entanglements,c&=n;0<c;)p=31-za(c),g=1<<p,n|=e[p],c&=~g;return Su=n,rh(),e=zM(),1e3<e-jM&&(Te.recentlyCreatedOwnerStacks=0,jM=e),To.discardPendingWarnings(),l}function $l(e,n){ht=null,Te.H=uv,Te.getCurrentStack=null,qi=!1,Tr=null,n===Im||n===jT?(n=Pu(),cn=dv):n===gR?(n=Pu(),cn=$O):cn=n===AR?qR:n!==null&&typeof n=="object"&&typeof n.then=="function"?pv:VT,Wl=n;var l=_t;l===null?(Vn=fv,vd(e,Ka(n,e.current))):l.mode&wt&&fh(l)}function Fg(){var e=Zl.current;return e===null?!0:(Rt&4194048)===Rt?Pi===null:(Rt&62914560)===Rt||(Rt&536870912)!==0?e===Pi:!1}function Xh(){var e=Te.H;return Te.H=uv,e===null?uv:e}function Qg(){var e=Te.A;return Te.A=WB,e}function qc(e){aa===null&&(aa=e._debugTask==null?null:e._debugTask)}function Dc(){Vn=gf,bf||(Rt&4194048)!==Rt&&Zl.current!==null||(Wm=!0),(vf&134217727)===0&&(Sf&134217727)===0||gn===null||hl(gn,Rt,Sl,!1)}function Nc(e,n,l){var c=Pt;Pt|=Ua;var p=Xh(),g=Qg();if(gn!==e||Rt!==n){if(Ni){var w=e.memoizedUpdaters;0<w.size&&(zc(e,Rt),w.clear()),Ve(e,n)}mv=null,xi(e,n)}n=!1,w=Vn;e:do try{if(cn!==vl&&_t!==null){var C=_t,D=Wl;switch(cn){case qR:Yh(),w=IT;break e;case dv:case mp:case yp:case pv:Zl.current===null&&(n=!0);var j=cn;if(cn=vl,Wl=null,jc(e,C,D,j),l&&Wm){w=Ms;break e}break;default:j=cn,cn=vl,Wl=null,jc(e,C,D,j)}}Zg(),w=Vn;break}catch(ae){$l(e,ae)}while(!0);return n&&e.shellSuspendCounter++,cc(),Pt=c,Te.H=p,Te.A=g,_t===null&&(gn=null,Rt=0,rh()),w}function Zg(){for(;_t!==null;)Fh(_t)}function po(e,n){var l=Pt;Pt|=Ua;var c=Xh(),p=Qg();if(gn!==e||Rt!==n){if(Ni){var g=e.memoizedUpdaters;0<g.size&&(zc(e,Rt),g.clear()),Ve(e,n)}mv=null,FT=Ra()+IO,xi(e,n)}else Wm=oe(e,n);e:do try{if(cn!==vl&&_t!==null)t:switch(n=_t,g=Wl,cn){case VT:cn=vl,Wl=null,jc(e,n,g,VT);break;case mp:case yp:if(og(g)){cn=vl,Wl=null,Jg(n);break}n=function(){cn!==mp&&cn!==yp||gn!==e||(cn=GT),br(e)},g.then(n,n);break e;case dv:cn=GT;break e;case $O:cn=OR;break e;case GT:og(g)?(cn=vl,Wl=null,Jg(n)):(cn=vl,Wl=null,jc(e,n,g,GT));break;case OR:var w=null;switch(_t.tag){case 26:w=_t.memoizedState;case 5:case 27:var C=_t;if(w?Mt(w):C.stateNode.complete){cn=vl,Wl=null;var D=C.sibling;if(D!==null)_t=D;else{var j=C.return;j!==null?(_t=j,qd(j)):_t=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}cn=vl,Wl=null,jc(e,n,g,OR);break;case pv:cn=vl,Wl=null,jc(e,n,g,pv);break;case qR:Yh(),Vn=IT;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Te.actQueue!==null?Zg():ta();break}catch(ae){$l(e,ae)}while(!0);return cc(),Te.H=c,Te.A=p,Pt=l,_t!==null?Ms:(gn=null,Rt=0,rh(),Vn)}function ta(){for(;_t!==null&&!Tm();)Fh(_t)}function Fh(e){var n=e.alternate;(e.mode&wt)!==ct?(to(e),n=de(e,wd,n,e,Su),fh(e)):n=de(e,wd,n,e,Su),e.memoizedProps=e.pendingProps,n===null?qd(e):_t=n}function Jg(e){var n=de(e,xa,e);e.memoizedProps=e.pendingProps,n===null?qd(e):_t=n}function xa(e){var n=e.alternate,l=(e.mode&wt)!==ct;switch(l&&to(e),e.tag){case 15:case 0:n=Cg(n,e,e.pendingProps,e.type,void 0,Rt);break;case 11:n=Cg(n,e,e.pendingProps,e.type.render,e.ref,Rt);break;case 5:Yo(e);default:Dg(n,e),e=_t=Wy(e,Su),n=wd(n,e,Su)}return l&&fh(e),n}function jc(e,n,l,c){cc(),Yo(n),Vm=null,rv=0;var p=n.return;try{if(vg(e,p,n,l,Rt)){Vn=fv,vd(e,Ka(l,e.current)),_t=null;return}}catch(g){if(p!==null)throw _t=p,g;Vn=fv,vd(e,Ka(l,e.current)),_t=null;return}n.flags&32768?(Dt||c===VT?e=!0:Wm||(Rt&536870912)!==0?e=!1:(bf=e=!0,(c===mp||c===yp||c===dv||c===pv)&&(c=Zl.current,c!==null&&c.tag===13&&(c.flags|=16384))),Kg(n,e)):qd(n)}function qd(e){var n=e;do{if((n.flags&32768)!==0){Kg(n,bf);return}var l=n.alternate;if(e=n.return,to(n),l=de(n,qg,l,n,Su),(n.mode&wt)!==ct&&td(n),l!==null){_t=l;return}if(n=n.sibling,n!==null){_t=n;return}_t=n=e}while(n!==null);Vn===Ms&&(Vn=LO)}function Kg(e,n){do{var l=EE(e.alternate,e);if(l!==null){l.flags&=32767,_t=l;return}if((e.mode&wt)!==ct){td(e),l=e.actualDuration;for(var c=e.child;c!==null;)l+=c.actualDuration,c=c.sibling;e.actualDuration=l}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!n&&(e=e.sibling,e!==null)){_t=e;return}_t=e=l}while(e!==null);Vn=IT,_t=null}function hn(e,n,l,c,p,g,w,C,D,j,ae,le,Z,be){e.cancelPendingCommit=null;do Dd();while(Da!==Tf);if(To.flushLegacyContextWarning(),To.flushPendingUnsafeLifecycleWarnings(),(Pt&(Ua|Kl))!==Fa)throw Error("Should not already be working.");if(_l(l),j===hp?Fy(Z,be,l,aa):c!==null?jx(Z,be,l,c,n!==null&&n.alternate!==null&&n.alternate.memoizedState.isDehydrated&&(n.flags&256)!==0,aa):Nx(Z,be,l,aa),n!==null){if(l===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),n===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(g=n.lanes|n.childLanes,g|=iR,st(e,l,g,w,C,D),e===gn&&(_t=gn=null,Rt=0),ey=n,wf=e,Ro=l,kR=g,UR=p,QO=c,BR=be,ZO=le,Co=QT,JO=null,n.actualDuration!==0||(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,kc(hs,function(){return Ev=window.event,Co===QT&&(Co=zR),Nd(),null})):(e.callbackNode=null,e.callbackPriority=0),Ts=null,df=Aa(),le!==null&&zx(be,df,le,aa),c=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||c){c=Te.T,Te.T=null,p=Xt.p,Xt.p=da,w=Pt,Pt|=Kl;try{Ux(e,n,l)}finally{Pt=w,Xt.p=p,Te.T=c}}Da=GO,or(),Ri(),Wg()}}function or(){if(Da===GO){Da=Tf;var e=wf,n=ey,l=Ro,c=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||c){c=Te.T,Te.T=null;var p=Xt.p;Xt.p=da;var g=Pt;Pt|=Kl;try{Jm=l,Km=e,$u(),Ad(n,e),Km=Jm=null,l=QR;var w=th(e.containerInfo),C=l.focusedElem,D=l.selectionRange;if(w!==C&&C&&C.ownerDocument&&eE(C.ownerDocument.documentElement,C)){if(D!==null&&Gy(C)){var j=D.start,ae=D.end;if(ae===void 0&&(ae=j),"selectionStart"in C)C.selectionStart=j,C.selectionEnd=Math.min(ae,C.value.length);else{var le=C.ownerDocument||document,Z=le&&le.defaultView||window;if(Z.getSelection){var be=Z.getSelection(),Le=C.textContent.length,Ge=Math.min(D.start,Le),xn=D.end===void 0?Ge:Math.min(D.end,Le);!be.extend&&Ge>xn&&(w=xn,xn=Ge,Ge=w);var zt=WS(C,Ge),Q=WS(C,xn);if(zt&&Q&&(be.rangeCount!==1||be.anchorNode!==zt.node||be.anchorOffset!==zt.offset||be.focusNode!==Q.node||be.focusOffset!==Q.offset)){var K=le.createRange();K.setStart(zt.node,zt.offset),be.removeAllRanges(),Ge>xn?(be.addRange(K),be.extend(Q.node,Q.offset)):(K.setEnd(Q.node,Q.offset),be.addRange(K))}}}}for(le=[],be=C;be=be.parentNode;)be.nodeType===1&&le.push({element:be,left:be.scrollLeft,top:be.scrollTop});for(typeof C.focus=="function"&&C.focus(),C=0;C<le.length;C++){var ne=le[C];ne.element.scrollLeft=ne.left,ne.element.scrollTop=ne.top}}fw=!!FR,QR=FR=null}finally{Pt=g,Xt.p=p,Te.T=c}}e.current=n,Da=YO}}function Ri(){if(Da===YO){Da=Tf;var e=JO;if(e!==null){df=Aa();var n=Es,l=df;!Dn||l<=n||console.timeStamp(e,n,l,Ut,jt,"secondary-light")}e=wf,n=ey,l=Ro;var c=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||c){c=Te.T,Te.T=null;var p=Xt.p;Xt.p=da;var g=Pt;Pt|=Kl;try{Jm=l,Km=e,$u(),Hh(e,n.alternate,n),Km=Jm=null}finally{Pt=g,Xt.p=p,Te.T=c}}e=BR,n=ZO,Es=Aa(),e=n===null?e:df,n=Es,l=Co===jR,c=aa,Ts!==null?iE(e,n,Ts,!1,c):!Dn||n<=e||(c?c.run(console.timeStamp.bind(console,l?"Commit Interrupted View Transition":"Commit",e,n,Ut,jt,l?"error":"secondary-dark")):console.timeStamp(l?"Commit Interrupted View Transition":"Commit",e,n,Ut,jt,l?"error":"secondary-dark")),Da=XO}}function Wg(){if(Da===FO||Da===XO){if(Da===FO){var e=Es;Es=Aa();var n=Es,l=Co===jR;!Dn||n<=e||console.timeStamp(l?"Interrupted View Transition":"Starting Animation",e,n,Ut,jt,l?" error":"secondary-light"),Co!==jR&&(Co=VO)}Da=Tf,wm(),e=wf;var c=ey;n=Ro,l=QO;var p=c.actualDuration!==0||(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0;p?Da=ZT:(Da=Tf,ey=wf=null,eb(e,e.pendingLanes),bp=0,gv=null);var g=e.pendingLanes;if(g===0&&(Ef=null),p||Jh(e),g=$e(n),c=c.stateNode,fa&&typeof fa.onCommitFiberRoot=="function")try{var w=(c.current.flags&128)===128;switch(g){case da:var C=Ob;break;case ka:C=xm;break;case Ga:C=hs;break;case mu:C=Rm;break;default:C=hs}fa.onCommitFiberRoot(ms,c,C,w)}catch(le){Di||(Di=!0,console.error("React instrumentation encountered an error: %o",le))}if(Ni&&e.memoizedUpdaters.clear(),Yg(),l!==null){w=Te.T,C=Xt.p,Xt.p=da,Te.T=null;try{var D=e.onRecoverableError;for(c=0;c<l.length;c++){var j=l[c],ae=qE(j.stack);de(j.source,D,j.value,ae)}}finally{Te.T=w,Xt.p=C}}(Ro&3)!==0&&Dd(),br(e),g=e.pendingLanes,(n&261930)!==0&&(g&42)!==0?(DT=!0,e===LR?yv++:(yv=0,LR=e)):yv=0,p||ou(n,Es),Ci(0)}}function qE(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function eb(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,ed(n)))}function Dd(){return or(),Ri(),Wg(),Nd()}function Nd(){if(Da!==ZT)return!1;var e=wf,n=kR;kR=0;var l=$e(Ro),c=Ga>l?Ga:l;l=Te.T;var p=Xt.p;try{Xt.p=c,Te.T=null;var g=UR;UR=null,c=wf;var w=Ro;if(Da=Tf,ey=wf=null,Ro=0,(Pt&(Ua|Kl))!==Fa)throw Error("Cannot flush passive effects while already rendering.");_l(w),$R=!0,JT=!1;var C=0;if(Ts=null,C=Ra(),Co===VO)Qy(Es,C,YB);else{var D=Es,j=C,ae=Co===zR;!Dn||j<=D||(aa?aa.run(console.timeStamp.bind(console,ae?"Waiting for Paint":"Waiting",D,j,Ut,jt,"secondary-light")):console.timeStamp(ae?"Waiting for Paint":"Waiting",D,j,Ut,jt,"secondary-light"))}D=Pt,Pt|=Kl;var le=c.current;$u(),Vh(le);var Z=c.current;le=BR,$u(),Ig(c,Z,w,g,le),Jh(c),Pt=D;var be=Ra();if(Z=C,le=aa,Ts!==null?iE(Z,be,Ts,!0,le):!Dn||be<=Z||(le?le.run(console.timeStamp.bind(console,"Remaining Effects",Z,be,Ut,jt,"secondary-dark")):console.timeStamp("Remaining Effects",Z,be,Ut,jt,"secondary-dark")),ou(w,be),Ci(0,!1),JT?c===gv?bp++:(bp=0,gv=c):bp=0,JT=$R=!1,fa&&typeof fa.onPostCommitFiberRoot=="function")try{fa.onPostCommitFiberRoot(ms,c)}catch(Ge){Di||(Di=!0,console.error("React instrumentation encountered an error: %o",Ge))}var Le=c.current.stateNode;return Le.effectDuration=0,Le.passiveEffectDuration=0,!0}finally{Xt.p=p,Te.T=l,eb(e,n)}}function ur(e,n,l){n=Ka(l,n),dE(n),n=Ah(e.stateNode,n,2),e=pi(e,n,2),e!==null&&(ee(e,2),br(e))}function vt(e,n,l){if(ty=!1,e.tag===3)ur(e,e,l);else{for(;n!==null;){if(n.tag===3){ur(n,e,l);return}if(n.tag===1){var c=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Ef===null||!Ef.has(c))){e=Ka(l,e),dE(e),l=_h(2),c=pi(n,l,2),c!==null&&(Mh(l,c,n,e),ee(c,2),br(c));return}}n=n.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
174
+
175
+ Error message:
176
+
177
+ %s`,l)}}function Qh(e,n,l){var c=e.pingCache;if(c===null){c=e.pingCache=new tU;var p=new Set;c.set(n,p)}else p=c.get(n),p===void 0&&(p=new Set,c.set(n,p));p.has(l)||(DR=!0,p.add(l),c=gr.bind(null,e,n,l),Ni&&zc(e,l),n.then(c,c))}function gr(e,n,l){var c=e.pingCache;c!==null&&c.delete(n),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,(l&127)!==0?0>bu&&(lp=bu=Aa(),Yb=CT("Promise Resolved"),pf=AT):(l&4194048)!==0&&0>Hi&&(ws=Hi=Aa(),Fb=CT("Promise Resolved"),pR=AT),Xg()&&Te.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
178
+
179
+ When testing, code that resolves suspended data should be wrapped into act(...):
180
+
181
+ act(() => {
182
+ /* finish loading suspended data */
183
+ });
184
+ /* assert on the output */
185
+
186
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),gn===e&&(Rt&l)===l&&(Vn===gf||Vn===PT&&(Rt&62914560)===Rt&&Ra()-XT<PO?(Pt&Ua)===Fa&&xi(e,0):NR|=l,gp===Rt&&(gp=0)),br(e)}function tb(e,n){n===0&&(n=qe()),e=Ha(e,n),e!==null&&(ee(e,n),br(e))}function ho(e){var n=e.memoizedState,l=0;n!==null&&(l=n.retryLane),tb(e,l)}function ls(e,n){var l=0;switch(e.tag){case 31:case 13:var c=e.stateNode,p=e.memoizedState;p!==null&&(l=p.retryLane);break;case 19:c=e.stateNode;break;case 22:c=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}c!==null&&c.delete(n),tb(e,l)}function Hl(e,n,l){if((n.subtreeFlags&67117056)!==0)for(n=n.child;n!==null;){var c=e,p=n,g=p.type===fr;g=l||g,p.tag!==22?p.flags&67108864?g&&de(p,Zh,c,p):Hl(c,p,g):p.memoizedState===null&&(g&&p.flags&8192?de(p,Zh,c,p):p.subtreeFlags&67108864&&de(p,Hl,c,p,g)),n=n.sibling}}function Zh(e,n){yt(!0);try{Ph(n),Gg(n),Pg(e,n.alternate,n,!1),Od(e,n,0,null,!1,0)}finally{yt(!1)}}function Jh(e){var n=!0;e.current.mode&(wr|Eo)||(n=!1),Hl(e,e.current,n)}function ml(e){if((Pt&Ua)===Fa){var n=e.tag;if(n===3||n===1||n===0||n===11||n===14||n===15){if(n=H(e)||"ReactComponent",KT!==null){if(KT.has(n))return;KT.add(n)}else KT=new Set([n]);de(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function zc(e,n){Ni&&e.memoizedUpdaters.forEach(function(l){Ae(e,l,n)})}function kc(e,n){var l=Te.actQueue;return l!==null?(l.push(n),rU):Mb(e,n)}function jd(e){Xg()&&Te.actQueue===null&&de(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
187
+
188
+ When testing, code that causes React state updates should be wrapped into act(...):
189
+
190
+ act(() => {
191
+ /* fire events that update state */
192
+ });
193
+ /* assert on the output */
194
+
195
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,H(e))})}function br(e){e!==ny&&e.next===null&&(ny===null?WT=ny=e:ny=ny.next=e),ew=!0,Te.actQueue!==null?PR||(PR=!0,NE()):HR||(HR=!0,NE())}function Ci(e,n){if(!IR&&ew){IR=!0;do for(var l=!1,c=WT;c!==null;){if(e!==0){var p=c.pendingLanes;if(p===0)var g=0;else{var w=c.suspendedLanes,C=c.pingedLanes;g=(1<<31-za(42|e)+1)-1,g&=p&~(w&~C),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(l=!0,zd(c,g))}else g=Rt,g=ni(c,c===gn?g:0,c.cancelPendingCommit!==null||c.timeoutHandle!==Tp),(g&3)===0||oe(c,g)||(l=!0,zd(c,g));c=c.next}while(l);IR=!1}}function DE(){Ev=window.event,Kh()}function Kh(){ew=PR=HR=!1;var e=0;xf!==0&&lb()&&(e=xf);for(var n=Ra(),l=null,c=WT;c!==null;){var p=c.next,g=Bc(c,n);g===0?(c.next=null,l===null?WT=p:l.next=p,p===null&&(ny=l)):(l=c,(e!==0||(g&3)!==0)&&(ew=!0)),c=p}Da!==Tf&&Da!==ZT||Ci(e),xf!==0&&(xf=0)}function Bc(e,n){for(var l=e.suspendedLanes,c=e.pingedLanes,p=e.expirationTimes,g=e.pendingLanes&-62914561;0<g;){var w=31-za(g),C=1<<w,D=p[w];D===-1?((C&l)===0||(C&c)!==0)&&(p[w]=pe(C,n)):D<=n&&(e.expiredLanes|=C),g&=~C}if(n=gn,l=Rt,l=ni(e,e===n?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Tp),c=e.callbackNode,l===0||e===n&&(cn===mp||cn===yp)||e.cancelPendingCommit!==null)return c!==null&&Wh(c),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||oe(e,l)){if(n=l&-l,n!==e.callbackPriority||Te.actQueue!==null&&c!==VR)Wh(c);else return n;switch($e(l)){case da:case ka:l=xm;break;case Ga:l=hs;break;case mu:l=Rm;break;default:l=hs}return c=nb.bind(null,e),Te.actQueue!==null?(Te.actQueue.push(c),l=VR):l=Mb(l,c),e.callbackPriority=n,e.callbackNode=l,n}return c!==null&&Wh(c),e.callbackPriority=2,e.callbackNode=null,2}function nb(e,n){if(DT=qT=!1,Ev=window.event,Da!==Tf&&Da!==ZT)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Co===QT&&(Co=zR),Dd()&&e.callbackNode!==l)return null;var c=Rt;return c=ni(e,e===gn?c:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Tp),c===0?null:(_E(e,c,n),Bc(e,Ra()),e.callbackNode!=null&&e.callbackNode===l?nb.bind(null,e):null)}function zd(e,n){if(Dd())return null;qT=DT,DT=!1,_E(e,n,!0)}function Wh(e){e!==VR&&e!==null&&Em(e)}function NE(){Te.actQueue!==null&&Te.actQueue.push(function(){return Kh(),null}),hU(function(){(Pt&(Ua|Kl))!==Fa?Mb(Ob,DE):Kh()})}function ab(){if(xf===0){var e=up;e===0&&(e=tf,tf<<=1,(tf&261888)===0&&(tf=256)),xf=e}return xf}function It(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(Ke(e,"action"),Vf(""+e))}function on(e,n){var l=n.ownerDocument.createElement("input");return l.name=n.name,l.value=n.value,e.id&&l.setAttribute("form",e.id),n.parentNode.insertBefore(l,n),e=new FormData(e),l.parentNode.removeChild(l),e}function qt(e,n,l,c,p){if(n==="submit"&&l&&l.stateNode===p){var g=It((p[dr]||null).action),w=c.submitter;w&&(n=(n=w[dr]||null)?It(n.formAction):w.getAttribute("formAction"),n!==null&&(g=n,w=null));var C=new vT("action","action",null,c,p);e.push({event:C,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(xf!==0){var D=w?on(p,w):new FormData(p),j={pending:!0,data:D,method:p.method,action:g};Object.freeze(j),so(l,j,null,D)}}else typeof g=="function"&&(C.preventDefault(),D=w?on(p,w):new FormData(p),j={pending:!0,data:D,method:p.method,action:g},Object.freeze(j),so(l,j,g,D))},currentTarget:p}]})}}function At(e,n,l){e.currentTarget=l;try{n(e)}catch(c){nR(c)}e.currentTarget=null}function en(e,n){n=(n&4)!==0;for(var l=0;l<e.length;l++){var c=e[l];e:{var p=void 0,g=c.event;if(c=c.listeners,n)for(var w=c.length-1;0<=w;w--){var C=c[w],D=C.instance,j=C.currentTarget;if(C=C.listener,D!==p&&g.isPropagationStopped())break e;D!==null?de(D,At,g,C,j):At(g,C,j),p=D}else for(w=0;w<c.length;w++){if(C=c[w],D=C.instance,j=C.currentTarget,C=C.listener,D!==p&&g.isPropagationStopped())break e;D!==null?de(D,At,g,C,j):At(g,C,j),p=D}}}}function it(e,n){GR.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var l=n[ys];l===void 0&&(l=n[ys]=new Set);var c=e+"__bubble";l.has(c)||(em(n,e,2,!1),l.add(c))}function Ai(e,n,l){GR.has(e)&&!n&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var c=0;n&&(c|=4),em(l,e,c,n)}function uu(e){if(!e[tw]){e[tw]=!0,hT.forEach(function(l){l!=="selectionchange"&&(GR.has(l)||Ai(l,!1,e),Ai(l,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[tw]||(n[tw]=!0,Ai("selectionchange",!1,n))}}function em(e,n,l,c){switch(hm(n)){case da:var p=bb;break;case ka:p=ja;break;default:p=vb}l=p.bind(null,n,l,e),p=void 0,!Yx||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(p=!0),c?p!==void 0?e.addEventListener(n,l,{capture:!0,passive:p}):e.addEventListener(n,l,!0):p!==void 0?e.addEventListener(n,l,{passive:p}):e.addEventListener(n,l,!1)}function Pl(e,n,l,c,p){var g=c;if((n&1)===0&&(n&2)===0&&c!==null)e:for(;;){if(c===null)return;var w=c.tag;if(w===3||w===4){var C=c.stateNode.containerInfo;if(C===p)break;if(w===4)for(w=c.return;w!==null;){var D=w.tag;if((D===3||D===4)&&w.stateNode.containerInfo===p)return;w=w.return}for(;C!==null;){if(w=$a(C),w===null)return;if(D=w.tag,D===5||D===6||D===26||D===27){c=g=w;continue e}C=C.parentNode}}c=c.return}Jp(function(){var j=g,ae=Cl(l),le=[];e:{var Z=NM.get(e);if(Z!==void 0){var be=vT,Le=e;switch(e){case"keypress":if(Gf(l)===0)break e;case"keydown":case"keyup":be=vB;break;case"focusin":Le="focus",be=Zx;break;case"focusout":Le="blur",be=Zx;break;case"beforeblur":case"afterblur":be=Zx;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":be=vM;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":be=oB;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":be=TB;break;case MM:case OM:case qM:be=cB;break;case DM:be=xB;break;case"scroll":case"scrollend":be=lB;break;case"wheel":be=CB;break;case"copy":case"cut":case"paste":be=dB;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":be=EM;break;case"toggle":case"beforetoggle":be=_B}var Ge=(n&4)!==0,xn=!Ge&&(e==="scroll"||e==="scrollend"),zt=Ge?Z!==null?Z+"Capture":null:Z;Ge=[];for(var Q=j,K;Q!==null;){var ne=Q;if(K=ne.stateNode,ne=ne.tag,ne!==5&&ne!==26&&ne!==27||K===null||zt===null||(ne=oi(Q,zt),ne!=null&&Ge.push(mn(Q,ne,K))),xn)break;Q=Q.return}0<Ge.length&&(Z=new be(Z,Le,null,l,ae),le.push({event:Z,listeners:Ge}))}}if((n&7)===0){e:{if(Z=e==="mouseover"||e==="pointerover",be=e==="mouseout"||e==="pointerout",Z&&l!==zb&&(Le=l.relatedTarget||l.fromElement)&&($a(Le)||Le[So]))break e;if((be||Z)&&(Z=ae.window===ae?ae:(Z=ae.ownerDocument)?Z.defaultView||Z.parentWindow:window,be?(Le=l.relatedTarget||l.toElement,be=j,Le=Le?$a(Le):null,Le!==null&&(xn=_(Le),Ge=Le.tag,Le!==xn||Ge!==5&&Ge!==27&&Ge!==6)&&(Le=null)):(be=null,Le=j),be!==Le)){if(Ge=vM,ne="onMouseLeave",zt="onMouseEnter",Q="mouse",(e==="pointerout"||e==="pointerover")&&(Ge=EM,ne="onPointerLeave",zt="onPointerEnter",Q="pointer"),xn=be==null?Z:oa(be),K=Le==null?Z:oa(Le),Z=new Ge(ne,Q+"leave",be,l,ae),Z.target=xn,Z.relatedTarget=K,ne=null,$a(ae)===j&&(Ge=new Ge(zt,Q+"enter",Le,l,ae),Ge.target=K,Ge.relatedTarget=xn,ne=Ge),xn=ne,be&&Le)t:{for(Ge=is,zt=be,Q=Le,K=0,ne=zt;ne;ne=Ge(ne))K++;ne=0;for(var Ce=Q;Ce;Ce=Ge(Ce))ne++;for(;0<K-ne;)zt=Ge(zt),K--;for(;0<ne-K;)Q=Ge(Q),ne--;for(;K--;){if(zt===Q||Q!==null&&zt===Q.alternate){Ge=zt;break t}zt=Ge(zt),Q=Ge(Q)}Ge=null}else Ge=null;be!==null&&tm(le,Z,be,Ge,!1),Le!==null&&xn!==null&&tm(le,xn,Le,Ge,!0)}}e:{if(Z=j?oa(j):window,be=Z.nodeName&&Z.nodeName.toLowerCase(),be==="select"||be==="input"&&Z.type==="file")var He=Uo;else if(Py(Z))if(AM)He=Qf;else{He=Iy;var mt=Dx}else be=Z.nodeName,!be||be.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?j&&ii(j.elementType)&&(He=Uo):He=Vy;if(He&&(He=He(e,j))){Xf(le,He,l,ae);break e}mt&&mt(e,Z,j),e==="focusout"&&j&&Z.type==="number"&&j.memoizedProps.value!=null&&Ny(Z,"number",Z.value)}switch(mt=j?oa(j):window,e){case"focusin":(Py(mt)||mt.contentEditable==="true")&&(Nm=mt,Kx=j,Pb=null);break;case"focusout":Pb=Kx=Nm=null;break;case"mousedown":Wx=!0;break;case"contextmenu":case"mouseup":case"dragend":Wx=!1,tE(le,l,ae);break;case"selectionchange":if(DB)break;case"keydown":case"keyup":tE(le,l,ae)}var et;if(Jx)e:{switch(e){case"compositionstart":var Ze="onCompositionStart";break e;case"compositionend":Ze="onCompositionEnd";break e;case"compositionupdate":Ze="onCompositionUpdate";break e}Ze=void 0}else Dm?lc(e,l)&&(Ze="onCompositionEnd"):e==="keydown"&&l.keyCode===TM&&(Ze="onCompositionStart");Ze&&(wM&&l.locale!=="ko"&&(Dm||Ze!=="onCompositionStart"?Ze==="onCompositionEnd"&&Dm&&(et=Ou()):(of=ae,Xx="value"in of?of.value:of.textContent,Dm=!0)),mt=Il(j,Ze),0<mt.length&&(Ze=new SM(Ze,e,null,l,ae),le.push({event:Ze,listeners:mt}),et?Ze.data=et:(et=Wi(l),et!==null&&(Ze.data=et)))),(et=OB?Hy(e,l):Kp(e,l))&&(Ze=Il(j,"onBeforeInput"),0<Ze.length&&(mt=new hB("onBeforeInput","beforeinput",null,l,ae),le.push({event:mt,listeners:Ze}),mt.data=et)),qt(le,e,j,l,ae)}en(le,n)})}function mn(e,n,l){return{instance:e,listener:n,currentTarget:l}}function Il(e,n){for(var l=n+"Capture",c=[];e!==null;){var p=e,g=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||g===null||(p=oi(e,l),p!=null&&c.unshift(mn(e,p,g)),p=oi(e,n),p!=null&&c.push(mn(e,p,g))),e.tag===3)return c;e=e.return}return[]}function is(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function tm(e,n,l,c,p){for(var g=n._reactName,w=[];l!==null&&l!==c;){var C=l,D=C.alternate,j=C.stateNode;if(C=C.tag,D!==null&&D===c)break;C!==5&&C!==26&&C!==27||j===null||(D=j,p?(j=oi(l,g),j!=null&&w.unshift(mn(l,j,D))):p||(j=oi(l,g),j!=null&&w.push(mn(l,j,D)))),l=l.return}w.length!==0&&e.push({event:n,listeners:w})}function sr(e,n){ZS(e,n),e!=="input"&&e!=="textarea"&&e!=="select"||n==null||n.value!==null||gM||(gM=!0,e==="select"&&n.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var l={registrationNameDependencies:ji,possibleRegistrationNames:rf};ii(e)||typeof n.is=="string"||qx(e,n,l),n.contentEditable&&!n.suppressContentEditableWarning&&n.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function kn(e,n,l,c){n!==l&&(l=Vl(l),Vl(n)!==l&&(c[e]=n))}function kd(e,n,l){n.forEach(function(c){l[mo(c)]=c==="style"?su(e):e.getAttribute(c)})}function Bn(e,n){n===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof n)}function nm(e,n){return e=e.namespaceURI===gt||e.namespaceURI===St?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=n,e.innerHTML}function Vl(e){return Ue(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",dt(e)),Nt(e)),(typeof e=="string"?e:""+e).replace(lU,`
196
+ `).replace(iU,"")}function rb(e,n){return n=Vl(n),Vl(e)===n}function Yt(e,n,l,c,p,g){switch(l){case"children":typeof c=="string"?(If(c,n,!1),n==="body"||n==="textarea"&&c===""||Mu(e,c)):(typeof c=="number"||typeof c=="bigint")&&(If(""+c,n,!1),n!=="body"&&Mu(e,""+c));break;case"className":xl(e,"class",c);break;case"tabIndex":xl(e,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":xl(e,l,c);break;case"style":Uy(e,c,g);break;case"data":if(n!=="object"){xl(e,"data",c);break}case"src":case"href":if(c===""&&(n!=="a"||l!=="href")){console.error(l==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',l,l),e.removeAttribute(l);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){e.removeAttribute(l);break}Ke(c,l),c=Vf(""+c),e.setAttribute(l,c);break;case"action":case"formAction":if(c!=null&&(n==="form"?l==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof c=="function"&&(p.encType==null&&p.method==null||rw||(rw=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),p.target==null||aw||(aw=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):n==="input"||n==="button"?l==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):n!=="input"||p.type==="submit"||p.type==="image"||nw?n!=="button"||p.type==null||p.type==="submit"||nw?typeof c=="function"&&(p.name==null||n2||(n2=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),p.formEncType==null&&p.formMethod==null||rw||(rw=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),p.formTarget==null||aw||(aw=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(nw=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(nw=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(l==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof c=="function"){e.setAttribute(l,"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 g=="function"&&(l==="formAction"?(n!=="input"&&Yt(e,n,"name",p.name,p,null),Yt(e,n,"formEncType",p.formEncType,p,null),Yt(e,n,"formMethod",p.formMethod,p,null),Yt(e,n,"formTarget",p.formTarget,p,null)):(Yt(e,n,"encType",p.encType,p,null),Yt(e,n,"method",p.method,p,null),Yt(e,n,"target",p.target,p,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){e.removeAttribute(l);break}Ke(c,l),c=Vf(""+c),e.setAttribute(l,c);break;case"onClick":c!=null&&(typeof c!="function"&&Bn(l,c),e.onclick=ll);break;case"onScroll":c!=null&&(typeof c!="function"&&Bn(l,c),it("scroll",e));break;case"onScrollEnd":c!=null&&(typeof c!="function"&&Bn(l,c),it("scrollend",e));break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(l=c.__html,l!=null){if(p.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=l}}break;case"multiple":e.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":e.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){e.removeAttribute("xlink:href");break}Ke(c,l),l=Vf(""+c),e.setAttributeNS(vp,"xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?(Ke(c,l),e.setAttribute(l,""+c)):e.removeAttribute(l);break;case"inert":c!==""||lw[l]||(lw[l]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",l));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":c&&typeof c!="function"&&typeof c!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":c===!0?e.setAttribute(l,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?(Ke(c,l),e.setAttribute(l,c)):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?(Ke(c,l),e.setAttribute(l,c)):e.removeAttribute(l);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?e.removeAttribute(l):(Ke(c,l),e.setAttribute(l,c));break;case"popover":it("beforetoggle",e),it("toggle",e),rl(e,"popover",c);break;case"xlinkActuate":ai(e,vp,"xlink:actuate",c);break;case"xlinkArcrole":ai(e,vp,"xlink:arcrole",c);break;case"xlinkRole":ai(e,vp,"xlink:role",c);break;case"xlinkShow":ai(e,vp,"xlink:show",c);break;case"xlinkTitle":ai(e,vp,"xlink:title",c);break;case"xlinkType":ai(e,vp,"xlink:type",c);break;case"xmlBase":ai(e,YR,"xml:base",c);break;case"xmlLang":ai(e,YR,"xml:lang",c);break;case"xmlSpace":ai(e,YR,"xml:space",c);break;case"is":g!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),rl(e,"is",c);break;case"innerText":case"textContent":break;case"popoverTarget":a2||c==null||typeof c!="object"||(a2=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",c));default:!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N"?(l=FS(l),rl(e,l,c)):ji.hasOwnProperty(l)&&c!=null&&typeof c!="function"&&Bn(l,c)}}function Uc(e,n,l,c,p,g){switch(l){case"style":Uy(e,c,g);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(l=c.__html,l!=null){if(p.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=l}}break;case"children":typeof c=="string"?Mu(e,c):(typeof c=="number"||typeof c=="bigint")&&Mu(e,""+c);break;case"onScroll":c!=null&&(typeof c!="function"&&Bn(l,c),it("scroll",e));break;case"onScrollEnd":c!=null&&(typeof c!="function"&&Bn(l,c),it("scrollend",e));break;case"onClick":c!=null&&(typeof c!="function"&&Bn(l,c),e.onclick=ll);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(ji.hasOwnProperty(l))c!=null&&typeof c!="function"&&Bn(l,c);else e:{if(l[0]==="o"&&l[1]==="n"&&(p=l.endsWith("Capture"),n=l.slice(2,p?l.length-7:void 0),g=e[dr]||null,g=g!=null?g[l]:null,typeof g=="function"&&e.removeEventListener(n,g,p),typeof c=="function")){typeof g!="function"&&g!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(n,c,p);break e}l in e?e[l]=c:c===!0?e.setAttribute(l,""):rl(e,l,c)}}}function On(e,n,l){switch(sr(n,l),n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":it("error",e),it("load",e);var c=!1,p=!1,g;for(g in l)if(l.hasOwnProperty(g)){var w=l[g];if(w!=null)switch(g){case"src":c=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Yt(e,n,g,w,l,null)}}p&&Yt(e,n,"srcSet",l.srcSet,l,null),c&&Yt(e,n,"src",l.src,l,null);return;case"input":ze("input",l),it("invalid",e);var C=g=w=p=null,D=null,j=null;for(c in l)if(l.hasOwnProperty(c)){var ae=l[c];if(ae!=null)switch(c){case"name":p=ae;break;case"type":w=ae;break;case"checked":D=ae;break;case"defaultChecked":j=ae;break;case"value":g=ae;break;case"defaultValue":C=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Yt(e,n,c,ae,l,null)}}Ja(e,l),Ip(e,g,C,D,j,w,p,!1);return;case"select":ze("select",l),it("invalid",e),c=w=g=null;for(p in l)if(l.hasOwnProperty(p)&&(C=l[p],C!=null))switch(p){case"value":g=C;break;case"defaultValue":w=C;break;case"multiple":c=C;default:Yt(e,n,p,C,l,null)}Vp(e,l),n=g,l=w,e.multiple=!!c,n!=null?ri(e,!!c,n,!1):l!=null&&ri(e,!!c,l,!0);return;case"textarea":ze("textarea",l),it("invalid",e),g=p=c=null;for(w in l)if(l.hasOwnProperty(w)&&(C=l[w],C!=null))switch(w){case"value":c=C;break;case"defaultValue":p=C;break;case"children":g=C;break;case"dangerouslySetInnerHTML":if(C!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Yt(e,n,w,C,l,null)}Ru(e,l),Ws(e,c,p,g);return;case"option":XS(e,l);for(D in l)if(l.hasOwnProperty(D)&&(c=l[D],c!=null))switch(D){case"selected":e.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:Yt(e,n,D,c,l,null)}return;case"dialog":it("beforetoggle",e),it("toggle",e),it("cancel",e),it("close",e);break;case"iframe":case"object":it("load",e);break;case"video":case"audio":for(c=0;c<bv.length;c++)it(bv[c],e);break;case"image":it("error",e),it("load",e);break;case"details":it("toggle",e);break;case"embed":case"source":case"link":it("error",e),it("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(j in l)if(l.hasOwnProperty(j)&&(c=l[j],c!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Yt(e,n,j,c,l,null)}return;default:if(ii(n)){for(ae in l)l.hasOwnProperty(ae)&&(c=l[ae],c!==void 0&&Uc(e,n,ae,c,l,void 0));return}}for(C in l)l.hasOwnProperty(C)&&(c=l[C],c!=null&&Yt(e,n,C,c,l,null))}function ca(e,n,l,c){switch(sr(n,c),n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,g=null,w=null,C=null,D=null,j=null,ae=null;for(be in l){var le=l[be];if(l.hasOwnProperty(be)&&le!=null)switch(be){case"checked":break;case"value":break;case"defaultValue":D=le;default:c.hasOwnProperty(be)||Yt(e,n,be,null,c,le)}}for(var Z in c){var be=c[Z];if(le=l[Z],c.hasOwnProperty(Z)&&(be!=null||le!=null))switch(Z){case"type":g=be;break;case"name":p=be;break;case"checked":j=be;break;case"defaultChecked":ae=be;break;case"value":w=be;break;case"defaultValue":C=be;break;case"children":case"dangerouslySetInnerHTML":if(be!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:be!==le&&Yt(e,n,Z,be,c,le)}}n=l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null,c=c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null,n||!c||t2||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),t2=!0),!n||c||e2||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),e2=!0),zo(e,w,C,D,j,ae,g,p);return;case"select":be=w=C=Z=null;for(g in l)if(D=l[g],l.hasOwnProperty(g)&&D!=null)switch(g){case"value":break;case"multiple":be=D;default:c.hasOwnProperty(g)||Yt(e,n,g,null,c,D)}for(p in c)if(g=c[p],D=l[p],c.hasOwnProperty(p)&&(g!=null||D!=null))switch(p){case"value":Z=g;break;case"defaultValue":C=g;break;case"multiple":w=g;default:g!==D&&Yt(e,n,p,g,c,D)}c=C,n=w,l=be,Z!=null?ri(e,!!n,Z,!1):!!l!=!!n&&(c!=null?ri(e,!!n,c,!0):ri(e,!!n,n?[]:"",!1));return;case"textarea":be=Z=null;for(C in l)if(p=l[C],l.hasOwnProperty(C)&&p!=null&&!c.hasOwnProperty(C))switch(C){case"value":break;case"children":break;default:Yt(e,n,C,null,c,p)}for(w in c)if(p=c[w],g=l[w],c.hasOwnProperty(w)&&(p!=null||g!=null))switch(w){case"value":Z=p;break;case"defaultValue":be=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:p!==g&&Yt(e,n,w,p,c,g)}Cu(e,Z,be);return;case"option":for(var Le in l)if(Z=l[Le],l.hasOwnProperty(Le)&&Z!=null&&!c.hasOwnProperty(Le))switch(Le){case"selected":e.selected=!1;break;default:Yt(e,n,Le,null,c,Z)}for(D in c)if(Z=c[D],be=l[D],c.hasOwnProperty(D)&&Z!==be&&(Z!=null||be!=null))switch(D){case"selected":e.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:Yt(e,n,D,Z,c,be)}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 l)Z=l[Ge],l.hasOwnProperty(Ge)&&Z!=null&&!c.hasOwnProperty(Ge)&&Yt(e,n,Ge,null,c,Z);for(j in c)if(Z=c[j],be=l[j],c.hasOwnProperty(j)&&Z!==be&&(Z!=null||be!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Yt(e,n,j,Z,c,be)}return;default:if(ii(n)){for(var xn in l)Z=l[xn],l.hasOwnProperty(xn)&&Z!==void 0&&!c.hasOwnProperty(xn)&&Uc(e,n,xn,void 0,c,Z);for(ae in c)Z=c[ae],be=l[ae],!c.hasOwnProperty(ae)||Z===be||Z===void 0&&be===void 0||Uc(e,n,ae,Z,c,be);return}}for(var zt in l)Z=l[zt],l.hasOwnProperty(zt)&&Z!=null&&!c.hasOwnProperty(zt)&&Yt(e,n,zt,null,c,Z);for(le in c)Z=c[le],be=l[le],!c.hasOwnProperty(le)||Z===be||Z==null&&be==null||Yt(e,n,le,Z,c,be)}function mo(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function su(e){var n={};e=e.style;for(var l=0;l<e.length;l++){var c=e[l];n[c]=e.getPropertyValue(c)}return n}function _i(e,n,l){if(n!=null&&typeof n!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var c,p=c="",g;for(g in n)if(n.hasOwnProperty(g)){var w=n[g];w!=null&&typeof w!="boolean"&&w!==""&&(g.indexOf("--")===0?(Tn(w,g),c+=p+g+":"+(""+w).trim()):typeof w!="number"||w===0||Qe.has(g)?(Tn(w,g),c+=p+g.replace(we,"-$1").toLowerCase().replace(Fe,"-ms-")+":"+(""+w).trim()):c+=p+g.replace(we,"-$1").toLowerCase().replace(Fe,"-ms-")+":"+w+"px",p=";")}c=c||null,n=e.getAttribute("style"),n!==c&&(c=Vl(c),Vl(n)!==c&&(l.style=su(e)))}}function vr(e,n,l,c,p,g){if(p.delete(l),e=e.getAttribute(l),e===null)switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":return}else if(c!=null)switch(typeof c){case"function":case"symbol":case"boolean":break;default:if(Ke(c,n),e===""+c)return}kn(n,e,c,g)}function am(e,n,l,c,p,g){if(p.delete(l),e=e.getAttribute(l),e===null){switch(typeof c){case"function":case"symbol":return}if(!c)return}else switch(typeof c){case"function":case"symbol":break;default:if(c)return}kn(n,e,c,g)}function rm(e,n,l,c,p,g){if(p.delete(l),e=e.getAttribute(l),e===null)switch(typeof c){case"undefined":case"function":case"symbol":return}else if(c!=null)switch(typeof c){case"function":case"symbol":break;default:if(Ke(c,l),e===""+c)return}kn(n,e,c,g)}function Lc(e,n,l,c,p,g){if(p.delete(l),e=e.getAttribute(l),e===null)switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(c))return}else if(c!=null)switch(typeof c){case"function":case"symbol":case"boolean":break;default:if(!isNaN(c)&&(Ke(c,n),e===""+c))return}kn(n,e,c,g)}function Bd(e,n,l,c,p,g){if(p.delete(l),e=e.getAttribute(l),e===null)switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":return}else if(c!=null)switch(typeof c){case"function":case"symbol":case"boolean":break;default:if(Ke(c,n),l=Vf(""+c),e===l)return}kn(n,e,c,g)}function Sr(e,n,l,c){for(var p={},g=new Set,w=e.attributes,C=0;C<w.length;C++)switch(w[C].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:g.add(w[C].name)}if(ii(n)){for(var D in l)if(l.hasOwnProperty(D)){var j=l[D];if(j!=null){if(ji.hasOwnProperty(D))typeof j!="function"&&Bn(D,j);else if(l.suppressHydrationWarning!==!0)switch(D){case"children":typeof j!="string"&&typeof j!="number"||kn("children",e.textContent,j,p);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":w=e.innerHTML,j=j?j.__html:void 0,j!=null&&(j=nm(e,j),kn(D,w,j,p));continue;case"style":g.delete(D),_i(e,j,p);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":g.delete(D.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",D);continue;case"className":g.delete("class"),w=al(e,"class",j),kn("className",w,j,p);continue;default:c.context===Os&&n!=="svg"&&n!=="math"?g.delete(D.toLowerCase()):g.delete(D),w=al(e,D,j),kn(D,w,j,p)}}}}else for(j in l)if(l.hasOwnProperty(j)&&(D=l[j],D!=null)){if(ji.hasOwnProperty(j))typeof D!="function"&&Bn(j,D);else if(l.suppressHydrationWarning!==!0)switch(j){case"children":typeof D!="string"&&typeof D!="number"||kn("children",e.textContent,D,p);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":w=e.innerHTML,D=D?D.__html:void 0,D!=null&&(D=nm(e,D),w!==D&&(p[j]={__html:w}));continue;case"className":vr(e,j,"class",D,g,p);continue;case"tabIndex":vr(e,j,"tabindex",D,g,p);continue;case"style":g.delete(j),_i(e,D,p);continue;case"multiple":g.delete(j),kn(j,e.multiple,D,p);continue;case"muted":g.delete(j),kn(j,e.muted,D,p);continue;case"autoFocus":g.delete("autofocus"),kn(j,e.autofocus,D,p);continue;case"data":if(n!=="object"){g.delete(j),w=e.getAttribute("data"),kn(j,w,D,p);continue}case"src":case"href":if(!(D!==""||n==="a"&&j==="href"||n==="object"&&j==="data")){console.error(j==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',j,j);continue}Bd(e,j,j,D,g,p);continue;case"action":case"formAction":if(w=e.getAttribute(j),typeof D=="function"){g.delete(j.toLowerCase()),j==="formAction"?(g.delete("name"),g.delete("formenctype"),g.delete("formmethod"),g.delete("formtarget")):(g.delete("enctype"),g.delete("method"),g.delete("target"));continue}else if(w===oU){g.delete(j.toLowerCase()),kn(j,"function",D,p);continue}Bd(e,j,j.toLowerCase(),D,g,p);continue;case"xlinkHref":Bd(e,j,"xlink:href",D,g,p);continue;case"contentEditable":rm(e,j,"contenteditable",D,g,p);continue;case"spellCheck":rm(e,j,"spellcheck",D,g,p);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":rm(e,j,j,D,g,p);continue;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":am(e,j,j.toLowerCase(),D,g,p);continue;case"capture":case"download":e:{C=e;var ae=w=j,le=p;if(g.delete(ae),C=C.getAttribute(ae),C===null)switch(typeof D){case"undefined":case"function":case"symbol":break e;default:if(D===!1)break e}else if(D!=null)switch(typeof D){case"function":case"symbol":break;case"boolean":if(D===!0&&C==="")break e;break;default:if(Ke(D,w),C===""+D)break e}kn(w,C,D,le)}continue;case"cols":case"rows":case"size":case"span":e:{if(C=e,ae=w=j,le=p,g.delete(ae),C=C.getAttribute(ae),C===null)switch(typeof D){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(D)||1>D)break e}else if(D!=null)switch(typeof D){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(D)||1>D)&&(Ke(D,w),C===""+D))break e}kn(w,C,D,le)}continue;case"rowSpan":Lc(e,j,"rowspan",D,g,p);continue;case"start":Lc(e,j,j,D,g,p);continue;case"xHeight":vr(e,j,"x-height",D,g,p);continue;case"xlinkActuate":vr(e,j,"xlink:actuate",D,g,p);continue;case"xlinkArcrole":vr(e,j,"xlink:arcrole",D,g,p);continue;case"xlinkRole":vr(e,j,"xlink:role",D,g,p);continue;case"xlinkShow":vr(e,j,"xlink:show",D,g,p);continue;case"xlinkTitle":vr(e,j,"xlink:title",D,g,p);continue;case"xlinkType":vr(e,j,"xlink:type",D,g,p);continue;case"xmlBase":vr(e,j,"xml:base",D,g,p);continue;case"xmlLang":vr(e,j,"xml:lang",D,g,p);continue;case"xmlSpace":vr(e,j,"xml:space",D,g,p);continue;case"inert":D!==""||lw[j]||(lw[j]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",j)),am(e,j,j,D,g,p);continue;default:if(!(2<j.length)||j[0]!=="o"&&j[0]!=="O"||j[1]!=="n"&&j[1]!=="N"){C=FS(j),w=!1,c.context===Os&&n!=="svg"&&n!=="math"?g.delete(C.toLowerCase()):(ae=j.toLowerCase(),ae=Fl.hasOwnProperty(ae)&&Fl[ae]||null,ae!==null&&ae!==j&&(w=!0,g.delete(ae)),g.delete(C));e:if(ae=e,le=C,C=D,wl(le))if(ae.hasAttribute(le))ae=ae.getAttribute(le),Ke(C,le),C=ae===""+C?C:ae;else{switch(typeof C){case"function":case"symbol":break e;case"boolean":if(ae=le.toLowerCase().slice(0,5),ae!=="data-"&&ae!=="aria-")break e}C=C===void 0?void 0:null}else C=void 0;w||kn(j,C,D,p)}}}return 0<g.size&&l.suppressHydrationWarning!==!0&&kd(e,g,p),Object.keys(p).length===0?null:p}function jE(e,n){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+n+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+n+" "+e[e.length-1]}}function cr(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function zE(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,l=performance.getEntriesByType("resource"),c=0;c<l.length;c++){var p=l[c],g=p.transferSize,w=p.initiatorType,C=p.duration;if(g&&C&&cr(w)){for(w=0,C=p.responseEnd,c+=1;c<l.length;c++){var D=l[c],j=D.startTime;if(j>C)break;var ae=D.transferSize,le=D.initiatorType;ae&&cr(le)&&(D=D.responseEnd,w+=ae*(D<C?1:(C-j)/(D-j)))}if(--c,n+=8*(g+w)/(p.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}function Ud(e){return e.nodeType===9?e:e.ownerDocument}function kE(e){switch(e){case St:return ry;case gt:return ow;default:return Os}}function yo(e,n){if(e===Os)switch(n){case"svg":return ry;case"math":return ow;default:return Os}return e===ry&&n==="foreignObject"?Os:e}function $c(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}function lb(){var e=window.event;return e&&e.type==="popstate"?e===ZR?!1:(ZR=e,!0):(ZR=null,!1)}function Mi(){var e=window.event;return e&&e!==Ev?e.type:null}function Hc(){var e=window.event;return e&&e!==Ev?e.timeStamp:-1.1}function BE(e){setTimeout(function(){throw e})}function UE(e,n,l){switch(n){case"button":case"input":case"select":case"textarea":l.autoFocus&&e.focus();break;case"img":l.src?e.src=l.src:l.srcSet&&(e.srcset=l.srcSet)}}function LE(){}function lm(e,n,l,c){ca(e,n,l,c),e[dr]=c}function im(e){Mu(e,"")}function Lx(e,n,l){e.nodeValue=l}function $E(e){if(!e.__reactWarnedAboutChildrenConflict){var n=e[dr]||null;if(n!==null){var l=An(e);l!==null&&(typeof n.children=="string"||typeof n.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,de(l,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):n.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,de(l,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function cu(e){return e==="head"}function HE(e,n){e.removeChild(n)}function PE(e,n){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(n)}function os(e,n){var l=n,c=0;do{var p=l.nextSibling;if(e.removeChild(l),p&&p.nodeType===8)if(l=p.data,l===Sv||l===iw){if(c===0){e.removeChild(p),fs(n);return}c--}else if(l===vv||l===Rf||l===Ep||l===ay||l===Sp)c++;else if(l===sU)bo(e.ownerDocument.documentElement);else if(l===fU){l=e.ownerDocument.head,bo(l);for(var g=l.firstChild;g;){var w=g.nextSibling,C=g.nodeName;g[af]||C==="SCRIPT"||C==="STYLE"||C==="LINK"&&g.rel.toLowerCase()==="stylesheet"||l.removeChild(g),g=w}}else l===cU&&bo(e.ownerDocument.body);l=p}while(l);fs(n)}function Ld(e,n){var l=e;e=0;do{var c=l.nextSibling;if(l.nodeType===1?n?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(n?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),c&&c.nodeType===8)if(l=c.data,l===Sv){if(e===0)break;e--}else l!==vv&&l!==Rf&&l!==Ep&&l!==ay||e++;l=c}while(l)}function IE(e){Ld(e,!0)}function VE(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function GE(e){e.nodeValue=""}function YE(e){Ld(e,!1)}function XE(e,n){n=n[dU],n=n!=null&&n.hasOwnProperty("display")?n.display:null,e.style.display=n==null||typeof n=="boolean"?"":(""+n).trim()}function FE(e,n){e.nodeValue=n}function Pc(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var l=n;switch(n=n.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Pc(l),nl(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function QE(e,n,l,c){for(;e.nodeType===1;){var p=l;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!c&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(c){if(!e[af])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(g=e.getAttribute("rel"),g==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(g!==p.rel||e.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||e.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||e.getAttribute("title")!==(p.title==null?null:p.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(g=e.getAttribute("src"),(g!==(p.src==null?null:p.src)||e.getAttribute("type")!==(p.type==null?null:p.type)||e.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&g&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){Ke(p.name,"name");var g=p.name==null?null:""+p.name;if(p.type==="hidden"&&e.getAttribute("name")===g)return e}else return e;if(e=Pr(e.nextSibling),e===null)break}return null}function ZE(e,n,l){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Pr(e.nextSibling),e===null))return null;return e}function tn(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Pr(e.nextSibling),e===null))return null;return e}function $d(e){return e.data===Rf||e.data===Ep}function ib(e){return e.data===ay||e.data===Rf&&e.ownerDocument.readyState!==l2}function JE(e,n){var l=e.ownerDocument;if(e.data===Ep)e._reactRetry=n;else if(e.data!==Rf||l.readyState!==l2)n();else{var c=function(){n(),l.removeEventListener("DOMContentLoaded",c)};l.addEventListener("DOMContentLoaded",c),e._reactRetry=c}}function Pr(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===vv||n===ay||n===Rf||n===Ep||n===Sp||n===XR||n===r2)break;if(n===Sv||n===iw)return null}}return e}function KE(e){if(e.nodeType===1){for(var n=e.nodeName.toLowerCase(),l={},c=e.attributes,p=0;p<c.length;p++){var g=c[p];l[mo(g.name)]=g.name.toLowerCase()==="style"?su(e):g.value}return{type:n,props:l}}return e.nodeType===8?e.data===Sp?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function WE(e,n,l){return l===null||l[uU]!==!0?(e.nodeValue===n?e=null:(n=Vl(n),e=Vl(e.nodeValue)===n?null:e.nodeValue),e):null}function Ic(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l===Sv||l===iw){if(n===0)return Pr(e.nextSibling);n--}else l!==vv&&l!==ay&&l!==Rf&&l!==Ep&&l!==Sp||n++}e=e.nextSibling}return null}function us(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l===vv||l===ay||l===Rf||l===Ep||l===Sp){if(n===0)return e;n--}else l!==Sv&&l!==iw||n++}e=e.previousSibling}return null}function ob(e){fs(e)}function om(e){fs(e)}function ub(e){fs(e)}function go(e,n,l,c,p){switch(p&&Pf(e,c.ancestorInfo),n=Ud(l),e){case"html":if(e=n.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=n.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=n.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function Oi(e,n,l,c){if(!l[So]&&An(l)){var p=l.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",p,p,p)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(p=l.attributes;p.length;)l.removeAttributeNode(p[0]);On(l,e,n),l[qn]=c,l[dr]=n}function bo(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);nl(e)}function um(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function sb(e,n,l){var c=ly;if(c&&typeof n=="string"&&n){var p=rn(n);p='link[rel="'+e+'"][href="'+p+'"]',typeof l=="string"&&(p+='[crossorigin="'+l+'"]'),f2.has(p)||(f2.add(p),e={rel:e,crossOrigin:l,href:n},c.querySelector(p)===null&&(n=c.createElement("link"),On(n,"link",e),$t(n),c.head.appendChild(n)))}}function cb(e,n,l,c){var p=(p=Ir.current)?um(p):null;if(!p)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(l=ss(l.href),n=ga(p).hoistableStyles,c=n.get(l),c||(c={type:"style",instance:null,count:0,state:null},n.set(l,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=ss(l.href);var g=ga(p).hoistableStyles,w=g.get(e);if(!w&&(p=p.ownerDocument||p,w={type:"stylesheet",instance:null,count:0,state:{loading:wp,preload:null}},g.set(e,w),(g=p.querySelector(Pd(e)))&&!g._p&&(w.instance=g,w.state.loading=Tv|Gi),!Yi.has(e))){var C={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy};Yi.set(e,C),g||eT(p,e,C,w.state)}if(n&&c===null)throw l=`
197
+
198
+ - `+Hd(n)+`
199
+ + `+Hd(l),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+l);return w}if(n&&c!==null)throw l=`
200
+
201
+ - `+Hd(n)+`
202
+ + `+Hd(l),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+l);return null;case"script":return n=l.async,l=l.src,typeof l=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(l=cs(l),n=ga(p).hoistableScripts,c=n.get(l),c||(c={type:"script",instance:null,count:0,state:null},n.set(l,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function Hd(e){var n=0,l="<link";return typeof e.rel=="string"?(n++,l+=' rel="'+e.rel+'"'):Vr.call(e,"rel")&&(n++,l+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(n++,l+=' href="'+e.href+'"'):Vr.call(e,"href")&&(n++,l+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(n++,l+=' precedence="'+e.precedence+'"'):Vr.call(e,"precedence")&&(n++,l+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>n&&(l+=" ..."),l+" />"}function ss(e){return'href="'+rn(e)+'"'}function Pd(e){return'link[rel="stylesheet"]['+e+"]"}function sm(e){return Tt({},e,{"data-precedence":e.precedence,precedence:null})}function eT(e,n,l,c){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?c.loading=Tv:(n=e.createElement("link"),c.preload=n,n.addEventListener("load",function(){return c.loading|=Tv}),n.addEventListener("error",function(){return c.loading|=s2}),On(n,"link",l),$t(n),e.head.appendChild(n))}function cs(e){return'[src="'+rn(e)+'"]'}function Id(e){return"script[async]"+e}function cm(e,n,l){if(n.count++,n.instance===null)switch(n.type){case"style":var c=e.querySelector('style[data-href~="'+rn(l.href)+'"]');if(c)return n.instance=c,$t(c),c;var p=Tt({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return c=(e.ownerDocument||e).createElement("style"),$t(c),On(c,"style",p),Vc(c,l.precedence,e),n.instance=c;case"stylesheet":p=ss(l.href);var g=e.querySelector(Pd(p));if(g)return n.state.loading|=Gi,n.instance=g,$t(g),g;c=sm(l),(p=Yi.get(p))&&fb(c,p),g=(e.ownerDocument||e).createElement("link"),$t(g);var w=g;return w._p=new Promise(function(C,D){w.onload=C,w.onerror=D}),On(g,"link",c),n.state.loading|=Gi,Vc(g,l.precedence,e),n.instance=g;case"script":return g=cs(l.src),(p=e.querySelector(Id(g)))?(n.instance=p,$t(p),p):(c=l,(p=Yi.get(g))&&(c=Tt({},l),db(c,p)),e=e.ownerDocument||e,p=e.createElement("script"),$t(p),On(p,"link",c),e.head.appendChild(p),n.instance=p);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+n.type+'". this is a bug in React.')}else n.type==="stylesheet"&&(n.state.loading&Gi)===wp&&(c=n.instance,n.state.loading|=Gi,Vc(c,l.precedence,e));return n.instance}function Vc(e,n,l){for(var c=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=c.length?c[c.length-1]:null,g=p,w=0;w<c.length;w++){var C=c[w];if(C.dataset.precedence===n)g=C;else if(g!==p)break}g?g.parentNode.insertBefore(e,g.nextSibling):(n=l.nodeType===9?l.head:l,n.insertBefore(e,n.firstChild))}function fb(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function db(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}function Gc(e,n,l){if(uw===null){var c=new Map,p=uw=new Map;p.set(l,c)}else p=uw,c=p.get(l),c||(c=new Map,p.set(l,c));if(c.has(e))return c;for(c.set(e,null),l=l.getElementsByTagName(e),p=0;p<l.length;p++){var g=l[p];if(!(g[af]||g[qn]||e==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!==St){var w=g.getAttribute(n)||"";w=e+w;var C=c.get(w);C?C.push(g):c.set(w,[g])}}return c}function tT(e,n,l){e=e.ownerDocument||e,e.head.insertBefore(l,n==="title"?e.querySelector("head > title"):null)}function nT(e,n,l){var c=!l.ancestorInfo.containerTagInScope;if(l.context===ry||n.itemProp!=null)return!c||n.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href===""){c&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError){if(n.rel==="stylesheet"&&typeof n.precedence=="string"){e=n.href;var p=n.onError,g=n.disabled;l=[],n.onLoad&&l.push("`onLoad`"),p&&l.push("`onError`"),g!=null&&l.push("`disabled`"),p=jE(l,"and"),p+=l.length===1?" prop":" props",g=l.length===1?"an "+p:"the "+p,l.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,g,p)}c&&(typeof n.rel!="string"||typeof n.href!="string"||n.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(n.onError||n.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(n.rel){case"stylesheet":return e=n.precedence,n=n.disabled,typeof e!="string"&&c&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&n==null;default:return!0}case"script":if(e=n.async&&typeof n.async!="function"&&typeof n.async!="symbol",!e||n.onLoad||n.onError||!n.src||typeof n.src!="string"){c&&(e?n.onLoad||n.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":c&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function Mt(e){return!(e.type==="stylesheet"&&(e.state.loading&c2)===wp)}function pb(e,n,l,c){if(l.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(l.state.loading&Gi)===wp){if(l.instance===null){var p=ss(c.href),g=n.querySelector(Pd(p));if(g){n=g._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Yc.bind(e),n.then(e,e)),l.state.loading|=Gi,l.instance=g,$t(g);return}g=n.ownerDocument||n,c=sm(c),(p=Yi.get(p))&&fb(c,p),g=g.createElement("link"),$t(g);var w=g;w._p=new Promise(function(C,D){w.onload=C,w.onerror=D}),On(g,"link",c),l.instance=g}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,n),(n=l.state.preload)&&(l.state.loading&c2)===wp&&(e.count++,l=Yc.bind(e),n.addEventListener("load",l),n.addEventListener("error",l))}}function fm(e,n){return e.stylesheets&&e.count===0&&Vd(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var c=setTimeout(function(){if(e.stylesheets&&Vd(e,e.stylesheets),e.unsuspend){var g=e.unsuspend;e.unsuspend=null,g()}},mU+n);0<e.imgBytes&&KR===0&&(KR=125*zE()*gU);var p=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Vd(e,e.stylesheets),e.unsuspend)){var g=e.unsuspend;e.unsuspend=null,g()}},(e.imgBytes>KR?50:yU)+n);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(c),clearTimeout(p)}}:null}function Yc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Vd(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,sw=new Map,n.forEach(hb,e),sw=null,Yc.call(e))}function hb(e,n){if(!(n.state.loading&Gi)){var l=sw.get(e);if(l)var c=l.get(WR);else{l=new Map,sw.set(e,l);for(var p=e.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<p.length;g++){var w=p[g];(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")&&(l.set(w.dataset.precedence,w),c=w)}c&&l.set(WR,c)}p=n.instance,w=p.getAttribute("data-precedence"),g=l.get(w)||c,g===c&&l.set(WR,p),l.set(w,p),this.count++,c=Yc.bind(this),p.addEventListener("load",c),p.addEventListener("error",c),g?g.parentNode.insertBefore(p,g.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(p,e.firstChild)),n.state.loading|=Gi}}function Gd(e,n,l,c,p,g,w,C,D){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Tp,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Be(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Be(0),this.hiddenUpdates=Be(null),this.identifierPrefix=c,this.onUncaughtError=p,this.onCaughtError=g,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=D,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],n=0;31>n;n++)e.push(new Set);this._debugRootType=l?"hydrateRoot()":"createRoot()"}function Yd(e,n,l,c,p,g,w,C,D,j,ae,le){return e=new Gd(e,n,l,w,D,j,ae,le,C),n=HB,g===!0&&(n|=wr|Eo),n|=wt,g=R(3,null,null,n),e.current=g,g.stateNode=e,n=ch(),Lu(n),e.pooledCache=n,Lu(n),g.memoizedState={element:c,isDehydrated:l,cache:n},Ot(g),e}function aT(e){return e?(e=cf,e):cf}function dm(e,n,l,c,p,g){if(fa&&typeof fa.onScheduleFiberRoot=="function")try{fa.onScheduleFiberRoot(ms,c,l)}catch(w){Di||(Di=!0,console.error("React instrumentation encountered an error: %o",w))}p=aT(p),c.context===null?c.context=p:c.pendingContext=p,qi&&Tr!==null&&!m2&&(m2=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
203
+
204
+ Check the render method of %s.`,H(Tr)||"Unknown")),c=ua(n),c.payload={element:l},g=g===void 0?null:g,g!==null&&(typeof g!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",g),c.callback=g),l=pi(e,c,n),l!==null&&(ci(n,"root.render()",null),ft(l,e,n),dl(l,e,n))}function rT(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<n?l:n}}function mb(e,n){rT(e,n),(e=e.alternate)&&rT(e,n)}function yb(e){if(e.tag===13||e.tag===31){var n=Ha(e,67108864);n!==null&&ft(n,e,67108864),mb(e,67108864)}}function gb(e){if(e.tag===13||e.tag===31){var n=Ia(e);n=tt(n);var l=Ha(e,n);l!==null&&ft(l,e,n),mb(e,n)}}function un(){return Tr}function bb(e,n,l,c){var p=Te.T;Te.T=null;var g=Xt.p;try{Xt.p=da,vb(e,n,l,c)}finally{Xt.p=g,Te.T=p}}function ja(e,n,l,c){var p=Te.T;Te.T=null;var g=Xt.p;try{Xt.p=ka,vb(e,n,l,c)}finally{Xt.p=g,Te.T=p}}function vb(e,n,l,c){if(fw){var p=pm(c);if(p===null)Pl(e,n,c,dw,l),mm(e,c);else if(lT(p,e,n,l,c))c.stopPropagation();else if(mm(e,c),n&4&&-1<vU.indexOf(e)){for(;p!==null;){var g=An(p);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var w=Za(g.pendingLanes);if(w!==0){var C=g;for(C.pendingLanes|=2,C.entangledLanes|=2;w;){var D=1<<31-za(w);C.entanglements[1]|=D,w&=~D}br(g),(Pt&(Ua|Kl))===Fa&&(FT=Ra()+IO,Ci(0))}}break;case 31:case 13:C=Ha(g,2),C!==null&&ft(C,g,2),Hr(),mb(g,2)}if(g=pm(c),g===null&&Pl(e,n,c,dw,l),g===p)break;p=g}p!==null&&c.stopPropagation()}else Pl(e,n,c,null,l)}}function pm(e){return e=Cl(e),Sb(e)}function Sb(e){if(dw=null,e=$a(e),e!==null){var n=_(e);if(n===null)e=null;else{var l=n.tag;if(l===13){if(e=L(n),e!==null)return e;e=null}else if(l===31){if(e=$(n),e!==null)return e;e=null}else if(l===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return dw=e,null}function hm(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 da;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 ka;case"message":switch(Kd()){case Ob:return da;case xm:return ka;case hs:case fT:return Ga;case Rm:return mu;default:return Ga}default:return Ga}}function mm(e,n){switch(e){case"focusin":case"focusout":Cf=null;break;case"dragenter":case"dragleave":Af=null;break;case"mouseover":case"mouseout":_f=null;break;case"pointerover":case"pointerout":xv.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rv.delete(n.pointerId)}}function fu(e,n,l,c,p,g){return e===null||e.nativeEvent!==g?(e={blockedOn:n,domEventName:l,eventSystemFlags:c,nativeEvent:g,targetContainers:[p]},n!==null&&(n=An(n),n!==null&&yb(n)),e):(e.eventSystemFlags|=c,n=e.targetContainers,p!==null&&n.indexOf(p)===-1&&n.push(p),e)}function lT(e,n,l,c,p){switch(n){case"focusin":return Cf=fu(Cf,e,n,l,c,p),!0;case"dragenter":return Af=fu(Af,e,n,l,c,p),!0;case"mouseover":return _f=fu(_f,e,n,l,c,p),!0;case"pointerover":var g=p.pointerId;return xv.set(g,fu(xv.get(g)||null,e,n,l,c,p)),!0;case"gotpointercapture":return g=p.pointerId,Rv.set(g,fu(Rv.get(g)||null,e,n,l,c,p)),!0}return!1}function Eb(e){var n=$a(e.target);if(n!==null){var l=_(n);if(l!==null){if(n=l.tag,n===13){if(n=L(l),n!==null){e.blockedOn=n,Cn(e.priority,function(){gb(l)});return}}else if(n===31){if(n=$(l),n!==null){e.blockedOn=n,Cn(e.priority,function(){gb(l)});return}}else if(n===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Xc(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var l=pm(e.nativeEvent);if(l===null){l=e.nativeEvent;var c=new l.constructor(l.type,l),p=c;zb!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),zb=p,l.target.dispatchEvent(c),zb===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),zb=null}else return n=An(l),n!==null&&yb(n),e.blockedOn=l,!1;n.shift()}return!0}function ym(e,n,l){Xc(e)&&l.delete(n)}function $x(){eC=!1,Cf!==null&&Xc(Cf)&&(Cf=null),Af!==null&&Xc(Af)&&(Af=null),_f!==null&&Xc(_f)&&(_f=null),xv.forEach(ym),Rv.forEach(ym)}function Xd(e,n){e.blockedOn===n&&(e.blockedOn=null,eC||(eC=!0,Zn.unstable_scheduleCallback(Zn.unstable_NormalPriority,$x)))}function iT(e){pw!==e&&(pw=e,Zn.unstable_scheduleCallback(Zn.unstable_NormalPriority,function(){pw===e&&(pw=null);for(var n=0;n<e.length;n+=3){var l=e[n],c=e[n+1],p=e[n+2];if(typeof c!="function"){if(Sb(c||l)===null)continue;break}var g=An(l);g!==null&&(e.splice(n,3),n-=3,l={pending:!0,data:p,method:l.method,action:c},Object.freeze(l),so(g,l,c,p))}}))}function fs(e){function n(D){return Xd(D,e)}Cf!==null&&Xd(Cf,e),Af!==null&&Xd(Af,e),_f!==null&&Xd(_f,e),xv.forEach(n),Rv.forEach(n);for(var l=0;l<Mf.length;l++){var c=Mf[l];c.blockedOn===e&&(c.blockedOn=null)}for(;0<Mf.length&&(l=Mf[0],l.blockedOn===null);)Eb(l),l.blockedOn===null&&Mf.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(c=0;c<l.length;c+=3){var p=l[c],g=l[c+1],w=p[dr]||null;if(typeof g=="function")w||iT(l);else if(w){var C=null;if(g&&g.hasAttribute("formAction")){if(p=g,w=g[dr]||null)C=w.formAction;else if(Sb(p)!==null)continue}else C=w.action;typeof C=="function"?l[c+1]=C:(l.splice(c,3),c-=3),iT(l)}}}function oT(){function e(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(w){return p=w})},focusReset:"manual",scroll:"manual"})}function n(){p!==null&&(p(),p=null),c||setTimeout(l,20)}function l(){if(!c&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,p=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(l,100),function(){c=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),p!==null&&(p(),p=null)}}}function Tb(e){this._internalRoot=e}function Gl(e){this._internalRoot=e}function wb(e){e[So]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Zn=d4(),Fd=Ne,Hx=Fs,Tt=Object.assign,uT=Symbol.for("react.element"),yl=Symbol.for("react.transitional.element"),du=Symbol.for("react.portal"),Fc=Symbol.for("react.fragment"),fr=Symbol.for("react.strict_mode"),Qd=Symbol.for("react.profiler"),gm=Symbol.for("react.consumer"),Yl=Symbol.for("react.context"),Qc=Symbol.for("react.forward_ref"),ds=Symbol.for("react.suspense"),Er=Symbol.for("react.suspense_list"),Zd=Symbol.for("react.memo"),Va=Symbol.for("react.lazy"),Xl=Symbol.for("react.activity"),Px=Symbol.for("react.memo_cache_sentinel"),sT=Symbol.iterator,Zc=Symbol.for("react.client.reference"),na=Array.isArray,Te=Fd.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Xt=Hx.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ix=Object.freeze({pending:!1,data:null,method:null,action:null}),xb=[],Rb=[],vo=-1,pu=J(null),Jc=J(null),Ir=J(null),hu=J(null),Kc=0,cT,ps,Wc,Cb,Jd,bm,vm;je.__reactDisabledLog=!0;var ef,Ab,Sm=!1,_b=new(typeof WeakMap=="function"?WeakMap:Map),Tr=null,qi=!1,Vr=Object.prototype.hasOwnProperty,Mb=Zn.unstable_scheduleCallback,Em=Zn.unstable_cancelCallback,Tm=Zn.unstable_shouldYield,wm=Zn.unstable_requestPaint,Ra=Zn.unstable_now,Kd=Zn.unstable_getCurrentPriorityLevel,Ob=Zn.unstable_ImmediatePriority,xm=Zn.unstable_UserBlockingPriority,hs=Zn.unstable_NormalPriority,fT=Zn.unstable_LowPriority,Rm=Zn.unstable_IdlePriority,qb=Zn.log,dT=Zn.unstable_setDisableYieldValue,ms=null,fa=null,Di=!1,Ni=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",za=Math.clz32?Math.clz32:ya,Db=Math.log,Cm=Math.LN2,tf=256,Wd=262144,nf=4194304,da=2,ka=8,Ga=32,mu=268435456,gl=Math.random().toString(36).slice(2),qn="__reactFiber$"+gl,dr="__reactProps$"+gl,So="__reactContainer$"+gl,ys="__reactEvents$"+gl,Vx="__reactListeners$"+gl,pT="__reactHandles$"+gl,ep="__reactResources$"+gl,af="__reactMarker$"+gl,hT=new Set,ji={},rf={},mT={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},lf=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]*$"),Nb={},Am={},_m=/[\n"\\]/g,jb=!1,yT=!1,tp=!1,r=!1,o=!1,s=!1,d=["value","defaultValue"],S=!1,T=/["'&<>\n\t]|^\s|\s$/,O="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),B="applet caption html table td th marquee object template foreignObject desc title".split(" "),W=B.concat(["button"]),ye="dd dt li option optgroup p rp rt".split(" "),Re={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Me={},ge={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},we=/([A-Z])/g,Fe=/^ms-/,rt=/^(?:webkit|moz|o)[A-Z]/,sn=/^-ms-/,fe=/-(.)/g,re=/;\s*$/,he={},_e={},We=!1,Ht=!1,Qe=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(" ")),gt="http://www.w3.org/1998/Math/MathML",St="http://www.w3.org/2000/svg",Vt=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"]]),Fl={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},gT={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Mm={},Wk=RegExp("^(aria)-[: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]*$"),eB=RegExp("^(aria)[A-Z][: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]*$"),gM=!1,Gr={},bM=/^on./,tB=/^on[^A-Z]/,nB=RegExp("^(aria)-[: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]*$"),aB=RegExp("^(aria)[A-Z][: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]*$"),rB=/^[\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,zb=null,Om=null,qm=null,Gx=!1,yu=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yx=!1;if(yu)try{var kb={};Object.defineProperty(kb,"passive",{get:function(){Yx=!0}}),window.addEventListener("test",kb,kb),window.removeEventListener("test",kb,kb)}catch{Yx=!1}var of=null,Xx=null,bT=null,np={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vT=ba(np),Bb=Tt({},np,{view:0,detail:0}),lB=ba(Bb),Fx,Qx,Ub,ST=Tt({},Bb,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yf,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!==Ub&&(Ub&&e.type==="mousemove"?(Fx=e.screenX-Ub.screenX,Qx=e.screenY-Ub.screenY):Qx=Fx=0,Ub=e),Fx)},movementY:function(e){return"movementY"in e?e.movementY:Qx}}),vM=ba(ST),iB=Tt({},ST,{dataTransfer:0}),oB=ba(iB),uB=Tt({},Bb,{relatedTarget:0}),Zx=ba(uB),sB=Tt({},np,{animationName:0,elapsedTime:0,pseudoElement:0}),cB=ba(sB),fB=Tt({},np,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dB=ba(fB),pB=Tt({},np,{data:0}),SM=ba(pB),hB=SM,mB={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yB={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"},gB={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},bB=Tt({},Bb,{key:function(e){if(e.key){var n=mB[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Gf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?yB[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yf,charCode:function(e){return e.type==="keypress"?Gf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Gf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),vB=ba(bB),SB=Tt({},ST,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),EM=ba(SB),EB=Tt({},Bb,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yf}),TB=ba(EB),wB=Tt({},np,{propertyName:0,elapsedTime:0,pseudoElement:0}),xB=ba(wB),RB=Tt({},ST,{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}),CB=ba(RB),AB=Tt({},np,{newState:0,oldState:0}),_B=ba(AB),MB=[9,13,27,32],TM=229,Jx=yu&&"CompositionEvent"in window,Lb=null;yu&&"documentMode"in document&&(Lb=document.documentMode);var OB=yu&&"TextEvent"in window&&!Lb,wM=yu&&(!Jx||Lb&&8<Lb&&11>=Lb),xM=32,RM=String.fromCharCode(xM),CM=!1,Dm=!1,qB={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},$b=null,Hb=null,AM=!1;yu&&(AM=Wp("input")&&(!document.documentMode||9<document.documentMode));var Yr=typeof Object.is=="function"?Object.is:eh,DB=yu&&"documentMode"in document&&11>=document.documentMode,Nm=null,Kx=null,Pb=null,Wx=!1,jm={animationend:qu("Animation","AnimationEnd"),animationiteration:qu("Animation","AnimationIteration"),animationstart:qu("Animation","AnimationStart"),transitionrun:qu("Transition","TransitionRun"),transitionstart:qu("Transition","TransitionStart"),transitioncancel:qu("Transition","TransitionCancel"),transitionend:qu("Transition","TransitionEnd")},eR={},_M={};yu&&(_M=document.createElement("div").style,"AnimationEvent"in window||(delete jm.animationend.animation,delete jm.animationiteration.animation,delete jm.animationstart.animation),"TransitionEvent"in window||delete jm.transitionend.transition);var MM=Du("animationend"),OM=Du("animationiteration"),qM=Du("animationstart"),NB=Du("transitionrun"),jB=Du("transitionstart"),zB=Du("transitioncancel"),DM=Du("transitionend"),NM=new Map,tR="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(" ");tR.push("scrollEnd");var jM=0;if(typeof performance=="object"&&typeof performance.now=="function")var kB=performance,zM=function(){return kB.now()};else{var BB=Date;zM=function(){return BB.now()}}var nR=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)},UB="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",ET=0,aR=1,rR=2,lR=3,TT="– ",wT="+ ",kM="  ",Dn=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",zi="Components ⚛",jt="Scheduler ⚛",Ut="Blocking",uf=!1,gs={color:"primary",properties:null,tooltipText:"",track:zi},sf={start:-0,end:-0,detail:{devtools:gs}},LB=["Changed Props",""],BM="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",$B=["Changed Props",BM],Ib=1,bs=2,ki=[],zm=0,iR=0,cf={};Object.freeze(cf);var Bi=null,km=null,ct=0,HB=1,wt=2,wr=8,Eo=16,PB=32,UM=!1;try{var LM=Object.preventExtensions({})}catch{UM=!0}var oR=new WeakMap,Bm=[],Um=0,xT=null,Vb=0,Ui=[],Li=0,ap=null,vs=1,Ss="",pr=null,Nn=null,Dt=!1,gu=!1,Ql=null,ff=null,$i=!1,uR=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),sR=J(null),cR=J(null),$M={},RT=null,Lm=null,$m=!1,IB=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(l,c){e.push(c)}};this.abort=function(){n.aborted=!0,e.forEach(function(l){return l()})}},VB=Zn.unstable_scheduleCallback,GB=Zn.unstable_NormalPriority,Ca={$$typeof:Yl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Aa=Zn.unstable_now,CT=console.createTask?console.createTask:function(){return null},Gb=1,AT=2,Ya=-0,df=-0,Es=-0,Ts=null,Xr=-1.1,rp=-0,In=-0,nt=-1.1,lt=-1.1,Un=null,Jn=!1,lp=-0,bu=-1.1,Yb=null,pf=0,fR=null,dR=null,ip=-1.1,Xb=null,Hm=-1.1,_T=-1.1,ws=-0,xs=-1.1,Hi=-1.1,pR=0,Fb=null,HM=null,PM=null,hf=-1.1,op=null,mf=-1.1,MT=-1.1,IM=-0,VM=-0,OT=0,YB=null,GM=0,Qb=-1.1,qT=!1,DT=!1,Zb=null,hR=0,up=0,Pm=null,YM=Te.S;Te.S=function(e,n){if(HO=Ra(),typeof n=="object"&&n!==null&&typeof n.then=="function"){if(0>xs&&0>Hi){xs=Aa();var l=Hc(),c=Mi();(l!==mf||c!==op)&&(mf=-1.1),hf=l,op=c}no(e,n)}YM!==null&&YM(e,n)};var sp=J(null),To={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Jb=[],Kb=[],Wb=[],ev=[],tv=[],nv=[],cp=new Set;To.recordUnsafeLifecycleWarnings=function(e,n){cp.has(e.type)||(typeof n.componentWillMount=="function"&&n.componentWillMount.__suppressDeprecationWarning!==!0&&Jb.push(e),e.mode&wr&&typeof n.UNSAFE_componentWillMount=="function"&&Kb.push(e),typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Wb.push(e),e.mode&wr&&typeof n.UNSAFE_componentWillReceiveProps=="function"&&ev.push(e),typeof n.componentWillUpdate=="function"&&n.componentWillUpdate.__suppressDeprecationWarning!==!0&&tv.push(e),e.mode&wr&&typeof n.UNSAFE_componentWillUpdate=="function"&&nv.push(e))},To.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Jb.length&&(Jb.forEach(function(C){e.add(H(C)||"Component"),cp.add(C.type)}),Jb=[]);var n=new Set;0<Kb.length&&(Kb.forEach(function(C){n.add(H(C)||"Component"),cp.add(C.type)}),Kb=[]);var l=new Set;0<Wb.length&&(Wb.forEach(function(C){l.add(H(C)||"Component"),cp.add(C.type)}),Wb=[]);var c=new Set;0<ev.length&&(ev.forEach(function(C){c.add(H(C)||"Component"),cp.add(C.type)}),ev=[]);var p=new Set;0<tv.length&&(tv.forEach(function(C){p.add(H(C)||"Component"),cp.add(C.type)}),tv=[]);var g=new Set;if(0<nv.length&&(nv.forEach(function(C){g.add(H(C)||"Component"),cp.add(C.type)}),nv=[]),0<n.size){var w=E(n);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
205
+
206
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
207
+
208
+ Please update the following components: %s`,w)}0<c.size&&(w=E(c),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
209
+
210
+ * Move data fetching code or side effects to componentDidUpdate.
211
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
212
+
213
+ Please update the following components: %s`,w)),0<g.size&&(w=E(g),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
214
+
215
+ * Move data fetching code or side effects to componentDidUpdate.
216
+
217
+ Please update the following components: %s`,w)),0<e.size&&(w=E(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
218
+
219
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
220
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
221
+
222
+ Please update the following components: %s`,w)),0<l.size&&(w=E(l),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
223
+
224
+ * Move data fetching code or side effects to componentDidUpdate.
225
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
226
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
227
+
228
+ Please update the following components: %s`,w)),0<p.size&&(w=E(p),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
229
+
230
+ * Move data fetching code or side effects to componentDidUpdate.
231
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
232
+
233
+ Please update the following components: %s`,w))};var NT=new Map,XM=new Set;To.recordLegacyContextWarning=function(e,n){for(var l=null,c=e;c!==null;)c.mode&wr&&(l=c),c=c.return;l===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!XM.has(e.type)&&(c=NT.get(l),e.type.contextTypes!=null||e.type.childContextTypes!=null||n!==null&&typeof n.getChildContext=="function")&&(c===void 0&&(c=[],NT.set(l,c)),c.push(e))},To.flushLegacyContextWarning=function(){NT.forEach(function(e){if(e.length!==0){var n=e[0],l=new Set;e.forEach(function(p){l.add(H(p)||"Component"),XM.add(p.type)});var c=E(l);de(n,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
234
+
235
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
236
+
237
+ Please update the following components: %s
238
+
239
+ Learn more about this warning here: https://react.dev/link/legacy-context`,c)})}})},To.discardPendingWarnings=function(){Jb=[],Kb=[],Wb=[],ev=[],tv=[],nv=[],NT=new Map};var FM={react_stack_bottom_frame:function(e,n,l){var c=qi;qi=!0;try{return e(n,l)}finally{qi=c}}},mR=FM.react_stack_bottom_frame.bind(FM),QM={react_stack_bottom_frame:function(e){var n=qi;qi=!0;try{return e.render()}finally{qi=n}}},ZM=QM.react_stack_bottom_frame.bind(QM),JM={react_stack_bottom_frame:function(e,n){try{n.componentDidMount()}catch(l){vt(e,e.return,l)}}},yR=JM.react_stack_bottom_frame.bind(JM),KM={react_stack_bottom_frame:function(e,n,l,c,p){try{n.componentDidUpdate(l,c,p)}catch(g){vt(e,e.return,g)}}},WM=KM.react_stack_bottom_frame.bind(KM),eO={react_stack_bottom_frame:function(e,n){var l=n.stack;e.componentDidCatch(n.value,{componentStack:l!==null?l:""})}},XB=eO.react_stack_bottom_frame.bind(eO),tO={react_stack_bottom_frame:function(e,n,l){try{l.componentWillUnmount()}catch(c){vt(e,n,c)}}},nO=tO.react_stack_bottom_frame.bind(tO),aO={react_stack_bottom_frame:function(e){var n=e.create;return e=e.inst,n=n(),e.destroy=n}},FB=aO.react_stack_bottom_frame.bind(aO),rO={react_stack_bottom_frame:function(e,n,l){try{l()}catch(c){vt(e,n,c)}}},QB=rO.react_stack_bottom_frame.bind(rO),lO={react_stack_bottom_frame:function(e){var n=e._init;return n(e._payload)}},ZB=lO.react_stack_bottom_frame.bind(lO),Im=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),gR=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),jT=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),zT={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},fp=null,av=!1,Vm=null,rv=0,xt=null,bR,iO=bR=!1,oO={},uO={},sO={};x=function(e,n,l){if(l!==null&&typeof l=="object"&&l._store&&(!l._store.validated&&l.key==null||l._store.validated===2)){if(typeof l._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");l._store.validated=1;var c=H(e),p=c||"null";if(!oO[p]){oO[p]=!0,l=l._owner,e=e._debugOwner;var g="";e&&typeof e.tag=="number"&&(p=H(e))&&(g=`
240
+
241
+ Check the render method of \``+p+"`."),g||c&&(g=`
242
+
243
+ Check the top-level render call using <`+c+">.");var w="";l!=null&&e!==l&&(c=null,typeof l.tag=="number"?c=H(l):typeof l.name=="string"&&(c=l.name),c&&(w=" It was passed a child from "+c+".")),de(n,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',g,w)})}}};var dp=Sa(!0),cO=Sa(!1),fO=0,dO=1,pO=2,vR=3,yf=!1,hO=!1,SR=null,ER=!1,Gm=J(null),kT=J(0),Zl=J(null),Pi=null,Ym=1,lv=2,pa=J(0),BT=0,Ii=1,Fr=2,Jl=4,Qr=8,Xm,mO=new Set,yO=new Set,TR=new Set,gO=new Set,Rs=0,ht=null,yn=null,_a=null,UT=!1,Fm=!1,pp=!1,LT=0,iv=0,Cs=null,JB=0,KB=25,Ee=null,Vi=null,As=-1,ov=!1,uv={readContext:Gt,use:io,useCallback:Hn,useContext:Hn,useEffect:Hn,useImperativeHandle:Hn,useLayoutEffect:Hn,useInsertionEffect:Hn,useMemo:Hn,useReducer:Hn,useRef:Hn,useState:Hn,useDebugValue:Hn,useDeferredValue:Hn,useTransition:Hn,useSyncExternalStore:Hn,useId:Hn,useHostTransitionStatus:Hn,useFormState:Hn,useActionState:Hn,useOptimistic:Hn,useMemoCache:Hn,useCacheRefresh:Hn};uv.useEffectEvent=Hn;var wR=null,bO=null,xR=null,vO=null,vu=null,wo=null,$T=null;wR={readContext:function(e){return Gt(e)},use:io,useCallback:function(e,n){return Ee="useCallback",pt(),lo(n),Eh(e,n)},useContext:function(e){return Ee="useContext",pt(),Gt(e)},useEffect:function(e,n){return Ee="useEffect",pt(),lo(n),Qu(e,n)},useImperativeHandle:function(e,n,l){return Ee="useImperativeHandle",pt(),lo(l),gi(e,n,l)},useInsertionEffect:function(e,n){Ee="useInsertionEffect",pt(),lo(n),eu(4,Fr,e,n)},useLayoutEffect:function(e,n){return Ee="useLayoutEffect",pt(),lo(n),ar(e,n)},useMemo:function(e,n){Ee="useMemo",pt(),lo(n);var l=Te.H;Te.H=vu;try{return rr(e,n)}finally{Te.H=l}},useReducer:function(e,n,l){Ee="useReducer",pt();var c=Te.H;Te.H=vu;try{return gc(e,n,l)}finally{Te.H=c}},useRef:function(e){return Ee="useRef",pt(),Sh(e)},useState:function(e){Ee="useState",pt();var n=Te.H;Te.H=vu;try{return Zo(e)}finally{Te.H=n}},useDebugValue:function(){Ee="useDebugValue",pt()},useDeferredValue:function(e,n){return Ee="useDeferredValue",pt(),Tc(e,n)},useTransition:function(){return Ee="useTransition",pt(),tu()},useSyncExternalStore:function(e,n,l){return Ee="useSyncExternalStore",pt(),bc(e,n,l)},useId:function(){return Ee="useId",pt(),yd()},useFormState:function(e,n){return Ee="useFormState",pt(),ld(),kr(e,n)},useActionState:function(e,n){return Ee="useActionState",pt(),kr(e,n)},useOptimistic:function(e){return Ee="useOptimistic",pt(),Fu(e)},useHostTransitionStatus:co,useMemoCache:jr,useCacheRefresh:function(){return Ee="useCacheRefresh",pt(),Th()},useEffectEvent:function(e){return Ee="useEffectEvent",pt(),hd(e)}},bO={readContext:function(e){return Gt(e)},use:io,useCallback:function(e,n){return Ee="useCallback",Oe(),Eh(e,n)},useContext:function(e){return Ee="useContext",Oe(),Gt(e)},useEffect:function(e,n){return Ee="useEffect",Oe(),Qu(e,n)},useImperativeHandle:function(e,n,l){return Ee="useImperativeHandle",Oe(),gi(e,n,l)},useInsertionEffect:function(e,n){Ee="useInsertionEffect",Oe(),eu(4,Fr,e,n)},useLayoutEffect:function(e,n){return Ee="useLayoutEffect",Oe(),ar(e,n)},useMemo:function(e,n){Ee="useMemo",Oe();var l=Te.H;Te.H=vu;try{return rr(e,n)}finally{Te.H=l}},useReducer:function(e,n,l){Ee="useReducer",Oe();var c=Te.H;Te.H=vu;try{return gc(e,n,l)}finally{Te.H=c}},useRef:function(e){return Ee="useRef",Oe(),Sh(e)},useState:function(e){Ee="useState",Oe();var n=Te.H;Te.H=vu;try{return Zo(e)}finally{Te.H=n}},useDebugValue:function(){Ee="useDebugValue",Oe()},useDeferredValue:function(e,n){return Ee="useDeferredValue",Oe(),Tc(e,n)},useTransition:function(){return Ee="useTransition",Oe(),tu()},useSyncExternalStore:function(e,n,l){return Ee="useSyncExternalStore",Oe(),bc(e,n,l)},useId:function(){return Ee="useId",Oe(),yd()},useActionState:function(e,n){return Ee="useActionState",Oe(),kr(e,n)},useFormState:function(e,n){return Ee="useFormState",Oe(),ld(),kr(e,n)},useOptimistic:function(e){return Ee="useOptimistic",Oe(),Fu(e)},useHostTransitionStatus:co,useMemoCache:jr,useCacheRefresh:function(){return Ee="useCacheRefresh",Oe(),Th()},useEffectEvent:function(e){return Ee="useEffectEvent",Oe(),hd(e)}},xR={readContext:function(e){return Gt(e)},use:io,useCallback:function(e,n){return Ee="useCallback",Oe(),Bl(e,n)},useContext:function(e){return Ee="useContext",Oe(),Gt(e)},useEffect:function(e,n){Ee="useEffect",Oe(),sa(2048,Qr,e,n)},useImperativeHandle:function(e,n,l){return Ee="useImperativeHandle",Oe(),Ec(e,n,l)},useInsertionEffect:function(e,n){return Ee="useInsertionEffect",Oe(),sa(4,Fr,e,n)},useLayoutEffect:function(e,n){return Ee="useLayoutEffect",Oe(),sa(4,Jl,e,n)},useMemo:function(e,n){Ee="useMemo",Oe();var l=Te.H;Te.H=wo;try{return Mn(e,n)}finally{Te.H=l}},useReducer:function(e,n,l){Ee="useReducer",Oe();var c=Te.H;Te.H=wo;try{return Gu(e,n,l)}finally{Te.H=c}},useRef:function(){return Ee="useRef",Oe(),Kt().memoizedState},useState:function(){Ee="useState",Oe();var e=Te.H;Te.H=wo;try{return Gu(zr)}finally{Te.H=e}},useDebugValue:function(){Ee="useDebugValue",Oe()},useDeferredValue:function(e,n){return Ee="useDeferredValue",Oe(),bi(e,n)},useTransition:function(){return Ee="useTransition",Oe(),mE()},useSyncExternalStore:function(e,n,l){return Ee="useSyncExternalStore",Oe(),Xu(e,n,l)},useId:function(){return Ee="useId",Oe(),Kt().memoizedState},useFormState:function(e){return Ee="useFormState",Oe(),ld(),Ko(e)},useActionState:function(e){return Ee="useActionState",Oe(),Ko(e)},useOptimistic:function(e,n){return Ee="useOptimistic",Oe(),fd(e,n)},useHostTransitionStatus:co,useMemoCache:jr,useCacheRefresh:function(){return Ee="useCacheRefresh",Oe(),Kt().memoizedState},useEffectEvent:function(e){return Ee="useEffectEvent",Oe(),Sc(e)}},vO={readContext:function(e){return Gt(e)},use:io,useCallback:function(e,n){return Ee="useCallback",Oe(),Bl(e,n)},useContext:function(e){return Ee="useContext",Oe(),Gt(e)},useEffect:function(e,n){Ee="useEffect",Oe(),sa(2048,Qr,e,n)},useImperativeHandle:function(e,n,l){return Ee="useImperativeHandle",Oe(),Ec(e,n,l)},useInsertionEffect:function(e,n){return Ee="useInsertionEffect",Oe(),sa(4,Fr,e,n)},useLayoutEffect:function(e,n){return Ee="useLayoutEffect",Oe(),sa(4,Jl,e,n)},useMemo:function(e,n){Ee="useMemo",Oe();var l=Te.H;Te.H=$T;try{return Mn(e,n)}finally{Te.H=l}},useReducer:function(e,n,l){Ee="useReducer",Oe();var c=Te.H;Te.H=$T;try{return Yu(e,n,l)}finally{Te.H=c}},useRef:function(){return Ee="useRef",Oe(),Kt().memoizedState},useState:function(){Ee="useState",Oe();var e=Te.H;Te.H=$T;try{return Yu(zr)}finally{Te.H=e}},useDebugValue:function(){Ee="useDebugValue",Oe()},useDeferredValue:function(e,n){return Ee="useDeferredValue",Oe(),bt(e,n)},useTransition:function(){return Ee="useTransition",Oe(),zn()},useSyncExternalStore:function(e,n,l){return Ee="useSyncExternalStore",Oe(),Xu(e,n,l)},useId:function(){return Ee="useId",Oe(),Kt().memoizedState},useFormState:function(e){return Ee="useFormState",Oe(),ld(),Wo(e)},useActionState:function(e){return Ee="useActionState",Oe(),Wo(e)},useOptimistic:function(e,n){return Ee="useOptimistic",Oe(),dd(e,n)},useHostTransitionStatus:co,useMemoCache:jr,useCacheRefresh:function(){return Ee="useCacheRefresh",Oe(),Kt().memoizedState},useEffectEvent:function(e){return Ee="useEffectEvent",Oe(),Sc(e)}},vu={readContext:function(e){return b(),Gt(e)},use:function(e){return y(),io(e)},useCallback:function(e,n){return Ee="useCallback",y(),pt(),Eh(e,n)},useContext:function(e){return Ee="useContext",y(),pt(),Gt(e)},useEffect:function(e,n){return Ee="useEffect",y(),pt(),Qu(e,n)},useImperativeHandle:function(e,n,l){return Ee="useImperativeHandle",y(),pt(),gi(e,n,l)},useInsertionEffect:function(e,n){Ee="useInsertionEffect",y(),pt(),eu(4,Fr,e,n)},useLayoutEffect:function(e,n){return Ee="useLayoutEffect",y(),pt(),ar(e,n)},useMemo:function(e,n){Ee="useMemo",y(),pt();var l=Te.H;Te.H=vu;try{return rr(e,n)}finally{Te.H=l}},useReducer:function(e,n,l){Ee="useReducer",y(),pt();var c=Te.H;Te.H=vu;try{return gc(e,n,l)}finally{Te.H=c}},useRef:function(e){return Ee="useRef",y(),pt(),Sh(e)},useState:function(e){Ee="useState",y(),pt();var n=Te.H;Te.H=vu;try{return Zo(e)}finally{Te.H=n}},useDebugValue:function(){Ee="useDebugValue",y(),pt()},useDeferredValue:function(e,n){return Ee="useDeferredValue",y(),pt(),Tc(e,n)},useTransition:function(){return Ee="useTransition",y(),pt(),tu()},useSyncExternalStore:function(e,n,l){return Ee="useSyncExternalStore",y(),pt(),bc(e,n,l)},useId:function(){return Ee="useId",y(),pt(),yd()},useFormState:function(e,n){return Ee="useFormState",y(),pt(),kr(e,n)},useActionState:function(e,n){return Ee="useActionState",y(),pt(),kr(e,n)},useOptimistic:function(e){return Ee="useOptimistic",y(),pt(),Fu(e)},useMemoCache:function(e){return y(),jr(e)},useHostTransitionStatus:co,useCacheRefresh:function(){return Ee="useCacheRefresh",pt(),Th()},useEffectEvent:function(e){return Ee="useEffectEvent",y(),pt(),hd(e)}},wo={readContext:function(e){return b(),Gt(e)},use:function(e){return y(),io(e)},useCallback:function(e,n){return Ee="useCallback",y(),Oe(),Bl(e,n)},useContext:function(e){return Ee="useContext",y(),Oe(),Gt(e)},useEffect:function(e,n){Ee="useEffect",y(),Oe(),sa(2048,Qr,e,n)},useImperativeHandle:function(e,n,l){return Ee="useImperativeHandle",y(),Oe(),Ec(e,n,l)},useInsertionEffect:function(e,n){return Ee="useInsertionEffect",y(),Oe(),sa(4,Fr,e,n)},useLayoutEffect:function(e,n){return Ee="useLayoutEffect",y(),Oe(),sa(4,Jl,e,n)},useMemo:function(e,n){Ee="useMemo",y(),Oe();var l=Te.H;Te.H=wo;try{return Mn(e,n)}finally{Te.H=l}},useReducer:function(e,n,l){Ee="useReducer",y(),Oe();var c=Te.H;Te.H=wo;try{return Gu(e,n,l)}finally{Te.H=c}},useRef:function(){return Ee="useRef",y(),Oe(),Kt().memoizedState},useState:function(){Ee="useState",y(),Oe();var e=Te.H;Te.H=wo;try{return Gu(zr)}finally{Te.H=e}},useDebugValue:function(){Ee="useDebugValue",y(),Oe()},useDeferredValue:function(e,n){return Ee="useDeferredValue",y(),Oe(),bi(e,n)},useTransition:function(){return Ee="useTransition",y(),Oe(),mE()},useSyncExternalStore:function(e,n,l){return Ee="useSyncExternalStore",y(),Oe(),Xu(e,n,l)},useId:function(){return Ee="useId",y(),Oe(),Kt().memoizedState},useFormState:function(e){return Ee="useFormState",y(),Oe(),Ko(e)},useActionState:function(e){return Ee="useActionState",y(),Oe(),Ko(e)},useOptimistic:function(e,n){return Ee="useOptimistic",y(),Oe(),fd(e,n)},useMemoCache:function(e){return y(),jr(e)},useHostTransitionStatus:co,useCacheRefresh:function(){return Ee="useCacheRefresh",Oe(),Kt().memoizedState},useEffectEvent:function(e){return Ee="useEffectEvent",y(),Oe(),Sc(e)}},$T={readContext:function(e){return b(),Gt(e)},use:function(e){return y(),io(e)},useCallback:function(e,n){return Ee="useCallback",y(),Oe(),Bl(e,n)},useContext:function(e){return Ee="useContext",y(),Oe(),Gt(e)},useEffect:function(e,n){Ee="useEffect",y(),Oe(),sa(2048,Qr,e,n)},useImperativeHandle:function(e,n,l){return Ee="useImperativeHandle",y(),Oe(),Ec(e,n,l)},useInsertionEffect:function(e,n){return Ee="useInsertionEffect",y(),Oe(),sa(4,Fr,e,n)},useLayoutEffect:function(e,n){return Ee="useLayoutEffect",y(),Oe(),sa(4,Jl,e,n)},useMemo:function(e,n){Ee="useMemo",y(),Oe();var l=Te.H;Te.H=wo;try{return Mn(e,n)}finally{Te.H=l}},useReducer:function(e,n,l){Ee="useReducer",y(),Oe();var c=Te.H;Te.H=wo;try{return Yu(e,n,l)}finally{Te.H=c}},useRef:function(){return Ee="useRef",y(),Oe(),Kt().memoizedState},useState:function(){Ee="useState",y(),Oe();var e=Te.H;Te.H=wo;try{return Yu(zr)}finally{Te.H=e}},useDebugValue:function(){Ee="useDebugValue",y(),Oe()},useDeferredValue:function(e,n){return Ee="useDeferredValue",y(),Oe(),bt(e,n)},useTransition:function(){return Ee="useTransition",y(),Oe(),zn()},useSyncExternalStore:function(e,n,l){return Ee="useSyncExternalStore",y(),Oe(),Xu(e,n,l)},useId:function(){return Ee="useId",y(),Oe(),Kt().memoizedState},useFormState:function(e){return Ee="useFormState",y(),Oe(),Wo(e)},useActionState:function(e){return Ee="useActionState",y(),Oe(),Wo(e)},useOptimistic:function(e,n){return Ee="useOptimistic",y(),Oe(),dd(e,n)},useMemoCache:function(e){return y(),jr(e)},useHostTransitionStatus:co,useCacheRefresh:function(){return Ee="useCacheRefresh",Oe(),Kt().memoizedState},useEffectEvent:function(e){return Ee="useEffectEvent",y(),Oe(),Sc(e)}};var SO={},EO=new Set,TO=new Set,wO=new Set,xO=new Set,RO=new Set,CO=new Set,AO=new Set,_O=new Set,MO=new Set,OO=new Set;Object.freeze(SO);var RR={enqueueSetState:function(e,n,l){e=e._reactInternals;var c=Ia(e),p=ua(c);p.payload=n,l!=null&&(Wu(l),p.callback=l),n=pi(e,p,c),n!==null&&(ci(c,"this.setState()",e),ft(n,e,c),dl(n,e,c))},enqueueReplaceState:function(e,n,l){e=e._reactInternals;var c=Ia(e),p=ua(c);p.tag=dO,p.payload=n,l!=null&&(Wu(l),p.callback=l),n=pi(e,p,c),n!==null&&(ci(c,"this.replaceState()",e),ft(n,e,c),dl(n,e,c))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var l=Ia(e),c=ua(l);c.tag=pO,n!=null&&(Wu(n),c.callback=n),n=pi(e,c,l),n!==null&&(ci(l,"this.forceUpdate()",e),ft(n,e,l),dl(n,e,l))}},Qm=null,CR=null,AR=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Ma=!1,qO={},DO={},NO={},jO={},Zm=!1,zO={},HT={},_R={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},kO=!1,BO=null;BO=new Set;var _s=!1,Oa=!1,MR=!1,UO=typeof WeakSet=="function"?WeakSet:Set,Xa=null,Jm=null,Km=null,qa=null,bl=!1,xo=null,Ba=!1,sv=8192,WB={getCacheForType:function(e){var n=Gt(Ca),l=n.data.get(e);return l===void 0&&(l=e(),n.data.set(e,l)),l},cacheSignal:function(){return Gt(Ca).controller.signal},getOwner:function(){return Tr}};if(typeof Symbol=="function"&&Symbol.for){var cv=Symbol.for;cv("selector.component"),cv("selector.has_pseudo_class"),cv("selector.role"),cv("selector.test_id"),cv("selector.text")}var eU=[],tU=typeof WeakMap=="function"?WeakMap:Map,Fa=0,Ua=2,Kl=4,Ms=0,fv=1,hp=2,PT=3,gf=4,IT=6,LO=5,Pt=Fa,gn=null,_t=null,Rt=0,vl=0,VT=1,mp=2,dv=3,$O=4,OR=5,pv=6,GT=7,qR=8,yp=9,cn=vl,Wl=null,bf=!1,Wm=!1,DR=!1,Su=0,Vn=Ms,vf=0,Sf=0,NR=0,Sl=0,gp=0,hv=null,Zr=null,YT=!1,XT=0,HO=0,PO=300,FT=1/0,IO=500,mv=null,aa=null,Ef=null,QT=0,jR=1,zR=2,VO=3,Tf=0,GO=1,YO=2,XO=3,FO=4,ZT=5,Da=0,wf=null,ey=null,Ro=0,kR=0,BR=-0,UR=null,QO=null,ZO=null,Co=QT,JO=null,nU=50,yv=0,LR=null,$R=!1,JT=!1,aU=50,bp=0,gv=null,ty=!1,KT=null,KO=!1,WO=new Set,rU={},WT=null,ny=null,HR=!1,PR=!1,ew=!1,IR=!1,xf=0,VR={};(function(){for(var e=0;e<tR.length;e++){var n=tR[e],l=n.toLowerCase();n=n[0].toUpperCase()+n.slice(1),Al(l,"on"+n)}Al(MM,"onAnimationEnd"),Al(OM,"onAnimationIteration"),Al(qM,"onAnimationStart"),Al("dblclick","onDoubleClick"),Al("focusin","onFocus"),Al("focusout","onBlur"),Al(NB,"onTransitionRun"),Al(jB,"onTransitionStart"),Al(zB,"onTransitionCancel"),Al(DM,"onTransitionEnd")})(),Ln("onMouseEnter",["mouseout","mouseover"]),Ln("onMouseLeave",["mouseout","mouseover"]),Ln("onPointerEnter",["pointerout","pointerover"]),Ln("onPointerLeave",["pointerout","pointerover"]),Wn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Wn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Wn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Wn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Wn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Wn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bv="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(" "),GR=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bv)),tw="_reactListening"+Math.random().toString(36).slice(2),e2=!1,t2=!1,nw=!1,n2=!1,aw=!1,rw=!1,a2=!1,lw={},lU=/\r\n?/g,iU=/\u0000|\uFFFD/g,vp="http://www.w3.org/1999/xlink",YR="http://www.w3.org/XML/1998/namespace",oU="javascript:throw new Error('React form unexpectedly submitted.')",uU="suppressHydrationWarning",Sp="&",iw="/&",vv="$",Sv="/$",Rf="$?",Ep="$~",ay="$!",sU="html",cU="body",fU="head",XR="F!",r2="F",l2="loading",dU="style",Os=0,ry=1,ow=2,FR=null,QR=null,i2={dialog:!0,webview:!0},ZR=null,Ev=void 0,o2=typeof setTimeout=="function"?setTimeout:void 0,pU=typeof clearTimeout=="function"?clearTimeout:void 0,Tp=-1,u2=typeof Promise=="function"?Promise:void 0,hU=typeof queueMicrotask=="function"?queueMicrotask:typeof u2<"u"?function(e){return u2.resolve(null).then(e).catch(BE)}:o2,JR=null,wp=0,Tv=1,s2=2,c2=3,Gi=4,Yi=new Map,f2=new Set,qs=Xt.d;Xt.d={f:function(){var e=qs.f(),n=Hr();return e||n},r:function(e){var n=An(e);n!==null&&n.tag===5&&n.type==="form"?wc(n):qs.r(e)},D:function(e){qs.D(e),sb("dns-prefetch",e,null)},C:function(e,n){qs.C(e,n),sb("preconnect",e,n)},L:function(e,n,l){qs.L(e,n,l);var c=ly;if(c&&e&&n){var p='link[rel="preload"][as="'+rn(n)+'"]';n==="image"&&l&&l.imageSrcSet?(p+='[imagesrcset="'+rn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(p+='[imagesizes="'+rn(l.imageSizes)+'"]')):p+='[href="'+rn(e)+'"]';var g=p;switch(n){case"style":g=ss(e);break;case"script":g=cs(e)}Yi.has(g)||(e=Tt({rel:"preload",href:n==="image"&&l&&l.imageSrcSet?void 0:e,as:n},l),Yi.set(g,e),c.querySelector(p)!==null||n==="style"&&c.querySelector(Pd(g))||n==="script"&&c.querySelector(Id(g))||(n=c.createElement("link"),On(n,"link",e),$t(n),c.head.appendChild(n)))}},m:function(e,n){qs.m(e,n);var l=ly;if(l&&e){var c=n&&typeof n.as=="string"?n.as:"script",p='link[rel="modulepreload"][as="'+rn(c)+'"][href="'+rn(e)+'"]',g=p;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=cs(e)}if(!Yi.has(g)&&(e=Tt({rel:"modulepreload",href:e},n),Yi.set(g,e),l.querySelector(p)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Id(g)))return}c=l.createElement("link"),On(c,"link",e),$t(c),l.head.appendChild(c)}}},X:function(e,n){qs.X(e,n);var l=ly;if(l&&e){var c=ga(l).hoistableScripts,p=cs(e),g=c.get(p);g||(g=l.querySelector(Id(p)),g||(e=Tt({src:e,async:!0},n),(n=Yi.get(p))&&db(e,n),g=l.createElement("script"),$t(g),On(g,"link",e),l.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(p,g))}},S:function(e,n,l){qs.S(e,n,l);var c=ly;if(c&&e){var p=ga(c).hoistableStyles,g=ss(e);n=n||"default";var w=p.get(g);if(!w){var C={loading:wp,preload:null};if(w=c.querySelector(Pd(g)))C.loading=Tv|Gi;else{e=Tt({rel:"stylesheet",href:e,"data-precedence":n},l),(l=Yi.get(g))&&fb(e,l);var D=w=c.createElement("link");$t(D),On(D,"link",e),D._p=new Promise(function(j,ae){D.onload=j,D.onerror=ae}),D.addEventListener("load",function(){C.loading|=Tv}),D.addEventListener("error",function(){C.loading|=s2}),C.loading|=Gi,Vc(w,n,c)}w={type:"stylesheet",instance:w,count:1,state:C},p.set(g,w)}}},M:function(e,n){qs.M(e,n);var l=ly;if(l&&e){var c=ga(l).hoistableScripts,p=cs(e),g=c.get(p);g||(g=l.querySelector(Id(p)),g||(e=Tt({src:e,async:!0,type:"module"},n),(n=Yi.get(p))&&db(e,n),g=l.createElement("script"),$t(g),On(g,"link",e),l.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(p,g))}}};var ly=typeof document>"u"?null:document,uw=null,mU=6e4,yU=800,gU=500,KR=0,WR=null,sw=null,xp=Ix,wv={$$typeof:Yl,Provider:null,Consumer:null,_currentValue:xp,_currentValue2:xp,_threadCount:0},d2="%c%s%c",p2="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",h2="",cw=" ",bU=Function.prototype.bind,m2=!1,y2=null,g2=null,b2=null,v2=null,S2=null,E2=null,T2=null,w2=null,x2=null,R2=null;y2=function(e,n,l,c){n=t(e,n),n!==null&&(l=a(n.memoizedState,l,0,c),n.memoizedState=l,n.baseState=l,e.memoizedProps=Tt({},e.memoizedProps),l=Ha(e,2),l!==null&&ft(l,e,2))},g2=function(e,n,l){n=t(e,n),n!==null&&(l=f(n.memoizedState,l,0),n.memoizedState=l,n.baseState=l,e.memoizedProps=Tt({},e.memoizedProps),l=Ha(e,2),l!==null&&ft(l,e,2))},b2=function(e,n,l,c){n=t(e,n),n!==null&&(l=i(n.memoizedState,l,c),n.memoizedState=l,n.baseState=l,e.memoizedProps=Tt({},e.memoizedProps),l=Ha(e,2),l!==null&&ft(l,e,2))},v2=function(e,n,l){e.pendingProps=a(e.memoizedProps,n,0,l),e.alternate&&(e.alternate.pendingProps=e.pendingProps),n=Ha(e,2),n!==null&&ft(n,e,2)},S2=function(e,n){e.pendingProps=f(e.memoizedProps,n,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),n=Ha(e,2),n!==null&&ft(n,e,2)},E2=function(e,n,l){e.pendingProps=i(e.memoizedProps,n,l),e.alternate&&(e.alternate.pendingProps=e.pendingProps),n=Ha(e,2),n!==null&&ft(n,e,2)},T2=function(e){var n=Ha(e,2);n!==null&&ft(n,e,2)},w2=function(e){var n=qe(),l=Ha(e,n);l!==null&&ft(l,e,n)},x2=function(e){h=e},R2=function(e){m=e};var fw=!0,dw=null,eC=!1,Cf=null,Af=null,_f=null,xv=new Map,Rv=new Map,Mf=[],vU="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(" "),pw=null;if(Gl.prototype.render=Tb.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error("Cannot update an unmounted root.");var l=arguments;typeof l[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):N(l[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof l[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),l=e;var c=n.current,p=Ia(c);dm(c,p,l,n,null,null)},Gl.prototype.unmount=Tb.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var n=e.containerInfo;(Pt&(Ua|Kl))!==Fa&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),dm(e.current,2,null,e,null,null),Hr(),n[So]=null}},Gl.prototype.unstable_scheduleHydration=function(e){if(e){var n=Bt();e={blockedOn:null,target:e,priority:n};for(var l=0;l<Mf.length&&n!==0&&n<Mf[l].priority;l++);Mf.splice(l,0,e),l===0&&Eb(e)}},(function(){var e=Fd.version;if(e!=="19.2.3")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
244
+ - react: `+(e+`
245
+ - react-dom: 19.2.3
246
+ Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Xt.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=V(n),e=e!==null?z(e):null,e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:Te,reconcilerVersion:"19.2.3"};return e.overrideHookState=y2,e.overrideHookStateDeletePath=g2,e.overrideHookStateRenamePath=b2,e.overrideProps=v2,e.overridePropsDeletePath=S2,e.overridePropsRenamePath=E2,e.scheduleUpdate=T2,e.scheduleRetry=w2,e.setErrorHandler=x2,e.setSuspenseHandler=R2,e.scheduleRefresh=M,e.scheduleRoot=A,e.setRefreshHandler=q,e.getCurrentFiber=un,Cr(e)})()&&yu&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var C2=window.location.protocol;/^(https?|file):$/.test(C2)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(C2==="file:"?`
247
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Av.createRoot=function(e,n){if(!N(e))throw Error("Target container is not a DOM element.");wb(e);var l=!1,c="",p=Rh,g=Ch,w=gg;return n!=null&&(n.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof n=="object"&&n!==null&&n.$$typeof===yl&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
248
+
249
+ let root = createRoot(domContainer);
250
+ root.render(<App />);`),n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(p=n.onUncaughtError),n.onCaughtError!==void 0&&(g=n.onCaughtError),n.onRecoverableError!==void 0&&(w=n.onRecoverableError)),n=Yd(e,1,!1,null,null,l,c,null,p,g,w,oT),e[So]=n.current,uu(e),new Tb(n)},Av.hydrateRoot=function(e,n,l){if(!N(e))throw Error("Target container is not a DOM element.");wb(e),n===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var c=!1,p="",g=Rh,w=Ch,C=gg,D=null;return l!=null&&(l.unstable_strictMode===!0&&(c=!0),l.identifierPrefix!==void 0&&(p=l.identifierPrefix),l.onUncaughtError!==void 0&&(g=l.onUncaughtError),l.onCaughtError!==void 0&&(w=l.onCaughtError),l.onRecoverableError!==void 0&&(C=l.onRecoverableError),l.formState!==void 0&&(D=l.formState)),n=Yd(e,1,!0,n,l??null,c,p,D,g,w,C,oT),n.context=aT(null),l=n.current,c=Ia(l),c=tt(c),p=ua(c),p.callback=null,pi(l,p,c),ci(c,"hydrateRoot()",null),l=c,n.current.lanes=l,ee(n,l),br(n),e[So]=n.current,uu(e),new Gl(n)},Av.version="19.2.3",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Av}var W2;function j8(){if(W2)return gw.exports;W2=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}}return process.env.NODE_ENV==="production"?(t(),gw.exports=D8()):gw.exports=N8(),gw.exports}var eq=j8(),Eu={},qw={exports:{}};qw.exports;var tq;function p4(){return tq||(tq=1,(function(t){const i=(m=0)=>h=>`\x1B[${38+m};5;${h}m`,u=(m=0)=>(h,y,b)=>`\x1B[${38+m};2;${h};${y};${b}m`;function f(){const m=new Map,h={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};h.color.gray=h.color.blackBright,h.bgColor.bgGray=h.bgColor.bgBlackBright,h.color.grey=h.color.blackBright,h.bgColor.bgGrey=h.bgColor.bgBlackBright;for(const[y,b]of Object.entries(h)){for(const[v,x]of Object.entries(b))h[v]={open:`\x1B[${x[0]}m`,close:`\x1B[${x[1]}m`},b[v]=h[v],m.set(x[0],x[1]);Object.defineProperty(h,y,{value:b,enumerable:!1})}return Object.defineProperty(h,"codes",{value:m,enumerable:!1}),h.color.close="\x1B[39m",h.bgColor.close="\x1B[49m",h.color.ansi256=i(),h.color.ansi16m=u(),h.bgColor.ansi256=i(10),h.bgColor.ansi16m=u(10),Object.defineProperties(h,{rgbToAnsi256:{value:(y,b,v)=>y===b&&b===v?y<8?16:y>248?231:Math.round((y-8)/247*24)+232:16+36*Math.round(y/255*5)+6*Math.round(b/255*5)+Math.round(v/255*5),enumerable:!1},hexToRgb:{value:y=>{const b=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(y.toString(16));if(!b)return[0,0,0];let{colorString:v}=b.groups;v.length===3&&(v=v.split("").map(E=>E+E).join(""));const x=Number.parseInt(v,16);return[x>>16&255,x>>8&255,x&255]},enumerable:!1},hexToAnsi256:{value:y=>h.rgbToAnsi256(...h.hexToRgb(y)),enumerable:!1}}),h}Object.defineProperty(t,"exports",{enumerable:!0,get:f})})(qw)),qw.exports}var Cp={},nq;function fx(){if(nq)return Cp;nq=1,Object.defineProperty(Cp,"__esModule",{value:!0}),Cp.printIteratorEntries=a,Cp.printIteratorValues=i,Cp.printListItems=u,Cp.printObjectProperties=f;const t=(m,h)=>{const y=Object.keys(m).sort(h);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(m).forEach(b=>{Object.getOwnPropertyDescriptor(m,b).enumerable&&y.push(b)}),y};function a(m,h,y,b,v,x,E=": "){let R="",A=m.next();if(!A.done){R+=h.spacingOuter;const M=y+h.indent;for(;!A.done;){const q=x(A.value[0],h,M,b,v),N=x(A.value[1],h,M,b,v);R+=M+q+E+N,A=m.next(),A.done?h.min||(R+=","):R+=","+h.spacingInner}R+=h.spacingOuter+y}return R}function i(m,h,y,b,v,x){let E="",R=m.next();if(!R.done){E+=h.spacingOuter;const A=y+h.indent;for(;!R.done;)E+=A+x(R.value,h,A,b,v),R=m.next(),R.done?h.min||(E+=","):E+=","+h.spacingInner;E+=h.spacingOuter+y}return E}function u(m,h,y,b,v,x){let E="";if(m.length){E+=h.spacingOuter;const R=y+h.indent;for(let A=0;A<m.length;A++)E+=R,A in m&&(E+=x(m[A],h,R,b,v)),A<m.length-1?E+=","+h.spacingInner:h.min||(E+=",");E+=h.spacingOuter+y}return E}function f(m,h,y,b,v,x){let E="";const R=t(m,h.compareKeys);if(R.length){E+=h.spacingOuter;const A=y+h.indent;for(let M=0;M<R.length;M++){const q=R[M],N=x(q,h,A,b,v),_=x(m[q],h,A,b,v);E+=A+N+": "+_,M<R.length-1?E+=","+h.spacingInner:h.min||(E+=",")}E+=h.spacingOuter+y}return E}return Cp}var Ns={},aq;function z8(){if(aq)return Ns;aq=1,Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.test=Ns.serialize=Ns.default=void 0;var t=fx(),a=(function(){return typeof globalThis<"u"?globalThis:typeof a<"u"?a:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),i=a["jest-symbol-do-not-touch"]||a.Symbol;const u=typeof i=="function"&&i.for?i.for("jest.asymmetricMatcher"):1267621,f=" ",m=(v,x,E,R,A,M)=>{const q=v.toString();return q==="ArrayContaining"||q==="ArrayNotContaining"?++R>x.maxDepth?"["+q+"]":q+f+"["+(0,t.printListItems)(v.sample,x,E,R,A,M)+"]":q==="ObjectContaining"||q==="ObjectNotContaining"?++R>x.maxDepth?"["+q+"]":q+f+"{"+(0,t.printObjectProperties)(v.sample,x,E,R,A,M)+"}":q==="StringMatching"||q==="StringNotMatching"||q==="StringContaining"||q==="StringNotContaining"?q+f+M(v.sample,x,E,R,A):v.toAsymmetricMatcher()};Ns.serialize=m;const h=v=>v&&v.$$typeof===u;Ns.test=h;var b={serialize:m,test:h};return Ns.default=b,Ns}var js={},fC,rq;function k8(){return rq||(rq=1,fC=({onlyFirst:t=!1}={})=>{const a=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(a,t?void 0:"g")}),fC}var lq;function B8(){if(lq)return js;lq=1,Object.defineProperty(js,"__esModule",{value:!0}),js.test=js.serialize=js.default=void 0;var t=i(k8()),a=i(p4());function i(b){return b&&b.__esModule?b:{default:b}}const u=b=>b.replace((0,t.default)(),v=>{switch(v){case a.default.red.close:case a.default.green.close:case a.default.cyan.close:case a.default.gray.close:case a.default.white.close:case a.default.yellow.close:case a.default.bgRed.close:case a.default.bgGreen.close:case a.default.bgYellow.close:case a.default.inverse.close:case a.default.dim.close:case a.default.bold.close:case a.default.reset.open:case a.default.reset.close:return"</>";case a.default.red.open:return"<red>";case a.default.green.open:return"<green>";case a.default.cyan.open:return"<cyan>";case a.default.gray.open:return"<gray>";case a.default.white.open:return"<white>";case a.default.yellow.open:return"<yellow>";case a.default.bgRed.open:return"<bgRed>";case a.default.bgGreen.open:return"<bgGreen>";case a.default.bgYellow.open:return"<bgYellow>";case a.default.inverse.open:return"<inverse>";case a.default.dim.open:return"<dim>";case a.default.bold.open:return"<bold>";default:return""}}),f=b=>typeof b=="string"&&!!b.match((0,t.default)());js.test=f;const m=(b,v,x,E,R,A)=>A(u(b),v,x,E,R);js.serialize=m;var y={serialize:m,test:f};return js.default=y,js}var zs={},iq;function U8(){if(iq)return zs;iq=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.test=zs.serialize=zs.default=void 0;var t=fx();const a=" ",i=["DOMStringMap","NamedNodeMap"],u=/^(HTML\w*Collection|NodeList)$/,f=x=>i.indexOf(x)!==-1||u.test(x),m=x=>x&&x.constructor&&!!x.constructor.name&&f(x.constructor.name);zs.test=m;const h=x=>x.constructor.name==="NamedNodeMap",y=(x,E,R,A,M,q)=>{const N=x.constructor.name;return++A>E.maxDepth?"["+N+"]":(E.min?"":N+a)+(i.indexOf(N)!==-1?"{"+(0,t.printObjectProperties)(h(x)?Array.from(x).reduce((_,L)=>(_[L.name]=L.value,_),{}):{...x},E,R,A,M,q)+"}":"["+(0,t.printListItems)(Array.from(x),E,R,A,M,q)+"]")};zs.serialize=y;var v={serialize:y,test:m};return zs.default=v,zs}var ks={},Jr={},vw={},oq;function L8(){if(oq)return vw;oq=1,Object.defineProperty(vw,"__esModule",{value:!0}),vw.default=t;function t(a){return a.replace(/</g,"&lt;").replace(/>/g,"&gt;")}return vw}var uq;function l_(){if(uq)return Jr;uq=1,Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.printText=Jr.printProps=Jr.printElementAsLeaf=Jr.printElement=Jr.printComment=Jr.printChildren=void 0;var t=a(L8());function a(b){return b&&b.__esModule?b:{default:b}}const i=(b,v,x,E,R,A,M)=>{const q=E+x.indent,N=x.colors;return b.map(_=>{const L=v[_];let $=M(L,x,q,R,A);return typeof L!="string"&&($.indexOf(`
251
+ `)!==-1&&($=x.spacingOuter+q+$+x.spacingOuter+E),$="{"+$+"}"),x.spacingInner+E+N.prop.open+_+N.prop.close+"="+N.value.open+$+N.value.close}).join("")};Jr.printProps=i;const u=(b,v,x,E,R,A)=>b.map(M=>v.spacingOuter+x+(typeof M=="string"?f(M,v):A(M,v,x,E,R))).join("");Jr.printChildren=u;const f=(b,v)=>{const x=v.colors.content;return x.open+(0,t.default)(b)+x.close};Jr.printText=f;const m=(b,v)=>{const x=v.colors.comment;return x.open+"<!--"+(0,t.default)(b)+"-->"+x.close};Jr.printComment=m;const h=(b,v,x,E,R)=>{const A=E.colors.tag;return A.open+"<"+b+(v&&A.close+v+E.spacingOuter+R+A.open)+(x?">"+A.close+x+E.spacingOuter+R+A.open+"</"+b:(v&&!E.min?"":" ")+"/")+">"+A.close};Jr.printElement=h;const y=(b,v)=>{const x=v.colors.tag;return x.open+"<"+b+x.close+" …"+x.open+" />"+x.close};return Jr.printElementAsLeaf=y,Jr}var sq;function $8(){if(sq)return ks;sq=1,Object.defineProperty(ks,"__esModule",{value:!0}),ks.test=ks.serialize=ks.default=void 0;var t=l_();const a=1,i=3,u=8,f=11,m=/^((HTML|SVG)\w*)?Element$/,h=q=>{try{return typeof q.hasAttribute=="function"&&q.hasAttribute("is")}catch{return!1}},y=q=>{const N=q.constructor.name,{nodeType:_,tagName:L}=q,$=typeof L=="string"&&L.includes("-")||h(q);return _===a&&(m.test(N)||$)||_===i&&N==="Text"||_===u&&N==="Comment"||_===f&&N==="DocumentFragment"},b=q=>{var N;return(q==null||(N=q.constructor)===null||N===void 0?void 0:N.name)&&y(q)};ks.test=b;function v(q){return q.nodeType===i}function x(q){return q.nodeType===u}function E(q){return q.nodeType===f}const R=(q,N,_,L,$,I)=>{if(v(q))return(0,t.printText)(q.data,N);if(x(q))return(0,t.printComment)(q.data,N);const V=E(q)?"DocumentFragment":q.tagName.toLowerCase();return++L>N.maxDepth?(0,t.printElementAsLeaf)(V,N):(0,t.printElement)(V,(0,t.printProps)(E(q)?[]:Array.from(q.attributes).map(z=>z.name).sort(),E(q)?{}:Array.from(q.attributes).reduce((z,k)=>(z[k.name]=k.value,z),{}),N,_+N.indent,L,$,I),(0,t.printChildren)(Array.prototype.slice.call(q.childNodes||q.children),N,_+N.indent,L,$,I),N,_)};ks.serialize=R;var M={serialize:R,test:b};return ks.default=M,ks}var Bs={},cq;function H8(){if(cq)return Bs;cq=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.test=Bs.serialize=Bs.default=void 0;var t=fx();const a="@@__IMMUTABLE_ITERABLE__@@",i="@@__IMMUTABLE_LIST__@@",u="@@__IMMUTABLE_KEYED__@@",f="@@__IMMUTABLE_MAP__@@",m="@@__IMMUTABLE_ORDERED__@@",h="@@__IMMUTABLE_RECORD__@@",y="@@__IMMUTABLE_SEQ__@@",b="@@__IMMUTABLE_SET__@@",v="@@__IMMUTABLE_STACK__@@",x=k=>"Immutable."+k,E=k=>"["+k+"]",R=" ",A="…",M=(k,U,F,H,J,ve,se)=>++H>U.maxDepth?E(x(se)):x(se)+R+"{"+(0,t.printIteratorEntries)(k.entries(),U,F,H,J,ve)+"}";function q(k){let U=0;return{next(){if(U<k._keys.length){const F=k._keys[U++];return{done:!1,value:[F,k.get(F)]}}return{done:!0,value:void 0}}}}const N=(k,U,F,H,J,ve)=>{const se=x(k._name||"Record");return++H>U.maxDepth?E(se):se+R+"{"+(0,t.printIteratorEntries)(q(k),U,F,H,J,ve)+"}"},_=(k,U,F,H,J,ve)=>{const se=x("Seq");return++H>U.maxDepth?E(se):k[u]?se+R+"{"+(k._iter||k._object?(0,t.printIteratorEntries)(k.entries(),U,F,H,J,ve):A)+"}":se+R+"["+(k._iter||k._array||k._collection||k._iterable?(0,t.printIteratorValues)(k.values(),U,F,H,J,ve):A)+"]"},L=(k,U,F,H,J,ve,se)=>++H>U.maxDepth?E(x(se)):x(se)+R+"["+(0,t.printIteratorValues)(k.values(),U,F,H,J,ve)+"]",$=(k,U,F,H,J,ve)=>k[f]?M(k,U,F,H,J,ve,k[m]?"OrderedMap":"Map"):k[i]?L(k,U,F,H,J,ve,"List"):k[b]?L(k,U,F,H,J,ve,k[m]?"OrderedSet":"Set"):k[v]?L(k,U,F,H,J,ve,"Stack"):k[y]?_(k,U,F,H,J,ve):N(k,U,F,H,J,ve);Bs.serialize=$;const I=k=>k&&(k[a]===!0||k[h]===!0);Bs.test=I;var z={serialize:$,test:I};return Bs.default=z,Bs}var Us={},Sw={exports:{}},bn={};var fq;function P8(){if(fq)return bn;fq=1;var t=60103,a=60106,i=60107,u=60108,f=60114,m=60109,h=60110,y=60112,b=60113,v=60120,x=60115,E=60116,R=60121,A=60122,M=60117,q=60129,N=60131;if(typeof Symbol=="function"&&Symbol.for){var _=Symbol.for;t=_("react.element"),a=_("react.portal"),i=_("react.fragment"),u=_("react.strict_mode"),f=_("react.profiler"),m=_("react.provider"),h=_("react.context"),y=_("react.forward_ref"),b=_("react.suspense"),v=_("react.suspense_list"),x=_("react.memo"),E=_("react.lazy"),R=_("react.block"),A=_("react.server.block"),M=_("react.fundamental"),q=_("react.debug_trace_mode"),N=_("react.legacy_hidden")}function L(se){if(typeof se=="object"&&se!==null){var Se=se.$$typeof;switch(Se){case t:switch(se=se.type,se){case i:case f:case u:case b:case v:return se;default:switch(se=se&&se.$$typeof,se){case h:case y:case E:case x:case m:return se;default:return Se}}case a:return Se}}}var $=m,I=t,V=y,z=i,k=E,U=x,F=a,H=f,J=u,ve=b;return bn.ContextConsumer=h,bn.ContextProvider=$,bn.Element=I,bn.ForwardRef=V,bn.Fragment=z,bn.Lazy=k,bn.Memo=U,bn.Portal=F,bn.Profiler=H,bn.StrictMode=J,bn.Suspense=ve,bn.isAsyncMode=function(){return!1},bn.isConcurrentMode=function(){return!1},bn.isContextConsumer=function(se){return L(se)===h},bn.isContextProvider=function(se){return L(se)===m},bn.isElement=function(se){return typeof se=="object"&&se!==null&&se.$$typeof===t},bn.isForwardRef=function(se){return L(se)===y},bn.isFragment=function(se){return L(se)===i},bn.isLazy=function(se){return L(se)===E},bn.isMemo=function(se){return L(se)===x},bn.isPortal=function(se){return L(se)===a},bn.isProfiler=function(se){return L(se)===f},bn.isStrictMode=function(se){return L(se)===u},bn.isSuspense=function(se){return L(se)===b},bn.isValidElementType=function(se){return typeof se=="string"||typeof se=="function"||se===i||se===f||se===q||se===u||se===b||se===v||se===N||typeof se=="object"&&se!==null&&(se.$$typeof===E||se.$$typeof===x||se.$$typeof===m||se.$$typeof===h||se.$$typeof===y||se.$$typeof===M||se.$$typeof===R||se[0]===A)},bn.typeOf=L,bn}var vn={};var dq;function I8(){return dq||(dq=1,process.env.NODE_ENV!=="production"&&(function(){var t=60103,a=60106,i=60107,u=60108,f=60114,m=60109,h=60110,y=60112,b=60113,v=60120,x=60115,E=60116,R=60121,A=60122,M=60117,q=60129,N=60131;if(typeof Symbol=="function"&&Symbol.for){var _=Symbol.for;t=_("react.element"),a=_("react.portal"),i=_("react.fragment"),u=_("react.strict_mode"),f=_("react.profiler"),m=_("react.provider"),h=_("react.context"),y=_("react.forward_ref"),b=_("react.suspense"),v=_("react.suspense_list"),x=_("react.memo"),E=_("react.lazy"),R=_("react.block"),A=_("react.server.block"),M=_("react.fundamental"),_("react.scope"),_("react.opaque.id"),q=_("react.debug_trace_mode"),_("react.offscreen"),N=_("react.legacy_hidden")}var L=!1;function $(de){return!!(typeof de=="string"||typeof de=="function"||de===i||de===f||de===q||de===u||de===b||de===v||de===N||L||typeof de=="object"&&de!==null&&(de.$$typeof===E||de.$$typeof===x||de.$$typeof===m||de.$$typeof===h||de.$$typeof===y||de.$$typeof===M||de.$$typeof===R||de[0]===A))}function I(de){if(typeof de=="object"&&de!==null){var ut=de.$$typeof;switch(ut){case t:var dt=de.type;switch(dt){case i:case f:case u:case b:case v:return dt;default:var Ue=dt&&dt.$$typeof;switch(Ue){case h:case y:case E:case x:case m:return Ue;default:return ut}}case a:return ut}}}var V=h,z=m,k=t,U=y,F=i,H=E,J=x,ve=a,se=f,Se=u,ke=b,P=!1,ue=!1;function te(de){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function De(de){return ue||(ue=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function je(de){return I(de)===h}function Ye(de){return I(de)===m}function Xe(de){return typeof de=="object"&&de!==null&&de.$$typeof===t}function xe(de){return I(de)===y}function Ie(de){return I(de)===i}function Je(de){return I(de)===E}function at(de){return I(de)===x}function Lt(de){return I(de)===a}function an(de){return I(de)===f}function ie(de){return I(de)===u}function Pe(de){return I(de)===b}vn.ContextConsumer=V,vn.ContextProvider=z,vn.Element=k,vn.ForwardRef=U,vn.Fragment=F,vn.Lazy=H,vn.Memo=J,vn.Portal=ve,vn.Profiler=se,vn.StrictMode=Se,vn.Suspense=ke,vn.isAsyncMode=te,vn.isConcurrentMode=De,vn.isContextConsumer=je,vn.isContextProvider=Ye,vn.isElement=Xe,vn.isForwardRef=xe,vn.isFragment=Ie,vn.isLazy=Je,vn.isMemo=at,vn.isPortal=Lt,vn.isProfiler=an,vn.isStrictMode=ie,vn.isSuspense=Pe,vn.isValidElementType=$,vn.typeOf=I})()),vn}var pq;function V8(){return pq||(pq=1,process.env.NODE_ENV==="production"?Sw.exports=P8():Sw.exports=I8()),Sw.exports}var hq;function G8(){if(hq)return Us;hq=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.test=Us.serialize=Us.default=void 0;var t=u(V8()),a=l_();function i(E){if(typeof WeakMap!="function")return null;var R=new WeakMap,A=new WeakMap;return(i=function(M){return M?A:R})(E)}function u(E,R){if(E&&E.__esModule)return E;if(E===null||typeof E!="object"&&typeof E!="function")return{default:E};var A=i(R);if(A&&A.has(E))return A.get(E);var M={},q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var N in E)if(N!=="default"&&Object.prototype.hasOwnProperty.call(E,N)){var _=q?Object.getOwnPropertyDescriptor(E,N):null;_&&(_.get||_.set)?Object.defineProperty(M,N,_):M[N]=E[N]}return M.default=E,A&&A.set(E,M),M}const f=(E,R=[])=>(Array.isArray(E)?E.forEach(A=>{f(A,R)}):E!=null&&E!==!1&&R.push(E),R),m=E=>{const R=E.type;if(typeof R=="string")return R;if(typeof R=="function")return R.displayName||R.name||"Unknown";if(t.isFragment(E))return"React.Fragment";if(t.isSuspense(E))return"React.Suspense";if(typeof R=="object"&&R!==null){if(t.isContextProvider(E))return"Context.Provider";if(t.isContextConsumer(E))return"Context.Consumer";if(t.isForwardRef(E)){if(R.displayName)return R.displayName;const A=R.render.displayName||R.render.name||"";return A!==""?"ForwardRef("+A+")":"ForwardRef"}if(t.isMemo(E)){const A=R.displayName||R.type.displayName||R.type.name||"";return A!==""?"Memo("+A+")":"Memo"}}return"UNDEFINED"},h=E=>{const{props:R}=E;return Object.keys(R).filter(A=>A!=="children"&&R[A]!==void 0).sort()},y=(E,R,A,M,q,N)=>++M>R.maxDepth?(0,a.printElementAsLeaf)(m(E),R):(0,a.printElement)(m(E),(0,a.printProps)(h(E),E.props,R,A+R.indent,M,q,N),(0,a.printChildren)(f(E.props.children),R,A+R.indent,M,q,N),R,A);Us.serialize=y;const b=E=>E!=null&&t.isElement(E);Us.test=b;var x={serialize:y,test:b};return Us.default=x,Us}var Ls={},mq;function Y8(){if(mq)return Ls;mq=1,Object.defineProperty(Ls,"__esModule",{value:!0}),Ls.test=Ls.serialize=Ls.default=void 0;var t=l_(),a=(function(){return typeof globalThis<"u"?globalThis:typeof a<"u"?a:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),i=a["jest-symbol-do-not-touch"]||a.Symbol;const u=typeof i=="function"&&i.for?i.for("react.test.json"):245830487,f=v=>{const{props:x}=v;return x?Object.keys(x).filter(E=>x[E]!==void 0).sort():[]},m=(v,x,E,R,A,M)=>++R>x.maxDepth?(0,t.printElementAsLeaf)(v.type,x):(0,t.printElement)(v.type,v.props?(0,t.printProps)(f(v),v.props,x,E+x.indent,R,A,M):"",v.children?(0,t.printChildren)(v.children,x,E+x.indent,R,A,M):"",x,E);Ls.serialize=m;const h=v=>v&&v.$$typeof===u;Ls.test=h;var b={serialize:m,test:h};return Ls.default=b,Ls}var yq;function X8(){if(yq)return Eu;yq=1,Object.defineProperty(Eu,"__esModule",{value:!0}),Eu.default=Eu.DEFAULT_OPTIONS=void 0,Eu.format=at,Eu.plugins=void 0;var t=v(p4()),a=fx(),i=v(z8()),u=v(B8()),f=v(U8()),m=v($8()),h=v(H8()),y=v(G8()),b=v(Y8());function v(ie){return ie&&ie.__esModule?ie:{default:ie}}const x=Object.prototype.toString,E=Date.prototype.toISOString,R=Error.prototype.toString,A=RegExp.prototype.toString,M=ie=>typeof ie.constructor=="function"&&ie.constructor.name||"Object",q=ie=>typeof window<"u"&&ie===window,N=/^Symbol\((.*)\)(.*)$/,_=/\n/gi;class L extends Error{constructor(Pe,de){super(Pe),this.stack=de,this.name=this.constructor.name}}function $(ie){return ie==="[object Array]"||ie==="[object ArrayBuffer]"||ie==="[object DataView]"||ie==="[object Float32Array]"||ie==="[object Float64Array]"||ie==="[object Int8Array]"||ie==="[object Int16Array]"||ie==="[object Int32Array]"||ie==="[object Uint8Array]"||ie==="[object Uint8ClampedArray]"||ie==="[object Uint16Array]"||ie==="[object Uint32Array]"}function I(ie){return Object.is(ie,-0)?"-0":String(ie)}function V(ie){return`${ie}n`}function z(ie,Pe){return Pe?"[Function "+(ie.name||"anonymous")+"]":"[Function]"}function k(ie){return String(ie).replace(N,"Symbol($1)")}function U(ie){return"["+R.call(ie)+"]"}function F(ie,Pe,de,ut){if(ie===!0||ie===!1)return""+ie;if(ie===void 0)return"undefined";if(ie===null)return"null";const dt=typeof ie;if(dt==="number")return I(ie);if(dt==="bigint")return V(ie);if(dt==="string")return ut?'"'+ie.replace(/"|\\/g,"\\$&")+'"':'"'+ie+'"';if(dt==="function")return z(ie,Pe);if(dt==="symbol")return k(ie);const Ue=x.call(ie);return Ue==="[object WeakMap]"?"WeakMap {}":Ue==="[object WeakSet]"?"WeakSet {}":Ue==="[object Function]"||Ue==="[object GeneratorFunction]"?z(ie,Pe):Ue==="[object Symbol]"?k(ie):Ue==="[object Date]"?isNaN(+ie)?"Date { NaN }":E.call(ie):Ue==="[object Error]"?U(ie):Ue==="[object RegExp]"?de?A.call(ie).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):A.call(ie):ie instanceof Error?U(ie):null}function H(ie,Pe,de,ut,dt,Ue){if(dt.indexOf(ie)!==-1)return"[Circular]";dt=dt.slice(),dt.push(ie);const Nt=++ut>Pe.maxDepth,Ke=Pe.min;if(Pe.callToJSON&&!Nt&&ie.toJSON&&typeof ie.toJSON=="function"&&!Ue)return Se(ie.toJSON(),Pe,de,ut,dt,!0);const Tn=x.call(ie);return Tn==="[object Arguments]"?Nt?"[Arguments]":(Ke?"":"Arguments ")+"["+(0,a.printListItems)(ie,Pe,de,ut,dt,Se)+"]":$(Tn)?Nt?"["+ie.constructor.name+"]":(Ke||!Pe.printBasicPrototype&&ie.constructor.name==="Array"?"":ie.constructor.name+" ")+"["+(0,a.printListItems)(ie,Pe,de,ut,dt,Se)+"]":Tn==="[object Map]"?Nt?"[Map]":"Map {"+(0,a.printIteratorEntries)(ie.entries(),Pe,de,ut,dt,Se," => ")+"}":Tn==="[object Set]"?Nt?"[Set]":"Set {"+(0,a.printIteratorValues)(ie.values(),Pe,de,ut,dt,Se)+"}":Nt||q(ie)?"["+M(ie)+"]":(Ke||!Pe.printBasicPrototype&&M(ie)==="Object"?"":M(ie)+" ")+"{"+(0,a.printObjectProperties)(ie,Pe,de,ut,dt,Se)+"}"}function J(ie){return ie.serialize!=null}function ve(ie,Pe,de,ut,dt,Ue){let Nt;try{Nt=J(ie)?ie.serialize(Pe,de,ut,dt,Ue,Se):ie.print(Pe,Ke=>Se(Ke,de,ut,dt,Ue),Ke=>{const Tn=ut+de.indent;return Tn+Ke.replace(_,`
252
+ `+Tn)},{edgeSpacing:de.spacingOuter,min:de.min,spacing:de.spacingInner},de.colors)}catch(Ke){throw new L(Ke.message,Ke.stack)}if(typeof Nt!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof Nt}".`);return Nt}function se(ie,Pe){for(let de=0;de<ie.length;de++)try{if(ie[de].test(Pe))return ie[de]}catch(ut){throw new L(ut.message,ut.stack)}return null}function Se(ie,Pe,de,ut,dt,Ue){const Nt=se(Pe.plugins,ie);if(Nt!==null)return ve(Nt,ie,Pe,de,ut,dt);const Ke=F(ie,Pe.printFunctionName,Pe.escapeRegex,Pe.escapeString);return Ke!==null?Ke:H(ie,Pe,de,ut,dt,Ue)}const ke={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},P=Object.keys(ke),ue={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:ke};Eu.DEFAULT_OPTIONS=ue;function te(ie){if(Object.keys(ie).forEach(Pe=>{if(!ue.hasOwnProperty(Pe))throw new Error(`pretty-format: Unknown option "${Pe}".`)}),ie.min&&ie.indent!==void 0&&ie.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(ie.theme!==void 0){if(ie.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof ie.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof ie.theme}".`)}}const De=ie=>P.reduce((Pe,de)=>{const ut=ie.theme&&ie.theme[de]!==void 0?ie.theme[de]:ke[de],dt=ut&&t.default[ut];if(dt&&typeof dt.close=="string"&&typeof dt.open=="string")Pe[de]=dt;else throw new Error(`pretty-format: Option "theme" has a key "${de}" whose value "${ut}" is undefined in ansi-styles.`);return Pe},Object.create(null)),je=()=>P.reduce((ie,Pe)=>(ie[Pe]={close:"",open:""},ie),Object.create(null)),Ye=ie=>ie&&ie.printFunctionName!==void 0?ie.printFunctionName:ue.printFunctionName,Xe=ie=>ie&&ie.escapeRegex!==void 0?ie.escapeRegex:ue.escapeRegex,xe=ie=>ie&&ie.escapeString!==void 0?ie.escapeString:ue.escapeString,Ie=ie=>{var Pe;return{callToJSON:ie&&ie.callToJSON!==void 0?ie.callToJSON:ue.callToJSON,colors:ie&&ie.highlight?De(ie):je(),compareKeys:ie&&typeof ie.compareKeys=="function"?ie.compareKeys:ue.compareKeys,escapeRegex:Xe(ie),escapeString:xe(ie),indent:ie&&ie.min?"":Je(ie&&ie.indent!==void 0?ie.indent:ue.indent),maxDepth:ie&&ie.maxDepth!==void 0?ie.maxDepth:ue.maxDepth,min:ie&&ie.min!==void 0?ie.min:ue.min,plugins:ie&&ie.plugins!==void 0?ie.plugins:ue.plugins,printBasicPrototype:(Pe=ie?.printBasicPrototype)!==null&&Pe!==void 0?Pe:!0,printFunctionName:Ye(ie),spacingInner:ie&&ie.min?" ":`
253
+ `,spacingOuter:ie&&ie.min?"":`
254
+ `}};function Je(ie){return new Array(ie+1).join(" ")}function at(ie,Pe){if(Pe&&(te(Pe),Pe.plugins)){const ut=se(Pe.plugins,ie);if(ut!==null)return ve(ut,ie,Ie(Pe),"",0,[])}const de=F(ie,Ye(Pe),Xe(Pe),xe(Pe));return de!==null?de:H(ie,Ie(Pe),"",0,[])}const Lt={AsymmetricMatcher:i.default,ConvertAnsi:u.default,DOMCollection:f.default,DOMElement:m.default,Immutable:h.default,ReactElement:y.default,ReactTestComponent:b.default};Eu.plugins=Lt;var an=at;return Eu.default=an,Eu}var h4=X8(),F8=Object.prototype.toString;function Q8(t){return typeof t=="function"||F8.call(t)==="[object Function]"}function Z8(t){var a=Number(t);return isNaN(a)?0:a===0||!isFinite(a)?a:(a>0?1:-1)*Math.floor(Math.abs(a))}var J8=Math.pow(2,53)-1;function K8(t){var a=Z8(t);return Math.min(Math.max(a,0),J8)}function Mo(t,a){var i=Array,u=Object(t);if(t==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");for(var f=K8(u.length),m=Q8(i)?Object(new i(f)):new Array(f),h=0,y;h<f;)y=u[h],m[h]=y,h+=1;return m.length=f,m}function MS(t){"@babel/helpers - typeof";return MS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},MS(t)}function W8(t,a){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}function e9(t,a){for(var i=0;i<a.length;i++){var u=a[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,m4(u.key),u)}}function t9(t,a,i){return a&&e9(t.prototype,a),Object.defineProperty(t,"prototype",{writable:!1}),t}function n9(t,a,i){return a=m4(a),a in t?Object.defineProperty(t,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[a]=i,t}function m4(t){var a=a9(t,"string");return MS(a)==="symbol"?a:String(a)}function a9(t,a){if(MS(t)!=="object"||t===null)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var u=i.call(t,a);if(MS(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(t)}var r9=(function(){function t(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];W8(this,t),n9(this,"items",void 0),this.items=a}return t9(t,[{key:"add",value:function(i){return this.has(i)===!1&&this.items.push(i),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(i){var u=this.items.length;return this.items=this.items.filter(function(f){return f!==i}),u!==this.items.length}},{key:"forEach",value:function(i){var u=this;this.items.forEach(function(f){i(f,f,u)})}},{key:"has",value:function(i){return this.items.indexOf(i)!==-1}},{key:"size",get:function(){return this.items.length}}]),t})();const l9=typeof Set>"u"?Set:r9;function Rr(t){var a;return(a=t.localName)!==null&&a!==void 0?a:t.tagName.toLowerCase()}var i9={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},o9={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function u9(t,a){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(i){var u;return t.hasAttribute(i)&&!((u=o9[a])!==null&&u!==void 0&&u.has(i))})}function y4(t,a){return u9(t,a)}function s9(t){var a=f9(t);if(a===null||a==="presentation"){var i=c9(t);if(a!=="presentation"||y4(t,i||""))return i}return a}function c9(t){var a=i9[Rr(t)];if(a!==void 0)return a;switch(Rr(t)){case"a":case"area":case"link":if(t.hasAttribute("href"))return"link";break;case"img":return t.getAttribute("alt")===""&&!y4(t,"img")?"presentation":"img";case"input":{var i=t,u=i.type;switch(u){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return u;case"range":return"slider";case"email":case"tel":case"text":case"url":return t.hasAttribute("list")?"combobox":"textbox";case"search":return t.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return t.hasAttribute("multiple")||t.size>1?"listbox":"combobox"}return null}function f9(t){var a=t.getAttribute("role");if(a!==null){var i=a.trim().split(" ")[0];if(i.length>0)return i}return null}function Gn(t){return t!==null&&t.nodeType===t.ELEMENT_NODE}function g4(t){return Gn(t)&&Rr(t)==="caption"}function Dw(t){return Gn(t)&&Rr(t)==="input"}function d9(t){return Gn(t)&&Rr(t)==="optgroup"}function p9(t){return Gn(t)&&Rr(t)==="select"}function h9(t){return Gn(t)&&Rr(t)==="table"}function m9(t){return Gn(t)&&Rr(t)==="textarea"}function y9(t){var a=t.ownerDocument===null?t:t.ownerDocument,i=a.defaultView;if(i===null)throw new TypeError("no window available");return i}function g9(t){return Gn(t)&&Rr(t)==="fieldset"}function b9(t){return Gn(t)&&Rr(t)==="legend"}function v9(t){return Gn(t)&&Rr(t)==="slot"}function S9(t){return Gn(t)&&t.ownerSVGElement!==void 0}function E9(t){return Gn(t)&&Rr(t)==="svg"}function T9(t){return S9(t)&&Rr(t)==="title"}function Iw(t,a){if(Gn(t)&&t.hasAttribute(a)){var i=t.getAttribute(a).split(" "),u=t.getRootNode?t.getRootNode():t.ownerDocument;return i.map(function(f){return u.getElementById(f)}).filter(function(f){return f!==null})}return[]}function Xs(t,a){return Gn(t)?a.indexOf(s9(t))!==-1:!1}function w9(t){return t.trim().replace(/\s\s+/g," ")}function x9(t,a){if(!Gn(t))return!1;if(t.hasAttribute("hidden")||t.getAttribute("aria-hidden")==="true")return!0;var i=a(t);return i.getPropertyValue("display")==="none"||i.getPropertyValue("visibility")==="hidden"}function R9(t){return Xs(t,["button","combobox","listbox","textbox"])||b4(t,"range")}function b4(t,a){if(!Gn(t))return!1;switch(a){case"range":return Xs(t,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(a,"'. This is likely a bug :("))}}function gq(t,a){var i=Mo(t.querySelectorAll(a));return Iw(t,"aria-owns").forEach(function(u){i.push.apply(i,Mo(u.querySelectorAll(a)))}),i}function C9(t){return p9(t)?t.selectedOptions||gq(t,"[selected]"):gq(t,'[aria-selected="true"]')}function A9(t){return Xs(t,["none","presentation"])}function _9(t){return g4(t)}function M9(t){return Xs(t,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function O9(t){return!1}function q9(t){return Dw(t)||m9(t)?t.value:t.textContent||""}function bq(t){var a=t.getPropertyValue("content");return/^["'].*["']$/.test(a)?a.slice(1,-1):""}function v4(t){var a=Rr(t);return a==="button"||a==="input"&&t.getAttribute("type")!=="hidden"||a==="meter"||a==="output"||a==="progress"||a==="select"||a==="textarea"}function S4(t){if(v4(t))return t;var a=null;return t.childNodes.forEach(function(i){if(a===null&&Gn(i)){var u=S4(i);u!==null&&(a=u)}}),a}function D9(t){if(t.control!==void 0)return t.control;var a=t.getAttribute("for");return a!==null?t.ownerDocument.getElementById(a):S4(t)}function N9(t){var a=t.labels;if(a===null)return a;if(a!==void 0)return Mo(a);if(!v4(t))return null;var i=t.ownerDocument;return Mo(i.querySelectorAll("label")).filter(function(u){return D9(u)===t})}function j9(t){var a=t.assignedNodes();return a.length===0?Mo(t.childNodes):a}function E4(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=new l9,u=y9(t),f=a.compute,m=f===void 0?"name":f,h=a.computedStyleSupportsPseudoElements,y=h===void 0?a.getComputedStyle!==void 0:h,b=a.getComputedStyle,v=b===void 0?u.getComputedStyle.bind(u):b,x=a.hidden,E=x===void 0?!1:x;function R(_,L){var $="";if(Gn(_)&&y){var I=v(_,"::before"),V=bq(I);$="".concat(V," ").concat($)}var z=v9(_)?j9(_):Mo(_.childNodes).concat(Iw(_,"aria-owns"));if(z.forEach(function(F){var H=N(F,{isEmbeddedInLabel:L.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),J=Gn(F)?v(F).getPropertyValue("display"):"inline",ve=J!=="inline"?" ":"";$+="".concat(ve).concat(H).concat(ve)}),Gn(_)&&y){var k=v(_,"::after"),U=bq(k);$="".concat($," ").concat(U)}return $.trim()}function A(_,L){var $=_.getAttributeNode(L);return $!==null&&!i.has($)&&$.value.trim()!==""?(i.add($),$.value):null}function M(_){return Gn(_)?A(_,"title"):null}function q(_){if(!Gn(_))return null;if(g9(_)){i.add(_);for(var L=Mo(_.childNodes),$=0;$<L.length;$+=1){var I=L[$];if(b9(I))return N(I,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(h9(_)){i.add(_);for(var V=Mo(_.childNodes),z=0;z<V.length;z+=1){var k=V[z];if(g4(k))return N(k,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(E9(_)){i.add(_);for(var U=Mo(_.childNodes),F=0;F<U.length;F+=1){var H=U[F];if(T9(H))return H.textContent}return null}else if(Rr(_)==="img"||Rr(_)==="area"){var J=A(_,"alt");if(J!==null)return J}else if(d9(_)){var ve=A(_,"label");if(ve!==null)return ve}if(Dw(_)&&(_.type==="button"||_.type==="submit"||_.type==="reset")){var se=A(_,"value");if(se!==null)return se;if(_.type==="submit")return"Submit";if(_.type==="reset")return"Reset"}var Se=N9(_);if(Se!==null&&Se.length!==0)return i.add(_),Mo(Se).map(function(te){return N(te,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(te){return te.length>0}).join(" ");if(Dw(_)&&_.type==="image"){var ke=A(_,"alt");if(ke!==null)return ke;var P=A(_,"title");return P!==null?P:"Submit Query"}if(Xs(_,["button"])){var ue=R(_,{isEmbeddedInLabel:!1});if(ue!=="")return ue}return null}function N(_,L){if(i.has(_))return"";if(!E&&x9(_,v)&&!L.isReferenced)return i.add(_),"";var $=Gn(_)?_.getAttributeNode("aria-labelledby"):null,I=$!==null&&!i.has($)?Iw(_,"aria-labelledby"):[];if(m==="name"&&!L.isReferenced&&I.length>0)return i.add($),I.map(function(J){return N(J,{isEmbeddedInLabel:L.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var V=L.recursion&&R9(_)&&m==="name";if(!V){var z=(Gn(_)&&_.getAttribute("aria-label")||"").trim();if(z!==""&&m==="name")return i.add(_),z;if(!A9(_)){var k=q(_);if(k!==null)return i.add(_),k}}if(Xs(_,["menu"]))return i.add(_),"";if(V||L.isEmbeddedInLabel||L.isReferenced){if(Xs(_,["combobox","listbox"])){i.add(_);var U=C9(_);return U.length===0?Dw(_)?_.value:"":Mo(U).map(function(J){return N(J,{isEmbeddedInLabel:L.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(b4(_,"range"))return i.add(_),_.hasAttribute("aria-valuetext")?_.getAttribute("aria-valuetext"):_.hasAttribute("aria-valuenow")?_.getAttribute("aria-valuenow"):_.getAttribute("value")||"";if(Xs(_,["textbox"]))return i.add(_),q9(_)}if(M9(_)||Gn(_)&&L.isReferenced||_9(_)||O9()){var F=R(_,{isEmbeddedInLabel:L.isEmbeddedInLabel});if(F!=="")return i.add(_),F}if(_.nodeType===_.TEXT_NODE)return i.add(_),_.textContent||"";if(L.recursion)return i.add(_),R(_,{isEmbeddedInLabel:L.isEmbeddedInLabel});var H=M(_);return H!==null?(i.add(_),H):(i.add(_),"")}return w9(N(t,{isEmbeddedInLabel:!1,isReferenced:m==="description",recursion:!1}))}function OS(t){"@babel/helpers - typeof";return OS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},OS(t)}function vq(t,a){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);a&&(u=u.filter(function(f){return Object.getOwnPropertyDescriptor(t,f).enumerable})),i.push.apply(i,u)}return i}function Sq(t){for(var a=1;a<arguments.length;a++){var i=arguments[a]!=null?arguments[a]:{};a%2?vq(Object(i),!0).forEach(function(u){z9(t,u,i[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):vq(Object(i)).forEach(function(u){Object.defineProperty(t,u,Object.getOwnPropertyDescriptor(i,u))})}return t}function z9(t,a,i){return a=k9(a),a in t?Object.defineProperty(t,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[a]=i,t}function k9(t){var a=B9(t,"string");return OS(a)==="symbol"?a:String(a)}function B9(t,a){if(OS(t)!=="object"||t===null)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var u=i.call(t,a);if(OS(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(t)}function T4(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=Iw(t,"aria-describedby").map(function(f){return E4(f,Sq(Sq({},a),{},{compute:"description"}))}).join(" ");if(i===""){var u=t.getAttribute("title");i=u===null?"":u}return i}function U9(t){return Xs(t,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}function i_(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return U9(t)?"":E4(t,a)}var ei={},_v={},Ew={},Mv={},Eq;function L9(){if(Eq)return Mv;Eq=1,Object.defineProperty(Mv,"__esModule",{value:!0}),Mv.default=void 0;function t(){var i=this,u=0,f={"@@iterator":function(){return f},next:function(){if(u<i.length){var h=i[u];return u=u+1,{done:!1,value:h}}else return{done:!0}}};return f}var a=t;return Mv.default=a,Mv}var Tq;function BS(){if(Tq)return Ew;Tq=1,Object.defineProperty(Ew,"__esModule",{value:!0}),Ew.default=u;var t=a(L9());function a(f){return f&&f.__esModule?f:{default:f}}function i(f){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},i(f)}function u(f,m){return typeof Symbol=="function"&&i(Symbol.iterator)==="symbol"&&Object.defineProperty(f,Symbol.iterator,{value:t.default.bind(m)}),f}return Ew}var wq;function $9(){if(wq)return _v;wq=1,Object.defineProperty(_v,"__esModule",{value:!0}),_v.default=void 0;var t=a(BS());function a(R){return R&&R.__esModule?R:{default:R}}function i(R,A){return m(R)||f(R,A)||y(R,A)||u()}function u(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
255
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(R,A){var M=R==null?null:typeof Symbol<"u"&&R[Symbol.iterator]||R["@@iterator"];if(M!=null){var q=[],N=!0,_=!1,L,$;try{for(M=M.call(R);!(N=(L=M.next()).done)&&(q.push(L.value),!(A&&q.length===A));N=!0);}catch(I){_=!0,$=I}finally{try{!N&&M.return!=null&&M.return()}finally{if(_)throw $}}return q}}function m(R){if(Array.isArray(R))return R}function h(R,A){var M=typeof Symbol<"u"&&R[Symbol.iterator]||R["@@iterator"];if(!M){if(Array.isArray(R)||(M=y(R))||A){M&&(R=M);var q=0,N=function(){};return{s:N,n:function(){return q>=R.length?{done:!0}:{done:!1,value:R[q++]}},e:function(V){throw V},f:N}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
256
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _=!0,L=!1,$;return{s:function(){M=M.call(R)},n:function(){var V=M.next();return _=V.done,V},e:function(V){L=!0,$=V},f:function(){try{!_&&M.return!=null&&M.return()}finally{if(L)throw $}}}}function y(R,A){if(R){if(typeof R=="string")return b(R,A);var M=Object.prototype.toString.call(R).slice(8,-1);if(M==="Object"&&R.constructor&&(M=R.constructor.name),M==="Map"||M==="Set")return Array.from(R);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return b(R,A)}}function b(R,A){(A==null||A>R.length)&&(A=R.length);for(var M=0,q=new Array(A);M<A;M++)q[M]=R[M];return q}var v=[["aria-activedescendant",{type:"id"}],["aria-atomic",{type:"boolean"}],["aria-autocomplete",{type:"token",values:["inline","list","both","none"]}],["aria-braillelabel",{type:"string"}],["aria-brailleroledescription",{type:"string"}],["aria-busy",{type:"boolean"}],["aria-checked",{type:"tristate"}],["aria-colcount",{type:"integer"}],["aria-colindex",{type:"integer"}],["aria-colspan",{type:"integer"}],["aria-controls",{type:"idlist"}],["aria-current",{type:"token",values:["page","step","location","date","time",!0,!1]}],["aria-describedby",{type:"idlist"}],["aria-description",{type:"string"}],["aria-details",{type:"id"}],["aria-disabled",{type:"boolean"}],["aria-dropeffect",{type:"tokenlist",values:["copy","execute","link","move","none","popup"]}],["aria-errormessage",{type:"id"}],["aria-expanded",{type:"boolean",allowundefined:!0}],["aria-flowto",{type:"idlist"}],["aria-grabbed",{type:"boolean",allowundefined:!0}],["aria-haspopup",{type:"token",values:[!1,!0,"menu","listbox","tree","grid","dialog"]}],["aria-hidden",{type:"boolean",allowundefined:!0}],["aria-invalid",{type:"token",values:["grammar",!1,"spelling",!0]}],["aria-keyshortcuts",{type:"string"}],["aria-label",{type:"string"}],["aria-labelledby",{type:"idlist"}],["aria-level",{type:"integer"}],["aria-live",{type:"token",values:["assertive","off","polite"]}],["aria-modal",{type:"boolean"}],["aria-multiline",{type:"boolean"}],["aria-multiselectable",{type:"boolean"}],["aria-orientation",{type:"token",values:["vertical","undefined","horizontal"]}],["aria-owns",{type:"idlist"}],["aria-placeholder",{type:"string"}],["aria-posinset",{type:"integer"}],["aria-pressed",{type:"tristate"}],["aria-readonly",{type:"boolean"}],["aria-relevant",{type:"tokenlist",values:["additions","all","removals","text"]}],["aria-required",{type:"boolean"}],["aria-roledescription",{type:"string"}],["aria-rowcount",{type:"integer"}],["aria-rowindex",{type:"integer"}],["aria-rowspan",{type:"integer"}],["aria-selected",{type:"boolean",allowundefined:!0}],["aria-setsize",{type:"integer"}],["aria-sort",{type:"token",values:["ascending","descending","none","other"]}],["aria-valuemax",{type:"number"}],["aria-valuemin",{type:"number"}],["aria-valuenow",{type:"number"}],["aria-valuetext",{type:"string"}]],x={entries:function(){return v},forEach:function(A){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,q=h(v),N;try{for(q.s();!(N=q.n()).done;){var _=i(N.value,2),L=_[0],$=_[1];A.call(M,$,L,v)}}catch(I){q.e(I)}finally{q.f()}},get:function(A){var M=v.find(function(q){return q[0]===A});return M&&M[1]},has:function(A){return!!x.get(A)},keys:function(){return v.map(function(A){var M=i(A,1),q=M[0];return q})},values:function(){return v.map(function(A){var M=i(A,2),q=M[1];return q})}},E=(0,t.default)(x,x.entries());return _v.default=E,_v}var Ov={},xq;function H9(){if(xq)return Ov;xq=1,Object.defineProperty(Ov,"__esModule",{value:!0}),Ov.default=void 0;var t=a(BS());function a(R){return R&&R.__esModule?R:{default:R}}function i(R,A){return m(R)||f(R,A)||y(R,A)||u()}function u(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
257
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(R,A){var M=R==null?null:typeof Symbol<"u"&&R[Symbol.iterator]||R["@@iterator"];if(M!=null){var q=[],N=!0,_=!1,L,$;try{for(M=M.call(R);!(N=(L=M.next()).done)&&(q.push(L.value),!(A&&q.length===A));N=!0);}catch(I){_=!0,$=I}finally{try{!N&&M.return!=null&&M.return()}finally{if(_)throw $}}return q}}function m(R){if(Array.isArray(R))return R}function h(R,A){var M=typeof Symbol<"u"&&R[Symbol.iterator]||R["@@iterator"];if(!M){if(Array.isArray(R)||(M=y(R))||A){M&&(R=M);var q=0,N=function(){};return{s:N,n:function(){return q>=R.length?{done:!0}:{done:!1,value:R[q++]}},e:function(V){throw V},f:N}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
258
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _=!0,L=!1,$;return{s:function(){M=M.call(R)},n:function(){var V=M.next();return _=V.done,V},e:function(V){L=!0,$=V},f:function(){try{!_&&M.return!=null&&M.return()}finally{if(L)throw $}}}}function y(R,A){if(R){if(typeof R=="string")return b(R,A);var M=Object.prototype.toString.call(R).slice(8,-1);if(M==="Object"&&R.constructor&&(M=R.constructor.name),M==="Map"||M==="Set")return Array.from(R);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return b(R,A)}}function b(R,A){(A==null||A>R.length)&&(A=R.length);for(var M=0,q=new Array(A);M<A;M++)q[M]=R[M];return q}var v=[["a",{reserved:!1}],["abbr",{reserved:!1}],["acronym",{reserved:!1}],["address",{reserved:!1}],["applet",{reserved:!1}],["area",{reserved:!1}],["article",{reserved:!1}],["aside",{reserved:!1}],["audio",{reserved:!1}],["b",{reserved:!1}],["base",{reserved:!0}],["bdi",{reserved:!1}],["bdo",{reserved:!1}],["big",{reserved:!1}],["blink",{reserved:!1}],["blockquote",{reserved:!1}],["body",{reserved:!1}],["br",{reserved:!1}],["button",{reserved:!1}],["canvas",{reserved:!1}],["caption",{reserved:!1}],["center",{reserved:!1}],["cite",{reserved:!1}],["code",{reserved:!1}],["col",{reserved:!0}],["colgroup",{reserved:!0}],["content",{reserved:!1}],["data",{reserved:!1}],["datalist",{reserved:!1}],["dd",{reserved:!1}],["del",{reserved:!1}],["details",{reserved:!1}],["dfn",{reserved:!1}],["dialog",{reserved:!1}],["dir",{reserved:!1}],["div",{reserved:!1}],["dl",{reserved:!1}],["dt",{reserved:!1}],["em",{reserved:!1}],["embed",{reserved:!1}],["fieldset",{reserved:!1}],["figcaption",{reserved:!1}],["figure",{reserved:!1}],["font",{reserved:!1}],["footer",{reserved:!1}],["form",{reserved:!1}],["frame",{reserved:!1}],["frameset",{reserved:!1}],["h1",{reserved:!1}],["h2",{reserved:!1}],["h3",{reserved:!1}],["h4",{reserved:!1}],["h5",{reserved:!1}],["h6",{reserved:!1}],["head",{reserved:!0}],["header",{reserved:!1}],["hgroup",{reserved:!1}],["hr",{reserved:!1}],["html",{reserved:!0}],["i",{reserved:!1}],["iframe",{reserved:!1}],["img",{reserved:!1}],["input",{reserved:!1}],["ins",{reserved:!1}],["kbd",{reserved:!1}],["keygen",{reserved:!1}],["label",{reserved:!1}],["legend",{reserved:!1}],["li",{reserved:!1}],["link",{reserved:!0}],["main",{reserved:!1}],["map",{reserved:!1}],["mark",{reserved:!1}],["marquee",{reserved:!1}],["menu",{reserved:!1}],["menuitem",{reserved:!1}],["meta",{reserved:!0}],["meter",{reserved:!1}],["nav",{reserved:!1}],["noembed",{reserved:!0}],["noscript",{reserved:!0}],["object",{reserved:!1}],["ol",{reserved:!1}],["optgroup",{reserved:!1}],["option",{reserved:!1}],["output",{reserved:!1}],["p",{reserved:!1}],["param",{reserved:!0}],["picture",{reserved:!0}],["pre",{reserved:!1}],["progress",{reserved:!1}],["q",{reserved:!1}],["rp",{reserved:!1}],["rt",{reserved:!1}],["rtc",{reserved:!1}],["ruby",{reserved:!1}],["s",{reserved:!1}],["samp",{reserved:!1}],["script",{reserved:!0}],["section",{reserved:!1}],["select",{reserved:!1}],["small",{reserved:!1}],["source",{reserved:!0}],["spacer",{reserved:!1}],["span",{reserved:!1}],["strike",{reserved:!1}],["strong",{reserved:!1}],["style",{reserved:!0}],["sub",{reserved:!1}],["summary",{reserved:!1}],["sup",{reserved:!1}],["table",{reserved:!1}],["tbody",{reserved:!1}],["td",{reserved:!1}],["textarea",{reserved:!1}],["tfoot",{reserved:!1}],["th",{reserved:!1}],["thead",{reserved:!1}],["time",{reserved:!1}],["title",{reserved:!0}],["tr",{reserved:!1}],["track",{reserved:!0}],["tt",{reserved:!1}],["u",{reserved:!1}],["ul",{reserved:!1}],["var",{reserved:!1}],["video",{reserved:!1}],["wbr",{reserved:!1}],["xmp",{reserved:!1}]],x={entries:function(){return v},forEach:function(A){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,q=h(v),N;try{for(q.s();!(N=q.n()).done;){var _=i(N.value,2),L=_[0],$=_[1];A.call(M,$,L,v)}}catch(I){q.e(I)}finally{q.f()}},get:function(A){var M=v.find(function(q){return q[0]===A});return M&&M[1]},has:function(A){return!!x.get(A)},keys:function(){return v.map(function(A){var M=i(A,1),q=M[0];return q})},values:function(){return v.map(function(A){var M=i(A,2),q=M[1];return q})}},E=(0,t.default)(x,x.entries());return Ov.default=E,Ov}var qv={},Dv={},Nv={},Rq;function P9(){if(Rq)return Nv;Rq=1,Object.defineProperty(Nv,"__esModule",{value:!0}),Nv.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},a=t;return Nv.default=a,Nv}var jv={},Cq;function I9(){if(Cq)return jv;Cq=1,Object.defineProperty(jv,"__esModule",{value:!0}),jv.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},a=t;return jv.default=a,jv}var zv={},Aq;function V9(){if(Aq)return zv;Aq=1,Object.defineProperty(zv,"__esModule",{value:!0}),zv.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:"input"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},a=t;return zv.default=a,zv}var kv={},_q;function G9(){if(_q)return kv;_q=1,Object.defineProperty(kv,"__esModule",{value:!0}),kv.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return kv.default=a,kv}var Bv={},Mq;function Y9(){if(Mq)return Bv;Mq=1,Object.defineProperty(Bv,"__esModule",{value:!0}),Bv.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},a=t;return Bv.default=a,Bv}var Uv={},Oq;function X9(){if(Oq)return Uv;Oq=1,Object.defineProperty(Uv,"__esModule",{value:!0}),Uv.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:"role"},module:"XHTML"},{concept:{name:"type"},module:"Dublin Core"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},a=t;return Uv.default=a,Uv}var Lv={},qq;function F9(){if(qq)return Lv;qq=1,Object.defineProperty(Lv,"__esModule",{value:!0}),Lv.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"frontmatter"},module:"DTB"},{concept:{name:"level"},module:"DTB"},{concept:{name:"level"},module:"SMIL"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},a=t;return Lv.default=a,Lv}var $v={},Dq;function Q9(){if(Dq)return $v;Dq=1,Object.defineProperty($v,"__esModule",{value:!0}),$v.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},a=t;return $v.default=a,$v}var Hv={},Nq;function Z9(){if(Nq)return Hv;Nq=1,Object.defineProperty(Hv,"__esModule",{value:!0}),Hv.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","group"]]},a=t;return Hv.default=a,Hv}var Pv={},jq;function J9(){if(jq)return Pv;jq=1,Object.defineProperty(Pv,"__esModule",{value:!0}),Pv.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},a=t;return Pv.default=a,Pv}var Iv={},zq;function K9(){if(zq)return Iv;zq=1,Object.defineProperty(Iv,"__esModule",{value:!0}),Iv.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},a=t;return Iv.default=a,Iv}var Vv={},kq;function W9(){if(kq)return Vv;kq=1,Object.defineProperty(Vv,"__esModule",{value:!0}),Vv.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},a=t;return Vv.default=a,Vv}var Bq;function e7(){if(Bq)return Dv;Bq=1,Object.defineProperty(Dv,"__esModule",{value:!0}),Dv.default=void 0;var t=R(P9()),a=R(I9()),i=R(V9()),u=R(G9()),f=R(Y9()),m=R(X9()),h=R(F9()),y=R(Q9()),b=R(Z9()),v=R(J9()),x=R(K9()),E=R(W9());function R(q){return q&&q.__esModule?q:{default:q}}var A=[["command",t.default],["composite",a.default],["input",i.default],["landmark",u.default],["range",f.default],["roletype",m.default],["section",h.default],["sectionhead",y.default],["select",b.default],["structure",v.default],["widget",x.default],["window",E.default]],M=A;return Dv.default=M,Dv}var Gv={},Yv={},Uq;function t7(){if(Uq)return Yv;Uq=1,Object.defineProperty(Yv,"__esModule",{value:!0}),Yv.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return Yv.default=a,Yv}var Xv={},Lq;function n7(){if(Lq)return Xv;Lq=1,Object.defineProperty(Xv,"__esModule",{value:!0}),Xv.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","alert"],["roletype","window","dialog"]]},a=t;return Xv.default=a,Xv}var Fv={},$q;function a7(){if($q)return Fv;$q=1,Object.defineProperty(Fv,"__esModule",{value:!0}),Fv.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},a=t;return Fv.default=a,Fv}var Qv={},Hq;function r7(){if(Hq)return Qv;Hq=1,Object.defineProperty(Qv,"__esModule",{value:!0}),Qv.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"article"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},a=t;return Qv.default=a,Qv}var Zv={},Pq;function l7(){if(Pq)return Zv;Pq=1,Object.defineProperty(Zv,"__esModule",{value:!0}),Zv.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"header"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},a=t;return Zv.default=a,Zv}var Jv={},Iq;function i7(){if(Iq)return Jv;Iq=1,Object.defineProperty(Jv,"__esModule",{value:!0}),Jv.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"blockquote"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return Jv.default=a,Jv}var Kv={},Vq;function o7(){if(Vq)return Kv;Vq=1,Object.defineProperty(Kv,"__esModule",{value:!0}),Kv.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"button"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"image"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"reset"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"submit"}],name:"input"},module:"HTML"},{concept:{name:"button"},module:"HTML"},{concept:{name:"trigger"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},a=t;return Kv.default=a,Kv}var Wv={},Gq;function u7(){if(Gq)return Wv;Gq=1,Object.defineProperty(Wv,"__esModule",{value:!0}),Wv.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"caption"},module:"HTML"}],requireContextRole:["figure","grid","table"],requiredContextRole:["figure","grid","table"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return Wv.default=a,Wv}var e0={},Yq;function s7(){if(Yq)return e0;Yq=1,Object.defineProperty(e0,"__esModule",{value:!0}),e0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:["ancestor table element has table role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return e0.default=a,e0}var t0={},Xq;function c7(){if(Xq)return t0;Xq=1,Object.defineProperty(t0,"__esModule",{value:!0}),t0.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"checkbox"}],name:"input"},module:"HTML"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},a=t;return t0.default=a,t0}var n0={},Fq;function f7(){if(Fq)return n0;Fq=1,Object.defineProperty(n0,"__esModule",{value:!0}),n0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"code"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return n0.default=a,n0}var a0={},Qq;function d7(){if(Qq)return a0;Qq=1,Object.defineProperty(a0,"__esModule",{value:!0}),a0.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"col"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"colgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},a=t;return a0.default=a,a0}var r0={},Zq;function p7(){if(Zq)return r0;Zq=1,Object.defineProperty(r0,"__esModule",{value:!0}),r0.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":"false","aria-haspopup":"listbox"},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"email"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"search"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"tel"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"text"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"multiple"},{constraints:["undefined"],name:"size"}],constraints:["the multiple attribute is not set and the size attribute does not have a value greater than 1"],name:"select"},module:"HTML"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":"false"},superClass:[["roletype","widget","input"]]},a=t;return r0.default=a,r0}var l0={},Jq;function h7(){if(Jq)return l0;Jq=1,Object.defineProperty(l0,"__esModule",{value:!0}),l0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-label"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},a=t;return l0.default=a,l0}var i0={},Kq;function m7(){if(Kq)return i0;Kq=1,Object.defineProperty(i0,"__esModule",{value:!0}),i0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"footer"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},a=t;return i0.default=a,i0}var o0={},Wq;function y7(){if(Wq)return o0;Wq=1,Object.defineProperty(o0,"__esModule",{value:!0}),o0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dd"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return o0.default=a,o0}var u0={},eD;function g7(){if(eD)return u0;eD=1,Object.defineProperty(u0,"__esModule",{value:!0}),u0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"del"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return u0.default=a,u0}var s0={},tD;function b7(){if(tD)return s0;tD=1,Object.defineProperty(s0,"__esModule",{value:!0}),s0.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]},a=t;return s0.default=a,s0}var c0={},nD;function v7(){if(nD)return c0;nD=1,Object.defineProperty(c0,"__esModule",{value:!0}),c0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]},a=t;return c0.default=a,c0}var f0={},aD;function S7(){if(aD)return f0;aD=1,Object.defineProperty(f0,"__esModule",{value:!0}),f0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}},{concept:{name:"html"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},a=t;return f0.default=a,f0}var d0={},rD;function E7(){if(rD)return d0;rD=1,Object.defineProperty(d0,"__esModule",{value:!0}),d0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"em"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return d0.default=a,d0}var p0={},lD;function T7(){if(lD)return p0;lD=1,Object.defineProperty(p0,"__esModule",{value:!0}),p0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]},a=t;return p0.default=a,p0}var h0={},iD;function w7(){if(iD)return h0;iD=1,Object.defineProperty(h0,"__esModule",{value:!0}),h0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"figure"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return h0.default=a,h0}var m0={},oD;function x7(){if(oD)return m0;oD=1,Object.defineProperty(m0,"__esModule",{value:!0}),m0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"name"}],name:"form"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},a=t;return m0.default=a,m0}var y0={},uD;function R7(){if(uD)return y0;uD=1,Object.defineProperty(y0,"__esModule",{value:!0}),y0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"a"},module:"HTML"},{concept:{name:"area"},module:"HTML"},{concept:{name:"aside"},module:"HTML"},{concept:{name:"b"},module:"HTML"},{concept:{name:"bdo"},module:"HTML"},{concept:{name:"body"},module:"HTML"},{concept:{name:"data"},module:"HTML"},{concept:{name:"div"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"footer"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"header"},module:"HTML"},{concept:{name:"hgroup"},module:"HTML"},{concept:{name:"i"},module:"HTML"},{concept:{name:"pre"},module:"HTML"},{concept:{name:"q"},module:"HTML"},{concept:{name:"samp"},module:"HTML"},{concept:{name:"section"},module:"HTML"},{concept:{name:"small"},module:"HTML"},{concept:{name:"span"},module:"HTML"},{concept:{name:"u"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},a=t;return y0.default=a,y0}var g0={},sD;function C7(){if(sD)return g0;sD=1,Object.defineProperty(g0,"__esModule",{value:!0}),g0.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","table"]]},a=t;return g0.default=a,g0}var b0={},cD;function A7(){if(cD)return b0;cD=1,Object.defineProperty(b0,"__esModule",{value:!0}),b0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{constraints:["ancestor table element has grid role","ancestor table element has treegrid role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","widget"]]},a=t;return b0.default=a,b0}var v0={},fD;function _7(){if(fD)return v0;fD=1,Object.defineProperty(v0,"__esModule",{value:!0}),v0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:"details"},module:"HTML"},{concept:{name:"fieldset"},module:"HTML"},{concept:{name:"optgroup"},module:"HTML"},{concept:{name:"address"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return v0.default=a,v0}var S0={},dD;function M7(){if(dD)return S0;dD=1,Object.defineProperty(S0,"__esModule",{value:!0}),S0.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-level":"2"},relatedConcepts:[{concept:{name:"h1"},module:"HTML"},{concept:{name:"h2"},module:"HTML"},{concept:{name:"h3"},module:"HTML"},{concept:{name:"h4"},module:"HTML"},{concept:{name:"h5"},module:"HTML"},{concept:{name:"h6"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":"2"},superClass:[["roletype","structure","sectionhead"]]},a=t;return S0.default=a,S0}var E0={},pD;function O7(){if(pD)return E0;pD=1,Object.defineProperty(E0,"__esModule",{value:!0}),E0.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"alt"}],name:"img"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"alt"}],name:"img"},module:"HTML"},{concept:{name:"imggroup"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return E0.default=a,E0}var T0={},hD;function q7(){if(hD)return T0;hD=1,Object.defineProperty(T0,"__esModule",{value:!0}),T0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"ins"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return T0.default=a,T0}var w0={},mD;function D7(){if(mD)return w0;mD=1,Object.defineProperty(w0,"__esModule",{value:!0}),w0.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"href"}],name:"a"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"href"}],name:"area"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},a=t;return w0.default=a,w0}var x0={},yD;function N7(){if(yD)return x0;yD=1,Object.defineProperty(x0,"__esModule",{value:!0}),x0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menu"},module:"HTML"},{concept:{name:"ol"},module:"HTML"},{concept:{name:"ul"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["listitem"]],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return x0.default=a,x0}var R0={},gD;function j7(){if(gD)return R0;gD=1,Object.defineProperty(R0,"__esModule",{value:!0}),R0.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[{concept:{attributes:[{constraints:[">1"],name:"size"}],constraints:["the size attribute value is greater than 1"],name:"select"},module:"HTML"},{concept:{attributes:[{name:"multiple"}],name:"select"},module:"HTML"},{concept:{name:"datalist"},module:"HTML"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["option","group"],["option"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},a=t;return R0.default=a,R0}var C0={},bD;function z7(){if(bD)return C0;bD=1,Object.defineProperty(C0,"__esModule",{value:!0}),C0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:["direct descendant of ol","direct descendant of ul","direct descendant of menu"],name:"li"},module:"HTML"},{concept:{name:"item"},module:"XForms"}],requireContextRole:["directory","list"],requiredContextRole:["directory","list"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return C0.default=a,C0}var A0={},vD;function k7(){if(vD)return A0;vD=1,Object.defineProperty(A0,"__esModule",{value:!0}),A0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return A0.default=a,A0}var _0={},SD;function B7(){if(SD)return _0;SD=1,Object.defineProperty(_0,"__esModule",{value:!0}),_0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"main"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},a=t;return _0.default=a,_0}var M0={},ED;function U7(){if(ED)return M0;ED=1,Object.defineProperty(M0,"__esModule",{value:!0}),M0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null},relatedConcepts:[{concept:{name:"mark"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return M0.default=a,M0}var O0={},TD;function L7(){if(TD)return O0;TD=1,Object.defineProperty(O0,"__esModule",{value:!0}),O0.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return O0.default=a,O0}var q0={},wD;function $7(){if(wD)return q0;wD=1,Object.defineProperty(q0,"__esModule",{value:!0}),q0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"math"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return q0.default=a,q0}var D0={},xD;function H7(){if(xD)return D0;xD=1,Object.defineProperty(D0,"__esModule",{value:!0}),D0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"vertical"},relatedConcepts:[{concept:{name:"MENU"},module:"JAPI"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"},{concept:{name:"sidebar"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},a=t;return D0.default=a,D0}var N0={},RD;function P7(){if(RD)return N0;RD=1,Object.defineProperty(N0,"__esModule",{value:!0}),N0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"toolbar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select","menu"],["roletype","structure","section","group","select","menu"]]},a=t;return N0.default=a,N0}var j0={},CD;function I7(){if(CD)return j0;CD=1,Object.defineProperty(j0,"__esModule",{value:!0}),j0.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"MENU_ITEM"},module:"JAPI"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},a=t;return j0.default=a,j0}var z0={},AD;function V7(){if(AD)return z0;AD=1,Object.defineProperty(z0,"__esModule",{value:!0}),z0.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"],["roletype","widget","command","menuitem"]]},a=t;return z0.default=a,z0}var k0={},_D;function G7(){if(_D)return k0;_D=1,Object.defineProperty(k0,"__esModule",{value:!0}),k0.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox","menuitemcheckbox"],["roletype","widget","command","menuitem","menuitemcheckbox"],["roletype","widget","input","radio"]]},a=t;return k0.default=a,k0}var B0={},MD;function Y7(){if(MD)return B0;MD=1,Object.defineProperty(B0,"__esModule",{value:!0}),B0.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{name:"meter"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","structure","range"]]},a=t;return B0.default=a,B0}var U0={},OD;function X7(){if(OD)return U0;OD=1,Object.defineProperty(U0,"__esModule",{value:!0}),U0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"nav"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},a=t;return U0.default=a,U0}var L0={},qD;function F7(){if(qD)return L0;qD=1,Object.defineProperty(L0,"__esModule",{value:!0}),L0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},a=t;return L0.default=a,L0}var $0={},DD;function Q7(){if(DD)return $0;DD=1,Object.defineProperty($0,"__esModule",{value:!0}),$0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return $0.default=a,$0}var H0={},ND;function Z7(){if(ND)return H0;ND=1,Object.defineProperty(H0,"__esModule",{value:!0}),H0.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[{concept:{name:"item"},module:"XForms"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":"false"},superClass:[["roletype","widget","input"]]},a=t;return H0.default=a,H0}var P0={},jD;function J7(){if(jD)return P0;jD=1,Object.defineProperty(P0,"__esModule",{value:!0}),P0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"p"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return P0.default=a,P0}var I0={},zD;function K7(){if(zD)return I0;zD=1,Object.defineProperty(I0,"__esModule",{value:!0}),I0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{attributes:[{name:"alt",value:""}],name:"img"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},a=t;return I0.default=a,I0}var V0={},kD;function W7(){if(kD)return V0;kD=1,Object.defineProperty(V0,"__esModule",{value:!0}),V0.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:"progress"},module:"HTML"},{concept:{name:"status"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","range"],["roletype","widget"]]},a=t;return V0.default=a,V0}var G0={},BD;function eH(){if(BD)return G0;BD=1,Object.defineProperty(G0,"__esModule",{value:!0}),G0.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"radio"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},a=t;return G0.default=a,G0}var Y0={},UD;function tH(){if(UD)return Y0;UD=1,Object.defineProperty(Y0,"__esModule",{value:!0}),Y0.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:"list"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["radio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},a=t;return Y0.default=a,Y0}var X0={},LD;function nH(){if(LD)return X0;LD=1,Object.defineProperty(X0,"__esModule",{value:!0}),X0.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"section"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"section"},module:"HTML"},{concept:{name:"Device Independence Glossart perceivable unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},a=t;return X0.default=a,X0}var F0={},$D;function aH(){if($D)return F0;$D=1,Object.defineProperty(F0,"__esModule",{value:!0}),F0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"tr"},module:"HTML"}],requireContextRole:["grid","rowgroup","table","treegrid"],requiredContextRole:["grid","rowgroup","table","treegrid"],requiredOwnedElements:[["cell"],["columnheader"],["gridcell"],["rowheader"]],requiredProps:{},superClass:[["roletype","structure","section","group"],["roletype","widget"]]},a=t;return F0.default=a,F0}var Q0={},HD;function rH(){if(HD)return Q0;HD=1,Object.defineProperty(Q0,"__esModule",{value:!0}),Q0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"tbody"},module:"HTML"},{concept:{name:"tfoot"},module:"HTML"},{concept:{name:"thead"},module:"HTML"}],requireContextRole:["grid","table","treegrid"],requiredContextRole:["grid","table","treegrid"],requiredOwnedElements:[["row"]],requiredProps:{},superClass:[["roletype","structure"]]},a=t;return Q0.default=a,Q0}var Z0={},PD;function lH(){if(PD)return Z0;PD=1,Object.defineProperty(Z0,"__esModule",{value:!0}),Z0.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:"scope",value:"row"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"rowgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row","rowgroup"],requiredContextRole:["row","rowgroup"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},a=t;return Z0.default=a,Z0}var J0={},ID;function iH(){if(ID)return J0;ID=1,Object.defineProperty(J0,"__esModule",{value:!0}),J0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[["roletype","structure","range"],["roletype","widget"]]},a=t;return J0.default=a,J0}var K0={},VD;function oH(){if(VD)return K0;VD=1,Object.defineProperty(K0,"__esModule",{value:!0}),K0.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},a=t;return K0.default=a,K0}var W0={},GD;function uH(){if(GD)return W0;GD=1,Object.defineProperty(W0,"__esModule",{value:!0}),W0.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"search"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input","textbox"]]},a=t;return W0.default=a,W0}var e1={},YD;function sH(){if(YD)return e1;YD=1,Object.defineProperty(e1,"__esModule",{value:!0}),e1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:"hr"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},a=t;return e1.default=a,e1}var t1={},XD;function cH(){if(XD)return t1;XD=1,Object.defineProperty(t1,"__esModule",{value:!0}),t1.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"range"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","widget","input"],["roletype","structure","range"]]},a=t;return t1.default=a,t1}var n1={},FD;function fH(){if(FD)return n1;FD=1,Object.defineProperty(n1,"__esModule",{value:!0}),n1.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"number"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","widget","input"],["roletype","structure","range"]]},a=t;return n1.default=a,n1}var a1={},QD;function dH(){if(QD)return a1;QD=1,Object.defineProperty(a1,"__esModule",{value:!0}),a1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"polite"},relatedConcepts:[{concept:{name:"output"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return a1.default=a,a1}var r1={},ZD;function pH(){if(ZD)return r1;ZD=1,Object.defineProperty(r1,"__esModule",{value:!0}),r1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"strong"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return r1.default=a,r1}var l1={},JD;function hH(){if(JD)return l1;JD=1,Object.defineProperty(l1,"__esModule",{value:!0}),l1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sub"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return l1.default=a,l1}var i1={},KD;function mH(){if(KD)return i1;KD=1,Object.defineProperty(i1,"__esModule",{value:!0}),i1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sup"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return i1.default=a,i1}var o1={},WD;function yH(){if(WD)return o1;WD=1,Object.defineProperty(o1,"__esModule",{value:!0}),o1.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"button"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"]]},a=t;return o1.default=a,o1}var u1={},eN;function gH(){if(eN)return u1;eN=1,Object.defineProperty(u1,"__esModule",{value:!0}),u1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[],requireContextRole:["tablist"],requiredContextRole:["tablist"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"],["roletype","widget"]]},a=t;return u1.default=a,u1}var s1={},tN;function bH(){if(tN)return s1;tN=1,Object.defineProperty(s1,"__esModule",{value:!0}),s1.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:"table"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return s1.default=a,s1}var c1={},nN;function vH(){if(nN)return c1;nN=1,Object.defineProperty(c1,"__esModule",{value:!0}),c1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":"horizontal"},relatedConcepts:[{module:"DAISY",concept:{name:"guide"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["tab"]],requiredProps:{},superClass:[["roletype","widget","composite"]]},a=t;return c1.default=a,c1}var f1={},aN;function SH(){if(aN)return f1;aN=1,Object.defineProperty(f1,"__esModule",{value:!0}),f1.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return f1.default=a,f1}var d1={},rN;function EH(){if(rN)return d1;rN=1,Object.defineProperty(d1,"__esModule",{value:!0}),d1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dfn"},module:"HTML"},{concept:{name:"dt"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return d1.default=a,d1}var p1={},lN;function TH(){if(lN)return p1;lN=1,Object.defineProperty(p1,"__esModule",{value:!0}),p1.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"type"},{constraints:["undefined"],name:"list"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"email"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"tel"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"text"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"url"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{name:"input"},module:"XForms"},{concept:{name:"textarea"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input"]]},a=t;return p1.default=a,p1}var h1={},iN;function wH(){if(iN)return h1;iN=1,Object.defineProperty(h1,"__esModule",{value:!0}),h1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"time"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return h1.default=a,h1}var m1={},oN;function xH(){if(oN)return m1;oN=1,Object.defineProperty(m1,"__esModule",{value:!0}),m1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]},a=t;return m1.default=a,m1}var y1={},uN;function RH(){if(uN)return y1;uN=1,Object.defineProperty(y1,"__esModule",{value:!0}),y1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"menubar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},a=t;return y1.default=a,y1}var g1={},sN;function CH(){if(sN)return g1;sN=1,Object.defineProperty(g1,"__esModule",{value:!0}),g1.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return g1.default=a,g1}var b1={},cN;function AH(){if(cN)return b1;cN=1,Object.defineProperty(b1,"__esModule",{value:!0}),b1.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["treeitem","group"],["treeitem"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},a=t;return b1.default=a,b1}var v1={},fN;function _H(){if(fN)return v1;fN=1,Object.defineProperty(v1,"__esModule",{value:!0}),v1.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite","grid"],["roletype","structure","section","table","grid"],["roletype","widget","composite","select","tree"],["roletype","structure","section","group","select","tree"]]},a=t;return v1.default=a,v1}var S1={},dN;function MH(){if(dN)return S1;dN=1,Object.defineProperty(S1,"__esModule",{value:!0}),S1.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:["group","tree"],requiredContextRole:["group","tree"],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[["roletype","structure","section","listitem"],["roletype","widget","input","option"]]},a=t;return S1.default=a,S1}var pN;function OH(){if(pN)return Gv;pN=1,Object.defineProperty(Gv,"__esModule",{value:!0}),Gv.default=void 0;var t=ze(t7()),a=ze(n7()),i=ze(a7()),u=ze(r7()),f=ze(l7()),m=ze(i7()),h=ze(o7()),y=ze(u7()),b=ze(s7()),v=ze(c7()),x=ze(f7()),E=ze(d7()),R=ze(p7()),A=ze(h7()),M=ze(m7()),q=ze(y7()),N=ze(g7()),_=ze(b7()),L=ze(v7()),$=ze(S7()),I=ze(E7()),V=ze(T7()),z=ze(w7()),k=ze(x7()),U=ze(R7()),F=ze(C7()),H=ze(A7()),J=ze(_7()),ve=ze(M7()),se=ze(O7()),Se=ze(q7()),ke=ze(D7()),P=ze(N7()),ue=ze(j7()),te=ze(z7()),De=ze(k7()),je=ze(B7()),Ye=ze(U7()),Xe=ze(L7()),xe=ze($7()),Ie=ze(H7()),Je=ze(P7()),at=ze(I7()),Lt=ze(V7()),an=ze(G7()),ie=ze(Y7()),Pe=ze(X7()),de=ze(F7()),ut=ze(Q7()),dt=ze(Z7()),Ue=ze(J7()),Nt=ze(K7()),Ke=ze(W7()),Tn=ze(eH()),tl=ze(tH()),Cr=ze(nH()),yt=ze(aH()),ya=ze(rH()),Za=ze(lH()),ni=ze(iH()),oe=ze(oH()),pe=ze(uH()),qe=ze(sH()),Be=ze(cH()),ee=ze(fH()),st=ze(dH()),Rn=ze(pH()),Zt=ze(hH()),ia=ze(mH()),tt=ze(yH()),Ae=ze(gH()),Ve=ze(bH()),$e=ze(vH()),Bt=ze(SH()),Cn=ze(EH()),nl=ze(TH()),$a=ze(wH()),An=ze(xH()),oa=ze(RH()),ga=ze(CH()),$t=ze(AH()),Wn=ze(_H()),Ln=ze(MH());function ze(rl){return rl&&rl.__esModule?rl:{default:rl}}var wl=[["alert",t.default],["alertdialog",a.default],["application",i.default],["article",u.default],["banner",f.default],["blockquote",m.default],["button",h.default],["caption",y.default],["cell",b.default],["checkbox",v.default],["code",x.default],["columnheader",E.default],["combobox",R.default],["complementary",A.default],["contentinfo",M.default],["definition",q.default],["deletion",N.default],["dialog",_.default],["directory",L.default],["document",$.default],["emphasis",I.default],["feed",V.default],["figure",z.default],["form",k.default],["generic",U.default],["grid",F.default],["gridcell",H.default],["group",J.default],["heading",ve.default],["img",se.default],["insertion",Se.default],["link",ke.default],["list",P.default],["listbox",ue.default],["listitem",te.default],["log",De.default],["main",je.default],["mark",Ye.default],["marquee",Xe.default],["math",xe.default],["menu",Ie.default],["menubar",Je.default],["menuitem",at.default],["menuitemcheckbox",Lt.default],["menuitemradio",an.default],["meter",ie.default],["navigation",Pe.default],["none",de.default],["note",ut.default],["option",dt.default],["paragraph",Ue.default],["presentation",Nt.default],["progressbar",Ke.default],["radio",Tn.default],["radiogroup",tl.default],["region",Cr.default],["row",yt.default],["rowgroup",ya.default],["rowheader",Za.default],["scrollbar",ni.default],["search",oe.default],["searchbox",pe.default],["separator",qe.default],["slider",Be.default],["spinbutton",ee.default],["status",st.default],["strong",Rn.default],["subscript",Zt.default],["superscript",ia.default],["switch",tt.default],["tab",Ae.default],["table",Ve.default],["tablist",$e.default],["tabpanel",Bt.default],["term",Cn.default],["textbox",nl.default],["time",$a.default],["timer",An.default],["toolbar",oa.default],["tooltip",ga.default],["tree",$t.default],["treegrid",Wn.default],["treeitem",Ln.default]],al=wl;return Gv.default=al,Gv}var E1={},T1={},hN;function qH(){if(hN)return T1;hN=1,Object.defineProperty(T1,"__esModule",{value:!0}),T1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"abstract [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return T1.default=a,T1}var w1={},mN;function DH(){if(mN)return w1;mN=1,Object.defineProperty(w1,"__esModule",{value:!0}),w1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"acknowledgments [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},a=t;return w1.default=a,w1}var x1={},yN;function NH(){if(yN)return x1;yN=1,Object.defineProperty(x1,"__esModule",{value:!0}),x1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"afterword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},a=t;return x1.default=a,x1}var R1={},gN;function jH(){if(gN)return R1;gN=1,Object.defineProperty(R1,"__esModule",{value:!0}),R1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},a=t;return R1.default=a,R1}var C1={},bN;function zH(){if(bN)return C1;bN=1,Object.defineProperty(C1,"__esModule",{value:!0}),C1.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"referrer [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},a=t;return C1.default=a,C1}var A1={},vN;function kH(){if(vN)return A1;vN=1,Object.defineProperty(A1,"__esModule",{value:!0}),A1.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"EPUB biblioentry [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-bibliography"],requiredContextRole:["doc-bibliography"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},a=t;return A1.default=a,A1}var _1={},SN;function BH(){if(SN)return _1;SN=1,Object.defineProperty(_1,"__esModule",{value:!0}),_1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},a=t;return _1.default=a,_1}var M1={},EN;function UH(){if(EN)return M1;EN=1,Object.defineProperty(M1,"__esModule",{value:!0}),M1.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"biblioref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},a=t;return M1.default=a,M1}var O1={},TN;function LH(){if(TN)return O1;TN=1,Object.defineProperty(O1,"__esModule",{value:!0}),O1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},a=t;return O1.default=a,O1}var q1={},wN;function $H(){if(wN)return q1;wN=1,Object.defineProperty(q1,"__esModule",{value:!0}),q1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"colophon [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return q1.default=a,q1}var D1={},xN;function HH(){if(xN)return D1;xN=1,Object.defineProperty(D1,"__esModule",{value:!0}),D1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"conclusion [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},a=t;return D1.default=a,D1}var N1={},RN;function PH(){if(RN)return N1;RN=1,Object.defineProperty(N1,"__esModule",{value:!0}),N1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},a=t;return N1.default=a,N1}var j1={},CN;function IH(){if(CN)return j1;CN=1,Object.defineProperty(j1,"__esModule",{value:!0}),j1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credit [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return j1.default=a,j1}var z1={},AN;function VH(){if(AN)return z1;AN=1,Object.defineProperty(z1,"__esModule",{value:!0}),z1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credits [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},a=t;return z1.default=a,z1}var k1={},_N;function GH(){if(_N)return k1;_N=1,Object.defineProperty(k1,"__esModule",{value:!0}),k1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"dedication [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return k1.default=a,k1}var B1={},MN;function YH(){if(MN)return B1;MN=1,Object.defineProperty(B1,"__esModule",{value:!0}),B1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-endnotes"],requiredContextRole:["doc-endnotes"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},a=t;return B1.default=a,B1}var U1={},ON;function XH(){if(ON)return U1;ON=1,Object.defineProperty(U1,"__esModule",{value:!0}),U1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnotes [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-endnote"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},a=t;return U1.default=a,U1}var L1={},qN;function FH(){if(qN)return L1;qN=1,Object.defineProperty(L1,"__esModule",{value:!0}),L1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epigraph [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return L1.default=a,L1}var $1={},DN;function QH(){if(DN)return $1;DN=1,Object.defineProperty($1,"__esModule",{value:!0}),$1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epilogue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},a=t;return $1.default=a,$1}var H1={},NN;function ZH(){if(NN)return H1;NN=1,Object.defineProperty(H1,"__esModule",{value:!0}),H1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"errata [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},a=t;return H1.default=a,H1}var P1={},jN;function JH(){if(jN)return P1;jN=1,Object.defineProperty(P1,"__esModule",{value:!0}),P1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return P1.default=a,P1}var I1={},zN;function KH(){if(zN)return I1;zN=1,Object.defineProperty(I1,"__esModule",{value:!0}),I1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"footnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return I1.default=a,I1}var V1={},kN;function WH(){if(kN)return V1;kN=1,Object.defineProperty(V1,"__esModule",{value:!0}),V1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"foreword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},a=t;return V1.default=a,V1}var G1={},BN;function eP(){if(BN)return G1;BN=1,Object.defineProperty(G1,"__esModule",{value:!0}),G1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossary [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["definition"],["term"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},a=t;return G1.default=a,G1}var Y1={},UN;function tP(){if(UN)return Y1;UN=1,Object.defineProperty(Y1,"__esModule",{value:!0}),Y1.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},a=t;return Y1.default=a,Y1}var X1={},LN;function nP(){if(LN)return X1;LN=1,Object.defineProperty(X1,"__esModule",{value:!0}),X1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"index [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},a=t;return X1.default=a,X1}var F1={},$N;function aP(){if($N)return F1;$N=1,Object.defineProperty(F1,"__esModule",{value:!0}),F1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"introduction [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},a=t;return F1.default=a,F1}var Q1={},HN;function rP(){if(HN)return Q1;HN=1,Object.defineProperty(Q1,"__esModule",{value:!0}),Q1.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"noteref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},a=t;return Q1.default=a,Q1}var Z1={},PN;function lP(){if(PN)return Z1;PN=1,Object.defineProperty(Z1,"__esModule",{value:!0}),Z1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"notice [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},a=t;return Z1.default=a,Z1}var J1={},IN;function iP(){if(IN)return J1;IN=1,Object.defineProperty(J1,"__esModule",{value:!0}),J1.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"pagebreak [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","separator"]]},a=t;return J1.default=a,J1}var K1={},VN;function oP(){if(VN)return K1;VN=1,Object.defineProperty(K1,"__esModule",{value:!0}),K1.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"page-list [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},a=t;return K1.default=a,K1}var W1={},GN;function uP(){if(GN)return W1;GN=1,Object.defineProperty(W1,"__esModule",{value:!0}),W1.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"part [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},a=t;return W1.default=a,W1}var eS={},YN;function sP(){if(YN)return eS;YN=1,Object.defineProperty(eS,"__esModule",{value:!0}),eS.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"preface [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},a=t;return eS.default=a,eS}var tS={},XN;function cP(){if(XN)return tS;XN=1,Object.defineProperty(tS,"__esModule",{value:!0}),tS.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"prologue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},a=t;return tS.default=a,tS}var nS={},FN;function fP(){if(FN)return nS;FN=1,Object.defineProperty(nS,"__esModule",{value:!0}),nS.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"pullquote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["none"]]},a=t;return nS.default=a,nS}var aS={},QN;function dP(){if(QN)return aS;QN=1,Object.defineProperty(aS,"__esModule",{value:!0}),aS.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"qna [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},a=t;return aS.default=a,aS}var rS={},ZN;function pP(){if(ZN)return rS;ZN=1,Object.defineProperty(rS,"__esModule",{value:!0}),rS.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"subtitle [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"]]},a=t;return rS.default=a,rS}var lS={},JN;function hP(){if(JN)return lS;JN=1,Object.defineProperty(lS,"__esModule",{value:!0}),lS.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"help [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},a=t;return lS.default=a,lS}var iS={},KN;function mP(){if(KN)return iS;KN=1,Object.defineProperty(iS,"__esModule",{value:!0}),iS.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"toc [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},a=t;return iS.default=a,iS}var WN;function yP(){if(WN)return E1;WN=1,Object.defineProperty(E1,"__esModule",{value:!0}),E1.default=void 0;var t=xe(qH()),a=xe(DH()),i=xe(NH()),u=xe(jH()),f=xe(zH()),m=xe(kH()),h=xe(BH()),y=xe(UH()),b=xe(LH()),v=xe($H()),x=xe(HH()),E=xe(PH()),R=xe(IH()),A=xe(VH()),M=xe(GH()),q=xe(YH()),N=xe(XH()),_=xe(FH()),L=xe(QH()),$=xe(ZH()),I=xe(JH()),V=xe(KH()),z=xe(WH()),k=xe(eP()),U=xe(tP()),F=xe(nP()),H=xe(aP()),J=xe(rP()),ve=xe(lP()),se=xe(iP()),Se=xe(oP()),ke=xe(uP()),P=xe(sP()),ue=xe(cP()),te=xe(fP()),De=xe(dP()),je=xe(pP()),Ye=xe(hP()),Xe=xe(mP());function xe(at){return at&&at.__esModule?at:{default:at}}var Ie=[["doc-abstract",t.default],["doc-acknowledgments",a.default],["doc-afterword",i.default],["doc-appendix",u.default],["doc-backlink",f.default],["doc-biblioentry",m.default],["doc-bibliography",h.default],["doc-biblioref",y.default],["doc-chapter",b.default],["doc-colophon",v.default],["doc-conclusion",x.default],["doc-cover",E.default],["doc-credit",R.default],["doc-credits",A.default],["doc-dedication",M.default],["doc-endnote",q.default],["doc-endnotes",N.default],["doc-epigraph",_.default],["doc-epilogue",L.default],["doc-errata",$.default],["doc-example",I.default],["doc-footnote",V.default],["doc-foreword",z.default],["doc-glossary",k.default],["doc-glossref",U.default],["doc-index",F.default],["doc-introduction",H.default],["doc-noteref",J.default],["doc-notice",ve.default],["doc-pagebreak",se.default],["doc-pagelist",Se.default],["doc-part",ke.default],["doc-preface",P.default],["doc-prologue",ue.default],["doc-pullquote",te.default],["doc-qna",De.default],["doc-subtitle",je.default],["doc-tip",Ye.default],["doc-toc",Xe.default]],Je=Ie;return E1.default=Je,E1}var oS={},uS={},e3;function gP(){if(e3)return uS;e3=1,Object.defineProperty(uS,"__esModule",{value:!0}),uS.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-object"}},{module:"ARIA",concept:{name:"img"}},{module:"ARIA",concept:{name:"article"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},a=t;return uS.default=a,uS}var sS={},t3;function bP(){if(t3)return sS;t3=1,Object.defineProperty(sS,"__esModule",{value:!0}),sS.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-document"}},{module:"ARIA",concept:{name:"group"}},{module:"ARIA",concept:{name:"img"}},{module:"GRAPHICS",concept:{name:"graphics-symbol"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},a=t;return sS.default=a,sS}var cS={},n3;function vP(){if(n3)return cS;n3=1,Object.defineProperty(cS,"__esModule",{value:!0}),cS.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},a=t;return cS.default=a,cS}var a3;function SP(){if(a3)return oS;a3=1,Object.defineProperty(oS,"__esModule",{value:!0}),oS.default=void 0;var t=u(gP()),a=u(bP()),i=u(vP());function u(h){return h&&h.__esModule?h:{default:h}}var f=[["graphics-document",t.default],["graphics-object",a.default],["graphics-symbol",i.default]],m=f;return oS.default=m,oS}var r3;function o_(){if(r3)return qv;r3=1,Object.defineProperty(qv,"__esModule",{value:!0}),qv.default=void 0;var t=m(e7()),a=m(OH()),i=m(yP()),u=m(SP()),f=m(BS());function m(_){return _&&_.__esModule?_:{default:_}}function h(_,L,$){return L in _?Object.defineProperty(_,L,{value:$,enumerable:!0,configurable:!0,writable:!0}):_[L]=$,_}function y(_,L){var $=typeof Symbol<"u"&&_[Symbol.iterator]||_["@@iterator"];if(!$){if(Array.isArray(_)||($=x(_))||L){$&&(_=$);var I=0,V=function(){};return{s:V,n:function(){return I>=_.length?{done:!0}:{done:!1,value:_[I++]}},e:function(H){throw H},f:V}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
259
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z=!0,k=!1,U;return{s:function(){$=$.call(_)},n:function(){var H=$.next();return z=H.done,H},e:function(H){k=!0,U=H},f:function(){try{!z&&$.return!=null&&$.return()}finally{if(k)throw U}}}}function b(_,L){return A(_)||R(_,L)||x(_,L)||v()}function v(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
260
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x(_,L){if(_){if(typeof _=="string")return E(_,L);var $=Object.prototype.toString.call(_).slice(8,-1);if($==="Object"&&_.constructor&&($=_.constructor.name),$==="Map"||$==="Set")return Array.from(_);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return E(_,L)}}function E(_,L){(L==null||L>_.length)&&(L=_.length);for(var $=0,I=new Array(L);$<L;$++)I[$]=_[$];return I}function R(_,L){var $=_==null?null:typeof Symbol<"u"&&_[Symbol.iterator]||_["@@iterator"];if($!=null){var I=[],V=!0,z=!1,k,U;try{for($=$.call(_);!(V=(k=$.next()).done)&&(I.push(k.value),!(L&&I.length===L));V=!0);}catch(F){z=!0,U=F}finally{try{!V&&$.return!=null&&$.return()}finally{if(z)throw U}}return I}}function A(_){if(Array.isArray(_))return _}var M=[].concat(t.default,a.default,i.default,u.default);M.forEach(function(_){var L=b(_,2),$=L[1],I=y($.superClass),V;try{for(I.s();!(V=I.n()).done;){var z=V.value,k=y(z),U;try{var F=function(){var J=U.value,ve=M.find(function(ue){var te=b(ue,1),De=te[0];return De===J});if(ve)for(var se=ve[1],Se=0,ke=Object.keys(se.props);Se<ke.length;Se++){var P=ke[Se];Object.prototype.hasOwnProperty.call($.props,P)||Object.assign($.props,h({},P,se.props[P]))}};for(k.s();!(U=k.n()).done;)F()}catch(H){k.e(H)}finally{k.f()}}}catch(H){I.e(H)}finally{I.f()}});var q={entries:function(){return M},forEach:function(L){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,I=y(M),V;try{for(I.s();!(V=I.n()).done;){var z=b(V.value,2),k=z[0],U=z[1];L.call($,U,k,M)}}catch(F){I.e(F)}finally{I.f()}},get:function(L){var $=M.find(function(I){return I[0]===L});return $&&$[1]},has:function(L){return!!q.get(L)},keys:function(){return M.map(function(L){var $=b(L,1),I=$[0];return I})},values:function(){return M.map(function(L){var $=b(L,2),I=$[1];return I})}},N=(0,f.default)(q,q.entries());return qv.default=N,qv}var fS={},dC={},l3;function EP(){if(l3)return dC;l3=1;var t=Object.prototype.hasOwnProperty;function a(i,u){var f,m;if(i===u)return!0;if(i&&u&&(f=i.constructor)===u.constructor){if(f===Date)return i.getTime()===u.getTime();if(f===RegExp)return i.toString()===u.toString();if(f===Array){if((m=i.length)===u.length)for(;m--&&a(i[m],u[m]););return m===-1}if(!f||typeof i=="object"){m=0;for(f in i)if(t.call(i,f)&&++m&&!t.call(u,f)||!(f in u)||!a(i[f],u[f]))return!1;return Object.keys(u).length===m}}return i!==i&&u!==u}return dC.dequal=a,dC}var i3;function TP(){if(i3)return fS;i3=1,Object.defineProperty(fS,"__esModule",{value:!0}),fS.default=void 0;var t=EP(),a=u(BS()),i=u(o_());function u(V){return V&&V.__esModule?V:{default:V}}function f(V,z){return y(V)||h(V,z)||v(V,z)||m()}function m(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
261
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h(V,z){var k=V==null?null:typeof Symbol<"u"&&V[Symbol.iterator]||V["@@iterator"];if(k!=null){var U=[],F=!0,H=!1,J,ve;try{for(k=k.call(V);!(F=(J=k.next()).done)&&(U.push(J.value),!(z&&U.length===z));F=!0);}catch(se){H=!0,ve=se}finally{try{!F&&k.return!=null&&k.return()}finally{if(H)throw ve}}return U}}function y(V){if(Array.isArray(V))return V}function b(V,z){var k=typeof Symbol<"u"&&V[Symbol.iterator]||V["@@iterator"];if(!k){if(Array.isArray(V)||(k=v(V))||z){k&&(V=k);var U=0,F=function(){};return{s:F,n:function(){return U>=V.length?{done:!0}:{done:!1,value:V[U++]}},e:function(Se){throw Se},f:F}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
262
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H=!0,J=!1,ve;return{s:function(){k=k.call(V)},n:function(){var Se=k.next();return H=Se.done,Se},e:function(Se){J=!0,ve=Se},f:function(){try{!H&&k.return!=null&&k.return()}finally{if(J)throw ve}}}}function v(V,z){if(V){if(typeof V=="string")return x(V,z);var k=Object.prototype.toString.call(V).slice(8,-1);if(k==="Object"&&V.constructor&&(k=V.constructor.name),k==="Map"||k==="Set")return Array.from(V);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return x(V,z)}}function x(V,z){(z==null||z>V.length)&&(z=V.length);for(var k=0,U=new Array(z);k<z;k++)U[k]=V[k];return U}for(var E=[],R=i.default.keys(),A=0;A<R.length;A++){var M=R[A],q=i.default.get(M);if(q)for(var N=[].concat(q.baseConcepts,q.relatedConcepts),_=0;_<N.length;_++){var L=N[_];L.module==="HTML"&&(function(){var V=L.concept;if(V){var z=E.find(function(H){return(0,t.dequal)(H,V)}),k;z?k=z[1]:k=[];for(var U=!0,F=0;F<k.length;F++)if(k[F]===M){U=!1;break}U&&k.push(M),E.push([V,k])}})()}}var $={entries:function(){return E},forEach:function(z){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,U=b(E),F;try{for(U.s();!(F=U.n()).done;){var H=f(F.value,2),J=H[0],ve=H[1];z.call(k,ve,J,E)}}catch(se){U.e(se)}finally{U.f()}},get:function(z){var k=E.find(function(U){return z.name===U[0].name&&(0,t.dequal)(z.attributes,U[0].attributes)});return k&&k[1]},has:function(z){return!!$.get(z)},keys:function(){return E.map(function(z){var k=f(z,1),U=k[0];return U})},values:function(){return E.map(function(z){var k=f(z,2),U=k[1];return U})}},I=(0,a.default)($,$.entries());return fS.default=I,fS}var dS={},o3;function wP(){if(o3)return dS;o3=1,Object.defineProperty(dS,"__esModule",{value:!0}),dS.default=void 0;var t=i(BS()),a=i(o_());function i(z){return z&&z.__esModule?z:{default:z}}function u(z,k){return h(z)||m(z,k)||b(z,k)||f()}function f(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
263
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(z,k){var U=z==null?null:typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(U!=null){var F=[],H=!0,J=!1,ve,se;try{for(U=U.call(z);!(H=(ve=U.next()).done)&&(F.push(ve.value),!(k&&F.length===k));H=!0);}catch(Se){J=!0,se=Se}finally{try{!H&&U.return!=null&&U.return()}finally{if(J)throw se}}return F}}function h(z){if(Array.isArray(z))return z}function y(z,k){var U=typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(!U){if(Array.isArray(z)||(U=b(z))||k){U&&(z=U);var F=0,H=function(){};return{s:H,n:function(){return F>=z.length?{done:!0}:{done:!1,value:z[F++]}},e:function(ke){throw ke},f:H}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
264
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var J=!0,ve=!1,se;return{s:function(){U=U.call(z)},n:function(){var ke=U.next();return J=ke.done,ke},e:function(ke){ve=!0,se=ke},f:function(){try{!J&&U.return!=null&&U.return()}finally{if(ve)throw se}}}}function b(z,k){if(z){if(typeof z=="string")return v(z,k);var U=Object.prototype.toString.call(z).slice(8,-1);if(U==="Object"&&z.constructor&&(U=z.constructor.name),U==="Map"||U==="Set")return Array.from(z);if(U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return v(z,k)}}function v(z,k){(k==null||k>z.length)&&(k=z.length);for(var U=0,F=new Array(k);U<k;U++)F[U]=z[U];return F}for(var x=[],E=a.default.keys(),R=0;R<E.length;R++){var A=E[R],M=a.default.get(A),q=[];if(M){for(var N=[].concat(M.baseConcepts,M.relatedConcepts),_=0;_<N.length;_++){var L=N[_];if(L.module==="HTML"){var $=L.concept;$!=null&&q.push($)}}q.length>0&&x.push([A,q])}}var I={entries:function(){return x},forEach:function(k){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,F=y(x),H;try{for(F.s();!(H=F.n()).done;){var J=u(H.value,2),ve=J[0],se=J[1];k.call(U,se,ve,x)}}catch(Se){F.e(Se)}finally{F.f()}},get:function(k){var U=x.find(function(F){return F[0]===k});return U&&U[1]},has:function(k){return!!I.get(k)},keys:function(){return x.map(function(k){var U=u(k,1),F=U[0];return F})},values:function(){return x.map(function(k){var U=u(k,2),F=U[1];return F})}},V=(0,t.default)(I,I.entries());return dS.default=V,dS}var u3;function xP(){if(u3)return ei;u3=1,Object.defineProperty(ei,"__esModule",{value:!0}),ei.roles=ei.roleElements=ei.elementRoles=ei.dom=ei.aria=void 0;var t=m($9()),a=m(H9()),i=m(o_()),u=m(TP()),f=m(wP());function m(E){return E&&E.__esModule?E:{default:E}}var h=t.default;ei.aria=h;var y=a.default;ei.dom=y;var b=i.default;ei.roles=b;var v=u.default;ei.elementRoles=v;var x=f.default;return ei.roleElements=x,ei}var Xi=xP(),pC={exports:{}},s3;function RP(){return s3||(s3=1,(function(t){var a=(function(){var i=String.fromCharCode,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",m={};function h(b,v){if(!m[b]){m[b]={};for(var x=0;x<b.length;x++)m[b][b.charAt(x)]=x}return m[b][v]}var y={compressToBase64:function(b){if(b==null)return"";var v=y._compress(b,6,function(x){return u.charAt(x)});switch(v.length%4){default:case 0:return v;case 1:return v+"===";case 2:return v+"==";case 3:return v+"="}},decompressFromBase64:function(b){return b==null?"":b==""?null:y._decompress(b.length,32,function(v){return h(u,b.charAt(v))})},compressToUTF16:function(b){return b==null?"":y._compress(b,15,function(v){return i(v+32)})+" "},decompressFromUTF16:function(b){return b==null?"":b==""?null:y._decompress(b.length,16384,function(v){return b.charCodeAt(v)-32})},compressToUint8Array:function(b){for(var v=y.compress(b),x=new Uint8Array(v.length*2),E=0,R=v.length;E<R;E++){var A=v.charCodeAt(E);x[E*2]=A>>>8,x[E*2+1]=A%256}return x},decompressFromUint8Array:function(b){if(b==null)return y.decompress(b);for(var v=new Array(b.length/2),x=0,E=v.length;x<E;x++)v[x]=b[x*2]*256+b[x*2+1];var R=[];return v.forEach(function(A){R.push(i(A))}),y.decompress(R.join(""))},compressToEncodedURIComponent:function(b){return b==null?"":y._compress(b,6,function(v){return f.charAt(v)})},decompressFromEncodedURIComponent:function(b){return b==null?"":b==""?null:(b=b.replace(/ /g,"+"),y._decompress(b.length,32,function(v){return h(f,b.charAt(v))}))},compress:function(b){return y._compress(b,16,function(v){return i(v)})},_compress:function(b,v,x){if(b==null)return"";var E,R,A={},M={},q="",N="",_="",L=2,$=3,I=2,V=[],z=0,k=0,U;for(U=0;U<b.length;U+=1)if(q=b.charAt(U),Object.prototype.hasOwnProperty.call(A,q)||(A[q]=$++,M[q]=!0),N=_+q,Object.prototype.hasOwnProperty.call(A,N))_=N;else{if(Object.prototype.hasOwnProperty.call(M,_)){if(_.charCodeAt(0)<256){for(E=0;E<I;E++)z=z<<1,k==v-1?(k=0,V.push(x(z)),z=0):k++;for(R=_.charCodeAt(0),E=0;E<8;E++)z=z<<1|R&1,k==v-1?(k=0,V.push(x(z)),z=0):k++,R=R>>1}else{for(R=1,E=0;E<I;E++)z=z<<1|R,k==v-1?(k=0,V.push(x(z)),z=0):k++,R=0;for(R=_.charCodeAt(0),E=0;E<16;E++)z=z<<1|R&1,k==v-1?(k=0,V.push(x(z)),z=0):k++,R=R>>1}L--,L==0&&(L=Math.pow(2,I),I++),delete M[_]}else for(R=A[_],E=0;E<I;E++)z=z<<1|R&1,k==v-1?(k=0,V.push(x(z)),z=0):k++,R=R>>1;L--,L==0&&(L=Math.pow(2,I),I++),A[N]=$++,_=String(q)}if(_!==""){if(Object.prototype.hasOwnProperty.call(M,_)){if(_.charCodeAt(0)<256){for(E=0;E<I;E++)z=z<<1,k==v-1?(k=0,V.push(x(z)),z=0):k++;for(R=_.charCodeAt(0),E=0;E<8;E++)z=z<<1|R&1,k==v-1?(k=0,V.push(x(z)),z=0):k++,R=R>>1}else{for(R=1,E=0;E<I;E++)z=z<<1|R,k==v-1?(k=0,V.push(x(z)),z=0):k++,R=0;for(R=_.charCodeAt(0),E=0;E<16;E++)z=z<<1|R&1,k==v-1?(k=0,V.push(x(z)),z=0):k++,R=R>>1}L--,L==0&&(L=Math.pow(2,I),I++),delete M[_]}else for(R=A[_],E=0;E<I;E++)z=z<<1|R&1,k==v-1?(k=0,V.push(x(z)),z=0):k++,R=R>>1;L--,L==0&&(L=Math.pow(2,I),I++)}for(R=2,E=0;E<I;E++)z=z<<1|R&1,k==v-1?(k=0,V.push(x(z)),z=0):k++,R=R>>1;for(;;)if(z=z<<1,k==v-1){V.push(x(z));break}else k++;return V.join("")},decompress:function(b){return b==null?"":b==""?null:y._decompress(b.length,32768,function(v){return b.charCodeAt(v)})},_decompress:function(b,v,x){var E=[],R=4,A=4,M=3,q="",N=[],_,L,$,I,V,z,k,U={val:x(0),position:v,index:1};for(_=0;_<3;_+=1)E[_]=_;for($=0,V=Math.pow(2,2),z=1;z!=V;)I=U.val&U.position,U.position>>=1,U.position==0&&(U.position=v,U.val=x(U.index++)),$|=(I>0?1:0)*z,z<<=1;switch($){case 0:for($=0,V=Math.pow(2,8),z=1;z!=V;)I=U.val&U.position,U.position>>=1,U.position==0&&(U.position=v,U.val=x(U.index++)),$|=(I>0?1:0)*z,z<<=1;k=i($);break;case 1:for($=0,V=Math.pow(2,16),z=1;z!=V;)I=U.val&U.position,U.position>>=1,U.position==0&&(U.position=v,U.val=x(U.index++)),$|=(I>0?1:0)*z,z<<=1;k=i($);break;case 2:return""}for(E[3]=k,L=k,N.push(k);;){if(U.index>b)return"";for($=0,V=Math.pow(2,M),z=1;z!=V;)I=U.val&U.position,U.position>>=1,U.position==0&&(U.position=v,U.val=x(U.index++)),$|=(I>0?1:0)*z,z<<=1;switch(k=$){case 0:for($=0,V=Math.pow(2,8),z=1;z!=V;)I=U.val&U.position,U.position>>=1,U.position==0&&(U.position=v,U.val=x(U.index++)),$|=(I>0?1:0)*z,z<<=1;E[A++]=i($),k=A-1,R--;break;case 1:for($=0,V=Math.pow(2,16),z=1;z!=V;)I=U.val&U.position,U.position>>=1,U.position==0&&(U.position=v,U.val=x(U.index++)),$|=(I>0?1:0)*z,z<<=1;E[A++]=i($),k=A-1,R--;break;case 2:return N.join("")}if(R==0&&(R=Math.pow(2,M),M++),E[k])q=E[k];else if(k===A)q=L+L.charAt(0);else return null;N.push(q),E[A++]=L+q.charAt(0),R--,L=q,R==0&&(R=Math.pow(2,M),M++)}}};return y})();t!=null?t.exports=a:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return a})})(pC)),pC.exports}var CP=RP();const AP=R8(CP);function w4(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;")}const _P=(t,a,i,u,f,m,h)=>{const y=u+i.indent,b=i.colors;return t.map(v=>{const x=a[v];let E=h(x,i,y,f,m);return typeof x!="string"&&(E.indexOf(`
265
+ `)!==-1&&(E=i.spacingOuter+y+E+i.spacingOuter+u),E="{"+E+"}"),i.spacingInner+u+b.prop.open+v+b.prop.close+"="+b.value.open+E+b.value.close}).join("")},MP=3,OP=(t,a,i,u,f,m)=>t.map(h=>{const y=typeof h=="string"?x4(h,a):m(h,a,i,u,f);return y===""&&typeof h=="object"&&h!==null&&h.nodeType!==MP?"":a.spacingOuter+i+y}).join(""),x4=(t,a)=>{const i=a.colors.content;return i.open+w4(t)+i.close},qP=(t,a)=>{const i=a.colors.comment;return i.open+"<!--"+w4(t)+"-->"+i.close},DP=(t,a,i,u,f)=>{const m=u.colors.tag;return m.open+"<"+t+(a&&m.close+a+u.spacingOuter+f+m.open)+(i?">"+m.close+i+u.spacingOuter+f+m.open+"</"+t:(a&&!u.min?"":" ")+"/")+">"+m.close},NP=(t,a)=>{const i=a.colors.tag;return i.open+"<"+t+i.close+" …"+i.open+" />"+i.close},jP=1,R4=3,C4=8,A4=11,zP=/^((HTML|SVG)\w*)?Element$/,_4=t=>{const{tagName:a}=t;return!!(typeof a=="string"&&a.includes("-")||typeof t.hasAttribute=="function"&&t.hasAttribute("is"))},kP=t=>{const a=t.constructor.name,{nodeType:i}=t;return i===jP&&(zP.test(a)||_4(t))||i===R4&&a==="Text"||i===C4&&a==="Comment"||i===A4&&a==="DocumentFragment"};function BP(t){return t.nodeType===R4}function UP(t){return t.nodeType===C4}function hC(t){return t.nodeType===A4}function LP(t){return{test:a=>{var i;return((a==null||(i=a.constructor)==null?void 0:i.name)||_4(a))&&kP(a)},serialize:(a,i,u,f,m,h)=>{if(BP(a))return x4(a.data,i);if(UP(a))return qP(a.data,i);const y=hC(a)?"DocumentFragment":a.tagName.toLowerCase();return++f>i.maxDepth?NP(y,i):DP(y,_P(hC(a)?[]:Array.from(a.attributes).map(b=>b.name).sort(),hC(a)?{}:Array.from(a.attributes).reduce((b,v)=>(b[v.name]=v.value,b),{}),i,u+i.indent,f,m,h),OP(Array.prototype.slice.call(a.childNodes||a.children).filter(t),i,u+i.indent,f,m,h),i,u)}}}let M4=null,u_=null,s_=null;try{const t=module&&module.require;u_=t.call(module,"fs").readFileSync,s_=t.call(module,"@babel/code-frame").codeFrameColumns,M4=t.call(module,"picocolors")}catch{}function $P(t){const a=t.indexOf("(")+1,i=t.indexOf(")"),u=t.slice(a,i),f=u.split(":"),[m,h,y]=[f[0],parseInt(f[1],10),parseInt(f[2],10)];let b="";try{b=u_(m,"utf-8")}catch{return""}const v=s_(b,{start:{line:h,column:y}},{highlightCode:!0,linesBelow:0});return M4.dim(u)+`
266
+ `+v+`
267
+ `}function HP(){if(!u_||!s_)return"";const a=new Error().stack.split(`
268
+ `).slice(1).find(i=>!i.includes("node_modules/"));return $P(a)}const O4=3;function mC(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}function c_(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function q4(t){if(t.defaultView)return t.defaultView;if(t.ownerDocument&&t.ownerDocument.defaultView)return t.ownerDocument.defaultView;if(t.window)return t.window;throw t.ownerDocument&&t.ownerDocument.defaultView===null?new Error("It looks like the window object is not available for the provided node."):t.then instanceof Function?new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?"):Array.isArray(t)?new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?"):typeof t.debug=="function"&&typeof t.logTestingPlaygroundURL=="function"?new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?"):new Error("The given node is not an Element, the node type is: "+typeof t+".")}function Js(t){if(!t||typeof t.querySelector!="function"||typeof t.querySelectorAll!="function")throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got "+a(t)+".");function a(i){return typeof i=="object"?i===null?"null":i.constructor.name:typeof i}}const PP=()=>{if(typeof process>"u")return!1;let t;try{var a;const i=(a=process.env)==null?void 0:a.COLORS;i&&(t=JSON.parse(i))}catch{}return typeof t=="boolean"?t:process.versions!==void 0&&process.versions.node!==void 0},{DOMCollection:IP}=h4.plugins,VP=1,GP=8;function YP(t){return t.nodeType!==GP&&(t.nodeType!==VP||!t.matches(Sn().defaultIgnore))}function vy(t,a,i){if(i===void 0&&(i={}),t||(t=c_().body),typeof a!="number"&&(a=typeof process<"u"&&typeof process.env<"u"&&process.env.DEBUG_PRINT_LIMIT||7e3),a===0)return"";t.documentElement&&(t=t.documentElement);let u=typeof t;if(u==="object"?u=t.constructor.name:t={},!("outerHTML"in t))throw new TypeError("Expected an element or document but got "+u);const{filterNode:f=YP,...m}=i,h=h4.format(t,{plugins:[LP(f),IP],printFunctionName:!1,highlight:PP(),...m});return a!==void 0&&t.outerHTML.length>a?h.slice(0,a)+"...":h}const c3=function(){const t=HP();console.log(t?vy(...arguments)+`
269
+
270
+ `+t:vy(...arguments))};let Mp={testIdAttribute:"data-testid",asyncUtilTimeout:1e3,asyncWrapper:t=>t(),unstable_advanceTimersWrapper:t=>t(),eventWrapper:t=>t(),defaultHidden:!1,defaultIgnore:"script, style",showOriginalStackTrace:!1,throwSuggestions:!1,getElementError(t,a){const i=vy(a),u=new Error([t,"Ignored nodes: comments, "+Mp.defaultIgnore+`
271
+ `+i].filter(Boolean).join(`
272
+
273
+ `));return u.name="TestingLibraryElementError",u},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function XP(t){try{return Mp._disableExpensiveErrorDiagnostics=!0,t()}finally{Mp._disableExpensiveErrorDiagnostics=!1}}function FP(t){typeof t=="function"&&(t=t(Mp)),Mp={...Mp,...t}}function Sn(){return Mp}const QP=["button","meter","output","progress","select","textarea","input"];function D4(t){return QP.includes(t.nodeName.toLowerCase())?"":t.nodeType===O4?t.textContent:Array.from(t.childNodes).map(a=>D4(a)).join("")}function iA(t){let a;return t.tagName.toLowerCase()==="label"?a=D4(t):a=t.value||t.textContent,a}function N4(t){if(t.labels!==void 0){var a;return(a=t.labels)!=null?a:[]}if(!ZP(t))return[];const i=t.ownerDocument.querySelectorAll("label");return Array.from(i).filter(u=>u.control===t)}function ZP(t){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(t.tagName)||t.tagName==="INPUT"&&t.getAttribute("type")!=="hidden"}function j4(t,a,i){let{selector:u="*"}=i===void 0?{}:i;const f=a.getAttribute("aria-labelledby"),m=f?f.split(" "):[];return m.length?m.map(h=>{const y=t.querySelector('[id="'+h+'"]');return y?{content:iA(y),formControl:null}:{content:"",formControl:null}}):Array.from(N4(a)).map(h=>{const y=iA(h),v=Array.from(h.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter(x=>x.matches(u))[0];return{content:y,formControl:v}})}function z4(t){if(t==null)throw new Error("It looks like "+t+" was passed instead of a matcher. Did you do something like getByText("+t+")?")}function Cy(t,a,i,u){if(typeof t!="string")return!1;z4(i);const f=u(t);return typeof i=="string"||typeof i=="number"?f.toLowerCase().includes(i.toString().toLowerCase()):typeof i=="function"?i(f,a):B4(i,f)}function Qs(t,a,i,u){if(typeof t!="string")return!1;z4(i);const f=u(t);return i instanceof Function?i(f,a):i instanceof RegExp?B4(i,f):f===String(i)}function k4(t){let{trim:a=!0,collapseWhitespace:i=!0}=t===void 0?{}:t;return u=>{let f=u;return f=a?f.trim():f,f=i?f.replace(/\s+/g," "):f,f}}function Up(t){let{trim:a,collapseWhitespace:i,normalizer:u}=t;if(!u)return k4({trim:a,collapseWhitespace:i});if(typeof a<"u"||typeof i<"u")throw new Error('trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer');return u}function B4(t,a){const i=t.test(a);return t.global&&t.lastIndex!==0&&(console.warn("To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp."),t.lastIndex=0),i}function dx(t){return t.matches("input[type=submit], input[type=button], input[type=reset]")?t.value:Array.from(t.childNodes).filter(a=>a.nodeType===O4&&!!a.textContent).map(a=>a.textContent).join("")}const JP=KP(Xi.elementRoles);function U4(t){return t.hidden===!0||t.getAttribute("aria-hidden")==="true"||t.ownerDocument.defaultView.getComputedStyle(t).display==="none"}function f_(t,a){a===void 0&&(a={});const{isSubtreeInaccessible:i=U4}=a;if(t.ownerDocument.defaultView.getComputedStyle(t).visibility==="hidden")return!0;let f=t;for(;f;){if(i(f))return!0;f=f.parentElement}return!1}function d_(t){for(const{match:a,roles:i}of JP)if(a(t))return[...i];return[]}function KP(t){function a(h){let{name:y,attributes:b}=h;return""+y+b.map(v=>{let{name:x,value:E,constraints:R=[]}=v;const A=R.indexOf("undefined")!==-1,M=R.indexOf("set")!==-1;return typeof E<"u"?"["+x+'="'+E+'"]':A?":not(["+x+"])":M?"["+x+"]:not(["+x+'=""])':"["+x+"]"}).join("")}function i(h){let{attributes:y=[]}=h;return y.length}function u(h,y){let{specificity:b}=h,{specificity:v}=y;return v-b}function f(h){let{attributes:y=[]}=h;const b=y.findIndex(x=>x.value&&x.name==="type"&&x.value==="text");b>=0&&(y=[...y.slice(0,b),...y.slice(b+1)]);const v=a({...h,attributes:y});return x=>b>=0&&x.type!=="text"?!1:x.matches(v)}let m=[];for(const[h,y]of t.entries())m=[...m,{match:f(h),roles:Array.from(y),specificity:i(h)}];return m.sort(u)}function WP(t,a){let{hidden:i=!1}=a===void 0?{}:a;function u(f){return[f,...Array.from(f.children).reduce((m,h)=>[...m,...u(h)],[])]}return u(t).filter(f=>i===!1?f_(f)===!1:!0).reduce((f,m)=>{let h=[];return m.hasAttribute("role")?h=m.getAttribute("role").split(" ").slice(0,1):h=d_(m),h.reduce((y,b)=>Array.isArray(y[b])?{...y,[b]:[...y[b],m]}:{...y,[b]:[m]},f)},{})}function eI(t,a){let{hidden:i,includeDescription:u}=a;const f=WP(t,{hidden:i});return Object.entries(f).filter(m=>{let[h]=m;return h!=="generic"}).map(m=>{let[h,y]=m;const b="-".repeat(50),v=y.map(x=>{const E='Name "'+i_(x,{computedStyleSupportsPseudoElements:Sn().computedStyleSupportsPseudoElements})+`":
274
+ `,R=vy(x.cloneNode(!1));if(u){const A='Description "'+T4(x,{computedStyleSupportsPseudoElements:Sn().computedStyleSupportsPseudoElements})+`":
275
+ `;return""+E+A+R}return""+E+R}).join(`
276
+
277
+ `);return h+`:
278
+
279
+ `+v+`
280
+
281
+ `+b}).join(`
282
+ `)}function tI(t){return t.tagName==="OPTION"?t.selected:US(t,"aria-selected")}function nI(t){return t.getAttribute("aria-busy")==="true"}function aI(t){if(!("indeterminate"in t&&t.indeterminate))return"checked"in t?t.checked:US(t,"aria-checked")}function rI(t){return US(t,"aria-pressed")}function lI(t){var a,i;return(a=(i=US(t,"aria-current"))!=null?i:t.getAttribute("aria-current"))!=null?a:!1}function iI(t){return US(t,"aria-expanded")}function US(t,a){const i=t.getAttribute(a);if(i==="true")return!0;if(i==="false")return!1}function oI(t){const a={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6};return t.getAttribute("aria-level")&&Number(t.getAttribute("aria-level"))||a[t.tagName]}function uI(t){const a=t.getAttribute("aria-valuenow");return a===null?void 0:+a}function sI(t){const a=t.getAttribute("aria-valuemax");return a===null?void 0:+a}function cI(t){const a=t.getAttribute("aria-valuemin");return a===null?void 0:+a}function fI(t){const a=t.getAttribute("aria-valuetext");return a===null?void 0:a}const f3=k4();function dI(t){return t.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function d3(t){return new RegExp(dI(t.toLowerCase()),"i")}function Of(t,a,i,u){let{variant:f,name:m}=u,h="";const y={},b=[["Role","TestId"].includes(t)?i:d3(i)];m&&(y.name=d3(m)),t==="Role"&&f_(a)&&(y.hidden=!0,h=`Element is inaccessible. This means that the element and all its children are invisible to screen readers.
283
+ If you are using the aria-hidden prop, make sure this is the right choice for your case.
284
+ `),Object.keys(y).length>0&&b.push(y);const v=f+"By"+t;return{queryName:t,queryMethod:v,queryArgs:b,variant:f,warning:h,toString(){h&&console.warn(h);let[x,E]=b;return x=typeof x=="string"?"'"+x+"'":x,E=E?", { "+Object.entries(E).map(R=>{let[A,M]=R;return A+": "+M}).join(", ")+" }":"",v+"("+x+E+")"}}}function qf(t,a,i){return i&&!0}function oA(t,a,i){var u,f;if(a===void 0&&(a="get"),t.matches(Sn().defaultIgnore))return;const m=(u=t.getAttribute("role"))!=null?u:(f=d_(t))==null?void 0:f[0];if(m!=="generic"&&qf("Role",i,m))return Of("Role",t,m,{variant:a,name:i_(t,{computedStyleSupportsPseudoElements:Sn().computedStyleSupportsPseudoElements})});const h=j4(document,t).map(R=>R.content).join(" ");if(qf("LabelText",i,h))return Of("LabelText",t,h,{variant:a});const y=t.getAttribute("placeholder");if(qf("PlaceholderText",i,y))return Of("PlaceholderText",t,y,{variant:a});const b=f3(dx(t));if(qf("Text",i,b))return Of("Text",t,b,{variant:a});if(qf("DisplayValue",i,t.value))return Of("DisplayValue",t,f3(t.value),{variant:a});const v=t.getAttribute("alt");if(qf("AltText",i,v))return Of("AltText",t,v,{variant:a});const x=t.getAttribute("title");if(qf("Title",i,x))return Of("Title",t,x,{variant:a});const E=t.getAttribute(Sn().testIdAttribute);if(qf("TestId",i,E))return Of("TestId",t,E,{variant:a})}function Tw(t,a){t.stack=a.stack.replace(a.message,t.message)}function pI(t,a){let{container:i=c_(),timeout:u=Sn().asyncUtilTimeout,showOriginalStackTrace:f=Sn().showOriginalStackTrace,stackTraceError:m,interval:h=50,onTimeout:y=v=>(Object.defineProperty(v,"message",{value:Sn().getElementError(v.message,i).message}),v),mutationObserverOptions:b={subtree:!0,childList:!0,attributes:!0,characterData:!0}}=a;if(typeof t!="function")throw new TypeError("Received `callback` arg must be a function");return new Promise(async(v,x)=>{let E,R,A,M=!1,q="idle";const N=setTimeout(V,u),_=mC();if(_){const{unstable_advanceTimersWrapper:z}=Sn();for(I();!M;){if(!mC()){const k=new Error("Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");f||Tw(k,m),x(k);return}if(await z(async()=>{jest.advanceTimersByTime(h)}),M)break;I()}}else{try{Js(i)}catch(k){x(k);return}R=setInterval($,h);const{MutationObserver:z}=q4(i);A=new z($),A.observe(i,b),I()}function L(z,k){M=!0,clearTimeout(N),_||(clearInterval(R),A.disconnect()),z?x(z):v(k)}function $(){if(mC()){const z=new Error("Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");return f||Tw(z,m),x(z)}else return I()}function I(){if(q!=="pending")try{const z=XP(t);typeof z?.then=="function"?(q="pending",z.then(k=>{q="resolved",L(null,k)},k=>{q="rejected",E=k})):L(null,z)}catch(z){E=z}}function V(){let z;E?(z=E,!f&&z.name==="TestingLibraryElementError"&&Tw(z,m)):(z=new Error("Timed out in waitFor."),f||Tw(z,m)),L(y(z),null)}})}function hI(t,a){const i=new Error("STACK_TRACE_MESSAGE");return Sn().asyncWrapper(()=>pI(t,{stackTraceError:i,...a}))}function L4(t,a){return Sn().getElementError(t,a)}function mI(t,a){return L4(t+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",a)}function px(t,a,i,u){let{exact:f=!0,collapseWhitespace:m,trim:h,normalizer:y}=u===void 0?{}:u;const b=f?Qs:Cy,v=Up({collapseWhitespace:m,trim:h,normalizer:y});return Array.from(a.querySelectorAll("["+t+"]")).filter(x=>b(x.getAttribute(t),x,i,v))}function Vw(t,a){return function(i){for(var u=arguments.length,f=new Array(u>1?u-1:0),m=1;m<u;m++)f[m-1]=arguments[m];const h=t(i,...f);if(h.length>1){const y=h.map(b=>L4(null,b).message).join(`
285
+
286
+ `);throw mI(a(i,...f)+`
287
+
288
+ Here are the matching elements:
289
+
290
+ `+y,i)}return h[0]||null}}function $4(t,a){return Sn().getElementError(`A better query is available, try this:
291
+ `+t.toString()+`
292
+ `,a)}function yI(t,a){return function(i){for(var u=arguments.length,f=new Array(u>1?u-1:0),m=1;m<u;m++)f[m-1]=arguments[m];const h=t(i,...f);if(!h.length)throw Sn().getElementError(a(i,...f),i);return h}}function Gw(t){return(a,i,u,f)=>hI(()=>t(a,i,u),{container:a,...f})}const my=(t,a,i)=>function(u){for(var f=arguments.length,m=new Array(f>1?f-1:0),h=1;h<f;h++)m[h-1]=arguments[h];const y=t(u,...m),[{suggest:b=Sn().throwSuggestions}={}]=m.slice(-1);if(y&&b){const v=oA(y,i);if(v&&!a.endsWith(v.queryName))throw $4(v.toString(),u)}return y},Fi=(t,a,i)=>function(u){for(var f=arguments.length,m=new Array(f>1?f-1:0),h=1;h<f;h++)m[h-1]=arguments[h];const y=t(u,...m),[{suggest:b=Sn().throwSuggestions}={}]=m.slice(-1);if(y.length&&b){const v=[...new Set(y.map(x=>{var E;return(E=oA(x,i))==null?void 0:E.toString()}))];if(v.length===1&&!a.endsWith(oA(y[0],i).queryName))throw $4(v[0],u)}return y};function Lp(t,a,i){const u=my(Vw(t,a),t.name,"query"),f=yI(t,i),m=Vw(f,a),h=my(m,t.name,"get"),y=Fi(f,t.name.replace("query","get"),"getAll"),b=Gw(Fi(f,t.name,"findAll")),v=Gw(my(m,t.name,"find"));return[u,y,h,b,v]}function gI(t){return Array.from(t.querySelectorAll("label,input")).map(a=>({node:a,textToMatch:iA(a)})).filter(a=>{let{textToMatch:i}=a;return i!==null})}const bI=function(t,a,i){let{exact:u=!0,trim:f,collapseWhitespace:m,normalizer:h}=i===void 0?{}:i;const y=u?Qs:Cy,b=Up({collapseWhitespace:m,trim:f,normalizer:h});return gI(t).filter(x=>{let{node:E,textToMatch:R}=x;return y(R,E,a,b)}).map(x=>{let{node:E}=x;return E})},qS=function(t,a,i){let{selector:u="*",exact:f=!0,collapseWhitespace:m,trim:h,normalizer:y}=i===void 0?{}:i;Js(t);const b=f?Qs:Cy,v=Up({collapseWhitespace:m,trim:h,normalizer:y}),x=Array.from(t.querySelectorAll("*")).filter(E=>N4(E).length||E.hasAttribute("aria-labelledby")).reduce((E,R)=>{const A=j4(t,R,{selector:u});A.filter(q=>!!q.formControl).forEach(q=>{b(q.content,q.formControl,a,v)&&q.formControl&&E.push(q.formControl)});const M=A.filter(q=>!!q.content).map(q=>q.content);return b(M.join(" "),R,a,v)&&E.push(R),M.length>1&&M.forEach((q,N)=>{b(q,R,a,v)&&E.push(R);const _=[...M];_.splice(N,1),_.length>1&&b(_.join(" "),R,a,v)&&E.push(R)}),E},[]).concat(px("aria-label",t,a,{exact:f,normalizer:v}));return Array.from(new Set(x)).filter(E=>E.matches(u))},kp=function(t,a){for(var i=arguments.length,u=new Array(i>2?i-2:0),f=2;f<i;f++)u[f-2]=arguments[f];const m=qS(t,a,...u);if(!m.length){const h=bI(t,a,...u);if(h.length){const y=h.map(b=>vI(t,b)).filter(b=>!!b);throw y.length?Sn().getElementError(y.map(b=>"Found a label with the text of: "+a+", however the element associated with this label (<"+b+" />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <"+b+" />, you can use aria-label or aria-labelledby instead.").join(`
293
+
294
+ `),t):Sn().getElementError("Found a label with the text of: "+a+`, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.`,t)}else throw Sn().getElementError("Unable to find a label with the text of: "+a,t)}return m};function vI(t,a){const i=a.getAttribute("for");if(!i)return null;const u=t.querySelector('[id="'+i+'"]');return u?u.tagName.toLowerCase():null}const H4=(t,a)=>"Found multiple elements with the text of: "+a,SI=my(Vw(qS,H4),qS.name,"query"),P4=Vw(kp,H4),EI=Gw(Fi(kp,kp.name,"findAll")),TI=Gw(my(P4,kp.name,"find")),wI=Fi(kp,kp.name,"getAll"),xI=my(P4,kp.name,"get"),RI=Fi(qS,qS.name,"queryAll"),uA=function(){for(var t=arguments.length,a=new Array(t),i=0;i<t;i++)a[i]=arguments[i];return Js(a[0]),px("placeholder",...a)},CI=(t,a)=>"Found multiple elements with the placeholder text of: "+a,AI=(t,a)=>"Unable to find an element with the placeholder text of: "+a,_I=Fi(uA,uA.name,"queryAll"),[MI,OI,qI,DI,NI]=Lp(uA,CI,AI),sA=function(t,a,i){let{selector:u="*",exact:f=!0,collapseWhitespace:m,trim:h,ignore:y=Sn().defaultIgnore,normalizer:b}=i===void 0?{}:i;Js(t);const v=f?Qs:Cy,x=Up({collapseWhitespace:m,trim:h,normalizer:b});let E=[];return typeof t.matches=="function"&&t.matches(u)&&(E=[t]),[...E,...Array.from(t.querySelectorAll(u))].filter(R=>!y||!R.matches(y)).filter(R=>v(dx(R),R,a,x))},jI=(t,a)=>"Found multiple elements with the text: "+a,zI=function(t,a,i){i===void 0&&(i={});const{collapseWhitespace:u,trim:f,normalizer:m,selector:h}=i,b=Up({collapseWhitespace:u,trim:f,normalizer:m})(a.toString()),v=b!==a.toString(),x=(h??"*")!=="*";return"Unable to find an element with the text: "+(v?b+" (normalized from '"+a+"')":a)+(x?", which matches selector '"+h+"'":"")+". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible."},kI=Fi(sA,sA.name,"queryAll"),[BI,UI,LI,$I,HI]=Lp(sA,jI,zI),cA=function(t,a,i){let{exact:u=!0,collapseWhitespace:f,trim:m,normalizer:h}=i===void 0?{}:i;Js(t);const y=u?Qs:Cy,b=Up({collapseWhitespace:f,trim:m,normalizer:h});return Array.from(t.querySelectorAll("input,textarea,select")).filter(v=>v.tagName==="SELECT"?Array.from(v.options).filter(E=>E.selected).some(E=>y(dx(E),E,a,b)):y(v.value,v,a,b))},PI=(t,a)=>"Found multiple elements with the display value: "+a+".",II=(t,a)=>"Unable to find an element with the display value: "+a+".",VI=Fi(cA,cA.name,"queryAll"),[GI,YI,XI,FI,QI]=Lp(cA,PI,II),ZI=/^(img|input|area|.+-.+)$/i,fA=function(t,a,i){return i===void 0&&(i={}),Js(t),px("alt",t,a,i).filter(u=>ZI.test(u.tagName))},JI=(t,a)=>"Found multiple elements with the alt text: "+a,KI=(t,a)=>"Unable to find an element with the alt text: "+a,WI=Fi(fA,fA.name,"queryAll"),[eV,tV,nV,aV,rV]=Lp(fA,JI,KI),lV=t=>{var a;return t.tagName.toLowerCase()==="title"&&((a=t.parentElement)==null?void 0:a.tagName.toLowerCase())==="svg"},dA=function(t,a,i){let{exact:u=!0,collapseWhitespace:f,trim:m,normalizer:h}=i===void 0?{}:i;Js(t);const y=u?Qs:Cy,b=Up({collapseWhitespace:f,trim:m,normalizer:h});return Array.from(t.querySelectorAll("[title], svg > title")).filter(v=>y(v.getAttribute("title"),v,a,b)||lV(v)&&y(dx(v),v,a,b))},iV=(t,a)=>"Found multiple elements with the title: "+a+".",oV=(t,a)=>"Unable to find an element with the title: "+a+".",uV=Fi(dA,dA.name,"queryAll"),[sV,cV,fV,dV,pV]=Lp(dA,iV,oV),pA=function(t,a,i){let{hidden:u=Sn().defaultHidden,name:f,description:m,queryFallbacks:h=!1,selected:y,busy:b,checked:v,pressed:x,current:E,level:R,expanded:A,value:{now:M,min:q,max:N,text:_}={}}=i===void 0?{}:i;if(Js(t),y!==void 0){var L;if(((L=Xi.roles.get(a))==null?void 0:L.props["aria-selected"])===void 0)throw new Error('"aria-selected" is not supported on role "'+a+'".')}if(b!==void 0){var $;if((($=Xi.roles.get(a))==null?void 0:$.props["aria-busy"])===void 0)throw new Error('"aria-busy" is not supported on role "'+a+'".')}if(v!==void 0){var I;if(((I=Xi.roles.get(a))==null?void 0:I.props["aria-checked"])===void 0)throw new Error('"aria-checked" is not supported on role "'+a+'".')}if(x!==void 0){var V;if(((V=Xi.roles.get(a))==null?void 0:V.props["aria-pressed"])===void 0)throw new Error('"aria-pressed" is not supported on role "'+a+'".')}if(E!==void 0){var z;if(((z=Xi.roles.get(a))==null?void 0:z.props["aria-current"])===void 0)throw new Error('"aria-current" is not supported on role "'+a+'".')}if(R!==void 0&&a!=="heading")throw new Error('Role "'+a+'" cannot have "level" property.');if(M!==void 0){var k;if(((k=Xi.roles.get(a))==null?void 0:k.props["aria-valuenow"])===void 0)throw new Error('"aria-valuenow" is not supported on role "'+a+'".')}if(N!==void 0){var U;if(((U=Xi.roles.get(a))==null?void 0:U.props["aria-valuemax"])===void 0)throw new Error('"aria-valuemax" is not supported on role "'+a+'".')}if(q!==void 0){var F;if(((F=Xi.roles.get(a))==null?void 0:F.props["aria-valuemin"])===void 0)throw new Error('"aria-valuemin" is not supported on role "'+a+'".')}if(_!==void 0){var H;if(((H=Xi.roles.get(a))==null?void 0:H.props["aria-valuetext"])===void 0)throw new Error('"aria-valuetext" is not supported on role "'+a+'".')}if(A!==void 0){var J;if(((J=Xi.roles.get(a))==null?void 0:J.props["aria-expanded"])===void 0)throw new Error('"aria-expanded" is not supported on role "'+a+'".')}const ve=new WeakMap;function se(Se){return ve.has(Se)||ve.set(Se,U4(Se)),ve.get(Se)}return Array.from(t.querySelectorAll(hV(a))).filter(Se=>{if(Se.hasAttribute("role")){const ue=Se.getAttribute("role");if(h)return ue.split(" ").filter(Boolean).some(De=>De===a);const[te]=ue.split(" ");return te===a}return d_(Se).some(ue=>ue===a)}).filter(Se=>{if(y!==void 0)return y===tI(Se);if(b!==void 0)return b===nI(Se);if(v!==void 0)return v===aI(Se);if(x!==void 0)return x===rI(Se);if(E!==void 0)return E===lI(Se);if(A!==void 0)return A===iI(Se);if(R!==void 0)return R===oI(Se);if(M!==void 0||N!==void 0||q!==void 0||_!==void 0){let P=!0;if(M!==void 0&&P&&(P=M===uI(Se)),N!==void 0&&P&&(P=N===sI(Se)),q!==void 0&&P&&(P=q===cI(Se)),_!==void 0){var ke;P&&(P=Qs((ke=fI(Se))!=null?ke:null,Se,_,ue=>ue))}return P}return!0}).filter(Se=>f===void 0?!0:Qs(i_(Se,{computedStyleSupportsPseudoElements:Sn().computedStyleSupportsPseudoElements}),Se,f,ke=>ke)).filter(Se=>m===void 0?!0:Qs(T4(Se,{computedStyleSupportsPseudoElements:Sn().computedStyleSupportsPseudoElements}),Se,m,ke=>ke)).filter(Se=>u===!1?f_(Se,{isSubtreeInaccessible:se})===!1:!0)};function hV(t){var a;const i='*[role~="'+t+'"]',u=(a=Xi.roleElements.get(t))!=null?a:new Set,f=new Set(Array.from(u).map(m=>{let{name:h}=m;return h}));return[i].concat(Array.from(f)).join(",")}const I4=t=>{let a="";return t===void 0?a="":typeof t=="string"?a=' and name "'+t+'"':a=" and name `"+t+"`",a},mV=function(t,a,i){let{name:u}=i===void 0?{}:i;return'Found multiple elements with the role "'+a+'"'+I4(u)},yV=function(t,a,i){let{hidden:u=Sn().defaultHidden,name:f,description:m}=i===void 0?{}:i;if(Sn()._disableExpensiveErrorDiagnostics)return'Unable to find role="'+a+'"'+I4(f);let h="";Array.from(t.children).forEach(x=>{h+=eI(x,{hidden:u,includeDescription:m!==void 0})});let y;h.length===0?u===!1?y="There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole":y="There are no available roles.":y=(`
295
+ Here are the `+(u===!1?"accessible":"available")+` roles:
296
+
297
+ `+h.replace(/\n/g,`
298
+ `).replace(/\n\s\s\n/g,`
299
+
300
+ `)+`
301
+ `).trim();let b="";f===void 0?b="":typeof f=="string"?b=' and name "'+f+'"':b=" and name `"+f+"`";let v="";return m===void 0?v="":typeof m=="string"?v=' and description "'+m+'"':v=" and description `"+m+"`",(`
302
+ Unable to find an `+(u===!1?"accessible ":"")+'element with the role "'+a+'"'+b+v+`
303
+
304
+ `+y).trim()},gV=Fi(pA,pA.name,"queryAll"),[bV,vV,SV,EV,TV]=Lp(pA,mV,yV),p_=()=>Sn().testIdAttribute,hA=function(){for(var t=arguments.length,a=new Array(t),i=0;i<t;i++)a[i]=arguments[i];return Js(a[0]),px(p_(),...a)},wV=(t,a)=>"Found multiple elements by: ["+p_()+'="'+a+'"]',xV=(t,a)=>"Unable to find an element by: ["+p_()+'="'+a+'"]',RV=Fi(hA,hA.name,"queryAll"),[CV,AV,_V,MV,OV]=Lp(hA,wV,xV);var mA=Object.freeze({__proto__:null,queryAllByLabelText:RI,queryByLabelText:SI,getAllByLabelText:wI,getByLabelText:xI,findAllByLabelText:EI,findByLabelText:TI,queryByPlaceholderText:MI,queryAllByPlaceholderText:_I,getByPlaceholderText:qI,getAllByPlaceholderText:OI,findAllByPlaceholderText:DI,findByPlaceholderText:NI,queryByText:BI,queryAllByText:kI,getByText:LI,getAllByText:UI,findAllByText:$I,findByText:HI,queryByDisplayValue:GI,queryAllByDisplayValue:VI,getByDisplayValue:XI,getAllByDisplayValue:YI,findAllByDisplayValue:FI,findByDisplayValue:QI,queryByAltText:eV,queryAllByAltText:WI,getByAltText:nV,getAllByAltText:tV,findAllByAltText:aV,findByAltText:rV,queryByTitle:sV,queryAllByTitle:uV,getByTitle:fV,getAllByTitle:cV,findAllByTitle:dV,findByTitle:pV,queryByRole:bV,queryAllByRole:gV,getAllByRole:vV,getByRole:SV,findAllByRole:EV,findByRole:TV,queryByTestId:CV,queryAllByTestId:RV,getByTestId:_V,getAllByTestId:AV,findAllByTestId:MV,findByTestId:OV});function V4(t,a,i){return a===void 0&&(a=mA),i===void 0&&(i={}),Object.keys(a).reduce((u,f)=>{const m=a[f];return u[f]=m.bind(null,t),u},i)}const p3={copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionEnd:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionStart:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionUpdate:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyDown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyPress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyUp:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},focus:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},focusIn:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},focusOut:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},invalid:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!0}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},reset:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},click:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,button:0,composed:!0}},contextMenu:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblClick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drag:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragEnd:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragEnter:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragExit:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragLeave:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragOver:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragStart:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drop:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseDown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseEnter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseLeave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseMove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOut:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOver:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseUp:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},select:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},touchCancel:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},touchEnd:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchMove:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchStart:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},resize:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},scroll:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},wheel:{EventType:"WheelEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},abort:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlay:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlayThrough:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},durationChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},emptied:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},encrypted:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},ended:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedData:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedMetadata:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadStart:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},pause:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},play:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},playing:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},progress:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},rateChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeked:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeking:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},stalled:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},suspend:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},timeUpdate:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},volumeChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},waiting:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},load:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},error:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},animationStart:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationEnd:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationIteration:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionCancel:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionEnd:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},transitionRun:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionStart:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},pointerOver:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerEnter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerDown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerMove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerUp:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerCancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerOut:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerLeave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},gotPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},lostPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},popState:{EventType:"PopStateEvent",defaultInit:{bubbles:!0,cancelable:!1}},offline:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},online:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},pageHide:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},pageShow:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}}},h3={doubleClick:"dblClick"};function DS(t,a){return Sn().eventWrapper(()=>{if(!a)throw new Error("Unable to fire an event - please provide an event object.");if(!t)throw new Error('Unable to fire a "'+a.type+'" event - please provide a DOM element.');return t.dispatchEvent(a)})}function yC(t,a,i,u){let{EventType:f="Event",defaultInit:m={}}=u===void 0?{}:u;if(!a)throw new Error('Unable to fire a "'+t+'" event - please provide a DOM element.');const h={...m,...i},{target:{value:y,files:b,...v}={}}=h;y!==void 0&&qV(a,y),b!==void 0&&Object.defineProperty(a,"files",{configurable:!0,enumerable:!0,writable:!0,value:b}),Object.assign(a,v);const x=q4(a),E=x[f]||x.Event;let R;if(typeof E=="function")R=new E(t,h);else{R=x.document.createEvent(f);const{bubbles:M,cancelable:q,detail:N,..._}=h;R.initEvent(t,M,q,N),Object.keys(_).forEach(L=>{R[L]=_[L]})}return["dataTransfer","clipboardData"].forEach(M=>{const q=h[M];typeof q=="object"&&(typeof x.DataTransfer=="function"?Object.defineProperty(R,M,{value:Object.getOwnPropertyNames(q).reduce((N,_)=>(Object.defineProperty(N,_,{value:q[_]}),N),new x.DataTransfer)}):Object.defineProperty(R,M,{value:q}))}),R}Object.keys(p3).forEach(t=>{const{EventType:a,defaultInit:i}=p3[t],u=t.toLowerCase();yC[t]=(f,m)=>yC(u,f,m,{EventType:a,defaultInit:i}),DS[t]=(f,m)=>DS(f,yC[t](f,m))});function qV(t,a){const{set:i}=Object.getOwnPropertyDescriptor(t,"value")||{},u=Object.getPrototypeOf(t),{set:f}=Object.getOwnPropertyDescriptor(u,"value")||{};if(f&&i!==f)f.call(t,a);else if(i)i.call(t,a);else throw new Error("The given element does not have a value setter")}Object.keys(h3).forEach(t=>{const a=h3[t];DS[t]=function(){return DS[a](...arguments)}});function DV(t){return t.replace(/[ \t]*[\n][ \t]*/g,`
305
+ `)}function NV(t){return AP.compressToEncodedURIComponent(DV(t))}function jV(t){return"https://testing-playground.com/#markup="+NV(t)}const zV=(t,a,i)=>Array.isArray(t)?t.forEach(u=>c3(u,a,i)):c3(t,a,i),kV=function(t){if(t===void 0&&(t=c_().body),!t||!("innerHTML"in t)){console.log("The element you're providing isn't a valid DOM element.");return}if(!t.innerHTML){console.log("The provided element doesn't have any children.");return}const a=jV(t.innerHTML);return console.log(`Open this URL in your browser
306
+
307
+ `+a),a},m3={debug:zV,logTestingPlaygroundURL:kV};typeof document<"u"&&document.body?V4(document.body,mA,m3):Object.keys(mA).reduce((t,a)=>(t[a]=()=>{throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error")},t),m3);const BV=typeof CS.act=="function"?CS.act:M8.act;function G4(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}function Gs(t){G4().IS_REACT_ACT_ENVIRONMENT=t}function Yw(){return G4().IS_REACT_ACT_ENVIRONMENT}function UV(t){return a=>{const i=Yw();Gs(!0);try{let u=!1;const f=t(()=>{const m=a();return m!==null&&typeof m=="object"&&typeof m.then=="function"&&(u=!0),m});if(u){const m=f;return{then:(h,y)=>{m.then(b=>{Gs(i),h(b)},b=>{Gs(i),y(b)})}}}else return Gs(i),f}catch(u){throw Gs(i),u}}}const Sy=UV(BV);Object.keys(DS).forEach(t=>{});let LV={reactStrictMode:!1};function $V(){return{...Sn(),...LV}}function HV(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}FP({unstable_advanceTimersWrapper:t=>Sy(t),asyncWrapper:async t=>{const a=Yw();Gs(!1);try{const i=await t();return await new Promise(u=>{setTimeout(()=>{u()},0),HV()&&jest.advanceTimersByTime(0)}),i}finally{Gs(a)}},eventWrapper:t=>{let a;return Sy(()=>{a=t()}),a}});const yA=new Set,Xw=[];function gA(t,a){return a??$V().reactStrictMode?CS.createElement(CS.StrictMode,null,t):t}function bA(t,a){return a?CS.createElement(a,null,t):t}function PV(t,a){let{hydrate:i,onCaughtError:u,onRecoverableError:f,ui:m,wrapper:h,reactStrictMode:y}=a,b;return i?Sy(()=>{b=eq.hydrateRoot(t,gA(bA(m,h),y),{onCaughtError:u,onRecoverableError:f})}):b=eq.createRoot(t,{onCaughtError:u,onRecoverableError:f}),{hydrate(){if(!i)throw new Error("Attempted to hydrate a non-hydrateable root. This is a bug in `@testing-library/react`.")},render(v){b.render(v)},unmount(){b.unmount()}}}function IV(t){return{hydrate(a){Fs.hydrate(a,t)},render(a){Fs.render(a,t)},unmount(){Fs.unmountComponentAtNode(t)}}}function Y4(t,a){let{baseElement:i,container:u,hydrate:f,queries:m,root:h,wrapper:y,reactStrictMode:b}=a;return Sy(()=>{f?h.hydrate(gA(bA(t,y),b),u):h.render(gA(bA(t,y),b),u)}),{container:u,baseElement:i,debug:function(v,x,E){return v===void 0&&(v=i),Array.isArray(v)?v.forEach(R=>console.log(vy(R,x,E))):console.log(vy(v,x,E))},unmount:()=>{Sy(()=>{h.unmount()})},rerender:v=>{Y4(v,{container:u,baseElement:i,root:h,wrapper:y,reactStrictMode:b})},asFragment:()=>{if(typeof document.createRange=="function")return document.createRange().createContextualFragment(u.innerHTML);{const v=document.createElement("template");return v.innerHTML=u.innerHTML,v.content}},...V4(i,m)}}function vA(t,a){let{container:i,baseElement:u=i,legacyRoot:f=!1,onCaughtError:m,onUncaughtError:h,onRecoverableError:y,queries:b,hydrate:v=!1,wrapper:x,reactStrictMode:E}=a===void 0?{}:a;if(h!==void 0)throw new Error("onUncaughtError is not supported. The `render` call will already throw on uncaught errors.");if(f&&typeof Fs.render!="function"){const A=new Error("`legacyRoot: true` is not supported in this version of React. If your app runs React 19 or later, you should remove this flag. If your app runs React 18 or earlier, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide for upgrade instructions.");throw Error.captureStackTrace(A,vA),A}u||(u=document.body),i||(i=u.appendChild(document.createElement("div")));let R;return yA.has(i)?Xw.forEach(A=>{A.container===i&&(R=A.root)}):(R=(f?IV:PV)(i,{hydrate:v,onCaughtError:m,onRecoverableError:y,ui:t,wrapper:x,reactStrictMode:E}),Xw.push({container:i,root:R}),yA.add(i)),Y4(t,{container:i,baseElement:u,queries:b,hydrate:v,wrapper:x,root:R,reactStrictMode:E})}function y3(){Xw.forEach(t=>{let{root:a,container:i}=t;Sy(()=>{a.unmount()}),i.parentNode===document.body&&document.body.removeChild(i)}),Xw.length=0,yA.clear()}if((typeof process>"u"||!process.env?.RTL_SKIP_AUTO_CLEANUP)&&(typeof afterEach=="function"?afterEach(()=>{y3()}):typeof teardown=="function"&&teardown(()=>{y3()}),typeof beforeAll=="function"&&typeof afterAll=="function")){let t=Yw();beforeAll(()=>{t=Yw(),Gs(!0)}),afterAll(()=>{Gs(t)})}function VV(t,{withChatProvider:a=!0,...i}={}){function u({children:f}){return a?X.jsx(t_,{children:f}):X.jsx(X.Fragment,{children:f})}return{...vA(t,{wrapper:u,...i}),rerender:f=>vA(f,{wrapper:u,...i})}}function GV(t={}){const{withChatProvider:a=!0}=t;return function({children:u}){return a?X.jsx(t_,{children:u}):X.jsx(X.Fragment,{children:u})}}function YV(t=0){return new Promise(a=>setTimeout(a,t))}function XV(){let t,a;return{promise:new Promise((u,f)=>{t=u,a=f}),resolve:t,reject:a}}var FV={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},QV=Object.entries(FV);function h_(t){return String(t)}h_.open="";h_.close="";function ZV(t=!1){let a=typeof process<"u"?process:void 0,i=a?.env||{},u=a?.argv||[];return!("NO_COLOR"in i||u.includes("--no-color"))&&("FORCE_COLOR"in i||u.includes("--color")||a?.platform==="win32"||t&&i.TERM!=="dumb"||"CI"in i)||typeof window<"u"&&!!window.chrome}function JV(t=!1){let a=ZV(t),i=(h,y,b,v)=>{let x="",E=0;do x+=h.substring(E,v)+b,E=v+y.length,v=h.indexOf(y,E);while(~v);return x+h.substring(E)},u=(h,y,b=h)=>{let v=x=>{let E=String(x),R=E.indexOf(y,h.length);return~R?h+i(E,y,b,R)+y:h+E+y};return v.open=h,v.close=y,v},f={isColorSupported:a},m=h=>`\x1B[${h}m`;for(let[h,y]of QV)f[h]=a?u(m(y[0]),m(y[1]),y[2]):h_;return f}var la=JV(!1);function KV(t,a){const i=Object.keys(t),u=a===null?i:i.sort(a);if(Object.getOwnPropertySymbols)for(const f of Object.getOwnPropertySymbols(t))Object.getOwnPropertyDescriptor(t,f).enumerable&&u.push(f);return u}function hx(t,a,i,u,f,m,h=": "){let y="",b=0,v=t.next();if(!v.done){y+=a.spacingOuter;const x=i+a.indent;for(;!v.done;){if(y+=x,b++===a.maxWidth){y+="…";break}const E=m(v.value[0],a,x,u,f),R=m(v.value[1],a,x,u,f);y+=E+h+R,v=t.next(),v.done?a.min||(y+=","):y+=`,${a.spacingInner}`}y+=a.spacingOuter+i}return y}function m_(t,a,i,u,f,m){let h="",y=0,b=t.next();if(!b.done){h+=a.spacingOuter;const v=i+a.indent;for(;!b.done;){if(h+=v,y++===a.maxWidth){h+="…";break}h+=m(b.value,a,v,u,f),b=t.next(),b.done?a.min||(h+=","):h+=`,${a.spacingInner}`}h+=a.spacingOuter+i}return h}function Fw(t,a,i,u,f,m){let h="";t=t instanceof ArrayBuffer?new DataView(t):t;const y=v=>v instanceof DataView,b=y(t)?t.byteLength:t.length;if(b>0){h+=a.spacingOuter;const v=i+a.indent;for(let x=0;x<b;x++){if(h+=v,x===a.maxWidth){h+="…";break}(y(t)||x in t)&&(h+=m(y(t)?t.getInt8(x):t[x],a,v,u,f)),x<b-1?h+=`,${a.spacingInner}`:a.min||(h+=",")}h+=a.spacingOuter+i}return h}function y_(t,a,i,u,f,m){let h="";const y=KV(t,a.compareKeys);if(y.length>0){h+=a.spacingOuter;const b=i+a.indent;for(let v=0;v<y.length;v++){const x=y[v],E=m(x,a,b,u,f),R=m(t[x],a,b,u,f);h+=`${b+E}: ${R}`,v<y.length-1?h+=`,${a.spacingInner}`:a.min||(h+=",")}h+=a.spacingOuter+i}return h}const WV=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,ww=" ",eG=(t,a,i,u,f,m)=>{const h=t.toString();if(h==="ArrayContaining"||h==="ArrayNotContaining")return++u>a.maxDepth?`[${h}]`:`${h+ww}[${Fw(t.sample,a,i,u,f,m)}]`;if(h==="ObjectContaining"||h==="ObjectNotContaining")return++u>a.maxDepth?`[${h}]`:`${h+ww}{${y_(t.sample,a,i,u,f,m)}}`;if(h==="StringMatching"||h==="StringNotMatching"||h==="StringContaining"||h==="StringNotContaining")return h+ww+m(t.sample,a,i,u,f);if(typeof t.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${t.constructor.name} does not implement toAsymmetricMatcher()`);return t.toAsymmetricMatcher()},tG=t=>t&&t.$$typeof===WV,nG={serialize:eG,test:tG},aG=" ",X4=new Set(["DOMStringMap","NamedNodeMap"]),rG=/^(?:HTML\w*Collection|NodeList)$/;function lG(t){return X4.has(t)||rG.test(t)}const iG=t=>t&&t.constructor&&!!t.constructor.name&&lG(t.constructor.name);function oG(t){return t.constructor.name==="NamedNodeMap"}const uG=(t,a,i,u,f,m)=>{const h=t.constructor.name;return++u>a.maxDepth?`[${h}]`:(a.min?"":h+aG)+(X4.has(h)?`{${y_(oG(t)?[...t].reduce((y,b)=>(y[b.name]=b.value,y),{}):{...t},a,i,u,f,m)}}`:`[${Fw([...t],a,i,u,f,m)}]`)},sG={serialize:uG,test:iG};function F4(t){return t.replaceAll("<","&lt;").replaceAll(">","&gt;")}function g_(t,a,i,u,f,m,h){const y=u+i.indent,b=i.colors;return t.map(v=>{const x=a[v];let E=h(x,i,y,f,m);return typeof x!="string"&&(E.includes(`
308
+ `)&&(E=i.spacingOuter+y+E+i.spacingOuter+u),E=`{${E}}`),`${i.spacingInner+u+b.prop.open+v+b.prop.close}=${b.value.open}${E}${b.value.close}`}).join("")}function b_(t,a,i,u,f,m){return t.map(h=>a.spacingOuter+i+(typeof h=="string"?Q4(h,a):m(h,a,i,u,f))).join("")}function Q4(t,a){const i=a.colors.content;return i.open+F4(t)+i.close}function cG(t,a){const i=a.colors.comment;return`${i.open}<!--${F4(t)}-->${i.close}`}function v_(t,a,i,u,f){const m=u.colors.tag;return`${m.open}<${t}${a&&m.close+a+u.spacingOuter+f+m.open}${i?`>${m.close}${i}${u.spacingOuter}${f}${m.open}</${t}`:`${a&&!u.min?"":" "}/`}>${m.close}`}function S_(t,a){const i=a.colors.tag;return`${i.open}<${t}${i.close} …${i.open} />${i.close}`}const fG=1,Z4=3,J4=8,K4=11,dG=/^(?:(?:HTML|SVG)\w*)?Element$/;function pG(t){try{return typeof t.hasAttribute=="function"&&t.hasAttribute("is")}catch{return!1}}function hG(t){const a=t.constructor.name,{nodeType:i,tagName:u}=t,f=typeof u=="string"&&u.includes("-")||pG(t);return i===fG&&(dG.test(a)||f)||i===Z4&&a==="Text"||i===J4&&a==="Comment"||i===K4&&a==="DocumentFragment"}const mG=t=>{var a;return((a=t?.constructor)==null?void 0:a.name)&&hG(t)};function yG(t){return t.nodeType===Z4}function gG(t){return t.nodeType===J4}function gC(t){return t.nodeType===K4}const bG=(t,a,i,u,f,m)=>{if(yG(t))return Q4(t.data,a);if(gG(t))return cG(t.data,a);const h=gC(t)?"DocumentFragment":t.tagName.toLowerCase();return++u>a.maxDepth?S_(h,a):v_(h,g_(gC(t)?[]:Array.from(t.attributes,y=>y.name).sort(),gC(t)?{}:[...t.attributes].reduce((y,b)=>(y[b.name]=b.value,y),{}),a,i+a.indent,u,f,m),b_(Array.prototype.slice.call(t.childNodes||t.children),a,i+a.indent,u,f,m),a,i)},vG={serialize:bG,test:mG},SG="@@__IMMUTABLE_ITERABLE__@@",EG="@@__IMMUTABLE_LIST__@@",TG="@@__IMMUTABLE_KEYED__@@",wG="@@__IMMUTABLE_MAP__@@",g3="@@__IMMUTABLE_ORDERED__@@",xG="@@__IMMUTABLE_RECORD__@@",RG="@@__IMMUTABLE_SEQ__@@",CG="@@__IMMUTABLE_SET__@@",AG="@@__IMMUTABLE_STACK__@@",Ey=t=>`Immutable.${t}`,mx=t=>`[${t}]`,NS=" ",b3="…";function _G(t,a,i,u,f,m,h){return++u>a.maxDepth?mx(Ey(h)):`${Ey(h)+NS}{${hx(t.entries(),a,i,u,f,m)}}`}function MG(t){let a=0;return{next(){if(a<t._keys.length){const i=t._keys[a++];return{done:!1,value:[i,t.get(i)]}}return{done:!0,value:void 0}}}}function OG(t,a,i,u,f,m){const h=Ey(t._name||"Record");return++u>a.maxDepth?mx(h):`${h+NS}{${hx(MG(t),a,i,u,f,m)}}`}function qG(t,a,i,u,f,m){const h=Ey("Seq");return++u>a.maxDepth?mx(h):t[TG]?`${h+NS}{${t._iter||t._object?hx(t.entries(),a,i,u,f,m):b3}}`:`${h+NS}[${t._iter||t._array||t._collection||t._iterable?m_(t.values(),a,i,u,f,m):b3}]`}function bC(t,a,i,u,f,m,h){return++u>a.maxDepth?mx(Ey(h)):`${Ey(h)+NS}[${m_(t.values(),a,i,u,f,m)}]`}const DG=(t,a,i,u,f,m)=>t[wG]?_G(t,a,i,u,f,m,t[g3]?"OrderedMap":"Map"):t[EG]?bC(t,a,i,u,f,m,"List"):t[CG]?bC(t,a,i,u,f,m,t[g3]?"OrderedSet":"Set"):t[AG]?bC(t,a,i,u,f,m,"Stack"):t[RG]?qG(t,a,i,u,f,m):OG(t,a,i,u,f,m),NG=t=>t&&(t[SG]===!0||t[xG]===!0),jG={serialize:DG,test:NG};var xw={exports:{}},fn={};var v3;function zG(){if(v3)return fn;v3=1;var t=Symbol.for("react.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),h=Symbol.for("react.context"),y=Symbol.for("react.server_context"),b=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),M;M=Symbol.for("react.module.reference");function q(N){if(typeof N=="object"&&N!==null){var _=N.$$typeof;switch(_){case t:switch(N=N.type,N){case i:case f:case u:case v:case x:return N;default:switch(N=N&&N.$$typeof,N){case y:case h:case b:case R:case E:case m:return N;default:return _}}case a:return _}}}return fn.ContextConsumer=h,fn.ContextProvider=m,fn.Element=t,fn.ForwardRef=b,fn.Fragment=i,fn.Lazy=R,fn.Memo=E,fn.Portal=a,fn.Profiler=f,fn.StrictMode=u,fn.Suspense=v,fn.SuspenseList=x,fn.isAsyncMode=function(){return!1},fn.isConcurrentMode=function(){return!1},fn.isContextConsumer=function(N){return q(N)===h},fn.isContextProvider=function(N){return q(N)===m},fn.isElement=function(N){return typeof N=="object"&&N!==null&&N.$$typeof===t},fn.isForwardRef=function(N){return q(N)===b},fn.isFragment=function(N){return q(N)===i},fn.isLazy=function(N){return q(N)===R},fn.isMemo=function(N){return q(N)===E},fn.isPortal=function(N){return q(N)===a},fn.isProfiler=function(N){return q(N)===f},fn.isStrictMode=function(N){return q(N)===u},fn.isSuspense=function(N){return q(N)===v},fn.isSuspenseList=function(N){return q(N)===x},fn.isValidElementType=function(N){return typeof N=="string"||typeof N=="function"||N===i||N===f||N===u||N===v||N===x||N===A||typeof N=="object"&&N!==null&&(N.$$typeof===R||N.$$typeof===E||N.$$typeof===m||N.$$typeof===h||N.$$typeof===b||N.$$typeof===M||N.getModuleId!==void 0)},fn.typeOf=q,fn}var dn={};var S3;function kG(){return S3||(S3=1,process.env.NODE_ENV!=="production"&&(function(){var t=Symbol.for("react.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),h=Symbol.for("react.context"),y=Symbol.for("react.server_context"),b=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),M=!1,q=!1,N=!1,_=!1,L=!1,$;$=Symbol.for("react.module.reference");function I(Ue){return!!(typeof Ue=="string"||typeof Ue=="function"||Ue===i||Ue===f||L||Ue===u||Ue===v||Ue===x||_||Ue===A||M||q||N||typeof Ue=="object"&&Ue!==null&&(Ue.$$typeof===R||Ue.$$typeof===E||Ue.$$typeof===m||Ue.$$typeof===h||Ue.$$typeof===b||Ue.$$typeof===$||Ue.getModuleId!==void 0))}function V(Ue){if(typeof Ue=="object"&&Ue!==null){var Nt=Ue.$$typeof;switch(Nt){case t:var Ke=Ue.type;switch(Ke){case i:case f:case u:case v:case x:return Ke;default:var Tn=Ke&&Ke.$$typeof;switch(Tn){case y:case h:case b:case R:case E:case m:return Tn;default:return Nt}}case a:return Nt}}}var z=h,k=m,U=t,F=b,H=i,J=R,ve=E,se=a,Se=f,ke=u,P=v,ue=x,te=!1,De=!1;function je(Ue){return te||(te=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Ye(Ue){return De||(De=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Xe(Ue){return V(Ue)===h}function xe(Ue){return V(Ue)===m}function Ie(Ue){return typeof Ue=="object"&&Ue!==null&&Ue.$$typeof===t}function Je(Ue){return V(Ue)===b}function at(Ue){return V(Ue)===i}function Lt(Ue){return V(Ue)===R}function an(Ue){return V(Ue)===E}function ie(Ue){return V(Ue)===a}function Pe(Ue){return V(Ue)===f}function de(Ue){return V(Ue)===u}function ut(Ue){return V(Ue)===v}function dt(Ue){return V(Ue)===x}dn.ContextConsumer=z,dn.ContextProvider=k,dn.Element=U,dn.ForwardRef=F,dn.Fragment=H,dn.Lazy=J,dn.Memo=ve,dn.Portal=se,dn.Profiler=Se,dn.StrictMode=ke,dn.Suspense=P,dn.SuspenseList=ue,dn.isAsyncMode=je,dn.isConcurrentMode=Ye,dn.isContextConsumer=Xe,dn.isContextProvider=xe,dn.isElement=Ie,dn.isForwardRef=Je,dn.isFragment=at,dn.isLazy=Lt,dn.isMemo=an,dn.isPortal=ie,dn.isProfiler=Pe,dn.isStrictMode=de,dn.isSuspense=ut,dn.isSuspenseList=dt,dn.isValidElementType=I,dn.typeOf=V})()),dn}var E3;function BG(){return E3||(E3=1,process.env.NODE_ENV==="production"?xw.exports=zG():xw.exports=kG()),xw.exports}var Ap=BG();function W4(t,a=[]){if(Array.isArray(t))for(const i of t)W4(i,a);else t!=null&&t!==!1&&t!==""&&a.push(t);return a}function T3(t){const a=t.type;if(typeof a=="string")return a;if(typeof a=="function")return a.displayName||a.name||"Unknown";if(Ap.isFragment(t))return"React.Fragment";if(Ap.isSuspense(t))return"React.Suspense";if(typeof a=="object"&&a!==null){if(Ap.isContextProvider(t))return"Context.Provider";if(Ap.isContextConsumer(t))return"Context.Consumer";if(Ap.isForwardRef(t)){if(a.displayName)return a.displayName;const i=a.render.displayName||a.render.name||"";return i===""?"ForwardRef":`ForwardRef(${i})`}if(Ap.isMemo(t)){const i=a.displayName||a.type.displayName||a.type.name||"";return i===""?"Memo":`Memo(${i})`}}return"UNDEFINED"}function UG(t){const{props:a}=t;return Object.keys(a).filter(i=>i!=="children"&&a[i]!==void 0).sort()}const LG=(t,a,i,u,f,m)=>++u>a.maxDepth?S_(T3(t),a):v_(T3(t),g_(UG(t),t.props,a,i+a.indent,u,f,m),b_(W4(t.props.children),a,i+a.indent,u,f,m),a,i),$G=t=>t!=null&&Ap.isElement(t),HG={serialize:LG,test:$G},PG=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function IG(t){const{props:a}=t;return a?Object.keys(a).filter(i=>a[i]!==void 0).sort():[]}const VG=(t,a,i,u,f,m)=>++u>a.maxDepth?S_(t.type,a):v_(t.type,t.props?g_(IG(t),t.props,a,i+a.indent,u,f,m):"",t.children?b_(t.children,a,i+a.indent,u,f,m):"",a,i),GG=t=>t&&t.$$typeof===PG,YG={serialize:VG,test:GG},e6=Object.prototype.toString,XG=Date.prototype.toISOString,FG=Error.prototype.toString,w3=RegExp.prototype.toString;function vC(t){return typeof t.constructor=="function"&&t.constructor.name||"Object"}function QG(t){return typeof window<"u"&&t===window}const ZG=/^Symbol\((.*)\)(.*)$/,JG=/\n/g;class t6 extends Error{constructor(a,i){super(a),this.stack=i,this.name=this.constructor.name}}function KG(t){return t==="[object Array]"||t==="[object ArrayBuffer]"||t==="[object DataView]"||t==="[object Float32Array]"||t==="[object Float64Array]"||t==="[object Int8Array]"||t==="[object Int16Array]"||t==="[object Int32Array]"||t==="[object Uint8Array]"||t==="[object Uint8ClampedArray]"||t==="[object Uint16Array]"||t==="[object Uint32Array]"}function WG(t){return Object.is(t,-0)?"-0":String(t)}function eY(t){return`${t}n`}function x3(t,a){return a?`[Function ${t.name||"anonymous"}]`:"[Function]"}function R3(t){return String(t).replace(ZG,"Symbol($1)")}function C3(t){return`[${FG.call(t)}]`}function n6(t,a,i,u){if(t===!0||t===!1)return`${t}`;if(t===void 0)return"undefined";if(t===null)return"null";const f=typeof t;if(f==="number")return WG(t);if(f==="bigint")return eY(t);if(f==="string")return u?`"${t.replaceAll(/"|\\/g,"\\$&")}"`:`"${t}"`;if(f==="function")return x3(t,a);if(f==="symbol")return R3(t);const m=e6.call(t);return m==="[object WeakMap]"?"WeakMap {}":m==="[object WeakSet]"?"WeakSet {}":m==="[object Function]"||m==="[object GeneratorFunction]"?x3(t,a):m==="[object Symbol]"?R3(t):m==="[object Date]"?Number.isNaN(+t)?"Date { NaN }":XG.call(t):m==="[object Error]"?C3(t):m==="[object RegExp]"?i?w3.call(t).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):w3.call(t):t instanceof Error?C3(t):null}function a6(t,a,i,u,f,m){if(f.includes(t))return"[Circular]";f=[...f],f.push(t);const h=++u>a.maxDepth,y=a.min;if(a.callToJSON&&!h&&t.toJSON&&typeof t.toJSON=="function"&&!m)return Nf(t.toJSON(),a,i,u,f,!0);const b=e6.call(t);return b==="[object Arguments]"?h?"[Arguments]":`${y?"":"Arguments "}[${Fw(t,a,i,u,f,Nf)}]`:KG(b)?h?`[${t.constructor.name}]`:`${y||!a.printBasicPrototype&&t.constructor.name==="Array"?"":`${t.constructor.name} `}[${Fw(t,a,i,u,f,Nf)}]`:b==="[object Map]"?h?"[Map]":`Map {${hx(t.entries(),a,i,u,f,Nf," => ")}}`:b==="[object Set]"?h?"[Set]":`Set {${m_(t.values(),a,i,u,f,Nf)}}`:h||QG(t)?`[${vC(t)}]`:`${y||!a.printBasicPrototype&&vC(t)==="Object"?"":`${vC(t)} `}{${y_(t,a,i,u,f,Nf)}}`}function tY(t){return t.serialize!=null}function r6(t,a,i,u,f,m){let h;try{h=tY(t)?t.serialize(a,i,u,f,m,Nf):t.print(a,y=>Nf(y,i,u,f,m),y=>{const b=u+i.indent;return b+y.replaceAll(JG,`
309
+ ${b}`)},{edgeSpacing:i.spacingOuter,min:i.min,spacing:i.spacingInner},i.colors)}catch(y){throw new t6(y.message,y.stack)}if(typeof h!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof h}".`);return h}function l6(t,a){for(const i of t)try{if(i.test(a))return i}catch(u){throw new t6(u.message,u.stack)}return null}function Nf(t,a,i,u,f,m){const h=l6(a.plugins,t);if(h!==null)return r6(h,t,a,i,u,f);const y=n6(t,a.printFunctionName,a.escapeRegex,a.escapeString);return y!==null?y:a6(t,a,i,u,f,m)}const E_={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},i6=Object.keys(E_),_o={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:E_};function nY(t){for(const a of Object.keys(t))if(!Object.prototype.hasOwnProperty.call(_o,a))throw new Error(`pretty-format: Unknown option "${a}".`);if(t.min&&t.indent!==void 0&&t.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function aY(){return i6.reduce((t,a)=>{const i=E_[a],u=i&&la[i];if(u&&typeof u.close=="string"&&typeof u.open=="string")t[a]=u;else throw new Error(`pretty-format: Option "theme" has a key "${a}" whose value "${i}" is undefined in ansi-styles.`);return t},Object.create(null))}function rY(){return i6.reduce((t,a)=>(t[a]={close:"",open:""},t),Object.create(null))}function o6(t){return t?.printFunctionName??_o.printFunctionName}function u6(t){return t?.escapeRegex??_o.escapeRegex}function s6(t){return t?.escapeString??_o.escapeString}function A3(t){return{callToJSON:t?.callToJSON??_o.callToJSON,colors:t?.highlight?aY():rY(),compareKeys:typeof t?.compareKeys=="function"||t?.compareKeys===null?t.compareKeys:_o.compareKeys,escapeRegex:u6(t),escapeString:s6(t),indent:t?.min?"":lY(t?.indent??_o.indent),maxDepth:t?.maxDepth??_o.maxDepth,maxWidth:t?.maxWidth??_o.maxWidth,min:t?.min??_o.min,plugins:t?.plugins??_o.plugins,printBasicPrototype:t?.printBasicPrototype??!0,printFunctionName:o6(t),spacingInner:t?.min?" ":`
310
+ `,spacingOuter:t?.min?"":`
311
+ `}}function lY(t){return Array.from({length:t+1}).join(" ")}function qo(t,a){if(a&&(nY(a),a.plugins)){const u=l6(a.plugins,t);if(u!==null)return r6(u,t,A3(a),"",0,[])}const i=n6(t,o6(a),u6(a),s6(a));return i!==null?i:a6(t,A3(a),"",0,[])}const T_={AsymmetricMatcher:nG,DOMCollection:sG,DOMElement:vG,Immutable:jG,ReactElement:HG,ReactTestComponent:YG},_3={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},iY={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Ty="…";function oY(t,a){const i=_3[iY[a]]||_3[a]||"";return i?`\x1B[${i[0]}m${String(t)}\x1B[${i[1]}m`:String(t)}function uY({showHidden:t=!1,depth:a=2,colors:i=!1,customInspect:u=!0,showProxy:f=!1,maxArrayLength:m=1/0,breakLength:h=1/0,seen:y=[],truncate:b=1/0,stylize:v=String}={},x){const E={showHidden:!!t,depth:Number(a),colors:!!i,customInspect:!!u,showProxy:!!f,maxArrayLength:Number(m),breakLength:Number(h),truncate:Number(b),seen:y,inspect:x,stylize:v};return E.colors&&(E.stylize=oY),E}function sY(t){return t>="\uD800"&&t<="\uDBFF"}function Uf(t,a,i=Ty){t=String(t);const u=i.length,f=t.length;if(u>a&&f>u)return i;if(f>a&&f>u){let m=a-u;return m>0&&sY(t[m-1])&&(m=m-1),`${t.slice(0,m)}${i}`}return t}function No(t,a,i,u=", "){i=i||a.inspect;const f=t.length;if(f===0)return"";const m=a.truncate;let h="",y="",b="";for(let v=0;v<f;v+=1){const x=v+1===t.length,E=v+2===t.length;b=`${Ty}(${t.length-v})`;const R=t[v];a.truncate=m-h.length-(x?0:u.length);const A=y||i(R,a)+(x?"":u),M=h.length+A.length,q=M+b.length;if(x&&M>m&&h.length+b.length<=m||!x&&!E&&q>m||(y=x?"":i(t[v+1],a)+(E?"":u),!x&&E&&q>m&&M+y.length>m))break;if(h+=A,!x&&!E&&M+y.length>=m){b=`${Ty}(${t.length-v-1})`;break}b=""}return`${h}${b}`}function cY(t){return t.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?t:JSON.stringify(t).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function jS([t,a],i){return i.truncate-=2,typeof t=="string"?t=cY(t):typeof t!="number"&&(t=`[${i.inspect(t,i)}]`),i.truncate-=t.length,a=i.inspect(a,i),`${t}: ${a}`}function fY(t,a){const i=Object.keys(t).slice(t.length);if(!t.length&&!i.length)return"[]";a.truncate-=4;const u=No(t,a);a.truncate-=u.length;let f="";return i.length&&(f=No(i.map(m=>[m,t[m]]),a,jS)),`[ ${u}${f?`, ${f}`:""} ]`}const dY=t=>typeof Buffer=="function"&&t instanceof Buffer?"Buffer":t[Symbol.toStringTag]?t[Symbol.toStringTag]:t.constructor.name;function $s(t,a){const i=dY(t);a.truncate-=i.length+4;const u=Object.keys(t).slice(t.length);if(!t.length&&!u.length)return`${i}[]`;let f="";for(let h=0;h<t.length;h++){const y=`${a.stylize(Uf(t[h],a.truncate),"number")}${h===t.length-1?"":", "}`;if(a.truncate-=y.length,t[h]!==t.length&&a.truncate<=3){f+=`${Ty}(${t.length-t[h]+1})`;break}f+=y}let m="";return u.length&&(m=No(u.map(h=>[h,t[h]]),a,jS)),`${i}[ ${f}${m?`, ${m}`:""} ]`}function pY(t,a){const i=t.toJSON();if(i===null)return"Invalid Date";const u=i.split("T"),f=u[0];return a.stylize(`${f}T${Uf(u[1],a.truncate-f.length-1)}`,"date")}function M3(t,a){const i=t[Symbol.toStringTag]||"Function",u=t.name;return u?a.stylize(`[${i} ${Uf(u,a.truncate-11)}]`,"special"):a.stylize(`[${i}]`,"special")}function hY([t,a],i){return i.truncate-=4,t=i.inspect(t,i),i.truncate-=t.length,a=i.inspect(a,i),`${t} => ${a}`}function mY(t){const a=[];return t.forEach((i,u)=>{a.push([u,i])}),a}function yY(t,a){return t.size===0?"Map{}":(a.truncate-=7,`Map{ ${No(mY(t),a,hY)} }`)}const gY=Number.isNaN||(t=>t!==t);function O3(t,a){return gY(t)?a.stylize("NaN","number"):t===1/0?a.stylize("Infinity","number"):t===-1/0?a.stylize("-Infinity","number"):t===0?a.stylize(1/t===1/0?"+0":"-0","number"):a.stylize(Uf(String(t),a.truncate),"number")}function q3(t,a){let i=Uf(t.toString(),a.truncate-1);return i!==Ty&&(i+="n"),a.stylize(i,"bigint")}function bY(t,a){const i=t.toString().split("/")[2],u=a.truncate-(2+i.length),f=t.source;return a.stylize(`/${Uf(f,u)}/${i}`,"regexp")}function vY(t){const a=[];return t.forEach(i=>{a.push(i)}),a}function SY(t,a){return t.size===0?"Set{}":(a.truncate-=7,`Set{ ${No(vY(t),a)} }`)}const D3=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),EY={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},TY=16;function wY(t){return EY[t]||`\\u${`0000${t.charCodeAt(0).toString(TY)}`.slice(-4)}`}function N3(t,a){return D3.test(t)&&(t=t.replace(D3,wY)),a.stylize(`'${Uf(t,a.truncate-2)}'`,"string")}function j3(t){return"description"in Symbol.prototype?t.description?`Symbol(${t.description})`:"Symbol()":t.toString()}const xY=()=>"Promise{…}";function Nw(t,a){const i=Object.getOwnPropertyNames(t),u=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[];if(i.length===0&&u.length===0)return"{}";if(a.truncate-=4,a.seen=a.seen||[],a.seen.includes(t))return"[Circular]";a.seen.push(t);const f=No(i.map(y=>[y,t[y]]),a,jS),m=No(u.map(y=>[y,t[y]]),a,jS);a.seen.pop();let h="";return f&&m&&(h=", "),`{ ${f}${h}${m} }`}const SC=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function RY(t,a){let i="";return SC&&SC in t&&(i=t[SC]),i=i||t.constructor.name,(!i||i==="_class")&&(i="<Anonymous Class>"),a.truncate-=i.length,`${i}${Nw(t,a)}`}function CY(t,a){return t.length===0?"Arguments[]":(a.truncate-=13,`Arguments[ ${No(t,a)} ]`)}const AY=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function _Y(t,a){const i=Object.getOwnPropertyNames(t).filter(h=>AY.indexOf(h)===-1),u=t.name;a.truncate-=u.length;let f="";if(typeof t.message=="string"?f=Uf(t.message,a.truncate):i.unshift("message"),f=f?`: ${f}`:"",a.truncate-=f.length+5,a.seen=a.seen||[],a.seen.includes(t))return"[Circular]";a.seen.push(t);const m=No(i.map(h=>[h,t[h]]),a,jS);return`${u}${f}${m?` { ${m} }`:""}`}function MY([t,a],i){return i.truncate-=3,a?`${i.stylize(String(t),"yellow")}=${i.stylize(`"${a}"`,"string")}`:`${i.stylize(String(t),"yellow")}`}function SA(t,a){return No(t,a,OY,`
312
+ `)}function OY(t,a){switch(t.nodeType){case 1:return c6(t,a);case 3:return a.inspect(t.data,a);default:return a.inspect(t,a)}}function c6(t,a){const i=t.getAttributeNames(),u=t.tagName.toLowerCase(),f=a.stylize(`<${u}`,"special"),m=a.stylize(">","special"),h=a.stylize(`</${u}>`,"special");a.truncate-=u.length*2+5;let y="";i.length>0&&(y+=" ",y+=No(i.map(x=>[x,t.getAttribute(x)]),a,MY," ")),a.truncate-=y.length;const b=a.truncate;let v=SA(t.children,a);return v&&v.length>b&&(v=`${Ty}(${t.children.length})`),`${f}${y}${m}${v}${h}`}const qY=typeof Symbol=="function"&&typeof Symbol.for=="function",EC=qY?Symbol.for("chai/inspect"):"@@chai/inspect",TC=Symbol.for("nodejs.util.inspect.custom"),z3=new WeakMap,k3={},B3={undefined:(t,a)=>a.stylize("undefined","undefined"),null:(t,a)=>a.stylize("null","null"),boolean:(t,a)=>a.stylize(String(t),"boolean"),Boolean:(t,a)=>a.stylize(String(t),"boolean"),number:O3,Number:O3,bigint:q3,BigInt:q3,string:N3,String:N3,function:M3,Function:M3,symbol:j3,Symbol:j3,Array:fY,Date:pY,Map:yY,Set:SY,RegExp:bY,Promise:xY,WeakSet:(t,a)=>a.stylize("WeakSet{…}","special"),WeakMap:(t,a)=>a.stylize("WeakMap{…}","special"),Arguments:CY,Int8Array:$s,Uint8Array:$s,Uint8ClampedArray:$s,Int16Array:$s,Uint16Array:$s,Int32Array:$s,Uint32Array:$s,Float32Array:$s,Float64Array:$s,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:_Y,HTMLCollection:SA,NodeList:SA},DY=(t,a,i,u)=>EC in t&&typeof t[EC]=="function"?t[EC](a):TC in t&&typeof t[TC]=="function"?t[TC](a.depth,a,u):"inspect"in t&&typeof t.inspect=="function"?t.inspect(a.depth,a):"constructor"in t&&z3.has(t.constructor)?z3.get(t.constructor)(t,a):k3[i]?k3[i](t,a):"",NY=Object.prototype.toString;function jw(t,a={}){const i=uY(a,jw),{customInspect:u}=i;let f=t===null?"null":typeof t;if(f==="object"&&(f=NY.call(t).slice(8,-1)),f in B3)return B3[f](t,i);if(u&&t){const h=DY(t,i,f,jw);if(h)return typeof h=="string"?h:jw(h,i)}const m=t?Object.getPrototypeOf(t):!1;return m===Object.prototype||m===null?Nw(t,i):t&&typeof HTMLElement=="function"&&t instanceof HTMLElement?c6(t,i):"constructor"in t?t.constructor!==Object?RY(t,i):Nw(t,i):t===Object(t)?Nw(t,i):i.stylize(String(t),f)}const{AsymmetricMatcher:jY,DOMCollection:zY,DOMElement:kY,Immutable:BY,ReactElement:UY,ReactTestComponent:LY}=T_,U3=[LY,UY,kY,zY,BY,jY];function Qi(t,a=10,{maxLength:i,...u}={}){const f=i??1e4;let m;try{m=qo(t,{maxDepth:a,escapeString:!1,plugins:U3,...u})}catch{m=qo(t,{callToJSON:!1,maxDepth:a,escapeString:!1,plugins:U3,...u})}return m.length>=f&&a>1?Qi(t,Math.floor(a/2)):m}const $Y=/%[sdjifoOc%]/g;function f6(...t){if(typeof t[0]!="string"){const m=[];for(let h=0;h<t.length;h++)m.push(sy(t[h],{depth:0,colors:!1}));return m.join(" ")}const a=t.length;let i=1;const u=t[0];let f=String(u).replace($Y,m=>{if(m==="%%")return"%";if(i>=a)return m;switch(m){case"%s":{const h=t[i++];return typeof h=="bigint"?`${h.toString()}n`:typeof h=="number"&&h===0&&1/h<0?"-0":typeof h=="object"&&h!==null?sy(h,{depth:0,colors:!1}):String(h)}case"%d":{const h=t[i++];return typeof h=="bigint"?`${h.toString()}n`:Number(h).toString()}case"%i":{const h=t[i++];return typeof h=="bigint"?`${h.toString()}n`:Number.parseInt(String(h)).toString()}case"%f":return Number.parseFloat(String(t[i++])).toString();case"%o":return sy(t[i++],{showHidden:!0,showProxy:!0});case"%O":return sy(t[i++]);case"%c":return i++,"";case"%j":try{return JSON.stringify(t[i++])}catch(h){const y=h.message;if(y.includes("circular structure")||y.includes("cyclic structures")||y.includes("cyclic object"))return"[Circular]";throw h}default:return m}});for(let m=t[i];i<a;m=t[++i])m===null||typeof m!="object"?f+=` ${m}`:f+=` ${sy(m)}`;return f}function sy(t,a={}){return a.truncate===0&&(a.truncate=Number.POSITIVE_INFINITY),jw(t,a)}function HY(t,a={}){typeof a.truncate>"u"&&(a.truncate=40);const i=sy(t,a),u=Object.prototype.toString.call(t);if(a.truncate&&i.length>=a.truncate)if(u==="[object Function]"){const f=t;return f.name?`[Function: ${f.name}]`:"[Function]"}else{if(u==="[object Array]")return`[ Array(${t.length}) ]`;if(u==="[object Object]"){const f=Object.keys(t);return`{ Object (${f.length>2?`${f.splice(0,2).join(", ")}, ...`:f.join(", ")}) }`}else return i}return i}function PY(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function IY(t){const{message:a="$$stack trace error",stackTraceLimit:i=1}=t||{},u=Error.stackTraceLimit,f=Error.prepareStackTrace;Error.stackTraceLimit=i,Error.prepareStackTrace=y=>y.stack;const h=new Error(a).stack||"";return Error.prepareStackTrace=f,Error.stackTraceLimit=u,h}function Tu(t,a,i){const u=typeof t;if(!i.includes(u))throw new TypeError(`${a} value must be ${i.join(" or ")}, received "${u}"`)}function VY(t){return t==null&&(t=[]),Array.isArray(t)?t:[t]}function yy(t){return t!=null&&typeof t=="object"&&!Array.isArray(t)}function GY(t){return t===Object.prototype||t===Function.prototype||t===RegExp.prototype}function Qw(t){return Object.prototype.toString.apply(t).slice(8,-1)}function YY(t,a){const i=typeof a=="function"?a:u=>a.add(u);Object.getOwnPropertyNames(t).forEach(i),Object.getOwnPropertySymbols(t).forEach(i)}function d6(t){const a=new Set;return GY(t)?[]:(YY(t,a),Array.from(a))}const p6={forceWritable:!1};function L3(t,a=p6){return EA(t,new WeakMap,a)}function EA(t,a,i=p6){let u,f;if(a.has(t))return a.get(t);if(Array.isArray(t)){for(f=Array.from({length:u=t.length}),a.set(t,f);u--;)f[u]=EA(t[u],a,i);return f}if(Object.prototype.toString.call(t)==="[object Object]"){f=Object.create(Object.getPrototypeOf(t)),a.set(t,f);const m=d6(t);for(const h of m){const y=Object.getOwnPropertyDescriptor(t,h);if(!y)continue;const b=EA(t[h],a,i);i.forceWritable?Object.defineProperty(f,h,{enumerable:y.enumerable,configurable:!0,writable:!0,value:b}):"get"in y?Object.defineProperty(f,h,{...y,get(){return b}}):Object.defineProperty(f,h,{...y,value:b})}return f}return t}function XY(t,a,i=void 0){const u=a.replace(/\[(\d+)\]/g,".$1").split(".");let f=t;for(const m of u)if(f=new Object(f)[m],f===void 0)return i;return f}function $3(){let t=null,a=null;const i=new Promise((u,f)=>{t=u,a=f});return i.resolve=t,i.reject=a,i}function FY(t){if(!Number.isNaN(t))return!1;const a=new Float64Array(1);return a[0]=t,new Uint32Array(a.buffer)[1]>>>31===1}var wC,H3;function QY(){if(H3)return wC;H3=1;var t,a,i,u,f,m,h,y,b,v,x,E,R,A,M,q,N,_,L;return R=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,E=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,t=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,M=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,x=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,q=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,L=/[\t\v\f\ufeff\p{Zs}]+/yu,y=/\r?\n|[\r\u2028\u2029]/y,b=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,A=/\/\/.*/y,i=/[<>.:={}]|\/(?![\/*])/y,a=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,u=/(['"])(?:(?!\1)[^])*(\1)?/y,f=/[^<>{}]+/y,_=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,N=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,m=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,h=/^(?:return|throw|yield)$/,v=RegExp(y.source),wC=function*($,{jsx:I=!1}={}){var V,z,k,U,F,H,J,ve,se,Se,ke,P,ue,te;for({length:H}=$,U=0,F="",te=[{tag:"JS"}],V=[],ke=0,P=!1;U<H;){switch(ve=te[te.length-1],ve.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if($[U]==="/"&&(_.test(F)||m.test(F))&&(R.lastIndex=U,J=R.exec($))){U=R.lastIndex,F=J[0],P=!0,yield{type:"RegularExpressionLiteral",value:J[0],closed:J[1]!==void 0&&J[1]!=="\\"};continue}if(E.lastIndex=U,J=E.exec($)){switch(ue=J[0],se=E.lastIndex,Se=ue,ue){case"(":F==="?NonExpressionParenKeyword"&&te.push({tag:"JSNonExpressionParen",nesting:ke}),ke++,P=!1;break;case")":ke--,P=!0,ve.tag==="JSNonExpressionParen"&&ke===ve.nesting&&(te.pop(),Se="?NonExpressionParenEnd",P=!1);break;case"{":E.lastIndex=0,k=!N.test(F)&&(_.test(F)||m.test(F)),V.push(k),P=!1;break;case"}":switch(ve.tag){case"InterpolationInTemplate":if(V.length===ve.nesting){q.lastIndex=U,J=q.exec($),U=q.lastIndex,F=J[0],J[1]==="${"?(F="?InterpolationInTemplate",P=!1,yield{type:"TemplateMiddle",value:J[0]}):(te.pop(),P=!0,yield{type:"TemplateTail",value:J[0],closed:J[1]==="`"});continue}break;case"InterpolationInJSX":if(V.length===ve.nesting){te.pop(),U+=1,F="}",yield{type:"JSXPunctuator",value:"}"};continue}}P=V.pop(),Se=P?"?ExpressionBraceEnd":"}";break;case"]":P=!0;break;case"++":case"--":Se=P?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(I&&(_.test(F)||m.test(F))){te.push({tag:"JSXTag"}),U+=1,F="<",yield{type:"JSXPunctuator",value:ue};continue}P=!1;break;default:P=!1}U=se,F=Se,yield{type:"Punctuator",value:ue};continue}if(t.lastIndex=U,J=t.exec($)){switch(U=t.lastIndex,Se=J[0],J[0]){case"for":case"if":case"while":case"with":F!=="."&&F!=="?."&&(Se="?NonExpressionParenKeyword")}F=Se,P=!m.test(J[0]),yield{type:J[1]==="#"?"PrivateIdentifier":"IdentifierName",value:J[0]};continue}if(M.lastIndex=U,J=M.exec($)){U=M.lastIndex,F=J[0],P=!0,yield{type:"StringLiteral",value:J[0],closed:J[2]!==void 0};continue}if(x.lastIndex=U,J=x.exec($)){U=x.lastIndex,F=J[0],P=!0,yield{type:"NumericLiteral",value:J[0]};continue}if(q.lastIndex=U,J=q.exec($)){U=q.lastIndex,F=J[0],J[1]==="${"?(F="?InterpolationInTemplate",te.push({tag:"InterpolationInTemplate",nesting:V.length}),P=!1,yield{type:"TemplateHead",value:J[0]}):(P=!0,yield{type:"NoSubstitutionTemplate",value:J[0],closed:J[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(i.lastIndex=U,J=i.exec($)){switch(U=i.lastIndex,Se=J[0],J[0]){case"<":te.push({tag:"JSXTag"});break;case">":te.pop(),F==="/"||ve.tag==="JSXTagEnd"?(Se="?JSX",P=!0):te.push({tag:"JSXChildren"});break;case"{":te.push({tag:"InterpolationInJSX",nesting:V.length}),Se="?InterpolationInJSX",P=!1;break;case"/":F==="<"&&(te.pop(),te[te.length-1].tag==="JSXChildren"&&te.pop(),te.push({tag:"JSXTagEnd"}))}F=Se,yield{type:"JSXPunctuator",value:J[0]};continue}if(a.lastIndex=U,J=a.exec($)){U=a.lastIndex,F=J[0],yield{type:"JSXIdentifier",value:J[0]};continue}if(u.lastIndex=U,J=u.exec($)){U=u.lastIndex,F=J[0],yield{type:"JSXString",value:J[0],closed:J[2]!==void 0};continue}break;case"JSXChildren":if(f.lastIndex=U,J=f.exec($)){U=f.lastIndex,F=J[0],yield{type:"JSXText",value:J[0]};continue}switch($[U]){case"<":te.push({tag:"JSXTag"}),U++,F="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":te.push({tag:"InterpolationInJSX",nesting:V.length}),U++,F="?InterpolationInJSX",P=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(L.lastIndex=U,J=L.exec($)){U=L.lastIndex,yield{type:"WhiteSpace",value:J[0]};continue}if(y.lastIndex=U,J=y.exec($)){U=y.lastIndex,P=!1,h.test(F)&&(F="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:J[0]};continue}if(b.lastIndex=U,J=b.exec($)){U=b.lastIndex,v.test(J[0])&&(P=!1,h.test(F)&&(F="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:J[0],closed:J[1]!==void 0};continue}if(A.lastIndex=U,J=A.exec($)){U=A.lastIndex,P=!1,yield{type:"SingleLineComment",value:J[0]};continue}z=String.fromCodePoint($.codePointAt(U)),U+=z.length,F=z,P=!1,yield{type:ve.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:z}}},wC}QY();var h6={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(h6.keyword);new Set(h6.strict);const P3=Symbol("vitest:SAFE_TIMERS");function LS(){const{setTimeout:t,setInterval:a,clearInterval:i,clearTimeout:u,setImmediate:f,clearImmediate:m}=globalThis[P3]||globalThis,{nextTick:h}=globalThis[P3]||globalThis.process||{nextTick:y=>y()};return{nextTick:h,setTimeout:t,setInterval:a,clearInterval:i,clearTimeout:u,setImmediate:f,clearImmediate:m}}const xr=-1,hr=1,ra=0;class Kn{constructor(a,i){ot(this,0);ot(this,1);this[0]=a,this[1]=i}}const ZY=function(t,a){if(!t||!a||t.charAt(0)!==a.charAt(0))return 0;let i=0,u=Math.min(t.length,a.length),f=u,m=0;for(;i<f;)t.substring(m,f)===a.substring(m,f)?(i=f,m=i):u=f,f=Math.floor((u-i)/2+i);return f},m6=function(t,a){if(!t||!a||t.charAt(t.length-1)!==a.charAt(a.length-1))return 0;let i=0,u=Math.min(t.length,a.length),f=u,m=0;for(;i<f;)t.substring(t.length-f,t.length-m)===a.substring(a.length-f,a.length-m)?(i=f,m=i):u=f,f=Math.floor((u-i)/2+i);return f},I3=function(t,a){const i=t.length,u=a.length;if(i===0||u===0)return 0;i>u?t=t.substring(i-u):i<u&&(a=a.substring(0,i));const f=Math.min(i,u);if(t===a)return f;let m=0,h=1;for(;;){const y=t.substring(f-h),b=a.indexOf(y);if(b===-1)return m;h+=b,(b===0||t.substring(f-h)===a.substring(0,h))&&(m=h,h++)}},JY=function(t){let a=!1;const i=[];let u=0,f=null,m=0,h=0,y=0,b=0,v=0;for(;m<t.length;)t[m][0]===ra?(i[u++]=m,h=b,y=v,b=0,v=0,f=t[m][1]):(t[m][0]===hr?b+=t[m][1].length:v+=t[m][1].length,f&&f.length<=Math.max(h,y)&&f.length<=Math.max(b,v)&&(t.splice(i[u-1],0,new Kn(xr,f)),t[i[u-1]+1][0]=hr,u--,u--,m=u>0?i[u-1]:-1,h=0,y=0,b=0,v=0,f=null,a=!0)),m++;for(a&&y6(t),eX(t),m=1;m<t.length;){if(t[m-1][0]===xr&&t[m][0]===hr){const x=t[m-1][1],E=t[m][1],R=I3(x,E),A=I3(E,x);R>=A?(R>=x.length/2||R>=E.length/2)&&(t.splice(m,0,new Kn(ra,E.substring(0,R))),t[m-1][1]=x.substring(0,x.length-R),t[m+1][1]=E.substring(R),m++):(A>=x.length/2||A>=E.length/2)&&(t.splice(m,0,new Kn(ra,x.substring(0,A))),t[m-1][0]=hr,t[m-1][1]=E.substring(0,E.length-A),t[m+1][0]=xr,t[m+1][1]=x.substring(A),m++),m++}m++}},V3=/[^a-z0-9]/i,G3=/\s/,Y3=/[\r\n]/,KY=/\n\r?\n$/,WY=/^\r?\n\r?\n/;function eX(t){let a=1;for(;a<t.length-1;){if(t[a-1][0]===ra&&t[a+1][0]===ra){let i=t[a-1][1],u=t[a][1],f=t[a+1][1];const m=m6(i,u);if(m){const x=u.substring(u.length-m);i=i.substring(0,i.length-m),u=x+u.substring(0,u.length-m),f=x+f}let h=i,y=u,b=f,v=Rw(i,u)+Rw(u,f);for(;u.charAt(0)===f.charAt(0);){i+=u.charAt(0),u=u.substring(1)+f.charAt(0),f=f.substring(1);const x=Rw(i,u)+Rw(u,f);x>=v&&(v=x,h=i,y=u,b=f)}t[a-1][1]!==h&&(h?t[a-1][1]=h:(t.splice(a-1,1),a--),t[a][1]=y,b?t[a+1][1]=b:(t.splice(a+1,1),a--))}a++}}function y6(t){t.push(new Kn(ra,""));let a=0,i=0,u=0,f="",m="",h;for(;a<t.length;)switch(t[a][0]){case hr:u++,m+=t[a][1],a++;break;case xr:i++,f+=t[a][1],a++;break;case ra:i+u>1?(i!==0&&u!==0&&(h=ZY(m,f),h!==0&&(a-i-u>0&&t[a-i-u-1][0]===ra?t[a-i-u-1][1]+=m.substring(0,h):(t.splice(0,0,new Kn(ra,m.substring(0,h))),a++),m=m.substring(h),f=f.substring(h)),h=m6(m,f),h!==0&&(t[a][1]=m.substring(m.length-h)+t[a][1],m=m.substring(0,m.length-h),f=f.substring(0,f.length-h))),a-=i+u,t.splice(a,i+u),f.length&&(t.splice(a,0,new Kn(xr,f)),a++),m.length&&(t.splice(a,0,new Kn(hr,m)),a++),a++):a!==0&&t[a-1][0]===ra?(t[a-1][1]+=t[a][1],t.splice(a,1)):a++,u=0,i=0,f="",m="";break}t[t.length-1][1]===""&&t.pop();let y=!1;for(a=1;a<t.length-1;)t[a-1][0]===ra&&t[a+1][0]===ra&&(t[a][1].substring(t[a][1].length-t[a-1][1].length)===t[a-1][1]?(t[a][1]=t[a-1][1]+t[a][1].substring(0,t[a][1].length-t[a-1][1].length),t[a+1][1]=t[a-1][1]+t[a+1][1],t.splice(a-1,1),y=!0):t[a][1].substring(0,t[a+1][1].length)===t[a+1][1]&&(t[a-1][1]+=t[a+1][1],t[a][1]=t[a][1].substring(t[a+1][1].length)+t[a+1][1],t.splice(a+1,1),y=!0)),a++;y&&y6(t)}function Rw(t,a){if(!t||!a)return 6;const i=t.charAt(t.length-1),u=a.charAt(0),f=i.match(V3),m=u.match(V3),h=f&&i.match(G3),y=m&&u.match(G3),b=h&&i.match(Y3),v=y&&u.match(Y3),x=b&&t.match(KY),E=v&&a.match(WY);return x||E?5:b||v?4:f&&!h&&y?3:h||y?2:f||m?1:0}const g6="Compared values have no visual difference.",tX="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.";var Cw={},X3;function nX(){if(X3)return Cw;X3=1,Object.defineProperty(Cw,"__esModule",{value:!0}),Cw.default=R;const t="diff-sequences",a=0,i=(A,M,q,N,_)=>{let L=0;for(;A<M&&q<N&&_(A,q);)A+=1,q+=1,L+=1;return L},u=(A,M,q,N,_)=>{let L=0;for(;A<=M&&q<=N&&_(M,N);)M-=1,N-=1,L+=1;return L},f=(A,M,q,N,_,L,$)=>{let I=0,V=-A,z=L[I],k=z;L[I]+=i(z+1,M,N+z-V+1,q,_);const U=A<$?A:$;for(I+=1,V+=2;I<=U;I+=1,V+=2){if(I!==A&&k<L[I])z=L[I];else if(z=k+1,M<=z)return I-1;k=L[I],L[I]=z+i(z+1,M,N+z-V+1,q,_)}return $},m=(A,M,q,N,_,L,$)=>{let I=0,V=A,z=L[I],k=z;L[I]-=u(M,z-1,q,N+z-V-1,_);const U=A<$?A:$;for(I+=1,V-=2;I<=U;I+=1,V-=2){if(I!==A&&L[I]<k)z=L[I];else if(z=k-1,z<M)return I-1;k=L[I],L[I]=z-u(M,z-1,q,N+z-V-1,_)}return $},h=(A,M,q,N,_,L,$,I,V,z,k)=>{const U=N-M,F=q-M,J=_-N-F,ve=-J-(A-1),se=-J+(A-1);let Se=a;const ke=A<I?A:I;for(let P=0,ue=-A;P<=ke;P+=1,ue+=2){const te=P===0||P!==A&&Se<$[P],De=te?$[P]:Se,je=te?De:De+1,Ye=U+je-ue,Xe=i(je+1,q,Ye+1,_,L),xe=je+Xe;if(Se=$[P],$[P]=xe,ve<=ue&&ue<=se){const Ie=(A-1-(ue+J))/2;if(Ie<=z&&V[Ie]-1<=xe){const Je=U+De-(te?ue+1:ue-1),at=u(M,De,N,Je,L),Lt=De-at,an=Je-at,ie=Lt+1,Pe=an+1;k.nChangePreceding=A-1,A-1===ie+Pe-M-N?(k.aEndPreceding=M,k.bEndPreceding=N):(k.aEndPreceding=ie,k.bEndPreceding=Pe),k.nCommonPreceding=at,at!==0&&(k.aCommonPreceding=ie,k.bCommonPreceding=Pe),k.nCommonFollowing=Xe,Xe!==0&&(k.aCommonFollowing=je+1,k.bCommonFollowing=Ye+1);const de=xe+1,ut=Ye+Xe+1;return k.nChangeFollowing=A-1,A-1===q+_-de-ut?(k.aStartFollowing=q,k.bStartFollowing=_):(k.aStartFollowing=de,k.bStartFollowing=ut),!0}}}return!1},y=(A,M,q,N,_,L,$,I,V,z,k)=>{const U=_-q,F=q-M,J=_-N-F,ve=J-A,se=J+A;let Se=a;const ke=A<z?A:z;for(let P=0,ue=A;P<=ke;P+=1,ue-=2){const te=P===0||P!==A&&V[P]<Se,De=te?V[P]:Se,je=te?De:De-1,Ye=U+je-ue,Xe=u(M,je-1,N,Ye-1,L),xe=je-Xe;if(Se=V[P],V[P]=xe,ve<=ue&&ue<=se){const Ie=(A+(ue-J))/2;if(Ie<=I&&xe-1<=$[Ie]){const Je=Ye-Xe;if(k.nChangePreceding=A,A===xe+Je-M-N?(k.aEndPreceding=M,k.bEndPreceding=N):(k.aEndPreceding=xe,k.bEndPreceding=Je),k.nCommonPreceding=Xe,Xe!==0&&(k.aCommonPreceding=xe,k.bCommonPreceding=Je),k.nChangeFollowing=A-1,A===1)k.nCommonFollowing=0,k.aStartFollowing=q,k.bStartFollowing=_;else{const at=U+De-(te?ue-1:ue+1),Lt=i(De,q,at,_,L);k.nCommonFollowing=Lt,Lt!==0&&(k.aCommonFollowing=De,k.bCommonFollowing=at);const an=De+Lt,ie=at+Lt;A-1===q+_-an-ie?(k.aStartFollowing=q,k.bStartFollowing=_):(k.aStartFollowing=an,k.bStartFollowing=ie)}return!0}}}return!1},b=(A,M,q,N,_,L,$,I,V)=>{const z=N-M,k=_-q,U=q-M,F=_-N,H=F-U;let J=U,ve=U;if($[0]=M-1,I[0]=q,H%2===0){const se=(A||H)/2,Se=(U+F)/2;for(let ke=1;ke<=Se;ke+=1)if(J=f(ke,q,_,z,L,$,J),ke<se)ve=m(ke,M,N,k,L,I,ve);else if(y(ke,M,q,N,_,L,$,J,I,ve,V))return}else{const se=((A||H)+1)/2,Se=(U+F+1)/2;let ke=1;for(J=f(ke,q,_,z,L,$,J),ke+=1;ke<=Se;ke+=1)if(ve=m(ke-1,M,N,k,L,I,ve),ke<se)J=f(ke,q,_,z,L,$,J);else if(h(ke,M,q,N,_,L,$,J,I,ve,V))return}throw new Error(`${t}: no overlap aStart=${M} aEnd=${q} bStart=${N} bEnd=${_}`)},v=(A,M,q,N,_,L,$,I,V,z)=>{if(_-N<q-M){if(L=!L,L&&$.length===1){const{foundSubsequence:xe,isCommon:Ie}=$[0];$[1]={foundSubsequence:(Je,at,Lt)=>{xe(Je,Lt,at)},isCommon:(Je,at)=>Ie(at,Je)}}const Ye=M,Xe=q;M=N,q=_,N=Ye,_=Xe}const{foundSubsequence:k,isCommon:U}=$[L?1:0];b(A,M,q,N,_,U,I,V,z);const{nChangePreceding:F,aEndPreceding:H,bEndPreceding:J,nCommonPreceding:ve,aCommonPreceding:se,bCommonPreceding:Se,nCommonFollowing:ke,aCommonFollowing:P,bCommonFollowing:ue,nChangeFollowing:te,aStartFollowing:De,bStartFollowing:je}=z;M<H&&N<J&&v(F,M,H,N,J,L,$,I,V,z),ve!==0&&k(ve,se,Se),ke!==0&&k(ke,P,ue),De<q&&je<_&&v(te,De,q,je,_,L,$,I,V,z)},x=(A,M)=>{if(typeof M!="number")throw new TypeError(`${t}: ${A} typeof ${typeof M} is not a number`);if(!Number.isSafeInteger(M))throw new RangeError(`${t}: ${A} value ${M} is not a safe integer`);if(M<0)throw new RangeError(`${t}: ${A} value ${M} is a negative integer`)},E=(A,M)=>{const q=typeof M;if(q!=="function")throw new TypeError(`${t}: ${A} typeof ${q} is not a function`)};function R(A,M,q,N){x("aLength",A),x("bLength",M),E("isCommon",q),E("foundSubsequence",N);const _=i(0,A,0,M,q);if(_!==0&&N(_,0,0),A!==_||M!==_){const L=_,$=_,I=u(L,A-1,$,M-1,q),V=A-I,z=M-I,k=_+I;A!==k&&M!==k&&v(0,L,V,$,z,!1,[{foundSubsequence:N,isCommon:q}],[a],[a],{aCommonFollowing:a,aCommonPreceding:a,aEndPreceding:a,aStartFollowing:a,bCommonFollowing:a,bCommonPreceding:a,bEndPreceding:a,bStartFollowing:a,nChangeFollowing:a,nChangePreceding:a,nCommonFollowing:a,nCommonPreceding:a}),I!==0&&N(I,V,z)}}return Cw}var aX=nX(),b6=PY(aX);function rX(t,a){return t.replace(/\s+$/,i=>a(i))}function w_(t,a,i,u,f,m){return t.length!==0?i(`${u} ${rX(t,f)}`):u!==" "?i(u):a&&m.length!==0?i(`${u} ${m}`):""}function v6(t,a,{aColor:i,aIndicator:u,changeLineTrailingSpaceColor:f,emptyFirstOrLastLinePlaceholder:m}){return w_(t,a,i,u,f,m)}function S6(t,a,{bColor:i,bIndicator:u,changeLineTrailingSpaceColor:f,emptyFirstOrLastLinePlaceholder:m}){return w_(t,a,i,u,f,m)}function E6(t,a,{commonColor:i,commonIndicator:u,commonLineTrailingSpaceColor:f,emptyFirstOrLastLinePlaceholder:m}){return w_(t,a,i,u,f,m)}function F3(t,a,i,u,{patchColor:f}){return f(`@@ -${t+1},${a-t} +${i+1},${u-i} @@`)}function lX(t,a){const i=t.length,u=a.contextLines,f=u+u;let m=i,h=!1,y=0,b=0;for(;b!==i;){const I=b;for(;b!==i&&t[b][0]===ra;)b+=1;if(I!==b)if(I===0)b>u&&(m-=b-u,h=!0);else if(b===i){const V=b-I;V>u&&(m-=V-u,h=!0)}else{const V=b-I;V>f&&(m-=V-f,y+=1)}for(;b!==i&&t[b][0]!==ra;)b+=1}const v=y!==0||h;y!==0?m+=y+1:h&&(m+=1);const x=m-1,E=[];let R=0;v&&E.push("");let A=0,M=0,q=0,N=0;const _=I=>{const V=E.length;E.push(E6(I,V===0||V===x,a)),q+=1,N+=1},L=I=>{const V=E.length;E.push(v6(I,V===0||V===x,a)),q+=1},$=I=>{const V=E.length;E.push(S6(I,V===0||V===x,a)),N+=1};for(b=0;b!==i;){let I=b;for(;b!==i&&t[b][0]===ra;)b+=1;if(I!==b)if(I===0){b>u&&(I=b-u,A=I,M=I,q=A,N=M);for(let V=I;V!==b;V+=1)_(t[V][1])}else if(b===i){const V=b-I>u?I+u:b;for(let z=I;z!==V;z+=1)_(t[z][1])}else{const V=b-I;if(V>f){const z=I+u;for(let U=I;U!==z;U+=1)_(t[U][1]);E[R]=F3(A,q,M,N,a),R=E.length,E.push("");const k=V-f;A=q+k,M=N+k,q=A,N=M;for(let U=b-u;U!==b;U+=1)_(t[U][1])}else for(let z=I;z!==b;z+=1)_(t[z][1])}for(;b!==i&&t[b][0]===xr;)L(t[b][1]),b+=1;for(;b!==i&&t[b][0]===hr;)$(t[b][1]),b+=1}return v&&(E[R]=F3(A,q,M,N,a)),E.join(`
313
+ `)}function iX(t,a){return t.map((i,u,f)=>{const m=i[1],h=u===0||u===f.length-1;switch(i[0]){case xr:return v6(m,h,a);case hr:return S6(m,h,a);default:return E6(m,h,a)}}).join(`
314
+ `)}const xC=t=>t,T6=5,oX=0;function uX(){return{aAnnotation:"Expected",aColor:la.green,aIndicator:"-",bAnnotation:"Received",bColor:la.red,bIndicator:"+",changeColor:la.inverse,changeLineTrailingSpaceColor:xC,commonColor:la.dim,commonIndicator:" ",commonLineTrailingSpaceColor:xC,compareKeys:void 0,contextLines:T6,emptyFirstOrLastLinePlaceholder:"",expand:!0,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:la.yellow,truncateThreshold:oX,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:xC}}function sX(t){return t&&typeof t=="function"?t:void 0}function cX(t){return typeof t=="number"&&Number.isSafeInteger(t)&&t>=0?t:T6}function $p(t={}){return{...uX(),...t,compareKeys:sX(t.compareKeys),contextLines:cX(t.contextLines)}}function fy(t){return t.length===1&&t[0].length===0}function fX(t){let a=0,i=0;return t.forEach(u=>{switch(u[0]){case xr:a+=1;break;case hr:i+=1;break}}),{a,b:i}}function dX({aAnnotation:t,aColor:a,aIndicator:i,bAnnotation:u,bColor:f,bIndicator:m,includeChangeCounts:h,omitAnnotationLines:y},b){if(y)return"";let v="",x="";if(h){const A=String(b.a),M=String(b.b),q=u.length-t.length,N=" ".repeat(Math.max(0,q)),_=" ".repeat(Math.max(0,-q)),L=M.length-A.length,$=" ".repeat(Math.max(0,L)),I=" ".repeat(Math.max(0,-L));v=`${N} ${i} ${$}${A}`,x=`${_} ${m} ${I}${M}`}const E=`${i} ${t}${v}`,R=`${m} ${u}${x}`;return`${a(E)}
315
+ ${f(R)}
316
+
317
+ `}function x_(t,a,i){return dX(i,fX(t))+(i.expand?iX(t,i):lX(t,i))+(a?i.truncateAnnotationColor(`
318
+ ${i.truncateAnnotation}`):"")}function yx(t,a,i){const u=$p(i),[f,m]=w6(fy(t)?[]:t,fy(a)?[]:a,u);return x_(f,m,u)}function pX(t,a,i,u,f){if(fy(t)&&fy(i)&&(t=[],i=[]),fy(a)&&fy(u)&&(a=[],u=[]),t.length!==i.length||a.length!==u.length)return yx(t,a,f);const[m,h]=w6(i,u,f);let y=0,b=0;return m.forEach(v=>{switch(v[0]){case xr:v[1]=t[y],y+=1;break;case hr:v[1]=a[b],b+=1;break;default:v[1]=a[b],y+=1,b+=1}}),x_(m,h,$p(f))}function w6(t,a,i){const u=i?.truncateThreshold??!1,f=Math.max(Math.floor(i?.truncateThreshold??0),0),m=u?Math.min(t.length,f):t.length,h=u?Math.min(a.length,f):a.length,y=m!==t.length||h!==a.length,b=(A,M)=>t[A]===a[M],v=[];let x=0,E=0;for(b6(m,h,b,(A,M,q)=>{for(;x!==M;x+=1)v.push(new Kn(xr,t[x]));for(;E!==q;E+=1)v.push(new Kn(hr,a[E]));for(;A!==0;A-=1,x+=1,E+=1)v.push(new Kn(ra,a[E]))});x!==m;x+=1)v.push(new Kn(xr,t[x]));for(;E!==h;E+=1)v.push(new Kn(hr,a[E]));return[v,y]}function Q3(t){if(t===void 0)return"undefined";if(t===null)return"null";if(Array.isArray(t))return"array";if(typeof t=="boolean")return"boolean";if(typeof t=="function")return"function";if(typeof t=="number")return"number";if(typeof t=="string")return"string";if(typeof t=="bigint")return"bigint";if(typeof t=="object"){if(t!=null){if(t.constructor===RegExp)return"regexp";if(t.constructor===Map)return"map";if(t.constructor===Set)return"set";if(t.constructor===Date)return"date"}return"object"}else if(typeof t=="symbol")return"symbol";throw new Error(`value of unknown type: ${t}`)}function Z3(t){return t.includes(`\r
319
+ `)?`\r
320
+ `:`
321
+ `}function hX(t,a,i){const u=i?.truncateThreshold??!1,f=Math.max(Math.floor(i?.truncateThreshold??0),0);let m=t.length,h=a.length;if(u){const A=t.includes(`
322
+ `),M=a.includes(`
323
+ `),q=Z3(t),N=Z3(a),_=A?`${t.split(q,f).join(q)}
324
+ `:t,L=M?`${a.split(N,f).join(N)}
325
+ `:a;m=_.length,h=L.length}const y=m!==t.length||h!==a.length,b=(A,M)=>t[A]===a[M];let v=0,x=0;const E=[];return b6(m,h,b,(A,M,q)=>{v!==M&&E.push(new Kn(xr,t.slice(v,M))),x!==q&&E.push(new Kn(hr,a.slice(x,q))),v=M+A,x=q+A,E.push(new Kn(ra,a.slice(q,x)))}),v!==m&&E.push(new Kn(xr,t.slice(v))),x!==h&&E.push(new Kn(hr,a.slice(x))),[E,y]}function mX(t,a,i){return a.reduce((u,f)=>u+(f[0]===ra?f[1]:f[0]===t&&f[1].length!==0?i(f[1]):""),"")}class J3{constructor(a,i){ot(this,"op");ot(this,"line");ot(this,"lines");ot(this,"changeColor");this.op=a,this.line=[],this.lines=[],this.changeColor=i}pushSubstring(a){this.pushDiff(new Kn(this.op,a))}pushLine(){this.lines.push(this.line.length!==1?new Kn(this.op,mX(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new Kn(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(a){this.line.push(a)}align(a){const i=a[1];if(i.includes(`
326
+ `)){const u=i.split(`
327
+ `),f=u.length-1;u.forEach((m,h)=>{h<f?(this.pushSubstring(m),this.pushLine()):m.length!==0&&this.pushSubstring(m)})}else this.pushDiff(a)}moveLinesTo(a){this.isLineEmpty()||this.pushLine(),a.push(...this.lines),this.lines.length=0}}class yX{constructor(a,i){ot(this,"deleteBuffer");ot(this,"insertBuffer");ot(this,"lines");this.deleteBuffer=a,this.insertBuffer=i,this.lines=[]}pushDiffCommonLine(a){this.lines.push(a)}pushDiffChangeLines(a){const i=a[1].length===0;(!i||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(a),(!i||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(a)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(a){const i=a[0],u=a[1];if(u.includes(`
328
+ `)){const f=u.split(`
329
+ `),m=f.length-1;f.forEach((h,y)=>{if(y===0){const b=new Kn(i,h);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(b)):(this.pushDiffChangeLines(b),this.flushChangeLines())}else y<m?this.pushDiffCommonLine(new Kn(i,h)):h.length!==0&&this.pushDiffChangeLines(new Kn(i,h))})}else this.pushDiffChangeLines(a)}getLines(){return this.flushChangeLines(),this.lines}}function gX(t,a){const i=new J3(xr,a),u=new J3(hr,a),f=new yX(i,u);return t.forEach(m=>{switch(m[0]){case xr:i.align(m);break;case hr:u.align(m);break;default:f.align(m)}}),f.getLines()}function bX(t,a){if(a){const i=t.length-1;return t.some((u,f)=>u[0]===ra&&(f!==i||u[1]!==`
330
+ `))}return t.some(i=>i[0]===ra)}function vX(t,a,i){if(t!==a&&t.length!==0&&a.length!==0){const u=t.includes(`
331
+ `)||a.includes(`
332
+ `),[f,m]=x6(u?`${t}
333
+ `:t,u?`${a}
334
+ `:a,!0,i);if(bX(f,u)){const h=$p(i),y=gX(f,h.changeColor);return x_(y,m,h)}}return yx(t.split(`
335
+ `),a.split(`
336
+ `),i)}function x6(t,a,i,u){const[f,m]=hX(t,a,u);return JY(f),[f,m]}function TA(t,a){const{commonColor:i}=$p(a);return i(t)}const{AsymmetricMatcher:SX,DOMCollection:EX,DOMElement:TX,Immutable:wX,ReactElement:xX,ReactTestComponent:RX}=T_,R6=[RX,xX,TX,EX,wX,SX],wA={plugins:R6},C6={callToJSON:!1,maxDepth:10,plugins:R6};function Ay(t,a,i){if(Object.is(t,a))return"";const u=Q3(t);let f=u,m=!1;if(u==="object"&&typeof t.asymmetricMatch=="function"){if(t.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof t.getExpectedType!="function")return;f=t.getExpectedType(),m=f==="string"}if(f!==Q3(a)){const{aAnnotation:h,aColor:y,aIndicator:b,bAnnotation:v,bColor:x,bIndicator:E}=$p(i),R=xA(C6,i),A=qo(t,R),M=qo(a,R),q=`${y(`${b} ${h}:`)}
337
+ ${A}`,N=`${x(`${E} ${v}:`)}
338
+ ${M}`;return`${q}
339
+
340
+ ${N}`}if(!m)switch(u){case"string":return yx(t.split(`
341
+ `),a.split(`
342
+ `),i);case"boolean":case"number":return CX(t,a,i);case"map":return RC(K3(t),K3(a),i);case"set":return RC(W3(t),W3(a),i);default:return RC(t,a,i)}}function CX(t,a,i){const u=qo(t,wA),f=qo(a,wA);return u===f?"":yx(u.split(`
343
+ `),f.split(`
344
+ `),i)}function K3(t){return new Map(Array.from(t.entries()).sort())}function W3(t){return new Set(Array.from(t.values()).sort())}function RC(t,a,i){let u,f=!1;try{const h=xA(wA,i);u=ej(t,a,h,i)}catch{f=!0}const m=TA(g6,i);if(u===void 0||u===m){const h=xA(C6,i);u=ej(t,a,h,i),u!==m&&!f&&(u=`${TA(tX,i)}
345
+
346
+ ${u}`)}return u}function xA(t,a){const{compareKeys:i}=$p(a);return{...t,compareKeys:i}}function ej(t,a,i,u){const f={...i,indent:0},m=qo(t,f),h=qo(a,f);if(m===h)return TA(g6,u);{const y=qo(t,i),b=qo(a,i);return pX(y.split(`
347
+ `),b.split(`
348
+ `),m.split(`
349
+ `),h.split(`
350
+ `),u)}}const tj=2e4;function nj(t){return Qw(t)==="Object"&&typeof t.asymmetricMatch=="function"}function aj(t,a){const i=Qw(t),u=Qw(a);return i===u&&(i==="Object"||i==="Array")}function A6(t,a,i){const{aAnnotation:u,bAnnotation:f}=$p(i);if(typeof t=="string"&&typeof a=="string"&&t.length>0&&a.length>0&&t.length<=tj&&a.length<=tj&&t!==a){if(t.includes(`
351
+ `)||a.includes(`
352
+ `))return vX(a,t,i);const[x]=x6(a,t),E=x.some(q=>q[0]===ra),R=AX(u,f),A=R(u)+OX(rj(x,xr,E)),M=R(f)+MX(rj(x,hr,E));return`${A}
353
+ ${M}`}const m=L3(t,{forceWritable:!0}),h=L3(a,{forceWritable:!0}),{replacedExpected:y,replacedActual:b}=_6(m,h);return Ay(y,b,i)}function _6(t,a,i=new WeakSet,u=new WeakSet){return aj(t,a)?i.has(t)||u.has(a)?{replacedActual:t,replacedExpected:a}:(i.add(t),u.add(a),d6(a).forEach(f=>{const m=a[f],h=t[f];if(nj(m))m.asymmetricMatch(h)&&(t[f]=m);else if(nj(h))h.asymmetricMatch(m)&&(a[f]=h);else if(aj(h,m)){const y=_6(h,m,i,u);t[f]=y.replacedActual,a[f]=y.replacedExpected}}),{replacedActual:t,replacedExpected:a}):{replacedActual:t,replacedExpected:a}}function AX(...t){const a=t.reduce((i,u)=>u.length>i?u.length:i,0);return i=>`${i}: ${" ".repeat(a-i.length)}`}const _X="·";function M6(t){return t.replace(/\s+$/gm,a=>_X.repeat(a.length))}function MX(t){return la.red(M6(Qi(t)))}function OX(t){return la.green(M6(Qi(t)))}function rj(t,a,i){return t.reduce((u,f)=>u+(f[0]===ra?f[1]:f[0]===a?i?la.inverse(f[1]):f[1]:""),"")}function zw(t,a){if(!t)throw new Error(a)}function dy(t,a){return typeof a===t}function qX(t){return t instanceof Promise}function RA(t,a,i){Object.defineProperty(t,a,i)}function gy(t,a,i){Object.defineProperty(t,a,{value:i})}var TS=Symbol.for("tinyspy:spy"),DX=new Set,NX=t=>{t.called=!1,t.callCount=0,t.calls=[],t.results=[],t.resolves=[],t.next=[]},jX=t=>(RA(t,TS,{value:{reset:()=>NX(t[TS])}}),t[TS]),CA=t=>t[TS]||jX(t);function zX(t){zw(dy("function",t)||dy("undefined",t),"cannot spy on a non-function value");let a=function(...u){let f=CA(a);f.called=!0,f.callCount++,f.calls.push(u);let m=f.next.shift();if(m){f.results.push(m);let[x,E]=m;if(x==="ok")return E;throw E}let h,y="ok",b=f.results.length;if(f.impl)try{new.target?h=Reflect.construct(f.impl,u,new.target):h=f.impl.apply(this,u),y="ok"}catch(x){throw h=x,y="error",f.results.push([y,x]),x}let v=[y,h];return qX(h)&&h.then(x=>f.resolves[b]=["ok",x],x=>f.resolves[b]=["error",x]),f.results.push(v),h};gy(a,"_isMockFunction",!0),gy(a,"length",t?t.length:0),gy(a,"name",t&&t.name||"spy");let i=CA(a);return i.reset(),i.impl=t,a}var lj=(t,a)=>Object.getOwnPropertyDescriptor(t,a),ij=(t,a)=>{a!=null&&typeof a=="function"&&a.prototype!=null&&Object.setPrototypeOf(t.prototype,a.prototype)};function O6(t,a,i){zw(!dy("undefined",t),"spyOn could not find an object to spy upon"),zw(dy("object",t)||dy("function",t),"cannot spyOn on a primitive value");let[u,f]=(()=>{if(!dy("object",a))return[a,"value"];if("getter"in a&&"setter"in a)throw new Error("cannot spy on both getter and setter");if("getter"in a)return[a.getter,"get"];if("setter"in a)return[a.setter,"set"];throw new Error("specify getter or setter to spy on")})(),m=lj(t,u),h=Object.getPrototypeOf(t),y=h&&lj(h,u),b=m||y;zw(b||u in t,`${String(u)} does not exist`);let v=!1;f==="value"&&b&&!b.value&&b.get&&(f="get",v=!0,i=b.get());let x;b?x=b[f]:f!=="value"?x=()=>t[u]:x=t[u];let E=q=>{let{value:N,..._}=b||{configurable:!0,writable:!0};f!=="value"&&delete _.writable,_[f]=q,RA(t,u,_)},R=()=>b?RA(t,u,b):E(x);i||(i=x);let A=zX(i);f==="value"&&ij(A,x);let M=A[TS];return gy(M,"restore",R),gy(M,"getOriginal",()=>v?x():x),gy(M,"willCall",q=>(M.impl=q,A)),E(v?()=>(ij(A,i),A):A),DX.add(A),A}const kw=new Set;function q6(t){return typeof t=="function"&&"_isMockFunction"in t&&t._isMockFunction}function kX(t,a,i){const f=i?{[{get:"getter",set:"setter"}[i]]:a}:a,m=O6(t,f);return D6(m)}let BX=0;function D6(t){const a=t;let i,u=[],f=[],m=[];const h=CA(t),y={get calls(){return h.calls},get contexts(){return f},get instances(){return u},get invocationCallOrder(){return m},get results(){return h.results.map(([A,M])=>({type:A==="error"?"throw":"return",value:M}))},get settledResults(){return h.resolves.map(([A,M])=>({type:A==="error"?"rejected":"fulfilled",value:M}))},get lastCall(){return h.calls[h.calls.length-1]}};let b=[],v=!1;function x(...A){return u.push(this),f.push(this),m.push(++BX),(v?i:b.shift()||i||h.getOriginal()||(()=>{})).apply(this,A)}let E=a.name;a.getMockName=()=>E||"vi.fn()",a.mockName=A=>(E=A,a),a.mockClear=()=>(h.reset(),u=[],f=[],m=[],a),a.mockReset=()=>(a.mockClear(),i=()=>{},b=[],a),a.mockRestore=()=>(a.mockReset(),h.restore(),i=void 0,a),a.getMockImplementation=()=>i,a.mockImplementation=A=>(i=A,h.willCall(x),a),a.mockImplementationOnce=A=>(b.push(A),a);function R(A,M){const q=i;i=A,h.willCall(x),v=!0;const N=()=>{i=q,v=!1},_=M();return _ instanceof Promise?_.then(()=>(N(),a)):(N(),a)}return a.withImplementation=R,a.mockReturnThis=()=>a.mockImplementation(function(){return this}),a.mockReturnValue=A=>a.mockImplementation(()=>A),a.mockReturnValueOnce=A=>a.mockImplementationOnce(()=>A),a.mockResolvedValue=A=>a.mockImplementation(()=>Promise.resolve(A)),a.mockResolvedValueOnce=A=>a.mockImplementationOnce(()=>Promise.resolve(A)),a.mockRejectedValue=A=>a.mockImplementation(()=>Promise.reject(A)),a.mockRejectedValueOnce=A=>a.mockImplementationOnce(()=>Promise.reject(A)),Object.defineProperty(a,"mock",{get:()=>y}),h.willCall(x),kw.add(a),a}function UX(t){const a=D6(O6({spy:t||function(){}},"spy"));return t&&a.mockImplementation(t),a}const LX="@@__IMMUTABLE_RECORD__@@",$X="@@__IMMUTABLE_ITERABLE__@@";function HX(t){return t&&(t[$X]||t[LX])}const PX=Object.getPrototypeOf({});function oj(t){return t instanceof Error?`<unserializable>: ${t.message}`:typeof t=="string"?`<unserializable>: ${t}`:"<unserializable>"}function py(t,a=new WeakMap){if(!t||typeof t=="string")return t;if(typeof t=="function")return`Function<${t.name||"anonymous"}>`;if(typeof t=="symbol")return t.toString();if(typeof t!="object")return t;if(HX(t))return py(t.toJSON(),a);if(t instanceof Promise||t.constructor&&t.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&t instanceof Element)return t.tagName;if(typeof t.asymmetricMatch=="function")return`${t.toString()} ${f6(t.sample)}`;if(typeof t.toJSON=="function")return py(t.toJSON(),a);if(a.has(t))return a.get(t);if(Array.isArray(t)){const i=new Array(t.length);return a.set(t,i),t.forEach((u,f)=>{try{i[f]=py(u,a)}catch(m){i[f]=oj(m)}}),i}else{const i=Object.create(null);a.set(t,i);let u=t;for(;u&&u!==PX;)Object.getOwnPropertyNames(u).forEach(f=>{if(!(f in i))try{i[f]=py(t[f],a)}catch(m){delete i[f],i[f]=oj(m)}}),u=Object.getPrototypeOf(u);return i}}function IX(t){return t.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function N6(t,a,i=new WeakSet){if(!t||typeof t!="object")return{message:String(t)};const u=t;u.stack&&(u.stackStr=String(u.stack)),u.name&&(u.nameStr=String(u.name)),(u.showDiff||u.showDiff===void 0&&u.expected!==void 0&&u.actual!==void 0)&&(u.diff=A6(u.actual,u.expected,{...a,...u.diffOptions})),typeof u.expected!="string"&&(u.expected=Qi(u.expected,10)),typeof u.actual!="string"&&(u.actual=Qi(u.actual,10));try{typeof u.message=="string"&&(u.message=IX(u.message))}catch{}try{!i.has(u)&&typeof u.cause=="object"&&(i.add(u),u.cause=N6(u.cause,a,i))}catch{}try{return py(u)}catch(f){return py(new Error(`Failed to fully serialize error: ${f?.message}
354
+ Inner error message: ${u?.message}`))}}var j6=Object.defineProperty,me=(t,a)=>j6(t,"name",{value:a,configurable:!0}),R_=(t,a)=>{for(var i in a)j6(t,i,{get:a[i],enumerable:!0})},Wr={};R_(Wr,{addChainableMethod:()=>B_,addLengthGuard:()=>PS,addMethod:()=>j_,addProperty:()=>N_,checkError:()=>ti,compareByInspect:()=>Ww,eql:()=>ok,expectTypes:()=>H6,flag:()=>Ct,getActual:()=>bx,getMessage:()=>__,getName:()=>Sx,getOperator:()=>H_,getOwnEnumerableProperties:()=>$_,getOwnEnumerablePropertySymbols:()=>L_,getPathInfo:()=>D_,hasProperty:()=>vx,inspect:()=>Qt,isNaN:()=>ex,isNumeric:()=>Qa,isProxyEnabled:()=>HS,isRegExp:()=>tx,objDisplay:()=>Op,overwriteChainableMethod:()=>U_,overwriteMethod:()=>k_,overwriteProperty:()=>z_,proxify:()=>_y,test:()=>C_,transferFlags:()=>jo,type:()=>En});var ti={};R_(ti,{compatibleConstructor:()=>B6,compatibleInstance:()=>k6,compatibleMessage:()=>U6,getConstructorName:()=>L6,getMessage:()=>$6});function gx(t){return t instanceof Error||Object.prototype.toString.call(t)==="[object Error]"}me(gx,"isErrorInstance");function z6(t){return Object.prototype.toString.call(t)==="[object RegExp]"}me(z6,"isRegExp");function k6(t,a){return gx(a)&&t===a}me(k6,"compatibleInstance");function B6(t,a){return gx(a)?t.constructor===a.constructor||t instanceof a.constructor:(typeof a=="object"||typeof a=="function")&&a.prototype?t.constructor===a||t instanceof a:!1}me(B6,"compatibleConstructor");function U6(t,a){const i=typeof t=="string"?t:t.message;return z6(a)?a.test(i):typeof a=="string"?i.indexOf(a)!==-1:!1}me(U6,"compatibleMessage");function L6(t){let a=t;return gx(t)?a=t.constructor.name:typeof t=="function"&&(a=t.name,a===""&&(a=new t().name||a)),a}me(L6,"getConstructorName");function $6(t){let a="";return t&&t.message?a=t.message:typeof t=="string"&&(a=t),a}me($6,"getMessage");function Ct(t,a,i){let u=t.__flags||(t.__flags=Object.create(null));if(arguments.length===3)u[a]=i;else return u[a]}me(Ct,"flag");function C_(t,a){let i=Ct(t,"negate"),u=a[0];return i?!u:u}me(C_,"test");function En(t){if(typeof t>"u")return"undefined";if(t===null)return"null";const a=t[Symbol.toStringTag];return typeof a=="string"?a:Object.prototype.toString.call(t).slice(8,-1)}me(En,"type");var VX="captureStackTrace"in Error,Np,nn=(Np=class extends Error{constructor(i="Unspecified AssertionError",u,f){super(i);ot(this,"message");this.message=i,VX&&Error.captureStackTrace(this,f||Np);for(const m in u)m in this||(this[m]=u[m])}get name(){return"AssertionError"}get ok(){return!1}toJSON(i){return{...this,name:this.name,message:this.message,ok:!1,stack:i!==!1?this.stack:void 0}}},me(Np,"AssertionError"),Np);function H6(t,a){let i=Ct(t,"message"),u=Ct(t,"ssfi");i=i?i+": ":"",t=Ct(t,"object"),a=a.map(function(h){return h.toLowerCase()}),a.sort();let f=a.map(function(h,y){let b=~["a","e","i","o","u"].indexOf(h.charAt(0))?"an":"a";return(a.length>1&&y===a.length-1?"or ":"")+b+" "+h}).join(", "),m=En(t).toLowerCase();if(!a.some(function(h){return m===h}))throw new nn(i+"object tested must be "+f+", but "+m+" given",void 0,u)}me(H6,"expectTypes");function bx(t,a){return a.length>4?a[4]:t._obj}me(bx,"getActual");var uj={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},GX={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},wy="…";function P6(t,a){const i=uj[GX[a]]||uj[a]||"";return i?`\x1B[${i[0]}m${String(t)}\x1B[${i[1]}m`:String(t)}me(P6,"colorise");function I6({showHidden:t=!1,depth:a=2,colors:i=!1,customInspect:u=!0,showProxy:f=!1,maxArrayLength:m=1/0,breakLength:h=1/0,seen:y=[],truncate:b=1/0,stylize:v=String}={},x){const E={showHidden:!!t,depth:Number(a),colors:!!i,customInspect:!!u,showProxy:!!f,maxArrayLength:Number(m),breakLength:Number(h),truncate:Number(b),seen:y,inspect:x,stylize:v};return E.colors&&(E.stylize=P6),E}me(I6,"normaliseOptions");function V6(t){return t>="\uD800"&&t<="\uDBFF"}me(V6,"isHighSurrogate");function Ks(t,a,i=wy){t=String(t);const u=i.length,f=t.length;if(u>a&&f>u)return i;if(f>a&&f>u){let m=a-u;return m>0&&V6(t[m-1])&&(m=m-1),`${t.slice(0,m)}${i}`}return t}me(Ks,"truncate");function Zi(t,a,i,u=", "){i=i||a.inspect;const f=t.length;if(f===0)return"";const m=a.truncate;let h="",y="",b="";for(let v=0;v<f;v+=1){const x=v+1===t.length,E=v+2===t.length;b=`${wy}(${t.length-v})`;const R=t[v];a.truncate=m-h.length-(x?0:u.length);const A=y||i(R,a)+(x?"":u),M=h.length+A.length,q=M+b.length;if(x&&M>m&&h.length+b.length<=m||!x&&!E&&q>m||(y=x?"":i(t[v+1],a)+(E?"":u),!x&&E&&q>m&&M+y.length>m))break;if(h+=A,!x&&!E&&M+y.length>=m){b=`${wy}(${t.length-v-1})`;break}b=""}return`${h}${b}`}me(Zi,"inspectList");function G6(t){return t.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?t:JSON.stringify(t).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}me(G6,"quoteComplexKey");function xy([t,a],i){return i.truncate-=2,typeof t=="string"?t=G6(t):typeof t!="number"&&(t=`[${i.inspect(t,i)}]`),i.truncate-=t.length,a=i.inspect(a,i),`${t}: ${a}`}me(xy,"inspectProperty");function Y6(t,a){const i=Object.keys(t).slice(t.length);if(!t.length&&!i.length)return"[]";a.truncate-=4;const u=Zi(t,a);a.truncate-=u.length;let f="";return i.length&&(f=Zi(i.map(m=>[m,t[m]]),a,xy)),`[ ${u}${f?`, ${f}`:""} ]`}me(Y6,"inspectArray");var YX=me(t=>typeof Buffer=="function"&&t instanceof Buffer?"Buffer":t[Symbol.toStringTag]?t[Symbol.toStringTag]:t.constructor.name,"getArrayName");function wu(t,a){const i=YX(t);a.truncate-=i.length+4;const u=Object.keys(t).slice(t.length);if(!t.length&&!u.length)return`${i}[]`;let f="";for(let h=0;h<t.length;h++){const y=`${a.stylize(Ks(t[h],a.truncate),"number")}${h===t.length-1?"":", "}`;if(a.truncate-=y.length,t[h]!==t.length&&a.truncate<=3){f+=`${wy}(${t.length-t[h]+1})`;break}f+=y}let m="";return u.length&&(m=Zi(u.map(h=>[h,t[h]]),a,xy)),`${i}[ ${f}${m?`, ${m}`:""} ]`}me(wu,"inspectTypedArray");function X6(t,a){const i=t.toJSON();if(i===null)return"Invalid Date";const u=i.split("T"),f=u[0];return a.stylize(`${f}T${Ks(u[1],a.truncate-f.length-1)}`,"date")}me(X6,"inspectDate");function AA(t,a){const i=t[Symbol.toStringTag]||"Function",u=t.name;return u?a.stylize(`[${i} ${Ks(u,a.truncate-11)}]`,"special"):a.stylize(`[${i}]`,"special")}me(AA,"inspectFunction");function F6([t,a],i){return i.truncate-=4,t=i.inspect(t,i),i.truncate-=t.length,a=i.inspect(a,i),`${t} => ${a}`}me(F6,"inspectMapEntry");function Q6(t){const a=[];return t.forEach((i,u)=>{a.push([u,i])}),a}me(Q6,"mapToEntries");function Z6(t,a){return t.size===0?"Map{}":(a.truncate-=7,`Map{ ${Zi(Q6(t),a,F6)} }`)}me(Z6,"inspectMap");var XX=Number.isNaN||(t=>t!==t);function _A(t,a){return XX(t)?a.stylize("NaN","number"):t===1/0?a.stylize("Infinity","number"):t===-1/0?a.stylize("-Infinity","number"):t===0?a.stylize(1/t===1/0?"+0":"-0","number"):a.stylize(Ks(String(t),a.truncate),"number")}me(_A,"inspectNumber");function MA(t,a){let i=Ks(t.toString(),a.truncate-1);return i!==wy&&(i+="n"),a.stylize(i,"bigint")}me(MA,"inspectBigInt");function J6(t,a){const i=t.toString().split("/")[2],u=a.truncate-(2+i.length),f=t.source;return a.stylize(`/${Ks(f,u)}/${i}`,"regexp")}me(J6,"inspectRegExp");function K6(t){const a=[];return t.forEach(i=>{a.push(i)}),a}me(K6,"arrayFromSet");function W6(t,a){return t.size===0?"Set{}":(a.truncate-=7,`Set{ ${Zi(K6(t),a)} }`)}me(W6,"inspectSet");var sj=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),FX={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},QX=16;function ek(t){return FX[t]||`\\u${`0000${t.charCodeAt(0).toString(QX)}`.slice(-4)}`}me(ek,"escape");function OA(t,a){return sj.test(t)&&(t=t.replace(sj,ek)),a.stylize(`'${Ks(t,a.truncate-2)}'`,"string")}me(OA,"inspectString");function qA(t){return"description"in Symbol.prototype?t.description?`Symbol(${t.description})`:"Symbol()":t.toString()}me(qA,"inspectSymbol");var ZX=me(()=>"Promise{…}","getPromiseValue"),JX=ZX;function wS(t,a){const i=Object.getOwnPropertyNames(t),u=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[];if(i.length===0&&u.length===0)return"{}";if(a.truncate-=4,a.seen=a.seen||[],a.seen.includes(t))return"[Circular]";a.seen.push(t);const f=Zi(i.map(y=>[y,t[y]]),a,xy),m=Zi(u.map(y=>[y,t[y]]),a,xy);a.seen.pop();let h="";return f&&m&&(h=", "),`{ ${f}${h}${m} }`}me(wS,"inspectObject");var CC=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function tk(t,a){let i="";return CC&&CC in t&&(i=t[CC]),i=i||t.constructor.name,(!i||i==="_class")&&(i="<Anonymous Class>"),a.truncate-=i.length,`${i}${wS(t,a)}`}me(tk,"inspectClass");function nk(t,a){return t.length===0?"Arguments[]":(a.truncate-=13,`Arguments[ ${Zi(t,a)} ]`)}me(nk,"inspectArguments");var KX=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function ak(t,a){const i=Object.getOwnPropertyNames(t).filter(h=>KX.indexOf(h)===-1),u=t.name;a.truncate-=u.length;let f="";if(typeof t.message=="string"?f=Ks(t.message,a.truncate):i.unshift("message"),f=f?`: ${f}`:"",a.truncate-=f.length+5,a.seen=a.seen||[],a.seen.includes(t))return"[Circular]";a.seen.push(t);const m=Zi(i.map(h=>[h,t[h]]),a,xy);return`${u}${f}${m?` { ${m} }`:""}`}me(ak,"inspectObject");function rk([t,a],i){return i.truncate-=3,a?`${i.stylize(String(t),"yellow")}=${i.stylize(`"${a}"`,"string")}`:`${i.stylize(String(t),"yellow")}`}me(rk,"inspectAttribute");function Zw(t,a){return Zi(t,a,lk,`
355
+ `)}me(Zw,"inspectNodeCollection");function lk(t,a){switch(t.nodeType){case 1:return A_(t,a);case 3:return a.inspect(t.data,a);default:return a.inspect(t,a)}}me(lk,"inspectNode");function A_(t,a){const i=t.getAttributeNames(),u=t.tagName.toLowerCase(),f=a.stylize(`<${u}`,"special"),m=a.stylize(">","special"),h=a.stylize(`</${u}>`,"special");a.truncate-=u.length*2+5;let y="";i.length>0&&(y+=" ",y+=Zi(i.map(x=>[x,t.getAttribute(x)]),a,rk," ")),a.truncate-=y.length;const b=a.truncate;let v=Zw(t.children,a);return v&&v.length>b&&(v=`${wy}(${t.children.length})`),`${f}${y}${m}${v}${h}`}me(A_,"inspectHTML");var WX=typeof Symbol=="function"&&typeof Symbol.for=="function",AC=WX?Symbol.for("chai/inspect"):"@@chai/inspect",_C=Symbol.for("nodejs.util.inspect.custom"),cj=new WeakMap,fj={},dj={undefined:me((t,a)=>a.stylize("undefined","undefined"),"undefined"),null:me((t,a)=>a.stylize("null","null"),"null"),boolean:me((t,a)=>a.stylize(String(t),"boolean"),"boolean"),Boolean:me((t,a)=>a.stylize(String(t),"boolean"),"Boolean"),number:_A,Number:_A,bigint:MA,BigInt:MA,string:OA,String:OA,function:AA,Function:AA,symbol:qA,Symbol:qA,Array:Y6,Date:X6,Map:Z6,Set:W6,RegExp:J6,Promise:JX,WeakSet:me((t,a)=>a.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:me((t,a)=>a.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:nk,Int8Array:wu,Uint8Array:wu,Uint8ClampedArray:wu,Int16Array:wu,Uint16Array:wu,Int32Array:wu,Uint32Array:wu,Float32Array:wu,Float64Array:wu,Generator:me(()=>"","Generator"),DataView:me(()=>"","DataView"),ArrayBuffer:me(()=>"","ArrayBuffer"),Error:ak,HTMLCollection:Zw,NodeList:Zw},eF=me((t,a,i)=>AC in t&&typeof t[AC]=="function"?t[AC](a):_C in t&&typeof t[_C]=="function"?t[_C](a.depth,a):"inspect"in t&&typeof t.inspect=="function"?t.inspect(a.depth,a):"constructor"in t&&cj.has(t.constructor)?cj.get(t.constructor)(t,a):fj[i]?fj[i](t,a):"","inspectCustom"),tF=Object.prototype.toString;function Jw(t,a={}){const i=I6(a,Jw),{customInspect:u}=i;let f=t===null?"null":typeof t;if(f==="object"&&(f=tF.call(t).slice(8,-1)),f in dj)return dj[f](t,i);if(u&&t){const h=eF(t,i,f);if(h)return typeof h=="string"?h:Jw(h,i)}const m=t?Object.getPrototypeOf(t):!1;return m===Object.prototype||m===null?wS(t,i):t&&typeof HTMLElement=="function"&&t instanceof HTMLElement?A_(t,i):"constructor"in t?t.constructor!==Object?tk(t,i):wS(t,i):t===Object(t)?wS(t,i):i.stylize(String(t),f)}me(Jw,"inspect");var Kr={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function Qt(t,a,i,u){let f={colors:u,depth:typeof i>"u"?2:i,showHidden:a,truncate:Kr.truncateThreshold?Kr.truncateThreshold:1/0};return Jw(t,f)}me(Qt,"inspect");function Op(t){let a=Qt(t),i=Object.prototype.toString.call(t);if(Kr.truncateThreshold&&a.length>=Kr.truncateThreshold){if(i==="[object Function]")return!t.name||t.name===""?"[Function]":"[Function: "+t.name+"]";if(i==="[object Array]")return"[ Array("+t.length+") ]";if(i==="[object Object]"){let u=Object.keys(t);return"{ Object ("+(u.length>2?u.splice(0,2).join(", ")+", ...":u.join(", "))+") }"}else return a}else return a}me(Op,"objDisplay");function __(t,a){let i=Ct(t,"negate"),u=Ct(t,"object"),f=a[3],m=bx(t,a),h=i?a[2]:a[1],y=Ct(t,"message");return typeof h=="function"&&(h=h()),h=h||"",h=h.replace(/#\{this\}/g,function(){return Op(u)}).replace(/#\{act\}/g,function(){return Op(m)}).replace(/#\{exp\}/g,function(){return Op(f)}),y?y+": "+h:h}me(__,"getMessage");function jo(t,a,i){let u=t.__flags||(t.__flags=Object.create(null));a.__flags||(a.__flags=Object.create(null)),i=arguments.length===3?i:!0;for(let f in u)(i||f!=="object"&&f!=="ssfi"&&f!=="lockSsfi"&&f!="message")&&(a.__flags[f]=u[f])}me(jo,"transferFlags");function DA(t){if(typeof t>"u")return"undefined";if(t===null)return"null";const a=t[Symbol.toStringTag];return typeof a=="string"?a:Object.prototype.toString.call(t).slice(8,-1)}me(DA,"type");function M_(){this._key="chai/deep-eql__"+Math.random()+Date.now()}me(M_,"FakeMap");M_.prototype={get:me(function(a){return a[this._key]},"get"),set:me(function(a,i){Object.isExtensible(a)&&Object.defineProperty(a,this._key,{value:i,configurable:!0})},"set")};var ik=typeof WeakMap=="function"?WeakMap:M_;function NA(t,a,i){if(!i||Bp(t)||Bp(a))return null;var u=i.get(t);if(u){var f=u.get(a);if(typeof f=="boolean")return f}return null}me(NA,"memoizeCompare");function SS(t,a,i,u){if(!(!i||Bp(t)||Bp(a))){var f=i.get(t);f?f.set(a,u):(f=new ik,f.set(a,u),i.set(t,f))}}me(SS,"memoizeSet");var ok=$S;function $S(t,a,i){if(i&&i.comparator)return jA(t,a,i);var u=O_(t,a);return u!==null?u:jA(t,a,i)}me($S,"deepEqual");function O_(t,a){return t===a?t!==0||1/t===1/a:t!==t&&a!==a?!0:Bp(t)||Bp(a)?!1:null}me(O_,"simpleEqual");function jA(t,a,i){i=i||{},i.memoize=i.memoize===!1?!1:i.memoize||new ik;var u=i&&i.comparator,f=NA(t,a,i.memoize);if(f!==null)return f;var m=NA(a,t,i.memoize);if(m!==null)return m;if(u){var h=u(t,a);if(h===!1||h===!0)return SS(t,a,i.memoize,h),h;var y=O_(t,a);if(y!==null)return y}var b=DA(t);if(b!==DA(a))return SS(t,a,i.memoize,!1),!1;SS(t,a,i.memoize,!0);var v=uk(t,a,b,i);return SS(t,a,i.memoize,v),v}me(jA,"extensiveDeepEqual");function uk(t,a,i,u){switch(i){case"String":case"Number":case"Boolean":case"Date":return $S(t.valueOf(),a.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return t===a;case"Error":return q_(t,a,["name","message","code"],u);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return jf(t,a,u);case"RegExp":return sk(t,a);case"Generator":return ck(t,a,u);case"DataView":return jf(new Uint8Array(t.buffer),new Uint8Array(a.buffer),u);case"ArrayBuffer":return jf(new Uint8Array(t),new Uint8Array(a),u);case"Set":return zA(t,a,u);case"Map":return zA(t,a,u);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return t.equals(a);case"Temporal.Duration":return t.total("nanoseconds")===a.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return t.toString()===a.toString();default:return dk(t,a,u)}}me(uk,"extensiveDeepEqualByType");function sk(t,a){return t.toString()===a.toString()}me(sk,"regexpEqual");function zA(t,a,i){try{if(t.size!==a.size)return!1;if(t.size===0)return!0}catch{return!1}var u=[],f=[];return t.forEach(me(function(h,y){u.push([h,y])},"gatherEntries")),a.forEach(me(function(h,y){f.push([h,y])},"gatherEntries")),jf(u.sort(),f.sort(),i)}me(zA,"entriesEqual");function jf(t,a,i){var u=t.length;if(u!==a.length)return!1;if(u===0)return!0;for(var f=-1;++f<u;)if($S(t[f],a[f],i)===!1)return!1;return!0}me(jf,"iterableEqual");function ck(t,a,i){return jf(Kw(t),Kw(a),i)}me(ck,"generatorEqual");function fk(t){return typeof Symbol<"u"&&typeof t=="object"&&typeof Symbol.iterator<"u"&&typeof t[Symbol.iterator]=="function"}me(fk,"hasIteratorFunction");function kA(t){if(fk(t))try{return Kw(t[Symbol.iterator]())}catch{return[]}return[]}me(kA,"getIteratorEntries");function Kw(t){for(var a=t.next(),i=[a.value];a.done===!1;)a=t.next(),i.push(a.value);return i}me(Kw,"getGeneratorEntries");function BA(t){var a=[];for(var i in t)a.push(i);return a}me(BA,"getEnumerableKeys");function UA(t){for(var a=[],i=Object.getOwnPropertySymbols(t),u=0;u<i.length;u+=1){var f=i[u];Object.getOwnPropertyDescriptor(t,f).enumerable&&a.push(f)}return a}me(UA,"getEnumerableSymbols");function q_(t,a,i,u){var f=i.length;if(f===0)return!0;for(var m=0;m<f;m+=1)if($S(t[i[m]],a[i[m]],u)===!1)return!1;return!0}me(q_,"keysEqual");function dk(t,a,i){var u=BA(t),f=BA(a),m=UA(t),h=UA(a);if(u=u.concat(m),f=f.concat(h),u.length&&u.length===f.length)return jf(LA(u).sort(),LA(f).sort())===!1?!1:q_(t,a,u,i);var y=kA(t),b=kA(a);return y.length&&y.length===b.length?(y.sort(),b.sort(),jf(y,b,i)):u.length===0&&y.length===0&&f.length===0&&b.length===0}me(dk,"objectEqual");function Bp(t){return t===null||typeof t!="object"}me(Bp,"isPrimitive");function LA(t){return t.map(me(function(i){return typeof i=="symbol"?i.toString():i},"mapSymbol"))}me(LA,"mapSymbols");function vx(t,a){return typeof t>"u"||t===null?!1:a in Object(t)}me(vx,"hasProperty");function pk(t){return t.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(u=>{if(u==="constructor"||u==="__proto__"||u==="prototype")return{};const m=/^\[(\d+)\]$/.exec(u);let h=null;return m?h={i:parseFloat(m[1])}:h={p:u.replace(/\\([.[\]])/g,"$1")},h})}me(pk,"parsePath");function $A(t,a,i){let u=t,f=null;i=typeof i>"u"?a.length:i;for(let m=0;m<i;m++){const h=a[m];u&&(typeof h.p>"u"?u=u[h.i]:u=u[h.p],m===i-1&&(f=u))}return f}me($A,"internalGetPathValue");function D_(t,a){const i=pk(a),u=i[i.length-1],f={parent:i.length>1?$A(t,i,i.length-1):t,name:u.p||u.i,value:$A(t,i)};return f.exists=vx(f.parent,f.name),f}me(D_,"getPathInfo");var jp,Y=(jp=class{constructor(a,i,u,f){ot(this,"__flags",{});return Ct(this,"ssfi",u||jp),Ct(this,"lockSsfi",f),Ct(this,"object",a),Ct(this,"message",i),Ct(this,"eql",Kr.deepEqual||ok),_y(this)}static get includeStack(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Kr.includeStack}static set includeStack(a){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Kr.includeStack=a}static get showDiff(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Kr.showDiff}static set showDiff(a){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Kr.showDiff=a}static addProperty(a,i){N_(this.prototype,a,i)}static addMethod(a,i){j_(this.prototype,a,i)}static addChainableMethod(a,i,u){B_(this.prototype,a,i,u)}static overwriteProperty(a,i){z_(this.prototype,a,i)}static overwriteMethod(a,i){k_(this.prototype,a,i)}static overwriteChainableMethod(a,i,u){U_(this.prototype,a,i,u)}assert(a,i,u,f,m,h){const y=C_(this,arguments);if(h!==!1&&(h=!0),f===void 0&&m===void 0&&(h=!1),Kr.showDiff!==!0&&(h=!1),!y){i=__(this,arguments);const v={actual:bx(this,arguments),expected:f,showDiff:h},x=H_(this,arguments);throw x&&(v.operator=x),new nn(i,v,Kr.includeStack?this.assert:Ct(this,"ssfi"))}}get _obj(){return Ct(this,"object")}set _obj(a){Ct(this,"object",a)}},me(jp,"Assertion"),jp);function HS(){return Kr.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}me(HS,"isProxyEnabled");function N_(t,a,i){i=i===void 0?function(){}:i,Object.defineProperty(t,a,{get:me(function u(){!HS()&&!Ct(this,"lockSsfi")&&Ct(this,"ssfi",u);let f=i.call(this);if(f!==void 0)return f;let m=new Y;return jo(this,m),m},"propertyGetter"),configurable:!0})}me(N_,"addProperty");var nF=Object.getOwnPropertyDescriptor(function(){},"length");function PS(t,a,i){return nF.configurable&&Object.defineProperty(t,"length",{get:me(function(){throw Error(i?"Invalid Chai property: "+a+'.length. Due to a compatibility issue, "length" cannot directly follow "'+a+'". Use "'+a+'.lengthOf" instead.':"Invalid Chai property: "+a+'.length. See docs for proper usage of "'+a+'".')},"get")}),t}me(PS,"addLengthGuard");function hk(t){let a=Object.getOwnPropertyNames(t);function i(f){a.indexOf(f)===-1&&a.push(f)}me(i,"addProperty");let u=Object.getPrototypeOf(t);for(;u!==null;)Object.getOwnPropertyNames(u).forEach(i),u=Object.getPrototypeOf(u);return a}me(hk,"getProperties");var pj=["__flags","__methods","_obj","assert"];function _y(t,a){return HS()?new Proxy(t,{get:me(function i(u,f){if(typeof f=="string"&&Kr.proxyExcludedKeys.indexOf(f)===-1&&!Reflect.has(u,f)){if(a)throw Error("Invalid Chai property: "+a+"."+f+'. See docs for proper usage of "'+a+'".');let m=null,h=4;throw hk(u).forEach(function(y){if(!Object.prototype.hasOwnProperty(y)&&pj.indexOf(y)===-1){let b=mk(f,y,h);b<h&&(m=y,h=b)}}),Error(m!==null?"Invalid Chai property: "+f+'. Did you mean "'+m+'"?':"Invalid Chai property: "+f)}return pj.indexOf(f)===-1&&!Ct(u,"lockSsfi")&&Ct(u,"ssfi",i),Reflect.get(u,f)},"proxyGetter")}):t}me(_y,"proxify");function mk(t,a,i){if(Math.abs(t.length-a.length)>=i)return i;let u=[];for(let f=0;f<=t.length;f++)u[f]=Array(a.length+1).fill(0),u[f][0]=f;for(let f=0;f<a.length;f++)u[0][f]=f;for(let f=1;f<=t.length;f++){let m=t.charCodeAt(f-1);for(let h=1;h<=a.length;h++){if(Math.abs(f-h)>=i){u[f][h]=i;continue}u[f][h]=Math.min(u[f-1][h]+1,u[f][h-1]+1,u[f-1][h-1]+(m===a.charCodeAt(h-1)?0:1))}}return u[t.length][a.length]}me(mk,"stringDistanceCapped");function j_(t,a,i){let u=me(function(){Ct(this,"lockSsfi")||Ct(this,"ssfi",u);let f=i.apply(this,arguments);if(f!==void 0)return f;let m=new Y;return jo(this,m),m},"methodWrapper");PS(u,a,!1),t[a]=_y(u,a)}me(j_,"addMethod");function z_(t,a,i){let u=Object.getOwnPropertyDescriptor(t,a),f=me(function(){},"_super");u&&typeof u.get=="function"&&(f=u.get),Object.defineProperty(t,a,{get:me(function m(){!HS()&&!Ct(this,"lockSsfi")&&Ct(this,"ssfi",m);let h=Ct(this,"lockSsfi");Ct(this,"lockSsfi",!0);let y=i(f).call(this);if(Ct(this,"lockSsfi",h),y!==void 0)return y;let b=new Y;return jo(this,b),b},"overwritingPropertyGetter"),configurable:!0})}me(z_,"overwriteProperty");function k_(t,a,i){let u=t[a],f=me(function(){throw new Error(a+" is not a function")},"_super");u&&typeof u=="function"&&(f=u);let m=me(function(){Ct(this,"lockSsfi")||Ct(this,"ssfi",m);let h=Ct(this,"lockSsfi");Ct(this,"lockSsfi",!0);let y=i(f).apply(this,arguments);if(Ct(this,"lockSsfi",h),y!==void 0)return y;let b=new Y;return jo(this,b),b},"overwritingMethodWrapper");PS(m,a,!1),t[a]=_y(m,a)}me(k_,"overwriteMethod");var aF=typeof Object.setPrototypeOf=="function",hj=me(function(){},"testFn"),rF=Object.getOwnPropertyNames(hj).filter(function(t){let a=Object.getOwnPropertyDescriptor(hj,t);return typeof a!="object"?!0:!a.configurable}),lF=Function.prototype.call,iF=Function.prototype.apply;function B_(t,a,i,u){typeof u!="function"&&(u=me(function(){},"chainingBehavior"));let f={method:i,chainingBehavior:u};t.__methods||(t.__methods={}),t.__methods[a]=f,Object.defineProperty(t,a,{get:me(function(){f.chainingBehavior.call(this);let h=me(function(){Ct(this,"lockSsfi")||Ct(this,"ssfi",h);let y=f.method.apply(this,arguments);if(y!==void 0)return y;let b=new Y;return jo(this,b),b},"chainableMethodWrapper");if(PS(h,a,!0),aF){let y=Object.create(this);y.call=lF,y.apply=iF,Object.setPrototypeOf(h,y)}else Object.getOwnPropertyNames(t).forEach(function(b){if(rF.indexOf(b)!==-1)return;let v=Object.getOwnPropertyDescriptor(t,b);Object.defineProperty(h,b,v)});return jo(this,h),_y(h)},"chainableMethodGetter"),configurable:!0})}me(B_,"addChainableMethod");function U_(t,a,i,u){let f=t.__methods[a],m=f.chainingBehavior;f.chainingBehavior=me(function(){let b=u(m).call(this);if(b!==void 0)return b;let v=new Y;return jo(this,v),v},"overwritingChainableMethodGetter");let h=f.method;f.method=me(function(){let b=i(h).apply(this,arguments);if(b!==void 0)return b;let v=new Y;return jo(this,v),v},"overwritingChainableMethodWrapper")}me(U_,"overwriteChainableMethod");function Ww(t,a){return Qt(t)<Qt(a)?-1:1}me(Ww,"compareByInspect");function L_(t){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(t).filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})}me(L_,"getOwnEnumerablePropertySymbols");function $_(t){return Object.keys(t).concat(L_(t))}me($_,"getOwnEnumerableProperties");var ex=Number.isNaN;function yk(t){let a=En(t);return["Array","Object","Function"].indexOf(a)!==-1}me(yk,"isObjectType");function H_(t,a){let i=Ct(t,"operator"),u=Ct(t,"negate"),f=a[3],m=u?a[2]:a[1];if(i)return i;if(typeof m=="function"&&(m=m()),m=m||"",!m||/\shave\s/.test(m))return;let h=yk(f);return/\snot\s/.test(m)?h?"notDeepStrictEqual":"notStrictEqual":h?"deepStrictEqual":"strictEqual"}me(H_,"getOperator");function Sx(t){return t.name}me(Sx,"getName");function tx(t){return Object.prototype.toString.call(t)==="[object RegExp]"}me(tx,"isRegExp");function Qa(t){return["Number","BigInt"].includes(En(t))}me(Qa,"isNumeric");var{flag:ce}=Wr;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(t){Y.addProperty(t)});Y.addProperty("not",function(){ce(this,"negate",!0)});Y.addProperty("deep",function(){ce(this,"deep",!0)});Y.addProperty("nested",function(){ce(this,"nested",!0)});Y.addProperty("own",function(){ce(this,"own",!0)});Y.addProperty("ordered",function(){ce(this,"ordered",!0)});Y.addProperty("any",function(){ce(this,"any",!0),ce(this,"all",!1)});Y.addProperty("all",function(){ce(this,"all",!0),ce(this,"any",!1)});var mj={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function P_(t,a){a&&ce(this,"message",a),t=t.toLowerCase();let i=ce(this,"object"),u=~["a","e","i","o","u"].indexOf(t.charAt(0))?"an ":"a ";const f=En(i).toLowerCase();mj.function.includes(t)?this.assert(mj[t].includes(f),"expected #{this} to be "+u+t,"expected #{this} not to be "+u+t):this.assert(t===f,"expected #{this} to be "+u+t,"expected #{this} not to be "+u+t)}me(P_,"an");Y.addChainableMethod("an",P_);Y.addChainableMethod("a",P_);function gk(t,a){return ex(t)&&ex(a)||t===a}me(gk,"SameValueZero");function IS(){ce(this,"contains",!0)}me(IS,"includeChainingBehavior");function VS(t,a){a&&ce(this,"message",a);let i=ce(this,"object"),u=En(i).toLowerCase(),f=ce(this,"message"),m=ce(this,"negate"),h=ce(this,"ssfi"),y=ce(this,"deep"),b=y?"deep ":"",v=y?ce(this,"eql"):gk;f=f?f+": ":"";let x=!1;switch(u){case"string":x=i.indexOf(t)!==-1;break;case"weakset":if(y)throw new nn(f+"unable to use .deep.include with WeakSet",void 0,h);x=i.has(t);break;case"map":i.forEach(function(E){x=x||v(E,t)});break;case"set":y?i.forEach(function(E){x=x||v(E,t)}):x=i.has(t);break;case"array":y?x=i.some(function(E){return v(E,t)}):x=i.indexOf(t)!==-1;break;default:{if(t!==Object(t))throw new nn(f+"the given combination of arguments ("+u+" and "+En(t).toLowerCase()+") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a "+En(t).toLowerCase(),void 0,h);let E=Object.keys(t),R=null,A=0;if(E.forEach(function(M){let q=new Y(i);if(jo(this,q,!0),ce(q,"lockSsfi",!0),!m||E.length===1){q.property(M,t[M]);return}try{q.property(M,t[M])}catch(N){if(!ti.compatibleConstructor(N,nn))throw N;R===null&&(R=N),A++}},this),m&&E.length>1&&A===E.length)throw R;return}}this.assert(x,"expected #{this} to "+b+"include "+Qt(t),"expected #{this} to not "+b+"include "+Qt(t))}me(VS,"include");Y.addChainableMethod("include",VS,IS);Y.addChainableMethod("contain",VS,IS);Y.addChainableMethod("contains",VS,IS);Y.addChainableMethod("includes",VS,IS);Y.addProperty("ok",function(){this.assert(ce(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")});Y.addProperty("true",function(){this.assert(ce(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!ce(this,"negate"))});Y.addProperty("numeric",function(){const t=ce(this,"object");this.assert(["Number","BigInt"].includes(En(t)),"expected #{this} to be numeric","expected #{this} to not be numeric",!ce(this,"negate"))});Y.addProperty("callable",function(){const t=ce(this,"object"),a=ce(this,"ssfi"),i=ce(this,"message"),u=i?`${i}: `:"",f=ce(this,"negate"),m=f?`${u}expected ${Qt(t)} not to be a callable function`:`${u}expected ${Qt(t)} to be a callable function`,h=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(En(t));if(h&&f||!h&&!f)throw new nn(m,void 0,a)});Y.addProperty("false",function(){this.assert(ce(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!ce(this,"negate"))});Y.addProperty("null",function(){this.assert(ce(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")});Y.addProperty("undefined",function(){this.assert(ce(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")});Y.addProperty("NaN",function(){this.assert(ex(ce(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function I_(){let t=ce(this,"object");this.assert(t!=null,"expected #{this} to exist","expected #{this} to not exist")}me(I_,"assertExist");Y.addProperty("exist",I_);Y.addProperty("exists",I_);Y.addProperty("empty",function(){let t=ce(this,"object"),a=ce(this,"ssfi"),i=ce(this,"message"),u;switch(i=i?i+": ":"",En(t).toLowerCase()){case"array":case"string":u=t.length;break;case"map":case"set":u=t.size;break;case"weakmap":case"weakset":throw new nn(i+".empty was passed a weak collection",void 0,a);case"function":{const f=i+".empty was passed a function "+Sx(t);throw new nn(f.trim(),void 0,a)}default:if(t!==Object(t))throw new nn(i+".empty was passed non-string primitive "+Qt(t),void 0,a);u=Object.keys(t).length}this.assert(u===0,"expected #{this} to be empty","expected #{this} not to be empty")});function V_(){let t=ce(this,"object"),a=En(t);this.assert(a==="Arguments","expected #{this} to be arguments but got "+a,"expected #{this} to not be arguments")}me(V_,"checkArguments");Y.addProperty("arguments",V_);Y.addProperty("Arguments",V_);function Ex(t,a){a&&ce(this,"message",a);let i=ce(this,"object");if(ce(this,"deep")){let u=ce(this,"lockSsfi");ce(this,"lockSsfi",!0),this.eql(t),ce(this,"lockSsfi",u)}else this.assert(t===i,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",t,this._obj,!0)}me(Ex,"assertEqual");Y.addMethod("equal",Ex);Y.addMethod("equals",Ex);Y.addMethod("eq",Ex);function G_(t,a){a&&ce(this,"message",a);let i=ce(this,"eql");this.assert(i(t,ce(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",t,this._obj,!0)}me(G_,"assertEql");Y.addMethod("eql",G_);Y.addMethod("eqls",G_);function Tx(t,a){a&&ce(this,"message",a);let i=ce(this,"object"),u=ce(this,"doLength"),f=ce(this,"message"),m=f?f+": ":"",h=ce(this,"ssfi"),y=En(i).toLowerCase(),b=En(t).toLowerCase();if(u&&y!=="map"&&y!=="set"&&new Y(i,f,h,!0).to.have.property("length"),!u&&y==="date"&&b!=="date")throw new nn(m+"the argument to above must be a date",void 0,h);if(!Qa(t)&&(u||Qa(i)))throw new nn(m+"the argument to above must be a number",void 0,h);if(!u&&y!=="date"&&!Qa(i)){let v=y==="string"?"'"+i+"'":i;throw new nn(m+"expected "+v+" to be a number or a date",void 0,h)}if(u){let v="length",x;y==="map"||y==="set"?(v="size",x=i.size):x=i.length,this.assert(x>t,"expected #{this} to have a "+v+" above #{exp} but got #{act}","expected #{this} to not have a "+v+" above #{exp}",t,x)}else this.assert(i>t,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",t)}me(Tx,"assertAbove");Y.addMethod("above",Tx);Y.addMethod("gt",Tx);Y.addMethod("greaterThan",Tx);function wx(t,a){a&&ce(this,"message",a);let i=ce(this,"object"),u=ce(this,"doLength"),f=ce(this,"message"),m=f?f+": ":"",h=ce(this,"ssfi"),y=En(i).toLowerCase(),b=En(t).toLowerCase(),v,x=!0;if(u&&y!=="map"&&y!=="set"&&new Y(i,f,h,!0).to.have.property("length"),!u&&y==="date"&&b!=="date")v=m+"the argument to least must be a date";else if(!Qa(t)&&(u||Qa(i)))v=m+"the argument to least must be a number";else if(!u&&y!=="date"&&!Qa(i)){let E=y==="string"?"'"+i+"'":i;v=m+"expected "+E+" to be a number or a date"}else x=!1;if(x)throw new nn(v,void 0,h);if(u){let E="length",R;y==="map"||y==="set"?(E="size",R=i.size):R=i.length,this.assert(R>=t,"expected #{this} to have a "+E+" at least #{exp} but got #{act}","expected #{this} to have a "+E+" below #{exp}",t,R)}else this.assert(i>=t,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",t)}me(wx,"assertLeast");Y.addMethod("least",wx);Y.addMethod("gte",wx);Y.addMethod("greaterThanOrEqual",wx);function xx(t,a){a&&ce(this,"message",a);let i=ce(this,"object"),u=ce(this,"doLength"),f=ce(this,"message"),m=f?f+": ":"",h=ce(this,"ssfi"),y=En(i).toLowerCase(),b=En(t).toLowerCase(),v,x=!0;if(u&&y!=="map"&&y!=="set"&&new Y(i,f,h,!0).to.have.property("length"),!u&&y==="date"&&b!=="date")v=m+"the argument to below must be a date";else if(!Qa(t)&&(u||Qa(i)))v=m+"the argument to below must be a number";else if(!u&&y!=="date"&&!Qa(i)){let E=y==="string"?"'"+i+"'":i;v=m+"expected "+E+" to be a number or a date"}else x=!1;if(x)throw new nn(v,void 0,h);if(u){let E="length",R;y==="map"||y==="set"?(E="size",R=i.size):R=i.length,this.assert(R<t,"expected #{this} to have a "+E+" below #{exp} but got #{act}","expected #{this} to not have a "+E+" below #{exp}",t,R)}else this.assert(i<t,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",t)}me(xx,"assertBelow");Y.addMethod("below",xx);Y.addMethod("lt",xx);Y.addMethod("lessThan",xx);function Rx(t,a){a&&ce(this,"message",a);let i=ce(this,"object"),u=ce(this,"doLength"),f=ce(this,"message"),m=f?f+": ":"",h=ce(this,"ssfi"),y=En(i).toLowerCase(),b=En(t).toLowerCase(),v,x=!0;if(u&&y!=="map"&&y!=="set"&&new Y(i,f,h,!0).to.have.property("length"),!u&&y==="date"&&b!=="date")v=m+"the argument to most must be a date";else if(!Qa(t)&&(u||Qa(i)))v=m+"the argument to most must be a number";else if(!u&&y!=="date"&&!Qa(i)){let E=y==="string"?"'"+i+"'":i;v=m+"expected "+E+" to be a number or a date"}else x=!1;if(x)throw new nn(v,void 0,h);if(u){let E="length",R;y==="map"||y==="set"?(E="size",R=i.size):R=i.length,this.assert(R<=t,"expected #{this} to have a "+E+" at most #{exp} but got #{act}","expected #{this} to have a "+E+" above #{exp}",t,R)}else this.assert(i<=t,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",t)}me(Rx,"assertMost");Y.addMethod("most",Rx);Y.addMethod("lte",Rx);Y.addMethod("lessThanOrEqual",Rx);Y.addMethod("within",function(t,a,i){i&&ce(this,"message",i);let u=ce(this,"object"),f=ce(this,"doLength"),m=ce(this,"message"),h=m?m+": ":"",y=ce(this,"ssfi"),b=En(u).toLowerCase(),v=En(t).toLowerCase(),x=En(a).toLowerCase(),E,R=!0,A=v==="date"&&x==="date"?t.toISOString()+".."+a.toISOString():t+".."+a;if(f&&b!=="map"&&b!=="set"&&new Y(u,m,y,!0).to.have.property("length"),!f&&b==="date"&&(v!=="date"||x!=="date"))E=h+"the arguments to within must be dates";else if((!Qa(t)||!Qa(a))&&(f||Qa(u)))E=h+"the arguments to within must be numbers";else if(!f&&b!=="date"&&!Qa(u)){let M=b==="string"?"'"+u+"'":u;E=h+"expected "+M+" to be a number or a date"}else R=!1;if(R)throw new nn(E,void 0,y);if(f){let M="length",q;b==="map"||b==="set"?(M="size",q=u.size):q=u.length,this.assert(q>=t&&q<=a,"expected #{this} to have a "+M+" within "+A,"expected #{this} to not have a "+M+" within "+A)}else this.assert(u>=t&&u<=a,"expected #{this} to be within "+A,"expected #{this} to not be within "+A)});function Y_(t,a){a&&ce(this,"message",a);let i=ce(this,"object"),u=ce(this,"ssfi"),f=ce(this,"message"),m;try{m=i instanceof t}catch(y){throw y instanceof TypeError?(f=f?f+": ":"",new nn(f+"The instanceof assertion needs a constructor but "+En(t)+" was given.",void 0,u)):y}let h=Sx(t);h==null&&(h="an unnamed constructor"),this.assert(m,"expected #{this} to be an instance of "+h,"expected #{this} to not be an instance of "+h)}me(Y_,"assertInstanceOf");Y.addMethod("instanceof",Y_);Y.addMethod("instanceOf",Y_);function X_(t,a,i){i&&ce(this,"message",i);let u=ce(this,"nested"),f=ce(this,"own"),m=ce(this,"message"),h=ce(this,"object"),y=ce(this,"ssfi"),b=typeof t;if(m=m?m+": ":"",u){if(b!=="string")throw new nn(m+"the argument to property must be a string when using nested syntax",void 0,y)}else if(b!=="string"&&b!=="number"&&b!=="symbol")throw new nn(m+"the argument to property must be a string, number, or symbol",void 0,y);if(u&&f)throw new nn(m+'The "nested" and "own" flags cannot be combined.',void 0,y);if(h==null)throw new nn(m+"Target cannot be null or undefined.",void 0,y);let v=ce(this,"deep"),x=ce(this,"negate"),E=u?D_(h,t):null,R=u?E.value:h[t],A=v?ce(this,"eql"):(N,_)=>N===_,M="";v&&(M+="deep "),f&&(M+="own "),u&&(M+="nested "),M+="property ";let q;f?q=Object.prototype.hasOwnProperty.call(h,t):u?q=E.exists:q=vx(h,t),(!x||arguments.length===1)&&this.assert(q,"expected #{this} to have "+M+Qt(t),"expected #{this} to not have "+M+Qt(t)),arguments.length>1&&this.assert(q&&A(a,R),"expected #{this} to have "+M+Qt(t)+" of #{exp}, but got #{act}","expected #{this} to not have "+M+Qt(t)+" of #{act}",a,R),ce(this,"object",R)}me(X_,"assertProperty");Y.addMethod("property",X_);function F_(t,a,i){ce(this,"own",!0),X_.apply(this,arguments)}me(F_,"assertOwnProperty");Y.addMethod("ownProperty",F_);Y.addMethod("haveOwnProperty",F_);function Q_(t,a,i){typeof a=="string"&&(i=a,a=null),i&&ce(this,"message",i);let u=ce(this,"object"),f=Object.getOwnPropertyDescriptor(Object(u),t),m=ce(this,"eql");f&&a?this.assert(m(a,f),"expected the own property descriptor for "+Qt(t)+" on #{this} to match "+Qt(a)+", got "+Qt(f),"expected the own property descriptor for "+Qt(t)+" on #{this} to not match "+Qt(a),a,f,!0):this.assert(f,"expected #{this} to have an own property descriptor for "+Qt(t),"expected #{this} to not have an own property descriptor for "+Qt(t)),ce(this,"object",f)}me(Q_,"assertOwnPropertyDescriptor");Y.addMethod("ownPropertyDescriptor",Q_);Y.addMethod("haveOwnPropertyDescriptor",Q_);function Z_(){ce(this,"doLength",!0)}me(Z_,"assertLengthChain");function J_(t,a){a&&ce(this,"message",a);let i=ce(this,"object"),u=En(i).toLowerCase(),f=ce(this,"message"),m=ce(this,"ssfi"),h="length",y;switch(u){case"map":case"set":h="size",y=i.size;break;default:new Y(i,f,m,!0).to.have.property("length"),y=i.length}this.assert(y==t,"expected #{this} to have a "+h+" of #{exp} but got #{act}","expected #{this} to not have a "+h+" of #{act}",t,y)}me(J_,"assertLength");Y.addChainableMethod("length",J_,Z_);Y.addChainableMethod("lengthOf",J_,Z_);function K_(t,a){a&&ce(this,"message",a);let i=ce(this,"object");this.assert(t.exec(i),"expected #{this} to match "+t,"expected #{this} not to match "+t)}me(K_,"assertMatch");Y.addMethod("match",K_);Y.addMethod("matches",K_);Y.addMethod("string",function(t,a){a&&ce(this,"message",a);let i=ce(this,"object"),u=ce(this,"message"),f=ce(this,"ssfi");new Y(i,u,f,!0).is.a("string"),this.assert(~i.indexOf(t),"expected #{this} to contain "+Qt(t),"expected #{this} to not contain "+Qt(t))});function W_(t){let a=ce(this,"object"),i=En(a),u=En(t),f=ce(this,"ssfi"),m=ce(this,"deep"),h,y="",b,v=!0,x=ce(this,"message");x=x?x+": ":"";let E=x+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if(i==="Map"||i==="Set")y=m?"deeply ":"",b=[],a.forEach(function(_,L){b.push(L)}),u!=="Array"&&(t=Array.prototype.slice.call(arguments));else{switch(b=$_(a),u){case"Array":if(arguments.length>1)throw new nn(E,void 0,f);break;case"Object":if(arguments.length>1)throw new nn(E,void 0,f);t=Object.keys(t);break;default:t=Array.prototype.slice.call(arguments)}t=t.map(function(_){return typeof _=="symbol"?_:String(_)})}if(!t.length)throw new nn(x+"keys required",void 0,f);let R=t.length,A=ce(this,"any"),M=ce(this,"all"),q=t,N=m?ce(this,"eql"):(_,L)=>_===L;if(!A&&!M&&(M=!0),A&&(v=q.some(function(_){return b.some(function(L){return N(_,L)})})),M&&(v=q.every(function(_){return b.some(function(L){return N(_,L)})}),ce(this,"contains")||(v=v&&t.length==b.length)),R>1){t=t.map(function(L){return Qt(L)});let _=t.pop();M&&(h=t.join(", ")+", and "+_),A&&(h=t.join(", ")+", or "+_)}else h=Qt(t[0]);h=(R>1?"keys ":"key ")+h,h=(ce(this,"contains")?"contain ":"have ")+h,this.assert(v,"expected #{this} to "+y+h,"expected #{this} to not "+y+h,q.slice(0).sort(Ww),b.sort(Ww),!0)}me(W_,"assertKeys");Y.addMethod("keys",W_);Y.addMethod("key",W_);function Cx(t,a,i){i&&ce(this,"message",i);let u=ce(this,"object"),f=ce(this,"ssfi"),m=ce(this,"message"),h=ce(this,"negate")||!1;new Y(u,m,f,!0).is.a("function"),(tx(t)||typeof t=="string")&&(a=t,t=null);let y,b=!1;try{u()}catch(A){b=!0,y=A}let v=t===void 0&&a===void 0,x=!!(t&&a),E=!1,R=!1;if(v||!v&&!h){let A="an error";t instanceof Error?A="#{exp}":t&&(A=ti.getConstructorName(t));let M=y;if(y instanceof Error)M=y.toString();else if(typeof y=="string")M=y;else if(y&&(typeof y=="object"||typeof y=="function"))try{M=ti.getConstructorName(y)}catch{}this.assert(b,"expected #{this} to throw "+A,"expected #{this} to not throw an error but #{act} was thrown",t&&t.toString(),M)}if(t&&y&&(t instanceof Error&&ti.compatibleInstance(y,t)===h&&(x&&h?E=!0:this.assert(h,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(y&&!h?" but #{act} was thrown":""),t.toString(),y.toString())),ti.compatibleConstructor(y,t)===h&&(x&&h?E=!0:this.assert(h,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(y?" but #{act} was thrown":""),t instanceof Error?t.toString():t&&ti.getConstructorName(t),y instanceof Error?y.toString():y&&ti.getConstructorName(y)))),y&&a!==void 0&&a!==null){let A="including";tx(a)&&(A="matching"),ti.compatibleMessage(y,a)===h&&(x&&h?R=!0:this.assert(h,"expected #{this} to throw error "+A+" #{exp} but got #{act}","expected #{this} to throw error not "+A+" #{exp}",a,ti.getMessage(y)))}E&&R&&this.assert(h,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(y?" but #{act} was thrown":""),t instanceof Error?t.toString():t&&ti.getConstructorName(t),y instanceof Error?y.toString():y&&ti.getConstructorName(y)),ce(this,"object",y)}me(Cx,"assertThrows");Y.addMethod("throw",Cx);Y.addMethod("throws",Cx);Y.addMethod("Throw",Cx);function eM(t,a){a&&ce(this,"message",a);let i=ce(this,"object"),u=ce(this,"itself"),f=typeof i=="function"&&!u?i.prototype[t]:i[t];this.assert(typeof f=="function","expected #{this} to respond to "+Qt(t),"expected #{this} to not respond to "+Qt(t))}me(eM,"respondTo");Y.addMethod("respondTo",eM);Y.addMethod("respondsTo",eM);Y.addProperty("itself",function(){ce(this,"itself",!0)});function tM(t,a){a&&ce(this,"message",a);let i=ce(this,"object"),u=t(i);this.assert(u,"expected #{this} to satisfy "+Op(t),"expected #{this} to not satisfy"+Op(t),!ce(this,"negate"),u)}me(tM,"satisfy");Y.addMethod("satisfy",tM);Y.addMethod("satisfies",tM);function nM(t,a,i){i&&ce(this,"message",i);let u=ce(this,"object"),f=ce(this,"message"),m=ce(this,"ssfi");new Y(u,f,m,!0).is.numeric;let h="A `delta` value is required for `closeTo`";if(a==null)throw new nn(f?`${f}: ${h}`:h,void 0,m);if(new Y(a,f,m,!0).is.numeric,h="A `expected` value is required for `closeTo`",t==null)throw new nn(f?`${f}: ${h}`:h,void 0,m);new Y(t,f,m,!0).is.numeric;const y=me(v=>v<0n?-v:v,"abs"),b=me(v=>parseFloat(parseFloat(v).toPrecision(12)),"strip");this.assert(b(y(u-t))<=a,"expected #{this} to be close to "+t+" +/- "+a,"expected #{this} not to be close to "+t+" +/- "+a)}me(nM,"closeTo");Y.addMethod("closeTo",nM);Y.addMethod("approximately",nM);function bk(t,a,i,u,f){let m=Array.from(a),h=Array.from(t);if(!u){if(h.length!==m.length)return!1;m=m.slice()}return h.every(function(y,b){if(f)return i?i(y,m[b]):y===m[b];if(!i){let v=m.indexOf(y);return v===-1?!1:(u||m.splice(v,1),!0)}return m.some(function(v,x){return i(y,v)?(u||m.splice(x,1),!0):!1})})}me(bk,"isSubsetOf");Y.addMethod("members",function(t,a){a&&ce(this,"message",a);let i=ce(this,"object"),u=ce(this,"message"),f=ce(this,"ssfi");new Y(i,u,f,!0).to.be.iterable,new Y(t,u,f,!0).to.be.iterable;let m=ce(this,"contains"),h=ce(this,"ordered"),y,b,v;m?(y=h?"an ordered superset":"a superset",b="expected #{this} to be "+y+" of #{exp}",v="expected #{this} to not be "+y+" of #{exp}"):(y=h?"ordered members":"members",b="expected #{this} to have the same "+y+" as #{exp}",v="expected #{this} to not have the same "+y+" as #{exp}");let x=ce(this,"deep")?ce(this,"eql"):void 0;this.assert(bk(t,i,x,m,h),b,v,t,i,!0)});Y.addProperty("iterable",function(t){t&&ce(this,"message",t);let a=ce(this,"object");this.assert(a!=null&&a[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",a)});function vk(t,a){a&&ce(this,"message",a);let i=ce(this,"object"),u=ce(this,"message"),f=ce(this,"ssfi"),m=ce(this,"contains"),h=ce(this,"deep"),y=ce(this,"eql");new Y(t,u,f,!0).to.be.an("array"),m?this.assert(t.some(function(b){return i.indexOf(b)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",t,i):h?this.assert(t.some(function(b){return y(i,b)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",t,i):this.assert(t.indexOf(i)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",t,i)}me(vk,"oneOf");Y.addMethod("oneOf",vk);function aM(t,a,i){i&&ce(this,"message",i);let u=ce(this,"object"),f=ce(this,"message"),m=ce(this,"ssfi");new Y(u,f,m,!0).is.a("function");let h;a?(new Y(t,f,m,!0).to.have.property(a),h=t[a]):(new Y(t,f,m,!0).is.a("function"),h=t()),u();let y=a==null?t():t[a],b=a==null?h:"."+a;ce(this,"deltaMsgObj",b),ce(this,"initialDeltaValue",h),ce(this,"finalDeltaValue",y),ce(this,"deltaBehavior","change"),ce(this,"realDelta",y!==h),this.assert(h!==y,"expected "+b+" to change","expected "+b+" to not change")}me(aM,"assertChanges");Y.addMethod("change",aM);Y.addMethod("changes",aM);function rM(t,a,i){i&&ce(this,"message",i);let u=ce(this,"object"),f=ce(this,"message"),m=ce(this,"ssfi");new Y(u,f,m,!0).is.a("function");let h;a?(new Y(t,f,m,!0).to.have.property(a),h=t[a]):(new Y(t,f,m,!0).is.a("function"),h=t()),new Y(h,f,m,!0).is.a("number"),u();let y=a==null?t():t[a],b=a==null?h:"."+a;ce(this,"deltaMsgObj",b),ce(this,"initialDeltaValue",h),ce(this,"finalDeltaValue",y),ce(this,"deltaBehavior","increase"),ce(this,"realDelta",y-h),this.assert(y-h>0,"expected "+b+" to increase","expected "+b+" to not increase")}me(rM,"assertIncreases");Y.addMethod("increase",rM);Y.addMethod("increases",rM);function lM(t,a,i){i&&ce(this,"message",i);let u=ce(this,"object"),f=ce(this,"message"),m=ce(this,"ssfi");new Y(u,f,m,!0).is.a("function");let h;a?(new Y(t,f,m,!0).to.have.property(a),h=t[a]):(new Y(t,f,m,!0).is.a("function"),h=t()),new Y(h,f,m,!0).is.a("number"),u();let y=a==null?t():t[a],b=a==null?h:"."+a;ce(this,"deltaMsgObj",b),ce(this,"initialDeltaValue",h),ce(this,"finalDeltaValue",y),ce(this,"deltaBehavior","decrease"),ce(this,"realDelta",h-y),this.assert(y-h<0,"expected "+b+" to decrease","expected "+b+" to not decrease")}me(lM,"assertDecreases");Y.addMethod("decrease",lM);Y.addMethod("decreases",lM);function Sk(t,a){a&&ce(this,"message",a);let i=ce(this,"deltaMsgObj"),u=ce(this,"initialDeltaValue"),f=ce(this,"finalDeltaValue"),m=ce(this,"deltaBehavior"),h=ce(this,"realDelta"),y;m==="change"?y=Math.abs(f-u)===Math.abs(t):y=h===Math.abs(t),this.assert(y,"expected "+i+" to "+m+" by "+t,"expected "+i+" to not "+m+" by "+t)}me(Sk,"assertDelta");Y.addMethod("by",Sk);Y.addProperty("extensible",function(){let t=ce(this,"object"),a=t===Object(t)&&Object.isExtensible(t);this.assert(a,"expected #{this} to be extensible","expected #{this} to not be extensible")});Y.addProperty("sealed",function(){let t=ce(this,"object"),a=t===Object(t)?Object.isSealed(t):!0;this.assert(a,"expected #{this} to be sealed","expected #{this} to not be sealed")});Y.addProperty("frozen",function(){let t=ce(this,"object"),a=t===Object(t)?Object.isFrozen(t):!0;this.assert(a,"expected #{this} to be frozen","expected #{this} to not be frozen")});Y.addProperty("finite",function(t){let a=ce(this,"object");this.assert(typeof a=="number"&&isFinite(a),"expected #{this} to be a finite number","expected #{this} to not be a finite number")});function nx(t,a){return t===a?!0:typeof a!=typeof t?!1:typeof t!="object"||t===null?t===a:a?Array.isArray(t)?Array.isArray(a)?t.every(function(i){return a.some(function(u){return nx(i,u)})}):!1:t instanceof Date?a instanceof Date?t.getTime()===a.getTime():!1:Object.keys(t).every(function(i){let u=t[i],f=a[i];return typeof u=="object"&&u!==null&&f!==null?nx(u,f):typeof u=="function"?u(f):f===u}):!1}me(nx,"compareSubset");Y.addMethod("containSubset",function(t){const a=Ct(this,"object"),i=Kr.showDiff;this.assert(nx(t,a),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",t,a,i)});function qp(t,a){return new Y(t,a)}me(qp,"expect");qp.fail=function(t,a,i,u){throw arguments.length<2&&(i=t,t=void 0),i=i||"expect.fail()",new nn(i,{actual:t,expected:a,operator:u},qp.fail)};var Ek={};R_(Ek,{Should:()=>uF,should:()=>oF});function iM(){function t(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol=="function"&&this instanceof Symbol||typeof BigInt=="function"&&this instanceof BigInt?new Y(this.valueOf(),null,t):new Y(this,null,t)}me(t,"shouldGetter");function a(u){Object.defineProperty(this,"should",{value:u,enumerable:!0,configurable:!0,writable:!0})}me(a,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:a,get:t,configurable:!0});let i={};return i.fail=function(u,f,m,h){throw arguments.length<2&&(m=u,u=void 0),m=m||"should.fail()",new nn(m,{actual:u,expected:f,operator:h},i.fail)},i.equal=function(u,f,m){new Y(u,m).to.equal(f)},i.Throw=function(u,f,m,h){new Y(u,h).to.Throw(f,m)},i.exist=function(u,f){new Y(u,f).to.exist},i.not={},i.not.equal=function(u,f,m){new Y(u,m).to.not.equal(f)},i.not.Throw=function(u,f,m,h){new Y(u,h).to.not.Throw(f,m)},i.not.exist=function(u,f){new Y(u,f).to.not.exist},i.throw=i.Throw,i.not.throw=i.not.Throw,i}me(iM,"loadShould");var oF=iM,uF=iM;function G(t,a){new Y(null,null,G,!0).assert(t,a,"[ negation message unavailable ]")}me(G,"assert");G.fail=function(t,a,i,u){throw arguments.length<2&&(i=t,t=void 0),i=i||"assert.fail()",new nn(i,{actual:t,expected:a,operator:u},G.fail)};G.isOk=function(t,a){new Y(t,a,G.isOk,!0).is.ok};G.isNotOk=function(t,a){new Y(t,a,G.isNotOk,!0).is.not.ok};G.equal=function(t,a,i){let u=new Y(t,i,G.equal,!0);u.assert(a==Ct(u,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",a,t,!0)};G.notEqual=function(t,a,i){let u=new Y(t,i,G.notEqual,!0);u.assert(a!=Ct(u,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",a,t,!0)};G.strictEqual=function(t,a,i){new Y(t,i,G.strictEqual,!0).to.equal(a)};G.notStrictEqual=function(t,a,i){new Y(t,i,G.notStrictEqual,!0).to.not.equal(a)};G.deepEqual=G.deepStrictEqual=function(t,a,i){new Y(t,i,G.deepEqual,!0).to.eql(a)};G.notDeepEqual=function(t,a,i){new Y(t,i,G.notDeepEqual,!0).to.not.eql(a)};G.isAbove=function(t,a,i){new Y(t,i,G.isAbove,!0).to.be.above(a)};G.isAtLeast=function(t,a,i){new Y(t,i,G.isAtLeast,!0).to.be.least(a)};G.isBelow=function(t,a,i){new Y(t,i,G.isBelow,!0).to.be.below(a)};G.isAtMost=function(t,a,i){new Y(t,i,G.isAtMost,!0).to.be.most(a)};G.isTrue=function(t,a){new Y(t,a,G.isTrue,!0).is.true};G.isNotTrue=function(t,a){new Y(t,a,G.isNotTrue,!0).to.not.equal(!0)};G.isFalse=function(t,a){new Y(t,a,G.isFalse,!0).is.false};G.isNotFalse=function(t,a){new Y(t,a,G.isNotFalse,!0).to.not.equal(!1)};G.isNull=function(t,a){new Y(t,a,G.isNull,!0).to.equal(null)};G.isNotNull=function(t,a){new Y(t,a,G.isNotNull,!0).to.not.equal(null)};G.isNaN=function(t,a){new Y(t,a,G.isNaN,!0).to.be.NaN};G.isNotNaN=function(t,a){new Y(t,a,G.isNotNaN,!0).not.to.be.NaN};G.exists=function(t,a){new Y(t,a,G.exists,!0).to.exist};G.notExists=function(t,a){new Y(t,a,G.notExists,!0).to.not.exist};G.isUndefined=function(t,a){new Y(t,a,G.isUndefined,!0).to.equal(void 0)};G.isDefined=function(t,a){new Y(t,a,G.isDefined,!0).to.not.equal(void 0)};G.isCallable=function(t,a){new Y(t,a,G.isCallable,!0).is.callable};G.isNotCallable=function(t,a){new Y(t,a,G.isNotCallable,!0).is.not.callable};G.isObject=function(t,a){new Y(t,a,G.isObject,!0).to.be.a("object")};G.isNotObject=function(t,a){new Y(t,a,G.isNotObject,!0).to.not.be.a("object")};G.isArray=function(t,a){new Y(t,a,G.isArray,!0).to.be.an("array")};G.isNotArray=function(t,a){new Y(t,a,G.isNotArray,!0).to.not.be.an("array")};G.isString=function(t,a){new Y(t,a,G.isString,!0).to.be.a("string")};G.isNotString=function(t,a){new Y(t,a,G.isNotString,!0).to.not.be.a("string")};G.isNumber=function(t,a){new Y(t,a,G.isNumber,!0).to.be.a("number")};G.isNotNumber=function(t,a){new Y(t,a,G.isNotNumber,!0).to.not.be.a("number")};G.isNumeric=function(t,a){new Y(t,a,G.isNumeric,!0).is.numeric};G.isNotNumeric=function(t,a){new Y(t,a,G.isNotNumeric,!0).is.not.numeric};G.isFinite=function(t,a){new Y(t,a,G.isFinite,!0).to.be.finite};G.isBoolean=function(t,a){new Y(t,a,G.isBoolean,!0).to.be.a("boolean")};G.isNotBoolean=function(t,a){new Y(t,a,G.isNotBoolean,!0).to.not.be.a("boolean")};G.typeOf=function(t,a,i){new Y(t,i,G.typeOf,!0).to.be.a(a)};G.notTypeOf=function(t,a,i){new Y(t,i,G.notTypeOf,!0).to.not.be.a(a)};G.instanceOf=function(t,a,i){new Y(t,i,G.instanceOf,!0).to.be.instanceOf(a)};G.notInstanceOf=function(t,a,i){new Y(t,i,G.notInstanceOf,!0).to.not.be.instanceOf(a)};G.include=function(t,a,i){new Y(t,i,G.include,!0).include(a)};G.notInclude=function(t,a,i){new Y(t,i,G.notInclude,!0).not.include(a)};G.deepInclude=function(t,a,i){new Y(t,i,G.deepInclude,!0).deep.include(a)};G.notDeepInclude=function(t,a,i){new Y(t,i,G.notDeepInclude,!0).not.deep.include(a)};G.nestedInclude=function(t,a,i){new Y(t,i,G.nestedInclude,!0).nested.include(a)};G.notNestedInclude=function(t,a,i){new Y(t,i,G.notNestedInclude,!0).not.nested.include(a)};G.deepNestedInclude=function(t,a,i){new Y(t,i,G.deepNestedInclude,!0).deep.nested.include(a)};G.notDeepNestedInclude=function(t,a,i){new Y(t,i,G.notDeepNestedInclude,!0).not.deep.nested.include(a)};G.ownInclude=function(t,a,i){new Y(t,i,G.ownInclude,!0).own.include(a)};G.notOwnInclude=function(t,a,i){new Y(t,i,G.notOwnInclude,!0).not.own.include(a)};G.deepOwnInclude=function(t,a,i){new Y(t,i,G.deepOwnInclude,!0).deep.own.include(a)};G.notDeepOwnInclude=function(t,a,i){new Y(t,i,G.notDeepOwnInclude,!0).not.deep.own.include(a)};G.match=function(t,a,i){new Y(t,i,G.match,!0).to.match(a)};G.notMatch=function(t,a,i){new Y(t,i,G.notMatch,!0).to.not.match(a)};G.property=function(t,a,i){new Y(t,i,G.property,!0).to.have.property(a)};G.notProperty=function(t,a,i){new Y(t,i,G.notProperty,!0).to.not.have.property(a)};G.propertyVal=function(t,a,i,u){new Y(t,u,G.propertyVal,!0).to.have.property(a,i)};G.notPropertyVal=function(t,a,i,u){new Y(t,u,G.notPropertyVal,!0).to.not.have.property(a,i)};G.deepPropertyVal=function(t,a,i,u){new Y(t,u,G.deepPropertyVal,!0).to.have.deep.property(a,i)};G.notDeepPropertyVal=function(t,a,i,u){new Y(t,u,G.notDeepPropertyVal,!0).to.not.have.deep.property(a,i)};G.ownProperty=function(t,a,i){new Y(t,i,G.ownProperty,!0).to.have.own.property(a)};G.notOwnProperty=function(t,a,i){new Y(t,i,G.notOwnProperty,!0).to.not.have.own.property(a)};G.ownPropertyVal=function(t,a,i,u){new Y(t,u,G.ownPropertyVal,!0).to.have.own.property(a,i)};G.notOwnPropertyVal=function(t,a,i,u){new Y(t,u,G.notOwnPropertyVal,!0).to.not.have.own.property(a,i)};G.deepOwnPropertyVal=function(t,a,i,u){new Y(t,u,G.deepOwnPropertyVal,!0).to.have.deep.own.property(a,i)};G.notDeepOwnPropertyVal=function(t,a,i,u){new Y(t,u,G.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(a,i)};G.nestedProperty=function(t,a,i){new Y(t,i,G.nestedProperty,!0).to.have.nested.property(a)};G.notNestedProperty=function(t,a,i){new Y(t,i,G.notNestedProperty,!0).to.not.have.nested.property(a)};G.nestedPropertyVal=function(t,a,i,u){new Y(t,u,G.nestedPropertyVal,!0).to.have.nested.property(a,i)};G.notNestedPropertyVal=function(t,a,i,u){new Y(t,u,G.notNestedPropertyVal,!0).to.not.have.nested.property(a,i)};G.deepNestedPropertyVal=function(t,a,i,u){new Y(t,u,G.deepNestedPropertyVal,!0).to.have.deep.nested.property(a,i)};G.notDeepNestedPropertyVal=function(t,a,i,u){new Y(t,u,G.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(a,i)};G.lengthOf=function(t,a,i){new Y(t,i,G.lengthOf,!0).to.have.lengthOf(a)};G.hasAnyKeys=function(t,a,i){new Y(t,i,G.hasAnyKeys,!0).to.have.any.keys(a)};G.hasAllKeys=function(t,a,i){new Y(t,i,G.hasAllKeys,!0).to.have.all.keys(a)};G.containsAllKeys=function(t,a,i){new Y(t,i,G.containsAllKeys,!0).to.contain.all.keys(a)};G.doesNotHaveAnyKeys=function(t,a,i){new Y(t,i,G.doesNotHaveAnyKeys,!0).to.not.have.any.keys(a)};G.doesNotHaveAllKeys=function(t,a,i){new Y(t,i,G.doesNotHaveAllKeys,!0).to.not.have.all.keys(a)};G.hasAnyDeepKeys=function(t,a,i){new Y(t,i,G.hasAnyDeepKeys,!0).to.have.any.deep.keys(a)};G.hasAllDeepKeys=function(t,a,i){new Y(t,i,G.hasAllDeepKeys,!0).to.have.all.deep.keys(a)};G.containsAllDeepKeys=function(t,a,i){new Y(t,i,G.containsAllDeepKeys,!0).to.contain.all.deep.keys(a)};G.doesNotHaveAnyDeepKeys=function(t,a,i){new Y(t,i,G.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(a)};G.doesNotHaveAllDeepKeys=function(t,a,i){new Y(t,i,G.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(a)};G.throws=function(t,a,i,u){(typeof a=="string"||a instanceof RegExp)&&(i=a,a=null);let f=new Y(t,u,G.throws,!0).to.throw(a,i);return Ct(f,"object")};G.doesNotThrow=function(t,a,i,u){(typeof a=="string"||a instanceof RegExp)&&(i=a,a=null),new Y(t,u,G.doesNotThrow,!0).to.not.throw(a,i)};G.operator=function(t,a,i,u){let f;switch(a){case"==":f=t==i;break;case"===":f=t===i;break;case">":f=t>i;break;case">=":f=t>=i;break;case"<":f=t<i;break;case"<=":f=t<=i;break;case"!=":f=t!=i;break;case"!==":f=t!==i;break;default:throw u=u&&u+": ",new nn(u+'Invalid operator "'+a+'"',void 0,G.operator)}let m=new Y(f,u,G.operator,!0);m.assert(Ct(m,"object")===!0,"expected "+Qt(t)+" to be "+a+" "+Qt(i),"expected "+Qt(t)+" to not be "+a+" "+Qt(i))};G.closeTo=function(t,a,i,u){new Y(t,u,G.closeTo,!0).to.be.closeTo(a,i)};G.approximately=function(t,a,i,u){new Y(t,u,G.approximately,!0).to.be.approximately(a,i)};G.sameMembers=function(t,a,i){new Y(t,i,G.sameMembers,!0).to.have.same.members(a)};G.notSameMembers=function(t,a,i){new Y(t,i,G.notSameMembers,!0).to.not.have.same.members(a)};G.sameDeepMembers=function(t,a,i){new Y(t,i,G.sameDeepMembers,!0).to.have.same.deep.members(a)};G.notSameDeepMembers=function(t,a,i){new Y(t,i,G.notSameDeepMembers,!0).to.not.have.same.deep.members(a)};G.sameOrderedMembers=function(t,a,i){new Y(t,i,G.sameOrderedMembers,!0).to.have.same.ordered.members(a)};G.notSameOrderedMembers=function(t,a,i){new Y(t,i,G.notSameOrderedMembers,!0).to.not.have.same.ordered.members(a)};G.sameDeepOrderedMembers=function(t,a,i){new Y(t,i,G.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(a)};G.notSameDeepOrderedMembers=function(t,a,i){new Y(t,i,G.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(a)};G.includeMembers=function(t,a,i){new Y(t,i,G.includeMembers,!0).to.include.members(a)};G.notIncludeMembers=function(t,a,i){new Y(t,i,G.notIncludeMembers,!0).to.not.include.members(a)};G.includeDeepMembers=function(t,a,i){new Y(t,i,G.includeDeepMembers,!0).to.include.deep.members(a)};G.notIncludeDeepMembers=function(t,a,i){new Y(t,i,G.notIncludeDeepMembers,!0).to.not.include.deep.members(a)};G.includeOrderedMembers=function(t,a,i){new Y(t,i,G.includeOrderedMembers,!0).to.include.ordered.members(a)};G.notIncludeOrderedMembers=function(t,a,i){new Y(t,i,G.notIncludeOrderedMembers,!0).to.not.include.ordered.members(a)};G.includeDeepOrderedMembers=function(t,a,i){new Y(t,i,G.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(a)};G.notIncludeDeepOrderedMembers=function(t,a,i){new Y(t,i,G.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(a)};G.oneOf=function(t,a,i){new Y(t,i,G.oneOf,!0).to.be.oneOf(a)};G.isIterable=function(t,a){if(t==null||!t[Symbol.iterator])throw a=a?`${a} expected ${Qt(t)} to be an iterable`:`expected ${Qt(t)} to be an iterable`,new nn(a,void 0,G.isIterable)};G.changes=function(t,a,i,u){arguments.length===3&&typeof a=="function"&&(u=i,i=null),new Y(t,u,G.changes,!0).to.change(a,i)};G.changesBy=function(t,a,i,u,f){if(arguments.length===4&&typeof a=="function"){let m=u;u=i,f=m}else arguments.length===3&&(u=i,i=null);new Y(t,f,G.changesBy,!0).to.change(a,i).by(u)};G.doesNotChange=function(t,a,i,u){return arguments.length===3&&typeof a=="function"&&(u=i,i=null),new Y(t,u,G.doesNotChange,!0).to.not.change(a,i)};G.changesButNotBy=function(t,a,i,u,f){if(arguments.length===4&&typeof a=="function"){let m=u;u=i,f=m}else arguments.length===3&&(u=i,i=null);new Y(t,f,G.changesButNotBy,!0).to.change(a,i).but.not.by(u)};G.increases=function(t,a,i,u){return arguments.length===3&&typeof a=="function"&&(u=i,i=null),new Y(t,u,G.increases,!0).to.increase(a,i)};G.increasesBy=function(t,a,i,u,f){if(arguments.length===4&&typeof a=="function"){let m=u;u=i,f=m}else arguments.length===3&&(u=i,i=null);new Y(t,f,G.increasesBy,!0).to.increase(a,i).by(u)};G.doesNotIncrease=function(t,a,i,u){return arguments.length===3&&typeof a=="function"&&(u=i,i=null),new Y(t,u,G.doesNotIncrease,!0).to.not.increase(a,i)};G.increasesButNotBy=function(t,a,i,u,f){if(arguments.length===4&&typeof a=="function"){let m=u;u=i,f=m}else arguments.length===3&&(u=i,i=null);new Y(t,f,G.increasesButNotBy,!0).to.increase(a,i).but.not.by(u)};G.decreases=function(t,a,i,u){return arguments.length===3&&typeof a=="function"&&(u=i,i=null),new Y(t,u,G.decreases,!0).to.decrease(a,i)};G.decreasesBy=function(t,a,i,u,f){if(arguments.length===4&&typeof a=="function"){let m=u;u=i,f=m}else arguments.length===3&&(u=i,i=null);new Y(t,f,G.decreasesBy,!0).to.decrease(a,i).by(u)};G.doesNotDecrease=function(t,a,i,u){return arguments.length===3&&typeof a=="function"&&(u=i,i=null),new Y(t,u,G.doesNotDecrease,!0).to.not.decrease(a,i)};G.doesNotDecreaseBy=function(t,a,i,u,f){if(arguments.length===4&&typeof a=="function"){let m=u;u=i,f=m}else arguments.length===3&&(u=i,i=null);return new Y(t,f,G.doesNotDecreaseBy,!0).to.not.decrease(a,i).by(u)};G.decreasesButNotBy=function(t,a,i,u,f){if(arguments.length===4&&typeof a=="function"){let m=u;u=i,f=m}else arguments.length===3&&(u=i,i=null);new Y(t,f,G.decreasesButNotBy,!0).to.decrease(a,i).but.not.by(u)};G.ifError=function(t){if(t)throw t};G.isExtensible=function(t,a){new Y(t,a,G.isExtensible,!0).to.be.extensible};G.isNotExtensible=function(t,a){new Y(t,a,G.isNotExtensible,!0).to.not.be.extensible};G.isSealed=function(t,a){new Y(t,a,G.isSealed,!0).to.be.sealed};G.isNotSealed=function(t,a){new Y(t,a,G.isNotSealed,!0).to.not.be.sealed};G.isFrozen=function(t,a){new Y(t,a,G.isFrozen,!0).to.be.frozen};G.isNotFrozen=function(t,a){new Y(t,a,G.isNotFrozen,!0).to.not.be.frozen};G.isEmpty=function(t,a){new Y(t,a,G.isEmpty,!0).to.be.empty};G.isNotEmpty=function(t,a){new Y(t,a,G.isNotEmpty,!0).to.not.be.empty};G.containsSubset=function(t,a,i){new Y(t,i).to.containSubset(a)};G.doesNotContainSubset=function(t,a,i){new Y(t,i).to.not.containSubset(a)};var sF=[["isOk","ok"],["isNotOk","notOk"],["throws","throw"],["throws","Throw"],["isExtensible","extensible"],["isNotExtensible","notExtensible"],["isSealed","sealed"],["isNotSealed","notSealed"],["isFrozen","frozen"],["isNotFrozen","notFrozen"],["isEmpty","empty"],["isNotEmpty","notEmpty"],["isCallable","isFunction"],["isNotCallable","isNotFunction"],["containsSubset","containSubset"]];for(const[t,a]of sF)G[a]=G[t];var yj=[];function Lf(t){const a={use:Lf,AssertionError:nn,util:Wr,config:Kr,expect:qp,assert:G,Assertion:Y,...Ek};return~yj.indexOf(t)||(t(a,Wr),yj.push(t)),a}me(Lf,"use");const ax=Symbol.for("matchers-object"),GS=Symbol.for("$$jest-matchers-object"),Ax=Symbol.for("expect-global"),oM=Symbol.for("asymmetric-matchers-object"),rx=la.green,uM=la.red,cF=la.inverse,fF=la.bold,Df=la.dim;function dF(t,a="received",i="expected",u={}){const{comment:f="",isDirectExpectCall:m=!1,isNot:h=!1,promise:y="",secondArgument:b="",expectedColor:v=rx,receivedColor:x=uM,secondArgumentColor:E=rx}=u;let R="",A="expect";return!m&&a!==""&&(R+=Df(`${A}(`)+x(a),A=")"),y!==""&&(R+=Df(`${A}.`)+y,A=""),h&&(R+=`${Df(`${A}.`)}not`,A=""),t.includes(".")?A+=t:(R+=Df(`${A}.`)+t,A=""),i===""?A+="()":(R+=Df(`${A}(`)+v(i),b&&(R+=Df(", ")+E(b)),A=")"),f!==""&&(A+=` // ${f}`),A!==""&&(R+=Df(A)),R}const pF="·";function Tk(t){return t.replace(/\s+$/gm,a=>pF.repeat(a.length))}function hF(t){return uM(Tk(Qi(t)))}function mF(t){return rx(Tk(Qi(t)))}function wk(){return{EXPECTED_COLOR:rx,RECEIVED_COLOR:uM,INVERTED_COLOR:cF,BOLD_WEIGHT:fF,DIM_COLOR:Df,diff:Ay,matcherHint:dF,printReceived:hF,printExpected:mF,printDiffOrStringify:A6}}function yF(t){if(!Array.isArray(t))throw new TypeError(`expect.customEqualityTesters: Must be set to an array of Testers. Was given "${Qw(t)}"`);globalThis[GS].customEqualityTesters.push(...t)}function sM(){return globalThis[GS].customEqualityTesters}function Ft(t,a,i,u){return i=i||[],xk(t,a,[],[],i,u?Rk:bF)}function gj(t){return!!t&&typeof t=="object"&&"asymmetricMatch"in t&&Do("Function",t.asymmetricMatch)}function gF(t,a){const i=gj(t),u=gj(a);if(!(i&&u)){if(i)return t.asymmetricMatch(a);if(u)return a.asymmetricMatch(t)}}function xk(t,a,i,u,f,m){let h=!0;const y=gF(t,a);if(y!==void 0)return y;const b={equals:Ft};for(let M=0;M<f.length;M++){const q=f[M].call(b,t,a,f);if(q!==void 0)return q}if(t instanceof Error&&a instanceof Error)return t.message===a.message;if(typeof URL=="function"&&t instanceof URL&&a instanceof URL)return t.href===a.href;if(Object.is(t,a))return!0;if(t===null||a===null)return t===a;const v=Object.prototype.toString.call(t);if(v!==Object.prototype.toString.call(a))return!1;switch(v){case"[object Boolean]":case"[object String]":case"[object Number]":return typeof t!=typeof a?!1:typeof t!="object"&&typeof a!="object"?Object.is(t,a):Object.is(t.valueOf(),a.valueOf());case"[object Date]":{const M=+t,q=+a;return M===q||Number.isNaN(M)&&Number.isNaN(q)}case"[object RegExp]":return t.source===a.source&&t.flags===a.flags}if(typeof t!="object"||typeof a!="object")return!1;if(vj(t)&&vj(a))return t.isEqualNode(a);let x=i.length;for(;x--;){if(i[x]===t)return u[x]===a;if(u[x]===a)return!1}if(i.push(t),u.push(a),v==="[object Array]"&&t.length!==a.length)return!1;const E=bj(t,m);let R,A=E.length;if(bj(a,m).length!==A)return!1;for(;A--;)if(R=E[A],h=m(a,R)&&xk(t[R],a[R],i,u,f,m),!h)return!1;return i.pop(),u.pop(),h}function bj(t,a){const i=[];for(const u in t)a(t,u)&&i.push(u);return i.concat(Object.getOwnPropertySymbols(t).filter(u=>Object.getOwnPropertyDescriptor(t,u).enumerable))}function bF(t,a){return Rk(t,a)&&t[a]!==void 0}function Rk(t,a){return Object.prototype.hasOwnProperty.call(t,a)}function Do(t,a){return Object.prototype.toString.apply(a)===`[object ${t}]`}function vj(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"&&"nodeName"in t&&typeof t.nodeName=="string"&&"isEqualNode"in t&&typeof t.isEqualNode=="function"}const Ck="@@__IMMUTABLE_KEYED__@@",Ak="@@__IMMUTABLE_SET__@@",vF="@@__IMMUTABLE_LIST__@@",_x="@@__IMMUTABLE_ORDERED__@@",SF="@@__IMMUTABLE_RECORD__@@";function EF(t){return!!(t&&t[Ck]&&!t[_x])}function TF(t){return!!(t&&t[Ak]&&!t[_x])}function Mx(t){return t!=null&&typeof t=="object"&&!Array.isArray(t)}function wF(t){return!!(t&&Mx(t)&&t[vF])}function xF(t){return!!(t&&Mx(t)&&t[Ck]&&t[_x])}function RF(t){return!!(t&&Mx(t)&&t[Ak]&&t[_x])}function CF(t){return!!(t&&Mx(t)&&t[SF])}const _k=Symbol.iterator;function Sj(t){return!!(t!=null&&t[_k])}function El(t,a,i=[],u=[],f=[]){if(typeof t!="object"||typeof a!="object"||Array.isArray(t)||Array.isArray(a)||!Sj(t)||!Sj(a))return;if(t.constructor!==a.constructor)return!1;let m=u.length;for(;m--;)if(u[m]===t)return f[m]===a;u.push(t),f.push(a);const h=[...i.filter(v=>v!==El),y];function y(v,x){return El(v,x,[...i],[...u],[...f])}if(t.size!==void 0){if(t.size!==a.size)return!1;if(Do("Set",t)||TF(t)){let v=!0;for(const x of t)if(!a.has(x)){let E=!1;for(const R of a)Ft(x,R,h)===!0&&(E=!0);if(E===!1){v=!1;break}}return u.pop(),f.pop(),v}else if(Do("Map",t)||EF(t)){let v=!0;for(const x of t)if(!a.has(x[0])||!Ft(x[1],a.get(x[0]),h)){let E=!1;for(const R of a){const A=Ft(x[0],R[0],h);let M=!1;A===!0&&(M=Ft(x[1],R[1],h)),M===!0&&(E=!0)}if(E===!1){v=!1;break}}return u.pop(),f.pop(),v}}const b=a[_k]();for(const v of t){const x=b.next();if(x.done||!Ft(v,x.value,h))return!1}if(!b.next().done)return!1;if(!wF(t)&&!xF(t)&&!RF(t)&&!CF(t)){const v=Object.entries(t),x=Object.entries(a);if(!Ft(v,x))return!1}return u.pop(),f.pop(),!0}function cM(t,a){return!t||typeof t!="object"||t===Object.prototype?!1:Object.prototype.hasOwnProperty.call(t,a)||cM(Object.getPrototypeOf(t),a)}function AF(t){return yy(t)&&!(t instanceof Error)&&!Array.isArray(t)&&!(t instanceof Date)}function My(t,a,i=[]){const u=i.filter(m=>m!==My),f=(m=new WeakMap)=>(h,y)=>{if(AF(y))return Object.keys(y).every(b=>{if(y[b]!=null&&typeof y[b]=="object"){if(m.has(y[b]))return Ft(h[b],y[b],u);m.set(y[b],!0)}const v=h!=null&&cM(h,b)&&Ft(h[b],y[b],[...u,f(m)]);return m.delete(y[b]),v})};return f()(t,a)}function Ej(t,a){if(!(t==null||a==null||t.constructor===a.constructor))return!1}function Tj(t,a){let i=t,u=a;if(!(t instanceof DataView&&a instanceof DataView)){if(!(t instanceof ArrayBuffer)||!(a instanceof ArrayBuffer))return;try{i=new DataView(t),u=new DataView(a)}catch{return}}if(i.byteLength!==u.byteLength)return!1;for(let f=0;f<i.byteLength;f++)if(i.getUint8(f)!==u.getUint8(f))return!1;return!0}function HA(t,a,i=[]){if(!Array.isArray(t)||!Array.isArray(a))return;const u=Object.keys(t),f=Object.keys(a),m=i.filter(h=>h!==HA);return Ft(t,a,m,!0)&&Ft(u,f)}function _F(t,a="#{this}",i="#{exp}"){const u=`expected ${a} to be ${i} // Object.is equality`;return["toStrictEqual","toEqual"].includes(t)?`${u}
356
+
357
+ If it should pass with deep equality, replace "toBe" with "${t}"
358
+
359
+ Expected: ${a}
360
+ Received: serializes to the same string
361
+ `:u}function MF(t,a){return`${a} ${t}${a===1?"":"s"}`}function MC(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t).filter(a=>{var i;return(i=Object.getOwnPropertyDescriptor(t,a))==null?void 0:i.enumerable})]}function OF(t,a,i){let u=0;const f=(m=new WeakMap)=>(h,y)=>{if(Array.isArray(h)){if(Array.isArray(y)&&y.length===h.length)return y.map((b,v)=>f(m)(h[v],b))}else{if(h instanceof Date)return h;if(yy(h)&&yy(y)){if(Ft(h,y,[...i,El,My]))return y;const b={};m.set(h,b),typeof h.constructor=="function"&&typeof h.constructor.name=="string"&&Object.defineProperty(b,"constructor",{enumerable:!1,value:h.constructor});for(const v of MC(h))cM(y,v)?b[v]=m.has(h[v])?m.get(h[v]):f(m)(h[v],y[v]):m.has(h[v])||(u+=1,yy(h[v])&&(u+=MC(h[v]).length),f(m)(h[v],y[v]));if(MC(b).length>0)return b}}return h};return{subset:f()(t,a),stripped:u}}if(!Object.prototype.hasOwnProperty.call(globalThis,ax)){const t=new WeakMap,a=Object.create(null),i=[],u=Object.create(null);Object.defineProperty(globalThis,ax,{get:()=>t}),Object.defineProperty(globalThis,GS,{configurable:!0,get:()=>({state:t.get(globalThis[Ax]),matchers:a,customEqualityTesters:i})}),Object.defineProperty(globalThis,oM,{get:()=>u})}function xS(t){return globalThis[ax].get(t)}function OC(t,a){const i=globalThis[ax],u=i.get(a)||{},f=Object.defineProperties(u,{...Object.getOwnPropertyDescriptors(u),...Object.getOwnPropertyDescriptors(t)});i.set(a,f)}let $f=class{constructor(a,i=!1){ot(this,"$$typeof",Symbol.for("jest.asymmetricMatcher"));this.sample=a,this.inverse=i}getMatcherContext(a){return{...xS(a||globalThis[Ax]),equals:Ft,isNot:this.inverse,customTesters:sM(),utils:{...wk(),diff:Ay,stringify:Qi,iterableEquality:El,subsetEquality:My}}}[Symbol.for("chai/inspect")](a){const i=Qi(this,a.depth,{min:!0});return i.length<=a.truncate?i:`${this.toString()}{…}`}};class wj extends $f{constructor(a,i=!1){if(!Do("String",a))throw new Error("Expected is not a string");super(a,i)}asymmetricMatch(a){const i=Do("String",a)&&a.includes(this.sample);return this.inverse?!i:i}toString(){return`String${this.inverse?"Not":""}Containing`}getExpectedType(){return"string"}}class qF extends $f{asymmetricMatch(a){return a!=null}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}}class xj extends $f{constructor(a,i=!1){super(a,i)}getPrototype(a){return Object.getPrototypeOf?Object.getPrototypeOf(a):a.constructor.prototype===a?null:a.constructor.prototype}hasProperty(a,i){return a?Object.prototype.hasOwnProperty.call(a,i)?!0:this.hasProperty(this.getPrototype(a),i):!1}asymmetricMatch(a){if(typeof this.sample!="object")throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let i=!0;const u=this.getMatcherContext();for(const f in this.sample)if(!this.hasProperty(a,f)||!Ft(this.sample[f],a[f],u.customTesters)){i=!1;break}return this.inverse?!i:i}toString(){return`Object${this.inverse?"Not":""}Containing`}getExpectedType(){return"object"}}class Rj extends $f{constructor(a,i=!1){super(a,i)}asymmetricMatch(a){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);const i=this.getMatcherContext(),u=this.sample.length===0||Array.isArray(a)&&this.sample.every(f=>a.some(m=>Ft(f,m,i.customTesters)));return this.inverse?!u:u}toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}}class DF extends $f{constructor(a){if(typeof a>"u")throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");super(a)}fnNameFor(a){if(a.name)return a.name;const u=Function.prototype.toString.call(a).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return u?u[1]:"<anonymous>"}asymmetricMatch(a){return this.sample===String?typeof a=="string"||a instanceof String:this.sample===Number?typeof a=="number"||a instanceof Number:this.sample===Function?typeof a=="function"||a instanceof Function:this.sample===Boolean?typeof a=="boolean"||a instanceof Boolean:this.sample===BigInt?typeof a=="bigint"||a instanceof BigInt:this.sample===Symbol?typeof a=="symbol"||a instanceof Symbol:this.sample===Object?typeof a=="object":a instanceof this.sample}toString(){return"Any"}getExpectedType(){return this.sample===String?"string":this.sample===Number?"number":this.sample===Function?"function":this.sample===Object?"object":this.sample===Boolean?"boolean":this.fnNameFor(this.sample)}toAsymmetricMatcher(){return`Any<${this.fnNameFor(this.sample)}>`}}class Cj extends $f{constructor(a,i=!1){if(!Do("String",a)&&!Do("RegExp",a))throw new Error("Expected is not a String or a RegExp");super(new RegExp(a),i)}asymmetricMatch(a){const i=Do("String",a)&&this.sample.test(a);return this.inverse?!i:i}toString(){return`String${this.inverse?"Not":""}Matching`}getExpectedType(){return"string"}}class Aj extends $f{constructor(i,u=2,f=!1){if(!Do("Number",i))throw new Error("Expected is not a Number");if(!Do("Number",u))throw new Error("Precision is not a Number");super(i);ot(this,"precision");this.inverse=f,this.precision=u}asymmetricMatch(i){if(!Do("Number",i))return!1;let u=!1;return i===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||i===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY?u=!0:u=Math.abs(this.sample-i)<10**-this.precision/2,this.inverse?!u:u}toString(){return`Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return"number"}toAsymmetricMatcher(){return[this.toString(),this.sample,`(${MF("digit",this.precision)})`].join(" ")}}const NF=(t,a)=>{a.addMethod(t.expect,"anything",()=>new qF),a.addMethod(t.expect,"any",i=>new DF(i)),a.addMethod(t.expect,"stringContaining",i=>new wj(i)),a.addMethod(t.expect,"objectContaining",i=>new xj(i)),a.addMethod(t.expect,"arrayContaining",i=>new Rj(i)),a.addMethod(t.expect,"stringMatching",i=>new Cj(i)),a.addMethod(t.expect,"closeTo",(i,u)=>new Aj(i,u)),t.expect.not={stringContaining:i=>new wj(i,!0),objectContaining:i=>new xj(i,!0),arrayContaining:i=>new Rj(i,!0),stringMatching:i=>new Cj(i,!0),closeTo:(i,u)=>new Aj(i,u,!0)}};function _j(t,a,i){const u=t.flag(a,"negate")?"not.":"",f=`${t.flag(a,"_name")}(${i?"expected":""})`,m=t.flag(a,"promise");return`expect(actual)${m?`.${m}`:""}.${u}${f}`}function Mj(t,a,i,u){const f=t;if(f&&a instanceof Promise){a=a.finally(()=>{if(!f.promises)return;const h=f.promises.indexOf(a);h!==-1&&f.promises.splice(h,1)}),f.promises||(f.promises=[]),f.promises.push(a);let m=!1;return f.onFinished??(f.onFinished=[]),f.onFinished.push(()=>{var h;if(!m){const b=(((h=globalThis.__vitest_worker__)==null?void 0:h.onFilterStackTrace)||(v=>v||""))(u.stack);console.warn([`Promise returned by \`${i}\` was not awaited. `,"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. ",`Please remember to await the assertion.
362
+ `,b].join(""))}}),{then(h,y){return m=!0,a.then(h,y)},catch(h){return a.catch(h)},finally(h){return a.finally(h)},[Symbol.toStringTag]:"Promise"}}return a}function Mk(t,a,i){return function(...u){var f;if(a!=="withTest"&&t.flag(this,"_name",a),!t.flag(this,"soft"))return i.apply(this,u);const m=t.flag(this,"vitest-test");if(!m)throw new Error("expect.soft() can only be used inside a test");try{return i.apply(this,u)}catch(h){m.result||(m.result={state:"fail"}),m.result.state="fail",(f=m.result).errors||(f.errors=[]),m.result.errors.push(N6(h))}}}const jF=(t,a)=>{const{AssertionError:i}=t,u=sM();function f(y,b){const v=x=>{const E=Mk(a,x,b);a.addMethod(t.Assertion.prototype,x,E),a.addMethod(globalThis[GS].matchers,x,E)};Array.isArray(y)?y.forEach(x=>v(x)):v(y)}["throw","throws","Throw"].forEach(y=>{a.overwriteMethod(t.Assertion.prototype,y,b=>function(...v){const x=a.flag(this,"promise"),E=a.flag(this,"object"),R=a.flag(this,"negate");if(x==="rejects")a.flag(this,"object",()=>{throw E});else if(x==="resolves"&&typeof E!="function"){if(R)return;{const A=a.flag(this,"message")||"expected promise to throw an error, but it didn't",M={showDiff:!1};throw new i(A,M,a.flag(this,"ssfi"))}}b.apply(this,v)})}),f("withTest",function(y){return a.flag(this,"vitest-test",y),this}),f("toEqual",function(y){const b=a.flag(this,"object"),v=Ft(b,y,[...u,El]);return this.assert(v,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",y,b)}),f("toStrictEqual",function(y){const b=a.flag(this,"object"),v=Ft(b,y,[...u,El,Ej,HA,Tj],!0);return this.assert(v,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",y,b)}),f("toBe",function(y){const b=this._obj,v=Object.is(b,y);let x="";return v||(Ft(b,y,[...u,El,Ej,HA,Tj],!0)?x="toStrictEqual":Ft(b,y,[...u,El])&&(x="toEqual")),this.assert(v,_F(x),"expected #{this} not to be #{exp} // Object.is equality",y,b)}),f("toMatchObject",function(y){const b=this._obj,v=Ft(b,y,[...u,El,My]),x=a.flag(this,"negate"),{subset:E,stripped:R}=OF(b,y,u);if(v&&x||!v&&!x){const A=a.getMessage(this,[v,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",y,E,!1]),M=R===0?A:`${A}
363
+ (${R} matching ${R===1?"property":"properties"} omitted from actual)`;throw new i(M,{showDiff:!0,expected:y,actual:E})}}),f("toMatch",function(y){const b=this._obj;if(typeof b!="string")throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof b}`);return this.assert(typeof y=="string"?b.includes(y):b.match(y),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",y,b)}),f("toContain",function(y){const b=this._obj;if(typeof Node<"u"&&b instanceof Node){if(!(y instanceof Node))throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof y}`);return this.assert(b.contains(y),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",y,b)}if(typeof DOMTokenList<"u"&&b instanceof DOMTokenList){Tu(y,"class name",["string"]);const x=a.flag(this,"negate")?b.value.replace(y,"").trim():`${b.value} ${y}`;return this.assert(b.contains(y),`expected "${b.value}" to contain "${y}"`,`expected "${b.value}" not to contain "${y}"`,x,b.value)}return typeof b=="string"&&typeof y=="string"?this.assert(b.includes(y),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",y,b):(b!=null&&typeof b!="string"&&a.flag(this,"object",Array.from(b)),this.contain(y))}),f("toContainEqual",function(y){const b=a.flag(this,"object"),v=Array.from(b).findIndex(x=>Ft(x,y,u));this.assert(v!==-1,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",y)}),f("toBeTruthy",function(){const y=a.flag(this,"object");this.assert(!!y,"expected #{this} to be truthy","expected #{this} to not be truthy",!0,y)}),f("toBeFalsy",function(){const y=a.flag(this,"object");this.assert(!y,"expected #{this} to be falsy","expected #{this} to not be falsy",!1,y)}),f("toBeGreaterThan",function(y){const b=this._obj;return Tu(b,"actual",["number","bigint"]),Tu(y,"expected",["number","bigint"]),this.assert(b>y,`expected ${b} to be greater than ${y}`,`expected ${b} to be not greater than ${y}`,y,b,!1)}),f("toBeGreaterThanOrEqual",function(y){const b=this._obj;return Tu(b,"actual",["number","bigint"]),Tu(y,"expected",["number","bigint"]),this.assert(b>=y,`expected ${b} to be greater than or equal to ${y}`,`expected ${b} to be not greater than or equal to ${y}`,y,b,!1)}),f("toBeLessThan",function(y){const b=this._obj;return Tu(b,"actual",["number","bigint"]),Tu(y,"expected",["number","bigint"]),this.assert(b<y,`expected ${b} to be less than ${y}`,`expected ${b} to be not less than ${y}`,y,b,!1)}),f("toBeLessThanOrEqual",function(y){const b=this._obj;return Tu(b,"actual",["number","bigint"]),Tu(y,"expected",["number","bigint"]),this.assert(b<=y,`expected ${b} to be less than or equal to ${y}`,`expected ${b} to be not less than or equal to ${y}`,y,b,!1)}),f("toBeNaN",function(){const y=a.flag(this,"object");this.assert(Number.isNaN(y),"expected #{this} to be NaN","expected #{this} not to be NaN",Number.NaN,y)}),f("toBeUndefined",function(){const y=a.flag(this,"object");this.assert(y===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined",void 0,y)}),f("toBeNull",function(){const y=a.flag(this,"object");this.assert(y===null,"expected #{this} to be null","expected #{this} not to be null",null,y)}),f("toBeDefined",function(){const y=a.flag(this,"object");this.assert(typeof y<"u","expected #{this} to be defined","expected #{this} to be undefined",y)}),f("toBeTypeOf",function(y){const b=typeof this._obj,v=y===b;return this.assert(v,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",y,b)}),f("toBeInstanceOf",function(y){return this.instanceOf(y)}),f("toHaveLength",function(y){return this.have.length(y)}),f("toHaveProperty",function(...y){Array.isArray(y[0])&&(y[0]=y[0].map(N=>String(N).replace(/([.[\]])/g,"\\$1")).join("."));const b=this._obj,[v,x]=y,E=()=>Object.prototype.hasOwnProperty.call(b,v)?{value:b[v],exists:!0}:a.getPathInfo(b,v),{value:R,exists:A}=E(),M=A&&(y.length===1||Ft(x,R,u)),q=y.length===1?"":` with value ${a.objDisplay(x)}`;return this.assert(M,`expected #{this} to have property "${v}"${q}`,`expected #{this} to not have property "${v}"${q}`,x,A?R:void 0)}),f("toBeCloseTo",function(y,b=2){const v=this._obj;let x=!1,E=0,R=0;return y===Number.POSITIVE_INFINITY&&v===Number.POSITIVE_INFINITY||y===Number.NEGATIVE_INFINITY&&v===Number.NEGATIVE_INFINITY?x=!0:(E=10**-b/2,R=Math.abs(v-y),x=R<E),this.assert(x,`expected #{this} to be close to #{exp}, received difference is ${R}, but expected ${E}`,`expected #{this} to not be close to #{exp}, received difference is ${R}, but expected ${E}`,y,v,!1)});function m(y){if(!q6(y._obj))throw new TypeError(`${a.inspect(y._obj)} is not a spy or a call to a spy!`)}function h(y){return m(y),y._obj}f(["toHaveBeenCalledTimes","toBeCalledTimes"],function(y){const b=h(this),v=b.getMockName(),x=b.mock.calls.length;return this.assert(x===y,`expected "${v}" to be called #{exp} times, but got ${x} times`,`expected "${v}" to not be called #{exp} times`,y,x,!1)}),f("toHaveBeenCalledOnce",function(){const y=h(this),b=y.getMockName(),v=y.mock.calls.length;return this.assert(v===1,`expected "${b}" to be called once, but got ${v} times`,`expected "${b}" to not be called once`,1,v,!1)}),f(["toHaveBeenCalled","toBeCalled"],function(){const y=h(this),b=y.getMockName(),v=y.mock.calls.length,x=v>0,E=a.flag(this,"negate");let R=a.getMessage(this,[x,`expected "${b}" to be called at least once`,`expected "${b}" to not be called at all, but actually been called ${v} times`,!0,x]);if(x&&E&&(R=Oj(y,R)),x&&E||!x&&!E)throw new i(R)}),f(["toHaveBeenCalledWith","toBeCalledWith"],function(...y){const b=h(this),v=b.getMockName(),x=b.mock.calls.some(A=>Ft(A,y,[...u,El])),E=a.flag(this,"negate"),R=a.getMessage(this,[x,`expected "${v}" to be called with arguments: #{exp}`,`expected "${v}" to not be called with arguments: #{exp}`,y]);if(x&&E||!x&&!E)throw new i(Oj(b,R,y))}),f(["toHaveBeenNthCalledWith","nthCalledWith"],function(y,...b){const v=h(this),x=v.getMockName(),E=v.mock.calls[y-1],R=v.mock.calls.length,A=y<=R;this.assert(Ft(E,b,[...u,El]),`expected ${RS(y)} "${x}" call to have been called with #{exp}${A?"":`, but called only ${R} times`}`,`expected ${RS(y)} "${x}" call to not have been called with #{exp}`,b,E,A)}),f(["toHaveBeenLastCalledWith","lastCalledWith"],function(...y){const b=h(this),v=b.getMockName(),x=b.mock.calls[b.mock.calls.length-1];this.assert(Ft(x,y,[...u,El]),`expected last "${v}" call to have been called with #{exp}`,`expected last "${v}" call to not have been called with #{exp}`,y,x)}),f(["toThrow","toThrowError"],function(y){if(typeof y=="string"||typeof y>"u"||y instanceof RegExp)return this.throws(y===""?/^$/:y);const b=this._obj,v=a.flag(this,"promise"),x=a.flag(this,"negate");let E=null;if(v==="rejects")E=b;else if(v==="resolves"&&typeof b!="function"){if(x)return;{const R=a.flag(this,"message")||"expected promise to throw an error, but it didn't",A={showDiff:!1};throw new i(R,A,a.flag(this,"ssfi"))}}else{let R=!1;try{b()}catch(A){R=!0,E=A}if(!R&&!x){const A=a.flag(this,"message")||"expected function to throw an error, but it didn't",M={showDiff:!1};throw new i(A,M,a.flag(this,"ssfi"))}}if(typeof y=="function"){const R=y.name||y.prototype.constructor.name;return this.assert(E&&E instanceof y,`expected error to be instance of ${R}`,`expected error not to be instance of ${R}`,y,E)}if(y instanceof Error)return this.assert(E&&y.message===E.message,`expected error to have message: ${y.message}`,`expected error not to have message: ${y.message}`,y.message,E&&E.message);if(typeof y=="object"&&"asymmetricMatch"in y&&typeof y.asymmetricMatch=="function"){const R=y;return this.assert(E&&R.asymmetricMatch(E),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",R,E)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof y}"`)}),[{name:"toHaveResolved",condition:y=>y.mock.settledResults.length>0&&y.mock.settledResults.some(({type:b})=>b==="fulfilled"),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:y=>y.mock.calls.length>0&&y.mock.results.some(({type:b})=>b!=="throw"),action:"called"}].forEach(({name:y,condition:b,action:v})=>{f(y,function(){const x=h(this),E=x.getMockName(),R=b(x);this.assert(R,`expected "${E}" to be successfully ${v} at least once`,`expected "${E}" to not be successfully ${v}`,R,!R,!1)})}),[{name:"toHaveResolvedTimes",condition:(y,b)=>y.mock.settledResults.reduce((v,{type:x})=>x==="fulfilled"?++v:v,0)===b,action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:(y,b)=>y.mock.results.reduce((v,{type:x})=>x==="throw"?v:++v,0)===b,action:"called"}].forEach(({name:y,condition:b,action:v})=>{f(y,function(x){const E=h(this),R=E.getMockName(),A=b(E,x);this.assert(A,`expected "${R}" to be successfully ${v} ${x} times`,`expected "${R}" to not be successfully ${v} ${x} times`,`expected resolved times: ${x}`,`received resolved times: ${A}`,!1)})}),[{name:"toHaveResolvedWith",condition:(y,b)=>y.mock.settledResults.some(({type:v,value:x})=>v==="fulfilled"&&Ft(b,x)),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:(y,b)=>y.mock.results.some(({type:v,value:x})=>v==="return"&&Ft(b,x)),action:"return"}].forEach(({name:y,condition:b,action:v})=>{f(y,function(x){const E=h(this),R=b(E,x),A=a.flag(this,"negate");if(R&&A||!R&&!A){const M=E.getMockName(),q=a.getMessage(this,[R,`expected "${M}" to ${v} with: #{exp} at least once`,`expected "${M}" to not ${v} with: #{exp}`,x]),N=v==="return"?E.mock.results:E.mock.settledResults;throw new i(zF(E,N,q,x))}})}),[{name:"toHaveLastResolvedWith",condition:(y,b)=>{const v=y.mock.settledResults[y.mock.settledResults.length-1];return v&&v.type==="fulfilled"&&Ft(v.value,b)},action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:(y,b)=>{const v=y.mock.results[y.mock.results.length-1];return v&&v.type==="return"&&Ft(v.value,b)},action:"return"}].forEach(({name:y,condition:b,action:v})=>{f(y,function(x){const E=h(this),R=v==="return"?E.mock.results:E.mock.settledResults,A=R[R.length-1],M=E.getMockName();this.assert(b(E,x),`expected last "${M}" call to ${v} #{exp}`,`expected last "${M}" call to not ${v} #{exp}`,x,A?.value)})}),[{name:"toHaveNthResolvedWith",condition:(y,b,v)=>{const x=y.mock.settledResults[b-1];return x&&x.type==="fulfilled"&&Ft(x.value,v)},action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:(y,b,v)=>{const x=y.mock.results[b-1];return x&&x.type==="return"&&Ft(x.value,v)},action:"return"}].forEach(({name:y,condition:b,action:v})=>{f(y,function(x,E){const R=h(this),A=R.getMockName(),q=(v==="return"?R.mock.results:R.mock.settledResults)[x-1],N=`${RS(x)} call`;this.assert(b(R,x,E),`expected ${N} "${A}" call to ${v} #{exp}`,`expected ${N} "${A}" call to not ${v} #{exp}`,E,q?.value)})}),f("toSatisfy",function(y,b){return this.be.satisfy(y,b)}),f("withContext",function(y){for(const b in y)a.flag(this,b,y[b]);return this}),a.addProperty(t.Assertion.prototype,"resolves",function(){const b=new Error("resolves");a.flag(this,"promise","resolves"),a.flag(this,"error",b);const v=a.flag(this,"vitest-test"),x=a.flag(this,"object");if(a.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if(typeof x?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof x}'.`);const E=new Proxy(this,{get:(R,A,M)=>{const q=Reflect.get(R,A,M);return typeof q!="function"?q instanceof t.Assertion?E:q:(...N)=>{a.flag(this,"_name",A);const _=x.then(L=>(a.flag(this,"object",L),q.call(this,...N)),L=>{const $=new i(`promise rejected "${a.inspect(L)}" instead of resolving`,{showDiff:!1});throw $.cause=L,$.stack=b.stack.replace(b.message,$.message),$});return Mj(v,_,_j(a,this,!!N.length),b)}}});return E}),a.addProperty(t.Assertion.prototype,"rejects",function(){const b=new Error("rejects");a.flag(this,"promise","rejects"),a.flag(this,"error",b);const v=a.flag(this,"vitest-test"),x=a.flag(this,"object"),E=typeof x=="function"?x():x;if(a.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if(typeof E?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof E}'.`);const R=new Proxy(this,{get:(A,M,q)=>{const N=Reflect.get(A,M,q);return typeof N!="function"?N instanceof t.Assertion?R:N:(..._)=>{a.flag(this,"_name",M);const L=E.then($=>{const I=new i(`promise resolved "${a.inspect($)}" instead of rejecting`,{showDiff:!0,expected:new Error("rejected promise"),actual:$});throw I.stack=b.stack.replace(b.message,I.message),I},$=>(a.flag(this,"object",$),N.call(this,..._)));return Mj(v,L,_j(a,this,!!_.length),b)}}});return R})};function RS(t){const a=t%10,i=t%100;return a===1&&i!==11?`${t}st`:a===2&&i!==12?`${t}nd`:a===3&&i!==13?`${t}rd`:`${t}th`}function Oj(t,a,i){return t.mock.calls&&(a+=la.gray(`
364
+
365
+ Received:
366
+
367
+ ${t.mock.calls.map((u,f)=>{let m=la.bold(` ${RS(f+1)} ${t.getMockName()} call:
368
+
369
+ `);return i?m+=Ay(i,u,{omitAnnotationLines:!0}):m+=Qi(u).split(`
370
+ `).map(h=>` ${h}`).join(`
371
+ `),m+=`
372
+ `,m}).join(`
373
+ `)}`)),a+=la.gray(`
374
+
375
+ Number of calls: ${la.bold(t.mock.calls.length)}
376
+ `),a}function zF(t,a,i,u){return i+=la.gray(`
377
+
378
+ Received:
379
+
380
+ ${a.map((f,m)=>{let h=la.bold(` ${RS(m+1)} ${t.getMockName()} call return:
381
+
382
+ `);return u?h+=Ay(u,f.value,{omitAnnotationLines:!0}):h+=Qi(f).split(`
383
+ `).map(y=>` ${y}`).join(`
384
+ `),h+=`
385
+ `,h}).join(`
386
+ `)}`),i+=la.gray(`
387
+
388
+ Number of calls: ${la.bold(t.mock.calls.length)}
389
+ `),i}function kF(t,a){const i=t._obj,u=Wr.flag(t,"negate"),f=Wr.flag(t,"promise")||"",m={...wk(),diff:Ay,stringify:Qi,iterableEquality:El,subsetEquality:My};return{state:{...xS(a),customTesters:sM(),isNot:u,utils:m,promise:f,equals:Ft,suppressedErrors:[],soft:Wr.flag(t,"soft"),poll:Wr.flag(t,"poll")},isNot:u,obj:i}}class qj extends Error{constructor(a,i,u){super(a),this.actual=i,this.expected=u}}function BF(t,a,i){return(u,f)=>{Object.entries(i).forEach(([m,h])=>{function y(...E){const{state:R,isNot:A,obj:M}=kF(this,a),q=h.call(R,M,...E);if(q&&typeof q=="object"&&q instanceof Promise)return q.then(({pass:I,message:V,actual:z,expected:k})=>{if(I&&A||!I&&!A)throw new qj(V(),z,k)});const{pass:N,message:_,actual:L,expected:$}=q;if(N&&A||!N&&!A)throw new qj(_(),L,$)}const b=Mk(f,m,y);f.addMethod(globalThis[GS].matchers,m,b),f.addMethod(t.Assertion.prototype,m,b);class v extends $f{constructor(R=!1,...A){super(A,R)}asymmetricMatch(R){const{pass:A}=h.call(this.getMatcherContext(a),R,...this.sample);return this.inverse?!A:A}toString(){return`${this.inverse?"not.":""}${m}`}getExpectedType(){return"any"}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(String).join(", ")}>`}}const x=(...E)=>new v(!1,...E);Object.defineProperty(a,m,{configurable:!0,enumerable:!0,value:x,writable:!0}),Object.defineProperty(a.not,m,{configurable:!0,enumerable:!0,value:(...E)=>new v(!0,...E),writable:!0}),Object.defineProperty(globalThis[oM],m,{configurable:!0,enumerable:!0,value:x,writable:!0})})}}const UF=(t,a)=>{a.addMethod(t.expect,"extend",(i,u)=>{Lf(BF(t,i,u))})},Dj="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",LF=new Uint8Array(64),$F=new Uint8Array(128);for(let t=0;t<Dj.length;t++){const a=Dj.charCodeAt(t);LF[t]=a,$F[a]=t}var Nj;(function(t){t[t.Empty=1]="Empty",t[t.Hash=2]="Hash",t[t.Query=3]="Query",t[t.RelativePath=4]="RelativePath",t[t.AbsolutePath=5]="AbsolutePath",t[t.SchemeRelative=6]="SchemeRelative",t[t.Absolute=7]="Absolute"})(Nj||(Nj={}));const HF=/^[A-Za-z]:\//;function PF(t=""){return t&&t.replace(/\\/g,"/").replace(HF,a=>a.toUpperCase())}const IF=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function VF(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const GF=function(...t){t=t.map(u=>PF(u));let a="",i=!1;for(let u=t.length-1;u>=-1&&!i;u--){const f=u>=0?t[u]:VF();!f||f.length===0||(a=`${f}/${a}`,i=jj(f))}return a=YF(a,!i),i&&!jj(a)?`/${a}`:a.length>0?a:"."};function YF(t,a){let i="",u=0,f=-1,m=0,h=null;for(let y=0;y<=t.length;++y){if(y<t.length)h=t[y];else{if(h==="/")break;h="/"}if(h==="/"){if(!(f===y-1||m===1))if(m===2){if(i.length<2||u!==2||i[i.length-1]!=="."||i[i.length-2]!=="."){if(i.length>2){const b=i.lastIndexOf("/");b===-1?(i="",u=0):(i=i.slice(0,b),u=i.length-1-i.lastIndexOf("/")),f=y,m=0;continue}else if(i.length>0){i="",u=0,f=y,m=0;continue}}a&&(i+=i.length>0?"/..":"..",u=2)}else i.length>0?i+=`/${t.slice(f+1,y)}`:i=t.slice(f+1,y),u=y-f-1;f=y,m=0}else h==="."&&m!==-1?++m:m=-1}return i}const jj=function(t){return IF.test(t)},Ok=/^\s*at .*(?:\S:\d+|\(native\))/m,XF=/^(?:eval@)?(?:\[native code\])?$/;function qk(t){if(!t.includes(":"))return[t];const i=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/^\(|\)$/g,""));if(!i)return[t];let u=i[1];if(u.startsWith("async ")&&(u=u.slice(6)),(u.startsWith("http:")||u.startsWith("https:"))&&(u=new URL(u).pathname),u.startsWith("/@fs/")){const f=/^\/@fs\/[a-zA-Z]:\//.test(u);u=u.slice(f?5:4)}return[u,i[2]||void 0,i[3]||void 0]}function FF(t){let a=t.trim();if(XF.test(a)||(a.includes(" > eval")&&(a=a.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!a.includes("@")&&!a.includes(":")))return null;const i=/((.*".+"[^@]*)?[^@]*)(@)/,u=a.match(i),f=u&&u[1]?u[1]:void 0,[m,h,y]=qk(a.replace(i,""));return!m||!h||!y?null:{file:m,method:f||"",line:Number.parseInt(h),column:Number.parseInt(y)}}function Dk(t){const a=t.trim();return Ok.test(a)?QF(a):FF(a)}function QF(t){let a=t.trim();if(!Ok.test(a))return null;a.includes("(eval ")&&(a=a.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let i=a.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const u=i.match(/ (\(.+\)$)/);i=u?i.replace(u[0],""):i;const[f,m,h]=qk(u?u[1]:i);let y=u&&i||"",b=f&&["eval","<anonymous>"].includes(f)?void 0:f;return!b||!m||!h?null:(y.startsWith("async ")&&(y=y.slice(6)),b.startsWith("file://")&&(b=b.slice(7)),b=GF(b),y&&(y=y.replace(/__vite_ssr_import_\d+__\./g,"")),{method:y,file:b,line:Number.parseInt(m),column:Number.parseInt(h)})}const ZF=/^[A-Za-z]:\//;function JF(t=""){return t&&t.replace(/\\/g,"/").replace(ZF,a=>a.toUpperCase())}const KF=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function WF(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const eQ=function(...t){t=t.map(u=>JF(u));let a="",i=!1;for(let u=t.length-1;u>=-1&&!i;u--){const f=u>=0?t[u]:WF();!f||f.length===0||(a=`${f}/${a}`,i=zj(f))}return a=tQ(a,!i),i&&!zj(a)?`/${a}`:a.length>0?a:"."};function tQ(t,a){let i="",u=0,f=-1,m=0,h=null;for(let y=0;y<=t.length;++y){if(y<t.length)h=t[y];else{if(h==="/")break;h="/"}if(h==="/"){if(!(f===y-1||m===1))if(m===2){if(i.length<2||u!==2||i[i.length-1]!=="."||i[i.length-2]!=="."){if(i.length>2){const b=i.lastIndexOf("/");b===-1?(i="",u=0):(i=i.slice(0,b),u=i.length-1-i.lastIndexOf("/")),f=y,m=0;continue}else if(i.length>0){i="",u=0,f=y,m=0;continue}}a&&(i+=i.length>0?"/..":"..",u=2)}else i.length>0?i+=`/${t.slice(f+1,y)}`:i=t.slice(f+1,y),u=y-f-1;f=y,m=0}else h==="."&&m!==-1?++m:m=-1}return i}const zj=function(t){return KF.test(t)};function Nk(t,a){function i(f){const m=function(...h){return a.apply(f,h)};Object.assign(m,a),m.withContext=()=>m.bind(f),m.setContext=(h,y)=>{f[h]=y},m.mergeContext=h=>{Object.assign(f,h)};for(const h of t)Object.defineProperty(m,h,{get(){return i({...f,[h]:!0})}});return m}const u=i({});return u.fn=a,u}function nQ(t){const a=[t.name];let i=t;for(;i?.suite;)i=i.suite,i?.name&&a.unshift(i.name);return i!==t.file&&a.unshift(t.file.name),a}class aQ extends Error{constructor(i,u){super(i);ot(this,"code","VITEST_PENDING");ot(this,"taskId");this.message=i,this.taskId=u.id}}const by={currentSuite:null};function rQ(t){var a;(a=by.currentSuite)==null||a.tasks.push(t)}async function lQ(t,a){const i=by.currentSuite;by.currentSuite=t,await a(),by.currentSuite=i}function iQ(t,a,i=!1){if(a<=0||a===Number.POSITIVE_INFINITY)return t;const{setTimeout:u,clearTimeout:f}=LS();return function(...h){return Promise.race([t(...h),new Promise((y,b)=>{var v;const x=u(()=>{f(x),b(new Error(uQ(i,a)))},a);(v=x.unref)==null||v.call(x)})])}}function oQ(t,a){var i;const u=function(){throw new Error("done() callback is deprecated, use promise instead")};return u.task=t,u.skip=()=>{throw t.pending=!0,new aQ("test is skipped; abort execution",t)},u.onTestFailed=f=>{t.onFailed||(t.onFailed=[]),t.onFailed.push(f)},u.onTestFinished=f=>{t.onFinished||(t.onFinished=[]),t.onFinished.push(f)},((i=a.extendTaskContext)==null?void 0:i.call(a,u))||u}function uQ(t,a){return`${t?"Hook":"Test"} timed out in ${a}ms.
390
+ If this is a long-running ${t?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "${t?"hookTimeout":"testTimeout"}".`}const sQ=new WeakMap,jk=new WeakMap,zk=new WeakMap;function cQ(t,a){sQ.set(t,a)}function fQ(t,a){jk.set(t,a)}function dQ(t){return jk.get(t)}function pQ(t,a){zk.set(t,a)}function hQ(t){return zk.get(t)}function mQ(t,a={}){const i=["auto"],u=Object.entries(t).map(([f,m])=>{const h={value:m};return Array.isArray(m)&&m.length>=2&&yy(m[1])&&Object.keys(m[1]).some(y=>i.includes(y))&&(Object.assign(h,m[1]),h.value=m[0]),h.prop=f,h.isFn=typeof h.value=="function",h});return Array.isArray(a.fixtures)?a.fixtures=a.fixtures.concat(u):a.fixtures=u,u.forEach(f=>{if(f.isFn){const m=Bk(f.value);m.length&&(f.deps=a.fixtures.filter(({prop:h})=>h!==f.prop&&m.includes(h)))}}),a}const qC=new Map,DC=new Map;function yQ(t,a){return i=>{const u=i||a;if(!u)return t({});const f=dQ(u);if(!f?.length)return t(u);const m=Bk(t),h=f.some(({auto:R})=>R);if(!m.length&&!h)return t(u);qC.get(u)||qC.set(u,new Map);const y=qC.get(u);DC.has(u)||DC.set(u,[]);const b=DC.get(u),v=f.filter(({prop:R,auto:A})=>A||m.includes(R)),x=kk(v);if(!x.length)return t(u);async function E(){for(const R of x){if(y.has(R))continue;const A=R.isFn?await gQ(R.value,u,b):R.value;u[R.prop]=A,y.set(R,A),b.unshift(()=>{y.delete(R)})}}return E().then(()=>t(u))}}async function gQ(t,a,i){const u=$3();let f=!1;const m=t(a,async h=>{f=!0,u.resolve(h);const y=$3();i.push(async()=>{y.resolve(),await m}),await y}).catch(h=>{if(!f){u.reject(h);return}throw h});return u}function kk(t,a=new Set,i=[]){return t.forEach(u=>{if(!i.includes(u)){if(!u.isFn||!u.deps){i.push(u);return}if(a.has(u))throw new Error(`Circular fixture dependency detected: ${u.prop} <- ${[...a].reverse().map(f=>f.prop).join(" <- ")}`);a.add(u),kk(u.deps,a,i),i.push(u),a.clear()}}),i}function Bk(t){let a=t.toString();/__async\(this, (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(a)&&(a=a.split("__async(this,")[1]);const i=a.match(/[^(]*\(([^)]*)/);if(!i)return[];const u=kj(i[1]);if(!u.length)return[];let f=u[0];if("__VITEST_FIXTURE_INDEX__"in t&&(f=u[t.__VITEST_FIXTURE_INDEX__],!f))return[];if(!(f.startsWith("{")&&f.endsWith("}")))throw new Error(`The first argument inside a fixture must use object destructuring pattern, e.g. ({ test } => {}). Instead, received "${f}".`);const m=f.slice(1,-1).replace(/\s/g,""),h=kj(m).map(b=>b.replace(/:.*|=.*/g,"")),y=h.at(-1);if(y&&y.startsWith("..."))throw new Error(`Rest parameters are not supported in fixtures, received "${y}".`);return h}function kj(t){const a=[],i=[];let u=0;for(let m=0;m<t.length;m++)if(t[m]==="{"||t[m]==="[")i.push(t[m]==="{"?"}":"]");else if(t[m]===i[i.length-1])i.pop();else if(!i.length&&t[m]===","){const h=t.substring(u,m).trim();h&&a.push(h),u=m+1}const f=t.substring(u).trim();return f&&a.push(f),a}const Aw=xQ();fM(function(t,a,i){Lk().test.fn.call(this,Dp(t),a,i)});let pS,Uk,bQ;function vQ(t,a){if(!t)throw new Error(`Vitest failed to find ${a}. This is a bug in Vitest. Please, open an issue with reproduction.`)}function SQ(){return bQ}function Lk(){const t=by.currentSuite||Uk;return vQ(t,"the current suite"),t}function EQ(){return{beforeAll:[],afterAll:[],beforeEach:[],afterEach:[]}}function zS(t,a){let i={},u=()=>{};if(typeof a=="object"){if(typeof t=="object")throw new TypeError("Cannot use two objects as arguments. Please provide options and a function callback in that order.");i=a}else typeof a=="number"?i={timeout:a}:typeof t=="object"&&(i=t);if(typeof t=="function"){if(typeof a=="function")throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");u=t}else typeof a=="function"&&(u=a);return{options:i,handler:u}}function TQ(t,a=()=>{},i,u,f,m){const h=[],y=[];let b;A();const v=function(N="",_={}){const L={id:"",name:N,suite:void 0,each:_.each,fails:_.fails,context:void 0,type:"custom",file:void 0,retry:_.retry??pS.config.retry,repeats:_.repeats,mode:_.only?"only":_.skip?"skip":_.todo?"todo":"run",meta:_.meta??Object.create(null)},$=_.handler;(_.concurrent||!_.sequential&&pS.config.sequence.concurrent)&&(L.concurrent=!0),u&&(L.shuffle=!0);const I=oQ(L,pS);if(Object.defineProperty(L,"context",{value:I,enumerable:!1}),fQ(I,_.fixtures),$&&cQ(L,iQ(wQ(yQ($,I),L),_?.timeout??pS.config.testTimeout)),pS.config.includeTaskLocation){const V=Error.stackTraceLimit;Error.stackTraceLimit=15;const z=new Error("stacktrace").stack;Error.stackTraceLimit=V;const k=CQ(z,L.each??!1);k&&(L.location=k)}return h.push(L),L},x=fM(function(N,_,L){let{options:$,handler:I}=zS(_,L);typeof m=="object"&&($=Object.assign({},m,$)),$.concurrent=this.concurrent||!this.sequential&&$?.concurrent,$.sequential=this.sequential||!this.concurrent&&$?.sequential;const V=v(Dp(N),{...this,...$,handler:I});V.type="test"}),E={type:"collector",name:t,mode:i,options:m,test:x,tasks:h,collect:q,task:v,clear:M,on:R};function R(N,..._){hQ(b)[N].push(..._)}function A(N){typeof m=="number"&&(m={timeout:m}),b={id:"",type:"suite",name:t,mode:i,each:f,file:void 0,shuffle:u,tasks:[],meta:Object.create(null),concurrent:m?.concurrent},pQ(b,EQ())}function M(){h.length=0,y.length=0,A()}async function q(N){if(!N)throw new TypeError("File is required to collect tasks.");y.length=0,a&&await lQ(E,()=>a(x));const _=[];for(const L of[...y,...h])_.push(L.type==="collector"?await L.collect(N):L);return b.file=N,b.tasks=_,_.forEach(L=>{L.suite=b,L.file=N}),b}return rQ(E),E}function wQ(t,a){return async(...i)=>{if(await t(...i),a.promises){const f=(await Promise.allSettled(a.promises)).map(m=>m.status==="rejected"?m.reason:void 0).filter(Boolean);if(f.length)throw f}}}function xQ(){function t(a,i,u={}){const f=this.only?"only":this.skip?"skip":this.todo?"todo":"run",m=by.currentSuite||Uk;let{options:h,handler:y}=zS(i,u);const b=h.concurrent||this.concurrent||h.sequential===!1,v=h.sequential||this.sequential||h.concurrent===!1;m?.options&&(h={...m.options,...h});const x=b||h.concurrent&&!v,E=v||h.sequential&&!b;return h.concurrent=x&&!E,h.sequential=E&&!x,TQ(Dp(a),y,f,this.shuffle,this.each,h)}return t.each=function(a,...i){const u=this.withContext();return this.setContext("each",!0),Array.isArray(a)&&i.length&&(a=PA(a,i)),(f,m,h)=>{const y=Dp(f),b=a.every(Array.isArray),{options:v,handler:x}=zS(m,h),E=typeof m=="function";a.forEach((R,A)=>{const M=Array.isArray(R)?R:[R];E?b?u(Ys(y,M,A),()=>x(...M),v):u(Ys(y,M,A),()=>x(R),v):b?u(Ys(y,M,A),v,()=>x(...M)):u(Ys(y,M,A),v,()=>x(R))}),this.setContext("each",void 0)}},t.skipIf=a=>a?Aw.skip:Aw,t.runIf=a=>a?Aw:Aw.skip,Nk(["concurrent","sequential","shuffle","skip","only","todo"],t)}function RQ(t,a){const i=t;i.each=function(f,...m){const h=this.withContext();return this.setContext("each",!0),Array.isArray(f)&&m.length&&(f=PA(f,m)),(y,b,v)=>{const x=Dp(y),E=f.every(Array.isArray),{options:R,handler:A}=zS(b,v),M=typeof b=="function";f.forEach((q,N)=>{const _=Array.isArray(q)?q:[q];M?E?h(Ys(x,_,N),()=>A(..._),R):h(Ys(x,_,N),()=>A(q),R):E?h(Ys(x,_,N),R,()=>A(..._)):h(Ys(x,_,N),R,()=>A(q))}),this.setContext("each",void 0)}},i.for=function(f,...m){const h=this.withContext();return Array.isArray(f)&&m.length&&(f=PA(f,m)),(y,b,v)=>{const x=Dp(y),{options:E,handler:R}=zS(b,v);f.forEach((A,M)=>{const q=N=>R(A,N);q.__VITEST_FIXTURE_INDEX__=1,q.toString=()=>R.toString(),h(Ys(x,VY(A),M),E,q)})}},i.skipIf=function(f){return f?this.skip:this},i.runIf=function(f){return f?this:this.skip},i.extend=function(f){const m=mQ(f,a);return fM(function(y,b,v){Lk().test.fn.call(this,Dp(y),b,v)},m)};const u=Nk(["concurrent","sequential","skip","only","todo","fails"],i);return a&&u.mergeContext(a),u}function fM(t,a){return RQ(t,a)}function Dp(t){return typeof t=="string"?t:t instanceof Function?t.name||"<anonymous>":String(t)}function Ys(t,a,i){t.includes("%#")&&(t=t.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,`${i}`).replace(/__vitest_escaped_%__/g,"%%"));const u=t.split("%").length-1;t.includes("%f")&&(t.match(/%f/g)||[]).forEach((h,y)=>{if(FY(a[y])||Object.is(a[y],-0)){let b=0;t=t.replace(/%f/g,v=>(b++,b===y+1?"-%f":v))}});let f=f6(t,...a.slice(0,u));return yy(a[0])&&(f=f.replace(/\$([$\w.]+)/g,(m,h)=>{var y,b;return HY(XY(a[0],h),{truncate:(b=(y=void 0)==null?void 0:y.chaiConfig)==null?void 0:b.truncateThreshold})})),f}function PA(t,a){const i=t.join("").trim().replace(/ /g,"").split(`
391
+ `).map(f=>f.split("|"))[0],u=[];for(let f=0;f<Math.floor(a.length/i.length);f++){const m={};for(let h=0;h<i.length;h++)m[i[h]]=a[f*i.length+h];u.push(m)}return u}function CQ(t,a){const i=t.split(`
392
+ `).slice(1);for(const u of i){const f=Dk(u);if(f&&f.file===SQ())return{line:f.line,column:a?f.column+1:f.column}}}globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;const AQ="__vitest_worker__";function YS(){const t=globalThis[AQ];if(!t){const a=`Vitest failed to access its internal state.
393
+
394
+ One of the following is possible:
395
+ - "vitest" is imported directly without running "vitest" command
396
+ - "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)
397
+ - Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues
398
+ `;throw new Error(a)}return t}function _Q(){return YS()?.environment.name}function $k(){return typeof process<"u"&&!!process.send}function MQ(t,a=!1){const i=[/\/vitest\/dist\//,/\/vite-node\/dist\//,/vitest-virtual-\w+\/dist/,/@vitest\/dist/,...a?[]:[/^mock:/]];t.forEach((u,f)=>{i.some(m=>m.test(f))||t.invalidateModule(u)})}function OQ(){const{setTimeout:t}=LS();return new Promise(a=>t(a,0))}async function Hk(){await OQ();const t=YS(),a=[];let i=0;for(const u of t.moduleCache.values())u.promise&&!u.evaluated&&a.push(u.promise),u.resolving&&i++;!a.length&&!i||(await Promise.allSettled(a),await Hk())}var IA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qQ(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}const DQ=44,Bj="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",NQ=new Uint8Array(64),Pk=new Uint8Array(128);for(let t=0;t<Bj.length;t++){const a=Bj.charCodeAt(t);NQ[t]=a,Pk[a]=t}function hS(t,a){let i=0,u=0,f=0;do{const h=t.next();f=Pk[h],i|=(f&31)<<u,u+=5}while(f&32);const m=i&1;return i>>>=1,m&&(i=-2147483648|-i),a+i}function Uj(t,a){return t.pos>=a?!1:t.peek()!==DQ}class jQ{constructor(a){this.pos=0,this.buffer=a}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(a){const{buffer:i,pos:u}=this,f=i.indexOf(a,u);return f===-1?i.length:f}}function zQ(t){const{length:a}=t,i=new jQ(t),u=[];let f=0,m=0,h=0,y=0,b=0;do{const v=i.indexOf(";"),x=[];let E=!0,R=0;for(f=0;i.pos<v;){let A;f=hS(i,f),f<R&&(E=!1),R=f,Uj(i,v)?(m=hS(i,m),h=hS(i,h),y=hS(i,y),Uj(i,v)?(b=hS(i,b),A=[f,m,h,y,b]):A=[f,m,h,y]):A=[f],x.push(A),i.pos++}E||kQ(x),u.push(x),i.pos=v+1}while(i.pos<=a);return u}function kQ(t){t.sort(BQ)}function BQ(t,a){return t[0]-a[0]}const UQ=/^[\w+.-]+:\/\//,LQ=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,$Q=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var ma;(function(t){t[t.Empty=1]="Empty",t[t.Hash=2]="Hash",t[t.Query=3]="Query",t[t.RelativePath=4]="RelativePath",t[t.AbsolutePath=5]="AbsolutePath",t[t.SchemeRelative=6]="SchemeRelative",t[t.Absolute=7]="Absolute"})(ma||(ma={}));function HQ(t){return UQ.test(t)}function PQ(t){return t.startsWith("//")}function Ik(t){return t.startsWith("/")}function IQ(t){return t.startsWith("file:")}function Lj(t){return/^[.?#]/.test(t)}function _w(t){const a=LQ.exec(t);return Vk(a[1],a[2]||"",a[3],a[4]||"",a[5]||"/",a[6]||"",a[7]||"")}function VQ(t){const a=$Q.exec(t),i=a[2];return Vk("file:","",a[1]||"","",Ik(i)?i:"/"+i,a[3]||"",a[4]||"")}function Vk(t,a,i,u,f,m,h){return{scheme:t,user:a,host:i,port:u,path:f,query:m,hash:h,type:ma.Absolute}}function $j(t){if(PQ(t)){const i=_w("http:"+t);return i.scheme="",i.type=ma.SchemeRelative,i}if(Ik(t)){const i=_w("http://foo.com"+t);return i.scheme="",i.host="",i.type=ma.AbsolutePath,i}if(IQ(t))return VQ(t);if(HQ(t))return _w(t);const a=_w("http://foo.com/"+t);return a.scheme="",a.host="",a.type=t?t.startsWith("?")?ma.Query:t.startsWith("#")?ma.Hash:ma.RelativePath:ma.Empty,a}function GQ(t){if(t.endsWith("/.."))return t;const a=t.lastIndexOf("/");return t.slice(0,a+1)}function YQ(t,a){Gk(a,a.type),t.path==="/"?t.path=a.path:t.path=GQ(a.path)+t.path}function Gk(t,a){const i=a<=ma.RelativePath,u=t.path.split("/");let f=1,m=0,h=!1;for(let b=1;b<u.length;b++){const v=u[b];if(!v){h=!0;continue}if(h=!1,v!=="."){if(v===".."){m?(h=!0,m--,f--):i&&(u[f++]=v);continue}u[f++]=v,m++}}let y="";for(let b=1;b<f;b++)y+="/"+u[b];(!y||h&&!y.endsWith("/.."))&&(y+="/"),t.path=y}function XQ(t,a){if(!t&&!a)return"";const i=$j(t);let u=i.type;if(a&&u!==ma.Absolute){const m=$j(a),h=m.type;switch(u){case ma.Empty:i.hash=m.hash;case ma.Hash:i.query=m.query;case ma.Query:case ma.RelativePath:YQ(i,m);case ma.AbsolutePath:i.user=m.user,i.host=m.host,i.port=m.port;case ma.SchemeRelative:i.scheme=m.scheme}h>u&&(u=h)}Gk(i,u);const f=i.query+i.hash;switch(u){case ma.Hash:case ma.Query:return f;case ma.RelativePath:{const m=i.path.slice(1);return m?Lj(a||t)&&!Lj(m)?"./"+m+f:m+f:f||"."}case ma.AbsolutePath:return i.path+f;default:return i.scheme+"//"+i.user+i.host+i.port+i.path+f}}function Hj(t,a){return a&&!a.endsWith("/")&&(a+="/"),XQ(t,a)}function FQ(t){if(!t)return"";const a=t.lastIndexOf("/");return t.slice(0,a+1)}const zf=0,QQ=1,ZQ=2,JQ=3,KQ=4;function WQ(t,a){const i=Pj(t,0);if(i===t.length)return t;a||(t=t.slice());for(let u=i;u<t.length;u=Pj(t,u+1))t[u]=tZ(t[u],a);return t}function Pj(t,a){for(let i=a;i<t.length;i++)if(!eZ(t[i]))return i;return t.length}function eZ(t){for(let a=1;a<t.length;a++)if(t[a][zf]<t[a-1][zf])return!1;return!0}function tZ(t,a){return a||(t=t.slice()),t.sort(nZ)}function nZ(t,a){return t[zf]-a[zf]}let lx=!1;function aZ(t,a,i,u){for(;i<=u;){const f=i+(u-i>>1),m=t[f][zf]-a;if(m===0)return lx=!0,f;m<0?i=f+1:u=f-1}return lx=!1,i-1}function rZ(t,a,i){for(let u=i+1;u<t.length&&t[u][zf]===a;i=u++);return i}function lZ(t,a,i){for(let u=i-1;u>=0&&t[u][zf]===a;i=u--);return i}function iZ(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function oZ(t,a,i,u){const{lastKey:f,lastNeedle:m,lastIndex:h}=i;let y=0,b=t.length-1;if(u===f){if(a===m)return lx=h!==-1&&t[h][zf]===a,h;a>=m?y=h===-1?0:h:b=h}return i.lastKey=u,i.lastNeedle=a,i.lastIndex=aZ(t,a,y,b)}const uZ="`line` must be greater than 0 (lines start at line 1)",sZ="`column` must be greater than or equal to 0 (columns start at column 0)",Ij=-1,cZ=1;class fZ{constructor(a,i){const u=typeof a=="string";if(!u&&a._decodedMemo)return a;const f=u?JSON.parse(a):a,{version:m,file:h,names:y,sourceRoot:b,sources:v,sourcesContent:x}=f;this.version=m,this.file=h,this.names=y||[],this.sourceRoot=b,this.sources=v,this.sourcesContent=x,this.ignoreList=f.ignoreList||f.x_google_ignoreList||void 0;const E=Hj(b||"",FQ(i));this.resolvedSources=v.map(A=>Hj(A||"",E));const{mappings:R}=f;typeof R=="string"?(this._encoded=R,this._decoded=void 0):(this._encoded=void 0,this._decoded=WQ(R,u)),this._decodedMemo=iZ(),this._bySources=void 0,this._bySourceMemos=void 0}}function dZ(t){var a;return(a=t)._decoded||(a._decoded=zQ(t._encoded))}function pZ(t,a){let{line:i,column:u,bias:f}=a;if(i--,i<0)throw new Error(uZ);if(u<0)throw new Error(sZ);const m=dZ(t);if(i>=m.length)return Mw(null,null,null,null);const h=m[i],y=hZ(h,t._decodedMemo,i,u,f||cZ);if(y===-1)return Mw(null,null,null,null);const b=h[y];if(b.length===1)return Mw(null,null,null,null);const{names:v,resolvedSources:x}=t;return Mw(x[b[QQ]],b[ZQ]+1,b[JQ],b.length===5?v[b[KQ]]:null)}function Mw(t,a,i,u){return{source:t,line:a,column:i,name:u}}function hZ(t,a,i,u,f){let m=oZ(t,u,a,i);return lx?m=(f===Ij?rZ:lZ)(t,u,m):f===Ij&&m++,m===-1||m===t.length?-1:m}function Yk(t){return t!=null}function mZ(t){return t===null||typeof t!="function"&&typeof t!="object"}function Bw(t){return t!=null&&typeof t=="object"&&!Array.isArray(t)}function yZ(t){let a=-1,i=null,u=0,f=0,m=null;for(;a<=t.length;){m=t[a],a++;const h=t[a];if((h==='"'||h==="'"||h==="`")&&m!=="\\"&&(i===h?i=null:i||(i=h)),i||(h==="("&&u++,h===")"&&f++),u&&f&&u===f)return a}return null}const Xk=/^\s*at .*(?:\S:\d+|\(native\))/m,gZ=/^(?:eval@)?(?:\[native code\])?$/,bZ=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function Fk(t){if(!t.includes(":"))return[t];const i=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/^\(|\)$/g,""));if(!i)return[t];let u=i[1];if(u.startsWith("async ")&&(u=u.slice(6)),(u.startsWith("http:")||u.startsWith("https:"))&&(u=new URL(u).pathname),u.startsWith("/@fs/")){const f=/^\/@fs\/[a-zA-Z]:\//.test(u);u=u.slice(f?5:4)}return[u,i[2]||void 0,i[3]||void 0]}function vZ(t){let a=t.trim();if(gZ.test(a)||(a.includes(" > eval")&&(a=a.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!a.includes("@")&&!a.includes(":")))return null;const i=/((.*".+"[^@]*)?[^@]*)(@)/,u=a.match(i),f=u&&u[1]?u[1]:void 0,[m,h,y]=Fk(a.replace(i,""));return!m||!h||!y?null:{file:m,method:f||"",line:Number.parseInt(h),column:Number.parseInt(y)}}function SZ(t){let a=t.trim();if(!Xk.test(a))return null;a.includes("(eval ")&&(a=a.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let i=a.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const u=i.match(/ (\(.+\)$)/);i=u?i.replace(u[0],""):i;const[f,m,h]=Fk(u?u[1]:i);let y=u&&i||"",b=f&&["eval","<anonymous>"].includes(f)?void 0:f;return!b||!m||!h?null:(y.startsWith("async ")&&(y=y.slice(6)),b.startsWith("file://")&&(b=b.slice(7)),b=eQ(b),y&&(y=y.replace(/__vite_ssr_import_\d+__\./g,"")),{method:y,file:b,line:Number.parseInt(m),column:Number.parseInt(h)})}function EZ(t,a={}){const{ignoreStackEntries:i=bZ}=a;let u=Xk.test(t)?wZ(t):TZ(t);return i.length&&(u=u.filter(f=>!i.some(m=>f.file.match(m)))),u.map(f=>{var m;a.getFileName&&(f.file=a.getFileName(f.file));const h=(m=a.getSourceMap)==null?void 0:m.call(a,f.file);if(!h||typeof h!="object"||!h.version)return f;const y=new fZ(h),{line:b,column:v}=pZ(y,f);return b!=null&&v!=null?{...f,line:b,column:v}:f})}function TZ(t){return t.split(`
399
+ `).map(a=>vZ(a)).filter(Yk)}function wZ(t){return t.split(`
400
+ `).map(a=>SZ(a)).filter(Yk)}function xZ(t,a={}){if(!t||mZ(t))return[];if(t.stacks)return t.stacks;const i=t.stack||t.stackStr||"";let u=EZ(i,a);return a.frameFilter&&(u=u.filter(f=>a.frameFilter(t,f)!==!1)),t.stacks=u,u}let RZ=()=>"Promise{…}";try{const{getPromiseDetails:t,kPending:a,kRejected:i}=process.binding("util");Array.isArray(t(Promise.resolve()))&&(RZ=(u,f)=>{const[m,h]=t(u);return m===a?"Promise{<pending>}":`Promise${m===i?"!":""}{${f.inspect(h,f)}}`})}catch{}let Vj=!1;try{const t=require("util");Vj=t.inspect?t.inspect.custom:!1}catch{Vj=!1}function CZ(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var NC,Gj;function AZ(){if(Gj)return NC;Gj=1;var t,a,i,u,f,m,h,y,b,v,x,E,R,A,M,q,N,_,L;return R=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,E=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,t=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,M=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,x=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,q=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,L=/[\t\v\f\ufeff\p{Zs}]+/yu,y=/\r?\n|[\r\u2028\u2029]/y,b=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,A=/\/\/.*/y,i=/[<>.:={}]|\/(?![\/*])/y,a=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,u=/(['"])(?:(?!\1)[^])*(\1)?/y,f=/[^<>{}]+/y,_=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,N=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,m=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,h=/^(?:return|throw|yield)$/,v=RegExp(y.source),NC=function*($,{jsx:I=!1}={}){var V,z,k,U,F,H,J,ve,se,Se,ke,P,ue,te;for({length:H}=$,U=0,F="",te=[{tag:"JS"}],V=[],ke=0,P=!1;U<H;){switch(ve=te[te.length-1],ve.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if($[U]==="/"&&(_.test(F)||m.test(F))&&(R.lastIndex=U,J=R.exec($))){U=R.lastIndex,F=J[0],P=!0,yield{type:"RegularExpressionLiteral",value:J[0],closed:J[1]!==void 0&&J[1]!=="\\"};continue}if(E.lastIndex=U,J=E.exec($)){switch(ue=J[0],se=E.lastIndex,Se=ue,ue){case"(":F==="?NonExpressionParenKeyword"&&te.push({tag:"JSNonExpressionParen",nesting:ke}),ke++,P=!1;break;case")":ke--,P=!0,ve.tag==="JSNonExpressionParen"&&ke===ve.nesting&&(te.pop(),Se="?NonExpressionParenEnd",P=!1);break;case"{":E.lastIndex=0,k=!N.test(F)&&(_.test(F)||m.test(F)),V.push(k),P=!1;break;case"}":switch(ve.tag){case"InterpolationInTemplate":if(V.length===ve.nesting){q.lastIndex=U,J=q.exec($),U=q.lastIndex,F=J[0],J[1]==="${"?(F="?InterpolationInTemplate",P=!1,yield{type:"TemplateMiddle",value:J[0]}):(te.pop(),P=!0,yield{type:"TemplateTail",value:J[0],closed:J[1]==="`"});continue}break;case"InterpolationInJSX":if(V.length===ve.nesting){te.pop(),U+=1,F="}",yield{type:"JSXPunctuator",value:"}"};continue}}P=V.pop(),Se=P?"?ExpressionBraceEnd":"}";break;case"]":P=!0;break;case"++":case"--":Se=P?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(I&&(_.test(F)||m.test(F))){te.push({tag:"JSXTag"}),U+=1,F="<",yield{type:"JSXPunctuator",value:ue};continue}P=!1;break;default:P=!1}U=se,F=Se,yield{type:"Punctuator",value:ue};continue}if(t.lastIndex=U,J=t.exec($)){switch(U=t.lastIndex,Se=J[0],J[0]){case"for":case"if":case"while":case"with":F!=="."&&F!=="?."&&(Se="?NonExpressionParenKeyword")}F=Se,P=!m.test(J[0]),yield{type:J[1]==="#"?"PrivateIdentifier":"IdentifierName",value:J[0]};continue}if(M.lastIndex=U,J=M.exec($)){U=M.lastIndex,F=J[0],P=!0,yield{type:"StringLiteral",value:J[0],closed:J[2]!==void 0};continue}if(x.lastIndex=U,J=x.exec($)){U=x.lastIndex,F=J[0],P=!0,yield{type:"NumericLiteral",value:J[0]};continue}if(q.lastIndex=U,J=q.exec($)){U=q.lastIndex,F=J[0],J[1]==="${"?(F="?InterpolationInTemplate",te.push({tag:"InterpolationInTemplate",nesting:V.length}),P=!1,yield{type:"TemplateHead",value:J[0]}):(P=!0,yield{type:"NoSubstitutionTemplate",value:J[0],closed:J[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(i.lastIndex=U,J=i.exec($)){switch(U=i.lastIndex,Se=J[0],J[0]){case"<":te.push({tag:"JSXTag"});break;case">":te.pop(),F==="/"||ve.tag==="JSXTagEnd"?(Se="?JSX",P=!0):te.push({tag:"JSXChildren"});break;case"{":te.push({tag:"InterpolationInJSX",nesting:V.length}),Se="?InterpolationInJSX",P=!1;break;case"/":F==="<"&&(te.pop(),te[te.length-1].tag==="JSXChildren"&&te.pop(),te.push({tag:"JSXTagEnd"}))}F=Se,yield{type:"JSXPunctuator",value:J[0]};continue}if(a.lastIndex=U,J=a.exec($)){U=a.lastIndex,F=J[0],yield{type:"JSXIdentifier",value:J[0]};continue}if(u.lastIndex=U,J=u.exec($)){U=u.lastIndex,F=J[0],yield{type:"JSXString",value:J[0],closed:J[2]!==void 0};continue}break;case"JSXChildren":if(f.lastIndex=U,J=f.exec($)){U=f.lastIndex,F=J[0],yield{type:"JSXText",value:J[0]};continue}switch($[U]){case"<":te.push({tag:"JSXTag"}),U++,F="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":te.push({tag:"InterpolationInJSX",nesting:V.length}),U++,F="?InterpolationInJSX",P=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(L.lastIndex=U,J=L.exec($)){U=L.lastIndex,yield{type:"WhiteSpace",value:J[0]};continue}if(y.lastIndex=U,J=y.exec($)){U=y.lastIndex,P=!1,h.test(F)&&(F="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:J[0]};continue}if(b.lastIndex=U,J=b.exec($)){U=b.lastIndex,v.test(J[0])&&(P=!1,h.test(F)&&(F="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:J[0],closed:J[1]!==void 0};continue}if(A.lastIndex=U,J=A.exec($)){U=A.lastIndex,P=!1,yield{type:"SingleLineComment",value:J[0]};continue}z=String.fromCodePoint($.codePointAt(U)),U+=z.length,F=z,P=!1,yield{type:ve.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:z}}},NC}AZ();var Qk={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(Qk.keyword);new Set(Qk.strict);var _Z={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},MZ=Object.entries(_Z);function dM(t){return String(t)}dM.open="";dM.close="";function OZ(t=!1){let a=typeof process<"u"?process:void 0,i=a?.env||{},u=a?.argv||[];return!("NO_COLOR"in i||u.includes("--no-color"))&&("FORCE_COLOR"in i||u.includes("--color")||a?.platform==="win32"||t&&i.TERM!=="dumb"||"CI"in i)||typeof window<"u"&&!!window.chrome}function qZ(t=!1){let a=OZ(t),i=(h,y,b,v)=>{let x="",E=0;do x+=h.substring(E,v)+b,E=v+y.length,v=h.indexOf(y,E);while(~v);return x+h.substring(E)},u=(h,y,b=h)=>{let v=x=>{let E=String(x),R=E.indexOf(y,h.length);return~R?h+i(E,y,b,R)+y:h+E+y};return v.open=h,v.close=y,v},f={isColorSupported:a},m=h=>`\x1B[${h}m`;for(let[h,y]of MZ)f[h]=a?u(m(y[0]),m(y[1]),y[2]):dM;return f}qZ(!1);const pM=/\r?\n/;function DZ(t,a,i){const u=t.split(pM),f=/\r\n/.test(t)?2:1;let m=0;if(a>u.length)return t.length;for(let h=0;h<a-1;h++)m+=u[h].length+f;return m+i}function NZ(t,a){if(a>t.length)throw new Error(`offset is longer than source length! offset ${a} > length ${t.length}`);const i=t.split(pM),u=/\r\n/.test(t)?2:1;let f=0,m=0;for(;m<i.length;m++){const h=i[m].length+u;if(f+h>=a)break;f+=h}return m+1}async function jZ(t,a){const i=(await Promise.resolve().then(()=>require("./magic-string.es-B81Zo59j.cjs"))).default,u=new Set(a.map(f=>f.file));await Promise.all(Array.from(u).map(async f=>{const m=a.filter(v=>v.file===f),h=await t.readSnapshotFile(f),y=new i(h);for(const v of m){const x=DZ(h,v.line,v.column);$Z(h,y,x,v.snapshot)}const b=y.toString();b!==h&&await t.saveSnapshotFile(f,b)}))}const zZ=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*\{/;function kZ(t,a,i,u){let f=t.slice(i);const m=zZ.exec(f);if(!m)return!1;f=f.slice(m.index);let h=yZ(f);if(h===null)return!1;h+=i+m.index;const y=i+m.index+m[0].length,b=BZ(t,y),v=`, ${Zk(u,t,i)}`;return b===h?a.appendLeft(h,v):a.overwrite(b,h,v),!0}function BZ(t,a){let i=1,u=0;for(;i!==u&&a<t.length;){const f=t[a++];f==="{"?i++:f==="}"&&u++}return a}function Zk(t,a,i){const u=NZ(a,i),m=a.split(pM)[u-1].match(/^\s*/)[0]||"",h=m.includes(" ")?`${m} `:`${m} `,y=t.trim().replace(/\\/g,"\\\\").split(/\n/g),b=y.length<=1,v="`";return b?`${v}${y.join(`
401
+ `).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}${v}`:`${v}
402
+ ${y.map(x=>x?h+x:"").join(`
403
+ `).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}
404
+ ${m}${v}`}const Yj="toMatchInlineSnapshot",Xj="toThrowErrorMatchingInlineSnapshot";function UZ(t,a){const i=a-Yj.length;if(t.slice(i,a)===Yj)return{code:t.slice(i),index:i};const u=a-Xj.length;return t.slice(a-u,a)===Xj?{code:t.slice(a-u),index:a-u}:{code:t.slice(a),index:a}}const LZ=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*[\w$]*(['"`)])/;function $Z(t,a,i,u){const{code:f,index:m}=UZ(t,i),h=LZ.exec(f),y=/toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot/.exec(f);if(!h||h.index!==y?.index)return kZ(t,a,m,u);const b=h[1],v=m+h.index+h[0].length,x=Zk(u,t,m);if(b===")")return a.appendRight(v-1,x),!0;const R=new RegExp(`(?:^|[^\\\\])${b}`).exec(t.slice(v));if(!R)return!1;const A=v+R.index+R[0].length;return a.overwrite(v-1,A,x),!0}const HZ=/^([^\S\n]*)\S/m;function Fj(t){const a=t.match(HZ);if(!a||!a[1])return t;const i=a[1],u=t.split(/\n/g);if(u.length<=2||u[0].trim()!==""||u[u.length-1].trim()!=="")return t;for(let f=1;f<u.length-1;f++)if(u[f]!==""){if(u[f].indexOf(i)!==0)return t;u[f]=u[f].substring(i.length)}return u[u.length-1]="",t=u.join(`
405
+ `),t}async function PZ(t,a){await Promise.all(a.map(async i=>{i.readonly||await t.saveSnapshotFile(i.file,i.snapshot)}))}var jC={exports:{}},Qj;function IZ(){if(Qj)return jC.exports;Qj=1;var t=function(a,i){var u,f,m=1,h=0,y=0,b=String.alphabet;function v(x,E,R){if(R){for(u=E;R=v(x,u),R<76&&R>65;)++u;return+x.slice(E-1,u)}return R=b&&b.indexOf(x.charAt(E)),R>-1?R+76:(R=x.charCodeAt(E)||0,R<45||R>127?R:R<46?65:R<48?R-1:R<58?R+18:R<65?R-11:R<91?R+11:R<97?R-37:R<123?R+5:R-63)}if((a+="")!=(i+="")){for(;m;)if(f=v(a,h++),m=v(i,y++),f<76&&m<76&&f>66&&m>66&&(f=v(a,h,h),m=v(i,y,h=u),y=u),f!=m)return f<m?-1:1}return 0};try{jC.exports=t}catch{String.naturalCompare=t}return jC.exports}var VZ=IZ(),GZ=CZ(VZ);const YZ=(t,a,i,u,f,m)=>{const h=t.getMockName(),y=h==="vi.fn()"?"":` ${h}`;let b="";if(t.mock.calls.length!==0){const v=i+a.indent;b=` {${a.spacingOuter}${v}"calls": ${m(t.mock.calls,a,v,u,f)}${a.min?", ":","}${a.spacingOuter}${v}"results": ${m(t.mock.results,a,v,u,f)}${a.min?"":","}${a.spacingOuter}${i}}`}return`[MockFunction${y}]${b}`},XZ=t=>t&&!!t._isMockFunction,FZ={serialize:YZ,test:XZ},{DOMCollection:QZ,DOMElement:ZZ,Immutable:JZ,ReactElement:KZ,ReactTestComponent:WZ,AsymmetricMatcher:eJ}=T_;let VA=[WZ,KZ,ZZ,QZ,JZ,eJ,FZ];function tJ(t){VA=[t].concat(VA)}function nJ(){return VA}function aJ(t,a){return`${t} ${a}`}function rJ(t){if(!/ \d+$/.test(t))throw new Error("Snapshot keys must end with a number.");return t.replace(/ \d+$/,"")}function lJ(t,a){const i=a.updateSnapshot,u=Object.create(null);let f="",m=!1;if(t!=null)try{f=t,new Function("exports",f)(u)}catch{}return(i==="all"||i==="new")&&f&&(m=!0),{data:u,dirty:m}}function iJ(t){return t.includes(`
406
+ `)?`
407
+ ${t}
408
+ `:t}function Zj(t){return t.length>2&&t.startsWith(`
409
+ `)&&t.endsWith(`
410
+ `)?t.slice(1,-1):t}const oJ=!0,uJ=!1;function sJ(t,a=2,i={}){return hM(qo(t,{escapeRegex:oJ,indent:a,plugins:nJ(),printFunctionName:uJ,...i}))}function cJ(t){return t.replace(/`|\\|\$\{/g,"\\$&")}function Jj(t){return`\`${cJ(t)}\``}function hM(t){return t.replace(/\r\n|\r/g,`
411
+ `)}async function fJ(t,a,i){const u=Object.keys(a).sort(GZ).map(y=>`exports[${Jj(y)}] = ${Jj(hM(a[y]))};`),f=`${t.getHeader()}
412
+
413
+ ${u.join(`
414
+
415
+ `)}
416
+ `,m=await t.readSnapshotFile(i);m!=null&&m===f||await t.saveSnapshotFile(i,f)}function Kj(t){function a(){var f,m;const h=/^( +)\}\s+$/m.exec(t||""),y=(f=h?.[1])==null?void 0:f.length;if(y)return y;const b=/^\n( +)"/.exec(t||"");return((m=b?.[1])==null?void 0:m.length)||0}const i=a();let u=t?.trim();return i&&(u=u?.replace(new RegExp(`^${" ".repeat(i)}`,"gm"),"").replace(/ +\}$/,"}")),u}function GA(t=[],a=[]){const i=Array.from(t);return a.forEach((u,f)=>{const m=i[f];Array.isArray(t[f])?i[f]=GA(t[f],u):Bw(m)?i[f]=mM(t[f],u):i[f]=u}),i}function mM(t,a){if(Bw(t)&&Bw(a)){const i={...t};return Object.keys(a).forEach(u=>{Bw(a[u])&&!a[u].$$typeof?u in t?i[u]=mM(t[u],a[u]):Object.assign(i,{[u]:a[u]}):Array.isArray(a[u])?i[u]=GA(t[u],a[u]):Object.assign(i,{[u]:a[u]})}),i}else if(Array.isArray(t)&&Array.isArray(a))return GA(t,a);return t}class yM{constructor(a,i,u,f){ot(this,"_counters");ot(this,"_dirty");ot(this,"_updateSnapshot");ot(this,"_snapshotData");ot(this,"_initialData");ot(this,"_inlineSnapshots");ot(this,"_inlineSnapshotStacks");ot(this,"_rawSnapshots");ot(this,"_uncheckedKeys");ot(this,"_snapshotFormat");ot(this,"_environment");ot(this,"_fileExists");ot(this,"added");ot(this,"expand");ot(this,"matched");ot(this,"unmatched");ot(this,"updated");this.testFilePath=a,this.snapshotPath=i;const{data:m,dirty:h}=lJ(u,f);this._fileExists=u!=null,this._initialData=m,this._snapshotData=m,this._dirty=h,this._inlineSnapshots=[],this._inlineSnapshotStacks=[],this._rawSnapshots=[],this._uncheckedKeys=new Set(Object.keys(this._snapshotData)),this._counters=new Map,this.expand=f.expand||!1,this.added=0,this.matched=0,this.unmatched=0,this._updateSnapshot=f.updateSnapshot,this.updated=0,this._snapshotFormat={printBasicPrototype:!1,escapeString:!1,...f.snapshotFormat},this._environment=f.snapshotEnvironment}static async create(a,i){const u=await i.snapshotEnvironment.resolvePath(a),f=await i.snapshotEnvironment.readSnapshotFile(u);return new yM(a,u,f,i)}get environment(){return this._environment}markSnapshotsAsCheckedForTest(a){this._uncheckedKeys.forEach(i=>{rJ(i)===a&&this._uncheckedKeys.delete(i)})}_inferInlineSnapshotStack(a){const i=a.findIndex(f=>f.method.match(/__VITEST_(RESOLVES|REJECTS)__/));if(i!==-1)return a[i+3];const u=a.findIndex(f=>f.method.includes("__INLINE_SNAPSHOT__"));return u!==-1?a[u+2]:null}_addSnapshot(a,i,u){this._dirty=!0,u.stack?this._inlineSnapshots.push({snapshot:i,...u.stack}):u.rawSnapshot?this._rawSnapshots.push({...u.rawSnapshot,snapshot:i}):this._snapshotData[a]=i}clear(){this._snapshotData=this._initialData,this._counters=new Map,this.added=0,this.matched=0,this.unmatched=0,this.updated=0,this._dirty=!1}async save(){const a=Object.keys(this._snapshotData).length,i=this._inlineSnapshots.length,u=this._rawSnapshots.length,f=!a&&!i&&!u,m={deleted:!1,saved:!1};return(this._dirty||this._uncheckedKeys.size)&&!f?(a&&(await fJ(this._environment,this._snapshotData,this.snapshotPath),this._fileExists=!0),i&&await jZ(this._environment,this._inlineSnapshots),u&&await PZ(this._environment,this._rawSnapshots),m.saved=!0):!a&&this._fileExists&&(this._updateSnapshot==="all"&&(await this._environment.removeSnapshotFile(this.snapshotPath),this._fileExists=!1),m.deleted=!0),m}getUncheckedCount(){return this._uncheckedKeys.size||0}getUncheckedKeys(){return Array.from(this._uncheckedKeys)}removeUncheckedKeys(){this._updateSnapshot==="all"&&this._uncheckedKeys.size&&(this._dirty=!0,this._uncheckedKeys.forEach(a=>delete this._snapshotData[a]),this._uncheckedKeys.clear())}match({testName:a,received:i,key:u,inlineSnapshot:f,isInline:m,error:h,rawSnapshot:y}){var b,v;this._counters.set(a,(this._counters.get(a)||0)+1);const x=Number(this._counters.get(a));u||(u=aJ(a,x)),m&&this._snapshotData[u]!==void 0||this._uncheckedKeys.delete(u);let E=y&&typeof i=="string"?i:sJ(i,void 0,this._snapshotFormat);y||(E=iJ(E)),y&&y.content&&y.content.match(/\r\n/)&&!E.match(/\r\n/)&&(y.content=hM(y.content));const R=m?f:y?y.content:this._snapshotData[u],A=Kj(R),M=A===Kj(E),q=R!==void 0,N=m||this._fileExists||y&&y.content!=null;M&&!m&&!y&&(this._snapshotData[u]=E);let _;if(m){const L=xZ(h||new Error("snapshot"),{ignoreStackEntries:[]}),$=this._inferInlineSnapshotStack(L);if(!$)throw new Error(`@vitest/snapshot: Couldn't infer stack frame for inline snapshot.
417
+ ${JSON.stringify(L)}`);if(_=((v=(b=this.environment).processStackTrace)==null?void 0:v.call(b,$))||$,_.column--,this._inlineSnapshotStacks.some(I=>I.file===_.file&&I.line===_.line&&I.column===_.column))throw this._inlineSnapshots=this._inlineSnapshots.filter(I=>!(I.file===_.file&&I.line===_.line&&I.column===_.column)),new Error("toMatchInlineSnapshot cannot be called multiple times at the same location.");this._inlineSnapshotStacks.push(_)}return q&&this._updateSnapshot==="all"||(!q||!N)&&(this._updateSnapshot==="new"||this._updateSnapshot==="all")?(this._updateSnapshot==="all"?M?this.matched++:(q?this.updated++:this.added++,this._addSnapshot(u,E,{stack:_,rawSnapshot:y})):(this._addSnapshot(u,E,{stack:_,rawSnapshot:y}),this.added++),{actual:"",count:x,expected:"",key:u,pass:!0}):M?(this.matched++,{actual:"",count:x,expected:"",key:u,pass:!0}):(this.unmatched++,{actual:Zj(E),count:x,expected:A!==void 0?Zj(A):void 0,key:u,pass:!1})}async pack(){const a={filepath:this.testFilePath,added:0,fileDeleted:!1,matched:0,unchecked:0,uncheckedKeys:[],unmatched:0,updated:0},i=this.getUncheckedCount(),u=this.getUncheckedKeys();i&&this.removeUncheckedKeys();const f=await this.save();return a.fileDeleted=f.deleted,a.added=this.added,a.matched=this.matched,a.unmatched=this.unmatched,a.updated=this.updated,a.unchecked=f.deleted?0:i,a.uncheckedKeys=Array.from(u),a}}function Wj(t,a,i,u){const f=new Error(t);return Object.defineProperty(f,"actual",{value:i,enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(f,"expected",{value:u,enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(f,"diffOptions",{value:{expand:a}}),f}class dJ{constructor(a={}){ot(this,"filepath");ot(this,"name");ot(this,"snapshotState");ot(this,"snapshotStateMap",new Map);this.options=a}async startCurrentRun(a,i,u){var f;this.filepath=a,this.name=i,((f=this.snapshotState)==null?void 0:f.testFilePath)!==a&&(await this.finishCurrentRun(),this.getSnapshotState(a)||this.snapshotStateMap.set(a,await yM.create(a,u)),this.snapshotState=this.getSnapshotState(a))}getSnapshotState(a){return this.snapshotStateMap.get(a)}clearTest(){this.filepath=void 0,this.name=void 0}skipTestSnapshots(a){var i;(i=this.snapshotState)==null||i.markSnapshotsAsCheckedForTest(a)}assert(a){var i,u,f,m;const{filepath:h=this.filepath,name:y=this.name,message:b,isInline:v=!1,properties:x,inlineSnapshot:E,error:R,errorMessage:A,rawSnapshot:M}=a;let{received:q}=a;if(!h)throw new Error("Snapshot cannot be used outside of test");if(typeof x=="object"){if(typeof q!="object"||!q)throw new Error("Received value must be an object when the matcher has properties");try{if(((u=(i=this.options).isEqual)==null?void 0:u.call(i,q,x))??!1)q=mM(q,x);else throw Wj("Snapshot properties mismatched",(f=this.snapshotState)==null?void 0:f.expand,q,x)}catch(z){throw z.message=A||"Snapshot mismatched",z}}const N=[y,...b?[b]:[]].join(" > "),_=this.getSnapshotState(h),{actual:L,expected:$,key:I,pass:V}=_.match({testName:N,received:q,isInline:v,error:R,inlineSnapshot:E,rawSnapshot:M});if(!V)throw Wj(`Snapshot \`${I||"unknown"}\` mismatched`,(m=this.snapshotState)==null?void 0:m.expand,L?.trim(),$?.trim())}async assertRaw(a){if(!a.rawSnapshot)throw new Error("Raw snapshot is required");const{filepath:i=this.filepath,rawSnapshot:u}=a;if(u.content==null){if(!i)throw new Error("Snapshot cannot be used outside of test");const f=this.getSnapshotState(i);a.filepath||(a.filepath=i),u.file=await f.environment.resolveRawPath(i,u.file),u.content=await f.environment.readSnapshotFile(u.file)??void 0}return this.assert(a)}async finishCurrentRun(){if(!this.snapshotState)return null;const a=await this.snapshotState.pack();return this.snapshotState=void 0,a}clear(){this.snapshotStateMap.clear()}}const Oo=Date;let YA=null;class kf extends Oo{constructor(a,i,u,f,m,h,y){super();let b;switch(arguments.length){case 0:YA!==null?b=new Oo(YA.valueOf()):b=new Oo;break;case 1:b=new Oo(a);break;default:u=typeof u>"u"?1:u,f=f||0,m=m||0,h=h||0,y=y||0,b=new Oo(a,i,u,f,m,h,y);break}return Object.setPrototypeOf(b,kf.prototype),b}}kf.UTC=Oo.UTC;kf.now=function(){return new kf().valueOf()};kf.parse=function(t){return Oo.parse(t)};kf.toString=function(){return Oo.toString()};function pJ(t){const a=new Oo(t.valueOf());if(Number.isNaN(a.getTime()))throw new TypeError(`mockdate: The time set is an invalid date: ${t}`);globalThis.Date=kf,YA=a.valueOf()}function hJ(){globalThis.Date=Oo}const mJ=["matchSnapshot","toMatchSnapshot","toMatchInlineSnapshot","toThrowErrorMatchingSnapshot","toThrowErrorMatchingInlineSnapshot","throws","Throw","throw","toThrow","toThrowError"];function yJ(t){return function(i,u={}){const m=YS().config.expect?.poll??{},{interval:h=m.interval??50,timeout:y=m.timeout??1e3,message:b}=u,v=t(null,b).withContext({poll:!0});i=i.bind(v);const x=Wr.flag(v,"vitest-test");if(!x)throw new Error("expect.poll() must be called inside a test");const E=new Proxy(v,{get(R,A,M){const q=Reflect.get(R,A,M);if(typeof q!="function")return q instanceof Y?E:q;if(A==="assert")return q;if(typeof A=="string"&&mJ.includes(A))throw new SyntaxError(`expect.poll() is not supported in combination with .${A}(). Use vi.waitFor() if your assertion condition is unstable.`);return function(...N){const _=new Error("STACK_TRACE_ERROR"),L=()=>new Promise((V,z)=>{let k,U;const{setTimeout:F,clearTimeout:H}=LS(),J=F(()=>{H(k),z(ez(new Error(`Matcher did not succeed in ${y}ms`,{cause:U}),_))},y),ve=async()=>{try{Wr.flag(v,"_name",A);const se=await i();Wr.flag(v,"object",se),V(await q.call(v,...N)),H(k),H(J)}catch(se){U=se,k=F(ve,h)}};ve()});let $=!1;x.onFinished??(x.onFinished=[]),x.onFinished.push(()=>{if(!$){const V=Wr.flag(v,"negate")?"not.":"",k=`expect.${Wr.flag(v,"_poll.element")?"element(locator)":"poll(assertion)"}.${V}${String(A)}()`,U=new Error(`${k} was not awaited. This assertion is asynchronous and must be awaited; otherwise, it is not executed to avoid unhandled rejections:
418
+
419
+ await ${k}
420
+ `);throw ez(U,_)}});let I;return{then(V,z){return $=!0,(I||(I=L())).then(V,z)},catch(V){return(I||(I=L())).catch(V)},finally(V){return(I||(I=L())).finally(V)},[Symbol.toStringTag]:"Promise"}}}});return E}}function ez(t,a){return a.stack!==void 0&&(t.stack=a.stack.replace(a.message,t.message)),t}function gJ(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Uw={exports:{}},bJ=Uw.exports,tz;function vJ(){return tz||(tz=1,(function(t,a){(function(){(function(i){return typeof gJ=="function"?t.exports=i:chai.use(i)})(function(i,u){var f=i.Assertion,m=f.prototype;f.addMethod("containSubset",function(y){var b=u.flag(this,"object"),v=i.config.showDiff;m.assert.call(this,h(y,b),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",y,b,v)}),i.assert.containSubset=function(y,b,v){new i.Assertion(y,v).to.be.containSubset(b)};function h(y,b){if(y===b)return!0;if(typeof b!=typeof y)return!1;if(typeof y!="object"||y===null)return y===b;if(y&&!b)return!1;if(Array.isArray(y)){if(typeof b.length!="number")return!1;var v=Array.prototype.slice.call(b);return y.every(function(x){return v.some(function(E){return h(x,E)})})}return y instanceof Date?b instanceof Date?y.getTime()===b.getTime():!1:Object.keys(y).every(function(x){var E=y[x],R=b[x];return typeof E=="object"&&E!==null&&R!==null?h(E,R):typeof E=="function"?E(R):R===E})}})}).call(bJ)})(Uw)),Uw.exports}var SJ=vJ(),EJ=qQ(SJ);function TJ(t,a,i){const u=t.flag(a,"negate")?"not.":"",f=`${t.flag(a,"_name")}(expected)`,m=t.flag(a,"promise");return`expect(actual)${m?`.${m}`:""}.${u}${f}`}function wJ(t,a,i,u){const f=t;if(f&&a instanceof Promise){a=a.finally(()=>{if(!f.promises)return;const h=f.promises.indexOf(a);h!==-1&&f.promises.splice(h,1)}),f.promises||(f.promises=[]),f.promises.push(a);let m=!1;return f.onFinished??(f.onFinished=[]),f.onFinished.push(()=>{if(!m){const y=(globalThis.__vitest_worker__?.onFilterStackTrace||(b=>b||""))(u.stack);console.warn([`Promise returned by \`${i}\` was not awaited. `,"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. ",`Please remember to await the assertion.
421
+ `,y].join(""))}}),{then(h,y){return m=!0,a.then(h,y)},catch(h){return a.catch(h)},finally(h){return a.finally(h)},[Symbol.toStringTag]:"Promise"}}return a}let zC;function mS(){return zC||(zC=new dJ({isEqual:(t,a)=>Ft(t,a,[El,My])})),zC}function nz(t,a){if(typeof t!="function"){if(!a)throw new Error(`expected must be a function, received ${typeof t}`);return t}try{t()}catch(i){return i}throw new Error("snapshot function didn't throw")}function yS(t){return t?{filepath:t.file.filepath,name:nQ(t).slice(1).join(" > ")}:{}}const xJ=(t,a)=>{for(const i of["matchSnapshot","toMatchSnapshot"])a.addMethod(t.Assertion.prototype,i,function(u,f){if(a.flag(this,"_name",i),a.flag(this,"negate"))throw new Error(`${i} cannot be used with "not"`);const h=a.flag(this,"object"),y=a.flag(this,"vitest-test");typeof u=="string"&&typeof f>"u"&&(f=u,u=void 0);const b=a.flag(this,"message");mS().assert({received:h,message:f,isInline:!1,properties:u,errorMessage:b,...yS(y)})});a.addMethod(t.Assertion.prototype,"toMatchFileSnapshot",function(i,u){if(a.flag(this,"_name","toMatchFileSnapshot"),a.flag(this,"negate"))throw new Error('toMatchFileSnapshot cannot be used with "not"');const m=new Error("resolves"),h=a.flag(this,"object"),y=a.flag(this,"vitest-test"),b=a.flag(this,"message"),v=mS().assertRaw({received:h,message:u,isInline:!1,rawSnapshot:{file:i},errorMessage:b,...yS(y)});return wJ(y,v,TJ(a,this),m)}),a.addMethod(t.Assertion.prototype,"toMatchInlineSnapshot",function(u,f,m){if(a.flag(this,"_name","toMatchInlineSnapshot"),a.flag(this,"negate"))throw new Error('toMatchInlineSnapshot cannot be used with "not"');const y=a.flag(this,"vitest-test");if(y&&(y.each||y.suite?.each))throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");const v=a.flag(this,"object"),x=a.flag(this,"error");typeof u=="string"&&(m=f,f=u,u=void 0),f&&(f=Fj(f));const E=a.flag(this,"message");mS().assert({received:v,message:m,isInline:!0,properties:u,inlineSnapshot:f,error:x,errorMessage:E,...yS(y)})}),a.addMethod(t.Assertion.prototype,"toThrowErrorMatchingSnapshot",function(i){if(a.flag(this,"_name","toThrowErrorMatchingSnapshot"),a.flag(this,"negate"))throw new Error('toThrowErrorMatchingSnapshot cannot be used with "not"');const f=a.flag(this,"object"),m=a.flag(this,"vitest-test"),h=a.flag(this,"promise"),y=a.flag(this,"message");mS().assert({received:nz(f,h),message:i,errorMessage:y,...yS(m)})}),a.addMethod(t.Assertion.prototype,"toThrowErrorMatchingInlineSnapshot",function(u,f){if(a.flag(this,"negate"))throw new Error('toThrowErrorMatchingInlineSnapshot cannot be used with "not"');const h=a.flag(this,"vitest-test");if(h&&(h.each||h.suite?.each))throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");const b=a.flag(this,"object"),v=a.flag(this,"error"),x=a.flag(this,"promise"),E=a.flag(this,"message");u&&(u=Fj(u)),mS().assert({received:nz(b,x),message:f,inlineSnapshot:u,isInline:!0,error:v,errorMessage:E,...yS(h)})}),a.addMethod(t.expect,"addSnapshotSerializer",tJ)};Lf(UF);Lf(jF);Lf(EJ);Lf(xJ);Lf(NF);function RJ(t){const a=(m,h)=>{const{assertionCalls:y}=xS(a);return OC({assertionCalls:y+1},a),qp(m,h)};Object.assign(a,qp),Object.assign(a,globalThis[oM]),a.getState=()=>xS(a),a.setState=m=>OC(m,a);const i=xS(globalThis[Ax])||{};OC({...i,assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null,environment:_Q(),get testPath(){return YS().filepath},currentTestName:i.currentTestName},a),a.extend=m=>qp.extend(a,m),a.addEqualityTesters=m=>yF(m),a.soft=(...m)=>a(...m).withContext({soft:!0}),a.poll=yJ(a),a.unreachable=m=>{G.fail(`expected${m?` "${m}" `:" "}not to be reached`)};function u(m){const h=()=>new Error(`expected number of assertions to be ${m}, but got ${a.getState().assertionCalls}`);Error.captureStackTrace&&Error.captureStackTrace(h(),u),a.setState({expectedAssertionsNumber:m,expectedAssertionsNumberErrorGen:h})}function f(){const m=new Error("expected any number of assertion, but got none");Error.captureStackTrace&&Error.captureStackTrace(m,f),a.setState({isExpectingAssertions:!0,isExpectingAssertionsError:m})}return Wr.addMethod(a,"assertions",u),Wr.addMethod(a,"hasAssertions",f),a}const CJ=RJ();Object.defineProperty(globalThis,Ax,{value:CJ,writable:!0,configurable:!0});var iy={},kC,az;function AJ(){if(az)return kC;az=1;var t;return typeof IA<"u"?t=IA:typeof window<"u"?t=window:t=self,kC=t,kC}var BC,rz;function _J(){if(rz)return BC;rz=1;let t;try{({}).__proto__,t=!1}catch{t=!0}return BC=t,BC}var UC,lz;function Oy(){if(lz)return UC;lz=1;var t=Function.call,a=_J(),i=["size","caller","callee","arguments"];return a&&i.push("__proto__"),UC=function(f){return Object.getOwnPropertyNames(f).reduce(function(m,h){return i.includes(h)||typeof f[h]!="function"||(m[h]=t.bind(f[h])),m},Object.create(null))},UC}var LC,iz;function ix(){if(iz)return LC;iz=1;var t=Oy();return LC=t(Array.prototype),LC}var $C,oz;function MJ(){if(oz)return $C;oz=1;var t=ix().every;function a(f,m){return f[m.id]===void 0&&(f[m.id]=0),f[m.id]<m.callCount}function i(f,m,h,y){var b=!0;return h!==y.length-1&&(b=m.calledBefore(y[h+1])),a(f,m)&&b?(f[m.id]+=1,!0):!1}function u(f){var m={},h=arguments.length>1?arguments:f;return t(h,i.bind(null,m))}return $C=u,$C}var HC,uz;function Jk(){return uz||(uz=1,HC=function(a){if(!a)return"";try{return a.displayName||a.name||(String(a).match(/function ([^\s(]+)/)||[])[1]}catch{return""}}),HC}var PC,sz;function OJ(){if(sz)return PC;sz=1;var t=Jk();function a(i){return i.constructor&&i.constructor.name||typeof i.constructor=="function"&&t(i.constructor)||null}return PC=a,PC}var IC={},cz;function qJ(){return cz||(cz=1,(function(t){t.wrap=function(a,i){var u=function(){return t.printWarning(i),a.apply(this,arguments)};return a.prototype&&(u.prototype=a.prototype),u},t.defaultMsg=function(a,i){return`${a}.${i} is deprecated and will be removed from the public API in a future version of ${a}.`},t.printWarning=function(a){typeof process=="object"&&process.emitWarning?process.emitWarning(a):console.info?console.info(a):console.log(a)}})(IC)),IC}var VC,fz;function DJ(){return fz||(fz=1,VC=function(a,i){var u=!0;try{a.forEach(function(){if(!i.apply(this,arguments))throw new Error})}catch{u=!1}return u}),VC}var GC,dz;function NJ(){if(dz)return GC;dz=1;var t=ix().sort,a=ix().slice;function i(f,m){var h=f.getCall(0),y=m.getCall(0),b=h&&h.callId||-1,v=y&&y.callId||-1;return b<v?-1:1}function u(f){return t(a(f),i)}return GC=u,GC}var YC,pz;function jJ(){if(pz)return YC;pz=1;var t=Oy();return YC=t(Function.prototype),YC}var XC,hz;function zJ(){if(hz)return XC;hz=1;var t=Oy();return XC=t(Map.prototype),XC}var FC,mz;function kJ(){if(mz)return FC;mz=1;var t=Oy();return FC=t(Object.prototype),FC}var QC,yz;function BJ(){if(yz)return QC;yz=1;var t=Oy();return QC=t(Set.prototype),QC}var ZC,gz;function UJ(){if(gz)return ZC;gz=1;var t=Oy();return ZC=t(String.prototype),ZC}var JC,bz;function LJ(){return bz||(bz=1,JC={array:ix(),function:jJ(),map:zJ(),object:kJ(),set:BJ(),string:UJ()}),JC}var Lw={exports:{}},$J=Lw.exports,vz;function HJ(){return vz||(vz=1,(function(t,a){(function(i,u){t.exports=u()})($J,(function(){var i=typeof Promise=="function",u=typeof self=="object"?self:IA,f=typeof Symbol<"u",m=typeof Map<"u",h=typeof Set<"u",y=typeof WeakMap<"u",b=typeof WeakSet<"u",v=typeof DataView<"u",x=f&&typeof Symbol.iterator<"u",E=f&&typeof Symbol.toStringTag<"u",R=h&&typeof Set.prototype.entries=="function",A=m&&typeof Map.prototype.entries=="function",M=R&&Object.getPrototypeOf(new Set().entries()),q=A&&Object.getPrototypeOf(new Map().entries()),N=x&&typeof Array.prototype[Symbol.iterator]=="function",_=N&&Object.getPrototypeOf([][Symbol.iterator]()),L=x&&typeof String.prototype[Symbol.iterator]=="function",$=L&&Object.getPrototypeOf(""[Symbol.iterator]()),I=8,V=-1;function z(k){var U=typeof k;if(U!=="object")return U;if(k===null)return"null";if(k===u)return"global";if(Array.isArray(k)&&(E===!1||!(Symbol.toStringTag in k)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&k===window.location)return"Location";if(typeof window.document=="object"&&k===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&k===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&k===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&k instanceof window.HTMLElement){if(k.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(k.tagName==="TD")return"HTMLTableDataCellElement";if(k.tagName==="TH")return"HTMLTableHeaderCellElement"}}var F=E&&k[Symbol.toStringTag];if(typeof F=="string")return F;var H=Object.getPrototypeOf(k);return H===RegExp.prototype?"RegExp":H===Date.prototype?"Date":i&&H===Promise.prototype?"Promise":h&&H===Set.prototype?"Set":m&&H===Map.prototype?"Map":b&&H===WeakSet.prototype?"WeakSet":y&&H===WeakMap.prototype?"WeakMap":v&&H===DataView.prototype?"DataView":m&&H===q?"Map Iterator":h&&H===M?"Set Iterator":N&&H===_?"Array Iterator":L&&H===$?"String Iterator":H===null?"Object":Object.prototype.toString.call(k).slice(I,V)}return z}))})(Lw)),Lw.exports}var KC,Sz;function PJ(){if(Sz)return KC;Sz=1;var t=HJ();return KC=function(i){return t(i).toLowerCase()},KC}var WC,Ez;function IJ(){if(Ez)return WC;Ez=1;function t(a){return a&&a.toString?a.toString():String(a)}return WC=t,WC}var eA,Tz;function VJ(){return Tz||(Tz=1,eA={global:AJ(),calledInOrder:MJ(),className:OJ(),deprecated:qJ(),every:DJ(),functionName:Jk(),orderByFirstCall:NJ(),prototypes:LJ(),typeOf:PJ(),valueToString:IJ()}),eA}var wz;function GJ(){if(wz)return iy;wz=1;const t=VJ().global;let a;if(typeof __vitest_required__<"u")try{a=__vitest_required__.timers}catch{}function i(f){const m=Math.pow(2,31)-1,h=1e12,y=function(){},b=function(){return[]},v=f.setTimeout(y,0),x=typeof v=="object",E=f.process&&typeof f.process.hrtime=="function",R=E&&typeof f.process.hrtime.bigint=="function",A=f.process&&typeof f.process.nextTick=="function",M=f.process&&f.__vitest_required__&&f.__vitest_required__.util.promisify,q=f.performance&&typeof f.performance.now=="function",N=f.Performance&&(typeof f.Performance).match(/^(function|object)$/),_=f.performance&&f.performance.constructor&&f.performance.constructor.prototype,L=f.hasOwnProperty("queueMicrotask"),$=f.requestAnimationFrame&&typeof f.requestAnimationFrame=="function",I=f.cancelAnimationFrame&&typeof f.cancelAnimationFrame=="function",V=f.requestIdleCallback&&typeof f.requestIdleCallback=="function",z=f.cancelIdleCallback&&typeof f.cancelIdleCallback=="function",k=f.setImmediate&&typeof f.setImmediate=="function",U=f.Intl&&typeof f.Intl=="object";f.clearTimeout(v);const F=f.Date,H=f.Intl;let J=h;function ve(oe){return Number.isFinite?Number.isFinite(oe):isFinite(oe)}let se=!1;function Se(oe,pe){oe.loopLimit&&pe===oe.loopLimit-1&&(se=!0)}function ke(){se=!1}function P(oe){if(!oe)return 0;const pe=oe.split(":"),qe=pe.length;let Be=qe,ee=0,st;if(qe>3||!/^(\d\d:){0,2}\d\d?$/.test(oe))throw new Error("tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits");for(;Be--;){if(st=parseInt(pe[Be],10),st>=60)throw new Error(`Invalid time ${oe}`);ee+=st*Math.pow(60,qe-Be-1)}return ee*1e3}function ue(oe){const qe=oe*1e6%1e6,Be=qe<0?qe+1e6:qe;return Math.floor(Be)}function te(oe){if(!oe)return 0;if(typeof oe.getTime=="function")return oe.getTime();if(typeof oe=="number")return oe;throw new TypeError("now should be milliseconds since UNIX epoch")}function De(oe,pe,qe){return qe&&qe.callAt>=oe&&qe.callAt<=pe}function je(oe,pe){const qe=new Error(`Aborting after running ${oe.loopLimit} timers, assuming an infinite loop!`);if(!pe.error)return qe;const Be=/target\.*[<|(|[].*?[>|\]|)]\s*/;let ee=new RegExp(String(Object.keys(oe).join("|")));x&&(ee=new RegExp(`\\s+at (Object\\.)?(?:${Object.keys(oe).join("|")})\\s+`));let st=-1;pe.error.stack.split(`
422
+ `).some(function(Zt,ia){return Zt.match(Be)?(st=ia,!0):Zt.match(ee)?(st=ia,!1):st>=0});const Rn=`${qe}
423
+ ${pe.type||"Microtask"} - ${pe.func.name||"anonymous"}
424
+ ${pe.error.stack.split(`
425
+ `).slice(st+1).join(`
426
+ `)}`;try{Object.defineProperty(qe,"stack",{value:Rn})}catch{}return qe}function Ye(oe,pe){let qe;for(qe in pe)pe.hasOwnProperty(qe)&&(oe[qe]=pe[qe]);return pe.now?oe.now=function(){return oe.clock.now}:delete oe.now,pe.toSource?oe.toSource=function(){return pe.toSource()}:delete oe.toSource,oe.toString=function(){return pe.toString()},oe.prototype=pe.prototype,oe.parse=pe.parse,oe.UTC=pe.UTC,oe.prototype.toUTCString=pe.prototype.toUTCString,oe.isFake=!0,oe}function Xe(){function oe(pe,qe,Be,ee,st,Rn,Zt){if(!(this instanceof oe))return new F(oe.clock.now).toString();switch(arguments.length){case 0:return new F(oe.clock.now);case 1:return new F(pe);case 2:return new F(pe,qe);case 3:return new F(pe,qe,Be);case 4:return new F(pe,qe,Be,ee);case 5:return new F(pe,qe,Be,ee,st);case 6:return new F(pe,qe,Be,ee,st,Rn);default:return new F(pe,qe,Be,ee,st,Rn,Zt)}}return Ye(oe,F)}function xe(){const oe={...H};return oe.DateTimeFormat=function(...pe){const qe=new H.DateTimeFormat(...pe),Be={};return["formatRange","formatRangeToParts","resolvedOptions"].forEach(ee=>{Be[ee]=qe[ee].bind(qe)}),["format","formatToParts"].forEach(ee=>{Be[ee]=function(st){return qe[ee](st||oe.clock.now)}}),Be},oe.DateTimeFormat.prototype=Object.create(H.DateTimeFormat.prototype),oe.DateTimeFormat.supportedLocalesOf=H.DateTimeFormat.supportedLocalesOf,oe}function Ie(oe,pe){oe.jobs||(oe.jobs=[]),oe.jobs.push(pe)}function Je(oe){if(oe.jobs){for(let pe=0;pe<oe.jobs.length;pe++){const qe=oe.jobs[pe];if(qe.func.apply(null,qe.args),Se(oe,pe),oe.loopLimit&&pe>oe.loopLimit)throw je(oe,qe)}ke(),oe.jobs=[]}}function at(oe,pe){if(pe.func===void 0)throw new Error("Callback must be provided to timer calls");if(x&&typeof pe.func!="function")throw new TypeError(`[ERR_INVALID_CALLBACK]: Callback must be a function. Received ${pe.func} of type ${typeof pe.func}`);if(se&&(pe.error=new Error),pe.type=pe.immediate?"Immediate":"Timeout",pe.hasOwnProperty("delay")&&(typeof pe.delay!="number"&&(pe.delay=parseInt(pe.delay,10)),ve(pe.delay)||(pe.delay=0),pe.delay=pe.delay>m?1:pe.delay,pe.delay=Math.max(0,pe.delay)),pe.hasOwnProperty("interval")&&(pe.type="Interval",pe.interval=pe.interval>m?1:pe.interval),pe.hasOwnProperty("animation")&&(pe.type="AnimationFrame",pe.animation=!0),pe.hasOwnProperty("idleCallback")&&(pe.type="IdleCallback",pe.idleCallback=!0),oe.timers||(oe.timers={}),pe.id=J++,pe.createdAt=oe.now,pe.callAt=oe.now+(parseInt(pe.delay)||(oe.duringTick?1:0)),oe.timers[pe.id]=pe,x){const qe={refed:!0,ref:function(){return this.refed=!0,qe},unref:function(){return this.refed=!1,qe},hasRef:function(){return this.refed},refresh:function(){return pe.callAt=oe.now+(parseInt(pe.delay)||(oe.duringTick?1:0)),oe.timers[pe.id]=pe,qe},[Symbol.toPrimitive]:function(){return pe.id}};return qe}return pe.id}function Lt(oe,pe){if(oe.callAt<pe.callAt)return-1;if(oe.callAt>pe.callAt)return 1;if(oe.immediate&&!pe.immediate)return-1;if(!oe.immediate&&pe.immediate)return 1;if(oe.createdAt<pe.createdAt)return-1;if(oe.createdAt>pe.createdAt)return 1;if(oe.id<pe.id)return-1;if(oe.id>pe.id)return 1}function an(oe,pe,qe){const Be=oe.timers;let ee=null,st,Rn;for(st in Be)Be.hasOwnProperty(st)&&(Rn=De(pe,qe,Be[st]),Rn&&(!ee||Lt(ee,Be[st])===1)&&(ee=Be[st]));return ee}function ie(oe){const pe=oe.timers;let qe=null,Be;for(Be in pe)pe.hasOwnProperty(Be)&&(!qe||Lt(qe,pe[Be])===1)&&(qe=pe[Be]);return qe}function Pe(oe){const pe=oe.timers;let qe=null,Be;for(Be in pe)pe.hasOwnProperty(Be)&&(!qe||Lt(qe,pe[Be])===-1)&&(qe=pe[Be]);return qe}function de(oe,pe){if(typeof pe.interval=="number"?oe.timers[pe.id].callAt+=pe.interval:delete oe.timers[pe.id],typeof pe.func=="function")pe.func.apply(null,pe.args);else{const qe=eval;(function(){qe(pe.func)})()}}function ut(oe){return oe==="IdleCallback"||oe==="AnimationFrame"?`cancel${oe}`:`clear${oe}`}function dt(oe){return oe==="IdleCallback"||oe==="AnimationFrame"?`request${oe}`:`set${oe}`}function Ue(){let oe=0;return function(pe){!oe++&&console.warn(pe)}}const Nt=Ue();function Ke(oe,pe,qe){if(!pe)return;oe.timers||(oe.timers={});const Be=Number(pe);if(Number.isNaN(Be)||Be<h){const ee=ut(qe);if(oe.shouldClearNativeTimers===!0){const st=oe[`_${ee}`];return typeof st=="function"?st(pe):void 0}Nt(`FakeTimers: ${ee} was invoked to clear a native timer instead of one created by this library.
427
+ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`)}if(oe.timers.hasOwnProperty(Be)){const ee=oe.timers[Be];if(ee.type===qe||ee.type==="Timeout"&&qe==="Interval"||ee.type==="Interval"&&qe==="Timeout")delete oe.timers[Be];else{const st=ut(qe),Rn=dt(ee.type);throw new Error(`Cannot clear timer: timer created with ${Rn}() but cleared with ${st}()`)}}}function Tn(oe,pe){let qe,Be,ee;const st="_hrtime",Rn="_nextTick";for(Be=0,ee=oe.methods.length;Be<ee;Be++){if(qe=oe.methods[Be],qe==="hrtime"&&f.process)f.process.hrtime=oe[st];else if(qe==="nextTick"&&f.process)f.process.nextTick=oe[Rn];else if(qe==="performance"){const Zt=Object.getOwnPropertyDescriptor(oe,`_${qe}`);Zt&&Zt.get&&!Zt.set?Object.defineProperty(f,qe,Zt):Zt.configurable&&(f[qe]=oe[`_${qe}`])}else if(f[qe]&&f[qe].hadOwnProperty)f[qe]=oe[`_${qe}`];else try{delete f[qe]}catch{}if(oe.timersModuleMethods!==void 0)for(let Zt=0;Zt<oe.timersModuleMethods.length;Zt++){const ia=oe.timersModuleMethods[Zt];a[ia.methodName]=ia.original}}return pe.shouldAdvanceTime===!0&&f.clearInterval(oe.attachedInterval),oe.methods=[],oe.timers?Object.keys(oe.timers).map(function(ia){return oe.timers[ia]}):[]}function tl(oe,pe,qe){if(qe[pe].hadOwnProperty=Object.prototype.hasOwnProperty.call(oe,pe),qe[`_${pe}`]=oe[pe],pe==="Date"){const Be=Ye(qe[pe],oe[pe]);oe[pe]=Be}else if(pe==="Intl")oe[pe]=qe[pe];else if(pe==="performance"){const Be=Object.getOwnPropertyDescriptor(oe,pe);if(Be&&Be.get&&!Be.set){Object.defineProperty(qe,`_${pe}`,Be);const ee=Object.getOwnPropertyDescriptor(qe,pe);Object.defineProperty(oe,pe,ee)}else oe[pe]=qe[pe]}else oe[pe]=function(){return qe[pe].apply(qe,arguments)},Object.defineProperties(oe[pe],Object.getOwnPropertyDescriptors(qe[pe]));oe[pe].clock=qe}function Cr(oe,pe){oe.tick(pe)}const yt={setTimeout:f.setTimeout,clearTimeout:f.clearTimeout,setInterval:f.setInterval,clearInterval:f.clearInterval,Date:f.Date};k&&(yt.setImmediate=f.setImmediate,yt.clearImmediate=f.clearImmediate),E&&(yt.hrtime=f.process.hrtime),A&&(yt.nextTick=f.process.nextTick),q&&(yt.performance=f.performance),$&&(yt.requestAnimationFrame=f.requestAnimationFrame),L&&(yt.queueMicrotask=!0),I&&(yt.cancelAnimationFrame=f.cancelAnimationFrame),V&&(yt.requestIdleCallback=f.requestIdleCallback),z&&(yt.cancelIdleCallback=f.cancelIdleCallback),U&&(yt.Intl=f.Intl);const ya=f.setImmediate||f.setTimeout;function Za(oe,pe){oe=Math.floor(te(oe)),pe=pe||1e3;let qe=0;const Be=[0,0];if(F===void 0)throw new Error("The global scope doesn't have a `Date` object (see https://github.com/sinonjs/sinon/issues/1852#issuecomment-419622780)");const ee={now:oe,Date:Xe(),loopLimit:pe};ee.Date.clock=ee;function st(){return 16-(ee.now-oe)%16}function Rn(tt){const Ae=ee.now-Be[0]-oe,Ve=Math.floor(Ae/1e3),$e=(Ae-Ve*1e3)*1e6+qe-Be[1];if(Array.isArray(tt)){if(tt[1]>1e9)throw new TypeError("Number of nanoseconds can't exceed a billion");const Bt=tt[0];let Cn=$e-tt[1],nl=Ve-Bt;return Cn<0&&(Cn+=1e9,nl-=1),[nl,Cn]}return[Ve,$e]}function Zt(){const tt=Rn();return tt[0]*1e3+tt[1]/1e6}R&&(Rn.bigint=function(){const tt=Rn();return BigInt(tt[0])*BigInt(1e9)+BigInt(tt[1])}),U&&(ee.Intl=xe(),ee.Intl.clock=ee),ee.requestIdleCallback=function(Ae,Ve){let $e=0;ee.countTimers()>0&&($e=50);const Bt=at(ee,{func:Ae,args:Array.prototype.slice.call(arguments,2),delay:typeof Ve>"u"?$e:Math.min(Ve,$e),idleCallback:!0});return Number(Bt)},ee.cancelIdleCallback=function(Ae){return Ke(ee,Ae,"IdleCallback")},ee.setTimeout=function(Ae,Ve){return at(ee,{func:Ae,args:Array.prototype.slice.call(arguments,2),delay:Ve})},typeof f.Promise<"u"&&M&&(ee.setTimeout[M.custom]=function(Ae,Ve){return new f.Promise(function(Bt){at(ee,{func:Bt,args:[Ve],delay:Ae})})}),ee.clearTimeout=function(Ae){return Ke(ee,Ae,"Timeout")},ee.nextTick=function(Ae){return Ie(ee,{func:Ae,args:Array.prototype.slice.call(arguments,1),error:se?new Error:null})},ee.queueMicrotask=function(Ae){return ee.nextTick(Ae)},ee.setInterval=function(Ae,Ve){return Ve=parseInt(Ve,10),at(ee,{func:Ae,args:Array.prototype.slice.call(arguments,2),delay:Ve,interval:Ve})},ee.clearInterval=function(Ae){return Ke(ee,Ae,"Interval")},k&&(ee.setImmediate=function(Ae){return at(ee,{func:Ae,args:Array.prototype.slice.call(arguments,1),immediate:!0})},typeof f.Promise<"u"&&M&&(ee.setImmediate[M.custom]=function(Ae){return new f.Promise(function($e){at(ee,{func:$e,args:[Ae],immediate:!0})})}),ee.clearImmediate=function(Ae){return Ke(ee,Ae,"Immediate")}),ee.countTimers=function(){return Object.keys(ee.timers||{}).length+(ee.jobs||[]).length},ee.requestAnimationFrame=function(Ae){const Ve=at(ee,{func:Ae,delay:st(),get args(){return[Zt()]},animation:!0});return Number(Ve)},ee.cancelAnimationFrame=function(Ae){return Ke(ee,Ae,"AnimationFrame")},ee.runMicrotasks=function(){Je(ee)};function ia(tt,Ae,Ve,$e){const Bt=typeof tt=="number"?tt:P(tt),Cn=Math.floor(Bt),nl=ue(Bt);let $a=qe+nl,An=ee.now+Cn;if(Bt<0)throw new TypeError("Negative ticks are not supported");$a>=1e6&&(An+=1,$a-=1e6),qe=$a;let oa=ee.now,ga=ee.now,$t,Wn,Ln,ze,wl,al;ee.duringTick=!0,Ln=ee.now,Je(ee),Ln!==ee.now&&(oa+=ee.now-Ln,An+=ee.now-Ln);function rl(){for($t=an(ee,oa,An);$t&&oa<=An;){if(ee.timers[$t.id]){oa=$t.callAt,ee.now=$t.callAt,Ln=ee.now;try{Je(ee),de(ee,$t)}catch(xl){Wn=Wn||xl}if(Ae){ya(ze);return}wl()}al()}if(Ln=ee.now,Je(ee),Ln!==ee.now&&(oa+=ee.now-Ln,An+=ee.now-Ln),ee.duringTick=!1,$t=an(ee,oa,An),$t)try{ee.tick(An-ee.now)}catch(xl){Wn=Wn||xl}else ee.now=An,qe=$a;if(Wn)throw Wn;if(Ae)Ve(ee.now);else return ee.now}return ze=Ae&&function(){try{wl(),al(),rl()}catch(xl){$e(xl)}},wl=function(){Ln!==ee.now&&(oa+=ee.now-Ln,An+=ee.now-Ln,ga+=ee.now-Ln)},al=function(){$t=an(ee,ga,An),ga=oa},rl()}return ee.tick=function(Ae){return ia(Ae,!1)},typeof f.Promise<"u"&&(ee.tickAsync=function(Ae){return new f.Promise(function(Ve,$e){ya(function(){try{ia(Ae,!0,Ve,$e)}catch(Bt){$e(Bt)}})})}),ee.next=function(){Je(ee);const Ae=ie(ee);if(!Ae)return ee.now;ee.duringTick=!0;try{return ee.now=Ae.callAt,de(ee,Ae),Je(ee),ee.now}finally{ee.duringTick=!1}},typeof f.Promise<"u"&&(ee.nextAsync=function(){return new f.Promise(function(Ae,Ve){ya(function(){try{const $e=ie(ee);if(!$e){Ae(ee.now);return}let Bt;ee.duringTick=!0,ee.now=$e.callAt;try{de(ee,$e)}catch(Cn){Bt=Cn}ee.duringTick=!1,ya(function(){Bt?Ve(Bt):Ae(ee.now)})}catch($e){Ve($e)}})})}),ee.runAll=function(){let Ae,Ve;for(Je(ee),Ve=0;Ve<ee.loopLimit;Ve++){if(!ee.timers||(Ae=Object.keys(ee.timers).length,Ae===0))return ke(),ee.now;ee.next(),Se(ee,Ve)}const $e=ie(ee);throw je(ee,$e)},ee.runToFrame=function(){return ee.tick(st())},typeof f.Promise<"u"&&(ee.runAllAsync=function(){return new f.Promise(function(Ae,Ve){let $e=0;function Bt(){ya(function(){try{let Cn;if($e<ee.loopLimit){if(!ee.timers){ke(),Ae(ee.now);return}if(Cn=Object.keys(ee.timers).length,Cn===0){ke(),Ae(ee.now);return}ee.next(),$e++,Bt(),Se(ee,$e);return}const nl=ie(ee);Ve(je(ee,nl))}catch(Cn){Ve(Cn)}})}Bt()})}),ee.runToLast=function(){const Ae=Pe(ee);return Ae?ee.tick(Ae.callAt-ee.now):(Je(ee),ee.now)},typeof f.Promise<"u"&&(ee.runToLastAsync=function(){return new f.Promise(function(Ae,Ve){ya(function(){try{const $e=Pe(ee);$e||Ae(ee.now),Ae(ee.tickAsync($e.callAt-ee.now))}catch($e){Ve($e)}})})}),ee.reset=function(){qe=0,ee.timers={},ee.jobs=[],ee.now=oe},ee.setSystemTime=function(Ae){const Ve=te(Ae),$e=Ve-ee.now;let Bt,Cn;Be[0]=Be[0]+$e,Be[1]=Be[1]+qe,ee.now=Ve,qe=0;for(Bt in ee.timers)ee.timers.hasOwnProperty(Bt)&&(Cn=ee.timers[Bt],Cn.createdAt+=$e,Cn.callAt+=$e)},ee.jump=function(Ae){const Ve=typeof Ae=="number"?Ae:P(Ae),$e=Math.floor(Ve);for(const Bt of Object.values(ee.timers))ee.now+$e>Bt.callAt&&(Bt.callAt=ee.now+$e);ee.tick($e)},q&&(ee.performance=Object.create(null),ee.performance.now=Zt),E&&(ee.hrtime=Rn),ee}function ni(oe){if(arguments.length>1||oe instanceof Date||Array.isArray(oe)||typeof oe=="number")throw new TypeError(`FakeTimers.install called with ${String(oe)} install requires an object parameter`);if(f.Date.isFake===!0)throw new TypeError("Can't install fake timers twice on the same global object.");if(oe=typeof oe<"u"?oe:{},oe.shouldAdvanceTime=oe.shouldAdvanceTime||!1,oe.advanceTimeDelta=oe.advanceTimeDelta||20,oe.shouldClearNativeTimers=oe.shouldClearNativeTimers||!1,oe.target)throw new TypeError("config.target is no longer supported. Use `withGlobal(target)` instead.");let pe,qe;const Be=Za(oe.now,oe.loopLimit);if(Be.shouldClearNativeTimers=oe.shouldClearNativeTimers,Be.uninstall=function(){return Tn(Be,oe)},Be.methods=oe.toFake||[],Be.methods.length===0&&(Be.methods=Object.keys(yt).filter(function(ee){return ee!=="nextTick"&&ee!=="queueMicrotask"})),oe.shouldAdvanceTime===!0){const ee=Cr.bind(null,Be,oe.advanceTimeDelta),st=f.setInterval(ee,oe.advanceTimeDelta);Be.attachedInterval=st}if(Be.methods.includes("performance")){const ee=(()=>{if(_)return f.performance.constructor.prototype;if(N)return f.Performance.prototype})();if(ee)Object.getOwnPropertyNames(ee).forEach(function(st){st!=="now"&&(Be.performance[st]=st.indexOf("getEntries")===0?b:y)});else if((oe.toFake||[]).includes("performance"))throw new ReferenceError("non-existent performance object cannot be faked")}for(f===t&&a&&(Be.timersModuleMethods=[]),pe=0,qe=Be.methods.length;pe<qe;pe++){const ee=Be.methods[pe];if(ee==="hrtime"?f.process&&typeof f.process.hrtime=="function"&&tl(f.process,ee,Be):ee==="nextTick"?f.process&&typeof f.process.nextTick=="function"&&tl(f.process,ee,Be):tl(f,ee,Be),Be.timersModuleMethods!==void 0&&a[ee]){const st=a[ee];Be.timersModuleMethods.push({methodName:ee,original:st}),a[ee]=f[ee]}}return Be}return{timers:yt,createClock:Za,install:ni,withGlobal:i}}const u=i(t);return iy.timers=u.timers,iy.createClock=u.createClock,iy.install=u.install,iy.withGlobal=i,iy}var YJ=GJ();class XJ{constructor({global:a,config:i}){ot(this,"_global");ot(this,"_clock");ot(this,"_fakingTime");ot(this,"_fakingDate");ot(this,"_fakeTimers");ot(this,"_userConfig");ot(this,"_now",Oo.now);this._userConfig=i,this._fakingDate=!1,this._fakingTime=!1,this._fakeTimers=YJ.withGlobal(a),this._global=a}clearAllTimers(){this._fakingTime&&this._clock.reset()}dispose(){this.useRealTimers()}runAllTimers(){this._checkFakeTimers()&&this._clock.runAll()}async runAllTimersAsync(){this._checkFakeTimers()&&await this._clock.runAllAsync()}runOnlyPendingTimers(){this._checkFakeTimers()&&this._clock.runToLast()}async runOnlyPendingTimersAsync(){this._checkFakeTimers()&&await this._clock.runToLastAsync()}advanceTimersToNextTimer(a=1){if(this._checkFakeTimers())for(let i=a;i>0&&(this._clock.next(),this._clock.tick(0),this._clock.countTimers()!==0);i--);}async advanceTimersToNextTimerAsync(a=1){if(this._checkFakeTimers())for(let i=a;i>0&&(await this._clock.nextAsync(),this._clock.tick(0),this._clock.countTimers()!==0);i--);}advanceTimersByTime(a){this._checkFakeTimers()&&this._clock.tick(a)}async advanceTimersByTimeAsync(a){this._checkFakeTimers()&&await this._clock.tickAsync(a)}advanceTimersToNextFrame(){this._checkFakeTimers()&&this._clock.runToFrame()}runAllTicks(){this._checkFakeTimers()&&this._clock.runMicrotasks()}useRealTimers(){this._fakingDate&&(hJ(),this._fakingDate=!1),this._fakingTime&&(this._clock.uninstall(),this._fakingTime=!1)}useFakeTimers(){if(this._fakingDate)throw new Error('"setSystemTime" was called already and date was mocked. Reset timers using `vi.useRealTimers()` if you want to use fake timers again.');if(!this._fakingTime){const a=Object.keys(this._fakeTimers.timers).filter(u=>u!=="nextTick");if(this._userConfig?.toFake?.includes("nextTick")&&$k())throw new Error("process.nextTick cannot be mocked inside child_process");const i=(this._userConfig?.toFake||a).filter(u=>{switch(u){case"setImmediate":case"clearImmediate":return u in this._global&&this._global[u];default:return!0}});this._clock=this._fakeTimers.install({now:Date.now(),...this._userConfig,toFake:i}),this._fakingTime=!0}}reset(){if(this._checkFakeTimers()){const{now:a}=this._clock;this._clock.reset(),this._clock.setSystemTime(a)}}setSystemTime(a){this._fakingTime?this._clock.setSystemTime(a):(pJ(a??this.getRealSystemTime()),this._fakingDate=!0)}getRealSystemTime(){return this._now()}getTimerCount(){return this._checkFakeTimers()?this._clock.countTimers():0}configure(a){this._userConfig=a}isFakeTimers(){return this._fakingTime}_checkFakeTimers(){if(!this._fakingTime)throw new Error('Timers are not mocked. Try calling "vi.useFakeTimers()" first.');return this._fakingTime}}function Kk(t,a){return a.stack!==void 0&&(t.stack=a.stack.replace(a.message,t.message)),t}function FJ(t,a={}){const{setTimeout:i,setInterval:u,clearTimeout:f,clearInterval:m}=LS(),{interval:h=50,timeout:y=1e3}=typeof a=="number"?{timeout:a}:a,b=new Error("STACK_TRACE_ERROR");return new Promise((v,x)=>{let E,R="idle",A,M;const q=L=>{A&&f(A),M&&m(M),v(L)},N=()=>{M&&m(M);let L=E;L||(L=Kk(new Error("Timed out in waitFor!"),b)),x(L)},_=()=>{if(Bf.isFakeTimers()&&Bf.advanceTimersByTime(h),R!=="pending")try{const L=t();if(L!==null&&typeof L=="object"&&typeof L.then=="function"){const $=L;R="pending",$.then(I=>{R="resolved",q(I)},I=>{R="rejected",E=I})}else return q(L),!0}catch(L){E=L}};_()!==!0&&(A=i(N,y),M=u(_,h))})}function QJ(t,a={}){const{setTimeout:i,setInterval:u,clearTimeout:f,clearInterval:m}=LS(),{interval:h=50,timeout:y=1e3}=typeof a=="number"?{timeout:a}:a,b=new Error("STACK_TRACE_ERROR");return new Promise((v,x)=>{let E="idle",R,A;const M=_=>{A&&m(A),_||(_=Kk(new Error("Timed out in waitUntil!"),b)),x(_)},q=_=>{if(_)return R&&f(R),A&&m(A),v(_),!0},N=()=>{if(Bf.isFakeTimers()&&Bf.advanceTimersByTime(h),E!=="pending")try{const _=t();if(_!==null&&typeof _=="object"&&typeof _.then=="function"){const L=_;E="pending",L.then($=>{E="resolved",q($)},$=>{E="rejected",M($)})}else return q(_)}catch(_){M(_)}};N()!==!0&&(R=i(M,y),A=u(N,h))})}function ZJ(){let t=null,a=null;const i=YS();let u;const f=()=>u||(u=new XJ({global:globalThis,config:i.config.fakeTimers})),m=new Map,h=new Map,y=["PROD","DEV","SSR"],b={useFakeTimers(v){if($k()&&(v?.toFake?.includes("nextTick")||i.config?.fakeTimers?.toFake?.includes("nextTick")))throw new Error('vi.useFakeTimers({ toFake: ["nextTick"] }) is not supported in node:child_process. Use --pool=threads if mocking nextTick is required.');return v?f().configure({...i.config.fakeTimers,...v}):f().configure(i.config.fakeTimers),f().useFakeTimers(),b},isFakeTimers(){return f().isFakeTimers()},useRealTimers(){return f().useRealTimers(),t=null,b},runOnlyPendingTimers(){return f().runOnlyPendingTimers(),b},async runOnlyPendingTimersAsync(){return await f().runOnlyPendingTimersAsync(),b},runAllTimers(){return f().runAllTimers(),b},async runAllTimersAsync(){return await f().runAllTimersAsync(),b},runAllTicks(){return f().runAllTicks(),b},advanceTimersByTime(v){return f().advanceTimersByTime(v),b},async advanceTimersByTimeAsync(v){return await f().advanceTimersByTimeAsync(v),b},advanceTimersToNextTimer(){return f().advanceTimersToNextTimer(),b},async advanceTimersToNextTimerAsync(){return await f().advanceTimersToNextTimerAsync(),b},advanceTimersToNextFrame(){return f().advanceTimersToNextFrame(),b},getTimerCount(){return f().getTimerCount()},setSystemTime(v){const x=v instanceof Date?v:new Date(v);return t=x,f().setSystemTime(x),b},getMockedSystemTime(){return t},getRealSystemTime(){return f().getRealSystemTime()},clearAllTimers(){return f().clearAllTimers(),b},spyOn:kX,fn:UX,waitFor:FJ,waitUntil:QJ,hoisted(v){return Tu(v,'"vi.hoisted" factory',["function"]),v()},mock(v,x){if(typeof v!="string")throw new TypeError(`vi.mock() expects a string path, but received a ${typeof v}`);const E=oy("mock");Ao().queueMock(v,E,typeof x=="function"?()=>x(()=>Ao().importActual(v,E,Ao().getMockContext().callstack)):x)},unmock(v){if(typeof v!="string")throw new TypeError(`vi.unmock() expects a string path, but received a ${typeof v}`);Ao().queueUnmock(v,oy("unmock"))},doMock(v,x){if(typeof v!="string")throw new TypeError(`vi.doMock() expects a string path, but received a ${typeof v}`);const E=oy("doMock");Ao().queueMock(v,E,typeof x=="function"?()=>x(()=>Ao().importActual(v,E,Ao().getMockContext().callstack)):x)},doUnmock(v){if(typeof v!="string")throw new TypeError(`vi.doUnmock() expects a string path, but received a ${typeof v}`);Ao().queueUnmock(v,oy("doUnmock"))},async importActual(v){return Ao().importActual(v,oy("importActual"),Ao().getMockContext().callstack)},async importMock(v){return Ao().importMock(v,oy("importMock"))},mocked(v,x={}){return v},isMockFunction(v){return q6(v)},clearAllMocks(){return kw.forEach(v=>v.mockClear()),b},resetAllMocks(){return kw.forEach(v=>v.mockReset()),b},restoreAllMocks(){return kw.forEach(v=>v.mockRestore()),b},stubGlobal(v,x){return m.has(v)||m.set(v,Object.getOwnPropertyDescriptor(globalThis,v)),Object.defineProperty(globalThis,v,{value:x,writable:!0,configurable:!0,enumerable:!0}),b},stubEnv(v,x){return h.has(v)||h.set(v,process.env[v]),y.includes(v)?process.env[v]=x?"1":"":x===void 0?delete process.env[v]:process.env[v]=String(x),b},unstubAllGlobals(){return m.forEach((v,x)=>{v?Object.defineProperty(globalThis,x,v):Reflect.deleteProperty(globalThis,x)}),m.clear(),b},unstubAllEnvs(){return h.forEach((v,x)=>{v===void 0?delete process.env[x]:process.env[x]=v}),h.clear(),b},resetModules(){return MQ(i.moduleCache),b},async dynamicImportSettled(){return Hk()},setConfig(v){a||(a={...i.config}),Object.assign(i.config,v)},resetConfig(){a&&Object.assign(i.config,a)}};return b}const JJ=ZJ(),Bf=JJ;function Ao(){return typeof __vitest_mocker__<"u"?__vitest_mocker__:new Proxy({},{get(t,a){throw new Error(`Vitest mocker was not initialized in this environment. vi.${String(a)}() is forbidden.`)}})}function oy(t){const i=IY({stackTraceLimit:5}).split(`
428
+ `),u=i.findIndex(m=>m.includes(` at Object.${t}`)||m.includes(`${t}@`));return Dk(i[u+1])?.file||""}function KJ(t={}){const{body:a={},status:i=200,headers:u={},delay:f=0,streaming:m=!1,sseText:h,error:y}=t;return Bf.fn().mockImplementation(async()=>{if(f>0&&await new Promise(v=>setTimeout(v,f)),y)throw y;if(m&&h)return r_(h,i);const b=typeof a=="string"?a:JSON.stringify(a);return new Response(b,{status:i,headers:{"Content-Type":"application/json",...u}})})}function WJ(t){return Bf.fn().mockImplementation(async(a,i)=>{const u=typeof a=="string"?a:a.url;for(const[f,m]of Object.entries(t))if(new RegExp(f).test(u)){const{body:y={},status:b=200,headers:v={},delay:x=0,streaming:E=!1,sseText:R,error:A}=m;if(x>0&&await new Promise(q=>setTimeout(q,x)),A)throw A;if(E&&R)return r_(R,b);const M=typeof y=="string"?y:JSON.stringify(y);return new Response(M,{status:b,headers:{"Content-Type":"application/json",...v}})}return new Response(JSON.stringify({error:"Not Found"}),{status:404,headers:{"Content-Type":"application/json"}})})}function eK(t){Bf.stubGlobal("fetch",t)}function tK(){Bf.unstubAllGlobals()}function nK(t,a,i){const u=t.mock.calls;if(!u.find(([m,h])=>{if(!(typeof a=="string"?m.includes(a):a.test(m)))return!1;if(i){if(i.method&&h?.method!==i.method)return!1;if(i.headers){const b=h?.headers;for(const[v,x]of Object.entries(i.headers))if(b?.[v]!==x)return!1}}return!0}))throw new Error(`Expected fetch to be called with URL matching ${a}.
429
+ Actual calls: ${u.map(([m])=>m).join(", ")}`)}exports.AttachmentValidationError=gS;exports.Badge=e_;exports.CuadraChat=g8;exports.CuadraChatContext=Ry;exports.CuadraChatProvider=t_;exports.SourceCitations=r4;exports.applyTheme=i4;exports.cleanupFetchMock=tK;exports.createAttachmentAdapter=FA;exports.createDeferred=XV;exports.createMockChat=bS;exports.createMockChatStream=vS;exports.createMockChatSummaries=w8;exports.createMockChatSummary=n_;exports.createMockChatSummaryPage=E8;exports.createMockErrorStream=c4;exports.createMockFetch=KJ;exports.createMockMessage=Hs;exports.createMockModel=_p;exports.createMockModelPage=b8;exports.createMockModels=S8;exports.createMockReadableStream=f4;exports.createMockStreamingResponse=r_;exports.createRoutedMockFetch=WJ;exports.createSSEEvent=a_;exports.createWrapper=GV;exports.expectFetchCalledWith=nK;exports.isV2Props=u4;exports.mockChats=T8;exports.mockModels=v8;exports.mockStreams=x8;exports.normalizeCuadraChatProps=s4;exports.removeTheme=s8;exports.renderWithProviders=VV;exports.setupFetchMock=eK;exports.streamingMetadataStore=Ps;exports.useCuadraChat=d8;exports.useCuadraChatOptional=p8;exports.waitForAsync=YV;
23
430
  //# sourceMappingURL=index.cjs.map