@vamlabs/vam-chatbot 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(this.webpackChunkVamChatbot=this.webpackChunkVamChatbot||[]).push([[124],{9124:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ie});var a=n(6540),o=n(5793),r=n(9956),s=n(3810),i=n(1083),c=n(4921),l=n(5072),d=n.n(l),h=n(7825),p=n.n(h),u=n(7659),b=n.n(u),m=n(5056),g=n.n(m),x=n(540),f=n.n(x),v=n(1113),w=n.n(v),y=n(9744),j={};j.styleTagTransform=w(),j.setAttributes=g(),j.insert=b().bind(null,"head"),j.domAPI=p(),j.insertStyleElement=f(),d()(y.A,j);const k=y.A&&y.A.locals?y.A.locals:void 0,N={show:{height:"var(--chatbot-height)",width:"var(--chatbot-width)",borderRadius:"var(--chatbot-border-radius)",filter:"blur(0px)",opacity:1,transition:{duration:.3,when:"beforeChildren",staggerChildren:.3}},hide:{height:"0",width:"0",borderRadius:"50%",filter:"blur(5px)",opacity:0,transition:{duration:.3,when:"afterChildren"}}},T={show:{backgroundColor:"var(--oxford-blue)",position:"fixed",bottom:"10px",right:"10px",height:"var(--chatbot-circle-radius)",width:"var(--chatbot-circle-radius)",borderRadius:"50%",opacity:1,zIndex:1,transition:{duration:.3,delay:.3}}},C={show:{scale:1,opacity:1},hide:{scale:0,opacity:0}},S={show:{opacity:1},hide:{opacity:0}},I={show:{scaleY:1,opacity:1,height:"auto",transition:{type:"tween",ease:"easeIn"}},hide:{transition:{type:"tween"},scaleY:0,opacity:0,height:0}},z={show:{height:"auto",transition:{when:"beforeChildren",staggerChildren:.1},scale:1},hide:{height:0,scale:0}},A={show:{opacity:1,transition:{duration:.3}},hide:{opacity:0}},_={show:{opacity:1,height:"auto",scale:1,transition:{duration:.7}},hide:{height:0,scale:0,opacity:0}},M={tap:{scale:.85,opacity:.5}};var Q=n(4848);const E=function(e){let{headerText:t,setPromptsMinimized:n,handleChatbotAnimation:a,resetChatbot:i}=e;return(0,Q.jsx)(o.F,{features:r.l,children:(0,Q.jsx)("div",{className:k.headerContainer,children:(0,Q.jsxs)(s.m.div,{className:k.header,variants:S,children:[(0,Q.jsx)("div",{className:"h-100 d-flex align-items-center",children:(0,Q.jsx)("span",{className:k.headerTitle,children:t})}),(0,Q.jsxs)("div",{children:[(0,Q.jsx)("button",{onClick:i,children:(0,Q.jsx)("i",{className:"bi bi-arrow-clockwise"})}),(0,Q.jsx)("button",{onClick:()=>{n(!0),a()},children:(0,Q.jsx)("i",{className:"bi bi-x-lg"})})]})]})})})};var D=n(23),H=n(2838),P=n.n(H),R=n(7492),U={};U.styleTagTransform=w(),U.setAttributes=g(),U.insert=b().bind(null,"head"),U.domAPI=p(),U.insertStyleElement=f(),d()(R.A,U);const B=R.A&&R.A.locals?R.A.locals:void 0,F=function(e){let{images:t=[]}=e;return(0,Q.jsx)(o.F,{features:r.l,children:(0,Q.jsx)(s.m.div,{id:"carousel-container",className:"carousel slide w-100",initial:"hide",whileInView:"show",viewport:{once:!0},variants:_,children:(0,Q.jsx)("div",{className:`carousel-inner ${B.carousalInner}`,children:[t[0]].map(((e,t)=>(0,Q.jsx)("div",{className:`carousel-item d-flex ${0===t?"active":""} ${B.carousalItem}`,children:(0,Q.jsx)("img",{src:e,className:"d-block w-100 object-fit-contain",alt:"carousal item"})},`carousal-item-${t}`)))})})})},V=function(e){let{sources:t}=e;const[n,i]=(0,a.useState)(!1);return(0,Q.jsxs)(o.F,{features:r.l,children:[(0,Q.jsxs)(s.m.div,{initial:!1,variants:I,animate:n?"show":"hide",className:k.sourceList,children:[(0,Q.jsx)("hr",{}),(0,Q.jsx)("p",{className:k.sourceTitle,children:"Sources:"}),t.map(((e,t)=>(0,Q.jsxs)("p",{children:["- ",(0,Q.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:k.sourceLink,title:e,children:e})]},t)))]}),(0,Q.jsx)("button",{className:`btn btn-sm align-self-end ${k.sourceSwitch}`,onClick:()=>i((e=>!e)),children:n?"Hide Sources":"View Sources"})]})},X=e=>{let{text:t,speed:n=15}=e;const[o,r]=(0,a.useState)("");return(0,a.useEffect)((()=>{const e=setInterval((()=>{r((n=>(n.length===t.length-1&&clearInterval(e),n+(t[n.length]?t[n.length]:""))))}),n);return()=>clearInterval(e)}),[t,n]),(0,Q.jsx)("span",{className:k.markdownToHtmlContainer,dangerouslySetInnerHTML:{__html:o}})};var J=n(8930),q={};q.styleTagTransform=w(),q.setAttributes=g(),q.insert=b().bind(null,"head"),q.domAPI=p(),q.insertStyleElement=f(),d()(J.A,q);const G=J.A&&J.A.locals?J.A.locals:void 0,O=function(e){let{data:t=[]}=e;return(0,Q.jsx)(o.F,{features:r.l,children:(0,Q.jsx)("div",{className:G.promtedTopicsContainer,children:t?.map((e=>e?.title&&(0,Q.jsx)("a",{href:e?.url,target:"_blank",rel:"noopener noreferrer",children:(0,Q.jsx)(s.m.button,{className:G.button,whileTap:"tap",variants:M,children:(0,Q.jsxs)("span",{className:G.buttonContent,children:[(0,Q.jsx)("span",{children:e?.title}),(0,Q.jsx)("i",{className:"bi bi-arrow-up-right"})]})})},e?.title)))})})},$=e=>{let t="";P().addHook("afterSanitizeAttributes",(function(e){"target"in e&&(e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer"))}));try{t=P().sanitize(D.xI.parse(e))}catch(e){console.log(e)}return t};function K(e){let{chatbotIcon:t,messageText:n,messageReferenceLinks:a,messageImageLinks:o,messageSource:r,messageStatus:s,promotedTopics:i,typewriterEffect:c}=e,l={};return"user"===r?l.backgroundColor="var(--chatbot-user-bubble-color)":"bot"===r?l.backgroundColor="var(--chatbot-bot-bubble-color)":"error"===r&&(l.justifyDirection="center"),(0,Q.jsxs)("div",{className:k.message,style:{color:"error"===r?"red":"",justifyContent:l?.justifyDirection,flexDirection:"user"===r?"row-reverse":""},children:["user"===r?(0,Q.jsx)("i",{className:"bi bi-person-circle",style:{color:"var(--chatbot-user-icon-color)"}}):"bot"===r?t&&(0,Q.jsx)("img",{src:t,alt:"chatbot icon",className:k.chatbotIcon}):"",(0,Q.jsx)("div",{className:k.messageBody,children:(0,Q.jsxs)("div",{className:k.messageText,style:{backgroundColor:l.backgroundColor,color:"error"===r?"red":"user"===r?"var(--chatbot-user-text-color)":"var(--chatbot-bot-text-color)"},children:[c?(0,Q.jsx)(X,{text:$(n)}):(0,Q.jsx)("span",{className:k.markdownToHtmlContainer,dangerouslySetInnerHTML:{__html:$(n)}}),"done"===s&&i?.length>0&&(0,Q.jsx)(O,{data:i}),"done"===s&&a?.length>0&&(0,Q.jsx)(V,{sources:a}),o?.length>0&&(0,Q.jsx)(F,{images:o})]})})]})}const L=e=>{let{chatbotIcon:t,messageText:n,messageReferenceLinks:o,messageImageLinks:r,messageSource:s,messageStatus:i,promotedTopics:c,typewriterEffect:l}=e;return(0,a.useMemo)((()=>(0,Q.jsx)(K,{chatbotIcon:t,messageText:n,messageReferenceLinks:o,messageImageLinks:r,messageSource:s,messageStatus:i,promotedTopics:c,typewriterEffect:l})),[n,i,t])};var Y=n(4267),Z={};Z.styleTagTransform=w(),Z.setAttributes=g(),Z.insert=b().bind(null,"head"),Z.domAPI=p(),Z.insertStyleElement=f(),d()(Y.A,Z);const W=Y.A&&Y.A.locals?Y.A.locals:void 0,ee=function(e){let{theme:t="light"}=e;return(0,Q.jsxs)("div",{className:"placeholder-glow",children:[(0,Q.jsxs)("div",{className:W.placeholderContainer,children:[(0,Q.jsx)("div",{className:`placeholder bg-${t} ${W.placeholder}`,style:{width:"20%"}}),(0,Q.jsx)("div",{className:`placeholder bg-${t} ${W.placeholder}`,style:{width:"50%"}})]}),(0,Q.jsxs)("div",{className:W.placeholderContainer,children:[(0,Q.jsx)("div",{className:`placeholder bg-${t} ${W.placeholder}`,style:{width:"40%",marginLeft:"5%"}}),(0,Q.jsx)("div",{className:`placeholder bg-${t} ${W.placeholder}`,style:{width:"50%"}})]}),(0,Q.jsxs)("div",{className:W.placeholderContainer,children:[(0,Q.jsx)("div",{className:`placeholder bg-${t} ${W.placeholder}`,style:{width:"30%",marginLeft:"5%"}}),(0,Q.jsx)("div",{className:`placeholder bg-${t} ${W.placeholder}`,style:{width:"15%"}}),(0,Q.jsx)("div",{className:`placeholder bg-${t} ${W.placeholder}`,style:{width:"20%"}})]}),(0,Q.jsx)("div",{className:W.placeholderContainer,children:(0,Q.jsx)("div",{className:`placeholder bg-${t} ${W.placeholder}`,style:{width:"15%"}})})]})},te=function(e){let{option:t,chatbotState:n,handleSubmit:a=()=>{},setPromptsMinimized:o=()=>{}}=e;return(0,Q.jsxs)("button",{className:k.option,onClick:()=>{o(!0),a(t?.query||t?.label)},disabled:1===n||2===n,children:[(0,Q.jsx)("i",{className:`bi ${t?.iconClass}`}),(0,Q.jsx)("span",{className:k.optionText,children:t?.label})]})},ne=function(e){let{promptsData:t,handleSubmit:n,setPromptsMinimized:a,chatbotState:i}=e;return(0,Q.jsx)(o.F,{features:r.l,children:(0,Q.jsx)("div",{className:k.promptsData,children:t?.prompts?.map(((e,t)=>(0,Q.jsx)(s.m.span,{variants:A,children:(0,Q.jsx)(te,{option:e,handleSubmit:n,setPromptsMinimized:a,chatbotState:i},`option-${t}`)},t)))})})},ae=function(e){let{setPromptsMinimized:t,promptsMinimized:n,promptsData:a,handleSubmit:i,chatbotState:c,inputRef:l,inputText:d,handleInput:h,placeholderInputText:p}=e;return(0,Q.jsx)(o.F,{features:r.l,children:(0,Q.jsx)("div",{className:k.footerContainer,children:(0,Q.jsxs)(s.m.div,{className:k.footer,variants:S,children:[(0,Q.jsx)(s.m.div,{className:k.defaultPrompts,animate:n?"hide":"show",variants:z,children:(0,Q.jsx)(ne,{promptsData:a,handleSubmit:i,setPromptsMinimized:t,chatbotState:c})}),(0,Q.jsx)("div",{className:k.footerBranding,children:"Powered by VAM Studios"}),(0,Q.jsxs)("form",{className:k.footerForm,children:[(0,Q.jsx)("button",{type:"button",className:k.promptDrawerButton,onClick:()=>t((e=>!e)),children:(0,Q.jsx)("i",{className:"bi bi-postcard-heart-fill promptDrawerIcon"})}),(0,Q.jsx)("input",{ref:l,placeholder:p,type:"text",value:d,name:"chatInput",onChange:e=>h(e)}),(0,Q.jsx)("button",{type:"submit",onClick:e=>{e.preventDefault(),i()},disabled:1===c||2===c,children:(0,Q.jsx)("i",{className:"bi bi-arrow-up-circle-fill"})})]})]})})})},oe=function(e){let{messageList:t,promptsData:n,handleSubmit:a,chatbotState:i,scrollAnchorRef:c,promptsMinimized:l,setPromptsMinimized:d,inputRef:h,inputText:p,handleInput:u,placeholderInputText:b,chatbotIcon:m}=e;return(0,Q.jsx)(o.F,{features:r.l,children:(0,Q.jsxs)("div",{className:k.body,children:[(0,Q.jsxs)(s.m.div,{variants:S,className:k.conversation,children:[t.map(((e,t)=>(0,Q.jsx)(L,{chatbotIcon:m,messageText:e?.data?.text,messageReferenceLinks:e?.data?.sources,messageImageLinks:e?.data?.image_links,messageSource:e?.source,messageStatus:e?.status,promotedTopics:e?.data?.promoted_topics,typewriterEffect:e?.typewriterEffect},`message-${t}`))),n?.show&&(0,Q.jsx)("div",{className:k.bodyPromptsContainer,children:(0,Q.jsx)(ne,{promptsData:n,handleSubmit:a,setPromptsMinimized:d})}),1===i&&(0,Q.jsxs)("div",{className:k.message,children:[(0,Q.jsx)("img",{src:m,loading:"lazy",alt:"chatbot icon",className:k.chatbotIcon}),(0,Q.jsx)("span",{className:"w-100",children:(0,Q.jsx)(ee,{theme:"dark"})})]}),(0,Q.jsx)("div",{className:"scrollAnchor",ref:c})]}),(0,Q.jsx)(ae,{setPromptsMinimized:d,promptsMinimized:l,promptsData:n,handleSubmit:a,chatbotState:i,inputRef:h,inputText:p,handleInput:u,placeholderInputText:b})]})})},re=e=>{console.log("websocket error",e)},se=e=>e.replace(/\u003c\|slash\|\u003e/g,"/"),ie=function(e){let{clientId:t}=e;const[n,l]=(0,a.useState)([]),[d,h]=(0,a.useState)(""),[p,u]=(0,a.useState)(0),[b,m]=(0,a.useState)(!0),[g,x]=(0,a.useState)({show:!0,prompts:[]}),[f,v]=(0,a.useState)(!0),[w,y]=(0,a.useState)(!1),[j,S]=(0,a.useState)({fetchedData:!1,data:{}}),[I,z]=(0,a.useState)(null),A=(0,a.useRef)([]),_=(0,a.useRef)(null),M=(0,a.useRef)(null);(0,a.useEffect)((()=>{try{if(j?.data?.styles?.css_variables){let e=document?.querySelector("vam-chatbot")?.shadowRoot.querySelector(`.${k.chatbotContainer.replace(/([^\w-])/g,"\\$1")}`)||document?.querySelector(`.${k.chatbotContainer.replace(/([^\w-])/g,"\\$1")}`);for(let t in j.data.styles.css_variables)e.style.setProperty(`--${t}`,j.data.styles.css_variables[t])}}catch(e){console.log(e)}}),[j?.data?.styles?.css_variables]),(0,a.useEffect)((()=>{try{j?.data?.icon_url&&(async()=>{let e=j?.data?.icon_url,t=(await(0,i.A)({url:e,method:"GET",responseType:"blob"})).data;if(t){let e=URL.createObjectURL(t);z(e)}})()}catch(e){console.log(e)}}),[j?.data?.icon_url]),(0,a.useEffect)((()=>{(async()=>{const e={clientId:t};try{let n=await(0,i.A)({url:"https://b30nwb1awk.execute-api.us-east-1.amazonaws.com/dev/api/getBotConfig",method:"POST",data:e});if(n?.data){let e=n.data;S({fetchedData:!0,data:e}),x(e?.default_prompts||{show:!1,prompts:[]}),l(e?.default_message_list||[]),A.current=e?.default_message_list||[]}else console.log("no data found for the provided client id: ",t)}catch(e){console.error(e)}})()}),[t]);let D=(0,c.Ay)(j?.data?.websocket_url,{onOpen:e=>{console.log("websocket opened")},onClose:e=>((e,t,n)=>{console.log("websocket closed"),t&&(console.log("disabling shouldConnect"),n(!1))})(0,b,y),onMessage:e=>((e,t)=>{t(e)})(e,H),onError:re,shouldReconnect:e=>!b,heartbeat:{message:JSON.stringify({action:"heartbeat",data:"ping"}),returnMessage:"pong",timeout:9e3,interval:6e3}},w);(0,a.useEffect)((()=>{M.current?.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})}),[n]),(0,a.useEffect)((()=>{b||y(!0)}),[b]);const H=e=>{try{e=JSON.parse(e.data)}catch(e){}let{status:t,data:n}=e||{},{response:a,sources:o,image_links:r,promoted_topic:s}=n||{};"streaming"===t?(u(2),a&&l((e=>{let t=[...e],n=e.slice(-1)[0];if("streaming"===n?.status)n.data.text=se(a);else{let e={source:"bot",data:{text:a},origin:"server",status:"streaming"};t=[...t,e]}return t}))):"done"===t&&(u(0),l((e=>{let t=[...e],n=t.slice(-1)[0];if("user"!==n?.source)n.status="done",n.data.text=se(a),n.data.sources=o?.map(se),n.data.image_links=s?.image_link?[s.image_link]?.map(se):r?.map(se),n.data.promoted_topics=[s].filter((e=>e.title));else{let e={source:"bot",data:{text:"I apologize, I am unable to process your request at the moment. Please try again later."},origin:"server",status:"done"};t=[...t,e]}return t})))},P=()=>{m(!b)};return(0,Q.jsx)(Q.Fragment,{children:j?.fetchedData&&(0,Q.jsxs)(o.F,{features:r.l,children:[(0,Q.jsxs)(s.m.div,{initial:!1,className:k.chatbotContainer,animate:b?"hide":"show",variants:N,children:[(0,Q.jsx)(E,{headerText:j?.data?.header_text,setPromptsMinimized:v,handleChatbotAnimation:P,resetChatbot:()=>{try{l(A.current),x((e=>({...e,show:!0}))),u(0)}catch(e){}}}),(0,Q.jsx)(oe,{messageList:n,promptsData:g,handleSubmit:async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e?t=!0:e=d;try{if(e=e.trim(),e){[-1,2,3].includes(D?.readyState)&&(y(!1),setTimeout((()=>{y(!0)}),500)),u(1);let a={source:"user",data:{text:e},status:"done",typewriterEffect:t};l((e=>[...e,a])),x({...g,show:!1}),h("");let o=(()=>{let e=[];try{let t={user:"",assistant:""};for(let a of n)"user"===a.source?t.user=a?.data?.text:"bot"===a.source&&"server"===a.origin&&(t.assistant=a?.data?.text,e.push(t),t={user:"",assistant:""})}catch(e){console.log(e)}finally{return e}})();D.sendJsonMessage({action:"message",data:{message:e,chatHistory:o}})}}catch(e){console.log(e)}},chatbotState:p,scrollAnchorRef:M,promptsMinimized:f,setPromptsMinimized:v,inputRef:_,inputText:d,handleInput:e=>{try{h(e.target.value)}catch(e){}},placeholderInputText:j?.data?.placeholder_input_text,chatbotIcon:I})]}),(0,Q.jsx)(s.m.div,{variants:T,animate:b?"show":"hide",className:k.chatbotCircle,onClick:P,children:I&&(0,Q.jsx)(s.m.div,{variants:C,children:(0,Q.jsx)("img",{src:I,loading:"lazy",alt:"chatbot icon",className:k.chatbotIcon})})})]})})}},9744:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(1601),o=n.n(a),r=n(6314),s=n.n(r)()(o());s.push([e.id,"@import url(https://fonts.googleapis.com/css2?family=Open+Sans:ital,wdth,wght@0,75..100,300..800;1,75..100,300..800&display=swap);"]),s.push([e.id,':root {\n /* --chatbot-bot-bubble-color: #072d58;\n --chatbot-bot-text-color: #ffffff;\n --chatbot-user-bubble-color: #c3ebfe;\n --chatbot-user-text-color: #072d58;\n --chatbot-user-icon-color: #549bbb;\n --chatbot-background-color: #ffffff;\n --chatbot-border-color: #c3ebfe;\n --chatbot-header-color: #072d58;\n --chatbot-inline-link-color: #ffd208;\n --chatbot-prompt-background-color: #c3ebfe;\n --chatbot-footer-branding-color: #494a4b; */\n --chatbot-height: 70%;\n --chatbot-width: 30%;\n --chatbot-header-height: 50px;\n --chatbot-footer-height: 80px;\n --chatbot-footer-input-height: 40px;\n --chatbot-circle-radius: 70px;\n --chatbot-spacing-x: 10px;\n --chatbot-spacing-y: 10px;\n --chatbot-border-radius: 10px;\n}\n\n@media only screen and (max-width: 1280px) {\n :root {\n --chatbot-width: 50%;\n --chatbot-height: 80%;\n }\n}\n\n@media only screen and (max-width: 768px) {\n :root {\n --chatbot-width: 100%;\n --chatbot-height: 100%;\n --chatbot-header-height: 70px;\n --chatbot-spacing-x: 0px;\n --chatbot-spacing-y: 0px;\n --chatbot-border-radius: 0px;\n }\n}\n\n.mrPuzpzfdEmQSyTxnvxI {\n font-family: "Open Sans", sans-serif;\n font-optical-sizing: auto;\n font-weight: 600;\n font-style: normal;\n font-variation-settings: "wdth" 90;\n position: fixed;\n overflow: hidden;\n border-radius: var(--chatbot-border-radius);\n bottom: var(--chatbot-spacing-y);\n right: var(--chatbot-spacing-x);\n height: var(--chatbot-height);\n width: var(--chatbot-width);\n box-shadow: 0 8px 16px 6px rgba(0, 24, 56, 0.2);\n z-index: 11;\n}\n\n.QJ6c9UPW4NdCwINA2KKw {\n position: absolute;\n width: 100%;\n background-color: var(--chatbot-header-color);\n padding: 0 10px;\n border-bottom: 0.5px solid var(--chatbot-border-color);\n z-index: 20;\n height: var(--chatbot-header-height);\n}\n\n.BAciNorgEk8q0Hjvg_Nd {\n height: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n color: white;\n font-size: 1.4rem;\n\n button,\n button:hover {\n background-color: var(--chatbot-header-color);\n color: rgb(255, 255, 255);\n border: none;\n }\n}\n\n.rDNjthKTeHigjuhTaXFw {\n display: flex;\n height: 100%;\n flex-direction: column;\n align-items: flex-start;\n /* Align items to the start (left) */\n justify-content: center;\n /* Center vertically within the container */\n /* padding-left: 10px; */\n /* Add padding to push it away from the edge */\n}\n\n.qhIJF8jtTVHpl14phrvO {\n font-weight: 700;\n text-align: start;\n}\n\n.bJ4qOXuizp8yq01SFRbe {\n font-weight: 700;\n font-size: 0.4rem;\n text-align: start;\n}\n\n.M84EXuBJb0ITHqmcP033 {\n margin-top: var(--chatbot-header-height);\n font-size: 1rem;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n background-color: var(--chatbot-background-color);\n height: calc(100% - var(--chatbot-header-height));\n}\n\n.KJH5XQVgMgo5xa6hVmpQ {\n .uodJA65d3QSnFHHi6wEE {\n row-gap: 10px;\n column-gap: 10px;\n padding: 0 20px;\n }\n .yMV8jdykQ0p_dG9sc2yK {\n gap: 10px;\n border-radius: 10px;\n padding: 5px 12px;\n cursor: pointer;\n\n .OFNqcCdonr5dxzTTZ3zK {\n font-size: 0.85rem;\n }\n }\n}\n\n.F4te4w0Rg9nYSlvqoOuU {\n overflow: auto;\n}\n\n.y3GymRJmY0MX41NX3xWJ {\n width: 50px;\n height: 50px;\n}\n\n.soVXB5uMOlUUVHtMVzBV,\n.BAciNorgEk8q0Hjvg_Nd {\n .y3GymRJmY0MX41NX3xWJ {\n width: 40px;\n height: 40px;\n }\n}\n\n.soVXB5uMOlUUVHtMVzBV {\n display: flex;\n gap: 10px;\n height: fit-content;\n padding: 10px 20px;\n\n .On7UzyczZB0EFpZn8hAO {\n border-radius: 10px;\n padding: 5px 10px;\n display: flex;\n align-items: center;\n flex-direction: column;\n align-items: flex-start;\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);\n }\n\n i {\n font-size: 24px;\n }\n}\n\n.ys2v0_nbj9UZ2GtmsGFl {\n display: flex;\n flex-direction: column;\n}\n\n.uodJA65d3QSnFHHi6wEE {\n display: flex;\n flex-wrap: wrap;\n row-gap: 20px;\n column-gap: 15px;\n justify-content: center;\n padding: 20px 10px 20px 10px;\n}\n\n.yMV8jdykQ0p_dG9sc2yK {\n display: flex;\n gap: 10px;\n align-items: center;\n height: fit-content;\n background-color: var(--chatbot-prompt-background-color);\n border-radius: 10px;\n padding: 10px 30px;\n border: none;\n font-variation-settings: "wdth" 90;\n font-weight: 600;\n\n .OFNqcCdonr5dxzTTZ3zK {\n font-size: 0.85rem;\n }\n}\n\n.yMV8jdykQ0p_dG9sc2yK:disabled {\n cursor: not-allowed;\n}\n\n.ePwR5gBjQ2sQwKScmcAF {\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: 30px;\n max-width: 30px;\n height: 30px;\n border-radius: 30px;\n background-color: grey;\n}\n\n.n5EFd7Gb3khLARy7SBEE {\n text-align: center;\n font-size: 0.7rem;\n font-weight: 700;\n margin: 2px 0;\n background: linear-gradient(to bottom, #39cff6, #ad84ff);\n background-clip: text;\n color: transparent;\n}\n\n.Cswbzq1GQuTnMGpPi4Zt {\n width: 95%;\n margin: 0 auto 10px;\n /* Centering the footer with margin auto */\n border-radius: 10px;\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);\n}\n\n.ibnXsq4b88cDDvfQQgYn {\n display: flex;\n align-items: center;\n min-height: var(--chatbot-footer-input-height);\n height: var(--chatbot-footer-input-height);\n border-radius: 10px;\n overflow: hidden;\n\n i {\n font-size: 1.75rem;\n }\n /* Ensures the button and input are nicely clipped within the border radius */\n}\n\n.vJUKQIrYod4Q56Cduawg {\n background-color: transparent;\n border: none;\n padding: 0;\n cursor: pointer;\n}\n\n.vJUKQIrYod4Q56Cduawg .fy7pExJR53Br8Rva0_mA {\n color: var(--chatbot-header-color);\n /* Initial color, change this to your default icon color */\n transition: color 0.3s ease;\n}\n\n.vJUKQIrYod4Q56Cduawg:hover .fy7pExJR53Br8Rva0_mA {\n color: var(--chatbot-user-icon-color);\n}\n\n.Cswbzq1GQuTnMGpPi4Zt input {\n font-family: "Open Sans", sans-serif;\n font-optical-sizing: auto;\n font-weight: 600;\n font-style: normal;\n font-variation-settings: "wdth" 95;\n color: var(--chatbot-user-text-color);\n background-color: var(--chatbot-background-color);\n border: none;\n padding: 0 10px;\n width: 100%;\n height: 100%;\n outline: none;\n transition: box-shadow 0.3s ease, border-color 0.3s ease;\n}\n\n.Cswbzq1GQuTnMGpPi4Zt input:focus {\n border-color: var(--chatbot-user-bubble-color);\n box-shadow: 0 10 10px var(--chatbot-user-bubble-color);\n /* Adds a glow effect on focus */\n}\n\n.ibnXsq4b88cDDvfQQgYn button {\n background-color: var(--chatbot-background-color);\n border: none;\n padding: 0 15px;\n /* Extra padding for the button */\n color: var(--chatbot-header-color);\n cursor: pointer;\n transition: color 0.3s ease;\n}\n\n.ibnXsq4b88cDDvfQQgYn button:hover {\n color: var(--chatbot-user-icon-color);\n /* filter: brightness(2); */\n /* Optional: hover effect for the button */\n}\n\n.ibnXsq4b88cDDvfQQgYn button:disabled {\n opacity: 0.6;\n /* Makes the button appear disabled */\n cursor: not-allowed;\n /* Changes cursor to indicate it\'s disabled */\n}\n\n.JU97fmgoNdy3Tfye2Dws {\n position: fixed;\n overflow: hidden;\n border-radius: 50px;\n bottom: var(--chatbot-spacing-y);\n right: var(--chatbot-spacing-x);\n width: 0px;\n height: 0px;\n background-color: var(--chatbot-header-color);\n display: flex;\n align-items: center;\n justify-content: center;\n color: white;\n cursor: pointer;\n box-shadow: 0 8px 16px 6px rgba(0, 24, 56, 0.2);\n}\n\n/* Add these styles to your Chatbot.module.css file */\n\n.pkiR_TxdafoynTpvRdcQ {\n margin-top: 10px;\n font-size: 0.95rem;\n width: 100%;\n}\n\n.e3H6efowOKFf_KRpdCmA {\n margin-bottom: 5px;\n font-weight: bold;\n}\n\n.OwwGVqJowxUZVJuA2czv {\n text-decoration: none;\n color: var(--chatbot-bot-text-color);\n}\n\n.sCGr7vUZhXadHUv6e8Ir,\n.sCGr7vUZhXadHUv6e8Ir:hover {\n color: var(--chatbot-inline-link-color);\n text-decoration: underline;\n font-size: 0.95rem;\n}\n\n.Bo90PPN_Vahh0nlC0xX9 {\n a {\n text-decoration: none;\n color: var(--chatbot-inline-link-color);\n font-weight: 900;\n }\n}\n\n.Bo90PPN_Vahh0nlC0xX9 > p {\n margin-bottom: 0;\n}\n',""]),s.locals={chatbotContainer:"mrPuzpzfdEmQSyTxnvxI",headerContainer:"QJ6c9UPW4NdCwINA2KKw",header:"BAciNorgEk8q0Hjvg_Nd",headerTitleContainer:"rDNjthKTeHigjuhTaXFw",headerTitle:"qhIJF8jtTVHpl14phrvO",headerSubtitle:"bJ4qOXuizp8yq01SFRbe",body:"M84EXuBJb0ITHqmcP033",bodyPromptsContainer:"KJH5XQVgMgo5xa6hVmpQ",promptsData:"uodJA65d3QSnFHHi6wEE",option:"yMV8jdykQ0p_dG9sc2yK",optionText:"OFNqcCdonr5dxzTTZ3zK",conversation:"F4te4w0Rg9nYSlvqoOuU",chatbotIcon:"y3GymRJmY0MX41NX3xWJ",message:"soVXB5uMOlUUVHtMVzBV",messageText:"On7UzyczZB0EFpZn8hAO",messageBody:"ys2v0_nbj9UZ2GtmsGFl",icon:"ePwR5gBjQ2sQwKScmcAF",footerBranding:"n5EFd7Gb3khLARy7SBEE",footer:"Cswbzq1GQuTnMGpPi4Zt",footerForm:"ibnXsq4b88cDDvfQQgYn",promptDrawerButton:"vJUKQIrYod4Q56Cduawg",promptDrawerIcon:"fy7pExJR53Br8Rva0_mA",chatbotCircle:"JU97fmgoNdy3Tfye2Dws",sourceList:"pkiR_TxdafoynTpvRdcQ",sourceTitle:"e3H6efowOKFf_KRpdCmA",sourceLink:"OwwGVqJowxUZVJuA2czv",sourceSwitch:"sCGr7vUZhXadHUv6e8Ir",markdownToHtmlContainer:"Bo90PPN_Vahh0nlC0xX9"};const i=s},4267:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(1601),o=n.n(a),r=n(6314),s=n.n(r)()(o());s.push([e.id,".I3r6BXln1zxH2ejvDTTd {\n margin-bottom: 1rem;\n gap: 3%;\n display: flex;\n}\n\n.rTpIHcFrLNeg6YGEnkxW {\n border-radius: 5px;\n}\n",""]),s.locals={placeholderContainer:"I3r6BXln1zxH2ejvDTTd",placeholder:"rTpIHcFrLNeg6YGEnkxW"};const i=s},7492:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(1601),o=n.n(a),r=n(6314),s=n.n(r)()(o());s.push([e.id,".bM7UYUIV67pDU1mIqhBb {\n border-radius: 10px;\n}\n\n.FCedTtDmiTfcKbb9XOGz {\n max-height: 24rem;\n}\n",""]),s.locals={carousalInner:"bM7UYUIV67pDU1mIqhBb",carousalItem:"FCedTtDmiTfcKbb9XOGz"};const i=s},8930:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(1601),o=n.n(a),r=n(6314),s=n.n(r)()(o());s.push([e.id,".Udcs8gpcaMQsVM3JuB3v {\n display: flex;\n justify-content: center;\n width: 100%;\n margin: 30px 0;\n\n a {\n text-decoration: none;\n }\n\n .HoX0s_YXk0mg95sPM9UW {\n padding: 16px;\n background: linear-gradient(white, white) padding-box,\n linear-gradient(to bottom, #39cff6, #ad84ff) border-box;\n border: 3px solid transparent;\n border-radius: 50px;\n }\n\n .eSDuidpnH74LBTacQi_Q {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 5px;\n font-weight: 800;\n background: linear-gradient(to bottom, #ad84ff, #39cff6);\n background-clip: text;\n color: transparent;\n\n i {\n font-size: inherit;\n }\n\n transition: all 0.3s ease;\n }\n\n .HoX0s_YXk0mg95sPM9UW:hover {\n background: linear-gradient(#39cff6, #ad84ff) padding-box,\n linear-gradient(to bottom, #39cff6, #ad84ff) border-box;\n\n .eSDuidpnH74LBTacQi_Q {\n color: white;\n background: unset;\n background-clip: unset;\n }\n }\n}\n",""]),s.locals={promtedTopicsContainer:"Udcs8gpcaMQsVM3JuB3v",button:"HoX0s_YXk0mg95sPM9UW",buttonContent:"eSDuidpnH74LBTacQi_Q"};const i=s}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 826.web-component.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunkVamChatbot=this.webpackChunkVamChatbot||[]).push([[826],{6314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,s,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(i[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&i[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),s&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=s):u[4]="".concat(s)),t.push(u))}},t}},1601:e=>{"use strict";e.exports=function(e){return e[1]}},2838:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:s}=Object;let{freeze:o,seal:i,create:a}=Object,{apply:l,construct:c}="undefined"!=typeof Reflect&&Reflect;o||(o=function(e){return e}),i||(i=function(e){return e}),l||(l=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});const u=x(Array.prototype.forEach),h=x(Array.prototype.pop),p=x(Array.prototype.push),d=x(String.prototype.toLowerCase),f=x(String.prototype.toString),m=x(String.prototype.match),g=x(String.prototype.replace),y=x(String.prototype.indexOf),v=x(String.prototype.trim),b=x(Object.prototype.hasOwnProperty),w=x(RegExp.prototype.test),k=(S=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c(S,t)});var S;function x(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return l(e,t,r)}}function T(e,r){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;t&&t(e,null);let o=r.length;for(;o--;){let t=r[o];if("string"==typeof t){const e=s(t);e!==t&&(n(r)||(r[o]=e),t=e)}e[t]=!0}return e}function E(e){for(let t=0;t<e.length;t++)b(e,t)||(e[t]=null);return e}function A(t){const n=a(null);for(const[r,s]of e(t))b(t,r)&&(Array.isArray(s)?n[r]=E(s):s&&"object"==typeof s&&s.constructor===Object?n[r]=A(s):n[r]=s);return n}function R(e,t){for(;null!==e;){const n=s(e,t);if(n){if(n.get)return x(n.get);if("function"==typeof n.value)return x(n.value)}e=r(e)}return function(){return null}}const O=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),C=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),_=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),P=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),N=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),M=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),I=o(["#text"]),L=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),D=o(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),F=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),U=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),j=i(/\{\{[\w\W]*|[\w\W]*\}\}/gm),V=i(/<%[\w\W]*|[\w\W]*%>/gm),B=i(/\${[\w\W]*}/gm),$=i(/^data-[\-\w.\u00B7-\uFFFF]/),z=i(/^aria-[\-\w]+$/),W=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=i(/^(?:\w+script|data):/i),H=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=i(/^html$/i),G=i(/^[a-z][.\w]*(-[.\w]+)+$/i);var Y=Object.freeze({__proto__:null,MUSTACHE_EXPR:j,ERB_EXPR:V,TMPLIT_EXPR:B,DATA_ATTR:$,ARIA_ATTR:z,IS_ALLOWED_URI:W,IS_SCRIPT_OR_DATA:q,ATTR_WHITESPACE:H,DOCTYPE_NAME:K,CUSTOM_ELEMENT:G});const X=1,J=3,Z=7,Q=8,ee=9,te=function(){return"undefined"==typeof window?null:window};return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te();const r=e=>t(e);if(r.version="3.1.6",r.removed=[],!n||!n.document||n.document.nodeType!==ee)return r.isSupported=!1,r;let{document:s}=n;const i=s,l=i.currentScript,{DocumentFragment:c,HTMLTemplateElement:S,Node:x,Element:E,NodeFilter:j,NamedNodeMap:V=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:B,DOMParser:$,trustedTypes:z}=n,q=E.prototype,H=R(q,"cloneNode"),G=R(q,"remove"),ne=R(q,"nextSibling"),re=R(q,"childNodes"),se=R(q,"parentNode");if("function"==typeof S){const e=s.createElement("template");e.content&&e.content.ownerDocument&&(s=e.content.ownerDocument)}let oe,ie="";const{implementation:ae,createNodeIterator:le,createDocumentFragment:ce,getElementsByTagName:ue}=s,{importNode:he}=i;let pe={};r.isSupported="function"==typeof e&&"function"==typeof se&&ae&&void 0!==ae.createHTMLDocument;const{MUSTACHE_EXPR:de,ERB_EXPR:fe,TMPLIT_EXPR:me,DATA_ATTR:ge,ARIA_ATTR:ye,IS_SCRIPT_OR_DATA:ve,ATTR_WHITESPACE:be,CUSTOM_ELEMENT:we}=Y;let{IS_ALLOWED_URI:ke}=Y,Se=null;const xe=T({},[...O,...C,..._,...N,...I]);let Te=null;const Ee=T({},[...L,...D,...F,...U]);let Ae=Object.seal(a(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Re=null,Oe=null,Ce=!0,_e=!0,Pe=!1,Ne=!0,Me=!1,Ie=!0,Le=!1,De=!1,Fe=!1,Ue=!1,je=!1,Ve=!1,Be=!0,$e=!1,ze=!0,We=!1,qe={},He=null;const Ke=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ge=null;const Ye=T({},["audio","video","img","source","image","track"]);let Xe=null;const Je=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ze="http://www.w3.org/1998/Math/MathML",Qe="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let tt=et,nt=!1,rt=null;const st=T({},[Ze,Qe,et],f);let ot=null;const it=["application/xhtml+xml","text/html"];let at=null,lt=null;const ct=s.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},ht=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!lt||lt!==e){if(e&&"object"==typeof e||(e={}),e=A(e),ot=-1===it.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,at="application/xhtml+xml"===ot?f:d,Se=b(e,"ALLOWED_TAGS")?T({},e.ALLOWED_TAGS,at):xe,Te=b(e,"ALLOWED_ATTR")?T({},e.ALLOWED_ATTR,at):Ee,rt=b(e,"ALLOWED_NAMESPACES")?T({},e.ALLOWED_NAMESPACES,f):st,Xe=b(e,"ADD_URI_SAFE_ATTR")?T(A(Je),e.ADD_URI_SAFE_ATTR,at):Je,Ge=b(e,"ADD_DATA_URI_TAGS")?T(A(Ye),e.ADD_DATA_URI_TAGS,at):Ye,He=b(e,"FORBID_CONTENTS")?T({},e.FORBID_CONTENTS,at):Ke,Re=b(e,"FORBID_TAGS")?T({},e.FORBID_TAGS,at):{},Oe=b(e,"FORBID_ATTR")?T({},e.FORBID_ATTR,at):{},qe=!!b(e,"USE_PROFILES")&&e.USE_PROFILES,Ce=!1!==e.ALLOW_ARIA_ATTR,_e=!1!==e.ALLOW_DATA_ATTR,Pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Me=e.SAFE_FOR_TEMPLATES||!1,Ie=!1!==e.SAFE_FOR_XML,Le=e.WHOLE_DOCUMENT||!1,Ue=e.RETURN_DOM||!1,je=e.RETURN_DOM_FRAGMENT||!1,Ve=e.RETURN_TRUSTED_TYPE||!1,Fe=e.FORCE_BODY||!1,Be=!1!==e.SANITIZE_DOM,$e=e.SANITIZE_NAMED_PROPS||!1,ze=!1!==e.KEEP_CONTENT,We=e.IN_PLACE||!1,ke=e.ALLOWED_URI_REGEXP||W,tt=e.NAMESPACE||et,Ae=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ae.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ae.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ae.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Me&&(_e=!1),je&&(Ue=!0),qe&&(Se=T({},I),Te=[],!0===qe.html&&(T(Se,O),T(Te,L)),!0===qe.svg&&(T(Se,C),T(Te,D),T(Te,U)),!0===qe.svgFilters&&(T(Se,_),T(Te,D),T(Te,U)),!0===qe.mathMl&&(T(Se,N),T(Te,F),T(Te,U))),e.ADD_TAGS&&(Se===xe&&(Se=A(Se)),T(Se,e.ADD_TAGS,at)),e.ADD_ATTR&&(Te===Ee&&(Te=A(Te)),T(Te,e.ADD_ATTR,at)),e.ADD_URI_SAFE_ATTR&&T(Xe,e.ADD_URI_SAFE_ATTR,at),e.FORBID_CONTENTS&&(He===Ke&&(He=A(He)),T(He,e.FORBID_CONTENTS,at)),ze&&(Se["#text"]=!0),Le&&T(Se,["html","head","body"]),Se.table&&(T(Se,["tbody"]),delete Re.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw k('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw k('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');oe=e.TRUSTED_TYPES_POLICY,ie=oe.createHTML("")}else void 0===oe&&(oe=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+s+" could not be created."),null}}(z,l)),null!==oe&&"string"==typeof ie&&(ie=oe.createHTML(""));o&&o(e),lt=e}},pt=T({},["mi","mo","mn","ms","mtext"]),dt=T({},["foreignobject","annotation-xml"]),ft=T({},["title","style","font","a","script"]),mt=T({},[...C,..._,...P]),gt=T({},[...N,...M]),yt=function(e){p(r.removed,{element:e});try{se(e).removeChild(e)}catch(t){G(e)}},vt=function(e,t){try{p(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Te[e])if(Ue||je)try{yt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},bt=function(e){let t=null,n=null;if(Fe)e="<remove></remove>"+e;else{const t=m(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ot&&tt===et&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=oe?oe.createHTML(e):e;if(tt===et)try{t=(new $).parseFromString(r,ot)}catch(e){}if(!t||!t.documentElement){t=ae.createDocument(tt,"template",null);try{t.documentElement.innerHTML=nt?ie:r}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(s.createTextNode(n),o.childNodes[0]||null),tt===et?ue.call(t,Le?"html":"body")[0]:Le?t.documentElement:o},wt=function(e){return le.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT|j.SHOW_PROCESSING_INSTRUCTION|j.SHOW_CDATA_SECTION,null)},kt=function(e){return e instanceof B&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof V)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},St=function(e){return"function"==typeof x&&e instanceof x},xt=function(e,t,n){pe[e]&&u(pe[e],(e=>{e.call(r,t,n,lt)}))},Tt=function(e){let t=null;if(xt("beforeSanitizeElements",e,null),kt(e))return yt(e),!0;const n=at(e.nodeName);if(xt("uponSanitizeElement",e,{tagName:n,allowedTags:Se}),e.hasChildNodes()&&!St(e.firstElementChild)&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return yt(e),!0;if(e.nodeType===Z)return yt(e),!0;if(Ie&&e.nodeType===Q&&w(/<[/\w]/g,e.data))return yt(e),!0;if(!Se[n]||Re[n]){if(!Re[n]&&At(n)){if(Ae.tagNameCheck instanceof RegExp&&w(Ae.tagNameCheck,n))return!1;if(Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(n))return!1}if(ze&&!He[n]){const t=se(e)||e.parentNode,n=re(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const s=H(n[r],!0);s.__removalCount=(e.__removalCount||0)+1,t.insertBefore(s,ne(e))}}return yt(e),!0}return e instanceof E&&!function(e){let t=se(e);t&&t.tagName||(t={namespaceURI:tt,tagName:"template"});const n=d(e.tagName),r=d(t.tagName);return!!rt[e.namespaceURI]&&(e.namespaceURI===Qe?t.namespaceURI===et?"svg"===n:t.namespaceURI===Ze?"svg"===n&&("annotation-xml"===r||pt[r]):Boolean(mt[n]):e.namespaceURI===Ze?t.namespaceURI===et?"math"===n:t.namespaceURI===Qe?"math"===n&&dt[r]:Boolean(gt[n]):e.namespaceURI===et?!(t.namespaceURI===Qe&&!dt[r])&&!(t.namespaceURI===Ze&&!pt[r])&&!gt[n]&&(ft[n]||!mt[n]):!("application/xhtml+xml"!==ot||!rt[e.namespaceURI]))}(e)?(yt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!w(/<\/no(script|embed|frames)/i,e.innerHTML)?(Me&&e.nodeType===J&&(t=e.textContent,u([de,fe,me],(e=>{t=g(t,e," ")})),e.textContent!==t&&(p(r.removed,{element:e.cloneNode()}),e.textContent=t)),xt("afterSanitizeElements",e,null),!1):(yt(e),!0)},Et=function(e,t,n){if(Be&&("id"===t||"name"===t)&&(n in s||n in ct))return!1;if(_e&&!Oe[t]&&w(ge,t));else if(Ce&&w(ye,t));else if(!Te[t]||Oe[t]){if(!(At(e)&&(Ae.tagNameCheck instanceof RegExp&&w(Ae.tagNameCheck,e)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(e))&&(Ae.attributeNameCheck instanceof RegExp&&w(Ae.attributeNameCheck,t)||Ae.attributeNameCheck instanceof Function&&Ae.attributeNameCheck(t))||"is"===t&&Ae.allowCustomizedBuiltInElements&&(Ae.tagNameCheck instanceof RegExp&&w(Ae.tagNameCheck,n)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(n))))return!1}else if(Xe[t]);else if(w(ke,g(n,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(n,"data:")||!Ge[e])if(Pe&&!w(ve,g(n,be,"")));else if(n)return!1;return!0},At=function(e){return"annotation-xml"!==e&&m(e,we)},Rt=function(e){xt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Te};let s=t.length;for(;s--;){const o=t[s],{name:i,namespaceURI:a,value:l}=o,c=at(i);let p="value"===i?l:v(l);if(n.attrName=c,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,xt("uponSanitizeAttribute",e,n),p=n.attrValue,Ie&&w(/((--!?|])>)|<\/(style|title)/i,p)){vt(i,e);continue}if(n.forceKeepAttr)continue;if(vt(i,e),!n.keepAttr)continue;if(!Ne&&w(/\/>/i,p)){vt(i,e);continue}Me&&u([de,fe,me],(e=>{p=g(p,e," ")}));const d=at(e.nodeName);if(Et(d,c,p)){if(!$e||"id"!==c&&"name"!==c||(vt(i,e),p="user-content-"+p),oe&&"object"==typeof z&&"function"==typeof z.getAttributeType)if(a);else switch(z.getAttributeType(d,c)){case"TrustedHTML":p=oe.createHTML(p);break;case"TrustedScriptURL":p=oe.createScriptURL(p)}try{a?e.setAttributeNS(a,i,p):e.setAttribute(i,p),kt(e)?yt(e):h(r.removed)}catch(e){}}}xt("afterSanitizeAttributes",e,null)},Ot=function e(t){let n=null;const r=wt(t);for(xt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)xt("uponSanitizeShadowNode",n,null),Tt(n)||(n.content instanceof c&&e(n.content),Rt(n));xt("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,s=null,o=null,a=null;if(nt=!e,nt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!St(e)){if("function"!=typeof e.toString)throw k("toString is not a function");if("string"!=typeof(e=e.toString()))throw k("dirty is not a string, aborting")}if(!r.isSupported)return e;if(De||ht(t),r.removed=[],"string"==typeof e&&(We=!1),We){if(e.nodeName){const t=at(e.nodeName);if(!Se[t]||Re[t])throw k("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof x)n=bt("\x3c!----\x3e"),s=n.ownerDocument.importNode(e,!0),s.nodeType===X&&"BODY"===s.nodeName||"HTML"===s.nodeName?n=s:n.appendChild(s);else{if(!Ue&&!Me&&!Le&&-1===e.indexOf("<"))return oe&&Ve?oe.createHTML(e):e;if(n=bt(e),!n)return Ue?null:Ve?ie:""}n&&Fe&&yt(n.firstChild);const l=wt(We?e:n);for(;o=l.nextNode();)Tt(o)||(o.content instanceof c&&Ot(o.content),Rt(o));if(We)return e;if(Ue){if(je)for(a=ce.call(n.ownerDocument);n.firstChild;)a.appendChild(n.firstChild);else a=n;return(Te.shadowroot||Te.shadowrootmode)&&(a=he.call(i,a,!0)),a}let h=Le?n.outerHTML:n.innerHTML;return Le&&Se["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&w(K,n.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+h),Me&&u([de,fe,me],(e=>{h=g(h,e," ")})),oe&&Ve?oe.createHTML(h):h},r.setConfig=function(){ht(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),De=!0},r.clearConfig=function(){lt=null,De=!1},r.isValidAttribute=function(e,t,n){lt||ht({});const r=at(e),s=at(t);return Et(r,s,n)},r.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],p(pe[e],t))},r.removeHook=function(e){if(pe[e])return h(pe[e])},r.removeHooks=function(e){pe[e]&&(pe[e]=[])},r.removeAllHooks=function(){pe={}},r}()}()},4921:(e,t,n)=>{"use strict";t.Ay=void 0;var r=n(1380);Object.defineProperty(t,"Ay",{enumerable:!0,get:function(){return r.useWebSocket}});n(7407),n(9800),n(9797),n(1001)},8049:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.attachListeners=void 0;var s=n(9789),o=n(7889),i=n(9800),a=n(1001);t.attachListeners=function(e,t,n,l,c,u){var h,p,d,f=t.setLastMessage,m=t.setReadyState;return n.current.fromSocketIO&&(h=(0,s.setUpSocketIOPing)(u)),function(e,t,n){var r;if(t.current.heartbeat&&e instanceof WebSocket){var s="boolean"==typeof t.current.heartbeat?void 0:t.current.heartbeat;r=(0,o.heartbeat)(e,s)}e.onmessage=function(e){var s;null==r||r(),t.current.onMessage&&t.current.onMessage(e),"function"==typeof t.current.filter&&!0!==t.current.filter(e)||t.current.heartbeat&&"boolean"!=typeof t.current.heartbeat&&(null===(s=t.current.heartbeat)||void 0===s?void 0:s.returnMessage)===e.data||n(e)}}(e,n,f),function(e,t,n,r){e.onopen=function(e){t.current.onOpen&&t.current.onOpen(e),r.current=0,n(i.ReadyState.OPEN)}}(e,n,m,c),p=function(e,t,n,r,s){return i.isEventSourceSupported&&e instanceof EventSource?function(){}:((0,a.assertIsWebSocket)(e,t.current.skipAssert),e.onclose=function(e){var a;if(t.current.onClose&&t.current.onClose(e),n(i.ReadyState.CLOSED),t.current.shouldReconnect&&t.current.shouldReconnect(e)){var l=null!==(a=t.current.reconnectAttempts)&&void 0!==a?a:i.DEFAULT_RECONNECT_LIMIT;if(s.current<l){var c="function"==typeof t.current.reconnectInterval?t.current.reconnectInterval(s.current):t.current.reconnectInterval;o=window.setTimeout((function(){s.current++,r()}),null!=c?c:i.DEFAULT_RECONNECT_INTERVAL_MS)}else t.current.onReconnectStop&&t.current.onReconnectStop(l),console.warn("Max reconnect attempts of ".concat(l," exceeded"))}},function(){return o&&window.clearTimeout(o)});var o}(e,n,m,l,c),d=function(e,t,n,s,o){var a;return e.onerror=function(l){var c;if(t.current.onError&&t.current.onError(l),i.isEventSourceSupported&&e instanceof EventSource&&(t.current.onClose&&t.current.onClose(r(r({},l),{code:1006,reason:"An error occurred with the EventSource: ".concat(l),wasClean:!1})),n(i.ReadyState.CLOSED),e.close()),t.current.retryOnError)if(o.current<(null!==(c=t.current.reconnectAttempts)&&void 0!==c?c:i.DEFAULT_RECONNECT_LIMIT)){var u="function"==typeof t.current.reconnectInterval?t.current.reconnectInterval(o.current):t.current.reconnectInterval;a=window.setTimeout((function(){o.current++,s()}),null!=u?u:i.DEFAULT_RECONNECT_INTERVAL_MS)}else t.current.onReconnectStop&&t.current.onReconnectStop(t.current.reconnectAttempts),console.warn("Max reconnect attempts of ".concat(t.current.reconnectAttempts," exceeded"))},function(){return a&&window.clearTimeout(a)}}(e,n,m,l,c),function(){m(i.ReadyState.CLOSING),p(),d(),e.close(),h&&clearInterval(h)}}},5784:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.attachSharedListeners=void 0;var s=n(8389),o=n(9800),i=n(5984),a=n(9789),l=n(7889);t.attachSharedListeners=function(e,t,n,c){var u;return n.current.fromSocketIO&&(u=(0,a.setUpSocketIOPing)(c)),function(e,t,n){var r;n&&e instanceof WebSocket&&(r=(0,l.heartbeat)(e,"boolean"==typeof n?void 0:n)),e.onmessage=function(e){null==r||r(),(0,i.getSubscribers)(t).forEach((function(t){t.optionsRef.current.onMessage&&t.optionsRef.current.onMessage(e),"function"==typeof t.optionsRef.current.filter&&!0!==t.optionsRef.current.filter(e)||n&&"boolean"!=typeof n&&(null==n?void 0:n.returnMessage)===e.data||t.setLastMessage(e)}))}}(e,t,n.current.heartbeat),function(e,t){e instanceof WebSocket&&(e.onclose=function(e){(0,i.getSubscribers)(t).forEach((function(t){t.optionsRef.current.onClose&&t.optionsRef.current.onClose(e),t.setReadyState(o.ReadyState.CLOSED)})),delete s.sharedWebSockets[t],(0,i.getSubscribers)(t).forEach((function(t){var n;if(t.optionsRef.current.shouldReconnect&&t.optionsRef.current.shouldReconnect(e)){var r=null!==(n=t.optionsRef.current.reconnectAttempts)&&void 0!==n?n:o.DEFAULT_RECONNECT_LIMIT;if(t.reconnectCount.current<r){var s="function"==typeof t.optionsRef.current.reconnectInterval?t.optionsRef.current.reconnectInterval(t.reconnectCount.current):t.optionsRef.current.reconnectInterval;setTimeout((function(){t.reconnectCount.current++,t.reconnect.current()}),null!=s?s:o.DEFAULT_RECONNECT_INTERVAL_MS)}else t.optionsRef.current.onReconnectStop&&t.optionsRef.current.onReconnectStop(t.optionsRef.current.reconnectAttempts),console.warn("Max reconnect attempts of ".concat(r," exceeded"))}}))})}(e,t),function(e,t){e.onopen=function(e){(0,i.getSubscribers)(t).forEach((function(t){t.reconnectCount.current=0,t.optionsRef.current.onOpen&&t.optionsRef.current.onOpen(e),t.setReadyState(o.ReadyState.OPEN)}))}}(e,t),function(e,t){e.onerror=function(n){(0,i.getSubscribers)(t).forEach((function(t){t.optionsRef.current.onError&&t.optionsRef.current.onError(n),o.isEventSourceSupported&&e instanceof EventSource&&(t.optionsRef.current.onClose&&t.optionsRef.current.onClose(r(r({},n),{code:1006,reason:"An error occurred with the EventSource: ".concat(n),wasClean:!1})),t.setReadyState(o.ReadyState.CLOSED))})),o.isEventSourceSupported&&e instanceof EventSource&&e.close()}}(e,t),function(){u&&clearInterval(u)}}},9800:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.isEventSourceSupported=t.isReactNative=t.ReadyState=t.DEFAULT_HEARTBEAT=t.UNPARSABLE_JSON_OBJECT=t.DEFAULT_RECONNECT_INTERVAL_MS=t.DEFAULT_RECONNECT_LIMIT=t.SOCKET_IO_PING_CODE=t.SOCKET_IO_PATH=t.SOCKET_IO_PING_INTERVAL=t.DEFAULT_EVENT_SOURCE_OPTIONS=t.EMPTY_EVENT_HANDLERS=t.DEFAULT_OPTIONS=void 0,t.DEFAULT_OPTIONS={},t.EMPTY_EVENT_HANDLERS={},t.DEFAULT_EVENT_SOURCE_OPTIONS={withCredentials:!1,events:t.EMPTY_EVENT_HANDLERS},t.SOCKET_IO_PING_INTERVAL=25e3,t.SOCKET_IO_PATH="/socket.io/?EIO=3&transport=websocket",t.SOCKET_IO_PING_CODE="2",t.DEFAULT_RECONNECT_LIMIT=20,t.DEFAULT_RECONNECT_INTERVAL_MS=5e3,t.UNPARSABLE_JSON_OBJECT={},t.DEFAULT_HEARTBEAT={message:"ping",timeout:6e4,interval:25e3},(n=t.ReadyState||(t.ReadyState={}))[n.UNINSTANTIATED=-1]="UNINSTANTIATED",n[n.CONNECTING=0]="CONNECTING",n[n.OPEN=1]="OPEN",n[n.CLOSING=2]="CLOSING",n[n.CLOSED=3]="CLOSED",t.isReactNative="undefined"!=typeof navigator&&"ReactNative"===navigator.product,t.isEventSourceSupported=!t.isReactNative&&function(){try{return"EventSource"in globalThis}catch(e){return!1}}()},2604:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createOrJoinSocket=void 0;var r=n(8389),s=n(9800),o=n(8049),i=n(5784),a=n(5984);t.createOrJoinSocket=function(e,t,n,l,c,u,h,p){if(!s.isEventSourceSupported&&l.current.eventSourceOptions)throw s.isReactNative?new Error("EventSource is not supported in ReactNative"):new Error("EventSource is not supported");if(l.current.share){var d=null;void 0===r.sharedWebSockets[t]?(r.sharedWebSockets[t]=l.current.eventSourceOptions?new EventSource(t,l.current.eventSourceOptions):new WebSocket(t,l.current.protocols),e.current=r.sharedWebSockets[t],n(s.ReadyState.CONNECTING),d=(0,i.attachSharedListeners)(r.sharedWebSockets[t],t,l,p)):(e.current=r.sharedWebSockets[t],n(r.sharedWebSockets[t].readyState));var f={setLastMessage:c,setReadyState:n,optionsRef:l,reconnectCount:h,reconnect:u};return(0,a.addSubscriber)(t,f),function(e,t,n,o,i){return function(){if((0,a.removeSubscriber)(e,t),!(0,a.hasSubscribers)(e)){try{var l=r.sharedWebSockets[e];l instanceof WebSocket&&(l.onclose=function(e){n.current.onClose&&n.current.onClose(e),o(s.ReadyState.CLOSED)}),l.close()}catch(e){}i&&i(),delete r.sharedWebSockets[e]}}}(t,f,l,n,d)}if(e.current=l.current.eventSourceOptions?new EventSource(t,l.current.eventSourceOptions):new WebSocket(t,l.current.protocols),n(s.ReadyState.CONNECTING),!e.current)throw new Error("WebSocket failed to be created");return(0,o.attachListeners)(e.current,{setLastMessage:c,setReadyState:n},l,u.current,h,p)}},6421:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(s,o){function i(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}l((r=r.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var n,r,s,o,i={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(s=2&o[0]?r.return:o[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,o[1])).done)return s;switch(r=0,s&&(o=[2&o[0],s.value]),o[0]){case 0:case 1:s=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,r=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!((s=(s=i.trys).length>0&&s[s.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!s||o[1]>s[0]&&o[1]<s[3])){i.label=o[1];break}if(6===o[0]&&i.label<s[1]){i.label=s[1],s=o;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(o);break}s[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e],r=0}finally{n=s=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.getUrl=void 0;var o=n(9789),i=n(9800);t.getUrl=function(e,n,a){return void 0===a&&(a=0),r(void 0,void 0,void 0,(function(){var r,l,c,u,h,p,d;return s(this,(function(s){switch(s.label){case 0:if("function"!=typeof e)return[3,10];s.label=1;case 1:return s.trys.push([1,3,,9]),[4,e()];case 2:return r=s.sent(),[3,9];case 3:return s.sent(),n.current.retryOnError?(l=null!==(h=n.current.reconnectAttempts)&&void 0!==h?h:i.DEFAULT_RECONNECT_LIMIT,a<l?(c="function"==typeof n.current.reconnectInterval?n.current.reconnectInterval(a):n.current.reconnectInterval,[4,(f=null!=c?c:i.DEFAULT_RECONNECT_INTERVAL_MS,new Promise((function(e){return window.setTimeout(e,f)})))]):[3,5]):[3,7];case 4:return s.sent(),[2,(0,t.getUrl)(e,n,a+1)];case 5:return null===(d=(p=n.current).onReconnectStop)||void 0===d||d.call(p,a),[2,null];case 6:return[3,8];case 7:return[2,null];case 8:return[3,9];case 9:return[3,11];case 10:r=e,s.label=11;case 11:return u=n.current.fromSocketIO?(0,o.parseSocketIOUrl)(r):r,[2,n.current.queryParams?(0,o.appendQueryParams)(u,n.current.queryParams):u]}var f}))}))}},8389:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetWebSockets=t.sharedWebSockets=void 0,t.sharedWebSockets={},t.resetWebSockets=function(e){if(e&&t.sharedWebSockets.hasOwnProperty(e))delete t.sharedWebSockets[e];else for(var n in t.sharedWebSockets)t.sharedWebSockets.hasOwnProperty(n)&&delete t.sharedWebSockets[n]}},7889:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.heartbeat=void 0;var r=n(9800);t.heartbeat=function(e,t){var n=t||{},s=n.interval,o=void 0===s?r.DEFAULT_HEARTBEAT.interval:s,i=n.timeout,a=void 0===i?r.DEFAULT_HEARTBEAT.timeout:i,l=n.message,c=void 0===l?r.DEFAULT_HEARTBEAT.message:l,u=!1,h=setInterval((function(){try{"function"==typeof c?e.send(c()):e.send(c)}catch(e){}}),o),p=setInterval((function(){u?u=!1:e.close()}),a);return e.addEventListener("close",(function(){clearInterval(h),clearInterval(p)})),function(){u=!0}}},5984:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetSubscribers=t.removeSubscriber=t.addSubscriber=t.hasSubscribers=t.getSubscribers=void 0;var n={},r=[];t.getSubscribers=function(e){return(0,t.hasSubscribers)(e)?Array.from(n[e]):r},t.hasSubscribers=function(e){var t;return(null===(t=n[e])||void 0===t?void 0:t.size)>0},t.addSubscriber=function(e,t){n[e]=n[e]||new Set,n[e].add(t)},t.removeSubscriber=function(e,t){n[e].delete(t)},t.resetSubscribers=function(e){if(e&&n.hasOwnProperty(e))delete n[e];else for(var t in n)n.hasOwnProperty(t)&&delete n[t]}},1881:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.websocketWrapper=void 0,t.websocketWrapper=function(e,t){return new Proxy(e,{get:function(e,n){var r=e[n];return"reconnect"===n?t:"function"==typeof r?(console.error("Calling methods directly on the websocket is not supported at this moment. You must use the methods returned by useWebSocket."),function(){}):r},set:function(e,t,n){return/^on/.test(t)?(console.warn("The websocket's event handlers should be defined through the options object passed into useWebSocket."),!1):(e[t]=n,!0)}})},t.default=t.websocketWrapper},9789:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setUpSocketIOPing=t.appendQueryParams=t.parseSocketIOUrl=void 0;var r=n(9800);t.parseSocketIOUrl=function(e){if(e){var t=/^https|wss/.test(e),n=e.replace(/^(https?|wss?)(:\/\/)?/,"").replace(/\/$/,"");return"".concat(s=t?"wss":"ws","://").concat(n).concat(r.SOCKET_IO_PATH)}if(""===e){var s=(t=/^https/.test(window.location.protocol))?"wss":"ws",o=window.location.port?":".concat(window.location.port):"";return"".concat(s,"://").concat(window.location.hostname).concat(o).concat(r.SOCKET_IO_PATH)}return e},t.appendQueryParams=function(e,t){void 0===t&&(t={});var n=/\?([\w]+=[\w]+)/.test(e),r="".concat(Object.entries(t).reduce((function(e,t){var n=t[0],r=t[1];return e+"".concat(n,"=").concat(r,"&")}),"").slice(0,-1));return"".concat(e).concat(n?"&":"?").concat(r)},t.setUpSocketIOPing=function(e,t){return void 0===t&&(t=r.SOCKET_IO_PING_INTERVAL),window.setInterval((function(){return e(r.SOCKET_IO_PING_CODE)}),t)}},9797:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},r.apply(this,arguments)},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.useEventSource=void 0;var o=n(6540),i=n(1380),a=n(9800);t.useEventSource=function(e,t,n){void 0===t&&(t=a.DEFAULT_EVENT_SOURCE_OPTIONS);var l=t.withCredentials,c=t.events,u=s(t,["withCredentials","events"]);void 0===n&&(n=!0);var h=r(r({},u),{eventSourceOptions:{withCredentials:l}}),p=(0,o.useRef)(a.EMPTY_EVENT_HANDLERS);c&&(p.current=c);var d=(0,i.useWebSocket)(e,h,n),f=d.lastMessage,m=d.readyState,g=d.getWebSocket;return(0,o.useEffect)((function(){(null==f?void 0:f.type)&&Object.entries(p.current).forEach((function(e){var t=e[0],n=e[1];t===f.type&&n(f)}))}),[f]),{lastEvent:f,readyState:m,getEventSource:g}}},7407:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.useSocketIO=void 0;var s=n(6540),o=n(1380),i=n(9800),a={type:"empty",payload:null};t.useSocketIO=function(e,t,n){void 0===t&&(t=i.DEFAULT_OPTIONS),void 0===n&&(n=!0);var l=(0,s.useMemo)((function(){return r(r({},t),{fromSocketIO:!0})}),[]),c=(0,o.useWebSocket)(e,l,n),u=c.sendMessage,h=c.sendJsonMessage,p=c.lastMessage,d=c.readyState,f=c.getWebSocket,m=(0,s.useMemo)((function(){return function(e){if(!e||!e.data)return a;var t=e.data.match(/\[.*]/);if(!t)return a;var n=JSON.parse(t);return Array.isArray(n)&&n[1]?{type:n[0],payload:n[1]}:a}(p)}),[p]);return{sendMessage:u,sendJsonMessage:h,lastMessage:m,lastJsonMessage:m,readyState:d,getWebSocket:f}}},1380:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},r.apply(this,arguments)},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(s,o){function i(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}l((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,s,o,i={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(s=2&o[0]?r.return:o[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,o[1])).done)return s;switch(r=0,s&&(o=[2&o[0],s.value]),o[0]){case 0:case 1:s=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,r=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!((s=(s=i.trys).length>0&&s[s.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!s||o[1]>s[0]&&o[1]<s[3])){i.label=o[1];break}if(6===o[0]&&i.label<s[1]){i.label=s[1],s=o;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(o);break}s[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e],r=0}finally{n=s=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useWebSocket=void 0;var a=n(6540),l=n(961),c=n(9800),u=n(2604),h=n(6421),p=i(n(1881)),d=n(1001);t.useWebSocket=function(e,t,n){void 0===t&&(t=c.DEFAULT_OPTIONS),void 0===n&&(n=!0);var i=(0,a.useState)(null),f=i[0],m=i[1],g=(0,a.useState)({}),y=g[0],v=g[1],b=(0,a.useMemo)((function(){if(f)try{return JSON.parse(f.data)}catch(e){return c.UNPARSABLE_JSON_OBJECT}return null}),[f]),w=(0,a.useRef)(null),k=(0,a.useRef)(null),S=(0,a.useRef)((function(){})),x=(0,a.useRef)(0),T=(0,a.useRef)([]),E=(0,a.useRef)(null),A=(0,a.useRef)(t);A.current=t;var R=w.current&&void 0!==y[w.current]?y[w.current]:null!==e&&!0===n?c.ReadyState.CONNECTING:c.ReadyState.UNINSTANTIATED,O=t.queryParams?JSON.stringify(t.queryParams):null,C=(0,a.useCallback)((function(e,t){var n;void 0===t&&(t=!0),c.isEventSourceSupported&&k.current instanceof EventSource?console.warn("Unable to send a message from an eventSource"):(null===(n=k.current)||void 0===n?void 0:n.readyState)===c.ReadyState.OPEN?((0,d.assertIsWebSocket)(k.current,A.current.skipAssert),k.current.send(e)):t&&T.current.push(e)}),[]),_=(0,a.useCallback)((function(e,t){void 0===t&&(t=!0),C(JSON.stringify(e),t)}),[C]),P=(0,a.useCallback)((function(){return!0!==A.current.share||c.isEventSourceSupported&&k.current instanceof EventSource?k.current:(null===E.current&&k.current&&((0,d.assertIsWebSocket)(k.current,A.current.skipAssert),E.current=(0,p.default)(k.current,S)),E.current)}),[]);return(0,a.useEffect)((function(){if(null!==e&&!0===n){var t,i=!1,a=!0,p=function(){return s(void 0,void 0,void 0,(function(){var n,s,p;return o(this,(function(o){switch(o.label){case 0:return n=w,[4,(0,h.getUrl)(e,A)];case 1:return n.current=o.sent(),null===w.current?(console.error("Failed to get a valid URL. WebSocket connection aborted."),w.current="ABORTED",(0,l.flushSync)((function(){return v((function(e){return r(r({},e),{ABORTED:c.ReadyState.CLOSED})}))})),[2]):(s=function(e){i||(0,l.flushSync)((function(){return m(e)}))},p=function(e){i||(0,l.flushSync)((function(){return v((function(t){var n;return r(r({},t),w.current&&((n={})[w.current]=e,n))}))}))},a&&(t=(0,u.createOrJoinSocket)(k,w.current,p,A,s,S,x,C)),[2])}}))}))};return S.current=function(){i||(E.current&&(E.current=null),null==t||t(),p())},p(),function(){i=!0,a=!1,E.current&&(E.current=null),null==t||t(),m(null)}}null!==e&&!1!==n||(x.current=0,v((function(e){var t;return r(r({},e),w.current&&((t={})[w.current]=c.ReadyState.CLOSED,t))})))}),[e,n,O,C]),(0,a.useEffect)((function(){R===c.ReadyState.OPEN&&T.current.splice(0).forEach((function(e){C(e)}))}),[R]),{sendMessage:C,sendJsonMessage:_,lastMessage:f,lastJsonMessage:b,readyState:R,getWebSocket:P}}},1001:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetGlobalState=t.assertIsWebSocket=void 0;var r=n(8389),s=n(5984);t.assertIsWebSocket=function(e,t){if(!t&&e instanceof WebSocket==0)throw new Error("")},t.resetGlobalState=function(e){(0,s.resetSubscribers)(e),(0,r.resetWebSockets)(e)}},5072:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var o={},i=[],a=0;a<e.length;a++){var l=e[a],c=r.base?l[0]+r.base:l[0],u=o[c]||0,h="".concat(c," ").concat(u);o[c]=u+1;var p=n(h),d={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(d);else{var f=s(d,r);r.byIndex=a,t.splice(a,0,{identifier:h,updater:f,references:1})}i.push(h)}return i}function s(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,s){var o=r(e=e||[],s=s||{});return function(e){e=e||[];for(var i=0;i<o.length;i++){var a=n(o[i]);t[a].references--}for(var l=r(e,s),c=0;c<o.length;c++){var u=n(o[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}o=l}}},7659:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var s=void 0!==n.layer;s&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,s&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},1083:(e,t,n)=>{"use strict";n.d(t,{A:()=>bt});var r={};function s(e,t){return function(){return e.apply(t,arguments)}}n.r(r),n.d(r,{hasBrowserEnv:()=>de,hasStandardBrowserEnv:()=>me,hasStandardBrowserWebWorkerEnv:()=>ge,navigator:()=>fe,origin:()=>ye});const{toString:o}=Object.prototype,{getPrototypeOf:i}=Object,a=(l=Object.create(null),e=>{const t=o.call(e);return l[t]||(l[t]=t.slice(8,-1).toLowerCase())});var l;const c=e=>(e=e.toLowerCase(),t=>a(t)===e),u=e=>t=>typeof t===e,{isArray:h}=Array,p=u("undefined"),d=c("ArrayBuffer"),f=u("string"),m=u("function"),g=u("number"),y=e=>null!==e&&"object"==typeof e,v=e=>{if("object"!==a(e))return!1;const t=i(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},b=c("Date"),w=c("File"),k=c("Blob"),S=c("FileList"),x=c("URLSearchParams"),[T,E,A,R]=["ReadableStream","Request","Response","Headers"].map(c);function O(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,s;if("object"!=typeof e&&(e=[e]),h(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let i;for(r=0;r<o;r++)i=s[r],t.call(null,e[i],i,e)}}function C(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,s=n.length;for(;s-- >0;)if(r=n[s],t===r.toLowerCase())return r;return null}const _="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,P=e=>!p(e)&&e!==_,N=(M="undefined"!=typeof Uint8Array&&i(Uint8Array),e=>M&&e instanceof M);var M;const I=c("HTMLFormElement"),L=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),D=c("RegExp"),F=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};O(n,((n,s)=>{let o;!1!==(o=t(n,s,e))&&(r[s]=o||n)})),Object.defineProperties(e,r)},U="abcdefghijklmnopqrstuvwxyz",j="0123456789",V={DIGIT:j,ALPHA:U,ALPHA_DIGIT:U+U.toUpperCase()+j},B=c("AsyncFunction"),$=(z="function"==typeof setImmediate,W=m(_.postMessage),z?setImmediate:W?(q=`axios@${Math.random()}`,H=[],_.addEventListener("message",(({source:e,data:t})=>{e===_&&t===q&&H.length&&H.shift()()}),!1),e=>{H.push(e),_.postMessage(q,"*")}):e=>setTimeout(e));var z,W,q,H;const K="undefined"!=typeof queueMicrotask?queueMicrotask.bind(_):"undefined"!=typeof process&&process.nextTick||$,G={isArray:h,isArrayBuffer:d,isBuffer:function(e){return null!==e&&!p(e)&&null!==e.constructor&&!p(e.constructor)&&m(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||m(e.append)&&("formdata"===(t=a(e))||"object"===t&&m(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer),t},isString:f,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:y,isPlainObject:v,isReadableStream:T,isRequest:E,isResponse:A,isHeaders:R,isUndefined:p,isDate:b,isFile:w,isBlob:k,isRegExp:D,isFunction:m,isStream:e=>y(e)&&m(e.pipe),isURLSearchParams:x,isTypedArray:N,isFileList:S,forEach:O,merge:function e(){const{caseless:t}=P(this)&&this||{},n={},r=(r,s)=>{const o=t&&C(n,s)||s;v(n[o])&&v(r)?n[o]=e(n[o],r):v(r)?n[o]=e({},r):h(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&O(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(O(t,((t,r)=>{n&&m(t)?e[r]=s(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let s,o,a;const l={};if(t=t||{},null==e)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)a=s[o],r&&!r(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==n&&i(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:c,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(h(e))return e;let t=e.length;if(!g(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:I,hasOwnProperty:L,hasOwnProp:L,reduceDescriptors:F,freezeMethods:e=>{F(e,((t,n)=>{if(m(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];m(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return h(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:C,global:_,isContextDefined:P,ALPHABET:V,generateString:(e=16,t=V.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&m(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const s=h(e)?[]:{};return O(e,((e,t)=>{const o=n(e,r+1);!p(o)&&(s[t]=o)})),t[r]=void 0,s}}return e};return n(e,0)},isAsyncFn:B,isThenable:e=>e&&(y(e)||m(e))&&m(e.then)&&m(e.catch),setImmediate:$,asap:K};function Y(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}G.inherits(Y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.status}}});const X=Y.prototype,J={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{J[e]={value:e}})),Object.defineProperties(Y,J),Object.defineProperty(X,"isAxiosError",{value:!0}),Y.from=(e,t,n,r,s,o)=>{const i=Object.create(X);return G.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Y.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Z=Y;function Q(e){return G.isPlainObject(e)||G.isArray(e)}function ee(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function te(e,t,n){return e?e.concat(t).map((function(e,t){return e=ee(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const ne=G.toFlatObject(G,{},null,(function(e){return/^is[A-Z]/.test(e)})),re=function(e,t,n){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!G.isUndefined(t[e])}))).metaTokens,s=n.visitor||c,o=n.dots,i=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(s))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(G.isDate(e))return e.toISOString();if(!a&&G.isBlob(e))throw new Z("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(e)||G.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,s){let a=e;if(e&&!s&&"object"==typeof e)if(G.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(G.isArray(e)&&function(e){return G.isArray(e)&&!e.some(Q)}(e)||(G.isFileList(e)||G.endsWith(n,"[]"))&&(a=G.toArray(e)))return n=ee(n),a.forEach((function(e,r){!G.isUndefined(e)&&null!==e&&t.append(!0===i?te([n],r,o):null===i?n:n+"[]",l(e))})),!1;return!!Q(e)||(t.append(te(s,n,o),l(e)),!1)}const u=[],h=Object.assign(ne,{defaultVisitor:c,convertValue:l,isVisitable:Q});if(!G.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!G.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),G.forEach(n,(function(n,o){!0===(!(G.isUndefined(n)||null===n)&&s.call(t,n,G.isString(o)?o.trim():o,r,h))&&e(n,r?r.concat(o):[o])})),u.pop()}}(e),t};function se(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function oe(e,t){this._pairs=[],e&&re(e,this,t)}const ie=oe.prototype;ie.append=function(e,t){this._pairs.push([e,t])},ie.toString=function(e){const t=e?function(t){return e.call(this,t,se)}:se;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const ae=oe;function le(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ce(e,t,n){if(!t)return e;const r=n&&n.encode||le,s=n&&n.serialize;let o;if(o=s?s(t,n):G.isURLSearchParams(t)?t.toString():new ae(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const ue=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){G.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},he={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},pe={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ae,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},de="undefined"!=typeof window&&"undefined"!=typeof document,fe="object"==typeof navigator&&navigator||void 0,me=de&&(!fe||["ReactNative","NativeScript","NS"].indexOf(fe.product)<0),ge="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ye=de&&window.location.href||"http://localhost",ve={...r,...pe},be=function(e){function t(e,n,r,s){let o=e[s++];if("__proto__"===o)return!0;const i=Number.isFinite(+o),a=s>=e.length;return o=!o&&G.isArray(r)?r.length:o,a?(G.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!i):(r[o]&&G.isObject(r[o])||(r[o]=[]),t(e,n,r[o],s)&&G.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}(r[o])),!i)}if(G.isFormData(e)&&G.isFunction(e.entries)){const n={};return G.forEachEntry(e,((e,r)=>{t(function(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},we={transitional:he,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,s=G.isObject(e);if(s&&G.isHTMLForm(e)&&(e=new FormData(e)),G.isFormData(e))return r?JSON.stringify(be(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e)||G.isReadableStream(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return re(e,new ve.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ve.isNode&&G.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=G.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return re(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||r?(t.setContentType("application/json",!1),function(e){if(G.isString(e))try{return(0,JSON.parse)(e),G.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||we.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(G.isResponse(e)||G.isReadableStream(e))return e;if(e&&G.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Z.from(e,Z.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ve.classes.FormData,Blob:ve.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],(e=>{we.headers[e]={}}));const ke=we,Se=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),xe=Symbol("internals");function Te(e){return e&&String(e).trim().toLowerCase()}function Ee(e){return!1===e||null==e?e:G.isArray(e)?e.map(Ee):String(e)}function Ae(e,t,n,r,s){return G.isFunction(r)?r.call(this,t,n):(s&&(t=n),G.isString(t)?G.isString(r)?-1!==t.indexOf(r):G.isRegExp(r)?r.test(t):void 0:void 0)}class Re{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function s(e,t,n){const s=Te(t);if(!s)throw new Error("header name must be a non-empty string");const o=G.findKey(r,s);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=Ee(e))}const o=(e,t)=>G.forEach(e,((e,n)=>s(e,n,t)));if(G.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(G.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,r,s;return e&&e.split("\n").forEach((function(e){s=e.indexOf(":"),n=e.substring(0,s).trim().toLowerCase(),r=e.substring(s+1).trim(),!n||t[n]&&Se[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(G.isHeaders(e))for(const[t,r]of e.entries())s(r,t,n);else null!=e&&s(t,e,n);return this}get(e,t){if(e=Te(e)){const n=G.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(G.isFunction(t))return t.call(this,e,n);if(G.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Te(e)){const n=G.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ae(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function s(e){if(e=Te(e)){const s=G.findKey(n,e);!s||t&&!Ae(0,n[s],s,t)||(delete n[s],r=!0)}}return G.isArray(e)?e.forEach(s):s(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const s=t[n];e&&!Ae(0,this[s],s,e,!0)||(delete this[s],r=!0)}return r}normalize(e){const t=this,n={};return G.forEach(this,((r,s)=>{const o=G.findKey(n,s);if(o)return t[o]=Ee(r),void delete t[s];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(s):String(s).trim();i!==s&&delete t[s],t[i]=Ee(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return G.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&G.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[xe]=this[xe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Te(e);t[r]||(function(e,t){const n=G.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,s){return this[r].call(this,t,e,n,s)},configurable:!0})}))}(n,e),t[r]=!0)}return G.isArray(e)?e.forEach(r):r(e),this}}Re.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(Re.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),G.freezeMethods(Re);const Oe=Re;function Ce(e,t){const n=this||ke,r=t||n,s=Oe.from(r.headers);let o=r.data;return G.forEach(e,(function(e){o=e.call(n,o,s.normalize(),t?t.status:void 0)})),s.normalize(),o}function _e(e){return!(!e||!e.__CANCEL__)}function Pe(e,t,n){Z.call(this,null==e?"canceled":e,Z.ERR_CANCELED,t,n),this.name="CanceledError"}G.inherits(Pe,Z,{__CANCEL__:!0});const Ne=Pe;function Me(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Z("Request failed with status code "+n.status,[Z.ERR_BAD_REQUEST,Z.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Ie=(e,t,n=3)=>{let r=0;const s=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s,o=0,i=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),c=r[i];s||(s=l),n[o]=a,r[o]=l;let u=i,h=0;for(;u!==o;)h+=n[u++],u%=e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-s<t)return;const p=c&&l-c;return p?Math.round(1e3*h/p):void 0}}(50,250);return function(e,t){let n,r,s=0,o=1e3/t;const i=(t,o=Date.now())=>{s=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-s;a>=o?i(e,t):(n=e,r||(r=setTimeout((()=>{r=null,i(n)}),o-a)))},()=>n&&i(n)]}((n=>{const o=n.loaded,i=n.lengthComputable?n.total:void 0,a=o-r,l=s(a);r=o,e({loaded:o,total:i,progress:i?o/i:void 0,bytes:a,rate:l||void 0,estimated:l&&i&&o<=i?(i-o)/l:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})}),n)},Le=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},De=e=>(...t)=>G.asap((()=>e(...t))),Fe=ve.hasStandardBrowserEnv?function(){const e=ve.navigator&&/(msie|trident)/i.test(ve.navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=G.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},Ue=ve.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];G.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),G.isString(r)&&i.push("path="+r),G.isString(s)&&i.push("domain="+s),!0===o&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function je(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ve=e=>e instanceof Oe?{...e}:e;function Be(e,t){t=t||{};const n={};function r(e,t,n){return G.isPlainObject(e)&&G.isPlainObject(t)?G.merge.call({caseless:n},e,t):G.isPlainObject(t)?G.merge({},t):G.isArray(t)?t.slice():t}function s(e,t,n){return G.isUndefined(t)?G.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!G.isUndefined(t))return r(void 0,t)}function i(e,t){return G.isUndefined(t)?G.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,s,o){return o in t?r(n,s):o in e?r(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t)=>s(Ve(e),Ve(t),!0)};return G.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=l[r]||s,i=o(e[r],t[r],r);G.isUndefined(i)&&o!==a||(n[r]=i)})),n}const $e=e=>{const t=Be({},e);let n,{data:r,withXSRFToken:s,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:l}=t;if(t.headers=a=Oe.from(a),t.url=ce(je(t.baseURL,t.url),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),G.isFormData(r))if(ve.hasStandardBrowserEnv||ve.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(ve.hasStandardBrowserEnv&&(s&&G.isFunction(s)&&(s=s(t)),s||!1!==s&&Fe(t.url))){const e=o&&i&&Ue.read(i);e&&a.set(o,e)}return t},ze="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=$e(e);let s=r.data;const o=Oe.from(r.headers).normalize();let i,a,l,c,u,{responseType:h,onUploadProgress:p,onDownloadProgress:d}=r;function f(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Oe.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Me((function(e){t(e),f()}),(function(e){n(e),f()}),{data:h&&"text"!==h&&"json"!==h?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new Z("Request aborted",Z.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new Z("Network Error",Z.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const s=r.transitional||he;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Z(t,s.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,e,m)),m=null},void 0===s&&o.setContentType(null),"setRequestHeader"in m&&G.forEach(o.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),G.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),h&&"json"!==h&&(m.responseType=r.responseType),d&&([l,u]=Ie(d,!0),m.addEventListener("progress",l)),p&&m.upload&&([a,c]=Ie(p),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new Ne(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===ve.protocols.indexOf(y)?n(new Z("Unsupported protocol "+y+":",Z.ERR_BAD_REQUEST,e)):m.send(s||null)}))},We=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const s=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Z?t:new Ne(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{o=null,s(new Z(`timeout ${t} of ms exceeded`,Z.ETIMEDOUT))}),t);const i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(s):e.removeEventListener("abort",s)})),e=null)};e.forEach((e=>e.addEventListener("abort",s)));const{signal:a}=r;return a.unsubscribe=()=>G.asap(i),a}},qe=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,s=0;for(;s<n;)r=s+t,yield e.slice(s,r),s=r},He=(e,t,n,r)=>{const s=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*qe(n,t)}(e,t);let o,i=0,a=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await s.next();if(t)return a(),void e.close();let o=r.byteLength;if(n){let e=i+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),s.return())},{highWaterMark:2})},Ke="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Ge=Ke&&"function"==typeof ReadableStream,Ye=Ke&&("function"==typeof TextEncoder?(Xe=new TextEncoder,e=>Xe.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Xe;const Je=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Ze=Ge&&Je((()=>{let e=!1;const t=new Request(ve.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Qe=Ge&&Je((()=>G.isReadableStream(new Response("").body))),et={stream:Qe&&(e=>e.body)};var tt;Ke&&(tt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!et[e]&&(et[e]=G.isFunction(tt[e])?t=>t[e]():(t,n)=>{throw new Z(`Response type '${e}' is not supported`,Z.ERR_NOT_SUPPORT,n)})})));const nt={http:null,xhr:ze,fetch:Ke&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:h="same-origin",fetchOptions:p}=$e(e);c=c?(c+"").toLowerCase():"text";let d,f=We([s,o&&o.toAbortSignal()],i);const m=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let g;try{if(l&&Ze&&"get"!==n&&"head"!==n&&0!==(g=await(async(e,t)=>{const n=G.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(G.isBlob(e))return e.size;if(G.isSpecCompliantForm(e)){const t=new Request(ve.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return G.isArrayBufferView(e)||G.isArrayBuffer(e)?e.byteLength:(G.isURLSearchParams(e)&&(e+=""),G.isString(e)?(await Ye(e)).byteLength:void 0)})(t):n})(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(G.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Le(g,Ie(De(l)));r=He(n.body,65536,e,t)}}G.isString(h)||(h=h?"include":"omit");const s="credentials"in Request.prototype;d=new Request(t,{...p,signal:f,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:s?h:void 0});let o=await fetch(d);const i=Qe&&("stream"===c||"response"===c);if(Qe&&(a||i&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=G.toFiniteNumber(o.headers.get("content-length")),[n,r]=a&&Le(t,Ie(De(a),!0))||[];o=new Response(He(o.body,65536,n,(()=>{r&&r(),m&&m()})),e)}c=c||"text";let y=await et[G.findKey(et,c)||"text"](o,e);return!i&&m&&m(),await new Promise(((t,n)=>{Me(t,n,{data:y,headers:Oe.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:d})}))}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new Z("Network Error",Z.ERR_NETWORK,e,d),{cause:t.cause||t});throw Z.from(t,t&&t.code,e,d)}})};G.forEach(nt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const rt=e=>`- ${e}`,st=e=>G.isFunction(e)||null===e||!1===e,ot=e=>{e=G.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){let t;if(n=e[o],r=n,!st(n)&&(r=nt[(t=String(n)).toLowerCase()],void 0===r))throw new Z(`Unknown adapter '${t}'`);if(r)break;s[t||"#"+o]=r}if(!r){const e=Object.entries(s).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(rt).join("\n"):" "+rt(e[0]):"as no adapter specified";throw new Z("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function it(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ne(null,e)}function at(e){return it(e),e.headers=Oe.from(e.headers),e.data=Ce.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ot(e.adapter||ke.adapter)(e).then((function(t){return it(e),t.data=Ce.call(e,e.transformResponse,t),t.headers=Oe.from(t.headers),t}),(function(t){return _e(t)||(it(e),t&&t.response&&(t.response.data=Ce.call(e,e.transformResponse,t.response),t.response.headers=Oe.from(t.response.headers))),Promise.reject(t)}))}const lt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{lt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ct={};lt.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,s,o)=>{if(!1===e)throw new Z(r(s," has been removed"+(t?" in "+t:"")),Z.ERR_DEPRECATED);return t&&!ct[s]&&(ct[s]=!0,console.warn(r(s," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,s,o)}};const ut={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Z("options must be an object",Z.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const t=e[o],n=void 0===t||i(t,o,e);if(!0!==n)throw new Z("option "+o+" must be "+n,Z.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Z("Unknown option "+o,Z.ERR_BAD_OPTION)}},validators:lt},ht=ut.validators;class pt{constructor(e){this.defaults=e,this.interceptors={request:new ue,response:new ue}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Be(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:s}=t;void 0!==n&&ut.assertOptions(n,{silentJSONParsing:ht.transitional(ht.boolean),forcedJSONParsing:ht.transitional(ht.boolean),clarifyTimeoutError:ht.transitional(ht.boolean)},!1),null!=r&&(G.isFunction(r)?t.paramsSerializer={serialize:r}:ut.assertOptions(r,{encode:ht.function,serialize:ht.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=s&&G.merge(s.common,s[t.method]);s&&G.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete s[e]})),t.headers=Oe.concat(o,s);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,h=0;if(!a){const e=[at.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);h<u;)c=c.then(e[h++],e[h++]);return c}u=i.length;let p=t;for(h=0;h<u;){const e=i[h++],t=i[h++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=at.call(this,p)}catch(e){return Promise.reject(e)}for(h=0,u=l.length;h<u;)c=c.then(l[h++],l[h++]);return c}getUri(e){return ce(je((e=Be(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}G.forEach(["delete","get","head","options"],(function(e){pt.prototype[e]=function(t,n){return this.request(Be(n||{},{method:e,url:t,data:(n||{}).data}))}})),G.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,s){return this.request(Be(s||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}pt.prototype[e]=t(),pt.prototype[e+"Form"]=t(!0)}));const dt=pt;class ft{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,s){n.reason||(n.reason=new Ne(e,r,s),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ft((function(t){e=t})),cancel:e}}}const mt=ft,gt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(gt).forEach((([e,t])=>{gt[t]=e}));const yt=gt,vt=function e(t){const n=new dt(t),r=s(dt.prototype.request,n);return G.extend(r,dt.prototype,n,{allOwnKeys:!0}),G.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Be(t,n))},r}(ke);vt.Axios=dt,vt.CanceledError=Ne,vt.CancelToken=mt,vt.isCancel=_e,vt.VERSION="1.7.7",vt.toFormData=re,vt.AxiosError=Z,vt.Cancel=vt.CanceledError,vt.all=function(e){return Promise.all(e)},vt.spread=function(e){return function(t){return e.apply(null,t)}},vt.isAxiosError=function(e){return G.isObject(e)&&!0===e.isAxiosError},vt.mergeConfig=Be,vt.AxiosHeaders=Oe,vt.formToJSON=e=>be(G.isHTMLForm(e)?new FormData(e):e),vt.getAdapter=ot,vt.HttpStatusCode=yt,vt.default=vt;const bt=vt},7395:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});const r=new Set(["opacity","clipPath","filter","transform"])},2392:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});const r="data-"+(0,n(8062).I)("framerAppearId")},5490:(e,t,n)=>{"use strict";function r(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}n.d(t,{N:()=>r})},1712:(e,t,n)=>{"use strict";n.d(t,{p:()=>r});const r=e=>Array.isArray(e)},5793:(e,t,n)=>{"use strict";n.d(t,{F:()=>a});var r=n(4848),s=n(6540),o=n(6048),i=n(2194);function a({children:e,features:t,strict:n=!1}){const[,a]=(0,s.useState)(!l(t)),c=(0,s.useRef)(void 0);if(!l(t)){const{renderer:e,...n}=t;c.current=e,(0,i.Y)(n)}return(0,s.useEffect)((()=>{l(t)&&t().then((({renderer:e,...t})=>{(0,i.Y)(t),c.current=e,a(!0)}))}),[]),(0,r.jsx)(o.Y.Provider,{value:{renderer:c.current,strict:n},children:e})}function l(e){return"function"==typeof e}},6048:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});const r=(0,n(6540).createContext)({strict:!1})},8530:(e,t,n)=>{"use strict";n.d(t,{I:()=>i});var r=n(4668);const s=["read","resolveKeyframes","update","preRender","render","postRender"],o=40;function i(e,t){let n=!1,i=!0;const a={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,c=s.reduce(((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,s=!1;const o=new WeakSet;let i={delta:0,timestamp:0,isProcessing:!1};function a(t){o.has(t)&&(l.schedule(t),e()),t(i)}const l={schedule:(e,s=!1,i=!1)=>{const a=i&&r?t:n;return s&&o.add(e),a.has(e)||a.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{i=e,r?s=!0:(r=!0,[t,n]=[n,t],n.clear(),t.forEach(a),r=!1,s&&(s=!1,l.process(e)))}};return l}(l),e)),{}),{read:u,resolveKeyframes:h,update:p,preRender:d,render:f,postRender:m}=c,g=()=>{const s=r.W.useManualTiming?a.timestamp:performance.now();n=!1,a.delta=i?1e3/60:Math.max(Math.min(s-a.timestamp,o),1),a.timestamp=s,a.isProcessing=!0,u.process(a),h.process(a),p.process(a),d.process(a),f.process(a),m.process(a),a.isProcessing=!1,n&&t&&(i=!1,e(g))};return{schedule:s.reduce(((t,r)=>{const s=c[r];return t[r]=(t,r=!1,o=!1)=>(n||(n=!0,i=!0,a.isProcessing||e(g)),s.schedule(t,r,o)),t}),{}),cancel:e=>{for(let t=0;t<s.length;t++)c[s[t]].cancel(e)},state:a,steps:c}}},104:(e,t,n)=>{"use strict";n.d(t,{Gt:()=>o,WG:()=>i,uv:()=>a});var r=n(3659),s=n(8530);const{schedule:o,cancel:i,state:a,steps:l}=(0,s.I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:r.l,!0)},3996:(e,t,n)=>{"use strict";n.d(t,{B:()=>s});const r={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},s={};for(const e in r)s[e]={isEnabled:t=>r[e].some((e=>!!t[e]))}},2194:(e,t,n)=>{"use strict";n.d(t,{Y:()=>s});var r=n(3996);function s(e){for(const t in e)r.B[t]={...r.B[t],...e[t]}}},6471:(e,t,n)=>{"use strict";n.d(t,{z:()=>o});const r={};var s=n(2200);function o(e,{layout:t,layoutId:n}){return s.f.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!r[e]||"opacity"===e)}},3810:(e,t,n)=>{"use strict";function r(e){if("undefined"==typeof Proxy)return e;const t=new Map;return new Proxy(((...t)=>e(...t)),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}n.d(t,{m:()=>ue});var s=n(4848),o=n(6540);const i=(0,o.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),a=(0,o.createContext)({}),l=(0,o.createContext)(null);var c=n(8288);const u=c.B?o.useLayoutEffect:o.useEffect;var h=n(6048),p=n(2392),d=n(8530);const{schedule:f,cancel:m}=(0,d.I)(queueMicrotask,!1);function g(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}const y=(0,o.createContext)({});let v=!1;function b(e,t,n,r,s){var c;const{visualElement:d}=(0,o.useContext)(a),m=(0,o.useContext)(h.Y),b=(0,o.useContext)(l),S=(0,o.useContext)(i).reducedMotion,x=(0,o.useRef)();r=r||m.renderer,!x.current&&r&&(x.current=r(e,{visualState:t,parent:d,props:n,presenceContext:b,blockInitialAnimation:!!b&&!1===b.initial,reducedMotionConfig:S}));const T=x.current,E=(0,o.useContext)(y);!T||T.projection||!s||"html"!==T.type&&"svg"!==T.type||function(e,t,n,r){const{layoutId:s,layout:o,drag:i,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:k(e.parent)),e.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:Boolean(i)||a&&g(a),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}(x.current,n,s,E),(0,o.useInsertionEffect)((()=>{T&&T.update(n,b)}));const A=n[p.n],R=(0,o.useRef)(Boolean(A)&&!window.MotionHandoffIsComplete&&(null===(c=window.MotionHasOptimisedAnimation)||void 0===c?void 0:c.call(window,A)));return u((()=>{T&&(T.updateFeatures(),f.render(T.render),R.current&&T.animationState&&T.animationState.animateChanges())})),(0,o.useEffect)((()=>{T&&(!R.current&&T.animationState&&T.animationState.animateChanges(),R.current=!1,v||(v=!0,queueMicrotask(w)))})),T}function w(){window.MotionHandoffIsComplete=!0}function k(e){if(e)return!1!==e.options.allowProjection?e.projection:k(e.parent)}function S(e,t,n){return(0,o.useCallback)((r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):g(n)&&(n.current=r))}),[t])}var x=n(6551),T=n(837);function E(e){return Array.isArray(e)?e.join(" "):e}var A=n(2194);const R=(0,o.createContext)({}),O=Symbol.for("motionComponentSymbol");var C=n(3996);function _({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:l}){e&&(0,A.Y)(e);const u=(0,o.forwardRef)((function(e,u){let p;const d={...(0,o.useContext)(i),...e,layoutId:P(e)},{isStatic:f}=d,m=function(e){const{initial:t,animate:n}=function(e,t){if((0,T.e)(e)){const{initial:t,animate:n}=e;return{initial:!1===t||(0,x.w)(t)?t:void 0,animate:(0,x.w)(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,o.useContext)(a));return(0,o.useMemo)((()=>({initial:t,animate:n})),[E(t),E(n)])}(e),g=r(e,f);if(!f&&c.B){(0,o.useContext)(h.Y).strict;const e=function(e){const{drag:t,layout:n}=C.B;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(d);p=e.MeasureLayout,m.visualElement=b(l,g,d,t,e.ProjectionNode)}return(0,s.jsxs)(a.Provider,{value:m,children:[p&&m.visualElement?(0,s.jsx)(p,{visualElement:m.visualElement,...d}):null,n(l,e,S(g,m.visualElement,u),g,f,m.visualElement)]})}));return u[O]=l,u}function P({layoutId:e}){const t=(0,o.useContext)(R).id;return t&&void 0!==e?t+"-"+e:e}var N=n(3385),M=n(7415),I=n(2777),L=n(5490),D=n(3141),F=n(7365),U=n(9896);function j(e){const t=(0,U.S)(e)?e.get():e;return(0,F.B)(t)?t.toValue():t}var V=n(9303),B=n(2358);const $=e=>(t,n)=>{const r=(0,o.useContext)(a),s=(0,o.useContext)(l),i=()=>function({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},s,o,i,a){const l={latestValues:q(s,o,i,!a&&e,t),renderState:n()};return r&&(l.mount=e=>r(s,e,l)),l}(e,t,r,s,n);return n?i():function(e){const t=(0,o.useRef)(null);return null===t.current&&(t.current=e()),t.current}(i)};function z(e,t){const n=(0,V.I)(t);n&&(0,B.Kq)(e,n)}function W(e,t,n){const r=Array.isArray(t)?t:[t];for(let t=0;t<r.length;t++){const s=(0,D.a)(e,r[t]);if(s){const{transitionEnd:e,transition:t,...r}=s;n(r,e)}}}function q(e,t,n,r,s){var o;const i={},a=[],l=r&&void 0===(null===(o=e.style)||void 0===o?void 0:o.willChange),c=s(e,{});for(const e in c)i[e]=j(c[e]);let{initial:u,animate:h}=e;const p=(0,T.e)(e),d=(0,T.O)(e);t&&d&&!p&&!1!==e.inherit&&(void 0===u&&(u=t.initial),void 0===h&&(h=t.animate));let f=!!n&&!1===n.initial;f=f||!1===u;const m=f?h:u;return m&&"boolean"!=typeof m&&!(0,L.N)(m)&&W(e,m,((e,t)=>{for(const t in e){let n=e[t];Array.isArray(n)&&(n=n[f?n.length-1:0]),null!==n&&(i[t]=n)}for(const e in t)i[e]=t[e]})),l&&(h&&!1!==u&&!(0,L.N)(h)&&W(e,h,(e=>{for(const t in e)z(a,t)})),a.length&&(i.willChange=a.join(","))),i}const H=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),K=()=>({...H(),attrs:{}});var G=n(3163),Y=n(6793),X=n(104);const J={useVisualState:$({scrapeMotionValuesFromProps:I.x,createRenderState:K,onMount:(e,t,{renderState:n,latestValues:r})=>{X.Gt.read((()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}})),X.Gt.render((()=>{(0,G.B)(n,r,(0,Y.n)(t.tagName),e.transformTemplate),(0,M.d)(t,n)}))}})},Z={useVisualState:$({applyWillChange:!0,scrapeMotionValuesFromProps:n(4494).x,createRenderState:H})};var Q=n(6471),ee=n(9298);function te(e,t,n){for(const r in t)(0,U.S)(t[r])||(0,Q.z)(r,n)||(e[r]=t[r])}function ne(e,t){const n={},r=function(e,t){const n={};return te(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return(0,o.useMemo)((()=>{const n=H();return(0,ee.O)(n,t,e),Object.assign({},n.vars,n.style)}),[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const re=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function se(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||re.has(e)}let oe=e=>!se(e);try{(ie=require("@emotion/is-prop-valid").default)&&(oe=e=>e.startsWith("on")?!se(e):ie(e))}catch(e){}var ie;function ae(e,t,n,r){const s=(0,o.useMemo)((()=>{const n=K();return(0,G.B)(n,t,(0,Y.n)(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};te(t,e.style,e),s.style={...t,...s.style}}return s}function le(e=!1){return(t,n,r,{latestValues:s},i)=>{const a=((0,N.Q)(t)?ae:ne)(n,s,i,t),l=function(e,t,n){const r={};for(const s in e)"values"===s&&"object"==typeof e.values||(oe(s)||!0===n&&se(s)||!t&&!se(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}(n,"string"==typeof t,e),c=t!==o.Fragment?{...l,...a,ref:r}:{},{children:u}=n,h=(0,o.useMemo)((()=>(0,U.S)(u)?u.get():u),[u]);return(0,o.createElement)(t,{...c,children:h})}}function ce(e,t){return function(n,{forwardMotionProps:r}={forwardMotionProps:!1}){return _({...(0,N.Q)(n)?J:Z,preloadedFeatures:e,useRender:le(r),createVisualElement:t,Component:n})}}const ue=r(ce())},9956:(e,t,n)=>{"use strict";n.d(t,{l:()=>Zn});var r=n(5490),s=n(1712);function o(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var i=n(6551),a=n(3141);function l(e,t,n){const r=e.getProps();return(0,a.a)(r,t,void 0!==n?n:r.custom,e)}var c=n(5092),u=n(2200);const h=e=>1e3*e,p=e=>e/1e3,d={type:"spring",stiffness:500,damping:25,restSpeed:10},f={type:"keyframes",duration:.8},m={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},g=(e,{keyframes:t})=>t.length>2?f:u.f.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:d:m;function y(e,t){return e[t]||e.default||e}var v=n(4668);const b=e=>null!==e;function w(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(b),o=t&&"loop"!==n&&t%2==1?0:s.length-1;return o&&void 0!==r?r:s[o]}var k=n(104);const S=e=>/^0[^.\s]+$/u.test(e);var x=n(3659);let T=x.l,E=x.l;const A=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var R=n(568);const O=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function C(e,t,n=1){E(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,s]=function(e){const t=O.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${null!=n?n:r}`,s]}(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const e=o.trim();return A(e)?parseFloat(e):e}return(0,R.p)(s)?C(s,t,n+1):s}var _=n(2944),P=n(5269);const N=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),M=e=>e===_.ai||e===P.px,I=(e,t)=>parseFloat(e.split(", ")[t]),L=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/u);if(s)return I(s[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?I(t[1],e):0}},D=new Set(["x","y","z"]),F=u.U.filter((e=>!D.has(e))),U={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:L(4,13),y:L(5,14)};U.translateX=U.x,U.translateY=U.y;const j=e=>t=>t.test(e),V=[_.ai,P.px,P.KN,P.uj,P.vw,P.vh,{test:e=>"auto"===e,parse:e=>e}],B=e=>V.find(j(e)),$=new Set;let z=!1,W=!1;function q(){if(W){const e=Array.from($).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return F.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((([t,n])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}W=!1,z=!1,$.forEach((e=>e.complete())),$.clear()}function H(){$.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(W=!0)}))}class K{constructor(e,t,n,r,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?($.add(this),z||(z=!0,k.Gt.read(H),k.Gt.resolveKeyframes(q))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let s=0;s<e.length;s++)if(null===e[s])if(0===s){const s=null==r?void 0:r.get(),o=e[e.length-1];if(void 0!==s)e[0]=s;else if(n&&t){const r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===s&&r.set(e[0])}else e[s]=e[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),$.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,$.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}var G=n(7296),Y=n(2464);const X=(e,t)=>n=>Boolean((0,G.Kg)(n)&&G.Fl.test(n)&&n.startsWith(e)||t&&!(0,G.uy)(n)&&Object.prototype.hasOwnProperty.call(n,t)),J=(e,t,n)=>r=>{if(!(0,G.Kg)(r))return r;const[s,o,i,a]=r.match(G.SY);return{[e]:parseFloat(s),[t]:parseFloat(o),[n]:parseFloat(i),alpha:void 0!==a?parseFloat(a):1}},Z={..._.ai,transform:e=>Math.round((e=>(0,Y.q)(0,255,e))(e))},Q={test:X("rgb","red"),parse:J("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Z.transform(e)+", "+Z.transform(t)+", "+Z.transform(n)+", "+(0,G.aj)(_.X4.transform(r))+")"},ee={test:X("#"),parse:function(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}},transform:Q.transform},te={test:X("hsl","hue"),parse:J("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+P.KN.transform((0,G.aj)(t))+", "+P.KN.transform((0,G.aj)(n))+", "+(0,G.aj)(_.X4.transform(r))+")"},ne={test:e=>Q.test(e)||ee.test(e)||te.test(e),parse:e=>Q.test(e)?Q.parse(e):te.test(e)?te.parse(e):ee.parse(e),transform:e=>(0,G.Kg)(e)?e:e.hasOwnProperty("red")?Q.transform(e):te.transform(e)},re="number",se="color",oe="var",ie="var(",ae="${}",le=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ce(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let o=0;const i=t.replace(le,(e=>(ne.test(e)?(r.color.push(o),s.push(se),n.push(ne.parse(e))):e.startsWith(ie)?(r.var.push(o),s.push(oe),n.push(e)):(r.number.push(o),s.push(re),n.push(parseFloat(e))),++o,ae))).split(ae);return{values:n,split:i,indexes:r,types:s}}function ue(e){return ce(e).values}function he(e){const{split:t,types:n}=ce(e),r=t.length;return e=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],void 0!==e[o]){const t=n[o];s+=t===re?(0,G.aj)(e[o]):t===se?ne.transform(e[o]):e[o]}return s}}const pe=e=>"number"==typeof e?0:e,de={test:function(e){var t,n;return isNaN(e)&&(0,G.Kg)(e)&&((null===(t=e.match(G.SY))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(G.ne))||void 0===n?void 0:n.length)||0)>0},parse:ue,createTransformer:he,getAnimatableNone:function(e){const t=ue(e);return he(e)(t.map(pe))}},fe=new Set(["brightness","contrast","saturate","opacity"]);function me(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(G.SY)||[];if(!r)return e;const s=n.replace(r,"");let o=fe.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+s+")"}const ge=/\b([a-z-]*)\(.*?\)/gu,ye={...de,getAnimatableNone:e=>{const t=e.match(ge);return t?t.map(me).join(" "):e}},ve={...n(3776).W,color:ne,backgroundColor:ne,outlineColor:ne,fill:ne,stroke:ne,borderColor:ne,borderTopColor:ne,borderRightColor:ne,borderBottomColor:ne,borderLeftColor:ne,filter:ye,WebkitFilter:ye},be=e=>ve[e];function we(e,t){let n=be(e);return n!==ye&&(n=de),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const ke=new Set(["auto","none","0"]);class Se extends K{constructor(e,t,n,r,s){super(e,t,n,r,s,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),(0,R.p)(r))){const s=C(r,t.current);void 0!==s&&(e[n]=s),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!N.has(n)||2!==e.length)return;const[r,s]=e,o=B(r),i=B(s);if(o!==i)if(M(o)&&M(i))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||S(r))&&n.push(t);var r;n.length&&function(e,t,n){let r,s=0;for(;s<e.length&&!r;){const t=e[s];"string"==typeof t&&!ke.has(t)&&ce(t).values.length&&(r=e[s]),s++}if(r&&n)for(const s of t)e[s]=we(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=U[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const o=r.length-1,i=r[o];r[o]=U[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==i&&void 0===this.finalKeyframe&&(this.finalKeyframe=i),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((([e,n])=>{t.getValue(e).set(n)})),this.resolveNoneKeyframes()}}function xe(e){let t;return()=>(void 0===t&&(t=e()),t)}let Te;function Ee(){Te=void 0}const Ae={now:()=>(void 0===Te&&Ae.set(k.uv.isProcessing||v.W.useManualTiming?k.uv.timestamp:performance.now()),Te),set:e=>{Te=e,queueMicrotask(Ee)}},Re=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!de.test(e)&&"0"!==e||e.startsWith("url(")));class Oe{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:o="loop",...i}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ae.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:s,repeatType:o,...i},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(H(),q()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=Ae.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:s,delay:o,onComplete:i,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(e,t,n,r){const s=e[0];if(null===s)return!1;if("display"===t||"visibility"===t)return!0;const o=e[e.length-1],i=Re(s,t),a=Re(o,t);return T(i===a,`You are trying to animate ${t} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`),!(!i||!a)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||"spring"===n&&r)}(e,n,r,s)){if(!o)return null==a||a(w(e,this.options,t)),null==i||i(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(e,t);!1!==c&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}function Ce(e,t){return t?e*(1e3/t):0}const _e=5;function Pe(e,t,n){const r=Math.max(t-_e,0);return Ce(n-e(r),t-r)}const Ne=.001,Me=.01,Ie=10,Le=.05,De=1;const Fe=12;function Ue(e,t){return e*Math.sqrt(1-t*t)}const je=["duration","bounce"],Ve=["stiffness","damping","mass"];function Be(e,t){return t.some((t=>void 0!==e[t]))}function $e({keyframes:e,restDelta:t,restSpeed:n,...r}){const s=e[0],o=e[e.length-1],i={done:!1,value:s},{stiffness:a,damping:l,mass:c,duration:u,velocity:d,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Be(e,Ve)&&Be(e,je)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let s,o;T(e<=h(Ie),"Spring duration must be 10 seconds or less");let i=1-t;i=(0,Y.q)(Le,De,i),e=(0,Y.q)(Me,Ie,p(e)),i<1?(s=t=>{const r=t*i,s=r*e,o=r-n,a=Ue(t,i),l=Math.exp(-s);return Ne-o/a*l},o=t=>{const r=t*i*e,o=r*n+n,a=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=Ue(Math.pow(t,2),i);return(-s(t)+Ne>0?-1:1)*((o-a)*l)/c}):(s=t=>Math.exp(-t*e)*((t-n)*e+1)-Ne,o=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let r=n;for(let n=1;n<Fe;n++)r-=e(r)/t(r);return r}(s,o,5/e);if(e=h(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(a,2)*r;return{stiffness:t,damping:2*i*Math.sqrt(r*t),duration:e}}}(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...r,velocity:-p(r.velocity||0)}),m=d||0,g=l/(2*Math.sqrt(a*c)),y=o-s,v=p(Math.sqrt(a/c)),b=Math.abs(y)<5;let w;if(n||(n=b?.01:2),t||(t=b?.005:.5),g<1){const e=Ue(v,g);w=t=>{const n=Math.exp(-g*v*t);return o-n*((m+g*v*y)/e*Math.sin(e*t)+y*Math.cos(e*t))}}else if(1===g)w=e=>o-Math.exp(-v*e)*(y+(m+v*y)*e);else{const e=v*Math.sqrt(g*g-1);w=t=>{const n=Math.exp(-g*v*t),r=Math.min(e*t,300);return o-n*((m+g*v*y)*Math.sinh(r)+e*y*Math.cosh(r))/e}}return{calculatedDuration:f&&u||null,next:e=>{const r=w(e);if(f)i.done=e>=u;else{let s=0;g<1&&(s=0===e?h(m):Pe(w,e,r));const a=Math.abs(s)<=n,l=Math.abs(o-r)<=t;i.done=a&&l}return i.value=i.done?o:r,i}}}function ze({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:i,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=e[0],p={done:!1,value:h},d=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let f=n*t;const m=h+f,g=void 0===i?m:i(m);g!==m&&(f=g-h);const y=e=>-f*Math.exp(-e/r),v=e=>g+y(e),b=e=>{const t=y(e),n=v(e);p.done=Math.abs(t)<=c,p.value=p.done?g:n};let w,k;const S=e=>{var t;t=p.value,(void 0!==a&&t<a||void 0!==l&&t>l)&&(w=e,k=$e({keyframes:[p.value,d(p.value)],velocity:Pe(v,e,p.value),damping:s,stiffness:o,restDelta:c,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return k||void 0!==w||(t=!0,b(e),S(e)),void 0!==w&&e>=w?k.next(e-w):(!t&&b(e),p)}}}const We=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function qe(e,t,n,r){if(e===t&&n===r)return x.l;return s=>0===s||1===s?s:We(function(e,t,n,r,s){let o,i,a=0;do{i=t+(n-t)/2,o=We(i,r,s)-e,o>0?n=i:t=i}while(Math.abs(o)>1e-7&&++a<12);return i}(s,0,1,e,n),t,r)}const He=qe(.42,0,1,1),Ke=qe(0,0,.58,1),Ge=qe(.42,0,.58,1),Ye=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Xe=e=>t=>1-e(1-t),Je=e=>1-Math.sin(Math.acos(e)),Ze=Xe(Je),Qe=Ye(Je),et=qe(.33,1.53,.69,.99),tt=Xe(et),nt=Ye(tt),rt={linear:x.l,easeIn:He,easeInOut:Ge,easeOut:Ke,circIn:Je,circInOut:Qe,circOut:Ze,backIn:tt,backInOut:nt,backOut:et,anticipate:e=>(e*=2)<1?.5*tt(e):.5*(2-Math.pow(2,-10*(e-1)))},st=e=>{if(Array.isArray(e)){E(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,s]=e;return qe(t,n,r,s)}return"string"==typeof e?(E(void 0!==rt[e],`Invalid easing type '${e}'`),rt[e]):e},ot=(e,t)=>n=>t(e(n)),it=(...e)=>e.reduce(ot),at=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},lt=(e,t,n)=>e+(t-e)*n;function ct(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ut(e,t){return n=>n>0?t:e}const ht=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},pt=[ee,Q,te];function dt(e){const t=(n=e,pt.find((e=>e.test(n))));var n;if(T(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let r=t.parse(e);return t===te&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let s=0,o=0,i=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;s=ct(a,r,e+1/3),o=ct(a,r,e),i=ct(a,r,e-1/3)}else s=o=i=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*i),alpha:r}}(r)),r}const ft=(e,t)=>{const n=dt(e),r=dt(t);if(!n||!r)return ut(e,t);const s={...n};return e=>(s.red=ht(n.red,r.red,e),s.green=ht(n.green,r.green,e),s.blue=ht(n.blue,r.blue,e),s.alpha=lt(n.alpha,r.alpha,e),Q.transform(s))},mt=new Set(["none","hidden"]);function gt(e,t){return n=>lt(e,t,n)}function yt(e){return"number"==typeof e?gt:"string"==typeof e?(0,R.p)(e)?ut:ne.test(e)?ft:wt:Array.isArray(e)?vt:"object"==typeof e?ne.test(e)?ft:bt:ut}function vt(e,t){const n=[...e],r=n.length,s=e.map(((e,n)=>yt(e)(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=s[t](e);return n}}function bt(e,t){const n={...e,...t},r={};for(const s in n)void 0!==e[s]&&void 0!==t[s]&&(r[s]=yt(e[s])(e[s],t[s]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const wt=(e,t)=>{const n=de.createTransformer(t),r=ce(e),s=ce(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?mt.has(e)&&!s.values.length||mt.has(t)&&!r.values.length?function(e,t){return mt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):it(vt(function(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],a=e.indexes[i][s[i]],l=null!==(n=e.values[a])&&void 0!==n?n:0;r[o]=l,s[i]++}return r}(r,s),s.values),n):(T(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),ut(e,t))};function kt(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?lt(e,t,n):yt(e)(e,t)}function St({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(st):st(r),o={done:!1,value:t[0]},i=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:function(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=at(0,t,r);e.push(lt(n,1,s))}}(t,e.length-1),t}(t),e),a=function(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const o=e.length;if(E(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];if(2===o&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=function(e,t,n){const r=[],s=n||kt,o=e.length-1;for(let n=0;n<o;n++){let o=s(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||x.l:t;o=it(e,o)}r.push(o)}return r}(t,r,s),a=i.length,l=t=>{let n=0;if(a>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=at(e[n],e[n+1],t);return i[n](r)};return n?t=>l((0,Y.q)(e[0],e[o-1],t)):l}(i,t,{ease:Array.isArray(s)?s:(l=t,c=s,l.map((()=>c||Ge)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(o.value=a(t),o.done=t>=e,o)}}const xt=e=>{const t=({timestamp:t})=>e(t);return{start:()=>k.Gt.update(t,!0),stop:()=>(0,k.WG)(t),now:()=>k.uv.isProcessing?k.uv.timestamp:Ae.now()}},Tt={decay:ze,inertia:ze,tween:St,keyframes:St,spring:$e},Et=e=>e/100;class At extends Oe{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:t,motionValue:n,element:r,keyframes:s}=this.options,o=(null==r?void 0:r.KeyframeResolver)||K;this.resolver=new o(s,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s,velocity:o=0}=this.options,i=Tt[t]||St;let a,l;i!==St&&"number"!=typeof e[0]&&(a=it(Et,kt(e[0],e[1])),e=[0,100]);const c=i({...this.options,keyframes:e});"mirror"===s&&(l=i({...this.options,keyframes:[...e].reverse(),velocity:-o})),null===c.calculatedDuration&&(c.calculatedDuration=function(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}(c));const{calculatedDuration:u}=c,h=u+r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:u,resolvedDuration:h,totalDuration:h*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:s,mirroredGenerator:o,mapPercentToKeyframes:i,keyframes:a,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(null===this.startTime)return s.next(0);const{delay:h,repeat:p,repeatType:d,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-h*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let v=this.currentTime,b=s;if(p){const e=Math.min(this.currentTime,c)/u;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,p+1),Boolean(t%2)&&("reverse"===d?(n=1-n,f&&(n-=f/u)):"mirror"===d&&(b=o)),v=(0,Y.q)(0,1,n)*u}const k=y?{done:!1,value:a[0]}:b.next(v);i&&(k.value=i(k.value));let{done:S}=k;y||null===l||(S=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const x=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return x&&void 0!==r&&(k.value=w(a,this.options,r)),m&&m(k.value),x&&this.finish(),k}get duration(){const{resolved:e}=this;return e?p(e.calculatedDuration):0}get time(){return p(this.currentTime)}set time(e){e=h(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=p(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=xt,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}var Rt=n(7395);const Ot=e=>Array.isArray(e)&&"number"==typeof e[0];function Ct(e){return Boolean(!e||"string"==typeof e&&e in Pt||Ot(e)||Array.isArray(e)&&e.every(Ct))}const _t=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Pt={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:_t([0,.65,.55,1]),circOut:_t([.55,0,1,.45]),backIn:_t([.31,.01,.66,-.59]),backOut:_t([.33,1.53,.69,.99])};function Nt(e){return Mt(e)||Pt.easeOut}function Mt(e){return e?Ot(e)?_t(e):Array.isArray(e)?e.map(Nt):Pt[e]:void 0}const It=xe((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));class Lt extends Oe{constructor(e){super(e);const{name:t,motionValue:n,element:r,keyframes:s}=this.options;this.resolver=new Se(s,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:r=300,times:s,ease:o,type:i,motionValue:a,name:l,startTime:c}=this.options;if(!(null===(n=a.owner)||void 0===n?void 0:n.current))return!1;if("spring"===(u=this.options).type||!Ct(u.ease)){const{onComplete:t,onUpdate:n,motionValue:a,element:l,...c}=this.options,u=function(e,t){const n=new At({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let o=0;for(;!r.done&&o<2e4;)r=n.sample(o),s.push(r.value),o+=10;return{times:void 0,keyframes:s,duration:o-10,ease:"linear"}}(e,c);1===(e=u.keyframes).length&&(e[1]=e[0]),r=u.duration,s=u.times,o=u.ease,i="keyframes"}var u;const h=function(e,t,n,{delay:r=0,duration:s=300,repeat:o=0,repeatType:i="loop",ease:a,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Mt(a);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:"reverse"===i?"alternate":"normal"})}(a.owner.current,l,e,{...this.options,duration:r,times:s,ease:o});return h.startTime=null!=c?c:this.calcStartTime(),this.pendingTimeline?(h.timeline=this.pendingTimeline,this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:n}=this.options;a.set(w(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:s,type:i,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return p(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return p(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=h(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return x.l;const{animation:n}=t;n.timeline=e,n.onfinish=null}else this.pendingTimeline=e;return x.l}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:r,type:s,ease:o,times:i}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:a,element:l,...c}=this.options,u=new At({...c,keyframes:n,duration:r,type:s,ease:o,times:i,isGenerator:!0}),p=h(this.time);e.setWithVelocity(u.sample(p-10).value,u.sample(p).value,10)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:o,type:i}=e;return It()&&n&&Rt.M.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!r&&"mirror"!==s&&0!==o&&"inertia"!==i}}const Dt=xe((()=>void 0!==window.ScrollTimeline));class Ft{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){const t=this.animations.map((t=>{if(!Dt()||!t.attachTimeline)return t.pause(),function(e,n){let r;const s=()=>{const{currentTime:e}=n,s=(null===e?0:e.value)/100;r!==s&&(e=>{t.time=t.duration*e})(s),r=s};return k.Gt.update(s,!0),()=>(0,k.WG)(s)}(0,e);t.attachTimeline(e)}));return()=>{t.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach((t=>t[e]()))}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const Ut=(e,t,n,r={},s,o,i)=>a=>{const l=y(r,e)||{},c=l.delay||r.delay||0;let{elapsed:u=0}=r;u-=h(c);let p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{a(),l.onComplete&&l.onComplete(),i&&i()},onStop:i,name:e,motionValue:t,element:o?void 0:s};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:i,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(l)||(p={...p,...g(e,p)}),p.duration&&(p.duration=h(p.duration)),p.repeatDelay&&(p.repeatDelay=h(p.repeatDelay)),void 0!==p.from&&(p.keyframes[0]=p.from);let d=!1;if((!1===p.type||0===p.duration&&!p.repeatDelay)&&(p.duration=0,0===p.delay&&(d=!0)),v.W.skipAnimations&&(d=!0,p.duration=0,p.delay=0),d&&!o&&void 0!==t.get()){const e=w(p.keyframes,l);if(void 0!==e)return k.Gt.update((()=>{p.onUpdate(e),p.onComplete()})),new Ft([])}return!o&&Lt.supports(p)?new Lt(p):new At(p)};var jt=n(7365),Vt=n(2358);class Bt{constructor(){this.subscriptions=[]}add(e){return(0,Vt.Kq)(this.subscriptions,e),()=>(0,Vt.Ai)(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let s=0;s<r;s++){const r=this.subscriptions[s];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const $t={current:void 0};class zt{constructor(e,t={}){this.version="11.5.4",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=Ae.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=Ae.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Bt);const n=this.events[e].add(t);return"change"===e?()=>{n(),k.Gt.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return $t.current&&$t.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=Ae.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Ce(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Wt(e,t){return new zt(e,t)}function qt(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Wt(n))}var Ht=n(2392);function Kt(e){return e.props[Ht.n]}var Gt=n(9303);class Yt extends zt{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(e){const t=(0,Gt.I)(e);if(!t)return;const n=this.counts.get(t)||0;this.counts.set(t,n+1),0===n&&(this.output.push(t),this.update());let r=!1;return()=>{if(r)return;r=!0;const e=this.counts.get(t)-1;this.counts.set(t,e),0===e&&((0,Vt.Ai)(this.output,t),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}var Xt=n(9896);function Jt(e,t){var n;if(!e.applyWillChange)return;let r=e.getValue("willChange");return r||(null===(n=e.props.style)||void 0===n?void 0:n.willChange)||(r=new Yt("auto"),e.addValue("willChange",r)),s=r,Boolean((0,Xt.S)(s)&&s.add)?r.add(t):void 0;var s}function Zt({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function Qt(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var o;let{transition:i=e.getDefaultTransition(),transitionEnd:a,...c}=t;r&&(i=r);const h=[],p=s&&e.animationState&&e.animationState.getState()[s];for(const t in c){const r=e.getValue(t,null!==(o=e.latestValues[t])&&void 0!==o?o:null),s=c[t];if(void 0===s||p&&Zt(p,t))continue;const a={delay:n,...y(i||{},t)};let l=!1;if(window.MotionHandoffAnimation){const n=Kt(e);if(n){const e=window.MotionHandoffAnimation(n,t,k.Gt);null!==e&&(a.startTime=e,l=!0)}}r.start(Ut(t,r,s,e.shouldReduceMotion&&u.f.has(t)?{type:!1}:a,e,l,Jt(e,t)));const d=r.animation;d&&h.push(d)}return a&&Promise.all(h).then((()=>{k.Gt.update((()=>{a&&function(e,t){const n=l(e,t);let{transitionEnd:r={},transition:s={},...o}=n||{};o={...o,...r};for(const t in o)qt(e,t,(0,jt.K)(o[t]))}(e,a)}))})),h}function en(e,t,n={}){var r;const s=l(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const i=s?()=>Promise.all(Qt(e,s,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:s=0,staggerChildren:i,staggerDirection:a}=o;return function(e,t,n=0,r=0,s=1,o){const i=[],a=(e.variantChildren.size-1)*r,l=1===s?(e=0)=>e*r:(e=0)=>a-e*r;return Array.from(e.variantChildren).sort(tn).forEach(((e,r)=>{e.notify("AnimationStart",t),i.push(en(e,t,{...o,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(i)}(e,t,s+r,i,a,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[e,t]="beforeChildren"===c?[i,a]:[a,i];return e().then((()=>t()))}return Promise.all([i(),a(n.delay)])}function tn(e,t){return e.sortNodePosition(t)}const nn=[...c.U].reverse(),rn=c.U.length;function sn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function on(){return{animate:sn(!0),whileInView:sn(),whileHover:sn(),whileTap:sn(),whileDrag:sn(),whileFocus:sn(),exit:sn()}}class an{constructor(e){this.isMounted=!1,this.node=e}update(){}}let ln=0;const cn={animation:{Feature:class extends an{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=function(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const s=t.map((t=>en(e,t,n)));r=Promise.all(s)}else if("string"==typeof t)r=en(e,t,n);else{const s="function"==typeof t?l(e,t,n.custom):t;r=Promise.all(Qt(e,s,n))}return r.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,n))))}(e),n=on(),a=!0;const c=t=>(n,r)=>{var s;const o=l(e,r,"exit"===t?null===(s=e.presenceContext)||void 0===s?void 0:s.custom:void 0);if(o){const{transition:e,transitionEnd:t,...r}=o;n={...n,...r,...t}}return n};function u(l){const u=e.getProps(),h=e.getVariantContext(!0)||{},p=[],d=new Set;let f={},m=1/0;for(let t=0;t<rn;t++){const v=nn[t],b=n[v],w=void 0!==u[v]?u[v]:h[v],k=(0,i.w)(w),S=v===l?b.isActive:null;!1===S&&(m=t);let x=w===h[v]&&w!==u[v]&&k;if(x&&a&&e.manuallyAnimateOnMount&&(x=!1),b.protectedKeys={...f},!b.isActive&&null===S||!w&&!b.prevProp||(0,r.N)(w)||"boolean"==typeof w)continue;let T=(g=b.prevProp,("string"==typeof(y=w)?y!==g:!!Array.isArray(y)&&!o(y,g))||v===l&&b.isActive&&!x&&k||t>m&&k),E=!1;const A=Array.isArray(w)?w:[w];let R=A.reduce(c(v),{});!1===S&&(R={});const{prevResolvedValues:O={}}=b,C={...O,...R},_=t=>{T=!0,d.has(t)&&(E=!0,d.delete(t)),b.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in C){const t=R[e],n=O[e];if(f.hasOwnProperty(e))continue;let r=!1;r=(0,s.p)(t)&&(0,s.p)(n)?!o(t,n):t!==n,r?null!=t?_(e):d.add(e):void 0!==t&&d.has(e)?_(e):b.protectedKeys[e]=!0}b.prevProp=w,b.prevResolvedValues=R,b.isActive&&(f={...f,...R}),a&&e.blockInitialAnimation&&(T=!1),!T||x&&!E||p.push(...A.map((e=>({animation:e,options:{type:v}}))))}var g,y;if(d.size){const t={};d.forEach((n=>{const r=e.getBaseTarget(n),s=e.getValue(n);s&&(s.liveStyle=!0),t[n]=null!=r?r:null})),p.push({animation:t})}let v=Boolean(p.length);return!a||!1!==u.initial&&u.initial!==u.animate||e.manuallyAnimateOnMount||(v=!1),a=!1,v?t(p):Promise.resolve()}return{animateChanges:u,setActive:function(t,r){var s;if(n[t].isActive===r)return Promise.resolve();null===(s=e.variantChildren)||void 0===s||s.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const o=u(t);for(const e in n)n[e].protectedKeys={};return o},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=on(),a=!0}}}(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();(0,r.N)(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends an{constructor(){super(...arguments),this.id=ln++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}};function un(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function hn(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const pn=e=>t=>(e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary)(t)&&e(t,hn(t));function dn(e,t,n,r){return un(e,t,pn(n),r)}function fn(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}const mn=fn("dragHorizontal"),gn=fn("dragVertical");function yn(){const e=function(){let e=!1;{const t=mn(),n=gn();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}();return!e||(e(),!1)}function vn(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd";return dn(e.current,n,((n,s)=>{if("touch"===n.pointerType||yn())return;const o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t);const i=o[r];i&&k.Gt.postRender((()=>i(n,s)))}),{passive:!e.getProps()[r]})}const bn=(e,t)=>!!t&&(e===t||bn(e,t.parentElement));function wn(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,hn(n))}const kn=new WeakMap,Sn=new WeakMap,xn=e=>{const t=kn.get(e.target);t&&t(e)},Tn=e=>{e.forEach(xn)};const En={some:0,all:1},An={inView:{Feature:class extends an{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:s}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:En[r]};return function(e,t,n){const r=function({root:e,...t}){const n=e||document;Sn.has(n)||Sn.set(n,{});const r=Sn.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(Tn,{root:e,...t})),r[s]}(t);return kn.set(e,n),r.observe(e),()=>{kn.delete(e),r.unobserve(e)}}(this.node.current,o,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,s&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;o&&o(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends an{constructor(){super(...arguments),this.removeStartListeners=x.l,this.removeEndListeners=x.l,this.removeAccessibleListeners=x.l,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),r=dn(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r,globalTapTarget:s}=this.node.getProps(),o=s||bn(this.node.current,e.target)?n:r;o&&k.Gt.update((()=>o(e,t)))}),{passive:!(n.onTap||n.onPointerUp)}),s=dn(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=it(r,s),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=un(this.node.current,"keydown",(e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=un(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&wn("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&k.Gt.postRender((()=>n(e,t)))}))})),wn("down",((e,t)=>{this.startPress(e,t)})))})),t=un(this.node.current,"blur",(()=>{this.isPressing&&wn("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=it(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&k.Gt.postRender((()=>n(e,t)))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!yn()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&k.Gt.postRender((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=dn(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=un(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=it(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends an{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=it(un(this.node.current,"focus",(()=>this.onFocus())),un(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends an{mount(){this.unmount=it(vn(this.node,!0),vn(this.node,!1))}unmount(){}}}};var Rn=n(6540),On=n(9298),Cn=n(4494),_n=n(9836);var Pn=n(8288);const Nn={current:null},Mn={current:!1};var In=n(837),Ln=n(3996);const Dn=new WeakMap,Fn=[...V,ne,de],Un=()=>({x:{min:0,max:0},y:{min:0,max:0}}),jn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Vn=c._.length;class Bn{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:s,visualState:o},i={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=K,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,k.Gt.render(this.render,!1,!0))};const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.blockInitialAnimation=Boolean(s),this.isControllingVariants=(0,In.e)(t),this.isVariantNode=(0,In.O)(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in u){const t=u[e];void 0!==a[e]&&(0,Xt.S)(t)&&t.set(a[e],!1)}}mount(e){this.current=e,Dn.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),Mn.current||function(){if(Mn.current=!0,Pn.B)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Nn.current=e.matches;e.addListener(t),t()}else Nn.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Nn.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Dn.delete(this.current),this.projection&&this.projection.unmount(),(0,k.WG)(this.notifyUpdate),(0,k.WG)(this.render),this.valueSubscriptions.forEach((e=>e())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=u.f.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&k.Gt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),s=t.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,(()=>{r(),s(),o&&o(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in Ln.B){const t=Ln.B[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<jn.length;t++){const n=jn[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const s=t[r],o=n[r];if((0,Xt.S)(s))e.addValue(r,s);else if((0,Xt.S)(o))e.addValue(r,Wt(s,{owner:e}));else if(o!==s)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(s):t.hasAnimated||t.set(s)}else{const t=e.getStaticValue(r);e.addValue(r,Wt(void 0!==t?t:s,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<Vn;e++){const n=c._[e],r=this.props[n];((0,i.w)(r)||!1===r)&&(t[n]=r)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=Wt(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];var s;return null!=r&&("string"==typeof r&&(A(r)||S(r))?r=parseFloat(r):(s=r,!Fn.find(j(s))&&de.test(t)&&(r=we(e,t))),this.setBaseTarget(e,(0,Xt.S)(r)?r.get():r)),(0,Xt.S)(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const s=(0,a.a)(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);s&&(r=s[e])}if(n&&void 0!==r)return r;const s=this.getBaseTargetFromProps(this.props,e);return void 0===s||(0,Xt.S)(s)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:s}on(e,t){return this.events[e]||(this.events[e]=new Bt),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class $n extends Bn{constructor(){super(...arguments),this.KeyframeResolver=Se}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}}class zn extends $n{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=_n.e}readValueFromInstance(e,t){if(u.f.has(t)){const e=be(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),s=((0,R.j)(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof s?s.trim():s}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return function(e,t){return function({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}(e,t)}build(e,t,n){(0,On.O)(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return(0,Cn.x)(e,t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;(0,Xt.S)(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}var Wn=n(2777),qn=n(3163),Hn=n(8062),Kn=n(2311),Gn=n(7415),Yn=n(6793);class Xn extends $n{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Un}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(u.f.has(t)){const e=be(t);return e&&e.default||0}return t=Kn.e.has(t)?t:(0,Hn.I)(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return(0,Wn.x)(e,t,n)}build(e,t,n){(0,qn.B)(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){(0,Gn.d)(e,t,n,r)}mount(e){this.isSVGTag=(0,Yn.n)(e.tagName),super.mount(e)}}var Jn=n(3385);const Zn={renderer:(e,t)=>(0,Jn.Q)(e)?new Xn(t):new zn(t,{allowProjection:e!==Rn.Fragment}),...cn,...An}},8062:(e,t,n)=>{"use strict";n.d(t,{I:()=>r});const r=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},568:(e,t,n)=>{"use strict";n.d(t,{j:()=>s,p:()=>i});const r=e=>t=>"string"==typeof t&&t.startsWith(e),s=r("--"),o=r("var(--"),i=e=>!!o(e)&&a.test(e.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},3385:(e,t,n)=>{"use strict";n.d(t,{Q:()=>s});const r=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function s(e){return"string"==typeof e&&!e.includes("-")&&!!(r.indexOf(e)>-1||/[A-Z]/u.test(e))}},3776:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});var r=n(2944),s=n(5269);const o={...r.ai,transform:Math.round},i={borderWidth:s.px,borderTopWidth:s.px,borderRightWidth:s.px,borderBottomWidth:s.px,borderLeftWidth:s.px,borderRadius:s.px,radius:s.px,borderTopLeftRadius:s.px,borderTopRightRadius:s.px,borderBottomRightRadius:s.px,borderBottomLeftRadius:s.px,width:s.px,maxWidth:s.px,height:s.px,maxHeight:s.px,size:s.px,top:s.px,right:s.px,bottom:s.px,left:s.px,padding:s.px,paddingTop:s.px,paddingRight:s.px,paddingBottom:s.px,paddingLeft:s.px,margin:s.px,marginTop:s.px,marginRight:s.px,marginBottom:s.px,marginLeft:s.px,rotate:s.uj,rotateX:s.uj,rotateY:s.uj,rotateZ:s.uj,scale:r.hs,scaleX:r.hs,scaleY:r.hs,scaleZ:r.hs,skew:s.uj,skewX:s.uj,skewY:s.uj,distance:s.px,translateX:s.px,translateY:s.px,translateZ:s.px,x:s.px,y:s.px,z:s.px,perspective:s.px,transformPerspective:s.px,opacity:r.X4,originX:s.gQ,originY:s.gQ,originZ:s.px,zIndex:o,backgroundPositionX:s.px,backgroundPositionY:s.px,fillOpacity:r.X4,strokeOpacity:r.X4,numOctaves:o}},9298:(e,t,n)=>{"use strict";n.d(t,{O:()=>c});var r=n(2200);const s=(e,t)=>t&&"number"==typeof e?t.transform(e):e;var o=n(3776);const i={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},a=r.U.length;var l=n(568);function c(e,t,n){const{style:c,vars:u,transformOrigin:h}=e;let p=!1,d=!1;for(const e in t){const n=t[e];if(r.f.has(e))p=!0;else if((0,l.j)(e))u[e]=n;else{const t=s(n,o.W[e]);e.startsWith("origin")?(d=!0,h[e]=t):c[e]=t}}if(t.transform||(p||n?c.transform=function(e,t,n){let l="",c=!0;for(let u=0;u<a;u++){const a=r.U[u],h=e[a];if(void 0===h)continue;let p=!0;if(p="number"==typeof h?h===(a.startsWith("scale")?1:0):0===parseFloat(h),!p||n){const e=s(h,o.W[a]);p||(c=!1,l+=`${i[a]||a}(${e}) `),n&&(t[a]=e)}}return l=l.trim(),n?l=n(t,c?"":l):c&&(l="none"),l}(t,e.transform,n):c.transform&&(c.transform="none")),d){const{originX:e="50%",originY:t="50%",originZ:n=0}=h;c.transformOrigin=`${e} ${t} ${n}`}}},9836:(e,t,n)=>{"use strict";function r(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}n.d(t,{e:()=>r})},4494:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});var r=n(6471),s=n(9896);function o(e,t,n){var o;const{style:i}=e,a={};for(const l in i)((0,s.S)(i[l])||t.style&&(0,s.S)(t.style[l])||(0,r.z)(l,e)||void 0!==(null===(o=null==n?void 0:n.getValue(l))||void 0===o?void 0:o.liveStyle))&&(a[l]=i[l]);return n&&i&&"string"==typeof i.willChange&&(n.applyWillChange=!1),a}},2200:(e,t,n)=>{"use strict";n.d(t,{U:()=>r,f:()=>s});const r=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set(r)},3163:(e,t,n)=>{"use strict";n.d(t,{B:()=>l});var r=n(9298),s=n(5269);function o(e,t,n){return"string"==typeof e?e:s.px.transform(t+n*e)}const i={offset:"stroke-dashoffset",array:"stroke-dasharray"},a={offset:"strokeDashoffset",array:"strokeDasharray"};function l(e,{attrX:t,attrY:n,attrScale:l,originX:c,originY:u,pathLength:h,pathSpacing:p=1,pathOffset:d=0,...f},m,g){if((0,r.O)(e,f,g),m)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:y,style:v,dimensions:b}=e;y.transform&&(b&&(v.transform=y.transform),delete y.transform),b&&(void 0!==c||void 0!==u||v.transform)&&(v.transformOrigin=function(e,t,n){return`${o(t,e.x,e.width)} ${o(n,e.y,e.height)}`}(b,void 0!==c?c:.5,void 0!==u?u:.5)),void 0!==t&&(y.x=t),void 0!==n&&(y.y=n),void 0!==l&&(y.scale=l),void 0!==h&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const l=o?i:a;e[l.offset]=s.px.transform(-r);const c=s.px.transform(t),u=s.px.transform(n);e[l.array]=`${c} ${u}`}(y,h,p,d,!1)}},2311:(e,t,n)=>{"use strict";n.d(t,{e:()=>r});const r=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"])},6793:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});const r=e=>"string"==typeof e&&"svg"===e.toLowerCase()},7415:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});var r=n(8062),s=n(9836),o=n(2311);function i(e,t,n,i){(0,s.e)(e,t,void 0,i);for(const n in t.attrs)e.setAttribute(o.e.has(n)?n:(0,r.I)(n),t.attrs[n])}},2777:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});var r=n(9896),s=n(4494),o=n(2200);function i(e,t,n){const i=(0,s.x)(e,t,n);for(const n in e)((0,r.S)(e[n])||(0,r.S)(t[n]))&&(i[-1!==o.U.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return i}},837:(e,t,n)=>{"use strict";n.d(t,{O:()=>a,e:()=>i});var r=n(5490),s=n(6551),o=n(5092);function i(e){return(0,r.N)(e.animate)||o._.some((t=>(0,s.w)(e[t])))}function a(e){return Boolean(i(e)||e.variants)}},6551:(e,t,n)=>{"use strict";function r(e){return"string"==typeof e||Array.isArray(e)}n.d(t,{w:()=>r})},3141:(e,t,n)=>{"use strict";function r(e){const t=[{},{}];return null==e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function s(e,t,n,s){if("function"==typeof t){const[o,i]=r(s);t=t(void 0!==n?n:e.custom,o,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,i]=r(s);t=t(void 0!==n?n:e.custom,o,i)}return t}n.d(t,{a:()=>s})},5092:(e,t,n)=>{"use strict";n.d(t,{U:()=>r,_:()=>s});const r=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],s=["initial",...r]},4668:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});const r={skipAnimations:!1,useManualTiming:!1}},2358:(e,t,n)=>{"use strict";function r(e,t){-1===e.indexOf(t)&&e.push(t)}function s(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}n.d(t,{Ai:()=>s,Kq:()=>r})},2464:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});const r=(e,t,n)=>n>t?t:n<e?e:n},8288:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});const r="undefined"!=typeof window},3659:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});const r=e=>e},7365:(e,t,n)=>{"use strict";n.d(t,{B:()=>s,K:()=>o});var r=n(1712);const s=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),o=e=>(0,r.p)(e)?e[e.length-1]||0:e},2944:(e,t,n)=>{"use strict";n.d(t,{X4:()=>o,ai:()=>s,hs:()=>i});var r=n(2464);const s={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},o={...s,transform:e=>(0,r.q)(0,1,e)},i={...s,default:1}},5269:(e,t,n)=>{"use strict";n.d(t,{KN:()=>i,gQ:()=>u,px:()=>a,uj:()=>o,vh:()=>l,vw:()=>c});var r=n(7296);const s=e=>({test:t=>(0,r.Kg)(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),o=s("deg"),i=s("%"),a=s("px"),l=s("vh"),c=s("vw"),u={...i,parse:e=>i.parse(e)/100,transform:e=>i.transform(100*e)}},7296:(e,t,n)=>{"use strict";n.d(t,{Fl:()=>i,Kg:()=>a,SY:()=>s,aj:()=>r,ne:()=>o,uy:()=>l});const r=e=>Math.round(1e5*e)/1e5,s=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,o=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,i=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function a(e){return"string"==typeof e}function l(e){return null==e}},9303:(e,t,n)=>{"use strict";n.d(t,{I:()=>i});var r=n(7395),s=n(8062),o=n(2200);function i(e){return o.f.has(e)?"transform":r.M.has(e)?(0,s.I)(e):void 0}},9896:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});const r=e=>Boolean(e&&e.getVelocity)},23:(e,t,n)=>{"use strict";n.d(t,{xI:()=>ce});let r={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function s(e){r=e}const o=/[&<>"']/,i=new RegExp(o.source,"g"),a=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,l=new RegExp(a.source,"g"),c={"&":"&","<":"<",">":">",'"':""","'":"'"},u=e=>c[e];function h(e,t){if(t){if(o.test(e))return e.replace(i,u)}else if(a.test(e))return e.replace(l,u);return e}const p=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,d=/(^|[^\[])\^/g;function f(e,t){let n="string"==typeof e?e:e.source;t=t||"";const r={replace:(e,t)=>{let s="string"==typeof t?t:t.source;return s=s.replace(d,"$1"),n=n.replace(e,s),r},getRegex:()=>new RegExp(n,t)};return r}function m(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const g={exec:()=>null};function y(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let r=!1,s=t;for(;--s>=0&&"\\"===n[s];)r=!r;return r?"|":" |"})).split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function v(e,t,n){const r=e.length;if(0===r)return"";let s=0;for(;s<r;){const o=e.charAt(r-s-1);if(o!==t||n){if(o===t||!n)break;s++}else s++}return e.slice(0,r-s)}function b(e,t,n,r){const s=t.href,o=t.title?h(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:s,title:o,text:i,tokens:r.inlineTokens(i)};return r.state.inLink=!1,e}return{type:"image",raw:n,href:s,title:o,text:h(i)}}class w{options;rules;lexer;constructor(e){this.options=e||r}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:v(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=v(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:v(t[0],"\n")}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let e=v(t[0],"\n").split("\n"),n="",r="";const s=[];for(;e.length>0;){let t=!1;const o=[];let i;for(i=0;i<e.length;i++)if(/^ {0,3}>/.test(e[i]))o.push(e[i]),t=!0;else{if(t)break;o.push(e[i])}e=e.slice(i);const a=o.join("\n"),l=a.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n $1").replace(/^ {0,3}>[ \t]?/gm,"");n=n?`${n}\n${a}`:a,r=r?`${r}\n${l}`:l;const c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,s,!0),this.lexer.state.top=c,0===e.length)break;const u=s[s.length-1];if("code"===u?.type)break;if("blockquote"===u?.type){const t=u,o=t.raw+"\n"+e.join("\n"),i=this.blockquote(o);s[s.length-1]=i,n=n.substring(0,n.length-t.raw.length)+i.raw,r=r.substring(0,r.length-t.text.length)+i.text;break}if("list"!==u?.type);else{const t=u,o=t.raw+"\n"+e.join("\n"),i=this.list(o);s[s.length-1]=i,n=n.substring(0,n.length-u.raw.length)+i.raw,r=r.substring(0,r.length-t.raw.length)+i.raw,e=o.substring(s[s.length-1].raw.length).split("\n")}}return{type:"blockquote",raw:n,tokens:s,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const r=n.length>1,s={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");const o=new RegExp(`^( {0,3}${n})((?:[\t ][^\\n]*)?(?:\\n|$))`);let i=!1;for(;e;){let n=!1,r="",a="";if(!(t=o.exec(e)))break;if(this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let l=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),c=e.split("\n",1)[0],u=!l.trim(),h=0;if(this.options.pedantic?(h=2,a=l.trimStart()):u?h=t[1].length+1:(h=t[2].search(/[^ ]/),h=h>4?1:h,a=l.slice(h),h+=t[1].length),u&&/^ *$/.test(c)&&(r+=c+"\n",e=e.substring(c.length+1),n=!0),!n){const t=new RegExp(`^ {0,${Math.min(3,h-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),n=new RegExp(`^ {0,${Math.min(3,h-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),s=new RegExp(`^ {0,${Math.min(3,h-1)}}(?:\`\`\`|~~~)`),o=new RegExp(`^ {0,${Math.min(3,h-1)}}#`);for(;e;){const i=e.split("\n",1)[0];if(c=i,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),s.test(c))break;if(o.test(c))break;if(t.test(c))break;if(n.test(e))break;if(c.search(/[^ ]/)>=h||!c.trim())a+="\n"+c.slice(h);else{if(u)break;if(l.search(/[^ ]/)>=4)break;if(s.test(l))break;if(o.test(l))break;if(n.test(l))break;a+="\n"+c}u||c.trim()||(u=!0),r+=i+"\n",e=e.substring(i.length+1),l=c.slice(h)}}s.loose||(i?s.loose=!0:/\n *\n *$/.test(r)&&(i=!0));let p,d=null;this.options.gfm&&(d=/^\[[ xX]\] /.exec(a),d&&(p="[ ] "!==d[0],a=a.replace(/^\[[ xX]\] +/,""))),s.items.push({type:"list_item",raw:r,task:!!d,checked:p,loose:!1,text:a,tokens:[]}),s.raw+=r}s.items[s.items.length-1].raw=s.items[s.items.length-1].raw.trimEnd(),s.items[s.items.length-1].text=s.items[s.items.length-1].text.trimEnd(),s.raw=s.raw.trimEnd();for(let e=0;e<s.items.length;e++)if(this.lexer.state.top=!1,s.items[e].tokens=this.lexer.blockTokens(s.items[e].text,[]),!s.loose){const t=s.items[e].tokens.filter((e=>"space"===e.type)),n=t.length>0&&t.some((e=>/\n.*\n/.test(e.raw)));s.loose=n}if(s.loose)for(let e=0;e<s.items.length;e++)s.items[e].loose=!0;return s}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){const t=this.rules.block.table.exec(e);if(!t)return;if(!/[:|]/.test(t[2]))return;const n=y(t[1]),r=t[2].replace(/^\||\| *$/g,"").split("|"),s=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(const e of r)/^ *-+: *$/.test(e)?o.align.push("right"):/^ *:-+: *$/.test(e)?o.align.push("center"):/^ *:-+ *$/.test(e)?o.align.push("left"):o.align.push(null);for(let e=0;e<n.length;e++)o.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:o.align[e]});for(const e of s)o.rows.push(y(e,o.header.length).map(((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:o.align[t]}))));return o}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:h(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=v(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1}(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),b(t,{href:n?n.replace(this.rules.inline.anyPunctuation,"$1"):n,title:r?r.replace(this.rules.inline.anyPunctuation,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const e=t[(n[2]||n[1]).replace(/\s+/g," ").toLowerCase()];if(!e){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return b(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(r&&(!r[3]||!n.match(/[\p{L}\p{N}]/u))&&(!r[1]&&!r[2]||!n||this.rules.inline.punctuation.exec(n))){const n=[...r[0]].length-1;let s,o,i=n,a=0;const l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=l.exec(t));){if(s=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!s)continue;if(o=[...s].length,r[3]||r[4]){i+=o;continue}if((r[5]||r[6])&&n%3&&!((n+o)%3)){a+=o;continue}if(i-=o,i>0)continue;o=Math.min(o,o+i+a);const t=[...r[0]][0].length,l=e.slice(0,n+r.index+t+o);if(Math.min(n,o)%2){const e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}const c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=h(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=h(t[1]),n="mailto:"+e):(e=h(t[1]),n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=h(t[0]),n="mailto:"+e;else{let r;do{r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(r!==t[0]);e=h(t[0]),n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let e;return e=this.lexer.state.inRawBlock?t[0]:h(t[0]),{type:"text",raw:t[0],text:e}}}}const k=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,S=/(?:[*+-]|\d{1,9}[.)])/,x=f(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,S).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),T=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,E=/(?!\s*\])(?:\\.|[^\[\]\\])+/,A=f(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",E).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),R=f(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,S).getRegex(),O="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",C=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,_=f("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",C).replace("tag",O).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),P=f(T).replace("hr",k).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex(),N={blockquote:f(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",P).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:A,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:k,html:_,lheading:x,list:R,newline:/^(?: *(?:\n|$))+/,paragraph:P,table:g,text:/^[^\n]+/},M=f("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",k).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex(),I={...N,table:M,paragraph:f(T).replace("hr",k).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",M).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex()},L={...N,html:f("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",C).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:g,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:f(T).replace("hr",k).replace("heading"," *#{1,6} *[^\n]").replace("lheading",x).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},D=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,F=/^( {2,}|\\)\n(?!\s*$)/,U="\\p{P}\\p{S}",j=f(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,U).getRegex(),V=f(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,U).getRegex(),B=f("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,U).getRegex(),$=f("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,U).getRegex(),z=f(/\\([punct])/,"gu").replace(/punct/g,U).getRegex(),W=f(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),q=f(C).replace("(?:--\x3e|$)","--\x3e").getRegex(),H=f("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",q).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),K=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,G=f(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",K).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Y=f(/^!?\[(label)\]\[(ref)\]/).replace("label",K).replace("ref",E).getRegex(),X=f(/^!?\[(ref)\](?:\[\])?/).replace("ref",E).getRegex(),J={_backpedal:g,anyPunctuation:z,autolink:W,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:F,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:g,emStrongLDelim:V,emStrongRDelimAst:B,emStrongRDelimUnd:$,escape:D,link:G,nolink:X,punctuation:j,reflink:Y,reflinkSearch:f("reflink|nolink(?!\\()","g").replace("reflink",Y).replace("nolink",X).getRegex(),tag:H,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:g},Z={...J,link:f(/^!?\[(label)\]\((.*?)\)/).replace("label",K).getRegex(),reflink:f(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",K).getRegex()},Q={...J,escape:f(D).replace("])","~|])").getRegex(),url:f(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},ee={...Q,br:f(F).replace("{2,}","*").getRegex(),text:f(Q.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},te={normal:N,gfm:I,pedantic:L},ne={normal:J,gfm:Q,breaks:ee,pedantic:Z};class re{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||r,this.options.tokenizer=this.options.tokenizer||new w,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:te.normal,inline:ne.normal};this.options.pedantic?(t.block=te.pedantic,t.inline=ne.pedantic):this.options.gfm&&(t.block=te.gfm,this.options.breaks?t.inline=ne.breaks:t.inline=ne.gfm),this.tokenizer.rules=t}static get rules(){return{block:te,inline:ne}}static lex(e,t){return new re(t).lex(e)}static lexInline(e,t){return new re(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){const t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){let r,s,o;for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,n)=>t+" ".repeat(n.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))))if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),1===r.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),s=t[t.length-1],!s||"paragraph"!==s.type&&"text"!==s.type?t.push(r):(s.raw+="\n"+r.raw,s.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=s.text);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.list(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.def(e))e=e.substring(r.raw.length),s=t[t.length-1],!s||"paragraph"!==s.type&&"text"!==s.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(s.raw+="\n"+r.raw,s.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=s.text);else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else{if(o=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startBlock.forEach((e=>{r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(o)))s=t[t.length-1],n&&"paragraph"===s?.type?(s.raw+="\n"+r.raw,s.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):t.push(r),n=o.length!==e.length,e=e.substring(r.raw.length);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),s=t[t.length-1],s&&"text"===s.type?(s.raw+="\n"+r.raw,s.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):t.push(r);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r,s,o,i,a,l=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(l));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.anyPunctuation.exec(l));)l=l.slice(0,o.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(i||(a=""),i=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,l,a))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e))){if(s=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startInline.forEach((e=>{r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(s))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(a=n.raw.slice(-1)),i=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}class se{options;parser;constructor(e){this.options=e||r}space(e){return""}code({text:e,lang:t,escaped:n}){const r=(t||"").match(/^\S*/)?.[0],s=e.replace(/\n$/,"")+"\n";return r?'<pre><code class="language-'+h(r)+'">'+(n?s:h(s,!0))+"</code></pre>\n":"<pre><code>"+(n?s:h(s,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){const t=e.ordered,n=e.start;let r="";for(let t=0;t<e.items.length;t++){const n=e.items[t];r+=this.listitem(n)}const s=t?"ol":"ul";return"<"+s+(t&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+s+">\n"}listitem(e){let t="";if(e.task){const n=this.checkbox({checked:!!e.checked});e.loose?e.tokens.length>0&&"paragraph"===e.tokens[0].type?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+e.tokens[0].tokens[0].text)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" "}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){const s=e.rows[t];n="";for(let e=0;e<s.length;e++)n+=this.tablecell(s[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+r+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){const t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${e}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){const r=this.parser.parseInline(n),s=m(e);if(null===s)return r;let o='<a href="'+(e=s)+'"';return t&&(o+=' title="'+t+'"'),o+=">"+r+"</a>",o}image({href:e,title:t,text:n}){const r=m(e);if(null===r)return n;let s=`<img src="${e=r}" alt="${n}"`;return t&&(s+=` title="${t}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):e.text}}class oe{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}}class ie{options;renderer;textRenderer;constructor(e){this.options=e||r,this.options.renderer=this.options.renderer||new se,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new oe}static parse(e,t){return new ie(t).parse(e)}static parseInline(e,t){return new ie(t).parseInline(e)}parse(e,t=!0){let n="";for(let r=0;r<e.length;r++){const s=e[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const e=s,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){n+=t||"";continue}}const o=s;switch(o.type){case"space":n+=this.renderer.space(o);continue;case"hr":n+=this.renderer.hr(o);continue;case"heading":n+=this.renderer.heading(o);continue;case"code":n+=this.renderer.code(o);continue;case"table":n+=this.renderer.table(o);continue;case"blockquote":n+=this.renderer.blockquote(o);continue;case"list":n+=this.renderer.list(o);continue;case"html":n+=this.renderer.html(o);continue;case"paragraph":n+=this.renderer.paragraph(o);continue;case"text":{let s=o,i=this.renderer.text(s);for(;r+1<e.length&&"text"===e[r+1].type;)s=e[++r],i+="\n"+this.renderer.text(s);n+=t?this.renderer.paragraph({type:"paragraph",raw:i,text:i,tokens:[{type:"text",raw:i,text:i}]}):i;continue}default:{const e='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}parseInline(e,t){t=t||this.renderer;let n="";for(let r=0;r<e.length;r++){const s=e[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const e=this.options.extensions.renderers[s.type].call({parser:this},s);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){n+=e||"";continue}}const o=s;switch(o.type){case"escape":case"text":n+=t.text(o);break;case"html":n+=t.html(o);break;case"link":n+=t.link(o);break;case"image":n+=t.image(o);break;case"strong":n+=t.strong(o);break;case"em":n+=t.em(o);break;case"codespan":n+=t.codespan(o);break;case"br":n+=t.br(o);break;case"del":n+=t.del(o);break;default:{const e='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}}class ae{options;constructor(e){this.options=e||r}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}const le=new class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.#e(re.lex,ie.parse);parseInline=this.#e(re.lexInline,ie.parseInline);Parser=ie;Renderer=se;TextRenderer=oe;Lexer=re;Tokenizer=w;Hooks=ae;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(const r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{const e=r;for(const r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(const r of e.rows)for(const e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case"list":{const e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{const e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach((r=>{const s=e[r].flat(1/0);n=n.concat(this.walkTokens(s,t))})):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((e=>{const n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){const n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");const n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),n.extensions=t),e.renderer){const t=this.defaults.renderer||new se(this.defaults);for(const n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;const r=n;let s=e.renderer[r];e.useNewRenderer||(s=this.#t(s,r,t));const o=t[r];t[r]=(...e)=>{let n=s.apply(t,e);return!1===n&&(n=o.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){const t=this.defaults.tokenizer||new w(this.defaults);for(const n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;const r=n,s=e.tokenizer[r],o=t[r];t[r]=(...e)=>{let n=s.apply(t,e);return!1===n&&(n=o.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){const t=this.defaults.hooks||new ae;for(const n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if("options"===n)continue;const r=n,s=e.hooks[r],o=t[r];ae.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async)return Promise.resolve(s.call(t,e)).then((e=>o.call(t,e)));const n=s.call(t,e);return o.call(t,n)}:t[r]=(...e)=>{let n=s.apply(t,e);return!1===n&&(n=o.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){const t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}})),this}#t(e,t,n){switch(t){case"heading":return function(r){return r.type&&r.type===t?e.call(this,n.parser.parseInline(r.tokens),r.depth,function(e){return e.replace(p,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}(n.parser.parseInline(r.tokens,n.parser.textRenderer))):e.apply(this,arguments)};case"code":return function(n){return n.type&&n.type===t?e.call(this,n.text,n.lang,!!n.escaped):e.apply(this,arguments)};case"table":return function(n){if(!n.type||n.type!==t)return e.apply(this,arguments);let r="",s="";for(let e=0;e<n.header.length;e++)s+=this.tablecell({text:n.header[e].text,tokens:n.header[e].tokens,header:!0,align:n.align[e]});r+=this.tablerow({text:s});let o="";for(let e=0;e<n.rows.length;e++){const t=n.rows[e];s="";for(let e=0;e<t.length;e++)s+=this.tablecell({text:t[e].text,tokens:t[e].tokens,header:!1,align:n.align[e]});o+=this.tablerow({text:s})}return e.call(this,r,o)};case"blockquote":return function(n){if(!n.type||n.type!==t)return e.apply(this,arguments);const r=this.parser.parse(n.tokens);return e.call(this,r)};case"list":return function(n){if(!n.type||n.type!==t)return e.apply(this,arguments);const r=n.ordered,s=n.start,o=n.loose;let i="";for(let e=0;e<n.items.length;e++){const t=n.items[e],r=t.checked,s=t.task;let a="";if(t.task){const e=this.checkbox({checked:!!r});o?t.tokens.length>0&&"paragraph"===t.tokens[0].type?(t.tokens[0].text=e+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=e+" "+t.tokens[0].tokens[0].text)):t.tokens.unshift({type:"text",text:e+" "}):a+=e+" "}a+=this.parser.parse(t.tokens,o),i+=this.listitem({type:"list_item",raw:a,text:a,task:s,checked:!!r,loose:o,tokens:t.tokens})}return e.call(this,i,r,s)};case"html":return function(n){return n.type&&n.type===t?e.call(this,n.text,n.block):e.apply(this,arguments)};case"paragraph":case"strong":case"em":case"del":return function(n){return n.type&&n.type===t?e.call(this,this.parser.parseInline(n.tokens)):e.apply(this,arguments)};case"escape":case"codespan":case"text":return function(n){return n.type&&n.type===t?e.call(this,n.text):e.apply(this,arguments)};case"link":return function(n){return n.type&&n.type===t?e.call(this,n.href,n.title,this.parser.parseInline(n.tokens)):e.apply(this,arguments)};case"image":return function(n){return n.type&&n.type===t?e.call(this,n.href,n.title,n.text):e.apply(this,arguments)}}return e}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return re.lex(e,t??this.defaults)}parser(e,t){return ie.parse(e,t??this.defaults)}#e(e,t){return(n,r)=>{const s={...r},o={...this.defaults,...s};!0===this.defaults.async&&!1===s.async&&(o.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),o.async=!0);const i=this.#n(!!o.silent,!!o.async);if(null==n)return i(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(o.hooks&&(o.hooks.options=o),o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(n):n).then((t=>e(t,o))).then((e=>o.hooks?o.hooks.processAllTokens(e):e)).then((e=>o.walkTokens?Promise.all(this.walkTokens(e,o.walkTokens)).then((()=>e)):e)).then((e=>t(e,o))).then((e=>o.hooks?o.hooks.postprocess(e):e)).catch(i);try{o.hooks&&(n=o.hooks.preprocess(n));let r=e(n,o);o.hooks&&(r=o.hooks.processAllTokens(r)),o.walkTokens&&this.walkTokens(r,o.walkTokens);let s=t(r,o);return o.hooks&&(s=o.hooks.postprocess(s)),s}catch(e){return i(e)}}}#n(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+h(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function ce(e,t){return le.parse(e,t)}ce.options=ce.setOptions=function(e){return le.setOptions(e),ce.defaults=le.defaults,s(ce.defaults),ce},ce.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},ce.defaults=r,ce.use=function(...e){return le.use(...e),ce.defaults=le.defaults,s(ce.defaults),ce},ce.walkTokens=function(e,t){return le.walkTokens(e,t)},ce.parseInline=le.parseInline,ce.Parser=ie,ce.parser=ie.parse,ce.Renderer=se,ce.TextRenderer=oe,ce.Lexer=re,ce.lexer=re.lex,ce.Tokenizer=w,ce.Hooks=ae,ce.parse=ce,ce.options,ce.setOptions,ce.use,ce.walkTokens,ce.parseInline,ie.parse,re.lex}}]);
|