@opencx/widget 3.0.88 → 3.0.89

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.
package/dist/designs.cjs CHANGED
@@ -1,24 +1,357 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),gt=require("@radix-ui/react-popover"),m=require("react"),l=require("./useModes-DSFNdOy3.cjs"),Le=require("remark-gfm"),mt=require("react-markdown"),Ve=require("rehype-raw"),ut=require("@radix-ui/react-dialog"),g=require("lucide-react"),wt=require("clsx"),ft=require("tailwind-merge"),xt=require("react-dom"),ae=require("@uiw/react-iframe"),vt=require("@radix-ui/react-slot"),bt=require("class-variance-authority"),k=require("framer-motion"),yt=require("@radix-ui/react-avatar"),jt=require("@radix-ui/react-tooltip"),We=require("tinycolor2"),H=require("./index.cjs"),kt=require("react-dropzone"),Ct=require("react-use/lib/useAsyncFn"),oe=require("zod");function U(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(o,s,r.get?r:{enumerable:!0,get:()=>t[s]})}}return o.default=t,Object.freeze(o)}const ee=U(gt),R=U(m),M=U(ut),L=U(yt),X=U(jt),Ye=m.memo(mt,(t,o)=>t.children===o.children&&t.className===o.className);function c(...t){return ft.twMerge(wt.clsx(t))}const $e="opencx-widget-portal";function te(){return null}function zt({children:t}){var s,r;const o=(r=(s=ae.useFrame())==null?void 0:s.document)==null?void 0:r.getElementById($e);return o?xt.createPortal(t,o):(console.error("Portal container not found!"),null)}function St(){return e.jsx("div",{id:$e,className:"absolute size-full top-0 left-0"})}te.Portal=zt;te.Container=St;const B={x:2,y:2},W=m.memo(m.forwardRef(({children:t,className:o,scale:s=1.02,off:r=!1},n)=>{const[a,i]=m.useState(!1),[d,p]=m.useState({x:0,y:0});if(r||/translate/.test(t.props.className||""))return t;const b=v=>{var f,j;const{clientX:y,clientY:I}=v,S=v.currentTarget.getBoundingClientRect(),T=y-(S.left+S.width/2),D=I-(S.top+S.height/2),O=Math.max(-1,Math.min(1,T/(S.width/2))),P=Math.max(-1,Math.min(1,D/(S.height/2))),A=O*B.x,E=P*B.y;p({x:A,y:E}),(j=(f=t.props).onMouseMove)==null||j.call(f,v)},N=()=>{var v,y;i(!0),(y=(v=t.props).onMouseEnter)==null||y.call(v)},h=()=>{var v,y;i(!1),p({x:0,y:0}),(y=(v=t.props).onMouseLeave)==null||y.call(v)},x={"--wobble-x":a?`${d.x}px`:"0px","--wobble-y":a?`${d.y}px`:"0px","--scale":1-(s-1)};return m.cloneElement(t,{ref:n,onMouseMove:b,onMouseEnter:N,onMouseLeave:h,style:{...x,...t.props.style},className:c("translate-x-[var(--wobble-x)]","translate-y-[var(--wobble-y)]","hover:scale-[var(--scale)] active:hover:scale-[calc(var(--scale)-0.02)]",o,t.props.className,"transition-all ease-out")})}));W.displayName="Wobble";function u(t){return{"data-component":t}}const Nt=bt.cva(c("inline-flex shrink-0 items-center justify-center gap-2","text-sm font-medium whitespace-nowrap","ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","active:scale-95 hover:active:scale-95","rounded-xl","transition"),{variants:{variant:{default:"bg-primary text-primary-foreground",destructive:"bg-destructive text-destructive-foreground",outline:"bg-background",secondary:"bg-secondary text-secondary-foreground",ghost:"hover:bg-secondary",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"py-2 px-3.5 text-xs",lg:"min-h-12 px-4 rounded-[20px]",icon:"h-10 w-10",fit:"size-fit p-2",free:"p-2",selfless:"p-0"}},defaultVariants:{variant:"default",size:"default"}}),C=R.forwardRef(({className:t,variant:o="default",size:s,asChild:r=!1,...n},a)=>{const i=r?vt.Slot:"button";return e.jsx(W,{ref:a,children:e.jsx(i,{...u("ui_lib/btn"),"data-variant":o,className:c(Nt({variant:o,size:s,className:t})),...n})})});C.displayName="Button";const Ue=M.Root,Xe=M.Trigger,Ke=R.forwardRef(({className:t,...o},s)=>e.jsx(M.Overlay,{ref:s,className:c("fixed inset-0 z-50 bg-black/60 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...o}));Ke.displayName=M.Overlay.displayName;const ie=R.forwardRef(({className:t,children:o,withClose:s=!1,...r},n)=>e.jsxs(te.Portal,{children:[e.jsx(Ke,{}),e.jsxs(M.Content,{ref:n,className:c("fixed left-[50%] top-[50%] z-50 flex flex-col space-y-4 w-full max-w-[61.8%] translate-x-[-50%] translate-y-[-50%] border bg-background p-4 duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-3xl",t),...r,children:[o,s&&e.jsx(M.Close,{asChild:!0,className:"absolute right-4 top-4 opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:e.jsxs(C,{size:"fit",className:"rounded-full",variant:"secondary",children:[e.jsx(g.X,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})})]})]}));ie.displayName=M.Content.displayName;const Ge=({className:t,...o})=>e.jsx("div",{className:c("flex flex-col gap-2 text-center pt-2",t),...o});Ge.displayName="DialogHeader";const Je=({className:t,...o})=>e.jsx("div",{className:c("flex flex-col gap-2 text-center",t),...o});Je.displayName="DialogBody";const Ze=({className:t,...o})=>e.jsx("div",{className:c("flex flex-col gap-2",t),...o});Ze.displayName="DialogFooter";const le=R.forwardRef(({className:t,...o},s)=>e.jsx(M.Title,{ref:s,className:c("text-lg font-semibold leading-none tracking-tight",t),...o}));le.displayName=M.Title.displayName;const Qe=R.forwardRef(({className:t,...o},s)=>e.jsx(M.Description,{ref:s,className:c("text-sm text-muted-foreground",t),...o}));Qe.displayName=M.Description.displayName;function et({attachment:t}){const{name:o,size:s,type:r,url:n}=t,a=r.startsWith("image/"),i=r.startsWith("video/"),d=r.startsWith("audio/");return d?e.jsx(W,{children:e.jsx("div",{className:"w-full shrink-0 overflow-hidden",children:e.jsxs("audio",{controls:!0,className:"w-full",children:[e.jsx("source",{src:n,type:r}),"Your browser does not support the audio tag."]})})}):i?e.jsx(W,{children:e.jsx("div",{className:"w-full border shrink-0 rounded-2xl overflow-hidden",children:e.jsxs("video",{controls:!0,children:[e.jsx("source",{src:n,type:r}),"Your browser does not support the video tag."]})})}):!a&&!i&&!d?e.jsx(W,{children:e.jsx("div",{className:"size-fit border shrink-0 rounded-2xl overflow-hidden",children:e.jsxs("div",{className:"flex items-end gap-2 p-2",children:[e.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:c("text-xs text-blue-500 line-clamp-2 underline hover:text-blue-600","break-words [word-break:break-word]"),children:o}),e.jsxs("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:[(s/1024).toFixed(2)," KB"]})]})})}):e.jsxs(Ue,{children:[e.jsx(W,{children:e.jsx(Xe,{children:e.jsx("div",{className:"size-fit border shrink-0 rounded-2xl overflow-hidden",children:a&&e.jsx("img",{src:n,className:"object-cover size-16",alt:o})})})}),e.jsxs(ie,{"aria-describedby":void 0,className:"size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",withClose:!0,children:[e.jsx(le,{className:"sr-only",children:"Image preview"}),a&&e.jsx("div",{className:"size-fit shrink-0 rounded-2xl overflow-hidden max-h-full",children:e.jsx("img",{src:n,className:"object-cover size-auto",alt:o})})]})]})}function Q({data:t,id:o,type:s,attachments:r,isFirstInGroup:n,isLastInGroup:a,isAloneInGroup:i,dataComponentNames:d,classNames:p}){const{anchorTarget:z}=l.useConfig(),{message:b,variant:N="default"}=t;return N==="error"?e.jsx("div",{children:e.jsx("div",{className:"flex flex-row flex-wrap items-center justify-start",children:e.jsx("div",{className:"leading-snug text-sm text-destructive",children:b})})}):e.jsxs("div",{...u((d==null?void 0:d.messageContainer)??"chat/agent_msg/root"),className:c("w-5/6 flex flex-col items-start gap-1",p==null?void 0:p.messageContainer),children:[r&&r.length>0&&e.jsx("div",{className:"w-full gap-1 flex flex-row flex-wrap items-center justify-start",children:r==null?void 0:r.map(h=>e.jsx(et,{attachment:h},h.id))}),b.length>0&&e.jsx("div",{...u((d==null?void 0:d.message)??"chat/agent_msg/msg"),"data-first":n,"data-last":a,"data-alone":i,className:c("transition-all","w-fit py-3 px-4 rounded-3xl bg-secondary text-secondary-foreground","leading-snug text-sm prose prose-sm prose-a:decoration-primary prose-a:underline","break-words [word-break:break-word]",n&&!i&&"rounded-bl-md",a&&!i&&"rounded-tl-md",!n&&!a&&!i&&"rounded-l-md",p==null?void 0:p.message),children:e.jsx(Ye,{"data-type":s,"data-id":o,remarkPlugins:[Le],rehypePlugins:[Ve],components:{a:({children:h,...x})=>e.jsx("a",{target:z??"_top",...x,children:h})},children:b})})]})}function _t(t){return e.jsx("div",{className:"w-full max-w-full overflow-auto shrink-0",children:e.jsx("pre",{dir:"auto",className:"text-xs leading-tight whitespace-pre-wrap break-word",children:JSON.stringify(t,null,1)})})}const ce=R.forwardRef(({className:t,...o},s)=>e.jsx(L.Root,{ref:s,className:c("relative flex size-6 aspect-square shrink-0 overflow-hidden rounded-full bg-secondary",t),...o}));ce.displayName=L.Root.displayName;const de=R.forwardRef(({className:t,...o},s)=>e.jsx(L.Image,{ref:s,className:c("aspect-square h-full w-full",t),...o}));de.displayName=L.Image.displayName;const pe=R.forwardRef(({className:t,...o},s)=>e.jsx(L.Fallback,{ref:s,className:c("flex size-full text-xs items-center justify-center rounded-lg",t),...o}));pe.displayName=L.Fallback.displayName;function se({agent:t,...o}){var s,r;return e.jsxs(ce,{...o,children:[e.jsx(de,{src:(t==null?void 0:t.avatar)??"",alt:"Agent Icon"}),(t==null?void 0:t.name)&&e.jsx(pe,{children:(r=(s=t==null?void 0:t.name)==null?void 0:s.slice(0,1))==null?void 0:r.toUpperCase()})]})}const It=10,Tt=(t,o,s)=>({initial:{opacity:0,x:-t,...o.initial},animate:{opacity:1,x:0,...o.animate,transition:{delay:s}},exit:{opacity:0,x:t,...o.exit}}),Mt=(t,o,s)=>({initial:{opacity:0,x:t,...o.initial},animate:{opacity:1,x:0,...o.animate,transition:{delay:s}},exit:{opacity:0,x:-t,...o.exit}}),Et=(t,o,s)=>({initial:{opacity:0,y:t,...o.initial},animate:{opacity:1,y:0,...o.animate,transition:{delay:s}},exit:{opacity:0,y:-t,...o.exit}}),Rt=(t,o,s)=>({initial:{opacity:0,y:-t,...o.initial},animate:{opacity:1,y:0,...o.animate,transition:{delay:s}},exit:{opacity:0,y:t,...o.exit}}),Dt={right:Tt,left:Mt,up:Et,down:Rt},w=m.forwardRef(({fadeIn:t="down",distance:o=It,children:s,snapExit:r=!1,overrides:n={},delay:a=0,...i},d)=>{const p=t?Dt[t](o,n,a):{};return r&&p.exit&&typeof p.exit=="object"&&!Array.isArray(p.exit)&&(p.exit.transition={duration:0}),e.jsx(k.motion.div,{ref:d,...i,...p,children:s})});w.displayName="MotionDiv";function Ot({agent:t}){return e.jsx(k.AnimatePresence,{children:e.jsxs(w,{...u("chat/bot_loading/root"),className:"flex flex-row items-end w-full gap-2 animate-pulse",children:[e.jsx(se,{agent:t}),e.jsxs("div",{...u("chat/bot_loading/bouncing_dots_container"),className:c("flex items-center [&_span]:bg-secondary-foreground [&_span]:size-1 gap-1 p-2 rounded-xl bg-secondary"),children:[e.jsx(k.motion.span,{className:"rounded-full animate-bounce [animation-delay:-0.3s]"}),e.jsx(k.motion.span,{className:"rounded-full animate-bounce [animation-delay:-0.15s]"}),e.jsx(k.motion.span,{className:"rounded-full animate-bounce"})]})]})})}const tt='@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..700;1,14..32,100..700&display=swap";@import"https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{-ms-overflow-style:none;scrollbar-width:none}*::-webkit-scrollbar{display:none}*{border-color:hsl(var(--opencx-border))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.left-0{left:0}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.right-4{right:1rem}.right-6{right:1.5rem}.top-0{top:0}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\[50\\%\\]{top:50%}.isolate{isolation:isolate}.z-10{z-index:10}.z-50{z-index:50}.m-2{margin:.5rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ml-auto{margin-left:auto}.mt-0\\.5{margin-top:.125rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-3{width:.75rem;height:.75rem}.size-3\\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-auto{width:auto;height:auto}.size-fit{width:fit-content;height:fit-content}.size-full{width:100%;height:100%}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.max-h-16{max-height:4rem}.max-h-full{max-height:100%}.min-h-12{min-height:3rem}.w-0{width:0px}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-2{width:.5rem}.w-3\\.5{width:.875rem}.w-4{width:1rem}.w-5\\/6{width:83.333333%}.w-60{width:15rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.min-w-\\[8rem\\]{min-width:8rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[var\\(--wobble-x\\)\\]{--tw-translate-x: var(--wobble-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[var\\(--wobble-y\\)\\]{--tw-translate-y: var(--wobble-y);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-\\[1px\\]{gap:1px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.scroll-smooth{scroll-behavior:smooth}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[20px\\]{border-radius:20px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-none{border-style:none}.border-transparent{border-color:transparent}.bg-\\[white\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-background{background-color:hsl(var(--opencx-background))}.bg-black\\/50{background-color:#00000080}.bg-black\\/60{background-color:#0009}.bg-destructive{background-color:hsl(var(--opencx-destructive))}.bg-muted{background-color:hsl(var(--opencx-muted))}.bg-primary{background-color:hsl(var(--opencx-primary))}.bg-secondary{background-color:hsl(var(--opencx-secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-\\[radial-gradient\\(ellipse_at_top_left\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\,radial-gradient\\(ellipse_at_top_right\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\]{background-image:radial-gradient(ellipse at top left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse at top right,hsl(var(--opencx-primary)),transparent)}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.text-\\[1\\.75rem\\]{font-size:1.75rem}.text-\\[10px\\]{font-size:10px}.text-\\[16px\\]{font-size:16px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-destructive{color:hsl(var(--opencx-destructive))}.text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity))}.text-foreground{color:hsl(var(--opencx-foreground))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}.text-muted-foreground\\/75{color:hsl(var(--opencx-muted-foreground) / .75)}.text-primary{color:hsl(var(--opencx-primary))}.text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-95{opacity:.95}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-8{outline-width:8px}.outline-background{outline-color:hsl(var(--opencx-background))}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.duration-200{animation-duration:.2s}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}.\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}.\\[field-sizing\\:content\\;\\],.\\[field-sizing\\:content\\]{field-sizing:content}.\\[word-break\\:break-word\\]{word-break:break-word}.required:after{content:" *";color:red}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}.placeholder\\:text-muted-foreground\\/75::placeholder{color:hsl(var(--opencx-muted-foreground) / .75)}.focus-within\\:border-primary:focus-within{border-color:hsl(var(--opencx-primary))}.hover\\:scale-\\[var\\(--scale\\)\\]:hover{--tw-scale-x: var(--scale);--tw-scale-y: var(--scale);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:border-primary:hover{border-color:hsl(var(--opencx-primary))}.hover\\:bg-green-50\\/50:hover{background-color:#f0fdf480}.hover\\:bg-red-50\\/50:hover{background-color:#fef2f280}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.hover\\:text-green-500:hover{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.hover\\:text-primary:hover{color:hsl(var(--opencx-primary))}.hover\\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-ring:focus{--tw-ring-color: hsl(var(--opencx-ring))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:hover\\:scale-\\[calc\\(var\\(--scale\\)-0\\.02\\)\\]:hover:active{--tw-scale-x: calc(var(--scale) - .02);--tw-scale-y: calc(var(--scale) - .02);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:active\\:scale-90:active,.group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}.data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:hsl(var(--opencx-muted-foreground))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y: -48%}.prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}.prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}.rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rtl\\:text-right:where([dir=rtl],[dir=rtl] *){text-align:right}.rtl\\:placeholder\\:text-right:where([dir=rtl],[dir=rtl] *)::placeholder{text-align:right}.\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}.\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\]\\:text-muted-foreground\\/70 svg{color:hsl(var(--opencx-muted-foreground) / .7)}.\\[\\&_svg\\]\\:hover\\:text-primary:hover svg{color:hsl(var(--opencx-primary))}',Pt=X.Provider,At=X.Root,Wt=X.Trigger,ot=R.forwardRef(({className:t,sideOffset:o=4,...s},r)=>e.jsx(X.Content,{ref:r,sideOffset:o,className:c("z-50 overflow-hidden max-w-xs rounded-xl bg-primary border text-primary-foreground p-2 text-center align-middle text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...s}));ot.displayName=X.Content.displayName;function Y({children:t,content:o,side:s,align:r}){return o?e.jsxs(At,{children:[e.jsx(Wt,{asChild:!0,children:t}),e.jsx(ot,{side:s,align:r,collisionPadding:8,avoidCollisions:!0,children:o})]}):t}const Fe=450;function F(){const[t,o]=m.useState(()=>(window.top||window).innerWidth<Fe);return m.useEffect(()=>{const s=window.top||window,r=()=>{o(s.innerWidth<Fe)};return r(),s.addEventListener("resize",r),()=>{s.removeEventListener("resize",r)}},[]),{isSmallScreen:t}}const J={transitionTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",transitionDuration:"1000ms"};function V(){var i,d,p,z,b,N,h,x,v,y,I,S,T,D,O,P,A,E,f,j,_,q,G,we,fe,xe,ve,be,ye,je,ke,Ce,ze,Se,Ne,_e,Ie,Te,Me,Ee,Re,De,Oe,Pe,Ae;const{isSmallScreen:t}=F(),{theme:o}=l.useConfig(),s=(pt,ht)=>t?`100dv${pt}`:ht,r={zIndex:((i=o==null?void 0:o.widgetTrigger)==null?void 0:i.zIndex)??1e7,offset:{bottom:((p=(d=o==null?void 0:o.widgetTrigger)==null?void 0:d.offset)==null?void 0:p.bottom)??20,right:((b=(z=o==null?void 0:o.widgetTrigger)==null?void 0:z.offset)==null?void 0:b.right)??20},size:{button:((h=(N=o==null?void 0:o.widgetTrigger)==null?void 0:N.size)==null?void 0:h.button)??48,icon:((v=(x=o==null?void 0:o.widgetTrigger)==null?void 0:x.size)==null?void 0:v.icon)??24}},n={palette:(o==null?void 0:o.palette)??"stone",primaryColor:(o==null?void 0:o.primaryColor)??"hsl(0 0% 9%)",widgetTrigger:r,widgetContentContainer:{borderRadius:t?"0px":((y=o==null?void 0:o.widgetContentContainer)==null?void 0:y.borderRadius)??"32px",zIndex:((I=o==null?void 0:o.widgetContentContainer)==null?void 0:I.zIndex)??r.zIndex+1,outline:((S=o==null?void 0:o.widgetContentContainer)==null?void 0:S.outline)??"none",outlineColor:((T=o==null?void 0:o.widgetContentContainer)==null?void 0:T.outlineColor)??"hsl(0 0% 50% / .5)",boxShadow:((D=o==null?void 0:o.widgetContentContainer)==null?void 0:D.boxShadow)??"0 0px 100px 0px rgb(0 0 0 / 0.25)",transitionProperty:((O=o==null?void 0:o.widgetContentContainer)==null?void 0:O.transitionProperty)??"all",transitionTimingFunction:((P=o==null?void 0:o.widgetContentContainer)==null?void 0:P.transitionTimingFunction)??J.transitionTimingFunction,transitionDuration:((A=o==null?void 0:o.widgetContentContainer)==null?void 0:A.transitionDuration)??J.transitionDuration,offset:{side:t?0:r.offset.bottom+r.size.button+B.y*2+(((f=(E=o==null?void 0:o.widgetContentContainer)==null?void 0:E.offset)==null?void 0:f.side)??10),align:t?0:r.offset.right+(((_=(j=o==null?void 0:o.widgetContentContainer)==null?void 0:j.offset)==null?void 0:_.align)??0)}},screens:{welcome:{width:s("w",((G=(q=o==null?void 0:o.screens)==null?void 0:q.welcome)==null?void 0:G.width)??"400px"),minHeight:s("h",((fe=(we=o==null?void 0:o.screens)==null?void 0:we.welcome)==null?void 0:fe.minHeight)??"1px")},sessions:{width:s("w",((ve=(xe=o==null?void 0:o.screens)==null?void 0:xe.sessions)==null?void 0:ve.width)??"450px"),height:s("h",((ye=(be=o==null?void 0:o.screens)==null?void 0:be.sessions)==null?void 0:ye.height)??"600px")},chat:{width:s("w",((ke=(je=o==null?void 0:o.screens)==null?void 0:je.chat)==null?void 0:ke.width)??"525px"),height:s("h",((ze=(Ce=o==null?void 0:o.screens)==null?void 0:Ce.chat)==null?void 0:ze.height)??"700px"),withCanvas:{width:s("w",((_e=(Ne=(Se=o==null?void 0:o.screens)==null?void 0:Se.chat)==null?void 0:Ne.withCanvas)==null?void 0:_e.width)??"min(1050px, 100vw)"),height:s("h",((Me=(Te=(Ie=o==null?void 0:o.screens)==null?void 0:Ie.chat)==null?void 0:Te.withCanvas)==null?void 0:Me.height)??"min(800px, 100vh)"),transitionTimingFunction:((De=(Re=(Ee=o==null?void 0:o.screens)==null?void 0:Ee.chat)==null?void 0:Re.withCanvas)==null?void 0:De.transitionTimingFunction)??J.transitionTimingFunction,transitionDuration:((Ae=(Pe=(Oe=o==null?void 0:o.screens)==null?void 0:Oe.chat)==null?void 0:Pe.withCanvas)==null?void 0:Ae.transitionDuration)??J.transitionDuration}}}},a={maxHeight:s("h",`calc(
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./useModes-C4Sdixy0.cjs"),oa=require("./widget.ctx-RfaE5VPy.cjs"),Bn=require("./index.cjs");function mt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function _y(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function om(...e){return t=>e.forEach(n=>_y(n,t))}function an(...e){return l.reactExports.useCallback(om(...e),e)}function Cy(e,t){const n=l.reactExports.createContext(t),r=s=>{const{children:a,...o}=s,u=l.reactExports.useMemo(()=>o,Object.values(o));return l.jsxRuntimeExports.jsx(n.Provider,{value:u,children:a})};r.displayName=e+"Provider";function i(s){const a=l.reactExports.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,i]}function Ba(e,t=[]){let n=[];function r(s,a){const o=l.reactExports.createContext(a),u=n.length;n=[...n,a];const c=p=>{var y;const{scope:f,children:m,...x}=p,g=((y=f==null?void 0:f[e])==null?void 0:y[u])||o,b=l.reactExports.useMemo(()=>x,Object.values(x));return l.jsxRuntimeExports.jsx(g.Provider,{value:b,children:m})};c.displayName=s+"Provider";function d(p,f){var g;const m=((g=f==null?void 0:f[e])==null?void 0:g[u])||o,x=l.reactExports.useContext(m);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[c,d]}const i=()=>{const s=n.map(a=>l.reactExports.createContext(a));return function(o){const u=(o==null?void 0:o[e])||s;return l.reactExports.useMemo(()=>({[`__scope${e}`]:{...o,[e]:u}}),[o,u])}};return i.scopeName=e,[r,Ay(i,...t)]}function Ay(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const a=r.reduce((o,{useScope:u,scopeName:c})=>{const p=u(s)[`__scope${c}`];return{...o,...p}},{});return l.reactExports.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var ku={exports:{}},tt={};/**
2
+ * @license React
3
+ * react-dom.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var pd;function ky(){if(pd)return tt;pd=1;var e=l.reactExports;function t(u){var c="https://react.dev/errors/"+u;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)c+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+u+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(u,c,d){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:p==null?null:""+p,children:u,containerInfo:c,implementation:d}}var a=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function o(u,c){if(u==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}return tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,tt.createPortal=function(u,c){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error(t(299));return s(u,c,null,d)},tt.flushSync=function(u){var c=a.T,d=r.p;try{if(a.T=null,r.p=2,u)return u()}finally{a.T=c,r.p=d,r.d.f()}},tt.preconnect=function(u,c){typeof u=="string"&&(c?(c=c.crossOrigin,c=typeof c=="string"?c==="use-credentials"?c:"":void 0):c=null,r.d.C(u,c))},tt.prefetchDNS=function(u){typeof u=="string"&&r.d.D(u)},tt.preinit=function(u,c){if(typeof u=="string"&&c&&typeof c.as=="string"){var d=c.as,p=o(d,c.crossOrigin),f=typeof c.integrity=="string"?c.integrity:void 0,m=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;d==="style"?r.d.S(u,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:p,integrity:f,fetchPriority:m}):d==="script"&&r.d.X(u,{crossOrigin:p,integrity:f,fetchPriority:m,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},tt.preinitModule=function(u,c){if(typeof u=="string")if(typeof c=="object"&&c!==null){if(c.as==null||c.as==="script"){var d=o(c.as,c.crossOrigin);r.d.M(u,{crossOrigin:d,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0})}}else c==null&&r.d.M(u)},tt.preload=function(u,c){if(typeof u=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){var d=c.as,p=o(d,c.crossOrigin);r.d.L(u,d,{crossOrigin:p,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0,type:typeof c.type=="string"?c.type:void 0,fetchPriority:typeof c.fetchPriority=="string"?c.fetchPriority:void 0,referrerPolicy:typeof c.referrerPolicy=="string"?c.referrerPolicy:void 0,imageSrcSet:typeof c.imageSrcSet=="string"?c.imageSrcSet:void 0,imageSizes:typeof c.imageSizes=="string"?c.imageSizes:void 0,media:typeof c.media=="string"?c.media:void 0})}},tt.preloadModule=function(u,c){if(typeof u=="string")if(c){var d=o(c.as,c.crossOrigin);r.d.m(u,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:d,integrity:typeof c.integrity=="string"?c.integrity:void 0})}else r.d.m(u)},tt.requestFormReset=function(u){r.d.r(u)},tt.unstable_batchedUpdates=function(u,c){return u(c)},tt.useFormState=function(u,c,d){return a.H.useFormState(u,c,d)},tt.useFormStatus=function(){return a.H.useHostTransitionStatus()},tt.version="19.0.0",tt}var nt={};/**
10
+ * @license React
11
+ * react-dom.development.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var fd;function Sy(){return fd||(fd=1,process.env.NODE_ENV!=="production"&&function(){function e(){}function t(p){return""+p}function n(p,f,m){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(x);var g=!1}catch{g=!0}return g&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&x[Symbol.toStringTag]||x.constructor.name||"Object"),t(x)),{$$typeof:c,key:x==null?null:""+x,children:p,containerInfo:f,implementation:m}}function r(p,f){if(p==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}function i(p){return p===null?"`null`":p===void 0?"`undefined`":p===""?"an empty string":'something with type "'+typeof p+'"'}function s(p){return p===null?"`null`":p===void 0?"`undefined`":p===""?"an empty string":typeof p=="string"?JSON.stringify(p):typeof p=="number"?"`"+p+"`":'something with type "'+typeof p+'"'}function a(){var p=d.H;return p===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
18
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
19
+ 2. You might be breaking the Rules of Hooks
20
+ 3. You might have more than one copy of React in the same app
21
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),p}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=l.reactExports,u={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},c=Symbol.for("react.portal"),d=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),nt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,nt.createPortal=function(p,f){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error("Target container is not a DOM element.");return n(p,f,null,m)},nt.flushSync=function(p){var f=d.T,m=u.p;try{if(d.T=null,u.p=2,p)return p()}finally{d.T=f,u.p=m,u.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},nt.preconnect=function(p,f){typeof p=="string"&&p?f!=null&&typeof f!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",s(f)):f!=null&&typeof f.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",i(f.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",i(p)),typeof p=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,u.d.C(p,f))},nt.prefetchDNS=function(p){if(typeof p!="string"||!p)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",i(p));else if(1<arguments.length){var f=arguments[1];typeof f=="object"&&f.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",s(f)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",s(f))}typeof p=="string"&&u.d.D(p)},nt.preinit=function(p,f){if(typeof p=="string"&&p?f==null||typeof f!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",s(f)):f.as!=="style"&&f.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',s(f.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",i(p)),typeof p=="string"&&f&&typeof f.as=="string"){var m=f.as,x=r(m,f.crossOrigin),g=typeof f.integrity=="string"?f.integrity:void 0,b=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;m==="style"?u.d.S(p,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:x,integrity:g,fetchPriority:b}):m==="script"&&u.d.X(p,{crossOrigin:x,integrity:g,fetchPriority:b,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},nt.preinitModule=function(p,f){var m="";if(typeof p=="string"&&p||(m+=" The `href` argument encountered was "+i(p)+"."),f!==void 0&&typeof f!="object"?m+=" The `options` argument encountered was "+i(f)+".":f&&"as"in f&&f.as!=="script"&&(m+=" The `as` option encountered was "+s(f.as)+"."),m)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",m);else switch(m=f&&typeof f.as=="string"?f.as:"script",m){case"script":break;default:m=s(m),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',m,p)}typeof p=="string"&&(typeof f=="object"&&f!==null?(f.as==null||f.as==="script")&&(m=r(f.as,f.crossOrigin),u.d.M(p,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})):f==null&&u.d.M(p))},nt.preload=function(p,f){var m="";if(typeof p=="string"&&p||(m+=" The `href` argument encountered was "+i(p)+"."),f==null||typeof f!="object"?m+=" The `options` argument encountered was "+i(f)+".":typeof f.as=="string"&&f.as||(m+=" The `as` option encountered was "+i(f.as)+"."),m&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',m),typeof p=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){m=f.as;var x=r(m,f.crossOrigin);u.d.L(p,m,{crossOrigin:x,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},nt.preloadModule=function(p,f){var m="";typeof p=="string"&&p||(m+=" The `href` argument encountered was "+i(p)+"."),f!==void 0&&typeof f!="object"?m+=" The `options` argument encountered was "+i(f)+".":f&&"as"in f&&typeof f.as!="string"&&(m+=" The `as` option encountered was "+i(f.as)+"."),m&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',m),typeof p=="string"&&(f?(m=r(f.as,f.crossOrigin),u.d.m(p,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0})):u.d.m(p))},nt.requestFormReset=function(p){u.d.r(p)},nt.unstable_batchedUpdates=function(p,f){return p(f)},nt.useFormState=function(p,f,m){return a().useFormState(p,f,m)},nt.useFormStatus=function(){return a().useHostTransitionStatus()},nt.version="19.0.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),nt}function um(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(um)}catch(e){console.error(e)}}}process.env.NODE_ENV==="production"?(um(),ku.exports=ky()):ku.exports=Sy();var Wr=ku.exports,Ha=l.reactExports.forwardRef((e,t)=>{const{children:n,...r}=e,i=l.reactExports.Children.toArray(n),s=i.find(Ry);if(s){const a=s.props.children,o=i.map(u=>u===s?l.reactExports.Children.count(a)>1?l.reactExports.Children.only(null):l.reactExports.isValidElement(a)?a.props.children:null:u);return l.jsxRuntimeExports.jsx(Su,{...r,ref:t,children:l.reactExports.isValidElement(a)?l.reactExports.cloneElement(a,void 0,o):null})}return l.jsxRuntimeExports.jsx(Su,{...r,ref:t,children:n})});Ha.displayName="Slot";var Su=l.reactExports.forwardRef((e,t)=>{const{children:n,...r}=e;if(l.reactExports.isValidElement(n)){const i=Iy(n);return l.reactExports.cloneElement(n,{...Ny(r,n.props),ref:t?om(t,i):i})}return l.reactExports.Children.count(n)>1?l.reactExports.Children.only(null):null});Su.displayName="SlotClone";var cm=({children:e})=>l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e});function Ry(e){return l.reactExports.isValidElement(e)&&e.type===cm}function Ny(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...o)=>{s(...o),i(...o)}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function Iy(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Oy=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],At=Oy.reduce((e,t)=>{const n=l.reactExports.forwardRef((r,i)=>{const{asChild:s,...a}=r,o=s?Ha:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsxRuntimeExports.jsx(o,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Py(e,t){e&&Wr.flushSync(()=>e.dispatchEvent(t))}function _t(e){const t=l.reactExports.useRef(e);return l.reactExports.useEffect(()=>{t.current=e}),l.reactExports.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function lm(e,t=globalThis==null?void 0:globalThis.document){const n=_t(e);l.reactExports.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Dy="DismissableLayer",Ru="dismissableLayer.update",Ly="dismissableLayer.pointerDownOutside",My="dismissableLayer.focusOutside",hd,dm=l.reactExports.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Oc=l.reactExports.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:o,...u}=e,c=l.reactExports.useContext(dm),[d,p]=l.reactExports.useState(null),f=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=l.reactExports.useState({}),x=an(t,O=>p(O)),g=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(b),w=d?g.indexOf(d):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,k=w>=y,C=By(O=>{const D=O.target,j=[...c.branches].some(N=>N.contains(D));!k||j||(i==null||i(O),a==null||a(O),O.defaultPrevented||o==null||o())},f),R=Hy(O=>{const D=O.target;[...c.branches].some(N=>N.contains(D))||(s==null||s(O),a==null||a(O),O.defaultPrevented||o==null||o())},f);return lm(O=>{w===c.layers.size-1&&(r==null||r(O),!O.defaultPrevented&&o&&(O.preventDefault(),o()))},f),l.reactExports.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(hd=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),md(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=hd)}},[d,f,n,c]),l.reactExports.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),md())},[d,c]),l.reactExports.useEffect(()=>{const O=()=>m({});return document.addEventListener(Ru,O),()=>document.removeEventListener(Ru,O)},[]),l.jsxRuntimeExports.jsx(At.div,{...u,ref:x,style:{pointerEvents:v?k?"auto":"none":void 0,...e.style},onFocusCapture:mt(e.onFocusCapture,R.onFocusCapture),onBlurCapture:mt(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:mt(e.onPointerDownCapture,C.onPointerDownCapture)})});Oc.displayName=Dy;var jy="DismissableLayerBranch",Fy=l.reactExports.forwardRef((e,t)=>{const n=l.reactExports.useContext(dm),r=l.reactExports.useRef(null),i=an(t,r);return l.reactExports.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsxRuntimeExports.jsx(At.div,{...e,ref:i})});Fy.displayName=jy;function By(e,t=globalThis==null?void 0:globalThis.document){const n=_t(e),r=l.reactExports.useRef(!1),i=l.reactExports.useRef(()=>{});return l.reactExports.useEffect(()=>{const s=o=>{if(o.target&&!r.current){let u=function(){pm(Ly,n,c,{discrete:!0})};const c={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}else t.removeEventListener("click",i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Hy(e,t=globalThis==null?void 0:globalThis.document){const n=_t(e),r=l.reactExports.useRef(!1);return l.reactExports.useEffect(()=>{const i=s=>{s.target&&!r.current&&pm(My,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function md(){const e=new CustomEvent(Ru);document.dispatchEvent(e)}function pm(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Py(i,s):i.dispatchEvent(s)}var Co=0;function fm(){l.reactExports.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??gd()),document.body.insertAdjacentElement("beforeend",e[1]??gd()),Co++,()=>{Co===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Co--}},[])}function gd(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ao="focusScope.autoFocusOnMount",ko="focusScope.autoFocusOnUnmount",xd={bubbles:!1,cancelable:!0},Uy="FocusScope",hm=l.reactExports.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...a}=e,[o,u]=l.reactExports.useState(null),c=_t(i),d=_t(s),p=l.reactExports.useRef(null),f=an(t,g=>u(g)),m=l.reactExports.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.reactExports.useEffect(()=>{if(r){let g=function(v){if(m.paused||!o)return;const k=v.target;o.contains(k)?p.current=k:In(p.current,{select:!0})},b=function(v){if(m.paused||!o)return;const k=v.relatedTarget;k!==null&&(o.contains(k)||In(p.current,{select:!0}))},y=function(v){if(document.activeElement===document.body)for(const C of v)C.removedNodes.length>0&&In(o)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const w=new MutationObserver(y);return o&&w.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),w.disconnect()}}},[r,o,m.paused]),l.reactExports.useEffect(()=>{if(o){yd.add(m);const g=document.activeElement;if(!o.contains(g)){const y=new CustomEvent(Ao,xd);o.addEventListener(Ao,c),o.dispatchEvent(y),y.defaultPrevented||(zy(qy(mm(o)),{select:!0}),document.activeElement===g&&In(o))}return()=>{o.removeEventListener(Ao,c),setTimeout(()=>{const y=new CustomEvent(ko,xd);o.addEventListener(ko,d),o.dispatchEvent(y),y.defaultPrevented||In(g??document.body,{select:!0}),o.removeEventListener(ko,d),yd.remove(m)},0)}}},[o,c,d,m]);const x=l.reactExports.useCallback(g=>{if(!n&&!r||m.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(b&&y){const w=g.currentTarget,[v,k]=Vy(w);v&&k?!g.shiftKey&&y===k?(g.preventDefault(),n&&In(v,{select:!0})):g.shiftKey&&y===v&&(g.preventDefault(),n&&In(k,{select:!0})):y===w&&g.preventDefault()}},[n,r,m.paused]);return l.jsxRuntimeExports.jsx(At.div,{tabIndex:-1,...a,ref:f,onKeyDown:x})});hm.displayName=Uy;function zy(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(In(r,{select:t}),document.activeElement!==n)return}function Vy(e){const t=mm(e),n=bd(t,e),r=bd(t.reverse(),e);return[n,r]}function mm(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function bd(e,t){for(const n of e)if(!$y(n,{upTo:t}))return n}function $y(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Wy(e){return e instanceof HTMLInputElement&&"select"in e}function In(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Wy(e)&&t&&e.select()}}var yd=Yy();function Yy(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ed(e,t),e.unshift(t)},remove(t){var n;e=Ed(e,t),(n=e[0])==null||n.resume()}}}function Ed(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function qy(e){return e.filter(t=>t.tagName!=="A")}var tn=globalThis!=null&&globalThis.document?l.reactExports.useLayoutEffect:()=>{},Gy=l.React.useId||(()=>{}),Ky=0;function Ri(e){const[t,n]=l.reactExports.useState(Gy());return tn(()=>{e||n(r=>r??String(Ky++))},[e]),e||(t?`radix-${t}`:"")}const Xy=["top","right","bottom","left"],Hn=Math.min,vt=Math.max,ua=Math.round,ks=Math.floor,Un=e=>({x:e,y:e}),Zy={left:"right",right:"left",bottom:"top",top:"bottom"},Qy={start:"end",end:"start"};function Nu(e,t,n){return vt(e,Hn(t,n))}function Tn(e,t){return typeof e=="function"?e(t):e}function wn(e){return e.split("-")[0]}function si(e){return e.split("-")[1]}function Pc(e){return e==="x"?"y":"x"}function Dc(e){return e==="y"?"height":"width"}function zn(e){return["top","bottom"].includes(wn(e))?"y":"x"}function Lc(e){return Pc(zn(e))}function Jy(e,t,n){n===void 0&&(n=!1);const r=si(e),i=Lc(e),s=Dc(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=ca(a)),[a,ca(a)]}function eE(e){const t=ca(e);return[Iu(e),t,Iu(t)]}function Iu(e){return e.replace(/start|end/g,t=>Qy[t])}function tE(e,t,n){const r=["left","right"],i=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?s:a;default:return[]}}function nE(e,t,n,r){const i=si(e);let s=tE(wn(e),n==="start",r);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(Iu)))),s}function ca(e){return e.replace(/left|right|bottom|top/g,t=>Zy[t])}function rE(e){return{top:0,right:0,bottom:0,left:0,...e}}function gm(e){return typeof e!="number"?rE(e):{top:e,right:e,bottom:e,left:e}}function la(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function vd(e,t,n){let{reference:r,floating:i}=e;const s=zn(t),a=Lc(t),o=Dc(a),u=wn(t),c=s==="y",d=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,f=r[o]/2-i[o]/2;let m;switch(u){case"top":m={x:d,y:r.y-i.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:p};break;case"left":m={x:r.x-i.width,y:p};break;default:m={x:r.x,y:r.y}}switch(si(t)){case"start":m[a]-=f*(n&&c?-1:1);break;case"end":m[a]+=f*(n&&c?-1:1);break}return m}const iE=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,o=s.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:p}=vd(c,r,u),f=r,m={},x=0;for(let g=0;g<o.length;g++){const{name:b,fn:y}=o[g],{x:w,y:v,data:k,reset:C}=await y({x:d,y:p,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});d=w??d,p=v??p,m={...m,[b]:{...m[b],...k}},C&&x<=50&&(x++,typeof C=="object"&&(C.placement&&(f=C.placement),C.rects&&(c=C.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):C.rects),{x:d,y:p}=vd(c,f,u)),g=-1)}return{x:d,y:p,placement:f,strategy:i,middlewareData:m}};async function Ui(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:a,elements:o,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:f=!1,padding:m=0}=Tn(t,e),x=gm(m),b=o[f?p==="floating"?"reference":"floating":p],y=la(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(o.floating)),boundary:c,rootBoundary:d,strategy:u})),w=p==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(o.floating)),k=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},C=la(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:w,offsetParent:v,strategy:u}):w);return{top:(y.top-C.top+x.top)/k.y,bottom:(C.bottom-y.bottom+x.bottom)/k.y,left:(y.left-C.left+x.left)/k.x,right:(C.right-y.right+x.right)/k.x}}const sE=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:a,elements:o,middlewareData:u}=t,{element:c,padding:d=0}=Tn(e,t)||{};if(c==null)return{};const p=gm(d),f={x:n,y:r},m=Lc(i),x=Dc(m),g=await a.getDimensions(c),b=m==="y",y=b?"top":"left",w=b?"bottom":"right",v=b?"clientHeight":"clientWidth",k=s.reference[x]+s.reference[m]-f[m]-s.floating[x],C=f[m]-s.reference[m],R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let O=R?R[v]:0;(!O||!await(a.isElement==null?void 0:a.isElement(R)))&&(O=o.floating[v]||s.floating[x]);const D=k/2-C/2,j=O/2-g[x]/2-1,N=Hn(p[y],j),B=Hn(p[w],j),M=N,ee=O-g[x]-B,Y=O/2-g[x]/2+D,K=Nu(M,Y,ee),ne=!u.arrow&&si(i)!=null&&Y!==K&&s.reference[x]/2-(Y<M?N:B)-g[x]/2<0,X=ne?Y<M?Y-M:Y-ee:0;return{[m]:f[m]+X,data:{[m]:K,centerOffset:Y-K-X,...ne&&{alignmentOffset:X}},reset:ne}}}),aE=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:a,initialPlacement:o,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:g=!0,...b}=Tn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=wn(i),w=zn(o),v=wn(o)===o,k=await(u.isRTL==null?void 0:u.isRTL(c.floating)),C=f||(v||!g?[ca(o)]:eE(o)),R=x!=="none";!f&&R&&C.push(...nE(o,g,x,k));const O=[o,...C],D=await Ui(t,b),j=[];let N=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&j.push(D[y]),p){const Y=Jy(i,a,k);j.push(D[Y[0]],D[Y[1]])}if(N=[...N,{placement:i,overflows:j}],!j.every(Y=>Y<=0)){var B,M;const Y=(((B=s.flip)==null?void 0:B.index)||0)+1,K=O[Y];if(K)return{data:{index:Y,overflows:N},reset:{placement:K}};let ne=(M=N.filter(X=>X.overflows[0]<=0).sort((X,Z)=>X.overflows[1]-Z.overflows[1])[0])==null?void 0:M.placement;if(!ne)switch(m){case"bestFit":{var ee;const X=(ee=N.filter(Z=>{if(R){const ie=zn(Z.placement);return ie===w||ie==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(ie=>ie>0).reduce((ie,E)=>ie+E,0)]).sort((Z,ie)=>Z[1]-ie[1])[0])==null?void 0:ee[0];X&&(ne=X);break}case"initialPlacement":ne=o;break}if(i!==ne)return{reset:{placement:ne}}}return{}}}};function Td(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function wd(e){return Xy.some(t=>e[t]>=0)}const oE=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Tn(e,t);switch(r){case"referenceHidden":{const s=await Ui(t,{...i,elementContext:"reference"}),a=Td(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:wd(a)}}}case"escaped":{const s=await Ui(t,{...i,altBoundary:!0}),a=Td(s,n.floating);return{data:{escapedOffsets:a,escaped:wd(a)}}}default:return{}}}}};async function uE(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=wn(n),o=si(n),u=zn(n)==="y",c=["left","top"].includes(a)?-1:1,d=s&&u?-1:1,p=Tn(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return o&&typeof x=="number"&&(m=o==="end"?x*-1:x),u?{x:m*d,y:f*c}:{x:f*c,y:m*d}}const cE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:a,middlewareData:o}=t,u=await uE(t,e);return a===((n=o.offset)==null?void 0:n.placement)&&(r=o.arrow)!=null&&r.alignmentOffset?{}:{x:i+u.x,y:s+u.y,data:{...u,placement:a}}}}},lE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:o={fn:b=>{let{x:y,y:w}=b;return{x:y,y:w}}},...u}=Tn(e,t),c={x:n,y:r},d=await Ui(t,u),p=zn(wn(i)),f=Pc(p);let m=c[f],x=c[p];if(s){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",w=m+d[b],v=m-d[y];m=Nu(w,m,v)}if(a){const b=p==="y"?"top":"left",y=p==="y"?"bottom":"right",w=x+d[b],v=x-d[y];x=Nu(w,x,v)}const g=o.fn({...t,[f]:m,[p]:x});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[f]:s,[p]:a}}}}}},dE=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:a}=t,{offset:o=0,mainAxis:u=!0,crossAxis:c=!0}=Tn(e,t),d={x:n,y:r},p=zn(i),f=Pc(p);let m=d[f],x=d[p];const g=Tn(o,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){const v=f==="y"?"height":"width",k=s.reference[f]-s.floating[v]+b.mainAxis,C=s.reference[f]+s.reference[v]-b.mainAxis;m<k?m=k:m>C&&(m=C)}if(c){var y,w;const v=f==="y"?"width":"height",k=["top","left"].includes(wn(i)),C=s.reference[p]-s.floating[v]+(k&&((y=a.offset)==null?void 0:y[p])||0)+(k?0:b.crossAxis),R=s.reference[p]+s.reference[v]+(k?0:((w=a.offset)==null?void 0:w[p])||0)-(k?b.crossAxis:0);x<C?x=C:x>R&&(x=R)}return{[f]:m,[p]:x}}}},pE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:a,elements:o}=t,{apply:u=()=>{},...c}=Tn(e,t),d=await Ui(t,c),p=wn(i),f=si(i),m=zn(i)==="y",{width:x,height:g}=s.floating;let b,y;p==="top"||p==="bottom"?(b=p,y=f===(await(a.isRTL==null?void 0:a.isRTL(o.floating))?"start":"end")?"left":"right"):(y=p,b=f==="end"?"top":"bottom");const w=g-d.top-d.bottom,v=x-d.left-d.right,k=Hn(g-d[b],w),C=Hn(x-d[y],v),R=!t.middlewareData.shift;let O=k,D=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(D=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(O=w),R&&!f){const N=vt(d.left,0),B=vt(d.right,0),M=vt(d.top,0),ee=vt(d.bottom,0);m?D=x-2*(N!==0||B!==0?N+B:vt(d.left,d.right)):O=g-2*(M!==0||ee!==0?M+ee:vt(d.top,d.bottom))}await u({...t,availableWidth:D,availableHeight:O});const j=await a.getDimensions(o.floating);return x!==j.width||g!==j.height?{reset:{rects:!0}}:{}}}};function Ua(){return typeof window<"u"}function ai(e){return xm(e)?(e.nodeName||"").toLowerCase():"#document"}function Tt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function on(e){var t;return(t=(xm(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xm(e){return Ua()?e instanceof Node||e instanceof Tt(e).Node:!1}function zt(e){return Ua()?e instanceof Element||e instanceof Tt(e).Element:!1}function nn(e){return Ua()?e instanceof HTMLElement||e instanceof Tt(e).HTMLElement:!1}function _d(e){return!Ua()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Tt(e).ShadowRoot}function hs(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Vt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function fE(e){return["table","td","th"].includes(ai(e))}function za(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Mc(e){const t=jc(),n=zt(e)?Vt(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function hE(e){let t=Vn(e);for(;nn(t)&&!Yr(t);){if(Mc(t))return t;if(za(t))return null;t=Vn(t)}return null}function jc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Yr(e){return["html","body","#document"].includes(ai(e))}function Vt(e){return Tt(e).getComputedStyle(e)}function Va(e){return zt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vn(e){if(ai(e)==="html")return e;const t=e.assignedSlot||e.parentNode||_d(e)&&e.host||on(e);return _d(t)?t.host:t}function bm(e){const t=Vn(e);return Yr(t)?e.ownerDocument?e.ownerDocument.body:e.body:nn(t)&&hs(t)?t:bm(t)}function zi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=bm(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=Tt(i);if(s){const o=Ou(a);return t.concat(a,a.visualViewport||[],hs(i)?i:[],o&&n?zi(o):[])}return t.concat(i,zi(i,[],n))}function Ou(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ym(e){const t=Vt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=nn(e),s=i?e.offsetWidth:n,a=i?e.offsetHeight:r,o=ua(n)!==s||ua(r)!==a;return o&&(n=s,r=a),{width:n,height:r,$:o}}function Fc(e){return zt(e)?e:e.contextElement}function Br(e){const t=Fc(e);if(!nn(t))return Un(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=ym(t);let a=(s?ua(n.width):n.width)/r,o=(s?ua(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!o||!Number.isFinite(o))&&(o=1),{x:a,y:o}}const mE=Un(0);function Em(e){const t=Tt(e);return!jc()||!t.visualViewport?mE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function gE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Tt(e)?!1:t}function mr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=Fc(e);let a=Un(1);t&&(r?zt(r)&&(a=Br(r)):a=Br(e));const o=gE(s,n,r)?Em(s):Un(0);let u=(i.left+o.x)/a.x,c=(i.top+o.y)/a.y,d=i.width/a.x,p=i.height/a.y;if(s){const f=Tt(s),m=r&&zt(r)?Tt(r):r;let x=f,g=Ou(x);for(;g&&r&&m!==x;){const b=Br(g),y=g.getBoundingClientRect(),w=Vt(g),v=y.left+(g.clientLeft+parseFloat(w.paddingLeft))*b.x,k=y.top+(g.clientTop+parseFloat(w.paddingTop))*b.y;u*=b.x,c*=b.y,d*=b.x,p*=b.y,u+=v,c+=k,x=Tt(g),g=Ou(x)}}return la({width:d,height:p,x:u,y:c})}function xE(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",a=on(r),o=t?za(t.floating):!1;if(r===a||o&&s)return n;let u={scrollLeft:0,scrollTop:0},c=Un(1);const d=Un(0),p=nn(r);if((p||!p&&!s)&&((ai(r)!=="body"||hs(a))&&(u=Va(r)),nn(r))){const f=mr(r);c=Br(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x,y:n.y*c.y-u.scrollTop*c.y+d.y}}function bE(e){return Array.from(e.getClientRects())}function Pu(e,t){const n=Va(e).scrollLeft;return t?t.left+n:mr(on(e)).left+n}function yE(e){const t=on(e),n=Va(e),r=e.ownerDocument.body,i=vt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=vt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Pu(e);const o=-n.scrollTop;return Vt(r).direction==="rtl"&&(a+=vt(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:o}}function EE(e,t){const n=Tt(e),r=on(e),i=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,o=0,u=0;if(i){s=i.width,a=i.height;const c=jc();(!c||c&&t==="fixed")&&(o=i.offsetLeft,u=i.offsetTop)}return{width:s,height:a,x:o,y:u}}function vE(e,t){const n=mr(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=nn(e)?Br(e):Un(1),a=e.clientWidth*s.x,o=e.clientHeight*s.y,u=i*s.x,c=r*s.y;return{width:a,height:o,x:u,y:c}}function Cd(e,t,n){let r;if(t==="viewport")r=EE(e,n);else if(t==="document")r=yE(on(e));else if(zt(t))r=vE(t,n);else{const i=Em(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return la(r)}function vm(e,t){const n=Vn(e);return n===t||!zt(n)||Yr(n)?!1:Vt(n).position==="fixed"||vm(n,t)}function TE(e,t){const n=t.get(e);if(n)return n;let r=zi(e,[],!1).filter(o=>zt(o)&&ai(o)!=="body"),i=null;const s=Vt(e).position==="fixed";let a=s?Vn(e):e;for(;zt(a)&&!Yr(a);){const o=Vt(a),u=Mc(a);!u&&o.position==="fixed"&&(i=null),(s?!u&&!i:!u&&o.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||hs(a)&&!u&&vm(e,a))?r=r.filter(d=>d!==a):i=o,a=Vn(a)}return t.set(e,r),r}function wE(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?za(t)?[]:TE(t,this._c):[].concat(n),r],o=a[0],u=a.reduce((c,d)=>{const p=Cd(t,d,i);return c.top=vt(p.top,c.top),c.right=Hn(p.right,c.right),c.bottom=Hn(p.bottom,c.bottom),c.left=vt(p.left,c.left),c},Cd(t,o,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function _E(e){const{width:t,height:n}=ym(e);return{width:t,height:n}}function CE(e,t,n){const r=nn(t),i=on(t),s=n==="fixed",a=mr(e,!0,s,t);let o={scrollLeft:0,scrollTop:0};const u=Un(0);if(r||!r&&!s)if((ai(t)!=="body"||hs(i))&&(o=Va(t)),r){const m=mr(t,!0,s,t);u.x=m.x+t.clientLeft,u.y=m.y+t.clientTop}else i&&(u.x=Pu(i));let c=0,d=0;if(i&&!r&&!s){const m=i.getBoundingClientRect();d=m.top+o.scrollTop,c=m.left+o.scrollLeft-Pu(i,m)}const p=a.left+o.scrollLeft-u.x-c,f=a.top+o.scrollTop-u.y-d;return{x:p,y:f,width:a.width,height:a.height}}function So(e){return Vt(e).position==="static"}function Ad(e,t){if(!nn(e)||Vt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return on(e)===n&&(n=n.ownerDocument.body),n}function Tm(e,t){const n=Tt(e);if(za(e))return n;if(!nn(e)){let i=Vn(e);for(;i&&!Yr(i);){if(zt(i)&&!So(i))return i;i=Vn(i)}return n}let r=Ad(e,t);for(;r&&fE(r)&&So(r);)r=Ad(r,t);return r&&Yr(r)&&So(r)&&!Mc(r)?n:r||hE(e)||n}const AE=async function(e){const t=this.getOffsetParent||Tm,n=this.getDimensions,r=await n(e.floating);return{reference:CE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function kE(e){return Vt(e).direction==="rtl"}const SE={convertOffsetParentRelativeRectToViewportRelativeRect:xE,getDocumentElement:on,getClippingRect:wE,getOffsetParent:Tm,getElementRects:AE,getClientRects:bE,getDimensions:_E,getScale:Br,isElement:zt,isRTL:kE};function RE(e,t){let n=null,r;const i=on(e);function s(){var o;clearTimeout(r),(o=n)==null||o.disconnect(),n=null}function a(o,u){o===void 0&&(o=!1),u===void 0&&(u=1),s();const{left:c,top:d,width:p,height:f}=e.getBoundingClientRect();if(o||t(),!p||!f)return;const m=ks(d),x=ks(i.clientWidth-(c+p)),g=ks(i.clientHeight-(d+f)),b=ks(c),w={rootMargin:-m+"px "+-x+"px "+-g+"px "+-b+"px",threshold:vt(0,Hn(1,u))||1};let v=!0;function k(C){const R=C[0].intersectionRatio;if(R!==u){if(!v)return a();R?a(!1,R):r=setTimeout(()=>{a(!1,1e-7)},1e3)}v=!1}try{n=new IntersectionObserver(k,{...w,root:i.ownerDocument})}catch{n=new IntersectionObserver(k,w)}n.observe(e)}return a(!0),s}function NE(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,c=Fc(e),d=i||s?[...c?zi(c):[],...zi(t)]:[];d.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const p=c&&o?RE(c,n):null;let f=-1,m=null;a&&(m=new ResizeObserver(y=>{let[w]=y;w&&w.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var v;(v=m)==null||v.observe(t)})),n()}),c&&!u&&m.observe(c),m.observe(t));let x,g=u?mr(e):null;u&&b();function b(){const y=mr(e);g&&(y.x!==g.x||y.y!==g.y||y.width!==g.width||y.height!==g.height)&&n(),g=y,x=requestAnimationFrame(b)}return n(),()=>{var y;d.forEach(w=>{i&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),p==null||p(),(y=m)==null||y.disconnect(),m=null,u&&cancelAnimationFrame(x)}}const IE=cE,OE=lE,PE=aE,DE=pE,LE=oE,kd=sE,ME=dE,jE=(e,t,n)=>{const r=new Map,i={platform:SE,...n},s={...i.platform,_c:r};return iE(e,t,{...i,platform:s})};var Gs=typeof document<"u"?l.reactExports.useLayoutEffect:l.reactExports.useEffect;function da(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!da(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!da(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function wm(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Sd(e,t){const n=wm(e);return Math.round(t*n)/n}function Ro(e){const t=l.reactExports.useRef(e);return Gs(()=>{t.current=e}),t}function FE(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:a}={},transform:o=!0,whileElementsMounted:u,open:c}=e,[d,p]=l.reactExports.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=l.reactExports.useState(r);da(f,r)||m(r);const[x,g]=l.reactExports.useState(null),[b,y]=l.reactExports.useState(null),w=l.reactExports.useCallback(Z=>{Z!==R.current&&(R.current=Z,g(Z))},[]),v=l.reactExports.useCallback(Z=>{Z!==O.current&&(O.current=Z,y(Z))},[]),k=s||x,C=a||b,R=l.reactExports.useRef(null),O=l.reactExports.useRef(null),D=l.reactExports.useRef(d),j=u!=null,N=Ro(u),B=Ro(i),M=Ro(c),ee=l.reactExports.useCallback(()=>{if(!R.current||!O.current)return;const Z={placement:t,strategy:n,middleware:f};B.current&&(Z.platform=B.current),jE(R.current,O.current,Z).then(ie=>{const E={...ie,isPositioned:M.current!==!1};Y.current&&!da(D.current,E)&&(D.current=E,Wr.flushSync(()=>{p(E)}))})},[f,t,n,B,M]);Gs(()=>{c===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,p(Z=>({...Z,isPositioned:!1})))},[c]);const Y=l.reactExports.useRef(!1);Gs(()=>(Y.current=!0,()=>{Y.current=!1}),[]),Gs(()=>{if(k&&(R.current=k),C&&(O.current=C),k&&C){if(N.current)return N.current(k,C,ee);ee()}},[k,C,ee,N,j]);const K=l.reactExports.useMemo(()=>({reference:R,floating:O,setReference:w,setFloating:v}),[w,v]),ne=l.reactExports.useMemo(()=>({reference:k,floating:C}),[k,C]),X=l.reactExports.useMemo(()=>{const Z={position:n,left:0,top:0};if(!ne.floating)return Z;const ie=Sd(ne.floating,d.x),E=Sd(ne.floating,d.y);return o?{...Z,transform:"translate("+ie+"px, "+E+"px)",...wm(ne.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ie,top:E}},[n,o,ne.floating,d.x,d.y]);return l.reactExports.useMemo(()=>({...d,update:ee,refs:K,elements:ne,floatingStyles:X}),[d,ee,K,ne,X])}const BE=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?kd({element:r.current,padding:i}).fn(n):{}:r?kd({element:r,padding:i}).fn(n):{}}}},HE=(e,t)=>({...IE(e),options:[e,t]}),UE=(e,t)=>({...OE(e),options:[e,t]}),zE=(e,t)=>({...ME(e),options:[e,t]}),VE=(e,t)=>({...PE(e),options:[e,t]}),$E=(e,t)=>({...DE(e),options:[e,t]}),WE=(e,t)=>({...LE(e),options:[e,t]}),YE=(e,t)=>({...BE(e),options:[e,t]});var qE="Arrow",_m=l.reactExports.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...s}=e;return l.jsxRuntimeExports.jsx(At.svg,{...s,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsxRuntimeExports.jsx("polygon",{points:"0,0 30,0 15,10"})})});_m.displayName=qE;var GE=_m;function KE(e,t=[]){let n=[];function r(s,a){const o=l.reactExports.createContext(a),u=n.length;n=[...n,a];function c(p){const{scope:f,children:m,...x}=p,g=(f==null?void 0:f[e][u])||o,b=l.reactExports.useMemo(()=>x,Object.values(x));return l.jsxRuntimeExports.jsx(g.Provider,{value:b,children:m})}function d(p,f){const m=(f==null?void 0:f[e][u])||o,x=l.reactExports.useContext(m);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${s}\``)}return c.displayName=s+"Provider",[c,d]}const i=()=>{const s=n.map(a=>l.reactExports.createContext(a));return function(o){const u=(o==null?void 0:o[e])||s;return l.reactExports.useMemo(()=>({[`__scope${e}`]:{...o,[e]:u}}),[o,u])}};return i.scopeName=e,[r,XE(i,...t)]}function XE(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const a=r.reduce((o,{useScope:u,scopeName:c})=>{const p=u(s)[`__scope${c}`];return{...o,...p}},{});return l.reactExports.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function ZE(e){const[t,n]=l.reactExports.useState(void 0);return tn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let a,o;if("borderBoxSize"in s){const u=s.borderBoxSize,c=Array.isArray(u)?u[0]:u;a=c.inlineSize,o=c.blockSize}else a=e.offsetWidth,o=e.offsetHeight;n({width:a,height:o})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Bc="Popper",[Cm,$a]=KE(Bc),[QE,Am]=Cm(Bc),km=e=>{const{__scopePopper:t,children:n}=e,[r,i]=l.reactExports.useState(null);return l.jsxRuntimeExports.jsx(QE,{scope:t,anchor:r,onAnchorChange:i,children:n})};km.displayName=Bc;var Sm="PopperAnchor",Rm=l.reactExports.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,s=Am(Sm,n),a=l.reactExports.useRef(null),o=an(t,a);return l.reactExports.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:l.jsxRuntimeExports.jsx(At.div,{...i,ref:o})});Rm.displayName=Sm;var Hc="PopperContent",[JE,ev]=Cm(Hc),Nm=l.reactExports.forwardRef((e,t)=>{var le,de,be,pe,Re,W;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:s="center",alignOffset:a=0,arrowPadding:o=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:x,...g}=e,b=Am(Hc,n),[y,w]=l.reactExports.useState(null),v=an(t,He=>w(He)),[k,C]=l.reactExports.useState(null),R=ZE(k),O=(R==null?void 0:R.width)??0,D=(R==null?void 0:R.height)??0,j=r+(s!=="center"?"-"+s:""),N=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},B=Array.isArray(c)?c:[c],M=B.length>0,ee={padding:N,boundary:B.filter(nv),altBoundary:M},{refs:Y,floatingStyles:K,placement:ne,isPositioned:X,middlewareData:Z}=FE({strategy:"fixed",placement:j,whileElementsMounted:(...He)=>NE(...He,{animationFrame:m==="always"}),elements:{reference:b.anchor},middleware:[HE({mainAxis:i+D,alignmentAxis:a}),u&&UE({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?zE():void 0,...ee}),u&&VE({...ee}),$E({...ee,apply:({elements:He,rects:ct,availableWidth:kt,availableHeight:dn})=>{const{width:Lt,height:nr}=ct.reference,St=He.floating.style;St.setProperty("--radix-popper-available-width",`${kt}px`),St.setProperty("--radix-popper-available-height",`${dn}px`),St.setProperty("--radix-popper-anchor-width",`${Lt}px`),St.setProperty("--radix-popper-anchor-height",`${nr}px`)}}),k&&YE({element:k,padding:o}),rv({arrowWidth:O,arrowHeight:D}),f&&WE({strategy:"referenceHidden",...ee})]}),[ie,E]=Pm(ne),z=_t(x);tn(()=>{X&&(z==null||z())},[X,z]);const oe=(le=Z.arrow)==null?void 0:le.x,A=(de=Z.arrow)==null?void 0:de.y,te=((be=Z.arrow)==null?void 0:be.centerOffset)!==0,[ge,J]=l.reactExports.useState();return tn(()=>{y&&J(window.getComputedStyle(y).zIndex)},[y]),l.jsxRuntimeExports.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:X?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[(pe=Z.transformOrigin)==null?void 0:pe.x,(Re=Z.transformOrigin)==null?void 0:Re.y].join(" "),...((W=Z.hide)==null?void 0:W.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsxRuntimeExports.jsx(JE,{scope:n,placedSide:ie,onArrowChange:C,arrowX:oe,arrowY:A,shouldHideArrow:te,children:l.jsxRuntimeExports.jsx(At.div,{"data-side":ie,"data-align":E,...g,ref:v,style:{...g.style,animation:X?void 0:"none"}})})})});Nm.displayName=Hc;var Im="PopperArrow",tv={top:"bottom",right:"left",bottom:"top",left:"right"},Om=l.reactExports.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,s=ev(Im,r),a=tv[s.placedSide];return l.jsxRuntimeExports.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsxRuntimeExports.jsx(GE,{...i,ref:n,style:{...i.style,display:"block"}})})});Om.displayName=Im;function nv(e){return e!==null}var rv=e=>({name:"transformOrigin",options:e,fn(t){var b,y,w;const{placement:n,rects:r,middlewareData:i}=t,a=((b=i.arrow)==null?void 0:b.centerOffset)!==0,o=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[c,d]=Pm(n),p={start:"0%",center:"50%",end:"100%"}[d],f=(((y=i.arrow)==null?void 0:y.x)??0)+o/2,m=(((w=i.arrow)==null?void 0:w.y)??0)+u/2;let x="",g="";return c==="bottom"?(x=a?p:`${f}px`,g=`${-u}px`):c==="top"?(x=a?p:`${f}px`,g=`${r.floating.height+u}px`):c==="right"?(x=`${-u}px`,g=a?p:`${m}px`):c==="left"&&(x=`${r.floating.width+u}px`,g=a?p:`${m}px`),{data:{x,y:g}}}});function Pm(e){const[t,n="center"]=e.split("-");return[t,n]}var Dm=km,Uc=Rm,Lm=Nm,Mm=Om;function iv(e,t){return l.reactExports.useReducer((n,r)=>t[n][r]??n,e)}var zc=e=>{const{present:t,children:n}=e,r=sv(t),i=typeof n=="function"?n({present:r.isPresent}):l.reactExports.Children.only(n),s=an(r.ref,av(i));return typeof n=="function"||r.isPresent?l.reactExports.cloneElement(i,{ref:s}):null};zc.displayName="Presence";function sv(e){const[t,n]=l.reactExports.useState(),r=l.reactExports.useRef({}),i=l.reactExports.useRef(e),s=l.reactExports.useRef("none"),a=e?"mounted":"unmounted",[o,u]=iv(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.reactExports.useEffect(()=>{const c=Ss(r.current);s.current=o==="mounted"?c:"none"},[o]),tn(()=>{const c=r.current,d=i.current;if(d!==e){const f=s.current,m=Ss(c);e?u("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?u("UNMOUNT"):u(d&&f!==m?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,u]),tn(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,p=m=>{const g=Ss(r.current).includes(m.animationName);if(m.target===t&&g&&(u("ANIMATION_END"),!i.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=m=>{m.target===t&&(s.current=Ss(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:l.reactExports.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Ss(e){return(e==null?void 0:e.animationName)||"none"}function av(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Vc({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=ov({defaultProp:t,onChange:n}),s=e!==void 0,a=s?e:r,o=_t(n),u=l.reactExports.useCallback(c=>{if(s){const p=typeof c=="function"?c(e):c;p!==e&&o(p)}else i(c)},[s,e,i,o]);return[a,u]}function ov({defaultProp:e,onChange:t}){const n=l.reactExports.useState(e),[r]=n,i=l.reactExports.useRef(r),s=_t(t);return l.reactExports.useEffect(()=>{i.current!==r&&(s(r),i.current=r)},[r,i,s]),n}var uv=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},_r=new WeakMap,Rs=new WeakMap,Ns={},No=0,jm=function(e){return e&&(e.host||jm(e.parentNode))},cv=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=jm(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},lv=function(e,t,n,r){var i=cv(t,Array.isArray(e)?e:[e]);Ns[n]||(Ns[n]=new WeakMap);var s=Ns[n],a=[],o=new Set,u=new Set(i),c=function(p){!p||o.has(p)||(o.add(p),c(p.parentNode))};i.forEach(c);var d=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(f){if(o.has(f))d(f);else try{var m=f.getAttribute(r),x=m!==null&&m!=="false",g=(_r.get(f)||0)+1,b=(s.get(f)||0)+1;_r.set(f,g),s.set(f,b),a.push(f),g===1&&x&&Rs.set(f,!0),b===1&&f.setAttribute(n,"true"),x||f.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",f,y)}})};return d(t),o.clear(),No++,function(){a.forEach(function(p){var f=_r.get(p)-1,m=s.get(p)-1;_r.set(p,f),s.set(p,m),f||(Rs.has(p)||p.removeAttribute(r),Rs.delete(p)),m||p.removeAttribute(n)}),No--,No||(_r=new WeakMap,_r=new WeakMap,Rs=new WeakMap,Ns={})}},Fm=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=uv(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),lv(r,i,n,"aria-hidden")):function(){return null}},Ks="right-scroll-bar-position",Xs="width-before-scroll-bar",dv="with-scroll-bars-hidden",pv="--removed-body-scroll-bar-size";function Io(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function fv(e,t){var n=l.reactExports.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var hv=typeof window<"u"?l.reactExports.useLayoutEffect:l.reactExports.useEffect,Rd=new WeakMap;function mv(e,t){var n=fv(null,function(r){return e.forEach(function(i){return Io(i,r)})});return hv(function(){var r=Rd.get(n);if(r){var i=new Set(r),s=new Set(e),a=n.current;i.forEach(function(o){s.has(o)||Io(o,null)}),s.forEach(function(o){i.has(o)||Io(o,a)})}Rd.set(n,e)},[e]),n}function gv(e){return e}function xv(e,t){t===void 0&&(t=gv);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(o){return o!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(o){return s(o)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var o=n;n=[],o.forEach(s),a=n}var u=function(){var d=a;a=[],d.forEach(s)},c=function(){return Promise.resolve().then(u)};c(),n={push:function(d){a.push(d),c()},filter:function(d){return a=a.filter(d),n}}}};return i}function Bm(e){e===void 0&&(e={});var t=xv(null);return t.options=l.__assign({async:!0,ssr:!1},e),t}var Hm=function(e){var t=e.sideCar,n=l.__rest(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return l.reactExports.createElement(r,l.__assign({},n))};Hm.isSideCarExport=!0;function Um(e,t){return e.useMedium(t),Hm}var zm=Bm(),Oo=function(){},Wa=l.reactExports.forwardRef(function(e,t){var n=l.reactExports.useRef(null),r=l.reactExports.useState({onScrollCapture:Oo,onWheelCapture:Oo,onTouchMoveCapture:Oo}),i=r[0],s=r[1],a=e.forwardProps,o=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,p=e.shards,f=e.sideCar,m=e.noIsolation,x=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,v=l.__rest(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=f,C=mv([n,t]),R=l.__assign(l.__assign({},v),i);return l.reactExports.createElement(l.reactExports.Fragment,null,d&&l.reactExports.createElement(k,{sideCar:zm,removeScrollBar:c,shards:p,noIsolation:m,inert:x,setCallbacks:s,allowPinchZoom:!!g,lockRef:n,gapMode:w}),a?l.reactExports.cloneElement(l.reactExports.Children.only(o),l.__assign(l.__assign({},R),{ref:C})):l.reactExports.createElement(y,l.__assign({},R,{className:u,ref:C}),o))});Wa.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Wa.classNames={fullWidth:Xs,zeroRight:Ks};var Vm=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function bv(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Vm();return t&&e.setAttribute("nonce",t),e}function yv(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ev(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var vv=function(){var e=0,t=null;return{add:function(n){e==0&&(t=bv())&&(yv(t,n),Ev(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Tv=function(){var e=vv();return function(t,n){l.reactExports.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},$c=function(){var e=Tv(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},wv={left:0,top:0,right:0,gap:0},Po=function(e){return parseInt(e||"",10)||0},_v=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Po(n),Po(r),Po(i)]},Cv=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return wv;var t=_v(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Av=$c(),Hr="data-scroll-locked",kv=function(e,t,n,r){var i=e.left,s=e.top,a=e.right,o=e.gap;return n===void 0&&(n="margin"),`
22
+ .`.concat(dv,` {
23
+ overflow: hidden `).concat(r,`;
24
+ padding-right: `).concat(o,"px ").concat(r,`;
25
+ }
26
+ body[`).concat(Hr,`] {
27
+ overflow: hidden `).concat(r,`;
28
+ overscroll-behavior: contain;
29
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
30
+ padding-left: `.concat(i,`px;
31
+ padding-top: `).concat(s,`px;
32
+ padding-right: `).concat(a,`px;
33
+ margin-left:0;
34
+ margin-top:0;
35
+ margin-right: `).concat(o,"px ").concat(r,`;
36
+ `),n==="padding"&&"padding-right: ".concat(o,"px ").concat(r,";")].filter(Boolean).join(""),`
37
+ }
38
+
39
+ .`).concat(Ks,` {
40
+ right: `).concat(o,"px ").concat(r,`;
41
+ }
42
+
43
+ .`).concat(Xs,` {
44
+ margin-right: `).concat(o,"px ").concat(r,`;
45
+ }
46
+
47
+ .`).concat(Ks," .").concat(Ks,` {
48
+ right: 0 `).concat(r,`;
49
+ }
50
+
51
+ .`).concat(Xs," .").concat(Xs,` {
52
+ margin-right: 0 `).concat(r,`;
53
+ }
54
+
55
+ body[`).concat(Hr,`] {
56
+ `).concat(pv,": ").concat(o,`px;
57
+ }
58
+ `)},Nd=function(){var e=parseInt(document.body.getAttribute(Hr)||"0",10);return isFinite(e)?e:0},Sv=function(){l.reactExports.useEffect(function(){return document.body.setAttribute(Hr,(Nd()+1).toString()),function(){var e=Nd()-1;e<=0?document.body.removeAttribute(Hr):document.body.setAttribute(Hr,e.toString())}},[])},Rv=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;Sv();var s=l.reactExports.useMemo(function(){return Cv(i)},[i]);return l.reactExports.createElement(Av,{styles:kv(s,!t,i,n?"":"!important")})},Du=!1;if(typeof window<"u")try{var Is=Object.defineProperty({},"passive",{get:function(){return Du=!0,!0}});window.addEventListener("test",Is,Is),window.removeEventListener("test",Is,Is)}catch{Du=!1}var Cr=Du?{passive:!1}:!1,Nv=function(e){return e.tagName==="TEXTAREA"},$m=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Nv(e)&&n[t]==="visible")},Iv=function(e){return $m(e,"overflowY")},Ov=function(e){return $m(e,"overflowX")},Id=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=Wm(e,r);if(i){var s=Ym(e,r),a=s[1],o=s[2];if(a>o)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Pv=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Dv=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Wm=function(e,t){return e==="v"?Iv(t):Ov(t)},Ym=function(e,t){return e==="v"?Pv(t):Dv(t)},Lv=function(e,t){return e==="h"&&t==="rtl"?-1:1},Mv=function(e,t,n,r,i){var s=Lv(e,window.getComputedStyle(t).direction),a=s*r,o=n.target,u=t.contains(o),c=!1,d=a>0,p=0,f=0;do{var m=Ym(e,o),x=m[0],g=m[1],b=m[2],y=g-b-s*x;(x||y)&&Wm(e,o)&&(p+=y,f+=x),o instanceof ShadowRoot?o=o.host:o=o.parentNode}while(!u&&o!==document.body||u&&(t.contains(o)||t===o));return(d&&(Math.abs(p)<1||!i)||!d&&(Math.abs(f)<1||!i))&&(c=!0),c},Os=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Od=function(e){return[e.deltaX,e.deltaY]},Pd=function(e){return e&&"current"in e?e.current:e},jv=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Fv=function(e){return`
59
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
60
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
61
+ `)},Bv=0,Ar=[];function Hv(e){var t=l.reactExports.useRef([]),n=l.reactExports.useRef([0,0]),r=l.reactExports.useRef(),i=l.reactExports.useState(Bv++)[0],s=l.reactExports.useState($c)[0],a=l.reactExports.useRef(e);l.reactExports.useEffect(function(){a.current=e},[e]),l.reactExports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var g=l.__spreadArray([e.lockRef.current],(e.shards||[]).map(Pd),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var o=l.reactExports.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!a.current.allowPinchZoom;var y=Os(g),w=n.current,v="deltaX"in g?g.deltaX:w[0]-y[0],k="deltaY"in g?g.deltaY:w[1]-y[1],C,R=g.target,O=Math.abs(v)>Math.abs(k)?"h":"v";if("touches"in g&&O==="h"&&R.type==="range")return!1;var D=Id(O,R);if(!D)return!0;if(D?C=O:(C=O==="v"?"h":"v",D=Id(O,R)),!D)return!1;if(!r.current&&"changedTouches"in g&&(v||k)&&(r.current=C),!C)return!0;var j=r.current||C;return Mv(j,b,g,j==="h"?v:k,!0)},[]),u=l.reactExports.useCallback(function(g){var b=g;if(!(!Ar.length||Ar[Ar.length-1]!==s)){var y="deltaY"in b?Od(b):Os(b),w=t.current.filter(function(C){return C.name===b.type&&(C.target===b.target||b.target===C.shadowParent)&&jv(C.delta,y)})[0];if(w&&w.should){b.cancelable&&b.preventDefault();return}if(!w){var v=(a.current.shards||[]).map(Pd).filter(Boolean).filter(function(C){return C.contains(b.target)}),k=v.length>0?o(b,v[0]):!a.current.noIsolation;k&&b.cancelable&&b.preventDefault()}}},[]),c=l.reactExports.useCallback(function(g,b,y,w){var v={name:g,delta:b,target:y,should:w,shadowParent:Uv(y)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(k){return k!==v})},1)},[]),d=l.reactExports.useCallback(function(g){n.current=Os(g),r.current=void 0},[]),p=l.reactExports.useCallback(function(g){c(g.type,Od(g),g.target,o(g,e.lockRef.current))},[]),f=l.reactExports.useCallback(function(g){c(g.type,Os(g),g.target,o(g,e.lockRef.current))},[]);l.reactExports.useEffect(function(){return Ar.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",u,Cr),document.addEventListener("touchmove",u,Cr),document.addEventListener("touchstart",d,Cr),function(){Ar=Ar.filter(function(g){return g!==s}),document.removeEventListener("wheel",u,Cr),document.removeEventListener("touchmove",u,Cr),document.removeEventListener("touchstart",d,Cr)}},[]);var m=e.removeScrollBar,x=e.inert;return l.reactExports.createElement(l.reactExports.Fragment,null,x?l.reactExports.createElement(s,{styles:Fv(i)}):null,m?l.reactExports.createElement(Rv,{gapMode:e.gapMode}):null)}function Uv(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const zv=Um(zm,Hv);var qm=l.reactExports.forwardRef(function(e,t){return l.reactExports.createElement(Wa,l.__assign({},e,{ref:t,sideCar:zv}))});qm.classNames=Wa.classNames;var Wc="Popover",[Gm,z8]=Ba(Wc,[$a]),ms=$a(),[Vv,Er]=Gm(Wc),Km=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:s,modal:a=!1}=e,o=ms(t),u=l.reactExports.useRef(null),[c,d]=l.reactExports.useState(!1),[p=!1,f]=Vc({prop:r,defaultProp:i,onChange:s});return l.jsxRuntimeExports.jsx(Dm,{...o,children:l.jsxRuntimeExports.jsx(Vv,{scope:t,contentId:Ri(),triggerRef:u,open:p,onOpenChange:f,onOpenToggle:l.reactExports.useCallback(()=>f(m=>!m),[f]),hasCustomAnchor:c,onCustomAnchorAdd:l.reactExports.useCallback(()=>d(!0),[]),onCustomAnchorRemove:l.reactExports.useCallback(()=>d(!1),[]),modal:a,children:n})})};Km.displayName=Wc;var Xm="PopoverAnchor",Zm=l.reactExports.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=Er(Xm,n),s=ms(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:o}=i;return l.reactExports.useEffect(()=>(a(),()=>o()),[a,o]),l.jsxRuntimeExports.jsx(Uc,{...s,...r,ref:t})});Zm.displayName=Xm;var Qm="PopoverTrigger",Jm=l.reactExports.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=Er(Qm,n),s=ms(n),a=an(t,i.triggerRef),o=l.jsxRuntimeExports.jsx(At.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":r0(i.open),...r,ref:a,onClick:mt(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?o:l.jsxRuntimeExports.jsx(Uc,{asChild:!0,...s,children:o})});Jm.displayName=Qm;var $v="PopoverPortal",[V8,Wv]=Gm($v,{forceMount:void 0}),qr="PopoverContent",e0=l.reactExports.forwardRef((e,t)=>{const n=Wv(qr,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,s=Er(qr,e.__scopePopover);return l.jsxRuntimeExports.jsx(zc,{present:r||s.open,children:s.modal?l.jsxRuntimeExports.jsx(Yv,{...i,ref:t}):l.jsxRuntimeExports.jsx(qv,{...i,ref:t})})});e0.displayName=qr;var Yv=l.reactExports.forwardRef((e,t)=>{const n=Er(qr,e.__scopePopover),r=l.reactExports.useRef(null),i=an(t,r),s=l.reactExports.useRef(!1);return l.reactExports.useEffect(()=>{const a=r.current;if(a)return Fm(a)},[]),l.jsxRuntimeExports.jsx(qm,{as:Ha,allowPinchZoom:!0,children:l.jsxRuntimeExports.jsx(t0,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:mt(e.onCloseAutoFocus,a=>{var o;a.preventDefault(),s.current||(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:mt(e.onPointerDownOutside,a=>{const o=a.detail.originalEvent,u=o.button===0&&o.ctrlKey===!0,c=o.button===2||u;s.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:mt(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),qv=l.reactExports.forwardRef((e,t)=>{const n=Er(qr,e.__scopePopover),r=l.reactExports.useRef(!1),i=l.reactExports.useRef(!1);return l.jsxRuntimeExports.jsx(t0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,o;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(o=n.triggerRef.current)==null||o.focus(),s.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:s=>{var u,c;(u=e.onInteractOutside)==null||u.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const a=s.target;((c=n.triggerRef.current)==null?void 0:c.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})}),t0=l.reactExports.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:o,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,...p}=e,f=Er(qr,n),m=ms(n);return fm(),l.jsxRuntimeExports.jsx(hm,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:s,children:l.jsxRuntimeExports.jsx(Oc,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:d,onEscapeKeyDown:o,onPointerDownOutside:u,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:l.jsxRuntimeExports.jsx(Lm,{"data-state":r0(f.open),role:"dialog",id:f.contentId,...m,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),n0="PopoverClose",Gv=l.reactExports.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=Er(n0,n);return l.jsxRuntimeExports.jsx(At.button,{type:"button",...r,ref:t,onClick:mt(e.onClick,()=>i.onOpenChange(!1))})});Gv.displayName=n0;var Kv="PopoverArrow",Xv=l.reactExports.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=ms(n);return l.jsxRuntimeExports.jsx(Mm,{...i,...r,ref:t})});Xv.displayName=Kv;function r0(e){return e?"open":"closed"}var Zv=Km,Qv=Zm,Jv=e0;function Dd(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}const dt=Zn(/[A-Za-z]/),it=Zn(/[\dA-Za-z]/),eT=Zn(/[#-'*+\--9=?A-Z^-~]/);function pa(e){return e!==null&&(e<32||e===127)}const Lu=Zn(/\d/),tT=Zn(/[\dA-Fa-f]/),nT=Zn(/[!-/:-@[-`{-~]/);function ue(e){return e!==null&&e<-2}function je(e){return e!==null&&(e<0||e===32)}function Ce(e){return e===-2||e===-1||e===32}const Ya=Zn(new RegExp("\\p{P}|\\p{S}","u")),gr=Zn(/\s/);function Zn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function rT(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const qa=function(e){if(e==null)return oT;if(typeof e=="function")return Ga(e);if(typeof e=="object")return Array.isArray(e)?iT(e):sT(e);if(typeof e=="string")return aT(e);throw new Error("Expected function, string, or object as test")};function iT(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=qa(e[n]);return Ga(r);function r(...i){let s=-1;for(;++s<t.length;)if(t[s].apply(this,i))return!0;return!1}}function sT(e){const t=e;return Ga(n);function n(r){const i=r;let s;for(s in e)if(i[s]!==t[s])return!1;return!0}}function aT(e){return Ga(t);function t(n){return n&&n.type===e}}function Ga(e){return t;function t(n,r,i){return!!(uT(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function oT(){return!0}function uT(e){return e!==null&&typeof e=="object"&&"type"in e}const i0=[],cT=!0,Mu=!1,lT="skip";function s0(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const s=qa(i),a=r?-1:1;o(e,void 0,[])();function o(u,c,d){const p=u&&typeof u=="object"?u:{};if(typeof p.type=="string"){const m=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(u.type+(m?"<"+m+">":""))+")"})}return f;function f(){let m=i0,x,g,b;if((!t||s(u,c,d[d.length-1]||void 0))&&(m=dT(n(u,d)),m[0]===Mu))return m;if("children"in u&&u.children){const y=u;if(y.children&&m[0]!==lT)for(g=(r?y.children.length:-1)+a,b=d.concat(y);g>-1&&g<y.children.length;){const w=y.children[g];if(x=o(w,g,b)(),x[0]===Mu)return x;g=typeof x[1]=="number"?x[1]:g+a}}return m}}}function dT(e){return Array.isArray(e)?e:typeof e=="number"?[cT,e]:e==null?i0:[e]}function pT(e,t,n){const i=qa((n||{}).ignore||[]),s=fT(t);let a=-1;for(;++a<s.length;)s0(e,"text",o);function o(c,d){let p=-1,f;for(;++p<d.length;){const m=d[p],x=f?f.children:void 0;if(i(m,x?x.indexOf(m):void 0,f))return;f=m}if(f)return u(c,d)}function u(c,d){const p=d[d.length-1],f=s[a][0],m=s[a][1];let x=0;const b=p.children.indexOf(c);let y=!1,w=[];f.lastIndex=0;let v=f.exec(c.value);for(;v;){const k=v.index,C={index:v.index,input:v.input,stack:[...d,c]};let R=m(...v,C);if(typeof R=="string"&&(R=R.length>0?{type:"text",value:R}:void 0),R===!1?f.lastIndex=k+1:(x!==k&&w.push({type:"text",value:c.value.slice(x,k)}),Array.isArray(R)?w.push(...R):R&&w.push(R),x=k+v[0].length,y=!0),!f.global)break;v=f.exec(c.value)}return y?(x<c.value.length&&w.push({type:"text",value:c.value.slice(x)}),p.children.splice(b,1,...w)):w=[c],b+w.length}}function fT(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([hT(i[0]),mT(i[1])])}return t}function hT(e){return typeof e=="string"?new RegExp(rT(e),"g"):e}function mT(e){return typeof e=="function"?e:function(){return e}}const Do="phrasing",Lo=["autolink","link","image","label"];function gT(){return{transforms:[wT],enter:{literalAutolink:bT,literalAutolinkEmail:Mo,literalAutolinkHttp:Mo,literalAutolinkWww:Mo},exit:{literalAutolink:TT,literalAutolinkEmail:vT,literalAutolinkHttp:yT,literalAutolinkWww:ET}}}function xT(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Do,notInConstruct:Lo},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Do,notInConstruct:Lo},{character:":",before:"[ps]",after:"\\/",inConstruct:Do,notInConstruct:Lo}]}}function bT(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Mo(e){this.config.enter.autolinkProtocol.call(this,e)}function yT(e){this.config.exit.autolinkProtocol.call(this,e)}function ET(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function vT(e){this.config.exit.autolinkEmail.call(this,e)}function TT(e){this.exit(e)}function wT(e){pT(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,_T],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),CT]],{ignore:["link","linkReference"]})}function _T(e,t,n,r,i){let s="";if(!a0(i)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!AT(n)))return!1;const a=kT(n+r);if(!a[0])return!1;const o={type:"link",title:null,url:s+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[o,{type:"text",value:a[1]}]:o}function CT(e,t,n,r){return!a0(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function AT(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function kT(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Dd(e,"(");let s=Dd(e,")");for(;r!==-1&&i>s;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),s++;return[e,n]}function a0(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||gr(n)||Ya(n))&&(!t||n!==47)}function Ht(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}o0.peek=FT;function ST(){return{enter:{gfmFootnoteDefinition:NT,gfmFootnoteDefinitionLabelString:IT,gfmFootnoteCall:DT,gfmFootnoteCallString:LT},exit:{gfmFootnoteDefinition:PT,gfmFootnoteDefinitionLabelString:OT,gfmFootnoteCall:jT,gfmFootnoteCallString:MT}}}function RT(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:BT,footnoteReference:o0}}}function NT(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function IT(){this.buffer()}function OT(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Ht(this.sliceSerialize(e)).toLowerCase()}function PT(e){this.exit(e)}function DT(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function LT(){this.buffer()}function MT(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Ht(this.sliceSerialize(e)).toLowerCase()}function jT(e){this.exit(e)}function o0(e,t,n,r){const i=n.createTracker(r);let s=i.move("[^");const a=n.enter("footnoteReference"),o=n.enter("reference");return s+=i.move(n.safe(n.associationId(e),{...i.current(),before:s,after:"]"})),o(),a(),s+=i.move("]"),s}function FT(){return"["}function BT(e,t,n,r){const i=n.createTracker(r);let s=i.move("[^");const a=n.enter("footnoteDefinition"),o=n.enter("label");return s+=i.move(n.safe(n.associationId(e),{...i.current(),before:s,after:"]"})),o(),s+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),s+=i.move(n.indentLines(n.containerFlow(e,i.current()),HT)),a(),s}function HT(e,t,n){return t===0?e:(n?"":" ")+e}const UT=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];u0.peek=YT;function zT(){return{canContainEols:["delete"],enter:{strikethrough:$T},exit:{strikethrough:WT}}}function VT(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:UT}],handlers:{delete:u0}}}function $T(e){this.enter({type:"delete",children:[]},e)}function WT(e){this.exit(e)}function u0(e,t,n,r){const i=n.createTracker(r),s=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),s(),a}function YT(){return"~"}function qT(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||KT,i=[],s=[],a=[],o=[];let u=0,c=-1;for(;++c<e.length;){const x=[],g=[];let b=-1;for(e[c].length>u&&(u=e[c].length);++b<e[c].length;){const y=GT(e[c][b]);if(t.alignDelimiters!==!1){const w=r(y);g[b]=w,(o[b]===void 0||w>o[b])&&(o[b]=w)}x.push(y)}s[c]=x,a[c]=g}let d=-1;if(typeof n=="object"&&"length"in n)for(;++d<u;)i[d]=Ld(n[d]);else{const x=Ld(n);for(;++d<u;)i[d]=x}d=-1;const p=[],f=[];for(;++d<u;){const x=i[d];let g="",b="";x===99?(g=":",b=":"):x===108?g=":":x===114&&(b=":");let y=t.alignDelimiters===!1?1:Math.max(1,o[d]-g.length-b.length);const w=g+"-".repeat(y)+b;t.alignDelimiters!==!1&&(y=g.length+y+b.length,y>o[d]&&(o[d]=y),f[d]=y),p[d]=w}s.splice(1,0,p),a.splice(1,0,f),c=-1;const m=[];for(;++c<s.length;){const x=s[c],g=a[c];d=-1;const b=[];for(;++d<u;){const y=x[d]||"";let w="",v="";if(t.alignDelimiters!==!1){const k=o[d]-(g[d]||0),C=i[d];C===114?w=" ".repeat(k):C===99?k%2?(w=" ".repeat(k/2+.5),v=" ".repeat(k/2-.5)):(w=" ".repeat(k/2),v=w):v=" ".repeat(k)}t.delimiterStart!==!1&&!d&&b.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&y==="")&&(t.delimiterStart!==!1||d)&&b.push(" "),t.alignDelimiters!==!1&&b.push(w),b.push(y),t.alignDelimiters!==!1&&b.push(v),t.padding!==!1&&b.push(" "),(t.delimiterEnd!==!1||d!==u-1)&&b.push("|")}m.push(t.delimiterEnd===!1?b.join("").replace(/ +$/,""):b.join(""))}return m.join(`
62
+ `)}function GT(e){return e==null?"":String(e)}function KT(e){return e.length}function Ld(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const Md={}.hasOwnProperty;function c0(e,t){const n=t||{};function r(i,...s){let a=r.invalid;const o=r.handlers;if(i&&Md.call(i,e)){const u=String(i[e]);a=Md.call(o,u)?o[u]:r.unknown}if(a)return a.call(this,i,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function XT(e,t,n,r){const i=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);const a=n.indentLines(n.containerFlow(e,s.current()),ZT);return i(),a}function ZT(e,t,n){return">"+(n?"":" ")+e}function QT(e,t){return jd(e,t.inConstruct,!0)&&!jd(e,t.notInConstruct,!1)}function jd(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Fd(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
63
+ `&&QT(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
64
+ `}function JT(e,t){const n=String(e);let r=n.indexOf(t),i=r,s=0,a=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++s>a&&(a=s):s=1,i=r+t.length,r=n.indexOf(t,i);return a}function ew(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function tw(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function nw(e,t,n,r){const i=tw(n),s=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(ew(e,n)){const p=n.enter("codeIndented"),f=n.indentLines(s,rw);return p(),f}const o=n.createTracker(r),u=i.repeat(Math.max(JT(s,i)+1,3)),c=n.enter("codeFenced");let d=o.move(u);if(e.lang){const p=n.enter(`codeFencedLang${a}`);d+=o.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...o.current()})),p()}if(e.lang&&e.meta){const p=n.enter(`codeFencedMeta${a}`);d+=o.move(" "),d+=o.move(n.safe(e.meta,{before:d,after:`
65
+ `,encode:["`"],...o.current()})),p()}return d+=o.move(`
66
+ `),s&&(d+=o.move(s+`
67
+ `)),d+=o.move(u),c(),d}function rw(e,t,n){return(n?"":" ")+e}function Yc(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function iw(e,t,n,r){const i=Yc(n),s=i==='"'?"Quote":"Apostrophe",a=n.enter("definition");let o=n.enter("label");const u=n.createTracker(r);let c=u.move("[");return c+=u.move(n.safe(n.associationId(e),{before:c,after:"]",...u.current()})),c+=u.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(o=n.enter("destinationRaw"),c+=u.move(n.safe(e.url,{before:c,after:e.title?" ":`
68
+ `,...u.current()}))),o(),e.title&&(o=n.enter(`title${s}`),c+=u.move(" "+i),c+=u.move(n.safe(e.title,{before:c,after:i,...u.current()})),c+=u.move(i),o()),a(),c}function sw(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}l0.peek=aw;function l0(e,t,n,r){const i=sw(n),s=n.enter("emphasis"),a=n.createTracker(r);let o=a.move(i);return o+=a.move(n.containerPhrasing(e,{before:o,after:i,...a.current()})),o+=a.move(i),s(),o}function aw(e,t,n){return n.options.emphasis||"*"}function Ka(e,t,n,r){let i,s,a;typeof t=="function"&&typeof n!="function"?(s=void 0,a=t,i=n):(s=t,a=n,i=r),s0(e,s,o,i);function o(u,c){const d=c[c.length-1],p=d?d.children.indexOf(u):void 0;return a(u,p,d)}}const ow={};function qc(e,t){const n=ow,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return d0(e,r,i)}function d0(e,t,n){if(uw(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Bd(e.children,t,n)}return Array.isArray(e)?Bd(e,t,n):""}function Bd(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=d0(e[i],t,n);return r.join("")}function uw(e){return!!(e&&typeof e=="object")}function cw(e,t){let n=!1;return Ka(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Mu}),!!((!e.depth||e.depth<3)&&qc(e)&&(t.options.setext||n))}function lw(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(r);if(cw(e,n)){const d=n.enter("headingSetext"),p=n.enter("phrasing"),f=n.containerPhrasing(e,{...s.current(),before:`
69
+ `,after:`
70
+ `});return p(),d(),f+`
71
+ `+(i===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(`
72
+ `))+1))}const a="#".repeat(i),o=n.enter("headingAtx"),u=n.enter("phrasing");s.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:`
73
+ `,...s.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),u(),o(),c}p0.peek=dw;function p0(e){return e.value||""}function dw(){return"<"}f0.peek=pw;function f0(e,t,n,r){const i=Yc(n),s=i==='"'?"Quote":"Apostrophe",a=n.enter("image");let o=n.enter("label");const u=n.createTracker(r);let c=u.move("![");return c+=u.move(n.safe(e.alt,{before:c,after:"]",...u.current()})),c+=u.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(o=n.enter("destinationRaw"),c+=u.move(n.safe(e.url,{before:c,after:e.title?" ":")",...u.current()}))),o(),e.title&&(o=n.enter(`title${s}`),c+=u.move(" "+i),c+=u.move(n.safe(e.title,{before:c,after:i,...u.current()})),c+=u.move(i),o()),c+=u.move(")"),a(),c}function pw(){return"!"}h0.peek=fw;function h0(e,t,n,r){const i=e.referenceType,s=n.enter("imageReference");let a=n.enter("label");const o=n.createTracker(r);let u=o.move("![");const c=n.safe(e.alt,{before:u,after:"]",...o.current()});u+=o.move(c+"]["),a();const d=n.stack;n.stack=[],a=n.enter("reference");const p=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return a(),n.stack=d,s(),i==="full"||!c||c!==p?u+=o.move(p+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function fw(){return"!"}m0.peek=hw;function m0(e,t,n){let r=e.value||"",i="`",s=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const a=n.unsafe[s],o=n.compilePattern(a);let u;if(a.atBreak)for(;u=o.exec(r);){let c=u.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(u.index+1)}}return i+r+i}function hw(){return"`"}function g0(e,t){const n=qc(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}x0.peek=mw;function x0(e,t,n,r){const i=Yc(n),s=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let o,u;if(g0(e,n)){const d=n.stack;n.stack=[],o=n.enter("autolink");let p=a.move("<");return p+=a.move(n.containerPhrasing(e,{before:p,after:">",...a.current()})),p+=a.move(">"),o(),n.stack=d,p}o=n.enter("link"),u=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(u=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),u(),e.title&&(u=n.enter(`title${s}`),c+=a.move(" "+i),c+=a.move(n.safe(e.title,{before:c,after:i,...a.current()})),c+=a.move(i),u()),c+=a.move(")"),o(),c}function mw(e,t,n){return g0(e,n)?"<":"["}b0.peek=gw;function b0(e,t,n,r){const i=e.referenceType,s=n.enter("linkReference");let a=n.enter("label");const o=n.createTracker(r);let u=o.move("[");const c=n.containerPhrasing(e,{before:u,after:"]",...o.current()});u+=o.move(c+"]["),a();const d=n.stack;n.stack=[],a=n.enter("reference");const p=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return a(),n.stack=d,s(),i==="full"||!c||c!==p?u+=o.move(p+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function gw(){return"["}function Gc(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function xw(e){const t=Gc(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function bw(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function y0(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function yw(e,t,n,r){const i=n.enter("list"),s=n.bulletCurrent;let a=e.ordered?bw(n):Gc(n);const o=e.ordered?a==="."?")":".":xw(n);let u=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),y0(n)===a&&d){let p=-1;for(;++p<e.children.length;){const f=e.children[p];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(a=o),n.bulletCurrent=a;const c=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=s,i(),c}function Ew(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function vw(e,t,n,r){const i=Ew(n);let s=n.bulletCurrent||Gc(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let a=s.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const o=n.createTracker(r);o.move(s+" ".repeat(a-s.length)),o.shift(a);const u=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,o.current()),d);return u(),c;function d(p,f,m){return f?(m?"":" ".repeat(a))+p:(m?s:s+" ".repeat(a-s.length))+p}}function Tw(e,t,n,r){const i=n.enter("paragraph"),s=n.enter("phrasing"),a=n.containerPhrasing(e,r);return s(),i(),a}const ww=qa(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function _w(e,t,n,r){return(e.children.some(function(a){return ww(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Cw(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}E0.peek=Aw;function E0(e,t,n,r){const i=Cw(n),s=n.enter("strong"),a=n.createTracker(r);let o=a.move(i+i);return o+=a.move(n.containerPhrasing(e,{before:o,after:i,...a.current()})),o+=a.move(i+i),s(),o}function Aw(e,t,n){return n.options.strong||"*"}function kw(e,t,n,r){return n.safe(e.value,r)}function Sw(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Rw(e,t,n){const r=(y0(n)+(n.options.ruleSpaces?" ":"")).repeat(Sw(n));return n.options.ruleSpaces?r.slice(0,-1):r}const v0={blockquote:XT,break:Fd,code:nw,definition:iw,emphasis:l0,hardBreak:Fd,heading:lw,html:p0,image:f0,imageReference:h0,inlineCode:m0,link:x0,linkReference:b0,list:yw,listItem:vw,paragraph:Tw,root:_w,strong:E0,text:kw,thematicBreak:Rw},Hd=document.createElement("i");function Kc(e){const t="&"+e+";";Hd.innerHTML=t;const n=Hd.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function T0(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const Nw=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Iw(e){return e.replace(Nw,Ow)}function Ow(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),s=i===120||i===88;return T0(n.slice(s?2:1),s?16:10)}return Kc(n)||e}function Pw(){return{enter:{table:Dw,tableData:Ud,tableHeader:Ud,tableRow:Mw},exit:{codeText:jw,table:Lw,tableData:jo,tableHeader:jo,tableRow:jo}}}function Dw(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Lw(e){this.exit(e),this.data.inTable=void 0}function Mw(e){this.enter({type:"tableRow",children:[]},e)}function jo(e){this.exit(e)}function Ud(e){this.enter({type:"tableCell",children:[]},e)}function jw(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Fw));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Fw(e,t){return t==="|"?t:e}function Bw(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
74
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:a,tableCell:u,tableRow:o}};function a(m,x,g,b){return c(d(m,g,b),m.align)}function o(m,x,g,b){const y=p(m,g,b),w=c([y]);return w.slice(0,w.indexOf(`
75
+ `))}function u(m,x,g,b){const y=g.enter("tableCell"),w=g.enter("phrasing"),v=g.containerPhrasing(m,{...b,before:s,after:s});return w(),y(),v}function c(m,x){return qT(m,{align:x,alignDelimiters:r,padding:n,stringLength:i})}function d(m,x,g){const b=m.children;let y=-1;const w=[],v=x.enter("table");for(;++y<b.length;)w[y]=p(b[y],x,g);return v(),w}function p(m,x,g){const b=m.children;let y=-1;const w=[],v=x.enter("tableRow");for(;++y<b.length;)w[y]=u(b[y],m,x,g);return v(),w}function f(m,x,g){let b=v0.inlineCode(m,x,g);return g.stack.includes("tableCell")&&(b=b.replace(/\|/g,"\\$&")),b}}function Hw(){return{exit:{taskListCheckValueChecked:zd,taskListCheckValueUnchecked:zd,paragraph:zw}}}function Uw(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Vw}}}function zd(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function zw(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let s=-1,a;for(;++s<i.length;){const o=i[s];if(o.type==="paragraph"){a=o;break}}a===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Vw(e,t,n,r){const i=e.children[0],s=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);s&&o.move(a);let u=v0.listItem(e,t,n,{...r,...o.current()});return s&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),u;function c(d){return d+a}}function $w(){return[gT(),ST(),zT(),Pw(),Hw()]}function Ww(e){return{extensions:[xT(),RT(),VT(),Bw(e),Uw()]}}function Pt(e,t,n,r){const i=e.length;let s=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);s<r.length;)a=r.slice(s,s+1e4),a.unshift(t,0),e.splice(...a),s+=1e4,t+=1e4}function It(e,t){return e.length>0?(Pt(e,e.length,0,t),e):t}const Vd={}.hasOwnProperty;function w0(e){const t={};let n=-1;for(;++n<e.length;)Yw(t,e[n]);return t}function Yw(e,t){let n;for(n in t){const i=(Vd.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let a;if(s)for(a in s){Vd.call(i,a)||(i[a]=[]);const o=s[a];qw(i[a],Array.isArray(o)?o:o?[o]:[])}}}function qw(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Pt(e,0,0,r)}const Gw={tokenize:e2,partial:!0},_0={tokenize:t2,partial:!0},C0={tokenize:n2,partial:!0},A0={tokenize:r2,partial:!0},Kw={tokenize:i2,partial:!0},k0={name:"wwwAutolink",tokenize:Qw,previous:R0},S0={name:"protocolAutolink",tokenize:Jw,previous:N0},An={name:"emailAutolink",tokenize:Zw,previous:I0},un={};function Xw(){return{text:un}}let ir=48;for(;ir<123;)un[ir]=An,ir++,ir===58?ir=65:ir===91&&(ir=97);un[43]=An;un[45]=An;un[46]=An;un[95]=An;un[72]=[An,S0];un[104]=[An,S0];un[87]=[An,k0];un[119]=[An,k0];function Zw(e,t,n){const r=this;let i,s;return a;function a(p){return!ju(p)||!I0.call(r,r.previous)||Xc(r.events)?n(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(p))}function o(p){return ju(p)?(e.consume(p),o):p===64?(e.consume(p),u):n(p)}function u(p){return p===46?e.check(Kw,d,c)(p):p===45||p===95||it(p)?(s=!0,e.consume(p),u):d(p)}function c(p){return e.consume(p),i=!0,u}function d(p){return s&&i&&dt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):n(p)}}function Qw(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!R0.call(r,r.previous)||Xc(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Gw,e.attempt(_0,e.attempt(C0,s),n),n)(a))}function s(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function Jw(e,t,n){const r=this;let i="",s=!1;return a;function a(p){return(p===72||p===104)&&N0.call(r,r.previous)&&!Xc(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(p),e.consume(p),o):n(p)}function o(p){if(dt(p)&&i.length<5)return i+=String.fromCodePoint(p),e.consume(p),o;if(p===58){const f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(p),u}return n(p)}function u(p){return p===47?(e.consume(p),s?c:(s=!0,u)):n(p)}function c(p){return p===null||pa(p)||je(p)||gr(p)||Ya(p)?n(p):e.attempt(_0,e.attempt(C0,d),n)(p)}function d(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function e2(e,t,n){let r=0;return i;function i(a){return(a===87||a===119)&&r<3?(r++,e.consume(a),i):a===46&&r===3?(e.consume(a),s):n(a)}function s(a){return a===null?n(a):t(a)}}function t2(e,t,n){let r,i,s;return a;function a(c){return c===46||c===95?e.check(A0,u,o)(c):c===null||je(c)||gr(c)||c!==45&&Ya(c)?u(c):(s=!0,e.consume(c),a)}function o(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),a}function u(c){return i||r||!s?n(c):t(c)}}function n2(e,t){let n=0,r=0;return i;function i(a){return a===40?(n++,e.consume(a),i):a===41&&r<n?s(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(A0,t,s)(a):a===null||je(a)||gr(a)?t(a):(e.consume(a),i)}function s(a){return a===41&&r++,e.consume(a),i}}function r2(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),s):o===93?(e.consume(o),i):o===60||o===null||je(o)||gr(o)?t(o):n(o)}function i(o){return o===null||o===40||o===91||je(o)||gr(o)?t(o):r(o)}function s(o){return dt(o)?a(o):n(o)}function a(o){return o===59?(e.consume(o),r):dt(o)?(e.consume(o),a):n(o)}}function i2(e,t,n){return r;function r(s){return e.consume(s),i}function i(s){return it(s)?n(s):t(s)}}function R0(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||je(e)}function N0(e){return!dt(e)}function I0(e){return!(e===47||ju(e))}function ju(e){return e===43||e===45||e===46||e===95||it(e)}function Xc(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function oi(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const s=e.charCodeAt(n);let a="";if(s===37&&it(e.charCodeAt(n+1))&&it(e.charCodeAt(n+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(a=String.fromCharCode(s));else if(s>55295&&s<57344){const o=e.charCodeAt(n+1);s<56320&&o>56319&&o<57344?(a=String.fromCharCode(s,o),i=1):a="�"}else a=String.fromCharCode(s);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function fa(e){if(e===null||je(e)||gr(e))return 1;if(Ya(e))return 2}function Xa(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const s=e[i].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}const Fu={name:"attention",tokenize:a2,resolveAll:s2};function s2(e,t){let n=-1,r,i,s,a,o,u,c,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p=Object.assign({},e[r][1].end),f=Object.assign({},e[n][1].start);$d(p,-u),$d(f,u),a={type:u>1?"strongSequence":"emphasisSequence",start:p,end:Object.assign({},e[r][1].end)},o={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:f},s={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},o.end)},e[r][1].end=Object.assign({},a.start),e[n][1].start=Object.assign({},o.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=It(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=It(c,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",s,t]]),c=It(c,Xa(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=It(c,[["exit",s,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,c=It(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Pt(e,r-1,n-r+3,c),n=r+c.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function a2(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=fa(r);let s;return a;function a(u){return s=u,e.enter("attentionSequence"),o(u)}function o(u){if(u===s)return e.consume(u),o;const c=e.exit("attentionSequence"),d=fa(u),p=!d||d===2&&i||n.includes(u),f=!i||i===2&&d||n.includes(r);return c._open=!!(s===42?p:p&&(i||!f)),c._close=!!(s===42?f:f&&(d||!p)),t(u)}}function $d(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const o2={name:"autolink",tokenize:u2};function u2(e,t,n){let r=0;return i;function i(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(m){return dt(m)?(e.consume(m),a):m===64?n(m):c(m)}function a(m){return m===43||m===45||m===46||it(m)?(r=1,o(m)):c(m)}function o(m){return m===58?(e.consume(m),r=0,u):(m===43||m===45||m===46||it(m))&&r++<32?(e.consume(m),o):(r=0,c(m))}function u(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||pa(m)?n(m):(e.consume(m),u)}function c(m){return m===64?(e.consume(m),d):eT(m)?(e.consume(m),c):n(m)}function d(m){return it(m)?p(m):n(m)}function p(m){return m===46?(e.consume(m),r=0,d):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):f(m)}function f(m){if((m===45||it(m))&&r++<63){const x=m===45?f:p;return e.consume(m),x}return n(m)}}function Se(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return a;function a(u){return Ce(u)?(e.enter(n),o(u)):t(u)}function o(u){return Ce(u)&&s++<i?(e.consume(u),o):(e.exit(n),t(u))}}const gs={tokenize:c2,partial:!0};function c2(e,t,n){return r;function r(s){return Ce(s)?Se(e,i,"linePrefix")(s):i(s)}function i(s){return s===null||ue(s)?t(s):n(s)}}const O0={name:"blockQuote",tokenize:l2,continuation:{tokenize:d2},exit:p2};function l2(e,t,n){const r=this;return i;function i(a){if(a===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),s}return n(a)}function s(a){return Ce(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function d2(e,t,n){const r=this;return i;function i(a){return Ce(a)?Se(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):s(a)}function s(a){return e.attempt(O0,t,n)(a)}}function p2(e){e.exit("blockQuote")}const P0={name:"characterEscape",tokenize:f2};function f2(e,t,n){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),i}function i(s){return nT(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const D0={name:"characterReference",tokenize:h2};function h2(e,t,n){const r=this;let i=0,s,a;return o;function o(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),u}function u(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),s=31,a=it,d(p))}function c(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,a=tT,d):(e.enter("characterReferenceValue"),s=7,a=Lu,d(p))}function d(p){if(p===59&&i){const f=e.exit("characterReferenceValue");return a===it&&!Kc(r.sliceSerialize(f))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(p)&&i++<s?(e.consume(p),d):n(p)}}const Wd={tokenize:g2,partial:!0},Yd={name:"codeFenced",tokenize:m2,concrete:!0};function m2(e,t,n){const r=this,i={tokenize:C,partial:!0};let s=0,a=0,o;return u;function u(R){return c(R)}function c(R){const O=r.events[r.events.length-1];return s=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,o=R,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(R)}function d(R){return R===o?(a++,e.consume(R),d):a<3?n(R):(e.exit("codeFencedFenceSequence"),Ce(R)?Se(e,p,"whitespace")(R):p(R))}function p(R){return R===null||ue(R)?(e.exit("codeFencedFence"),r.interrupt?t(R):e.check(Wd,g,k)(R)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(R))}function f(R){return R===null||ue(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(R)):Ce(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Se(e,m,"whitespace")(R)):R===96&&R===o?n(R):(e.consume(R),f)}function m(R){return R===null||ue(R)?p(R):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(R))}function x(R){return R===null||ue(R)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(R)):R===96&&R===o?n(R):(e.consume(R),x)}function g(R){return e.attempt(i,k,b)(R)}function b(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),y}function y(R){return s>0&&Ce(R)?Se(e,w,"linePrefix",s+1)(R):w(R)}function w(R){return R===null||ue(R)?e.check(Wd,g,k)(R):(e.enter("codeFlowValue"),v(R))}function v(R){return R===null||ue(R)?(e.exit("codeFlowValue"),w(R)):(e.consume(R),v)}function k(R){return e.exit("codeFenced"),t(R)}function C(R,O,D){let j=0;return N;function N(K){return R.enter("lineEnding"),R.consume(K),R.exit("lineEnding"),B}function B(K){return R.enter("codeFencedFence"),Ce(K)?Se(R,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):M(K)}function M(K){return K===o?(R.enter("codeFencedFenceSequence"),ee(K)):D(K)}function ee(K){return K===o?(j++,R.consume(K),ee):j>=a?(R.exit("codeFencedFenceSequence"),Ce(K)?Se(R,Y,"whitespace")(K):Y(K)):D(K)}function Y(K){return K===null||ue(K)?(R.exit("codeFencedFence"),O(K)):D(K)}}}function g2(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s)}function s(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const Fo={name:"codeIndented",tokenize:b2},x2={tokenize:y2,partial:!0};function b2(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Se(e,s,"linePrefix",5)(c)}function s(c){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?a(c):n(c)}function a(c){return c===null?u(c):ue(c)?e.attempt(x2,a,u)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||ue(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),o)}function u(c){return e.exit("codeIndented"),t(c)}}function y2(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):ue(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):Se(e,s,"linePrefix",5)(a)}function s(a){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):ue(a)?i(a):n(a)}}const E2={name:"codeText",tokenize:w2,resolve:v2,previous:T2};function v2(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function T2(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function w2(e,t,n){let r=0,i,s;return a;function a(p){return e.enter("codeText"),e.enter("codeTextSequence"),o(p)}function o(p){return p===96?(e.consume(p),r++,o):(e.exit("codeTextSequence"),u(p))}function u(p){return p===null?n(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),u):p===96?(s=e.enter("codeTextSequence"),i=0,d(p)):ue(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(p))}function c(p){return p===null||p===32||p===96||ue(p)?(e.exit("codeTextData"),u(p)):(e.consume(p),c)}function d(p){return p===96?(e.consume(p),i++,d):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(s.type="codeTextData",c(p))}}class _2{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&gi(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),gi(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),gi(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);gi(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);gi(this.left,n.reverse())}}}function gi(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function L0(e){const t={};let n=-1,r,i,s,a,o,u,c;const d=new _2(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,s=0,s<u.length&&u[s][1].type==="lineEndingBlank"&&(s+=2),s<u.length&&u[s][1].type==="content"))for(;++s<u.length&&u[s][1].type!=="content";)u[s][1].type==="chunkText"&&(u[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,C2(d,n)),n=t[n],c=!0);else if(r[1]._container){for(s=n,i=void 0;s--&&(a=d.get(s),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank");)a[0]==="enter"&&(i&&(d.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=s);i&&(r[1].end=Object.assign({},d.get(i)[1].start),o=d.slice(i,n),o.unshift(r),d.splice(i,n-i+1,o))}}return Pt(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!c}function C2(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const s=[],a=n._tokenizer||r.parser[n.contentType](n.start),o=a.events,u=[],c={};let d,p,f=-1,m=n,x=0,g=0;const b=[g];for(;m;){for(;e.get(++i)[1]!==m;);s.push(i),m._tokenizer||(d=r.sliceStream(m),m.next||d.push(null),p&&a.defineSkip(m.start),m._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(d),m._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),p=m,m=m.next}for(m=n;++f<o.length;)o[f][0]==="exit"&&o[f-1][0]==="enter"&&o[f][1].type===o[f-1][1].type&&o[f][1].start.line!==o[f][1].end.line&&(g=f+1,b.push(g),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(a.events=[],m?(m._tokenizer=void 0,m.previous=void 0):b.pop(),f=b.length;f--;){const y=o.slice(b[f],b[f+1]),w=s.pop();u.push([w,w+y.length-1]),e.splice(w,2,y)}for(u.reverse(),f=-1;++f<u.length;)c[x+u[f][0]]=x+u[f][1],x+=u[f][1]-u[f][0]-1;return c}const A2={tokenize:R2,resolve:S2},k2={tokenize:N2,partial:!0};function S2(e){return L0(e),e}function R2(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?s(o):ue(o)?e.check(k2,a,s)(o):(e.consume(o),i)}function s(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function a(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function N2(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Se(e,s,"linePrefix")}function s(a){if(a===null||ue(a))return n(a);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function M0(e,t,n,r,i,s,a,o,u){const c=u||Number.POSITIVE_INFINITY;let d=0;return p;function p(y){return y===60?(e.enter(r),e.enter(i),e.enter(s),e.consume(y),e.exit(s),f):y===null||y===32||y===41||pa(y)?n(y):(e.enter(r),e.enter(a),e.enter(o),e.enter("chunkString",{contentType:"string"}),g(y))}function f(y){return y===62?(e.enter(s),e.consume(y),e.exit(s),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===62?(e.exit("chunkString"),e.exit(o),f(y)):y===null||y===60||ue(y)?n(y):(e.consume(y),y===92?x:m)}function x(y){return y===60||y===62||y===92?(e.consume(y),m):m(y)}function g(y){return!d&&(y===null||y===41||je(y))?(e.exit("chunkString"),e.exit(o),e.exit(a),e.exit(r),t(y)):d<c&&y===40?(e.consume(y),d++,g):y===41?(e.consume(y),d--,g):y===null||y===32||y===40||pa(y)?n(y):(e.consume(y),y===92?b:g)}function b(y){return y===40||y===41||y===92?(e.consume(y),g):g(y)}}function j0(e,t,n,r,i,s){const a=this;let o=0,u;return c;function c(m){return e.enter(r),e.enter(i),e.consume(m),e.exit(i),e.enter(s),d}function d(m){return o>999||m===null||m===91||m===93&&!u||m===94&&!o&&"_hiddenFootnoteSupport"in a.parser.constructs?n(m):m===93?(e.exit(s),e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):ue(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===null||m===91||m===93||ue(m)||o++>999?(e.exit("chunkString"),d(m)):(e.consume(m),u||(u=!Ce(m)),m===92?f:p)}function f(m){return m===91||m===92||m===93?(e.consume(m),o++,p):p(m)}}function F0(e,t,n,r,i,s){let a;return o;function o(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),a=f===40?41:f,u):n(f)}function u(f){return f===a?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(s),c(f))}function c(f){return f===a?(e.exit(s),u(a)):f===null?n(f):ue(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Se(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===a||f===null||ue(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?p:d)}function p(f){return f===a||f===92?(e.consume(f),d):d(f)}}function Ni(e,t){let n;return r;function r(i){return ue(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Ce(i)?Se(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const I2={name:"definition",tokenize:P2},O2={tokenize:D2,partial:!0};function P2(e,t,n){const r=this;let i;return s;function s(m){return e.enter("definition"),a(m)}function a(m){return j0.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function o(m){return i=Ht(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),u):n(m)}function u(m){return je(m)?Ni(e,c)(m):c(m)}function c(m){return M0(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function d(m){return e.attempt(O2,p,p)(m)}function p(m){return Ce(m)?Se(e,f,"whitespace")(m):f(m)}function f(m){return m===null||ue(m)?(e.exit("definition"),r.parser.defined.push(i),t(m)):n(m)}}function D2(e,t,n){return r;function r(o){return je(o)?Ni(e,i)(o):n(o)}function i(o){return F0(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function s(o){return Ce(o)?Se(e,a,"whitespace")(o):a(o)}function a(o){return o===null||ue(o)?t(o):n(o)}}const L2={name:"hardBreakEscape",tokenize:M2};function M2(e,t,n){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),i}function i(s){return ue(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const j2={name:"headingAtx",tokenize:B2,resolve:F2};function F2(e,t){let n=e.length-2,r=3,i,s;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},s={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Pt(e,r,n-r+1,[["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t]])),e}function B2(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),s(d)}function s(d){return e.enter("atxHeadingSequence"),a(d)}function a(d){return d===35&&r++<6?(e.consume(d),a):d===null||je(d)?(e.exit("atxHeadingSequence"),o(d)):n(d)}function o(d){return d===35?(e.enter("atxHeadingSequence"),u(d)):d===null||ue(d)?(e.exit("atxHeading"),t(d)):Ce(d)?Se(e,o,"whitespace")(d):(e.enter("atxHeadingText"),c(d))}function u(d){return d===35?(e.consume(d),u):(e.exit("atxHeadingSequence"),o(d))}function c(d){return d===null||d===35||je(d)?(e.exit("atxHeadingText"),o(d)):(e.consume(d),c)}}const H2=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],qd=["pre","script","style","textarea"],U2={name:"htmlFlow",tokenize:W2,resolveTo:$2,concrete:!0},z2={tokenize:q2,partial:!0},V2={tokenize:Y2,partial:!0};function $2(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function W2(e,t,n){const r=this;let i,s,a,o,u;return c;function c(A){return d(A)}function d(A){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(A),p}function p(A){return A===33?(e.consume(A),f):A===47?(e.consume(A),s=!0,g):A===63?(e.consume(A),i=3,r.interrupt?t:E):dt(A)?(e.consume(A),a=String.fromCharCode(A),b):n(A)}function f(A){return A===45?(e.consume(A),i=2,m):A===91?(e.consume(A),i=5,o=0,x):dt(A)?(e.consume(A),i=4,r.interrupt?t:E):n(A)}function m(A){return A===45?(e.consume(A),r.interrupt?t:E):n(A)}function x(A){const te="CDATA[";return A===te.charCodeAt(o++)?(e.consume(A),o===te.length?r.interrupt?t:M:x):n(A)}function g(A){return dt(A)?(e.consume(A),a=String.fromCharCode(A),b):n(A)}function b(A){if(A===null||A===47||A===62||je(A)){const te=A===47,ge=a.toLowerCase();return!te&&!s&&qd.includes(ge)?(i=1,r.interrupt?t(A):M(A)):H2.includes(a.toLowerCase())?(i=6,te?(e.consume(A),y):r.interrupt?t(A):M(A)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(A):s?w(A):v(A))}return A===45||it(A)?(e.consume(A),a+=String.fromCharCode(A),b):n(A)}function y(A){return A===62?(e.consume(A),r.interrupt?t:M):n(A)}function w(A){return Ce(A)?(e.consume(A),w):N(A)}function v(A){return A===47?(e.consume(A),N):A===58||A===95||dt(A)?(e.consume(A),k):Ce(A)?(e.consume(A),v):N(A)}function k(A){return A===45||A===46||A===58||A===95||it(A)?(e.consume(A),k):C(A)}function C(A){return A===61?(e.consume(A),R):Ce(A)?(e.consume(A),C):v(A)}function R(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),u=A,O):Ce(A)?(e.consume(A),R):D(A)}function O(A){return A===u?(e.consume(A),u=null,j):A===null||ue(A)?n(A):(e.consume(A),O)}function D(A){return A===null||A===34||A===39||A===47||A===60||A===61||A===62||A===96||je(A)?C(A):(e.consume(A),D)}function j(A){return A===47||A===62||Ce(A)?v(A):n(A)}function N(A){return A===62?(e.consume(A),B):n(A)}function B(A){return A===null||ue(A)?M(A):Ce(A)?(e.consume(A),B):n(A)}function M(A){return A===45&&i===2?(e.consume(A),ne):A===60&&i===1?(e.consume(A),X):A===62&&i===4?(e.consume(A),z):A===63&&i===3?(e.consume(A),E):A===93&&i===5?(e.consume(A),ie):ue(A)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(z2,oe,ee)(A)):A===null||ue(A)?(e.exit("htmlFlowData"),ee(A)):(e.consume(A),M)}function ee(A){return e.check(V2,Y,oe)(A)}function Y(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),K}function K(A){return A===null||ue(A)?ee(A):(e.enter("htmlFlowData"),M(A))}function ne(A){return A===45?(e.consume(A),E):M(A)}function X(A){return A===47?(e.consume(A),a="",Z):M(A)}function Z(A){if(A===62){const te=a.toLowerCase();return qd.includes(te)?(e.consume(A),z):M(A)}return dt(A)&&a.length<8?(e.consume(A),a+=String.fromCharCode(A),Z):M(A)}function ie(A){return A===93?(e.consume(A),E):M(A)}function E(A){return A===62?(e.consume(A),z):A===45&&i===2?(e.consume(A),E):M(A)}function z(A){return A===null||ue(A)?(e.exit("htmlFlowData"),oe(A)):(e.consume(A),z)}function oe(A){return e.exit("htmlFlow"),t(A)}}function Y2(e,t,n){const r=this;return i;function i(a){return ue(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s):n(a)}function s(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function q2(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(gs,t,n)}}const G2={name:"htmlText",tokenize:K2};function K2(e,t,n){const r=this;let i,s,a;return o;function o(E){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(E),u}function u(E){return E===33?(e.consume(E),c):E===47?(e.consume(E),C):E===63?(e.consume(E),v):dt(E)?(e.consume(E),D):n(E)}function c(E){return E===45?(e.consume(E),d):E===91?(e.consume(E),s=0,x):dt(E)?(e.consume(E),w):n(E)}function d(E){return E===45?(e.consume(E),m):n(E)}function p(E){return E===null?n(E):E===45?(e.consume(E),f):ue(E)?(a=p,X(E)):(e.consume(E),p)}function f(E){return E===45?(e.consume(E),m):p(E)}function m(E){return E===62?ne(E):E===45?f(E):p(E)}function x(E){const z="CDATA[";return E===z.charCodeAt(s++)?(e.consume(E),s===z.length?g:x):n(E)}function g(E){return E===null?n(E):E===93?(e.consume(E),b):ue(E)?(a=g,X(E)):(e.consume(E),g)}function b(E){return E===93?(e.consume(E),y):g(E)}function y(E){return E===62?ne(E):E===93?(e.consume(E),y):g(E)}function w(E){return E===null||E===62?ne(E):ue(E)?(a=w,X(E)):(e.consume(E),w)}function v(E){return E===null?n(E):E===63?(e.consume(E),k):ue(E)?(a=v,X(E)):(e.consume(E),v)}function k(E){return E===62?ne(E):v(E)}function C(E){return dt(E)?(e.consume(E),R):n(E)}function R(E){return E===45||it(E)?(e.consume(E),R):O(E)}function O(E){return ue(E)?(a=O,X(E)):Ce(E)?(e.consume(E),O):ne(E)}function D(E){return E===45||it(E)?(e.consume(E),D):E===47||E===62||je(E)?j(E):n(E)}function j(E){return E===47?(e.consume(E),ne):E===58||E===95||dt(E)?(e.consume(E),N):ue(E)?(a=j,X(E)):Ce(E)?(e.consume(E),j):ne(E)}function N(E){return E===45||E===46||E===58||E===95||it(E)?(e.consume(E),N):B(E)}function B(E){return E===61?(e.consume(E),M):ue(E)?(a=B,X(E)):Ce(E)?(e.consume(E),B):j(E)}function M(E){return E===null||E===60||E===61||E===62||E===96?n(E):E===34||E===39?(e.consume(E),i=E,ee):ue(E)?(a=M,X(E)):Ce(E)?(e.consume(E),M):(e.consume(E),Y)}function ee(E){return E===i?(e.consume(E),i=void 0,K):E===null?n(E):ue(E)?(a=ee,X(E)):(e.consume(E),ee)}function Y(E){return E===null||E===34||E===39||E===60||E===61||E===96?n(E):E===47||E===62||je(E)?j(E):(e.consume(E),Y)}function K(E){return E===47||E===62||je(E)?j(E):n(E)}function ne(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),t):n(E)}function X(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),Z}function Z(E){return Ce(E)?Se(e,ie,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):ie(E)}function ie(E){return e.enter("htmlTextData"),a(E)}}const Zc={name:"labelEnd",tokenize:t_,resolveTo:e_,resolveAll:J2},X2={tokenize:n_},Z2={tokenize:r_},Q2={tokenize:i_};function J2(e){let t=-1;for(;++t<e.length;){const n=e[t][1];(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++)}return e}function e_(e,t){let n=e.length,r=0,i,s,a,o;for(;n--;)if(i=e[n][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const u={type:e[s][1].type==="labelLink"?"link":"image",start:Object.assign({},e[s][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[s][1].start),end:Object.assign({},e[a][1].end)},d={type:"labelText",start:Object.assign({},e[s+r+2][1].end),end:Object.assign({},e[a-2][1].start)};return o=[["enter",u,t],["enter",c,t]],o=It(o,e.slice(s+1,s+r+3)),o=It(o,[["enter",d,t]]),o=It(o,Xa(t.parser.constructs.insideSpan.null,e.slice(s+r+4,a-3),t)),o=It(o,[["exit",d,t],e[a-2],e[a-1],["exit",c,t]]),o=It(o,e.slice(a+1)),o=It(o,[["exit",u,t]]),Pt(e,s,e.length,o),e}function t_(e,t,n){const r=this;let i=r.events.length,s,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){s=r.events[i][1];break}return o;function o(f){return s?s._inactive?p(f):(a=r.parser.defined.includes(Ht(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),u):n(f)}function u(f){return f===40?e.attempt(X2,d,a?d:p)(f):f===91?e.attempt(Z2,d,a?c:p)(f):a?d(f):p(f)}function c(f){return e.attempt(Q2,d,p)(f)}function d(f){return t(f)}function p(f){return s._balanced=!0,n(f)}}function n_(e,t,n){return r;function r(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),i}function i(p){return je(p)?Ni(e,s)(p):s(p)}function s(p){return p===41?d(p):M0(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function a(p){return je(p)?Ni(e,u)(p):d(p)}function o(p){return n(p)}function u(p){return p===34||p===39||p===40?F0(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):d(p)}function c(p){return je(p)?Ni(e,d)(p):d(p)}function d(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):n(p)}}function r_(e,t,n){const r=this;return i;function i(o){return j0.call(r,e,s,a,"reference","referenceMarker","referenceString")(o)}function s(o){return r.parser.defined.includes(Ht(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function a(o){return n(o)}}function i_(e,t,n){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),i}function i(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const s_={name:"labelStartImage",tokenize:a_,resolveAll:Zc.resolveAll};function a_(e,t,n){const r=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),s}function s(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),a):n(o)}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const o_={name:"labelStartLink",tokenize:u_,resolveAll:Zc.resolveAll};function u_(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),s}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const Bo={name:"lineEnding",tokenize:c_};function c_(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Se(e,t,"linePrefix")}}const Zs={name:"thematicBreak",tokenize:l_};function l_(e,t,n){let r=0,i;return s;function s(c){return e.enter("thematicBreak"),a(c)}function a(c){return i=c,o(c)}function o(c){return c===i?(e.enter("thematicBreakSequence"),u(c)):r>=3&&(c===null||ue(c))?(e.exit("thematicBreak"),t(c)):n(c)}function u(c){return c===i?(e.consume(c),r++,u):(e.exit("thematicBreakSequence"),Ce(c)?Se(e,o,"whitespace")(c):o(c))}}const ht={name:"list",tokenize:f_,continuation:{tokenize:h_},exit:g_},d_={tokenize:x_,partial:!0},p_={tokenize:m_,partial:!0};function f_(e,t,n){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return o;function o(m){const x=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:Lu(m)){if(r.containerState.type||(r.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(Zs,n,c)(m):c(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(m)}return n(m)}function u(m){return Lu(m)&&++a<10?(e.consume(m),u):(!r.interrupt||a<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),c(m)):n(m)}function c(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(gs,r.interrupt?n:d,e.attempt(d_,f,p))}function d(m){return r.containerState.initialBlankLine=!0,s++,f(m)}function p(m){return Ce(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),f):n(m)}function f(m){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function h_(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(gs,i,s);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Se(e,t,"listItemIndent",r.containerState.size+1)(o)}function s(o){return r.containerState.furtherBlankLines||!Ce(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(p_,t,a)(o))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Se(e,e.attempt(ht,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function m_(e,t,n){const r=this;return Se(e,i,"listItemIndent",r.containerState.size+1);function i(s){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(s):n(s)}}function g_(e){e.exit(this.containerState.type)}function x_(e,t,n){const r=this;return Se(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const a=r.events[r.events.length-1];return!Ce(s)&&a&&a[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const Gd={name:"setextUnderline",tokenize:y_,resolveTo:b_};function b_(e,t){let n=e.length,r,i,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const a={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",s?(e.splice(i,0,["enter",a,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[s][1].end)):e[r][1]=a,e.push(["exit",a,t]),e}function y_(e,t,n){const r=this;let i;return s;function s(c){let d=r.events.length,p;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){p=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||p)?(e.enter("setextHeadingLine"),i=c,a(c)):n(c)}function a(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===i?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),Ce(c)?Se(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||ue(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const E_={tokenize:S_,partial:!0};function v_(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:C_,continuation:{tokenize:A_},exit:k_}},text:{91:{name:"gfmFootnoteCall",tokenize:__},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:T_,resolveTo:w_}}}}function T_(e,t,n){const r=this;let i=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){a=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return o;function o(u){if(!a||!a._balanced)return n(u);const c=Ht(r.sliceSerialize({start:a.end,end:r.now()}));return c.codePointAt(0)!==94||!s.includes(c.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function w_(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function __(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,a;return o;function o(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),u}function u(p){return p!==94?n(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(p){if(s>999||p===93&&!a||p===null||p===91||je(p))return n(p);if(p===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(Ht(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(p)}return je(p)||(a=!0),s++,e.consume(p),p===92?d:c}function d(p){return p===91||p===92||p===93?(e.consume(p),s++,c):c(p)}}function C_(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,a=0,o;return u;function u(x){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(x){return x===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(x)}function d(x){if(a>999||x===93&&!o||x===null||x===91||je(x))return n(x);if(x===93){e.exit("chunkString");const g=e.exit("gfmFootnoteDefinitionLabelString");return s=Ht(r.sliceSerialize(g)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return je(x)||(o=!0),a++,e.consume(x),x===92?p:d}function p(x){return x===91||x===92||x===93?(e.consume(x),a++,d):d(x)}function f(x){return x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),i.includes(s)||i.push(s),Se(e,m,"gfmFootnoteDefinitionWhitespace")):n(x)}function m(x){return t(x)}}function A_(e,t,n){return e.check(gs,t,e.attempt(E_,t,n))}function k_(e){e.exit("gfmFootnoteDefinition")}function S_(e,t,n){const r=this;return Se(e,i,"gfmFootnoteDefinitionIndent",5);function i(s){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(s):n(s)}}function R_(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:s,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,o){let u=-1;for(;++u<a.length;)if(a[u][0]==="enter"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._close){let c=u;for(;c--;)if(a[c][0]==="exit"&&a[c][1].type==="strikethroughSequenceTemporary"&&a[c][1]._open&&a[u][1].end.offset-a[u][1].start.offset===a[c][1].end.offset-a[c][1].start.offset){a[u][1].type="strikethroughSequence",a[c][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},a[c][1].start),end:Object.assign({},a[u][1].end)},p={type:"strikethroughText",start:Object.assign({},a[c][1].end),end:Object.assign({},a[u][1].start)},f=[["enter",d,o],["enter",a[c][1],o],["exit",a[c][1],o],["enter",p,o]],m=o.parser.constructs.insideSpan.null;m&&Pt(f,f.length,0,Xa(m,a.slice(c+1,u),o)),Pt(f,f.length,0,[["exit",p,o],["enter",a[u][1],o],["exit",a[u][1],o],["exit",d,o]]),Pt(a,c-1,u-c+3,f),u=c+f.length-2;break}}for(u=-1;++u<a.length;)a[u][1].type==="strikethroughSequenceTemporary"&&(a[u][1].type="data");return a}function s(a,o,u){const c=this.previous,d=this.events;let p=0;return f;function f(x){return c===126&&d[d.length-1][1].type!=="characterEscape"?u(x):(a.enter("strikethroughSequenceTemporary"),m(x))}function m(x){const g=fa(c);if(x===126)return p>1?u(x):(a.consume(x),p++,m);if(p<2&&!n)return u(x);const b=a.exit("strikethroughSequenceTemporary"),y=fa(x);return b._open=!y||y===2&&!!g,b._close=!g||g===2&&!!y,o(x)}}}class N_{constructor(){this.map=[]}add(t,n,r){I_(this,t,n,r)}consume(t){if(this.map.sort(function(s,a){return s[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function I_(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function O_(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function P_(){return{flow:{null:{name:"table",tokenize:D_,resolveAll:L_}}}}function D_(e,t,n){const r=this;let i=0,s=0,a;return o;function o(N){let B=r.events.length-1;for(;B>-1;){const Y=r.events[B][1].type;if(Y==="lineEnding"||Y==="linePrefix")B--;else break}const M=B>-1?r.events[B][1].type:null,ee=M==="tableHead"||M==="tableRow"?R:u;return ee===R&&r.parser.lazy[r.now().line]?n(N):ee(N)}function u(N){return e.enter("tableHead"),e.enter("tableRow"),c(N)}function c(N){return N===124||(a=!0,s+=1),d(N)}function d(N){return N===null?n(N):ue(N)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),m):n(N):Ce(N)?Se(e,d,"whitespace")(N):(s+=1,a&&(a=!1,i+=1),N===124?(e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),a=!0,d):(e.enter("data"),p(N)))}function p(N){return N===null||N===124||je(N)?(e.exit("data"),d(N)):(e.consume(N),N===92?f:p)}function f(N){return N===92||N===124?(e.consume(N),p):p(N)}function m(N){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(N):(e.enter("tableDelimiterRow"),a=!1,Ce(N)?Se(e,x,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):x(N))}function x(N){return N===45||N===58?b(N):N===124?(a=!0,e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),g):C(N)}function g(N){return Ce(N)?Se(e,b,"whitespace")(N):b(N)}function b(N){return N===58?(s+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(N),e.exit("tableDelimiterMarker"),y):N===45?(s+=1,y(N)):N===null||ue(N)?k(N):C(N)}function y(N){return N===45?(e.enter("tableDelimiterFiller"),w(N)):C(N)}function w(N){return N===45?(e.consume(N),w):N===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(N),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(N))}function v(N){return Ce(N)?Se(e,k,"whitespace")(N):k(N)}function k(N){return N===124?x(N):N===null||ue(N)?!a||i!==s?C(N):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(N)):C(N)}function C(N){return n(N)}function R(N){return e.enter("tableRow"),O(N)}function O(N){return N===124?(e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),O):N===null||ue(N)?(e.exit("tableRow"),t(N)):Ce(N)?Se(e,O,"whitespace")(N):(e.enter("data"),D(N))}function D(N){return N===null||N===124||je(N)?(e.exit("data"),O(N)):(e.consume(N),N===92?j:D)}function j(N){return N===92||N===124?(e.consume(N),D):D(N)}}function L_(e,t){let n=-1,r=!0,i=0,s=[0,0,0,0],a=[0,0,0,0],o=!1,u=0,c,d,p;const f=new N_;for(;++n<e.length;){const m=e[n],x=m[1];m[0]==="enter"?x.type==="tableHead"?(o=!1,u!==0&&(Kd(f,t,u,c,d),d=void 0,u=0),c={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},f.add(n,0,[["enter",c,t]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(r=!0,p=void 0,s=[0,0,0,0],a=[0,n+1,0,0],o&&(o=!1,d={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},f.add(n,0,[["enter",d,t]])),i=x.type==="tableDelimiterRow"?2:d?3:1):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(s[1]!==0&&(a[0]=a[1],p=Ps(f,t,s,i,void 0,p),s=[0,0,0,0]),a[2]=n)):x.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(a[0]=a[1],p=Ps(f,t,s,i,void 0,p)),s=a,a=[s[1],n,0,0])):x.type==="tableHead"?(o=!0,u=n):x.type==="tableRow"||x.type==="tableDelimiterRow"?(u=n,s[1]!==0?(a[0]=a[1],p=Ps(f,t,s,i,n,p)):a[1]!==0&&(p=Ps(f,t,a,i,n,p)),i=0):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(a[3]=n)}for(u!==0&&Kd(f,t,u,c,d),f.consume(t.events),n=-1;++n<t.events.length;){const m=t.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=O_(t.events,n))}return e}function Ps(e,t,n,r,i,s){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(s.end=Object.assign({},Nr(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const u=Nr(t.events,n[1]);if(s={type:a,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const c=Nr(t.events,n[2]),d=Nr(t.events,n[3]),p={type:o,start:Object.assign({},c),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",p,t]]),r!==2){const f=t.events[n[2]],m=t.events[n[3]];if(f[1].end=Object.assign({},m[1].end),f[1].type="chunkText",f[1].contentType="text",n[3]>n[2]+1){const x=n[2]+1,g=n[3]-n[2]-1;e.add(x,g,[])}}e.add(n[3]+1,0,[["exit",p,t]])}return i!==void 0&&(s.end=Object.assign({},Nr(t.events,i)),e.add(i,0,[["exit",s,t]]),s=void 0),s}function Kd(e,t,n,r,i){const s=[],a=Nr(t.events,n);i&&(i.end=Object.assign({},a),s.push(["exit",i,t])),r.end=Object.assign({},a),s.push(["exit",r,t]),e.add(n+1,0,s)}function Nr(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const M_={name:"tasklistCheck",tokenize:F_};function j_(){return{text:{91:M_}}}function F_(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),s)}function s(u){return je(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),a):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),a):n(u)}function a(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(u)}function o(u){return ue(u)?t(u):Ce(u)?e.check({tokenize:B_},t,n)(u):n(u)}}function B_(e,t,n){return Se(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function H_(e){return w0([Xw(),v_(),R_(e),P_(),j_()])}const U_={};function B0(e){const t=this,n=e||U_,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(H_(n)),s.push($w()),a.push(Ww(n))}function Xd(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,s=!1;for(;!s;){r===-1&&(r=n.length,s=!0);const a=n.slice(i,r).trim();(a||!s)&&t.push(a),i=r+1,r=n.indexOf(",",i)}return t}function H0(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const z_=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,V_=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$_={};function Zd(e,t){return($_.jsx?V_:z_).test(e)}const W_=/[ \t\n\f\r]/g;function Y_(e){return typeof e=="object"?e.type==="text"?Qd(e.value):!1:Qd(e)}function Qd(e){return e.replace(W_,"")===""}class xs{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}xs.prototype.property={};xs.prototype.normal={};xs.prototype.space=null;function U0(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new xs(n,r,t)}function Vi(e){return e.toLowerCase()}class Dt{constructor(t,n){this.property=t,this.attribute=n}}Dt.prototype.space=null;Dt.prototype.boolean=!1;Dt.prototype.booleanish=!1;Dt.prototype.overloadedBoolean=!1;Dt.prototype.number=!1;Dt.prototype.commaSeparated=!1;Dt.prototype.spaceSeparated=!1;Dt.prototype.commaOrSpaceSeparated=!1;Dt.prototype.mustUseProperty=!1;Dt.prototype.defined=!1;let q_=0;const ye=vr(),Ge=vr(),z0=vr(),$=vr(),Fe=vr(),Ur=vr(),yt=vr();function vr(){return 2**++q_}const Bu=Object.freeze(Object.defineProperty({__proto__:null,boolean:ye,booleanish:Ge,commaOrSpaceSeparated:yt,commaSeparated:Ur,number:$,overloadedBoolean:z0,spaceSeparated:Fe},Symbol.toStringTag,{value:"Module"})),Ho=Object.keys(Bu);class Qc extends Dt{constructor(t,n,r,i){let s=-1;if(super(t,n),Jd(this,"space",i),typeof r=="number")for(;++s<Ho.length;){const a=Ho[s];Jd(this,Ho[s],(r&Bu[a])===Bu[a])}}}Qc.prototype.defined=!0;function Jd(e,t,n){n&&(e[t]=n)}const G_={}.hasOwnProperty;function ui(e){const t={},n={};let r;for(r in e.properties)if(G_.call(e.properties,r)){const i=e.properties[r],s=new Qc(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[Vi(r)]=r,n[Vi(s.attribute)]=r}return new xs(t,n,e.space)}const V0=ui({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),$0=ui({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function W0(e,t){return t in e?e[t]:t}function Y0(e,t){return W0(e,t.toLowerCase())}const q0=ui({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Y0,properties:{xmlns:null,xmlnsXLink:null}}),G0=ui({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Ge,ariaAutoComplete:null,ariaBusy:Ge,ariaChecked:Ge,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControls:Fe,ariaCurrent:null,ariaDescribedBy:Fe,ariaDetails:null,ariaDisabled:Ge,ariaDropEffect:Fe,ariaErrorMessage:null,ariaExpanded:Ge,ariaFlowTo:Fe,ariaGrabbed:Ge,ariaHasPopup:null,ariaHidden:Ge,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Fe,ariaLevel:$,ariaLive:null,ariaModal:Ge,ariaMultiLine:Ge,ariaMultiSelectable:Ge,ariaOrientation:null,ariaOwns:Fe,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:Ge,ariaReadOnly:Ge,ariaRelevant:null,ariaRequired:Ge,ariaRoleDescription:Fe,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:Ge,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null}}),K_=ui({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Y0,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ur,acceptCharset:Fe,accessKey:Fe,action:null,allow:null,allowFullScreen:ye,allowPaymentRequest:ye,allowUserMedia:ye,alt:null,as:null,async:ye,autoCapitalize:null,autoComplete:Fe,autoFocus:ye,autoPlay:ye,blocking:Fe,capture:null,charSet:null,checked:ye,cite:null,className:Fe,cols:$,colSpan:null,content:null,contentEditable:Ge,controls:ye,controlsList:Fe,coords:$|Ur,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ye,defer:ye,dir:null,dirName:null,disabled:ye,download:z0,draggable:Ge,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ye,formTarget:null,headers:Fe,height:$,hidden:ye,high:$,href:null,hrefLang:null,htmlFor:Fe,httpEquiv:Fe,id:null,imageSizes:null,imageSrcSet:null,inert:ye,inputMode:null,integrity:null,is:null,isMap:ye,itemId:null,itemProp:Fe,itemRef:Fe,itemScope:ye,itemType:Fe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ye,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:ye,muted:ye,name:null,nonce:null,noModule:ye,noValidate:ye,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ye,optimum:$,pattern:null,ping:Fe,placeholder:null,playsInline:ye,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ye,referrerPolicy:null,rel:Fe,required:ye,reversed:ye,rows:$,rowSpan:$,sandbox:Fe,scope:null,scoped:ye,seamless:ye,selected:ye,shadowRootClonable:ye,shadowRootDelegatesFocus:ye,shadowRootMode:null,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:Ge,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:ye,useMap:null,value:Ge,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Fe,axis:null,background:null,bgColor:null,border:$,borderColor:null,bottomMargin:$,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ye,declare:ye,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,noResize:ye,noHref:ye,noShade:ye,noWrap:ye,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:Ge,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ye,disableRemotePlayback:ye,prefix:null,property:null,results:$,security:null,unselectable:null}}),X_=ui({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:W0,properties:{about:yt,accentHeight:$,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$,amplitude:$,arabicForm:null,ascent:$,attributeName:null,attributeType:null,azimuth:$,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$,by:null,calcMode:null,capHeight:$,className:Fe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:$,diffuseConstant:$,direction:null,display:null,dur:null,divisor:$,dominantBaseline:null,download:ye,dx:null,dy:null,edgeMode:null,editable:null,elevation:$,enableBackground:null,end:null,event:null,exponent:$,externalResourcesRequired:null,fill:null,fillOpacity:$,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ur,g2:Ur,glyphName:Ur,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$,horizOriginX:$,horizOriginY:$,id:null,ideographic:$,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$,k:$,k1:$,k2:$,k3:$,k4:$,kernelMatrix:yt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:$,overlineThickness:$,paintOrder:null,panose1:null,path:null,pathLength:$,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Fe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:yt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:yt,rev:yt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:yt,requiredFeatures:yt,requiredFonts:yt,requiredFormats:yt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:$,specularExponent:$,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$,strikethroughThickness:$,string:null,stroke:null,strokeDashArray:yt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:yt,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:yt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$,underlineThickness:$,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$,values:null,vAlphabetic:$,vMathematical:$,vectorEffect:null,vHanging:$,vIdeographic:$,version:null,vertAdvY:$,vertOriginX:$,vertOriginY:$,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Z_=/^data[-\w.:]+$/i,ep=/-[a-z]/g,Q_=/[A-Z]/g;function Za(e,t){const n=Vi(t);let r=t,i=Dt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Z_.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(ep,eC);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!ep.test(s)){let a=s.replace(Q_,J_);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=Qc}return new i(r,t)}function J_(e){return"-"+e.toLowerCase()}function eC(e){return e.charAt(1).toUpperCase()}const tC={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},bs=U0([$0,V0,q0,G0,K_],"html"),Qn=U0([$0,V0,q0,G0,X_],"svg");function tp(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function K0(e){return e.join(" ").trim()}var X0={},np=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,nC=/\n/g,rC=/^\s*/,iC=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,sC=/^:\s*/,aC=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,oC=/^[;\s]*/,uC=/^\s+|\s+$/g,cC=`
76
+ `,rp="/",ip="*",ur="",lC="comment",dC="declaration",pC=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(x){var g=x.match(nC);g&&(n+=g.length);var b=x.lastIndexOf(cC);r=~b?x.length-b:r+x.length}function s(){var x={line:n,column:r};return function(g){return g.position=new a(x),c(),g}}function a(x){this.start=x,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function o(x){var g=new Error(t.source+":"+n+":"+r+": "+x);if(g.reason=x,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function u(x){var g=x.exec(e);if(g){var b=g[0];return i(b),e=e.slice(b.length),g}}function c(){u(rC)}function d(x){var g;for(x=x||[];g=p();)g!==!1&&x.push(g);return x}function p(){var x=s();if(!(rp!=e.charAt(0)||ip!=e.charAt(1))){for(var g=2;ur!=e.charAt(g)&&(ip!=e.charAt(g)||rp!=e.charAt(g+1));)++g;if(g+=2,ur===e.charAt(g-1))return o("End of comment missing");var b=e.slice(2,g-2);return r+=2,i(b),e=e.slice(g),r+=2,x({type:lC,comment:b})}}function f(){var x=s(),g=u(iC);if(g){if(p(),!u(sC))return o("property missing ':'");var b=u(aC),y=x({type:dC,property:sp(g[0].replace(np,ur)),value:b?sp(b[0].replace(np,ur)):ur});return u(oC),y}}function m(){var x=[];d(x);for(var g;g=f();)g!==!1&&(x.push(g),d(x));return x}return c(),m()};function sp(e){return e?e.replace(uC,ur):ur}var fC=oa.commonjsGlobal&&oa.commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(X0,"__esModule",{value:!0});var ap=X0.default=mC,hC=fC(pC);function mC(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,hC.default)(e),i=typeof t=="function";return r.forEach(function(s){if(s.type==="declaration"){var a=s.property,o=s.value;i?t(a,o,s):o&&(n=n||{},n[a]=o)}}),n}const gC=ap.default||ap,Qa=Z0("end"),cn=Z0("start");function Z0(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function xC(e){const t=cn(e),n=Qa(e);if(t&&n)return{start:t,end:n}}function Ii(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?op(e.position):"start"in e||"end"in e?op(e):"line"in e||"column"in e?Hu(e):""}function Hu(e){return up(e&&e.line)+":"+up(e&&e.column)}function op(e){return Hu(e&&e.start)+"-"+Hu(e&&e.end)}function up(e){return e&&typeof e=="number"?e:1}class ot extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},a=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?i=t:!s.cause&&t&&(a=!0,i=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?s.ruleId=r:(s.source=r.slice(0,u),s.ruleId=r.slice(u+1))}if(!s.place&&s.ancestors&&s.ancestors){const u=s.ancestors[s.ancestors.length-1];u&&(s.place=u.position)}const o=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=o?o.line:void 0,this.name=Ii(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=a&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}ot.prototype.file="";ot.prototype.name="";ot.prototype.reason="";ot.prototype.message="";ot.prototype.stack="";ot.prototype.column=void 0;ot.prototype.line=void 0;ot.prototype.ancestors=void 0;ot.prototype.cause=void 0;ot.prototype.fatal=void 0;ot.prototype.place=void 0;ot.prototype.ruleId=void 0;ot.prototype.source=void 0;const Jc={}.hasOwnProperty,bC=new Map,yC=/[A-Z]/g,EC=/-([a-z])/g,vC=new Set(["table","tbody","thead","tfoot","tr"]),TC=new Set(["td","th"]),Q0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function wC(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=IC(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=NC(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Qn:bs,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=J0(i,e,void 0);return s&&typeof s!="string"?s:i.create(e,i.Fragment,{children:s||void 0},void 0)}function J0(e,t,n){if(t.type==="element")return _C(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return CC(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return kC(e,t,n);if(t.type==="mdxjsEsm")return AC(e,t);if(t.type==="root")return SC(e,t,n);if(t.type==="text")return RC(e,t)}function _C(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Qn,e.schema=i),e.ancestors.push(t);const s=tg(e,t.tagName,!1),a=OC(e,t);let o=tl(e,t);return vC.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!Y_(u):!0})),eg(e,a,s,t),el(a,o),e.ancestors.pop(),e.schema=r,e.create(t,s,a,n)}function CC(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}$i(e,t.position)}function AC(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);$i(e,t.position)}function kC(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Qn,e.schema=i),e.ancestors.push(t);const s=t.name===null?e.Fragment:tg(e,t.name,!0),a=PC(e,t),o=tl(e,t);return eg(e,a,s,t),el(a,o),e.ancestors.pop(),e.schema=r,e.create(t,s,a,n)}function SC(e,t,n){const r={};return el(r,tl(e,t)),e.create(t,e.Fragment,r,n)}function RC(e,t){return t.value}function eg(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function el(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function NC(e,t,n){return r;function r(i,s,a,o){const c=Array.isArray(a.children)?n:t;return o?c(s,a,o):c(s,a)}}function IC(e,t){return n;function n(r,i,s,a){const o=Array.isArray(s.children),u=cn(r);return t(i,s,a,o,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function OC(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Jc.call(t.properties,i)){const s=DC(e,i,t.properties[i]);if(s){const[a,o]=s;e.tableCellAlignToStyle&&a==="align"&&typeof o=="string"&&TC.has(t.tagName)?r=o:n[a]=o}}if(r){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function PC(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const s=r.data.estree.body[0];s.type;const a=s.expression;a.type;const o=a.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else $i(e,t.position);else{const i=r.name;let s;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,s=e.evaluater.evaluateExpression(o.expression)}else $i(e,t.position);else s=r.value===null?!0:r.value;n[i]=s}return n}function tl(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:bC;for(;++r<t.children.length;){const s=t.children[r];let a;if(e.passKeys){const u=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(u){const c=i.get(u)||0;a=u+"-"+c,i.set(u,c+1)}}const o=J0(e,s,a);o!==void 0&&n.push(o)}return n}function DC(e,t,n){const r=Za(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?H0(n):K0(n)),r.property==="style"){let i=typeof n=="object"?n:LC(e,String(n));return e.stylePropertyNameCase==="css"&&(i=MC(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?tC[r.property]||r.property:r.attribute,n]}}function LC(e,t){const n={};try{gC(t,r)}catch(i){if(!e.ignoreInvalidStyle){const s=i,a=new ot("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:s,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=Q0+"#cannot-parse-style-attribute",a}}return n;function r(i,s){let a=i;a.slice(0,2)!=="--"&&(a.slice(0,4)==="-ms-"&&(a="ms-"+a.slice(4)),a=a.replace(EC,FC)),n[a]=s}}function tg(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let s=-1,a;for(;++s<i.length;){const o=Zd(i[s])?{type:"Identifier",name:i[s]}:{type:"Literal",value:i[s]};a=a?{type:"MemberExpression",object:a,property:o,computed:!!(s&&o.type==="Literal"),optional:!1}:o}r=a}else r=Zd(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Jc.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);$i(e)}function $i(e,t){const n=new ot("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Q0+"#cannot-handle-mdx-estrees-without-createevaluater",n}function MC(e){const t={};let n;for(n in e)Jc.call(e,n)&&(t[jC(n)]=e[n]);return t}function jC(e){let t=e.replace(yC,BC);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function FC(e,t){return t.toUpperCase()}function BC(e){return"-"+e.toLowerCase()}const Uo={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},HC={tokenize:UC};function UC(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Se(e,t,"linePrefix")}function i(o){return e.enter("paragraph"),s(o)}function s(o){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,a(o)}function a(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return ue(o)?(e.consume(o),e.exit("chunkText"),s):(e.consume(o),a)}}const zC={tokenize:VC},cp={tokenize:$C};function VC(e){const t=this,n=[];let r=0,i,s,a;return o;function o(v){if(r<n.length){const k=n[r];return t.containerState=k[1],e.attempt(k[0].continuation,u,c)(v)}return c(v)}function u(v){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&w();const k=t.events.length;let C=k,R;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){R=t.events[C][1].end;break}y(r);let O=k;for(;O<t.events.length;)t.events[O][1].end=Object.assign({},R),O++;return Pt(t.events,C+1,0,t.events.slice(k)),t.events.length=O,c(v)}return o(v)}function c(v){if(r===n.length){if(!i)return f(v);if(i.currentConstruct&&i.currentConstruct.concrete)return x(v);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(cp,d,p)(v)}function d(v){return i&&w(),y(r),f(v)}function p(v){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,x(v)}function f(v){return t.containerState={},e.attempt(cp,m,x)(v)}function m(v){return r++,n.push([t.currentConstruct,t.containerState]),f(v)}function x(v){if(v===null){i&&w(),y(0),e.consume(v);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:s,_tokenizer:i}),g(v)}function g(v){if(v===null){b(e.exit("chunkFlow"),!0),y(0),e.consume(v);return}return ue(v)?(e.consume(v),b(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(v),g)}function b(v,k){const C=t.sliceStream(v);if(k&&C.push(null),v.previous=s,s&&(s.next=v),s=v,i.defineSkip(v.start),i.write(C),t.parser.lazy[v.start.line]){let R=i.events.length;for(;R--;)if(i.events[R][1].start.offset<a&&(!i.events[R][1].end||i.events[R][1].end.offset>a))return;const O=t.events.length;let D=O,j,N;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){if(j){N=t.events[D][1].end;break}j=!0}for(y(r),R=O;R<t.events.length;)t.events[R][1].end=Object.assign({},N),R++;Pt(t.events,D+1,0,t.events.slice(O)),t.events.length=R}}function y(v){let k=n.length;for(;k-- >v;){const C=n[k];t.containerState=C[1],C[0].exit.call(t,e)}n.length=v}function w(){i.write([null]),s=void 0,i=void 0,t.containerState._closeFlow=void 0}}function $C(e,t,n){return Se(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const WC={tokenize:YC};function YC(e){const t=this,n=e.attempt(gs,r,e.attempt(this.parser.constructs.flowInitial,i,Se(e,e.attempt(this.parser.constructs.flow,i,e.attempt(A2,i)),"linePrefix")));return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const qC={resolveAll:rg()},GC=ng("string"),KC=ng("text");function ng(e){return{tokenize:t,resolveAll:rg(e==="text"?XC:void 0)};function t(n){const r=this,i=this.parser.constructs[e],s=n.attempt(i,a,o);return a;function a(d){return c(d)?s(d):o(d)}function o(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),u}function u(d){return c(d)?(n.exit("data"),s(d)):(n.consume(d),u)}function c(d){if(d===null)return!0;const p=i[d];let f=-1;if(p)for(;++f<p.length;){const m=p[f];if(!m.previous||m.previous.call(r,r.previous))return!0}return!1}}}function rg(e){return t;function t(n,r){let i=-1,s;for(;++i<=n.length;)s===void 0?n[i]&&n[i][1].type==="data"&&(s=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==s+2&&(n[s][1].end=n[i-1][1].end,n.splice(s+2,i-s-2),i=s+2),s=void 0);return e?e(n,r):n}}function XC(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let s=i.length,a=-1,o=0,u;for(;s--;){const c=i[s];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)o++,a--;if(a)break;a=-1}else if(c===-2)u=!0,o++;else if(c!==-1){s++;break}}if(o){const c={type:n===e.length||u||o<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-o,offset:r.end.offset-o,_index:r.start._index+s,_bufferIndex:s?a:r.start._bufferIndex+a},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}function ZC(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},s=[];let a=[],o=[];const u={consume:w,enter:v,exit:k,attempt:O(C),check:O(R),interrupt:O(R,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:m,sliceSerialize:f,now:x,defineSkip:g,write:p};let d=t.tokenize.call(c,u);return t.resolveAll&&s.push(t),c;function p(B){return a=It(a,B),b(),a[a.length-1]!==null?[]:(D(t,0),c.events=Xa(s,c.events,c),c.events)}function f(B,M){return JC(m(B),M)}function m(B){return QC(a,B)}function x(){const{line:B,column:M,offset:ee,_index:Y,_bufferIndex:K}=r;return{line:B,column:M,offset:ee,_index:Y,_bufferIndex:K}}function g(B){i[B.line]=B.column,N()}function b(){let B;for(;r._index<a.length;){const M=a[r._index];if(typeof M=="string")for(B=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===B&&r._bufferIndex<M.length;)y(M.charCodeAt(r._bufferIndex));else y(M)}}function y(B){d=d(B)}function w(B){ue(B)?(r.line++,r.column=1,r.offset+=B===-3?2:1,N()):B!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=B}function v(B,M){const ee=M||{};return ee.type=B,ee.start=x(),c.events.push(["enter",ee,c]),o.push(ee),ee}function k(B){const M=o.pop();return M.end=x(),c.events.push(["exit",M,c]),M}function C(B,M){D(B,M.from)}function R(B,M){M.restore()}function O(B,M){return ee;function ee(Y,K,ne){let X,Z,ie,E;return Array.isArray(Y)?oe(Y):"tokenize"in Y?oe([Y]):z(Y);function z(J){return le;function le(de){const be=de!==null&&J[de],pe=de!==null&&J.null,Re=[...Array.isArray(be)?be:be?[be]:[],...Array.isArray(pe)?pe:pe?[pe]:[]];return oe(Re)(de)}}function oe(J){return X=J,Z=0,J.length===0?ne:A(J[Z])}function A(J){return le;function le(de){return E=j(),ie=J,J.partial||(c.currentConstruct=J),J.name&&c.parser.constructs.disable.null.includes(J.name)?ge():J.tokenize.call(M?Object.assign(Object.create(c),M):c,u,te,ge)(de)}}function te(J){return B(ie,E),K}function ge(J){return E.restore(),++Z<X.length?A(X[Z]):ne}}}function D(B,M){B.resolveAll&&!s.includes(B)&&s.push(B),B.resolve&&Pt(c.events,M,c.events.length-M,B.resolve(c.events.slice(M),c)),B.resolveTo&&(c.events=B.resolveTo(c.events,c))}function j(){const B=x(),M=c.previous,ee=c.currentConstruct,Y=c.events.length,K=Array.from(o);return{restore:ne,from:Y};function ne(){r=B,c.previous=M,c.currentConstruct=ee,c.events.length=Y,o=K,N()}}function N(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function QC(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,s=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,s)];else{if(a=e.slice(n,i),r>-1){const o=a[0];typeof o=="string"?a[0]=o.slice(r):a.shift()}s>0&&a.push(e[i].slice(0,s))}return a}function JC(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const s=e[n];let a;if(typeof s=="string")a=s;else switch(s){case-5:{a="\r";break}case-4:{a=`
77
+ `;break}case-3:{a=`\r
78
+ `;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(s)}i=s===-2,r.push(a)}return r.join("")}const eA={42:ht,43:ht,45:ht,48:ht,49:ht,50:ht,51:ht,52:ht,53:ht,54:ht,55:ht,56:ht,57:ht,62:O0},tA={91:I2},nA={[-2]:Fo,[-1]:Fo,32:Fo},rA={35:j2,42:Zs,45:[Gd,Zs],60:U2,61:Gd,95:Zs,96:Yd,126:Yd},iA={38:D0,92:P0},sA={[-5]:Bo,[-4]:Bo,[-3]:Bo,33:s_,38:D0,42:Fu,60:[o2,G2],91:o_,92:[L2,P0],93:Zc,95:Fu,96:E2},aA={null:[Fu,qC]},oA={null:[42,95]},uA={null:[]},cA=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:oA,contentInitial:tA,disable:uA,document:eA,flow:rA,flowInitial:nA,insideSpan:aA,string:iA,text:sA},Symbol.toStringTag,{value:"Module"}));function lA(e){const n=w0([cA,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:i(HC),document:i(zC),flow:i(WC),string:i(GC),text:i(KC)};return r;function i(s){return a;function a(o){return ZC(r,s,o)}}}function dA(e){for(;!L0(e););return e}const lp=/[\0\t\n\r]/g;function pA(){let e=1,t="",n=!0,r;return i;function i(s,a,o){const u=[];let c,d,p,f,m;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(a||void 0).decode(s)),p=0,t="",n&&(s.charCodeAt(0)===65279&&p++,n=void 0);p<s.length;){if(lp.lastIndex=p,c=lp.exec(s),f=c&&c.index!==void 0?c.index:s.length,m=s.charCodeAt(f),!c){t=s.slice(p);break}if(m===10&&p===f&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),p<f&&(u.push(s.slice(p,f)),e+=f-p),m){case 0:{u.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,u.push(-2);e++<d;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}p=f+1}return o&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const ig={}.hasOwnProperty;function fA(e,t,n){return typeof t!="string"&&(n=t,t=void 0),hA(n)(dA(lA(n).document().write(pA()(e,t,!0))))}function hA(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(St),autolinkProtocol:j,autolinkEmail:j,atxHeading:s(kt),blockQuote:s(pe),characterEscape:j,characterReference:j,codeFenced:s(Re),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:s(Re,a),codeText:s(W,a),codeTextData:j,data:j,codeFlowValue:j,definition:s(He),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:s(ct),hardBreakEscape:s(dn),hardBreakTrailing:s(dn),htmlFlow:s(Lt,a),htmlFlowData:j,htmlText:s(Lt,a),htmlTextData:j,image:s(nr),label:a,link:s(St),listItem:s(To),listItemValue:f,listOrdered:s(rr,p),listUnordered:s(rr),paragraph:s(wo),reference:A,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:s(kt),strong:s(_o),thematicBreak:s(fe)},exit:{atxHeading:u(),atxHeadingSequence:C,autolink:u(),autolinkEmail:be,autolinkProtocol:de,blockQuote:u(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:J,characterReference:le,codeFenced:u(b),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:x,codeFlowValue:N,codeIndented:u(y),codeText:u(K),codeTextData:N,data:N,definition:u(),definitionDestinationString:k,definitionLabelString:w,definitionTitleString:v,emphasis:u(),hardBreakEscape:u(M),hardBreakTrailing:u(M),htmlFlow:u(ee),htmlFlowData:N,htmlText:u(Y),htmlTextData:N,image:u(X),label:ie,labelText:Z,lineEnding:B,link:u(ne),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:te,resourceDestinationString:E,resourceTitleString:z,resource:oe,setextHeading:u(D),setextHeadingLineSequence:O,setextHeadingText:R,strong:u(),thematicBreak:u()}};sg(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(P){let H={type:"root",children:[]};const se={stack:[H],tokenStack:[],config:t,enter:o,exit:c,buffer:a,resume:d,data:n},ve=[];let Ae=-1;for(;++Ae<P.length;)if(P[Ae][1].type==="listOrdered"||P[Ae][1].type==="listUnordered")if(P[Ae][0]==="enter")ve.push(Ae);else{const lt=ve.pop();Ae=i(P,lt,Ae)}for(Ae=-1;++Ae<P.length;){const lt=t[P[Ae][0]];ig.call(lt,P[Ae][1].type)&&lt[P[Ae][1].type].call(Object.assign({sliceSerialize:P[Ae][2].sliceSerialize},se),P[Ae][1])}if(se.tokenStack.length>0){const lt=se.tokenStack[se.tokenStack.length-1];(lt[1]||dp).call(se,void 0,lt[0])}for(H.position={start:Sn(P.length>0?P[0][1].start:{line:1,column:1,offset:0}),end:Sn(P.length>0?P[P.length-2][1].end:{line:1,column:1,offset:0})},Ae=-1;++Ae<t.transforms.length;)H=t.transforms[Ae](H)||H;return H}function i(P,H,se){let ve=H-1,Ae=-1,lt=!1,Mt,xt,Yt,pn;for(;++ve<=se;){const Qe=P[ve];switch(Qe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Qe[0]==="enter"?Ae++:Ae--,pn=void 0;break}case"lineEndingBlank":{Qe[0]==="enter"&&(Mt&&!pn&&!Ae&&!Yt&&(Yt=ve),pn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:pn=void 0}if(!Ae&&Qe[0]==="enter"&&Qe[1].type==="listItemPrefix"||Ae===-1&&Qe[0]==="exit"&&(Qe[1].type==="listUnordered"||Qe[1].type==="listOrdered")){if(Mt){let qt=ve;for(xt=void 0;qt--;){const bt=P[qt];if(bt[1].type==="lineEnding"||bt[1].type==="lineEndingBlank"){if(bt[0]==="exit")continue;xt&&(P[xt][1].type="lineEndingBlank",lt=!0),bt[1].type="lineEnding",xt=qt}else if(!(bt[1].type==="linePrefix"||bt[1].type==="blockQuotePrefix"||bt[1].type==="blockQuotePrefixWhitespace"||bt[1].type==="blockQuoteMarker"||bt[1].type==="listItemIndent"))break}Yt&&(!xt||Yt<xt)&&(Mt._spread=!0),Mt.end=Object.assign({},xt?P[xt][1].start:Qe[1].end),P.splice(xt||ve,0,["exit",Mt,Qe[2]]),ve++,se++}if(Qe[1].type==="listItemPrefix"){const qt={type:"listItem",_spread:!1,start:Object.assign({},Qe[1].start),end:void 0};Mt=qt,P.splice(ve,0,["enter",qt,Qe[2]]),ve++,se++,Yt=void 0,pn=!0}}}return P[H][1]._spread=lt,se}function s(P,H){return se;function se(ve){o.call(this,P(ve),ve),H&&H.call(this,ve)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(P,H,se){this.stack[this.stack.length-1].children.push(P),this.stack.push(P),this.tokenStack.push([H,se]),P.position={start:Sn(H.start),end:void 0}}function u(P){return H;function H(se){P&&P.call(this,se),c.call(this,se)}}function c(P,H){const se=this.stack.pop(),ve=this.tokenStack.pop();if(ve)ve[0].type!==P.type&&(H?H.call(this,P,ve[0]):(ve[1]||dp).call(this,P,ve[0]));else throw new Error("Cannot close `"+P.type+"` ("+Ii({start:P.start,end:P.end})+"): it’s not open");se.position.end=Sn(P.end)}function d(){return qc(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function f(P){if(this.data.expectingFirstListItemValue){const H=this.stack[this.stack.length-2];H.start=Number.parseInt(this.sliceSerialize(P),10),this.data.expectingFirstListItemValue=void 0}}function m(){const P=this.resume(),H=this.stack[this.stack.length-1];H.lang=P}function x(){const P=this.resume(),H=this.stack[this.stack.length-1];H.meta=P}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){const P=this.resume(),H=this.stack[this.stack.length-1];H.value=P.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const P=this.resume(),H=this.stack[this.stack.length-1];H.value=P.replace(/(\r?\n|\r)$/g,"")}function w(P){const H=this.resume(),se=this.stack[this.stack.length-1];se.label=H,se.identifier=Ht(this.sliceSerialize(P)).toLowerCase()}function v(){const P=this.resume(),H=this.stack[this.stack.length-1];H.title=P}function k(){const P=this.resume(),H=this.stack[this.stack.length-1];H.url=P}function C(P){const H=this.stack[this.stack.length-1];if(!H.depth){const se=this.sliceSerialize(P).length;H.depth=se}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function O(P){const H=this.stack[this.stack.length-1];H.depth=this.sliceSerialize(P).codePointAt(0)===61?1:2}function D(){this.data.setextHeadingSlurpLineEnding=void 0}function j(P){const se=this.stack[this.stack.length-1].children;let ve=se[se.length-1];(!ve||ve.type!=="text")&&(ve=q(),ve.position={start:Sn(P.start),end:void 0},se.push(ve)),this.stack.push(ve)}function N(P){const H=this.stack.pop();H.value+=this.sliceSerialize(P),H.position.end=Sn(P.end)}function B(P){const H=this.stack[this.stack.length-1];if(this.data.atHardBreak){const se=H.children[H.children.length-1];se.position.end=Sn(P.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(H.type)&&(j.call(this,P),N.call(this,P))}function M(){this.data.atHardBreak=!0}function ee(){const P=this.resume(),H=this.stack[this.stack.length-1];H.value=P}function Y(){const P=this.resume(),H=this.stack[this.stack.length-1];H.value=P}function K(){const P=this.resume(),H=this.stack[this.stack.length-1];H.value=P}function ne(){const P=this.stack[this.stack.length-1];if(this.data.inReference){const H=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=H,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function X(){const P=this.stack[this.stack.length-1];if(this.data.inReference){const H=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=H,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function Z(P){const H=this.sliceSerialize(P),se=this.stack[this.stack.length-2];se.label=Iw(H),se.identifier=Ht(H).toLowerCase()}function ie(){const P=this.stack[this.stack.length-1],H=this.resume(),se=this.stack[this.stack.length-1];if(this.data.inReference=!0,se.type==="link"){const ve=P.children;se.children=ve}else se.alt=H}function E(){const P=this.resume(),H=this.stack[this.stack.length-1];H.url=P}function z(){const P=this.resume(),H=this.stack[this.stack.length-1];H.title=P}function oe(){this.data.inReference=void 0}function A(){this.data.referenceType="collapsed"}function te(P){const H=this.resume(),se=this.stack[this.stack.length-1];se.label=H,se.identifier=Ht(this.sliceSerialize(P)).toLowerCase(),this.data.referenceType="full"}function ge(P){this.data.characterReferenceType=P.type}function J(P){const H=this.sliceSerialize(P),se=this.data.characterReferenceType;let ve;se?(ve=T0(H,se==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ve=Kc(H);const Ae=this.stack[this.stack.length-1];Ae.value+=ve}function le(P){const H=this.stack.pop();H.position.end=Sn(P.end)}function de(P){N.call(this,P);const H=this.stack[this.stack.length-1];H.url=this.sliceSerialize(P)}function be(P){N.call(this,P);const H=this.stack[this.stack.length-1];H.url="mailto:"+this.sliceSerialize(P)}function pe(){return{type:"blockquote",children:[]}}function Re(){return{type:"code",lang:null,meta:null,value:""}}function W(){return{type:"inlineCode",value:""}}function He(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ct(){return{type:"emphasis",children:[]}}function kt(){return{type:"heading",depth:0,children:[]}}function dn(){return{type:"break"}}function Lt(){return{type:"html",value:""}}function nr(){return{type:"image",title:null,url:"",alt:null}}function St(){return{type:"link",title:null,url:"",children:[]}}function rr(P){return{type:"list",ordered:P.type==="listOrdered",start:null,spread:P._spread,children:[]}}function To(P){return{type:"listItem",spread:P._spread,checked:null,children:[]}}function wo(){return{type:"paragraph",children:[]}}function _o(){return{type:"strong",children:[]}}function q(){return{type:"text",value:""}}function fe(){return{type:"thematicBreak"}}}function Sn(e){return{line:e.line,column:e.column,offset:e.offset}}function sg(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?sg(e,r):mA(e,r)}}function mA(e,t){let n;for(n in t)if(ig.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function dp(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ii({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ii({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ii({start:t.start,end:t.end})+") is still open")}function gA(e){const t=this;t.parser=n;function n(r){return fA(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function xA(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function bA(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
79
+ `}]}function yA(e,t){const n=t.value?t.value+`
80
+ `:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function EA(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function vA(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function TA(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=oi(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let a,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=s+1,o+=1,e.footnoteCounts.set(r,o);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,u);const c={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,c),e.applyData(t,c)}function wA(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _A(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function ag(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),s=i[0];s&&s.type==="text"?s.value="["+s.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function CA(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ag(e,t);const i={src:oi(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,s),e.applyData(t,s)}function AA(e,t){const n={src:oi(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function kA(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function SA(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ag(e,t);const i={href:oi(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function RA(e,t){const n={href:oi(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function NA(e,t,n){const r=e.all(t),i=n?IA(n):og(t),s={},a=[];if(typeof t.checked=="boolean"){const d=r[0];let p;d&&d.type==="element"&&d.tagName==="p"?p=d:(p={type:"element",tagName:"p",properties:{},children:[]},r.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const d=r[o];(i||o!==0||d.type!=="element"||d.tagName!=="p")&&a.push({type:"text",value:`
81
+ `}),d.type==="element"&&d.tagName==="p"&&!i?a.push(...d.children):a.push(d)}const u=r[r.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&a.push({type:"text",value:`
82
+ `});const c={type:"element",tagName:"li",properties:s,children:a};return e.patch(t,c),e.applyData(t,c)}function IA(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=og(n[r])}return t}function og(e){const t=e.spread;return t??e.children.length>1}function OA(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)}function PA(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function DA(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function LA(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function MA(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=cn(t.children[1]),u=Qa(t.children[t.children.length-1]);o&&u&&(a.position={start:o,end:u}),i.push(a)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function jA(e,t,n){const r=n?n.children:void 0,s=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,o=a?a.length:t.children.length;let u=-1;const c=[];for(;++u<o;){const p=t.children[u],f={},m=a?a[u]:void 0;m&&(f.align=m);let x={type:"element",tagName:s,properties:f,children:[]};p&&(x.children=e.all(p),e.patch(p,x),x=e.applyData(p,x)),c.push(x)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,d),e.applyData(t,d)}function FA(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const pp=9,fp=32;function BA(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const s=[];for(;r;)s.push(hp(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return s.push(hp(t.slice(i),i>0,!1)),s.join("")}function hp(e,t,n){let r=0,i=e.length;if(t){let s=e.codePointAt(r);for(;s===pp||s===fp;)r++,s=e.codePointAt(r)}if(n){let s=e.codePointAt(i-1);for(;s===pp||s===fp;)i--,s=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function HA(e,t){const n={type:"text",value:BA(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function UA(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const zA={blockquote:xA,break:bA,code:yA,delete:EA,emphasis:vA,footnoteReference:TA,heading:wA,html:_A,imageReference:CA,image:AA,inlineCode:kA,linkReference:SA,link:RA,listItem:NA,list:OA,paragraph:PA,root:DA,strong:LA,table:MA,tableCell:FA,tableRow:jA,text:HA,thematicBreak:UA,toml:Ds,yaml:Ds,definition:Ds,footnoteDefinition:Ds};function Ds(){}const ug=-1,Ja=0,ha=1,ma=2,nl=3,rl=4,il=5,sl=6,cg=7,lg=8,mp=typeof self=="object"?self:globalThis,VA=(e,t)=>{const n=(i,s)=>(e.set(s,i),i),r=i=>{if(e.has(i))return e.get(i);const[s,a]=t[i];switch(s){case Ja:case ug:return n(a,i);case ha:{const o=n([],i);for(const u of a)o.push(r(u));return o}case ma:{const o=n({},i);for(const[u,c]of a)o[r(u)]=r(c);return o}case nl:return n(new Date(a),i);case rl:{const{source:o,flags:u}=a;return n(new RegExp(o,u),i)}case il:{const o=n(new Map,i);for(const[u,c]of a)o.set(r(u),r(c));return o}case sl:{const o=n(new Set,i);for(const u of a)o.add(r(u));return o}case cg:{const{name:o,message:u}=a;return n(new mp[o](u),i)}case lg:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i)}return n(new mp[s](a),i)};return r},gp=e=>VA(new Map,e)(0),kr="",{toString:$A}={},{keys:WA}=Object,xi=e=>{const t=typeof e;if(t!=="object"||!e)return[Ja,t];const n=$A.call(e).slice(8,-1);switch(n){case"Array":return[ha,kr];case"Object":return[ma,kr];case"Date":return[nl,kr];case"RegExp":return[rl,kr];case"Map":return[il,kr];case"Set":return[sl,kr]}return n.includes("Array")?[ha,n]:n.includes("Error")?[cg,n]:[ma,n]},Ls=([e,t])=>e===Ja&&(t==="function"||t==="symbol"),YA=(e,t,n,r)=>{const i=(a,o)=>{const u=r.push(a)-1;return n.set(o,u),u},s=a=>{if(n.has(a))return n.get(a);let[o,u]=xi(a);switch(o){case Ja:{let d=a;switch(u){case"bigint":o=lg,d=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);d=null;break;case"undefined":return i([ug],a)}return i([o,d],a)}case ha:{if(u)return i([u,[...a]],a);const d=[],p=i([o,d],a);for(const f of a)d.push(s(f));return p}case ma:{if(u)switch(u){case"BigInt":return i([u,a.toString()],a);case"Boolean":case"Number":case"String":return i([u,a.valueOf()],a)}if(t&&"toJSON"in a)return s(a.toJSON());const d=[],p=i([o,d],a);for(const f of WA(a))(e||!Ls(xi(a[f])))&&d.push([s(f),s(a[f])]);return p}case nl:return i([o,a.toISOString()],a);case rl:{const{source:d,flags:p}=a;return i([o,{source:d,flags:p}],a)}case il:{const d=[],p=i([o,d],a);for(const[f,m]of a)(e||!(Ls(xi(f))||Ls(xi(m))))&&d.push([s(f),s(m)]);return p}case sl:{const d=[],p=i([o,d],a);for(const f of a)(e||!Ls(xi(f)))&&d.push(s(f));return p}}const{message:c}=a;return i([o,{name:u,message:c}],a)};return s},xp=(e,{json:t,lossy:n}={})=>{const r=[];return YA(!(t||n),!!t,new Map,r)(e),r},Gr=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?gp(xp(e,t)):structuredClone(e):(e,t)=>gp(xp(e,t));function qA(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function GA(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function KA(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||qA,r=e.options.footnoteBackLabel||GA,i=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let u=-1;for(;++u<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[u]);if(!c)continue;const d=e.all(c),p=String(c.identifier).toUpperCase(),f=oi(p.toLowerCase());let m=0;const x=[],g=e.footnoteCounts.get(p);for(;g!==void 0&&++m<=g;){x.length>0&&x.push({type:"text",value:" "});let w=typeof n=="string"?n:n(u,m);typeof w=="string"&&(w={type:"text",value:w}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,m),className:["data-footnote-backref"]},children:Array.isArray(w)?w:[w]})}const b=d[d.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const w=b.children[b.children.length-1];w&&w.type==="text"?w.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...x)}else d.push(...x);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(d,!0)};e.patch(c,y),o.push(y)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Gr(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
83
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
84
+ `}]}}const Uu={}.hasOwnProperty,XA={};function ZA(e,t){const n=t||XA,r=new Map,i=new Map,s=new Map,a={...zA,...n.handlers},o={all:c,applyData:JA,definitionById:r,footnoteById:i,footnoteCounts:s,footnoteOrder:[],handlers:a,one:u,options:n,patch:QA,wrap:tk};return Ka(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const p=d.type==="definition"?r:i,f=String(d.identifier).toUpperCase();p.has(f)||p.set(f,d)}}),o;function u(d,p){const f=d.type,m=o.handlers[f];if(Uu.call(o.handlers,f)&&m)return m(o,d,p);if(o.options.passThrough&&o.options.passThrough.includes(f)){if("children"in d){const{children:g,...b}=d,y=Gr(b);return y.children=o.all(d),y}return Gr(d)}return(o.options.unknownHandler||ek)(o,d,p)}function c(d){const p=[];if("children"in d){const f=d.children;let m=-1;for(;++m<f.length;){const x=o.one(f[m],d);if(x){if(m&&f[m-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=bp(x.value)),!Array.isArray(x)&&x.type==="element")){const g=x.children[0];g&&g.type==="text"&&(g.value=bp(g.value))}Array.isArray(x)?p.push(...x):p.push(x)}}}return p}}function QA(e,t){e.position&&(t.position=xC(e))}function JA(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,s=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&s&&Object.assign(n.properties,Gr(s)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function ek(e,t){const n=t.data||{},r="value"in t&&!(Uu.call(n,"hProperties")||Uu.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function tk(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
85
+ `});++r<e.length;)r&&n.push({type:"text",value:`
86
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
87
+ `}),n}function bp(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function yp(e,t){const n=ZA(e,t),r=n.one(e,void 0),i=KA(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&s.children.push({type:"text",value:`
88
+ `},i),s}function nk(e,t){return e&&"run"in e?async function(n,r){const i=yp(n,{file:r,...t});await e.run(i,r)}:function(n,r){return yp(n,{file:r,...e||t})}}function Ep(e){if(e)throw e}var Qs=Object.prototype.hasOwnProperty,dg=Object.prototype.toString,vp=Object.defineProperty,Tp=Object.getOwnPropertyDescriptor,wp=function(t){return typeof Array.isArray=="function"?Array.isArray(t):dg.call(t)==="[object Array]"},_p=function(t){if(!t||dg.call(t)!=="[object Object]")return!1;var n=Qs.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Qs.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Qs.call(t,i)},Cp=function(t,n){vp&&n.name==="__proto__"?vp(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Ap=function(t,n){if(n==="__proto__")if(Qs.call(t,n)){if(Tp)return Tp(t,n).value}else return;return t[n]},rk=function e(){var t,n,r,i,s,a,o=arguments[0],u=1,c=arguments.length,d=!1;for(typeof o=="boolean"&&(d=o,o=arguments[1]||{},u=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});u<c;++u)if(t=arguments[u],t!=null)for(n in t)r=Ap(o,n),i=Ap(t,n),o!==i&&(d&&i&&(_p(i)||(s=wp(i)))?(s?(s=!1,a=r&&wp(r)?r:[]):a=r&&_p(r)?r:{},Cp(o,{name:n,newValue:e(d,a,i)})):typeof i<"u"&&Cp(o,{name:n,newValue:i}));return o};const zo=oa.getDefaultExportFromCjs(rk);function zu(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ik(){const e=[],t={run:n,use:r};return t;function n(...i){let s=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);o(null,...i);function o(u,...c){const d=e[++s];let p=-1;if(u){a(u);return}for(;++p<i.length;)(c[p]===null||c[p]===void 0)&&(c[p]=i[p]);i=c,d?sk(d,o)(...c):a(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function sk(e,t){let n;return r;function r(...a){const o=e.length>a.length;let u;o&&a.push(i);try{u=e.apply(this,a)}catch(c){const d=c;if(o&&n)throw d;return i(d)}o||(u&&u.then&&typeof u.then=="function"?u.then(s,i):u instanceof Error?i(u):s(u))}function i(a,...o){n||(n=!0,t(a,...o))}function s(a){i(null,a)}}const Kt={basename:ak,dirname:ok,extname:uk,join:ck,sep:"/"};function ak(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ys(e);let n=0,r=-1,i=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else a<0&&(s=!0,a=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function ok(e){if(ys(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function uk(e){ys(e);let t=e.length,n=-1,r=0,i=-1,s=0,a;for(;t--;){const o=e.codePointAt(t);if(o===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),o===46?i<0?i=t:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function ck(...e){let t=-1,n;for(;++t<e.length;)ys(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":lk(n)}function lk(e){ys(e);const t=e.codePointAt(0)===47;let n=dk(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function dk(e,t){let n="",r=0,i=-1,s=0,a=-1,o,u;for(;++a<=e.length;){if(a<e.length)o=e.codePointAt(a);else{if(o===47)break;o=47}if(o===47){if(!(i===a-1||s===1))if(i!==a-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=a,s=0;continue}}else if(n.length>0){n="",r=0,i=a,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,s=0}else o===46&&s>-1?s++:s=-1}return n}function ys(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const pk={cwd:fk};function fk(){return"/"}function Vu(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function hk(e){if(typeof e=="string")e=new URL(e);else if(!Vu(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return mk(e)}function mk(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Vo=["history","path","basename","stem","extname","dirname"];class pg{constructor(t){let n;t?Vu(t)?n={path:t}:typeof t=="string"||gk(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":pk.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Vo.length;){const s=Vo[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)Vo.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Kt.basename(this.path):void 0}set basename(t){Wo(t,"basename"),$o(t,"basename"),this.path=Kt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Kt.dirname(this.path):void 0}set dirname(t){kp(this.basename,"dirname"),this.path=Kt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Kt.extname(this.path):void 0}set extname(t){if($o(t,"extname"),kp(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Kt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Vu(t)&&(t=hk(t)),Wo(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Kt.basename(this.path,this.extname):void 0}set stem(t){Wo(t,"stem"),$o(t,"stem"),this.path=Kt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new ot(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function $o(e,t){if(e&&e.includes(Kt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Kt.sep+"`")}function Wo(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function kp(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function gk(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const xk=function(e){const r=this.constructor.prototype,i=r[e],s=function(){return i.apply(s,arguments)};return Object.setPrototypeOf(s,r),s},bk={}.hasOwnProperty;class al extends xk{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=ik()}copy(){const t=new al;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(zo(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Go("data",this.frozen),this.namespace[t]=n,this):bk.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Go("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Ms(t),r=this.parser||this.Parser;return Yo("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Yo("process",this.parser||this.Parser),qo("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(s,a){const o=Ms(t),u=r.parse(o);r.run(u,o,function(d,p,f){if(d||!p||!f)return c(d);const m=p,x=r.stringify(m,f);vk(x)?f.value=x:f.result=x,c(d,f)});function c(d,p){d||!p?a(d):s?s(p):n(void 0,p)}}}processSync(t){let n=!1,r;return this.freeze(),Yo("processSync",this.parser||this.Parser),qo("processSync",this.compiler||this.Compiler),this.process(t,i),Rp("processSync","process",n),r;function i(s,a){n=!0,Ep(s),r=a}}run(t,n,r){Sp(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(a,o){const u=Ms(n);i.run(t,u,c);function c(d,p,f){const m=p||t;d?o(d):a?a(m):r(void 0,m,f)}}}runSync(t,n){let r=!1,i;return this.run(t,n,s),Rp("runSync","run",r),i;function s(a,o){Ep(a),i=o,r=!0}}stringify(t,n){this.freeze();const r=Ms(n),i=this.compiler||this.Compiler;return qo("stringify",i),Sp(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Go("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(c){if(typeof c=="function")u(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[d,...p]=c;u(d,p)}else a(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function a(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(c.plugins),c.settings&&(i.settings=zo(!0,i.settings,c.settings))}function o(c){let d=-1;if(c!=null)if(Array.isArray(c))for(;++d<c.length;){const p=c[d];s(p)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function u(c,d){let p=-1,f=-1;for(;++p<r.length;)if(r[p][0]===c){f=p;break}if(f===-1)r.push([c,...d]);else if(d.length>0){let[m,...x]=d;const g=r[f][1];zu(g)&&zu(m)&&(m=zo(!0,g,m)),r[f]=[c,m,...x]}}}}const yk=new al().freeze();function Yo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function qo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Go(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Sp(e){if(!zu(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Rp(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ms(e){return Ek(e)?e:new pg(e)}function Ek(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function vk(e){return typeof e=="string"||Tk(e)}function Tk(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const wk="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Np=[],Ip={allowDangerousHtml:!0},_k=/^(https?|ircs?|mailto|xmpp)$/i,Ck=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ak(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,s=e.components,a=e.disallowedElements,o=e.rehypePlugins||Np,u=e.remarkPlugins||Np,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ip}:Ip,d=e.skipHtml,p=e.unwrapDisallowed,f=e.urlTransform||kk,m=yk().use(gA).use(u).use(nk,c).use(o),x=new pg;typeof r=="string"&&(x.value=r);for(const w of Ck)Object.hasOwn(e,w.from)&&(""+w.from+(w.to?"use `"+w.to+"` instead":"remove it")+wk+w.id,void 0);const g=m.parse(x);let b=m.runSync(g,x);return i&&(b={type:"element",tagName:"div",properties:{className:i},children:b.type==="root"?b.children:[b]}),Ka(b,y),wC(b,{Fragment:l.jsxRuntimeExports.Fragment,components:s,ignoreInvalidStyle:!0,jsx:l.jsxRuntimeExports.jsx,jsxs:l.jsxRuntimeExports.jsxs,passKeys:!0,passNode:!0});function y(w,v,k){if(w.type==="raw"&&k&&typeof v=="number")return d?k.children.splice(v,1):k.children[v]={type:"text",value:w.value},v;if(w.type==="element"){let C;for(C in Uo)if(Object.hasOwn(Uo,C)&&Object.hasOwn(w.properties,C)){const R=w.properties[C],O=Uo[C];(O===null||O.includes(w.tagName))&&(w.properties[C]=f(String(R||""),C,w))}}if(w.type==="element"){let C=t?!t.includes(w.tagName):a?a.includes(w.tagName):!1;if(!C&&n&&typeof v=="number"&&(C=!n(w,v,k)),C&&k&&typeof v=="number")return p&&w.children?k.children.splice(v,1,...w.children):k.children.splice(v,1),v}}}function kk(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||_k.test(e.slice(0,t))?e:""}const fg=l.React$1.memo(Ak,(e,t)=>e.children===t.children&&e.className===t.className),Op=/[#.]/g;function Sk(e,t){const n=e||"",r={};let i=0,s,a;for(;i<n.length;){Op.lastIndex=i;const o=Op.exec(n),u=n.slice(i,o?o.index:n.length);u&&(s?s==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:a=u,i+=u.length),o&&(s=o[0],i++)}return{type:"element",tagName:a||t||"div",properties:r,children:[]}}const $u={}.hasOwnProperty;function hg(e,t,n){const r=n&&Ok(n);function i(s,a,...o){let u=-1,c;if(s==null){c={type:"root",children:[]};const d=a;o.unshift(d)}else if(c=Sk(s,t),c.tagName=c.tagName.toLowerCase(),r&&$u.call(r,c.tagName)&&(c.tagName=r[c.tagName]),Rk(a))o.unshift(a);else{let d;for(d in a)$u.call(a,d)&&Nk(e,c.properties,d,a[d])}for(;++u<o.length;)Wu(c.children,o[u]);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}return i}function Rk(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const s=i;for(const a of s)if(typeof a!="number"&&typeof a!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Nk(e,t,n,r){const i=Za(e,n);let s=-1,a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?i.spaceSeparated?a=tp(r):i.commaSeparated?a=Xd(r):i.commaOrSpaceSeparated?a=tp(Xd(r).join(" ")):a=Pp(i,i.property,r):Array.isArray(r)?a=r.concat():a=i.property==="style"?Ik(r):String(r);if(Array.isArray(a)){const o=[];for(;++s<a.length;){const u=Pp(i,i.property,a[s]);o[s]=u}a=o}if(i.property==="className"&&Array.isArray(t.className)){const o=a;a=t.className.concat(o)}t[i.property]=a}}function Wu(e,t){let n=-1;if(t!=null)if(typeof t=="string"||typeof t=="number")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)Wu(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?Wu(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Pp(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Vi(n)===Vi(t)))return!0}return n}function Ik(e){const t=[];let n;for(n in e)$u.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function Ok(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const Pk=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","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","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Dk=hg(bs,"div"),Lk=hg(Qn,"g",Pk);function Mk(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(s){if(typeof s=="number"&&s>-1&&s<=t.length){let a=0;for(;;){let o=n[a];if(o===void 0){const u=Dp(t,n[a-1]);o=u===-1?t.length+1:u+1,n[a]=o}if(o>s)return{line:a+1,column:s-(a>0?n[a-1]:0)+1,offset:s};a++}}}function i(s){if(s&&typeof s.line=="number"&&typeof s.column=="number"&&!Number.isNaN(s.line)&&!Number.isNaN(s.column)){for(;n.length<s.line;){const o=n[n.length-1],u=Dp(t,o),c=u===-1?t.length+1:u+1;if(o===c)break;n.push(c)}const a=(s.line>1?n[s.line-2]:0)+s.column-1;if(a<n[s.line-1])return a}}}function Dp(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
89
+ `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const lr={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},mg={}.hasOwnProperty,jk=Object.prototype;function Fk(e,t){const n=t||{};return ol({file:n.file||void 0,location:!1,schema:n.space==="svg"?Qn:bs,verbose:n.verbose||!1},e)}function ol(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Js(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:gg(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const s=String(e.file),a=Mk(s),o=a.toPoint(0),u=a.toPoint(s.length);n.position={start:o,end:u}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Js(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Js(e,r,n),n}default:return n=Bk(e,t),n}}function gg(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=ol(e,t[n]);r.push(i)}return r}function Bk(e,t){const n=e.schema;e.schema=t.namespaceURI===lr.svg?Qn:bs;let r=-1;const i={};for(;++r<t.attrs.length;){const o=t.attrs[r],u=(o.prefix?o.prefix+":":"")+o.name;mg.call(jk,u)||(i[u]=o.value)}const a=(e.schema.space==="svg"?Lk:Dk)(t.tagName,i,gg(e,t.childNodes));if(Js(e,t,a),a.tagName==="template"){const o=t,u=o.sourceCodeLocation,c=u&&u.startTag&&Or(u.startTag),d=u&&u.endTag&&Or(u.endTag),p=ol(e,o.content);c&&d&&e.file&&(p.position={start:c.end,end:d.start}),a.content=p}return e.schema=n,a}function Js(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=Hk(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Hk(e,t,n){const r=Or(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const s={};let a;if(n.attrs)for(a in n.attrs)mg.call(n.attrs,a)&&(s[Za(e.schema,a).property]=Or(n.attrs[a]));n.startTag;const o=Or(n.startTag),u=n.endTag?Or(n.endTag):void 0,c={opening:o};u&&(c.closing=u),c.properties=s,t.data={position:c}}}return r}function Or(e){const t=Lp({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Lp({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Lp(e){return e.line&&e.column?e:void 0}const Uk={},zk={}.hasOwnProperty,xg=c0("type",{handlers:{root:$k,element:Kk,text:qk,comment:Gk,doctype:Yk}});function Vk(e,t){const r=(t||Uk).space;return xg(e,r==="svg"?Qn:bs)}function $k(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=ul(e.children,n,t),ci(e,n),n}function Wk(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=ul(e.children,n,t),ci(e,n),n}function Yk(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return ci(e,t),t}function qk(e){const t={nodeName:"#text",value:e.value,parentNode:null};return ci(e,t),t}function Gk(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return ci(e,t),t}function Kk(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Qn);const i=[];let s;if(e.properties){for(s in e.properties)if(s!=="children"&&zk.call(e.properties,s)){const u=Xk(r,s,e.properties[s]);u&&i.push(u)}}const a=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:lr[a],childNodes:[],parentNode:null};return o.childNodes=ul(e.children,o,r),ci(e,o),e.tagName==="template"&&e.content&&(o.content=Wk(e.content,r)),o}function Xk(e,t,n){const r=Za(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?H0(n):K0(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const s=i.name.indexOf(":");s<0?i.prefix="":(i.name=i.name.slice(s+1),i.prefix=r.attribute.slice(0,s)),i.namespace=lr[r.space]}return i}function ul(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const s=xg(e[r],n);s.parentNode=t,i.push(s)}return i}function ci(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const Zk=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Qk=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ue="�";var T;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(T||(T={}));const ft={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function bg(e){return e>=55296&&e<=57343}function Jk(e){return e>=56320&&e<=57343}function eS(e,t){return(e-55296)*1024+9216+t}function yg(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Eg(e){return e>=64976&&e<=65007||Qk.has(e)}var L;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(L||(L={}));const tS=65536;class nS{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=tS,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:i,offset:s}=this,a=i+n,o=s+n;return{code:t,startLine:r,endLine:r,startCol:a,endCol:a,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(Jk(n))return this.pos++,this._addGap(),eS(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,T.EOF;return this._err(L.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,T.EOF;const r=this.html.charCodeAt(n);return r===T.CARRIAGE_RETURN?T.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,T.EOF;let t=this.html.charCodeAt(this.pos);return t===T.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,T.LINE_FEED):t===T.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,bg(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===T.LINE_FEED||t===T.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){yg(t)?this._err(L.controlCharacterInInputStream):Eg(t)&&this._err(L.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var _e;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(_e||(_e={}));function vg(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const Tg=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),rS=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Ko;const iS=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),sS=(Ko=String.fromCodePoint)!==null&&Ko!==void 0?Ko:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function aS(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=iS.get(e))!==null&&t!==void 0?t:e}var Ze;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ze||(Ze={}));const oS=32;var jn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(jn||(jn={}));function Yu(e){return e>=Ze.ZERO&&e<=Ze.NINE}function uS(e){return e>=Ze.UPPER_A&&e<=Ze.UPPER_F||e>=Ze.LOWER_A&&e<=Ze.LOWER_F}function cS(e){return e>=Ze.UPPER_A&&e<=Ze.UPPER_Z||e>=Ze.LOWER_A&&e<=Ze.LOWER_Z||Yu(e)}function lS(e){return e===Ze.EQUALS||cS(e)}var Xe;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Xe||(Xe={}));var gn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(gn||(gn={}));class wg{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Xe.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=gn.Strict}startEntity(t){this.decodeMode=t,this.state=Xe.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Xe.EntityStart:return t.charCodeAt(n)===Ze.NUM?(this.state=Xe.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Xe.NamedEntity,this.stateNamedEntity(t,n));case Xe.NumericStart:return this.stateNumericStart(t,n);case Xe.NumericDecimal:return this.stateNumericDecimal(t,n);case Xe.NumericHex:return this.stateNumericHex(t,n);case Xe.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|oS)===Ze.LOWER_X?(this.state=Xe.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Xe.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const s=r-n;this.result=this.result*Math.pow(i,s)+parseInt(t.substr(n,s),i),this.consumed+=s}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Yu(i)||uS(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Yu(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Ze.SEMI)this.consumed+=1;else if(this.decodeMode===gn.Strict)return 0;return this.emitCodePoint(aS(this.result),this.consumed),this.errors&&(t!==Ze.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],s=(i&jn.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const a=t.charCodeAt(n);if(this.treeIndex=dS(r,i,this.treeIndex+Math.max(1,s),a),this.treeIndex<0)return this.result===0||this.decodeMode===gn.Attribute&&(s===0||lS(a))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],s=(i&jn.VALUE_LENGTH)>>14,s!==0){if(a===Ze.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==gn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&jn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~jn.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case Xe.NamedEntity:return this.result!==0&&(this.decodeMode!==gn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Xe.NumericDecimal:return this.emitNumericEntity(0,2);case Xe.NumericHex:return this.emitNumericEntity(0,3);case Xe.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Xe.EntityStart:return 0}}}function _g(e){let t="";const n=new wg(e,r=>t+=sS(r));return function(i,s){let a=0,o=0;for(;(o=i.indexOf("&",o))>=0;){t+=i.slice(a,o),n.startEntity(s);const c=n.write(i,o+1);if(c<0){a=o+n.end();break}a=o+c,o=c===0?a+1:a}const u=t+i.slice(a);return t="",u}}function dS(e,t,n,r){const i=(t&jn.BRANCH_LENGTH)>>7,s=t&jn.JUMP_TABLE;if(i===0)return s!==0&&r===s?n:-1;if(s){const u=r-s;return u<0||u>=i?-1:e[n+u]-1}let a=n,o=a+i-1;for(;a<=o;){const u=a+o>>>1,c=e[u];if(c<r)a=u+1;else if(c>r)o=u-1;else return e[u+i]}return-1}_g(Tg);_g(rS);var F;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(F||(F={}));var pr;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(pr||(pr={}));var Ot;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Ot||(Ot={}));var I;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(I||(I={}));var h;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(h||(h={}));const pS=new Map([[I.A,h.A],[I.ADDRESS,h.ADDRESS],[I.ANNOTATION_XML,h.ANNOTATION_XML],[I.APPLET,h.APPLET],[I.AREA,h.AREA],[I.ARTICLE,h.ARTICLE],[I.ASIDE,h.ASIDE],[I.B,h.B],[I.BASE,h.BASE],[I.BASEFONT,h.BASEFONT],[I.BGSOUND,h.BGSOUND],[I.BIG,h.BIG],[I.BLOCKQUOTE,h.BLOCKQUOTE],[I.BODY,h.BODY],[I.BR,h.BR],[I.BUTTON,h.BUTTON],[I.CAPTION,h.CAPTION],[I.CENTER,h.CENTER],[I.CODE,h.CODE],[I.COL,h.COL],[I.COLGROUP,h.COLGROUP],[I.DD,h.DD],[I.DESC,h.DESC],[I.DETAILS,h.DETAILS],[I.DIALOG,h.DIALOG],[I.DIR,h.DIR],[I.DIV,h.DIV],[I.DL,h.DL],[I.DT,h.DT],[I.EM,h.EM],[I.EMBED,h.EMBED],[I.FIELDSET,h.FIELDSET],[I.FIGCAPTION,h.FIGCAPTION],[I.FIGURE,h.FIGURE],[I.FONT,h.FONT],[I.FOOTER,h.FOOTER],[I.FOREIGN_OBJECT,h.FOREIGN_OBJECT],[I.FORM,h.FORM],[I.FRAME,h.FRAME],[I.FRAMESET,h.FRAMESET],[I.H1,h.H1],[I.H2,h.H2],[I.H3,h.H3],[I.H4,h.H4],[I.H5,h.H5],[I.H6,h.H6],[I.HEAD,h.HEAD],[I.HEADER,h.HEADER],[I.HGROUP,h.HGROUP],[I.HR,h.HR],[I.HTML,h.HTML],[I.I,h.I],[I.IMG,h.IMG],[I.IMAGE,h.IMAGE],[I.INPUT,h.INPUT],[I.IFRAME,h.IFRAME],[I.KEYGEN,h.KEYGEN],[I.LABEL,h.LABEL],[I.LI,h.LI],[I.LINK,h.LINK],[I.LISTING,h.LISTING],[I.MAIN,h.MAIN],[I.MALIGNMARK,h.MALIGNMARK],[I.MARQUEE,h.MARQUEE],[I.MATH,h.MATH],[I.MENU,h.MENU],[I.META,h.META],[I.MGLYPH,h.MGLYPH],[I.MI,h.MI],[I.MO,h.MO],[I.MN,h.MN],[I.MS,h.MS],[I.MTEXT,h.MTEXT],[I.NAV,h.NAV],[I.NOBR,h.NOBR],[I.NOFRAMES,h.NOFRAMES],[I.NOEMBED,h.NOEMBED],[I.NOSCRIPT,h.NOSCRIPT],[I.OBJECT,h.OBJECT],[I.OL,h.OL],[I.OPTGROUP,h.OPTGROUP],[I.OPTION,h.OPTION],[I.P,h.P],[I.PARAM,h.PARAM],[I.PLAINTEXT,h.PLAINTEXT],[I.PRE,h.PRE],[I.RB,h.RB],[I.RP,h.RP],[I.RT,h.RT],[I.RTC,h.RTC],[I.RUBY,h.RUBY],[I.S,h.S],[I.SCRIPT,h.SCRIPT],[I.SEARCH,h.SEARCH],[I.SECTION,h.SECTION],[I.SELECT,h.SELECT],[I.SOURCE,h.SOURCE],[I.SMALL,h.SMALL],[I.SPAN,h.SPAN],[I.STRIKE,h.STRIKE],[I.STRONG,h.STRONG],[I.STYLE,h.STYLE],[I.SUB,h.SUB],[I.SUMMARY,h.SUMMARY],[I.SUP,h.SUP],[I.TABLE,h.TABLE],[I.TBODY,h.TBODY],[I.TEMPLATE,h.TEMPLATE],[I.TEXTAREA,h.TEXTAREA],[I.TFOOT,h.TFOOT],[I.TD,h.TD],[I.TH,h.TH],[I.THEAD,h.THEAD],[I.TITLE,h.TITLE],[I.TR,h.TR],[I.TRACK,h.TRACK],[I.TT,h.TT],[I.U,h.U],[I.UL,h.UL],[I.SVG,h.SVG],[I.VAR,h.VAR],[I.WBR,h.WBR],[I.XMP,h.XMP]]);function li(e){var t;return(t=pS.get(e))!==null&&t!==void 0?t:h.UNKNOWN}const U=h,fS={[F.HTML]:new Set([U.ADDRESS,U.APPLET,U.AREA,U.ARTICLE,U.ASIDE,U.BASE,U.BASEFONT,U.BGSOUND,U.BLOCKQUOTE,U.BODY,U.BR,U.BUTTON,U.CAPTION,U.CENTER,U.COL,U.COLGROUP,U.DD,U.DETAILS,U.DIR,U.DIV,U.DL,U.DT,U.EMBED,U.FIELDSET,U.FIGCAPTION,U.FIGURE,U.FOOTER,U.FORM,U.FRAME,U.FRAMESET,U.H1,U.H2,U.H3,U.H4,U.H5,U.H6,U.HEAD,U.HEADER,U.HGROUP,U.HR,U.HTML,U.IFRAME,U.IMG,U.INPUT,U.LI,U.LINK,U.LISTING,U.MAIN,U.MARQUEE,U.MENU,U.META,U.NAV,U.NOEMBED,U.NOFRAMES,U.NOSCRIPT,U.OBJECT,U.OL,U.P,U.PARAM,U.PLAINTEXT,U.PRE,U.SCRIPT,U.SECTION,U.SELECT,U.SOURCE,U.STYLE,U.SUMMARY,U.TABLE,U.TBODY,U.TD,U.TEMPLATE,U.TEXTAREA,U.TFOOT,U.TH,U.THEAD,U.TITLE,U.TR,U.TRACK,U.UL,U.WBR,U.XMP]),[F.MATHML]:new Set([U.MI,U.MO,U.MN,U.MS,U.MTEXT,U.ANNOTATION_XML]),[F.SVG]:new Set([U.TITLE,U.FOREIGN_OBJECT,U.DESC]),[F.XLINK]:new Set,[F.XML]:new Set,[F.XMLNS]:new Set},qu=new Set([U.H1,U.H2,U.H3,U.H4,U.H5,U.H6]);I.STYLE,I.SCRIPT,I.XMP,I.IFRAME,I.NOEMBED,I.NOFRAMES,I.PLAINTEXT;var _;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(_||(_={}));const qe={DATA:_.DATA,RCDATA:_.RCDATA,RAWTEXT:_.RAWTEXT,SCRIPT_DATA:_.SCRIPT_DATA,PLAINTEXT:_.PLAINTEXT,CDATA_SECTION:_.CDATA_SECTION};function hS(e){return e>=T.DIGIT_0&&e<=T.DIGIT_9}function wi(e){return e>=T.LATIN_CAPITAL_A&&e<=T.LATIN_CAPITAL_Z}function mS(e){return e>=T.LATIN_SMALL_A&&e<=T.LATIN_SMALL_Z}function On(e){return mS(e)||wi(e)}function Mp(e){return On(e)||hS(e)}function js(e){return e+32}function Cg(e){return e===T.SPACE||e===T.LINE_FEED||e===T.TABULATION||e===T.FORM_FEED}function jp(e){return Cg(e)||e===T.SOLIDUS||e===T.GREATER_THAN_SIGN}function gS(e){return e===T.NULL?L.nullCharacterReference:e>1114111?L.characterReferenceOutsideUnicodeRange:bg(e)?L.surrogateCharacterReference:Eg(e)?L.noncharacterCharacterReference:yg(e)||e===T.CARRIAGE_RETURN?L.controlCharacterReference:null}class xS{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=_.DATA,this.returnState=_.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new nS(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new wg(Tg,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(L.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(L.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=gS(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:_e.START_TAG,tagName:"",tagID:h.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:_e.END_TAG,tagName:"",tagID:h.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:_e.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:_e.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(vg(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(L.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=li(t.tagName),t.type===_e.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(L.endTagWithAttributes),t.selfClosing&&this._err(L.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case _e.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case _e.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case _e.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:_e.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=Cg(t)?_e.WHITESPACE_CHARACTER:t===T.NULL?_e.NULL_CHARACTER:_e.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(_e.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=_.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?gn.Attribute:gn.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===_.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===_.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===_.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case _.DATA:{this._stateData(t);break}case _.RCDATA:{this._stateRcdata(t);break}case _.RAWTEXT:{this._stateRawtext(t);break}case _.SCRIPT_DATA:{this._stateScriptData(t);break}case _.PLAINTEXT:{this._statePlaintext(t);break}case _.TAG_OPEN:{this._stateTagOpen(t);break}case _.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case _.TAG_NAME:{this._stateTagName(t);break}case _.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case _.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case _.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case _.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case _.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case _.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case _.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case _.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case _.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case _.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case _.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case _.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case _.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case _.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case _.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case _.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case _.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case _.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case _.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case _.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case _.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case _.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case _.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case _.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case _.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case _.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case _.BOGUS_COMMENT:{this._stateBogusComment(t);break}case _.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case _.COMMENT_START:{this._stateCommentStart(t);break}case _.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case _.COMMENT:{this._stateComment(t);break}case _.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case _.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case _.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case _.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case _.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case _.COMMENT_END:{this._stateCommentEnd(t);break}case _.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case _.DOCTYPE:{this._stateDoctype(t);break}case _.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case _.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case _.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case _.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case _.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case _.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case _.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case _.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case _.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case _.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case _.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case _.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case _.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case _.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case _.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case _.CDATA_SECTION:{this._stateCdataSection(t);break}case _.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case _.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case _.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case _.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case T.LESS_THAN_SIGN:{this.state=_.TAG_OPEN;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.NULL:{this._err(L.unexpectedNullCharacter),this._emitCodePoint(t);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case T.AMPERSAND:{this._startCharacterReference();break}case T.LESS_THAN_SIGN:{this.state=_.RCDATA_LESS_THAN_SIGN;break}case T.NULL:{this._err(L.unexpectedNullCharacter),this._emitChars(Ue);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case T.LESS_THAN_SIGN:{this.state=_.RAWTEXT_LESS_THAN_SIGN;break}case T.NULL:{this._err(L.unexpectedNullCharacter),this._emitChars(Ue);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case T.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_LESS_THAN_SIGN;break}case T.NULL:{this._err(L.unexpectedNullCharacter),this._emitChars(Ue);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case T.NULL:{this._err(L.unexpectedNullCharacter),this._emitChars(Ue);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(On(t))this._createStartTagToken(),this.state=_.TAG_NAME,this._stateTagName(t);else switch(t){case T.EXCLAMATION_MARK:{this.state=_.MARKUP_DECLARATION_OPEN;break}case T.SOLIDUS:{this.state=_.END_TAG_OPEN;break}case T.QUESTION_MARK:{this._err(L.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=_.BOGUS_COMMENT,this._stateBogusComment(t);break}case T.EOF:{this._err(L.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(L.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=_.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(On(t))this._createEndTagToken(),this.state=_.TAG_NAME,this._stateTagName(t);else switch(t){case T.GREATER_THAN_SIGN:{this._err(L.missingEndTagName),this.state=_.DATA;break}case T.EOF:{this._err(L.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(L.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=_.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=_.BEFORE_ATTRIBUTE_NAME;break}case T.SOLIDUS:{this.state=_.SELF_CLOSING_START_TAG;break}case T.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentTagToken();break}case T.NULL:{this._err(L.unexpectedNullCharacter),n.tagName+=Ue;break}case T.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(wi(t)?js(t):t)}}_stateRcdataLessThanSign(t){t===T.SOLIDUS?this.state=_.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=_.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){On(t)?(this.state=_.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=_.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=_.BEFORE_ATTRIBUTE_NAME,!1;case T.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=_.SELF_CLOSING_START_TAG,!1;case T.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=_.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=_.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===T.SOLIDUS?this.state=_.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=_.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){On(t)?(this.state=_.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=_.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=_.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case T.SOLIDUS:{this.state=_.SCRIPT_DATA_END_TAG_OPEN;break}case T.EXCLAMATION_MARK:{this.state=_.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=_.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){On(t)?(this.state=_.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=_.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=_.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===T.HYPHEN_MINUS?(this.state=_.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=_.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===T.HYPHEN_MINUS?(this.state=_.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=_.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case T.HYPHEN_MINUS:{this.state=_.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case T.NULL:{this._err(L.unexpectedNullCharacter),this._emitChars(Ue);break}case T.EOF:{this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case T.HYPHEN_MINUS:{this.state=_.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case T.NULL:{this._err(L.unexpectedNullCharacter),this.state=_.SCRIPT_DATA_ESCAPED,this._emitChars(Ue);break}case T.EOF:{this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=_.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case T.HYPHEN_MINUS:{this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case T.GREATER_THAN_SIGN:{this.state=_.SCRIPT_DATA,this._emitChars(">");break}case T.NULL:{this._err(L.unexpectedNullCharacter),this.state=_.SCRIPT_DATA_ESCAPED,this._emitChars(Ue);break}case T.EOF:{this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=_.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===T.SOLIDUS?this.state=_.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:On(t)?(this._emitChars("<"),this.state=_.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=_.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){On(t)?(this.state=_.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=_.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=_.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(ft.SCRIPT,!1)&&jp(this.preprocessor.peek(ft.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<ft.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=_.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case T.HYPHEN_MINUS:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case T.NULL:{this._err(L.unexpectedNullCharacter),this._emitChars(Ue);break}case T.EOF:{this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case T.HYPHEN_MINUS:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case T.NULL:{this._err(L.unexpectedNullCharacter),this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ue);break}case T.EOF:{this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case T.HYPHEN_MINUS:{this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case T.GREATER_THAN_SIGN:{this.state=_.SCRIPT_DATA,this._emitChars(">");break}case T.NULL:{this._err(L.unexpectedNullCharacter),this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ue);break}case T.EOF:{this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===T.SOLIDUS?(this.state=_.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(ft.SCRIPT,!1)&&jp(this.preprocessor.peek(ft.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<ft.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=_.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.SOLIDUS:case T.GREATER_THAN_SIGN:case T.EOF:{this.state=_.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case T.EQUALS_SIGN:{this._err(L.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=_.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=_.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:case T.SOLIDUS:case T.GREATER_THAN_SIGN:case T.EOF:{this._leaveAttrName(),this.state=_.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case T.EQUALS_SIGN:{this._leaveAttrName(),this.state=_.BEFORE_ATTRIBUTE_VALUE;break}case T.QUOTATION_MARK:case T.APOSTROPHE:case T.LESS_THAN_SIGN:{this._err(L.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case T.NULL:{this._err(L.unexpectedNullCharacter),this.currentAttr.name+=Ue;break}default:this.currentAttr.name+=String.fromCodePoint(wi(t)?js(t):t)}}_stateAfterAttributeName(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.SOLIDUS:{this.state=_.SELF_CLOSING_START_TAG;break}case T.EQUALS_SIGN:{this.state=_.BEFORE_ATTRIBUTE_VALUE;break}case T.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentTagToken();break}case T.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=_.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.QUOTATION_MARK:{this.state=_.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this.state=_.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(L.missingAttributeValue),this.state=_.DATA,this.emitCurrentTagToken();break}default:this.state=_.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case T.QUOTATION_MARK:{this.state=_.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.NULL:{this._err(L.unexpectedNullCharacter),this.currentAttr.value+=Ue;break}case T.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case T.APOSTROPHE:{this.state=_.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.NULL:{this._err(L.unexpectedNullCharacter),this.currentAttr.value+=Ue;break}case T.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this._leaveAttrValue(),this.state=_.BEFORE_ATTRIBUTE_NAME;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=_.DATA,this.emitCurrentTagToken();break}case T.NULL:{this._err(L.unexpectedNullCharacter),this.currentAttr.value+=Ue;break}case T.QUOTATION_MARK:case T.APOSTROPHE:case T.LESS_THAN_SIGN:case T.EQUALS_SIGN:case T.GRAVE_ACCENT:{this._err(L.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case T.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this._leaveAttrValue(),this.state=_.BEFORE_ATTRIBUTE_NAME;break}case T.SOLIDUS:{this._leaveAttrValue(),this.state=_.SELF_CLOSING_START_TAG;break}case T.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=_.DATA,this.emitCurrentTagToken();break}case T.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:this._err(L.missingWhitespaceBetweenAttributes),this.state=_.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case T.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=_.DATA,this.emitCurrentTagToken();break}case T.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:this._err(L.unexpectedSolidusInTag),this.state=_.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case T.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentComment(n);break}case T.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case T.NULL:{this._err(L.unexpectedNullCharacter),n.data+=Ue;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(ft.DASH_DASH,!0)?(this._createCommentToken(ft.DASH_DASH.length+1),this.state=_.COMMENT_START):this._consumeSequenceIfMatch(ft.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(ft.DOCTYPE.length+1),this.state=_.DOCTYPE):this._consumeSequenceIfMatch(ft.CDATA_START,!0)?this.inForeignNode?this.state=_.CDATA_SECTION:(this._err(L.cdataInHtmlContent),this._createCommentToken(ft.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=_.BOGUS_COMMENT):this._ensureHibernation()||(this._err(L.incorrectlyOpenedComment),this._createCommentToken(2),this.state=_.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case T.HYPHEN_MINUS:{this.state=_.COMMENT_START_DASH;break}case T.GREATER_THAN_SIGN:{this._err(L.abruptClosingOfEmptyComment),this.state=_.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=_.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{this.state=_.COMMENT_END;break}case T.GREATER_THAN_SIGN:{this._err(L.abruptClosingOfEmptyComment),this.state=_.DATA,this.emitCurrentComment(n);break}case T.EOF:{this._err(L.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=_.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{this.state=_.COMMENT_END_DASH;break}case T.LESS_THAN_SIGN:{n.data+="<",this.state=_.COMMENT_LESS_THAN_SIGN;break}case T.NULL:{this._err(L.unexpectedNullCharacter),n.data+=Ue;break}case T.EOF:{this._err(L.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case T.EXCLAMATION_MARK:{n.data+="!",this.state=_.COMMENT_LESS_THAN_SIGN_BANG;break}case T.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=_.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===T.HYPHEN_MINUS?this.state=_.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=_.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===T.HYPHEN_MINUS?this.state=_.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=_.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==T.GREATER_THAN_SIGN&&t!==T.EOF&&this._err(L.nestedComment),this.state=_.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{this.state=_.COMMENT_END;break}case T.EOF:{this._err(L.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=_.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case T.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentComment(n);break}case T.EXCLAMATION_MARK:{this.state=_.COMMENT_END_BANG;break}case T.HYPHEN_MINUS:{n.data+="-";break}case T.EOF:{this._err(L.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=_.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{n.data+="--!",this.state=_.COMMENT_END_DASH;break}case T.GREATER_THAN_SIGN:{this._err(L.incorrectlyClosedComment),this.state=_.DATA,this.emitCurrentComment(n);break}case T.EOF:{this._err(L.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=_.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=_.BEFORE_DOCTYPE_NAME;break}case T.GREATER_THAN_SIGN:{this.state=_.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case T.EOF:{this._err(L.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.missingWhitespaceBeforeDoctypeName),this.state=_.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(wi(t))this._createDoctypeToken(String.fromCharCode(js(t))),this.state=_.DOCTYPE_NAME;else switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.NULL:{this._err(L.unexpectedNullCharacter),this._createDoctypeToken(Ue),this.state=_.DOCTYPE_NAME;break}case T.GREATER_THAN_SIGN:{this._err(L.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=_.DATA;break}case T.EOF:{this._err(L.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=_.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=_.AFTER_DOCTYPE_NAME;break}case T.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentDoctype(n);break}case T.NULL:{this._err(L.unexpectedNullCharacter),n.name+=Ue;break}case T.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(wi(t)?js(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(ft.PUBLIC,!1)?this.state=_.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(ft.SYSTEM,!1)?this.state=_.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(L.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=_.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case T.QUOTATION_MARK:{this._err(L.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=_.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this._err(L.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=_.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(L.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=_.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.QUOTATION_MARK:{n.publicId="",this.state=_.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{n.publicId="",this.state=_.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(L.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=_.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case T.QUOTATION_MARK:{this.state=_.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case T.NULL:{this._err(L.unexpectedNullCharacter),n.publicId+=Ue;break}case T.GREATER_THAN_SIGN:{this._err(L.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=_.DATA;break}case T.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case T.APOSTROPHE:{this.state=_.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case T.NULL:{this._err(L.unexpectedNullCharacter),n.publicId+=Ue;break}case T.GREATER_THAN_SIGN:{this._err(L.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=_.DATA;break}case T.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=_.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case T.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentDoctype(n);break}case T.QUOTATION_MARK:{this._err(L.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this._err(L.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=_.DATA;break}case T.QUOTATION_MARK:{n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=_.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case T.QUOTATION_MARK:{this._err(L.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this._err(L.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(L.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=_.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.QUOTATION_MARK:{n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(L.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=_.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case T.QUOTATION_MARK:{this.state=_.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case T.NULL:{this._err(L.unexpectedNullCharacter),n.systemId+=Ue;break}case T.GREATER_THAN_SIGN:{this._err(L.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=_.DATA;break}case T.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case T.APOSTROPHE:{this.state=_.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case T.NULL:{this._err(L.unexpectedNullCharacter),n.systemId+=Ue;break}case T.GREATER_THAN_SIGN:{this._err(L.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=_.DATA;break}case T.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=_.DATA;break}case T.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case T.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=_.DATA;break}case T.NULL:{this._err(L.unexpectedNullCharacter);break}case T.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case T.RIGHT_SQUARE_BRACKET:{this.state=_.CDATA_SECTION_BRACKET;break}case T.EOF:{this._err(L.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===T.RIGHT_SQUARE_BRACKET?this.state=_.CDATA_SECTION_END:(this._emitChars("]"),this.state=_.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case T.GREATER_THAN_SIGN:{this.state=_.DATA;break}case T.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=_.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(T.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Mp(this.preprocessor.peek(1))?_.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Mp(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===T.SEMICOLON&&this._err(L.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const Ag=new Set([h.DD,h.DT,h.LI,h.OPTGROUP,h.OPTION,h.P,h.RB,h.RP,h.RT,h.RTC]),Fp=new Set([...Ag,h.CAPTION,h.COLGROUP,h.TBODY,h.TD,h.TFOOT,h.TH,h.THEAD,h.TR]),ga=new Set([h.APPLET,h.CAPTION,h.HTML,h.MARQUEE,h.OBJECT,h.TABLE,h.TD,h.TEMPLATE,h.TH]),bS=new Set([...ga,h.OL,h.UL]),yS=new Set([...ga,h.BUTTON]),Bp=new Set([h.ANNOTATION_XML,h.MI,h.MN,h.MO,h.MS,h.MTEXT]),Hp=new Set([h.DESC,h.FOREIGN_OBJECT,h.TITLE]),ES=new Set([h.TR,h.TEMPLATE,h.HTML]),vS=new Set([h.TBODY,h.TFOOT,h.THEAD,h.TEMPLATE,h.HTML]),TS=new Set([h.TABLE,h.TEMPLATE,h.HTML]),wS=new Set([h.TD,h.TH]);class _S{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=h.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===h.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===F.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==F.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(n<0?0:n)}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r<0?0:r)}popUntilNumberedHeaderPopped(){this.popUntilPopped(qu,F.HTML)}popUntilTableCellPopped(){this.popUntilPopped(wS,F.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(TS,F.HTML)}clearBackToTableBodyContext(){this.clearBackTo(vS,F.HTML)}clearBackToTableRowContext(){this.clearBackTo(ES,F.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===h.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===h.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case F.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case F.SVG:{if(Hp.has(i))return!1;break}case F.MATHML:{if(Bp.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,ga)}hasInListItemScope(t){return this.hasInDynamicScope(t,bS)}hasInButtonScope(t){return this.hasInDynamicScope(t,yS)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case F.HTML:{if(qu.has(n))return!0;if(ga.has(n))return!1;break}case F.SVG:{if(Hp.has(n))return!1;break}case F.MATHML:{if(Bp.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===F.HTML)switch(this.tagIDs[n]){case t:return!0;case h.TABLE:case h.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===F.HTML)switch(this.tagIDs[t]){case h.TBODY:case h.THEAD:case h.TFOOT:return!0;case h.TABLE:case h.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===F.HTML)switch(this.tagIDs[n]){case t:return!0;case h.OPTION:case h.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;Ag.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Fp.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&Fp.has(this.currentTagId);)this.pop()}}const Xo=3;var Xt;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Xt||(Xt={}));const Up={type:Xt.Marker};class CS{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,s=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const u=this.entries[o];if(u.type===Xt.Marker)break;const{element:c}=u;if(this.treeAdapter.getTagName(c)===s&&this.treeAdapter.getNamespaceURI(c)===a){const d=this.treeAdapter.getAttrList(c);d.length===i&&r.push({idx:o,attrs:d})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Xo)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Xo)return;const i=new Map(n.map(a=>[a.name,a.value]));let s=0;for(let a=0;a<r.length;a++){const o=r[a];o.attrs.every(u=>i.get(u.name)===u.value)&&(s+=1,s>=Xo&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(Up)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Xt.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Xt.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Up);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Xt.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Xt.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Xt.Element&&n.element===t)}}const Pn={createDocument(){return{nodeName:"#document",mode:Ot.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(s=>s.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const s={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Pn.appendChild(e,s)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Pn.isTextNode(n)){n.value+=t;return}}Pn.appendChild(e,Pn.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Pn.isTextNode(r)?r.value+=t:Pn.insertBefore(e,Pn.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},kg="html",AS="about:legacy-compat",kS="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Sg=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],SS=[...Sg,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],RS=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Rg=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],NS=[...Rg,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function zp(e,t){return t.some(n=>e.startsWith(n))}function IS(e){return e.name===kg&&e.publicId===null&&(e.systemId===null||e.systemId===AS)}function OS(e){if(e.name!==kg)return Ot.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===kS)return Ot.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),RS.has(n))return Ot.QUIRKS;let r=t===null?SS:Sg;if(zp(n,r))return Ot.QUIRKS;if(r=t===null?Rg:NS,zp(n,r))return Ot.LIMITED_QUIRKS}return Ot.NO_QUIRKS}const Vp={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},PS="definitionurl",DS="definitionURL",LS=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),MS=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:F.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:F.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:F.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:F.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:F.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:F.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:F.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:F.XML}],["xml:space",{prefix:"xml",name:"space",namespace:F.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:F.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:F.XMLNS}]]),jS=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),FS=new Set([h.B,h.BIG,h.BLOCKQUOTE,h.BODY,h.BR,h.CENTER,h.CODE,h.DD,h.DIV,h.DL,h.DT,h.EM,h.EMBED,h.H1,h.H2,h.H3,h.H4,h.H5,h.H6,h.HEAD,h.HR,h.I,h.IMG,h.LI,h.LISTING,h.MENU,h.META,h.NOBR,h.OL,h.P,h.PRE,h.RUBY,h.S,h.SMALL,h.SPAN,h.STRONG,h.STRIKE,h.SUB,h.SUP,h.TABLE,h.TT,h.U,h.UL,h.VAR]);function BS(e){const t=e.tagID;return t===h.FONT&&e.attrs.some(({name:r})=>r===pr.COLOR||r===pr.SIZE||r===pr.FACE)||FS.has(t)}function Ng(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===PS){e.attrs[t].name=DS;break}}function Ig(e){for(let t=0;t<e.attrs.length;t++){const n=LS.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function cl(e){for(let t=0;t<e.attrs.length;t++){const n=MS.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function HS(e){const t=jS.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=li(e.tagName))}function US(e,t){return t===F.MATHML&&(e===h.MI||e===h.MO||e===h.MN||e===h.MS||e===h.MTEXT)}function zS(e,t,n){if(t===F.MATHML&&e===h.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===pr.ENCODING){const i=n[r].value.toLowerCase();return i===Vp.TEXT_HTML||i===Vp.APPLICATION_XML}}return t===F.SVG&&(e===h.FOREIGN_OBJECT||e===h.DESC||e===h.TITLE)}function VS(e,t,n,r){return(!r||r===F.HTML)&&zS(e,t,n)||(!r||r===F.MATHML)&&US(e,t)}const $S="hidden",WS=8,YS=3;var S;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(S||(S={}));const qS={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Og=new Set([h.TABLE,h.TBODY,h.TFOOT,h.THEAD,h.TR]),$p={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Pn,onParseError:null};class Wp{constructor(t,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=S.INITIAL,this.originalInsertionMode=S.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...$p,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new xS(this.options,this),this.activeFormattingElements=new CS(this.treeAdapter),this.fragmentContextID=r?li(this.treeAdapter.getTagName(r)):h.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new _S(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...$p,...n};t??(t=r.treeAdapter.createElement(I.TEMPLATE,F.HTML,[]));const i=r.treeAdapter.createElement("documentmock",F.HTML,[]),s=new this(r,i,t);return s.fragmentContextID===h.TEMPLATE&&s.tmplInsertionModeStack.unshift(S.IN_TEMPLATE),s._initTokenizerForFragmentParsing(),s._insertFakeRootElement(),s._resetInsertionMode(),s._findFormInFragmentContext(),s}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var i;if(!this.onParseError)return;const s=(i=t.location)!==null&&i!==void 0?i:qS,a={code:n,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:r?s.startLine:s.endLine,endCol:r?s.startCol:s.endCol,endOffset:r?s.startOffset:s.endOffset};this.onParseError(a)}onItemPush(t,n,r){var i,s;(s=(i=this.treeAdapter).onItemPush)===null||s===void 0||s.call(i,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let s,a;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,a=this.fragmentContextID):{current:s,currentTagId:a}=this.openElements,this._setContextModes(s,a)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===F.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,F.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=S.TEXT}switchToPlaintextParsing(){this.insertionMode=S.TEXT,this.originalInsertionMode=S.IN_BODY,this.tokenizer.state=qe.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===I.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==F.HTML))switch(this.fragmentContextID){case h.TITLE:case h.TEXTAREA:{this.tokenizer.state=qe.RCDATA;break}case h.STYLE:case h.XMP:case h.IFRAME:case h.NOEMBED:case h.NOFRAMES:case h.NOSCRIPT:{this.tokenizer.state=qe.RAWTEXT;break}case h.SCRIPT:{this.tokenizer.state=qe.SCRIPT_DATA;break}case h.PLAINTEXT:{this.tokenizer.state=qe.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const a=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));a&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,F.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,F.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(I.HTML,F.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,h.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),s=r?i.lastIndexOf(r):i.length,a=i[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:u,endCol:c,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:u,endCol:c,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),s=n.type===_e.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===h.SVG&&this.treeAdapter.getTagName(n)===I.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===F.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===h.MGLYPH||t.tagID===h.MALIGNMARK)&&!this._isIntegrationPoint(r,n,F.HTML)}_processToken(t){switch(t.type){case _e.CHARACTER:{this.onCharacter(t);break}case _e.NULL_CHARACTER:{this.onNullCharacter(t);break}case _e.COMMENT:{this.onComment(t);break}case _e.DOCTYPE:{this.onDoctype(t);break}case _e.START_TAG:{this._processStartTag(t);break}case _e.END_TAG:{this.onEndTag(t);break}case _e.EOF:{this.onEof(t);break}case _e.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),s=this.treeAdapter.getAttrList(n);return VS(t,i,s,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===Xt.Marker||this.openElements.contains(i.element)),r=n<0?t-1:n-1;for(let i=r;i>=0;i--){const s=this.activeFormattingElements.entries[i];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=S.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(h.P),this.openElements.popUntilTagNamePopped(h.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case h.TR:{this.insertionMode=S.IN_ROW;return}case h.TBODY:case h.THEAD:case h.TFOOT:{this.insertionMode=S.IN_TABLE_BODY;return}case h.CAPTION:{this.insertionMode=S.IN_CAPTION;return}case h.COLGROUP:{this.insertionMode=S.IN_COLUMN_GROUP;return}case h.TABLE:{this.insertionMode=S.IN_TABLE;return}case h.BODY:{this.insertionMode=S.IN_BODY;return}case h.FRAMESET:{this.insertionMode=S.IN_FRAMESET;return}case h.SELECT:{this._resetInsertionModeForSelect(t);return}case h.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case h.HTML:{this.insertionMode=this.headElement?S.AFTER_HEAD:S.BEFORE_HEAD;return}case h.TD:case h.TH:{if(t>0){this.insertionMode=S.IN_CELL;return}break}case h.HEAD:{if(t>0){this.insertionMode=S.IN_HEAD;return}break}}this.insertionMode=S.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===h.TEMPLATE)break;if(r===h.TABLE){this.insertionMode=S.IN_SELECT_IN_TABLE;return}}this.insertionMode=S.IN_SELECT}_isElementCausesFosterParenting(t){return Og.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case h.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===F.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case h.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return fS[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){w3(this,t);return}switch(this.insertionMode){case S.INITIAL:{bi(this,t);break}case S.BEFORE_HTML:{Oi(this,t);break}case S.BEFORE_HEAD:{Pi(this,t);break}case S.IN_HEAD:{Di(this,t);break}case S.IN_HEAD_NO_SCRIPT:{Li(this,t);break}case S.AFTER_HEAD:{Mi(this,t);break}case S.IN_BODY:case S.IN_CAPTION:case S.IN_CELL:case S.IN_TEMPLATE:{Dg(this,t);break}case S.TEXT:case S.IN_SELECT:case S.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case S.IN_TABLE:case S.IN_TABLE_BODY:case S.IN_ROW:{Zo(this,t);break}case S.IN_TABLE_TEXT:{Hg(this,t);break}case S.IN_COLUMN_GROUP:{xa(this,t);break}case S.AFTER_BODY:{ba(this,t);break}case S.AFTER_AFTER_BODY:{ea(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){T3(this,t);return}switch(this.insertionMode){case S.INITIAL:{bi(this,t);break}case S.BEFORE_HTML:{Oi(this,t);break}case S.BEFORE_HEAD:{Pi(this,t);break}case S.IN_HEAD:{Di(this,t);break}case S.IN_HEAD_NO_SCRIPT:{Li(this,t);break}case S.AFTER_HEAD:{Mi(this,t);break}case S.TEXT:{this._insertCharacters(t);break}case S.IN_TABLE:case S.IN_TABLE_BODY:case S.IN_ROW:{Zo(this,t);break}case S.IN_COLUMN_GROUP:{xa(this,t);break}case S.AFTER_BODY:{ba(this,t);break}case S.AFTER_AFTER_BODY:{ea(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Gu(this,t);return}switch(this.insertionMode){case S.INITIAL:case S.BEFORE_HTML:case S.BEFORE_HEAD:case S.IN_HEAD:case S.IN_HEAD_NO_SCRIPT:case S.AFTER_HEAD:case S.IN_BODY:case S.IN_TABLE:case S.IN_CAPTION:case S.IN_COLUMN_GROUP:case S.IN_TABLE_BODY:case S.IN_ROW:case S.IN_CELL:case S.IN_SELECT:case S.IN_SELECT_IN_TABLE:case S.IN_TEMPLATE:case S.IN_FRAMESET:case S.AFTER_FRAMESET:{Gu(this,t);break}case S.IN_TABLE_TEXT:{yi(this,t);break}case S.AFTER_BODY:{eR(this,t);break}case S.AFTER_AFTER_BODY:case S.AFTER_AFTER_FRAMESET:{tR(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case S.INITIAL:{nR(this,t);break}case S.BEFORE_HEAD:case S.IN_HEAD:case S.IN_HEAD_NO_SCRIPT:case S.AFTER_HEAD:{this._err(t,L.misplacedDoctype);break}case S.IN_TABLE_TEXT:{yi(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,L.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?_3(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case S.INITIAL:{bi(this,t);break}case S.BEFORE_HTML:{rR(this,t);break}case S.BEFORE_HEAD:{sR(this,t);break}case S.IN_HEAD:{Wt(this,t);break}case S.IN_HEAD_NO_SCRIPT:{uR(this,t);break}case S.AFTER_HEAD:{lR(this,t);break}case S.IN_BODY:{ut(this,t);break}case S.IN_TABLE:{Kr(this,t);break}case S.IN_TABLE_TEXT:{yi(this,t);break}case S.IN_CAPTION:{a3(this,t);break}case S.IN_COLUMN_GROUP:{pl(this,t);break}case S.IN_TABLE_BODY:{no(this,t);break}case S.IN_ROW:{ro(this,t);break}case S.IN_CELL:{c3(this,t);break}case S.IN_SELECT:{Vg(this,t);break}case S.IN_SELECT_IN_TABLE:{d3(this,t);break}case S.IN_TEMPLATE:{f3(this,t);break}case S.AFTER_BODY:{m3(this,t);break}case S.IN_FRAMESET:{g3(this,t);break}case S.AFTER_FRAMESET:{b3(this,t);break}case S.AFTER_AFTER_BODY:{E3(this,t);break}case S.AFTER_AFTER_FRAMESET:{v3(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?C3(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case S.INITIAL:{bi(this,t);break}case S.BEFORE_HTML:{iR(this,t);break}case S.BEFORE_HEAD:{aR(this,t);break}case S.IN_HEAD:{oR(this,t);break}case S.IN_HEAD_NO_SCRIPT:{cR(this,t);break}case S.AFTER_HEAD:{dR(this,t);break}case S.IN_BODY:{to(this,t);break}case S.TEXT:{XR(this,t);break}case S.IN_TABLE:{Wi(this,t);break}case S.IN_TABLE_TEXT:{yi(this,t);break}case S.IN_CAPTION:{o3(this,t);break}case S.IN_COLUMN_GROUP:{u3(this,t);break}case S.IN_TABLE_BODY:{Ku(this,t);break}case S.IN_ROW:{zg(this,t);break}case S.IN_CELL:{l3(this,t);break}case S.IN_SELECT:{$g(this,t);break}case S.IN_SELECT_IN_TABLE:{p3(this,t);break}case S.IN_TEMPLATE:{h3(this,t);break}case S.AFTER_BODY:{Yg(this,t);break}case S.IN_FRAMESET:{x3(this,t);break}case S.AFTER_FRAMESET:{y3(this,t);break}case S.AFTER_AFTER_BODY:{ea(this,t);break}}}onEof(t){switch(this.insertionMode){case S.INITIAL:{bi(this,t);break}case S.BEFORE_HTML:{Oi(this,t);break}case S.BEFORE_HEAD:{Pi(this,t);break}case S.IN_HEAD:{Di(this,t);break}case S.IN_HEAD_NO_SCRIPT:{Li(this,t);break}case S.AFTER_HEAD:{Mi(this,t);break}case S.IN_BODY:case S.IN_TABLE:case S.IN_CAPTION:case S.IN_COLUMN_GROUP:case S.IN_TABLE_BODY:case S.IN_ROW:case S.IN_CELL:case S.IN_SELECT:case S.IN_SELECT_IN_TABLE:{Fg(this,t);break}case S.TEXT:{ZR(this,t);break}case S.IN_TABLE_TEXT:{yi(this,t);break}case S.IN_TEMPLATE:{Wg(this,t);break}case S.AFTER_BODY:case S.IN_FRAMESET:case S.AFTER_FRAMESET:case S.AFTER_AFTER_BODY:case S.AFTER_AFTER_FRAMESET:{dl(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===T.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case S.IN_HEAD:case S.IN_HEAD_NO_SCRIPT:case S.AFTER_HEAD:case S.TEXT:case S.IN_COLUMN_GROUP:case S.IN_SELECT:case S.IN_SELECT_IN_TABLE:case S.IN_FRAMESET:case S.AFTER_FRAMESET:{this._insertCharacters(t);break}case S.IN_BODY:case S.IN_CAPTION:case S.IN_CELL:case S.IN_TEMPLATE:case S.AFTER_BODY:case S.AFTER_AFTER_BODY:case S.AFTER_AFTER_FRAMESET:{Pg(this,t);break}case S.IN_TABLE:case S.IN_TABLE_BODY:case S.IN_ROW:{Zo(this,t);break}case S.IN_TABLE_TEXT:{Bg(this,t);break}}}}function GS(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):jg(e,t),n}function KS(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function XS(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let s=0,a=i;a!==n;s++,a=i){i=e.openElements.getCommonAncestor(a);const o=e.activeFormattingElements.getElementEntry(a),u=o&&s>=YS;!o||u?(u&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(a)):(a=ZS(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function ZS(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function QS(e,t,n){const r=e.treeAdapter.getTagName(t),i=li(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const s=e.treeAdapter.getNamespaceURI(t);i===h.TEMPLATE&&s===F.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function JS(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,s=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,s,i.tagID)}function ll(e,t){for(let n=0;n<WS;n++){const r=GS(e,t);if(!r)break;const i=KS(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const s=XS(e,i,r.element),a=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(s),a&&QS(e,a,s),JS(e,i,r)}}function Gu(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function eR(e,t){e._appendCommentNode(t,e.openElements.items[0])}function tR(e,t){e._appendCommentNode(t,e.document)}function dl(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const s=e.openElements.items[1],a=e.treeAdapter.getNodeSourceCodeLocation(s);a&&!a.endTag&&e._setEndLocation(s,t)}}}}function nR(e,t){e._setDocumentType(t);const n=t.forceQuirks?Ot.QUIRKS:OS(t);IS(t)||e._err(t,L.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=S.BEFORE_HTML}function bi(e,t){e._err(t,L.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ot.QUIRKS),e.insertionMode=S.BEFORE_HTML,e._processToken(t)}function rR(e,t){t.tagID===h.HTML?(e._insertElement(t,F.HTML),e.insertionMode=S.BEFORE_HEAD):Oi(e,t)}function iR(e,t){const n=t.tagID;(n===h.HTML||n===h.HEAD||n===h.BODY||n===h.BR)&&Oi(e,t)}function Oi(e,t){e._insertFakeRootElement(),e.insertionMode=S.BEFORE_HEAD,e._processToken(t)}function sR(e,t){switch(t.tagID){case h.HTML:{ut(e,t);break}case h.HEAD:{e._insertElement(t,F.HTML),e.headElement=e.openElements.current,e.insertionMode=S.IN_HEAD;break}default:Pi(e,t)}}function aR(e,t){const n=t.tagID;n===h.HEAD||n===h.BODY||n===h.HTML||n===h.BR?Pi(e,t):e._err(t,L.endTagWithoutMatchingOpenElement)}function Pi(e,t){e._insertFakeElement(I.HEAD,h.HEAD),e.headElement=e.openElements.current,e.insertionMode=S.IN_HEAD,e._processToken(t)}function Wt(e,t){switch(t.tagID){case h.HTML:{ut(e,t);break}case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:{e._appendElement(t,F.HTML),t.ackSelfClosing=!0;break}case h.TITLE:{e._switchToTextParsing(t,qe.RCDATA);break}case h.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,qe.RAWTEXT):(e._insertElement(t,F.HTML),e.insertionMode=S.IN_HEAD_NO_SCRIPT);break}case h.NOFRAMES:case h.STYLE:{e._switchToTextParsing(t,qe.RAWTEXT);break}case h.SCRIPT:{e._switchToTextParsing(t,qe.SCRIPT_DATA);break}case h.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=S.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(S.IN_TEMPLATE);break}case h.HEAD:{e._err(t,L.misplacedStartTagForHeadElement);break}default:Di(e,t)}}function oR(e,t){switch(t.tagID){case h.HEAD:{e.openElements.pop(),e.insertionMode=S.AFTER_HEAD;break}case h.BODY:case h.BR:case h.HTML:{Di(e,t);break}case h.TEMPLATE:{Tr(e,t);break}default:e._err(t,L.endTagWithoutMatchingOpenElement)}}function Tr(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==h.TEMPLATE&&e._err(t,L.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,L.endTagWithoutMatchingOpenElement)}function Di(e,t){e.openElements.pop(),e.insertionMode=S.AFTER_HEAD,e._processToken(t)}function uR(e,t){switch(t.tagID){case h.HTML:{ut(e,t);break}case h.BASEFONT:case h.BGSOUND:case h.HEAD:case h.LINK:case h.META:case h.NOFRAMES:case h.STYLE:{Wt(e,t);break}case h.NOSCRIPT:{e._err(t,L.nestedNoscriptInHead);break}default:Li(e,t)}}function cR(e,t){switch(t.tagID){case h.NOSCRIPT:{e.openElements.pop(),e.insertionMode=S.IN_HEAD;break}case h.BR:{Li(e,t);break}default:e._err(t,L.endTagWithoutMatchingOpenElement)}}function Li(e,t){const n=t.type===_e.EOF?L.openElementsLeftAfterEof:L.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=S.IN_HEAD,e._processToken(t)}function lR(e,t){switch(t.tagID){case h.HTML:{ut(e,t);break}case h.BODY:{e._insertElement(t,F.HTML),e.framesetOk=!1,e.insertionMode=S.IN_BODY;break}case h.FRAMESET:{e._insertElement(t,F.HTML),e.insertionMode=S.IN_FRAMESET;break}case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:case h.NOFRAMES:case h.SCRIPT:case h.STYLE:case h.TEMPLATE:case h.TITLE:{e._err(t,L.abandonedHeadElementChild),e.openElements.push(e.headElement,h.HEAD),Wt(e,t),e.openElements.remove(e.headElement);break}case h.HEAD:{e._err(t,L.misplacedStartTagForHeadElement);break}default:Mi(e,t)}}function dR(e,t){switch(t.tagID){case h.BODY:case h.HTML:case h.BR:{Mi(e,t);break}case h.TEMPLATE:{Tr(e,t);break}default:e._err(t,L.endTagWithoutMatchingOpenElement)}}function Mi(e,t){e._insertFakeElement(I.BODY,h.BODY),e.insertionMode=S.IN_BODY,eo(e,t)}function eo(e,t){switch(t.type){case _e.CHARACTER:{Dg(e,t);break}case _e.WHITESPACE_CHARACTER:{Pg(e,t);break}case _e.COMMENT:{Gu(e,t);break}case _e.START_TAG:{ut(e,t);break}case _e.END_TAG:{to(e,t);break}case _e.EOF:{Fg(e,t);break}}}function Pg(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Dg(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function pR(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function fR(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function hR(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,F.HTML),e.insertionMode=S.IN_FRAMESET)}function mR(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,F.HTML)}function gR(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),qu.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,F.HTML)}function xR(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,F.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function bR(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,F.HTML),n||(e.formElement=e.openElements.current))}function yR(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===h.LI&&i===h.LI||(n===h.DD||n===h.DT)&&(i===h.DD||i===h.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==h.ADDRESS&&i!==h.DIV&&i!==h.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,F.HTML)}function ER(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,F.HTML),e.tokenizer.state=qe.PLAINTEXT}function vR(e,t){e.openElements.hasInScope(h.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,F.HTML),e.framesetOk=!1}function TR(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(I.A);n&&(ll(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,F.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function wR(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,F.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function _R(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(h.NOBR)&&(ll(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,F.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function CR(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,F.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function AR(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ot.QUIRKS&&e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,F.HTML),e.framesetOk=!1,e.insertionMode=S.IN_TABLE}function Lg(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,F.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Mg(e){const t=vg(e,pr.TYPE);return t!=null&&t.toLowerCase()===$S}function kR(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,F.HTML),Mg(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function SR(e,t){e._appendElement(t,F.HTML),t.ackSelfClosing=!0}function RR(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._appendElement(t,F.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function NR(e,t){t.tagName=I.IMG,t.tagID=h.IMG,Lg(e,t)}function IR(e,t){e._insertElement(t,F.HTML),e.skipNextNewLine=!0,e.tokenizer.state=qe.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=S.TEXT}function OR(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,qe.RAWTEXT)}function PR(e,t){e.framesetOk=!1,e._switchToTextParsing(t,qe.RAWTEXT)}function Yp(e,t){e._switchToTextParsing(t,qe.RAWTEXT)}function DR(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,F.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===S.IN_TABLE||e.insertionMode===S.IN_CAPTION||e.insertionMode===S.IN_TABLE_BODY||e.insertionMode===S.IN_ROW||e.insertionMode===S.IN_CELL?S.IN_SELECT_IN_TABLE:S.IN_SELECT}function LR(e,t){e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,F.HTML)}function MR(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,F.HTML)}function jR(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(h.RTC),e._insertElement(t,F.HTML)}function FR(e,t){e._reconstructActiveFormattingElements(),Ng(t),cl(t),t.selfClosing?e._appendElement(t,F.MATHML):e._insertElement(t,F.MATHML),t.ackSelfClosing=!0}function BR(e,t){e._reconstructActiveFormattingElements(),Ig(t),cl(t),t.selfClosing?e._appendElement(t,F.SVG):e._insertElement(t,F.SVG),t.ackSelfClosing=!0}function qp(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,F.HTML)}function ut(e,t){switch(t.tagID){case h.I:case h.S:case h.B:case h.U:case h.EM:case h.TT:case h.BIG:case h.CODE:case h.FONT:case h.SMALL:case h.STRIKE:case h.STRONG:{wR(e,t);break}case h.A:{TR(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{gR(e,t);break}case h.P:case h.DL:case h.OL:case h.UL:case h.DIV:case h.DIR:case h.NAV:case h.MAIN:case h.MENU:case h.ASIDE:case h.CENTER:case h.FIGURE:case h.FOOTER:case h.HEADER:case h.HGROUP:case h.DIALOG:case h.DETAILS:case h.ADDRESS:case h.ARTICLE:case h.SEARCH:case h.SECTION:case h.SUMMARY:case h.FIELDSET:case h.BLOCKQUOTE:case h.FIGCAPTION:{mR(e,t);break}case h.LI:case h.DD:case h.DT:{yR(e,t);break}case h.BR:case h.IMG:case h.WBR:case h.AREA:case h.EMBED:case h.KEYGEN:{Lg(e,t);break}case h.HR:{RR(e,t);break}case h.RB:case h.RTC:{MR(e,t);break}case h.RT:case h.RP:{jR(e,t);break}case h.PRE:case h.LISTING:{xR(e,t);break}case h.XMP:{OR(e,t);break}case h.SVG:{BR(e,t);break}case h.HTML:{pR(e,t);break}case h.BASE:case h.LINK:case h.META:case h.STYLE:case h.TITLE:case h.SCRIPT:case h.BGSOUND:case h.BASEFONT:case h.TEMPLATE:{Wt(e,t);break}case h.BODY:{fR(e,t);break}case h.FORM:{bR(e,t);break}case h.NOBR:{_R(e,t);break}case h.MATH:{FR(e,t);break}case h.TABLE:{AR(e,t);break}case h.INPUT:{kR(e,t);break}case h.PARAM:case h.TRACK:case h.SOURCE:{SR(e,t);break}case h.IMAGE:{NR(e,t);break}case h.BUTTON:{vR(e,t);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{CR(e,t);break}case h.IFRAME:{PR(e,t);break}case h.SELECT:{DR(e,t);break}case h.OPTION:case h.OPTGROUP:{LR(e,t);break}case h.NOEMBED:case h.NOFRAMES:{Yp(e,t);break}case h.FRAMESET:{hR(e,t);break}case h.TEXTAREA:{IR(e,t);break}case h.NOSCRIPT:{e.options.scriptingEnabled?Yp(e,t):qp(e,t);break}case h.PLAINTEXT:{ER(e,t);break}case h.COL:case h.TH:case h.TD:case h.TR:case h.HEAD:case h.FRAME:case h.TBODY:case h.TFOOT:case h.THEAD:case h.CAPTION:case h.COLGROUP:break;default:qp(e,t)}}function HR(e,t){if(e.openElements.hasInScope(h.BODY)&&(e.insertionMode=S.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function UR(e,t){e.openElements.hasInScope(h.BODY)&&(e.insertionMode=S.AFTER_BODY,Yg(e,t))}function zR(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function VR(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(h.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(h.FORM):n&&e.openElements.remove(n))}function $R(e){e.openElements.hasInButtonScope(h.P)||e._insertFakeElement(I.P,h.P),e._closePElement()}function WR(e){e.openElements.hasInListItemScope(h.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(h.LI),e.openElements.popUntilTagNamePopped(h.LI))}function YR(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function qR(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function GR(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function KR(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(I.BR,h.BR),e.openElements.pop(),e.framesetOk=!1}function jg(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const s=e.openElements.items[i],a=e.openElements.tagIDs[i];if(r===a&&(r!==h.UNKNOWN||e.treeAdapter.getTagName(s)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(s,a))break}}function to(e,t){switch(t.tagID){case h.A:case h.B:case h.I:case h.S:case h.U:case h.EM:case h.TT:case h.BIG:case h.CODE:case h.FONT:case h.NOBR:case h.SMALL:case h.STRIKE:case h.STRONG:{ll(e,t);break}case h.P:{$R(e);break}case h.DL:case h.UL:case h.OL:case h.DIR:case h.DIV:case h.NAV:case h.PRE:case h.MAIN:case h.MENU:case h.ASIDE:case h.BUTTON:case h.CENTER:case h.FIGURE:case h.FOOTER:case h.HEADER:case h.HGROUP:case h.DIALOG:case h.ADDRESS:case h.ARTICLE:case h.DETAILS:case h.SEARCH:case h.SECTION:case h.SUMMARY:case h.LISTING:case h.FIELDSET:case h.BLOCKQUOTE:case h.FIGCAPTION:{zR(e,t);break}case h.LI:{WR(e);break}case h.DD:case h.DT:{YR(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{qR(e);break}case h.BR:{KR(e);break}case h.BODY:{HR(e,t);break}case h.HTML:{UR(e,t);break}case h.FORM:{VR(e);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{GR(e,t);break}case h.TEMPLATE:{Tr(e,t);break}default:jg(e,t)}}function Fg(e,t){e.tmplInsertionModeStack.length>0?Wg(e,t):dl(e,t)}function XR(e,t){var n;t.tagID===h.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function ZR(e,t){e._err(t,L.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Zo(e,t){if(Og.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=S.IN_TABLE_TEXT,t.type){case _e.CHARACTER:{Hg(e,t);break}case _e.WHITESPACE_CHARACTER:{Bg(e,t);break}}else Es(e,t)}function QR(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,F.HTML),e.insertionMode=S.IN_CAPTION}function JR(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,F.HTML),e.insertionMode=S.IN_COLUMN_GROUP}function e3(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(I.COLGROUP,h.COLGROUP),e.insertionMode=S.IN_COLUMN_GROUP,pl(e,t)}function t3(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,F.HTML),e.insertionMode=S.IN_TABLE_BODY}function n3(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(I.TBODY,h.TBODY),e.insertionMode=S.IN_TABLE_BODY,no(e,t)}function r3(e,t){e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function i3(e,t){Mg(t)?e._appendElement(t,F.HTML):Es(e,t),t.ackSelfClosing=!0}function s3(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,F.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Kr(e,t){switch(t.tagID){case h.TD:case h.TH:case h.TR:{n3(e,t);break}case h.STYLE:case h.SCRIPT:case h.TEMPLATE:{Wt(e,t);break}case h.COL:{e3(e,t);break}case h.FORM:{s3(e,t);break}case h.TABLE:{r3(e,t);break}case h.TBODY:case h.TFOOT:case h.THEAD:{t3(e,t);break}case h.INPUT:{i3(e,t);break}case h.CAPTION:{QR(e,t);break}case h.COLGROUP:{JR(e,t);break}default:Es(e,t)}}function Wi(e,t){switch(t.tagID){case h.TABLE:{e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode());break}case h.TEMPLATE:{Tr(e,t);break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:case h.TBODY:case h.TD:case h.TFOOT:case h.TH:case h.THEAD:case h.TR:break;default:Es(e,t)}}function Es(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,eo(e,t),e.fosterParentingEnabled=n}function Bg(e,t){e.pendingCharacterTokens.push(t)}function Hg(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function yi(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Es(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Ug=new Set([h.CAPTION,h.COL,h.COLGROUP,h.TBODY,h.TD,h.TFOOT,h.TH,h.THEAD,h.TR]);function a3(e,t){const n=t.tagID;Ug.has(n)?e.openElements.hasInTableScope(h.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=S.IN_TABLE,Kr(e,t)):ut(e,t)}function o3(e,t){const n=t.tagID;switch(n){case h.CAPTION:case h.TABLE:{e.openElements.hasInTableScope(h.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=S.IN_TABLE,n===h.TABLE&&Wi(e,t));break}case h.BODY:case h.COL:case h.COLGROUP:case h.HTML:case h.TBODY:case h.TD:case h.TFOOT:case h.TH:case h.THEAD:case h.TR:break;default:to(e,t)}}function pl(e,t){switch(t.tagID){case h.HTML:{ut(e,t);break}case h.COL:{e._appendElement(t,F.HTML),t.ackSelfClosing=!0;break}case h.TEMPLATE:{Wt(e,t);break}default:xa(e,t)}}function u3(e,t){switch(t.tagID){case h.COLGROUP:{e.openElements.currentTagId===h.COLGROUP&&(e.openElements.pop(),e.insertionMode=S.IN_TABLE);break}case h.TEMPLATE:{Tr(e,t);break}case h.COL:break;default:xa(e,t)}}function xa(e,t){e.openElements.currentTagId===h.COLGROUP&&(e.openElements.pop(),e.insertionMode=S.IN_TABLE,e._processToken(t))}function no(e,t){switch(t.tagID){case h.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,F.HTML),e.insertionMode=S.IN_ROW;break}case h.TH:case h.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(I.TR,h.TR),e.insertionMode=S.IN_ROW,ro(e,t);break}case h.CAPTION:case h.COL:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=S.IN_TABLE,Kr(e,t));break}default:Kr(e,t)}}function Ku(e,t){const n=t.tagID;switch(t.tagID){case h.TBODY:case h.TFOOT:case h.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=S.IN_TABLE);break}case h.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=S.IN_TABLE,Wi(e,t));break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:case h.TD:case h.TH:case h.TR:break;default:Wi(e,t)}}function ro(e,t){switch(t.tagID){case h.TH:case h.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,F.HTML),e.insertionMode=S.IN_CELL,e.activeFormattingElements.insertMarker();break}case h.CAPTION:case h.COL:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:case h.TR:{e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=S.IN_TABLE_BODY,no(e,t));break}default:Kr(e,t)}}function zg(e,t){switch(t.tagID){case h.TR:{e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=S.IN_TABLE_BODY);break}case h.TABLE:{e.openElements.hasInTableScope(h.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=S.IN_TABLE_BODY,Ku(e,t));break}case h.TBODY:case h.TFOOT:case h.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(h.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=S.IN_TABLE_BODY,Ku(e,t));break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:case h.TD:case h.TH:break;default:Wi(e,t)}}function c3(e,t){const n=t.tagID;Ug.has(n)?(e.openElements.hasInTableScope(h.TD)||e.openElements.hasInTableScope(h.TH))&&(e._closeTableCell(),ro(e,t)):ut(e,t)}function l3(e,t){const n=t.tagID;switch(n){case h.TD:case h.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=S.IN_ROW);break}case h.TABLE:case h.TBODY:case h.TFOOT:case h.THEAD:case h.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),zg(e,t));break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:break;default:to(e,t)}}function Vg(e,t){switch(t.tagID){case h.HTML:{ut(e,t);break}case h.OPTION:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e._insertElement(t,F.HTML);break}case h.OPTGROUP:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e.openElements.currentTagId===h.OPTGROUP&&e.openElements.pop(),e._insertElement(t,F.HTML);break}case h.HR:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e.openElements.currentTagId===h.OPTGROUP&&e.openElements.pop(),e._appendElement(t,F.HTML),t.ackSelfClosing=!0;break}case h.INPUT:case h.KEYGEN:case h.TEXTAREA:case h.SELECT:{e.openElements.hasInSelectScope(h.SELECT)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),t.tagID!==h.SELECT&&e._processStartTag(t));break}case h.SCRIPT:case h.TEMPLATE:{Wt(e,t);break}}}function $g(e,t){switch(t.tagID){case h.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===h.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===h.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===h.OPTGROUP&&e.openElements.pop();break}case h.OPTION:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop();break}case h.SELECT:{e.openElements.hasInSelectScope(h.SELECT)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode());break}case h.TEMPLATE:{Tr(e,t);break}}}function d3(e,t){const n=t.tagID;n===h.CAPTION||n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR||n===h.TD||n===h.TH?(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Vg(e,t)}function p3(e,t){const n=t.tagID;n===h.CAPTION||n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR||n===h.TD||n===h.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),e.onEndTag(t)):$g(e,t)}function f3(e,t){switch(t.tagID){case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:case h.NOFRAMES:case h.SCRIPT:case h.STYLE:case h.TEMPLATE:case h.TITLE:{Wt(e,t);break}case h.CAPTION:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:{e.tmplInsertionModeStack[0]=S.IN_TABLE,e.insertionMode=S.IN_TABLE,Kr(e,t);break}case h.COL:{e.tmplInsertionModeStack[0]=S.IN_COLUMN_GROUP,e.insertionMode=S.IN_COLUMN_GROUP,pl(e,t);break}case h.TR:{e.tmplInsertionModeStack[0]=S.IN_TABLE_BODY,e.insertionMode=S.IN_TABLE_BODY,no(e,t);break}case h.TD:case h.TH:{e.tmplInsertionModeStack[0]=S.IN_ROW,e.insertionMode=S.IN_ROW,ro(e,t);break}default:e.tmplInsertionModeStack[0]=S.IN_BODY,e.insertionMode=S.IN_BODY,ut(e,t)}}function h3(e,t){t.tagID===h.TEMPLATE&&Tr(e,t)}function Wg(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):dl(e,t)}function m3(e,t){t.tagID===h.HTML?ut(e,t):ba(e,t)}function Yg(e,t){var n;if(t.tagID===h.HTML){if(e.fragmentContext||(e.insertionMode=S.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===h.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else ba(e,t)}function ba(e,t){e.insertionMode=S.IN_BODY,eo(e,t)}function g3(e,t){switch(t.tagID){case h.HTML:{ut(e,t);break}case h.FRAMESET:{e._insertElement(t,F.HTML);break}case h.FRAME:{e._appendElement(t,F.HTML),t.ackSelfClosing=!0;break}case h.NOFRAMES:{Wt(e,t);break}}}function x3(e,t){t.tagID===h.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==h.FRAMESET&&(e.insertionMode=S.AFTER_FRAMESET))}function b3(e,t){switch(t.tagID){case h.HTML:{ut(e,t);break}case h.NOFRAMES:{Wt(e,t);break}}}function y3(e,t){t.tagID===h.HTML&&(e.insertionMode=S.AFTER_AFTER_FRAMESET)}function E3(e,t){t.tagID===h.HTML?ut(e,t):ea(e,t)}function ea(e,t){e.insertionMode=S.IN_BODY,eo(e,t)}function v3(e,t){switch(t.tagID){case h.HTML:{ut(e,t);break}case h.NOFRAMES:{Wt(e,t);break}}}function T3(e,t){t.chars=Ue,e._insertCharacters(t)}function w3(e,t){e._insertCharacters(t),e.framesetOk=!1}function qg(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==F.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function _3(e,t){if(BS(t))qg(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===F.MATHML?Ng(t):r===F.SVG&&(HS(t),Ig(t)),cl(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function C3(e,t){if(t.tagID===h.P||t.tagID===h.BR){qg(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===F.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}I.AREA,I.BASE,I.BASEFONT,I.BGSOUND,I.BR,I.COL,I.EMBED,I.FRAME,I.HR,I.IMG,I.INPUT,I.KEYGEN,I.LINK,I.META,I.PARAM,I.SOURCE,I.TRACK,I.WBR;const A3=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,k3=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Gp={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Gg(e,t){const n=j3(e),r=c0("type",{handlers:{root:S3,element:R3,text:N3,comment:Xg,doctype:I3,raw:P3},unknown:D3}),i={parser:n?new Wp(Gp):Wp.getFragmentParser(void 0,Gp),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),di(i,cn());const s=n?i.parser.document:i.parser.getFragment(),a=Fk(s,{file:i.options.file});return i.stitches&&Ka(a,"comment",function(o,u,c){const d=o;if(d.value.stitch&&c&&u!==void 0){const p=c.children;return p[u]=d.value.stitch,u}}),a.type==="root"&&a.children.length===1&&a.children[0].type===e.type?a.children[0]:a}function Kg(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function S3(e,t){Kg(e.children,t)}function R3(e,t){L3(e,t),Kg(e.children,t),M3(e,t)}function N3(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:_e.CHARACTER,chars:e.value,location:vs(e)};di(t,cn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function I3(e,t){const n={type:_e.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:vs(e)};di(t,cn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function O3(e,t){t.stitches=!0;const n=F3(e);if("children"in e&&"children"in n){const r=Gg({type:"root",children:e.children},t.options);n.children=r.children}Xg({type:"comment",value:{stitch:n}},t)}function Xg(e,t){const n=e.value,r={type:_e.COMMENT,data:n,location:vs(e)};di(t,cn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function P3(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Zg(t,cn(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(A3,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function D3(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))O3(n,t);else{let r="";throw k3.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function di(e,t){Zg(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=qe.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Zg(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function L3(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===qe.PLAINTEXT)return;di(t,cn(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:lr.html;i===lr.html&&n==="svg"&&(i=lr.svg);const s=Vk({...e,children:[]},{space:i===lr.svg?"svg":"html"}),a={type:_e.START_TAG,tagName:n,tagID:li(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in s?s.attrs:[],location:vs(e)};t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function M3(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Zk.includes(n)||t.parser.tokenizer.state===qe.PLAINTEXT)return;di(t,Qa(e));const r={type:_e.END_TAG,tagName:n,tagID:li(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:vs(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===qe.RCDATA||t.parser.tokenizer.state===qe.RAWTEXT||t.parser.tokenizer.state===qe.SCRIPT_DATA)&&(t.parser.tokenizer.state=qe.DATA)}function j3(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function vs(e){const t=cn(e)||{line:void 0,column:void 0,offset:void 0},n=Qa(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function F3(e){return"children"in e?Gr({...e,children:[]}):Gr(e)}function Qg(e){return function(t,n){return Gg(t,{...e,file:n})}}function Fn(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Kp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Jg(...e){return t=>{let n=!1;const r=e.map(i=>{const s=Kp(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():Kp(e[i],null)}}}}function wr(...e){return l.reactExports.useCallback(Jg(...e),e)}var fl=l.reactExports.forwardRef((e,t)=>{const{children:n,...r}=e,i=l.reactExports.Children.toArray(n),s=i.find(H3);if(s){const a=s.props.children,o=i.map(u=>u===s?l.reactExports.Children.count(a)>1?l.reactExports.Children.only(null):l.reactExports.isValidElement(a)?a.props.children:null:u);return l.jsxRuntimeExports.jsx(Xu,{...r,ref:t,children:l.reactExports.isValidElement(a)?l.reactExports.cloneElement(a,void 0,o):null})}return l.jsxRuntimeExports.jsx(Xu,{...r,ref:t,children:n})});fl.displayName="Slot";var Xu=l.reactExports.forwardRef((e,t)=>{const{children:n,...r}=e;if(l.reactExports.isValidElement(n)){const i=z3(n);return l.reactExports.cloneElement(n,{...U3(r,n.props),ref:t?Jg(t,i):i})}return l.reactExports.Children.count(n)>1?l.reactExports.Children.only(null):null});Xu.displayName="SlotClone";var B3=({children:e})=>l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:e});function H3(e){return l.reactExports.isValidElement(e)&&e.type===B3}function U3(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...o)=>{s(...o),i(...o)}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function z3(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var V3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Jn=V3.reduce((e,t)=>{const n=l.reactExports.forwardRef((r,i)=>{const{asChild:s,...a}=r,o=s?fl:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsxRuntimeExports.jsx(o,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function $3(e,t){e&&Wr.flushSync(()=>e.dispatchEvent(t))}var W3="DismissableLayer",Zu="dismissableLayer.update",Y3="dismissableLayer.pointerDownOutside",q3="dismissableLayer.focusOutside",Xp,ex=l.reactExports.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),tx=l.reactExports.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:o,...u}=e,c=l.reactExports.useContext(ex),[d,p]=l.reactExports.useState(null),f=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=l.reactExports.useState({}),x=wr(t,O=>p(O)),g=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(b),w=d?g.indexOf(d):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,k=w>=y,C=X3(O=>{const D=O.target,j=[...c.branches].some(N=>N.contains(D));!k||j||(i==null||i(O),a==null||a(O),O.defaultPrevented||o==null||o())},f),R=Z3(O=>{const D=O.target;[...c.branches].some(N=>N.contains(D))||(s==null||s(O),a==null||a(O),O.defaultPrevented||o==null||o())},f);return lm(O=>{w===c.layers.size-1&&(r==null||r(O),!O.defaultPrevented&&o&&(O.preventDefault(),o()))},f),l.reactExports.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Xp=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Zp(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Xp)}},[d,f,n,c]),l.reactExports.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Zp())},[d,c]),l.reactExports.useEffect(()=>{const O=()=>m({});return document.addEventListener(Zu,O),()=>document.removeEventListener(Zu,O)},[]),l.jsxRuntimeExports.jsx(Jn.div,{...u,ref:x,style:{pointerEvents:v?k?"auto":"none":void 0,...e.style},onFocusCapture:Fn(e.onFocusCapture,R.onFocusCapture),onBlurCapture:Fn(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:Fn(e.onPointerDownCapture,C.onPointerDownCapture)})});tx.displayName=W3;var G3="DismissableLayerBranch",K3=l.reactExports.forwardRef((e,t)=>{const n=l.reactExports.useContext(ex),r=l.reactExports.useRef(null),i=wr(t,r);return l.reactExports.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsxRuntimeExports.jsx(Jn.div,{...e,ref:i})});K3.displayName=G3;function X3(e,t=globalThis==null?void 0:globalThis.document){const n=_t(e),r=l.reactExports.useRef(!1),i=l.reactExports.useRef(()=>{});return l.reactExports.useEffect(()=>{const s=o=>{if(o.target&&!r.current){let u=function(){nx(Y3,n,c,{discrete:!0})};const c={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}else t.removeEventListener("click",i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Z3(e,t=globalThis==null?void 0:globalThis.document){const n=_t(e),r=l.reactExports.useRef(!1);return l.reactExports.useEffect(()=>{const i=s=>{s.target&&!r.current&&nx(q3,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Zp(){const e=new CustomEvent(Zu);document.dispatchEvent(e)}function nx(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?$3(i,s):i.dispatchEvent(s)}var Qo="focusScope.autoFocusOnMount",Jo="focusScope.autoFocusOnUnmount",Qp={bubbles:!1,cancelable:!0},Q3="FocusScope",rx=l.reactExports.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...a}=e,[o,u]=l.reactExports.useState(null),c=_t(i),d=_t(s),p=l.reactExports.useRef(null),f=wr(t,g=>u(g)),m=l.reactExports.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.reactExports.useEffect(()=>{if(r){let g=function(v){if(m.paused||!o)return;const k=v.target;o.contains(k)?p.current=k:Dn(p.current,{select:!0})},b=function(v){if(m.paused||!o)return;const k=v.relatedTarget;k!==null&&(o.contains(k)||Dn(p.current,{select:!0}))},y=function(v){if(document.activeElement===document.body)for(const C of v)C.removedNodes.length>0&&Dn(o)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const w=new MutationObserver(y);return o&&w.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),w.disconnect()}}},[r,o,m.paused]),l.reactExports.useEffect(()=>{if(o){ef.add(m);const g=document.activeElement;if(!o.contains(g)){const y=new CustomEvent(Qo,Qp);o.addEventListener(Qo,c),o.dispatchEvent(y),y.defaultPrevented||(J3(iN(ix(o)),{select:!0}),document.activeElement===g&&Dn(o))}return()=>{o.removeEventListener(Qo,c),setTimeout(()=>{const y=new CustomEvent(Jo,Qp);o.addEventListener(Jo,d),o.dispatchEvent(y),y.defaultPrevented||Dn(g??document.body,{select:!0}),o.removeEventListener(Jo,d),ef.remove(m)},0)}}},[o,c,d,m]);const x=l.reactExports.useCallback(g=>{if(!n&&!r||m.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(b&&y){const w=g.currentTarget,[v,k]=eN(w);v&&k?!g.shiftKey&&y===k?(g.preventDefault(),n&&Dn(v,{select:!0})):g.shiftKey&&y===v&&(g.preventDefault(),n&&Dn(k,{select:!0})):y===w&&g.preventDefault()}},[n,r,m.paused]);return l.jsxRuntimeExports.jsx(Jn.div,{tabIndex:-1,...a,ref:f,onKeyDown:x})});rx.displayName=Q3;function J3(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Dn(r,{select:t}),document.activeElement!==n)return}function eN(e){const t=ix(e),n=Jp(t,e),r=Jp(t.reverse(),e);return[n,r]}function ix(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Jp(e,t){for(const n of e)if(!tN(n,{upTo:t}))return n}function tN(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function nN(e){return e instanceof HTMLInputElement&&"select"in e}function Dn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&nN(e)&&t&&e.select()}}var ef=rN();function rN(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=tf(e,t),e.unshift(t)},remove(t){var n;e=tf(e,t),(n=e[0])==null||n.resume()}}}function tf(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function iN(e){return e.filter(t=>t.tagName!=="A")}function sN(e,t){return l.reactExports.useReducer((n,r)=>t[n][r]??n,e)}var hl=e=>{const{present:t,children:n}=e,r=aN(t),i=typeof n=="function"?n({present:r.isPresent}):l.reactExports.Children.only(n),s=wr(r.ref,oN(i));return typeof n=="function"||r.isPresent?l.reactExports.cloneElement(i,{ref:s}):null};hl.displayName="Presence";function aN(e){const[t,n]=l.reactExports.useState(),r=l.reactExports.useRef({}),i=l.reactExports.useRef(e),s=l.reactExports.useRef("none"),a=e?"mounted":"unmounted",[o,u]=sN(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.reactExports.useEffect(()=>{const c=Fs(r.current);s.current=o==="mounted"?c:"none"},[o]),tn(()=>{const c=r.current,d=i.current;if(d!==e){const f=s.current,m=Fs(c);e?u("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?u("UNMOUNT"):u(d&&f!==m?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,u]),tn(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,p=m=>{const g=Fs(r.current).includes(m.animationName);if(m.target===t&&g&&(u("ANIMATION_END"),!i.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=m=>{m.target===t&&(s.current=Fs(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:l.reactExports.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Fs(e){return(e==null?void 0:e.animationName)||"none"}function oN(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ta="right-scroll-bar-position",na="width-before-scroll-bar",uN="with-scroll-bars-hidden",cN="--removed-body-scroll-bar-size";function eu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function lN(e,t){var n=l.reactExports.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var dN=typeof window<"u"?l.reactExports.useLayoutEffect:l.reactExports.useEffect,nf=new WeakMap;function pN(e,t){var n=lN(null,function(r){return e.forEach(function(i){return eu(i,r)})});return dN(function(){var r=nf.get(n);if(r){var i=new Set(r),s=new Set(e),a=n.current;i.forEach(function(o){s.has(o)||eu(o,null)}),s.forEach(function(o){i.has(o)||eu(o,a)})}nf.set(n,e)},[e]),n}var sx=Bm(),tu=function(){},io=l.reactExports.forwardRef(function(e,t){var n=l.reactExports.useRef(null),r=l.reactExports.useState({onScrollCapture:tu,onWheelCapture:tu,onTouchMoveCapture:tu}),i=r[0],s=r[1],a=e.forwardProps,o=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,p=e.shards,f=e.sideCar,m=e.noIsolation,x=e.inert,g=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,v=l.__rest(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=f,C=pN([n,t]),R=l.__assign(l.__assign({},v),i);return l.reactExports.createElement(l.reactExports.Fragment,null,d&&l.reactExports.createElement(k,{sideCar:sx,removeScrollBar:c,shards:p,noIsolation:m,inert:x,setCallbacks:s,allowPinchZoom:!!g,lockRef:n,gapMode:w}),a?l.reactExports.cloneElement(l.reactExports.Children.only(o),l.__assign(l.__assign({},R),{ref:C})):l.reactExports.createElement(y,l.__assign({},R,{className:u,ref:C}),o))});io.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};io.classNames={fullWidth:na,zeroRight:ta};function fN(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Vm();return t&&e.setAttribute("nonce",t),e}function hN(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function mN(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var gN=function(){var e=0,t=null;return{add:function(n){e==0&&(t=fN())&&(hN(t,n),mN(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},xN=function(){var e=gN();return function(t,n){l.reactExports.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},bN=function(){var e=xN(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},yN={left:0,top:0,right:0,gap:0},nu=function(e){return parseInt(e||"",10)||0},EN=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[nu(n),nu(r),nu(i)]},vN=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return yN;var t=EN(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},TN=bN(),zr="data-scroll-locked",wN=function(e,t,n,r){var i=e.left,s=e.top,a=e.right,o=e.gap;return n===void 0&&(n="margin"),`
90
+ .`.concat(uN,` {
91
+ overflow: hidden `).concat(r,`;
92
+ padding-right: `).concat(o,"px ").concat(r,`;
93
+ }
94
+ body[`).concat(zr,`] {
95
+ overflow: hidden `).concat(r,`;
96
+ overscroll-behavior: contain;
97
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
98
+ padding-left: `.concat(i,`px;
99
+ padding-top: `).concat(s,`px;
100
+ padding-right: `).concat(a,`px;
101
+ margin-left:0;
102
+ margin-top:0;
103
+ margin-right: `).concat(o,"px ").concat(r,`;
104
+ `),n==="padding"&&"padding-right: ".concat(o,"px ").concat(r,";")].filter(Boolean).join(""),`
105
+ }
106
+
107
+ .`).concat(ta,` {
108
+ right: `).concat(o,"px ").concat(r,`;
109
+ }
110
+
111
+ .`).concat(na,` {
112
+ margin-right: `).concat(o,"px ").concat(r,`;
113
+ }
114
+
115
+ .`).concat(ta," .").concat(ta,` {
116
+ right: 0 `).concat(r,`;
117
+ }
118
+
119
+ .`).concat(na," .").concat(na,` {
120
+ margin-right: 0 `).concat(r,`;
121
+ }
122
+
123
+ body[`).concat(zr,`] {
124
+ `).concat(cN,": ").concat(o,`px;
125
+ }
126
+ `)},rf=function(){var e=parseInt(document.body.getAttribute(zr)||"0",10);return isFinite(e)?e:0},_N=function(){l.reactExports.useEffect(function(){return document.body.setAttribute(zr,(rf()+1).toString()),function(){var e=rf()-1;e<=0?document.body.removeAttribute(zr):document.body.setAttribute(zr,e.toString())}},[])},CN=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;_N();var s=l.reactExports.useMemo(function(){return vN(i)},[i]);return l.reactExports.createElement(TN,{styles:wN(s,!t,i,n?"":"!important")})},Qu=!1;if(typeof window<"u")try{var Bs=Object.defineProperty({},"passive",{get:function(){return Qu=!0,!0}});window.addEventListener("test",Bs,Bs),window.removeEventListener("test",Bs,Bs)}catch{Qu=!1}var Sr=Qu?{passive:!1}:!1,AN=function(e){return e.tagName==="TEXTAREA"},ax=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!AN(e)&&n[t]==="visible")},kN=function(e){return ax(e,"overflowY")},SN=function(e){return ax(e,"overflowX")},sf=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=ox(e,r);if(i){var s=ux(e,r),a=s[1],o=s[2];if(a>o)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},RN=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},NN=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ox=function(e,t){return e==="v"?kN(t):SN(t)},ux=function(e,t){return e==="v"?RN(t):NN(t)},IN=function(e,t){return e==="h"&&t==="rtl"?-1:1},ON=function(e,t,n,r,i){var s=IN(e,window.getComputedStyle(t).direction),a=s*r,o=n.target,u=t.contains(o),c=!1,d=a>0,p=0,f=0;do{var m=ux(e,o),x=m[0],g=m[1],b=m[2],y=g-b-s*x;(x||y)&&ox(e,o)&&(p+=y,f+=x),o instanceof ShadowRoot?o=o.host:o=o.parentNode}while(!u&&o!==document.body||u&&(t.contains(o)||t===o));return(d&&(Math.abs(p)<1||!i)||!d&&(Math.abs(f)<1||!i))&&(c=!0),c},Hs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},af=function(e){return[e.deltaX,e.deltaY]},of=function(e){return e&&"current"in e?e.current:e},PN=function(e,t){return e[0]===t[0]&&e[1]===t[1]},DN=function(e){return`
127
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
128
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
129
+ `)},LN=0,Rr=[];function MN(e){var t=l.reactExports.useRef([]),n=l.reactExports.useRef([0,0]),r=l.reactExports.useRef(),i=l.reactExports.useState(LN++)[0],s=l.reactExports.useState($c)[0],a=l.reactExports.useRef(e);l.reactExports.useEffect(function(){a.current=e},[e]),l.reactExports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var g=l.__spreadArray([e.lockRef.current],(e.shards||[]).map(of),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var o=l.reactExports.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!a.current.allowPinchZoom;var y=Hs(g),w=n.current,v="deltaX"in g?g.deltaX:w[0]-y[0],k="deltaY"in g?g.deltaY:w[1]-y[1],C,R=g.target,O=Math.abs(v)>Math.abs(k)?"h":"v";if("touches"in g&&O==="h"&&R.type==="range")return!1;var D=sf(O,R);if(!D)return!0;if(D?C=O:(C=O==="v"?"h":"v",D=sf(O,R)),!D)return!1;if(!r.current&&"changedTouches"in g&&(v||k)&&(r.current=C),!C)return!0;var j=r.current||C;return ON(j,b,g,j==="h"?v:k,!0)},[]),u=l.reactExports.useCallback(function(g){var b=g;if(!(!Rr.length||Rr[Rr.length-1]!==s)){var y="deltaY"in b?af(b):Hs(b),w=t.current.filter(function(C){return C.name===b.type&&(C.target===b.target||b.target===C.shadowParent)&&PN(C.delta,y)})[0];if(w&&w.should){b.cancelable&&b.preventDefault();return}if(!w){var v=(a.current.shards||[]).map(of).filter(Boolean).filter(function(C){return C.contains(b.target)}),k=v.length>0?o(b,v[0]):!a.current.noIsolation;k&&b.cancelable&&b.preventDefault()}}},[]),c=l.reactExports.useCallback(function(g,b,y,w){var v={name:g,delta:b,target:y,should:w,shadowParent:jN(y)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(k){return k!==v})},1)},[]),d=l.reactExports.useCallback(function(g){n.current=Hs(g),r.current=void 0},[]),p=l.reactExports.useCallback(function(g){c(g.type,af(g),g.target,o(g,e.lockRef.current))},[]),f=l.reactExports.useCallback(function(g){c(g.type,Hs(g),g.target,o(g,e.lockRef.current))},[]);l.reactExports.useEffect(function(){return Rr.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",u,Sr),document.addEventListener("touchmove",u,Sr),document.addEventListener("touchstart",d,Sr),function(){Rr=Rr.filter(function(g){return g!==s}),document.removeEventListener("wheel",u,Sr),document.removeEventListener("touchmove",u,Sr),document.removeEventListener("touchstart",d,Sr)}},[]);var m=e.removeScrollBar,x=e.inert;return l.reactExports.createElement(l.reactExports.Fragment,null,x?l.reactExports.createElement(s,{styles:DN(i)}):null,m?l.reactExports.createElement(CN,{gapMode:e.gapMode}):null)}function jN(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const FN=Um(sx,MN);var cx=l.reactExports.forwardRef(function(e,t){return l.reactExports.createElement(io,l.__assign({},e,{ref:t,sideCar:FN}))});cx.classNames=io.classNames;var ml="Dialog",[lx,$8]=Ba(ml),[BN,ln]=lx(ml),dx=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:s,modal:a=!0}=e,o=l.reactExports.useRef(null),u=l.reactExports.useRef(null),[c=!1,d]=Vc({prop:r,defaultProp:i,onChange:s});return l.jsxRuntimeExports.jsx(BN,{scope:t,triggerRef:o,contentRef:u,contentId:Ri(),titleId:Ri(),descriptionId:Ri(),open:c,onOpenChange:d,onOpenToggle:l.reactExports.useCallback(()=>d(p=>!p),[d]),modal:a,children:n})};dx.displayName=ml;var px="DialogTrigger",fx=l.reactExports.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ln(px,n),s=wr(t,i.triggerRef);return l.jsxRuntimeExports.jsx(Jn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":xl(i.open),...r,ref:s,onClick:Fn(e.onClick,i.onOpenToggle)})});fx.displayName=px;var HN="DialogPortal",[W8,hx]=lx(HN,{forceMount:void 0}),ya="DialogOverlay",mx=l.reactExports.forwardRef((e,t)=>{const n=hx(ya,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=ln(ya,e.__scopeDialog);return s.modal?l.jsxRuntimeExports.jsx(hl,{present:r||s.open,children:l.jsxRuntimeExports.jsx(UN,{...i,ref:t})}):null});mx.displayName=ya;var UN=l.reactExports.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ln(ya,n);return l.jsxRuntimeExports.jsx(cx,{as:fl,allowPinchZoom:!0,shards:[i.contentRef],children:l.jsxRuntimeExports.jsx(Jn.div,{"data-state":xl(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),xr="DialogContent",gx=l.reactExports.forwardRef((e,t)=>{const n=hx(xr,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=ln(xr,e.__scopeDialog);return l.jsxRuntimeExports.jsx(hl,{present:r||s.open,children:s.modal?l.jsxRuntimeExports.jsx(zN,{...i,ref:t}):l.jsxRuntimeExports.jsx(VN,{...i,ref:t})})});gx.displayName=xr;var zN=l.reactExports.forwardRef((e,t)=>{const n=ln(xr,e.__scopeDialog),r=l.reactExports.useRef(null),i=wr(t,n.contentRef,r);return l.reactExports.useEffect(()=>{const s=r.current;if(s)return Fm(s)},[]),l.jsxRuntimeExports.jsx(xx,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Fn(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Fn(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,o=a.button===0&&a.ctrlKey===!0;(a.button===2||o)&&s.preventDefault()}),onFocusOutside:Fn(e.onFocusOutside,s=>s.preventDefault())})}),VN=l.reactExports.forwardRef((e,t)=>{const n=ln(xr,e.__scopeDialog),r=l.reactExports.useRef(!1),i=l.reactExports.useRef(!1);return l.jsxRuntimeExports.jsx(xx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,o;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(o=n.triggerRef.current)==null||o.focus(),s.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:s=>{var u,c;(u=e.onInteractOutside)==null||u.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const a=s.target;((c=n.triggerRef.current)==null?void 0:c.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})}),xx=l.reactExports.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,...a}=e,o=ln(xr,n),u=l.reactExports.useRef(null),c=wr(t,u);return fm(),l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(rx,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:s,children:l.jsxRuntimeExports.jsx(tx,{role:"dialog",id:o.contentId,"aria-describedby":o.descriptionId,"aria-labelledby":o.titleId,"data-state":xl(o.open),...a,ref:c,onDismiss:()=>o.onOpenChange(!1)})}),l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx($N,{titleId:o.titleId}),l.jsxRuntimeExports.jsx(YN,{contentRef:u,descriptionId:o.descriptionId})]})]})}),gl="DialogTitle",bx=l.reactExports.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ln(gl,n);return l.jsxRuntimeExports.jsx(Jn.h2,{id:i.titleId,...r,ref:t})});bx.displayName=gl;var yx="DialogDescription",Ex=l.reactExports.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ln(yx,n);return l.jsxRuntimeExports.jsx(Jn.p,{id:i.descriptionId,...r,ref:t})});Ex.displayName=yx;var vx="DialogClose",Tx=l.reactExports.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ln(vx,n);return l.jsxRuntimeExports.jsx(Jn.button,{type:"button",...r,ref:t,onClick:Fn(e.onClick,()=>i.onOpenChange(!1))})});Tx.displayName=vx;function xl(e){return e?"open":"closed"}var wx="DialogTitleWarning",[Y8,_x]=Cy(wx,{contentName:xr,titleName:gl,docsSlug:"dialog"}),$N=({titleId:e})=>{const t=_x(wx),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
130
+
131
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
132
+
133
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.reactExports.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},WN="DialogDescriptionWarning",YN=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${_x(WN).contentName}}.`;return l.reactExports.useEffect(()=>{var s;const i=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},qN=dx,GN=fx,Cx=mx,Ax=gx,kx=bx,Sx=Ex,KN=Tx;/**
134
+ * @license lucide-react v0.436.0 - ISC
135
+ *
136
+ * This source code is licensed under the ISC license.
137
+ * See the LICENSE file in the root directory of this source tree.
138
+ */const XN=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Rx=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
139
+ * @license lucide-react v0.436.0 - ISC
140
+ *
141
+ * This source code is licensed under the ISC license.
142
+ * See the LICENSE file in the root directory of this source tree.
143
+ */var ZN={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
144
+ * @license lucide-react v0.436.0 - ISC
145
+ *
146
+ * This source code is licensed under the ISC license.
147
+ * See the LICENSE file in the root directory of this source tree.
148
+ */const QN=l.reactExports.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:a,...o},u)=>l.reactExports.createElement("svg",{ref:u,...ZN,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Rx("lucide",i),...o},[...a.map(([c,d])=>l.reactExports.createElement(c,d)),...Array.isArray(s)?s:[s]]));/**
149
+ * @license lucide-react v0.436.0 - ISC
150
+ *
151
+ * This source code is licensed under the ISC license.
152
+ * See the LICENSE file in the root directory of this source tree.
153
+ */const Pe=(e,t)=>{const n=l.reactExports.forwardRef(({className:r,...i},s)=>l.reactExports.createElement(QN,{ref:s,iconNode:t,className:Rx(`lucide-${XN(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
154
+ * @license lucide-react v0.436.0 - ISC
155
+ *
156
+ * This source code is licensed under the ISC license.
157
+ * See the LICENSE file in the root directory of this source tree.
158
+ */const JN=Pe("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
159
+ * @license lucide-react v0.436.0 - ISC
160
+ *
161
+ * This source code is licensed under the ISC license.
162
+ * See the LICENSE file in the root directory of this source tree.
163
+ */const eI=Pe("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]);/**
164
+ * @license lucide-react v0.436.0 - ISC
165
+ *
166
+ * This source code is licensed under the ISC license.
167
+ * See the LICENSE file in the root directory of this source tree.
168
+ */const tI=Pe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
169
+ * @license lucide-react v0.436.0 - ISC
170
+ *
171
+ * This source code is licensed under the ISC license.
172
+ * See the LICENSE file in the root directory of this source tree.
173
+ */const nI=Pe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
174
+ * @license lucide-react v0.436.0 - ISC
175
+ *
176
+ * This source code is licensed under the ISC license.
177
+ * See the LICENSE file in the root directory of this source tree.
178
+ */const rI=Pe("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
179
+ * @license lucide-react v0.436.0 - ISC
180
+ *
181
+ * This source code is licensed under the ISC license.
182
+ * See the LICENSE file in the root directory of this source tree.
183
+ */const iI=Pe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
184
+ * @license lucide-react v0.436.0 - ISC
185
+ *
186
+ * This source code is licensed under the ISC license.
187
+ * See the LICENSE file in the root directory of this source tree.
188
+ */const sI=Pe("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
189
+ * @license lucide-react v0.436.0 - ISC
190
+ *
191
+ * This source code is licensed under the ISC license.
192
+ * See the LICENSE file in the root directory of this source tree.
193
+ */const aI=Pe("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
194
+ * @license lucide-react v0.436.0 - ISC
195
+ *
196
+ * This source code is licensed under the ISC license.
197
+ * See the LICENSE file in the root directory of this source tree.
198
+ */const Nx=Pe("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
199
+ * @license lucide-react v0.436.0 - ISC
200
+ *
201
+ * This source code is licensed under the ISC license.
202
+ * See the LICENSE file in the root directory of this source tree.
203
+ */const Ix=Pe("CircleDashed",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]);/**
204
+ * @license lucide-react v0.436.0 - ISC
205
+ *
206
+ * This source code is licensed under the ISC license.
207
+ * See the LICENSE file in the root directory of this source tree.
208
+ */const oI=Pe("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
209
+ * @license lucide-react v0.436.0 - ISC
210
+ *
211
+ * This source code is licensed under the ISC license.
212
+ * See the LICENSE file in the root directory of this source tree.
213
+ */const uI=Pe("Expand",[["path",{d:"m21 21-6-6m6 6v-4.8m0 4.8h-4.8",key:"1c15vz"}],["path",{d:"M3 16.2V21m0 0h4.8M3 21l6-6",key:"1fsnz2"}],["path",{d:"M21 7.8V3m0 0h-4.8M21 3l-6 6",key:"hawz9i"}],["path",{d:"M3 7.8V3m0 0h4.8M3 3l6 6",key:"u9ee12"}]]);/**
214
+ * @license lucide-react v0.436.0 - ISC
215
+ *
216
+ * This source code is licensed under the ISC license.
217
+ * See the LICENSE file in the root directory of this source tree.
218
+ */const cI=Pe("FileAudio2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2",key:"17k7jt"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"3",cy:"17",r:"1",key:"vo6nti"}],["path",{d:"M2 17v-3a4 4 0 0 1 8 0v3",key:"1ggdre"}],["circle",{cx:"9",cy:"17",r:"1",key:"bc1fq4"}]]);/**
219
+ * @license lucide-react v0.436.0 - ISC
220
+ *
221
+ * This source code is licensed under the ISC license.
222
+ * See the LICENSE file in the root directory of this source tree.
223
+ */const lI=Pe("FileVideo2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["rect",{width:"8",height:"6",x:"2",y:"12",rx:"1",key:"1a6c1e"}],["path",{d:"m10 15.5 4 2.5v-6l-4 2.5",key:"t7cp39"}]]);/**
224
+ * @license lucide-react v0.436.0 - ISC
225
+ *
226
+ * This source code is licensed under the ISC license.
227
+ * See the LICENSE file in the root directory of this source tree.
228
+ */const dI=Pe("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);/**
229
+ * @license lucide-react v0.436.0 - ISC
230
+ *
231
+ * This source code is licensed under the ISC license.
232
+ * See the LICENSE file in the root directory of this source tree.
233
+ */const pI=Pe("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
234
+ * @license lucide-react v0.436.0 - ISC
235
+ *
236
+ * This source code is licensed under the ISC license.
237
+ * See the LICENSE file in the root directory of this source tree.
238
+ */const fI=Pe("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
239
+ * @license lucide-react v0.436.0 - ISC
240
+ *
241
+ * This source code is licensed under the ISC license.
242
+ * See the LICENSE file in the root directory of this source tree.
243
+ */const hI=Pe("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);/**
244
+ * @license lucide-react v0.436.0 - ISC
245
+ *
246
+ * This source code is licensed under the ISC license.
247
+ * See the LICENSE file in the root directory of this source tree.
248
+ */const mI=Pe("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
249
+ * @license lucide-react v0.436.0 - ISC
250
+ *
251
+ * This source code is licensed under the ISC license.
252
+ * See the LICENSE file in the root directory of this source tree.
253
+ */const gI=Pe("Maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);/**
254
+ * @license lucide-react v0.436.0 - ISC
255
+ *
256
+ * This source code is licensed under the ISC license.
257
+ * See the LICENSE file in the root directory of this source tree.
258
+ */const xI=Pe("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
259
+ * @license lucide-react v0.436.0 - ISC
260
+ *
261
+ * This source code is licensed under the ISC license.
262
+ * See the LICENSE file in the root directory of this source tree.
263
+ */const bI=Pe("Minimize",[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]]);/**
264
+ * @license lucide-react v0.436.0 - ISC
265
+ *
266
+ * This source code is licensed under the ISC license.
267
+ * See the LICENSE file in the root directory of this source tree.
268
+ */const yI=Pe("Paperclip",[["path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48",key:"1u3ebp"}]]);/**
269
+ * @license lucide-react v0.436.0 - ISC
270
+ *
271
+ * This source code is licensed under the ISC license.
272
+ * See the LICENSE file in the root directory of this source tree.
273
+ */const EI=Pe("SendHorizontal",[["path",{d:"m3 3 3 9-3 9 19-9Z",key:"1aobqy"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]);/**
274
+ * @license lucide-react v0.436.0 - ISC
275
+ *
276
+ * This source code is licensed under the ISC license.
277
+ * See the LICENSE file in the root directory of this source tree.
278
+ */const vI=Pe("Shrink",[["path",{d:"m15 15 6 6m-6-6v4.8m0-4.8h4.8",key:"17vawe"}],["path",{d:"M9 19.8V15m0 0H4.2M9 15l-6 6",key:"chjx8e"}],["path",{d:"M15 4.2V9m0 0h4.8M15 9l6-6",key:"lav6yq"}],["path",{d:"M9 4.2V9m0 0H4.2M9 9 3 3",key:"1pxi2q"}]]);/**
279
+ * @license lucide-react v0.436.0 - ISC
280
+ *
281
+ * This source code is licensed under the ISC license.
282
+ * See the LICENSE file in the root directory of this source tree.
283
+ */const TI=Pe("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
284
+ * @license lucide-react v0.436.0 - ISC
285
+ *
286
+ * This source code is licensed under the ISC license.
287
+ * See the LICENSE file in the root directory of this source tree.
288
+ */const wI=Pe("SquareCheck",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
289
+ * @license lucide-react v0.436.0 - ISC
290
+ *
291
+ * This source code is licensed under the ISC license.
292
+ * See the LICENSE file in the root directory of this source tree.
293
+ */const _I=Pe("SquareX",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
294
+ * @license lucide-react v0.436.0 - ISC
295
+ *
296
+ * This source code is licensed under the ISC license.
297
+ * See the LICENSE file in the root directory of this source tree.
298
+ */const CI=Pe("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/**
299
+ * @license lucide-react v0.436.0 - ISC
300
+ *
301
+ * This source code is licensed under the ISC license.
302
+ * See the LICENSE file in the root directory of this source tree.
303
+ */const so=Pe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Ox(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ox(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function AI(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ox(e))&&(r&&(r+=" "),r+=t);return r}const bl="-",kI=e=>{const t=RI(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const o=a.split(bl);return o[0]===""&&o.length!==1&&o.shift(),Px(o,t)||SI(a)},getConflictingClassGroupIds:(a,o)=>{const u=n[a]||[];return o&&r[a]?[...u,...r[a]]:u}}},Px=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?Px(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(bl);return(a=t.validators.find(({validator:o})=>o(s)))==null?void 0:a.classGroupId},uf=/^\[(.+)\]$/,SI=e=>{if(uf.test(e)){const t=uf.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},RI=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return II(Object.entries(e.classGroups),n).forEach(([s,a])=>{Ju(a,r,s,t)}),r},Ju=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:cf(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(NI(i)){Ju(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,a])=>{Ju(a,cf(t,s),n,r)})})},cf=(e,t)=>{let n=e;return t.split(bl).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},NI=e=>e.isThemeGetter,II=(e,t)=>t?e.map(([n,r])=>{const i=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,o])=>[t+a,o])):s);return[n,i]}):e,OI=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(s,a)=>{n.set(s,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return i(s,a),a},set(s,a){n.has(s)?n.set(s,a):i(s,a)}}},Dx="!",PI=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],s=t.length,a=o=>{const u=[];let c=0,d=0,p;for(let b=0;b<o.length;b++){let y=o[b];if(c===0){if(y===i&&(r||o.slice(b,b+s)===t)){u.push(o.slice(d,b)),d=b+s;continue}if(y==="/"){p=b;continue}}y==="["?c++:y==="]"&&c--}const f=u.length===0?o:o.substring(d),m=f.startsWith(Dx),x=m?f.substring(1):f,g=p&&p>d?p-d:void 0;return{modifiers:u,hasImportantModifier:m,baseClassName:x,maybePostfixModifierPosition:g}};return n?o=>n({className:o,parseClassName:a}):a},DI=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},LI=e=>({cache:OI(e.cacheSize),parseClassName:PI(e),...kI(e)}),MI=/\s+/,jI=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,s=[],a=e.trim().split(MI);let o="";for(let u=a.length-1;u>=0;u-=1){const c=a[u],{modifiers:d,hasImportantModifier:p,baseClassName:f,maybePostfixModifierPosition:m}=n(c);let x=!!m,g=r(x?f.substring(0,m):f);if(!g){if(!x){o=c+(o.length>0?" "+o:o);continue}if(g=r(f),!g){o=c+(o.length>0?" "+o:o);continue}x=!1}const b=DI(d).join(":"),y=p?b+Dx:b,w=y+g;if(s.includes(w))continue;s.push(w);const v=i(g,x);for(let k=0;k<v.length;++k){const C=v[k];s.push(y+C)}o=c+(o.length>0?" "+o:o)}return o};function FI(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Lx(t))&&(r&&(r+=" "),r+=n);return r}const Lx=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Lx(e[r]))&&(n&&(n+=" "),n+=t);return n};function BI(e,...t){let n,r,i,s=a;function a(u){const c=t.reduce((d,p)=>p(d),e());return n=LI(c),r=n.cache.get,i=n.cache.set,s=o,o(u)}function o(u){const c=r(u);if(c)return c;const d=jI(u,n);return i(u,d),d}return function(){return s(FI.apply(null,arguments))}}const Be=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Mx=/^\[(?:([a-z-]+):)?(.+)\]$/i,HI=/^\d+\/\d+$/,UI=new Set(["px","full","screen"]),zI=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,VI=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,$I=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,WI=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,YI=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fn=e=>Vr(e)||UI.has(e)||HI.test(e),Rn=e=>pi(e,"length",eO),Vr=e=>!!e&&!Number.isNaN(Number(e)),ru=e=>pi(e,"number",Vr),Ei=e=>!!e&&Number.isInteger(Number(e)),qI=e=>e.endsWith("%")&&Vr(e.slice(0,-1)),Te=e=>Mx.test(e),Nn=e=>zI.test(e),GI=new Set(["length","size","percentage"]),KI=e=>pi(e,GI,jx),XI=e=>pi(e,"position",jx),ZI=new Set(["image","url"]),QI=e=>pi(e,ZI,nO),JI=e=>pi(e,"",tO),vi=()=>!0,pi=(e,t,n)=>{const r=Mx.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},eO=e=>VI.test(e)&&!$I.test(e),jx=()=>!1,tO=e=>WI.test(e),nO=e=>YI.test(e),rO=()=>{const e=Be("colors"),t=Be("spacing"),n=Be("blur"),r=Be("brightness"),i=Be("borderColor"),s=Be("borderRadius"),a=Be("borderSpacing"),o=Be("borderWidth"),u=Be("contrast"),c=Be("grayscale"),d=Be("hueRotate"),p=Be("invert"),f=Be("gap"),m=Be("gradientColorStops"),x=Be("gradientColorStopPositions"),g=Be("inset"),b=Be("margin"),y=Be("opacity"),w=Be("padding"),v=Be("saturate"),k=Be("scale"),C=Be("sepia"),R=Be("skew"),O=Be("space"),D=Be("translate"),j=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",Te,t],M=()=>[Te,t],ee=()=>["",fn,Rn],Y=()=>["auto",Vr,Te],K=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ne=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>["start","end","center","between","around","evenly","stretch"],ie=()=>["","0",Te],E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[Vr,Te];return{cacheSize:500,separator:":",theme:{colors:[vi],spacing:[fn,Rn],blur:["none","",Nn,Te],brightness:z(),borderColor:[e],borderRadius:["none","","full",Nn,Te],borderSpacing:M(),borderWidth:ee(),contrast:z(),grayscale:ie(),hueRotate:z(),invert:ie(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[qI,Rn],inset:B(),margin:B(),opacity:z(),padding:M(),saturate:z(),scale:z(),sepia:ie(),skew:z(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",Te]}],container:["container"],columns:[{columns:[Nn]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...K(),Te]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ei,Te]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Te]}],grow:[{grow:ie()}],shrink:[{shrink:ie()}],order:[{order:["first","last","none",Ei,Te]}],"grid-cols":[{"grid-cols":[vi]}],"col-start-end":[{col:["auto",{span:["full",Ei,Te]},Te]}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":[vi]}],"row-start-end":[{row:["auto",{span:[Ei,Te]},Te]}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Te]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...Z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[O]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[O]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Te,t]}],"min-w":[{"min-w":[Te,t,"min","max","fit"]}],"max-w":[{"max-w":[Te,t,"none","full","min","max","fit","prose",{screen:[Nn]},Nn]}],h:[{h:[Te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Nn,Rn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ru]}],"font-family":[{font:[vi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Te]}],"line-clamp":[{"line-clamp":["none",Vr,ru]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",fn,Te]}],"list-image":[{"list-image":["none",Te]}],"list-style-type":[{list:["none","disc","decimal",Te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ne(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",fn,Rn]}],"underline-offset":[{"underline-offset":["auto",fn,Te]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...K(),XI]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",KI]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},QI]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...ne(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:ne()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...ne()]}],"outline-offset":[{"outline-offset":[fn,Te]}],"outline-w":[{outline:[fn,Rn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[fn,Rn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Nn,JI]}],"shadow-color":[{shadow:[vi]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",Nn,Te]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[v]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Te]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",Te]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",Te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[Ei,Te]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Te]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[fn,Rn,ru]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},iO=BI(rO);function ce(...e){return iO(AI(e))}function ec(){return ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ec.apply(null,arguments)}function sO(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var Fx,Bx;typeof document<"u"&&(Fx=document);typeof window<"u"&&(Bx=window);var Hx=l.React$1.createContext({document:Fx,window:Bx}),aO=()=>l.React$1.useContext(Hx),oO=["children","head","initialContent","src","mountTarget"],yl=l.reactExports.forwardRef((e,t)=>{var{children:n,head:r,initialContent:i,src:s,mountTarget:a}=e,o=sO(e,oO),[u,c]=l.reactExports.useState(!1),[d,p]=l.reactExports.useState(),f=k=>{k&&p(k)};l.reactExports.useImperativeHandle(t,()=>d,[d]);var m=i||"<!DOCTYPE html><html><head></head><body></body></html>",x=()=>d?d.contentDocument:null,g=()=>{var k=x();return a?k==null?void 0:k.querySelector(a):k==null?void 0:k.body},b=l.reactExports.useRef(),y=l.reactExports.useCallback(k=>{b.current=k;var C=()=>setInterval(()=>y(k),500);clearInterval(C()),u||c(!0)},[u]);l.reactExports.useMemo(()=>{!s&&o.onLoad&&u&&o.onLoad(b.current)},[u]),l.reactExports.useEffect(()=>{if(d&&!s){var k;(k=d.contentWindow)==null||k.addEventListener("DOMContentLoaded",y)}return()=>{if(d&&!s){var C;(C=d.contentWindow)==null||C.removeEventListener("DOMContentLoaded",y)}}},[d,y]);var w=()=>{var k,C=x(),R=(k=x())==null?void 0:k.head,O=g(),D=(C==null?void 0:C.defaultView)||(C==null?void 0:C.parentView),j=l.jsxRuntimeExports.jsx(Hx.Provider,{value:{document:C,window:D},children:n});return[R&&r&&Wr.createPortal(r,R),d&&O&&Wr.createPortal(j,O)]},v={};return s?(delete v.srcDoc,v.src=s,v.onLoad=o.onLoad):v.srcDoc=m,l.jsxRuntimeExports.jsx("iframe",ec({title:o.title,ref:f},o,{onLoad:y},v,{children:u&&w()}))});yl.displayName="IFrame";const Ux="opencx-widget-portal";function ao(){return null}function uO({children:e}){var n,r;const t=(r=(n=aO())==null?void 0:n.document)==null?void 0:r.getElementById(Ux);return t?Wr.createPortal(e,t):(console.error("Portal container not found!"),null)}function cO(){return l.jsxRuntimeExports.jsx("div",{id:Ux,className:"absolute size-full top-0 left-0"})}ao.Portal=uO;ao.Container=cO;function zx(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=zx(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function lO(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=zx(e))&&(r&&(r+=" "),r+=t);return r}const lf=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,df=lO,dO=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return df(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:s}=t,a=Object.keys(i).map(c=>{const d=n==null?void 0:n[c],p=s==null?void 0:s[c];if(d===null)return null;const f=lf(d)||lf(p);return i[c][f]}),o=n&&Object.entries(n).reduce((c,d)=>{let[p,f]=d;return f===void 0||(c[p]=f),c},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:p,className:f,...m}=d;return Object.entries(m).every(x=>{let[g,b]=x;return Array.isArray(b)?b.includes({...s,...o}[g]):{...s,...o}[g]===b})?[...c,p,f]:c},[]);return df(e,a,u,n==null?void 0:n.class,n==null?void 0:n.className)},Xr={x:2,y:2},xn=l.reactExports.memo(l.reactExports.forwardRef(({children:e,className:t,scale:n=1.02,off:r=!1},i)=>{const[s,a]=l.reactExports.useState(!1),[o,u]=l.reactExports.useState({x:0,y:0});if(r||/translate/.test(e.props.className||""))return e;const d=x=>{var D,j;const{clientX:g,clientY:b}=x,y=x.currentTarget.getBoundingClientRect(),w=g-(y.left+y.width/2),v=b-(y.top+y.height/2),k=Math.max(-1,Math.min(1,w/(y.width/2))),C=Math.max(-1,Math.min(1,v/(y.height/2))),R=k*Xr.x,O=C*Xr.y;u({x:R,y:O}),(j=(D=e.props).onMouseMove)==null||j.call(D,x)},p=()=>{var x,g;a(!0),(g=(x=e.props).onMouseEnter)==null||g.call(x)},f=()=>{var x,g;a(!1),u({x:0,y:0}),(g=(x=e.props).onMouseLeave)==null||g.call(x)},m={"--wobble-x":s?`${o.x}px`:"0px","--wobble-y":s?`${o.y}px`:"0px","--scale":1-(n-1)};return l.reactExports.cloneElement(e,{ref:i,onMouseMove:d,onMouseEnter:p,onMouseLeave:f,style:{...m,...e.props.style},className:ce("translate-x-[var(--wobble-x)]","translate-y-[var(--wobble-y)]","hover:scale-[var(--scale)] active:hover:scale-[calc(var(--scale)-0.02)]",t,e.props.className,"transition-all ease-out")})}));xn.displayName="Wobble";function Oe(e){return{"data-component":e}}const pO=dO(ce("inline-flex shrink-0 items-center justify-center gap-2","text-sm font-medium whitespace-nowrap","ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","active:scale-95 hover:active:scale-95","rounded-xl","transition"),{variants:{variant:{default:"bg-primary text-primary-foreground",destructive:"bg-destructive text-destructive-foreground",outline:"bg-background",secondary:"bg-secondary text-secondary-foreground",ghost:"hover:bg-secondary",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"py-2 px-3.5 text-xs",lg:"min-h-12 px-4 rounded-[20px]",icon:"h-10 w-10",fit:"size-fit p-2",free:"p-2",selfless:"p-0"}},defaultVariants:{variant:"default",size:"default"}}),Ke=l.reactExports.forwardRef(({className:e,variant:t="default",size:n,asChild:r=!1,...i},s)=>{const a=r?Ha:"button";return l.jsxRuntimeExports.jsx(xn,{ref:s,children:l.jsxRuntimeExports.jsx(a,{...Oe("ui_lib/btn"),"data-variant":t,className:ce(pO({variant:t,size:n,className:e})),...i})})});Ke.displayName="Button";const Vx=qN,$x=GN,Wx=l.reactExports.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(Cx,{ref:n,className:ce("fixed inset-0 z-50 bg-black/60 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Wx.displayName=Cx.displayName;const El=l.reactExports.forwardRef(({className:e,children:t,withClose:n=!1,...r},i)=>l.jsxRuntimeExports.jsxs(ao.Portal,{children:[l.jsxRuntimeExports.jsx(Wx,{}),l.jsxRuntimeExports.jsxs(Ax,{ref:i,className:ce("fixed left-[50%] top-[50%] z-50 flex flex-col space-y-4 w-full max-w-[61.8%] translate-x-[-50%] translate-y-[-50%] border bg-background p-4 duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-3xl",e),...r,children:[t,n&&l.jsxRuntimeExports.jsx(KN,{asChild:!0,className:"absolute right-4 top-4 opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:l.jsxRuntimeExports.jsxs(Ke,{size:"fit",className:"rounded-full",variant:"secondary",children:[l.jsxRuntimeExports.jsx(so,{className:"h-4 w-4"}),l.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})})]})]}));El.displayName=Ax.displayName;const Yx=({className:e,...t})=>l.jsxRuntimeExports.jsx("div",{className:ce("flex flex-col gap-2 text-center pt-2",e),...t});Yx.displayName="DialogHeader";const qx=({className:e,...t})=>l.jsxRuntimeExports.jsx("div",{className:ce("flex flex-col gap-2 text-center",e),...t});qx.displayName="DialogBody";const Gx=({className:e,...t})=>l.jsxRuntimeExports.jsx("div",{className:ce("flex flex-col gap-2",e),...t});Gx.displayName="DialogFooter";const vl=l.reactExports.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(kx,{ref:n,className:ce("text-lg font-semibold leading-none tracking-tight",e),...t}));vl.displayName=kx.displayName;const Kx=l.reactExports.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(Sx,{ref:n,className:ce("text-sm text-muted-foreground",e),...t}));Kx.displayName=Sx.displayName;function Xx({attachment:e}){const{name:t,size:n,type:r,url:i}=e,s=r.startsWith("image/"),a=r.startsWith("video/"),o=r.startsWith("audio/");return o?l.jsxRuntimeExports.jsx(xn,{children:l.jsxRuntimeExports.jsx("div",{className:"w-full shrink-0 overflow-hidden",children:l.jsxRuntimeExports.jsxs("audio",{controls:!0,className:"w-full",children:[l.jsxRuntimeExports.jsx("source",{src:i,type:r}),"Your browser does not support the audio tag."]})})}):a?l.jsxRuntimeExports.jsx(xn,{children:l.jsxRuntimeExports.jsx("div",{className:"w-full border shrink-0 rounded-2xl overflow-hidden",children:l.jsxRuntimeExports.jsxs("video",{controls:!0,children:[l.jsxRuntimeExports.jsx("source",{src:i,type:r}),"Your browser does not support the video tag."]})})}):!s&&!a&&!o?l.jsxRuntimeExports.jsx(xn,{children:l.jsxRuntimeExports.jsx("div",{className:"size-fit border shrink-0 rounded-2xl overflow-hidden",children:l.jsxRuntimeExports.jsxs("div",{className:"flex items-end gap-2 p-2",children:[l.jsxRuntimeExports.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:ce("text-xs text-blue-500 line-clamp-2 underline hover:text-blue-600","break-words [word-break:break-word]"),children:t}),l.jsxRuntimeExports.jsxs("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:[(n/1024).toFixed(2)," KB"]})]})})}):l.jsxRuntimeExports.jsxs(Vx,{children:[l.jsxRuntimeExports.jsx(xn,{children:l.jsxRuntimeExports.jsx($x,{children:l.jsxRuntimeExports.jsx("div",{className:"size-fit border shrink-0 rounded-2xl overflow-hidden",children:s&&l.jsxRuntimeExports.jsx("img",{src:i,className:"object-cover size-16",alt:t})})})}),l.jsxRuntimeExports.jsxs(El,{"aria-describedby":void 0,className:"size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",withClose:!0,children:[l.jsxRuntimeExports.jsx(vl,{className:"sr-only",children:"Image preview"}),s&&l.jsxRuntimeExports.jsx("div",{className:"size-fit shrink-0 rounded-2xl overflow-hidden max-h-full",children:l.jsxRuntimeExports.jsx("img",{src:i,className:"object-cover size-auto",alt:t})})]})]})}function Ea({data:e,id:t,type:n,attachments:r,isFirstInGroup:i,isLastInGroup:s,isAloneInGroup:a,dataComponentNames:o,classNames:u}){const{anchorTarget:c}=l.useConfig(),{message:d,variant:p="default"}=e;return p==="error"?l.jsxRuntimeExports.jsx("div",{children:l.jsxRuntimeExports.jsx("div",{className:"flex flex-row flex-wrap items-center justify-start",children:l.jsxRuntimeExports.jsx("div",{className:"leading-snug text-sm text-destructive",children:d})})}):l.jsxRuntimeExports.jsxs("div",{...Oe((o==null?void 0:o.messageContainer)??"chat/agent_msg/root"),className:ce("w-5/6 flex flex-col items-start gap-1",u==null?void 0:u.messageContainer),children:[r&&r.length>0&&l.jsxRuntimeExports.jsx("div",{className:"w-full gap-1 flex flex-row flex-wrap items-center justify-start",children:r==null?void 0:r.map(f=>l.jsxRuntimeExports.jsx(Xx,{attachment:f},f.id))}),d.length>0&&l.jsxRuntimeExports.jsx("div",{...Oe((o==null?void 0:o.message)??"chat/agent_msg/msg"),"data-first":i,"data-last":s,"data-alone":a,className:ce("transition-all","w-fit py-3 px-4 rounded-3xl bg-secondary text-secondary-foreground","leading-snug text-sm prose prose-sm prose-a:decoration-primary prose-a:underline","break-words [word-break:break-word]",i&&!a&&"rounded-bl-md",s&&!a&&"rounded-tl-md",!i&&!s&&!a&&"rounded-l-md",u==null?void 0:u.message),children:l.jsxRuntimeExports.jsx(fg,{"data-type":n,"data-id":t,remarkPlugins:[B0],rehypePlugins:[Qg],components:{a:({children:f,...m})=>l.jsxRuntimeExports.jsx("a",{target:c??"_top",...m,children:f})},children:d})})]})}function fO(e){return l.jsxRuntimeExports.jsx("div",{className:"w-full max-w-full overflow-auto shrink-0",children:l.jsxRuntimeExports.jsx("pre",{dir:"auto",className:"text-xs leading-tight whitespace-pre-wrap break-word",children:JSON.stringify(e,null,1)})})}const pf=new Set;function oo(e,t,n){e||pf.has(t)||(console.warn(t),pf.add(t))}function hO(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&oo(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}function Yi(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const tc=e=>Array.isArray(e);function Zx(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}function qi(e){return typeof e=="string"||Array.isArray(e)}function ff(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Tl(e,t,n,r){if(typeof t=="function"){const[i,s]=ff(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=ff(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function uo(e,t,n){const r=e.getProps();return Tl(r,t,n!==void 0?n:r.custom,e)}const wl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_l=["initial",...wl],Ts=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],er=new Set(Ts),Zt=e=>e*1e3,yn=e=>e/1e3,mO={type:"spring",stiffness:500,damping:25,restSpeed:10},gO=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),xO={type:"keyframes",duration:.8},bO={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},yO=(e,{keyframes:t})=>t.length>2?xO:er.has(e)?e.startsWith("scale")?gO(t[1]):mO:bO;function Cl(e,t){return e?e[t]||e.default||e:void 0}const EO={skipAnimations:!1,useManualTiming:!1},vO=e=>e!==null;function co(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(vO),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const et=e=>e;function TO(e){let t=new Set,n=new Set,r=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function o(c){s.has(c)&&(u.schedule(c),e()),c(a)}const u={schedule:(c,d=!1,p=!1)=>{const m=p&&r?t:n;return d&&s.add(c),m.has(c)||m.add(c),c},cancel:c=>{n.delete(c),s.delete(c)},process:c=>{if(a=c,r){i=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(o),r=!1,i&&(i=!1,u.process(c))}};return u}const Us=["read","resolveKeyframes","update","preRender","render","postRender"],wO=40;function Qx(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=Us.reduce((y,w)=>(y[w]=TO(s),y),{}),{read:o,resolveKeyframes:u,update:c,preRender:d,render:p,postRender:f}=a,m=()=>{const y=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(y-i.timestamp,wO),1),i.timestamp=y,i.isProcessing=!0,o.process(i),u.process(i),c.process(i),d.process(i),p.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))},x=()=>{n=!0,r=!0,i.isProcessing||e(m)};return{schedule:Us.reduce((y,w)=>{const v=a[w];return y[w]=(k,C=!1,R=!1)=>(n||x(),v.schedule(k,C,R)),y},{}),cancel:y=>{for(let w=0;w<Us.length;w++)a[Us[w]].cancel(y)},state:i,steps:a}}const{schedule:De,cancel:$n,state:Je,steps:iu}=Qx(typeof requestAnimationFrame<"u"?requestAnimationFrame:et,!0),Jx=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,_O=1e-7,CO=12;function AO(e,t,n,r,i){let s,a,o=0;do a=t+(n-t)/2,s=Jx(a,r,i)-e,s>0?n=a:t=a;while(Math.abs(s)>_O&&++o<CO);return a}function ws(e,t,n,r){if(e===t&&n===r)return et;const i=s=>AO(s,0,1,e,n);return s=>s===0||s===1?s:Jx(i(s),t,r)}const eb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tb=e=>t=>1-e(1-t),nb=ws(.33,1.53,.69,.99),Al=tb(nb),rb=eb(Al),ib=e=>(e*=2)<1?.5*Al(e):.5*(2-Math.pow(2,-10*(e-1))),kl=e=>1-Math.sin(Math.acos(e)),sb=tb(kl),ab=eb(kl),ob=e=>/^0[^.\s]+$/u.test(e);function kO(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ob(e):!0}let fi=et,_n=et;process.env.NODE_ENV!=="production"&&(fi=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},_n=(e,t)=>{if(!e)throw new Error(t)});const ub=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),cb=e=>t=>typeof t=="string"&&t.startsWith(e),lb=cb("--"),SO=cb("var(--"),Sl=e=>SO(e)?RO.test(e.split("/*")[0].trim()):!1,RO=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,NO=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function IO(e){const t=NO.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const OO=4;function db(e,t,n=1){_n(n<=OO,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=IO(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const a=s.trim();return ub(a)?parseFloat(a):a}return Sl(i)?db(i,t,n+1):i}const Wn=(e,t,n)=>n>t?t:n<e?e:n,hi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Gi={...hi,transform:e=>Wn(0,1,e)},zs={...hi,default:1},_s=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ln=_s("deg"),Qt=_s("%"),he=_s("px"),PO=_s("vh"),DO=_s("vw"),hf={...Qt,parse:e=>Qt.parse(e)/100,transform:e=>Qt.transform(e*100)},LO=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),mf=e=>e===hi||e===he,gf=(e,t)=>parseFloat(e.split(", ")[t]),xf=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return gf(i[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?gf(s[1],e):0}},MO=new Set(["x","y","z"]),jO=Ts.filter(e=>!MO.has(e));function FO(e){const t=[];return jO.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Zr={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:xf(4,13),y:xf(5,14)};Zr.translateX=Zr.x;Zr.translateY=Zr.y;const pb=e=>t=>t.test(e),BO={test:e=>e==="auto",parse:e=>e},fb=[hi,he,Qt,Ln,DO,PO,BO],bf=e=>fb.find(pb(e)),fr=new Set;let nc=!1,rc=!1;function hb(){if(rc){const e=Array.from(fr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=FO(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,a])=>{var o;(o=r.getValue(s))===null||o===void 0||o.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}rc=!1,nc=!1,fr.forEach(e=>e.complete()),fr.clear()}function mb(){fr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(rc=!0)})}function HO(){mb(),hb()}class Rl{constructor(t,n,r,i,s,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(fr.add(this),nc||(nc=!0,De.read(mb),De.resolveKeyframes(hb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const a=i==null?void 0:i.get(),o=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,o);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=o),i&&a===void 0&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),fr.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,fr.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const ji=e=>Math.round(e*1e5)/1e5,Nl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function UO(e){return e==null}const zO=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Il=(e,t)=>n=>!!(typeof n=="string"&&zO.test(n)&&n.startsWith(e)||t&&!UO(n)&&Object.prototype.hasOwnProperty.call(n,t)),gb=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,a,o]=r.match(Nl);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(a),alpha:o!==void 0?parseFloat(o):1}},VO=e=>Wn(0,255,e),su={...hi,transform:e=>Math.round(VO(e))},dr={test:Il("rgb","red"),parse:gb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+su.transform(e)+", "+su.transform(t)+", "+su.transform(n)+", "+ji(Gi.transform(r))+")"};function $O(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const ic={test:Il("#"),parse:$O,transform:dr.transform},Pr={test:Il("hsl","hue"),parse:gb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Qt.transform(ji(t))+", "+Qt.transform(ji(n))+", "+ji(Gi.transform(r))+")"},rt={test:e=>dr.test(e)||ic.test(e)||Pr.test(e),parse:e=>dr.test(e)?dr.parse(e):Pr.test(e)?Pr.parse(e):ic.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?dr.transform(e):Pr.transform(e)},WO=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function YO(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Nl))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(WO))===null||n===void 0?void 0:n.length)||0)>0}const xb="number",bb="color",qO="var",GO="var(",yf="${}",KO=/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 Ki(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const o=t.replace(KO,u=>(rt.test(u)?(r.color.push(s),i.push(bb),n.push(rt.parse(u))):u.startsWith(GO)?(r.var.push(s),i.push(qO),n.push(u)):(r.number.push(s),i.push(xb),n.push(parseFloat(u))),++s,yf)).split(yf);return{values:n,split:o,indexes:r,types:i}}function yb(e){return Ki(e).values}function Eb(e){const{split:t,types:n}=Ki(e),r=t.length;return i=>{let s="";for(let a=0;a<r;a++)if(s+=t[a],i[a]!==void 0){const o=n[a];o===xb?s+=ji(i[a]):o===bb?s+=rt.transform(i[a]):s+=i[a]}return s}}const XO=e=>typeof e=="number"?0:e;function ZO(e){const t=yb(e);return Eb(e)(t.map(XO))}const Yn={test:YO,parse:yb,createTransformer:Eb,getAnimatableNone:ZO},QO=new Set(["brightness","contrast","saturate","opacity"]);function JO(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Nl)||[];if(!r)return e;const i=n.replace(r,"");let s=QO.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const e6=/\b([a-z-]*)\(.*?\)/gu,sc={...Yn,getAnimatableNone:e=>{const t=e.match(e6);return t?t.map(JO).join(" "):e}},t6={borderWidth:he,borderTopWidth:he,borderRightWidth:he,borderBottomWidth:he,borderLeftWidth:he,borderRadius:he,radius:he,borderTopLeftRadius:he,borderTopRightRadius:he,borderBottomRightRadius:he,borderBottomLeftRadius:he,width:he,maxWidth:he,height:he,maxHeight:he,top:he,right:he,bottom:he,left:he,padding:he,paddingTop:he,paddingRight:he,paddingBottom:he,paddingLeft:he,margin:he,marginTop:he,marginRight:he,marginBottom:he,marginLeft:he,backgroundPositionX:he,backgroundPositionY:he},n6={rotate:Ln,rotateX:Ln,rotateY:Ln,rotateZ:Ln,scale:zs,scaleX:zs,scaleY:zs,scaleZ:zs,skew:Ln,skewX:Ln,skewY:Ln,distance:he,translateX:he,translateY:he,translateZ:he,x:he,y:he,z:he,perspective:he,transformPerspective:he,opacity:Gi,originX:hf,originY:hf,originZ:he},Ef={...hi,transform:Math.round},Ol={...t6,...n6,zIndex:Ef,size:he,fillOpacity:Gi,strokeOpacity:Gi,numOctaves:Ef},r6={...Ol,color:rt,backgroundColor:rt,outlineColor:rt,fill:rt,stroke:rt,borderColor:rt,borderTopColor:rt,borderRightColor:rt,borderBottomColor:rt,borderLeftColor:rt,filter:sc,WebkitFilter:sc},Pl=e=>r6[e];function vb(e,t){let n=Pl(e);return n!==sc&&(n=Yn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const i6=new Set(["auto","none","0"]);function s6(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!i6.has(s)&&Ki(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=vb(n,i)}class Tb extends Rl{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let c=t[u];if(typeof c=="string"&&(c=c.trim(),Sl(c))){const d=db(c,n.current);d!==void 0&&(t[u]=d),u===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!LO.has(r)||t.length!==2)return;const[i,s]=t,a=bf(i),o=bf(s);if(a!==o)if(mf(a)&&mf(o))for(let u=0;u<t.length;u++){const c=t[u];typeof c=="string"&&(t[u]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)kO(t[i])&&r.push(i);r.length&&s6(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Zr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const s=n.getValue(r);s&&s.jump(this.measuredOrigin,!1);const a=i.length-1,o=i[a];i[a]=Zr[r](n.measureViewportBox(),window.getComputedStyle(n.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,c])=>{n.getValue(u).set(c)}),this.resolveNoneKeyframes()}}function Dl(e){return typeof e=="function"}let ra;function a6(){ra=void 0}const Jt={now:()=>(ra===void 0&&Jt.set(Je.isProcessing||EO.useManualTiming?Je.timestamp:performance.now()),ra),set:e=>{ra=e,queueMicrotask(a6)}},vf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Yn.test(e)||e==="0")&&!e.startsWith("url("));function o6(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function u6(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=vf(i,t),o=vf(s,t);return fi(a===o,`You are trying to animate ${t} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`),!a||!o?!1:o6(e)||(n==="spring"||Dl(n))&&r}const c6=40;class wb{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Jt.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:a,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>c6?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&HO(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Jt.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:a,onComplete:o,onUpdate:u,isGenerator:c}=this.options;if(!c&&!u6(t,r,i,s))if(a)this.options.duration=0;else{u==null||u(co(t,this.options,n)),o==null||o(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function _b(e,t){return t?e*(1e3/t):0}const l6=5;function Cb(e,t,n){const r=Math.max(t-l6,0);return _b(n-e(r),t-r)}const au=.001,d6=.01,Tf=10,p6=.05,f6=1;function h6({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,s;fi(e<=Zt(Tf),"Spring duration must be 10 seconds or less");let a=1-t;a=Wn(p6,f6,a),e=Wn(d6,Tf,yn(e)),a<1?(i=c=>{const d=c*a,p=d*e,f=d-n,m=ac(c,a),x=Math.exp(-p);return au-f/m*x},s=c=>{const p=c*a*e,f=p*n+n,m=Math.pow(a,2)*Math.pow(c,2)*e,x=Math.exp(-p),g=ac(Math.pow(c,2),a);return(-i(c)+au>0?-1:1)*((f-m)*x)/g}):(i=c=>{const d=Math.exp(-c*e),p=(c-n)*e+1;return-au+d*p},s=c=>{const d=Math.exp(-c*e),p=(n-c)*(e*e);return d*p});const o=5/e,u=g6(i,s,o);if(e=Zt(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(u,2)*r;return{stiffness:c,damping:a*2*Math.sqrt(r*c),duration:e}}}const m6=12;function g6(e,t,n){let r=n;for(let i=1;i<m6;i++)r=r-e(r)/t(r);return r}function ac(e,t){return e*Math.sqrt(1-t*t)}const x6=["duration","bounce"],b6=["stiffness","damping","mass"];function wf(e,t){return t.some(n=>e[n]!==void 0)}function y6(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!wf(e,b6)&&wf(e,x6)){const n=h6(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Ab({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],s=e[e.length-1],a={done:!1,value:i},{stiffness:o,damping:u,mass:c,duration:d,velocity:p,isResolvedFromDuration:f}=y6({...r,velocity:-yn(r.velocity||0)}),m=p||0,x=u/(2*Math.sqrt(o*c)),g=s-i,b=yn(Math.sqrt(o/c)),y=Math.abs(g)<5;n||(n=y?.01:2),t||(t=y?.005:.5);let w;if(x<1){const v=ac(b,x);w=k=>{const C=Math.exp(-x*b*k);return s-C*((m+x*b*g)/v*Math.sin(v*k)+g*Math.cos(v*k))}}else if(x===1)w=v=>s-Math.exp(-b*v)*(g+(m+b*g)*v);else{const v=b*Math.sqrt(x*x-1);w=k=>{const C=Math.exp(-x*b*k),R=Math.min(v*k,300);return s-C*((m+x*b*g)*Math.sinh(R)+v*g*Math.cosh(R))/v}}return{calculatedDuration:f&&d||null,next:v=>{const k=w(v);if(f)a.done=v>=d;else{let C=0;x<1&&(C=v===0?Zt(m):Cb(w,v,k));const R=Math.abs(C)<=n,O=Math.abs(s-k)<=t;a.done=R&&O}return a.value=a.done?s:k,a}}}function _f({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:u,restDelta:c=.5,restSpeed:d}){const p=e[0],f={done:!1,value:p},m=D=>o!==void 0&&D<o||u!==void 0&&D>u,x=D=>o===void 0?u:u===void 0||Math.abs(o-D)<Math.abs(u-D)?o:u;let g=n*t;const b=p+g,y=a===void 0?b:a(b);y!==b&&(g=y-p);const w=D=>-g*Math.exp(-D/r),v=D=>y+w(D),k=D=>{const j=w(D),N=v(D);f.done=Math.abs(j)<=c,f.value=f.done?y:N};let C,R;const O=D=>{m(f.value)&&(C=D,R=Ab({keyframes:[f.value,x(f.value)],velocity:Cb(v,D,f.value),damping:i,stiffness:s,restDelta:c,restSpeed:d}))};return O(0),{calculatedDuration:null,next:D=>{let j=!1;return!R&&C===void 0&&(j=!0,k(D),O(D)),C!==void 0&&D>=C?R.next(D-C):(!j&&k(D),f)}}}const E6=ws(.42,0,1,1),v6=ws(0,0,.58,1),kb=ws(.42,0,.58,1),T6=e=>Array.isArray(e)&&typeof e[0]!="number",Ll=e=>Array.isArray(e)&&typeof e[0]=="number",Cf={linear:et,easeIn:E6,easeInOut:kb,easeOut:v6,circIn:kl,circInOut:ab,circOut:sb,backIn:Al,backInOut:rb,backOut:nb,anticipate:ib},Af=e=>{if(Ll(e)){_n(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return ws(t,n,r,i)}else if(typeof e=="string")return _n(Cf[e]!==void 0,`Invalid easing type '${e}'`),Cf[e];return e},w6=(e,t)=>n=>t(e(n)),En=(...e)=>e.reduce(w6),Qr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},We=(e,t,n)=>e+(t-e)*n;function ou(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function _6({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,a=0;if(!t)i=s=a=n;else{const o=n<.5?n*(1+t):n+t-n*t,u=2*n-o;i=ou(u,o,e+1/3),s=ou(u,o,e),a=ou(u,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:r}}function va(e,t){return n=>n>0?t:e}const uu=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},C6=[ic,dr,Pr],A6=e=>C6.find(t=>t.test(e));function kf(e){const t=A6(e);if(fi(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Pr&&(n=_6(n)),n}const Sf=(e,t)=>{const n=kf(e),r=kf(t);if(!n||!r)return va(e,t);const i={...n};return s=>(i.red=uu(n.red,r.red,s),i.green=uu(n.green,r.green,s),i.blue=uu(n.blue,r.blue,s),i.alpha=We(n.alpha,r.alpha,s),dr.transform(i))},oc=new Set(["none","hidden"]);function k6(e,t){return oc.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function S6(e,t){return n=>We(e,t,n)}function Ml(e){return typeof e=="number"?S6:typeof e=="string"?Sl(e)?va:rt.test(e)?Sf:I6:Array.isArray(e)?Sb:typeof e=="object"?rt.test(e)?Sf:R6:va}function Sb(e,t){const n=[...e],r=n.length,i=e.map((s,a)=>Ml(s)(s,t[a]));return s=>{for(let a=0;a<r;a++)n[a]=i[a](s);return n}}function R6(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Ml(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function N6(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const a=t.types[s],o=e.indexes[a][i[a]],u=(n=e.values[o])!==null&&n!==void 0?n:0;r[s]=u,i[a]++}return r}const I6=(e,t)=>{const n=Yn.createTransformer(t),r=Ki(e),i=Ki(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?oc.has(e)&&!i.values.length||oc.has(t)&&!r.values.length?k6(e,t):En(Sb(N6(r,i),i.values),n):(fi(!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.`),va(e,t))};function Rb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?We(e,t,n):Ml(e)(e,t)}function O6(e,t,n){const r=[],i=n||Rb,s=e.length-1;for(let a=0;a<s;a++){let o=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||et:t;o=En(u,o)}r.push(o)}return r}function P6(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(_n(s===t.length,"Both input and output ranges must be the same length"),s===1)return()=>t[0];if(s===2&&e[0]===e[1])return()=>t[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=O6(t,r,i),o=a.length,u=c=>{let d=0;if(o>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const p=Qr(e[d],e[d+1],c);return a[d](p)};return n?c=>u(Wn(e[0],e[s-1],c)):u}function D6(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Qr(0,t,r);e.push(We(n,1,i))}}function L6(e){const t=[0];return D6(t,e.length-1),t}function M6(e,t){return e.map(n=>n*t)}function j6(e,t){return e.map(()=>t||kb).splice(0,e.length-1)}function Ta({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=T6(r)?r.map(Af):Af(r),s={done:!1,value:t[0]},a=M6(n&&n.length===t.length?n:L6(t),e),o=P6(a,t,{ease:Array.isArray(i)?i:j6(t,i)});return{calculatedDuration:e,next:u=>(s.value=o(u),s.done=u>=e,s)}}const Rf=2e4;function F6(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Rf;)t+=n,r=e.next(t);return t>=Rf?1/0:t}const B6=e=>{const t=({timestamp:n})=>e(n);return{start:()=>De.update(t,!0),stop:()=>$n(t),now:()=>Je.isProcessing?Je.timestamp:Jt.now()}},H6={decay:_f,inertia:_f,tween:Ta,keyframes:Ta,spring:Ab},U6=e=>e/100;class jl extends wb{constructor(t){super(t),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,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,a=(i==null?void 0:i.KeyframeResolver)||Rl,o=(u,c)=>this.onKeyframesResolved(u,c);this.resolver=new a(s,o,n,r,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:a=0}=this.options,o=Dl(n)?n:H6[n]||Ta;let u,c;o!==Ta&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&_n(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),u=En(U6,Rb(t[0],t[1])),t=[0,100]);const d=o({...this.options,keyframes:t});s==="mirror"&&(c=o({...this.options,keyframes:[...t].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=F6(d));const{calculatedDuration:p}=d,f=p+i,m=f*(r+1)-i;return{generator:d,mirroredGenerator:c,mapPercentToKeyframes:u,calculatedDuration:p,resolvedDuration:f,totalDuration:m}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:D}=this.options;return{done:!0,value:D[D.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:a,mapPercentToKeyframes:o,keyframes:u,calculatedDuration:c,totalDuration:d,resolvedDuration:p}=r;if(this.startTime===null)return s.next(0);const{delay:f,repeat:m,repeatType:x,repeatDelay:g,onUpdate:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const y=this.currentTime-f*(this.speed>=0?1:-1),w=this.speed>=0?y<0:y>d;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let v=this.currentTime,k=s;if(m){const D=Math.min(this.currentTime,d)/p;let j=Math.floor(D),N=D%1;!N&&D>=1&&(N=1),N===1&&j--,j=Math.min(j,m+1),!!(j%2)&&(x==="reverse"?(N=1-N,g&&(N-=g/p)):x==="mirror"&&(k=a)),v=Wn(0,1,N)*p}const C=w?{done:!1,value:u[0]}:k.next(v);o&&(C.value=o(C.value));let{done:R}=C;!w&&c!==null&&(R=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return O&&i!==void 0&&(C.value=co(u,this.options,i)),b&&b(C.value),O&&this.finish(),C}get duration(){const{resolved:t}=this;return t?yn(t.calculatedDuration):0}get time(){return yn(this.currentTime)}set time(t){t=Zt(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=yn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=B6,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&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(t){return this.startTime=0,this.tick(t,!0)}}const Nb=new Set(["opacity","clipPath","filter","transform"]),z6=10,V6=(e,t)=>{let n="";const r=Math.max(Math.round(t/z6),2);for(let i=0;i<r;i++)n+=e(Qr(0,r-1,i))+", ";return`linear(${n.substring(0,n.length-2)})`};function Fl(e){let t;return()=>(t===void 0&&(t=e()),t)}const $6={linearEasing:void 0};function W6(e,t){const n=Fl(e);return()=>{var r;return(r=$6[t])!==null&&r!==void 0?r:n()}}const wa=W6(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function Ib(e){return!!(typeof e=="function"&&wa()||!e||typeof e=="string"&&(e in uc||wa())||Ll(e)||Array.isArray(e)&&e.every(Ib))}const _i=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,uc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:_i([0,.65,.55,1]),circOut:_i([.55,0,1,.45]),backIn:_i([.31,.01,.66,-.59]),backOut:_i([.33,1.53,.69,.99])};function Ob(e,t){if(e)return typeof e=="function"&&wa()?V6(e,t):Ll(e)?_i(e):Array.isArray(e)?e.map(n=>Ob(n,t)||uc.easeOut):uc[e]}function Y6(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:a="loop",ease:o,times:u}={}){const c={[t]:n};u&&(c.offset=u);const d=Ob(o,i);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"})}function Nf(e,t){e.timeline=t,e.onfinish=null}const q6=Fl(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_a=10,G6=2e4;function K6(e){return Dl(e.type)||e.type==="spring"||!Ib(e.ease)}function X6(e,t){const n=new jl({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&s<G6;)r=n.sample(s),i.push(r.value),s+=_a;return{times:void 0,keyframes:i,duration:s-_a,ease:"linear"}}const Pb={anticipate:ib,backInOut:rb,circInOut:ab};function Z6(e){return e in Pb}class If extends wb{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new Tb(s,(a,o)=>this.onKeyframesResolved(a,o),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:s,ease:a,type:o,motionValue:u,name:c,startTime:d}=this.options;if(!(!((r=u.owner)===null||r===void 0)&&r.current))return!1;if(typeof a=="string"&&wa()&&Z6(a)&&(a=Pb[a]),K6(this.options)){const{onComplete:f,onUpdate:m,motionValue:x,element:g,...b}=this.options,y=X6(t,b);t=y.keyframes,t.length===1&&(t[1]=t[0]),i=y.duration,s=y.times,a=y.ease,o="keyframes"}const p=Y6(u.owner.current,c,t,{...this.options,duration:i,times:s,ease:a});return p.startTime=d??this.calcStartTime(),this.pendingTimeline?(Nf(p,this.pendingTimeline),this.pendingTimeline=void 0):p.onfinish=()=>{const{onComplete:f}=this.options;u.set(co(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:p,duration:i,times:s,type:o,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return yn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return yn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Zt(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return et;const{animation:r}=n;Nf(r,t)}return et}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:s,ease:a,times:o}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:d,onComplete:p,element:f,...m}=this.options,x=new jl({...m,keyframes:r,duration:i,type:s,ease:a,times:o,isGenerator:!0}),g=Zt(this.time);c.setWithVelocity(x.sample(g-_a).value,x.sample(g).value,_a)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:a,type:o}=t;return q6()&&r&&Nb.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&s!=="mirror"&&a!==0&&o!=="inertia"}}const Q6=Fl(()=>window.ScrollTimeline!==void 0);class J6{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>Q6()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function eP({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:a,repeatDelay:o,from:u,elapsed:c,...d}){return!!Object.keys(d).length}const Bl=(e,t,n,r={},i,s)=>a=>{const o=Cl(r,e)||{},u=o.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Zt(u);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-c,onUpdate:f=>{t.set(f),o.onUpdate&&o.onUpdate(f)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:i};eP(o)||(d={...d,...yO(e,d)}),d.duration&&(d.duration=Zt(d.duration)),d.repeatDelay&&(d.repeatDelay=Zt(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let p=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(p=!0)),p&&!s&&t.get()!==void 0){const f=co(d.keyframes,o);if(f!==void 0)return De.update(()=>{d.onUpdate(f),d.onComplete()}),new J6([])}return!s&&If.supports(d)?new If(d):new jl(d)},tP=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),nP=e=>tc(e)?e[e.length-1]||0:e;function Hl(e,t){e.indexOf(t)===-1&&e.push(t)}function Ul(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class zl{constructor(){this.subscriptions=[]}add(t){return Hl(this.subscriptions,t),()=>Ul(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const a=this.subscriptions[s];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Of=30,rP=e=>!isNaN(parseFloat(e));class iP{constructor(t,n={}){this.version="11.11.9",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=Jt.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Jt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=rP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&oo(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new zl);const r=this.events[t].add(n);return t==="change"?()=>{r(),De.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Jt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Of)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Of);return _b(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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 Xi(e,t){return new iP(e,t)}function sP(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Xi(n))}function aP(e,t){const n=uo(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const a in s){const o=nP(s[a]);sP(e,a,o)}}const lo=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),oP="framerAppearId",Db="data-"+lo(oP);function Lb(e){return e.props[Db]}const st=e=>!!(e&&e.getVelocity);function uP(e){return!!(st(e)&&e.add)}function cc(e,t){if(!e.applyWillChange)return;const n=e.getValue("willChange");if(uP(n))return n.add(t)}function cP({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Mb(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:a=e.getDefaultTransition(),transitionEnd:o,...u}=t;r&&(a=r);const c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const p in u){const f=e.getValue(p,(s=e.latestValues[p])!==null&&s!==void 0?s:null),m=u[p];if(m===void 0||d&&cP(d,p))continue;const x={delay:n,...Cl(a||{},p)};let g=!1;if(window.MotionHandoffAnimation){const y=Lb(e);if(y){const w=window.MotionHandoffAnimation(y,p,De);w!==null&&(x.startTime=w,g=!0)}}cc(e,p),f.start(Bl(p,f,m,e.shouldReduceMotion&&er.has(p)?{type:!1}:x,e,g));const b=f.animation;b&&c.push(b)}return o&&Promise.all(c).then(()=>{De.update(()=>{o&&aP(e,o)})}),c}function lc(e,t,n={}){var r;const i=uo(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const a=i?()=>Promise.all(Mb(e,i,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:p,staggerDirection:f}=s;return lP(e,t,d+c,p,f,n)}:()=>Promise.resolve(),{when:u}=s;if(u){const[c,d]=u==="beforeChildren"?[a,o]:[o,a];return c().then(()=>d())}else return Promise.all([a(),o(n.delay)])}function lP(e,t,n=0,r=0,i=1,s){const a=[],o=(e.variantChildren.size-1)*r,u=i===1?(c=0)=>c*r:(c=0)=>o-c*r;return Array.from(e.variantChildren).sort(dP).forEach((c,d)=>{c.notify("AnimationStart",t),a.push(lc(c,t,{...s,delay:n+u(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(a)}function dP(e,t){return e.sortNodePosition(t)}function pP(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>lc(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=lc(e,t,n);else{const i=typeof t=="function"?uo(e,t,n.custom):t;r=Promise.all(Mb(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const fP=_l.length;function jb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?jb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<fP;n++){const r=_l[n],i=e.props[r];(qi(i)||i===!1)&&(t[r]=i)}return t}const hP=[...wl].reverse(),mP=wl.length;function gP(e){return t=>Promise.all(t.map(({animation:n,options:r})=>pP(e,n,r)))}function xP(e){let t=gP(e),n=Pf(),r=!0;const i=u=>(c,d)=>{var p;const f=uo(e,d,u==="exit"?(p=e.presenceContext)===null||p===void 0?void 0:p.custom:void 0);if(f){const{transition:m,transitionEnd:x,...g}=f;c={...c,...g,...x}}return c};function s(u){t=u(e)}function a(u){const{props:c}=e,d=jb(e.parent)||{},p=[],f=new Set;let m={},x=1/0;for(let b=0;b<mP;b++){const y=hP[b],w=n[y],v=c[y]!==void 0?c[y]:d[y],k=qi(v),C=y===u?w.isActive:null;C===!1&&(x=b);let R=v===d[y]&&v!==c[y]&&k;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),w.protectedKeys={...m},!w.isActive&&C===null||!v&&!w.prevProp||Yi(v)||typeof v=="boolean")continue;const O=bP(w.prevProp,v);let D=O||y===u&&w.isActive&&!R&&k||b>x&&k,j=!1;const N=Array.isArray(v)?v:[v];let B=N.reduce(i(y),{});C===!1&&(B={});const{prevResolvedValues:M={}}=w,ee={...M,...B},Y=X=>{D=!0,f.has(X)&&(j=!0,f.delete(X)),w.needsAnimating[X]=!0;const Z=e.getValue(X);Z&&(Z.liveStyle=!1)};for(const X in ee){const Z=B[X],ie=M[X];if(m.hasOwnProperty(X))continue;let E=!1;tc(Z)&&tc(ie)?E=!Zx(Z,ie):E=Z!==ie,E?Z!=null?Y(X):f.add(X):Z!==void 0&&f.has(X)?Y(X):w.protectedKeys[X]=!0}w.prevProp=v,w.prevResolvedValues=B,w.isActive&&(m={...m,...B}),r&&e.blockInitialAnimation&&(D=!1),D&&(!(R&&O)||j)&&p.push(...N.map(X=>({animation:X,options:{type:y}})))}if(f.size){const b={};f.forEach(y=>{const w=e.getBaseTarget(y),v=e.getValue(y);v&&(v.liveStyle=!0),b[y]=w??null}),p.push({animation:b})}let g=!!p.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(p):Promise.resolve()}function o(u,c){var d;if(n[u].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(f=>{var m;return(m=f.animationState)===null||m===void 0?void 0:m.setActive(u,c)}),n[u].isActive=c;const p=a(u);for(const f in n)n[f].protectedKeys={};return p}return{animateChanges:a,setActive:o,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Pf(),r=!0}}}function bP(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Zx(t,e):!1}function sr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Pf(){return{animate:sr(!0),whileInView:sr(),whileHover:sr(),whileTap:sr(),whileDrag:sr(),whileFocus:sr(),exit:sr()}}class tr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class yP extends tr{constructor(t){super(t),t.animationState||(t.animationState=xP(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Yi(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let EP=0;class vP extends tr{constructor(){super(...arguments),this.id=EP++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const TP={animation:{Feature:yP},exit:{Feature:vP}},Fb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function po(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const wP=e=>t=>Fb(t)&&e(t,po(t));function bn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function vn(e,t,n,r){return bn(e,t,wP(n),r)}const Df=(e,t)=>Math.abs(e-t);function _P(e,t){const n=Df(e.x,t.x),r=Df(e.y,t.y);return Math.sqrt(n**2+r**2)}class Bb{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=lu(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,m=_P(p.offset,{x:0,y:0})>=3;if(!f&&!m)return;const{point:x}=p,{timestamp:g}=Je;this.history.push({...x,timestamp:g});const{onStart:b,onMove:y}=this.handlers;f||(b&&b(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,p)},this.handlePointerMove=(p,f)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=cu(f,this.transformPagePoint),De.update(this.updatePoint,!0)},this.handlePointerUp=(p,f)=>{this.end();const{onEnd:m,onSessionEnd:x,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=lu(p.type==="pointercancel"?this.lastMoveEventInfo:cu(f,this.transformPagePoint),this.history);this.startEvent&&m&&m(p,b),x&&x(p,b)},!Fb(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=po(t),o=cu(a,this.transformPagePoint),{point:u}=o,{timestamp:c}=Je;this.history=[{...u,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,lu(o,this.history)),this.removeListeners=En(vn(this.contextWindow,"pointermove",this.handlePointerMove),vn(this.contextWindow,"pointerup",this.handlePointerUp),vn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),$n(this.updatePoint)}}function cu(e,t){return t?{point:t(e.point)}:e}function Lf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function lu({point:e},t){return{point:e,delta:Lf(e,Hb(t)),offset:Lf(e,CP(t)),velocity:AP(t,.1)}}function CP(e){return e[0]}function Hb(e){return e[e.length-1]}function AP(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Hb(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Zt(t)));)n--;if(!r)return{x:0,y:0};const s=yn(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const a={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Ub(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Mf=Ub("dragHorizontal"),jf=Ub("dragVertical");function zb(e){let t=!1;if(e==="y")t=jf();else if(e==="x")t=Mf();else{const n=Mf(),r=jf();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Vb(){const e=zb(!0);return e?(e(),!1):!0}function Dr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const $b=1e-4,kP=1-$b,SP=1+$b,Wb=.01,RP=0-Wb,NP=0+Wb;function Ct(e){return e.max-e.min}function IP(e,t,n){return Math.abs(e-t)<=n}function Ff(e,t,n,r=.5){e.origin=r,e.originPoint=We(t.min,t.max,e.origin),e.scale=Ct(n)/Ct(t),e.translate=We(n.min,n.max,e.origin)-e.originPoint,(e.scale>=kP&&e.scale<=SP||isNaN(e.scale))&&(e.scale=1),(e.translate>=RP&&e.translate<=NP||isNaN(e.translate))&&(e.translate=0)}function Fi(e,t,n,r){Ff(e.x,t.x,n.x,r?r.originX:void 0),Ff(e.y,t.y,n.y,r?r.originY:void 0)}function Bf(e,t,n){e.min=n.min+t.min,e.max=e.min+Ct(t)}function OP(e,t,n){Bf(e.x,t.x,n.x),Bf(e.y,t.y,n.y)}function Hf(e,t,n){e.min=t.min-n.min,e.max=e.min+Ct(t)}function Bi(e,t,n){Hf(e.x,t.x,n.x),Hf(e.y,t.y,n.y)}function PP(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?We(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?We(n,e,r.max):Math.min(e,n)),e}function Uf(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function DP(e,{top:t,left:n,bottom:r,right:i}){return{x:Uf(e.x,n,i),y:Uf(e.y,t,r)}}function zf(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function LP(e,t){return{x:zf(e.x,t.x),y:zf(e.y,t.y)}}function MP(e,t){let n=.5;const r=Ct(e),i=Ct(t);return i>r?n=Qr(t.min,t.max-r,e.min):r>i&&(n=Qr(e.min,e.max-i,t.min)),Wn(0,1,n)}function jP(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const dc=.35;function FP(e=dc){return e===!1?e=0:e===!0&&(e=dc),{x:Vf(e,"left","right"),y:Vf(e,"top","bottom")}}function Vf(e,t,n){return{min:$f(e,t),max:$f(e,n)}}function $f(e,t){return typeof e=="number"?e:e[t]||0}const Wf=()=>({translate:0,scale:1,origin:0,originPoint:0}),Lr=()=>({x:Wf(),y:Wf()}),Yf=()=>({min:0,max:0}),Ye=()=>({x:Yf(),y:Yf()});function Nt(e){return[e("x"),e("y")]}function Yb({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function BP({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function HP(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}}function du(e){return e===void 0||e===1}function pc({scale:e,scaleX:t,scaleY:n}){return!du(e)||!du(t)||!du(n)}function ar(e){return pc(e)||qb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function qb(e){return qf(e.x)||qf(e.y)}function qf(e){return e&&e!=="0%"}function Ca(e,t,n){const r=e-n,i=t*r;return n+i}function Gf(e,t,n,r,i){return i!==void 0&&(e=Ca(e,i,r)),Ca(e,n,r)+t}function fc(e,t=0,n=1,r,i){e.min=Gf(e.min,t,n,r,i),e.max=Gf(e.max,t,n,r,i)}function Gb(e,{x:t,y:n}){fc(e.x,t.translate,t.scale,t.originPoint),fc(e.y,n.translate,n.scale,n.originPoint)}const Kf=.999999999999,Xf=1.0000000000001;function UP(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,a;for(let o=0;o<i;o++){s=n[o],a=s.projectionDelta;const{visualElement:u}=s.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&jr(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Gb(e,a)),r&&ar(s.latestValues)&&jr(e,s.latestValues))}t.x<Xf&&t.x>Kf&&(t.x=1),t.y<Xf&&t.y>Kf&&(t.y=1)}function Mr(e,t){e.min=e.min+t,e.max=e.max+t}function Zf(e,t,n,r,i=.5){const s=We(e.min,e.max,i);fc(e,t,n,s,r)}function jr(e,t){Zf(e.x,t.x,t.scaleX,t.scale,t.originX),Zf(e.y,t.y,t.scaleY,t.scale,t.originY)}function Kb(e,t){return Yb(HP(e.getBoundingClientRect(),t))}function zP(e,t,n){const r=Kb(e,n),{scroll:i}=t;return i&&(Mr(r.x,i.offset.x),Mr(r.y,i.offset.y)),r}const Xb=({current:e})=>e?e.ownerDocument.defaultView:null,VP=new WeakMap;class $P{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ye(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(po(d,"page").point)},s=(d,p)=>{const{drag:f,dragPropagation:m,onDragStart:x}=this.getProps();if(f&&!m&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=zb(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Nt(b=>{let y=this.getAxisMotionValue(b).get()||0;if(Qt.test(y)){const{projection:w}=this.visualElement;if(w&&w.layout){const v=w.layout.layoutBox[b];v&&(y=Ct(v)*(parseFloat(y)/100))}}this.originPoint[b]=y}),x&&De.postRender(()=>x(d,p)),cc(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(d,p)=>{const{dragPropagation:f,dragDirectionLock:m,onDirectionLock:x,onDrag:g}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:b}=p;if(m&&this.currentDirection===null){this.currentDirection=WP(b),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",p.point,b),this.updateAxis("y",p.point,b),this.visualElement.render(),g&&g(d,p)},o=(d,p)=>this.stop(d,p),u=()=>Nt(d=>{var p;return this.getAnimationState(d)==="paused"&&((p=this.getAxisMotionValue(d).animation)===null||p===void 0?void 0:p.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Bb(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:o,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Xb(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&De.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Vs(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=PP(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&Dr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=DP(i.layoutBox,n):this.constraints=!1,this.elastic=FP(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Nt(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=jP(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Dr(t))return!1;const r=t.current;_n(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=zP(r,i.root,this.visualElement.getTransformPagePoint());let a=LP(i.layout.layoutBox,s);if(n){const o=n(BP(a));this.hasMutatedConstraints=!!o,o&&(a=Yb(o))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),u=this.constraints||{},c=Nt(d=>{if(!Vs(d,n,this.currentDirection))return;let p=u&&u[d]||{};a&&(p={min:0,max:0});const f=i?200:1e6,m=i?40:1e7,x={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...s,...p};return this.startAxisValueAnimation(d,x)});return Promise.all(c).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return cc(this.visualElement,t),r.start(Bl(t,r,0,n,this.visualElement,!1))}stopAnimation(){Nt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Nt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Nt(n=>{const{drag:r}=this.getProps();if(!Vs(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:o}=i.layout.layoutBox[n];s.set(t[n]-We(a,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Dr(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Nt(a=>{const o=this.getAxisMotionValue(a);if(o&&this.constraints!==!1){const u=o.get();i[a]=MP({min:u,max:u},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Nt(a=>{if(!Vs(a,t,null))return;const o=this.getAxisMotionValue(a),{min:u,max:c}=this.constraints[a];o.set(We(u,c,i[a]))})}addListeners(){if(!this.visualElement.current)return;VP.set(this.visualElement,this);const t=this.visualElement.current,n=vn(t,"pointerdown",u=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Dr(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),De.read(r);const a=bn(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(Nt(d=>{const p=this.getAxisMotionValue(d);p&&(this.originPoint[d]+=u[d].translate,p.set(p.get()+u[d].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:a=dc,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:a,dragMomentum:o}}}function Vs(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function WP(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class YP extends tr{constructor(t){super(t),this.removeGroupControls=et,this.removeListeners=et,this.controls=new $P(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||et}unmount(){this.removeGroupControls(),this.removeListeners()}}const Qf=e=>(t,n)=>{e&&De.postRender(()=>e(t,n))};class qP extends tr{constructor(){super(...arguments),this.removePointerDownListener=et}onPointerDown(t){this.session=new Bb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Xb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Qf(t),onStart:Qf(n),onMove:r,onEnd:(s,a)=>{delete this.session,i&&De.postRender(()=>i(s,a))}}}mount(){this.removePointerDownListener=vn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const fo=l.reactExports.createContext(null);function GP(){const e=l.reactExports.useContext(fo);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=l.reactExports.useId();l.reactExports.useEffect(()=>r(i),[]);const s=l.reactExports.useCallback(()=>n&&n(i),[i,n]);return!t&&n?[!1,s]:[!0]}const Vl=l.reactExports.createContext({}),Zb=l.reactExports.createContext({}),ia={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Jf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ti={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(he.test(e))e=parseFloat(e);else return e;const n=Jf(e,t.target.x),r=Jf(e,t.target.y);return`${n}% ${r}%`}},KP={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Yn.parse(e);if(i.length>5)return r;const s=Yn.createTransformer(e),a=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,u=n.y.scale*t.y;i[0+a]/=o,i[1+a]/=u;const c=We(o,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=c),typeof i[3+a]=="number"&&(i[3+a]/=c),s(i)}},Aa={};function XP(e){Object.assign(Aa,e)}const{schedule:$l,cancel:q8}=Qx(queueMicrotask,!1);class ZP extends l.reactExports.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;XP(QP),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),ia.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,a=r.projection;return a&&(a.isPresent=s,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||De.postRender(()=>{const o=a.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),$l.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Qb(e){const[t,n]=GP(),r=l.reactExports.useContext(Vl);return l.jsxRuntimeExports.jsx(ZP,{...e,layoutGroup:r,switchLayoutGroup:l.reactExports.useContext(Zb),isPresent:t,safeToRemove:n})}const QP={borderRadius:{...Ti,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ti,borderTopRightRadius:Ti,borderBottomLeftRadius:Ti,borderBottomRightRadius:Ti,boxShadow:KP},Jb=["TopLeft","TopRight","BottomLeft","BottomRight"],JP=Jb.length,eh=e=>typeof e=="string"?parseFloat(e):e,th=e=>typeof e=="number"||he.test(e);function eD(e,t,n,r,i,s){i?(e.opacity=We(0,n.opacity!==void 0?n.opacity:1,tD(r)),e.opacityExit=We(t.opacity!==void 0?t.opacity:1,0,nD(r))):s&&(e.opacity=We(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<JP;a++){const o=`border${Jb[a]}Radius`;let u=nh(t,o),c=nh(n,o);if(u===void 0&&c===void 0)continue;u||(u=0),c||(c=0),u===0||c===0||th(u)===th(c)?(e[o]=Math.max(We(eh(u),eh(c),r),0),(Qt.test(c)||Qt.test(u))&&(e[o]+="%")):e[o]=c}(t.rotate||n.rotate)&&(e.rotate=We(t.rotate||0,n.rotate||0,r))}function nh(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const tD=e1(0,.5,sb),nD=e1(.5,.95,et);function e1(e,t,n){return r=>r<e?0:r>t?1:n(Qr(e,t,r))}function rh(e,t){e.min=t.min,e.max=t.max}function Rt(e,t){rh(e.x,t.x),rh(e.y,t.y)}function ih(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function sh(e,t,n,r,i){return e-=t,e=Ca(e,1/n,r),i!==void 0&&(e=Ca(e,1/i,r)),e}function rD(e,t=0,n=1,r=.5,i,s=e,a=e){if(Qt.test(t)&&(t=parseFloat(t),t=We(a.min,a.max,t/100)-a.min),typeof t!="number")return;let o=We(s.min,s.max,r);e===s&&(o-=t),e.min=sh(e.min,t,n,o,i),e.max=sh(e.max,t,n,o,i)}function ah(e,t,[n,r,i],s,a){rD(e,t[n],t[r],t[i],t.scale,s,a)}const iD=["x","scaleX","originX"],sD=["y","scaleY","originY"];function oh(e,t,n,r){ah(e.x,t,iD,n?n.x:void 0,r?r.x:void 0),ah(e.y,t,sD,n?n.y:void 0,r?r.y:void 0)}function uh(e){return e.translate===0&&e.scale===1}function t1(e){return uh(e.x)&&uh(e.y)}function ch(e,t){return e.min===t.min&&e.max===t.max}function aD(e,t){return ch(e.x,t.x)&&ch(e.y,t.y)}function lh(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function n1(e,t){return lh(e.x,t.x)&&lh(e.y,t.y)}function dh(e){return Ct(e.x)/Ct(e.y)}function ph(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class oD{constructor(){this.members=[]}add(t){Hl(this.members,t),t.scheduleRender()}remove(t){if(Ul(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function uD(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||s||a)&&(r=`translate3d(${i}px, ${s}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:d,rotateX:p,rotateY:f,skewX:m,skewY:x}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),p&&(r+=`rotateX(${p}deg) `),f&&(r+=`rotateY(${f}deg) `),m&&(r+=`skewX(${m}deg) `),x&&(r+=`skewY(${x}deg) `)}const o=e.x.scale*t.x,u=e.y.scale*t.y;return(o!==1||u!==1)&&(r+=`scale(${o}, ${u})`),r||"none"}const cD=(e,t)=>e.depth-t.depth;class lD{constructor(){this.children=[],this.isDirty=!1}add(t){Hl(this.children,t),this.isDirty=!0}remove(t){Ul(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(cD),this.isDirty=!1,this.children.forEach(t)}}function sa(e){const t=st(e)?e.get():e;return tP(t)?t.toValue():t}function dD(e,t){const n=Jt.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&($n(r),e(s-t))};return De.read(r,!0),()=>$n(r)}function pD(e){return e instanceof SVGElement&&e.tagName!=="svg"}function fD(e,t,n){const r=st(e)?e:Xi(e);return r.start(Bl("",r,t,n)),r.animation}const or={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ci=typeof window<"u"&&window.MotionDebug!==void 0,pu=["","X","Y","Z"],hD={visibility:"hidden"},fh=1e3;let mD=0;function fu(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function r1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Lb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",De,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&r1(r)}function i1({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},o=t==null?void 0:t()){this.id=mD++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ci&&(or.totalNodes=or.resolvedTargetDeltas=or.recalculatedProjection=0),this.nodes.forEach(bD),this.nodes.forEach(wD),this.nodes.forEach(_D),this.nodes.forEach(yD),Ci&&window.MotionDebug.record(or)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new lD)}addEventListener(a,o){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new zl),this.eventHandlers.get(a).add(o)}notifyListeners(a,...o){const u=this.eventHandlers.get(a);u&&u.notify(...o)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,o=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=pD(a),this.instance=a;const{layoutId:u,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),o&&(c||u)&&(this.isLayoutDirty=!0),e){let p;const f=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=dD(f,250),ia.hasAnimatedSinceResize&&(ia.hasAnimatedSinceResize=!1,this.nodes.forEach(mh))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&d&&(u||c)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:f,hasRelativeTargetChanged:m,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||d.getDefaultTransition()||RD,{onLayoutAnimationStart:b,onLayoutAnimationComplete:y}=d.getProps(),w=!this.targetLayout||!n1(this.targetLayout,x)||m,v=!f&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||f&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,v);const k={...Cl(g,"layout"),onPlay:b,onComplete:y};(d.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k)}else f||mh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,$n(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(CD),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&r1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const p=this.path[d];p.shouldResetTransform=!0,p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:o,layout:u}=this.options;if(o===void 0&&!u)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(hh);return}this.isUpdating||this.nodes.forEach(vD),this.isUpdating=!1,this.nodes.forEach(TD),this.nodes.forEach(gD),this.nodes.forEach(xD),this.clearAllSnapshots();const o=Jt.now();Je.delta=Wn(0,1e3/60,o-Je.timestamp),Je.timestamp=o,Je.isProcessing=!0,iu.update.process(Je),iu.preRender.process(Je),iu.render.process(Je),Je.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,$l.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ED),this.sharedNodes.forEach(AD)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,De.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){De.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ye(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(o=!1),o){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!t1(this.projectionDelta),u=this.getTransformTemplate(),c=u?u(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;a&&(o||ar(this.latestValues)||d)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const o=this.measurePageBox();let u=this.removeElementScroll(o);return a&&(u=this.removeTransform(u)),ND(u),{animationId:this.root.animationId,measuredBox:o,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:o}=this.options;if(!o)return Ye();const u=o.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(ID))){const{scroll:d}=this.root;d&&(Mr(u.x,d.offset.x),Mr(u.y,d.offset.y))}return u}removeElementScroll(a){var o;const u=Ye();if(Rt(u,a),!((o=this.scroll)===null||o===void 0)&&o.wasRoot)return u;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:p,options:f}=d;d!==this.root&&p&&f.layoutScroll&&(p.wasRoot&&Rt(u,a),Mr(u.x,p.offset.x),Mr(u.y,p.offset.y))}return u}applyTransform(a,o=!1){const u=Ye();Rt(u,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];!o&&d.options.layoutScroll&&d.scroll&&d!==d.root&&jr(u,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),ar(d.latestValues)&&jr(u,d.latestValues)}return ar(this.latestValues)&&jr(u,this.latestValues),u}removeTransform(a){const o=Ye();Rt(o,a);for(let u=0;u<this.path.length;u++){const c=this.path[u];if(!c.instance||!ar(c.latestValues))continue;pc(c.latestValues)&&c.updateSnapshot();const d=Ye(),p=c.measurePageBox();Rt(d,p),oh(o,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return ar(this.latestValues)&&oh(o,this.latestValues),o}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Je.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var o;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==u;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:f}=this.options;if(!(!this.layout||!(p||f))){if(this.resolvedRelativeTargetAt=Je.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ye(),this.relativeTargetOrigin=Ye(),Bi(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),Rt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ye(),this.targetWithTransforms=Ye()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),OP(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Rt(this.target,this.layout.layoutBox),Gb(this.target,this.targetDelta)):Rt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ye(),this.relativeTargetOrigin=Ye(),Bi(this.relativeTargetOrigin,this.target,m.target),Rt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ci&&or.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||pc(this.parent.latestValues)||qb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const o=this.getLead(),u=!!this.resumingFrom||this!==o;let c=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(c=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Je.timestamp&&(c=!1),c)return;const{layout:d,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||p))return;Rt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,m=this.treeScale.y;UP(this.layoutCorrected,this.treeScale,this.path,u),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Ye());const{target:x}=o;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ih(this.prevProjectionDelta.x,this.projectionDelta.x),ih(this.prevProjectionDelta.y,this.projectionDelta.y)),Fi(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==m||!ph(this.projectionDelta.x,this.prevProjectionDelta.x)||!ph(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x)),Ci&&or.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var o;if((o=this.options.visualElement)===null||o===void 0||o.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Lr(),this.projectionDelta=Lr(),this.projectionDeltaWithTransform=Lr()}setAnimationOrigin(a,o=!1){const u=this.snapshot,c=u?u.latestValues:{},d={...this.latestValues},p=Lr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const f=Ye(),m=u?u.source:void 0,x=this.layout?this.layout.source:void 0,g=m!==x,b=this.getStack(),y=!b||b.members.length<=1,w=!!(g&&!y&&this.options.crossfade===!0&&!this.path.some(SD));this.animationProgress=0;let v;this.mixTargetDelta=k=>{const C=k/1e3;gh(p.x,a.x,C),gh(p.y,a.y,C),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Bi(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),kD(this.relativeTarget,this.relativeTargetOrigin,f,C),v&&aD(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Ye()),Rt(v,this.relativeTarget)),g&&(this.animationValues=d,eD(d,c,this.latestValues,C,w,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&($n(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=De.update(()=>{ia.hasAnimatedSinceResize=!0,this.currentAnimation=fD(0,fh,{...a,onUpdate:o=>{this.mixTargetDelta(o),a.onUpdate&&a.onUpdate(o)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(fh),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:o,target:u,layout:c,latestValues:d}=a;if(!(!o||!u||!c)){if(this!==a&&this.layout&&c&&s1(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||Ye();const p=Ct(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+p;const f=Ct(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+f}Rt(o,u),jr(o,d),Fi(this.projectionDeltaWithTransform,this.layoutCorrected,o,d)}}registerSharedNode(a,o){this.sharedNodes.has(a)||this.sharedNodes.set(a,new oD),this.sharedNodes.get(a).add(o);const c=o.options.initialPromotionConfig;o.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(o):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:o,preserveFollowOpacity:u}={}){const c=this.getStack();c&&c.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let o=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(o=!0),!o)return;const c={};u.z&&fu("z",a,c,this.animationValues);for(let d=0;d<pu.length;d++)fu(`rotate${pu[d]}`,a,c,this.animationValues),fu(`skew${pu[d]}`,a,c,this.animationValues);a.render();for(const d in c)a.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);a.scheduleRender()}getProjectionStyles(a){var o,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return hD;const c={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=sa(a==null?void 0:a.pointerEvents)||"",c.transform=d?d(this.latestValues,""):"none",c;const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=sa(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!ar(this.latestValues)&&(g.transform=d?d({},""):"none",this.hasProjected=!1),g}const f=p.animationValues||p.latestValues;this.applyTransformsToTarget(),c.transform=uD(this.projectionDeltaWithTransform,this.treeScale,f),d&&(c.transform=d(f,c.transform));const{x:m,y:x}=this.projectionDelta;c.transformOrigin=`${m.origin*100}% ${x.origin*100}% 0`,p.animationValues?c.opacity=p===this?(u=(o=f.opacity)!==null&&o!==void 0?o:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:c.opacity=p===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const g in Aa){if(f[g]===void 0)continue;const{correct:b,applyTo:y}=Aa[g],w=c.transform==="none"?f[g]:b(f[g],p);if(y){const v=y.length;for(let k=0;k<v;k++)c[y[k]]=w}else c[g]=w}return this.options.layoutId&&(c.pointerEvents=p===this?sa(a==null?void 0:a.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var o;return(o=a.currentAnimation)===null||o===void 0?void 0:o.stop()}),this.root.nodes.forEach(hh),this.root.sharedNodes.clear()}}}function gD(e){e.updateLayout()}function xD(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,a=n.source!==e.layout.source;s==="size"?Nt(p=>{const f=a?n.measuredBox[p]:n.layoutBox[p],m=Ct(f);f.min=r[p].min,f.max=f.min+m}):s1(s,n.layoutBox,r)&&Nt(p=>{const f=a?n.measuredBox[p]:n.layoutBox[p],m=Ct(r[p]);f.max=f.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+m)});const o=Lr();Fi(o,r,n.layoutBox);const u=Lr();a?Fi(u,e.applyTransform(i,!0),n.measuredBox):Fi(u,r,n.layoutBox);const c=!t1(o);let d=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:f,layout:m}=p;if(f&&m){const x=Ye();Bi(x,n.layoutBox,f.layoutBox);const g=Ye();Bi(g,r,m.layoutBox),n1(x,g)||(d=!0),p.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=x,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:o,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function bD(e){Ci&&or.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function yD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ED(e){e.clearSnapshot()}function hh(e){e.clearMeasurements()}function vD(e){e.isLayoutDirty=!1}function TD(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function mh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function wD(e){e.resolveTargetDelta()}function _D(e){e.calcProjection()}function CD(e){e.resetSkewAndRotation()}function AD(e){e.removeLeadSnapshot()}function gh(e,t,n){e.translate=We(t.translate,0,n),e.scale=We(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function xh(e,t,n,r){e.min=We(t.min,n.min,r),e.max=We(t.max,n.max,r)}function kD(e,t,n,r){xh(e.x,t.x,n.x,r),xh(e.y,t.y,n.y,r)}function SD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const RD={duration:.45,ease:[.4,0,.1,1]},bh=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),yh=bh("applewebkit/")&&!bh("chrome/")?Math.round:et;function Eh(e){e.min=yh(e.min),e.max=yh(e.max)}function ND(e){Eh(e.x),Eh(e.y)}function s1(e,t,n){return e==="position"||e==="preserve-aspect"&&!IP(dh(t),dh(n),.2)}function ID(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const OD=i1({attachResizeListener:(e,t)=>bn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),hu={current:void 0},a1=i1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!hu.current){const e=new OD({});e.mount(window),e.setOptions({layoutScroll:!0}),hu.current=e}return hu.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),PD={pan:{Feature:qP},drag:{Feature:YP,ProjectionNode:a1,MeasureLayout:Qb}};function vh(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",i=(s,a)=>{if(s.pointerType==="touch"||Vb())return;const o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t);const u=o[r];u&&De.postRender(()=>u(s,a))};return vn(e.current,n,i,{passive:!e.getProps()[r]})}class DD extends tr{mount(){this.unmount=En(vh(this.node,!0),vh(this.node,!1))}unmount(){}}class LD extends tr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=En(bn(this.node.current,"focus",()=>this.onFocus()),bn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const o1=(e,t)=>t?e===t?!0:o1(e,t.parentElement):!1;function mu(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,po(n))}class MD extends tr{constructor(){super(...arguments),this.removeStartListeners=et,this.removeEndListeners=et,this.removeAccessibleListeners=et,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),s=vn(window,"pointerup",(o,u)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:d,globalTapTarget:p}=this.node.getProps(),f=!p&&!o1(this.node.current,o.target)?d:c;f&&De.update(()=>f(o,u))},{passive:!(r.onTap||r.onPointerUp)}),a=vn(window,"pointercancel",(o,u)=>this.cancelPress(o,u),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=En(s,a),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=s=>{if(s.key!=="Enter"||this.isPressing)return;const a=o=>{o.key!=="Enter"||!this.checkPressEnd()||mu("up",(u,c)=>{const{onTap:d}=this.node.getProps();d&&De.postRender(()=>d(u,c))})};this.removeEndListeners(),this.removeEndListeners=bn(this.node.current,"keyup",a),mu("down",(o,u)=>{this.startPress(o,u)})},n=bn(this.node.current,"keydown",t),r=()=>{this.isPressing&&mu("cancel",(s,a)=>this.cancelPress(s,a))},i=bn(this.node.current,"blur",r);this.removeAccessibleListeners=En(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&De.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Vb()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&De.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=vn(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=bn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=En(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const hc=new WeakMap,gu=new WeakMap,jD=e=>{const t=hc.get(e.target);t&&t(e)},FD=e=>{e.forEach(jD)};function BD({root:e,...t}){const n=e||document;gu.has(n)||gu.set(n,{});const r=gu.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(FD,{root:e,...t})),r[i]}function HD(e,t,n){const r=BD(t);return hc.set(e,n),r.observe(e),()=>{hc.delete(e),r.unobserve(e)}}const UD={some:0,all:1};class zD extends tr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:UD[i]},o=u=>{const{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,s&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:p}=this.node.getProps(),f=c?d:p;f&&f(u)};return HD(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(VD(t,n))&&this.startObserver()}unmount(){}}function VD({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const $D={inView:{Feature:zD},tap:{Feature:MD},focus:{Feature:LD},hover:{Feature:DD}},WD={layout:{ProjectionNode:a1,MeasureLayout:Qb}},Wl=l.reactExports.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ho=l.reactExports.createContext({}),Yl=typeof window<"u",u1=Yl?l.reactExports.useLayoutEffect:l.reactExports.useEffect,c1=l.reactExports.createContext({strict:!1});function YD(e,t,n,r,i){var s,a;const{visualElement:o}=l.reactExports.useContext(ho),u=l.reactExports.useContext(c1),c=l.reactExports.useContext(fo),d=l.reactExports.useContext(Wl).reducedMotion,p=l.reactExports.useRef();r=r||u.renderer,!p.current&&r&&(p.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d}));const f=p.current,m=l.reactExports.useContext(Zb);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&qD(p.current,n,i,m),l.reactExports.useInsertionEffect(()=>{f&&f.update(n,c)});const x=n[Db],g=l.reactExports.useRef(!!x&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,x))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,x)));return u1(()=>{f&&(window.MotionIsMounted=!0,f.updateFeatures(),$l.render(f.render),g.current&&f.animationState&&f.animationState.animateChanges())}),l.reactExports.useEffect(()=>{f&&(!g.current&&f.animationState&&f.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,x)}),g.current=!1))}),f}function qD(e,t,n,r){const{layoutId:i,layout:s,drag:a,dragConstraints:o,layoutScroll:u,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:l1(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!a||o&&Dr(o),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:c})}function l1(e){if(e)return e.options.allowProjection!==!1?e.projection:l1(e.parent)}function GD(e,t,n){return l.reactExports.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Dr(n)&&(n.current=r))},[t])}function mo(e){return Yi(e.animate)||_l.some(t=>qi(e[t]))}function d1(e){return!!(mo(e)||e.variants)}function KD(e,t){if(mo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||qi(n)?n:void 0,animate:qi(r)?r:void 0}}return e.inherit!==!1?t:{}}function XD(e){const{initial:t,animate:n}=KD(e,l.reactExports.useContext(ho));return l.reactExports.useMemo(()=>({initial:t,animate:n}),[Th(t),Th(n)])}function Th(e){return Array.isArray(e)?e.join(" "):e}const wh={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"]},Jr={};for(const e in wh)Jr[e]={isEnabled:t=>wh[e].some(n=>!!t[n])};function ZD(e){for(const t in e)Jr[t]={...Jr[t],...e[t]}}const QD=Symbol.for("motionComponentSymbol");function JD({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&ZD(e);function s(o,u){let c;const d={...l.reactExports.useContext(Wl),...o,layoutId:e4(o)},{isStatic:p}=d,f=XD(o),m=r(o,p);if(!p&&Yl){t4(d,e);const x=n4(d);c=x.MeasureLayout,f.visualElement=YD(i,m,d,t,x.ProjectionNode)}return l.jsxRuntimeExports.jsxs(ho.Provider,{value:f,children:[c&&f.visualElement?l.jsxRuntimeExports.jsx(c,{visualElement:f.visualElement,...d}):null,n(i,o,GD(m,f.visualElement,u),m,p,f.visualElement)]})}const a=l.reactExports.forwardRef(s);return a[QD]=i,a}function e4({layoutId:e}){const t=l.reactExports.useContext(Vl).id;return t&&e!==void 0?t+"-"+e:e}function t4(e,t){const n=l.reactExports.useContext(c1).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?fi(!1,r):_n(!1,r)}}function n4(e){const{drag:t,layout:n}=Jr;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const r4=["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 ql(e){return typeof e!="string"||e.includes("-")?!1:!!(r4.indexOf(e)>-1||/[A-Z]/u.test(e))}function p1(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const f1=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"]);function h1(e,t,n,r){p1(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(f1.has(i)?i:lo(i),t.attrs[i])}function m1(e,{layout:t,layoutId:n}){return er.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Aa[e]||e==="opacity")}function Gl(e,t,n){var r;const{style:i}=e,s={};for(const a in i)(st(i[a])||t.style&&st(t.style[a])||m1(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[a]=i[a]);return n&&i&&typeof i.willChange=="string"&&(n.applyWillChange=!1),s}function g1(e,t,n){const r=Gl(e,t,n);for(const i in e)if(st(e[i])||st(t[i])){const s=Ts.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}function Kl(e){const t=l.reactExports.useRef(null);return t.current===null&&(t.current=e()),t.current}function i4(e){if(er.has(e))return"transform";if(Nb.has(e))return lo(e)}function s4({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},i,s,a,o){const u={latestValues:a4(i,s,a,o?!1:e,t),renderState:n()};return r&&(u.mount=c=>r(i,c,u)),u}const x1=e=>(t,n)=>{const r=l.reactExports.useContext(ho),i=l.reactExports.useContext(fo),s=()=>s4(e,t,r,i,n);return n?s():Kl(s)};function _h(e,t,n){const r=Array.isArray(t)?t:[t];for(let i=0;i<r.length;i++){const s=Tl(e,r[i]);if(s){const{transitionEnd:a,transition:o,...u}=s;n(u,a)}}}function a4(e,t,n,r,i){var s;const a={},o=new Set,u=r&&((s=e.style)===null||s===void 0?void 0:s.willChange)===void 0,c=i(e,{});for(const b in c)a[b]=sa(c[b]);let{initial:d,animate:p}=e;const f=mo(e),m=d1(e);t&&m&&!f&&e.inherit!==!1&&(d===void 0&&(d=t.initial),p===void 0&&(p=t.animate));let x=n?n.initial===!1:!1;x=x||d===!1;const g=x?p:d;return g&&typeof g!="boolean"&&!Yi(g)&&_h(e,g,(b,y)=>{for(const w in b){let v=b[w];if(Array.isArray(v)){const k=x?v.length-1:0;v=v[k]}v!==null&&(a[w]=v)}for(const w in y)a[w]=y[w]}),u&&(p&&d!==!1&&!Yi(p)&&_h(e,p,b=>{for(const y in b){const w=i4(y);w&&o.add(w)}}),o.size&&(a.willChange=Array.from(o).join(","))),a}const Xl=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),b1=()=>({...Xl(),attrs:{}}),y1=(e,t)=>t&&typeof e=="number"?t.transform(e):e,o4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},u4=Ts.length;function c4(e,t,n){let r="",i=!0;for(let s=0;s<u4;s++){const a=Ts[s],o=e[a];if(o===void 0)continue;let u=!0;if(typeof o=="number"?u=o===(a.startsWith("scale")?1:0):u=parseFloat(o)===0,!u||n){const c=y1(o,Ol[a]);if(!u){i=!1;const d=o4[a]||a;r+=`${d}(${c}) `}n&&(t[a]=c)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Zl(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let a=!1,o=!1;for(const u in t){const c=t[u];if(er.has(u)){a=!0;continue}else if(lb(u)){i[u]=c;continue}else{const d=y1(c,Ol[u]);u.startsWith("origin")?(o=!0,s[u]=d):r[u]=d}}if(t.transform||(a||n?r.transform=c4(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:u="50%",originY:c="50%",originZ:d=0}=s;r.transformOrigin=`${u} ${c} ${d}`}}function Ch(e,t,n){return typeof e=="string"?e:he.transform(t+n*e)}function l4(e,t,n){const r=Ch(t,e.x,e.width),i=Ch(n,e.y,e.height);return`${r} ${i}`}const d4={offset:"stroke-dashoffset",array:"stroke-dasharray"},p4={offset:"strokeDashoffset",array:"strokeDasharray"};function f4(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?d4:p4;e[s.offset]=he.transform(-r);const a=he.transform(t),o=he.transform(n);e[s.array]=`${a} ${o}`}function Ql(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:a,pathSpacing:o=1,pathOffset:u=0,...c},d,p){if(Zl(e,c,p),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:m,dimensions:x}=e;f.transform&&(x&&(m.transform=f.transform),delete f.transform),x&&(i!==void 0||s!==void 0||m.transform)&&(m.transformOrigin=l4(x,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),a!==void 0&&f4(f,a,o,u,!1)}const Jl=e=>typeof e=="string"&&e.toLowerCase()==="svg",h4={useVisualState:x1({scrapeMotionValuesFromProps:g1,createRenderState:b1,onMount:(e,t,{renderState:n,latestValues:r})=>{De.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),De.render(()=>{Ql(n,r,Jl(t.tagName),e.transformTemplate),h1(t,n)})}})},m4={useVisualState:x1({applyWillChange:!0,scrapeMotionValuesFromProps:Gl,createRenderState:Xl})};function E1(e,t,n){for(const r in t)!st(t[r])&&!m1(r,n)&&(e[r]=t[r])}function g4({transformTemplate:e},t){return l.reactExports.useMemo(()=>{const n=Xl();return Zl(n,t,e),Object.assign({},n.vars,n.style)},[t])}function x4(e,t){const n=e.style||{},r={};return E1(r,n,e),Object.assign(r,g4(e,t)),r}function b4(e,t){const n={},r=x4(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const y4=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 ka(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||y4.has(e)}let v1=e=>!ka(e);function E4(e){e&&(v1=t=>t.startsWith("on")?!ka(t):e(t))}try{E4(require("@emotion/is-prop-valid").default)}catch{}function v4(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(v1(i)||n===!0&&ka(i)||!t&&!ka(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function T4(e,t,n,r){const i=l.reactExports.useMemo(()=>{const s=b1();return Ql(s,t,Jl(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};E1(s,e.style,e),i.style={...s,...i.style}}return i}function w4(e=!1){return(n,r,i,{latestValues:s},a)=>{const u=(ql(n)?T4:b4)(r,s,a,n),c=v4(r,typeof n=="string",e),d=n!==l.reactExports.Fragment?{...c,...u,ref:i}:{},{children:p}=r,f=l.reactExports.useMemo(()=>st(p)?p.get():p,[p]);return l.reactExports.createElement(n,{...d,children:f})}}function _4(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...ql(r)?h4:m4,preloadedFeatures:e,useRender:w4(i),createVisualElement:t,Component:r};return JD(a)}}const mc={current:null},T1={current:!1};function C4(){if(T1.current=!0,!!Yl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>mc.current=e.matches;e.addListener(t),t()}else mc.current=!1}function A4(e,t,n){for(const r in t){const i=t[r],s=n[r];if(st(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&oo(i.version==="11.11.9",`Attempting to mix Framer Motion versions ${i.version} with 11.11.9 may not work as expected.`);else if(st(s))e.addValue(r,Xi(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Xi(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Ah=new WeakMap,k4=[...fb,rt,Yn],S4=e=>k4.find(pb(e)),kh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class R4{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:a},o={}){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=Rl,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=Jt.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,De.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=mo(n),this.isVariantNode=d1(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in p){const m=p[f];u[f]!==void 0&&st(m)&&m.set(u[f],!1)}}mount(t){this.current=t,Ah.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),T1.current||C4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:mc.current,process.env.NODE_ENV!=="production"&&oo(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ah.delete(this.current),this.projection&&this.projection.unmount(),$n(this.notifyUpdate),$n(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=er.has(t),i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&De.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Jr){const n=Jr[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ye()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<kh.length;r++){const i=kh[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,a=t[s];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=A4(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Xi(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(ub(i)||ob(i))?i=parseFloat(i):!S4(i)&&Yn.test(n)&&(i=vb(t,n)),this.setBaseTarget(t,st(i)?i.get():i)),st(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=Tl(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!st(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new zl),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class w1 extends R4{constructor(){super(...arguments),this.KeyframeResolver=Tb}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function N4(e){return window.getComputedStyle(e)}class I4 extends w1{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=p1}readValueFromInstance(t,n){if(er.has(n)){const r=Pl(n);return r&&r.default||0}else{const r=N4(t),i=(lb(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Kb(t,n)}build(t,n,r){Zl(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Gl(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;st(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class O4 extends w1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ye}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(er.has(n)){const r=Pl(n);return r&&r.default||0}return n=f1.has(n)?n:lo(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return g1(t,n,r)}build(t,n,r){Ql(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){h1(t,n,r,i)}mount(t){this.isSVGTag=Jl(t.tagName),super.mount(t)}}const P4=(e,t)=>ql(e)?new O4(t):new I4(t,{allowProjection:e!==l.reactExports.Fragment}),D4=_4({...TP,...$D,...PD,...WD},P4),Hi=hO(D4);class L4 extends l.reactExports.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function M4({children:e,isPresent:t}){const n=l.reactExports.useId(),r=l.reactExports.useRef(null),i=l.reactExports.useRef({width:0,height:0,top:0,left:0}),{nonce:s}=l.reactExports.useContext(Wl);return l.reactExports.useInsertionEffect(()=>{const{width:a,height:o,top:u,left:c}=i.current;if(t||!r.current||!a||!o)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return s&&(d.nonce=s),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
304
+ [data-motion-pop-id="${n}"] {
305
+ position: absolute !important;
306
+ width: ${a}px !important;
307
+ height: ${o}px !important;
308
+ top: ${u}px !important;
309
+ left: ${c}px !important;
310
+ }
311
+ `),()=>{document.head.removeChild(d)}},[t]),l.jsxRuntimeExports.jsx(L4,{isPresent:t,childRef:r,sizeRef:i,children:l.reactExports.cloneElement(e,{ref:r})})}const j4=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:a})=>{const o=Kl(F4),u=l.reactExports.useId(),c=l.reactExports.useCallback(p=>{o.set(p,!0);for(const f of o.values())if(!f)return;r&&r()},[o,r]),d=l.reactExports.useMemo(()=>({id:u,initial:t,isPresent:n,custom:i,onExitComplete:c,register:p=>(o.set(p,!1),()=>o.delete(p))}),s?[Math.random(),c]:[n,c]);return l.reactExports.useMemo(()=>{o.forEach((p,f)=>o.set(f,!1))},[n]),l.reactExports.useEffect(()=>{!n&&!o.size&&r&&r()},[n]),a==="popLayout"&&(e=l.jsxRuntimeExports.jsx(M4,{isPresent:n,children:e})),l.jsxRuntimeExports.jsx(fo.Provider,{value:d,children:e})};function F4(){return new Map}const $s=e=>e.key||"";function Sh(e){const t=[];return l.reactExports.Children.forEach(e,n=>{l.reactExports.isValidElement(n)&&t.push(n)}),t}const gt=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:i,presenceAffectsLayout:s=!0,mode:a="sync"})=>{_n(!t,"Replace exitBeforeEnter with mode='wait'");const o=l.reactExports.useMemo(()=>Sh(e),[e]),u=o.map($s),c=l.reactExports.useRef(!0),d=l.reactExports.useRef(o),p=Kl(()=>new Map),[f,m]=l.reactExports.useState(o),[x,g]=l.reactExports.useState(o);u1(()=>{c.current=!1,d.current=o;for(let w=0;w<x.length;w++){const v=$s(x[w]);u.includes(v)?p.delete(v):p.get(v)!==!0&&p.set(v,!1)}},[x,u.length,u.join("-")]);const b=[];if(o!==f){let w=[...o];for(let v=0;v<x.length;v++){const k=x[v],C=$s(k);u.includes(C)||(w.splice(v,0,k),b.push(k))}a==="wait"&&b.length&&(w=b),g(Sh(w)),m(o);return}process.env.NODE_ENV!=="production"&&a==="wait"&&x.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:y}=l.reactExports.useContext(Vl);return l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:x.map(w=>{const v=$s(w),k=o===x||u.includes(v),C=()=>{if(p.has(v))p.set(v,!0);else return;let R=!0;p.forEach(O=>{O||(R=!1)}),R&&(y==null||y(),g(d.current),i&&i())};return l.jsxRuntimeExports.jsx(j4,{isPresent:k,initial:!c.current||r?void 0:!1,custom:k?void 0:n,presenceAffectsLayout:s,mode:a,onExitComplete:k?void 0:C,children:w},v)})})};var ed="Avatar",[B4,K8]=Ba(ed),[H4,_1]=B4(ed),C1=l.reactExports.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[i,s]=l.reactExports.useState("idle");return l.jsxRuntimeExports.jsx(H4,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:s,children:l.jsxRuntimeExports.jsx(At.span,{...r,ref:t})})});C1.displayName=ed;var A1="AvatarImage",k1=l.reactExports.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...s}=e,a=_1(A1,n),o=U4(r,s.referrerPolicy),u=_t(c=>{i(c),a.onImageLoadingStatusChange(c)});return tn(()=>{o!=="idle"&&u(o)},[o,u]),o==="loaded"?l.jsxRuntimeExports.jsx(At.img,{...s,ref:t,src:r}):null});k1.displayName=A1;var S1="AvatarFallback",R1=l.reactExports.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...i}=e,s=_1(S1,n),[a,o]=l.reactExports.useState(r===void 0);return l.reactExports.useEffect(()=>{if(r!==void 0){const u=window.setTimeout(()=>o(!0),r);return()=>window.clearTimeout(u)}},[r]),a&&s.imageLoadingStatus!=="loaded"?l.jsxRuntimeExports.jsx(At.span,{...i,ref:t}):null});R1.displayName=S1;function U4(e,t){const[n,r]=l.reactExports.useState("idle");return tn(()=>{if(!e){r("error");return}let i=!0;const s=new window.Image,a=o=>()=>{i&&r(o)};return r("loading"),s.onload=a("loaded"),s.onerror=a("error"),s.src=e,t&&(s.referrerPolicy=t),()=>{i=!1}},[e,t]),n}var N1=C1,I1=k1,O1=R1;const td=l.reactExports.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(N1,{ref:n,className:ce("relative flex size-6 aspect-square shrink-0 overflow-hidden rounded-full bg-secondary",e),...t}));td.displayName=N1.displayName;const nd=l.reactExports.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(I1,{ref:n,className:ce("aspect-square h-full w-full",e),...t}));nd.displayName=I1.displayName;const rd=l.reactExports.forwardRef(({className:e,...t},n)=>l.jsxRuntimeExports.jsx(O1,{ref:n,className:ce("flex size-full text-xs items-center justify-center rounded-lg",e),...t}));rd.displayName=O1.displayName;function gc({agent:e,...t}){var n,r;return l.jsxRuntimeExports.jsxs(td,{...t,children:[l.jsxRuntimeExports.jsx(nd,{src:(e==null?void 0:e.avatar)??"",alt:"Agent Icon"}),(e==null?void 0:e.name)&&l.jsxRuntimeExports.jsx(rd,{children:(r=(n=e==null?void 0:e.name)==null?void 0:n.slice(0,1))==null?void 0:r.toUpperCase()})]})}const z4=10,V4=(e,t,n)=>({initial:{opacity:0,x:-e,...t.initial},animate:{opacity:1,x:0,...t.animate,transition:{delay:n}},exit:{opacity:0,x:e,...t.exit}}),$4=(e,t,n)=>({initial:{opacity:0,x:e,...t.initial},animate:{opacity:1,x:0,...t.animate,transition:{delay:n}},exit:{opacity:0,x:-e,...t.exit}}),W4=(e,t,n)=>({initial:{opacity:0,y:e,...t.initial},animate:{opacity:1,y:0,...t.animate,transition:{delay:n}},exit:{opacity:0,y:-e,...t.exit}}),Y4=(e,t,n)=>({initial:{opacity:0,y:-e,...t.initial},animate:{opacity:1,y:0,...t.animate,transition:{delay:n}},exit:{opacity:0,y:e,...t.exit}}),q4={right:V4,left:$4,up:W4,down:Y4},Me=l.reactExports.forwardRef(({fadeIn:e="down",distance:t=z4,children:n,snapExit:r=!1,overrides:i={},delay:s=0,...a},o)=>{const u=e?q4[e](t,i,s):{};return r&&u.exit&&typeof u.exit=="object"&&!Array.isArray(u.exit)&&(u.exit.transition={duration:0}),l.jsxRuntimeExports.jsx(Hi.div,{ref:o,...a,...u,children:n})});Me.displayName="MotionDiv";function G4({agent:e}){return l.jsxRuntimeExports.jsx(gt,{children:l.jsxRuntimeExports.jsxs(Me,{...Oe("chat/bot_loading/root"),className:"flex flex-row items-end w-full gap-2 animate-pulse",children:[l.jsxRuntimeExports.jsx(gc,{agent:e}),l.jsxRuntimeExports.jsxs("div",{...Oe("chat/bot_loading/bouncing_dots_container"),className:ce("flex items-center [&_span]:bg-secondary-foreground [&_span]:size-1 gap-1 p-2 rounded-xl bg-secondary"),children:[l.jsxRuntimeExports.jsx(Hi.span,{className:"rounded-full animate-bounce [animation-delay:-0.3s]"}),l.jsxRuntimeExports.jsx(Hi.span,{className:"rounded-full animate-bounce [animation-delay:-0.15s]"}),l.jsxRuntimeExports.jsx(Hi.span,{className:"rounded-full animate-bounce"})]})]})})}const P1='@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..700;1,14..32,100..700&display=swap";@import"https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{-ms-overflow-style:none;scrollbar-width:none}*::-webkit-scrollbar{display:none}*{border-color:hsl(var(--opencx-border))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.left-0{left:0}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.right-4{right:1rem}.right-6{right:1.5rem}.top-0{top:0}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\[50\\%\\]{top:50%}.isolate{isolation:isolate}.z-10{z-index:10}.z-50{z-index:50}.m-2{margin:.5rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ml-auto{margin-left:auto}.mt-0\\.5{margin-top:.125rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-3{width:.75rem;height:.75rem}.size-3\\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-auto{width:auto;height:auto}.size-fit{width:fit-content;height:fit-content}.size-full{width:100%;height:100%}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.max-h-16{max-height:4rem}.max-h-full{max-height:100%}.min-h-12{min-height:3rem}.w-0{width:0px}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-2{width:.5rem}.w-3\\.5{width:.875rem}.w-4{width:1rem}.w-5\\/6{width:83.333333%}.w-60{width:15rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.min-w-\\[8rem\\]{min-width:8rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[var\\(--wobble-x\\)\\]{--tw-translate-x: var(--wobble-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[var\\(--wobble-y\\)\\]{--tw-translate-y: var(--wobble-y);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-\\[1px\\]{gap:1px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.scroll-smooth{scroll-behavior:smooth}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[20px\\]{border-radius:20px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-none{border-style:none}.border-transparent{border-color:transparent}.bg-\\[white\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-background{background-color:hsl(var(--opencx-background))}.bg-black\\/50{background-color:#00000080}.bg-black\\/60{background-color:#0009}.bg-destructive{background-color:hsl(var(--opencx-destructive))}.bg-muted{background-color:hsl(var(--opencx-muted))}.bg-primary{background-color:hsl(var(--opencx-primary))}.bg-secondary{background-color:hsl(var(--opencx-secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-\\[radial-gradient\\(ellipse_at_top_left\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\,radial-gradient\\(ellipse_at_top_right\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\]{background-image:radial-gradient(ellipse at top left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse at top right,hsl(var(--opencx-primary)),transparent)}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.text-\\[1\\.75rem\\]{font-size:1.75rem}.text-\\[10px\\]{font-size:10px}.text-\\[16px\\]{font-size:16px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-destructive{color:hsl(var(--opencx-destructive))}.text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity))}.text-foreground{color:hsl(var(--opencx-foreground))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}.text-muted-foreground\\/75{color:hsl(var(--opencx-muted-foreground) / .75)}.text-primary{color:hsl(var(--opencx-primary))}.text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-95{opacity:.95}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-8{outline-width:8px}.outline-background{outline-color:hsl(var(--opencx-background))}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.duration-200{animation-duration:.2s}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}.\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}.\\[field-sizing\\:content\\;\\],.\\[field-sizing\\:content\\]{field-sizing:content}.\\[word-break\\:break-word\\]{word-break:break-word}.required:after{content:" *";color:red}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}.placeholder\\:text-muted-foreground\\/75::placeholder{color:hsl(var(--opencx-muted-foreground) / .75)}.focus-within\\:border-primary:focus-within{border-color:hsl(var(--opencx-primary))}.hover\\:scale-\\[var\\(--scale\\)\\]:hover{--tw-scale-x: var(--scale);--tw-scale-y: var(--scale);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:border-primary:hover{border-color:hsl(var(--opencx-primary))}.hover\\:bg-green-50\\/50:hover{background-color:#f0fdf480}.hover\\:bg-red-50\\/50:hover{background-color:#fef2f280}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.hover\\:text-green-500:hover{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.hover\\:text-primary:hover{color:hsl(var(--opencx-primary))}.hover\\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-ring:focus{--tw-ring-color: hsl(var(--opencx-ring))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:hover\\:scale-\\[calc\\(var\\(--scale\\)-0\\.02\\)\\]:hover:active{--tw-scale-x: calc(var(--scale) - .02);--tw-scale-y: calc(var(--scale) - .02);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:active\\:scale-90:active,.group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}.data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:hsl(var(--opencx-muted-foreground))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y: -48%}.prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}.prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}.rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rtl\\:text-right:where([dir=rtl],[dir=rtl] *){text-align:right}.rtl\\:placeholder\\:text-right:where([dir=rtl],[dir=rtl] *)::placeholder{text-align:right}.\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}.\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\]\\:text-muted-foreground\\/70 svg{color:hsl(var(--opencx-muted-foreground) / .7)}.\\[\\&_svg\\]\\:hover\\:text-primary:hover svg{color:hsl(var(--opencx-primary))}';var K4="VisuallyHidden",D1=l.reactExports.forwardRef((e,t)=>l.jsxRuntimeExports.jsx(At.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));D1.displayName=K4;var X4=D1,[go,X8]=Ba("Tooltip",[$a]),xo=$a(),L1="TooltipProvider",Z4=700,xc="tooltip.open",[Q4,id]=go(L1),M1=e=>{const{__scopeTooltip:t,delayDuration:n=Z4,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=e,[a,o]=l.reactExports.useState(!0),u=l.reactExports.useRef(!1),c=l.reactExports.useRef(0);return l.reactExports.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),l.jsxRuntimeExports.jsx(Q4,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:l.reactExports.useCallback(()=>{window.clearTimeout(c.current),o(!1)},[]),onClose:l.reactExports.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o(!0),r)},[r]),isPointerInTransitRef:u,onPointerInTransitChange:l.reactExports.useCallback(d=>{u.current=d},[]),disableHoverableContent:i,children:s})};M1.displayName=L1;var bo="Tooltip",[J4,yo]=go(bo),j1=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:s,disableHoverableContent:a,delayDuration:o}=e,u=id(bo,e.__scopeTooltip),c=xo(t),[d,p]=l.reactExports.useState(null),f=Ri(),m=l.reactExports.useRef(0),x=a??u.disableHoverableContent,g=o??u.delayDuration,b=l.reactExports.useRef(!1),[y=!1,w]=Vc({prop:r,defaultProp:i,onChange:O=>{O?(u.onOpen(),document.dispatchEvent(new CustomEvent(xc))):u.onClose(),s==null||s(O)}}),v=l.reactExports.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),k=l.reactExports.useCallback(()=>{window.clearTimeout(m.current),b.current=!1,w(!0)},[w]),C=l.reactExports.useCallback(()=>{window.clearTimeout(m.current),w(!1)},[w]),R=l.reactExports.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{b.current=!0,w(!0)},g)},[g,w]);return l.reactExports.useEffect(()=>()=>window.clearTimeout(m.current),[]),l.jsxRuntimeExports.jsx(Dm,{...c,children:l.jsxRuntimeExports.jsx(J4,{scope:t,contentId:f,open:y,stateAttribute:v,trigger:d,onTriggerChange:p,onTriggerEnter:l.reactExports.useCallback(()=>{u.isOpenDelayed?R():k()},[u.isOpenDelayed,R,k]),onTriggerLeave:l.reactExports.useCallback(()=>{x?C():window.clearTimeout(m.current)},[C,x]),onOpen:k,onClose:C,disableHoverableContent:x,children:n})})};j1.displayName=bo;var bc="TooltipTrigger",F1=l.reactExports.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=yo(bc,n),s=id(bc,n),a=xo(n),o=l.reactExports.useRef(null),u=an(t,o,i.onTriggerChange),c=l.reactExports.useRef(!1),d=l.reactExports.useRef(!1),p=l.reactExports.useCallback(()=>c.current=!1,[]);return l.reactExports.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),l.jsxRuntimeExports.jsx(Uc,{asChild:!0,...a,children:l.jsxRuntimeExports.jsx(At.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:u,onPointerMove:mt(e.onPointerMove,f=>{f.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:mt(e.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:mt(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:mt(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:mt(e.onBlur,i.onClose),onClick:mt(e.onClick,i.onClose)})})});F1.displayName=bc;var eL="TooltipPortal",[Z8,tL]=go(eL,{forceMount:void 0}),ei="TooltipContent",B1=l.reactExports.forwardRef((e,t)=>{const n=tL(ei,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,a=yo(ei,e.__scopeTooltip);return l.jsxRuntimeExports.jsx(zc,{present:r||a.open,children:a.disableHoverableContent?l.jsxRuntimeExports.jsx(H1,{side:i,...s,ref:t}):l.jsxRuntimeExports.jsx(nL,{side:i,...s,ref:t})})}),nL=l.reactExports.forwardRef((e,t)=>{const n=yo(ei,e.__scopeTooltip),r=id(ei,e.__scopeTooltip),i=l.reactExports.useRef(null),s=an(t,i),[a,o]=l.reactExports.useState(null),{trigger:u,onClose:c}=n,d=i.current,{onPointerInTransitChange:p}=r,f=l.reactExports.useCallback(()=>{o(null),p(!1)},[p]),m=l.reactExports.useCallback((x,g)=>{const b=x.currentTarget,y={x:x.clientX,y:x.clientY},w=aL(y,b.getBoundingClientRect()),v=oL(y,w),k=uL(g.getBoundingClientRect()),C=lL([...v,...k]);o(C),p(!0)},[p]);return l.reactExports.useEffect(()=>()=>f(),[f]),l.reactExports.useEffect(()=>{if(u&&d){const x=b=>m(b,d),g=b=>m(b,u);return u.addEventListener("pointerleave",x),d.addEventListener("pointerleave",g),()=>{u.removeEventListener("pointerleave",x),d.removeEventListener("pointerleave",g)}}},[u,d,m,f]),l.reactExports.useEffect(()=>{if(a){const x=g=>{const b=g.target,y={x:g.clientX,y:g.clientY},w=(u==null?void 0:u.contains(b))||(d==null?void 0:d.contains(b)),v=!cL(y,a);w?f():v&&(f(),c())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[u,d,a,c,f]),l.jsxRuntimeExports.jsx(H1,{...e,ref:s})}),[rL,iL]=go(bo,{isInside:!1}),H1=l.reactExports.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:a,...o}=e,u=yo(ei,n),c=xo(n),{onClose:d}=u;return l.reactExports.useEffect(()=>(document.addEventListener(xc,d),()=>document.removeEventListener(xc,d)),[d]),l.reactExports.useEffect(()=>{if(u.trigger){const p=f=>{const m=f.target;m!=null&&m.contains(u.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[u.trigger,d]),l.jsxRuntimeExports.jsx(Oc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:l.jsxRuntimeExports.jsxs(Lm,{"data-state":u.stateAttribute,...c,...o,ref:t,style:{...o.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[l.jsxRuntimeExports.jsx(cm,{children:r}),l.jsxRuntimeExports.jsx(rL,{scope:n,isInside:!0,children:l.jsxRuntimeExports.jsx(X4,{id:u.contentId,role:"tooltip",children:i||r})})]})})});B1.displayName=ei;var U1="TooltipArrow",sL=l.reactExports.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=xo(n);return iL(U1,n).isInside?null:l.jsxRuntimeExports.jsx(Mm,{...i,...r,ref:t})});sL.displayName=U1;function aL(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function oL(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function uL(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function cL(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const o=t[s].x,u=t[s].y,c=t[a].x,d=t[a].y;u>r!=d>r&&n<(c-o)*(r-u)/(d-u)+o&&(i=!i)}return i}function lL(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),dL(t)}function dL(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(i.y-a.y)>=(s.y-a.y)*(i.x-a.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(i.y-a.y)>=(s.y-a.y)*(i.x-a.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var pL=M1,fL=j1,hL=F1,z1=B1;const mL=pL,gL=fL,xL=hL,V1=l.reactExports.forwardRef(({className:e,sideOffset:t=4,...n},r)=>l.jsxRuntimeExports.jsx(z1,{ref:r,sideOffset:t,className:ce("z-50 overflow-hidden max-w-xs rounded-xl bg-primary border text-primary-foreground p-2 text-center align-middle text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));V1.displayName=z1.displayName;function Zi({children:e,content:t,side:n,align:r}){return t?l.jsxRuntimeExports.jsxs(gL,{children:[l.jsxRuntimeExports.jsx(xL,{asChild:!0,children:e}),l.jsxRuntimeExports.jsx(V1,{side:n,align:r,collisionPadding:8,avoidCollisions:!0,children:t})]}):e}function Sa(e){"@babel/helpers - typeof";return Sa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sa(e)}var bL=/^\s+/,yL=/\s+$/;function re(e,t){if(e=e||"",t=t||{},e instanceof re)return e;if(!(this instanceof re))return new re(e,t);var n=EL(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}re.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,s,a,o;return n=t.r/255,r=t.g/255,i=t.b/255,n<=.03928?s=n/12.92:s=Math.pow((n+.055)/1.055,2.4),r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),i<=.03928?o=i/12.92:o=Math.pow((i+.055)/1.055,2.4),.2126*s+.7152*a+.0722*o},setAlpha:function(t){return this._a=$1(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Nh(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Nh(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=Rh(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Rh(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return Ih(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return _L(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(ze(this._r,255)*100)+"%",g:Math.round(ze(this._g,255)*100)+"%",b:Math.round(ze(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ze(this._r,255)*100)+"%, "+Math.round(ze(this._g,255)*100)+"%, "+Math.round(ze(this._b,255)*100)+"%)":"rgba("+Math.round(ze(this._r,255)*100)+"%, "+Math.round(ze(this._g,255)*100)+"%, "+Math.round(ze(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:ML[Ih(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+Oh(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var s=re(t);r="#"+Oh(s._r,s._g,s._b,s._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,i=this._a<1&&this._a>=0,s=!n&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return s?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return re(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(SL,arguments)},brighten:function(){return this._applyModification(RL,arguments)},darken:function(){return this._applyModification(NL,arguments)},desaturate:function(){return this._applyModification(CL,arguments)},saturate:function(){return this._applyModification(AL,arguments)},greyscale:function(){return this._applyModification(kL,arguments)},spin:function(){return this._applyModification(IL,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(DL,arguments)},complement:function(){return this._applyCombination(OL,arguments)},monochromatic:function(){return this._applyCombination(LL,arguments)},splitcomplement:function(){return this._applyCombination(PL,arguments)},triad:function(){return this._applyCombination(Ph,[3])},tetrad:function(){return this._applyCombination(Ph,[4])}};re.fromRatio=function(e,t){if(Sa(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=Ai(e[r]));e=n}return re(e,t)};function EL(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,s=null,a=!1,o=!1;return typeof e=="string"&&(e=HL(e)),Sa(e)=="object"&&(hn(e.r)&&hn(e.g)&&hn(e.b)?(t=vL(e.r,e.g,e.b),a=!0,o=String(e.r).substr(-1)==="%"?"prgb":"rgb"):hn(e.h)&&hn(e.s)&&hn(e.v)?(r=Ai(e.s),i=Ai(e.v),t=wL(e.h,r,i),a=!0,o="hsv"):hn(e.h)&&hn(e.s)&&hn(e.l)&&(r=Ai(e.s),s=Ai(e.l),t=TL(e.h,r,s),a=!0,o="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=$1(n),{ok:a,format:e.format||o,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function vL(e,t,n){return{r:ze(e,255)*255,g:ze(t,255)*255,b:ze(n,255)*255}}function Rh(e,t,n){e=ze(e,255),t=ze(t,255),n=ze(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),s,a,o=(r+i)/2;if(r==i)s=a=0;else{var u=r-i;switch(a=o>.5?u/(2-r-i):u/(r+i),r){case e:s=(t-n)/u+(t<n?6:0);break;case t:s=(n-e)/u+2;break;case n:s=(e-t)/u+4;break}s/=6}return{h:s,s:a,l:o}}function TL(e,t,n){var r,i,s;e=ze(e,360),t=ze(t,100),n=ze(n,100);function a(c,d,p){return p<0&&(p+=1),p>1&&(p-=1),p<1/6?c+(d-c)*6*p:p<1/2?d:p<2/3?c+(d-c)*(2/3-p)*6:c}if(t===0)r=i=s=n;else{var o=n<.5?n*(1+t):n+t-n*t,u=2*n-o;r=a(u,o,e+1/3),i=a(u,o,e),s=a(u,o,e-1/3)}return{r:r*255,g:i*255,b:s*255}}function Nh(e,t,n){e=ze(e,255),t=ze(t,255),n=ze(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),s,a,o=r,u=r-i;if(a=r===0?0:u/r,r==i)s=0;else{switch(r){case e:s=(t-n)/u+(t<n?6:0);break;case t:s=(n-e)/u+2;break;case n:s=(e-t)/u+4;break}s/=6}return{h:s,s:a,v:o}}function wL(e,t,n){e=ze(e,360)*6,t=ze(t,100),n=ze(n,100);var r=Math.floor(e),i=e-r,s=n*(1-t),a=n*(1-i*t),o=n*(1-(1-i)*t),u=r%6,c=[n,a,s,s,o,n][u],d=[o,n,n,a,s,s][u],p=[s,s,o,n,n,a][u];return{r:c*255,g:d*255,b:p*255}}function Ih(e,t,n,r){var i=[Ft(Math.round(e).toString(16)),Ft(Math.round(t).toString(16)),Ft(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function _L(e,t,n,r,i){var s=[Ft(Math.round(e).toString(16)),Ft(Math.round(t).toString(16)),Ft(Math.round(n).toString(16)),Ft(W1(r))];return i&&s[0].charAt(0)==s[0].charAt(1)&&s[1].charAt(0)==s[1].charAt(1)&&s[2].charAt(0)==s[2].charAt(1)&&s[3].charAt(0)==s[3].charAt(1)?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):s.join("")}function Oh(e,t,n,r){var i=[Ft(W1(r)),Ft(Math.round(e).toString(16)),Ft(Math.round(t).toString(16)),Ft(Math.round(n).toString(16))];return i.join("")}re.equals=function(e,t){return!e||!t?!1:re(e).toRgbString()==re(t).toRgbString()};re.random=function(){return re.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function CL(e,t){t=t===0?0:t||10;var n=re(e).toHsl();return n.s-=t/100,n.s=Eo(n.s),re(n)}function AL(e,t){t=t===0?0:t||10;var n=re(e).toHsl();return n.s+=t/100,n.s=Eo(n.s),re(n)}function kL(e){return re(e).desaturate(100)}function SL(e,t){t=t===0?0:t||10;var n=re(e).toHsl();return n.l+=t/100,n.l=Eo(n.l),re(n)}function RL(e,t){t=t===0?0:t||10;var n=re(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),re(n)}function NL(e,t){t=t===0?0:t||10;var n=re(e).toHsl();return n.l-=t/100,n.l=Eo(n.l),re(n)}function IL(e,t){var n=re(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,re(n)}function OL(e){var t=re(e).toHsl();return t.h=(t.h+180)%360,re(t)}function Ph(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=re(e).toHsl(),r=[re(e)],i=360/t,s=1;s<t;s++)r.push(re({h:(n.h+s*i)%360,s:n.s,l:n.l}));return r}function PL(e){var t=re(e).toHsl(),n=t.h;return[re(e),re({h:(n+72)%360,s:t.s,l:t.l}),re({h:(n+216)%360,s:t.s,l:t.l})]}function DL(e,t,n){t=t||6,n=n||30;var r=re(e).toHsl(),i=360/n,s=[re(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,s.push(re(r));return s}function LL(e,t){t=t||6;for(var n=re(e).toHsv(),r=n.h,i=n.s,s=n.v,a=[],o=1/t;t--;)a.push(re({h:r,s:i,v:s})),s=(s+o)%1;return a}re.mix=function(e,t,n){n=n===0?0:n||50;var r=re(e).toRgb(),i=re(t).toRgb(),s=n/100,a={r:(i.r-r.r)*s+r.r,g:(i.g-r.g)*s+r.g,b:(i.b-r.b)*s+r.b,a:(i.a-r.a)*s+r.a};return re(a)};re.readability=function(e,t){var n=re(e),r=re(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};re.isReadable=function(e,t,n){var r=re.readability(e,t),i,s;switch(s=!1,i=UL(n),i.level+i.size){case"AAsmall":case"AAAlarge":s=r>=4.5;break;case"AAlarge":s=r>=3;break;case"AAAsmall":s=r>=7;break}return s};re.mostReadable=function(e,t,n){var r=null,i=0,s,a,o,u;n=n||{},a=n.includeFallbackColors,o=n.level,u=n.size;for(var c=0;c<t.length;c++)s=re.readability(e,t[c]),s>i&&(i=s,r=re(t[c]));return re.isReadable(e,r,{level:o,size:u})||!a?r:(n.includeFallbackColors=!1,re.mostReadable(e,["#fff","#000"],n))};var yc=re.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ML=re.hexNames=jL(yc);function jL(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function $1(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ze(e,t){FL(e)&&(e="100%");var n=BL(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Eo(e){return Math.min(1,Math.max(0,e))}function Et(e){return parseInt(e,16)}function FL(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function BL(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Ft(e){return e.length==1?"0"+e:""+e}function Ai(e){return e<=1&&(e=e*100+"%"),e}function W1(e){return Math.round(parseFloat(e)*255).toString(16)}function Dh(e){return Et(e)/255}var jt=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function hn(e){return!!jt.CSS_UNIT.exec(e)}function HL(e){e=e.replace(bL,"").replace(yL,"").toLowerCase();var t=!1;if(yc[e])e=yc[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=jt.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=jt.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=jt.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=jt.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=jt.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=jt.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=jt.hex8.exec(e))?{r:Et(n[1]),g:Et(n[2]),b:Et(n[3]),a:Dh(n[4]),format:t?"name":"hex8"}:(n=jt.hex6.exec(e))?{r:Et(n[1]),g:Et(n[2]),b:Et(n[3]),format:t?"name":"hex"}:(n=jt.hex4.exec(e))?{r:Et(n[1]+""+n[1]),g:Et(n[2]+""+n[2]),b:Et(n[3]+""+n[3]),a:Dh(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=jt.hex3.exec(e))?{r:Et(n[1]+""+n[1]),g:Et(n[2]+""+n[2]),b:Et(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function UL(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}const Lh=450;function kn(){const[e,t]=l.React$1.useState(()=>(window.top||window).innerWidth<Lh);return l.React$1.useEffect(()=>{const n=window.top||window,r=()=>{t(n.innerWidth<Lh)};return r(),n.addEventListener("resize",r),()=>{n.removeEventListener("resize",r)}},[]),{isSmallScreen:e}}const Ws={transitionTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",transitionDuration:"1000ms"};function mi(){var a,o,u,c,d,p,f,m,x,g,b,y,w,v,k,C,R,O,D,j,N,B,M,ee,Y,K,ne,X,Z,ie,E,z,oe,A,te,ge,J,le,de,be,pe,Re,W,He,ct;const{isSmallScreen:e}=kn(),{theme:t}=l.useConfig(),n=(kt,dn)=>e?`100dv${kt}`:dn,r={zIndex:((a=t==null?void 0:t.widgetTrigger)==null?void 0:a.zIndex)??1e7,offset:{bottom:((u=(o=t==null?void 0:t.widgetTrigger)==null?void 0:o.offset)==null?void 0:u.bottom)??20,right:((d=(c=t==null?void 0:t.widgetTrigger)==null?void 0:c.offset)==null?void 0:d.right)??20},size:{button:((f=(p=t==null?void 0:t.widgetTrigger)==null?void 0:p.size)==null?void 0:f.button)??48,icon:((x=(m=t==null?void 0:t.widgetTrigger)==null?void 0:m.size)==null?void 0:x.icon)??24}},i={palette:(t==null?void 0:t.palette)??"stone",primaryColor:(t==null?void 0:t.primaryColor)??"hsl(0 0% 9%)",widgetTrigger:r,widgetContentContainer:{borderRadius:e?"0px":((g=t==null?void 0:t.widgetContentContainer)==null?void 0:g.borderRadius)??"32px",zIndex:((b=t==null?void 0:t.widgetContentContainer)==null?void 0:b.zIndex)??r.zIndex+1,outline:((y=t==null?void 0:t.widgetContentContainer)==null?void 0:y.outline)??"none",outlineColor:((w=t==null?void 0:t.widgetContentContainer)==null?void 0:w.outlineColor)??"hsl(0 0% 50% / .5)",boxShadow:((v=t==null?void 0:t.widgetContentContainer)==null?void 0:v.boxShadow)??"0 0px 100px 0px rgb(0 0 0 / 0.25)",transitionProperty:((k=t==null?void 0:t.widgetContentContainer)==null?void 0:k.transitionProperty)??"all",transitionTimingFunction:((C=t==null?void 0:t.widgetContentContainer)==null?void 0:C.transitionTimingFunction)??Ws.transitionTimingFunction,transitionDuration:((R=t==null?void 0:t.widgetContentContainer)==null?void 0:R.transitionDuration)??Ws.transitionDuration,offset:{side:e?0:r.offset.bottom+r.size.button+Xr.y*2+(((D=(O=t==null?void 0:t.widgetContentContainer)==null?void 0:O.offset)==null?void 0:D.side)??10),align:e?0:r.offset.right+(((N=(j=t==null?void 0:t.widgetContentContainer)==null?void 0:j.offset)==null?void 0:N.align)??0)}},screens:{welcome:{width:n("w",((M=(B=t==null?void 0:t.screens)==null?void 0:B.welcome)==null?void 0:M.width)??"400px"),minHeight:n("h",((Y=(ee=t==null?void 0:t.screens)==null?void 0:ee.welcome)==null?void 0:Y.minHeight)??"1px")},sessions:{width:n("w",((ne=(K=t==null?void 0:t.screens)==null?void 0:K.sessions)==null?void 0:ne.width)??"450px"),height:n("h",((Z=(X=t==null?void 0:t.screens)==null?void 0:X.sessions)==null?void 0:Z.height)??"600px")},chat:{width:n("w",((E=(ie=t==null?void 0:t.screens)==null?void 0:ie.chat)==null?void 0:E.width)??"525px"),height:n("h",((oe=(z=t==null?void 0:t.screens)==null?void 0:z.chat)==null?void 0:oe.height)??"700px"),withCanvas:{width:n("w",((ge=(te=(A=t==null?void 0:t.screens)==null?void 0:A.chat)==null?void 0:te.withCanvas)==null?void 0:ge.width)??"min(1050px, 100vw)"),height:n("h",((de=(le=(J=t==null?void 0:t.screens)==null?void 0:J.chat)==null?void 0:le.withCanvas)==null?void 0:de.height)??"min(800px, 100vh)"),transitionTimingFunction:((Re=(pe=(be=t==null?void 0:t.screens)==null?void 0:be.chat)==null?void 0:pe.withCanvas)==null?void 0:Re.transitionTimingFunction)??Ws.transitionTimingFunction,transitionDuration:((ct=(He=(W=t==null?void 0:t.screens)==null?void 0:W.chat)==null?void 0:He.withCanvas)==null?void 0:ct.transitionDuration)??Ws.transitionDuration}}}},s={maxHeight:n("h",`calc(
2
312
  100vh
3
- - ${n.widgetTrigger.offset.bottom}px
4
- - ${n.widgetContentContainer.offset.side}px
5
- - ${B.y*2}px
6
- )`),maxWidth:s("w",`calc(
313
+ - ${i.widgetTrigger.offset.bottom}px
314
+ - ${i.widgetContentContainer.offset.side}px
315
+ - ${Xr.y*2}px
316
+ )`),maxWidth:n("w",`calc(
7
317
  100vw
8
- - ${n.widgetTrigger.offset.right*2}px
9
- )`),minHeight:s("h",`min(
10
- ${n.screens.welcome.minHeight},
11
- ${n.screens.sessions.height},
12
- ${n.screens.chat.height}
13
- )`),minWidth:s("w",`min(
14
- ${n.screens.welcome.width},
15
- ${n.screens.sessions.width},
16
- ${n.screens.chat.width}
17
- )`)};return{theme:n,computed:a,cssVars:Ft({palette:n.palette,primary:n.primaryColor})}}function Ft({palette:t,primary:o}){const s=st(t),r=We(o).toHsl(),n=We(o).isLight()?s[950]:s[50];return{"--opencx-primary":`${r.h} ${r.s*100}% ${r.l*100}%`,"--opencx-primary-foreground":n,"--opencx-background":s[100],"--opencx-foreground":s[950],"--opencx-destructive":"0 72.2% 50.6%","--opencx-destructive-foreground":s[50],"--opencx-accent":s[200],"--opencx-accent-foreground":"var(--opencx-foreground)","--opencx-secondary":s[200],"--opencx-secondary-foreground":"var(--opencx-foreground)","--opencx-muted":s[200],"--opencx-muted-foreground":s[500],"--opencx-input":s[300],"--opencx-border":s[300],"--opencx-ring":"var(--opencx-foreground)"}}function st(t){const o={50:"0 0% 98%",100:"0 0% 96.1%",200:"0 0% 89.8%",300:"0 0% 83.1%",400:"0 0% 63.9%",500:"0 0% 45.1%",600:"0 0% 32.2%",700:"0 0% 25.1%",800:"0 0% 14.9%",900:"0 0% 9%",950:"0 0% 3.9%"},s={50:"60 9.1% 97.8%",100:"60 4.8% 95.9%",200:"20 5.9% 90%",300:"24 5.7% 82.9%",400:"24 5.4% 63.9%",500:"25 5.3% 44.7%",600:"33.3 5.5% 32.4%",700:"30 6.3% 25.1%",800:"12 6.5% 15.1%",900:"24 9.8% 10%",950:"20 14.3% 4.1%"},r={50:"0 0% 98%",100:"240 4.8% 95.9%",200:"240 5.9% 90%",300:"240 4.9% 83.9%",400:"240 5% 64.9%",500:"240 3.8% 46.1%",600:"240 5.2% 33.9%",700:"240 5.3% 26.1%",800:"240 3.7% 15.9%",900:"240 5.9% 10%",950:"240 10% 3.9%"},n={50:"210 40% 98%",100:"210 40% 96.1%",200:"214.3 31.8% 91.4%",300:"212.7 26.8% 83.9%",400:"215 20.2% 65.1%",500:"215.4 16.3% 46.9%",600:"215.3 19.3% 34.5%",700:"215.3 25% 26.7%",800:"217.2 32.6% 17.5%",900:"222.2 47.4% 11.2%",950:"222.2 84% 4.9%"};switch(t){case"neutral":return o;case"stone":return s;case"zinc":return r;case"slate":return n;default:return H.isExhaustive(t,st.name),o}}const he=()=>{const[t,o]=m.useState("ltr");return m.useEffect(()=>{const s=()=>{typeof document>"u"||o(window.getComputedStyle(document.body).direction)};s();const r=new MutationObserver(s);return r.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),r.observe(document.body,{attributes:!0,attributeFilter:["dir"]}),window.addEventListener("languagechange",s),()=>{r.disconnect(),window.removeEventListener("languagechange",s)}},[]),t},qt={ok:"حسنا",yes:"نعم",no:"لا",agree:"موافق",cancel:"إلغاء","yes-exit":"نعم، اخرج","yes-reset":"نعم، إعادة تعيين","no-cancel":"لا، إلغاء","are-you-sure":"هل أنت متأكد؟",recording:"تسجيل","thank-you":"شكرا","sorry-try-again":"عذرا، حاول مرة أخرى","error-occurred":"حدث خطأ","please-try-again":"يرجى المحاولة مرة أخرى","write-a-message":"اكتب رسالة...","send-message":"إرسال رسالة",connected:"متصل",connecting:"جاري الاتصال",reconnecting:"جاري إعادة الاتصال",reconnected:"تم إعادة الاتصال",disconnecting:"جاري قطع الاتصال",disconnected:"قطع الاتصال",error:"خطأ","persist-session":"حفظ الجلسة",settings:"إعدادات",close:"إغلاق",help:"مساعدة",chat:"محادثة",send:"إرسال",copy:"نسخ",copied:"تم النسخ","sound-effects":"التاثيرات الصوتية",language:"اللغة",select:"اختر",agent:"الوكيل",user:"المستخدم",bot:"البوت","close-widget":"إغلاق الودجة","got-any-questions":"هل لديك أي أسئلة؟ تحدث معنا!","typical-response-time":"عادة ما نرد في أقل من دقيقة واحدة","session-closed-lead":"تم حل مشكلتك!",exit:"خروج","create-new-ticket":"إنشاء تذكرة جديدة","reset-conversation":"إعادة تعيين المحادثة","new-conversation":"محادثة جديدة","welcome-title":"مرحبًا بك في دردشة الدعم الخاصة بنا","welcome-description":"نحن هنا للمساعدة! ابدأ محادثة وسنرد عليك في أقرب وقت ممكن.","your-name":"اسمك","your-email":"عنوان بريدك الإلكتروني","start-chat":"تحدث إلى الدعم","starting-chat":"جاري الاتصال...","hello-greeting":"مرحبًا! كيف يمكننا مساعدتك اليوم؟","i-need-more-help":"أحتاج المزيد من المساعدة","this-was-helpful":"كان هذا مفيدًا",optional:"اختياري","no-conversations-yet":"لا يوجد محادثات","back-to-conversations":"العودة إلى المحادثات","closed-conversations":"المحادثات المغلقة"},Ht={ok:"OK",yes:"Ja",no:"Nein",agree:"Zustimmen",cancel:"Stornieren","yes-exit":"Ja, beenden","yes-reset":"Ja, zurücksetzen","no-cancel":"Nein, abbrechen","are-you-sure":"Sind Sie sicher?",recording:"Aufnahme läuft","thank-you":"Vielen Dank","sorry-try-again":"Entschuldigung, bitte versuchen Sie es erneut","error-occurred":"Ein Fehler ist aufgetreten","please-try-again":"Bitte versuchen Sie es erneut","write-a-message":"Nachricht schreiben...","send-message":"Nachricht senden",connected:"Verbunden",connecting:"Verbindung wird hergestellt",reconnecting:"Verbindung wird wiederhergestellt",reconnected:"Wieder verbunden",disconnecting:"Verbindung wird getrennt",disconnected:"Verbindung getrennt",error:"Fehler","persist-session":"Sitzung beibehalten",settings:"Einstellungen",close:"Schließen",help:"Hilfe",chat:"Chat",send:"Senden",copy:"Kopieren",copied:"Kopiert","sound-effects":"Soundeffekte",language:"Sprache",select:"Auswählen",agent:"Agent",user:"Benutzer",bot:"Bot","got-any-questions":"Haben Sie Fragen? Chatten Sie mit uns!","typical-response-time":"Üblicherweise antworten wir in weniger als 1 Minute","close-widget":"Widget schließen","session-closed-lead":"Ihr Problem wurde gelöst!","create-new-ticket":"Neues Ticket erstellen",exit:"Beenden","reset-conversation":"Konversation zurücksetzen","new-conversation":"Neue Konversation","welcome-title":"Willkommen in unserem Support-Chat","welcome-description":"Wir sind hier, um zu helfen! Beginnen Sie ein Gesprách und wir werden so schnell wie mogelijk antworten.","your-name":"Ihr Name","your-email":"Ihre E-Mail-Adresse","start-chat":"Mit dem Support sprechen","starting-chat":"Verbindung wird hergestellt...","hello-greeting":"Hallo! Wie können wir Ihnen heute helfen?","i-need-more-help":"Ich brauche weitere Hilfe","this-was-helpful":"Dies war hilfreich",optional:"Optional","no-conversations-yet":"noch keine Gespräche","back-to-conversations":"Zurück zur Konversationen","closed-conversations":"Geschlossene Konversationen"},Bt={ok:"OK",yes:"Yes",no:"No",agree:"Agree",cancel:"Cancel","yes-exit":"Yes, exit","yes-reset":"Yes, reset","no-cancel":"No, cancel","are-you-sure":"Are you sure?",recording:"Recording...","thank-you":"Thank you","sorry-try-again":"Sorry, please try again","error-occurred":"An error occurred","please-try-again":"Please try again","write-a-message":"Write a message...","send-message":"Send message",connected:"Connected",connecting:"Connecting",reconnecting:"Reconnecting",reconnected:"Reconnected",disconnecting:"Disconnecting",disconnected:"Disconnected",error:"Error","persist-session":"Persist session",settings:"Settings",close:"Close",help:"Help",chat:"Chat",send:"Send",copy:"Copy",copied:"Copied","sound-effects":"Sound effects",language:"Language",select:"Select",agent:"Agent",user:"User",bot:"Bot","close-widget":"Close widget","got-any-questions":"Got any questions? Chat with us!","typical-response-time":"Typically respond in less than 1 minute","session-closed-lead":"Your issue has been resolved!","create-new-ticket":"Create new ticket",exit:"Exit","reset-conversation":"Reset conversation","new-conversation":"New conversation","welcome-title":"Welcome to our support chat","welcome-description":"We're here to help! Start a conversation and we'll get back to you as soon as possible.","your-name":"Your name","your-email":"Your email address","start-chat":"Talk to support","starting-chat":"Connecting...","hello-greeting":"Hi there!","i-need-more-help":"I need more help","this-was-helpful":"This was helpful",optional:"Optional","no-conversations-yet":"No conversations yet","back-to-conversations":"Back to conversations","closed-conversations":"Closed conversations"},Lt={ok:"D'accord",yes:"Oui",no:"Non",agree:"Accepter",cancel:"Annuler","yes-exit":"Oui, quitter","yes-reset":"Oui, réinitialiser","no-cancel":"Non, annuler","are-you-sure":"Êtes-vous sûr ?",recording:"Enregistrement...","thank-you":"Merci","sorry-try-again":"Désolé, veuillez réessayer","error-occurred":"Une erreur s'est produite","please-try-again":"Veuillez réessayer","write-a-message":"Écrivez un message...","send-message":"Envoyer le message",connected:"Connecté",connecting:"Connexion en cours",reconnecting:"Reconnexion en cours",reconnected:"Reconnecté",disconnecting:"Déconnexion en cours",disconnected:"Déconnecté",error:"Erreur","persist-session":"Conserver la session",settings:"Paramètres",close:"Fermer",help:"Aide",chat:"Chat",send:"Envoyer",copy:"Copier",copied:"Copié","sound-effects":"Effets sonores",language:"Langue",select:"Sélectionner",agent:"Agent",user:"Utilisateur",bot:"Bot","close-widget":"Fermer le widget","got-any-questions":"Vous avez des questions ? Chattez avec nous !","typical-response-time":"Nous répondons généralement en moins d'une minute","session-closed-lead":"Votre problème a été résolu !","create-new-ticket":"Créer un nouveau ticket",exit:"Sortie","reset-conversation":"Réinitialiser la conversation","new-conversation":"Nouvelle conversation","welcome-title":"Bienvenue dans notre chat de support","welcome-description":"Nous sommes là pour vous aider ! Commencez une conversation et nous vous répondrons dès que possible.","your-name":"Votre nom","your-email":"Votre adresse e-mail","start-chat":"Parler au support","starting-chat":"Connexion...","hello-greeting":"Bonjour ! Comment pouvons-nous vous aider aujourd'hui ?","i-need-more-help":"Je besoin d'aide plus","this-was-helpful":"C'était utile",optional:"Optionnel","no-conversations-yet":"Aucune conversation pour le moment","back-to-conversations":"Retour aux conversations","closed-conversations":"Conversations fermées"},Vt={ok:"OK",yes:"Ja",no:"Nee",agree:"Akkoord",cancel:"Annuleren","yes-exit":"Ja, afsluiten","yes-reset":"Ja, resetten","no-cancel":"Nee, annuleren","are-you-sure":"Weet u het zeker?",recording:"Opname...","thank-you":"Dank u","sorry-try-again":"Sorry, probeer het opnieuw","error-occurred":"Er is een fout opgetreden","please-try-again":"Probeer het opnieuw","write-a-message":"Schrijf een bericht...","send-message":"Bericht verzenden",connected:"Verbonden",connecting:"Verbinding maken",reconnecting:"Opnieuw verbinding maken",reconnected:"Opnieuw verbonden",disconnecting:"Verbinding verbreken",disconnected:"Verbinding verbroken",error:"Fout","persist-session":"Sessie behouden",settings:"Instellingen",close:"Sluiten",help:"Help",chat:"Chat",send:"Verzenden",copy:"Kopiëren",copied:"Gekopieerd","sound-effects":"Geluidseffecten",language:"Taal",select:"Selecteren",agent:"Agent",user:"Gebruiker",bot:"Bot","close-widget":"Widget sluiten","got-any-questions":"Heeft u vragen? Chat met ons!","typical-response-time":"We reageren doorgaans binnen 1 minuut","session-closed-lead":"Uw probleem is opgelost!","create-new-ticket":"Nieuw ticket aanmaken",exit:"Afsluiten","reset-conversation":"Gesprek resetten","new-conversation":"Nieuw gesprek","welcome-title":"Welkom bij onze supportchat","welcome-description":"We zijn hier om te helpen! Begin een gesprek en we nemen zo snel mogelijk contact met u op.","your-name":"Uw naam","your-email":"Uw e-mailadres","start-chat":"Praat met ondersteuning","starting-chat":"Verbinding maken...","hello-greeting":"Hallo! Hoe kunnen we u vandaag helpen?","i-need-more-help":"Ik heb nog meer hulp nodig","this-was-helpful":"Mijn vraag is opgelost",optional:"Optioneel","no-conversations-yet":"Nog geen gesprekken","back-to-conversations":"Terug naar gesprekken","closed-conversations":"Afgesloten gesprekken"},Yt={ok:"OK",yes:"Sim",no:"Não",agree:"Concordo",cancel:"Cancelar","yes-exit":"Sim, sair","yes-reset":"Sim, redefinir","no-cancel":"Não, cancelar","are-you-sure":"Você tem certeza?",recording:"Gravando...","thank-you":"Obrigado","sorry-try-again":"Desculpe, tente novamente","error-occurred":"Ocorreu um erro","please-try-again":"Por favor, tente novamente","write-a-message":"Escreva uma mensagem...","send-message":"Enviar mensagem",connected:"Conectado",connecting:"Conectando",reconnecting:"Reconectando",reconnected:"Reconectado",disconnecting:"Desconectando",disconnected:"Desconectado",error:"Erro","persist-session":"Persistir sessão",settings:"Configurações",close:"Fechar",help:"Ajuda",chat:"Bate-papo",send:"Enviar",copy:"Copiar",copied:"Copiado","sound-effects":"Efeitos sonoros",language:"Idioma",select:"Selecionar",agent:"Agente",user:"Usuário",bot:"Bot","close-widget":"Fechar widget","got-any-questions":"Tem alguma dúvida? Converse conosco!","typical-response-time":"Geralmente respondemos em menos de 1 minuto","session-closed-lead":"Seu problema foi resolvido!","create-new-ticket":"Criar novo ticket",exit:"Sair","reset-conversation":"Redefinir conversa","new-conversation":"Nova conversa","welcome-title":"Bem-vindo ao nosso chat de suporte","welcome-description":"Estamos aqui para ajudar! Inicie uma conversa e responderemos o mais rápido possível.","your-name":"Seu nome","your-email":"Seu endereço de email","start-chat":"Falar com o suporte","starting-chat":"Conectando...","hello-greeting":"Olá! Como podemos ajudar você hoje?","i-need-more-help":"preciso de mais ajuda","this-was-helpful":"Isso foi útil",optional:"Opcional","no-conversations-yet":"Nenhuma conversa ainda","back-to-conversations":"Voltar para conversas","closed-conversations":"Conversas fechadas"},$t={ok:"OK",yes:"Sí",no:"No",agree:"De acuerdo",cancel:"Cancelar","yes-exit":"Sí, salir","yes-reset":"Sí, restablecer","no-cancel":"No, cancelar","are-you-sure":"¿Estás seguro?",recording:"Grabando...","thank-you":"Gracias","sorry-try-again":"Lo sentimos, intenta de nuevo","error-occurred":"Ocurrió un error","please-try-again":"Por favor, inténtalo de nuevo","write-a-message":"Escribe un mensaje...","send-message":"Enviar mensaje",connected:"Conectado",connecting:"Conectando",reconnecting:"Reconectando",reconnected:"Reconectado",disconnecting:"Desconectando",disconnected:"Desconectado",error:"Error","persist-session":"Persistir sesión",settings:"Configuración",close:"Cerrar",help:"Ayuda",chat:"Chat",send:"Enviar",copy:"Copiar",copied:"Copiado","sound-effects":"Efectos de sonido",language:"Idioma",select:"Seleccionar",agent:"Agente",user:"Usuario",bot:"Bot","close-widget":"Cerrar widget","got-any-questions":"¿Tienes alguna pregunta? ¡Chatea con nosotros!","typical-response-time":"Normalmente respondemos en menos de 1 minuto","session-closed-lead":"¡Tu problema fue resuelto!","create-new-ticket":"Crear nuevo ticket",exit:"Salir","reset-conversation":"Restablecer conversación","new-conversation":"Nueva conversación","welcome-title":"Bienvenido a nuestro chat de soporte","welcome-description":"¡Estamos aquí para ayudarte! Inicia una conversación y responderemos lo antes posible.","your-name":"Tu nombre","your-email":"Tu correo electrónico","start-chat":"Hablar con soporte","starting-chat":"Conectando...","hello-greeting":"¡Hola! ¿Cómo podemos ayudarte hoy?","i-need-more-help":"Necesito más ayuda","this-was-helpful":"Esto fue útil",optional:"Opcional","no-conversations-yet":"Sin conversaciones aún","back-to-conversations":"Volver a conversaciones","closed-conversations":"Conversaciones cerradas"},rt={en:Bt,ar:qt,nl:Vt,fr:Lt,de:Ht,pt:Yt,es:$t},Ut=Object.keys(rt),Xt=t=>Ut.includes(t);function Kt(t,o){const s=rt[o];return s&&s[t]||""}function K(){const{widgetCtx:{config:t}}=l.useWidget();return m.useMemo(()=>{const s=Xt(t.language)?t.language:"en";return{get:r=>Kt(r,s),lang:s}},[t.language])}function ge({suggestion:t,className:o,...s}){const{sendMessage:r}=l.useMessages(),n=()=>{const a=t.trim();a&&r({content:a})};return e.jsx(C,{...u("chat/suggested_reply_btn"),size:"sm",className:c("rounded-xl w-fit",o),...s,onClick:n,children:t})}function Gt(){const t=K(),o=[t.get("i-need-more-help"),t.get("this-was-helpful")];return e.jsx("div",{...u("chat/might_solve_user_issue_suggested_replies_container"),className:"flex items-center gap-2 p-2 pb-0 flex-wrap",children:o.map(s=>e.jsx(ge,{suggestion:s,className:"flex-1"},s))})}function Jt({file:{status:t,file:o,error:s},onCancel:r}){const[n,a]=m.useState(null);m.useEffect(()=>{if(!o.type.startsWith("image/"))return;const p=new FileReader;return p.onload=()=>a(p.result),p.onerror=()=>console.error("Error reading file"),p.readAsDataURL(o),()=>p.abort()},[o]);const i=()=>{switch(t){case"uploading":return e.jsx(g.Loader2,{className:"size-4 animate-spin"});case"error":return e.jsx(g.AlertCircle,{className:"size-4 text-destructive"});default:return null}},d=()=>{const p=o.type.split("/")[0];return p==="image"&&n?e.jsx("img",{src:typeof n=="string"?n:"",className:"object-cover bg-secondary size-full",alt:o.name}):p==="audio"?e.jsx(g.FileAudio2Icon,{}):p==="video"?e.jsx(g.FileVideo2Icon,{}):e.jsx(g.FileIcon,{})};return e.jsx(Y,{side:"bottom",content:t==="error"?e.jsxs("span",{className:"text-destructive",children:["Failed to upload: ",s]}):o.name,children:e.jsxs("div",{className:c(t==="uploading"&&"opacity-50","group","size-12 border rounded-2xl overflow-hidden relative","flex items-center justify-center shrink-0"),children:[e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:i()}),e.jsx("button",{type:"button",className:c("absolute bg-black/50 inset-0 size-full z-10 opacity-0","flex items-center justify-center","opacity-0 group-hover:opacity-100 transition"),onClick:r,children:e.jsx(g.XIcon,{className:"size-4 text-primary-foreground"})}),e.jsx(d,{})]})})}function Zt(){var E;const{isSmallScreen:t}=F(),o=m.useRef(null),{sendMessage:s}=l.useMessages(),{sessionState:r}=l.useSessions(),n=K(),a=he(),[i,d]=m.useState(""),{allFiles:p,emptyTheFiles:z,handleCancelUpload:b,appendFiles:N,isUploading:h,successFiles:x}=l.useUploadFiles(),v=!!((E=r.session)!=null&&E.isHandedOff),{isAwaitingBotReply:y}=l.useIsAwaitingBotReply(),I=f=>{N(f)},S=!i.trim()&&x.length===0,T=async()=>{if(y||S)return;h&&console.info("please wait for the file(s) to upload");const f=i.trim();s({content:f,attachments:x.flatMap(j=>j.fileUrl?[{url:j.fileUrl,type:j.file.type,name:j.file.name,id:j.id,size:j.file.size}]:[])}),d(""),z()},{getRootProps:D,getInputProps:O,open:P}=kt.useDropzone({onDrop:I,noClick:!0,onDropRejected(){console.error("unsupported file type, or the file is too large")},maxSize:5*1024*1024,accept:v?{"text/*":[".txt"],"image/*":[".png",".jpg",".jpeg",".gif"],"application/pdf":[".pdf"]}:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg"],"image/gif":[".gif"],"image/webp":[".webp"]}}),A=f=>{const j=f.clipboardData;j&&j.files.length>0&&I(Array.from(j.files))};return e.jsxs("div",{...u("chat/input_box/root"),className:"p-2 relative space-y-1",...D(),children:[e.jsx("input",{...O()}),e.jsxs("div",{...u("chat/input_box/inner_root"),className:c("transition-all","bg-white","relative rounded-3xl flex flex-col gap-2 p-2","hover:border-primary focus-within:border-primary"),children:[e.jsxs("div",{...u("chat/input_box/textarea_and_attachments_container"),className:"flex flex-col gap-2",children:[p.length>0&&e.jsx("div",{...u("chat/input_box/attachments_container"),className:"flex items-center gap-1",children:e.jsx(k.AnimatePresence,{mode:"popLayout",children:p.map(f=>e.jsx(w,{snapExit:!0,children:e.jsx(Jt,{onCancel:()=>b(f.id),file:f})},f.id))})}),e.jsx("textarea",{...u("chat/input_box/textarea"),onPaste:A,ref:o,id:"chat-input",dir:a,value:i,rows:3,className:c("max-h-16 [field-sizing:content]","w-full resize-none px-2",p.length===0&&"pt-1","bg-transparent outline-none","placeholder:text-muted-foreground","rtl:placeholder:text-right",t?"text-[16px]":"text-sm"),onChange:f=>d(f.target.value),onKeyDown:async f=>{f.key==="Enter"&&!f.shiftKey&&(f.preventDefault(),T())},placeholder:n.get("write-a-message")})]}),e.jsxs("div",{dir:a,className:"gap-2 flex justify-between rtl:text-right",children:[e.jsx(Y,{side:"top",align:"start",content:"attach files, (maximum size 5mb)",children:e.jsx(C,{onClick:P,size:"fit",variant:"ghost",className:c("rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"),children:e.jsx(k.AnimatePresence,{mode:"wait",children:v?e.jsx(w,{children:e.jsx(g.PaperclipIcon,{className:"size-4"})},"paper-clip"):e.jsx(w,{children:e.jsx(g.ImageIcon,{className:"size-4"})},"image-icon")})})}),e.jsx(Y,{content:"send message",side:"top",align:"end",children:e.jsx(C,{size:"fit",onClick:T,disabled:y||h||S,className:"rounded-full size-8 flex items-center justify-center p-0",children:e.jsx(k.AnimatePresence,{mode:"wait",children:y||h?e.jsx(w,{snapExit:!0,children:e.jsx(g.CircleDashed,{className:"size-4 animate-spin animate-iteration-infinite"})},"loading"):e.jsx(w,{snapExit:!0,children:e.jsx(g.ArrowUpIcon,{className:"size-4"})},"send")})})})]})]})]})}function Qt(){const{widgetCtx:t}=l.useWidget(),{router:o}=l.useConfig(),{canCreateNewSession:s}=l.useSessions(),{toSessionsScreen:r}=l.useWidgetRouter(),n=K();return e.jsx("div",{className:"p-2",children:e.jsxs("div",{className:"p-2 bg-muted rounded-3xl space-y-2",children:[e.jsxs("div",{className:"pl-2 flex items-center gap-1",children:[e.jsx(g.CircleCheckIcon,{className:"size-4 text-emerald-600"}),e.jsx("h2",{className:"text-sm font-medium",dir:"auto",children:n.get("session-closed-lead")})]}),e.jsx("div",{children:s||o!=null&&o.chatScreenOnly?e.jsx(C,{onClick:t.resetChat,className:"rounded-2xl w-full",children:n.get("new-conversation")}):e.jsx(C,{onClick:r,className:"rounded-2xl w-full",children:n.get("back-to-conversations")})})]})})}function eo(){var a;const{initialQuestions:t,initialQuestionsPosition:o}=l.useConfig(),{sessionState:s}=l.useSessions(),{messagesState:r}=l.useMessages(),n=r.messages.length===0;return e.jsx("footer",{children:e.jsx("div",{children:e.jsx(k.AnimatePresence,{mode:"wait",children:s.session&&!((a=s.session)!=null&&a.isOpened)?e.jsx(w,{className:"overflow-hidden",overrides:{initial:{height:0},animate:{height:"auto"},exit:{height:0}},children:e.jsx(Qt,{})},"session-closed"):e.jsxs(w,{className:"overflow-hidden",overrides:{initial:{height:0},animate:{height:"auto"},exit:{height:0}},children:[r.lastAIResMightSolveUserIssue&&e.jsx(Gt,{}),n&&t&&o!=="below-initial-messages"&&e.jsx("div",{className:"flex items-center flex-row justify-end gap-2 flex-wrap px-2",children:t==null?void 0:t.map((i,d)=>e.jsx(ge,{suggestion:i},`${i}-${d}`))}),e.jsx(Zt,{})]},"chat-input")})})})}function nt(){const{contentIframeRef:t}=l.useWidget();return{setWidth:o=>{var s;(s=t==null?void 0:t.current)==null||s.style.setProperty("--opencx-widget-width",o)},setHeight:o=>{var s;(s=t==null?void 0:t.current)==null||s.style.setProperty("--opencx-widget-height",o)}}}function me({width:t,height:o}){const{isSmallScreen:s}=F(),{setWidth:r,setHeight:n}=nt();m.useEffect(()=>{t&&r(t),o&&n(o)},[s,o,t,r,n])}const qe=g.CircleDashedIcon;function $({name:t,className:o}){const s=(()=>{switch(t){case"Check":return g.CheckIcon;case"CheckCheck":return g.CheckCheckIcon;case"CircleCheck":return g.CircleCheckIcon;case"CircleCheckBig":return g.CircleCheckBigIcon;case"CircleX":return g.CircleXIcon;case"Expand":return g.ExpandIcon;case"Maximize":return g.MaximizeIcon;case"Maximize2":return g.Maximize2Icon;case"Minimize":return g.MinimizeIcon;case"Minimize2":return g.Minimize2Icon;case"Shrink":return g.ShrinkIcon;case"SquareCheck":return g.SquareCheckIcon;case"SquareCheckBig":return g.SquareCheckBigIcon;case"SquareX":return g.SquareXIcon;case"X":return g.XIcon;case void 0:return qe;default:return H.isExhaustive(t,$.name),qe}})();return e.jsx(s,{className:c("size-4",o)})}function at({className:t,...o}){return e.jsx("div",{className:c("animate-pulse rounded-md bg-secondary",t),...o})}function ue(){var n;const{data:t}=l.usePreludeData(),{routerState:{screen:o}}=l.useWidgetRouter(),{textContent:s}=l.useConfig();return(()=>{var a,i;switch(o){case"chat":return(a=s==null?void 0:s.chatScreen)==null?void 0:a.headerTitle;case"sessions":return(i=s==null?void 0:s.sessionsScreen)==null?void 0:i.headerTitle;case"welcome":return;default:H.isExhaustive(o,ue.name);return}})()??((n=t==null?void 0:t.data)==null?void 0:n.organizationName)??"Chat"}function to(t){switch(t){case"chat":return u("chat/header");case"sessions":return u("sessions/header");case"welcome":return;default:H.isExhaustive(t,ue.name);return}}function oo(){const{router:t}=l.useConfig(),{routerState:{screen:o},toSessionsScreen:s}=l.useWidgetRouter();return o!=="chat"||t!=null&&t.chatScreenOnly?null:e.jsx(C,{variant:"ghost",size:"fit",className:"rounded-full",onClick:s,children:e.jsx(g.ChevronLeftIcon,{className:"size-4"})})}function so({button:t}){const{setIsOpen:o}=l.useWidgetTrigger(),{isSmallScreen:s}=F();return s&&t.hideOnSmallScreen||!s&&t.hideOnLargeScreen?null:e.jsx(C,{variant:"ghost",size:"fit",className:"rounded-full",onClick:()=>o(!1),children:e.jsx($,{name:t.icon})})}function re({button:t}){const[o,s]=m.useState(!1),{routerState:{screen:r}}=l.useWidgetRouter(),{isSmallScreen:n}=F(),{theme:a}=V(),{setWidth:i,setHeight:d}=nt();if(r!=="chat"&&r!=="sessions")return null;const p=(()=>{switch(r){case"chat":return a.screens.chat.height;case"sessions":return a.screens.sessions.height;default:return H.isExhaustive(r,re.name),a.screens.chat.height}})(),z=(()=>{switch(r){case"chat":return a.screens.chat.width;case"sessions":return a.screens.sessions.width;default:return H.isExhaustive(r,re.name),a.screens.chat.width}})(),b=()=>{s(N=>{const h=!N;return d(h?"100vh":p),i(h?`max(40vw, ${z})`:z),h})};return n&&t.hideOnSmallScreen||!n&&t.hideOnLargeScreen?null:e.jsx(C,{variant:"ghost",size:"fit",className:"rounded-full",onClick:b,children:e.jsx($,{name:t.icon||(o?t.shrinkIcon:t.expandIcon)})})}function ro({button:t}){var z,b,N;const[o,s]=m.useState(!1),{widgetCtx:r}=l.useWidget(),{setIsOpen:n}=l.useWidgetTrigger(),{resolveSession:a,sessionState:i}=l.useSessions(),{isSmallScreen:d}=F(),p=async()=>{const{success:h,error:x}=await a();if(s(!1),!h)return console.error(x);t.onResolved==="close-widget"&&n(!1),t.onResolved==="reset-chat"&&r.resetChat(),t.onResolved==="reset-chat-and-close-widget"&&(n(!1),r.resetChat())};return d&&t.hideOnSmallScreen||!d&&t.hideOnLargeScreen?null:((z=t.confirmation)==null?void 0:z.type)==="modal"?e.jsxs(Ue,{open:o,onOpenChange:s,children:[e.jsx(Xe,{asChild:!0,children:e.jsx(C,{variant:"ghost",size:"fit",className:"rounded-full",disabled:i.isResolvingSession||!((b=i.session)!=null&&b.isOpened),children:e.jsx($,{name:t.icon})})}),e.jsxs(ie,{children:[e.jsx(Ge,{children:e.jsx(le,{children:t.confirmation.title||"Close conversation"})}),e.jsx(Je,{children:e.jsx(Qe,{children:t.confirmation.description||"Are you sure you want to close this conversation?"})}),e.jsxs(Ze,{children:[e.jsx(C,{variant:"secondary",onClick:()=>s(!1),disabled:i.isResolvingSession,children:t.confirmation.cancelButtonText||"No"}),e.jsx(C,{variant:"destructive",onClick:p,disabled:i.isResolvingSession,children:t.confirmation.confirmButtonText||"Yes"})]})]})]}):e.jsx(C,{variant:"ghost",size:"fit",className:"rounded-full",onClick:p,disabled:i.isResolvingSession||!((N=i.session)!=null&&N.isOpened),children:e.jsx($,{name:t.icon})})}function ne({button:t}){switch(t.functionality){case"close-widget":return e.jsx(so,{button:t});case"expand-shrink":return e.jsx(re,{button:t});case"resolve-session":return e.jsx(ro,{button:t});default:return H.isExhaustive(t,ne.name),null}}const no={functionality:"close-widget",hideOnLargeScreen:!0,icon:"X"};function ao(){const{routerState:{screen:t}}=l.useWidgetRouter(),{headerButtons:o}=l.useConfig(),s=t==="chat"?o==null?void 0:o.chatScreen:t==="sessions"?o==null?void 0:o.sessionsScreen:[];return!s||s.length===0?e.jsx(ne,{button:no}):e.jsx(e.Fragment,{children:s.map(r=>e.jsx(ne,{button:r},`${r.functionality}-${r.icon}`))})}function it(){const{routerState:{screen:t}}=l.useWidgetRouter(),{isLoading:o}=l.usePreludeData(),s=he(),r=to(t),n=ue();return e.jsx("header",{...r,className:"py-2 px-4 shrink-0",children:e.jsxs("div",{dir:s,className:"flex items-center gap-2",children:[e.jsx(oo,{}),e.jsx("div",{className:c("flex-1 h-8 flex items-center",t==="sessions"&&"pl-2"),children:e.jsx(k.AnimatePresence,{mode:"wait",children:o?e.jsx(w,{snapExit:!0,children:e.jsx(at,{className:"h-5 w-1/2"})},"skeleton"):e.jsx(w,{children:e.jsx("h2",{className:"font-semibold",children:n})},"organization-name")})}),e.jsx(ao,{})]})})}function io({isFirstInGroup:t,isLastInGroup:o,isAloneInGroup:s,...r}){const{componentStore:n}=l.useWidget();if(r.data.action){const i=n.getComponent(r.data.action.name);if(i)return e.jsx(i,{...r,id:r.id,isFirstInGroup:t,isLastInGroup:o,isAloneInGroup:s})}const a=n.getComponent(r.component);return a?e.jsx(a,{...r,id:r.id,isFirstInGroup:t,isLastInGroup:o,isAloneInGroup:s}):e.jsx(Q,{...r,isFirstInGroup:t,isLastInGroup:o,isAloneInGroup:s})}function He({messages:t,agent:o,suggestedReplies:s}){return e.jsxs("div",{...u("chat/agent_msg_group/root"),className:c("flex items-end gap-2"),children:[e.jsx(Y,{content:o==null?void 0:o.name,side:"right",align:"end",children:e.jsx(se,{...u("chat/agent_msg_group/root/avatar"),agent:o,className:"hidden"})}),e.jsxs("div",{className:c("flex-1 flex flex-col gap-2"),children:[e.jsxs("div",{...u("chat/agent_msg_group/avatar_and_msgs/root"),className:c("flex items-end gap-2"),children:[e.jsx(Y,{content:o==null?void 0:o.name,side:"right",align:"end",children:e.jsx(se,{...u("chat/agent_msg_group/avatar_and_msgs/avatar"),agent:o})}),e.jsx("div",{...u("chat/agent_msg_group/avatar_and_msgs/msgs"),className:c("flex-1 flex flex-col gap-1"),children:t.map((r,n,a)=>e.jsx(io,{isFirstInGroup:n===0,isLastInGroup:n===a.length-1,isAloneInGroup:a.length===1,...r},r.id))})]}),s&&s.length>0&&e.jsx("div",{...u("chat/agent_msg_group/suggestions"),className:c("flex flex-col gap-1 pl-8"),children:s==null?void 0:s.map((r,n)=>e.jsx(ge,{suggestion:r},`${r}-${n}`))})]})]})}function lo({message:t,isFirstInGroup:o,isLastInGroup:s,isAloneInGroup:r}){var n;return e.jsxs("div",{...u("chat/user_msg/root"),className:"w-5/6 flex flex-col items-end gap-1",children:[t.attachments&&t.attachments.length>0&&e.jsx("div",{className:"w-full flex gap-1 flex-wrap justify-end",children:(n=t.attachments)==null?void 0:n.map(a=>e.jsx(et,{attachment:a},a.id))}),t.content.length>0&&e.jsx("div",{...u("chat/user_msg/msg"),"data-first":o,"data-last":s,"data-alone":r,className:c("transition-all","w-fit py-3 px-4 rounded-3xl text-sm","bg-primary text-primary-foreground","break-words [word-break:break-word]","whitespace-pre-wrap",o&&!r&&"rounded-br-md",s&&!r&&"rounded-tr-md",!o&&!s&&!r&&"rounded-r-md"),children:t.content})]})}function co({messages:t}){return e.jsx("div",{...u("chat/user_msg_group/root"),className:c("group","flex flex-col gap-1 justify-end items-end"),children:t.map((o,s,r)=>e.jsx(lo,{message:o,isFirstInGroup:s===0,isLastInGroup:s===r.length-1,isAloneInGroup:r.length===1},o.id))})}function po(t){const o=[];let s=null;return t.forEach(r=>{var n,a,i,d;(!s||((n=s[0])==null?void 0:n.type)!==r.type)&&(s=[],o.push(s)),((a=s[0])==null?void 0:a.type)==="FROM_AGENT"&&r.type==="FROM_AGENT"&&((i=r.agent)==null?void 0:i.id)!==((d=s[0].agent)==null?void 0:d.id)&&(s=[],o.push(s)),s.push(r)}),o}function ho(t){var o;return((o=t==null?void 0:t[0])==null?void 0:o.type)==="FROM_USER"}function go(t){var o;return((o=t==null?void 0:t[0])==null?void 0:o.type)==="FROM_BOT"}function mo(t){var o;return((o=t==null?void 0:t[0])==null?void 0:o.type)==="FROM_AGENT"}function uo(){const{messagesState:{messages:t}}=l.useMessages(),{isAwaitingBotReply:o}=l.useIsAwaitingBotReply(),{componentStore:s}=l.useWidget(),r=l.useConfig(),{initialQuestions:n,initialQuestionsPosition:a}=r,i=m.useMemo(()=>po(t),[t]),d=r.persistentInitialMessages||[],p=!r.initialMessages||r.initialMessages.length===0?["Hello, how can I help you?"]:r.initialMessages,z=s.getComponent("loading"),b=m.useRef(null);function N(){setTimeout(()=>{const h=b.current;h&&(h.scrollTop=h.scrollHeight)},0)}return m.useEffect(()=>{N()},[t]),e.jsxs("div",{...u("chat/msgs/root"),ref:b,className:"max-h-full scroll-smooth relative flex-1 py-2 px-4 flex flex-col gap-2 overflow-auto",children:[e.jsx("div",{...u("chat/persistent_initial_msgs/root"),children:d.map((h,x,v)=>e.jsx(Q,{component:"bot_message",data:{message:h},id:h,type:"FROM_BOT",timestamp:Date.now().toString(),dataComponentNames:{messageContainer:"chat/persistent_initial_msg/root",message:"chat/persistent_initial_msg/msg"},classNames:{messageContainer:c("w-full flex flex-col items-center text-center"),message:"w-full bg-transparent border-none shadow-none text-xs"},isFirstInGroup:x===0,isLastInGroup:x===v.length-1,isAloneInGroup:v.length===1},`${h}-${x}`))}),t.length===0&&e.jsx(He,{messages:p.map((h,x)=>({component:"bot_message",data:{message:h},id:`${h}-${x}`,type:"FROM_BOT",timestamp:Date.now().toString()})),suggestedReplies:a==="below-initial-messages"?n:void 0,agent:r.bot?{...r.bot,isAi:!0,id:null}:void 0}),i.map(h=>{var y,I,S;const x=(y=h==null?void 0:h[0])==null?void 0:y.type,v=(I=h[0])==null?void 0:I.id;if(!x||!v)return null;if(ho(h))return e.jsx(co,{messages:h},v);if(go(h)||mo(h)){const T=(S=h[0])==null?void 0:S.agent;return e.jsx(He,{messages:h,agent:T},v)}return null}),o&&z&&e.jsx(z,{agent:r.bot})]})}function lt({className:t}){return e.jsx(g.LoaderIcon,{className:c("size-4 animate-spin",t)})}function wo(){const{activeMode:t,Component:o}=l.useModes(),{sendMessage:s}=l.useMessages(),{createStateCheckpoint:r}=l.useSessions(),[n,a]=m.useState(!1),i=async d=>{try{a(!0),await s(d)}catch(p){console.error(p)}finally{a(!1)}};return!t||!o?null:e.jsx(o,{mode:t,createStateCheckpoint:r,sendMessage:i,isSendingMessage:n})}function fo(){const{messagesState:{isInitialFetchLoading:t}}=l.useMessages(),{isSmallScreen:o}=F(),{activeMode:s,Component:r}=l.useModes();return{isCanvasOpen:!t&&!o&&!!s&&!!r}}function xo(){const{messagesState:{isInitialFetchLoading:t}}=l.useMessages(),{sessionState:{session:o}}=l.useSessions(),{isCanvasOpen:s}=fo(),{theme:r}=V();me({width:s?r.screens.chat.withCanvas.width:r.screens.chat.width,height:s?r.screens.chat.withCanvas.height:r.screens.chat.height});const n=m.useRef((o==null?void 0:o.id)||"chat").current;return e.jsx("div",{...u("chat/root"),className:c("flex flex-col overflow-hidden"),style:{width:"100vw",maxWidth:"100vw",height:"100vh",maxHeight:"100vh"},children:e.jsxs("div",{className:"size-full justify-between flex flex-col",children:[e.jsx(it,{}),e.jsx(k.AnimatePresence,{mode:"wait",children:t?e.jsx(w,{className:"flex flex-col items-center justify-center w-full flex-1",children:e.jsx(lt,{})},"loading"):e.jsxs(w,{className:"flex items-start h-full flex-1 overflow-auto",snapExit:!0,children:[e.jsxs("div",{className:c("flex flex-col h-full overflow-auto transition-all",s?"w-1/2":"w-full"),style:{transitionTimingFunction:r.screens.chat.withCanvas.transitionTimingFunction,transitionDuration:r.screens.chat.withCanvas.transitionDuration},children:[e.jsx(uo,{}),e.jsx(eo,{})]}),e.jsx("div",{className:c("h-full overflow-auto transition-all",s?"w-1/2":"w-0"),style:{transitionTimingFunction:r.screens.chat.withCanvas.transitionTimingFunction,transitionDuration:r.screens.chat.withCanvas.transitionDuration},children:e.jsx(wo,{})})]},n)})]})})}const Z=R.forwardRef(({className:t,type:o,...s},r)=>{const{isSmallScreen:n}=F(),a=he();return e.jsx(W,{ref:r,children:e.jsx("input",{dir:a,type:o,className:c(n?"text-[16px]":"text-sm","flex w-full rounded-xl p-2 ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-primary-foreground placeholder:text-muted-foreground/75 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition","rtl:placeholder:text-right","rounded-2xl px-4","border shadow-sm",t),...s})})});Z.displayName="Input";function vo({className:t}){return e.jsx("svg",{width:"26",height:"32",viewBox:"0 0 26 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:c("text-primary-foreground",t),children:e.jsx("path",{d:"M1.34103 25.6132H5.44245C5.74203 25.6228 6.02673 25.7462 6.23867 25.9582C6.45062 26.1703 6.5739 26.4551 6.58348 26.7548V30.8584C6.59305 31.1581 6.71634 31.443 6.92828 31.655C7.14023 31.8671 7.42492 31.9904 7.7245 32H18.2894C18.589 31.9904 18.8737 31.8671 19.0856 31.655C19.2976 31.443 19.4209 31.1581 19.4304 30.8584V26.7548C19.4401 26.4545 19.5638 26.1692 19.7765 25.957C19.9892 25.7449 20.2748 25.6219 20.5749 25.6132H24.659C24.9586 25.6036 25.2433 25.4803 25.4552 25.2682C25.6671 25.0562 25.7904 24.7713 25.8 24.4716V7.52839C25.7904 7.22865 25.6671 6.94381 25.4552 6.73176C25.2433 6.5197 24.9586 6.39635 24.659 6.38677H20.561C20.2603 6.37802 19.9742 6.25457 19.7614 6.04169C19.5487 5.82881 19.4253 5.54261 19.4165 5.24168V1.14161C19.4072 0.84419 19.2858 0.561291 19.0768 0.349589C18.8678 0.137887 18.5865 0.0130193 18.2894 0L7.7245 0C7.42492 0.00957792 7.14023 0.132929 6.92828 0.344983C6.71634 0.557036 6.59305 0.841878 6.58348 1.14161V5.24168C6.57477 5.54203 6.45187 5.82773 6.23983 6.04052C6.0278 6.25331 5.74262 6.37715 5.44245 6.38677H1.34103C1.04144 6.39635 0.756749 6.5197 0.544805 6.73176C0.332861 6.94381 0.209574 7.22865 0.200001 7.52839V24.4716C0.209574 24.7713 0.332861 25.0562 0.544805 25.2682C0.756749 25.4803 1.04144 25.6036 1.34103 25.6132ZM6.58348 24.4716V7.52839C6.59305 7.22865 6.71634 6.94381 6.92828 6.73176C7.14023 6.5197 7.42492 6.39635 7.7245 6.38677H18.2894C18.589 6.39635 18.8737 6.5197 19.0856 6.73176C19.2976 6.94381 19.4209 7.22865 19.4304 7.52839V24.4716C19.4209 24.7713 19.2976 25.0562 19.0856 25.2682C18.8737 25.4803 18.589 25.6036 18.2894 25.6132H7.7245C7.42492 25.6036 7.14023 25.4803 6.92828 25.2682C6.71634 25.0562 6.59305 24.7713 6.58348 24.4716Z",fill:"currentColor"})})}function ct({className:t}){const{token:o}=l.useConfig();return e.jsx("div",{className:c("flex items-center justify-center gap-2 p-2 pt-0",t),children:e.jsx(W,{children:e.jsxs("a",{href:`https://open.cx/?ref=${o}`,target:"_blank",rel:"noreferrer",className:c("text-[10px] flex items-center","text-muted-foreground/70 [&_svg]:text-muted-foreground/70","hover:text-primary [&_svg]:hover:text-primary"),children:[e.jsx("span",{children:"Powered by"}),e.jsx("span",{children:" "}),e.jsxs("span",{className:"flex items-center gap-[1px]",children:[e.jsx("span",{children:e.jsx(vo,{className:"size-3 inline-block"})}),e.jsx("span",{className:"font-semibold",children:"open"})]})]})})})}function bo(){const{contentIframeRef:t}=l.useWidget(),o=m.useRef(null);return m.useEffect(()=>{const s=t==null?void 0:t.current;if(s&&o.current){const r=o.current;let n;const a=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{const i=r.offsetHeight;s.style.setProperty("--opencx-widget-height",`${i.toFixed(1)}px`)})});return a.observe(r),()=>{cancelAnimationFrame(n),a.unobserve(r)}}},[t]),{observedElementRef:o}}const yo=oe.z.object({name:oe.z.string().min(2),email:oe.z.string().email()});function jo(){var S,T,D,O,P,A,E,f,j;const{setIsOpen:t}=l.useWidgetTrigger(),{createUnverifiedContact:o}=l.useContact(),{isSmallScreen:s}=F(),r=l.useConfig(),{theme:n}=V(),a=K(),{data:i}=l.usePreludeData(),{observedElementRef:d}=bo();me({height:void 0,width:n.screens.welcome.width});const[p,z]=m.useState(((S=r.prefillUserData)==null?void 0:S.name)||""),[b,N]=m.useState(((T=r.prefillUserData)==null?void 0:T.email)||""),h=(r.extraDataCollectionFields||[]).filter(_=>_!=="name"&&_!=="email"&&!!_),[x,v]=m.useState({}),[y,I]=Ct(async _=>{_.preventDefault();const q=yo.safeParse({name:p,email:b});q.success&&await o({email:q.data.email,non_verified_name:q.data.name},Object.values(x).filter(Boolean).length?x:void 0)},[p,b,x]);return e.jsx("div",{style:{width:"100vw",maxWidth:"100vw",minHeight:n.screens.welcome.minHeight,height:"100vh",maxHeight:"100vh",overflowY:"auto"},children:e.jsxs("div",{ref:d,className:c("flex flex-col",s&&"h-full","bg-[radial-gradient(ellipse_at_top_left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse_at_top_right,hsl(var(--opencx-primary)),transparent)]"),children:[e.jsxs("div",{dir:"auto",className:c("flex-1 flex flex-col px-4 py-12 text-start space-y-4 relative z-10","text-primary-foreground"),children:[s&&e.jsx(w,{className:"absolute top-6 right-6",children:e.jsx(C,{size:"selfless",onClick:()=>t(!1),children:e.jsx(g.XIcon,{className:"size-4"})})}),e.jsx("div",{className:"flex items-center justify-between w-full mb-2",children:(D=r.assets)!=null&&D.organizationLogo?e.jsx("img",{src:(O=r.assets)==null?void 0:O.organizationLogo,alt:"Company Logo",className:"h-8 w-auto object-contain"}):e.jsx("h2",{className:"font-bold text-sm",dir:"auto",children:(P=i==null?void 0:i.data)==null?void 0:P.organizationName})}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h1",{className:"text-[1.75rem] font-semibold tracking-tight leading-none",dir:"auto",children:((E=(A=r.textContent)==null?void 0:A.welcomeScreen)==null?void 0:E.title)||a.get("welcome-title")}),e.jsx("p",{className:"text-sm",dir:"auto",children:((j=(f=r.textContent)==null?void 0:f.welcomeScreen)==null?void 0:j.description)||a.get("welcome-description")})]})]}),e.jsxs("div",{className:c("z-10 m-2 px-2 pt-2 bp-0 space-y-2","bg-[white]","border shadow","rounded-3xl"),dir:"auto",children:[e.jsxs("form",{onSubmit:I,className:"space-y-2",children:[e.jsx(Z,{value:p,onChange:_=>z(_.target.value),required:!0,placeholder:a.get("your-name"),name:"name"}),e.jsx(Z,{required:!0,value:b,onChange:_=>N(_.target.value),type:"email",placeholder:a.get("your-email"),name:"email"}),h.map(_=>e.jsx(Z,{value:x[_],onChange:q=>v(G=>({...G,[_]:q.target.value})),placeholder:`${_} (${a.get("optional")})`},_)),e.jsxs(C,{disabled:y.loading,className:"w-full",size:"lg",children:[y.loading?a.get("starting-chat"):a.get("start-chat"),e.jsx(g.SendHorizontal,{className:"size-4 rtl:-scale-100"})]})]}),e.jsx(ct,{})]})]})})}function ko({children:t}){return e.jsx("p",{className:"pl-4 text-xs text-muted-foreground/75 uppercase font-semibold tracking-tight",children:t})}function Be({session:t,className:o}){const{bot:s}=l.useConfig(),{toChatScreen:r}=l.useWidgetRouter(),n=t.assignee.kind==="human"?t.assignee.name||"Support Agent":(s==null?void 0:s.name)||"AI Support Agent",a=t.assignee.kind==="human"?t.assignee.avatarUrl||"":(s==null?void 0:s.avatar)||"";return e.jsxs(C,{variant:"ghost",size:"lg",className:c("rounded-full p-2 pr-4 flex text-start justify-between w-full whitespace-normal",o),onClick:()=>r(t.id),children:[e.jsxs("div",{className:"flex-1 flex gap-2 items-center",children:[e.jsx(k.AnimatePresence,{mode:"wait",children:e.jsx(w,{snapExit:!0,children:e.jsxs(ce,{className:"size-10",children:[e.jsx(de,{src:a,alt:"Agent Icon"}),e.jsx(pe,{children:e.jsx(g.UserRoundIcon,{className:"size-4"})})]})})}),e.jsxs("div",{className:"flex-1",children:[e.jsx(k.AnimatePresence,{mode:"wait",children:e.jsx(w,{snapExit:!0,children:n},n)}),e.jsx(k.AnimatePresence,{mode:"wait",children:t.lastMessage?e.jsx(w,{snapExit:!0,children:e.jsx(Ye,{remarkPlugins:[Le],rehypePlugins:[Ve],className:"line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",children:t.lastMessage})},t.lastMessage||"content"):e.jsx(w,{className:"w-1/2",snapExit:!0,children:e.jsx(at,{className:"h-4 w-full"})},"skeleton")})]})]}),e.jsx(g.ChevronRightIcon,{className:"size-4 text-muted-foreground shrink-0"})]})}function Co(){const t=K(),{toChatScreen:o}=l.useWidgetRouter(),{sessionsState:{data:s,isInitialFetchLoading:r},openSessions:n,closedSessions:a,canCreateNewSession:i}=l.useSessions();return e.jsx("div",{className:"flex-1 flex flex-col overflow-scroll py-2 px-2",children:e.jsx(k.AnimatePresence,{mode:"wait",children:r?e.jsx(w,{className:"flex-1 flex items-center justify-center",children:e.jsx(lt,{})},"loading"):e.jsx(w,{className:"flex-1 flex flex-col gap-2 relative",children:s.length?e.jsxs(e.Fragment,{children:[e.jsxs(k.AnimatePresence,{children:[n.length>0&&e.jsx(w,{fadeIn:"up",delay:.2,className:"space-y-2",snapExit:!0,children:n.map(d=>e.jsx(Be,{session:d},d.id))},"open-sessions"),a.length>0&&e.jsxs(w,{className:"space-y-2",delay:.2,snapExit:!0,children:[e.jsx(ko,{children:t.get("closed-conversations")}),a.map(d=>e.jsx(Be,{session:d,className:"opacity-50 hover:opacity-100"},d.id))]},"closed-sessions")]}),i&&e.jsx("div",{className:"mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background bg-background",children:m.createElement(C,{...u("sessions/new_conversation_btn"),size:"lg",key:"new-session",className:"w-full",onClick:()=>o()},t.get("new-conversation"))})]}):e.jsxs("div",{className:"flex-1 flex flex-col gap-2 items-center",children:[e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx("p",{className:"text-muted-foreground",children:t.get("no-conversations-yet")})}),m.createElement(C,{...u("sessions/new_conversation_btn"),size:"lg",key:"new-session",className:"w-full",onClick:()=>o()},t.get("new-conversation"))]})},"sessions")})})}function zo(){const{theme:t}=V();return me({width:t.screens.sessions.width,height:t.screens.sessions.height}),e.jsx("div",{...u("sessions/root"),className:c("flex flex-col overflow-hidden bg-background"),style:{width:"100vw",maxWidth:"100vw",height:"100vh",maxHeight:"100vh"},children:e.jsxs("div",{className:"size-full flex flex-col",children:[e.jsx(it,{}),e.jsx(Co,{}),e.jsx(ct,{})]})})}function dt(){l.usePreludeData();const{routerState:{screen:t}}=l.useWidgetRouter();return e.jsxs("div",{className:"relative bg-background size-full",children:[e.jsx(te.Container,{}),e.jsx(k.AnimatePresence,{mode:"wait",children:(()=>{switch(t){case"welcome":return e.jsx(w,{fadeIn:"right",className:"size-full",snapExit:!0,children:e.jsx(jo,{})},t);case"sessions":return e.jsx(w,{fadeIn:"right",className:"size-full",snapExit:!0,children:e.jsx(zo,{})},t);case"chat":return e.jsx(w,{fadeIn:"right",className:"size-full",snapExit:!0,children:e.jsx(xo,{})},t);default:return H.isExhaustive(t,dt.name),null}})()})]})}const So=`<!DOCTYPE html>
318
+ - ${i.widgetTrigger.offset.right*2}px
319
+ )`),minHeight:n("h",`min(
320
+ ${i.screens.welcome.minHeight},
321
+ ${i.screens.sessions.height},
322
+ ${i.screens.chat.height}
323
+ )`),minWidth:n("w",`min(
324
+ ${i.screens.welcome.width},
325
+ ${i.screens.sessions.width},
326
+ ${i.screens.chat.width}
327
+ )`)};return{theme:i,computed:s,cssVars:zL({palette:i.palette,primary:i.primaryColor})}}function zL({palette:e,primary:t}){const n=Y1(e),r=re(t).toHsl(),i=re(t).isLight()?n[950]:n[50];return{"--opencx-primary":`${r.h} ${r.s*100}% ${r.l*100}%`,"--opencx-primary-foreground":i,"--opencx-background":n[100],"--opencx-foreground":n[950],"--opencx-destructive":"0 72.2% 50.6%","--opencx-destructive-foreground":n[50],"--opencx-accent":n[200],"--opencx-accent-foreground":"var(--opencx-foreground)","--opencx-secondary":n[200],"--opencx-secondary-foreground":"var(--opencx-foreground)","--opencx-muted":n[200],"--opencx-muted-foreground":n[500],"--opencx-input":n[300],"--opencx-border":n[300],"--opencx-ring":"var(--opencx-foreground)"}}function Y1(e){const t={50:"0 0% 98%",100:"0 0% 96.1%",200:"0 0% 89.8%",300:"0 0% 83.1%",400:"0 0% 63.9%",500:"0 0% 45.1%",600:"0 0% 32.2%",700:"0 0% 25.1%",800:"0 0% 14.9%",900:"0 0% 9%",950:"0 0% 3.9%"},n={50:"60 9.1% 97.8%",100:"60 4.8% 95.9%",200:"20 5.9% 90%",300:"24 5.7% 82.9%",400:"24 5.4% 63.9%",500:"25 5.3% 44.7%",600:"33.3 5.5% 32.4%",700:"30 6.3% 25.1%",800:"12 6.5% 15.1%",900:"24 9.8% 10%",950:"20 14.3% 4.1%"},r={50:"0 0% 98%",100:"240 4.8% 95.9%",200:"240 5.9% 90%",300:"240 4.9% 83.9%",400:"240 5% 64.9%",500:"240 3.8% 46.1%",600:"240 5.2% 33.9%",700:"240 5.3% 26.1%",800:"240 3.7% 15.9%",900:"240 5.9% 10%",950:"240 10% 3.9%"},i={50:"210 40% 98%",100:"210 40% 96.1%",200:"214.3 31.8% 91.4%",300:"212.7 26.8% 83.9%",400:"215 20.2% 65.1%",500:"215.4 16.3% 46.9%",600:"215.3 19.3% 34.5%",700:"215.3 25% 26.7%",800:"217.2 32.6% 17.5%",900:"222.2 47.4% 11.2%",950:"222.2 84% 4.9%"};switch(e){case"neutral":return t;case"stone":return n;case"zinc":return r;case"slate":return i;default:return Bn.isExhaustive(e,Y1.name),t}}var Ec={exports:{}},Ys={exports:{}},Ne={};/** @license React v16.13.1
328
+ * react-is.production.min.js
329
+ *
330
+ * Copyright (c) Facebook, Inc. and its affiliates.
331
+ *
332
+ * This source code is licensed under the MIT license found in the
333
+ * LICENSE file in the root directory of this source tree.
334
+ */var Mh;function VL(){if(Mh)return Ne;Mh=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function v(C){if(typeof C=="object"&&C!==null){var R=C.$$typeof;switch(R){case t:switch(C=C.type,C){case u:case c:case r:case s:case i:case p:return C;default:switch(C=C&&C.$$typeof,C){case o:case d:case x:case m:case a:return C;default:return R}}case n:return R}}}function k(C){return v(C)===c}return Ne.AsyncMode=u,Ne.ConcurrentMode=c,Ne.ContextConsumer=o,Ne.ContextProvider=a,Ne.Element=t,Ne.ForwardRef=d,Ne.Fragment=r,Ne.Lazy=x,Ne.Memo=m,Ne.Portal=n,Ne.Profiler=s,Ne.StrictMode=i,Ne.Suspense=p,Ne.isAsyncMode=function(C){return k(C)||v(C)===u},Ne.isConcurrentMode=k,Ne.isContextConsumer=function(C){return v(C)===o},Ne.isContextProvider=function(C){return v(C)===a},Ne.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},Ne.isForwardRef=function(C){return v(C)===d},Ne.isFragment=function(C){return v(C)===r},Ne.isLazy=function(C){return v(C)===x},Ne.isMemo=function(C){return v(C)===m},Ne.isPortal=function(C){return v(C)===n},Ne.isProfiler=function(C){return v(C)===s},Ne.isStrictMode=function(C){return v(C)===i},Ne.isSuspense=function(C){return v(C)===p},Ne.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===c||C===s||C===i||C===p||C===f||typeof C=="object"&&C!==null&&(C.$$typeof===x||C.$$typeof===m||C.$$typeof===a||C.$$typeof===o||C.$$typeof===d||C.$$typeof===b||C.$$typeof===y||C.$$typeof===w||C.$$typeof===g)},Ne.typeOf=v,Ne}var Ie={};/** @license React v16.13.1
335
+ * react-is.development.js
336
+ *
337
+ * Copyright (c) Facebook, Inc. and its affiliates.
338
+ *
339
+ * This source code is licensed under the MIT license found in the
340
+ * LICENSE file in the root directory of this source tree.
341
+ */var jh;function $L(){return jh||(jh=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function v(W){return typeof W=="string"||typeof W=="function"||W===r||W===c||W===s||W===i||W===p||W===f||typeof W=="object"&&W!==null&&(W.$$typeof===x||W.$$typeof===m||W.$$typeof===a||W.$$typeof===o||W.$$typeof===d||W.$$typeof===b||W.$$typeof===y||W.$$typeof===w||W.$$typeof===g)}function k(W){if(typeof W=="object"&&W!==null){var He=W.$$typeof;switch(He){case t:var ct=W.type;switch(ct){case u:case c:case r:case s:case i:case p:return ct;default:var kt=ct&&ct.$$typeof;switch(kt){case o:case d:case x:case m:case a:return kt;default:return He}}case n:return He}}}var C=u,R=c,O=o,D=a,j=t,N=d,B=r,M=x,ee=m,Y=n,K=s,ne=i,X=p,Z=!1;function ie(W){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),E(W)||k(W)===u}function E(W){return k(W)===c}function z(W){return k(W)===o}function oe(W){return k(W)===a}function A(W){return typeof W=="object"&&W!==null&&W.$$typeof===t}function te(W){return k(W)===d}function ge(W){return k(W)===r}function J(W){return k(W)===x}function le(W){return k(W)===m}function de(W){return k(W)===n}function be(W){return k(W)===s}function pe(W){return k(W)===i}function Re(W){return k(W)===p}Ie.AsyncMode=C,Ie.ConcurrentMode=R,Ie.ContextConsumer=O,Ie.ContextProvider=D,Ie.Element=j,Ie.ForwardRef=N,Ie.Fragment=B,Ie.Lazy=M,Ie.Memo=ee,Ie.Portal=Y,Ie.Profiler=K,Ie.StrictMode=ne,Ie.Suspense=X,Ie.isAsyncMode=ie,Ie.isConcurrentMode=E,Ie.isContextConsumer=z,Ie.isContextProvider=oe,Ie.isElement=A,Ie.isForwardRef=te,Ie.isFragment=ge,Ie.isLazy=J,Ie.isMemo=le,Ie.isPortal=de,Ie.isProfiler=be,Ie.isStrictMode=pe,Ie.isSuspense=Re,Ie.isValidElementType=v,Ie.typeOf=k}()),Ie}var Fh;function q1(){return Fh||(Fh=1,process.env.NODE_ENV==="production"?Ys.exports=VL():Ys.exports=$L()),Ys.exports}/*
342
+ object-assign
343
+ (c) Sindre Sorhus
344
+ @license MIT
345
+ */var xu,Bh;function WL(){if(Bh)return xu;Bh=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var a={},o=0;o<10;o++)a["_"+String.fromCharCode(o)]=o;var u=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(u.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return xu=i()?Object.assign:function(s,a){for(var o,u=r(s),c,d=1;d<arguments.length;d++){o=Object(arguments[d]);for(var p in o)t.call(o,p)&&(u[p]=o[p]);if(e){c=e(o);for(var f=0;f<c.length;f++)n.call(o,c[f])&&(u[c[f]]=o[c[f]])}}return u},xu}var bu,Hh;function sd(){if(Hh)return bu;Hh=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return bu=e,bu}var yu,Uh;function G1(){return Uh||(Uh=1,yu=Function.call.bind(Object.prototype.hasOwnProperty)),yu}var Eu,zh;function YL(){if(zh)return Eu;zh=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=sd(),n={},r=G1();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(s,a,o,u,c){if(process.env.NODE_ENV!=="production"){for(var d in s)if(r(s,d)){var p;try{if(typeof s[d]!="function"){var f=Error((u||"React class")+": "+o+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}p=s[d](a,d,u,o,null,t)}catch(x){p=x}if(p&&!(p instanceof Error)&&e((u||"React class")+": type specification of "+o+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var m=c?c():"";e("Failed "+o+" type: "+p.message+(m??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Eu=i,Eu}var vu,Vh;function qL(){if(Vh)return vu;Vh=1;var e=q1(),t=WL(),n=sd(),r=G1(),i=YL(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(o){var u="Warning: "+o;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return vu=function(o,u){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function p(E){var z=E&&(c&&E[c]||E[d]);if(typeof z=="function")return z}var f="<<anonymous>>",m={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:w(),arrayOf:v,element:k(),elementType:C(),instanceOf:R,node:N(),objectOf:D,oneOf:O,oneOfType:j,shape:M,exact:ee};function x(E,z){return E===z?E!==0||1/E===1/z:E!==E&&z!==z}function g(E,z){this.message=E,this.data=z&&typeof z=="object"?z:{},this.stack=""}g.prototype=Error.prototype;function b(E){if(process.env.NODE_ENV!=="production")var z={},oe=0;function A(ge,J,le,de,be,pe,Re){if(de=de||f,pe=pe||le,Re!==n){if(u){var W=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw W.name="Invariant Violation",W}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var He=de+":"+le;!z[He]&&oe<3&&(s("You are manually calling a React.PropTypes validation function for the `"+pe+"` prop on `"+de+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),z[He]=!0,oe++)}}return J[le]==null?ge?J[le]===null?new g("The "+be+" `"+pe+"` is marked as required "+("in `"+de+"`, but its value is `null`.")):new g("The "+be+" `"+pe+"` is marked as required in "+("`"+de+"`, but its value is `undefined`.")):null:E(J,le,de,be,pe)}var te=A.bind(null,!1);return te.isRequired=A.bind(null,!0),te}function y(E){function z(oe,A,te,ge,J,le){var de=oe[A],be=ne(de);if(be!==E){var pe=X(de);return new g("Invalid "+ge+" `"+J+"` of type "+("`"+pe+"` supplied to `"+te+"`, expected ")+("`"+E+"`."),{expectedType:E})}return null}return b(z)}function w(){return b(a)}function v(E){function z(oe,A,te,ge,J){if(typeof E!="function")return new g("Property `"+J+"` of component `"+te+"` has invalid PropType notation inside arrayOf.");var le=oe[A];if(!Array.isArray(le)){var de=ne(le);return new g("Invalid "+ge+" `"+J+"` of type "+("`"+de+"` supplied to `"+te+"`, expected an array."))}for(var be=0;be<le.length;be++){var pe=E(le,be,te,ge,J+"["+be+"]",n);if(pe instanceof Error)return pe}return null}return b(z)}function k(){function E(z,oe,A,te,ge){var J=z[oe];if(!o(J)){var le=ne(J);return new g("Invalid "+te+" `"+ge+"` of type "+("`"+le+"` supplied to `"+A+"`, expected a single ReactElement."))}return null}return b(E)}function C(){function E(z,oe,A,te,ge){var J=z[oe];if(!e.isValidElementType(J)){var le=ne(J);return new g("Invalid "+te+" `"+ge+"` of type "+("`"+le+"` supplied to `"+A+"`, expected a single ReactElement type."))}return null}return b(E)}function R(E){function z(oe,A,te,ge,J){if(!(oe[A]instanceof E)){var le=E.name||f,de=ie(oe[A]);return new g("Invalid "+ge+" `"+J+"` of type "+("`"+de+"` supplied to `"+te+"`, expected ")+("instance of `"+le+"`."))}return null}return b(z)}function O(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),a;function z(oe,A,te,ge,J){for(var le=oe[A],de=0;de<E.length;de++)if(x(le,E[de]))return null;var be=JSON.stringify(E,function(Re,W){var He=X(W);return He==="symbol"?String(W):W});return new g("Invalid "+ge+" `"+J+"` of value `"+String(le)+"` "+("supplied to `"+te+"`, expected one of "+be+"."))}return b(z)}function D(E){function z(oe,A,te,ge,J){if(typeof E!="function")return new g("Property `"+J+"` of component `"+te+"` has invalid PropType notation inside objectOf.");var le=oe[A],de=ne(le);if(de!=="object")return new g("Invalid "+ge+" `"+J+"` of type "+("`"+de+"` supplied to `"+te+"`, expected an object."));for(var be in le)if(r(le,be)){var pe=E(le,be,te,ge,J+"."+be,n);if(pe instanceof Error)return pe}return null}return b(z)}function j(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var z=0;z<E.length;z++){var oe=E[z];if(typeof oe!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Z(oe)+" at index "+z+"."),a}function A(te,ge,J,le,de){for(var be=[],pe=0;pe<E.length;pe++){var Re=E[pe],W=Re(te,ge,J,le,de,n);if(W==null)return null;W.data&&r(W.data,"expectedType")&&be.push(W.data.expectedType)}var He=be.length>0?", expected one of type ["+be.join(", ")+"]":"";return new g("Invalid "+le+" `"+de+"` supplied to "+("`"+J+"`"+He+"."))}return b(A)}function N(){function E(z,oe,A,te,ge){return Y(z[oe])?null:new g("Invalid "+te+" `"+ge+"` supplied to "+("`"+A+"`, expected a ReactNode."))}return b(E)}function B(E,z,oe,A,te){return new g((E||"React class")+": "+z+" type `"+oe+"."+A+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+te+"`.")}function M(E){function z(oe,A,te,ge,J){var le=oe[A],de=ne(le);if(de!=="object")return new g("Invalid "+ge+" `"+J+"` of type `"+de+"` "+("supplied to `"+te+"`, expected `object`."));for(var be in E){var pe=E[be];if(typeof pe!="function")return B(te,ge,J,be,X(pe));var Re=pe(le,be,te,ge,J+"."+be,n);if(Re)return Re}return null}return b(z)}function ee(E){function z(oe,A,te,ge,J){var le=oe[A],de=ne(le);if(de!=="object")return new g("Invalid "+ge+" `"+J+"` of type `"+de+"` "+("supplied to `"+te+"`, expected `object`."));var be=t({},oe[A],E);for(var pe in be){var Re=E[pe];if(r(E,pe)&&typeof Re!="function")return B(te,ge,J,pe,X(Re));if(!Re)return new g("Invalid "+ge+" `"+J+"` key `"+pe+"` supplied to `"+te+"`.\nBad object: "+JSON.stringify(oe[A],null," ")+`
346
+ Valid keys: `+JSON.stringify(Object.keys(E),null," "));var W=Re(le,pe,te,ge,J+"."+pe,n);if(W)return W}return null}return b(z)}function Y(E){switch(typeof E){case"number":case"string":case"undefined":return!0;case"boolean":return!E;case"object":if(Array.isArray(E))return E.every(Y);if(E===null||o(E))return!0;var z=p(E);if(z){var oe=z.call(E),A;if(z!==E.entries){for(;!(A=oe.next()).done;)if(!Y(A.value))return!1}else for(;!(A=oe.next()).done;){var te=A.value;if(te&&!Y(te[1]))return!1}}else return!1;return!0;default:return!1}}function K(E,z){return E==="symbol"?!0:z?z["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&z instanceof Symbol:!1}function ne(E){var z=typeof E;return Array.isArray(E)?"array":E instanceof RegExp?"object":K(z,E)?"symbol":z}function X(E){if(typeof E>"u"||E===null)return""+E;var z=ne(E);if(z==="object"){if(E instanceof Date)return"date";if(E instanceof RegExp)return"regexp"}return z}function Z(E){var z=X(E);switch(z){case"array":case"object":return"an "+z;case"boolean":case"date":case"regexp":return"a "+z;default:return z}}function ie(E){return!E.constructor||!E.constructor.name?f:E.constructor.name}return m.checkPropTypes=i,m.resetWarningCache=i.resetWarningCache,m.PropTypes=m,m},vu}var Tu,$h;function GL(){if($h)return Tu;$h=1;var e=sd();function t(){}function n(){}return n.resetWarningCache=t,Tu=function(){function r(a,o,u,c,d,p){if(p!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Tu}if(process.env.NODE_ENV!=="production"){var KL=q1(),XL=!0;Ec.exports=qL()(KL.isElement,XL)}else Ec.exports=GL()();var ZL=Ec.exports;const Le=oa.getDefaultExportFromCjs(ZL),QL=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function ti(e,t,n){const r=JL(e),{webkitRelativePath:i}=e,s=typeof t=="string"?t:typeof i=="string"&&i.length>0?i:`./${e.name}`;return typeof r.path!="string"&&Wh(r,"path",s),Wh(r,"relativePath",s),r}function JL(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const r=t.split(".").pop().toLowerCase(),i=QL.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}function Wh(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const e5=[".DS_Store","Thumbs.db"];function t5(e){return l.__awaiter(this,void 0,void 0,function*(){return Ra(e)&&n5(e.dataTransfer)?a5(e.dataTransfer,e.type):r5(e)?i5(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?s5(e):[]})}function n5(e){return Ra(e)}function r5(e){return Ra(e)&&Ra(e.target)}function Ra(e){return typeof e=="object"&&e!==null}function i5(e){return vc(e.target.files).map(t=>ti(t))}function s5(e){return l.__awaiter(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>ti(n))})}function a5(e,t){return l.__awaiter(this,void 0,void 0,function*(){if(e.items){const n=vc(e.items).filter(i=>i.kind==="file");if(t!=="drop")return n;const r=yield Promise.all(n.map(o5));return Yh(K1(r))}return Yh(vc(e.files).map(n=>ti(n)))})}function Yh(e){return e.filter(t=>e5.indexOf(t.name)===-1)}function vc(e){if(e===null)return[];const t=[];for(let n=0;n<e.length;n++){const r=e[n];t.push(r)}return t}function o5(e){if(typeof e.webkitGetAsEntry!="function")return qh(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?X1(t):qh(e,t)}function K1(e){return e.reduce((t,n)=>[...t,...Array.isArray(n)?K1(n):[n]],[])}function qh(e,t){var n;if(typeof e.getAsFileSystemHandle=="function")return e.getAsFileSystemHandle().then(s=>l.__awaiter(this,void 0,void 0,function*(){const a=yield s.getFile();return a.handle=s,ti(a)}));const r=e.getAsFile();if(!r)return Promise.reject(`${e} is not a File`);const i=ti(r,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0);return Promise.resolve(i)}function u5(e){return l.__awaiter(this,void 0,void 0,function*(){return e.isDirectory?X1(e):c5(e)})}function X1(e){const t=e.createReader();return new Promise((n,r)=>{const i=[];function s(){t.readEntries(a=>l.__awaiter(this,void 0,void 0,function*(){if(a.length){const o=Promise.all(a.map(u5));i.push(o),s()}else try{const o=yield Promise.all(i);n(o)}catch(o){r(o)}}),a=>{r(a)})}s()})}function c5(e){return l.__awaiter(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(r=>{const i=ti(r,e.fullPath);t(i)},r=>{n(r)})})})}var wu=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",i=(e.type||"").toLowerCase(),s=i.replace(/\/.*$/,"");return n.some(function(a){var o=a.trim().toLowerCase();return o.charAt(0)==="."?r.toLowerCase().endsWith(o):o.endsWith("/*")?s===o.replace(/\/.*$/,""):i===o})}return!0};function Gh(e){return p5(e)||d5(e)||Q1(e)||l5()}function l5(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
347
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d5(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function p5(e){if(Array.isArray(e))return Tc(e)}function Kh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kh(Object(n),!0).forEach(function(r){Z1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Z1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qi(e,t){return m5(e)||h5(e,t)||Q1(e,t)||f5()}function f5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
348
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q1(e,t){if(e){if(typeof e=="string")return Tc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tc(e,t)}}function Tc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h5(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,s=!1,a,o;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(u){s=!0,o=u}finally{try{!i&&n.return!=null&&n.return()}finally{if(s)throw o}}return r}}function m5(e){if(Array.isArray(e))return e}var g5=typeof wu=="function"?wu:wu.default,x5="file-invalid-type",b5="file-too-large",y5="file-too-small",E5="too-many-files",v5=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),r=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:x5,message:"File type must be ".concat(r)}},Zh=function(t){return{code:b5,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},Qh=function(t){return{code:y5,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},T5={code:E5,message:"Too many files"};function J1(e,t){var n=e.type==="application/x-moz-file"||g5(e,t);return[n,n?null:v5(t)]}function ey(e,t,n){if(cr(e.size))if(cr(t)&&cr(n)){if(e.size>n)return[!1,Zh(n)];if(e.size<t)return[!1,Qh(t)]}else{if(cr(t)&&e.size<t)return[!1,Qh(t)];if(cr(n)&&e.size>n)return[!1,Zh(n)]}return[!0,null]}function cr(e){return e!=null}function w5(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,s=e.multiple,a=e.maxFiles,o=e.validator;return!s&&t.length>1||s&&a>=1&&t.length>a?!1:t.every(function(u){var c=J1(u,n),d=Qi(c,1),p=d[0],f=ey(u,r,i),m=Qi(f,1),x=m[0],g=o?o(u):null;return p&&x&&!g})}function Na(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function qs(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Jh(e){e.preventDefault()}function _5(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function C5(e){return e.indexOf("Edge/")!==-1}function A5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return _5(e)||C5(e)}function Gt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,s=new Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return t.some(function(o){return!Na(r)&&o&&o.apply(void 0,[r].concat(s)),Na(r)})}}function k5(){return"showOpenFilePicker"in window}function S5(e){if(cr(e)){var t=Object.entries(e).filter(function(n){var r=Qi(n,2),i=r[0],s=r[1],a=!0;return ty(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(s)||!s.every(ny))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=Qi(r,2),s=i[0],a=i[1];return Xh(Xh({},n),{},Z1({},s,a))},{});return[{description:"Files",accept:t}]}return e}function R5(e){if(cr(e))return Object.entries(e).reduce(function(t,n){var r=Qi(n,2),i=r[0],s=r[1];return[].concat(Gh(t),[i],Gh(s))},[]).filter(function(t){return ty(t)||ny(t)}).join(",")}function N5(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function I5(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function ty(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function ny(e){return/^.*\.[\w]+$/.test(e)}var O5=["children"],P5=["open"],D5=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],L5=["refKey","onChange","onClick"];function M5(e){return B5(e)||F5(e)||ry(e)||j5()}function j5(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
349
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function F5(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function B5(e){if(Array.isArray(e))return wc(e)}function _u(e,t){return z5(e)||U5(e,t)||ry(e,t)||H5()}function H5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
350
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ry(e,t){if(e){if(typeof e=="string")return wc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wc(e,t)}}function wc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function U5(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,s=!1,a,o;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(u){s=!0,o=u}finally{try{!i&&n.return!=null&&n.return()}finally{if(s)throw o}}return r}}function z5(e){if(Array.isArray(e))return e}function em(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ve(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?em(Object(n),!0).forEach(function(r){_c(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):em(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ia(e,t){if(e==null)return{};var n=V5(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function V5(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var ad=l.reactExports.forwardRef(function(e,t){var n=e.children,r=Ia(e,O5),i=sy(r),s=i.open,a=Ia(i,P5);return l.reactExports.useImperativeHandle(t,function(){return{open:s}},[s]),l.React$1.createElement(l.reactExports.Fragment,null,n(Ve(Ve({},a),{},{open:s})))});ad.displayName="Dropzone";var iy={disabled:!1,getFilesFromEvent:t5,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};ad.defaultProps=iy;ad.propTypes={children:Le.func,accept:Le.objectOf(Le.arrayOf(Le.string)),multiple:Le.bool,preventDropOnDocument:Le.bool,noClick:Le.bool,noKeyboard:Le.bool,noDrag:Le.bool,noDragEventsBubbling:Le.bool,minSize:Le.number,maxSize:Le.number,maxFiles:Le.number,disabled:Le.bool,getFilesFromEvent:Le.func,onFileDialogCancel:Le.func,onFileDialogOpen:Le.func,useFsAccessApi:Le.bool,autoFocus:Le.bool,onDragEnter:Le.func,onDragLeave:Le.func,onDragOver:Le.func,onDrop:Le.func,onDropAccepted:Le.func,onDropRejected:Le.func,onError:Le.func,validator:Le.func};var Cc={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function sy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Ve(Ve({},iy),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,s=t.maxSize,a=t.minSize,o=t.multiple,u=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,p=t.onDragOver,f=t.onDrop,m=t.onDropAccepted,x=t.onDropRejected,g=t.onFileDialogCancel,b=t.onFileDialogOpen,y=t.useFsAccessApi,w=t.autoFocus,v=t.preventDropOnDocument,k=t.noClick,C=t.noKeyboard,R=t.noDrag,O=t.noDragEventsBubbling,D=t.onError,j=t.validator,N=l.reactExports.useMemo(function(){return R5(n)},[n]),B=l.reactExports.useMemo(function(){return S5(n)},[n]),M=l.reactExports.useMemo(function(){return typeof b=="function"?b:tm},[b]),ee=l.reactExports.useMemo(function(){return typeof g=="function"?g:tm},[g]),Y=l.reactExports.useRef(null),K=l.reactExports.useRef(null),ne=l.reactExports.useReducer($5,Cc),X=_u(ne,2),Z=X[0],ie=X[1],E=Z.isFocused,z=Z.isFileDialogActive,oe=l.reactExports.useRef(typeof window<"u"&&window.isSecureContext&&y&&k5()),A=function(){!oe.current&&z&&setTimeout(function(){if(K.current){var fe=K.current.files;fe.length||(ie({type:"closeDialog"}),ee())}},300)};l.reactExports.useEffect(function(){return window.addEventListener("focus",A,!1),function(){window.removeEventListener("focus",A,!1)}},[K,z,ee,oe]);var te=l.reactExports.useRef([]),ge=function(fe){Y.current&&Y.current.contains(fe.target)||(fe.preventDefault(),te.current=[])};l.reactExports.useEffect(function(){return v&&(document.addEventListener("dragover",Jh,!1),document.addEventListener("drop",ge,!1)),function(){v&&(document.removeEventListener("dragover",Jh),document.removeEventListener("drop",ge))}},[Y,v]),l.reactExports.useEffect(function(){return!r&&w&&Y.current&&Y.current.focus(),function(){}},[Y,w,r]);var J=l.reactExports.useCallback(function(q){D?D(q):console.error(q)},[D]),le=l.reactExports.useCallback(function(q){q.preventDefault(),q.persist(),rr(q),te.current=[].concat(M5(te.current),[q.target]),qs(q)&&Promise.resolve(i(q)).then(function(fe){if(!(Na(q)&&!O)){var P=fe.length,H=P>0&&w5({files:fe,accept:N,minSize:a,maxSize:s,multiple:o,maxFiles:u,validator:j}),se=P>0&&!H;ie({isDragAccept:H,isDragReject:se,isDragActive:!0,type:"setDraggedFiles"}),c&&c(q)}}).catch(function(fe){return J(fe)})},[i,c,J,O,N,a,s,o,u,j]),de=l.reactExports.useCallback(function(q){q.preventDefault(),q.persist(),rr(q);var fe=qs(q);if(fe&&q.dataTransfer)try{q.dataTransfer.dropEffect="copy"}catch{}return fe&&p&&p(q),!1},[p,O]),be=l.reactExports.useCallback(function(q){q.preventDefault(),q.persist(),rr(q);var fe=te.current.filter(function(H){return Y.current&&Y.current.contains(H)}),P=fe.indexOf(q.target);P!==-1&&fe.splice(P,1),te.current=fe,!(fe.length>0)&&(ie({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),qs(q)&&d&&d(q))},[Y,d,O]),pe=l.reactExports.useCallback(function(q,fe){var P=[],H=[];q.forEach(function(se){var ve=J1(se,N),Ae=_u(ve,2),lt=Ae[0],Mt=Ae[1],xt=ey(se,a,s),Yt=_u(xt,2),pn=Yt[0],Qe=Yt[1],qt=j?j(se):null;if(lt&&pn&&!qt)P.push(se);else{var bt=[Mt,Qe];qt&&(bt=bt.concat(qt)),H.push({file:se,errors:bt.filter(function(wy){return wy})})}}),(!o&&P.length>1||o&&u>=1&&P.length>u)&&(P.forEach(function(se){H.push({file:se,errors:[T5]})}),P.splice(0)),ie({acceptedFiles:P,fileRejections:H,isDragReject:H.length>0,type:"setFiles"}),f&&f(P,H,fe),H.length>0&&x&&x(H,fe),P.length>0&&m&&m(P,fe)},[ie,o,N,a,s,u,f,m,x,j]),Re=l.reactExports.useCallback(function(q){q.preventDefault(),q.persist(),rr(q),te.current=[],qs(q)&&Promise.resolve(i(q)).then(function(fe){Na(q)&&!O||pe(fe,q)}).catch(function(fe){return J(fe)}),ie({type:"reset"})},[i,pe,J,O]),W=l.reactExports.useCallback(function(){if(oe.current){ie({type:"openDialog"}),M();var q={multiple:o,types:B};window.showOpenFilePicker(q).then(function(fe){return i(fe)}).then(function(fe){pe(fe,null),ie({type:"closeDialog"})}).catch(function(fe){N5(fe)?(ee(fe),ie({type:"closeDialog"})):I5(fe)?(oe.current=!1,K.current?(K.current.value=null,K.current.click()):J(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):J(fe)});return}K.current&&(ie({type:"openDialog"}),M(),K.current.value=null,K.current.click())},[ie,M,ee,y,pe,J,B,o]),He=l.reactExports.useCallback(function(q){!Y.current||!Y.current.isEqualNode(q.target)||(q.key===" "||q.key==="Enter"||q.keyCode===32||q.keyCode===13)&&(q.preventDefault(),W())},[Y,W]),ct=l.reactExports.useCallback(function(){ie({type:"focus"})},[]),kt=l.reactExports.useCallback(function(){ie({type:"blur"})},[]),dn=l.reactExports.useCallback(function(){k||(A5()?setTimeout(W,0):W())},[k,W]),Lt=function(fe){return r?null:fe},nr=function(fe){return C?null:Lt(fe)},St=function(fe){return R?null:Lt(fe)},rr=function(fe){O&&fe.stopPropagation()},To=l.reactExports.useMemo(function(){return function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},fe=q.refKey,P=fe===void 0?"ref":fe,H=q.role,se=q.onKeyDown,ve=q.onFocus,Ae=q.onBlur,lt=q.onClick,Mt=q.onDragEnter,xt=q.onDragOver,Yt=q.onDragLeave,pn=q.onDrop,Qe=Ia(q,D5);return Ve(Ve(_c({onKeyDown:nr(Gt(se,He)),onFocus:nr(Gt(ve,ct)),onBlur:nr(Gt(Ae,kt)),onClick:Lt(Gt(lt,dn)),onDragEnter:St(Gt(Mt,le)),onDragOver:St(Gt(xt,de)),onDragLeave:St(Gt(Yt,be)),onDrop:St(Gt(pn,Re)),role:typeof H=="string"&&H!==""?H:"presentation"},P,Y),!r&&!C?{tabIndex:0}:{}),Qe)}},[Y,He,ct,kt,dn,le,de,be,Re,C,R,r]),wo=l.reactExports.useCallback(function(q){q.stopPropagation()},[]),_o=l.reactExports.useMemo(function(){return function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},fe=q.refKey,P=fe===void 0?"ref":fe,H=q.onChange,se=q.onClick,ve=Ia(q,L5),Ae=_c({accept:N,multiple:o,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:Lt(Gt(H,Re)),onClick:Lt(Gt(se,wo)),tabIndex:-1},P,K);return Ve(Ve({},Ae),ve)}},[K,n,o,Re,r]);return Ve(Ve({},Z),{},{isFocused:E&&!r,getRootProps:To,getInputProps:_o,rootRef:Y,inputRef:K,open:Lt(W)})}function $5(e,t){switch(t.type){case"focus":return Ve(Ve({},e),{},{isFocused:!0});case"blur":return Ve(Ve({},e),{},{isFocused:!1});case"openDialog":return Ve(Ve({},Cc),{},{isFileDialogActive:!0});case"closeDialog":return Ve(Ve({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ve(Ve({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Ve(Ve({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return Ve({},Cc);default:return e}}function tm(){}const od=()=>{const[e,t]=l.reactExports.useState("ltr");return l.reactExports.useEffect(()=>{const n=()=>{typeof document>"u"||t(window.getComputedStyle(document.body).direction)};n();const r=new MutationObserver(n);return r.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),r.observe(document.body,{attributes:!0,attributeFilter:["dir"]}),window.addEventListener("languagechange",n),()=>{r.disconnect(),window.removeEventListener("languagechange",n)}},[]),e},W5={ok:"حسنا",yes:"نعم",no:"لا",agree:"موافق",cancel:"إلغاء","yes-exit":"نعم، اخرج","yes-reset":"نعم، إعادة تعيين","no-cancel":"لا، إلغاء","are-you-sure":"هل أنت متأكد؟",recording:"تسجيل","thank-you":"شكرا","sorry-try-again":"عذرا، حاول مرة أخرى","error-occurred":"حدث خطأ","please-try-again":"يرجى المحاولة مرة أخرى","write-a-message":"اكتب رسالة...","send-message":"إرسال رسالة",connected:"متصل",connecting:"جاري الاتصال",reconnecting:"جاري إعادة الاتصال",reconnected:"تم إعادة الاتصال",disconnecting:"جاري قطع الاتصال",disconnected:"قطع الاتصال",error:"خطأ","persist-session":"حفظ الجلسة",settings:"إعدادات",close:"إغلاق",help:"مساعدة",chat:"محادثة",send:"إرسال",copy:"نسخ",copied:"تم النسخ","sound-effects":"التاثيرات الصوتية",language:"اللغة",select:"اختر",agent:"الوكيل",user:"المستخدم",bot:"البوت","close-widget":"إغلاق الودجة","got-any-questions":"هل لديك أي أسئلة؟ تحدث معنا!","typical-response-time":"عادة ما نرد في أقل من دقيقة واحدة","session-closed-lead":"تم حل مشكلتك!",exit:"خروج","create-new-ticket":"إنشاء تذكرة جديدة","reset-conversation":"إعادة تعيين المحادثة","new-conversation":"محادثة جديدة","welcome-title":"مرحبًا بك في دردشة الدعم الخاصة بنا","welcome-description":"نحن هنا للمساعدة! ابدأ محادثة وسنرد عليك في أقرب وقت ممكن.","your-name":"اسمك","your-email":"عنوان بريدك الإلكتروني","start-chat":"تحدث إلى الدعم","starting-chat":"جاري الاتصال...","hello-greeting":"مرحبًا! كيف يمكننا مساعدتك اليوم؟","i-need-more-help":"أحتاج المزيد من المساعدة","this-was-helpful":"كان هذا مفيدًا",optional:"اختياري","no-conversations-yet":"لا يوجد محادثات","back-to-conversations":"العودة إلى المحادثات","closed-conversations":"المحادثات المغلقة"},Y5={ok:"OK",yes:"Ja",no:"Nein",agree:"Zustimmen",cancel:"Stornieren","yes-exit":"Ja, beenden","yes-reset":"Ja, zurücksetzen","no-cancel":"Nein, abbrechen","are-you-sure":"Sind Sie sicher?",recording:"Aufnahme läuft","thank-you":"Vielen Dank","sorry-try-again":"Entschuldigung, bitte versuchen Sie es erneut","error-occurred":"Ein Fehler ist aufgetreten","please-try-again":"Bitte versuchen Sie es erneut","write-a-message":"Nachricht schreiben...","send-message":"Nachricht senden",connected:"Verbunden",connecting:"Verbindung wird hergestellt",reconnecting:"Verbindung wird wiederhergestellt",reconnected:"Wieder verbunden",disconnecting:"Verbindung wird getrennt",disconnected:"Verbindung getrennt",error:"Fehler","persist-session":"Sitzung beibehalten",settings:"Einstellungen",close:"Schließen",help:"Hilfe",chat:"Chat",send:"Senden",copy:"Kopieren",copied:"Kopiert","sound-effects":"Soundeffekte",language:"Sprache",select:"Auswählen",agent:"Agent",user:"Benutzer",bot:"Bot","got-any-questions":"Haben Sie Fragen? Chatten Sie mit uns!","typical-response-time":"Üblicherweise antworten wir in weniger als 1 Minute","close-widget":"Widget schließen","session-closed-lead":"Ihr Problem wurde gelöst!","create-new-ticket":"Neues Ticket erstellen",exit:"Beenden","reset-conversation":"Konversation zurücksetzen","new-conversation":"Neue Konversation","welcome-title":"Willkommen in unserem Support-Chat","welcome-description":"Wir sind hier, um zu helfen! Beginnen Sie ein Gesprách und wir werden so schnell wie mogelijk antworten.","your-name":"Ihr Name","your-email":"Ihre E-Mail-Adresse","start-chat":"Mit dem Support sprechen","starting-chat":"Verbindung wird hergestellt...","hello-greeting":"Hallo! Wie können wir Ihnen heute helfen?","i-need-more-help":"Ich brauche weitere Hilfe","this-was-helpful":"Dies war hilfreich",optional:"Optional","no-conversations-yet":"noch keine Gespräche","back-to-conversations":"Zurück zur Konversationen","closed-conversations":"Geschlossene Konversationen"},q5={ok:"OK",yes:"Yes",no:"No",agree:"Agree",cancel:"Cancel","yes-exit":"Yes, exit","yes-reset":"Yes, reset","no-cancel":"No, cancel","are-you-sure":"Are you sure?",recording:"Recording...","thank-you":"Thank you","sorry-try-again":"Sorry, please try again","error-occurred":"An error occurred","please-try-again":"Please try again","write-a-message":"Write a message...","send-message":"Send message",connected:"Connected",connecting:"Connecting",reconnecting:"Reconnecting",reconnected:"Reconnected",disconnecting:"Disconnecting",disconnected:"Disconnected",error:"Error","persist-session":"Persist session",settings:"Settings",close:"Close",help:"Help",chat:"Chat",send:"Send",copy:"Copy",copied:"Copied","sound-effects":"Sound effects",language:"Language",select:"Select",agent:"Agent",user:"User",bot:"Bot","close-widget":"Close widget","got-any-questions":"Got any questions? Chat with us!","typical-response-time":"Typically respond in less than 1 minute","session-closed-lead":"Your issue has been resolved!","create-new-ticket":"Create new ticket",exit:"Exit","reset-conversation":"Reset conversation","new-conversation":"New conversation","welcome-title":"Welcome to our support chat","welcome-description":"We're here to help! Start a conversation and we'll get back to you as soon as possible.","your-name":"Your name","your-email":"Your email address","start-chat":"Talk to support","starting-chat":"Connecting...","hello-greeting":"Hi there!","i-need-more-help":"I need more help","this-was-helpful":"This was helpful",optional:"Optional","no-conversations-yet":"No conversations yet","back-to-conversations":"Back to conversations","closed-conversations":"Closed conversations"},G5={ok:"D'accord",yes:"Oui",no:"Non",agree:"Accepter",cancel:"Annuler","yes-exit":"Oui, quitter","yes-reset":"Oui, réinitialiser","no-cancel":"Non, annuler","are-you-sure":"Êtes-vous sûr ?",recording:"Enregistrement...","thank-you":"Merci","sorry-try-again":"Désolé, veuillez réessayer","error-occurred":"Une erreur s'est produite","please-try-again":"Veuillez réessayer","write-a-message":"Écrivez un message...","send-message":"Envoyer le message",connected:"Connecté",connecting:"Connexion en cours",reconnecting:"Reconnexion en cours",reconnected:"Reconnecté",disconnecting:"Déconnexion en cours",disconnected:"Déconnecté",error:"Erreur","persist-session":"Conserver la session",settings:"Paramètres",close:"Fermer",help:"Aide",chat:"Chat",send:"Envoyer",copy:"Copier",copied:"Copié","sound-effects":"Effets sonores",language:"Langue",select:"Sélectionner",agent:"Agent",user:"Utilisateur",bot:"Bot","close-widget":"Fermer le widget","got-any-questions":"Vous avez des questions ? Chattez avec nous !","typical-response-time":"Nous répondons généralement en moins d'une minute","session-closed-lead":"Votre problème a été résolu !","create-new-ticket":"Créer un nouveau ticket",exit:"Sortie","reset-conversation":"Réinitialiser la conversation","new-conversation":"Nouvelle conversation","welcome-title":"Bienvenue dans notre chat de support","welcome-description":"Nous sommes là pour vous aider ! Commencez une conversation et nous vous répondrons dès que possible.","your-name":"Votre nom","your-email":"Votre adresse e-mail","start-chat":"Parler au support","starting-chat":"Connexion...","hello-greeting":"Bonjour ! Comment pouvons-nous vous aider aujourd'hui ?","i-need-more-help":"Je besoin d'aide plus","this-was-helpful":"C'était utile",optional:"Optionnel","no-conversations-yet":"Aucune conversation pour le moment","back-to-conversations":"Retour aux conversations","closed-conversations":"Conversations fermées"},K5={ok:"OK",yes:"Ja",no:"Nee",agree:"Akkoord",cancel:"Annuleren","yes-exit":"Ja, afsluiten","yes-reset":"Ja, resetten","no-cancel":"Nee, annuleren","are-you-sure":"Weet u het zeker?",recording:"Opname...","thank-you":"Dank u","sorry-try-again":"Sorry, probeer het opnieuw","error-occurred":"Er is een fout opgetreden","please-try-again":"Probeer het opnieuw","write-a-message":"Schrijf een bericht...","send-message":"Bericht verzenden",connected:"Verbonden",connecting:"Verbinding maken",reconnecting:"Opnieuw verbinding maken",reconnected:"Opnieuw verbonden",disconnecting:"Verbinding verbreken",disconnected:"Verbinding verbroken",error:"Fout","persist-session":"Sessie behouden",settings:"Instellingen",close:"Sluiten",help:"Help",chat:"Chat",send:"Verzenden",copy:"Kopiëren",copied:"Gekopieerd","sound-effects":"Geluidseffecten",language:"Taal",select:"Selecteren",agent:"Agent",user:"Gebruiker",bot:"Bot","close-widget":"Widget sluiten","got-any-questions":"Heeft u vragen? Chat met ons!","typical-response-time":"We reageren doorgaans binnen 1 minuut","session-closed-lead":"Uw probleem is opgelost!","create-new-ticket":"Nieuw ticket aanmaken",exit:"Afsluiten","reset-conversation":"Gesprek resetten","new-conversation":"Nieuw gesprek","welcome-title":"Welkom bij onze supportchat","welcome-description":"We zijn hier om te helpen! Begin een gesprek en we nemen zo snel mogelijk contact met u op.","your-name":"Uw naam","your-email":"Uw e-mailadres","start-chat":"Praat met ondersteuning","starting-chat":"Verbinding maken...","hello-greeting":"Hallo! Hoe kunnen we u vandaag helpen?","i-need-more-help":"Ik heb nog meer hulp nodig","this-was-helpful":"Mijn vraag is opgelost",optional:"Optioneel","no-conversations-yet":"Nog geen gesprekken","back-to-conversations":"Terug naar gesprekken","closed-conversations":"Afgesloten gesprekken"},X5={ok:"OK",yes:"Sim",no:"Não",agree:"Concordo",cancel:"Cancelar","yes-exit":"Sim, sair","yes-reset":"Sim, redefinir","no-cancel":"Não, cancelar","are-you-sure":"Você tem certeza?",recording:"Gravando...","thank-you":"Obrigado","sorry-try-again":"Desculpe, tente novamente","error-occurred":"Ocorreu um erro","please-try-again":"Por favor, tente novamente","write-a-message":"Escreva uma mensagem...","send-message":"Enviar mensagem",connected:"Conectado",connecting:"Conectando",reconnecting:"Reconectando",reconnected:"Reconectado",disconnecting:"Desconectando",disconnected:"Desconectado",error:"Erro","persist-session":"Persistir sessão",settings:"Configurações",close:"Fechar",help:"Ajuda",chat:"Bate-papo",send:"Enviar",copy:"Copiar",copied:"Copiado","sound-effects":"Efeitos sonoros",language:"Idioma",select:"Selecionar",agent:"Agente",user:"Usuário",bot:"Bot","close-widget":"Fechar widget","got-any-questions":"Tem alguma dúvida? Converse conosco!","typical-response-time":"Geralmente respondemos em menos de 1 minuto","session-closed-lead":"Seu problema foi resolvido!","create-new-ticket":"Criar novo ticket",exit:"Sair","reset-conversation":"Redefinir conversa","new-conversation":"Nova conversa","welcome-title":"Bem-vindo ao nosso chat de suporte","welcome-description":"Estamos aqui para ajudar! Inicie uma conversa e responderemos o mais rápido possível.","your-name":"Seu nome","your-email":"Seu endereço de email","start-chat":"Falar com o suporte","starting-chat":"Conectando...","hello-greeting":"Olá! Como podemos ajudar você hoje?","i-need-more-help":"preciso de mais ajuda","this-was-helpful":"Isso foi útil",optional:"Opcional","no-conversations-yet":"Nenhuma conversa ainda","back-to-conversations":"Voltar para conversas","closed-conversations":"Conversas fechadas"},Z5={ok:"OK",yes:"Sí",no:"No",agree:"De acuerdo",cancel:"Cancelar","yes-exit":"Sí, salir","yes-reset":"Sí, restablecer","no-cancel":"No, cancelar","are-you-sure":"¿Estás seguro?",recording:"Grabando...","thank-you":"Gracias","sorry-try-again":"Lo sentimos, intenta de nuevo","error-occurred":"Ocurrió un error","please-try-again":"Por favor, inténtalo de nuevo","write-a-message":"Escribe un mensaje...","send-message":"Enviar mensaje",connected:"Conectado",connecting:"Conectando",reconnecting:"Reconectando",reconnected:"Reconectado",disconnecting:"Desconectando",disconnected:"Desconectado",error:"Error","persist-session":"Persistir sesión",settings:"Configuración",close:"Cerrar",help:"Ayuda",chat:"Chat",send:"Enviar",copy:"Copiar",copied:"Copiado","sound-effects":"Efectos de sonido",language:"Idioma",select:"Seleccionar",agent:"Agente",user:"Usuario",bot:"Bot","close-widget":"Cerrar widget","got-any-questions":"¿Tienes alguna pregunta? ¡Chatea con nosotros!","typical-response-time":"Normalmente respondemos en menos de 1 minuto","session-closed-lead":"¡Tu problema fue resuelto!","create-new-ticket":"Crear nuevo ticket",exit:"Salir","reset-conversation":"Restablecer conversación","new-conversation":"Nueva conversación","welcome-title":"Bienvenido a nuestro chat de soporte","welcome-description":"¡Estamos aquí para ayudarte! Inicia una conversación y responderemos lo antes posible.","your-name":"Tu nombre","your-email":"Tu correo electrónico","start-chat":"Hablar con soporte","starting-chat":"Conectando...","hello-greeting":"¡Hola! ¿Cómo podemos ayudarte hoy?","i-need-more-help":"Necesito más ayuda","this-was-helpful":"Esto fue útil",optional:"Opcional","no-conversations-yet":"Sin conversaciones aún","back-to-conversations":"Volver a conversaciones","closed-conversations":"Conversaciones cerradas"},ay={en:q5,ar:W5,nl:K5,fr:G5,de:Y5,pt:X5,es:Z5},Q5=Object.keys(ay),J5=e=>Q5.includes(e);function eM(e,t){const n=ay[t];return n&&n[e]||""}function Cs(){const{widgetCtx:{config:e}}=l.useWidget();return l.reactExports.useMemo(()=>{const n=J5(e.language)?e.language:"en";return{get:r=>eM(r,n),lang:n}},[e.language])}function ud({suggestion:e,className:t,...n}){const{sendMessage:r}=l.useMessages(),i=()=>{const s=e.trim();s&&r({content:s})};return l.jsxRuntimeExports.jsx(Ke,{...Oe("chat/suggested_reply_btn"),size:"sm",className:ce("rounded-xl w-fit",t),...n,onClick:i,children:e})}function tM(){const e=Cs(),t=[e.get("i-need-more-help"),e.get("this-was-helpful")];return l.jsxRuntimeExports.jsx("div",{...Oe("chat/might_solve_user_issue_suggested_replies_container"),className:"flex items-center gap-2 p-2 pb-0 flex-wrap",children:t.map(n=>l.jsxRuntimeExports.jsx(ud,{suggestion:n,className:"flex-1"},n))})}function nM({file:{status:e,file:t,error:n},onCancel:r}){const[i,s]=l.reactExports.useState(null);l.reactExports.useEffect(()=>{if(!t.type.startsWith("image/"))return;const u=new FileReader;return u.onload=()=>s(u.result),u.onerror=()=>console.error("Error reading file"),u.readAsDataURL(t),()=>u.abort()},[t]);const a=()=>{switch(e){case"uploading":return l.jsxRuntimeExports.jsx(fI,{className:"size-4 animate-spin"});case"error":return l.jsxRuntimeExports.jsx(sI,{className:"size-4 text-destructive"});default:return null}},o=()=>{const u=t.type.split("/")[0];return u==="image"&&i?l.jsxRuntimeExports.jsx("img",{src:typeof i=="string"?i:"",className:"object-cover bg-secondary size-full",alt:t.name}):u==="audio"?l.jsxRuntimeExports.jsx(cI,{}):u==="video"?l.jsxRuntimeExports.jsx(lI,{}):l.jsxRuntimeExports.jsx(dI,{})};return l.jsxRuntimeExports.jsx(Zi,{side:"bottom",content:e==="error"?l.jsxRuntimeExports.jsxs("span",{className:"text-destructive",children:["Failed to upload: ",n]}):t.name,children:l.jsxRuntimeExports.jsxs("div",{className:ce(e==="uploading"&&"opacity-50","group","size-12 border rounded-2xl overflow-hidden relative","flex items-center justify-center shrink-0"),children:[l.jsxRuntimeExports.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:a()}),l.jsxRuntimeExports.jsx("button",{type:"button",className:ce("absolute bg-black/50 inset-0 size-full z-10 opacity-0","flex items-center justify-center","opacity-0 group-hover:opacity-100 transition"),onClick:r,children:l.jsxRuntimeExports.jsx(so,{className:"size-4 text-primary-foreground"})}),l.jsxRuntimeExports.jsx(o,{})]})})}function rM(){var O;const{isSmallScreen:e}=kn(),t=l.reactExports.useRef(null),{sendMessage:n}=l.useMessages(),{sessionState:r}=l.useSessions(),i=Cs(),s=od(),[a,o]=l.reactExports.useState(""),{allFiles:u,emptyTheFiles:c,handleCancelUpload:d,appendFiles:p,isUploading:f,successFiles:m}=l.useUploadFiles(),x=!!((O=r.session)!=null&&O.isHandedOff),{isAwaitingBotReply:g}=l.useIsAwaitingBotReply(),b=D=>{p(D)},y=!a.trim()&&m.length===0,w=async()=>{if(g||y)return;f&&console.info("please wait for the file(s) to upload");const D=a.trim();n({content:D,attachments:m.flatMap(j=>j.fileUrl?[{url:j.fileUrl,type:j.file.type,name:j.file.name,id:j.id,size:j.file.size}]:[])}),o(""),c()},{getRootProps:v,getInputProps:k,open:C}=sy({onDrop:b,noClick:!0,onDropRejected(){console.error("unsupported file type, or the file is too large")},maxSize:5*1024*1024,accept:x?{"text/*":[".txt"],"image/*":[".png",".jpg",".jpeg",".gif"],"application/pdf":[".pdf"]}:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg"],"image/gif":[".gif"],"image/webp":[".webp"]}}),R=D=>{const j=D.clipboardData;j&&j.files.length>0&&b(Array.from(j.files))};return l.jsxRuntimeExports.jsxs("div",{...Oe("chat/input_box/root"),className:"p-2 relative space-y-1",...v(),children:[l.jsxRuntimeExports.jsx("input",{...k()}),l.jsxRuntimeExports.jsxs("div",{...Oe("chat/input_box/inner_root"),className:ce("transition-all","bg-white","relative rounded-3xl flex flex-col gap-2 p-2","hover:border-primary focus-within:border-primary"),children:[l.jsxRuntimeExports.jsxs("div",{...Oe("chat/input_box/textarea_and_attachments_container"),className:"flex flex-col gap-2",children:[u.length>0&&l.jsxRuntimeExports.jsx("div",{...Oe("chat/input_box/attachments_container"),className:"flex items-center gap-1",children:l.jsxRuntimeExports.jsx(gt,{mode:"popLayout",children:u.map(D=>l.jsxRuntimeExports.jsx(Me,{snapExit:!0,children:l.jsxRuntimeExports.jsx(nM,{onCancel:()=>d(D.id),file:D})},D.id))})}),l.jsxRuntimeExports.jsx("textarea",{...Oe("chat/input_box/textarea"),onPaste:R,ref:t,id:"chat-input",dir:s,value:a,rows:3,className:ce("max-h-16 [field-sizing:content]","w-full resize-none px-2",u.length===0&&"pt-1","bg-transparent outline-none","placeholder:text-muted-foreground","rtl:placeholder:text-right",e?"text-[16px]":"text-sm"),onChange:D=>o(D.target.value),onKeyDown:async D=>{D.key==="Enter"&&!D.shiftKey&&(D.preventDefault(),w())},placeholder:i.get("write-a-message")})]}),l.jsxRuntimeExports.jsxs("div",{dir:s,className:"gap-2 flex justify-between rtl:text-right",children:[l.jsxRuntimeExports.jsx(Zi,{side:"top",align:"start",content:"attach files, (maximum size 5mb)",children:l.jsxRuntimeExports.jsx(Ke,{onClick:C,size:"fit",variant:"ghost",className:ce("rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"),children:l.jsxRuntimeExports.jsx(gt,{mode:"wait",children:x?l.jsxRuntimeExports.jsx(Me,{children:l.jsxRuntimeExports.jsx(yI,{className:"size-4"})},"paper-clip"):l.jsxRuntimeExports.jsx(Me,{children:l.jsxRuntimeExports.jsx(pI,{className:"size-4"})},"image-icon")})})}),l.jsxRuntimeExports.jsx(Zi,{content:"send message",side:"top",align:"end",children:l.jsxRuntimeExports.jsx(Ke,{size:"fit",onClick:w,disabled:g||f||y,className:"rounded-full size-8 flex items-center justify-center p-0",children:l.jsxRuntimeExports.jsx(gt,{mode:"wait",children:g||f?l.jsxRuntimeExports.jsx(Me,{snapExit:!0,children:l.jsxRuntimeExports.jsx(Ix,{className:"size-4 animate-spin animate-iteration-infinite"})},"loading"):l.jsxRuntimeExports.jsx(Me,{snapExit:!0,children:l.jsxRuntimeExports.jsx(JN,{className:"size-4"})},"send")})})})]})]})]})}function iM(){const{widgetCtx:e}=l.useWidget(),{router:t}=l.useConfig(),{canCreateNewSession:n}=l.useSessions(),{toSessionsScreen:r}=l.useWidgetRouter(),i=Cs();return l.jsxRuntimeExports.jsx("div",{className:"p-2",children:l.jsxRuntimeExports.jsxs("div",{className:"p-2 bg-muted rounded-3xl space-y-2",children:[l.jsxRuntimeExports.jsxs("div",{className:"pl-2 flex items-center gap-1",children:[l.jsxRuntimeExports.jsx(Nx,{className:"size-4 text-emerald-600"}),l.jsxRuntimeExports.jsx("h2",{className:"text-sm font-medium",dir:"auto",children:i.get("session-closed-lead")})]}),l.jsxRuntimeExports.jsx("div",{children:n||t!=null&&t.chatScreenOnly?l.jsxRuntimeExports.jsx(Ke,{onClick:e.resetChat,className:"rounded-2xl w-full",children:i.get("new-conversation")}):l.jsxRuntimeExports.jsx(Ke,{onClick:r,className:"rounded-2xl w-full",children:i.get("back-to-conversations")})})]})})}function sM(){var s;const{initialQuestions:e,initialQuestionsPosition:t}=l.useConfig(),{sessionState:n}=l.useSessions(),{messagesState:r}=l.useMessages(),i=r.messages.length===0;return l.jsxRuntimeExports.jsx("footer",{children:l.jsxRuntimeExports.jsx("div",{children:l.jsxRuntimeExports.jsx(gt,{mode:"wait",children:n.session&&!((s=n.session)!=null&&s.isOpened)?l.jsxRuntimeExports.jsx(Me,{className:"overflow-hidden",overrides:{initial:{height:0},animate:{height:"auto"},exit:{height:0}},children:l.jsxRuntimeExports.jsx(iM,{})},"session-closed"):l.jsxRuntimeExports.jsxs(Me,{className:"overflow-hidden",overrides:{initial:{height:0},animate:{height:"auto"},exit:{height:0}},children:[r.lastAIResMightSolveUserIssue&&l.jsxRuntimeExports.jsx(tM,{}),i&&e&&t!=="below-initial-messages"&&l.jsxRuntimeExports.jsx("div",{className:"flex items-center flex-row justify-end gap-2 flex-wrap px-2",children:e==null?void 0:e.map((a,o)=>l.jsxRuntimeExports.jsx(ud,{suggestion:a},`${a}-${o}`))}),l.jsxRuntimeExports.jsx(rM,{})]},"chat-input")})})})}function oy(){const{contentIframeRef:e}=l.useWidget();return{setWidth:t=>{var n;(n=e==null?void 0:e.current)==null||n.style.setProperty("--opencx-widget-width",t)},setHeight:t=>{var n;(n=e==null?void 0:e.current)==null||n.style.setProperty("--opencx-widget-height",t)}}}function cd({width:e,height:t}){const{isSmallScreen:n}=kn(),{setWidth:r,setHeight:i}=oy();l.reactExports.useEffect(()=>{e&&r(e),t&&i(t)},[n,t,e,r,i])}const nm=Ix;function Ji({name:e,className:t}){const n=(()=>{switch(e){case"Check":return tI;case"CheckCheck":return eI;case"CircleCheck":return Nx;case"CircleCheckBig":return aI;case"CircleX":return oI;case"Expand":return uI;case"Maximize":return gI;case"Maximize2":return mI;case"Minimize":return bI;case"Minimize2":return xI;case"Shrink":return vI;case"SquareCheck":return wI;case"SquareCheckBig":return TI;case"SquareX":return _I;case"X":return so;case void 0:return nm;default:return Bn.isExhaustive(e,Ji.name),nm}})();return l.jsxRuntimeExports.jsx(n,{className:ce("size-4",t)})}function uy({className:e,...t}){return l.jsxRuntimeExports.jsx("div",{className:ce("animate-pulse rounded-md bg-secondary",e),...t})}function ld(){var i;const{data:e}=l.usePreludeData(),{routerState:{screen:t}}=l.useWidgetRouter(),{textContent:n}=l.useConfig();return(()=>{var s,a;switch(t){case"chat":return(s=n==null?void 0:n.chatScreen)==null?void 0:s.headerTitle;case"sessions":return(a=n==null?void 0:n.sessionsScreen)==null?void 0:a.headerTitle;case"welcome":return;default:Bn.isExhaustive(t,ld.name);return}})()??((i=e==null?void 0:e.data)==null?void 0:i.organizationName)??"Chat"}function aM(e){switch(e){case"chat":return Oe("chat/header");case"sessions":return Oe("sessions/header");case"welcome":return;default:Bn.isExhaustive(e,ld.name);return}}function oM(){const{router:e}=l.useConfig(),{routerState:{screen:t},toSessionsScreen:n}=l.useWidgetRouter();return t!=="chat"||e!=null&&e.chatScreenOnly?null:l.jsxRuntimeExports.jsx(Ke,{variant:"ghost",size:"fit",className:"rounded-full",onClick:n,children:l.jsxRuntimeExports.jsx(rI,{className:"size-4"})})}function uM({button:e}){const{setIsOpen:t}=l.useWidgetTrigger(),{isSmallScreen:n}=kn();return n&&e.hideOnSmallScreen||!n&&e.hideOnLargeScreen?null:l.jsxRuntimeExports.jsx(Ke,{variant:"ghost",size:"fit",className:"rounded-full",onClick:()=>t(!1),children:l.jsxRuntimeExports.jsx(Ji,{name:e.icon})})}function Ac({button:e}){const[t,n]=l.reactExports.useState(!1),{routerState:{screen:r}}=l.useWidgetRouter(),{isSmallScreen:i}=kn(),{theme:s}=mi(),{setWidth:a,setHeight:o}=oy();if(r!=="chat"&&r!=="sessions")return null;const u=(()=>{switch(r){case"chat":return s.screens.chat.height;case"sessions":return s.screens.sessions.height;default:return Bn.isExhaustive(r,Ac.name),s.screens.chat.height}})(),c=(()=>{switch(r){case"chat":return s.screens.chat.width;case"sessions":return s.screens.sessions.width;default:return Bn.isExhaustive(r,Ac.name),s.screens.chat.width}})(),d=()=>{n(p=>{const f=!p;return o(f?"100vh":u),a(f?`max(40vw, ${c})`:c),f})};return i&&e.hideOnSmallScreen||!i&&e.hideOnLargeScreen?null:l.jsxRuntimeExports.jsx(Ke,{variant:"ghost",size:"fit",className:"rounded-full",onClick:d,children:l.jsxRuntimeExports.jsx(Ji,{name:e.icon||(t?e.shrinkIcon:e.expandIcon)})})}function cM({button:e}){var c,d,p;const[t,n]=l.reactExports.useState(!1),{widgetCtx:r}=l.useWidget(),{setIsOpen:i}=l.useWidgetTrigger(),{resolveSession:s,sessionState:a}=l.useSessions(),{isSmallScreen:o}=kn(),u=async()=>{const{success:f,error:m}=await s();if(n(!1),!f)return console.error(m);e.onResolved==="close-widget"&&i(!1),e.onResolved==="reset-chat"&&r.resetChat(),e.onResolved==="reset-chat-and-close-widget"&&(i(!1),r.resetChat())};return o&&e.hideOnSmallScreen||!o&&e.hideOnLargeScreen?null:((c=e.confirmation)==null?void 0:c.type)==="modal"?l.jsxRuntimeExports.jsxs(Vx,{open:t,onOpenChange:n,children:[l.jsxRuntimeExports.jsx($x,{asChild:!0,children:l.jsxRuntimeExports.jsx(Ke,{variant:"ghost",size:"fit",className:"rounded-full",disabled:a.isResolvingSession||!((d=a.session)!=null&&d.isOpened),children:l.jsxRuntimeExports.jsx(Ji,{name:e.icon})})}),l.jsxRuntimeExports.jsxs(El,{children:[l.jsxRuntimeExports.jsx(Yx,{children:l.jsxRuntimeExports.jsx(vl,{children:e.confirmation.title||"Close conversation"})}),l.jsxRuntimeExports.jsx(qx,{children:l.jsxRuntimeExports.jsx(Kx,{children:e.confirmation.description||"Are you sure you want to close this conversation?"})}),l.jsxRuntimeExports.jsxs(Gx,{children:[l.jsxRuntimeExports.jsx(Ke,{variant:"secondary",onClick:()=>n(!1),disabled:a.isResolvingSession,children:e.confirmation.cancelButtonText||"No"}),l.jsxRuntimeExports.jsx(Ke,{variant:"destructive",onClick:u,disabled:a.isResolvingSession,children:e.confirmation.confirmButtonText||"Yes"})]})]})]}):l.jsxRuntimeExports.jsx(Ke,{variant:"ghost",size:"fit",className:"rounded-full",onClick:u,disabled:a.isResolvingSession||!((p=a.session)!=null&&p.isOpened),children:l.jsxRuntimeExports.jsx(Ji,{name:e.icon})})}function kc({button:e}){switch(e.functionality){case"close-widget":return l.jsxRuntimeExports.jsx(uM,{button:e});case"expand-shrink":return l.jsxRuntimeExports.jsx(Ac,{button:e});case"resolve-session":return l.jsxRuntimeExports.jsx(cM,{button:e});default:return Bn.isExhaustive(e,kc.name),null}}const lM={functionality:"close-widget",hideOnLargeScreen:!0,icon:"X"};function dM(){const{routerState:{screen:e}}=l.useWidgetRouter(),{headerButtons:t}=l.useConfig(),n=e==="chat"?t==null?void 0:t.chatScreen:e==="sessions"?t==null?void 0:t.sessionsScreen:[];return!n||n.length===0?l.jsxRuntimeExports.jsx(kc,{button:lM}):l.jsxRuntimeExports.jsx(l.jsxRuntimeExports.Fragment,{children:n.map(r=>l.jsxRuntimeExports.jsx(kc,{button:r},`${r.functionality}-${r.icon}`))})}function cy(){const{routerState:{screen:e}}=l.useWidgetRouter(),{isLoading:t}=l.usePreludeData(),n=od(),r=aM(e),i=ld();return l.jsxRuntimeExports.jsx("header",{...r,className:"py-2 px-4 shrink-0",children:l.jsxRuntimeExports.jsxs("div",{dir:n,className:"flex items-center gap-2",children:[l.jsxRuntimeExports.jsx(oM,{}),l.jsxRuntimeExports.jsx("div",{className:ce("flex-1 h-8 flex items-center",e==="sessions"&&"pl-2"),children:l.jsxRuntimeExports.jsx(gt,{mode:"wait",children:t?l.jsxRuntimeExports.jsx(Me,{snapExit:!0,children:l.jsxRuntimeExports.jsx(uy,{className:"h-5 w-1/2"})},"skeleton"):l.jsxRuntimeExports.jsx(Me,{children:l.jsxRuntimeExports.jsx("h2",{className:"font-semibold",children:i})},"organization-name")})}),l.jsxRuntimeExports.jsx(dM,{})]})})}function pM({isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n,...r}){const{componentStore:i}=l.useWidget();if(r.data.action){const a=i.getComponent(r.data.action.name);if(a)return l.jsxRuntimeExports.jsx(a,{...r,id:r.id,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n})}const s=i.getComponent(r.component);return s?l.jsxRuntimeExports.jsx(s,{...r,id:r.id,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n}):l.jsxRuntimeExports.jsx(Ea,{...r,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n})}function rm({messages:e,agent:t,suggestedReplies:n}){return l.jsxRuntimeExports.jsxs("div",{...Oe("chat/agent_msg_group/root"),className:ce("flex items-end gap-2"),children:[l.jsxRuntimeExports.jsx(Zi,{content:t==null?void 0:t.name,side:"right",align:"end",children:l.jsxRuntimeExports.jsx(gc,{...Oe("chat/agent_msg_group/root/avatar"),agent:t,className:"hidden"})}),l.jsxRuntimeExports.jsxs("div",{className:ce("flex-1 flex flex-col gap-2"),children:[l.jsxRuntimeExports.jsxs("div",{...Oe("chat/agent_msg_group/avatar_and_msgs/root"),className:ce("flex items-end gap-2"),children:[l.jsxRuntimeExports.jsx(Zi,{content:t==null?void 0:t.name,side:"right",align:"end",children:l.jsxRuntimeExports.jsx(gc,{...Oe("chat/agent_msg_group/avatar_and_msgs/avatar"),agent:t})}),l.jsxRuntimeExports.jsx("div",{...Oe("chat/agent_msg_group/avatar_and_msgs/msgs"),className:ce("flex-1 flex flex-col gap-1"),children:e.map((r,i,s)=>l.jsxRuntimeExports.jsx(pM,{isFirstInGroup:i===0,isLastInGroup:i===s.length-1,isAloneInGroup:s.length===1,...r},r.id))})]}),n&&n.length>0&&l.jsxRuntimeExports.jsx("div",{...Oe("chat/agent_msg_group/suggestions"),className:ce("flex flex-col gap-1 pl-8"),children:n==null?void 0:n.map((r,i)=>l.jsxRuntimeExports.jsx(ud,{suggestion:r},`${r}-${i}`))})]})]})}function fM({message:e,isFirstInGroup:t,isLastInGroup:n,isAloneInGroup:r}){var i;return l.jsxRuntimeExports.jsxs("div",{...Oe("chat/user_msg/root"),className:"w-5/6 flex flex-col items-end gap-1",children:[e.attachments&&e.attachments.length>0&&l.jsxRuntimeExports.jsx("div",{className:"w-full flex gap-1 flex-wrap justify-end",children:(i=e.attachments)==null?void 0:i.map(s=>l.jsxRuntimeExports.jsx(Xx,{attachment:s},s.id))}),e.content.length>0&&l.jsxRuntimeExports.jsx("div",{...Oe("chat/user_msg/msg"),"data-first":t,"data-last":n,"data-alone":r,className:ce("transition-all","w-fit py-3 px-4 rounded-3xl text-sm","bg-primary text-primary-foreground","break-words [word-break:break-word]","whitespace-pre-wrap",t&&!r&&"rounded-br-md",n&&!r&&"rounded-tr-md",!t&&!n&&!r&&"rounded-r-md"),children:e.content})]})}function hM({messages:e}){return l.jsxRuntimeExports.jsx("div",{...Oe("chat/user_msg_group/root"),className:ce("group","flex flex-col gap-1 justify-end items-end"),children:e.map((t,n,r)=>l.jsxRuntimeExports.jsx(fM,{message:t,isFirstInGroup:n===0,isLastInGroup:n===r.length-1,isAloneInGroup:r.length===1},t.id))})}function mM(e){const t=[];let n=null;return e.forEach(r=>{var i,s,a,o;(!n||((i=n[0])==null?void 0:i.type)!==r.type)&&(n=[],t.push(n)),((s=n[0])==null?void 0:s.type)==="FROM_AGENT"&&r.type==="FROM_AGENT"&&((a=r.agent)==null?void 0:a.id)!==((o=n[0].agent)==null?void 0:o.id)&&(n=[],t.push(n)),n.push(r)}),t}function gM(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="FROM_USER"}function xM(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="FROM_BOT"}function bM(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="FROM_AGENT"}function yM(){const{messagesState:{messages:e}}=l.useMessages(),{isAwaitingBotReply:t}=l.useIsAwaitingBotReply(),{componentStore:n}=l.useWidget(),r=l.useConfig(),{initialQuestions:i,initialQuestionsPosition:s}=r,a=l.reactExports.useMemo(()=>mM(e),[e]),o=r.persistentInitialMessages||[],u=!r.initialMessages||r.initialMessages.length===0?["Hello, how can I help you?"]:r.initialMessages,c=n.getComponent("loading"),d=l.reactExports.useRef(null);function p(){setTimeout(()=>{const f=d.current;f&&(f.scrollTop=f.scrollHeight)},0)}return l.reactExports.useEffect(()=>{p()},[e]),l.jsxRuntimeExports.jsxs("div",{...Oe("chat/msgs/root"),ref:d,className:"max-h-full scroll-smooth relative flex-1 py-2 px-4 flex flex-col gap-2 overflow-auto",children:[l.jsxRuntimeExports.jsx("div",{...Oe("chat/persistent_initial_msgs/root"),children:o.map((f,m,x)=>l.jsxRuntimeExports.jsx(Ea,{component:"bot_message",data:{message:f},id:f,type:"FROM_BOT",timestamp:Date.now().toString(),dataComponentNames:{messageContainer:"chat/persistent_initial_msg/root",message:"chat/persistent_initial_msg/msg"},classNames:{messageContainer:ce("w-full flex flex-col items-center text-center"),message:"w-full bg-transparent border-none shadow-none text-xs"},isFirstInGroup:m===0,isLastInGroup:m===x.length-1,isAloneInGroup:x.length===1},`${f}-${m}`))}),e.length===0&&l.jsxRuntimeExports.jsx(rm,{messages:u.map((f,m)=>({component:"bot_message",data:{message:f},id:`${f}-${m}`,type:"FROM_BOT",timestamp:Date.now().toString()})),suggestedReplies:s==="below-initial-messages"?i:void 0,agent:r.bot?{...r.bot,isAi:!0,id:null}:void 0}),a.map(f=>{var g,b,y;const m=(g=f==null?void 0:f[0])==null?void 0:g.type,x=(b=f[0])==null?void 0:b.id;if(!m||!x)return null;if(gM(f))return l.jsxRuntimeExports.jsx(hM,{messages:f},x);if(xM(f)||bM(f)){const w=(y=f[0])==null?void 0:y.agent;return l.jsxRuntimeExports.jsx(rm,{messages:f,agent:w},x)}return null}),t&&c&&l.jsxRuntimeExports.jsx(c,{agent:r.bot})]})}function ly({className:e}){return l.jsxRuntimeExports.jsx(hI,{className:ce("size-4 animate-spin",e)})}function EM(){const{activeMode:e,Component:t}=l.useModes(),{sendMessage:n}=l.useMessages(),{createStateCheckpoint:r}=l.useSessions(),[i,s]=l.reactExports.useState(!1),a=async o=>{try{s(!0),await n(o)}catch(u){console.error(u)}finally{s(!1)}};return!e||!t?null:l.jsxRuntimeExports.jsx(t,{mode:e,createStateCheckpoint:r,sendMessage:a,isSendingMessage:i})}function vM(){const{messagesState:{isInitialFetchLoading:e}}=l.useMessages(),{isSmallScreen:t}=kn(),{activeMode:n,Component:r}=l.useModes();return{isCanvasOpen:!e&&!t&&!!n&&!!r}}function TM(){const{messagesState:{isInitialFetchLoading:e}}=l.useMessages(),{sessionState:{session:t}}=l.useSessions(),{isCanvasOpen:n}=vM(),{theme:r}=mi();cd({width:n?r.screens.chat.withCanvas.width:r.screens.chat.width,height:n?r.screens.chat.withCanvas.height:r.screens.chat.height});const i=l.reactExports.useRef((t==null?void 0:t.id)||"chat").current;return l.jsxRuntimeExports.jsx("div",{...Oe("chat/root"),className:ce("flex flex-col overflow-hidden"),style:{width:"100vw",maxWidth:"100vw",height:"100vh",maxHeight:"100vh"},children:l.jsxRuntimeExports.jsxs("div",{className:"size-full justify-between flex flex-col",children:[l.jsxRuntimeExports.jsx(cy,{}),l.jsxRuntimeExports.jsx(gt,{mode:"wait",children:e?l.jsxRuntimeExports.jsx(Me,{className:"flex flex-col items-center justify-center w-full flex-1",children:l.jsxRuntimeExports.jsx(ly,{})},"loading"):l.jsxRuntimeExports.jsxs(Me,{className:"flex items-start h-full flex-1 overflow-auto",snapExit:!0,children:[l.jsxRuntimeExports.jsxs("div",{className:ce("flex flex-col h-full overflow-auto transition-all",n?"w-1/2":"w-full"),style:{transitionTimingFunction:r.screens.chat.withCanvas.transitionTimingFunction,transitionDuration:r.screens.chat.withCanvas.transitionDuration},children:[l.jsxRuntimeExports.jsx(yM,{}),l.jsxRuntimeExports.jsx(sM,{})]}),l.jsxRuntimeExports.jsx("div",{className:ce("h-full overflow-auto transition-all",n?"w-1/2":"w-0"),style:{transitionTimingFunction:r.screens.chat.withCanvas.transitionTimingFunction,transitionDuration:r.screens.chat.withCanvas.transitionDuration},children:l.jsxRuntimeExports.jsx(EM,{})})]},i)})]})})}var ke;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const s={};for(const a of i)s[a]=a;return s},e.getValidEnumValues=i=>{const s=e.objectKeys(i).filter(o=>typeof i[i[o]]!="number"),a={};for(const o of s)a[o]=i[o];return e.objectValues(a)},e.objectValues=i=>e.objectKeys(i).map(function(s){return i[s]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const s=[];for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&s.push(a);return s},e.find=(i,s)=>{for(const a of i)if(s(a))return a},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function r(i,s=" | "){return i.map(a=>typeof a=="string"?`'${a}'`:a).join(s)}e.joinValues=r,e.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(ke||(ke={}));var Sc;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Sc||(Sc={}));const Q=ke.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Mn=e=>{switch(typeof e){case"undefined":return Q.undefined;case"string":return Q.string;case"number":return isNaN(e)?Q.nan:Q.number;case"boolean":return Q.boolean;case"function":return Q.function;case"bigint":return Q.bigint;case"symbol":return Q.symbol;case"object":return Array.isArray(e)?Q.array:e===null?Q.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Q.promise:typeof Map<"u"&&e instanceof Map?Q.map:typeof Set<"u"&&e instanceof Set?Q.set:typeof Date<"u"&&e instanceof Date?Q.date:Q.object;default:return Q.unknown}},V=ke.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),wM=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class wt extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(s){return s.message},r={_errors:[]},i=s=>{for(const a of s.issues)if(a.code==="invalid_union")a.unionErrors.map(i);else if(a.code==="invalid_return_type")i(a.returnTypeError);else if(a.code==="invalid_arguments")i(a.argumentsError);else if(a.path.length===0)r._errors.push(n(a));else{let o=r,u=0;for(;u<a.path.length;){const c=a.path[u];u===a.path.length-1?(o[c]=o[c]||{_errors:[]},o[c]._errors.push(n(a))):o[c]=o[c]||{_errors:[]},o=o[c],u++}}};return i(this),r}static assert(t){if(!(t instanceof wt))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ke.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}wt.create=e=>new wt(e);const ni=(e,t)=>{let n;switch(e.code){case V.invalid_type:e.received===Q.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case V.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ke.jsonStringifyReplacer)}`;break;case V.unrecognized_keys:n=`Unrecognized key(s) in object: ${ke.joinValues(e.keys,", ")}`;break;case V.invalid_union:n="Invalid input";break;case V.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ke.joinValues(e.options)}`;break;case V.invalid_enum_value:n=`Invalid enum value. Expected ${ke.joinValues(e.options)}, received '${e.received}'`;break;case V.invalid_arguments:n="Invalid function arguments";break;case V.invalid_return_type:n="Invalid function return type";break;case V.invalid_date:n="Invalid date";break;case V.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ke.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case V.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case V.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case V.custom:n="Invalid input";break;case V.invalid_intersection_types:n="Intersection results could not be merged";break;case V.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case V.not_finite:n="Number must be finite";break;default:n=t.defaultError,ke.assertNever(e)}return{message:n}};let dy=ni;function _M(e){dy=e}function Oa(){return dy}const Pa=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,s=[...n,...i.path||[]],a={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let o="";const u=r.filter(c=>!!c).slice().reverse();for(const c of u)o=c(a,{data:t,defaultError:o}).message;return{...i,path:s,message:o}},CM=[];function G(e,t){const n=Oa(),r=Pa({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===ni?void 0:ni].filter(i=>!!i)});e.common.issues.push(r)}class at{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return xe;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const s=await i.key,a=await i.value;r.push({key:s,value:a})}return at.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:s,value:a}=i;if(s.status==="aborted"||a.status==="aborted")return xe;s.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof a.value<"u"||i.alwaysSet)&&(r[s.value]=a.value)}return{status:t.value,value:r}}}const xe=Object.freeze({status:"aborted"}),Fr=e=>({status:"dirty",value:e}),pt=e=>({status:"valid",value:e}),Rc=e=>e.status==="aborted",Nc=e=>e.status==="dirty",es=e=>e.status==="valid",ts=e=>typeof Promise<"u"&&e instanceof Promise;function Da(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function py(e,t,n,r,i){if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var ae;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ae||(ae={}));var ki,Si;class rn{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const im=(e,t)=>{if(es(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new wt(e.common.issues);return this._error=n,this._error}}};function Ee(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(a,o)=>{var u,c;const{message:d}=e;return a.code==="invalid_enum_value"?{message:d??o.defaultError}:typeof o.data>"u"?{message:(u=d??r)!==null&&u!==void 0?u:o.defaultError}:a.code!=="invalid_type"?{message:o.defaultError}:{message:(c=d??n)!==null&&c!==void 0?c:o.defaultError}},description:i}}class we{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Mn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Mn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new at,ctx:{common:t.parent.common,data:t.data,parsedType:Mn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(ts(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const i={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Mn(t)},s=this._parseSync({data:t,path:i.path,parent:i});return im(i,s)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Mn(t)},i=this._parse({data:t,path:r.path,parent:r}),s=await(ts(i)?i:Promise.resolve(i));return im(r,s)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,s)=>{const a=t(i),o=()=>s.addIssue({code:V.custom,...r(i)});return typeof Promise<"u"&&a instanceof Promise?a.then(u=>u?!0:(o(),!1)):a?!0:(o(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new $t({schema:this,typeName:me.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return en.create(this,this._def)}nullable(){return Xn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ut.create(this,this._def)}promise(){return ii.create(this,this._def)}or(t){return ss.create([this,t],this._def)}and(t){return as.create(this,t,this._def)}transform(t){return new $t({...Ee(this._def),schema:this,typeName:me.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new ds({...Ee(this._def),innerType:this,defaultValue:n,typeName:me.ZodDefault})}brand(){return new dd({typeName:me.ZodBranded,type:this,...Ee(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new ps({...Ee(this._def),innerType:this,catchValue:n,typeName:me.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return As.create(this,t)}readonly(){return fs.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const AM=/^c[^\s-]{8,}$/i,kM=/^[0-9a-z]+$/,SM=/^[0-9A-HJKMNP-TV-Z]{26}$/,RM=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,NM=/^[a-z0-9_-]{21}$/i,IM=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,OM=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,PM="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Cu;const DM=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,LM=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,MM=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,fy="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",jM=new RegExp(`^${fy}$`);function hy(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function FM(e){return new RegExp(`^${hy(e)}$`)}function my(e){let t=`${fy}T${hy(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function BM(e,t){return!!((t==="v4"||!t)&&DM.test(e)||(t==="v6"||!t)&&LM.test(e))}class Bt extends we{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Q.string){const s=this._getOrReturnCtx(t);return G(s,{code:V.invalid_type,expected:Q.string,received:s.parsedType}),xe}const r=new at;let i;for(const s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(i=this._getOrReturnCtx(t,i),G(i,{code:V.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="max")t.data.length>s.value&&(i=this._getOrReturnCtx(t,i),G(i,{code:V.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){const a=t.data.length>s.value,o=t.data.length<s.value;(a||o)&&(i=this._getOrReturnCtx(t,i),a?G(i,{code:V.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):o&&G(i,{code:V.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),r.dirty())}else if(s.kind==="email")OM.test(t.data)||(i=this._getOrReturnCtx(t,i),G(i,{validation:"email",code:V.invalid_string,message:s.message}),r.dirty());else if(s.kind==="emoji")Cu||(Cu=new RegExp(PM,"u")),Cu.test(t.data)||(i=this._getOrReturnCtx(t,i),G(i,{validation:"emoji",code:V.invalid_string,message:s.message}),r.dirty());else if(s.kind==="uuid")RM.test(t.data)||(i=this._getOrReturnCtx(t,i),G(i,{validation:"uuid",code:V.invalid_string,message:s.message}),r.dirty());else if(s.kind==="nanoid")NM.test(t.data)||(i=this._getOrReturnCtx(t,i),G(i,{validation:"nanoid",code:V.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid")AM.test(t.data)||(i=this._getOrReturnCtx(t,i),G(i,{validation:"cuid",code:V.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid2")kM.test(t.data)||(i=this._getOrReturnCtx(t,i),G(i,{validation:"cuid2",code:V.invalid_string,message:s.message}),r.dirty());else if(s.kind==="ulid")SM.test(t.data)||(i=this._getOrReturnCtx(t,i),G(i,{validation:"ulid",code:V.invalid_string,message:s.message}),r.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),G(i,{validation:"url",code:V.invalid_string,message:s.message}),r.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),G(i,{validation:"regex",code:V.invalid_string,message:s.message}),r.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(t,i),G(i,{code:V.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),r.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(i=this._getOrReturnCtx(t,i),G(i,{code:V.invalid_string,validation:{startsWith:s.value},message:s.message}),r.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(i=this._getOrReturnCtx(t,i),G(i,{code:V.invalid_string,validation:{endsWith:s.value},message:s.message}),r.dirty()):s.kind==="datetime"?my(s).test(t.data)||(i=this._getOrReturnCtx(t,i),G(i,{code:V.invalid_string,validation:"datetime",message:s.message}),r.dirty()):s.kind==="date"?jM.test(t.data)||(i=this._getOrReturnCtx(t,i),G(i,{code:V.invalid_string,validation:"date",message:s.message}),r.dirty()):s.kind==="time"?FM(s).test(t.data)||(i=this._getOrReturnCtx(t,i),G(i,{code:V.invalid_string,validation:"time",message:s.message}),r.dirty()):s.kind==="duration"?IM.test(t.data)||(i=this._getOrReturnCtx(t,i),G(i,{validation:"duration",code:V.invalid_string,message:s.message}),r.dirty()):s.kind==="ip"?BM(t.data,s.version)||(i=this._getOrReturnCtx(t,i),G(i,{validation:"ip",code:V.invalid_string,message:s.message}),r.dirty()):s.kind==="base64"?MM.test(t.data)||(i=this._getOrReturnCtx(t,i),G(i,{validation:"base64",code:V.invalid_string,message:s.message}),r.dirty()):ke.assertNever(s);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:V.invalid_string,...ae.errToObj(r)})}_addCheck(t){return new Bt({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ae.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ae.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ae.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ae.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ae.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ae.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ae.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ae.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ae.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ae.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...ae.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...ae.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ae.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ae.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ae.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ae.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ae.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ae.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ae.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ae.errToObj(n)})}nonempty(t){return this.min(1,ae.errToObj(t))}trim(){return new Bt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Bt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Bt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Bt.create=e=>{var t;return new Bt({checks:[],typeName:me.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ee(e)})};function HM(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,s=parseInt(e.toFixed(i).replace(".","")),a=parseInt(t.toFixed(i).replace(".",""));return s%a/Math.pow(10,i)}class qn extends we{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Q.number){const s=this._getOrReturnCtx(t);return G(s,{code:V.invalid_type,expected:Q.number,received:s.parsedType}),xe}let r;const i=new at;for(const s of this._def.checks)s.kind==="int"?ke.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),G(r,{code:V.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(r=this._getOrReturnCtx(t,r),G(r,{code:V.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),G(r,{code:V.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?HM(t.data,s.value)!==0&&(r=this._getOrReturnCtx(t,r),G(r,{code:V.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),G(r,{code:V.not_finite,message:s.message}),i.dirty()):ke.assertNever(s);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ae.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ae.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ae.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ae.toString(n))}setLimit(t,n,r,i){return new qn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ae.toString(i)}]})}_addCheck(t){return new qn({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ae.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ae.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ae.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ae.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ae.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ae.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ae.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ae.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ae.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ke.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}qn.create=e=>new qn({checks:[],typeName:me.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ee(e)});class Gn extends we{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==Q.bigint){const s=this._getOrReturnCtx(t);return G(s,{code:V.invalid_type,expected:Q.bigint,received:s.parsedType}),xe}let r;const i=new at;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(r=this._getOrReturnCtx(t,r),G(r,{code:V.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),G(r,{code:V.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),G(r,{code:V.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):ke.assertNever(s);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ae.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ae.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ae.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ae.toString(n))}setLimit(t,n,r,i){return new Gn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ae.toString(i)}]})}_addCheck(t){return new Gn({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ae.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ae.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ae.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ae.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ae.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Gn.create=e=>{var t;return new Gn({checks:[],typeName:me.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ee(e)})};class ns extends we{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Q.boolean){const r=this._getOrReturnCtx(t);return G(r,{code:V.invalid_type,expected:Q.boolean,received:r.parsedType}),xe}return pt(t.data)}}ns.create=e=>new ns({typeName:me.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ee(e)});class br extends we{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Q.date){const s=this._getOrReturnCtx(t);return G(s,{code:V.invalid_type,expected:Q.date,received:s.parsedType}),xe}if(isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return G(s,{code:V.invalid_date}),xe}const r=new at;let i;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(i=this._getOrReturnCtx(t,i),G(i,{code:V.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),r.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(i=this._getOrReturnCtx(t,i),G(i,{code:V.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):ke.assertNever(s);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new br({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ae.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ae.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}br.create=e=>new br({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:me.ZodDate,...Ee(e)});class La extends we{_parse(t){if(this._getType(t)!==Q.symbol){const r=this._getOrReturnCtx(t);return G(r,{code:V.invalid_type,expected:Q.symbol,received:r.parsedType}),xe}return pt(t.data)}}La.create=e=>new La({typeName:me.ZodSymbol,...Ee(e)});class rs extends we{_parse(t){if(this._getType(t)!==Q.undefined){const r=this._getOrReturnCtx(t);return G(r,{code:V.invalid_type,expected:Q.undefined,received:r.parsedType}),xe}return pt(t.data)}}rs.create=e=>new rs({typeName:me.ZodUndefined,...Ee(e)});class is extends we{_parse(t){if(this._getType(t)!==Q.null){const r=this._getOrReturnCtx(t);return G(r,{code:V.invalid_type,expected:Q.null,received:r.parsedType}),xe}return pt(t.data)}}is.create=e=>new is({typeName:me.ZodNull,...Ee(e)});class ri extends we{constructor(){super(...arguments),this._any=!0}_parse(t){return pt(t.data)}}ri.create=e=>new ri({typeName:me.ZodAny,...Ee(e)});class hr extends we{constructor(){super(...arguments),this._unknown=!0}_parse(t){return pt(t.data)}}hr.create=e=>new hr({typeName:me.ZodUnknown,...Ee(e)});class Cn extends we{_parse(t){const n=this._getOrReturnCtx(t);return G(n,{code:V.invalid_type,expected:Q.never,received:n.parsedType}),xe}}Cn.create=e=>new Cn({typeName:me.ZodNever,...Ee(e)});class Ma extends we{_parse(t){if(this._getType(t)!==Q.undefined){const r=this._getOrReturnCtx(t);return G(r,{code:V.invalid_type,expected:Q.void,received:r.parsedType}),xe}return pt(t.data)}}Ma.create=e=>new Ma({typeName:me.ZodVoid,...Ee(e)});class Ut extends we{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Q.array)return G(n,{code:V.invalid_type,expected:Q.array,received:n.parsedType}),xe;if(i.exactLength!==null){const a=n.data.length>i.exactLength.value,o=n.data.length<i.exactLength.value;(a||o)&&(G(n,{code:a?V.too_big:V.too_small,minimum:o?i.exactLength.value:void 0,maximum:a?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(G(n,{code:V.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(G(n,{code:V.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((a,o)=>i.type._parseAsync(new rn(n,a,n.path,o)))).then(a=>at.mergeArray(r,a));const s=[...n.data].map((a,o)=>i.type._parseSync(new rn(n,a,n.path,o)));return at.mergeArray(r,s)}get element(){return this._def.type}min(t,n){return new Ut({...this._def,minLength:{value:t,message:ae.toString(n)}})}max(t,n){return new Ut({...this._def,maxLength:{value:t,message:ae.toString(n)}})}length(t,n){return new Ut({...this._def,exactLength:{value:t,message:ae.toString(n)}})}nonempty(t){return this.min(1,t)}}Ut.create=(e,t)=>new Ut({type:e,minLength:null,maxLength:null,exactLength:null,typeName:me.ZodArray,...Ee(t)});function Ir(e){if(e instanceof $e){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=en.create(Ir(r))}return new $e({...e._def,shape:()=>t})}else return e instanceof Ut?new Ut({...e._def,type:Ir(e.element)}):e instanceof en?en.create(Ir(e.unwrap())):e instanceof Xn?Xn.create(Ir(e.unwrap())):e instanceof sn?sn.create(e.items.map(t=>Ir(t))):e}class $e extends we{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=ke.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==Q.object){const c=this._getOrReturnCtx(t);return G(c,{code:V.invalid_type,expected:Q.object,received:c.parsedType}),xe}const{status:r,ctx:i}=this._processInputParams(t),{shape:s,keys:a}=this._getCached(),o=[];if(!(this._def.catchall instanceof Cn&&this._def.unknownKeys==="strip"))for(const c in i.data)a.includes(c)||o.push(c);const u=[];for(const c of a){const d=s[c],p=i.data[c];u.push({key:{status:"valid",value:c},value:d._parse(new rn(i,p,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof Cn){const c=this._def.unknownKeys;if(c==="passthrough")for(const d of o)u.push({key:{status:"valid",value:d},value:{status:"valid",value:i.data[d]}});else if(c==="strict")o.length>0&&(G(i,{code:V.unrecognized_keys,keys:o}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const d of o){const p=i.data[d];u.push({key:{status:"valid",value:d},value:c._parse(new rn(i,p,i.path,d)),alwaysSet:d in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const c=[];for(const d of u){const p=await d.key,f=await d.value;c.push({key:p,value:f,alwaysSet:d.alwaysSet})}return c}).then(c=>at.mergeObjectSync(r,c)):at.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(t){return ae.errToObj,new $e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,s,a,o;const u=(a=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,n,r).message)!==null&&a!==void 0?a:r.defaultError;return n.code==="unrecognized_keys"?{message:(o=ae.errToObj(t).message)!==null&&o!==void 0?o:u}:{message:u}}}:{}})}strip(){return new $e({...this._def,unknownKeys:"strip"})}passthrough(){return new $e({...this._def,unknownKeys:"passthrough"})}extend(t){return new $e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new $e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:me.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new $e({...this._def,catchall:t})}pick(t){const n={};return ke.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new $e({...this._def,shape:()=>n})}omit(t){const n={};return ke.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new $e({...this._def,shape:()=>n})}deepPartial(){return Ir(this)}partial(t){const n={};return ke.objectKeys(this.shape).forEach(r=>{const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}),new $e({...this._def,shape:()=>n})}required(t){const n={};return ke.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof en;)s=s._def.innerType;n[r]=s}}),new $e({...this._def,shape:()=>n})}keyof(){return gy(ke.objectKeys(this.shape))}}$e.create=(e,t)=>new $e({shape:()=>e,unknownKeys:"strip",catchall:Cn.create(),typeName:me.ZodObject,...Ee(t)});$e.strictCreate=(e,t)=>new $e({shape:()=>e,unknownKeys:"strict",catchall:Cn.create(),typeName:me.ZodObject,...Ee(t)});$e.lazycreate=(e,t)=>new $e({shape:e,unknownKeys:"strip",catchall:Cn.create(),typeName:me.ZodObject,...Ee(t)});class ss extends we{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(s){for(const o of s)if(o.result.status==="valid")return o.result;for(const o of s)if(o.result.status==="dirty")return n.common.issues.push(...o.ctx.common.issues),o.result;const a=s.map(o=>new wt(o.ctx.common.issues));return G(n,{code:V.invalid_union,unionErrors:a}),xe}if(n.common.async)return Promise.all(r.map(async s=>{const a={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(i);{let s;const a=[];for(const u of r){const c={...n,common:{...n.common,issues:[]},parent:null},d=u._parseSync({data:n.data,path:n.path,parent:c});if(d.status==="valid")return d;d.status==="dirty"&&!s&&(s={result:d,ctx:c}),c.common.issues.length&&a.push(c.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const o=a.map(u=>new wt(u));return G(n,{code:V.invalid_union,unionErrors:o}),xe}}get options(){return this._def.options}}ss.create=(e,t)=>new ss({options:e,typeName:me.ZodUnion,...Ee(t)});const mn=e=>e instanceof us?mn(e.schema):e instanceof $t?mn(e.innerType()):e instanceof cs?[e.value]:e instanceof Kn?e.options:e instanceof ls?ke.objectValues(e.enum):e instanceof ds?mn(e._def.innerType):e instanceof rs?[void 0]:e instanceof is?[null]:e instanceof en?[void 0,...mn(e.unwrap())]:e instanceof Xn?[null,...mn(e.unwrap())]:e instanceof dd||e instanceof fs?mn(e.unwrap()):e instanceof ps?mn(e._def.innerType):[];class vo extends we{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Q.object)return G(n,{code:V.invalid_type,expected:Q.object,received:n.parsedType}),xe;const r=this.discriminator,i=n.data[r],s=this.optionsMap.get(i);return s?n.common.async?s._parseAsync({data:n.data,path:n.path,parent:n}):s._parseSync({data:n.data,path:n.path,parent:n}):(G(n,{code:V.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),xe)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const s of n){const a=mn(s.shape[t]);if(!a.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const o of a){if(i.has(o))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(o)}`);i.set(o,s)}}return new vo({typeName:me.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...Ee(r)})}}function Ic(e,t){const n=Mn(e),r=Mn(t);if(e===t)return{valid:!0,data:e};if(n===Q.object&&r===Q.object){const i=ke.objectKeys(t),s=ke.objectKeys(e).filter(o=>i.indexOf(o)!==-1),a={...e,...t};for(const o of s){const u=Ic(e[o],t[o]);if(!u.valid)return{valid:!1};a[o]=u.data}return{valid:!0,data:a}}else if(n===Q.array&&r===Q.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let s=0;s<e.length;s++){const a=e[s],o=t[s],u=Ic(a,o);if(!u.valid)return{valid:!1};i.push(u.data)}return{valid:!0,data:i}}else return n===Q.date&&r===Q.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class as extends we{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(s,a)=>{if(Rc(s)||Rc(a))return xe;const o=Ic(s.value,a.value);return o.valid?((Nc(s)||Nc(a))&&n.dirty(),{status:n.value,value:o.data}):(G(r,{code:V.invalid_intersection_types}),xe)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,a])=>i(s,a)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}as.create=(e,t,n)=>new as({left:e,right:t,typeName:me.ZodIntersection,...Ee(n)});class sn extends we{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Q.array)return G(r,{code:V.invalid_type,expected:Q.array,received:r.parsedType}),xe;if(r.data.length<this._def.items.length)return G(r,{code:V.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),xe;!this._def.rest&&r.data.length>this._def.items.length&&(G(r,{code:V.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...r.data].map((a,o)=>{const u=this._def.items[o]||this._def.rest;return u?u._parse(new rn(r,a,r.path,o)):null}).filter(a=>!!a);return r.common.async?Promise.all(s).then(a=>at.mergeArray(n,a)):at.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new sn({...this._def,rest:t})}}sn.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new sn({items:e,typeName:me.ZodTuple,rest:null,...Ee(t)})};class os extends we{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Q.object)return G(r,{code:V.invalid_type,expected:Q.object,received:r.parsedType}),xe;const i=[],s=this._def.keyType,a=this._def.valueType;for(const o in r.data)i.push({key:s._parse(new rn(r,o,r.path,o)),value:a._parse(new rn(r,r.data[o],r.path,o)),alwaysSet:o in r.data});return r.common.async?at.mergeObjectAsync(n,i):at.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof we?new os({keyType:t,valueType:n,typeName:me.ZodRecord,...Ee(r)}):new os({keyType:Bt.create(),valueType:t,typeName:me.ZodRecord,...Ee(n)})}}class ja extends we{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Q.map)return G(r,{code:V.invalid_type,expected:Q.map,received:r.parsedType}),xe;const i=this._def.keyType,s=this._def.valueType,a=[...r.data.entries()].map(([o,u],c)=>({key:i._parse(new rn(r,o,r.path,[c,"key"])),value:s._parse(new rn(r,u,r.path,[c,"value"]))}));if(r.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const u of a){const c=await u.key,d=await u.value;if(c.status==="aborted"||d.status==="aborted")return xe;(c.status==="dirty"||d.status==="dirty")&&n.dirty(),o.set(c.value,d.value)}return{status:n.value,value:o}})}else{const o=new Map;for(const u of a){const c=u.key,d=u.value;if(c.status==="aborted"||d.status==="aborted")return xe;(c.status==="dirty"||d.status==="dirty")&&n.dirty(),o.set(c.value,d.value)}return{status:n.value,value:o}}}}ja.create=(e,t,n)=>new ja({valueType:t,keyType:e,typeName:me.ZodMap,...Ee(n)});class yr extends we{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Q.set)return G(r,{code:V.invalid_type,expected:Q.set,received:r.parsedType}),xe;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(G(r,{code:V.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(G(r,{code:V.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const s=this._def.valueType;function a(u){const c=new Set;for(const d of u){if(d.status==="aborted")return xe;d.status==="dirty"&&n.dirty(),c.add(d.value)}return{status:n.value,value:c}}const o=[...r.data.values()].map((u,c)=>s._parse(new rn(r,u,r.path,c)));return r.common.async?Promise.all(o).then(u=>a(u)):a(o)}min(t,n){return new yr({...this._def,minSize:{value:t,message:ae.toString(n)}})}max(t,n){return new yr({...this._def,maxSize:{value:t,message:ae.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}yr.create=(e,t)=>new yr({valueType:e,minSize:null,maxSize:null,typeName:me.ZodSet,...Ee(t)});class $r extends we{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Q.function)return G(n,{code:V.invalid_type,expected:Q.function,received:n.parsedType}),xe;function r(o,u){return Pa({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Oa(),ni].filter(c=>!!c),issueData:{code:V.invalid_arguments,argumentsError:u}})}function i(o,u){return Pa({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Oa(),ni].filter(c=>!!c),issueData:{code:V.invalid_return_type,returnTypeError:u}})}const s={errorMap:n.common.contextualErrorMap},a=n.data;if(this._def.returns instanceof ii){const o=this;return pt(async function(...u){const c=new wt([]),d=await o._def.args.parseAsync(u,s).catch(m=>{throw c.addIssue(r(u,m)),c}),p=await Reflect.apply(a,this,d);return await o._def.returns._def.type.parseAsync(p,s).catch(m=>{throw c.addIssue(i(p,m)),c})})}else{const o=this;return pt(function(...u){const c=o._def.args.safeParse(u,s);if(!c.success)throw new wt([r(u,c.error)]);const d=Reflect.apply(a,this,c.data),p=o._def.returns.safeParse(d,s);if(!p.success)throw new wt([i(d,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new $r({...this._def,args:sn.create(t).rest(hr.create())})}returns(t){return new $r({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new $r({args:t||sn.create([]).rest(hr.create()),returns:n||hr.create(),typeName:me.ZodFunction,...Ee(r)})}}class us extends we{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}us.create=(e,t)=>new us({getter:e,typeName:me.ZodLazy,...Ee(t)});class cs extends we{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return G(n,{received:n.data,code:V.invalid_literal,expected:this._def.value}),xe}return{status:"valid",value:t.data}}get value(){return this._def.value}}cs.create=(e,t)=>new cs({value:e,typeName:me.ZodLiteral,...Ee(t)});function gy(e,t){return new Kn({values:e,typeName:me.ZodEnum,...Ee(t)})}class Kn extends we{constructor(){super(...arguments),ki.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return G(n,{expected:ke.joinValues(r),received:n.parsedType,code:V.invalid_type}),xe}if(Da(this,ki)||py(this,ki,new Set(this._def.values)),!Da(this,ki).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return G(n,{received:n.data,code:V.invalid_enum_value,options:r}),xe}return pt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Kn.create(t,{...this._def,...n})}exclude(t,n=this._def){return Kn.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}ki=new WeakMap;Kn.create=gy;class ls extends we{constructor(){super(...arguments),Si.set(this,void 0)}_parse(t){const n=ke.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Q.string&&r.parsedType!==Q.number){const i=ke.objectValues(n);return G(r,{expected:ke.joinValues(i),received:r.parsedType,code:V.invalid_type}),xe}if(Da(this,Si)||py(this,Si,new Set(ke.getValidEnumValues(this._def.values))),!Da(this,Si).has(t.data)){const i=ke.objectValues(n);return G(r,{received:r.data,code:V.invalid_enum_value,options:i}),xe}return pt(t.data)}get enum(){return this._def.values}}Si=new WeakMap;ls.create=(e,t)=>new ls({values:e,typeName:me.ZodNativeEnum,...Ee(t)});class ii extends we{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Q.promise&&n.common.async===!1)return G(n,{code:V.invalid_type,expected:Q.promise,received:n.parsedType}),xe;const r=n.parsedType===Q.promise?n.data:Promise.resolve(n.data);return pt(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ii.create=(e,t)=>new ii({type:e,typeName:me.ZodPromise,...Ee(t)});class $t extends we{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===me.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,s={addIssue:a=>{G(r,a),a.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){const a=i.transform(r.data,s);if(r.common.async)return Promise.resolve(a).then(async o=>{if(n.value==="aborted")return xe;const u=await this._def.schema._parseAsync({data:o,path:r.path,parent:r});return u.status==="aborted"?xe:u.status==="dirty"||n.value==="dirty"?Fr(u.value):u});{if(n.value==="aborted")return xe;const o=this._def.schema._parseSync({data:a,path:r.path,parent:r});return o.status==="aborted"?xe:o.status==="dirty"||n.value==="dirty"?Fr(o.value):o}}if(i.type==="refinement"){const a=o=>{const u=i.refinement(o,s);if(r.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?xe:(o.status==="dirty"&&n.dirty(),a(o.value),{status:n.value,value:o.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>o.status==="aborted"?xe:(o.status==="dirty"&&n.dirty(),a(o.value).then(()=>({status:n.value,value:o.value}))))}if(i.type==="transform")if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!es(a))return a;const o=i.transform(a.value,s);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:o}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>es(a)?Promise.resolve(i.transform(a.value,s)).then(o=>({status:n.value,value:o})):a);ke.assertNever(i)}}$t.create=(e,t,n)=>new $t({schema:e,typeName:me.ZodEffects,effect:t,...Ee(n)});$t.createWithPreprocess=(e,t,n)=>new $t({schema:t,effect:{type:"preprocess",transform:e},typeName:me.ZodEffects,...Ee(n)});class en extends we{_parse(t){return this._getType(t)===Q.undefined?pt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}en.create=(e,t)=>new en({innerType:e,typeName:me.ZodOptional,...Ee(t)});class Xn extends we{_parse(t){return this._getType(t)===Q.null?pt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Xn.create=(e,t)=>new Xn({innerType:e,typeName:me.ZodNullable,...Ee(t)});class ds extends we{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Q.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}ds.create=(e,t)=>new ds({innerType:e,typeName:me.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ee(t)});class ps extends we{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return ts(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new wt(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new wt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ps.create=(e,t)=>new ps({innerType:e,typeName:me.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ee(t)});class Fa extends we{_parse(t){if(this._getType(t)!==Q.nan){const r=this._getOrReturnCtx(t);return G(r,{code:V.invalid_type,expected:Q.nan,received:r.parsedType}),xe}return{status:"valid",value:t.data}}}Fa.create=e=>new Fa({typeName:me.ZodNaN,...Ee(e)});const UM=Symbol("zod_brand");class dd extends we{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class As extends we{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?xe:s.status==="dirty"?(n.dirty(),Fr(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?xe:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new As({in:t,out:n,typeName:me.ZodPipeline})}}class fs extends we{_parse(t){const n=this._def.innerType._parse(t),r=i=>(es(i)&&(i.value=Object.freeze(i.value)),i);return ts(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}fs.create=(e,t)=>new fs({innerType:e,typeName:me.ZodReadonly,...Ee(t)});function xy(e,t={},n){return e?ri.create().superRefine((r,i)=>{var s,a;if(!e(r)){const o=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,u=(a=(s=o.fatal)!==null&&s!==void 0?s:n)!==null&&a!==void 0?a:!0,c=typeof o=="string"?{message:o}:o;i.addIssue({code:"custom",...c,fatal:u})}}):ri.create()}const zM={object:$e.lazycreate};var me;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(me||(me={}));const VM=(e,t={message:`Input not instance of ${e.name}`})=>xy(n=>n instanceof e,t),by=Bt.create,yy=qn.create,$M=Fa.create,WM=Gn.create,Ey=ns.create,YM=br.create,qM=La.create,GM=rs.create,KM=is.create,XM=ri.create,ZM=hr.create,QM=Cn.create,JM=Ma.create,e8=Ut.create,t8=$e.create,n8=$e.strictCreate,r8=ss.create,i8=vo.create,s8=as.create,a8=sn.create,o8=os.create,u8=ja.create,c8=yr.create,l8=$r.create,d8=us.create,p8=cs.create,f8=Kn.create,h8=ls.create,m8=ii.create,sm=$t.create,g8=en.create,x8=Xn.create,b8=$t.createWithPreprocess,y8=As.create,E8=()=>by().optional(),v8=()=>yy().optional(),T8=()=>Ey().optional(),w8={string:e=>Bt.create({...e,coerce:!0}),number:e=>qn.create({...e,coerce:!0}),boolean:e=>ns.create({...e,coerce:!0}),bigint:e=>Gn.create({...e,coerce:!0}),date:e=>br.create({...e,coerce:!0})},_8=xe;var Au=Object.freeze({__proto__:null,defaultErrorMap:ni,setErrorMap:_M,getErrorMap:Oa,makeIssue:Pa,EMPTY_PATH:CM,addIssueToContext:G,ParseStatus:at,INVALID:xe,DIRTY:Fr,OK:pt,isAborted:Rc,isDirty:Nc,isValid:es,isAsync:ts,get util(){return ke},get objectUtil(){return Sc},ZodParsedType:Q,getParsedType:Mn,ZodType:we,datetimeRegex:my,ZodString:Bt,ZodNumber:qn,ZodBigInt:Gn,ZodBoolean:ns,ZodDate:br,ZodSymbol:La,ZodUndefined:rs,ZodNull:is,ZodAny:ri,ZodUnknown:hr,ZodNever:Cn,ZodVoid:Ma,ZodArray:Ut,ZodObject:$e,ZodUnion:ss,ZodDiscriminatedUnion:vo,ZodIntersection:as,ZodTuple:sn,ZodRecord:os,ZodMap:ja,ZodSet:yr,ZodFunction:$r,ZodLazy:us,ZodLiteral:cs,ZodEnum:Kn,ZodNativeEnum:ls,ZodPromise:ii,ZodEffects:$t,ZodTransformer:$t,ZodOptional:en,ZodNullable:Xn,ZodDefault:ds,ZodCatch:ps,ZodNaN:Fa,BRAND:UM,ZodBranded:dd,ZodPipeline:As,ZodReadonly:fs,custom:xy,Schema:we,ZodSchema:we,late:zM,get ZodFirstPartyTypeKind(){return me},coerce:w8,any:XM,array:e8,bigint:WM,boolean:Ey,date:YM,discriminatedUnion:i8,effect:sm,enum:f8,function:l8,instanceof:VM,intersection:s8,lazy:d8,literal:p8,map:u8,nan:$M,nativeEnum:h8,never:QM,null:KM,nullable:x8,number:yy,object:t8,oboolean:T8,onumber:v8,optional:g8,ostring:E8,pipeline:y8,preprocess:b8,promise:m8,record:o8,set:c8,strictObject:n8,string:by,symbol:qM,transformer:sm,tuple:a8,undefined:GM,union:r8,unknown:ZM,void:JM,NEVER:_8,ZodIssueCode:V,quotelessJson:wM,ZodError:wt});const aa=l.reactExports.forwardRef(({className:e,type:t,...n},r)=>{const{isSmallScreen:i}=kn(),s=od();return l.jsxRuntimeExports.jsx(xn,{ref:r,children:l.jsxRuntimeExports.jsx("input",{dir:s,type:t,className:ce(i?"text-[16px]":"text-sm","flex w-full rounded-xl p-2 ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-primary-foreground placeholder:text-muted-foreground/75 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition","rtl:placeholder:text-right","rounded-2xl px-4","border shadow-sm",e),...n})})});aa.displayName="Input";function C8({className:e}){return l.jsxRuntimeExports.jsx("svg",{width:"26",height:"32",viewBox:"0 0 26 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:ce("text-primary-foreground",e),children:l.jsxRuntimeExports.jsx("path",{d:"M1.34103 25.6132H5.44245C5.74203 25.6228 6.02673 25.7462 6.23867 25.9582C6.45062 26.1703 6.5739 26.4551 6.58348 26.7548V30.8584C6.59305 31.1581 6.71634 31.443 6.92828 31.655C7.14023 31.8671 7.42492 31.9904 7.7245 32H18.2894C18.589 31.9904 18.8737 31.8671 19.0856 31.655C19.2976 31.443 19.4209 31.1581 19.4304 30.8584V26.7548C19.4401 26.4545 19.5638 26.1692 19.7765 25.957C19.9892 25.7449 20.2748 25.6219 20.5749 25.6132H24.659C24.9586 25.6036 25.2433 25.4803 25.4552 25.2682C25.6671 25.0562 25.7904 24.7713 25.8 24.4716V7.52839C25.7904 7.22865 25.6671 6.94381 25.4552 6.73176C25.2433 6.5197 24.9586 6.39635 24.659 6.38677H20.561C20.2603 6.37802 19.9742 6.25457 19.7614 6.04169C19.5487 5.82881 19.4253 5.54261 19.4165 5.24168V1.14161C19.4072 0.84419 19.2858 0.561291 19.0768 0.349589C18.8678 0.137887 18.5865 0.0130193 18.2894 0L7.7245 0C7.42492 0.00957792 7.14023 0.132929 6.92828 0.344983C6.71634 0.557036 6.59305 0.841878 6.58348 1.14161V5.24168C6.57477 5.54203 6.45187 5.82773 6.23983 6.04052C6.0278 6.25331 5.74262 6.37715 5.44245 6.38677H1.34103C1.04144 6.39635 0.756749 6.5197 0.544805 6.73176C0.332861 6.94381 0.209574 7.22865 0.200001 7.52839V24.4716C0.209574 24.7713 0.332861 25.0562 0.544805 25.2682C0.756749 25.4803 1.04144 25.6036 1.34103 25.6132ZM6.58348 24.4716V7.52839C6.59305 7.22865 6.71634 6.94381 6.92828 6.73176C7.14023 6.5197 7.42492 6.39635 7.7245 6.38677H18.2894C18.589 6.39635 18.8737 6.5197 19.0856 6.73176C19.2976 6.94381 19.4209 7.22865 19.4304 7.52839V24.4716C19.4209 24.7713 19.2976 25.0562 19.0856 25.2682C18.8737 25.4803 18.589 25.6036 18.2894 25.6132H7.7245C7.42492 25.6036 7.14023 25.4803 6.92828 25.2682C6.71634 25.0562 6.59305 24.7713 6.58348 24.4716Z",fill:"currentColor"})})}function vy({className:e}){const{token:t}=l.useConfig();return l.jsxRuntimeExports.jsx("div",{className:ce("flex items-center justify-center gap-2 p-2 pt-0",e),children:l.jsxRuntimeExports.jsx(xn,{children:l.jsxRuntimeExports.jsxs("a",{href:`https://open.cx/?ref=${t}`,target:"_blank",rel:"noreferrer",className:ce("text-[10px] flex items-center","text-muted-foreground/70 [&_svg]:text-muted-foreground/70","hover:text-primary [&_svg]:hover:text-primary"),children:[l.jsxRuntimeExports.jsx("span",{children:"Powered by"}),l.jsxRuntimeExports.jsx("span",{children:" "}),l.jsxRuntimeExports.jsxs("span",{className:"flex items-center gap-[1px]",children:[l.jsxRuntimeExports.jsx("span",{children:l.jsxRuntimeExports.jsx(C8,{className:"size-3 inline-block"})}),l.jsxRuntimeExports.jsx("span",{className:"font-semibold",children:"open"})]})]})})})}function A8(){const{contentIframeRef:e}=l.useWidget(),t=l.reactExports.useRef(null);return l.reactExports.useEffect(()=>{const n=e==null?void 0:e.current;if(n&&t.current){const r=t.current;let i;const s=new ResizeObserver(()=>{i=requestAnimationFrame(()=>{const a=r.offsetHeight;n.style.setProperty("--opencx-widget-height",`${a.toFixed(1)}px`)})});return s.observe(r),()=>{cancelAnimationFrame(i),s.unobserve(r)}}},[e]),{observedElementRef:t}}const k8=Au.object({name:Au.string().min(2),email:Au.string().email()});function S8(){var y,w,v,k,C,R,O,D,j;const{setIsOpen:e}=l.useWidgetTrigger(),{createUnverifiedContact:t}=l.useContact(),{isSmallScreen:n}=kn(),r=l.useConfig(),{theme:i}=mi(),s=Cs(),{data:a}=l.usePreludeData(),{observedElementRef:o}=A8();cd({height:void 0,width:i.screens.welcome.width});const[u,c]=l.reactExports.useState(((y=r.prefillUserData)==null?void 0:y.name)||""),[d,p]=l.reactExports.useState(((w=r.prefillUserData)==null?void 0:w.email)||""),f=(r.extraDataCollectionFields||[]).filter(N=>N!=="name"&&N!=="email"&&!!N),[m,x]=l.reactExports.useState({}),[g,b]=l._default(async N=>{N.preventDefault();const B=k8.safeParse({name:u,email:d});B.success&&await t({email:B.data.email,non_verified_name:B.data.name},Object.values(m).filter(Boolean).length?m:void 0)},[u,d,m]);return l.jsxRuntimeExports.jsx("div",{style:{width:"100vw",maxWidth:"100vw",minHeight:i.screens.welcome.minHeight,height:"100vh",maxHeight:"100vh",overflowY:"auto"},children:l.jsxRuntimeExports.jsxs("div",{ref:o,className:ce("flex flex-col",n&&"h-full","bg-[radial-gradient(ellipse_at_top_left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse_at_top_right,hsl(var(--opencx-primary)),transparent)]"),children:[l.jsxRuntimeExports.jsxs("div",{dir:"auto",className:ce("flex-1 flex flex-col px-4 py-12 text-start space-y-4 relative z-10","text-primary-foreground"),children:[n&&l.jsxRuntimeExports.jsx(Me,{className:"absolute top-6 right-6",children:l.jsxRuntimeExports.jsx(Ke,{size:"selfless",onClick:()=>e(!1),children:l.jsxRuntimeExports.jsx(so,{className:"size-4"})})}),l.jsxRuntimeExports.jsx("div",{className:"flex items-center justify-between w-full mb-2",children:(v=r.assets)!=null&&v.organizationLogo?l.jsxRuntimeExports.jsx("img",{src:(k=r.assets)==null?void 0:k.organizationLogo,alt:"Company Logo",className:"h-8 w-auto object-contain"}):l.jsxRuntimeExports.jsx("h2",{className:"font-bold text-sm",dir:"auto",children:(C=a==null?void 0:a.data)==null?void 0:C.organizationName})}),l.jsxRuntimeExports.jsxs("div",{className:"space-y-2",children:[l.jsxRuntimeExports.jsx("h1",{className:"text-[1.75rem] font-semibold tracking-tight leading-none",dir:"auto",children:((O=(R=r.textContent)==null?void 0:R.welcomeScreen)==null?void 0:O.title)||s.get("welcome-title")}),l.jsxRuntimeExports.jsx("p",{className:"text-sm",dir:"auto",children:((j=(D=r.textContent)==null?void 0:D.welcomeScreen)==null?void 0:j.description)||s.get("welcome-description")})]})]}),l.jsxRuntimeExports.jsxs("div",{className:ce("z-10 m-2 px-2 pt-2 bp-0 space-y-2","bg-[white]","border shadow","rounded-3xl"),dir:"auto",children:[l.jsxRuntimeExports.jsxs("form",{onSubmit:b,className:"space-y-2",children:[l.jsxRuntimeExports.jsx(aa,{value:u,onChange:N=>c(N.target.value),required:!0,placeholder:s.get("your-name"),name:"name"}),l.jsxRuntimeExports.jsx(aa,{required:!0,value:d,onChange:N=>p(N.target.value),type:"email",placeholder:s.get("your-email"),name:"email"}),f.map(N=>l.jsxRuntimeExports.jsx(aa,{value:m[N],onChange:B=>x(M=>({...M,[N]:B.target.value})),placeholder:`${N} (${s.get("optional")})`},N)),l.jsxRuntimeExports.jsxs(Ke,{disabled:g.loading,className:"w-full",size:"lg",children:[g.loading?s.get("starting-chat"):s.get("start-chat"),l.jsxRuntimeExports.jsx(EI,{className:"size-4 rtl:-scale-100"})]})]}),l.jsxRuntimeExports.jsx(vy,{})]})]})})}function R8({children:e}){return l.jsxRuntimeExports.jsx("p",{className:"pl-4 text-xs text-muted-foreground/75 uppercase font-semibold tracking-tight",children:e})}function am({session:e,className:t}){const{bot:n}=l.useConfig(),{toChatScreen:r}=l.useWidgetRouter(),i=e.assignee.kind==="human"?e.assignee.name||"Support Agent":(n==null?void 0:n.name)||"AI Support Agent",s=e.assignee.kind==="human"?e.assignee.avatarUrl||"":(n==null?void 0:n.avatar)||"";return l.jsxRuntimeExports.jsxs(Ke,{variant:"ghost",size:"lg",className:ce("rounded-full p-2 pr-4 flex text-start justify-between w-full whitespace-normal",t),onClick:()=>r(e.id),children:[l.jsxRuntimeExports.jsxs("div",{className:"flex-1 flex gap-2 items-center",children:[l.jsxRuntimeExports.jsx(gt,{mode:"wait",children:l.jsxRuntimeExports.jsx(Me,{snapExit:!0,children:l.jsxRuntimeExports.jsxs(td,{className:"size-10",children:[l.jsxRuntimeExports.jsx(nd,{src:s,alt:"Agent Icon"}),l.jsxRuntimeExports.jsx(rd,{children:l.jsxRuntimeExports.jsx(CI,{className:"size-4"})})]})})}),l.jsxRuntimeExports.jsxs("div",{className:"flex-1",children:[l.jsxRuntimeExports.jsx(gt,{mode:"wait",children:l.jsxRuntimeExports.jsx(Me,{snapExit:!0,children:i},i)}),l.jsxRuntimeExports.jsx(gt,{mode:"wait",children:e.lastMessage?l.jsxRuntimeExports.jsx(Me,{snapExit:!0,children:l.jsxRuntimeExports.jsx(fg,{remarkPlugins:[B0],rehypePlugins:[Qg],className:"line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",children:e.lastMessage})},e.lastMessage||"content"):l.jsxRuntimeExports.jsx(Me,{className:"w-1/2",snapExit:!0,children:l.jsxRuntimeExports.jsx(uy,{className:"h-4 w-full"})},"skeleton")})]})]}),l.jsxRuntimeExports.jsx(iI,{className:"size-4 text-muted-foreground shrink-0"})]})}function N8(){const e=Cs(),{toChatScreen:t}=l.useWidgetRouter(),{sessionsState:{data:n,isInitialFetchLoading:r},openSessions:i,closedSessions:s,canCreateNewSession:a}=l.useSessions();return l.jsxRuntimeExports.jsx("div",{className:"flex-1 flex flex-col overflow-scroll py-2 px-2",children:l.jsxRuntimeExports.jsx(gt,{mode:"wait",children:r?l.jsxRuntimeExports.jsx(Me,{className:"flex-1 flex items-center justify-center",children:l.jsxRuntimeExports.jsx(ly,{})},"loading"):l.jsxRuntimeExports.jsx(Me,{className:"flex-1 flex flex-col gap-2 relative",children:n.length?l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsxs(gt,{children:[i.length>0&&l.jsxRuntimeExports.jsx(Me,{fadeIn:"up",delay:.2,className:"space-y-2",snapExit:!0,children:i.map(o=>l.jsxRuntimeExports.jsx(am,{session:o},o.id))},"open-sessions"),s.length>0&&l.jsxRuntimeExports.jsxs(Me,{className:"space-y-2",delay:.2,snapExit:!0,children:[l.jsxRuntimeExports.jsx(R8,{children:e.get("closed-conversations")}),s.map(o=>l.jsxRuntimeExports.jsx(am,{session:o,className:"opacity-50 hover:opacity-100"},o.id))]},"closed-sessions")]}),a&&l.jsxRuntimeExports.jsx("div",{className:"mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background bg-background",children:l.reactExports.createElement(Ke,{...Oe("sessions/new_conversation_btn"),size:"lg",key:"new-session",className:"w-full",onClick:()=>t()},e.get("new-conversation"))})]}):l.jsxRuntimeExports.jsxs("div",{className:"flex-1 flex flex-col gap-2 items-center",children:[l.jsxRuntimeExports.jsx("div",{className:"flex-1 flex items-center justify-center",children:l.jsxRuntimeExports.jsx("p",{className:"text-muted-foreground",children:e.get("no-conversations-yet")})}),l.reactExports.createElement(Ke,{...Oe("sessions/new_conversation_btn"),size:"lg",key:"new-session",className:"w-full",onClick:()=>t()},e.get("new-conversation"))]})},"sessions")})})}function I8(){const{theme:e}=mi();return cd({width:e.screens.sessions.width,height:e.screens.sessions.height}),l.jsxRuntimeExports.jsx("div",{...Oe("sessions/root"),className:ce("flex flex-col overflow-hidden bg-background"),style:{width:"100vw",maxWidth:"100vw",height:"100vh",maxHeight:"100vh"},children:l.jsxRuntimeExports.jsxs("div",{className:"size-full flex flex-col",children:[l.jsxRuntimeExports.jsx(cy,{}),l.jsxRuntimeExports.jsx(N8,{}),l.jsxRuntimeExports.jsx(vy,{})]})})}function Ty(){l.usePreludeData();const{routerState:{screen:e}}=l.useWidgetRouter();return l.jsxRuntimeExports.jsxs("div",{className:"relative bg-background size-full",children:[l.jsxRuntimeExports.jsx(ao.Container,{}),l.jsxRuntimeExports.jsx(gt,{mode:"wait",children:(()=>{switch(e){case"welcome":return l.jsxRuntimeExports.jsx(Me,{fadeIn:"right",className:"size-full",snapExit:!0,children:l.jsxRuntimeExports.jsx(S8,{})},e);case"sessions":return l.jsxRuntimeExports.jsx(Me,{fadeIn:"right",className:"size-full",snapExit:!0,children:l.jsxRuntimeExports.jsx(I8,{})},e);case"chat":return l.jsxRuntimeExports.jsx(Me,{fadeIn:"right",className:"size-full",snapExit:!0,children:l.jsxRuntimeExports.jsx(TM,{})},e);default:return Bn.isExhaustive(e,Ty.name),null}})()})]})}const O8=`<!DOCTYPE html>
18
351
  <html>
19
352
  <head>
20
353
  <style>
21
- ${tt}
354
+ ${P1}
22
355
  html, body {
23
356
  height: 100%;
24
357
  width: 100%;
@@ -31,11 +364,11 @@ html, body {
31
364
  </head>
32
365
  <body>
33
366
  </body>
34
- </html>`;function No(){const{isOpen:t}=l.useWidgetTrigger(),{version:o,contentIframeRef:s}=l.useWidget(),{cssOverrides:r}=l.useConfig(),{theme:n,cssVars:a,computed:i}=V();return e.jsx(ee.Content,{onInteractOutside:d=>d.preventDefault(),forceMount:!0,style:{zIndex:n.widgetContentContainer.zIndex,fontSize:"16px"},side:"top",align:"end",sideOffset:n.widgetContentContainer.offset.side,alignOffset:n.widgetContentContainer.offset.align,avoidCollisions:!1,asChild:!0,children:e.jsx(k.motion.div,{animate:t?"visible":"hidden",initial:"hidden",variants:{hidden:{opacity:0,y:8,transitionEnd:{display:"none"},transition:{duration:.15}},visible:{opacity:1,y:0,display:"block"}},children:e.jsxs(ae,{ref:s,initialContent:So,allowFullScreen:!0,title:"OpenCX Live Chat",style:{"--opencx-widget-width":i.minWidth,"--opencx-widget-height":i.minHeight,minWidth:i.minWidth,width:"var(--opencx-widget-width)",maxWidth:i.maxWidth,minHeight:i.minHeight,height:"var(--opencx-widget-height)",maxHeight:i.maxHeight,overflow:"hidden",outline:n.widgetContentContainer.outline,outlineColor:n.widgetContentContainer.outlineColor,borderRadius:n.widgetContentContainer.borderRadius,boxShadow:n.widgetContentContainer.boxShadow,transitionProperty:n.widgetContentContainer.transitionProperty,transitionTimingFunction:n.widgetContentContainer.transitionTimingFunction,transitionDuration:n.widgetContentContainer.transitionDuration,boxSizing:"border-box",borderWidth:"0px"},children:[r&&e.jsx("style",{children:r}),e.jsx(Pt,{delayDuration:200,disableHoverableContent:!0,children:e.jsx("div",{style:{display:"contents"},children:e.jsx("div",{style:{...a},"data-version":o,className:c("antialiased font-sans size-full overflow-hidden isolate relative text-secondary-foreground"),children:e.jsx(dt,{})})})})]})})})}function _o({className:t,style:o}){return e.jsxs("svg",{width:"32",height:"30",viewBox:"0 0 32 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:c("text-primary-foreground",t),style:o,children:[e.jsx("path",{d:"M0 6.94263C0 3.62892 2.68629 0.942627 6 0.942627H26C29.3137 0.942627 32 3.62892 32 6.94263V17.9426C32 21.2563 29.3137 23.9426 26 23.9426H6C2.68629 23.9426 0 21.2563 0 17.9426V6.94263Z",fill:"currentColor"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.9945 23.8935L26.237 23.8934C26.1982 24.3557 26.1712 25.2778 26.1704 26.2318C26.1688 28.2839 26.1376 28.7041 25.974 28.868C25.583 29.2598 25.2686 29.0967 24.0616 27.8754C23.4162 27.2222 22.1141 25.9522 21.1682 25.0531L19.9945 23.8935Z",fill:"currentColor"})]})}const Io=`<!DOCTYPE html>
367
+ </html>`;function P8(){const{isOpen:e}=l.useWidgetTrigger(),{version:t,contentIframeRef:n}=l.useWidget(),{cssOverrides:r}=l.useConfig(),{theme:i,cssVars:s,computed:a}=mi();return l.jsxRuntimeExports.jsx(Jv,{onInteractOutside:o=>o.preventDefault(),forceMount:!0,style:{zIndex:i.widgetContentContainer.zIndex,fontSize:"16px"},side:"top",align:"end",sideOffset:i.widgetContentContainer.offset.side,alignOffset:i.widgetContentContainer.offset.align,avoidCollisions:!1,asChild:!0,children:l.jsxRuntimeExports.jsx(Hi.div,{animate:e?"visible":"hidden",initial:"hidden",variants:{hidden:{opacity:0,y:8,transitionEnd:{display:"none"},transition:{duration:.15}},visible:{opacity:1,y:0,display:"block"}},children:l.jsxRuntimeExports.jsxs(yl,{ref:n,initialContent:O8,allowFullScreen:!0,title:"OpenCX Live Chat",style:{"--opencx-widget-width":a.minWidth,"--opencx-widget-height":a.minHeight,minWidth:a.minWidth,width:"var(--opencx-widget-width)",maxWidth:a.maxWidth,minHeight:a.minHeight,height:"var(--opencx-widget-height)",maxHeight:a.maxHeight,overflow:"hidden",outline:i.widgetContentContainer.outline,outlineColor:i.widgetContentContainer.outlineColor,borderRadius:i.widgetContentContainer.borderRadius,boxShadow:i.widgetContentContainer.boxShadow,transitionProperty:i.widgetContentContainer.transitionProperty,transitionTimingFunction:i.widgetContentContainer.transitionTimingFunction,transitionDuration:i.widgetContentContainer.transitionDuration,boxSizing:"border-box",borderWidth:"0px"},children:[r&&l.jsxRuntimeExports.jsx("style",{children:r}),l.jsxRuntimeExports.jsx(mL,{delayDuration:200,disableHoverableContent:!0,children:l.jsxRuntimeExports.jsx("div",{style:{display:"contents"},children:l.jsxRuntimeExports.jsx("div",{style:{...s},"data-version":t,className:ce("antialiased font-sans size-full overflow-hidden isolate relative text-secondary-foreground"),children:l.jsxRuntimeExports.jsx(Ty,{})})})})]})})})}function D8({className:e,style:t}){return l.jsxRuntimeExports.jsxs("svg",{width:"32",height:"30",viewBox:"0 0 32 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:ce("text-primary-foreground",e),style:t,children:[l.jsxRuntimeExports.jsx("path",{d:"M0 6.94263C0 3.62892 2.68629 0.942627 6 0.942627H26C29.3137 0.942627 32 3.62892 32 6.94263V17.9426C32 21.2563 29.3137 23.9426 26 23.9426H6C2.68629 23.9426 0 21.2563 0 17.9426V6.94263Z",fill:"currentColor"}),l.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.9945 23.8935L26.237 23.8934C26.1982 24.3557 26.1712 25.2778 26.1704 26.2318C26.1688 28.2839 26.1376 28.7041 25.974 28.868C25.583 29.2598 25.2686 29.0967 24.0616 27.8754C23.4162 27.2222 22.1141 25.9522 21.1682 25.0531L19.9945 23.8935Z",fill:"currentColor"})]})}const L8=`<!DOCTYPE html>
35
368
  <html>
36
369
  <head>
37
370
  <style>
38
- ${tt}
371
+ ${P1}
39
372
  html, body {
40
373
  height: 100%;
41
374
  width: 100%;
@@ -47,5 +380,5 @@ html, body {
47
380
  </head>
48
381
  <body>
49
382
  </body>
50
- </html>`;function To(){var a,i;const{isOpen:t}=l.useWidgetTrigger(),{cssOverrides:o,assets:s}=l.useConfig(),{theme:r,cssVars:n}=V();return e.jsxs(ae,{initialContent:Io,style:{height:`calc(${r.widgetTrigger.size.button}px + ${B.x*2}px)`,width:`calc(${r.widgetTrigger.size.button}px + ${B.y*2}px)`,fontSize:"16px",position:"fixed",zIndex:r.widgetTrigger.zIndex,right:r.widgetTrigger.offset.right,bottom:r.widgetTrigger.offset.bottom,boxSizing:"border-box",borderWidth:"0px"},children:[o&&e.jsx("style",{children:o}),e.jsx("div",{style:{...n,width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx(ee.PopoverTrigger,{className:c("font-sans flex items-center justify-center rounded-full"),style:{height:r.widgetTrigger.size.button,width:r.widgetTrigger.size.button},children:e.jsx(W,{children:e.jsx("div",{...u("trigger/btn"),className:c("relative size-full rounded-full","flex items-center justify-center","overflow-hidden","transition-all","bg-primary","text-primary-foreground"),children:e.jsx(k.AnimatePresence,{mode:"wait",children:t?e.jsx(w,{snapExit:!0,fadeIn:"up",overrides:{initial:{rotate:45},animate:{rotate:0}},children:(a=s==null?void 0:s.widgetTrigger)!=null&&a.closeIcon?e.jsx("img",{src:s.widgetTrigger.closeIcon,alt:"Widget trigger close icon",style:{width:r.widgetTrigger.size.icon,height:r.widgetTrigger.size.icon}}):e.jsx(g.ChevronDownIcon,{style:{width:r.widgetTrigger.size.icon,height:r.widgetTrigger.size.icon}})},"x-icon"):e.jsx(w,{snapExit:!0,overrides:{initial:{rotate:45},animate:{rotate:0}},children:(i=s==null?void 0:s.widgetTrigger)!=null&&i.openIcon?e.jsx("img",{src:s.widgetTrigger.openIcon,alt:"Widget trigger open icon",style:{width:r.widgetTrigger.size.icon,height:r.widgetTrigger.size.icon}}):e.jsx(_o,{style:{width:r.widgetTrigger.size.icon,height:r.widgetTrigger.size.icon},className:"mt-0.5 opacity-95"})},"message-icon")})})})})})]})}function Mo(){return e.jsx(ee.Anchor,{style:{position:"fixed",right:0,bottom:0}})}function Eo(){const{isOpen:t,setIsOpen:o}=l.useWidgetTrigger();return e.jsxs(ee.Root,{open:t,onOpenChange:o,children:[e.jsx(Mo,{}),e.jsx(To,{}),e.jsx(No,{})]})}const Ro=[{key:"loading",component:Ot},{key:"fallback",component:_t},{key:"bot_message",component:Q},{key:"agent_message",component:Q}],Do={get:async t=>localStorage.getItem(t),set:async(t,o)=>{localStorage.setItem(t,o)},remove:async t=>{localStorage.removeItem(t)}};function Oo({options:t,components:o=[],modesComponents:s=[],loadingComponent:r}){return e.jsx(l.WidgetProvider,{components:[...Ro,...o],modesComponents:s,options:t,storage:Do,loadingComponent:r,children:e.jsx(l.WidgetTriggerProvider,{children:e.jsx(Eo,{})})})}exports.Widget=Oo;
383
+ </html>`;function M8(){var s,a;const{isOpen:e}=l.useWidgetTrigger(),{cssOverrides:t,assets:n}=l.useConfig(),{theme:r,cssVars:i}=mi();return l.jsxRuntimeExports.jsxs(yl,{initialContent:L8,style:{height:`calc(${r.widgetTrigger.size.button}px + ${Xr.x*2}px)`,width:`calc(${r.widgetTrigger.size.button}px + ${Xr.y*2}px)`,fontSize:"16px",position:"fixed",zIndex:r.widgetTrigger.zIndex,right:r.widgetTrigger.offset.right,bottom:r.widgetTrigger.offset.bottom,boxSizing:"border-box",borderWidth:"0px"},children:[t&&l.jsxRuntimeExports.jsx("style",{children:t}),l.jsxRuntimeExports.jsx("div",{style:{...i,width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsxRuntimeExports.jsx(Jm,{className:ce("font-sans flex items-center justify-center rounded-full"),style:{height:r.widgetTrigger.size.button,width:r.widgetTrigger.size.button},children:l.jsxRuntimeExports.jsx(xn,{children:l.jsxRuntimeExports.jsx("div",{...Oe("trigger/btn"),className:ce("relative size-full rounded-full","flex items-center justify-center","overflow-hidden","transition-all","bg-primary","text-primary-foreground"),children:l.jsxRuntimeExports.jsx(gt,{mode:"wait",children:e?l.jsxRuntimeExports.jsx(Me,{snapExit:!0,fadeIn:"up",overrides:{initial:{rotate:45},animate:{rotate:0}},children:(s=n==null?void 0:n.widgetTrigger)!=null&&s.closeIcon?l.jsxRuntimeExports.jsx("img",{src:n.widgetTrigger.closeIcon,alt:"Widget trigger close icon",style:{width:r.widgetTrigger.size.icon,height:r.widgetTrigger.size.icon}}):l.jsxRuntimeExports.jsx(nI,{style:{width:r.widgetTrigger.size.icon,height:r.widgetTrigger.size.icon}})},"x-icon"):l.jsxRuntimeExports.jsx(Me,{snapExit:!0,overrides:{initial:{rotate:45},animate:{rotate:0}},children:(a=n==null?void 0:n.widgetTrigger)!=null&&a.openIcon?l.jsxRuntimeExports.jsx("img",{src:n.widgetTrigger.openIcon,alt:"Widget trigger open icon",style:{width:r.widgetTrigger.size.icon,height:r.widgetTrigger.size.icon}}):l.jsxRuntimeExports.jsx(D8,{style:{width:r.widgetTrigger.size.icon,height:r.widgetTrigger.size.icon},className:"mt-0.5 opacity-95"})},"message-icon")})})})})})]})}function j8(){return l.jsxRuntimeExports.jsx(Qv,{style:{position:"fixed",right:0,bottom:0}})}function F8(){const{isOpen:e,setIsOpen:t}=l.useWidgetTrigger();return l.jsxRuntimeExports.jsxs(Zv,{open:e,onOpenChange:t,children:[l.jsxRuntimeExports.jsx(j8,{}),l.jsxRuntimeExports.jsx(M8,{}),l.jsxRuntimeExports.jsx(P8,{})]})}const B8=[{key:"loading",component:G4},{key:"fallback",component:fO},{key:"bot_message",component:Ea},{key:"agent_message",component:Ea}],H8={get:async e=>localStorage.getItem(e),set:async(e,t)=>{localStorage.setItem(e,t)},remove:async e=>{localStorage.removeItem(e)}};function U8({options:e,components:t=[],modesComponents:n=[],loadingComponent:r}){return l.jsxRuntimeExports.jsx(l.WidgetProvider,{components:[...B8,...t],modesComponents:n,options:e,storage:H8,loadingComponent:r,children:l.jsxRuntimeExports.jsx(l.WidgetTriggerProvider,{children:l.jsxRuntimeExports.jsx(F8,{})})})}exports.Widget=U8;
51
384
  //# sourceMappingURL=designs.cjs.map