diff --git a/404.html b/404.html index e49a981d1..af0963ec4 100644 --- a/404.html +++ b/404.html @@ -4,8 +4,8 @@
["'])(?.*?)\1/,h=/\{(? [\d,-]+)\}/,p={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"}},d={...p,lua:{start:"--",end:""},wasm:{start:"\\;\\;",end:""},tex:{start:"%",end:""},vb:{start:"['\u2018\u2019]",end:""},vbnet:{start:"(?:_\\s*)?['\u2018\u2019]",end:""},rem:{start:"[Rr][Ee][Mm]\\b",end:""},f90:{start:"!",end:""},ml:{start:"\\(\\*",end:"\\*\\)"},cobol:{start:"\\*>",end:""}},f=Object.keys(p);function m(e,t){const n=e.map((e=>{const{start:n,end:r}=d[e];return`(?:${n}\\s*(${t.flatMap((e=>[e.line,e.block?.start,e.block?.end].filter(Boolean))).join("|")})\\s*${r})`})).join("|");return new RegExp(`^\\s*(?:${n})\\s*$`)}function g(e,t){let n=e.replace(/\n$/,"");const{language:r,magicComments:i,metastring:s}=t;if(s&&h.test(s)){const e=s.match(h).groups.range;if(0===i.length)throw new Error(`A highlight range has been given in code block's metastring (\`\`\` ${s}), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.`);const t=i[0].className,r=l()(e).filter((e=>e>0)).map((e=>[e-1,[t]]));return{lineClassNames:Object.fromEntries(r),code:n}}if(void 0===r)return{lineClassNames:{},code:n};const o=function(e,t){switch(e){case"js":case"javascript":case"ts":case"typescript":return m(["js","jsBlock"],t);case"jsx":case"tsx":return m(["js","jsBlock","jsx"],t);case"html":return m(["js","jsBlock","html"],t);case"python":case"py":case"bash":return m(["bash"],t);case"markdown":case"md":return m(["html","jsx","bash"],t);case"tex":case"latex":case"matlab":return m(["tex"],t);case"lua":case"haskell":case"sql":return m(["lua"],t);case"wasm":return m(["wasm"],t);case"vb":case"vba":case"visual-basic":return m(["vb","rem"],t);case"vbnet":return m(["vbnet","rem"],t);case"batch":return m(["rem"],t);case"basic":return m(["rem","f90"],t);case"fsharp":return m(["js","ml"],t);case"ocaml":case"sml":return m(["ml"],t);case"fortran":return m(["f90"],t);case"cobol":return m(["cobol"],t);default:return m(f,t)}}(r,i),a=n.split("\n"),u=Object.fromEntries(i.map((e=>[e.className,{start:0,range:""}]))),c=Object.fromEntries(i.filter((e=>e.line)).map((e=>{let{className:t,line:n}=e;return[n,t]}))),p=Object.fromEntries(i.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.start,t]}))),d=Object.fromEntries(i.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.end,t]})));for(let l=0;l void 0!==e));c[t]?u[c[t]].range+=`${l},`:p[t]?u[p[t]].start=l:d[t]&&(u[d[t]].range+=`${u[d[t]].start}-${l-1},`),a.splice(l,1)}n=a.join("\n");const g={};return Object.entries(u).forEach((e=>{let[t,{range:n}]=e;l()(n).forEach((e=>{g[e]??=[],g[e].push(t)}))})),{lineClassNames:g,code:n}}const y={codeBlockContainer:"codeBlockContainer_Ckt0"};var x=n(74848);function b(e){let{as:t,...n}=e;const r=function(e){const t={color:"--prism-color",backgroundColor:"--prism-background-color"},n={};return Object.entries(e.plain).forEach((e=>{let[r,i]=e;const s=t[r];s&&"string"==typeof i&&(n[s]=i)})),n}((0,o.A)());return(0,x.jsx)(t,{...n,style:r,className:(0,s.A)(n.className,y.codeBlockContainer,a.G.common.codeBlock)})}const C={codeBlockContent:"codeBlockContent_biex",codeBlockTitle:"codeBlockTitle_Ktv7",codeBlock:"codeBlock_bY9V",codeBlockStandalone:"codeBlockStandalone_MEMb",codeBlockLines:"codeBlockLines_e6Vv",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_o6Pm",buttonGroup:"buttonGroup__atx"};function k(e){let{children:t,className:n}=e;return(0,x.jsx)(b,{as:"pre",tabIndex:0,className:(0,s.A)(C.codeBlockStandalone,"thin-scrollbar",n),children:(0,x.jsx)("code",{className:C.codeBlockLines,children:t})})}var v=n(6342),A=n(89532);const _={attributes:!0,characterData:!0,childList:!0,subtree:!0};function E(e,t){const[n,i]=(0,r.useState)(),s=(0,r.useCallback)((()=>{i(e.current?.closest("[role=tabpanel][hidden]"))}),[e,i]);(0,r.useEffect)((()=>{s()}),[s]),function(e,t,n){void 0===n&&(n=_);const i=(0,A._q)(t),s=(0,A.Be)(n);(0,r.useEffect)((()=>{const t=new MutationObserver(i);return e&&t.observe(e,s),()=>t.disconnect()}),[e,i,s])}(n,(e=>{e.forEach((e=>{"attributes"===e.type&&"hidden"===e.attributeName&&(t(),s())}))}),{attributes:!0,characterData:!1,childList:!1,subtree:!1})}var F=n(71765);const w={codeLine:"codeLine_lJS_",codeLineNumber:"codeLineNumber_Tfdd",codeLineContent:"codeLineContent_feaV"};function T(e){let{line:t,classNames:n,showLineNumbers:r,getLineProps:i,getTokenProps:o}=e;1===t.length&&"\n"===t[0].content&&(t[0].content="");const a=i({line:t,className:(0,s.A)(n,r&&w.codeLine)}),u=t.map(((e,t)=>(0,x.jsx)("span",{...o({token:e})},t)));return(0,x.jsxs)("span",{...a,children:[r?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("span",{className:w.codeLineNumber}),(0,x.jsx)("span",{className:w.codeLineContent,children:u})]}):u,(0,x.jsx)("br",{})]})}var S=n(21312);function B(e){return(0,x.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,x.jsx)("path",{fill:"currentColor",d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"})})}function D(e){return(0,x.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,x.jsx)("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})}const I={copyButtonCopied:"copyButtonCopied_obH4",copyButtonIcons:"copyButtonIcons_eSgA",copyButtonIcon:"copyButtonIcon_y97N",copyButtonSuccessIcon:"copyButtonSuccessIcon_LjdS"};function L(e){let{code:t,className:n}=e;const[i,o]=(0,r.useState)(!1),a=(0,r.useRef)(void 0),u=(0,r.useCallback)((()=>{!function(e,t){let{target:n=document.body}=void 0===t?{}:t;if("string"!=typeof e)throw new TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof e}\`.`);const r=document.createElement("textarea"),i=document.activeElement;r.value=e,r.setAttribute("readonly",""),r.style.contain="strict",r.style.position="absolute",r.style.left="-9999px",r.style.fontSize="12pt";const s=document.getSelection(),o=s.rangeCount>0&&s.getRangeAt(0);n.append(r),r.select(),r.selectionStart=0,r.selectionEnd=e.length;let a=!1;try{a=document.execCommand("copy")}catch{}r.remove(),o&&(s.removeAllRanges(),s.addRange(o)),i&&i.focus()}(t),o(!0),a.current=window.setTimeout((()=>{o(!1)}),1e3)}),[t]);return(0,r.useEffect)((()=>()=>window.clearTimeout(a.current)),[]),(0,x.jsx)("button",{type:"button","aria-label":i?(0,S.translate)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,S.translate)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,S.translate)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,s.A)("clean-btn",n,I.copyButton,i&&I.copyButtonCopied),onClick:u,children:(0,x.jsxs)("span",{className:I.copyButtonIcons,"aria-hidden":"true",children:[(0,x.jsx)(B,{className:I.copyButtonIcon}),(0,x.jsx)(D,{className:I.copyButtonSuccessIcon})]})})}function N(e){return(0,x.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,x.jsx)("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})})}const P={wordWrapButtonIcon:"wordWrapButtonIcon_Bwma",wordWrapButtonEnabled:"wordWrapButtonEnabled_EoeP"};function M(e){let{className:t,onClick:n,isEnabled:r}=e;const i=(0,S.translate)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,x.jsx)("button",{type:"button",onClick:n,className:(0,s.A)("clean-btn",t,r&&P.wordWrapButtonEnabled),"aria-label":i,title:i,children:(0,x.jsx)(N,{className:P.wordWrapButtonIcon,"aria-hidden":"true"})})}function O(e){let{children:t,className:n="",metastring:i,title:a,showLineNumbers:u,language:l}=e;const{prism:{defaultLanguage:h,magicComments:p}}=(0,v.p)(),d=function(e){return e?.toLowerCase()}(l??function(e){const t=e.split(" ").find((e=>e.startsWith("language-")));return t?.replace(/language-/,"")}(n)??h),f=(0,o.A)(),m=function(){const[e,t]=(0,r.useState)(!1),[n,i]=(0,r.useState)(!1),s=(0,r.useRef)(null),o=(0,r.useCallback)((()=>{const n=s.current.querySelector("code");e?n.removeAttribute("style"):(n.style.whiteSpace="pre-wrap",n.style.overflowWrap="anywhere"),t((e=>!e))}),[s,e]),a=(0,r.useCallback)((()=>{const{scrollWidth:e,clientWidth:t}=s.current,n=e>t||s.current.querySelector("code").hasAttribute("style");i(n)}),[s]);return E(s,a),(0,r.useEffect)((()=>{a()}),[e,a]),(0,r.useEffect)((()=>(window.addEventListener("resize",a,{passive:!0}),()=>{window.removeEventListener("resize",a)})),[a]),{codeBlockRef:s,isEnabled:e,isCodeScrollable:n,toggle:o}}(),y=function(e){return e?.match(c)?.groups.title??""}(i)||a,{lineClassNames:k,code:A}=g(t,{metastring:i,language:d,magicComments:p}),_=u??function(e){return Boolean(e?.includes("showLineNumbers"))}(i);return(0,x.jsxs)(b,{as:"div",className:(0,s.A)(n,d&&!n.includes(`language-${d}`)&&`language-${d}`),children:[y&&(0,x.jsx)("div",{className:C.codeBlockTitle,children:y}),(0,x.jsxs)("div",{className:C.codeBlockContent,children:[(0,x.jsx)(F.f4,{theme:f,code:A,language:d??"text",children:e=>{let{className:t,style:n,tokens:r,getLineProps:i,getTokenProps:o}=e;return(0,x.jsx)("pre",{tabIndex:0,ref:m.codeBlockRef,className:(0,s.A)(t,C.codeBlock,"thin-scrollbar"),style:n,children:(0,x.jsx)("code",{className:(0,s.A)(C.codeBlockLines,_&&C.codeBlockLinesWithNumbering),children:r.map(((e,t)=>(0,x.jsx)(T,{line:e,getLineProps:i,getTokenProps:o,classNames:k[t],showLineNumbers:_},t)))})})}}),(0,x.jsxs)("div",{className:C.buttonGroup,children:[(m.isEnabled||m.isCodeScrollable)&&(0,x.jsx)(M,{className:C.codeButton,onClick:()=>m.toggle(),isEnabled:m.isEnabled}),(0,x.jsx)(L,{className:C.codeButton,code:A})]})]})]})}function j(e){let{children:t,...n}=e;const s=(0,i.default)(),o=function(e){return r.Children.toArray(e).some((e=>(0,r.isValidElement)(e)))?e:Array.isArray(e)?e.join(""):e}(t),a="string"==typeof o?O:k;return(0,x.jsx)(a,{...n,children:o},String(s))}},85417:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Ie});var r=n(96540),i=n(1003),s=n(89532),o=n(74848);const a=r.createContext(null);function u(e){let{children:t,content:n}=e;const i=function(e){return(0,r.useMemo)((()=>({metadata:e.metadata,frontMatter:e.frontMatter,assets:e.assets,contentTitle:e.contentTitle,toc:e.toc})),[e])}(n);return(0,o.jsx)(a.Provider,{value:i,children:t})}function l(){const e=(0,r.useContext)(a);if(null===e)throw new s.dV("DocProvider");return e}function c(){const{metadata:e,frontMatter:t,assets:n}=l();return(0,o.jsx)(i.be,{title:e.title,description:e.description,keywords:t.keywords,image:n.image??t.image})}var h=n(34164),p=n(24581),d=n(21312),f=n(28774);function m(e){const{permalink:t,title:n,subLabel:r,isNext:i}=e;return(0,o.jsxs)(f.default,{className:(0,h.A)("pagination-nav__link",i?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t,children:[r&&(0,o.jsx)("div",{className:"pagination-nav__sublabel",children:r}),(0,o.jsx)("div",{className:"pagination-nav__label",children:n})]})}function g(e){const{previous:t,next:n}=e;return(0,o.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,d.translate)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages",description:"The ARIA label for the docs pagination"}),children:[t&&(0,o.jsx)(m,{...t,subLabel:(0,o.jsx)(d.default,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc",children:"Previous"})}),n&&(0,o.jsx)(m,{...n,subLabel:(0,o.jsx)(d.default,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc",children:"Next"}),isNext:!0})]})}function y(){const{metadata:e}=l();return(0,o.jsx)(g,{previous:e.previous,next:e.next})}var x=n(44586),b=n(48295),C=n(17559),k=n(53886),v=n(23025);const A={unreleased:function(e){let{siteTitle:t,versionMetadata:n}=e;return(0,o.jsx)(d.default,{id:"theme.docs.versions.unreleasedVersionLabel",description:"The label used to tell the user that he's browsing an unreleased doc version",values:{siteTitle:t,versionLabel:(0,o.jsx)("b",{children:n.label})},children:"This is unreleased documentation for {siteTitle} {versionLabel} version."})},unmaintained:function(e){let{siteTitle:t,versionMetadata:n}=e;return(0,o.jsx)(d.default,{id:"theme.docs.versions.unmaintainedVersionLabel",description:"The label used to tell the user that he's browsing an unmaintained doc version",values:{siteTitle:t,versionLabel:(0,o.jsx)("b",{children:n.label})},children:"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained."})}};function _(e){const t=A[e.versionMetadata.banner];return(0,o.jsx)(t,{...e})}function E(e){let{versionLabel:t,to:n,onClick:r}=e;return(0,o.jsx)(d.default,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:t,latestVersionLink:(0,o.jsx)("b",{children:(0,o.jsx)(f.default,{to:n,onClick:r,children:(0,o.jsx)(d.default,{id:"theme.docs.versions.latestVersionLinkLabel",description:"The label used for the latest version suggestion link label",children:"latest version"})})})},children:"For up-to-date documentation, see the {latestVersionLink} ({versionLabel})."})}function F(e){let{className:t,versionMetadata:n}=e;const{siteConfig:{title:r}}=(0,x.default)(),{pluginId:i}=(0,b.vT)({failfast:!0}),{savePreferredVersionName:s}=(0,k.g1)(i),{latestDocSuggestion:a,latestVersionSuggestion:u}=(0,b.HW)(i),l=a??(c=u).docs.find((e=>e.id===c.mainDocId));var c;return(0,o.jsxs)("div",{className:(0,h.A)(t,C.G.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert",children:[(0,o.jsx)("div",{children:(0,o.jsx)(_,{siteTitle:r,versionMetadata:n})}),(0,o.jsx)("div",{className:"margin-top--md",children:(0,o.jsx)(E,{versionLabel:u.label,to:l.path,onClick:()=>s(u.name)})})]})}function w(e){let{className:t}=e;const n=(0,v.r)();return n.banner?(0,o.jsx)(F,{className:t,versionMetadata:n}):null}function T(e){let{className:t}=e;const n=(0,v.r)();return n.badge?(0,o.jsx)("span",{className:(0,h.A)(t,C.G.docs.docVersionBadge,"badge badge--secondary"),children:(0,o.jsx)(d.default,{id:"theme.docs.versionBadge.label",values:{versionLabel:n.label},children:"Version: {versionLabel}"})}):null}const S={tag:"tag_zVej",tagRegular:"tagRegular_sFm0",tagWithCount:"tagWithCount_h2kH"};function B(e){let{permalink:t,label:n,count:r,description:i}=e;return(0,o.jsxs)(f.default,{href:t,title:i,className:(0,h.A)(S.tag,r?S.tagWithCount:S.tagRegular),children:[n,r&&(0,o.jsx)("span",{children:r})]})}const D={tags:"tags_jXut",tag:"tag_QGVx"};function I(e){let{tags:t}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("b",{children:(0,o.jsx)(d.default,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list",children:"Tags:"})}),(0,o.jsx)("ul",{className:(0,h.A)(D.tags,"padding--none","margin-left--sm"),children:t.map((e=>(0,o.jsx)("li",{className:D.tag,children:(0,o.jsx)(B,{...e})},e.permalink)))})]})}var L=n(12216),N=n.n(L);function P(e){void 0===e&&(e={});const{i18n:{currentLocale:t}}=(0,x.default)(),n=function(){const{i18n:{currentLocale:e,localeConfigs:t}}=(0,x.default)();return t[e].calendar}();return new Intl.DateTimeFormat(t,{calendar:n,...e})}function M(e){let{lastUpdatedAt:t}=e;const n=new Date(t),r=P({day:"numeric",month:"short",year:"numeric",timeZone:"UTC"}).format(n);return(0,o.jsx)(d.default,{id:"theme.lastUpdated.atDate",description:"The words used to describe on which date a page has been last updated",values:{date:(0,o.jsx)("b",{children:(0,o.jsx)("time",{dateTime:n.toISOString(),itemProp:"dateModified",children:r})})},children:" on {date}"})}function O(e){let{lastUpdatedBy:t}=e;return(0,o.jsx)(d.default,{id:"theme.lastUpdated.byUser",description:"The words used to describe by who the page has been last updated",values:{user:(0,o.jsx)("b",{children:t})},children:" by {user}"})}function j(e){let{lastUpdatedAt:t,lastUpdatedBy:n}=e;return(0,o.jsxs)("span",{className:C.G.common.lastUpdated,children:[(0,o.jsx)(d.default,{id:"theme.lastUpdated.lastUpdatedAtBy",description:"The sentence used to display when a page has been last updated, and by who",values:{atDate:t?(0,o.jsx)(M,{lastUpdatedAt:t}):"",byUser:n?(0,o.jsx)(O,{lastUpdatedBy:n}):""},children:"Last updated{atDate}{byUser}"}),!1]})}const R={lastUpdated:"lastUpdated_JAkA"};function V(e){let{className:t,editUrl:n,lastUpdatedAt:r,lastUpdatedBy:i}=e;return(0,o.jsxs)("div",{className:(0,h.A)("row",t),children:[(0,o.jsx)("div",{className:"col",children:n&&(0,o.jsx)(N(),{editUrl:n})}),(0,o.jsx)("div",{className:(0,h.A)("col",R.lastUpdated),children:(r||i)&&(0,o.jsx)(j,{lastUpdatedAt:r,lastUpdatedBy:i})})]})}function q(){const{metadata:e}=l(),{editUrl:t,lastUpdatedAt:n,lastUpdatedBy:r,tags:i}=e,s=i.length>0,a=!!(t||n||r);return s||a?(0,o.jsxs)("footer",{className:(0,h.A)(C.G.docs.docFooter,"docusaurus-mt-lg"),children:[s&&(0,o.jsx)("div",{className:(0,h.A)("row margin-top--sm",C.G.docs.docFooterTagsRow),children:(0,o.jsx)("div",{className:"col",children:(0,o.jsx)(I,{tags:i})})}),a&&(0,o.jsx)(V,{className:(0,h.A)("margin-top--sm",C.G.docs.docFooterEditMetaRow),editUrl:t,lastUpdatedAt:n,lastUpdatedBy:r})]}):null}var z=n(41422),U=n(6342);function $(e){const t=e.map((e=>({...e,parentIndex:-1,children:[]}))),n=Array(7).fill(-1);t.forEach(((e,t)=>{const r=n.slice(2,e.level);e.parentIndex=Math.max(...r),n[e.level]=t}));const r=[];return t.forEach((e=>{const{parentIndex:n,...i}=e;n>=0?t[n].children.push(i):r.push(i)})),r}function H(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:r}=e;return t.flatMap((e=>{const t=H({toc:e.children,minHeadingLevel:n,maxHeadingLevel:r});return function(e){return e.level>=n&&e.level<=r}(e)?[{...e,children:t}]:t}))}function W(e){const t=e.getBoundingClientRect();return t.top===t.bottom?W(e.parentNode):t}function J(e,t){let{anchorTopOffset:n}=t;const r=e.find((e=>W(e).top>=n));if(r){return function(e){return e.top>0&&e.bottom {e.current=t?0:document.querySelector(".navbar").clientHeight}),[t]),e}function G(e){const t=(0,r.useRef)(void 0),n=X();(0,r.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:r,linkActiveClassName:i,minHeadingLevel:s,maxHeadingLevel:o}=e;function a(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(r),a=function(e){let{minHeadingLevel:t,maxHeadingLevel:n}=e;const r=[];for(let i=t;i<=n;i+=1)r.push(`h${i}.anchor`);return Array.from(document.querySelectorAll(r.join()))}({minHeadingLevel:s,maxHeadingLevel:o}),u=J(a,{anchorTopOffset:n.current}),l=e.find((e=>u&&u.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,n){n?(t.current&&t.current!==e&&t.current.classList.remove(i),e.classList.add(i),t.current=e):e.classList.remove(i)}(e,e===l)}))}return document.addEventListener("scroll",a),document.addEventListener("resize",a),a(),()=>{document.removeEventListener("scroll",a),document.removeEventListener("resize",a)}}),[e,n])}function Y(e){let{toc:t,className:n,linkClassName:r,isChild:i}=e;return t.length?(0,o.jsx)("ul",{className:i?void 0:n,children:t.map((e=>(0,o.jsxs)("li",{children:[(0,o.jsx)(f.default,{to:`#${e.id}`,className:r??void 0,dangerouslySetInnerHTML:{__html:e.value}}),(0,o.jsx)(Y,{isChild:!0,toc:e.children,className:n,linkClassName:r})]},e.id)))}):null}const Z=r.memo(Y);function K(e){let{toc:t,className:n="table-of-contents table-of-contents__left-border",linkClassName:i="table-of-contents__link",linkActiveClassName:s,minHeadingLevel:a,maxHeadingLevel:u,...l}=e;const c=(0,U.p)(),h=a??c.tableOfContents.minHeadingLevel,p=u??c.tableOfContents.maxHeadingLevel,d=function(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:i}=e;return(0,r.useMemo)((()=>H({toc:$(t),minHeadingLevel:n,maxHeadingLevel:i})),[t,n,i])}({toc:t,minHeadingLevel:h,maxHeadingLevel:p});return G((0,r.useMemo)((()=>{if(i&&s)return{linkClassName:i,linkActiveClassName:s,minHeadingLevel:h,maxHeadingLevel:p}}),[i,s,h,p])),(0,o.jsx)(Z,{toc:d,className:n,linkClassName:i,...l})}const Q={tocCollapsibleButton:"tocCollapsibleButton_TO0P",tocCollapsibleButtonExpanded:"tocCollapsibleButtonExpanded_MG3E"};function ee(e){let{collapsed:t,...n}=e;return(0,o.jsx)("button",{type:"button",...n,className:(0,h.A)("clean-btn",Q.tocCollapsibleButton,!t&&Q.tocCollapsibleButtonExpanded,n.className),children:(0,o.jsx)(d.default,{id:"theme.TOCCollapsible.toggleButtonLabel",description:"The label used by the button on the collapsible TOC component",children:"On this page"})})}const te={tocCollapsible:"tocCollapsible_ETCw",tocCollapsibleContent:"tocCollapsibleContent_vkbj",tocCollapsibleExpanded:"tocCollapsibleExpanded_sAul"};function ne(e){let{toc:t,className:n,minHeadingLevel:r,maxHeadingLevel:i}=e;const{collapsed:s,toggleCollapsed:a}=(0,z.u)({initialState:!0});return(0,o.jsxs)("div",{className:(0,h.A)(te.tocCollapsible,!s&&te.tocCollapsibleExpanded,n),children:[(0,o.jsx)(ee,{collapsed:s,onClick:a}),(0,o.jsx)(z.N,{lazy:!0,className:te.tocCollapsibleContent,collapsed:s,children:(0,o.jsx)(K,{toc:t,minHeadingLevel:r,maxHeadingLevel:i})})]})}const re={tocMobile:"tocMobile_ITEo"};function ie(){const{toc:e,frontMatter:t}=l();return(0,o.jsx)(ne,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:(0,h.A)(C.G.docs.docTocMobile,re.tocMobile)})}const se={tableOfContents:"tableOfContents_bqdL",docItemContainer:"docItemContainer_F8PC"},oe="table-of-contents__link toc-highlight",ae="table-of-contents__link--active";function ue(e){let{className:t,...n}=e;return(0,o.jsx)("div",{className:(0,h.A)(se.tableOfContents,"thin-scrollbar",t),children:(0,o.jsx)(K,{...n,linkClassName:oe,linkActiveClassName:ae})})}function le(){const{toc:e,frontMatter:t}=l();return(0,o.jsx)(ue,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:C.G.docs.docTocDesktop})}var ce=n(51107),he=n(61823),pe=n.n(he);function de(e){let{children:t}=e;const n=function(){const{metadata:e,frontMatter:t,contentTitle:n}=l();return t.hide_title||void 0!==n?null:e.title}();return(0,o.jsxs)("div",{className:(0,h.A)(C.G.docs.docMarkdown,"markdown"),children:[n&&(0,o.jsx)("header",{children:(0,o.jsx)(ce.A,{as:"h1",children:n})}),(0,o.jsx)(pe(),{children:t})]})}var fe=n(26972),me=n(99169),ge=n(86025);function ye(e){return(0,o.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,o.jsx)("path",{d:"M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z",fill:"currentColor"})})}const xe={breadcrumbHomeIcon:"breadcrumbHomeIcon_YNFT"};function be(){const e=(0,ge.default)("/");return(0,o.jsx)("li",{className:"breadcrumbs__item",children:(0,o.jsx)(f.default,{"aria-label":(0,d.translate)({id:"theme.docs.breadcrumbs.home",message:"Home page",description:"The ARIA label for the home page in the breadcrumbs"}),className:"breadcrumbs__link",href:e,children:(0,o.jsx)(ye,{className:xe.breadcrumbHomeIcon})})})}const Ce={breadcrumbsContainer:"breadcrumbsContainer_Z_bl"};function ke(e){let{children:t,href:n,isLast:r}=e;const i="breadcrumbs__link";return r?(0,o.jsx)("span",{className:i,itemProp:"name",children:t}):n?(0,o.jsx)(f.default,{className:i,href:n,itemProp:"item",children:(0,o.jsx)("span",{itemProp:"name",children:t})}):(0,o.jsx)("span",{className:i,children:t})}function ve(e){let{children:t,active:n,index:r,addMicrodata:i}=e;return(0,o.jsxs)("li",{...i&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},className:(0,h.A)("breadcrumbs__item",{"breadcrumbs__item--active":n}),children:[t,(0,o.jsx)("meta",{itemProp:"position",content:String(r+1)})]})}function Ae(){const e=(0,fe.OF)(),t=(0,me.Dt)();return e?(0,o.jsx)("nav",{className:(0,h.A)(C.G.docs.docBreadcrumbs,Ce.breadcrumbsContainer),"aria-label":(0,d.translate)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"}),children:(0,o.jsxs)("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList",children:[t&&(0,o.jsx)(be,{}),e.map(((t,n)=>{const r=n===e.length-1,i="category"===t.type&&t.linkUnlisted?void 0:t.href;return(0,o.jsx)(ve,{active:r,index:n,addMicrodata:!!i,children:(0,o.jsx)(ke,{href:i,isLast:r,children:t.label})},n)}))]})}):null}var _e=n(44084),Ee=n(13472);function Fe(e){let{className:t}=e;return(0,o.jsx)(Ee.A,{type:"caution",title:(0,o.jsx)(_e.Yh,{}),className:(0,h.A)(t,C.G.common.draftBanner),children:(0,o.jsx)(_e.TT,{})})}function we(e){let{className:t}=e;return(0,o.jsx)(Ee.A,{type:"caution",title:(0,o.jsx)(_e.Rc,{}),className:(0,h.A)(t,C.G.common.unlistedBanner),children:(0,o.jsx)(_e.Uh,{})})}function Te(e){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(_e.AE,{}),(0,o.jsx)(we,{...e})]})}function Se(e){let{metadata:t}=e;const{unlisted:n,frontMatter:r}=t;return(0,o.jsxs)(o.Fragment,{children:[(n||r.unlisted)&&(0,o.jsx)(Te,{}),r.draft&&(0,o.jsx)(Fe,{})]})}const Be={docItemContainer:"docItemContainer_Djhp",docItemCol:"docItemCol_VOVn"};function De(e){let{children:t}=e;const n=function(){const{frontMatter:e,toc:t}=l(),n=(0,p.l)(),r=e.hide_table_of_contents,i=!r&&t.length>0;return{hidden:r,mobile:i?(0,o.jsx)(ie,{}):void 0,desktop:!i||"desktop"!==n&&"ssr"!==n?void 0:(0,o.jsx)(le,{})}}(),{metadata:r}=l();return(0,o.jsxs)("div",{className:"row",children:[(0,o.jsxs)("div",{className:(0,h.A)("col",!n.hidden&&Be.docItemCol),children:[(0,o.jsx)(Se,{metadata:r}),(0,o.jsx)(w,{}),(0,o.jsxs)("div",{className:Be.docItemContainer,children:[(0,o.jsxs)("article",{children:[(0,o.jsx)(Ae,{}),(0,o.jsx)(T,{}),n.mobile,(0,o.jsx)(de,{children:t}),(0,o.jsx)(q,{})]}),(0,o.jsx)(y,{})]})]}),n.desktop&&(0,o.jsx)("div",{className:"col col--3",children:n.desktop})]})}function Ie(e){const t=`docs-doc-id-${e.content.metadata.id}`,n=e.content;return(0,o.jsx)(u,{content:e.content,children:(0,o.jsxs)(i.e3,{className:t,children:[(0,o.jsx)(c,{}),(0,o.jsx)(De,{children:(0,o.jsx)(n,{})})]})})}},81697:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});n(96540);var r=n(21312),i=n(17559),s=n(28774),o=n(1919),a=n(74848);function u(e){let{editUrl:t}=e;return(0,a.jsxs)(s.default,{to:t,className:i.G.common.editThisPage,children:[(0,a.jsx)(o.default,{}),(0,a.jsx)(r.default,{id:"theme.common.editThisPage",description:"The link label to edit the current page",children:"Edit this page"})]})}},1919:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});n(96540);var r=n(34164);const i={iconEdit:"iconEdit_Z9Sw"};var s=n(74848);function o(e){let{className:t,...n}=e;return(0,s.jsx)("svg",{fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,r.A)(i.iconEdit,t),"aria-hidden":"true",...n,children:(0,s.jsx)("g",{children:(0,s.jsx)("path",{d:"m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"})})})}},49532:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>B});var r=n(96540),i=n(5260),s=n(43463),o=n.n(s),a=n(74848);function u(e){return(0,a.jsx)("code",{...e})}var l=n(28774);var c=n(34164),h=n(63427),p=n(92303),d=n(41422);const f={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};function m(e){return!!e&&("SUMMARY"===e.tagName||m(e.parentElement))}function g(e,t){return!!e&&(e===t||g(e.parentElement,t))}function y(e){let{summary:t,children:n,...i}=e;(0,h.A)().collectAnchor(i.id);const s=(0,p.default)(),o=(0,r.useRef)(null),{collapsed:u,setCollapsed:l}=(0,d.u)({initialState:!i.open}),[y,x]=(0,r.useState)(i.open),b=r.isValidElement(t)?t:(0,a.jsx)("summary",{children:t??"Details"});return(0,a.jsxs)("details",{...i,ref:o,open:y,"data-collapsed":u,className:(0,c.A)(f.details,s&&f.isBrowser,i.className),onMouseDown:e=>{m(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const t=e.target;m(t)&&g(t,o.current)&&(e.preventDefault(),u?(l(!1),x(!0)):l(!0))},children:[b,(0,a.jsx)(d.N,{lazy:!1,collapsed:u,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{l(e),x(!e)},children:(0,a.jsx)("div",{className:f.collapsibleContent,children:n})})]})}const x={details:"details_b_Ee"},b="alert alert--info";function C(e){let{...t}=e;return(0,a.jsx)(y,{...t,className:(0,c.A)(b,x.details,t.className)})}function k(e){const t=r.Children.toArray(e.children),n=t.find((e=>r.isValidElement(e)&&"summary"===e.type)),i=(0,a.jsx)(a.Fragment,{children:t.filter((e=>e!==n))});return(0,a.jsx)(C,{...e,summary:n,children:i})}var v=n(51107);function A(e){return(0,a.jsx)(v.A,{...e})}const _={containsTaskList:"containsTaskList_mC6p"};function E(e){if(void 0!==e)return(0,c.A)(e,e?.includes("contains-task-list")&&_.containsTaskList)}const F={img:"img_ev3q"};var w=n(13472),T=n(70022),S=n.n(T);const B={Head:i.A,details:k,Details:k,code:function(e){return function(e){return void 0!==e.children&&r.Children.toArray(e.children).every((e=>"string"==typeof e&&!e.includes("\n")))}(e)?(0,a.jsx)(u,{...e}):(0,a.jsx)(o(),{...e})},a:function(e){return(0,a.jsx)(l.default,{...e})},pre:function(e){return(0,a.jsx)(a.Fragment,{children:e.children})},ul:function(e){return(0,a.jsx)("ul",{...e,className:E(e.className)})},li:function(e){return(0,h.A)().collectAnchor(e.id),(0,a.jsx)("li",{...e})},img:function(e){return(0,a.jsx)("img",{decoding:"async",loading:"lazy",...e,className:(t=e.className,(0,c.A)(t,F.img))});var t},h1:e=>(0,a.jsx)(A,{as:"h1",...e}),h2:e=>(0,a.jsx)(A,{as:"h2",...e}),h3:e=>(0,a.jsx)(A,{as:"h3",...e}),h4:e=>(0,a.jsx)(A,{as:"h4",...e}),h5:e=>(0,a.jsx)(A,{as:"h5",...e}),h6:e=>(0,a.jsx)(A,{as:"h6",...e}),admonition:w.A,mermaid:S()}},77910:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});n(96540);var r=n(28453),i=n(50210),s=n.n(i),o=n(74848);function a(e){let{children:t}=e;return(0,o.jsx)(r.x,{components:s(),children:t})}},19365:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});n(96540);var r=n(34164);const i={tabItem:"tabItem_Ymn6"};var s=n(74848);function o(e){let{children:t,hidden:n,className:o}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.A)(i.tabItem,o),hidden:n,children:t})}},11470:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n(96540),i=n(34164),s=n(23104),o=n(56347),a=n(205),u=n(57485),l=n(31682),c=n(70679);function h(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function p(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return h(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:i}}=e;return{value:t,label:n,attributes:r,default:i}}))}(n);return function(e){const t=(0,l.XI)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[t,n])}function d(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const i=(0,o.W6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,u.aZ)(s),(0,r.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(i.location.search);t.set(s,e),i.replace({...i.location,search:t.toString()})}),[s,i])]}function m(e){const{defaultValue:t,queryString:n=!1,groupId:i}=e,s=p(e),[o,u]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the component requires at least one children component");if(t){if(!d({value:t,tabValues:n}))throw new Error(`Docusaurus error: The has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:s}))),[l,h]=f({queryString:n,groupId:i}),[m,g]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[i,s]=(0,c.Dv)(n);return[i,(0,r.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:i}),y=(()=>{const e=l??m;return d({value:e,tabValues:s})?e:null})();(0,a.A)((()=>{y&&u(y)}),[y]);return{selectedValue:o,selectValue:(0,r.useCallback)((e=>{if(!d({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);u(e),h(e),g(e)}),[h,g,s]),tabValues:s}}var g=n(92303);const y={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=n(74848);function b(e){let{className:t,block:n,selectedValue:r,selectValue:o,tabValues:a}=e;const u=[],{blockElementScrollPositionUntilNextRender:l}=(0,s.a_)(),c=e=>{const t=e.currentTarget,n=u.indexOf(t),i=a[n].value;i!==r&&(l(t),o(i))},h=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=u.indexOf(e.currentTarget)+1;t=u[n]??u[0];break}case"ArrowLeft":{const n=u.indexOf(e.currentTarget)-1;t=u[n]??u[u.length-1];break}}t?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,i.A)("tabs",{"tabs--block":n},t),children:a.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>u.push(e),onKeyDown:h,onClick:c,...s,className:(0,i.A)("tabs__item",y.tabItem,s?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function C(e){let{lazy:t,children:n,selectedValue:s}=e;const o=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=o.find((e=>e.props.value===s));return e?(0,r.cloneElement)(e,{className:(0,i.A)("margin-top--md",e.props.className)}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:o.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==s})))})}function k(e){const t=m(e);return(0,x.jsxs)("div",{className:(0,i.A)("tabs-container",y.tabList),children:[(0,x.jsx)(b,{...t,...e}),(0,x.jsx)(C,{...t,...e})]})}function v(e){const t=(0,g.default)();return(0,x.jsx)(k,{...e,children:h(e.children)},String(t))}},26058:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(95293),i=n(6342);function s(){const{prism:e}=(0,i.p)(),{colorMode:t}=(0,r.G)(),n=e.theme,s=e.darkTheme||n;return"dark"===t?s:n}},96319:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Collapsible:()=>f.N,DraftBannerMessage:()=>P.TT,DraftBannerTitle:()=>P.Yh,ErrorBoundaryError:()=>M.bq,ErrorBoundaryErrorMessageFallback:()=>M.MN,ErrorBoundaryTryAgainButton:()=>M.a2,ErrorCauseBoundary:()=>M.k2,HtmlClassNameProvider:()=>x.e3,NavbarSecondaryMenuFiller:()=>C.GX,PageMetadata:()=>x.be,ReactContextError:()=>y.dV,SkipToContentFallbackId:()=>N.j,SkipToContentLink:()=>N.K,ThemeClassNames:()=>m.G,ThemedComponent:()=>o.A,UnlistedBannerMessage:()=>P.Uh,UnlistedBannerTitle:()=>P.Rc,UnlistedMetadata:()=>P.AE,composeProviders:()=>y.fM,createStorageSlot:()=>a.Wf,duplicates:()=>D.XI,filterDocCardListItems:()=>j,groupBy:()=>D.$z,isMultiColumnFooterLinks:()=>S.C,isRegexpStringMatch:()=>B.G,listStorageKeys:()=>a.Eo,listTagsByLetters:()=>_,prefersReducedMotion:()=>g.O,processAdmonitionProps:()=>L.c,translateTagsPageTitle:()=>A,uniq:()=>D.sb,useClearQueryString:()=>E.W9,useCollapsible:()=>f.u,useColorMode:()=>b.G,useContextualSearchFilters:()=>V,useCurrentSidebarCategory:()=>O,useDocsPreferredVersion:()=>R,useEvent:()=>y._q,useHistorySelector:()=>E.Hl,usePluralForm:()=>d,usePrevious:()=>y.ZC,usePrismTheme:()=>I.A,useQueryString:()=>E.l,useQueryStringList:()=>E.fV,useSearchLinkCreator:()=>T,useSearchQueryString:()=>w,useStorageSlot:()=>a.Dv,useThemeConfig:()=>s.p,useWindowSize:()=>k.l});var r=n(44586),i=n(2967),s=n(6342),o=n(9967),a=n(70679),u=n(96540);const l=["zero","one","two","few","many","other"];function c(e){return l.filter((t=>e.includes(t)))}const h={locale:"en",pluralForms:c(["one","other"]),select:e=>1===e?"one":"other"};function p(){const{i18n:{currentLocale:e}}=(0,r.default)();return(0,u.useMemo)((()=>{try{return function(e){const t=new Intl.PluralRules(e);return{locale:e,pluralForms:c(t.resolvedOptions().pluralCategories),select:e=>t.select(e)}}(e)}catch(t){return console.error(`Failed to use Intl.PluralRules for locale "${e}".\nDocusaurus will fallback to the default (English) implementation.\nError: ${t.message}\n`),h}}),[e])}function d(){const e=p();return{selectMessage:(t,n)=>function(e,t,n){const r=e.split("|");if(1===r.length)return r[0];r.length>n.pluralForms.length&&console.error(`For locale=${n.locale}, a maximum of ${n.pluralForms.length} plural forms are expected (${n.pluralForms.join(",")}), but the message contains ${r.length}: ${e}`);const i=n.select(t),s=n.pluralForms.indexOf(i);return r[Math.min(s,r.length-1)]}(n,t,e)}}var f=n(41422),m=n(17559),g=n(53109),y=n(89532),x=n(1003),b=n(95293),C=n(75600),k=n(24581),v=n(21312);const A=()=>(0,v.translate)({id:"theme.tags.tagsPageTitle",message:"Tags",description:"The title of the tag list page"});function _(e){const t={};return Object.values(e).forEach((e=>{const n=function(e){return e[0].toUpperCase()}(e.label);t[n]??=[],t[n].push(e)})),Object.entries(t).sort(((e,t)=>{let[n]=e,[r]=t;return n.localeCompare(r)})).map((e=>{let[t,n]=e;return{letter:t,tags:n.sort(((e,t)=>e.label.localeCompare(t.label)))}}))}var E=n(57485);const F="q";function w(){return(0,E.l)(F)}function T(){const{siteConfig:{baseUrl:e,themeConfig:t}}=(0,r.default)(),{algolia:{searchPagePath:n}}=t;return(0,u.useCallback)((t=>`${e}${n}?${F}=${encodeURIComponent(t)}`),[e,n])}var S=n(53106),B=n(91252),D=n(31682),I=n(26058),L=n(88473),N=n(75236),P=n(44084),M=n(12181);function O(){return n(48295).$S(...arguments)}function j(){return n(48295).d1(...arguments)}function R(){return n(48295).g1(...arguments)}function V(){const{i18n:e}=(0,r.default)(),t=n(48295).vF(),s=[i.C,...t];return{locale:e.currentLocale,tags:s}}},44084:(e,t,n)=>{"use strict";n.d(t,{AE:()=>u,Rc:()=>o,TT:()=>c,Uh:()=>a,Yh:()=>l});n(96540);var r=n(21312),i=n(5260),s=n(74848);function o(){return(0,s.jsx)(r.default,{id:"theme.contentVisibility.unlistedBanner.title",description:"The unlisted content banner title",children:"Unlisted page"})}function a(){return(0,s.jsx)(r.default,{id:"theme.contentVisibility.unlistedBanner.message",description:"The unlisted content banner message",children:"This page is unlisted. Search engines will not index it, and only users having a direct link can access it."})}function u(){return(0,s.jsx)(i.A,{children:(0,s.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}function l(){return(0,s.jsx)(r.default,{id:"theme.contentVisibility.draftBanner.title",description:"The draft content banner title",children:"Draft page"})}function c(){return(0,s.jsx)(r.default,{id:"theme.contentVisibility.draftBanner.message",description:"The draft content banner message",children:"This page is a draft. It will only be visible in dev and be excluded from the production build."})}},88473:(e,t,n)=>{"use strict";n.d(t,{c:()=>s});var r=n(96540),i=n(74848);function s(e){const{mdxAdmonitionTitle:t,rest:n}=function(e){const t=r.Children.toArray(e),n=t.find((e=>r.isValidElement(e)&&"mdxAdmonitionTitle"===e.type)),s=t.filter((e=>e!==n)),o=n?.props.children;return{mdxAdmonitionTitle:o,rest:s.length>0?(0,i.jsx)(i.Fragment,{children:s}):null}}(e.children),s=e.title??t;return{...e,...s&&{title:s},children:n}}},6568:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getAssetUrl=t.writeImagesToDisk=t.storeImage=void 0;const i=n(66590),s=r(n(57975)),o="rendered-components",a=[];function u(e,t,n){return`${e}.${t}.${n}.png`}t.storeImage=function(e,t,n,r){const i=Buffer.from(r,"base64");a.push({filename:u(e,t,n),content:i})},t.writeImagesToDisk=function(){return i.promises.mkdir(s.default.join("build",o)).then((()=>Promise.all(a.map((e=>i.promises.writeFile(s.default.join("build",o,e.filename),e.content)))).then((()=>{}))))},t.getAssetUrl=function(e,t,n){return`/${o}/`+u(e,t,n)}},83929:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAIRlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABIAAAAAQAAAEgAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAACCgAwAEAAAAAQAAACAAAAAAX7wP8AAAAAlwSFlzAAALEwAACxMBAJqcGAAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KTMInWQAACexJREFUWAmdV2tsXMUV/uY+d9d3/YqDHUKKSYLzDiIpUAEFB9EUWhApiYOaIgjQJog/ULVQVQVpS6nUltJUiNLmoZZfVMS0lGdBPOzmgSolEIVgEsvkYRLb8Sv2rnfv7t7X9JxZ72YNVJV6tbt37p2Z833nO2fOzAr8jyslU9rSzh6xcWNnyEOllNr2Pfcv8CL/4hBBfWm6MRnXzP6t1/3puBAi4ncduzt0vndOz+P2l13iy16W323fvsXcunWHz89/6P7BFYUwf08U+d8IZTjfjGmaEFINjSIJrxBFGrQTmqa/bZnxvzzU/twB7tyyfbW5Y+sHyoYa/Lmf/0ZApLra9dSa7mDX+w8sTOfT26AHt+iWICAfga/ECCXpwR+AqUhdNwUsW0dQpKdQfz0O54cPrn2uj2wZZIsnlRhXkfgyAiIlIVIC0e+77r3PD3I7zQREPutHEAgRQYeQDKjmUkhK5gS1InpJY6Io0mOOoXmulKYW2/LI2hd2kU0txQTETBJaFRnVpNhpDL7tvc2PGwl/VygDUciFPsWWx5pkQCNIMkP4lS/1MDT3ESbfi27oRzRXd/ydv3prwy9SZLOjs+MLeCpRyiRYqmdveSPc1nX3j61k9ER2Mh8Aao5RHlO6E7hOgujcHVIACL8kSPUwsq1FxaIfJmq19vaNy9ynb3txH+fEB68NqUTlwUpGbkzHKXj6vXuuj0yvu+B6EftUkrokM7VZRHI2QuQmIIs2rwrSpQjdyUJGbI5HlcazXWpLRFJaCUPTfLv9kbWd/ypjcX+ZgJpJxsRv3/3uMc2UbUExCmjytOfnjcqQWJk+Mh/PgduTJCXISMsk6lYNwrJMgqNEmEmAWMjQsIQeeqLv0ZtfXUTh5CEcMqn0JUYqFE+9d+dW29Ha/GLol8DZk/PecJPMQDNIfiOENCkEFq0wahfcEF4xUOFgzz536QEVjlitfukT/7ztfu5LdZcwZyjw67c3HCamK8l7WmLsW0lQviseWoQwnUThdAOK52hJjmvqtZ4MYNZSWJvOId6ShklLkUNTUUKtFFLB1kgF+dFjN79xGVlUqmvTFUv+5t07VgkdK70irSJa06Xp095XiZD5pA7pIyaKE6TfrAxA3yArkD9loXiyHvmMhF8gfcuuKXDFXydlpdDFyl++eesqdomxtWWzR9VQGchr7ZjBgSFtpz0u39UjUSInI/rRYgQwbxTxxQNILBmAcckYhYFyjaizY/lsRAXrPImyEhT7gCooqJJeSwPRMEGFkxt8RSJYwelDAGXupQ76LRtg0ciISjSzMUc9BpEyYDZRm8LDWcX5RV6i6EqEngFDj0EXlrJFYijbRHQFv7iwLSmNpaOzlcAyilrCgChUx05Nq/qhvtBjH6kYZhsgnGEldTjeBBFR3GmF0LZA1YjJ6DiX7gfsPtixZtTobcqQwohkCz8wttE5bT8et2w7YYCCT9dMEUoMyTDJnG/NYLDfR21/LZCLqWj5oyZcN4fkgiycJBdCE/lwBDfN+wnmNbYh441j/9B2MusJu8Yi3TwlCWNrHR0lBqatuXZMpwzW6Esmqr4WtWNxGwUcx7dv2Ii7Nt+JwbMD8IZj8IZsDI8OY936dbhpzTp44hTiiTh0q4BFcy/H8otXYf6sZQjCAqyYIe24BsPW84zK2MYn3aUkpLicUXVPBZx9ZhWU79TS4EUZNJlXY1HD1XDmJpH3snjh+Reh6zrW374BV37tq0qFo2PXIB18inp7CWosWrJeEWPZIbj+AKzipVI6ZFNGp5kAY59PwkgeUvGvJGEJnPkIYZCkZ3BlyybYRgK+TwWnIYf4irNIrByGOScH3wtgGTFcdWEHRgpvY0nTjUjGG7gKYzB9nBKzQPlFS8wjixKHmABfGtrb1cYgwmiPm6FeQSGqpGLpMR8OYb6zAa31y8kQMDR6Gm/1PoU5i220tGk4OLwLI5MDSrS5tQtxzQW/w2Vzr1MrJpefwtHxd0iNVjLmGy5t624+2qvQCZu23lTEx64Hr/9bHzHbE6NEJN/ViUMNoh9W5oqWdbSkTDqM+Nhz9BXYtgM9jJFLcZiWg0PDb5EyVJYpcjct2Yxa8p5D1zPwb4yH+2BqydCqIcGl3PPY2tf6GJOxSyHo7lb3MJTb1LpSmHSCoGzOBcexouEuNDsXk3GJ/rPHsffMw/CjcUwW+1S88/4IjqQfxUjuNBrqGqEbGnTNwGcjfdg39AxqY4voHONJrjpRgN8rx6YxK+utzGjb3g1diTqzvZANaEMKTQ0WNrY9Bceu4wqGIPAxTHJ/NtaLdHFU8a1PzMa8WW1orp0HwzCZPvJuAbs/fhxT2iewtEY/lpSmmwm6Hlnzyg1lLCbyuYMGELji3rzwei0rZk4WDodrLnxSr4s10SooUEXTYcdjWBBfgvkti+nsVYoUHURBJ1SVcL7nYcqdgqSNcvGsdrx/bn+YMJvM/BSthyncx6A9dMrmO1+UUqWr++fdkg8KP7vxjXPfvHP1h4inNzVZV2lfv2hTpOuamJyawEv7/0yMqZDoFnlOZ2BeRJQwfkCguTRODfdiz6edaDDnIhFz0GC3RGfdAd3TB4Fi8taf3vz3A4zBp64yboVJ+UX5tLL5Zdz+8OUHXmxtXC7oAO6/uv95/dW+e7WG+BVojC/CnGSbWmbMwfUnMOb1IYtjCI0DuLz2meiaizbQ1ifNM+ljctexNet3rsdLZdtlLL5/gQBlvE4bTiiLckW2mP2IC81Y5iyefP0O1MVbfdp0RChczUeaRMhTwlEcjThss17aZiKiBJRFccb8ziWUfFoLb260BOsva2x2Pirbriagsr/6BbVVXUgX0judpMNLsLDv0Ds76ZQwYiU004hFhkV7qmM2i6R5iagx5ouE0SIoZzTCN2xHmFEghj881fVHmus6yRpMFcZ3TmMo29V4MwjQBIPPaxMTE3c7Nc5VvL9nc9nOTd/asmVp0z1LJ8ay389lgpe9vN/vB34hiHxKRI9zoFAs+Keyk/4/zo1k72sZX7/0e9f96IF8wf1rFJICNTVXnjx5cjPbZoxqApUQUAf1C3nw4EFz4cKFRxOJxIJsNusODQ0tWLZs2dnqSau3rDavXn5BM9Uf2hKBmK6n39w/NPLBjpl/wbq6uppaW1uPO45Tm8vlTtB3CdnyyljVNllqpcbg4OBXMplMQM+S2g/xICZFN/67Zuye/tM5Y/L0w27ZofMYHkvTlae9vb0P5PN52d/fH504cYKqmapyFeUrcnR2dio1TNOcTSU1ogn3E/tdTIyUUX8u+b/iNJZIpVIV9fgdPcuNovQPmp9pDjvBc589fPhwjsKwIwzDZurqL2PxuMpFg5VBYtnc09OzkDvYQGXA/9ko29i7d+/8I0eOMAG2WyH/H45a9ExgQQ3bAAAAAElFTkSuQmCC"},43463:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=s(n(96540)),u=o(n(85819)),l=o(n(44586)),c=o(n(92303)),h=n(52112),p=o(n(65716)),d=o(n(83929)),f=o(n(98669)),m=n(66588),g=n(6568),y=n(86025),x=[{names:["fbsource","fbs"],project:"fbsource",canonicalName:"fbsource"},{names:["www"],project:"facebook-www",canonicalName:"www"}];t.default=e=>{const{siteConfig:t}=(0,l.default)(),n=(0,m.usePluginData)("internaldocs-fb").opts.maxCodeBlockHeight,r=(0,c.default)(),i=(0,a.useRef)(null),s=(0,a.useRef)(null),o=(0,a.useRef)(null),b=(0,a.useRef)(!1),[C,k]=(0,a.useState)(!1),v=(0,a.useCallback)((e=>{b.current||(window.requestAnimationFrame((()=>{s.current&&o.current&&(e.target.scrollTop>0?s.current.style.boxShadow="0 1em 1em -1em black inset":s.current.style.boxShadow="none",e.target.scrollTop===e.target.scrollHeight-e.target.offsetHeight?o.current.style.boxShadow="none":o.current.style.boxShadow="0 -1em 1em -1em black inset"),b.current=!1})),b.current=!0)}),[]);(0,a.useEffect)((()=>{i.current&&(i.current.addEventListener("scroll",v),window.requestAnimationFrame((()=>{v({target:i.current})})))}));const{withBaseUrl:A}=(0,y.useBaseUrlUtils)(),_=function(e){try{return(0,u.default)(e)}catch(t){return a.default.createElement("p",{style:{color:"red",fontWeight:"bold"}},"Could not render codeblock")}}(Object.assign({children:""},e));if(!r)return _;if("string"!=typeof e.file)return _;let E,F,w,T;if((0,h.isInternal)()){if(!t.customFields)return _;const{fbRepoName:n,ossRepoPath:r}=t.customFields;if("string"!=typeof n)return _;E="string"==typeof r&&"string"!=typeof e.repo?function(){for(var e=arguments.length,t=new Array(e),n=0;n e.startsWith("/")?e.slice(1):e)).map((e=>e.endsWith("/")?e.slice(0,e.length-1):e)).join("/")}(r,e.file):e.file;const i=x.find((t=>{var r;return t.names.includes((null!==(r=e.repo)&&void 0!==r?r:n).toLowerCase())}));if(void 0===i)return _;F=function(e,t){const n=new URL("https://www.internalfb.com");return n.pathname=`/code/${e.canonicalName}/${t}`,n.toString()}(i,E),w=function(e,t){const n=new URL("https://www.internalfb.com/intern/nuclide/open/arc");return n.searchParams.append("project",e.project),n.searchParams.append("paths[0]",t),n.toString()}(i,E),T=function(e,t){if("fbsource"!==e.canonicalName||!t.startsWith("fbandroid"))return null;const n=new URL("fb-ide-opener://open");return n.searchParams.append("ide","intellij"),n.searchParams.append("filepath",`/fbsource/${t}`),n.toString()}(i,E)}else{if("string"!=typeof t.organizationName||"string"!=typeof t.projectName)return _;E=e.file,F=function(e,t,n){const r=new URL("https://github.com");return r.pathname=`/${e}/${t}/blob/master/${n}`,r.toString()}(t.organizationName,t.projectName,e.file),w=null,T=null}const S=E.split("/"),B=S[S.length-1];return a.default.createElement("div",{className:`${f.default.CodeBlockFrame} ${C?f.default.WithImage:""}`},e.title?null:a.default.createElement("div",{className:f.default.CodeBlockHeader},a.default.createElement("a",{href:F,title:"Browse entire file",target:"_blank",rel:"noreferrer",onClick:()=>h.feedback.reportFeatureUsage({featureName:"browse-file",id:E}),className:f.default.CodeBlockFilenameTab},B),null!==w?a.default.createElement("a",{target:"_blank",rel:"noreferrer",href:w,onClick:()=>h.feedback.reportFeatureUsage({featureName:"open-in-vscode",id:E})},a.default.createElement("img",{title:"Open in VSCode @ FB",src:p.default})):null,null!==T?a.default.createElement("a",{target:"_blank",rel:"noreferrer",href:T,onClick:()=>h.feedback.reportFeatureUsage({featureName:"open-in-android-studio",id:E})},a.default.createElement("img",{title:"Open in Android Studio",src:d.default})):null),a.default.createElement("div",{style:{position:"relative"}},a.default.createElement("div",{ref:i,style:{maxHeight:n,overflowY:"auto"}},a.default.createElement("div",{style:{display:"flex",flexDirection:"row",width:"100%"}},a.default.createElement("div",{className:f.default.CodeBlockCodeFrame},_),a.default.createElement("div",{className:f.default.CodeBlockPreviewFrame},e.repo&&"string"==typeof e.classname&&"string"==typeof e.symbol?a.default.createElement("img",{onLoad:()=>{k(!0)},src:A((0,g.getAssetUrl)(e.repo,e.classname,e.symbol))}):null))),void 0===n?null:[a.default.createElement("div",{key:"shadowtop",ref:s,style:{bottom:0,left:0,right:0,top:0,pointerEvents:"none",transition:"all .2s ease-out",boxShadow:"none",position:"absolute"}}),a.default.createElement("div",{key:"shadowbottom",ref:o,style:{bottom:0,left:0,right:0,top:0,pointerEvents:"none",transition:"all .2s ease-out",boxShadow:"none",position:"absolute"}})]))}},65716:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAG/0lEQVR42r2XbVBU5xXH/yB1mpk6Tqa1k1Fsa9hFzdhJJhknzfRDZ2rHdpx2mklDbdOZ1tpWg0GhgK/4shIBESTaqiNjTaOGoMsCu4ggb8E3UqQUd3mxRUVjaBKbMO7dF5Zl793n9NxnL9wdGMcvJP/ZM+d57of9/8459z57FzMvSkCafZZc2mmWjC9NNlsiDKURzTbXXwaI3W4abG869s0jAw8W1wfPpNb871mwvtiO2NqTjNUs7GxtxJtdlLijnRa3EC1uGCOrS6m2OkZeNKdEiZgxrSv/isxrT85BXvN1FHQRtjePJ21rjVprvGpqfVAsadNBwpTq8jVY7J//YAbNu2PmGZXzsaP5FvL/QdyBcWxrpqStLWSp9lJqXYCNAypHdAl3ZCnDpNZ4Dz6yE3KWRAl4nMoN86yapWz+ALZrXHlLBHmthK1NlLSl2QAIktUZkJHqDERS63kktf7QU4VX5k1/fGySyLxhHld57vmXuN1B7L4szTmIYQhbLlLS5maRUvWQ5x9kw8AEhLDWhchS4/Mml32wAJOKr7jE8yL2t8w1q3zEzLPrfoptTYS894mzym3XM4Nw3tyoJW1poRSHogMIHcAIkVo3xp3xKQuLr803K59QmacU5cOEt/qGUNS1fKITBmDC5N2eU/873VhWvPWiprc8FhdjMDsuUVJOQ9BSpYSszlGyVvvJWhPgYAAXAzhMALP60t5ynPiEcGgggiN3ON8klLgzYCjOPAe7LkszbrUms4zGqNzbPiBkOTvnbji5kiv93OoKc8UBwSGz1TkFQCr92JM42DeOw4OEsn4VZQMaB+H4MPFIKrHG9tWY+YVi7LrKxmwWCzJCxdZmHsclQqbjbwBmLzhy/esWu+Kz1obY0C84ZJb7KsUEmLzxdrf9Hm/9m/RgGA0H+wVHBMc/1qH+iewLZ5DbSsht1DgENjcQh76PgA8d7kwY60//AYYWFLcnW+xexVqjG/oFhwSQe3s8QDzE9oZXUdKr4RB3orRPRWk/8V7F4duEw0NcaauGDTWE7Ho2bBDcEQ07r3DLXf1YfeB56GonOaqFxc3zU84piqU6RCk6gN0vs9yfMwHiIWIzzq5agWJPUDeUMCV9hAN9UZT0MxCPZXcHIb1WIPM8YcdlwkbHaQBzJ+8T4wdpoa15/tNnFSXFwYZ2v0g555dZ7s9OAZj27K/7+3ex330XZdyJ4t4oA+hZBkMI7PsXIaNuFK8dXTOti0QJEwAplV7FUqVXLAFk5r0J8Mhn/OWi7yC9eggFN7gLA1Hs90wC8FrwNT2P8tH7y/gTdBrAewbAWb/gkNli532lCTD9dEuveAGZdT78uZGwvlqD7TqPgCGKPBqKdACOIoYoZohD9wgFPcfij+cJgG9IAEV5hg2XsfHSSj8b650I0dPvTQVIM+jTz/0ImS4VOWyeVacio5awrkrFni5C2R02dmsodBMKPXoIuT/0IfG1buy8vCg2ioHZYG080Zm8pMKroGKUcEoROOOjZZU+8ax9lBZVMIBt6mO4wf4qsupJxianhk0uIWFy2whr3+3Dro5alN3VjTVpXsAQMtwRlN7W8yj2dv4Cpubg1MOHa/l9ILcpIF5z+QnvMMipID3Ho5EAZgf2z8XG2rBhrvI6ypmQ20LcFReWr3oKuvKuHkXpEGGfO2oExeKGisI+eoJBEvO7D4KljEbWf+rTSI0SCf5ENEH3H2qirGOccMKrvPKX9mTEKQGvV57G5jZi8wiyLnB2Ef74Tt70s+LSXhTfIrzp1iNqZErk9bwCt8DeQeq9671PpsTUddPNkBd4e97UH6NE/Ond48huImxwfITVZSsnjOWNFf9zndu0CQUDbOwh5PdoyL9BiwoYJKdbODo+0YgVFfwRMcO6jjCtLg3QuqNBGg2LKLFCofE0sKZCJODXR3+CH77x7Ue8EyRMXstq+A1sPdz+fvpaPo9gdw8tP9BLwXDMX2MCXe7bEcIrCq3cF6C/OkM6gEYx9WLal8tKzZY/9iX0Dccq7Oke+1bRTa6+Sy1x3iWWLN3wpytunvkqhW5+qMq9ECJ+LMtgKt74sa9k5tG99tRLlr3dI8jto4pLw5EJE5XrvPepRif5KcBvfeS8Gqahj1W+Lr0nurBiRl7H03KOP4P0jnsn3x8hloQYiwhChk+af3+Pn/BzhVYUBshQ1Mjfm8H/BMsXppd7PBRTRO/ArWGVys+HCGt8dLZtjIY/0+LNP+OYgxmRebM++WDE3yVdohTW81XPOOHHCt36SJXT4etjBkAhZlJ2ikF0tjcka5r2X8NEa+sej+Bnitp7R43EVX+NIxEzLTIgBgcHF6iquECsrttEeJno/ohBFKW3yfjj+sVBmOvnL3aGM/Ern63nP5F03i+BlGn+f10JyvFCZOA3AAAAAElFTkSuQmCC"},17269:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Button=void 0;const i=r(n(96540)),s=r(n(1929)),o=r(n(21571));t.Button=e=>{let{children:t,className:n,onClick:r,style:a,type:u,disabled:l}=e;return i.default.createElement("button",{className:(0,s.default)(o.default.button,n),onClick:r,style:a,type:u,disabled:l},t)}},11120:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ClosableDiv=t.EditorTrigger=void 0;const a=s(n(96540)),u=o(n(20312)),l=o(n(28774)),c=n(96319),h=n(66588),p=o(n(86025)),d=n(17269),f=n(1217),m=n(30863),g=n(52112),y=n(97887),x=n(52112),b=n(47071),C=o(n(65244)),k=o(n(37984));function v(e){let{onDecision:t,lastEditTimestamp:n}=e;return a.default.createElement(a.default.Fragment,null,a.default.createElement("h3",null,"Continue"),a.default.createElement("p",null,"Do you want to continue with your last edit?"),n&&a.default.createElement("p",null,"created on: ",new Date(Number(n)).toLocaleString()),a.default.createElement("div",{style:{display:"flex",flexDirection:"row",gap:12,justifyContent:"end"}},a.default.createElement(d.Button,{onClick:()=>{t(!1)}},"No"),a.default.createElement(d.Button,{onClick:()=>{t(!0)}},"Yes")))}function A(){return(0,h.usePluginData)("internaldocs-fb")}const _={isMarkdownish:e=>/\.mdx?$/i.test(e),hasBannedCharacters:e=>e.replace(/[\w\d.\-_/]/gi,"").length>0,hasParentDirAccess:e=>e.startsWith("../")||e.includes("/../")};function E(e){let{onSubmit:t,handleCloseEditor:n,repoRootToWebsiteRoot:r}=e;const[i,s]=(0,a.useState)(""),o=!i||!_.isMarkdownish(i)||_.hasBannedCharacters(i)||_.hasParentDirAccess(i);return a.default.createElement("form",{onSubmit:e=>{e.preventDefault(),o||t("docs/"+i)}},a.default.createElement("label",{style:{display:"block",marginBottom:12}},a.default.createElement("span",null,"New page file path"),a.default.createElement("div",{style:{display:"flex"}},a.default.createElement("code",null,r,"/docs/"),a.default.createElement("input",{type:"text",value:i,placeholder:"path/to/file.md",onChange:e=>{let{target:t}=e;return s(t.value)},style:{flexGrow:1},autoFocus:!0}))),o&&a.default.createElement("ul",{className:k.default.filepath_validation_list},!_.isMarkdownish(i)&&a.default.createElement("li",null,"You can only create markdown and mdx files, must end with `.mdx` or `.md`"),_.hasBannedCharacters(i)&&a.default.createElement("li",null,"File path contains disallowed symbols. You can use alphanumricals, dot, slash, hyphen and underscore."),_.hasParentDirAccess(i)&&a.default.createElement("li",null,"You cannot create files outside of website directory")),a.default.createElement(d.Button,{type:"submit",disabled:o,style:{display:"block",marginLeft:"12px",float:"right"}},"Continue"),a.default.createElement(d.Button,{onClick:n,style:{display:"block",marginLeft:"auto"}},"Cancel"))}function F(e){let{isOpen:t,onClose:n,kind:r,editUrl:i}=e;var s,o,h;const[d,m]=(0,a.useState)({type:r===y.DiffKind.modify?"restore-session-prompt":"input-new-page-path"}),x=A(),{repoRootToWebsiteRoot:C}=x,k=(0,a.useMemo)((()=>`pageRawContent-${(0,b.generateHash)(`${(0,g.getEphemeralDiffNumber)()}${i}`)}`),[i]),[_,F]=(0,a.useState)(null),T=(0,a.useMemo)((()=>(0,b.getFilePathRelativeToDocsFolder)(i,x.docsDir)),[i,x.docsDir]),S=(0,p.default)(`_src/${T}`),B=(0,a.useMemo)((()=>(0,c.createStorageSlot)(k)),[k]),D=(0,a.useCallback)((()=>{var e;m({type:"submitting"});const t=null==_?void 0:_.pageRawContent,n=(0,g.hasEphemeralDiffNumber)()?Number(null===(e=(0,g.getEphemeralDiffNumber)())||void 0===e?void 0:e.slice(1)):null;if(null==_)throw new Error("Attempting to submit a diff with null content, report to staticdocs oncall");const s=r===y.DiffKind.add?_.newFilePath:i?(0,b.getFilePathRelativeToRepoRoot)(i):null;if(!s){const e=`The provided url ${i} is invalid`;throw m({type:"failed",reason:e}),new Error(e)}if(null==t)throw m({type:"failed",reason:"The page's raw content cannot be null"}),new Error("The page's raw content cannot be null");g.inpageeditor.submitDiff({file_path:s,new_content:t,project_name:null,diff_number:n,diff_kind:r}).then((e=>{m({type:"success",url:e.xfb_static_docs_editor_create_diff.url,diffId:e.xfb_static_docs_editor_create_diff.number_with_prefix})})).catch((e=>{const t=`Error occurred while trying to create diff from editor. Stack trace ${e}`;throw m({type:"failed",reason:t}),new Error(t)}))}),[m,i,_,r]);(0,a.useEffect)((()=>{if(r===y.DiffKind.add)return;const e=B.get();try{F(e?JSON.parse(e):null)}catch(t){F(null)}}),[B,r]);const I=(0,a.useCallback)((e=>{if(e){const e=B.get();if(null==e)throw new Error("Cannot restore page raw content with no saved state in local storage");const t=JSON.parse(e);m({type:"editing"}),F({pageRawContent:t.pageRawContent,timestamp:t.timestamp,newFilePath:""})}else m({type:"loading-raw-content"}),fetch(S).then((e=>{if(!e.ok){const e="Failed to fetch page raw content from server.";throw m({type:"failed",reason:e}),new Error(e)}return e.text()})).then((e=>{F({pageRawContent:e,timestamp:Date.now().toString(),newFilePath:""}),m({type:"editing"})})).catch((e=>{m({type:"failed",reason:`Error occurred while trying fetch page raw content. Stack trace ${e}`})}))}),[m,S,B]);(0,a.useEffect)((()=>{if(r===y.DiffKind.add)return;null===B.get()?I(!1):m({type:"restore-session-prompt"})}),[]);const L=(0,a.useCallback)((e=>{B.set(JSON.stringify(e)),m({type:"editing"}),F({pageRawContent:e.pageRawContent,timestamp:e.timestamp,newFilePath:e.newFilePath})}),[m,B]),{colorMode:N}=(0,c.useColorMode)(),P=(0,a.useMemo)((()=>{let e="min(80vw, 1916px)";return"restore-session-prompt"!==d.type&&"loading-raw-content"!==d.type||(e="min(20, 360px)"),"input-new-page-path"===d.type&&(e="min(40, 520px)"),{content:{backgroundColor:"dark"===N?"black":"white",width:e,maxHeight:"calc(100% - 100px)",margin:"80px auto 10px",inset:"auto",overscrollBehavior:"contain"},overlay:{background:"rgba(0, 0, 0, .5)","overflow-y":"auto",display:"flex",alignItems:"flex-start",justifyContent:"center",zIndex:10}}}),[N,d.type]),M=null!==(s=null==_?void 0:_.timestamp)&&void 0!==s?s:null;return a.default.createElement(u.default,{ariaHideApp:!1,isOpen:t,shouldCloseOnOverlayClick:!1,shouldCloseOnEsc:!1,style:P},"restore-session-prompt"===d.type&&a.default.createElement(v,{onDecision:I,lastEditTimestamp:M}),"loading-raw-content"===d.type&&a.default.createElement("div",null,"Loading raw page content..."),"input-new-page-path"===d.type&&a.default.createElement(E,{handleCloseEditor:n,repoRootToWebsiteRoot:C,onSubmit:e=>{F({timestamp:Date.now().toString(),pageRawContent:"",newFilePath:`${C}/${e}`}),m({type:"editing"})}}),"editing"===d.type&&a.default.createElement(f.SDocEditor,{pageRawContent:null!==(o=null==_?void 0:_.pageRawContent)&&void 0!==o?o:"",diffKind:r,newFilePath:null!==(h=null==_?void 0:_.newFilePath)&&void 0!==h?h:"",setPageRawContentVersion:L,onEditorSubmit:D,handleCloseEditor:n,isSubmitting:!1}),"submitting"===d.type&&a.default.createElement(w,{onClose:n},"Submitting changes..."),"success"===d.type&&a.default.createElement(w,{onClose:n},"Diff has been submitted"," ",a.default.createElement(l.default,{to:d.url},d.diffId)),"failed"===d.type&&a.default.createElement(w,{onClose:n},"Error: ",d.reason))}function w(e){let{children:t,onClose:n}=e;return a.default.createElement("div",null,a.default.createElement(d.Button,{onClick:n,style:{position:"absolute",padding:"2px 2px 1px",top:0,right:0}},a.default.createElement("img",{src:C.default,style:{height:"17px"}})),t)}t.EditorTrigger=function(e){let{position:t}=e;var n;const r=null===(n=(0,m.useDocMeta)())||void 0===n?void 0:n.metadata,[i,s]=(0,a.useState)({isOpen:!1,kind:y.DiffKind.modify}),o=A(),u=(0,a.useMemo)((()=>(0,x.isInternal)()&&(null==r?void 0:r.editUrl)?(0,b.getFilePathRelativeToDocsFolder)(r.editUrl,o.docsDir):null),[r,o.docsDir]);if(null==r)return null;const{editUrl:l}=r;if("before-post"===t&&"top"!==o.opts.enableEditor)return null;if("after-post"===t&&![!0,"bottom"].includes(o.opts.enableEditor))return null;if(!(l||r.lastUpdatedAt||r.lastUpdatedBy))return null;o.repoRootToWebsiteRoot;const c="undefined"!=typeof window&&"1"===new URLSearchParams(window.location.search).get("enableEditor"),h=!0;return l&&u&&(c||(0,x.isInternal)()&&h)?a.default.createElement("div",{className:"margin-vert--"+("after-post"===t?"xl":"xs"),id:"editor-trigger"},a.default.createElement(d.Button,{onClick:()=>s({isOpen:!0,kind:y.DiffKind.modify}),style:{marginRight:8}},"Edit this page"),a.default.createElement(d.Button,{onClick:()=>s({isOpen:!0,kind:y.DiffKind.add})},"Add new page"),i.isOpen?a.default.createElement(F,{isOpen:!0,kind:i.kind,onClose:()=>{s({isOpen:!1,kind:y.DiffKind.modify})},editUrl:l}):null):null},t.ClosableDiv=w},65244:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKdJREFUeNrslQEKgDAIRefooO0GO0o3WFfqRNZAotbcNLAIGkjUPr7U6TwiOkvzznh9HzCUHwAgPyK9TkI/uz7n/bTKopAYyZLAeTroo7bIYweSSMOvSgTlX3GRVDUXfwygB2H3NADOUTM6LaAGaabuDoCDJElNzRvt9RSZFtn0mJo2WpScFgainkXzZqGxH0gjH9fFiJaM6wxZOD00muu/Mp8BrAIMAE/aslxTtku5AAAAAElFTkSuQmCC"},1217:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SDocEditor=void 0;const a=s(n(96540)),u=o(n(28774)),l=o(n(21312)),c=o(n(86025)),h=o(n(11470)),p=o(n(19365)),d=n(86850),f=n(63709),m=o(n(50210)),g=n(97887),y=n(17269),x=n(46832),b=o(n(46735)),C=e=>({...m.default,MDXProvider:f.MDXProvider,Link:u.default,Translate:l.default,Tabs:h.default,TabItem:p.default,__unknownComponent:t=>function(n){const r=t in e,i=a.default.useMemo((()=>Object.keys(n).reduce(((e,t)=>("children"!==t&&(e[t]=n[t]),e)),{})),[n]);return a.default.createElement("div",{className:b.default.unknown_component},r&&a.default.createElement("p",null,"Live preview does not support imported components"),a.default.createElement("p",{style:{marginBottom:4}},r?"Imported":"Unknown"," component"," ",a.default.createElement("b",null,a.default.createElement("code",null,t))," ","with props ",a.default.createElement("code",null,(e=>{try{return JSON.stringify(e)}catch(t){return console.warn("Could not stringify props for UnknownComponent",e),"Could not stringify"}})(i))),!r&&a.default.createElement("details",null,a.default.createElement("summary",null,"Why did it not render?"),"Editor cannot render it due to the component being custom or nondefined"),n.children?a.default.createElement("div",{className:b.default.unknown_component_children},n.children):null)}});function k(e){let{onCancel:t,isSubmitDisabled:n,diffKind:r,filename:i}=e;return a.default.createElement("div",{className:b.default.editor_header},a.default.createElement("span",null,a.default.createElement("h2",{style:{margin:0}},"Staticdocs editor"),r===g.DiffKind.add?`Add content for a new file ${i}`:`Edit existing ${i}`),a.default.createElement("div",{className:b.default.cta_wrapper},a.default.createElement(y.Button,{onClick:t},"Cancel"),a.default.createElement(y.Button,{type:"submit",disabled:n},"Publish Diff")))}function v(){return a.default.createElement("div",{className:b.default.show_info},a.default.createElement("h3",null,"Note"),a.default.createElement("p",null,"The Live preview fails to render. ",a.default.createElement("br",null),"This might be because we currently do not have support for the operation being performed on the page e.g code-snippets. Please ignore this"," ",a.default.createElement("b",null,"if you are sure")," it is the case and continue with the editor."," ",a.default.createElement("b",null,"Happy Editing!")))}t.SDocEditor=function(e){let{onEditorSubmit:t,handleCloseEditor:n,pageRawContent:r,setPageRawContentVersion:i,isSubmitting:s,diffKind:o,newFilePath:u}=e;const[l,h]=(0,a.useState)(!1),[p,m]=(0,a.useState)({}),g=a.default.useMemo((()=>C(p)),[p]),y=(0,a.useCallback)((e=>{e.preventDefault(),t()}),[t]),A=(0,a.useCallback)((e=>{const t=(0,x.mdxToReactString)(e);if(null===t.code)return h(!0),"";h(!1);return Object.keys(p).join(",")!==Object.keys(t.importedComponents).join(",")&&m(t.importedComponents),`\n ${t.code}\n render(\n \n \n )\n `}),[h,p]),_=(0,a.useCallback)((e=>{i({pageRawContent:e,timestamp:Date.now().toString(),diffKind:o,newFilePath:u})}),[i,o,u]);if(null===r)return null;const E=u.split("/").pop();if(void 0===E)throw new Error(`Could not extract filename from "${u}"`);return a.default.createElement(d.LiveProvider,{code:r,noInline:!0,scope:{components:g,MDXProvider:f.MDXProvider,mdx:f.mdx,useBaseUrl:c.default},transformCode:A},a.default.createElement("form",{onSubmit:y,className:b.default.editor},a.default.createElement(k,{isSubmitDisabled:s,onCancel:n,diffKind:o,filename:E}),a.default.createElement("div",{className:b.default.editor_input},a.default.createElement(d.LiveEditor,{className:b.default.live_editor,onChange:_})),a.default.createElement("div",{className:b.default.editor_preview},l?a.default.createElement(v,null):a.default.createElement(d.LivePreview,{className:b.default.live_preview}),a.default.createElement(d.LiveError,{className:b.default.live_error}))))}},42268:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(96540)),s=r(n(85417)),o=n(30863);t.default=function(e){return i.default.createElement(o.DocMetaProvider,{value:{frontMatter:e.content.frontMatter,metadata:e.content.metadata}},i.default.createElement(s.default,{...e}))}},47071:(e,t)=>{"use strict";function n(e){const t=new URL(e).pathname;let n;if(t.startsWith("/intern/diffusion/"))n=6;else{if(!t.startsWith("/code/"))return console.warn(`Unexpected editUrl format for in-page editor: ${e}`),null;n=3}const r=t.split("/");if(r.length<=n||""==r[r.length-1])return null;return t.split("/").slice(n).join("/")}Object.defineProperty(t,"__esModule",{value:!0}),t.generateHash=t.getFilePathRelativeToDocsFolder=t.getFilePathRelativeToRepoRoot=void 0,t.getFilePathRelativeToRepoRoot=n,t.getFilePathRelativeToDocsFolder=function(e,t){const r=n(e);if(!r)return null;const i=t.split("/");for(let n=0;n\n {e.children=e.children.reduce(((e,t)=>{if("text"!==t.type)return e.push(t),e;const n=/(^|\W)((D|T|P|S|L|EX)\d+)(.)?/;if(!("value"in t))throw new Error('remark text node is missing "value" field');let r=t.value;if("string"!=typeof r)throw new Error('remark text node is missing "value" field');let i=r.match(n);for(i||e.push(t);i;){const[u,c,h,p,d]=i,f=i.index;if(null==f)break;"number"==typeof f&&f>0&&e.push(l(r.slice(0,i.index),t.position)),c&&e.push(l(c,t.position));if(d&&d.match(/\w/))e.push(l(h,t.position));else{const n=h.match(/^S(\d+)$/),r=n?`https://internalfb.com/sevmanager/view/${n[1]}`:`https://internalfb.com/${h}`;e.push((s=h,o=r,a=t.pos,{type:"link",url:o,children:[l(s,a)],position:{start:a,end:a}}))}d&&e.push(l(d,t.position)),r=r.slice(f+i[0].length),i=r.match(n),r&&!i&&e.push(l(r,t.position))}var s,o,a;return e}),[])}))}}},46832:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mdxToReactString=void 0;const i=r(n(86861)),s=n(76186),o=n(89204),a=n(25645),u=n(22827),l=new Map,c=()=>e=>(0,s.remove)(e,(e=>{var t,n,r;return"mdxjsEsm"===e.type&&(null===(r=null===(n=null===(t=e.data)||void 0===t?void 0:t.estree)||void 0===n?void 0:n.body)||void 0===r||r.forEach((e=>{"ImportDeclaration"===e.type&&e.specifiers.forEach((t=>{l.set(t.local.name,e.source.value)}))})),!0)})),h=new Set(["/*@jsxRuntime classic @jsx React.createElement @jsxFrag React.Fragment*/",'import React from "react";',"export default MDXContent;"]);t.mdxToReactString=function(e){const t=/^---(.|\n)*?---/;try{return{code:(0,o.compileSync)(e.replace(t,"").split("\n").map((e=>{const t=e.trim().match(/^$/);return t?`{/*${t[1]}*/}`:e})).join("\n"),{remarkPlugins:[[a.remarkMermaid,{version:"v2"}],[u.internLinks,{}],i.default,c],format:"mdx",jsxRuntime:"classic",outputFormat:"program"}).value.toString().replace("const _components =","let _components =").split("\n").filter((e=>!h.has(e))).map((e=>{const t=e.match(/if \(!(.+)\) _missingMdxReference/);if(null===t)return e;const n=t[1];return` if (!${n}) ${n} = _components.__unknownComponent("${n}");`})).join("\n"),importedComponents:Object.fromEntries([...l])}}catch(n){return console.warn("Transpiler error",n),{code:null,importedComponents:{}}}finally{l.clear()}}},25645:(e,t)=>{"use strict";function n(e){return"code"===e.type&&"mermaid"===e.lang}function r(e){e.children=e.children.map((e=>{if(n(e)){return{type:"jsx",value:[" "].join("\n"),position:{...e.position,indent:[1,1,1]}}}return e}))}function i(e){e.children=e.children.map((e=>{if(n(e)){const t={start:{line:e.position.start.line,column:e.position.start.column},end:{line:e.position.end.line,column:e.position.end.column}},n=e.position.start.offset,r=e.position.end.offset,i=[n,r];return{type:"mdxJsxFlowElement",name:"Mermaid",data:{_xdmExplicitJsx:!0},children:[],meta:null,attributes:[{type:"mdxJsxAttribute",name:"chart",value:{type:"mdxJsxAttributeValueExpression",value:["`\n",e.value,"`"].join("\n"),data:{estree:{body:[{type:"ExpressionStatement",start:n,range:i,loc:t,expression:{loc:t,range:i,start:n,end:r,type:"Literal",value:e.value,raw:["`\n",e.value,"`"].join("\n")}}],comments:[],end:r,loc:t,range:i,sourceType:"module",start:n,type:"Program"}}},position:e.position}]}}return e}))}Object.defineProperty(t,"__esModule",{value:!0}),t.remarkMermaid=void 0,t.remarkMermaid=function(e){return"v1"===(null==e?void 0:e.version)?r:i}},30863:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.useDocMeta=t.DocMetaProvider=void 0;const o=s(n(96540)),a=o.default.createContext(null);t.DocMetaProvider=a.Provider;t.useDocMeta=()=>(0,o.useContext)(a)},12216:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(96540)),s=r(n(81697)),o=n(96319),a=r(n(1919)),u=n(52112),l=e=>{let{url:t}=e;return i.default.createElement("a",{href:t,target:"_blank",rel:"noreferrer noopener",className:o.ThemeClassNames.common.editThisPage},i.default.createElement(a.default,null),"View in CodeHub")};t.default=function(e){return(0,u.isInternal)()?i.default.createElement(l,{url:e.editUrl}):i.default.createElement(s.default,{...e})}},45835:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAPFJREFUOBGtkD8OAVEQxpcQR+ACSolTKGyh0KtQECdwBFdwA+fQoBGlzhVI/CnwG7vz8t6zj5X4km9n5vtmZmc3iv6ImF0reIWPAMWTHul1IEJoKKQ7S9beghP1ENZSDohHaC+TSwz8syc4JdhPWSaOob1AZgxsQ/I67ELVW+QNq1YdKYEKfrxjT2ERylW+j5TAN7Sepf6IeIGqa4wKaYMIWVggnmEvy0TT+ehGoVvt2EaPA97rJ8q3CXZJ+Om5tbs7FPLD7Ld/y+UyB7JkAz8Nytlr+DaMZmAvOKA2jZMz0QVL+qs5Z5y2PdUcVhw1UDwBK0d9heZjHrYAAAAASUVORK5CYII="},38640:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeedbackButton=void 0;const a=s(n(96540)),u=n(52112),l=o(n(23388)),c=o(n(45835)),h=o(n(20181));t.FeedbackButton=()=>{const[e,t]=(0,a.useState)(!1),[n,r]=(0,a.useState)(""),[i,s]=(0,a.useState)(!1),[o,p]=(0,a.useState)(0),[d,f]=(0,a.useState)(0);(0,a.useEffect)((()=>(document.addEventListener("mouseup",m),function(){document.removeEventListener("mouseup",m)}))),(0,a.useEffect)((()=>{let e=!0;return u.checkGKs.gk("sdocs_inline_feedback").then((t=>{e&&s(t)})),()=>{e=!1}}),[]);const m=(0,h.default)((0,a.useCallback)((e=>{var s;if(""!==(null===(s=document.getSelection())||void 0===s?void 0:s.toString())&&i){const i=document.getSelection();if(i&&i.toString()!=n){e&&e.preventDefault();const n=i.getRangeAt(0).getBoundingClientRect(),s=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;p(n.top-40+s),f(n.left+n.width/2-40),r(i.toString()),t(!0)}}else t(!1),f(0),p(0)}),[i,n]),200);return a.default.createElement(a.default.Fragment,null,e&&a.default.createElement("button",{onClick:()=>{var e;null!==n&&""!==n&&(null===(e=window.getSelection())||void 0===e||e.removeAllRanges(),u.feedback.reportContentSelected({textContent:n}))},className:l.default.FeedbackButton,style:{position:"absolute",top:o,left:d}},a.default.createElement("img",{src:c.default,className:l.default.FeedbackIcon}),"Feedback"))}},50210:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(49532)),s=n(52112),o=r(n(70022)),a={...i.default,FbInternalOnly:s.FbInternalOnly,FBInternalOnly:s.FbInternalOnly,OssOnly:s.OssOnly,OSSOnly:s.OssOnly,Mermaid:o.default};t.default=a},61823:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(96540)),s=r(n(77910)),o=n(11120),a=n(38640);t.default=function(e){return i.default.createElement(i.default.Fragment,null,i.default.createElement(o.EditorTrigger,{position:"before-post"}),i.default.createElement(s.default,{...e}),i.default.createElement(a.FeedbackButton,null),i.default.createElement(o.EditorTrigger,{position:"after-post"}))}},70022:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=s(n(96540)),u=o(n(9465));u.default.initialize({startOnLoad:!0});t.default=e=>{let{chart:t}=e;return(0,a.useEffect)((()=>u.default.contentLoaded()),[]),a.default.createElement("div",{className:"mermaid"},t)}},74353:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",s="minute",o="hour",a="day",u="week",l="month",c="quarter",h="year",p="date",d="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},y=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},x={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+y(r,2,"0")+":"+y(i,2,"0")},m:function e(t,n){if(t.date() 1)return e(o[0])}else{var a=t.name;C[a]=t,i=a}return!r&&i&&(b=i),i||!r&&b},_=function(e,t){if(v(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new F(n)},E=x;E.l=A,E.i=v,E.w=function(e,t){return _(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var F=function(){function g(e){this.$L=A(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[k]=!0}var y=g.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(t)}(e),this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return E},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(e,t){var n=_(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return _(e) {"use strict";e.exports=n(84324)},90587:e=>{"use strict";function t(e){if(null==e)return n;if("string"==typeof e)return function(e){return t;function t(t){return Boolean(t&&t.type===e)}}(e);if("object"==typeof e)return"length"in e?function(e){var n=[],r=-1;for(;++r {e.exports=function(e){return e}},72043:(e,t,n)=>{"use strict";e.exports=u;var r=n(90587),i=n(30914),s=!0,o="skip",a=!1;function u(e,t,n,u){var l,c;"function"==typeof t&&"function"!=typeof n&&(u=n,n=t,t=null),c=r(t),l=u?-1:1,function e(r,h,p){var d,f="object"==typeof r&&null!==r?r:{};"string"==typeof f.type&&(d="string"==typeof f.tagName?f.tagName:"string"==typeof f.name?f.name:void 0,m.displayName="node ("+i(f.type+(d?"<"+d+">":""))+")");return m;function m(){var i,d,f=p.concat(r),m=[];if((!t||c(r,h,p[p.length-1]||null))&&(m=function(e){if(null!==e&&"object"==typeof e&&"length"in e)return e;if("number"==typeof e)return[s,e];return[e]}(n(r,p)),m[0]===a))return m;if(r.children&&m[0]!==o)for(d=(u?r.children.length:-1)+l;d>-1&&d {"use strict";e.exports=a;var r=n(72043),i=r.CONTINUE,s=r.SKIP,o=r.EXIT;function a(e,t,n,i){"function"==typeof t&&"function"!=typeof n&&(i=n,n=t,t=null),r(e,t,(function(e,t){var r=t[t.length-1],i=r?r.children.indexOf(e):null;return n(e,i,r)}),i)}a.CONTINUE=i,a.SKIP=s,a.EXIT=o},42838:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object;let{freeze:s,seal:o,create:a}=Object,{apply:u,construct:l}="undefined"!=typeof Reflect&&Reflect;s||(s=function(e){return e}),o||(o=function(e){return e}),u||(u=function(e,t,n){return e.apply(t,n)}),l||(l=function(e,t){return new e(...t)});const c=v(Array.prototype.forEach),h=v(Array.prototype.pop),p=v(Array.prototype.push),d=v(String.prototype.toLowerCase),f=v(String.prototype.toString),m=v(String.prototype.match),g=v(String.prototype.replace),y=v(String.prototype.indexOf),x=v(String.prototype.trim),b=v(Object.prototype.hasOwnProperty),C=v(RegExp.prototype.test),k=A(TypeError);function v(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i 2&&void 0!==arguments[2]?arguments[2]:d;t&&t(e,null);let s=r.length;for(;s--;){let t=r[s];if("string"==typeof t){const e=i(t);e!==t&&(n(r)||(r[s]=e),t=e)}e[t]=!0}return e}function E(e){for(let t=0;t /gm),q=o(/\${[\w\W]*}/gm),z=o(/^data-[\-\w.\u00B7-\uFFFF]/),U=o(/^aria-[\-\w]+$/),$=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),H=o(/^(?:\w+script|data):/i),W=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),J=o(/^html$/i),X=o(/^[a-z][.\w]*(-[.\w]+)+$/i);var G=Object.freeze({__proto__:null,MUSTACHE_EXPR:R,ERB_EXPR:V,TMPLIT_EXPR:q,DATA_ATTR:z,ARIA_ATTR:U,IS_ALLOWED_URI:$,IS_SCRIPT_OR_DATA:H,ATTR_WHITESPACE:W,DOCTYPE_NAME:J,CUSTOM_ELEMENT:X});const Y={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Z=function(){return"undefined"==typeof window?null:window},K=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(s){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function Q(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z();const n=e=>Q(e);if(n.version="3.1.6",n.removed=[],!t||!t.document||t.document.nodeType!==Y.document)return n.isSupported=!1,n;let{document:r}=t;const i=r,o=i.currentScript,{DocumentFragment:u,HTMLTemplateElement:l,Node:v,Element:A,NodeFilter:E,NamedNodeMap:R=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:V,DOMParser:q,trustedTypes:z}=t,U=A.prototype,H=w(U,"cloneNode"),W=w(U,"remove"),X=w(U,"nextSibling"),ee=w(U,"childNodes"),te=w(U,"parentNode");if("function"==typeof l){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ne,re="";const{implementation:ie,createNodeIterator:se,createDocumentFragment:oe,getElementsByTagName:ae}=r,{importNode:ue}=i;let le={};n.isSupported="function"==typeof e&&"function"==typeof te&&ie&&void 0!==ie.createHTMLDocument;const{MUSTACHE_EXPR:ce,ERB_EXPR:he,TMPLIT_EXPR:pe,DATA_ATTR:de,ARIA_ATTR:fe,IS_SCRIPT_OR_DATA:me,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:ye}=G;let{IS_ALLOWED_URI:xe}=G,be=null;const Ce=_({},[...T,...S,...B,...I,...N]);let ke=null;const ve=_({},[...P,...M,...O,...j]);let Ae=Object.seal(a(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),_e=null,Ee=null,Fe=!0,we=!0,Te=!1,Se=!0,Be=!1,De=!0,Ie=!1,Le=!1,Ne=!1,Pe=!1,Me=!1,Oe=!1,je=!0,Re=!1;const Ve="user-content-";let qe=!0,ze=!1,Ue={},$e=null;const He=_({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let We=null;const Je=_({},["audio","video","img","source","image","track"]);let Xe=null;const Ge=_({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ye="http://www.w3.org/1998/Math/MathML",Ze="http://www.w3.org/2000/svg",Ke="http://www.w3.org/1999/xhtml";let Qe=Ke,et=!1,tt=null;const nt=_({},[Ye,Ze,Ke],f);let rt=null;const it=["application/xhtml+xml","text/html"],st="text/html";let ot=null,at=null;const ut=r.createElement("form"),lt=function(e){return e instanceof RegExp||e instanceof Function},ct=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!at||at!==e){if(e&&"object"==typeof e||(e={}),e=F(e),rt=-1===it.indexOf(e.PARSER_MEDIA_TYPE)?st:e.PARSER_MEDIA_TYPE,ot="application/xhtml+xml"===rt?f:d,be=b(e,"ALLOWED_TAGS")?_({},e.ALLOWED_TAGS,ot):Ce,ke=b(e,"ALLOWED_ATTR")?_({},e.ALLOWED_ATTR,ot):ve,tt=b(e,"ALLOWED_NAMESPACES")?_({},e.ALLOWED_NAMESPACES,f):nt,Xe=b(e,"ADD_URI_SAFE_ATTR")?_(F(Ge),e.ADD_URI_SAFE_ATTR,ot):Ge,We=b(e,"ADD_DATA_URI_TAGS")?_(F(Je),e.ADD_DATA_URI_TAGS,ot):Je,$e=b(e,"FORBID_CONTENTS")?_({},e.FORBID_CONTENTS,ot):He,_e=b(e,"FORBID_TAGS")?_({},e.FORBID_TAGS,ot):{},Ee=b(e,"FORBID_ATTR")?_({},e.FORBID_ATTR,ot):{},Ue=!!b(e,"USE_PROFILES")&&e.USE_PROFILES,Fe=!1!==e.ALLOW_ARIA_ATTR,we=!1!==e.ALLOW_DATA_ATTR,Te=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Se=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Be=e.SAFE_FOR_TEMPLATES||!1,De=!1!==e.SAFE_FOR_XML,Ie=e.WHOLE_DOCUMENT||!1,Pe=e.RETURN_DOM||!1,Me=e.RETURN_DOM_FRAGMENT||!1,Oe=e.RETURN_TRUSTED_TYPE||!1,Ne=e.FORCE_BODY||!1,je=!1!==e.SANITIZE_DOM,Re=e.SANITIZE_NAMED_PROPS||!1,qe=!1!==e.KEEP_CONTENT,ze=e.IN_PLACE||!1,xe=e.ALLOWED_URI_REGEXP||$,Qe=e.NAMESPACE||Ke,Ae=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&<(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ae.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&<(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ae.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ae.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Be&&(we=!1),Me&&(Pe=!0),Ue&&(be=_({},N),ke=[],!0===Ue.html&&(_(be,T),_(ke,P)),!0===Ue.svg&&(_(be,S),_(ke,M),_(ke,j)),!0===Ue.svgFilters&&(_(be,B),_(ke,M),_(ke,j)),!0===Ue.mathMl&&(_(be,I),_(ke,O),_(ke,j))),e.ADD_TAGS&&(be===Ce&&(be=F(be)),_(be,e.ADD_TAGS,ot)),e.ADD_ATTR&&(ke===ve&&(ke=F(ke)),_(ke,e.ADD_ATTR,ot)),e.ADD_URI_SAFE_ATTR&&_(Xe,e.ADD_URI_SAFE_ATTR,ot),e.FORBID_CONTENTS&&($e===He&&($e=F($e)),_($e,e.FORBID_CONTENTS,ot)),qe&&(be["#text"]=!0),Ie&&_(be,["html","head","body"]),be.table&&(_(be,["tbody"]),delete _e.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw k('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw k('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ne=e.TRUSTED_TYPES_POLICY,re=ne.createHTML("")}else void 0===ne&&(ne=K(z,o)),null!==ne&&"string"==typeof re&&(re=ne.createHTML(""));s&&s(e),at=e}},ht=_({},["mi","mo","mn","ms","mtext"]),pt=_({},["foreignobject","annotation-xml"]),dt=_({},["title","style","font","a","script"]),ft=_({},[...S,...B,...D]),mt=_({},[...I,...L]),gt=function(e){let t=te(e);t&&t.tagName||(t={namespaceURI:Qe,tagName:"template"});const n=d(e.tagName),r=d(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Ze?t.namespaceURI===Ke?"svg"===n:t.namespaceURI===Ye?"svg"===n&&("annotation-xml"===r||ht[r]):Boolean(ft[n]):e.namespaceURI===Ye?t.namespaceURI===Ke?"math"===n:t.namespaceURI===Ze?"math"===n&&pt[r]:Boolean(mt[n]):e.namespaceURI===Ke?!(t.namespaceURI===Ze&&!pt[r])&&!(t.namespaceURI===Ye&&!ht[r])&&!mt[n]&&(dt[n]||!ft[n]):!("application/xhtml+xml"!==rt||!tt[e.namespaceURI]))},yt=function(e){p(n.removed,{element:e});try{te(e).removeChild(e)}catch(t){W(e)}},xt=function(e,t){try{p(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){p(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ke[e])if(Pe||Me)try{yt(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},bt=function(e){let t=null,n=null;if(Ne)e=" "+e;else{const t=m(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===rt&&Qe===Ke&&(e=''+e+"");const i=ne?ne.createHTML(e):e;if(Qe===Ke)try{t=(new q).parseFromString(i,rt)}catch(o){}if(!t||!t.documentElement){t=ie.createDocument(Qe,"template",null);try{t.documentElement.innerHTML=et?re:i}catch(o){}}const s=t.body||t.documentElement;return e&&n&&s.insertBefore(r.createTextNode(n),s.childNodes[0]||null),Qe===Ke?ae.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:s},Ct=function(e){return se.call(e.ownerDocument||e,e,E.SHOW_ELEMENT|E.SHOW_COMMENT|E.SHOW_TEXT|E.SHOW_PROCESSING_INSTRUCTION|E.SHOW_CDATA_SECTION,null)},kt=function(e){return e instanceof V&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof R)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},vt=function(e){return"function"==typeof v&&e instanceof v},At=function(e,t,r){le[e]&&c(le[e],(e=>{e.call(n,t,r,at)}))},_t=function(e){let t=null;if(At("beforeSanitizeElements",e,null),kt(e))return yt(e),!0;const r=ot(e.nodeName);if(At("uponSanitizeElement",e,{tagName:r,allowedTags:be}),e.hasChildNodes()&&!vt(e.firstElementChild)&&C(/<[/\w]/g,e.innerHTML)&&C(/<[/\w]/g,e.textContent))return yt(e),!0;if(e.nodeType===Y.progressingInstruction)return yt(e),!0;if(De&&e.nodeType===Y.comment&&C(/<[/\w]/g,e.data))return yt(e),!0;if(!be[r]||_e[r]){if(!_e[r]&&Ft(r)){if(Ae.tagNameCheck instanceof RegExp&&C(Ae.tagNameCheck,r))return!1;if(Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(r))return!1}if(qe&&!$e[r]){const t=te(e)||e.parentNode,n=ee(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const i=H(n[r],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,X(e))}}return yt(e),!0}return e instanceof A&&!gt(e)?(yt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!C(/<\/no(script|embed|frames)/i,e.innerHTML)?(Be&&e.nodeType===Y.text&&(t=e.textContent,c([ce,he,pe],(e=>{t=g(t,e," ")})),e.textContent!==t&&(p(n.removed,{element:e.cloneNode()}),e.textContent=t)),At("afterSanitizeElements",e,null),!1):(yt(e),!0)},Et=function(e,t,n){if(je&&("id"===t||"name"===t)&&(n in r||n in ut))return!1;if(we&&!Ee[t]&&C(de,t));else if(Fe&&C(fe,t));else if(!ke[t]||Ee[t]){if(!(Ft(e)&&(Ae.tagNameCheck instanceof RegExp&&C(Ae.tagNameCheck,e)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(e))&&(Ae.attributeNameCheck instanceof RegExp&&C(Ae.attributeNameCheck,t)||Ae.attributeNameCheck instanceof Function&&Ae.attributeNameCheck(t))||"is"===t&&Ae.allowCustomizedBuiltInElements&&(Ae.tagNameCheck instanceof RegExp&&C(Ae.tagNameCheck,n)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(n))))return!1}else if(Xe[t]);else if(C(xe,g(n,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(n,"data:")||!We[e])if(Te&&!C(me,g(n,ge,"")));else if(n)return!1;return!0},Ft=function(e){return"annotation-xml"!==e&&m(e,ye)},wt=function(e){At("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke};let i=t.length;for(;i--;){const o=t[i],{name:a,namespaceURI:u,value:l}=o,p=ot(a);let d="value"===a?l:x(l);if(r.attrName=p,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,At("uponSanitizeAttribute",e,r),d=r.attrValue,De&&C(/((--!?|])>)|<\/(style|title)/i,d)){xt(a,e);continue}if(r.forceKeepAttr)continue;if(xt(a,e),!r.keepAttr)continue;if(!Se&&C(/\/>/i,d)){xt(a,e);continue}Be&&c([ce,he,pe],(e=>{d=g(d,e," ")}));const f=ot(e.nodeName);if(Et(f,p,d)){if(!Re||"id"!==p&&"name"!==p||(xt(a,e),d=Ve+d),ne&&"object"==typeof z&&"function"==typeof z.getAttributeType)if(u);else switch(z.getAttributeType(f,p)){case"TrustedHTML":d=ne.createHTML(d);break;case"TrustedScriptURL":d=ne.createScriptURL(d)}try{u?e.setAttributeNS(u,a,d):e.setAttribute(a,d),kt(e)?yt(e):h(n.removed)}catch(s){}}}At("afterSanitizeAttributes",e,null)},Tt=function e(t){let n=null;const r=Ct(t);for(At("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)At("uponSanitizeShadowNode",n,null),_t(n)||(n.content instanceof u&&e(n.content),wt(n));At("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,s=null,o=null,a=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!=typeof e&&!vt(e)){if("function"!=typeof e.toString)throw k("toString is not a function");if("string"!=typeof(e=e.toString()))throw k("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Le||ct(t),n.removed=[],"string"==typeof e&&(ze=!1),ze){if(e.nodeName){const t=ot(e.nodeName);if(!be[t]||_e[t])throw k("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof v)r=bt("\x3c!----\x3e"),s=r.ownerDocument.importNode(e,!0),s.nodeType===Y.element&&"BODY"===s.nodeName||"HTML"===s.nodeName?r=s:r.appendChild(s);else{if(!Pe&&!Be&&!Ie&&-1===e.indexOf("<"))return ne&&Oe?ne.createHTML(e):e;if(r=bt(e),!r)return Pe?null:Oe?re:""}r&&Ne&&yt(r.firstChild);const l=Ct(ze?e:r);for(;o=l.nextNode();)_t(o)||(o.content instanceof u&&Tt(o.content),wt(o));if(ze)return e;if(Pe){if(Me)for(a=oe.call(r.ownerDocument);r.firstChild;)a.appendChild(r.firstChild);else a=r;return(ke.shadowroot||ke.shadowrootmode)&&(a=ue.call(i,a,!0)),a}let h=Ie?r.outerHTML:r.innerHTML;return Ie&&be["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&C(J,r.ownerDocument.doctype.name)&&(h="\n"+h),Be&&c([ce,he,pe],(e=>{h=g(h,e," ")})),ne&&Oe?ne.createHTML(h):h},n.setConfig=function(){ct(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Le=!0},n.clearConfig=function(){at=null,Le=!1},n.isValidAttribute=function(e,t,n){at||ct({});const r=ot(e),i=ot(t);return Et(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&(le[e]=le[e]||[],p(le[e],t))},n.removeHook=function(e){if(le[e])return h(le[e])},n.removeHooks=function(e){le[e]&&(le[e]=[])},n.removeAllHooks=function(){le={}},n}return Q()}()},50411:(e,t,n)=>{var r;!function(){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),s={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};void 0===(r=function(){return s}.call(t,n,t,e))||(e.exports=r)}()},92849:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),s=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!s)return!1;for(r in e);return void 0===r||t.call(e,r)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,l,c,h=arguments[0],p=1,d=arguments.length,f=!1;for("boolean"==typeof h&&(f=h,h=arguments[1]||{},p=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});p {var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,u=/^\s+|\s+$/g,l="";function c(e){return e?e.replace(u,l):l}e.exports=function(e,u){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];u=u||{};var h=1,p=1;function d(e){var t=e.match(n);t&&(h+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function f(){var e={line:h,column:p};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:h,column:p},this.source=u.source}m.prototype.content=e;var g=[];function y(t){var n=new Error(u.source+":"+h+":"+p+": "+t);if(n.reason=t,n.filename=u.source,n.line=h,n.column=p,n.source=e,!u.silent)throw n;g.push(n)}function x(t){var n=t.exec(e);if(n){var r=n[0];return d(r),e=e.slice(r.length),n}}function b(){x(r)}function C(e){var t;for(e=e||[];t=k();)!1!==t&&e.push(t);return e}function k(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;l!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,l===e.charAt(n-1))return y("End of comment missing");var r=e.slice(2,n-2);return p+=2,d(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}function v(){var e=f(),n=x(i);if(n){if(k(),!x(s))return y("property missing ':'");var r=x(o),u=e({type:"declaration",property:c(n[0].replace(t,l)),value:r?c(r[0].replace(t,l)):l});return x(a),u}}return b(),function(){var e,t=[];for(C(t);e=v();)!1!==e&&(t.push(e),C(t));return t}()}},87206:e=>{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},50089:(e,t)=>{"use strict";var n="\n",r=function(){function e(e){this.string=e;for(var t=[0],r=0;r this.string.length)return null;for(var t=0,n=this.offsets;n[t+1]<=e;)t++;return{line:t,column:e-n[t]}},e.prototype.indexForLocation=function(e){var t=e.line,n=e.column;return t<0||t>=this.offsets.length||n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}()},20181:(e,t,n)=>{var r=NaN,i="[object Symbol]",s=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,h="object"==typeof self&&self&&self.Object===Object&&self,p=c||h||Function("return this")(),d=Object.prototype.toString,f=Math.max,m=Math.min,g=function(){return p.Date.now()};function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function x(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&d.call(e)==i}(e))return r;if(y(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=y(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=a.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):o.test(e)?r:+e}e.exports=function(e,t,n){var r,i,s,o,a,u,l=0,c=!1,h=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function d(t){var n=r,s=i;return r=i=void 0,l=t,o=e.apply(s,n)}function b(e){var n=e-u;return void 0===u||n>=t||n<0||h&&e-l>=s}function C(){var e=g();if(b(e))return k(e);a=setTimeout(C,function(e){var n=t-(e-u);return h?m(n,s-(e-l)):n}(e))}function k(e){return a=void 0,p&&r?d(e):(r=i=void 0,o)}function v(){var e=g(),n=b(e);if(r=arguments,i=this,u=e,n){if(void 0===a)return function(e){return l=e,a=setTimeout(C,t),c?d(e):o}(u);if(h)return a=setTimeout(C,t),d(u)}return void 0===a&&(a=setTimeout(C,t)),o}return t=x(t)||0,y(n)&&(c=!!n.leading,s=(h="maxWait"in n)?f(x(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==a&&clearTimeout(a),l=0,r=u=i=a=void 0},v.flush=function(){return void 0===a?o:k(g())},v}},98669:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={CodeBlockFilenameTab:"CodeBlockFilenameTab_T2zd",CodeBlockFrame:"CodeBlockFrame_FcUo",CodeBlockHeader:"CodeBlockHeader_GbSM",CodeBlockCodeFrame:"CodeBlockCodeFrame_lJeJ",WithImage:"WithImage_nmsh",CodeBlockPreviewFrame:"CodeBlockPreviewFrame_qNOC"}},21571:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={button:"button_ipBY"}},37984:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={filepath_validation_list:"filepath_validation_list_jJSD"}},46735:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={editor:"editor_ksb3",editor_header:"editor_header_k1u9",cta_wrapper:"cta_wrapper_gL2E",editor_input:"editor_input_J9Qe",editor_preview:"editor_preview_IykG",preview_fail_note:"preview_fail_note_lUiM",live_editor:"live_editor_gff9",live_error:"live_error_EIYU",live_preview:"live_preview_LmGk",unknown_component:"unknown_component_htsO",unknown_component_children:"unknown_component_children_WmeU"}},23388:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={FeedbackButton:"FeedbackButton_oOHZ",FeedbackIcon:"FeedbackIcon_kE_h"}},18426:(e,t)=>{function n(e){let t,n=[];for(let r of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(r))n.push(parseInt(r,10));else if(t=r.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,r,i,s]=t;if(r&&s){r=parseInt(r),s=parseInt(s);const e=r {"use strict";function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,s=-1,o=0,a=0;a<=e.length;++a){if(a2){var u=r.lastIndexOf("/");if(u!==r.length-1){-1===u?(r="",i=0):i=(r=r.slice(0,u)).length-1-r.lastIndexOf("/"),s=a,o=0;continue}}else if(2===r.length||1===r.length){r="",i=0,s=a,o=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(s+1,a):r=e.slice(s+1,a),i=a-s-1;s=a,o=0}else 46===n&&-1!==o?++o:o=-1}return r}var r={resolve:function(){for(var e,r="",i=!1,s=arguments.length-1;s>=-1&&!i;s--){var o;s>=0?o=arguments[s]:(void 0===e&&(e=process.cwd()),o=e),t(o),0!==o.length&&(r=o+"/"+r,i=47===o.charCodeAt(0))}return r=n(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n 0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;i l){if(47===n.charCodeAt(a+h))return n.slice(a+h+1);if(0===h)return n.slice(a+h)}else o>l&&(47===e.charCodeAt(i+h)?c=h:0===h&&(c=0));break}var p=e.charCodeAt(i+h);if(p!==n.charCodeAt(a+h))break;47===p&&(c=h)}var d="";for(h=i+c+1;h<=s;++h)h!==s&&47!==e.charCodeAt(h)||(0===d.length?d+="..":d+="/..");return d.length>0?d+n.slice(a+c):(a+=c,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,s=!0,o=e.length-1;o>=1;--o)if(47===(n=e.charCodeAt(o))){if(!s){i=o;break}}else s=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,s=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,u=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(47===l){if(!o){i=r+1;break}}else-1===u&&(o=!1,u=r+1),a>=0&&(l===n.charCodeAt(a)?-1==--a&&(s=r):(a=-1,s=u))}return i===s?s=u:-1===s&&(s=e.length),e.slice(i,s)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!o){i=r+1;break}}else-1===s&&(o=!1,s=r+1);return-1===s?"":e.slice(i,s)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,s=!0,o=0,a=e.length-1;a>=0;--a){var u=e.charCodeAt(a);if(47!==u)-1===i&&(s=!1,i=a+1),46===u?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1);else if(!s){r=a+1;break}}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}("/",e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,i=e.charCodeAt(0),s=47===i;s?(n.root="/",r=1):r=0;for(var o=-1,a=0,u=-1,l=!0,c=e.length-1,h=0;c>=r;--c)if(47!==(i=e.charCodeAt(c)))-1===u&&(l=!1,u=c+1),46===i?-1===o?o=c:1!==h&&(h=1):-1!==o&&(h=-1);else if(!l){a=c+1;break}return-1===o||-1===u||0===h||1===h&&o===u-1&&o===a+1?-1!==u&&(n.base=n.name=0===a&&s?e.slice(1,u):e.slice(a,u)):(0===a&&s?(n.name=e.slice(1,o),n.base=e.slice(1,u)):(n.name=e.slice(a,o),n.base=e.slice(a,u)),n.ext=e.slice(o,u)),a>0?n.dir=e.slice(0,a-1):s&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r},71345:(e,t,n)=>{"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function i(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function s(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function o(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,o=null,a=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?o="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(o="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==o||null!==a){var u=e.displayName||e.name,l="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==o?"\n "+o:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=i),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=s;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}n.r(t),n.d(t,{polyfill:()=>o}),r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,s.__suppressDeprecationWarning=!0},1720:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign||function(e){for(var t=1;t {"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t 0&&0===(x-=1)&&c.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(u.returnFocus(n.props.preventScroll),u.teardownScopedFocus()):u.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),f.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(u.setupScopedFocus(n.node),u.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){9===e.keyCode&&(0,l.default)(n.content,e),n.props.shouldCloseOnEsc&&27===e.keyCode&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":i(t))?t:{base:y[e],afterOpen:y[e]+"--after-open",beforeClose:y[e]+"--before-close"},s=r.base;return n.state.afterOpen&&(s=s+" "+r.afterOpen),n.state.beforeClose&&(s=s+" "+r.beforeClose),"string"==typeof t&&t?s+" "+t:s},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),s(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,i=e.bodyOpenClassName;i&&h.add(document.body,i),r&&h.add(document.getElementsByTagName("html")[0],r),n&&(x+=1,c.hide(t)),f.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,i=e.overlayClassName,s=e.defaultStyles,o=e.children,a=n?{}:s.content,u=i?{}:s.overlay;if(this.shouldBeClosed())return null;var l={ref:this.setOverlayRef,className:this.buildClassName("overlay",i),style:r({},u,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=r({id:t,ref:this.setContentRef,style:r({},a,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),h=this.props.contentElement(c,o);return this.props.overlayElement(l,h)}}]),t}(o.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:a.default.bool.isRequired,defaultStyles:a.default.shape({content:a.default.object,overlay:a.default.object}),style:a.default.shape({content:a.default.object,overlay:a.default.object}),className:a.default.oneOfType([a.default.string,a.default.object]),overlayClassName:a.default.oneOfType([a.default.string,a.default.object]),bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,ariaHideApp:a.default.bool,appElement:a.default.oneOfType([a.default.instanceOf(d.default),a.default.instanceOf(p.SafeHTMLCollection),a.default.instanceOf(p.SafeNodeList),a.default.arrayOf(a.default.instanceOf(d.default))]),onAfterOpen:a.default.func,onAfterClose:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,role:a.default.string,contentLabel:a.default.string,aria:a.default.object,data:a.default.object,children:a.default.node,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func,testId:a.default.string},t.default=b,e.exports=t.default},76462:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a&&(a.removeAttribute?a.removeAttribute("aria-hidden"):null!=a.length?a.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(a).forEach((function(e){return e.removeAttribute("aria-hidden")})));a=null},t.log=function(){0},t.assertNodeList=u,t.setElement=function(e){var t=e;if("string"==typeof t&&o.canUseDOM){var n=document.querySelectorAll(t);u(n,t),t=n}return a=t||a},t.validateElement=l,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var i,s=l(e)[Symbol.iterator]();!(t=(i=s.next()).done);t=!0){i.value.setAttribute("aria-hidden","true")}}catch(o){n=!0,r=o}finally{try{!t&&s.return&&s.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var i,s=l(e)[Symbol.iterator]();!(t=(i=s.next()).done);t=!0){i.value.removeAttribute("aria-hidden")}}catch(o){n=!0,r=o}finally{try{!t&&s.return&&s.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){a=null};var r,i=n(9771),s=(r=i)&&r.__esModule?r:{default:r},o=n(60834);var a=null;function u(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function l(e){var t=e||a;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,s.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},77727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[o,a],t=0;t 0?(document.body.firstChild!==o&&document.body.insertBefore(o,document.body.firstChild),document.body.lastChild!==a&&document.body.appendChild(a)):(o.parentElement&&o.parentElement.removeChild(o),a.parentElement&&a.parentElement.removeChild(a))}))},24838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)i(e,n[t]);var s=document.body;for(var o in r)i(s,r[o]);n={},r={}},t.log=function(){0};var n={},r={};function i(e,t){e.classList.remove(t)}t.add=function(e,t){return i=e.classList,s="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(s,e),i.add(e)}));var i,s},t.remove=function(e,t){return i=e.classList,s="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(s,e),0===s[e]&&i.remove(e)}));var i,s}},27791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){o=[]},t.log=function(){0},t.handleBlur=l,t.handleFocus=c,t.markForFocusLater=function(){o.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==o.length&&(t=o.pop()).focus({preventScroll:e}))}catch(n){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){o.length>0&&o.pop()},t.setupScopedFocus=function(e){a=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){a=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",c))};var r,i=n(42411),s=(r=i)&&r.__esModule?r:{default:r};var o=[],a=null,u=!1;function l(){u=!0}function c(){if(u){if(u=!1,!a)return;setTimeout((function(){a.contains(document.activeElement)||((0,s.default)(a)[0]||a).focus()}),0)}}},49628:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){r=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new n;t.default=r},60834:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,i=n(50411);var s=((r=i)&&r.__esModule?r:{default:r}).default,o=s.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=s.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=s.canUseDOM?window.NodeList:{},t.canUseDOM=s.canUseDOM;t.default=o},57067:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,s.default)(e);if(!n.length)return void t.preventDefault();var r=void 0,i=t.shiftKey,a=n[0],u=n[n.length-1],l=o();if(e===l){if(!i)return;r=u}u!==l||i||(r=a);a===l&&i&&(r=u);if(r)return t.preventDefault(),void r.focus();var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==c||"Chrome"==c[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var h=n.indexOf(l);h>-1&&(h+=i?-1:1);if(void 0===(r=n[h]))return t.preventDefault(),void(r=i?u:a).focus();t.preventDefault(),r.focus()};var r,i=n(42411),s=(r=i)&&r.__esModule?r:{default:r};function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?o(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},42411:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]);return n.filter(s)};var n=/input|select|textarea|button|object|iframe/;function r(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==n.getPropertyValue("display")}catch(r){return console.warn("Failed to inspect element style"),!1}}function i(e,t){var i=e.nodeName.toLowerCase();return(n.test(i)&&!e.disabled||"a"===i&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),r(t))return!1;t=t.parentNode}return!0}(e)}function s(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&i(e,!n)}e.exports=t.default},20312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(1720),s=(r=i)&&r.__esModule?r:{default:r};t.default=s.default,e.exports=t.default},9108:(e,t,n)=>{var r=n(19788);function i(e,t){var n,i=null;if(!e||"string"!=typeof e)return i;for(var s,o,a=r(e),u="function"==typeof t,l=0,c=a.length;l {"use strict";function r(e){for(var t=[],n=1;n r})},99361:function(e,t,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t 0&&r.push(i+" more"),n._failMsg="is none of "+r.join(", ")):n._failMsg="is none of "+i+" types",n}return i(t,e),t.prototype.getChecker=function(e,t){var n=this,r=this.ttypes.map((function(n){return n.getChecker(e,t)}));return function(e,t){for(var i=t.unionResolver(),s=0;s =r._score)&&(r=o)}r&&r._score>0&&((t=this._propNames).push.apply(t,r._propNames),(n=this._messages).push.apply(n,r._messages))},e.prototype.getError=function(e){for(var t=[],n=this._propNames.length-1;n>=0;n--){var r=this._propNames[n];e+="number"==typeof r?"["+r+"]":r?"."+r:"";var s=this._messages[n];s&&t.push(e+" "+s)}return new i(e,t.join("; "))},e.prototype.getErrorDetail=function(e){for(var t=[],n=this._propNames.length-1;n>=0;n--){var r=this._propNames[n];e+="number"==typeof r?"["+r+"]":r?"."+r:"";var i=this._messages[n];i&&t.push({path:e,message:i})}var s=null;for(n=t.length-1;n>=0;n--)s&&(t[n].nested=[s]),s=t[n];return s},e}();t.DetailContext=o;var a=function(){function e(){this.contexts=[]}return e.prototype.createContext=function(){var e=new o;return this.contexts.push(e),e},e}()},9771:e=>{"use strict";var t=function(){};e.exports=t},63709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MDXProvider:()=>r.x,useMDXComponents:()=>r.R});var r=n(28453)},28453:(e,t,n)=>{"use strict";n.d(t,{R:()=>o,x:()=>a});var r=n(96540);const i={},s=r.createContext(i);function o(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:o(e.components),r.createElement(s.Provider,{value:t},e.children)}},78256:(e,t,n)=>{"use strict";function r(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}n.d(t,{D:()=>r})},26312:(e,t,n)=>{"use strict";function r(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n =r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}function i(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function s(e){return e}n.d(t,{JLW:()=>la,l78:()=>x,tlR:()=>y,qrM:()=>va,Yu4:()=>_a,IA3:()=>Fa,Wi0:()=>Ta,PGM:()=>Sa,OEq:()=>Da,y8u:()=>Na,olC:()=>Ma,IrU:()=>ja,oDi:()=>qa,Q7f:()=>Ua,cVp:()=>Ha,lUB:()=>pa,Lx9:()=>Ja,nVG:()=>tu,uxU:()=>nu,Xf2:()=>su,GZz:()=>au,UPb:()=>lu,dyv:()=>uu,bEH:()=>mr,n8j:()=>ma,T9B:()=>r,jkA:()=>i,rLf:()=>xa,WH:()=>_r,m4Y:()=>gi,UMr:()=>Ar,w7C:()=>Lo,zt:()=>No,Ltv:()=>Po,Ubm:()=>Mo,JWy:()=>Xn,UAC:()=>Li,DCK:()=>hs,TUC:()=>zi,Agd:()=>Di,t6C:()=>wi,wXd:()=>Si,ABi:()=>ji,Ui6:()=>Ki,rGn:()=>Ui,ucG:()=>Ti,YPH:()=>Oi,Mol:()=>qi,PGu:()=>Ri,GuW:()=>Vi});var o=1,a=2,u=3,l=4,c=1e-6;function h(e){return"translate("+e+",0)"}function p(e){return"translate(0,"+e+")"}function d(e){return t=>+e(t)}function f(e,t){return t=Math.max(0,e.bandwidth()-2*t)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function m(){return!this.__axis}function g(e,t){var n=[],r=null,i=null,g=6,y=6,x=3,b="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,C=e===o||e===l?-1:1,k=e===l||e===a?"x":"y",v=e===o||e===u?h:p;function A(h){var p=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,A=null==i?t.tickFormat?t.tickFormat.apply(t,n):s:i,_=Math.max(g,0)+x,E=t.range(),F=+E[0]+b,w=+E[E.length-1]+b,T=(t.bandwidth?f:d)(t.copy(),b),S=h.selection?h.selection():h,B=S.selectAll(".domain").data([null]),D=S.selectAll(".tick").data(p,t).order(),I=D.exit(),L=D.enter().append("g").attr("class","tick"),N=D.select("line"),P=D.select("text");B=B.merge(B.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),D=D.merge(L),N=N.merge(L.append("line").attr("stroke","currentColor").attr(k+"2",C*g)),P=P.merge(L.append("text").attr("fill","currentColor").attr(k,C*_).attr("dy",e===o?"0em":e===u?"0.71em":"0.32em")),h!==S&&(B=B.transition(h),D=D.transition(h),N=N.transition(h),P=P.transition(h),I=I.transition(h).attr("opacity",c).attr("transform",(function(e){return isFinite(e=T(e))?v(e+b):this.getAttribute("transform")})),L.attr("opacity",c).attr("transform",(function(e){var t=this.parentNode.__axis;return v((t&&isFinite(t=t(e))?t:T(e))+b)}))),I.remove(),B.attr("d",e===l||e===a?y?"M"+C*y+","+F+"H"+b+"V"+w+"H"+C*y:"M"+b+","+F+"V"+w:y?"M"+F+","+C*y+"V"+b+"H"+w+"V"+C*y:"M"+F+","+b+"H"+w),D.attr("opacity",1).attr("transform",(function(e){return v(T(e)+b)})),N.attr(k+"2",C*g),P.attr(k,C*_).text(A),S.filter(m).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===a?"start":e===l?"end":"middle"),S.each((function(){this.__axis=T}))}return A.scale=function(e){return arguments.length?(t=e,A):t},A.ticks=function(){return n=Array.from(arguments),A},A.tickArguments=function(e){return arguments.length?(n=null==e?[]:Array.from(e),A):n.slice()},A.tickValues=function(e){return arguments.length?(r=null==e?null:Array.from(e),A):r&&r.slice()},A.tickFormat=function(e){return arguments.length?(i=e,A):i},A.tickSize=function(e){return arguments.length?(g=y=+e,A):g},A.tickSizeInner=function(e){return arguments.length?(g=+e,A):g},A.tickSizeOuter=function(e){return arguments.length?(y=+e,A):y},A.tickPadding=function(e){return arguments.length?(x=+e,A):x},A.offset=function(e){return arguments.length?(b=+e,A):b},A}function y(e){return g(o,e)}function x(e){return g(u,e)}function b(){}function C(e){return null==e?b:function(){return this.querySelector(e)}}function k(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function v(){return[]}function A(e){return null==e?v:function(){return this.querySelectorAll(e)}}function _(e){return function(){return this.matches(e)}}function E(e){return function(t){return t.matches(e)}}var F=Array.prototype.find;function w(){return this.firstElementChild}var T=Array.prototype.filter;function S(){return Array.from(this.children)}function B(e){return new Array(e.length)}function D(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function I(e,t,n,r,i,s){for(var o,a=0,u=t.length,l=s.length;a t?1:e>=t?0:NaN}D.prototype={constructor:D,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var O="http://www.w3.org/1999/xhtml";const j={svg:"http://www.w3.org/2000/svg",xhtml:O,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function R(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),j.hasOwnProperty(t)?{space:j[t],local:e}:e}function V(e){return function(){this.removeAttribute(e)}}function q(e){return function(){this.removeAttributeNS(e.space,e.local)}}function z(e,t){return function(){this.setAttribute(e,t)}}function U(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function $(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function H(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function W(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function J(e){return function(){this.style.removeProperty(e)}}function X(e,t,n){return function(){this.style.setProperty(e,t,n)}}function G(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Y(e,t){return e.style.getPropertyValue(t)||W(e).getComputedStyle(e,null).getPropertyValue(t)}function Z(e){return function(){delete this[e]}}function K(e,t){return function(){this[e]=t}}function Q(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function ee(e){return e.trim().split(/^|\s+/)}function te(e){return e.classList||new ne(e)}function ne(e){this._node=e,this._names=ee(e.getAttribute("class")||"")}function re(e,t){for(var n=te(e),r=-1,i=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var Te=[null];function Se(e,t){this._groups=e,this._parents=t}function Be(){return new Se([[document.documentElement]],Te)}Se.prototype=Be.prototype={constructor:Se,select:function(e){"function"!=typeof e&&(e=C(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i =k&&(k=C+1);!(b=y[k])&&++k =0;)(r=i[s])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=M);for(var n=this._groups,r=n.length,i=new Array(r),s=0;s 1?this.each((null==t?J:"function"==typeof t?G:X)(e,t,null==n?"":n)):Y(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Z:"function"==typeof t?Q:K)(e,t)):this.node()[e]},classed:function(e,t){var n=ee(e+"");if(arguments.length<2){for(var r=te(this.node()),i=-1,s=n.length;++i =0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),o=s.length;if(!(arguments.length<2)){for(a=t?_e:Ae,r=0;r{}};function Le(){for(var e,t=0,n=arguments.length,r={};t =0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}}))),o=-1,a=s.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++o0)for(var n,r,i=new Array(n),s=0;s =0&&t._call.call(void 0,e),t=t._next;--Ve}()}finally{Ve=0,function(){var e,t,n=je,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:je=t);Re=e,tt(r)}(),He=0}}function et(){var e=Je.now(),t=e-$e;t>Ue&&(We-=t,$e=e)}function tt(e){Ve||(qe&&(qe=clearTimeout(qe)),e-He>24?(e<1/0&&(qe=setTimeout(Qe,e-Je.now()-We)),ze&&(ze=clearInterval(ze))):(ze||($e=Je.now(),ze=setInterval(et,Ue)),Ve=1,Xe(Qe)))}function nt(e,t,n){var r=new Ze;return t=null==t?0:+t,r.restart((n=>{r.stop(),e(n+t)}),t,n),r}Ze.prototype=Ke.prototype={constructor:Ze,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?Ge():+n)+(null==t?0:+t),this._next||Re===this||(Re?Re._next=this:je=this,Re=this),this._call=e,this._time=n,tt()},stop:function(){this._call&&(this._call=null,this._time=1/0,tt())}};var rt=Oe("start","end","cancel","interrupt"),it=[],st=0,ot=1,at=2,ut=3,lt=4,ct=5,ht=6;function pt(e,t,n,r,i,s){var o=e.__transition;if(o){if(n in o)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function s(e){n.state=ot,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(s){var l,c,h,p;if(n.state!==ot)return u();for(l in i)if((p=i[l]).name===n.name){if(p.state===ut)return nt(o);p.state===lt?(p.state=ht,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete i[l]):+l st)throw new Error("too late; already scheduled");return n}function ft(e,t){var n=mt(e,t);if(n.state>ut)throw new Error("too late; already running");return n}function mt(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function gt(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var yt,xt=180/Math.PI,bt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ct(e,t,n,r,i,s){var o,a,u;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,u/=a),e*r 180?t+=360:t-e>180&&(e+=360),s.push({i:n.push(i(n)+"rotate(",null,r)-2,x:gt(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(s.rotate,o.rotate,a,u),function(e,t,n,s){e!==t?s.push({i:n.push(i(n)+"skewX(",null,r)-2,x:gt(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(s.skewX,o.skewX,a,u),function(e,t,n,r,s,o){if(e!==n||t!==r){var a=s.push(i(s)+"scale(",null,",",null,")");o.push({i:a-4,x:gt(e,n)},{i:a-2,x:gt(t,r)})}else 1===n&&1===r||s.push(i(s)+"scale("+n+","+r+")")}(s.scaleX,s.scaleY,o.scaleX,o.scaleY,a,u),s=o=null,function(e){for(var t,n=-1,r=u.length;++n >8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Jt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Jt(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Mt.exec(e))?new Yt(t[1],t[2],t[3],1):(t=Ot.exec(e))?new Yt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=jt.exec(e))?Jt(t[1],t[2],t[3],t[4]):(t=Rt.exec(e))?Jt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Vt.exec(e))?nn(t[1],t[2]/100,t[3]/100,1):(t=qt.exec(e))?nn(t[1],t[2]/100,t[3]/100,t[4]):zt.hasOwnProperty(e)?Wt(zt[e]):"transparent"===e?new Yt(NaN,NaN,NaN,0):null}function Wt(e){return new Yt(e>>16&255,e>>8&255,255&e,1)}function Jt(e,t,n,r){return r<=0&&(e=t=n=NaN),new Yt(e,t,n,r)}function Xt(e){return e instanceof St||(e=Ht(e)),e?new Yt((e=e.rgb()).r,e.g,e.b,e.opacity):new Yt}function Gt(e,t,n,r){return 1===arguments.length?Xt(e):new Yt(e,t,n,null==r?1:r)}function Yt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Zt(){return`#${tn(this.r)}${tn(this.g)}${tn(this.b)}`}function Kt(){const e=Qt(this.opacity);return`${1===e?"rgb(":"rgba("}${en(this.r)}, ${en(this.g)}, ${en(this.b)}${1===e?")":`, ${e})`}`}function Qt(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function en(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function tn(e){return((e=en(e))<16?"0":"")+e.toString(16)}function nn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new sn(e,t,n,r)}function rn(e){if(e instanceof sn)return new sn(e.h,e.s,e.l,e.opacity);if(e instanceof St||(e=Ht(e)),!e)return new sn;if(e instanceof sn)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),s=Math.max(t,n,r),o=NaN,a=s-i,u=(s+i)/2;return a?(o=t===s?(n-r)/a+6*(n 0&&u<1?0:o,new sn(o,a,u,e.opacity)}function sn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function on(e){return(e=(e||0)%360)<0?e+360:e}function an(e){return Math.max(0,Math.min(1,e||0))}function un(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function ln(e,t,n,r,i){var s=e*e,o=s*e;return((1-3*e+3*s-o)*t+(4-6*s+3*o)*n+(1+3*e+3*s-3*o)*r+o*i)/6}wt(St,Ht,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ut,formatHex:Ut,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return rn(this).formatHsl()},formatRgb:$t,toString:$t}),wt(Yt,Gt,Tt(St,{brighter(e){return e=null==e?Dt:Math.pow(Dt,e),new Yt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Bt:Math.pow(Bt,e),new Yt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Yt(en(this.r),en(this.g),en(this.b),Qt(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Zt,formatHex:Zt,formatHex8:function(){return`#${tn(this.r)}${tn(this.g)}${tn(this.b)}${tn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Kt,toString:Kt})),wt(sn,(function(e,t,n,r){return 1===arguments.length?rn(e):new sn(e,t,n,null==r?1:r)}),Tt(St,{brighter(e){return e=null==e?Dt:Math.pow(Dt,e),new sn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Bt:Math.pow(Bt,e),new sn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Yt(un(e>=240?e-240:e+120,i,r),un(e,i,r),un(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new sn(on(this.h),an(this.s),an(this.l),Qt(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Qt(this.opacity);return`${1===e?"hsl(":"hsla("}${on(this.h)}, ${100*an(this.s)}%, ${100*an(this.l)}%${1===e?")":`, ${e})`}`}}));const cn=e=>()=>e;function hn(e,t){return function(n){return e+n*t}}function pn(e){return 1==(e=+e)?dn:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):cn(isNaN(t)?n:t)}}function dn(e,t){var n=t-e;return n?hn(e,n):cn(isNaN(e)?t:e)}const fn=function e(t){var n=pn(t);function r(e,t){var r=n((e=Gt(e)).r,(t=Gt(t)).r),i=n(e.g,t.g),s=n(e.b,t.b),o=dn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=s(t),e.opacity=o(t),e+""}}return r.gamma=e,r}(1);function mn(e){return function(t){var n,r,i=t.length,s=new Array(i),o=new Array(i),a=new Array(i);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),i=e[r],s=e[r+1],o=r>0?e[r-1]:2*i-s,a=r s&&(i=t.slice(s,i),a[o]?a[o]+=i:a[++o]=i),(n=n[0])===(r=r[0])?a[o]?a[o]+=r:a[++o]=r:(a[++o]=null,u.push({i:o,x:gt(n,r)})),s=yn.lastIndex;return s =0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?dt:ft;return function(){var o=s(this,e),a=o.on;a!==r&&(i=(r=a).copy()).on(t,n),o.on=i}}(n,e,t))},attr:function(e,t){var n=R(e),r="transform"===n?At:bn;return this.attrTween(e,"function"==typeof t?(n.local?En:_n)(n,r,Ft(this,"attr."+e,t)):null==t?(n.local?kn:Cn)(n):(n.local?An:vn)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=R(e);return this.tween(n,(r.local?Fn:wn)(r,t))},style:function(e,t,n){var r="transform"==(e+="")?vt:bn;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var s=Y(this,e),o=(this.style.removeProperty(e),Y(this,e));return s===o?null:s===n&&o===r?i:i=t(n=s,r=o)}}(e,r)).on("end.style."+e,Ln(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var r,i,s;return function(){var o=Y(this,e),a=n(this),u=a+"";return null==a&&(this.style.removeProperty(e),u=a=Y(this,e)),o===u?null:o===r&&u===i?s:(i=u,s=t(r=o,a))}}(e,r,Ft(this,"style."+e,t))).each(function(e,t){var n,r,i,s,o="style."+t,a="end."+o;return function(){var u=ft(this,e),l=u.on,c=null==u.value[o]?s||(s=Ln(t)):void 0;l===n&&i===c||(r=(n=l).copy()).on(a,i=c),u.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,i,s=n+"";return function(){var o=Y(this,e);return o===s?null:o===r?i:i=t(r=o,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,i;function s(){var s=t.apply(this,arguments);return s!==i&&(r=(i=s)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,s,n)),r}return s._value=t,s}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(Ft(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=mt(this.node(),n).tween,s=0,o=i.length;s at&&n.state function(e,t){return fetch(e,t).then(Wn)}(t,n).then((t=>(new DOMParser).parseFromString(t,e)))}Jn("application/xml");Jn("text/html");var Xn=Jn("image/svg+xml");const Gn=Math.PI/180,Yn=180/Math.PI,Zn=.96422,Kn=1,Qn=.82521,er=4/29,tr=6/29,nr=3*tr*tr,rr=tr*tr*tr;function ir(e){if(e instanceof sr)return new sr(e.l,e.a,e.b,e.opacity);if(e instanceof pr)return dr(e);e instanceof Yt||(e=Xt(e));var t,n,r=lr(e.r),i=lr(e.g),s=lr(e.b),o=or((.2225045*r+.7168786*i+.0606169*s)/Kn);return r===i&&i===s?t=n=o:(t=or((.4360747*r+.3850649*i+.1430804*s)/Zn),n=or((.0139322*r+.0971045*i+.7141733*s)/Qn)),new sr(116*o-16,500*(t-o),200*(o-n),e.opacity)}function sr(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function or(e){return e>rr?Math.pow(e,1/3):e/nr+er}function ar(e){return e>tr?e*e*e:nr*(e-er)}function ur(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function lr(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function cr(e){if(e instanceof pr)return new pr(e.h,e.c,e.l,e.opacity);if(e instanceof sr||(e=ir(e)),0===e.a&&0===e.b)return new pr(NaN,0 180||n<-180?n-360*Math.round(n/360):n):cn(isNaN(e)?t:e)}));fr(dn);function gr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}class yr extends Map{constructor(e,t=kr){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[n,r]of e)this.set(n,r)}get(e){return super.get(xr(this,e))}has(e){return super.has(xr(this,e))}set(e,t){return super.set(br(this,e),t)}delete(e){return super.delete(Cr(this,e))}}Set;function xr({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function br({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Cr({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function kr(e){return null!==e&&"object"==typeof e?e.valueOf():e}const vr=Symbol("implicit");function Ar(){var e=new yr,t=[],n=[],r=vr;function i(i){let s=e.get(i);if(void 0===s){if(r!==vr)return r;e.set(i,s=t.push(i)-1)}return n[s%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new yr;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return Ar(t,n).unknown(r)},gr.apply(i,arguments),i}function _r(){var e,t,n=Ar().unknown(void 0),r=n.domain,i=n.range,s=0,o=1,a=!1,u=0,l=0,c=.5;function h(){var n=r().length,h=o =Er?10:s>=Fr?5:s>=wr?2:1;let a,u,l;return i<0?(l=Math.pow(10,-i)/o,a=Math.round(e*l),u=Math.round(t*l),a/lt&&--u,l=-l):(l=Math.pow(10,i)*o,a=Math.round(e/l),u=Math.round(t/l),a*l t&&--u),ut?1:e>=t?0:NaN}function Ir(e,t){return null==e||null==t?NaN:t e?1:t>=e?0:NaN}function Lr(e){let t,n,r;function i(e,r,i=0,s=e.length){if(i >>1;n(e[t],r)<0?i=t+1:s=t}while(iDr(e(t),n),r=(t,n)=>e(t)-n):(t=e===Dr||e===Ir?e:Nr,n=e,r=e),{left:i,center:function(e,t,n=0,s=e.length){const o=i(e,t,n,s-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o},right:function(e,r,i=0,s=e.length){if(i>>1;n(e[t],r)<=0?i=t+1:s=t}while(it&&(n=e,e=t,t=n),l=function(n){return Math.max(e,Math.min(t,n))}),r=u>2?Gr:Xr,i=s=null,h}function h(t){return null==t||isNaN(t=+t)?n:(i||(i=r(o.map(e),a,u)))(e(l(t)))}return h.invert=function(n){return l(t((s||(s=r(a,o.map(e),gt)))(n)))},h.domain=function(e){return arguments.length?(o=Array.from(e,$r),c()):o.slice()},h.range=function(e){return arguments.length?(a=Array.from(e),c()):a.slice()},h.rangeRound=function(e){return a=Array.from(e),u=Ur,c()},h.clamp=function(e){return arguments.length?(l=!!e||Wr,c()):l!==Wr},h.interpolate=function(e){return arguments.length?(u=e,c()):u},h.unknown=function(e){return arguments.length?(n=e,h):n},function(n,r){return e=n,t=r,c()}}function Kr(){return Zr()(Wr,Wr)}var Qr,ei=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ti(e){if(!(t=ei.exec(e)))throw new Error("invalid format: "+e);var t;return new ni({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function ni(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function ri(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ii(e){return(e=ri(Math.abs(e)))?e[1]:NaN}function si(e,t){var n=ri(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}ti.prototype=ni.prototype,ni.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const oi={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>si(100*e,t),r:si,s:function(e,t){var n=ri(e,t);if(!n)return e+"";var r=n[0],i=n[1],s=i-(Qr=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return s===o?r:s>o?r+new Array(s-o+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+ri(e,Math.max(0,t+s-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function ai(e){return e}var ui,li,ci,hi=Array.prototype.map,pi=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function di(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?ai:(t=hi.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,s=[],o=0,a=t[0],u=0;i>0&&a>0&&(u+a+1>r&&(a=Math.max(1,r-u)),s.push(e.substring(i-=a,i+a)),!((u+=a+1)>r));)a=t[o=(o+1)%t.length];return s.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",o=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?ai:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(hi.call(e.numerals,String)),u=void 0===e.percent?"%":e.percent+"",l=void 0===e.minus?"\u2212":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function h(e){var t=(e=ti(e)).fill,n=e.align,h=e.sign,p=e.symbol,d=e.zero,f=e.width,m=e.comma,g=e.precision,y=e.trim,x=e.type;"n"===x?(m=!0,x="g"):oi[x]||(void 0===g&&(g=12),y=!0,x="g"),(d||"0"===t&&"="===n)&&(d=!0,t="0",n="=");var b="$"===p?i:"#"===p&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",C="$"===p?s:/[%p]/.test(x)?u:"",k=oi[x],v=/[defgprs%]/.test(x);function A(e){var i,s,u,p=b,A=C;if("c"===x)A=k(e)+A,e="";else{var _=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:k(Math.abs(e),g),y&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),_&&0==+e&&"+"!==h&&(_=!1),p=(_?"("===h?h:l:"-"===h||"("===h?"":h)+p,A=("s"===x?pi[8+Qr/3]:"")+A+(_&&"("===h?")":""),v)for(i=-1,s=e.length;++i (u=e.charCodeAt(i))||u>57){A=(46===u?o+e.slice(i+1):e.slice(i))+A,e=e.slice(0,i);break}}m&&!d&&(e=r(e,1/0));var E=p.length+e.length+A.length,F=E>1)+p+e+A+F.slice(E);break;default:e=F+p+e+A}return a(e)}return g=void 0===g?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),A.toString=function(){return e+""},A}return{format:h,formatPrefix:function(e,t){var n=h(((e=ti(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(ii(t)/3))),i=Math.pow(10,-r),s=pi[8+r/3];return function(e){return n(i*e)+s}}}}function fi(e,t,n,r){var i,s=Br(e,t,n);switch((r=ti(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ii(t)/3)))-ii(Math.abs(e)))}(s,o))||(r.precision=i),ci(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ii(t)-ii(e))+1}(s,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-ii(Math.abs(e)))}(s))||(r.precision=i-2*("%"===r.type))}return li(r)}function mi(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){if(!((n=+n)>0))return[];if((e=+e)==(t=+t))return[e];const r=t =i))return[];const a=s-i+1,u=new Array(a);if(r)if(o<0)for(let l=0;l0;){if((i=Sr(u,l,n))===r)return s[o]=u,s[a]=l,t(s);if(i>0)u=Math.floor(u/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,l=Math.floor(l*i)/i}r=i}return e},e}function gi(){var e=Kr();return e.copy=function(){return Yr(e,gi())},gr.apply(e,arguments),mi(e)}ui=di({thousands:",",grouping:[3],currency:["$",""]}),li=ui.format,ci=ui.formatPrefix;const yi=1e3,xi=6e4,bi=36e5,Ci=864e5,ki=6048e5,vi=2592e6,Ai=31536e6,_i=new Date,Ei=new Date;function Fi(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{const t=i(e),n=i.ceil(e);return e-t (t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,s)=>{const o=[];if(n=i.ceil(n),s=null==s?1:Math.floor(s),!(n 0))return o;let a;do{o.push(a=new Date(+n)),t(n,s),e(n)}while(a Fi((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(i.count=(t,r)=>(_i.setTime(+t),Ei.setTime(+r),e(_i),e(Ei),Math.floor(n(_i,Ei))),i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?t=>r(t)%e==0:t=>i.count(0,t)%e==0):i:null)),i}const wi=Fi((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));wi.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?Fi((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):wi:null);wi.range;const Ti=Fi((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*yi)}),((e,t)=>(t-e)/yi),(e=>e.getUTCSeconds())),Si=(Ti.range,Fi((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*yi)}),((e,t)=>{e.setTime(+e+t*xi)}),((e,t)=>(t-e)/xi),(e=>e.getMinutes()))),Bi=(Si.range,Fi((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*xi)}),((e,t)=>(t-e)/xi),(e=>e.getUTCMinutes()))),Di=(Bi.range,Fi((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*yi-e.getMinutes()*xi)}),((e,t)=>{e.setTime(+e+t*bi)}),((e,t)=>(t-e)/bi),(e=>e.getHours()))),Ii=(Di.range,Fi((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*bi)}),((e,t)=>(t-e)/bi),(e=>e.getUTCHours()))),Li=(Ii.range,Fi((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*xi)/Ci),(e=>e.getDate()-1))),Ni=(Li.range,Fi((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Ci),(e=>e.getUTCDate()-1))),Pi=(Ni.range,Fi((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Ci),(e=>Math.floor(e/Ci))));Pi.range;function Mi(e){return Fi((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*xi)/ki))}const Oi=Mi(0),ji=Mi(1),Ri=Mi(2),Vi=Mi(3),qi=Mi(4),zi=Mi(5),Ui=Mi(6);Oi.range,ji.range,Ri.range,Vi.range,qi.range,zi.range,Ui.range;function $i(e){return Fi((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/ki))}const Hi=$i(0),Wi=$i(1),Ji=$i(2),Xi=$i(3),Gi=$i(4),Yi=$i(5),Zi=$i(6),Ki=(Hi.range,Wi.range,Ji.range,Xi.range,Gi.range,Yi.range,Zi.range,Fi((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()))),Qi=(Ki.range,Fi((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()))),es=(Qi.range,Fi((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear())));es.every=e=>isFinite(e=Math.floor(e))&&e>0?Fi((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null;es.range;const ts=Fi((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));ts.every=e=>isFinite(e=Math.floor(e))&&e>0?Fi((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null;ts.range;function ns(e,t,n,r,i,s){const o=[[Ti,1,yi],[Ti,5,5e3],[Ti,15,15e3],[Ti,30,3e4],[s,1,xi],[s,5,3e5],[s,15,9e5],[s,30,18e5],[i,1,bi],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,Ci],[r,2,1728e5],[n,1,ki],[t,1,vi],[t,3,7776e6],[e,1,Ai]];function a(t,n,r){const i=Math.abs(n-t)/r,s=Lr((([,,e])=>e)).right(o,i);if(s===o.length)return e.every(Br(t/Ai,n/Ai,r));if(0===s)return wi.every(Math.max(Br(t,n,r),1));const[a,u]=o[i/o[s-1][2] [e.toLowerCase(),t])))}function Cs(e,t,n){var r=ds.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ks(e,t,n){var r=ds.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function vs(e,t,n){var r=ds.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function As(e,t,n){var r=ds.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function _s(e,t,n){var r=ds.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Es(e,t,n){var r=ds.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Fs(e,t,n){var r=ds.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ws(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ts(e,t,n){var r=ds.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function Ss(e,t,n){var r=ds.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Bs(e,t,n){var r=ds.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Ds(e,t,n){var r=ds.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Is(e,t,n){var r=ds.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Ls(e,t,n){var r=ds.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Ns(e,t,n){var r=ds.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Ps(e,t,n){var r=ds.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Ms(e,t,n){var r=ds.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Os(e,t,n){var r=fs.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function js(e,t,n){var r=ds.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Rs(e,t,n){var r=ds.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Vs(e,t){return gs(e.getDate(),t,2)}function qs(e,t){return gs(e.getHours(),t,2)}function zs(e,t){return gs(e.getHours()%12||12,t,2)}function Us(e,t){return gs(1+Li.count(es(e),e),t,3)}function $s(e,t){return gs(e.getMilliseconds(),t,3)}function Hs(e,t){return $s(e,t)+"000"}function Ws(e,t){return gs(e.getMonth()+1,t,2)}function Js(e,t){return gs(e.getMinutes(),t,2)}function Xs(e,t){return gs(e.getSeconds(),t,2)}function Gs(e){var t=e.getDay();return 0===t?7:t}function Ys(e,t){return gs(Oi.count(es(e)-1,e),t,2)}function Zs(e){var t=e.getDay();return t>=4||0===t?qi(e):qi.ceil(e)}function Ks(e,t){return e=Zs(e),gs(qi.count(es(e),e)+(4===es(e).getDay()),t,2)}function Qs(e){return e.getDay()}function eo(e,t){return gs(ji.count(es(e)-1,e),t,2)}function to(e,t){return gs(e.getFullYear()%100,t,2)}function no(e,t){return gs((e=Zs(e)).getFullYear()%100,t,2)}function ro(e,t){return gs(e.getFullYear()%1e4,t,4)}function io(e,t){var n=e.getDay();return gs((e=n>=4||0===n?qi(e):qi.ceil(e)).getFullYear()%1e4,t,4)}function so(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+gs(t/60|0,"0",2)+gs(t%60,"0",2)}function oo(e,t){return gs(e.getUTCDate(),t,2)}function ao(e,t){return gs(e.getUTCHours(),t,2)}function uo(e,t){return gs(e.getUTCHours()%12||12,t,2)}function lo(e,t){return gs(1+Ni.count(ts(e),e),t,3)}function co(e,t){return gs(e.getUTCMilliseconds(),t,3)}function ho(e,t){return co(e,t)+"000"}function po(e,t){return gs(e.getUTCMonth()+1,t,2)}function fo(e,t){return gs(e.getUTCMinutes(),t,2)}function mo(e,t){return gs(e.getUTCSeconds(),t,2)}function go(e){var t=e.getUTCDay();return 0===t?7:t}function yo(e,t){return gs(Hi.count(ts(e)-1,e),t,2)}function xo(e){var t=e.getUTCDay();return t>=4||0===t?Gi(e):Gi.ceil(e)}function bo(e,t){return e=xo(e),gs(Gi.count(ts(e),e)+(4===ts(e).getUTCDay()),t,2)}function Co(e){return e.getUTCDay()}function ko(e,t){return gs(Wi.count(ts(e)-1,e),t,2)}function vo(e,t){return gs(e.getUTCFullYear()%100,t,2)}function Ao(e,t){return gs((e=xo(e)).getUTCFullYear()%100,t,2)}function _o(e,t){return gs(e.getUTCFullYear()%1e4,t,4)}function Eo(e,t){var n=e.getUTCDay();return gs((e=n>=4||0===n?Gi(e):Gi.ceil(e)).getUTCFullYear()%1e4,t,4)}function Fo(){return"+0000"}function wo(){return"%"}function To(e){return+e}function So(e){return Math.floor(+e/1e3)}function Bo(e){return new Date(e)}function Do(e){return e instanceof Date?+e:+new Date(+e)}function Io(e,t,n,r,i,s,o,a,u,l){var c=Kr(),h=c.invert,p=c.domain,d=l(".%L"),f=l(":%S"),m=l("%I:%M"),g=l("%I %p"),y=l("%a %d"),x=l("%b %d"),b=l("%B"),C=l("%Y");function k(e){return(u(e) =12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:To,s:So,S:Xs,u:Gs,U:Ys,V:Ks,w:Qs,W:eo,x:null,X:null,y:to,Y:ro,Z:so,"%":wo},C={a:function(e){return o[e.getUTCDay()]},A:function(e){return s[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return a[e.getUTCMonth()]},c:null,d:oo,e:oo,f:ho,g:Ao,G:Eo,H:ao,I:uo,j:lo,L:co,m:po,M:fo,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:To,s:So,S:mo,u:go,U:yo,V:bo,w:Co,W:ko,x:null,X:null,y:vo,Y:_o,Z:Fo,"%":wo},k={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=x.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return _(e,t,n,r)},d:Bs,e:Bs,f:Ms,g:Fs,G:Es,H:Is,I:Is,j:Ds,L:Ps,m:Ss,M:Ls,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:Ts,Q:js,s:Rs,S:Ns,u:ks,U:vs,V:As,w:Cs,W:_s,x:function(e,t,r){return _(e,n,t,r)},X:function(e,t,n){return _(e,r,t,n)},y:Fs,Y:Es,Z:ws,"%":Os};function v(e,t){return function(n){var r,i,s,o=[],a=-1,u=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++a 53)return null;"w"in s||(s.w=1),"Z"in s?(i=(r=us(ls(s.y,0,1))).getUTCDay(),r=i>4||0===i?Wi.ceil(r):Wi(r),r=Ni.offset(r,7*(s.V-1)),s.y=r.getUTCFullYear(),s.m=r.getUTCMonth(),s.d=r.getUTCDate()+(s.w+6)%7):(i=(r=as(ls(s.y,0,1))).getDay(),r=i>4||0===i?ji.ceil(r):ji(r),r=Li.offset(r,7*(s.V-1)),s.y=r.getFullYear(),s.m=r.getMonth(),s.d=r.getDate()+(s.w+6)%7)}else("W"in s||"U"in s)&&("w"in s||(s.w="u"in s?s.u%7:"W"in s?1:0),i="Z"in s?us(ls(s.y,0,1)).getUTCDay():as(ls(s.y,0,1)).getDay(),s.m=0,s.d="W"in s?(s.w+6)%7+7*s.W-(i+5)%7:s.w+7*s.U-(i+6)%7);return"Z"in s?(s.H+=s.Z/100|0,s.M+=s.Z%100,us(s)):as(s)}}function _(e,t,n,r){for(var i,s,o=0,a=t.length,u=n.length;o=u)return-1;if(37===(i=t.charCodeAt(o++))){if(i=t.charAt(o++),!(s=k[i in ps?t.charAt(o++):i])||(r=s(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=v(n,b),b.X=v(r,b),b.c=v(t,b),C.x=v(n,C),C.X=v(r,C),C.c=v(t,C),{format:function(e){var t=v(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=A(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=v(e+="",C);return t.toString=function(){return e},t},utcParse:function(e){var t=A(e+="",!0);return t.toString=function(){return e},t}}}(e),hs=cs.format,cs.parse,cs.utcFormat,cs.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const No=function(e){for(var t=e.length/6|0,n=new Array(t),r=0;r =1?Jo:e<=-1?-Jo:Math.asin(e)}const Yo=Math.PI,Zo=2*Yo,Ko=1e-6,Qo=Zo-Ko;function ea(e){this._+=e[0];for(let t=1,n=e.length;t =0))throw new Error(`invalid digits: ${e}`);if(t>15)return ea;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t Ko)if(Math.abs(c*a-u*l)>Ko&&i){let p=n-s,d=r-o,f=a*a+u*u,m=p*p+d*d,g=Math.sqrt(f),y=Math.sqrt(h),x=i*Math.tan((Yo-Math.acos((f+h-m)/(2*g*y)))/2),b=x/y,C=x/g;Math.abs(b-1)>Ko&&this._append`L${e+b*l},${t+b*c}`,this._append`A${i},${i},0,0,${+(c*p>l*d)},${this._x1=e+C*a},${this._y1=t+C*u}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,n,r,i,s){if(e=+e,t=+t,s=!!s,(n=+n)<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos(r),a=n*Math.sin(r),u=e+o,l=t+a,c=1^s,h=s?r-i:i-r;null===this._x1?this._append`M${u},${l}`:(Math.abs(this._x1-u)>Ko||Math.abs(this._y1-l)>Ko)&&this._append`L${u},${l}`,n&&(h<0&&(h=h%Zo+Zo),h>Qo?this._append`A${n},${n},0,1,${c},${e-o},${t-a}A${n},${n},0,1,${c},${this._x1=u},${this._y1=l}`:h>Ko&&this._append`A${n},${n},0,${+(h>=Yo)},${c},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function na(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new ta(t)}function ra(e){return e.innerRadius}function ia(e){return e.outerRadius}function sa(e){return e.startAngle}function oa(e){return e.endAngle}function aa(e){return e&&e.padAngle}function ua(e,t,n,r,i,s,o){var a=e-n,u=t-r,l=(o?s:-s)/$o(a*a+u*u),c=l*u,h=-l*a,p=e+c,d=t+h,f=n+c,m=r+h,g=(p+f)/2,y=(d+m)/2,x=f-p,b=m-d,C=x*x+b*b,k=i-s,v=p*m-f*d,A=(b<0?-1:1)*$o(qo(0,k*k*C-v*v)),_=(v*b-x*A)/C,E=(-v*x-b*A)/C,F=(v*b+x*A)/C,w=(-v*x+b*A)/C,T=_-g,S=E-y,B=F-g,D=w-y;return T*T+S*S>B*B+D*D&&(_=F,E=w),{cx:_,cy:E,x01:-c,y01:-h,x11:_*(i/k-1),y11:E*(i/k-1)}}function la(){var e=ra,t=ia,n=Oo(0),r=null,i=sa,s=oa,o=aa,a=null,u=na(l);function l(){var l,c,h,p=+e.apply(this,arguments),d=+t.apply(this,arguments),f=i.apply(this,arguments)-Jo,m=s.apply(this,arguments)-Jo,g=jo(m-f),y=m>f;if(a||(a=l=u()),d Ho)if(g>Xo-Ho)a.moveTo(d*Vo(f),d*Uo(f)),a.arc(0,0,d,f,m,!y),p>Ho&&(a.moveTo(p*Vo(m),p*Uo(m)),a.arc(0,0,p,m,f,y));else{var x,b,C=f,k=m,v=f,A=m,_=g,E=g,F=o.apply(this,arguments)/2,w=F>Ho&&(r?+r.apply(this,arguments):$o(p*p+d*d)),T=zo(jo(d-p)/2,+n.apply(this,arguments)),S=T,B=T;if(w>Ho){var D=Go(w/p*Uo(F)),I=Go(w/d*Uo(F));(_-=2*D)>Ho?(v+=D*=y?1:-1,A-=D):(_=0,v=A=(f+m)/2),(E-=2*I)>Ho?(C+=I*=y?1:-1,k-=I):(E=0,C=k=(f+m)/2)}var L=d*Vo(C),N=d*Uo(C),P=p*Vo(A),M=p*Uo(A);if(T>Ho){var O,j=d*Vo(k),R=d*Uo(k),V=p*Vo(v),q=p*Uo(v);if(g
1?0:h<-1?Wo:Math.acos(h))/2),J=$o(O[0]*O[0]+O[1]*O[1]);S=zo(T,(p-J)/(W-1)),B=zo(T,(d-J)/(W+1))}else S=B=0}E>Ho?B>Ho?(x=ua(V,q,L,N,d,B,y),b=ua(j,R,P,M,d,B,y),a.moveTo(x.cx+x.x01,x.cy+x.y01),B Ho&&_>Ho?S>Ho?(x=ua(P,M,j,R,p,-S,y),b=ua(L,N,V,q,p,-S,y),a.lineTo(x.cx+x.x01,x.cy+x.y01),S e?1:t>=e?0:NaN}function ya(e){return e}function xa(){var e=ya,t=ga,n=null,r=Oo(0),i=Oo(Xo),s=Oo(0);function o(o){var a,u,l,c,h,p=(o=ca(o)).length,d=0,f=new Array(p),m=new Array(p),g=+r.apply(this,arguments),y=Math.min(Xo,Math.max(-Xo,i.apply(this,arguments)-g)),x=Math.min(Math.abs(y)/p,s.apply(this,arguments)),b=x*(y<0?-1:1);for(a=0;a 0&&(d+=h);for(null!=t?f.sort((function(e,n){return t(m[e],m[n])})):null!=n&&f.sort((function(e,t){return n(o[e],o[t])})),a=0,l=d?(y-p*b)/d:0;a
0?h*l:0)+b,m[u]={data:o[u],index:a,value:h,startAngle:g,endAngle:c,padAngle:x};return m}return o.value=function(t){return arguments.length?(e="function"==typeof t?t:Oo(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:Oo(+e),o):r},o.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:Oo(+e),o):i},o.padAngle=function(e){return arguments.length?(s="function"==typeof e?e:Oo(+e),o):s},o}function ba(){}function Ca(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function ka(e){this._context=e}function va(e){return new ka(e)}function Aa(e){this._context=e}function _a(e){return new Aa(e)}function Ea(e){this._context=e}function Fa(e){return new Ea(e)}ha.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},ka.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ca(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ca(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Aa.prototype={areaStart:ba,areaEnd:ba,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ca(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Ea.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ca(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class wa{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function Ta(e){return new wa(e,!0)}function Sa(e){return new wa(e,!1)}function Ba(e,t){this._basis=new ka(e),this._beta=t}Ba.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],s=t[0],o=e[n]-i,a=t[n]-s,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(i+r*o),this._beta*t[u]+(1-this._beta)*(s+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Da=function e(t){function n(e){return 1===t?new ka(e):new Ba(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function Ia(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function La(e,t){this._context=e,this._k=(1-t)/6}La.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ia(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Ia(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Na=function e(t){function n(e){return new La(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Pa(e,t){this._context=e,this._k=(1-t)/6}Pa.prototype={areaStart:ba,areaEnd:ba,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ia(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Ma=function e(t){function n(e){return new Pa(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Oa(e,t){this._context=e,this._k=(1-t)/6}Oa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ia(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const ja=function e(t){function n(e){return new Oa(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Ra(e,t,n){var r=e._x1,i=e._y1,s=e._x2,o=e._y2;if(e._l01_a>Ho){var a=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*a-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*a-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>Ho){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);s=(s*l+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,s,o,e._x2,e._y2)}function Va(e,t){this._context=e,this._alpha=t}Va.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Ra(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const qa=function e(t){function n(e){return t?new Va(e,t):new La(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function za(e,t){this._context=e,this._alpha=t}za.prototype={areaStart:ba,areaEnd:ba,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ra(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Ua=function e(t){function n(e){return t?new za(e,t):new Pa(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function $a(e,t){this._context=e,this._alpha=t}$a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ra(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Ha=function e(t){function n(e){return t?new $a(e,t):new Oa(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Wa(e){this._context=e}function Ja(e){return new Wa(e)}function Xa(e){return e<0?-1:1}function Ga(e,t,n){var r=e._x1-e._x0,i=t-e._x1,s=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),a=(s*i+o*r)/(r+i);return(Xa(s)+Xa(o))*Math.min(Math.abs(s),Math.abs(o),.5*Math.abs(a))||0}function Ya(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Za(e,t,n){var r=e._x0,i=e._y0,s=e._x1,o=e._y1,a=(s-r)/3;e._context.bezierCurveTo(r+a,i+a*t,s-a,o-a*n,s,o)}function Ka(e){this._context=e}function Qa(e){this._context=new eu(e)}function eu(e){this._context=e}function tu(e){return new Ka(e)}function nu(e){return new Qa(e)}function ru(e){this._context=e}function iu(e){var t,n,r=e.length-1,i=new Array(r),s=new Array(r),o=new Array(r);for(i[0]=0,s[0]=2,o[0]=e[0]+2*e[1],t=1;t
=0;--t)i[t]=(o[t]-i[t+1])/s[t];for(s[r-1]=(e[r]+i[r-1])/2,t=0;t =0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}},cu.prototype={constructor:cu,scale:function(e){return 1===e?this:new cu(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new cu(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new cu(1,0,0);cu.prototype},96206:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});const r=document.createElement("i");function i(e){const t="&"+e+";";r.innerHTML=t;const n=r.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}},89204:(e,t,n)=>{"use strict";n.r(t),n.d(t,{compile:()=>Ta,compileSync:()=>Sa});var r={};n.r(r),n.d(r,{attentionMarkers:()=>$r,contentInitial:()=>jr,disable:()=>Hr,document:()=>Or,flow:()=>Vr,flowInitial:()=>Rr,insideSpan:()=>Ur,string:()=>qr,text:()=>zr});var i={};function s(e){if(e)throw e}n.r(i),n.d(i,{boolean:()=>Ys,booleanish:()=>Zs,commaOrSpaceSeparated:()=>no,commaSeparated:()=>to,number:()=>Qs,overloadedBoolean:()=>Ks,spaceSeparated:()=>eo});var o=n(87206),a=n(92849);function u(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function l(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function i(s,...o){const a=e[++n];let u=-1;if(s)r(s);else{for(;++u t.length;let a;r&&t.push(i);try{a=e.apply(this,t)}catch(s){if(r&&n)throw s;return i(s)}r||(a&&a.then&&"function"==typeof a.then?a.then(o,i):a instanceof Error?i(a):o(a))}function i(e,...r){n||(n=!0,t(e,...r))}function o(e){i(null,e)}}(a,i)(...o):r(null,...o)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}var c=n(47188);class h extends Error{constructor(e,t,n){const r=[null,null];let i={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(n=t,t=void 0),"string"==typeof n){const e=n.indexOf(":");-1===e?r[1]=n:(r[0]=n.slice(0,e),r[1]=n.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(i=t.position):"start"in t||"end"in t?i=t:("line"in t||"column"in t)&&(i.start=t)),this.name=(0,c.L)(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=i.start.line,this.column=i.start.column,this.position=i,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note}}h.prototype.file="",h.prototype.name="",h.prototype.reason="",h.prototype.message="",h.prototype.stack="",h.prototype.fatal=null,h.prototype.column=null,h.prototype.line=null,h.prototype.source=null,h.prototype.ruleId=null,h.prototype.position=null;const p={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');d(e);let n,r=0,i=-1,s=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;s--;)if(47===e.charCodeAt(s)){if(n){r=s+1;break}}else i<0&&(n=!0,i=s+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,a=t.length-1;for(;s--;)if(47===e.charCodeAt(s)){if(n){r=s+1;break}}else o<0&&(n=!0,o=s+1),a>-1&&(e.charCodeAt(s)===t.charCodeAt(a--)?a<0&&(i=s):(a=-1,i=o));r===i?i=o:i<0&&(i=e.length);return e.slice(r,i)},dirname:function(e){if(d(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function(e){d(e);let t,n=e.length,r=-1,i=0,s=-1,o=0;for(;n--;){const a=e.charCodeAt(n);if(47!==a)r<0&&(t=!0,r=n+1),46===a?s<0?s=n:1!==o&&(o=1):s>-1&&(o=-1);else if(t){i=n+1;break}}if(s<0||r<0||0===o||1===o&&s===r-1&&s===i+1)return"";return e.slice(s,r)},join:function(...e){let t,n=-1;for(;++n 2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",s=0):(i=i.slice(0,r),s=i.length-1-i.lastIndexOf("/")),o=u,a=0;continue}}else if(i.length>0){i="",s=0,o=u,a=0;continue}t&&(i=i.length>0?i+"/..":"..",s=2)}else i.length>0?i+="/"+e.slice(o+1,u):i=e.slice(o+1,u),s=u-o-1;o=u,a=0}else 46===n&&a>-1?a++:a=-1}return i}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function d(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const f={cwd:function(){return"/"}};function m(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}function g(e){if("string"==typeof e)e=new URL(e);else if(!m(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("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n {if(!e&&t&&n){const i=h.stringify(t,n);null==i||("string"==typeof(r=i)||o(r)?n.value=i:n.result=i),s(e,n)}else s(e);var r}))}n(null,t)},h.processSync=function(e){let t;h.freeze(),E("processSync",h.Parser),F("processSync",h.Compiler);const n=B(e);return h.process(n,r),S("processSync","process",t),n;function r(e){t=!0,s(e)}},h;function h(){const t=e();let r=-1;for(;++r e)return!1;if((n+=t[r+1])>=e)return!0}return!1}function q(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&j.test(String.fromCharCode(e)):!1!==t&&V(e,I)))}function z(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&R.test(String.fromCharCode(e)):!1!==t&&(V(e,I)||V(e,D)))))}var U=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function $(e,t){return new U(e,{beforeExpr:!0,binop:t})}var H={beforeExpr:!0},W={startsExpr:!0},J={};function X(e,t){return void 0===t&&(t={}),t.keyword=e,J[e]=new U(e,t)}var G={num:new U("num",W),regexp:new U("regexp",W),string:new U("string",W),name:new U("name",W),privateId:new U("privateId",W),eof:new U("eof"),bracketL:new U("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new U("]"),braceL:new U("{",{beforeExpr:!0,startsExpr:!0}),braceR:new U("}"),parenL:new U("(",{beforeExpr:!0,startsExpr:!0}),parenR:new U(")"),comma:new U(",",H),semi:new U(";",H),colon:new U(":",H),dot:new U("."),question:new U("?",H),questionDot:new U("?."),arrow:new U("=>",H),template:new U("template"),invalidTemplate:new U("invalidTemplate"),ellipsis:new U("...",H),backQuote:new U("`",W),dollarBraceL:new U("${",{beforeExpr:!0,startsExpr:!0}),eq:new U("=",{beforeExpr:!0,isAssign:!0}),assign:new U("_=",{beforeExpr:!0,isAssign:!0}),incDec:new U("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new U("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:$("||",1),logicalAND:$("&&",2),bitwiseOR:$("|",3),bitwiseXOR:$("^",4),bitwiseAND:$("&",5),equality:$("==/!=/===/!==",6),relational:$(">/<=/>=",7),bitShift:$("<>>/>>>",8),plusMin:new U("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:$("%",10),star:$("*",10),slash:$("/",10),starstar:new U("**",{beforeExpr:!0}),coalesce:$("??",1),_break:X("break"),_case:X("case",H),_catch:X("catch"),_continue:X("continue"),_debugger:X("debugger"),_default:X("default",H),_do:X("do",{isLoop:!0,beforeExpr:!0}),_else:X("else",H),_finally:X("finally"),_for:X("for",{isLoop:!0}),_function:X("function",W),_if:X("if"),_return:X("return",H),_switch:X("switch"),_throw:X("throw",H),_try:X("try"),_var:X("var"),_const:X("const"),_while:X("while",{isLoop:!0}),_with:X("with"),_new:X("new",{beforeExpr:!0,startsExpr:!0}),_this:X("this",W),_super:X("super",W),_class:X("class",W),_extends:X("extends",H),_export:X("export"),_import:X("import",W),_null:X("null",W),_true:X("true",W),_false:X("false",W),_in:X("in",{beforeExpr:!0,binop:7}),_instanceof:X("instanceof",{beforeExpr:!0,binop:7}),_typeof:X("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:X("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:X("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Y=/\r\n?|\n|\u2028|\u2029/,Z=new RegExp(Y.source,"g");function K(e){return 10===e||13===e||8232===e||8233===e}function Q(e,t,n){void 0===n&&(n=e.length);for(var r=t;r >10),56320+(1023&e)))}var ce=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,he=function(e,t){this.line=e,this.column=t};he.prototype.offset=function(e){return new he(this.line,this.column+e)};var pe=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function de(e,t){for(var n=1,r=0;;){var i=Q(e,r,t);if(i<0)return new he(n,t-r);++n,r=i}}var fe={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},me=!1;function ge(e){var t={};for(var n in fe)t[n]=e&&se(e,n)?e[n]:fe[n];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!me&&"object"==typeof console&&console.warn&&(me=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),oe(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return oe(t.onComment)&&(t.onComment=function(e,t){return function(n,r,i,s,o,a){var u={type:n?"Block":"Line",value:r,start:i,end:s};e.locations&&(u.loc=new pe(this,o,a)),e.ranges&&(u.range=[i,s]),t.push(u)}}(t,t.onComment)),t}var ye=256;function xe(e,t){return 2|(e?4:0)|(t?8:0)}var be=function(e,t,n){this.options=e=ge(e),this.sourceFile=e.sourceFile,this.keywords=ue(M[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var r="";!0!==e.allowReserved&&(r=N[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(r+=" await")),this.reservedWords=ue(r);var i=(r?r+" ":"")+N.strict;this.reservedWordsStrict=ue(i),this.reservedWordsStrictBind=ue(i+" "+N.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Y).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=G.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},Ce={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};be.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},Ce.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Ce.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Ce.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Ce.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&ye)return!1;if(2&t.flags)return(4&t.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Ce.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(64&t)>0||n||this.options.allowSuperOutsideMethod},Ce.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Ce.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Ce.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(258&t)>0||n},Ce.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ye)>0},be.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r =,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(r+1))}e+=t[0].length,te.lastIndex=e,e+=te.exec(this.input)[0].length,";"===this.input[e]&&e++}},ke.eat=function(e){return this.type===e&&(this.next(),!0)},ke.isContextual=function(e){return this.type===G.name&&this.value===e&&!this.containsEsc},ke.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},ke.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},ke.canInsertSemicolon=function(){return this.type===G.eof||this.type===G.braceR||Y.test(this.input.slice(this.lastTokEnd,this.start))},ke.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},ke.semicolon=function(){this.eat(G.semi)||this.insertSemicolon()||this.unexpected()},ke.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},ke.expect=function(e){this.eat(e)||this.unexpected()},ke.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var Ae=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};ke.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?"Assigning to rvalue":"Parenthesized pattern")}},ke.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},ke.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos 55295&&r<56320)return!0;if(q(r,!0)){for(var i=n+1;z(r=this.input.charCodeAt(i),!0);)++i;if(92===r||r>55295&&r<56320)return!0;var s=this.input.slice(n,i);if(!O.test(s))return!0}return!1},_e.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;te.lastIndex=this.pos;var e,t=te.exec(this.input),n=this.pos+t[0].length;return!(Y.test(this.input.slice(this.pos,n))||"function"!==this.input.slice(n,n+8)||n+8!==this.input.length&&(z(e=this.input.charCodeAt(n+8))||e>55295&&e<56320))},_e.parseStatement=function(e,t,n){var r,i=this.type,s=this.startNode();switch(this.isLet(e)&&(i=G._var,r="let"),i){case G._break:case G._continue:return this.parseBreakContinueStatement(s,i.keyword);case G._debugger:return this.parseDebuggerStatement(s);case G._do:return this.parseDoStatement(s);case G._for:return this.parseForStatement(s);case G._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case G._class:return e&&this.unexpected(),this.parseClass(s,!0);case G._if:return this.parseIfStatement(s);case G._return:return this.parseReturnStatement(s);case G._switch:return this.parseSwitchStatement(s);case G._throw:return this.parseThrowStatement(s);case G._try:return this.parseTryStatement(s);case G._const:case G._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(s,r);case G._while:return this.parseWhileStatement(s);case G._with:return this.parseWithStatement(s);case G.braceL:return this.parseBlock(!0,s);case G.semi:return this.parseEmptyStatement(s);case G._export:case G._import:if(this.options.ecmaVersion>10&&i===G._import){te.lastIndex=this.pos;var o=te.exec(this.input),a=this.pos+o[0].length,u=this.input.charCodeAt(a);if(40===u||46===u)return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===G._import?this.parseImport(s):this.parseExport(s,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var l=this.value,c=this.parseExpression();return i===G.name&&"Identifier"===c.type&&this.eat(G.colon)?this.parseLabeledStatement(s,l,c,e):this.parseExpressionStatement(s,c)}},_e.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(G.semi)||this.insertSemicolon()?e.label=null:this.type!==G.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r =6?this.eat(G.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},_e.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ee),this.enterScope(0),this.expect(G.parenL),this.type===G.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===G._var||this.type===G._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),(this.type===G._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length?(this.options.ecmaVersion>=9&&(this.type===G._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var s=this.isContextual("let"),o=!1,a=new Ae,u=this.parseExpression(!(t>-1)||"await",a);return this.type===G._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===G._in?t>-1&&this.unexpected(t):e.await=t>-1),s&&o&&this.raise(u.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(u,!1,a),this.checkLValPattern(u),this.parseForIn(e,u)):(this.checkExpressionErrors(a,!0),t>-1&&this.unexpected(t),this.parseFor(e,u))},_e.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,Te|(n?0:Se),!1,t)},_e.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(G._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},_e.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(G.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},_e.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(G.braceL),this.labels.push(Fe),this.enterScope(0);for(var n=!1;this.type!==G.braceR;)if(this.type===G._case||this.type===G._default){var r=this.type===G._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(G.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},_e.parseThrowStatement=function(e){return this.next(),Y.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var we=[];_e.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2),this.expect(G.parenR),e},_e.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===G._catch){var t=this.startNode();this.next(),this.eat(G.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(G._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},_e.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")},_e.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Ee),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},_e.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},_e.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},_e.parseLabeledStatement=function(e,t,n,r){for(var i=0,s=this.labels;i =0;a--){var u=this.labels[a];if(u.statementStart!==e.start)break;u.statementStart=this.start,u.kind=o}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},_e.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},_e.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(G.braceL),e&&this.enterScope(0);this.type!==G.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},_e.parseFor=function(e,t){return e.init=t,this.expect(G.semi),e.test=this.type===G.semi?null:this.parseExpression(),this.expect(G.semi),e.update=this.type===G.parenR?null:this.parseExpression(),this.expect(G.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},_e.parseForIn=function(e,t){var n=this.type===G._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(G.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},_e.parseVar=function(e,t,n,r){for(e.declarations=[],e.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(G.eq)?i.init=this.parseMaybeAssign(t):r||"const"!==n||this.type===G._in||this.options.ecmaVersion>=6&&this.isContextual("of")?r||"Identifier"===i.id.type||t&&(this.type===G._in||this.isContextual("of"))?i.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(G.comma))break}return e},_e.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var Te=1,Se=2;function Be(e,t){var n=t.key.name,r=e[n],i="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(i=(t.static?"s":"i")+t.kind),"iget"===r&&"iset"===i||"iset"===r&&"iget"===i||"sget"===r&&"sset"===i||"sset"===r&&"sget"===i?(e[n]="true",!1):!!r||(e[n]=i,!1)}function De(e,t){var n=e.computed,r=e.key;return!n&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}_e.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===G.star&&t&Se&&this.unexpected(),e.generator=this.eat(G.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Te&&(e.id=4&t&&this.type!==G.name?null:this.parseIdent(),!e.id||t&Se||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var s=this.yieldPos,o=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(xe(e.async,e.generator)),t&Te||(e.id=this.type===G.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=s,this.awaitPos=o,this.awaitIdentPos=a,this.finishNode(e,t&Te?"FunctionDeclaration":"FunctionExpression")},_e.parseFunctionParams=function(e){this.expect(G.parenL),e.params=this.parseBindingList(G.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},_e.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),s=!1;for(i.body=[],this.expect(G.braceL);this.type!==G.braceR;){var o=this.parseClassElement(null!==e.superClass);o&&(i.body.push(o),"MethodDefinition"===o.type&&"constructor"===o.kind?(s&&this.raiseRecoverable(o.start,"Duplicate constructor in the same class"),s=!0):o.key&&"PrivateIdentifier"===o.key.type&&Be(r,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},_e.parseClassElement=function(e){if(this.eat(G.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r="",i=!1,s=!1,o="method",a=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(G.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===G.star?a=!0:r="static"}if(n.static=a,!r&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==G.star||this.canInsertSemicolon()?r="async":s=!0),!r&&(t>=9||!s)&&this.eat(G.star)&&(i=!0),!r&&!s&&!i){var u=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=u:r=u)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),t<13||this.type===G.parenL||"method"!==o||i||s){var l=!n.static&&De(n,"constructor"),c=l&&e;l&&"method"!==o&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=l?"constructor":o,this.parseClassMethod(n,i,s,c)}else this.parseClassField(n);return n},_e.isClassElementNameStart=function(){return this.type===G.name||this.type===G.privateId||this.type===G.num||this.type===G.string||this.type===G.bracketL||this.type.keyword},_e.parseClassElementName=function(e){this.type===G.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},_e.parseClassMethod=function(e,t,n,r){var i=e.key;"constructor"===e.kind?(t&&this.raise(i.start,"Constructor can't be a generator"),n&&this.raise(i.start,"Constructor can't be an async method")):e.static&&De(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var s=e.value=this.parseMethod(t,n,r);return"get"===e.kind&&0!==s.params.length&&this.raiseRecoverable(s.start,"getter should have no params"),"set"===e.kind&&1!==s.params.length&&this.raiseRecoverable(s.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===s.params[0].type&&this.raiseRecoverable(s.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},_e.parseClassField=function(e){if(De(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&De(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(G.eq)){var t=this.currentThisScope(),n=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=n}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},_e.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==G.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},_e.parseClassId=function(e,t){this.type===G.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},_e.parseClassSuper=function(e){e.superClass=this.eat(G._extends)?this.parseExprSubscripts(null,!1):null},_e.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},_e.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,i=0===r?null:this.privateNameStack[r-1],s=0;s =11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==G.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},_e.parseExport=function(e,t){if(this.next(),this.eat(G.star))return this.parseExportAllDeclaration(e,t);if(this.eat(G._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==G.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var n=0,r=e.specifiers;n =13&&this.type===G.string){var e=this.parseLiteral(this.value);return ce.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},_e.adaptDirectivePrologue=function(e){for(var t=0;t =5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var Ie=be.prototype;Ie.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r =6)switch(this.type){case G.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(G.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case G.braceL:return this.parseObj(!0)}return this.parseIdent()},Ie.parseBindingList=function(e,t,n,r){for(var i=[],s=!0;!this.eat(e);)if(s?s=!1:this.expect(G.comma),t&&this.type===G.comma)i.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===G.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),i.push(o),this.type===G.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}i.push(this.parseAssignableListItem(r))}return i},Ie.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},Ie.parseBindingListItem=function(e){return e},Ie.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(G.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},Ie.checkLValSimple=function(e,t,n){void 0===t&&(t=0);var r=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),n&&(se(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}},Ie.checkLValPattern=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var r=0,i=e.properties;r =1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},Pe.updateContext=function(e){var t,n=this.type;n.keyword&&e===G.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},Pe.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},G.parenR.updateContext=G.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===Ne.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},G.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?Ne.b_stat:Ne.b_expr),this.exprAllowed=!0},G.dollarBraceL.updateContext=function(){this.context.push(Ne.b_tmpl),this.exprAllowed=!0},G.parenL.updateContext=function(e){var t=e===G._if||e===G._for||e===G._with||e===G._while;this.context.push(t?Ne.p_stat:Ne.p_expr),this.exprAllowed=!0},G.incDec.updateContext=function(){},G._function.updateContext=G._class.updateContext=function(e){!e.beforeExpr||e===G._else||e===G.semi&&this.curContext()!==Ne.p_stat||e===G._return&&Y.test(this.input.slice(this.lastTokEnd,this.start))||(e===G.colon||e===G.braceL)&&this.curContext()===Ne.b_stat?this.context.push(Ne.f_stat):this.context.push(Ne.f_expr),this.exprAllowed=!1},G.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},G.backQuote.updateContext=function(){this.curContext()===Ne.q_tmpl?this.context.pop():this.context.push(Ne.q_tmpl),this.exprAllowed=!1},G.star.updateContext=function(e){if(e===G._function){var t=this.context.length-1;this.context[t]===Ne.f_expr?this.context[t]=Ne.f_expr_gen:this.context[t]=Ne.f_gen}this.exprAllowed=!0},G.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==G.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var Me=be.prototype;function Oe(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&Oe(e.expression)}Me.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r,i=e.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===s&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);else{var o=t[r="$"+r];if(o)("init"===s?this.strict&&o.init||o.get||o.set:o.init||o[s])&&this.raiseRecoverable(i.start,"Redefinition of property");else o=t[r]={init:!1,get:!1,set:!1};o[s]=!0}}},Me.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===G.comma){var s=this.startNodeAt(n,r);for(s.expressions=[i];this.eat(G.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return i},Me.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,s=-1,o=-1;t?(i=t.parenthesizedAssign,s=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Ae,r=!0);var a=this.start,u=this.startLoc;this.type!==G.parenL&&this.type!==G.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var l=this.parseMaybeConditional(e,t);if(n&&(l=n.call(this,l,a,u)),this.type.isAssign){var c=this.startNodeAt(a,u);return c.operator=this.value,this.type===G.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===G.eq?this.checkLValPattern(l):this.checkLValSimple(l),c.left=l,this.next(),c.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(c,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),s>-1&&(t.trailingComma=s),l},Me.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(G.question)){var s=this.startNodeAt(n,r);return s.test=i,s.consequent=this.parseMaybeAssign(),this.expect(G.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return i},Me.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,n,r,-1,e)},Me.parseExprOp=function(e,t,n,r,i){var s=this.type.binop;if(null!=s&&(!i||this.type!==G._in)&&s>r){var o=this.type===G.logicalOR||this.type===G.logicalAND,a=this.type===G.coalesce;a&&(s=G.logicalAND.binop);var u=this.value;this.next();var l=this.start,c=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),l,c,s,i),p=this.buildBinary(t,n,e,h,u,o||a);return(o&&this.type===G.coalesce||a&&(this.type===G.logicalOR||this.type===G.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(p,t,n,r,i)}return e},Me.buildBinary=function(e,t,n,r,i,s){"PrivateIdentifier"===r.type&&this.raise(r.start,"Private identifier can only be left side of binary expression");var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,s?"LogicalExpression":"BinaryExpression")},Me.parseMaybeUnary=function(e,t,n,r){var i,s=this.start,o=this.startLoc;if(this.isContextual("await")&&this.canAwait)i=this.parseAwait(r),t=!0;else if(this.type.prefix){var a=this.startNode(),u=this.type===G.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0,u,r),this.checkExpressionErrors(e,!0),u?this.checkLValSimple(a.argument):this.strict&&"delete"===a.operator&&"Identifier"===a.argument.type?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):"delete"===a.operator&&Oe(a.argument)?this.raiseRecoverable(a.start,"Private fields can not be deleted"):t=!0,i=this.finishNode(a,u?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==G.privateId){if(i=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(s,o);l.operator=this.value,l.prefix=!1,l.argument=i,this.checkLValSimple(i),this.next(),i=this.finishNode(l,"UpdateExpression")}}else(r||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),i=this.parsePrivateIdent(),this.type!==G._in&&this.unexpected();return n||!this.eat(G.starstar)?i:t?void this.unexpected(this.lastTokStart):this.buildBinary(s,o,i,this.parseMaybeUnary(null,!1,!1,r),"**",!1)},Me.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===i.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return i;var s=this.parseSubscripts(i,n,r,!1,t);return e&&"MemberExpression"===s.type&&(e.parenthesizedAssign>=s.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=s.start&&(e.parenthesizedBind=-1),e.trailingComma>=s.start&&(e.trailingComma=-1)),s},Me.parseSubscripts=function(e,t,n,r,i){for(var s=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,o=!1;;){var a=this.parseSubscript(e,t,n,r,s,o,i);if(a.optional&&(o=!0),a===e||"ArrowFunctionExpression"===a.type){if(o){var u=this.startNodeAt(t,n);u.expression=a,a=this.finishNode(u,"ChainExpression")}return a}e=a}},Me.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(G.arrow)},Me.parseSubscriptAsyncArrow=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,r)},Me.parseSubscript=function(e,t,n,r,i,s,o){var a=this.options.ecmaVersion>=11,u=a&&this.eat(G.questionDot);r&&u&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(G.bracketL);if(l||u&&this.type!==G.parenL&&this.type!==G.backQuote||this.eat(G.dot)){var c=this.startNodeAt(t,n);c.object=e,l?(c.property=this.parseExpression(),this.expect(G.bracketR)):this.type===G.privateId&&"Super"!==e.type?c.property=this.parsePrivateIdent():c.property=this.parseIdent("never"!==this.options.allowReserved),c.computed=!!l,a&&(c.optional=u),e=this.finishNode(c,"MemberExpression")}else if(!r&&this.eat(G.parenL)){var h=new Ae,p=this.yieldPos,d=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(G.parenR,this.options.ecmaVersion>=8,!1,h);if(i&&!u&&this.shouldParseAsyncArrow())return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=p,this.awaitPos=d,this.awaitIdentPos=f,this.parseSubscriptAsyncArrow(t,n,m,o);this.checkExpressionErrors(h,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=d||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var g=this.startNodeAt(t,n);g.callee=e,g.arguments=m,a&&(g.optional=u),e=this.finishNode(g,"CallExpression")}else if(this.type===G.backQuote){(u||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var y=this.startNodeAt(t,n);y.tag=e,y.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(y,"TaggedTemplateExpression")}return e},Me.parseExprAtom=function(e,t,n){this.type===G.slash&&this.readRegexp();var r,i=this.potentialArrowAt===this.start;switch(this.type){case G._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type!==G.parenL||this.allowDirectSuper||this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==G.dot&&this.type!==G.bracketL&&this.type!==G.parenL&&this.unexpected(),this.finishNode(r,"Super");case G._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case G.name:var s=this.start,o=this.startLoc,a=this.containsEsc,u=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!a&&"async"===u.name&&!this.canInsertSemicolon()&&this.eat(G._function))return this.overrideContext(Ne.f_expr),this.parseFunction(this.startNodeAt(s,o),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(G.arrow))return this.parseArrowExpression(this.startNodeAt(s,o),[u],!1,t);if(this.options.ecmaVersion>=8&&"async"===u.name&&this.type===G.name&&!a&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return u=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(G.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,o),[u],!0,t)}return u;case G.regexp:var l=this.value;return(r=this.parseLiteral(l.value)).regex={pattern:l.pattern,flags:l.flags},r;case G.num:case G.string:return this.parseLiteral(this.value);case G._null:case G._true:case G._false:return(r=this.startNode()).value=this.type===G._null?null:this.type===G._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case G.parenL:var c=this.start,h=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(h)&&(e.parenthesizedAssign=c),e.parenthesizedBind<0&&(e.parenthesizedBind=c)),h;case G.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(G.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case G.braceL:return this.overrideContext(Ne.b_expr),this.parseObj(!1,e);case G._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case G._class:return this.parseClass(this.startNode(),!1);case G._new:return this.parseNew();case G.backQuote:return this.parseTemplate();case G._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}},Me.parseExprAtomDefault=function(){this.unexpected()},Me.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===G.parenL&&!e)return this.parseDynamicImport(t);if(this.type===G.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name="import",t.meta=this.finishNode(n,"Identifier"),this.parseImportMeta(t)}this.unexpected()},Me.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(G.parenR)){var t=this.start;this.eat(G.comma)&&this.eat(G.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},Me.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},Me.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},Me.parseParenExpression=function(){this.expect(G.parenL);var e=this.parseExpression();return this.expect(G.parenR),e},Me.shouldParseArrow=function(e){return!this.canInsertSemicolon()},Me.parseParenAndDistinguishExpression=function(e,t){var n,r=this.start,i=this.startLoc,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o,a=this.start,u=this.startLoc,l=[],c=!0,h=!1,p=new Ae,d=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==G.parenR;){if(c?c=!1:this.expect(G.comma),s&&this.afterTrailingComma(G.parenR,!0)){h=!0;break}if(this.type===G.ellipsis){o=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===G.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}l.push(this.parseMaybeAssign(!1,p,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(G.parenR),e&&this.shouldParseArrow(l)&&this.eat(G.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=f,this.parseParenArrowList(r,i,l,t);l.length&&!h||this.unexpected(this.lastTokStart),o&&this.unexpected(o),this.checkExpressionErrors(p,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=f||this.awaitPos,l.length>1?((n=this.startNodeAt(a,u)).expressions=l,this.finishNodeAt(n,"SequenceExpression",m,g)):n=l[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var y=this.startNodeAt(r,i);return y.expression=n,this.finishNode(y,"ParenthesizedExpression")}return n},Me.parseParenItem=function(e){return e},Me.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var je=[];Me.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===G.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var n=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,i,!0,!1),this.eat(G.parenL)?e.arguments=this.parseExprList(G.parenR,this.options.ecmaVersion>=8,!1):e.arguments=je,this.finishNode(e,"NewExpression")},Me.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===G.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===G.backQuote,this.finishNode(n,"TemplateElement")},Me.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===G.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(G.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(G.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},Me.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===G.name||this.type===G.num||this.type===G.string||this.type===G.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===G.star)&&!Y.test(this.input.slice(this.lastTokEnd,this.start))},Me.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(G.braceR);){if(r)r=!1;else if(this.expect(G.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(G.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,i,t),n.properties.push(s)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},Me.parseProperty=function(e,t){var n,r,i,s,o=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(G.ellipsis))return e?(o.argument=this.parseIdent(!1),this.type===G.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(o,"RestElement")):(o.argument=this.parseMaybeAssign(!1,t),this.type===G.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(o,"SpreadElement"));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(e||t)&&(i=this.start,s=this.startLoc),e||(n=this.eat(G.star)));var a=this.containsEsc;return this.parsePropertyName(o),!e&&!a&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(o)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(G.star),this.parsePropertyName(o)):r=!1,this.parsePropertyValue(o,e,n,r,i,s,t,a),this.finishNode(o,"Property")},Me.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t="get"===e.kind?0:1;if(e.value.params.length!==t){var n=e.value.start;"get"===e.kind?this.raiseRecoverable(n,"getter should have no params"):this.raiseRecoverable(n,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},Me.parsePropertyValue=function(e,t,n,r,i,s,o,a){(n||r)&&this.type===G.colon&&this.unexpected(),this.eat(G.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init"):this.options.ecmaVersion>=6&&this.type===G.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,r)):t||a||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===G.comma||this.type===G.braceR||this.type===G.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),e.kind="init",t?e.value=this.parseMaybeDefault(i,s,this.copyNode(e.key)):this.type===G.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,s,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected():((n||r)&&this.unexpected(),this.parseGetterSetter(e))},Me.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(G.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(G.bracketR),e.key;e.computed=!1}return e.key=this.type===G.num||this.type===G.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},Me.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},Me.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|xe(t,r.generator)|(n?128:0)),this.expect(G.parenL),r.params=this.parseBindingList(G.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(r,"FunctionExpression")},Me.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(16|xe(n,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")},Me.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==G.braceL,s=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);s&&!a||(o=this.strictDirective(this.end))&&a&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var u=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!s&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,o&&!s),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=u}this.exitScope()},Me.isSimpleParamList=function(e){for(var t=0,n=e;t -1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t){this.currentScope().lexical.push(e)}else if(3===t){var s=this.currentScope();r=this.treatFunctionsAsVar?s.lexical.indexOf(e)>-1:s.lexical.indexOf(e)>-1||s.var.indexOf(e)>-1,s.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var a=this.scopeStack[o];if(a.lexical.indexOf(e)>-1&&!(32&a.flags&&a.lexical[0]===e)||!this.treatFunctionsAsVarInScope(a)&&a.functions.indexOf(e)>-1){r=!0;break}if(a.var.push(e),this.inModule&&1&a.flags&&delete this.undefinedExports[e],259&a.flags)break}r&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")},Ve.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},Ve.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Ve.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags)return t}},Ve.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags&&!(16&t.flags))return t}};var ze=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new pe(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},Ue=be.prototype;function $e(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}Ue.startNode=function(){return new ze(this,this.start,this.startLoc)},Ue.startNodeAt=function(e,t){return new ze(this,e,t)},Ue.finishNode=function(e,t){return $e.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},Ue.finishNodeAt=function(e,t,n,r){return $e.call(this,e,t,n,r)},Ue.copyNode=function(e){var t=new ze(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var He="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",We=He+" Extended_Pictographic",Je=We+" EBase EComp EMod EPres ExtPict",Xe={9:He,10:We,11:We,12:Je,13:Je,14:Je},Ge={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},Ye="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Ze="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Ke=Ze+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Qe=Ke+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",et=Qe+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",tt=et+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",nt={9:Ze,10:Ke,11:Qe,12:et,13:tt,14:tt+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz"},rt={};function it(e){var t=rt[e]={binary:ue(Xe[e]+" "+Ye),binaryOfStrings:ue(Ge[e]),nonBinary:{General_Category:ue(Ye),Script:ue(nt[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var st=0,ot=[9,10,11,12,13,14];st =6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=rt[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function lt(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function ct(e){return e>=65&&e<=90||e>=97&&e<=122}ut.prototype.reset=function(e,t,n){var r=-1!==n.indexOf("v"),i=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=i&&this.parser.options.ecmaVersion>=9)},ut.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},ut.prototype.at=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!t&&!this.switchU||i<=55295||i>=57344||e+1>=r)return i;var s=n.charCodeAt(e+1);return s>=56320&&s<=57343?(i<<10)+s-56613888:i},ut.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i,s=n.charCodeAt(e);return!t&&!this.switchU||s<=55295||s>=57344||e+1>=r||(i=n.charCodeAt(e+1))<56320||i>57343?e+1:e+2},ut.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},ut.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},ut.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},ut.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},ut.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var n=this.pos,r=0,i=e;r -1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===o&&(r=!0),"v"===o&&(i=!0)}this.options.ecmaVersion>=15&&r&&i&&this.raise(e.start,"Invalid regular expression flag")},at.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},at.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t =9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},at.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},at.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},at.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return-1!==i&&i =9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},at.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},at.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},at.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!lt(t)&&(e.lastIntValue=t,e.advance(),!0)},at.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!lt(n);)e.advance();return e.pos!==t},at.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t)&&(e.advance(),!0)},at.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},at.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},at.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=le(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=le(e.lastIntValue);return!0}return!1},at.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return q(e,!0)||36===e||95===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},at.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return z(e,!0)||36===e||95===e||8204===e||8205===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},at.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},at.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},at.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},at.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},at.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},at.regexp_eatZero=function(e){return 48===e.current()&&!dt(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},at.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},at.regexp_eatControlLetter=function(e){var t=e.current();return!!ct(t)&&(e.lastIntValue=t%32,e.advance(),!0)},at.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var n,r=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(i&&s>=55296&&s<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=1024*(s-55296)+(a-56320)+65536,!0}e.pos=o,e.lastIntValue=s}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&((n=e.lastIntValue)>=0&&n<=1114111))return!0;i&&e.raise("Invalid unicode escape"),e.pos=r}return!1},at.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t)&&(e.lastIntValue=t,e.advance(),!0)},at.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1};function ht(e){return ct(e)||95===e}function pt(e){return ht(e)||dt(e)}function dt(e){return e>=48&&e<=57}function ft(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function mt(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function gt(e){return e>=48&&e<=55}at.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),1;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=80===t)||112===t)){var r;if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&2===r&&e.raise("Invalid property name"),r;e.raise("Invalid property name")}return 0},at.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),1}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return 0},at.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){se(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},at.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?1:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?2:void e.raise("Invalid property name")},at.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";ht(t=e.current());)e.lastStringValue+=le(t),e.advance();return""!==e.lastStringValue},at.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";pt(t=e.current());)e.lastStringValue+=le(t),e.advance();return""!==e.lastStringValue},at.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},at.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&2===n&&e.raise("Negated character class may contain strings"),!0}return!1},at.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},at.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},at.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||gt(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},at.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},at.regexp_classSetExpression=function(e){var t,n=1;if(this.regexp_eatClassSetRange(e));else if(t=this.regexp_eatClassSetOperand(e)){2===t&&(n=2);for(var r=e.pos;e.eatChars([38,38]);)38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))?2!==t&&(n=1):e.raise("Invalid character in character class");if(r!==e.pos)return n;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(r!==e.pos)return n}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return n;2===t&&(n=2)}},at.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return-1!==n&&-1!==r&&n>r&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},at.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},at.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return n&&2===r&&e.raise("Negated character class may contain strings"),r;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null},at.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var n=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return n}else e.raise("Invalid escape");e.pos=t}return null},at.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},at.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},at.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return!(!this.regexp_eatCharacterEscape(e)&&!this.regexp_eatClassSetReservedPunctuator(e))||(e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1));var n=e.current();return!(n<0||n===e.lookahead()&&function(e){return 33===e||e>=35&&e<=38||e>=42&&e<=44||46===e||e>=58&&e<=64||94===e||96===e||126===e}(n))&&(!function(e){return 40===e||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125}(n)&&(e.advance(),e.lastIntValue=n,!0))},at.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return!!function(e){return 33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e}(t)&&(e.lastIntValue=t,e.advance(),!0)},at.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!dt(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},at.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},at.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;dt(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},at.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;ft(n=e.current());)e.lastIntValue=16*e.lastIntValue+mt(n),e.advance();return e.pos!==t},at.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},at.regexp_eatOctalDigit=function(e){var t=e.current();return gt(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},at.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r =this.input.length?this.finishToken(G.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},xt.readToken=function(e){return q(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},xt.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},xt.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(-1===n&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=Q(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},xt.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos 8&&e<14||e>=5760&&ee.test(String.fromCharCode(e))))break e;++this.pos}}},xt.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},xt.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(G.ellipsis)):(++this.pos,this.finishToken(G.dot))},xt.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(G.assign,2):this.finishOp(G.slash,1)},xt.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?G.star:G.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=G.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(G.assign,n+1):this.finishOp(r,n)},xt.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(G.assign,3);return this.finishOp(124===e?G.logicalOR:G.logicalAND,2)}return 61===t?this.finishOp(G.assign,2):this.finishOp(124===e?G.bitwiseOR:G.bitwiseAND,1)},xt.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(G.assign,2):this.finishOp(G.bitwiseXOR,1)},xt.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!Y.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(G.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(G.assign,2):this.finishOp(G.plusMin,1)},xt.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(G.assign,n+1):this.finishOp(G.bitShift,n)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(G.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},xt.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(G.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(G.arrow)):this.finishOp(61===e?G.eq:G.prefix,1)},xt.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(G.questionDot,2)}if(63===t){if(e>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(G.assign,3);return this.finishOp(G.coalesce,2)}}return this.finishOp(G.question,1)},xt.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,q(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(G.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+le(e)+"'")},xt.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(G.parenL);case 41:return++this.pos,this.finishToken(G.parenR);case 59:return++this.pos,this.finishToken(G.semi);case 44:return++this.pos,this.finishToken(G.comma);case 91:return++this.pos,this.finishToken(G.bracketL);case 93:return++this.pos,this.finishToken(G.bracketR);case 123:return++this.pos,this.finishToken(G.braceL);case 125:return++this.pos,this.finishToken(G.braceR);case 58:return++this.pos,this.finishToken(G.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(G.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(G.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+le(e)+"'")},xt.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},xt.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(Y.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var s=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(s);var a=this.regexpState||(this.regexpState=new ut(this));a.reset(n,i,o),this.validateRegExpFlags(a),this.validateRegExpPattern(a);var u=null;try{u=new RegExp(i,o)}catch(l){}return this.finishToken(G.regexp,{pattern:i,flags:o,value:u})},xt.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&void 0===t,i=n&&48===this.input.charCodeAt(this.pos),s=this.pos,o=0,a=0,u=0,l=null==t?1/0:t;u =97?c-97+10:c>=65?c-65+10:c>=48&&c<=57?c-48:1/0)>=e)break;a=c,o=o*e+h}}return r&&95===a&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||null!=t&&this.pos-s!==t?null:o},xt.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return null==n&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(n=bt(this.input.slice(t,this.pos)),++this.pos):q(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(G.num,n)},xt.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&110===r){var i=bt(this.input.slice(t,this.pos));return++this.pos,q(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(G.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),q(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s,o=(s=this.input.slice(t,this.pos),n?parseInt(s,8):parseFloat(s.replace(/_/g,"")));return this.finishToken(G.num,o)},xt.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},xt.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):8232===r||8233===r?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(K(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(G.string,t)};var Ct={};xt.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==Ct)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},xt.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Ct;this.raise(e,t)},xt.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==G.template&&this.type!==G.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(G.template,e)):36===n?(this.pos+=2,this.finishToken(G.dollarBraceL)):(++this.pos,this.finishToken(G.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(K(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},xt.readInvalidTemplateToken=function(){for(;this.pos =48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),"0"===r&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return K(t)?"":String.fromCharCode(t)}},xt.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},xt.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos 0)}class Bt extends Error{constructor(e,t,n){const r=[null,null];let i={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(n=t,t=void 0),"string"==typeof n){const e=n.indexOf(":");-1===e?r[1]=n:(r[0]=n.slice(0,e),r[1]=n.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(i=t.position):"start"in t||"end"in t?i=t:("line"in t||"column"in t)&&(i.start=t)),this.name=(0,c.L)(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=i.start.line,this.column=i.start.column,this.position=i,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note}}function Dt(e,t){const n=t.prefix||"",r=t.suffix||"",i=Object.assign({},t.acornOptions),s=[],o=[],a=i.onComment,u=i.onToken;let l,c,h=!1;const p=Object.assign({},i,{onComment:s,preserveParens:!0});u&&(p.onToken=o);const d=function(e,t){const n={value:"",stops:[]};let r=-1;for(;++r 0&&-1===e[0];)e.shift();const t=Lt(e);n.stops.push([n.value.length,i[1].start]),n.value+=t,n.stops.push([n.value.length,i[1].end])}}return n}(e,["lineEnding","expressionChunk","mdxFlowExpressionChunk","mdxTextExpressionChunk","mdxJsxTextTagExpressionAttributeValue","mdxJsxTextTagAttributeValueExpressionValue","mdxJsxFlowTagExpressionAttributeValue","mdxJsxFlowTagAttributeValueExpressionValue","mdxjsEsmData"]),f=d.value,m=n+f+r,g=t.expression&&It(f);if(g&&!t.allowEmpty)throw new Bt("Unexpected empty expression",x(0),"micromark-extension-mdx-expression:unexpected-empty-expression");try{l=t.expression&&!g?t.acorn.parseExpressionAt(m,0,p):t.acorn.parse(m,p)}catch(b){const e=b,t=x(e.pos);e.message=String(e.message).replace(/ \(\d+:\d+\)$/,""),e.pos=t.offset,e.loc={line:t.line,column:t.column-1},c=e,h=e.raisedAt>=n.length+f.length||"Unterminated comment"===e.message}if(l&&t.expression&&!g)if(It(m.slice(l.end,m.length-r.length)))l={type:"Program",start:0,end:n.length+f.length,body:[{type:"ExpressionStatement",expression:l,start:0,end:n.length+f.length}],sourceType:"module",comments:[]};else{const e=x(l.end),t=new Error("Unexpected content after expression");t.pos=e.offset,t.loc={line:e.line,column:e.column-1},c=t,l=void 0}if(l){if(l.comments=s,function(e,t){let n,r;"function"==typeof t?n=t:t&&"object"==typeof t&&(t.enter&&(n=t.enter),t.leave&&(r=t.leave)),function e(t,i,s,o){return St(t)&&(a.displayName="node ("+t.type+")"),a;function a(){const a=n?Tt(n(t,i,s,o)):[];if(a[0]===Ft)return a;if(a[0]!==wt){let n;for(n in t)if(_t.call(t,n)&&t[n]&&"object"==typeof t[n]&&"data"!==n&&"position"!==n){const r=o.concat(t),i=t[n];if(Array.isArray(i)){const t=i;let s=0;for(;s>-1&&s {let i=r[r.length-1],s=t;"ParenthesizedExpression"===e.type&&i&&s&&("number"==typeof n&&(i=i[s],s=n),i[s]=e.expression),y(e)})),Array.isArray(a))a.push(...s);else if("function"==typeof a)for(const e of s)a("Block"===e.type,e.value,e.start,e.end,e.loc.start,e.loc.end);for(const e of o)e.end<=n.length||e.start-n.length>=f.length||(y(e),Array.isArray(u)?u.push(e):u(e))}return{estree:l,error:c,swallow:h};function y(e){const t=x(e.start),n=x(e.end);e.start=t.offset,e.end=n.offset,e.loc={start:{line:t.line,column:t.column-1,offset:t.offset},end:{line:n.line,column:n.column-1,offset:n.offset}},e.range=[e.start,e.end]}function x(e){let r=e-n.length;r<0?r=0:r>f.length&&(r=f.length);let i=function(e,t){let n=0;for(;n -1?e:void 0}function Mt(e,t,n,r,i,s,o,a,u,l,c){const h=this,p=this.events.length+3;let d,f,m=0;return function(t){return e.enter(n),e.enter(r),e.consume(t),e.exit(r),d=h.now(),g};function g(c){if(null===c)throw f||new Bt("Unexpected end of file in expression, expected a corresponding closing brace for `{`",h.now(),"micromark-extension-mdx-expression:unexpected-eof");if(vt(c))return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),x;if(125===c&&0===m){const m=s?Ot.call(h,s,o,p,d,l||!1,u||!1):{type:"ok",estree:void 0};if("ok"===m.type){e.enter(r),e.consume(c),e.exit(r);const i=e.exit(n);return a&&m.estree&&Object.assign(i,{estree:m.estree}),t}return f=m.message,e.enter(i),e.consume(c),y}return e.enter(i),y(c)}function y(t){return 125===t&&0===m||null===t||vt(t)?(e.exit(i),g(t)):(123!==t||s?125===t&&(m-=1):m+=1,e.consume(t),y)}function x(e){const t=h.now();if(t.line!==d.line&&!c&&h.parser.lazy[t.line])throw new Bt("Unexpected end of file in expression, expected a corresponding closing brace for `{`",h.now(),"micromark-extension-mdx-expression:unexpected-eof");return g(e)}}function Ot(e,t,n,r,i,s){const o=Dt(this.events.slice(n),{acorn:e,acornOptions:t,start:r,expression:!0,allowEmpty:i,prefix:s?"({":"",suffix:s?"})":""}),a=o.estree;if(s&&a){const e=a.body[0];if("ExpressionStatement"!==e.type||"ObjectExpression"!==e.expression.type)throw new Bt("Unexpected `"+e.type+"` in code: expected an object spread (`{...spread}`)",Nt(e).start,"micromark-extension-mdx-expression:non-spread");if(e.expression.properties[1])throw new Bt("Unexpected extra content in spread: only a single spread is supported",Nt(e.expression.properties[1]).start,"micromark-extension-mdx-expression:spread-extra");if(e.expression.properties[0]&&"SpreadElement"!==e.expression.properties[0].type)throw new Bt("Unexpected `"+e.expression.properties[0].type+"` in code: only spread elements are supported",Nt(e.expression.properties[0]).start,"micromark-extension-mdx-expression:non-spread")}return o.error?{type:"nok",message:new Bt("Could not parse expression with acorn: "+o.error.message,{line:o.error.loc.line,column:o.error.loc.column+1,offset:o.error.pos},"micromark-extension-mdx-expression:acorn")}:{type:"ok",estree:a}}Bt.prototype.file="",Bt.prototype.name="",Bt.prototype.reason="",Bt.prototype.message="",Bt.prototype.stack="",Bt.prototype.fatal=null,Bt.prototype.column=null,Bt.prototype.line=null,Bt.prototype.source=null,Bt.prototype.ruleId=null,Bt.prototype.position=null;const jt=Ut(/[A-Za-z]/);Ut(/[\dA-Za-z]/),Ut(/[#-'*+\--9=?A-Z^-~]/);Ut(/\d/),Ut(/[\dA-Fa-f]/),Ut(/[!-/:-@[-`{-~]/);function Rt(e){return null!==e&&e<-2}function Vt(e){return null!==e&&(e<0||32===e)}function qt(e){return-2===e||-1===e||32===e}Ut(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/);const zt=Ut(/\s/);function Ut(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}function $t(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return function(r){if(qt(r))return e.enter(n),o(r);return t(r)};function o(r){return qt(r)&&s++0}class Zt extends Error{constructor(e,t,n){const r=[null,null];let i={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(n=t,t=void 0),"string"==typeof n){const e=n.indexOf(":");-1===e?r[1]=n:(r[0]=n.slice(0,e),r[1]=n.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(i=t.position):"start"in t||"end"in t?i=t:("line"in t||"column"in t)&&(i.start=t)),this.name=(0,c.L)(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=i.start.line,this.column=i.start.column,this.position=i,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note}}function Kt(e,t,n,r,i,s,o,a,u,l,c,h,p,d,f,m,g,y,x,b,C,k,v,A,_,E,F,w,T,S,B,D){const I=this;let L,N;return function(t){return e.enter(a),e.enter(u),e.consume(t),e.exit(u),P};function P(e){return Vt(e)?n(e):(L=M,se(e))}function M(t){return 47===t?(e.enter(l),e.consume(t),e.exit(l),L=O,se):62===t?ie(t):null!==t&&Xt(t)?(e.enter(h),e.enter(p),e.consume(t),j):void ue(t,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(33===t?" (note: to create a comment in MDX, use `{/* text */}`)":""))}function O(t){return 62===t?ie(t):null!==t&&Xt(t)?(e.enter(h),e.enter(p),e.consume(t),j):void ue(t,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(42===t||47===t?" (note: JS comments in JSX tags are not supported in MDX)":""))}function j(t){return 45===t||null!==t&&Gt(t)?(e.consume(t),j):46===t||47===t||58===t||62===t||123===t||Vt(t)||zt(t)?(e.exit(p),L=R,se(t)):void ue(t,"in name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(64===t?" (note: to create a link in MDX, use `[text](url)`)":""))}function R(t){return 46===t?(e.enter(d),e.consume(t),e.exit(d),L=V,se):58===t?(e.enter(m),e.consume(t),e.exit(m),L=U,se):47===t||62===t||123===t||null!==t&&Xt(t)?(e.exit(h),W(t)):void ue(t,"after name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function V(t){if(null!==t&&Xt(t))return e.enter(f),e.consume(t),q;ue(t,"before member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function q(t){return 45===t||null!==t&&Gt(t)?(e.consume(t),q):46===t||47===t||62===t||123===t||Vt(t)||zt(t)?(e.exit(f),L=z,se(t)):void ue(t,"in member name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(64===t?" (note: to create a link in MDX, use `[text](url)`)":""))}function z(t){return 46===t?(e.enter(d),e.consume(t),e.exit(d),L=V,se):47===t||62===t||123===t||null!==t&&Xt(t)?(e.exit(h),W(t)):void ue(t,"after member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function U(t){if(null!==t&&Xt(t))return e.enter(g),e.consume(t),$;ue(t,"before local name","a character that can start a name, such as a letter, `$`, or `_`"+(43===t||null!==t&&t>46&&t<58?" (note: to create a link in MDX, use `[text](url)`)":""))}function $(t){return 45===t||null!==t&&Gt(t)?(e.consume(t),$):47===t||62===t||123===t||Vt(t)||zt(t)?(e.exit(g),L=H,se(t)):void ue(t,"in local name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function H(t){if(47===t||62===t||123===t||null!==t&&Xt(t))return e.exit(h),W(t);ue(t,"after local name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function W(t){return 47===t?(e.enter(c),e.consume(t),e.exit(c),L=re,se):62===t?ie(t):123===t?Mt.call(I,e,J,y,x,b,r,i,s,!0,!1,o)(t):null!==t&&Xt(t)?(e.enter(C),e.enter(k),e.enter(v),e.consume(t),X):void ue(t,"before attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function J(e){return L=W,se(e)}function X(t){return 45===t||null!==t&&Gt(t)?(e.consume(t),X):47===t||58===t||61===t||62===t||123===t||Vt(t)||zt(t)?(e.exit(v),L=G,se(t)):void ue(t,"in attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function G(t){return 58===t?(e.enter(A),e.consume(t),e.exit(A),L=Y,se):61===t?(e.exit(k),e.enter(E),e.consume(t),e.exit(E),L=Q,se):47===t||62===t||123===t||Vt(t)||zt(t)||null!==t&&Xt(t)?(e.exit(k),e.exit(C),L=W,se(t)):void ue(t,"after attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Y(t){if(null!==t&&Xt(t))return e.enter(_),e.consume(t),Z;ue(t,"before local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Z(t){return 45===t||null!==t&&Gt(t)?(e.consume(t),Z):47===t||61===t||62===t||123===t||Vt(t)||zt(t)?(e.exit(_),e.exit(k),L=K,se(t)):void ue(t,"in local attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function K(t){return 61===t?(e.enter(E),e.consume(t),e.exit(E),L=Q,se):47===t||62===t||123===t||null!==t&&Xt(t)?(e.exit(C),W(t)):void ue(t,"after local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Q(t){return 34===t||39===t?(e.enter(F),e.enter(w),e.consume(t),e.exit(w),N=t,te):123===t?Mt.call(I,e,ee,S,B,D,r,i,s,!1,!1,o)(t):void ue(t,"before attribute value","a character that can start an attribute value, such as `\"`, `'`, or `{`"+(60===t?" (note: to use an element or fragment as a prop value in MDX, use `{ }`)":""))}function ee(t){return e.exit(C),L=W,se(t)}function te(t){return null===t&&ue(t,"in attribute value","a corresponding closing quote `"+String.fromCodePoint(N)+"`"),t===N?(e.enter(w),e.consume(t),e.exit(w),e.exit(F),e.exit(C),N=void 0,L=W,se):Rt(t)?(L=te,se(t)):(e.enter(T),ne(t))}function ne(t){return null===t||t===N||Rt(t)?(e.exit(T),te(t)):(e.consume(t),ne)}function re(e){if(62===e)return ie(e);ue(e,"after self-closing slash","`>` to end the tag"+(42===e||47===e?" (note: JS comments in JSX tags are not supported in MDX)":""))}function ie(n){return e.enter(u),e.consume(n),e.exit(u),e.exit(a),t}function se(t){return Rt(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ae):qt(t)||zt(t)?(e.enter("esWhitespace"),oe(t)):L(t)}function oe(t){return Rt(t)?(e.exit("esWhitespace"),se(t)):qt(t)||zt(t)?(e.consume(t),oe):(e.exit("esWhitespace"),L(t))}function ae(e){if(!o&&I.parser.lazy[I.now().line])throw new Zt("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",I.now(),"micromark-extension-mdx-jsx:unexpected-eof");return se(e)}function ue(e,t,n){throw new Zt("Unexpected "+(null===e?"end of file":"character `"+(96===e?"` ` `":String.fromCodePoint(e))+"` ("+function(e){return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}(e)+")")+" "+t+", expected "+n,I.now(),"micromark-extension-mdx-jsx:unexpected-"+(null===e?"eof":"character"))}}function Qt(e,t,n){return{tokenize:function(r,i,s){return Kt.call(this,r,i,s,e,t,n,!0,"mdxJsxTextTag","mdxJsxTextTagMarker","mdxJsxTextTagClosingMarker","mdxJsxTextTagSelfClosingMarker","mdxJsxTextTagName","mdxJsxTextTagNamePrimary","mdxJsxTextTagNameMemberMarker","mdxJsxTextTagNameMember","mdxJsxTextTagNamePrefixMarker","mdxJsxTextTagNameLocal","mdxJsxTextTagExpressionAttribute","mdxJsxTextTagExpressionAttributeMarker","mdxJsxTextTagExpressionAttributeValue","mdxJsxTextTagAttribute","mdxJsxTextTagAttributeName","mdxJsxTextTagAttributeNamePrimary","mdxJsxTextTagAttributeNamePrefixMarker","mdxJsxTextTagAttributeNameLocal","mdxJsxTextTagAttributeInitializerMarker","mdxJsxTextTagAttributeValueLiteral","mdxJsxTextTagAttributeValueLiteralMarker","mdxJsxTextTagAttributeValueLiteralValue","mdxJsxTextTagAttributeValueExpression","mdxJsxTextTagAttributeValueExpressionMarker","mdxJsxTextTagAttributeValueExpressionValue")}}}function en(e,t,n){return{tokenize:function(r,i,s){const o=this;return a;function a(i){return function(i){return Kt.call(o,r,u,s,e,t,n,!1,"mdxJsxFlowTag","mdxJsxFlowTagMarker","mdxJsxFlowTagClosingMarker","mdxJsxFlowTagSelfClosingMarker","mdxJsxFlowTagName","mdxJsxFlowTagNamePrimary","mdxJsxFlowTagNameMemberMarker","mdxJsxFlowTagNameMember","mdxJsxFlowTagNamePrefixMarker","mdxJsxFlowTagNameLocal","mdxJsxFlowTagExpressionAttribute","mdxJsxFlowTagExpressionAttributeMarker","mdxJsxFlowTagExpressionAttributeValue","mdxJsxFlowTagAttribute","mdxJsxFlowTagAttributeName","mdxJsxFlowTagAttributeNamePrimary","mdxJsxFlowTagAttributeNamePrefixMarker","mdxJsxFlowTagAttributeNameLocal","mdxJsxFlowTagAttributeInitializerMarker","mdxJsxFlowTagAttributeValueLiteral","mdxJsxFlowTagAttributeValueLiteralMarker","mdxJsxFlowTagAttributeValueLiteralValue","mdxJsxFlowTagAttributeValueExpression","mdxJsxFlowTagAttributeValueExpressionMarker","mdxJsxFlowTagAttributeValueExpressionValue")(i)}(i)}function u(e){return qt(e)?$t(r,l,"whitespace")(e):l(e)}function l(e){return 60===e?a(e):null===e||Rt(e)?i(e):s(e)}},concrete:!0}}function tn(e){const t=e||{},n=t.acorn;let r;if(n){if(!n.parse||!n.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");r=Object.assign({ecmaVersion:2020,sourceType:"module"},t.acornOptions,{locations:!0})}else if(t.acornOptions||t.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{60:en(n||void 0,r,t.addResult||!1)},text:{60:Qt(n||void 0,r,t.addResult||!1)}}}Zt.prototype.file="",Zt.prototype.name="",Zt.prototype.reason="",Zt.prototype.message="",Zt.prototype.stack="",Zt.prototype.fatal=null,Zt.prototype.column=null,Zt.prototype.line=null,Zt.prototype.source=null,Zt.prototype.ruleId=null,Zt.prototype.position=null;const nn={disable:{null:["autolink","codeIndented","htmlFlow","htmlText"]}};var rn=n(9283);const sn={}.hasOwnProperty,on=Symbol("continue"),an=Symbol("exit"),un=Symbol("skip");function ln(e){return Array.isArray(e)?e:"number"==typeof e?[on,e]:[e]}function cn(e){return Boolean(e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type&&e.type.length>0)}class hn extends Error{constructor(e,t,n){const r=[null,null];let i={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(n=t,t=void 0),"string"==typeof n){const e=n.indexOf(":");-1===e?r[1]=n:(r[0]=n.slice(0,e),r[1]=n.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(i=t.position):"start"in t||"end"in t?i=t:("line"in t||"column"in t)&&(i.start=t)),this.name=(0,c.L)(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=i.start.line,this.column=i.start.column,this.position=i,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note}}function pn(e,t){const n=t.prefix||"",r=t.suffix||"",i=Object.assign({},t.acornOptions),s=[],o=[],a=i.onComment,u=i.onToken;let l,c,h=!1;const p=Object.assign({},i,{onComment:s,preserveParens:!0});u&&(p.onToken=o);const d=function(e,t){const n={value:"",stops:[]};let r=-1;for(;++r 0&&-1===e[0];)e.shift();const t=fn(e);n.stops.push([n.value.length,i[1].start]),n.value+=t,n.stops.push([n.value.length,i[1].end])}}return n}(e,["lineEnding","expressionChunk","mdxFlowExpressionChunk","mdxTextExpressionChunk","mdxJsxTextTagExpressionAttributeValue","mdxJsxTextTagAttributeValueExpressionValue","mdxJsxFlowTagExpressionAttributeValue","mdxJsxFlowTagAttributeValueExpressionValue","mdxjsEsmData"]),f=d.value,m=n+f+r,g=t.expression&&dn(f);if(g&&!t.allowEmpty)throw new hn("Unexpected empty expression",x(0),"micromark-extension-mdx-expression:unexpected-empty-expression");try{l=t.expression&&!g?t.acorn.parseExpressionAt(m,0,p):t.acorn.parse(m,p)}catch(b){const e=b,t=x(e.pos);e.message=String(e.message).replace(/ \(\d+:\d+\)$/,""),e.pos=t.offset,e.loc={line:t.line,column:t.column-1},c=e,h=e.raisedAt>=n.length+f.length||"Unterminated comment"===e.message}if(l&&t.expression&&!g)if(dn(m.slice(l.end,m.length-r.length)))l={type:"Program",start:0,end:n.length+f.length,body:[{type:"ExpressionStatement",expression:l,start:0,end:n.length+f.length}],sourceType:"module",comments:[]};else{const e=x(l.end),t=new Error("Unexpected content after expression");t.pos=e.offset,t.loc={line:e.line,column:e.column-1},c=t,l=void 0}if(l){if(l.comments=s,function(e,t){let n,r;"function"==typeof t?n=t:t&&"object"==typeof t&&(t.enter&&(n=t.enter),t.leave&&(r=t.leave)),function e(t,i,s,o){return cn(t)&&(a.displayName="node ("+t.type+")"),a;function a(){const a=n?ln(n(t,i,s,o)):[];if(a[0]===an)return a;if(a[0]!==un){let n;for(n in t)if(sn.call(t,n)&&t[n]&&"object"==typeof t[n]&&"data"!==n&&"position"!==n){const r=o.concat(t),i=t[n];if(Array.isArray(i)){const t=i;let s=0;for(;s>-1&&s {let i=r[r.length-1],s=t;"ParenthesizedExpression"===e.type&&i&&s&&("number"==typeof n&&(i=i[s],s=n),i[s]=e.expression),y(e)})),Array.isArray(a))a.push(...s);else if("function"==typeof a)for(const e of s)a("Block"===e.type,e.value,e.start,e.end,e.loc.start,e.loc.end);for(const e of o)e.end<=n.length||e.start-n.length>=f.length||(y(e),Array.isArray(u)?u.push(e):u(e))}return{estree:l,error:c,swallow:h};function y(e){const t=x(e.start),n=x(e.end);e.start=t.offset,e.end=n.offset,e.loc={start:{line:t.line,column:t.column-1,offset:t.offset},end:{line:n.line,column:n.column-1,offset:n.offset}},e.range=[e.start,e.end]}function x(e){let r=e-n.length;r<0?r=0:r>f.length&&(r=f.length);let i=function(e,t){let n=0;for(;n -1?e:void 0}hn.prototype.file="",hn.prototype.name="",hn.prototype.reason="",hn.prototype.message="",hn.prototype.stack="",hn.prototype.fatal=null,hn.prototype.column=null,hn.prototype.line=null,hn.prototype.source=null,hn.prototype.ruleId=null,hn.prototype.position=null;class yn extends Error{constructor(e,t,n){const r=[null,null];let i={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(n=t,t=void 0),"string"==typeof n){const e=n.indexOf(":");-1===e?r[1]=n:(r[0]=n.slice(0,e),r[1]=n.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(i=t.position):"start"in t||"end"in t?i=t:("line"in t||"column"in t)&&(i.start=t)),this.name=(0,c.L)(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=i.start.line,this.column=i.start.column,this.position=i,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note}}yn.prototype.file="",yn.prototype.name="",yn.prototype.reason="",yn.prototype.message="",yn.prototype.stack="",yn.prototype.fatal=null,yn.prototype.column=null,yn.prototype.line=null,yn.prototype.source=null,yn.prototype.ruleId=null,yn.prototype.position=null;const xn={tokenize:function(e,t,n){return function(r){return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(rn.B,t,n)}},partial:!0},bn=new Set(["ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ImportDeclaration"]);function Cn(e){const t={tokenize:function(t,i,s){const o=this,a=o.parser.definedModuleSpecifiers||(o.parser.definedModuleSpecifiers=[]),u=this.events.length+1;let l="";return o.interrupt?s:function(e){return o.now().column>1?s(e):(t.enter("mdxjsEsm"),t.enter("mdxjsEsmData"),t.consume(e),l+=String.fromCharCode(e),c)};function c(e){return jt(e)?(t.consume(e),l+=String.fromCharCode(e),c):"import"!==l&&"export"!==l||32!==e?s(e):(t.consume(e),h)}function h(e){return null===e||Rt(e)?(t.exit("mdxjsEsmData"),p(e)):(t.consume(e),h)}function p(e){return null===e?f(e):Rt(e)?t.check(xn,f,d)(e):(t.enter("mdxjsEsmData"),h(e))}function d(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),p}function f(s){const l=pn(o.events.slice(u),{acorn:n,acornOptions:r,prefix:a.length>0?"var "+a.join(",")+"\n":""});if(l.error){if(null!==s&&l.swallow)return d(s);throw new yn("Could not parse import/exports with acorn: "+String(l.error),{line:l.error.loc.line,column:l.error.loc.column+1,offset:l.error.pos},"micromark-extension-mdxjs-esm:acorn")}if(a.length>0){l.estree.body.shift()}let c=-1;for(;++c =48&&t<=57}function Dn(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function In(e){return function(e){const t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||Bn(e)}var Ln=n(96206);const Nn=String.fromCharCode,Pn=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function Mn(e){return e>=55296&&e<=57343||e>1114111}function On(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||!(65535&~e)||65534==(65535&e)}class jn extends Error{constructor(e,t,n){const r=[null,null];let i={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(n=t,t=void 0),"string"==typeof n){const e=n.indexOf(":");-1===e?r[1]=n:(r[0]=n.slice(0,e),r[1]=n.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(i=t.position):"start"in t||"end"in t?i=t:("line"in t||"column"in t)&&(i.start=t)),this.name=(0,c.L)(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=i.start.line,this.column=i.start.column,this.position=i,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note}}function Rn(e,t){return e=e.replace(t.subset?function(e){const t=[];let n=-1;for(;++n `]/g,n),t.subset||t.escapeOnly?e:e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(e,n,r){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,n);function n(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function Vn(e){return""+e.toString(16).toUpperCase()+";"}function qn(e,t){return Rn(e,Object.assign({format:Vn},t))}jn.prototype.file="",jn.prototype.name="",jn.prototype.reason="",jn.prototype.message="",jn.prototype.stack="",jn.prototype.fatal=null,jn.prototype.column=null,jn.prototype.line=null,jn.prototype.source=null,jn.prototype.ruleId=null,jn.prototype.position=null;const zn=/\r?\n|\r/g;function Un(e,t){const n=[];let r,i=0,s=0;for(;r=zn.exec(e);)o(e.slice(i,r.index)),n.push(r[0]),i=r.index+r[0].length,s++;return o(e.slice(i)),n.join("");function o(e){n.push(t(e,s,!e))}}function $n(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,i=n.line||1,s=n.column||1;return{move:function(e){const t=e||"",n=t.split(/\r?\n|\r/g),o=n[n.length-1];return i+=n.length-1,s=1===n.length?s+o.length:1+o.length+r,t},current:function(){return{now:{line:i,column:s},lineShift:r}},shift:function(e){r+=e}}}const Hn=" ";function Wn(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:n,mdxJsxFlowTagClosingMarker:r,mdxJsxFlowTagAttribute:h,mdxJsxFlowTagExpressionAttribute:p,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:s,mdxJsxTextTag:n,mdxJsxTextTagClosingMarker:r,mdxJsxTextTagAttribute:h,mdxJsxTextTagExpressionAttribute:p,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:s},exit:{mdxJsxFlowTagClosingMarker:o,mdxJsxFlowTagNamePrimary:a,mdxJsxFlowTagNameMember:u,mdxJsxFlowTagNameLocal:l,mdxJsxFlowTagExpressionAttribute:d,mdxJsxFlowTagExpressionAttributeValue:t,mdxJsxFlowTagAttributeNamePrimary:f,mdxJsxFlowTagAttributeNameLocal:m,mdxJsxFlowTagAttributeValueLiteral:g,mdxJsxFlowTagAttributeValueLiteralValue:t,mdxJsxFlowTagAttributeValueExpression:y,mdxJsxFlowTagAttributeValueExpressionValue:t,mdxJsxFlowTagSelfClosingMarker:x,mdxJsxFlowTag:b,mdxJsxTextTagClosingMarker:o,mdxJsxTextTagNamePrimary:a,mdxJsxTextTagNameMember:u,mdxJsxTextTagNameLocal:l,mdxJsxTextTagExpressionAttribute:d,mdxJsxTextTagExpressionAttributeValue:t,mdxJsxTextTagAttributeNamePrimary:f,mdxJsxTextTagAttributeNameLocal:m,mdxJsxTextTagAttributeValueLiteral:g,mdxJsxTextTagAttributeValueLiteralValue:t,mdxJsxTextTagAttributeValueExpression:y,mdxJsxTextTagAttributeValueExpressionValue:t,mdxJsxTextTagSelfClosingMarker:x,mdxJsxTextTag:b}};function e(){this.buffer()}function t(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function n(e){const t={name:void 0,attributes:[],close:!1,selfClosing:!1,start:e.start,end:e.end};this.getData("mdxJsxTagStack")||this.setData("mdxJsxTagStack",[]),this.setData("mdxJsxTag",t),this.buffer()}function r(e){if(0===this.getData("mdxJsxTagStack").length)throw new jn("Unexpected closing slash `/` in tag, expected an open tag first",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function i(e){if(this.getData("mdxJsxTag").close)throw new jn("Unexpected attribute in closing tag, expected the end of the tag",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-attribute")}function s(e){if(this.getData("mdxJsxTag").close)throw new jn("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function o(){this.getData("mdxJsxTag").close=!0}function a(e){this.getData("mdxJsxTag").name=this.sliceSerialize(e)}function u(e){this.getData("mdxJsxTag").name+="."+this.sliceSerialize(e)}function l(e){this.getData("mdxJsxTag").name+=":"+this.sliceSerialize(e)}function h(e){const t=this.getData("mdxJsxTag");i.call(this,e),t.attributes.push({type:"mdxJsxAttribute",name:"",value:null})}function p(e){const t=this.getData("mdxJsxTag");i.call(this,e),t.attributes.push({type:"mdxJsxExpressionAttribute",value:""}),this.buffer()}function d(e){const t=this.getData("mdxJsxTag"),n=t.attributes[t.attributes.length-1],r=e.estree;n.value=this.resume(),r&&(n.data={estree:r})}function f(e){const t=this.getData("mdxJsxTag");t.attributes[t.attributes.length-1].name=this.sliceSerialize(e)}function m(e){const t=this.getData("mdxJsxTag");t.attributes[t.attributes.length-1].name+=":"+this.sliceSerialize(e)}function g(){const e=this.getData("mdxJsxTag");e.attributes[e.attributes.length-1].value=function(e,t={}){const n="string"==typeof t.additional?t.additional.charCodeAt(0):t.additional,r=[];let i,s,o=0,a=-1,u="";t.position&&("start"in t.position||"indent"in t.position?(s=t.position.indent,i=t.position.start):i=t.position);let l,c=(i?i.line:0)||1,h=(i?i.column:0)||1,p=d();for(o--;++o<=e.length;)if(10===l&&(h=(s?s[a]:0)||1),l=e.charCodeAt(o),38===l){const i=e.charCodeAt(o+1);if(9===i||10===i||12===i||32===i||38===i||60===i||Number.isNaN(i)||n&&i===n){u+=Nn(l),h++;continue}const s=o+1;let a,c=s,g=s;if(35===i){g=++c;const t=e.charCodeAt(g);88===t||120===t?(a="hexadecimal",g=++c):a="decimal"}else a="named";let y="",x="",b="";const C="named"===a?In:"decimal"===a?Bn:Dn;for(g--;++g<=e.length;){const t=e.charCodeAt(g);if(!C(t))break;b+=Nn(t),"named"===a&&Tn.includes(b)&&(y=b,x=(0,Ln.s)(b))}let k=59===e.charCodeAt(g);if(k){g++;const e="named"===a&&(0,Ln.s)(b);e&&(y=b,x=e)}let v=1+g-s,A="";if(k||!1!==t.nonTerminated)if(b)if("named"===a){if(k&&!x)f(5,1);else if(y!==b&&(g=c+y.length,v=1+g-c,k=!1),!k){const n=y?1:3;if(t.attribute){const t=e.charCodeAt(g);61===t?(f(n,v),x=""):In(t)?x="":f(n,v)}else f(n,v)}A=x}else{k||f(2,v);let e=Number.parseInt(b,"hexadecimal"===a?16:10);if(Mn(e))f(7,v),A=Nn(65533);else if(e in Sn)f(6,v),A=Sn[e];else{let t="";On(e)&&f(6,v),e>65535&&(e-=65536,t+=Nn(e>>>10|55296),e=56320|1023&e),A=t+Nn(e)}}else"named"!==a&&f(4,v);if(A){m(),p=d(),o=g-1,h+=g-s+1,r.push(A);const n=d();n.offset++,t.reference&&t.reference.call(t.referenceContext,A,{start:p,end:n},e.slice(s-1,g)),p=n}else b=e.slice(s-1,g),u+=b,h+=b.length,o=g-1}else 10===l&&(c++,a++,h=0),Number.isNaN(l)?m():(u+=Nn(l),h++);return r.join("");function d(){return{line:c,column:h,offset:o+((i?i.offset:0)||0)}}function f(e,n){let r;t.warning&&(r=d(),r.column+=n,r.offset+=n,t.warning.call(t.warningContext,Pn[e],r,e))}function m(){u&&(r.push(u),t.text&&t.text.call(t.textContext,u,{start:p,end:d()}),u="")}}(this.resume(),{nonTerminated:!1})}function y(e){const t=this.getData("mdxJsxTag"),n=t.attributes[t.attributes.length-1],r={type:"mdxJsxAttributeValueExpression",value:this.resume()},i=e.estree;i&&(r.data={estree:i}),n.value=r}function x(){this.getData("mdxJsxTag").selfClosing=!0}function b(e){const t=this.getData("mdxJsxTag"),n=this.getData("mdxJsxTagStack"),r=n[n.length-1];if(t.close&&r.name!==t.name)throw new jn("Unexpected closing tag `"+v(t)+"`, expected corresponding closing tag for `"+v(r)+"` ("+(0,c.L)(r)+")",{start:e.start,end:e.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),t.close?n.pop():this.enter({type:"mdxJsxTextTag"===e.type?"mdxJsxTextElement":"mdxJsxFlowElement",name:t.name||null,attributes:t.attributes,children:[]},e,C),t.selfClosing||t.close?this.exit(e,k):n.push(t)}function C(e,t){const n=this.getData("mdxJsxTag"),r=e?" before the end of `"+e.type+"`":"",i=e?{start:e.start,end:e.end}:void 0;throw new jn("Expected a closing tag for `"+v(n)+"` ("+(0,c.L)({start:t.start,end:t.end})+")"+r,i,"mdast-util-mdx-jsx:end-tag-mismatch")}function k(e,t){const n=this.getData("mdxJsxTag");throw new jn("Expected the closing tag `"+v(n)+"` either after the end of `"+t.type+"` ("+(0,c.L)(t.end)+") or another opening tag after the start of `"+t.type+"` ("+(0,c.L)(t.start)+")",{start:e.start,end:e.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function v(e){return"<"+(e.close?"/":"")+(e.name||"")+">"}}function Jn(e){const t=e||{},n=t.quote||'"',r=t.quoteSmart||!1,i=t.tightSelfClosing||!1,s=t.printWidth||Number.POSITIVE_INFINITY,o='"'===n?"'":'"';if('"'!==n&&"'"!==n)throw new Error("Cannot serialize attribute values with `"+n+"` for `options.quote`, expected `\"`, or `'`");return a.peek=Yn,{handlers:{mdxJsxFlowElement:a,mdxJsxTextElement:a},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0};function a(e,t,a,u){const l="mdxJsxFlowElement"===e.type,c=!!e.name&&(!e.children||0===e.children.length),h=Gn(Xn(a)),p=$n(u),d=$n(u),f=[],m=(l?h:"")+"<"+(e.name||""),g=a.enter(e.type);if(p.move(m),d.move(m),e.attributes&&e.attributes.length>0){if(!e.name)throw new Error("Cannot serialize fragment w/ attributes");let t=-1;for(;++t (0,wn.D)(e,o)?o:n;a=t+qn(e,{subset:[t]})+t}s=t+(a?"=":"")+a}f.push(s)}}let y=!1;const x=f.join(" ");l&&(/\r?\n|\r/.test(x)||p.current().now.column+x.length+(c?i?2:3:1)>s)&&(y=!0);let b=p,C=m;if(y){b=d;let e=-1;for(;++e "),e.children&&e.children.length>0&&("mdxJsxTextElement"===e.type?C+=b.move(function(e,t,n){const r=t.indexStack,i=e.children||[],s=[];let o=-1,a=n.before;r.push(-1);let u=t.createTracker(n);for(;++o 0&&("\r"===a||"\n"===a)&&"html"===l.type&&(s[s.length-1]=s[s.length-1].replace(/(\r?\n|\r)$/," "),a=" ",u=t.createTracker(n),u.move(s.join(""))),s.push(u.move(t.handle(l,e,t,{...u.current(),before:a,after:c}))),a=s[s.length-1].slice(-1)}return r.pop(),s.join("")}(e,a,{...b.current(),before:">",after:"<"})):(b.shift(2),C+=b.move("\n"),C+=b.move(function(e,t,n){const r=t.indexStack,i=e.children,s=t.createTracker(n),o=Gn(Xn(t)),a=[];let u=-1;r.push(-1);for(;++u ")),g(),C}}function Xn(e){let t=0;for(const n of e.stack)"mdxJsxFlowElement"===n&&t++;return t}function Gn(e){return Hn.repeat(e)}function Yn(){return"<"}const Zn={enter:{mdxjsEsm:function(e){this.enter({type:"mdxjsEsm",value:""},e),this.buffer()}},exit:{mdxjsEsm:function(e){const t=this.resume(),n=this.exit(e),r=e.estree;n.value=t,r&&(n.data={estree:r})},mdxjsEsmData:function(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}},Kn={handlers:{mdxjsEsm:function(e){return e.value||""}}};function Qn(e){const t=this.data();function n(e,n){(t[e]?t[e]:t[e]=[]).push(n)}n("micromarkExtensions",function(e){const t=Object.assign({acorn:be.extend(kt()),acornOptions:{ecmaVersion:2020,sourceType:"module"},addResult:!0},e);return(0,kn.y)([Cn(t),Ht(t),tn(t),nn])}(e)),n("fromMarkdownExtensions",[vn,Wn(),Zn]),n("toMarkdownExtensions",function(e){return{extensions:[An,Jn(e),Kn]}}(e))}const er={};function tr(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return nr(e.children,t,n)}return Array.isArray(e)?nr(e,t,n):""}function nr(e,t,n){const r=[];let i=-1;for(;++i s))return;const n=t.events.length;let i,a,u=n;for(;u--;)if("exit"===t.events[u][0]&&"chunkFlow"===t.events[u][1].type){if(i){a=t.events[u][1].end;break}i=!0}for(y(o),e=n;e r;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function x(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},or={tokenize:function(e,t,n){return $t(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var ar=n(9987);const ur={tokenize:function(e){const t=this,n=e.attempt(rn.B,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,$t(e,e.attempt(this.parser.constructs.flow,r,e.attempt(ar.Q,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const lr={resolveAll:dr()},cr=pr("string"),hr=pr("text");function pr(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,s,o);return s;function s(e){return u(e)?i(e):o(e)}function o(e){if(null!==e)return t.enter("data"),t.consume(e),a;t.consume(e)}function a(e){return u(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function u(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i -1){const e=o[0];"string"==typeof e?o[0]=e.slice(r):o.shift()}s>0&&o.push(e[i].slice(0,s))}return o}(o,e)}function f(){const{line:e,column:t,offset:n,_index:i,_bufferIndex:s}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:s}}function m(){let e;for(;r._index 0){const e=r.tokenStack[r.tokenStack.length-1];(e[1]||ni).call(r,void 0,e[0])}for(n.position={start:Qr(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Qr(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c {const n=this.data("settings");return Kr(t,Object.assign({},n,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}si(/[A-Za-z]/);const ii=si(/[\dA-Za-z]/);si(/[#-'*+\--9=?A-Z^-~]/);si(/\d/),si(/[\dA-Fa-f]/),si(/[!-/:-@[-`{-~]/);si(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),si(/\s/);function si(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}function oi(e){const t=[];let n=-1,r=0,i=0;for(;++n 55295&&s<57344){const t=e.charCodeAt(n+1);s<56320&&t>56319&&t<57344?(o=String.fromCharCode(s,t),i=1):o="\ufffd"}else o=String.fromCharCode(s);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}const ai=function(e){if(null==e)return li;if("string"==typeof e)return function(e){return ui(t);function t(t){return t&&t.type===e}}(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n ":"")+")"})}return c;function c(){let l,c,h,p=[];if((!t||i(o,a,u[u.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[ci,e];return[e]}(n(o,u)),p[0]===hi))return p;if(o.children&&"skip"!==p[0])for(c=(r?o.children.length:-1)+s,h=u.concat(o);c>-1&&c -1?n.offset:null}}}var yi=n(56034);const xi=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null),(0,yi.VG)(e,t,(function(e,t){const r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)}),r)},bi={}.hasOwnProperty;function Ci(e){return String(e||"").toUpperCase()}function ki(e,t){const n=String(t.identifier).toUpperCase(),r=oi(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let s;-1===i?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,s=e.footnoteOrder.length):(e.footnoteCounts[n]++,s=i+1);const o=e.footnoteCounts[n],a={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,a);const u={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,u),e.applyData(t,u)}function vi(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+r};const i=e.all(t),s=i[0];s&&"text"===s.type?s.value="["+s.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&"text"===o.type?o.value+=r:i.push({type:"text",value:r}),i}function Ai(e){const t=e.spread;return null==t?e.children.length>1:t}const _i=9,Ei=32;function Fi(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const s=[];for(;r;)s.push(wi(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return s.push(wi(t.slice(i),i>0,!1)),s.join("")}function wi(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===_i||t===Ei;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===_i||t===Ei;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}const Ti={blockquote:function(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)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let s={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:ki,footnote:function(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},ki(e,{type:"footnoteReference",identifier:i,position:t.position})},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null},imageReference:function(e,t){const n=e.definition(t.identifier);if(!n)return vi(e,t);const r={src:oi(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:oi(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(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)},linkReference:function(e,t){const n=e.definition(t.identifier);if(!n)return vi(e,t);const r={href:oi(n.url||"")};null!==n.title&&void 0!==n.title&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:oi(t.url)};null!==t.title&&void 0!==t.title&&(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)},listItem:function(e,t,n){const r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r 0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let a=-1;for(;++a 0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=fi(t.children[1]),o=mi(t.children[t.children.length-1]);s.line&&o.line&&(r.position={start:s,end:o}),i.push(r)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",s=n&&"table"===n.type?n.align:void 0,o=s?s.length:t.children.length;let a=-1;const u=[];for(;++a {const n=Ci(e.identifier);n&&!bi.call(t,n)&&(t[n]=e)})),function(e){const n=Ci(e);return n&&bi.call(t,n)?t[n]:null}}(e),o.footnoteById=i,o.footnoteOrder=[],o.footnoteCounts={},o.patch=Ii,o.applyData=Li,o.one=function(e,t){return Ni(o,e,t)},o.all=function(e){return Pi(o,e)},o.wrap=Mi,o.augment=s,di(e,"footnoteDefinition",(e=>{const t=String(e.identifier).toUpperCase();Bi.call(i,t)||(i[t]=e)})),o;function s(e,t){if(e&&"data"in e&&e.data){const n=e.data;n.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties={...t.properties,...n.hProperties}),"children"in t&&t.children&&n.hChildren&&(t.children=n.hChildren)}if(e){const n="type"in e?e:{position:e};(function(e){return!(e&&e.position&&e.position.start&&e.position.start.line&&e.position.start.column&&e.position.end&&e.position.end.line&&e.position.end.column)})(n)||(t.position={start:fi(n),end:mi(n)})}return t}function o(e,t,n,r){return Array.isArray(n)&&(r=n,n={}),s(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}function Ii(e,t){e.position&&(t.position=function(e){return{start:fi(e),end:mi(e)}}(e))}function Li(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:[]}),"element"===n.type&&i&&(n.properties={...n.properties,...i}),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function Ni(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return Bi.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:Pi(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):function(e,t){const n=t.data||{},r=!("value"in t)||Bi.call(n,"hProperties")||Bi.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:Pi(e,t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}(e,t)}function Pi(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i 0&&n.push({type:"text",value:"\n"}),n}function Oi(e,t){const n=Di(e,t),r=n.one(e,null),i=function(e){const t=[];let n=-1;for(;++n 1?"-"+a:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"\u21a9"}]};a>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(a)}]}),u.length>0&&u.push({type:"text",value:" "}),u.push(t)}const l=i[i.length-1];if(l&&"element"===l.type&&"p"===l.tagName){const e=l.children[l.children.length-1];e&&"text"===e.type?e.value+=" ":l.children.push({type:"text",value:" "}),l.children.push(...u)}else i.push(...u);const c={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+o},children:e.wrap(i,!0)};e.patch(r,c),t.push(c)}if(0!==t.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:"\n"}]}}(n);return i&&r.children.push({type:"text",value:"\n"},i),Array.isArray(r)?{type:"root",children:r}:r}const ji=function(e,t){return e&&"run"in e?function(e,t){return(n,r,i)=>{e.run(Oi(n,t),r,(e=>{i(e)}))}}(e,t):function(e){return t=>Oi(t,e)}(e||t)};class Ri{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:e=>this.replacement=e}}replace(e,t,n,r){e&&t&&(null!=n?e[t][n]=r:e[t]=r)}remove(e,t,n){e&&t&&(null!=n?e[t].splice(n,1):delete e[t])}}class Vi extends Ri{constructor(e,t){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:e=>this.replacement=e},this.enter=e,this.leave=t}visit(e,t,n,r){if(e){if(this.enter){const i=this.should_skip,s=this.should_remove,o=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,e,t,n,r),this.replacement&&(e=this.replacement,this.replace(t,n,r,e)),this.should_remove&&this.remove(t,n,r);const a=this.should_skip,u=this.should_remove;if(this.should_skip=i,this.should_remove=s,this.replacement=o,a)return e;if(u)return null}let i;for(i in e){const t=e[i];if(t&&"object"==typeof t)if(Array.isArray(t)){const n=t;for(let t=0;t 0}const Xi=/@(jsx|jsxFrag|jsxImportSource|jsxRuntime)\s+(\S+)/g;function Gi(e){let t;return e.value?"JSXExpressionContainer"===e.value.type?t=e.value.expression:(t=e.value,delete t.raw):t={type:"Literal",value:!0},Ki(e,{type:"Property",key:Yi(e.name),value:t,kind:"init",method:!1,shorthand:!1,computed:!1})}function Yi(e){let t;if("JSXMemberExpression"===e.type){const n=Yi(e.property);t={type:"MemberExpression",object:Yi(e.object),property:n,computed:"Literal"===n.type,optional:!1}}else t="JSXNamespacedName"===e.type?{type:"Literal",value:e.namespace.name+":"+e.name.name}:Ji(e.name)?{type:"Identifier",name:e.name}:{type:"Literal",value:e.name};return Ki(e,t)}function Zi(e){const t=e.split(".");let n,r=-1;for(;++r {let t="ImportSpecifier"===e.type?e.imported:"ExportSpecifier"===e.type?e.exported:{type:"Identifier",name:"default"},n=e.local;"ExportSpecifier"===e.type&&(n=t,t=e.local);const r={type:"Property",kind:"init",shorthand:t.name===n.name,method:!1,computed:!1,key:t,value:n};return Qi(e,r),r}))},init:s?{type:"Identifier",name:s.local.name}:t}),r}const ts=rs("Identifier","MemberExpression",Yt),ns=rs("JSXIdentifier","JSXMemberExpression",(function(e){let t=-1;for(;++t 0}));function rs(e,t,n){return function(r){let i,s=-1;for(;++s {!function(e,t){const n=t||{};let r="automatic"===n.runtime;const i={},s={};zi(e,{enter(e){if("Program"===e.type){const t=e.comments||[];let n=-1;for(;++n 0&&e.body.unshift({type:"ImportDeclaration",specifiers:t,source:{type:"Literal",value:(i.jsxImportSource||n.importSource||"react")+(n.development?"/jsx-dev-runtime":"/jsx-runtime")}})}if("JSXElement"!==e.type&&"JSXFragment"!==e.type)return;const t=[];let o,a=-1;for(;++a 0&&(l.push({type:"ObjectExpression",properties:u}),u=[]),l.push(e.argument),t=!0;else{const n=Gi(e);if(r&&"Identifier"===n.key.type&&"key"===n.key.name){if(t)throw new Error("Expected `key` to come before any spread expressions");c=n.value}else u.push(n)}}}else r?(s.fragment=!0,o={type:"Identifier",name:"_Fragment"}):o=Zi(i.jsxFrag||n.pragmaFrag||"React.Fragment");if(r?t.length>0&&u.push({type:"Property",key:{type:"Identifier",name:"children"},value:t.length>1?{type:"ArrayExpression",elements:t}:t[0],kind:"init",method:!1,shorthand:!1,computed:!1}):d=t,u.length>0&&l.push({type:"ObjectExpression",properties:u}),l.length>1?("ObjectExpression"!==l[0].type&&l.unshift({type:"ObjectExpression",properties:[]}),h={type:"CallExpression",callee:Zi("Object.assign"),arguments:l,optional:!1}):l.length>0&&(h=l[0]),r){d.push(h||{type:"ObjectExpression",properties:[]}),c?d.push(c):n.development&&d.push({type:"Identifier",name:"undefined"});const r=t.length>1;if(n.development){s.jsxDEV=!0,p={type:"Identifier",name:"_jsxDEV"},d.push({type:"Literal",value:r});const t={type:"ObjectExpression",properties:[{type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"fileName"},value:{type:"Literal",value:n.filePath||" "}}]};e.loc&&t.properties.push({type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"lineNumber"},value:{type:"Literal",value:e.loc.start.line}},{type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"columnNumber"},value:{type:"Literal",value:e.loc.start.column+1}}),d.push(t,{type:"ThisExpression"})}else r?(s.jsxs=!0,p={type:"Identifier",name:"_jsxs"}):(s.jsx=!0,p={type:"Identifier",name:"_jsx"})}else(h||d.length>0)&&d.unshift(h||{type:"Literal",value:null}),p=Zi(i.jsx||n.pragma||"React.createElement");d.unshift(o),this.replace(Ki(e,{type:"CallExpression",callee:p,arguments:d,optional:!1}))}})}(e,{development:t,filePath:r.history[0]}),"function-body"===n&&e.body[0]&&"ImportDeclaration"===e.body[0].type&&"string"==typeof e.body[0].source.value&&/\/jsx-(dev-)?runtime$/.test(e.body[0].source.value)&&(e.body[0]={type:"VariableDeclaration",kind:"const",declarations:es(e.body[0].specifiers,ts(["arguments",0]))})}}function os(e,t){if("MemberExpression"===e.type)return!e.computed&&os(e.object,e);if("Identifier"===e.type){if(!t)return!0;switch(t.type){case"MemberExpression":return t.computed||e===t.object;case"MethodDefinition":return t.computed;case"PropertyDefinition":case"Property":return t.computed||e===t.value;case"ExportSpecifier":case"ImportSpecifier":return e===t.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}return!1}function as(e){const t=new WeakMap,n=new Map,r=new ls(null,!1),i=[];let s=r;zi(e,{enter(e,n){switch(e.type){case"Identifier":n&&os(e,n)&&i.push([s,e]);break;case"ImportDeclaration":e.specifiers.forEach((e=>{s.declarations.set(e.local.name,e)}));break;case"FunctionExpression":case"FunctionDeclaration":case"ArrowFunctionExpression":"FunctionDeclaration"===e.type?(e.id&&s.declarations.set(e.id.name,e),t.set(e,s=new ls(s,!1))):(t.set(e,s=new ls(s,!1)),"FunctionExpression"===e.type&&e.id&&s.declarations.set(e.id.name,e)),e.params.forEach((t=>{cs(t).forEach((t=>{s.declarations.set(t,e)}))}));break;case"ForStatement":case"ForInStatement":case"ForOfStatement":case"BlockStatement":t.set(e,s=new ls(s,!0));break;case"ClassDeclaration":case"VariableDeclaration":s.add_declaration(e);break;case"CatchClause":t.set(e,s=new ls(s,!0)),e.param&&cs(e.param).forEach((t=>{e.param&&s.declarations.set(t,e.param)}))}},leave(e){t.has(e)&&null!==s&&s.parent&&(s=s.parent)}});for(let o=i.length-1;o>=0;--o){const[e,t]=i[o];e.references.has(t.name)||us(e,t.name),e.find_owner(t.name)||n.set(t.name,t)}return{map:t,scope:r,globals:n}}function us(e,t){e.references.add(t),e.parent&&us(e.parent,t)}class ls{constructor(e,t){this.parent=e,this.block=t,this.declarations=new Map,this.initialised_declarations=new Set,this.references=new Set}add_declaration(e){if("VariableDeclaration"===e.type)if("var"===e.kind&&this.block&&this.parent)this.parent.add_declaration(e);else{const t=t=>{cs(t.id).forEach((n=>{this.declarations.set(n,e),t.init&&this.initialised_declarations.add(n)}))};e.declarations.forEach(t)}else e.id&&this.declarations.set(e.id.name,e)}find_owner(e){return this.declarations.has(e)?this:this.parent&&this.parent.find_owner(e)}has(e){return this.declarations.has(e)||!!this.parent&&this.parent.has(e)}}function cs(e){return hs(e).map((e=>e.name))}function hs(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":let n=e;for(;"MemberExpression"===n.type;)n=n.object;t.push(n);break;case"ObjectPattern":const r=e=>{"RestElement"===e.type?hs(e.argument,t):hs(e.value,t)};e.properties.forEach(r);break;case"ArrayPattern":const i=e=>{e&&hs(e,t)};e.elements.forEach((e=>{e&&i(e)}));break;case"RestElement":hs(e.argument,t);break;case"AssignmentPattern":hs(e.left,t)}return t}function ps(e){if("FunctionDeclaration"===e.type)return{...e,type:"FunctionExpression"};if("ClassDeclaration"===e.type)return{...e,type:"ClassExpression"};throw new Error("Cannot turn `"+e.type+"` into an expression")}function ds(e){return Boolean("FunctionDeclaration"===e.type||"ClassDeclaration"===e.type||"VariableDeclaration"===e.type)}function fs(e){const t=e||{},n=t.baseUrl||void 0,r=t.useDynamicImport||void 0,i=t.outputFormat||"program",s=void 0===t.pragma?"React.createElement":t.pragma,o=void 0===t.pragmaFrag?"React.Fragment":t.pragmaFrag,a=t.pragmaImportSource||"react",u=t.jsxImportSource||"react",l=t.jsxRuntime||"automatic";return(e,t)=>{const p=[],d=[],f=[];let m,g,y,x=0;if(e.comments||(e.comments=[]),l&&f.push("@jsxRuntime "+l),"automatic"===l&&u&&f.push("@jsxImportSource "+u),"classic"===l&&s&&f.push("@jsx "+s),"classic"===l&&o&&f.push("@jsxFrag "+o),f.length>0&&e.comments.unshift({type:"Block",value:f.join(" ")}),"classic"===l&&a){if(!s)throw new Error("Missing `pragma` in classic runtime with `pragmaImportSource`");C({type:"ImportDeclaration",specifiers:[{type:"ImportDefaultSpecifier",local:{type:"Identifier",name:s.split(".")[0]}}],source:{type:"Literal",value:a}})}for(y of e.body)if("ExportDefaultDeclaration"===y.type)m&&t.fail("Cannot specify multiple layouts (previous: "+(0,c.L)(mn(m))+")",mn(y),"recma-document:duplicate-layout"),m=y,d.push({type:"VariableDeclaration",kind:"const",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"MDXLayout"},init:ds(y.declaration)?ps(y.declaration):y.declaration}]});else if("ExportNamedDeclaration"===y.type&&y.source){const e=y.source;y.specifiers=y.specifiers.filter((n=>{if("default"===n.exported.name){m&&t.fail("Cannot specify multiple layouts (previous: "+(0,c.L)(mn(m))+")",mn(y),"recma-document:duplicate-layout"),m=n;const r=[];if("default"===n.local.name)r.push({type:"ImportDefaultSpecifier",local:{type:"Identifier",name:"MDXLayout"}});else{const e={type:"ImportSpecifier",imported:n.local,local:{type:"Identifier",name:"MDXLayout"}};Qi(n.local,e),r.push(e)}const i={type:"Literal",value:e.value};Qi(e,i);const s={type:"ImportDeclaration",specifiers:r,source:i};return Qi(n,s),C(s),!1}return!0})),y.specifiers.length>0&&b(y)}else"ExportNamedDeclaration"===y.type||"ExportAllDeclaration"===y.type?b(y):"ImportDeclaration"===y.type?C(y):"ExpressionStatement"!==y.type||"JSXFragment"!==y.expression.type&&"JSXElement"!==y.expression.type?d.push(y):(g=!0,d.push(...h(y.expression,Boolean(m))));function b(e){if("ExportNamedDeclaration"===e.type)for(y of(e.declaration&&p.push(...as(e.declaration).scope.declarations.keys()),e.specifiers))p.push(y.exported.name);C(e)}function C(e){if(n&&e.source){let t=String(e.source.value);try{t=String(new URL(t))}catch{/^\.{0,2}\//.test(t)&&(t=String(new URL(t,n)))}const r={type:"Literal",value:t};Qi(e.source,r),e.source=r}let s,o;if("function-body"===i)if("ImportDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportNamedDeclaration"===e.type&&e.source){if(r||t.fail("Cannot use `import` or `export \u2026 from` in `evaluate` (outputting a function body) by default: please set `useDynamicImport: true` (and probably specify a `baseUrl`)",mn(e),"recma-document:invalid-esm-statement"),!e.source)throw new Error("Expected `node.source` to be defined");const n={type:"ImportExpression",source:e.source};Qi(e,n),o={type:"AwaitExpression",argument:n},s="ImportDeclaration"!==e.type&&"ExportNamedDeclaration"!==e.type||0!==e.specifiers.length?{type:"VariableDeclaration",kind:"const",declarations:"ExportAllDeclaration"===e.type?[{type:"VariableDeclarator",id:{type:"Identifier",name:"_exportAll"+ ++x},init:o}]:es(e.specifiers,o)}:{type:"ExpressionStatement",expression:o}}else if(e.declaration)s=e.declaration;else{const t=e.specifiers.filter((e=>e.local.name!==e.exported.name)).map((e=>({type:"VariableDeclarator",id:e.exported,init:e.local})));t.length>0&&(s={type:"VariableDeclaration",kind:"const",declarations:t})}else s=e;s&&d.push(s)}g||d.push(...h(void 0,Boolean(m))),p.push(["MDXContent","default"]),"function-body"===i?d.push({type:"ReturnStatement",argument:{type:"ObjectExpression",properties:[...Array.from({length:x}).map(((e,t)=>({type:"SpreadElement",argument:{type:"Identifier",name:"_exportAll"+(t+1)}}))),...p.map((e=>({type:"Property",kind:"init",method:!1,computed:!1,shorthand:"string"==typeof e,key:{type:"Identifier",name:"string"==typeof e?e:e[1]},value:{type:"Identifier",name:"string"==typeof e?e:e[0]}})))]}}):d.push({type:"ExportDefaultDeclaration",declaration:{type:"Identifier",name:"MDXContent"}}),e.body=d,n&&zi(e,{enter(e){if("MemberExpression"===e.type&&"object"in e&&"MetaProperty"===e.object.type&&"Identifier"===e.property.type&&"import"===e.object.meta.name&&"meta"===e.object.property.name&&"url"===e.property.name){const e={type:"Literal",value:n};this.replace(e)}}})};function h(e,t){let n={type:"JSXElement",openingElement:{type:"JSXOpeningElement",name:{type:"JSXIdentifier",name:"MDXLayout"},attributes:[{type:"JSXSpreadAttribute",argument:{type:"Identifier",name:"props"}}],selfClosing:!1},closingElement:{type:"JSXClosingElement",name:{type:"JSXIdentifier",name:"MDXLayout"}},children:[{type:"JSXElement",openingElement:{type:"JSXOpeningElement",name:{type:"JSXIdentifier",name:"_createMdxContent"},attributes:[{type:"JSXSpreadAttribute",argument:{type:"Identifier",name:"props"}}],selfClosing:!0},closingElement:null,children:[]}]};t||(n={type:"ConditionalExpression",test:{type:"Identifier",name:"MDXLayout"},consequent:n,alternate:{type:"CallExpression",callee:{type:"Identifier",name:"_createMdxContent"},arguments:[{type:"Identifier",name:"props"}],optional:!1}});let r=e||{type:"Literal",value:null};return r&&"JSXFragment"===r.type&&1===r.children.length&&"JSXElement"===r.children[0].type&&(r=r.children[0]),[{type:"FunctionDeclaration",id:{type:"Identifier",name:"_createMdxContent"},params:[{type:"Identifier",name:"props"}],body:{type:"BlockStatement",body:[{type:"ReturnStatement",argument:r}]}},{type:"FunctionDeclaration",id:{type:"Identifier",name:"MDXContent"},params:[{type:"AssignmentPattern",left:{type:"Identifier",name:"props"},right:{type:"ObjectExpression",properties:[]}}],body:{type:"BlockStatement",body:[{type:"ReturnStatement",argument:n}]}}]}}function ms(e){let t,n=-1;for(;++n {const s=as(e),o=[];let a,u=!1,l=!1;if(zi(e,{enter(e){const t=s.map.get(e);"FunctionDeclaration"!==e.type&&"FunctionExpression"!==e.type&&"ArrowFunctionExpression"!==e.type||(o.push({objects:[],components:[],tags:[],references:{},idToInvalidComponentName:new Map,node:e}),xs(e,"MDXContent")&&t&&!bs(t,"MDXLayout")&&o[0].components.push("MDXLayout"));const r=o[0];if(r&&(xs(r.node,"_createMdxContent")||n)&&(t&&(t.node=e,a=t),a&&"JSXElement"===e.type)){let t=e.openingElement.name;if("JSXMemberExpression"===t.type){const n=[];for(;"JSXMemberExpression"===t.type;)n.unshift(t.property.name),t=t.object;n.unshift(t.name);const i=n.join("."),s=t.name,o=bs(a,s);if(!gs.call(r.references,i)){const t=a.parent;(!o||t&&"FunctionDeclaration"===t.node.type&&xs(t.node,"_createMdxContent"))&&(r.references[i]={node:e,component:!0})}r.objects.includes(s)||o||r.objects.push(s)}else if("JSXNamespacedName"===t.type);else if(Yt(t.name)&&!/^[a-z]/.test(t.name)){const n=t.name;bs(a,n)||("MDXLayout"===n||gs.call(r.references,n)||(r.references[n]={node:e,component:!0}),r.components.includes(n)||r.components.push(n))}else if(e.data&&e.data._mdxExplicitJsx);else{const n=t.name;r.tags.includes(n)||r.tags.push(n);let i=["_components",n];if(!1===Yt(n)){let e=r.idToInvalidComponentName.get(n);void 0===e&&(e=`_component${r.idToInvalidComponentName.size}`,r.idToInvalidComponentName.set(n,e)),i=[e]}e.openingElement.name=ns(i),e.closingElement&&(e.closingElement.name=ns(i))}}},leave(e){const r=[],i=[],s=[],h=[];if(a&&a.node===e&&(a=a.parent),"FunctionDeclaration"===e.type||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type){const a=e,p=o[o.length-1];let d;for(d of p.tags)r.push({type:"Property",kind:"init",key:Yt(d)?{type:"Identifier",name:d}:{type:"Literal",value:d},value:{type:"Literal",value:d},method:!1,shorthand:!1,computed:!1});for(d of(i.push(...p.components),p.objects))i.includes(d)||i.push(d);const f=[];if(r.length>0||i.length>0||p.idToInvalidComponentName.size>0){n&&(u=!0,s.push({type:"CallExpression",callee:{type:"Identifier",name:"_provideComponents"},arguments:[],optional:!1})),(xs(p.node,"MDXContent")||xs(p.node,"_createMdxContent"))&&s.push(ts(["props","components"])),(r.length>0||s.length>1)&&s.unshift({type:"ObjectExpression",properties:r});let e,t=s.length>1?{type:"CallExpression",callee:ts(["Object","assign"]),arguments:s,optional:!1}:"MemberExpression"===s[0].type?{type:"LogicalExpression",operator:"||",left:s[0],right:{type:"ObjectExpression",properties:[]}}:s[0];if(i.length>0&&(e={type:"ObjectPattern",properties:i.map((e=>({type:"Property",kind:"init",key:{type:"Identifier",name:"MDXLayout"===e?"wrapper":e},value:{type:"Identifier",name:e},method:!1,shorthand:"MDXLayout"!==e,computed:!1})))}),p.tags.length>0&&(h.push({type:"VariableDeclarator",id:{type:"Identifier",name:"_components"},init:t}),t={type:"Identifier",name:"_components"}),xs(p.node,"_createMdxContent"))for(const[n,r]of p.idToInvalidComponentName)h.push({type:"VariableDeclarator",id:{type:"Identifier",name:r},init:{type:"MemberExpression",object:{type:"Identifier",name:"_components"},property:{type:"Literal",value:n},computed:!0,optional:!1}});e&&h.push({type:"VariableDeclarator",id:e,init:t}),h.length>0&&f.push({type:"VariableDeclaration",kind:"const",declarations:h})}let m;for(m in p.references)if(gs.call(p.references,m)){const e=m.split(".");let t=0;for(;++t 0&&("BlockStatement"!==a.body.type&&(a.body={type:"BlockStatement",body:[{type:"ReturnStatement",argument:a.body}]}),a.body.body.unshift(...f)),o.pop()}}}),u&&n&&e.body.unshift(function(e,t){const n=[{type:"ImportSpecifier",imported:{type:"Identifier",name:"useMDXComponents"},local:{type:"Identifier",name:"_provideComponents"}}];return"function-body"===t?{type:"VariableDeclaration",kind:"const",declarations:es(n,ts(["arguments",0]))}:{type:"ImportDeclaration",specifiers:n,source:{type:"Literal",value:e}}}(n,r)),l){const n=[{type:"Literal",value:"Expected "},{type:"ConditionalExpression",test:{type:"Identifier",name:"component"},consequent:{type:"Literal",value:"component"},alternate:{type:"Literal",value:"object"}},{type:"Literal",value:" `"},{type:"Identifier",name:"id"},{type:"Literal",value:"` to be defined: you likely forgot to import, pass, or provide it."}],r=[{type:"Identifier",name:"id"},{type:"Identifier",name:"component"}];t&&(n.push({type:"ConditionalExpression",test:{type:"Identifier",name:"place"},consequent:ms([{type:"Literal",value:"\nIt\u2019s referenced in your code at `"},{type:"Identifier",name:"place"},{type:"Literal",value:(i.path?"` in `"+i.path:"")+"`"}]),alternate:{type:"Literal",value:""}}),r.push({type:"Identifier",name:"place"})),e.body.push({type:"FunctionDeclaration",id:{type:"Identifier",name:"_missingMdxReference"},generator:!1,async:!1,params:r,body:{type:"BlockStatement",body:[{type:"ThrowStatement",argument:{type:"NewExpression",callee:{type:"Identifier",name:"Error"},arguments:[ms(n)]}}]}})}}}function xs(e,t){return Boolean(e&&"id"in e&&e.id&&e.id.name===t)}function bs(e,t){let n=e;for(;n;){if(n.declarations.has(t))return!0;n=n.parent}return!1}const{stringify:Cs}=JSON;if(!String.prototype.repeat)throw new Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw new Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");const ks={"||":2,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},vs=17,As={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:vs,ClassExpression:vs,FunctionExpression:vs,ObjectExpression:vs,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function _s(e,t){const{generator:n}=e;if(e.write("("),null!=t&&t.length>0){n[t[0].type](t[0],e);const{length:r}=t;for(let i=1;i 0){e.write(r);for(let t=1;t 0){n.VariableDeclarator(r[0],e);for(let t=1;t0){t.write(r),i&&null!=e.comments&&Ts(t,e.comments,s,r);const{length:a}=o;for(let e=0;e0){for(;i0&&t.write(", ");const e=n[i],r=e.type[6];if("D"===r)t.write(e.local.name,e),i++;else{if("N"!==r)break;t.write("* as "+e.local.name,e),i++}}if(i 0)for(let e=0;;){const i=n[e],{name:s}=i.local;if(t.write(s,i),s!==i.exported.name&&t.write(" as "+i.exported.name),!(++e "),"O"===e.body.type[0]?(t.write("("),this.ObjectExpression(e.body,t),t.write(")")):this[e.body.type](e.body,t)},ThisExpression(e,t){t.write("this",e)},Super(e,t){t.write("super",e)},RestElement:Is=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:Is,YieldExpression(e,t){t.write(e.delegate?"yield*":"yield"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t))},AwaitExpression(e,t){t.write("await ",e),Fs(t,e.argument,e)},TemplateLiteral(e,t){const{quasis:n,expressions:r}=e;t.write("`");const{length:i}=r;for(let o=0;o0){const{elements:n}=e,{length:r}=n;for(let e=0;;){const i=n[e];if(null!=i&&this[i.type](i,t),!(++e 0){t.write(r),i&&null!=e.comments&&Ts(t,e.comments,s,r);const o=","+r,{properties:a}=e,{length:u}=a;for(let e=0;;){const n=a[e];if(i&&null!=n.comments&&Ts(t,n.comments,s,r),t.write(s),this[n.type](n,t),!(++e0){const{properties:n}=e,{length:r}=n;for(let e=0;this[n[e].type](n[e],t),++e 1)&&("U"!==i[0]||"n"!==i[1]&&"p"!==i[1]||!r.prefix||r.operator[0]!==n||"+"!==n&&"-"!==n)||t.write(" "),s?(t.write(n.length>1?" (":"("),this[i](r,t),t.write(")")):this[i](r,t)}else this[e.argument.type](e.argument,t),t.write(e.operator)},UpdateExpression(e,t){e.prefix?(t.write(e.operator),this[e.argument.type](e.argument,t)):(this[e.argument.type](e.argument,t),t.write(e.operator))},AssignmentExpression(e,t){this[e.left.type](e.left,t),t.write(" "+e.operator+" "),this[e.right.type](e.right,t)},AssignmentPattern(e,t){this[e.left.type](e.left,t),t.write(" = "),this[e.right.type](e.right,t)},BinaryExpression:Ls=function(e,t){const n="in"===e.operator;n&&t.write("("),Fs(t,e.left,e,!1),t.write(" "+e.operator+" "),Fs(t,e.right,e,!0),n&&t.write(")")},LogicalExpression:Ls,ConditionalExpression(e,t){const{test:n}=e,r=t.expressionsPrecedence[n.type];r===vs||r<=t.expressionsPrecedence.ConditionalExpression?(t.write("("),this[n.type](n,t),t.write(")")):this[n.type](n,t),t.write(" ? "),this[e.consequent.type](e.consequent,t),t.write(" : "),this[e.alternate.type](e.alternate,t)},NewExpression(e,t){t.write("new ");const n=t.expressionsPrecedence[e.callee.type];n===vs||n 0&&(this.lineEndSize>0&&(1===r.length?e[n-1]===r:e.endsWith(r))?(this.line+=this.lineEndSize,this.column=0):this.column+=n)}toString(){return this.output}}const Rs=Ms,Vs=function(e,t){const n=new js(t);return n.generator[e.type](e,n),n.output},qs=function(e,t){const{SourceMapGenerator:n,filePath:r,handlers:i}=t||{},s=n?new n({file:r||" .js"}):void 0;return{value:Vs(e,{comments:!0,generator:{...Rs,...i},sourceMap:s}),map:s?s.toJSON():void 0}},zs={JSXAttribute:function(e,t){this[e.name.type](e.name,t),void 0!==e.value&&null!==e.value&&(t.write("="),"Literal"===e.value.type?t.write('"'+Us(String(e.value.value)).replace(/"/g,""")+'"',e):this[e.value.type](e.value,t))},JSXClosingElement:function(e,t){t.write(""),this[e.name.type](e.name,t),t.write(">")},JSXClosingFragment:function(e,t){t.write(">",e)},JSXElement:function(e,t){let n=-1;if(this[e.openingElement.type](e.openingElement,t),e.children)for(;++n ":">")},JSXOpeningFragment:function(e,t){t.write("<>",e)},JSXSpreadAttribute:function(e,t){t.write("{"),this.SpreadElement(e,t),t.write("}")},JSXText:function(e,t){t.write(Us(e.value).replace(/[<>{}]/g,(e=>"<"===e?"<":">"===e?">":"{"===e?"{":"}")),e)}};function Us(e){return e.replace(/&(?=[#a-z])/gi,"&")}function $s(e){const{SourceMapGenerator:t}=e||{};Object.assign(this,{Compiler:function(e,n){const r=qs(e,t?{filePath:n.path||"unknown.mdx",SourceMapGenerator:t,handlers:zs}:{handlers:zs});return n.map=r.map,r.value}})}class Hs{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function Ws(e,t){const n={},r={};let i=-1;for(;++i "xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),co=uo({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ho(e,t){return t in e?e[t]:t}function po(e,t){return ho(e,t.toLowerCase())}const fo=uo({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:po,properties:{xmlns:null,xmlnsXLink:null}}),mo=uo({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Zs,ariaAutoComplete:null,ariaBusy:Zs,ariaChecked:Zs,ariaColCount:Qs,ariaColIndex:Qs,ariaColSpan:Qs,ariaControls:eo,ariaCurrent:null,ariaDescribedBy:eo,ariaDetails:null,ariaDisabled:Zs,ariaDropEffect:eo,ariaErrorMessage:null,ariaExpanded:Zs,ariaFlowTo:eo,ariaGrabbed:Zs,ariaHasPopup:null,ariaHidden:Zs,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:eo,ariaLevel:Qs,ariaLive:null,ariaModal:Zs,ariaMultiLine:Zs,ariaMultiSelectable:Zs,ariaOrientation:null,ariaOwns:eo,ariaPlaceholder:null,ariaPosInSet:Qs,ariaPressed:Zs,ariaReadOnly:Zs,ariaRelevant:null,ariaRequired:Zs,ariaRoleDescription:eo,ariaRowCount:Qs,ariaRowIndex:Qs,ariaRowSpan:Qs,ariaSelected:Zs,ariaSetSize:Qs,ariaSort:null,ariaValueMax:Qs,ariaValueMin:Qs,ariaValueNow:Qs,ariaValueText:null,role:null}}),go=uo({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:po,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:to,acceptCharset:eo,accessKey:eo,action:null,allow:null,allowFullScreen:Ys,allowPaymentRequest:Ys,allowUserMedia:Ys,alt:null,as:null,async:Ys,autoCapitalize:null,autoComplete:eo,autoFocus:Ys,autoPlay:Ys,blocking:eo,capture:null,charSet:null,checked:Ys,cite:null,className:eo,cols:Qs,colSpan:null,content:null,contentEditable:Zs,controls:Ys,controlsList:eo,coords:Qs|to,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ys,defer:Ys,dir:null,dirName:null,disabled:Ys,download:Ks,draggable:Zs,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ys,formTarget:null,headers:eo,height:Qs,hidden:Ys,high:Qs,href:null,hrefLang:null,htmlFor:eo,httpEquiv:eo,id:null,imageSizes:null,imageSrcSet:null,inert:Ys,inputMode:null,integrity:null,is:null,isMap:Ys,itemId:null,itemProp:eo,itemRef:eo,itemScope:Ys,itemType:eo,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ys,low:Qs,manifest:null,max:null,maxLength:Qs,media:null,method:null,min:null,minLength:Qs,multiple:Ys,muted:Ys,name:null,nonce:null,noModule:Ys,noValidate:Ys,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:Ys,optimum:Qs,pattern:null,ping:eo,placeholder:null,playsInline:Ys,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ys,referrerPolicy:null,rel:eo,required:Ys,reversed:Ys,rows:Qs,rowSpan:Qs,sandbox:eo,scope:null,scoped:Ys,seamless:Ys,selected:Ys,shadowRootDelegatesFocus:Ys,shadowRootMode:null,shape:null,size:Qs,sizes:null,slot:null,span:Qs,spellCheck:Zs,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Qs,step:null,style:null,tabIndex:Qs,target:null,title:null,translate:null,type:null,typeMustMatch:Ys,useMap:null,value:Zs,width:Qs,wrap:null,align:null,aLink:null,archive:eo,axis:null,background:null,bgColor:null,border:Qs,borderColor:null,bottomMargin:Qs,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ys,declare:Ys,event:null,face:null,frame:null,frameBorder:null,hSpace:Qs,leftMargin:Qs,link:null,longDesc:null,lowSrc:null,marginHeight:Qs,marginWidth:Qs,noResize:Ys,noHref:Ys,noShade:Ys,noWrap:Ys,object:null,profile:null,prompt:null,rev:null,rightMargin:Qs,rules:null,scheme:null,scrolling:Zs,standby:null,summary:null,text:null,topMargin:Qs,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Qs,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ys,disableRemotePlayback:Ys,prefix:null,property:null,results:Qs,security:null,unselectable:null}}),yo=uo({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:ho,properties:{about:no,accentHeight:Qs,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Qs,amplitude:Qs,arabicForm:null,ascent:Qs,attributeName:null,attributeType:null,azimuth:Qs,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Qs,by:null,calcMode:null,capHeight:Qs,className:eo,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:Qs,diffuseConstant:Qs,direction:null,display:null,dur:null,divisor:Qs,dominantBaseline:null,download:Ys,dx:null,dy:null,edgeMode:null,editable:null,elevation:Qs,enableBackground:null,end:null,event:null,exponent:Qs,externalResourcesRequired:null,fill:null,fillOpacity:Qs,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:to,g2:to,glyphName:to,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Qs,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Qs,horizOriginX:Qs,horizOriginY:Qs,id:null,ideographic:Qs,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Qs,k:Qs,k1:Qs,k2:Qs,k3:Qs,k4:Qs,kernelMatrix:no,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Qs,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:Qs,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:Qs,overlineThickness:Qs,paintOrder:null,panose1:null,path:null,pathLength:Qs,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:eo,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Qs,pointsAtY:Qs,pointsAtZ:Qs,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:no,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:no,rev:no,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:no,requiredFeatures:no,requiredFonts:no,requiredFormats:no,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:Qs,specularExponent:Qs,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Qs,strikethroughThickness:Qs,string:null,stroke:null,strokeDashArray:no,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Qs,strokeOpacity:Qs,strokeWidth:null,style:null,surfaceScale:Qs,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:no,tabIndex:Qs,tableValues:null,target:null,targetX:Qs,targetY:Qs,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:no,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Qs,underlineThickness:Qs,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Qs,values:null,vAlphabetic:Qs,vMathematical:Qs,vectorEffect:null,vHanging:Qs,vIdeographic:Qs,version:null,vertAdvY:Qs,vertOriginX:Qs,vertOriginY:Qs,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Qs,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),xo=Ws([co,lo,fo,mo,go],"html"),bo=Ws([co,lo,fo,mo,yo],"svg"),Co=vo("start"),ko=vo("end");function vo(e){return function(t){const n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:n.offset>-1?n.offset:null}}}const Ao={}.hasOwnProperty;function _o(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}const Eo=/^data[-\w.:]+$/i,Fo=/-[a-z]/g,wo=/[A-Z]/g;function To(e,t){const n=Js(t);let r=t,i=Xs;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Eo.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Fo,Bo);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Fo.test(e)){let n=e.replace(wo,So);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=so}return new i(r,t)}function So(e){return"-"+e.toLowerCase()}function Bo(e){return e.charAt(1).toUpperCase()}const Do={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"};const Io=/[$A-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,Lo=/[\d\u00B7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]/;function No(e){return Io.test(String.fromCharCode(e))}function Po(e){const t=String.fromCharCode(e);return Io.test(t)||Lo.test(t)}function Mo(e){let t=-1;for(;++t 0}const Oo=n(9108),jo={}.hasOwnProperty,Ro=/[A-Z]/g,Vo=/-([a-z])/g;function qo(e,t){const n={};try{Oo(e,(function(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(Vo,Uo));n[r]=t}))}catch(r){const e=r;throw e.message=t+"[style]"+e.message.slice(9),r}return n}function zo(e){const t={};let n;for(n in e)if(jo.call(e,n)){let r=n.replace(Ro,$o);"ms-"===r.slice(0,3)&&(r="-"+r),t[r]=e[n]}return t}function Uo(e,t){return t.toUpperCase()}function $o(e){return"-"+e.toLowerCase()}function Ho(e){let t=-1;for(;++t 0;function n(e){return Po(e)||45===e}}const Wo={}.hasOwnProperty;function Jo(e,t){const n=(t||[]).concat().sort(Yo);return n.length>0&&Xo(e,{comments:n,index:0}),e}function Xo(e,t){if(t.index===t.comments.length)return;const n=[],r=[];let i;for(i in e)if(Wo.call(e,i)){const t=e[i];if(t&&"object"==typeof t&&"comments"!==i)if(Array.isArray(t)){let e=-1;for(;++e 0})),r.length>0&&(e.comments=r)}function Go(e,t,n,r){const i=[];for(;e.comments[e.index]&&Yo(e.comments[e.index],t,n)<1;)i.push(Object.assign({},e.comments[e.index++],r));return i}function Yo(e,t,n){const r=n?"end":"start";return e.range&&t.range?e.range[0]-t.range[n?1:0]:e.loc&&e.loc.start&&t.loc&&t.loc[r]?e.loc.start.line-t.loc[r].line||e.loc.start.column-t.loc[r].column:"start"in e&&r in t?e.start-t[r]:Number.NaN}function Zo(e,t){const n=e.data&&e.data.estree,r=n&&n.comments||[];let i;n&&(t.comments.push(...r),Jo(n,n.comments),i=n.body[0]&&"ExpressionStatement"===n.body[0].type&&n.body[0].expression||void 0),i||(i={type:"JSXEmptyExpression"},t.patch(e,i));const s={type:"JSXExpressionContainer",expression:i};return t.inherit(e,s),s}function Ko(e,t){const n=t.schema;let r=n;const i=e.attributes||[];let s=-1;e.name&&"html"===n.space&&"svg"===e.name.toLowerCase()&&(r=bo,t.schema=r);const o=t.all(e),a=[];for(;++s 0?{type:"JSXClosingElement",name:t.createJsxElementName(e.name)}:null,children:o}:{type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children:o};return t.inherit(e,u),u}function Qo(e){const t=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}const ea={comment:function(e,t){const n={type:"Block",value:e.value};t.inherit(e,n),t.comments.push(n);const r={type:"JSXEmptyExpression",comments:[Object.assign({},n,{leading:!1,trailing:!0})]};t.patch(e,r);const i={type:"JSXExpressionContainer",expression:r};return t.patch(e,i),i},doctype:function(){},element:function(e,t){const n=t.schema;let r=n;const i=e.properties||{};"html"===n.space&&"svg"===e.tagName.toLowerCase()&&(r=bo,t.schema=r);const s=t.all(e),o=[];let a;for(a in i)if(jo.call(i,a)){let n=i[a];const s=To(r,a);let u;if(null==n||"number"==typeof n&&Number.isNaN(n)||!1===n||!n&&s.boolean)continue;if(a="react"===t.elementAttributeNameCase&&s.space?Do[s.property]||s.property:s.attribute,Array.isArray(n)&&(n=s.commaSeparated?_o(n):n.join(" ").trim()),"style"===a){let r="object"==typeof n?n:qo(String(n),e.tagName);"css"===t.stylePropertyNameCase&&(r=zo(r));const i=[];let s;for(s in r)jo.call(r,s)&&i.push({type:"Property",method:!1,shorthand:!1,computed:!1,key:Mo(s)?{type:"Identifier",name:s}:{type:"Literal",value:s},value:{type:"Literal",value:String(r[s])},kind:"init"});u={type:"JSXExpressionContainer",expression:{type:"ObjectExpression",properties:i}}}else u=!0===n?null:{type:"Literal",value:String(n)};Ho(a)?o.push({type:"JSXAttribute",name:{type:"JSXIdentifier",name:a},value:u}):o.push({type:"JSXSpreadAttribute",argument:{type:"ObjectExpression",properties:[{type:"Property",method:!1,shorthand:!1,computed:!1,key:{type:"Literal",value:String(a)},value:u||{type:"Literal",value:!0},kind:"init"}]}})}t.schema=n;const u={type:"JSXElement",openingElement:{type:"JSXOpeningElement",attributes:o,name:t.createJsxElementName(e.tagName),selfClosing:0===s.length},closingElement:s.length>0?{type:"JSXClosingElement",name:t.createJsxElementName(e.tagName)}:null,children:s};return t.inherit(e,u),u},mdxFlowExpression:Zo,mdxTextExpression:Zo,mdxJsxFlowElement:Ko,mdxJsxTextElement:Ko,mdxjsEsm:function(e,t){const n=e.data&&e.data.estree,r=n&&n.comments||[];n&&(t.comments.push(...r),Jo(n,r),t.esm.push(...n.body))},text:function(e,t){const n=String(e.value||"");if(n){const r={type:"Literal",value:n};t.inherit(e,r);const i={type:"JSXExpressionContainer",expression:r};return t.patch(e,i),i}},root:function(e,t){const n=t.all(e),r=[];let i,s=-1;for(;++s function(e,t){const n=ra(t||{});let r=n.handle(e);const i=n.esm;if(r){"JSXFragment"!==r.type&&"JSXElement"!==r.type&&(r={type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children:[r]},n.patch(e,r));const t={type:"ExpressionStatement",expression:r};n.patch(e,t),i.push(t)}const s={type:"Program",body:i,sourceType:"module",comments:n.comments};return n.patch(e,s),s}(t,e)}const da=function(e){if(null==e)return ma;if("string"==typeof e)return function(e){return fa(t);function t(t){return t&&t.type===e}}(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n ":"")+")"})}return c;function c(){let l,c,h,p=[];if((!t||i(o,a,u[u.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[ga,e];return[e]}(n(o,u)),p[0]===ya))return p;if(o.children&&"skip"!==p[0])for(c=(r?o.children.length:-1)+s,h=u.concat(o);c>-1&&c {ba(e,"raw",((e,t,n)=>{if(n&&"number"==typeof t)return n.children.splice(t,1),t}))}}function ka(){return e=>{ba(e,((e,t,n)=>{let r=-1,i=!0,s=!1;if(n&&"number"==typeof t&&"paragraph"===e.type){const o=e.children;for(;++r for more information")}if("detect"===r)throw new Error("Incorrect `format: 'detect'`: `createProcessor` can support either `md` or `mdx`; it does not support detecting the format");const g=v().use(ri);"md"!==r&&g.use(Qn);const y=l&&l.passThrough||[];return g.use(ka).use(u||[]).use(ji,{...l,allowDangerousHtml:!0,passThrough:[...y,...va]}).use(a||[]),"md"===r&&g.use(Ca),g.use(pa,{elementAttributeNameCase:c,stylePropertyNameCase:h}).use(fs,{...d,outputFormat:i}).use(ys,{development:f,providerImportSource:s,outputFormat:i}),n||g.use(ss,{development:f,outputFormat:i}),g.use($s,{SourceMapGenerator:p}).use(o||[]),g}const Fa=n(81457).map((e=>"."+e));function wa(e,t){const n=(r=e,Boolean(r&&"object"==typeof r&&"message"in r&&"messages"in r)?e:new x(e));var r;const{format:i,...s}=t||{};return{file:n,options:{format:"md"===i||"mdx"===i?i:n.extname&&(s.mdExtensions||Fa).includes(n.extname)?"md":"mdx",...s}}}function Ta(e,t){const{file:n,options:r}=wa(e,t);return Ea(r).process(n)}function Sa(e,t){const{file:n,options:r}=wa(e,t);return Ea(r).processSync(n)}},93539:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(72453),i=n(63122);const s=class{constructor(){this.type=i.Z.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=i.Z.ALL}is(e){return this.type===e}};const o=new class{constructor(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new s}set(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=i.Z.ALL,this}_ensureHSL(){const e=this.data,{h:t,s:n,l:i}=e;void 0===t&&(e.h=r.A.channel.rgb2hsl(e,"h")),void 0===n&&(e.s=r.A.channel.rgb2hsl(e,"s")),void 0===i&&(e.l=r.A.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:t,g:n,b:i}=e;void 0===t&&(e.r=r.A.channel.hsl2rgb(e,"r")),void 0===n&&(e.g=r.A.channel.hsl2rgb(e,"g")),void 0===i&&(e.b=r.A.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,t=e.r;return this.type.is(i.Z.HSL)||void 0===t?(this._ensureHSL(),r.A.channel.hsl2rgb(e,"r")):t}get g(){const e=this.data,t=e.g;return this.type.is(i.Z.HSL)||void 0===t?(this._ensureHSL(),r.A.channel.hsl2rgb(e,"g")):t}get b(){const e=this.data,t=e.b;return this.type.is(i.Z.HSL)||void 0===t?(this._ensureHSL(),r.A.channel.hsl2rgb(e,"b")):t}get h(){const e=this.data,t=e.h;return this.type.is(i.Z.RGB)||void 0===t?(this._ensureRGB(),r.A.channel.rgb2hsl(e,"h")):t}get s(){const e=this.data,t=e.s;return this.type.is(i.Z.RGB)||void 0===t?(this._ensureRGB(),r.A.channel.rgb2hsl(e,"s")):t}get l(){const e=this.data,t=e.l;return this.type.is(i.Z.RGB)||void 0===t?(this._ensureRGB(),r.A.channel.rgb2hsl(e,"l")):t}get a(){return this.data.a}set r(e){this.type.set(i.Z.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(i.Z.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(i.Z.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(i.Z.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(i.Z.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(i.Z.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}({r:0,g:0,b:0,a:0},"transparent")},74886:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(93539),i=n(63122);const s={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(35!==e.charCodeAt(0))return;const t=e.match(s.re);if(!t)return;const n=t[1],i=parseInt(n,16),o=n.length,a=o%4==0,u=o>4,l=u?1:17,c=u?8:4,h=a?0:-1,p=u?255:15;return r.A.set({r:(i>>c*(h+3)&p)*l,g:(i>>c*(h+2)&p)*l,b:(i>>c*(h+1)&p)*l,a:a?(i&p)*l/255:1},e)},stringify:e=>{const{r:t,g:n,b:r,a:s}=e;return s<1?`#${i.Y[Math.round(t)]}${i.Y[Math.round(n)]}${i.Y[Math.round(r)]}${i.Y[Math.round(255*s)]}`:`#${i.Y[Math.round(t)]}${i.Y[Math.round(n)]}${i.Y[Math.round(r)]}`}},o=s;var a=n(72453);const u={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(u.hueRe);if(t){const[,e,n]=t;switch(n){case"grad":return a.A.channel.clamp.h(.9*parseFloat(e));case"rad":return a.A.channel.clamp.h(180*parseFloat(e)/Math.PI);case"turn":return a.A.channel.clamp.h(360*parseFloat(e))}}return a.A.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(104!==t&&72!==t)return;const n=e.match(u.re);if(!n)return;const[,i,s,o,l,c]=n;return r.A.set({h:u._hue2deg(i),s:a.A.channel.clamp.s(parseFloat(s)),l:a.A.channel.clamp.l(parseFloat(o)),a:l?a.A.channel.clamp.a(c?parseFloat(l)/100:parseFloat(l)):1},e)},stringify:e=>{const{h:t,s:n,l:r,a:i}=e;return i<1?`hsla(${a.A.lang.round(t)}, ${a.A.lang.round(n)}%, ${a.A.lang.round(r)}%, ${i})`:`hsl(${a.A.lang.round(t)}, ${a.A.lang.round(n)}%, ${a.A.lang.round(r)}%)`}},l=u,c={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",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:"#ff00ff",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",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:"#ff0000",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",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=c.colors[e];if(t)return o.parse(t)},stringify:e=>{const t=o.stringify(e);for(const n in c.colors)if(c.colors[n]===t)return n}},h=c,p={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(114!==t&&82!==t)return;const n=e.match(p.re);if(!n)return;const[,i,s,o,u,l,c,h,d]=n;return r.A.set({r:a.A.channel.clamp.r(s?2.55*parseFloat(i):parseFloat(i)),g:a.A.channel.clamp.g(u?2.55*parseFloat(o):parseFloat(o)),b:a.A.channel.clamp.b(c?2.55*parseFloat(l):parseFloat(l)),a:h?a.A.channel.clamp.a(d?parseFloat(h)/100:parseFloat(h)):1},e)},stringify:e=>{const{r:t,g:n,b:r,a:i}=e;return i<1?`rgba(${a.A.lang.round(t)}, ${a.A.lang.round(n)}, ${a.A.lang.round(r)}, ${a.A.lang.round(i)})`:`rgb(${a.A.lang.round(t)}, ${a.A.lang.round(n)}, ${a.A.lang.round(r)})`}},d=p,f={format:{keyword:c,hex:o,rgb:p,rgba:p,hsl:u,hsla:u},parse:e=>{if("string"!=typeof e)return e;const t=o.parse(e)||d.parse(e)||l.parse(e)||h.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(i.Z.HSL)||void 0===e.data.r?l.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?d.stringify(e):o.stringify(e)},m=f},63122:(e,t,n)=>{"use strict";n.d(t,{Y:()=>i,Z:()=>s});var r=n(72453);const i={};for(let o=0;o<=255;o++)i[o]=r.A.unit.dec2hex(o);const s={ALL:0,RGB:1,HSL:2}},95635:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(72453),i=n(74886);const s=(e,t,n)=>{const s=i.A.parse(e),o=s[t],a=r.A.channel.clamp[t](o+n);return o!==a&&(s[t]=a),i.A.stringify(s)}},8232:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(72453),i=n(74886);const s=(e,t)=>{const n=i.A.parse(e);for(const i in t)n[i]=r.A.channel.clamp[i](t[i]);return i.A.stringify(n)}},75263:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(95635);const i=(e,t)=>(0,r.A)(e,"l",-t)},3219:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(72453),i=n(74886);const s=e=>{const{r:t,g:n,b:s}=i.A.parse(e),o=.2126*r.A.channel.toLinear(t)+.7152*r.A.channel.toLinear(n)+.0722*r.A.channel.toLinear(s);return r.A.lang.round(o)},o=e=>s(e)>=.5,a=e=>!o(e)},78041:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(95635);const i=(e,t)=>(0,r.A)(e,"l",t)},25582:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(72453),i=n(93539),s=n(74886),o=n(8232);const a=(e,t,n=0,a=1)=>{if("number"!=typeof e)return(0,o.A)(e,{a:t});const u=i.A.set({r:r.A.channel.clamp.r(e),g:r.A.channel.clamp.g(t),b:r.A.channel.clamp.b(n),a:r.A.channel.clamp.a(a)});return s.A.stringify(u)}},72453:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const r={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:t,l:n},i)=>{if(!t)return 2.55*n;e/=360,t/=100;const s=(n/=100)<.5?n*(1+t):n+t-n*t,o=2*n-s;switch(i){case"r":return 255*r.hue2rgb(o,s,e+1/3);case"g":return 255*r.hue2rgb(o,s,e);case"b":return 255*r.hue2rgb(o,s,e-1/3)}},rgb2hsl:({r:e,g:t,b:n},r)=>{e/=255,t/=255,n/=255;const i=Math.max(e,t,n),s=Math.min(e,t,n),o=(i+s)/2;if("l"===r)return 100*o;if(i===s)return 0;const a=i-s;if("s"===r)return 100*(o>.5?a/(2-i-s):a/(i+s));switch(i){case e:return 60*((t-n)/a+(t t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(1e10*e)/1e10},unit:{dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}}}},80127:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});const r=function(){this.__data__=[],this.size=0};var i=n(66984);const s=function(e,t){for(var n=e.length;n--;)if((0,i.A)(e[n][0],t))return n;return-1};var o=Array.prototype.splice;const a=function(e){var t=this.__data__,n=s(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)};const u=function(e){var t=this.__data__,n=s(t,e);return n<0?void 0:t[n][1]};const l=function(e){return s(this.__data__,e)>-1};const c=function(e,t){var n=this.__data__,r=s(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function h(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t {"use strict";n.d(t,{A:()=>s});var r=n(18744),i=n(41917);const s=(0,r.A)(i.A,"Map")},29471:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});const r=(0,n(18744).A)(Object,"create");const i=function(){this.__data__=r?r(null):{},this.size=0};const s=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var o=Object.prototype.hasOwnProperty;const a=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0};var u=Object.prototype.hasOwnProperty;const l=function(e){var t=this.__data__;return r?void 0!==t[e]:u.call(t,e)};const c=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this};function h(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t {"use strict";n.d(t,{A:()=>s});var r=n(18744),i=n(41917);const s=(0,r.A)(i.A,"Set")},11754:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(80127);const i=function(){this.__data__=new r.A,this.size=0};const s=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const o=function(e){return this.__data__.get(e)};const a=function(e){return this.__data__.has(e)};var u=n(68335),l=n(29471);const c=function(e,t){var n=this.__data__;if(n instanceof r.A){var i=n.__data__;if(!u.A||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new l.A(i)}return n.set(e,t),this.size=n.size,this};function h(e){var t=this.__data__=new r.A(e);this.size=t.size}h.prototype.clear=i,h.prototype.delete=s,h.prototype.get=o,h.prototype.has=a,h.prototype.set=c;const p=h},241:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(41917).A.Symbol},43988:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(41917).A.Uint8Array},83607:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});const r=function(e,t){for(var n=-1,r=Array(e);++n {"use strict";n.d(t,{A:()=>o});var r=n(52528),i=n(66984),s=Object.prototype.hasOwnProperty;const o=function(e,t,n){var o=e[t];s.call(e,t)&&(0,i.A)(o,n)&&(void 0!==n||t in e)||(0,r.A)(e,t,n)}},52528:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(84171);const i=function(e,t,n){"__proto__"==t&&r.A?(0,r.A)(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},4574:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return function(t,n,r){for(var i=-1,s=Object(t),o=r(t),a=o.length;a--;){var u=o[e?a:++i];if(!1===n(s[u],u,s))break}return t}}()},88496:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(241),i=Object.prototype,s=i.hasOwnProperty,o=i.toString,a=r.A?r.A.toStringTag:void 0;const u=function(e){var t=s.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(u){}var i=o.call(e);return r&&(t?e[a]=n:delete e[a]),i};var l=Object.prototype.toString;const c=function(e){return l.call(e)};var h=r.A?r.A.toStringTag:void 0;const p=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":h&&h in Object(e)?u(e):c(e)}},69471:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(97271);const i=(0,n(40367).A)(Object.keys,Object);var s=Object.prototype.hasOwnProperty;const o=function(e){if(!(0,r.A)(e))return i(e);var t=[];for(var n in Object(e))s.call(e,n)&&"constructor"!=n&&t.push(n);return t}},24326:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(29008),i=n(76875),s=n(67525);const o=function(e,t){return(0,s.A)((0,i.A)(e,t,r.A),e+"")}},52789:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return function(t){return e(t)}}},90565:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(43988);const i=function(e){var t=new e.constructor(e.byteLength);return new r.A(t).set(new r.A(e)),t}},80154:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(41917),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=i&&"object"==typeof module&&module&&!module.nodeType&&module,o=s&&s.exports===i?r.A.Buffer:void 0,a=o?o.allocUnsafe:void 0;const u=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}},1801:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(90565);const i=function(e,t){var n=t?(0,r.A)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},39759:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n {"use strict";n.d(t,{A:()=>s});var r=n(52851),i=n(52528);const s=function(e,t,n,s){var o=!n;n||(n={});for(var a=-1,u=t.length;++a{"use strict";n.d(t,{A:()=>i});var r=n(18744);const i=function(){try{var e=(0,r.A)(Object,"defineProperty");return e({},"",{}),e}catch(t){}}()},72136:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="object"==typeof global&&global&&global.Object===Object&&global},18744:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(89610);const i=n(41917).A["__core-js_shared__"];var s,o=(s=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"";const a=function(e){return!!o&&o in e};var u=n(23149),l=n(81121),c=/^\[object .+?Constructor\]$/,h=Function.prototype,p=Object.prototype,d=h.toString,f=p.hasOwnProperty,m=RegExp("^"+d.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const g=function(e){return!(!(0,u.A)(e)||a(e))&&((0,r.A)(e)?m:c).test((0,l.A)(e))};const y=function(e,t){return null==e?void 0:e[t]};const x=function(e,t){var n=y(e,t);return g(n)?n:void 0}},15647:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(40367).A)(Object.getPrototypeOf,Object)},9779:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var r=n(18744),i=n(41917);const s=(0,r.A)(i.A,"DataView");var o=n(68335);const a=(0,r.A)(i.A,"Promise");var u=n(39857);const l=(0,r.A)(i.A,"WeakMap");var c=n(88496),h=n(81121),p="[object Map]",d="[object Promise]",f="[object Set]",m="[object WeakMap]",g="[object DataView]",y=(0,h.A)(s),x=(0,h.A)(o.A),b=(0,h.A)(a),C=(0,h.A)(u.A),k=(0,h.A)(l),v=c.A;(s&&v(new s(new ArrayBuffer(1)))!=g||o.A&&v(new o.A)!=p||a&&v(a.resolve())!=d||u.A&&v(new u.A)!=f||l&&v(new l)!=m)&&(v=function(e){var t=(0,c.A)(e),n="[object Object]"==t?e.constructor:void 0,r=n?(0,h.A)(n):"";if(r)switch(r){case y:return g;case x:return p;case b:return d;case C:return f;case k:return m}return t});const A=v},18598:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(23149),i=Object.create;const s=function(){function e(){}return function(t){if(!(0,r.A)(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var o=n(15647),a=n(97271);const u=function(e){return"function"!=typeof e.constructor||(0,a.A)(e)?{}:s((0,o.A)(e))}},25353:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=/^(?:0|[1-9]\d*)$/;const i=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e {"use strict";n.d(t,{A:()=>a});var r=n(66984),i=n(38446),s=n(25353),o=n(23149);const a=function(e,t,n){if(!(0,o.A)(n))return!1;var a=typeof t;return!!("number"==a?(0,i.A)(n)&&(0,s.A)(t,n.length):"string"==a&&t in n)&&(0,r.A)(n[t],e)}},97271:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=Object.prototype;const i=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},64841:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(72136),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=i&&"object"==typeof module&&module&&!module.nodeType&&module,o=s&&s.exports===i&&r.A.process;const a=function(){try{var e=s&&s.require&&s.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(t){}}()},40367:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e,t){return function(n){return e(t(n))}}},76875:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});const r=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)};var i=Math.max;const s=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var s=arguments,o=-1,a=i(s.length-t,0),u=Array(a);++o{"use strict";n.d(t,{A:()=>s});var r=n(72136),i="object"==typeof self&&self&&self.Object===Object&&self;const s=r.A||i||Function("return this")()},67525:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(39142),i=n(84171),s=n(29008);const o=i.A?function(e,t){return(0,i.A)(e,"toString",{configurable:!0,enumerable:!1,value:(0,r.A)(t),writable:!0})}:s.A;var a=Date.now;const u=function(e){var t=0,n=0;return function(){var r=a(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(o)},81121:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=Function.prototype.toString;const i=function(e){if(null!=e){try{return r.call(e)}catch(t){}try{return e+""}catch(t){}}return""}},39142:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return function(){return e}}},66984:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e,t){return e===t||e!=e&&t!=t}},29008:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return e}},52274:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(88496),i=n(53098);const s=function(e){return(0,i.A)(e)&&"[object Arguments]"==(0,r.A)(e)};var o=Object.prototype,a=o.hasOwnProperty,u=o.propertyIsEnumerable;const l=s(function(){return arguments}())?s:function(e){return(0,i.A)(e)&&a.call(e,"callee")&&!u.call(e,"callee")}},92049:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=Array.isArray},38446:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(89610),i=n(5254);const s=function(e){return null!=e&&(0,i.A)(e.length)&&!(0,r.A)(e)}},53533:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(38446),i=n(53098);const s=function(e){return(0,i.A)(e)&&(0,r.A)(e)}},99912:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(41917);const i=function(){return!1};var s="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=s&&"object"==typeof module&&module&&!module.nodeType&&module,a=o&&o.exports===s?r.A.Buffer:void 0;const u=(a?a.isBuffer:void 0)||i},66401:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(69471),i=n(9779),s=n(52274),o=n(92049),a=n(38446),u=n(99912),l=n(97271),c=n(33858),h=Object.prototype.hasOwnProperty;const p=function(e){if(null==e)return!0;if((0,a.A)(e)&&((0,o.A)(e)||"string"==typeof e||"function"==typeof e.splice||(0,u.A)(e)||(0,c.A)(e)||(0,s.A)(e)))return!e.length;var t=(0,i.A)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if((0,l.A)(e))return!(0,r.A)(e).length;for(var n in e)if(h.call(e,n))return!1;return!0}},89610:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(88496),i=n(23149);const s=function(e){if(!(0,i.A)(e))return!1;var t=(0,r.A)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5254:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},23149:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},53098:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return null!=e&&"object"==typeof e}},34963:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(88496),i=n(15647),s=n(53098),o=Function.prototype,a=Object.prototype,u=o.toString,l=a.hasOwnProperty,c=u.call(Object);const h=function(e){if(!(0,s.A)(e)||"[object Object]"!=(0,r.A)(e))return!1;var t=(0,i.A)(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==c}},33858:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(88496),i=n(5254),s=n(53098),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1;const a=function(e){return(0,s.A)(e)&&(0,i.A)(e.length)&&!!o[(0,r.A)(e)]};var u=n(52789),l=n(64841),c=l.A&&l.A.isTypedArray;const h=c?(0,u.A)(c):a},55615:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(83607),i=n(23149),s=n(97271);const o=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var a=Object.prototype.hasOwnProperty;const u=function(e){if(!(0,i.A)(e))return o(e);var t=(0,s.A)(e),n=[];for(var r in e)("constructor"!=r||!t&&a.call(e,r))&&n.push(r);return n};var l=n(38446);const c=function(e){return(0,l.A)(e)?(0,r.A)(e,!0):u(e)}},46632:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(29471);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(i.Cache||r.A),n}i.Cache=r.A;const s=i},98879:(e,t,n)=>{"use strict";n.d(t,{A:()=>T});var r=n(11754),i=n(52528),s=n(66984);const o=function(e,t,n){(void 0!==n&&!(0,s.A)(e[t],n)||void 0===n&&!(t in e))&&(0,i.A)(e,t,n)};var a=n(4574),u=n(80154),l=n(1801),c=n(39759),h=n(18598),p=n(52274),d=n(92049),f=n(53533),m=n(99912),g=n(89610),y=n(23149),x=n(34963),b=n(33858);const C=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var k=n(22031),v=n(55615);const A=function(e){return(0,k.A)(e,(0,v.A)(e))};const _=function(e,t,n,r,i,s,a){var k=C(e,n),v=C(t,n),_=a.get(v);if(_)o(e,n,_);else{var E=s?s(k,v,n+"",e,t,a):void 0,F=void 0===E;if(F){var w=(0,d.A)(v),T=!w&&(0,m.A)(v),S=!w&&!T&&(0,b.A)(v);E=v,w||T||S?(0,d.A)(k)?E=k:(0,f.A)(k)?E=(0,c.A)(k):T?(F=!1,E=(0,u.A)(v,!0)):S?(F=!1,E=(0,l.A)(v,!0)):E=[]:(0,x.A)(v)||(0,p.A)(v)?(E=k,(0,p.A)(k)?E=A(k):(0,y.A)(k)&&!(0,g.A)(k)||(E=(0,h.A)(v))):F=!1}F&&(a.set(v,E),i(E,v,r,s,a),a.delete(v)),o(e,n,E)}};const E=function e(t,n,i,s,u){t!==n&&(0,a.A)(n,(function(a,l){if(u||(u=new r.A),(0,y.A)(a))_(t,n,l,i,e,s,u);else{var c=s?s(C(t,l),a,l+"",t,n,u):void 0;void 0===c&&(c=a),o(t,l,c)}}),v.A)};var F=n(24326),w=n(6832);const T=function(e){return(0,F.A)((function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(i--,s):void 0,o&&(0,w.A)(n[0],n[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++r{"use strict";n.d(t,{A:()=>Wn,B:()=>ze,C:()=>vt,D:()=>kt,E:()=>Ne,F:()=>Nt,G:()=>_e,H:()=>Ee,I:()=>ht,J:()=>ce,K:()=>Rn,L:()=>Nn,M:()=>_t,N:()=>ls,Z:()=>tt,a:()=>Dn,b:()=>Bn,c:()=>On,d:()=>fe,e:()=>we,f:()=>et,g:()=>Sn,h:()=>yt,i:()=>bn,j:()=>gt,k:()=>lt,l:()=>ae,m:()=>ye,n:()=>st,o:()=>Cn,p:()=>jn,q:()=>In,r:()=>Fe,s:()=>Tn,t:()=>Ln,u:()=>At,v:()=>wn,w:()=>ft,x:()=>xe,y:()=>pt,z:()=>qn});var r=n(60513),i=n(74353),s=n(16750),o=n(26312),a=n(42838),u=n(74886),l=n(8232);const c=(e,t)=>{const n=u.A.parse(e),r={};for(const i in t)t[i]&&(r[i]=n[i]+t[i]);return(0,l.A)(e,r)};var h=n(25582);const p=(e,t,n=50)=>{const{r:r,g:i,b:s,a:o}=u.A.parse(e),{r:a,g:l,b:c,a:p}=u.A.parse(t),d=n/100,f=2*d-1,m=o-p,g=((f*m==-1?f:(f+m)/(1+f*m))+1)/2,y=1-g,x=r*g+a*y,b=i*g+l*y,C=s*g+c*y,k=o*d+p*(1-d);return(0,h.A)(x,b,C,k)},d=(e,t=100)=>{const n=u.A.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,p(n,e,t)};var f=n(75263),m=n(78041),g=n(3219),y=n(46632),x=n(98879),b="comm",C="rule",k="decl",v=Math.abs,A=String.fromCharCode;Object.assign;function _(e){return e.trim()}function E(e,t,n){return e.replace(t,n)}function F(e,t,n){return e.indexOf(t,n)}function w(e,t){return 0|e.charCodeAt(t)}function T(e,t,n){return e.slice(t,n)}function S(e){return e.length}function B(e,t){return t.push(e),e}function D(e,t){for(var n="",r=0;r 0?w(j,--M):0,N--,10===O&&(N=1,L--),O}function q(){return O=M 2||H(O)>3?"":" "}function Y(e,t){for(;--t&&q()&&!(O<48||O>102||O>57&&O<65||O>70&&O<97););return $(e,U()+(t<6&&32==z()&&32==q()))}function Z(e){for(;q();)switch(O){case e:return M;case 34:case 39:34!==e&&39!==e&&Z(O);break;case 40:41===e&&Z(e);break;case 92:q()}return M}function K(e,t){for(;q()&&e+O!==57&&(e+O!==84||47!==z()););return"/*"+$(t,M-1)+"*"+A(47===e?e:q())}function Q(e){for(;!H(z());)q();return $(e,M)}function ee(e){return J(te("",null,null,null,[""],e=W(e),0,[0],e))}function te(e,t,n,r,i,s,o,a,u){for(var l=0,c=0,h=o,p=0,d=0,f=0,m=1,g=1,y=1,x=0,b="",C=i,k=s,_=r,D=b;g;)switch(f=x,x=q()){case 40:if(108!=f&&58==w(D,h-1)){-1!=F(D+=E(X(x),"&","&\f"),"&\f",v(l?a[l-1]:0))&&(y=-1);break}case 34:case 39:case 91:D+=X(x);break;case 9:case 10:case 13:case 32:D+=G(f);break;case 92:D+=Y(U()-1,7);continue;case 47:switch(z()){case 42:case 47:B(re(K(q(),U()),t,n,u),u),5!=H(f||1)&&5!=H(z()||1)||!S(D)||" "===T(D,-1,void 0)||(D+=" ");break;default:D+="/"}break;case 123*m:a[l++]=S(D)*y;case 125*m:case 59:case 0:switch(x){case 0:case 125:g=0;case 59+c:-1==y&&(D=E(D,/\f/g,"")),d>0&&(S(D)-h||0===m&&47===f)&&B(d>32?ie(D+";",r,n,h-1,u):ie(E(D," ","")+";",r,n,h-2,u),u);break;case 59:D+=";";default:if(B(_=ne(D,t,n,l,c,i,a,b,C=[],k=[],h,s),s),123===x)if(0===c)te(D,t,_,_,C,s,h,a,k);else switch(99===p&&110===w(D,3)?100:p){case 100:case 108:case 109:case 115:te(e,_,_,r&&B(ne(e,_,_,0,0,i,a,b,i,C=[],h,k),k),i,k,h,a,r?C:k);break;default:te(D,_,_,_,[""],k,0,a,k)}}l=c=d=0,m=y=1,b=D="",h=o;break;case 58:h=1+S(D),d=f;default:if(m<1)if(123==x)--m;else if(125==x&&0==m++&&125==V())continue;switch(D+=A(x),x*m){case 38:y=c>0?1:(D+="\f",-1);break;case 44:a[l++]=(S(D)-1)*y,y=1;break;case 64:45===z()&&(D+=X(q())),p=z(),c=h=S(b=D+=Q(U())),x++;break;case 45:45===f&&2==S(D)&&(m=0)}}return s}function ne(e,t,n,r,i,s,o,a,u,l,c,h){for(var p=i-1,d=0===i?s:[""],f=function(e){return e.length}(d),m=0,g=0,y=0;m
0?d[x]+" "+b:E(b,/&\f/g,d[x])))&&(u[y++]=k);return R(e,t,n,0===i?C:a,u,l,c,h)}function re(e,t,n,r){return R(e,t,n,b,A(O),T(e,2,-2),0,r)}function ie(e,t,n,r,i){return R(e,t,n,k,T(e,0,r),T(e,r+1,-1),r,i)}var se=n(66401);const oe={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},ae={trace:(...e)=>{},debug:(...e)=>{},info:(...e)=>{},warn:(...e)=>{},error:(...e)=>{},fatal:(...e)=>{}},ue=function(e="fatal"){let t=oe.fatal;"string"==typeof e?(e=e.toLowerCase())in oe&&(t=oe[e]):"number"==typeof e&&(t=e),ae.trace=()=>{},ae.debug=()=>{},ae.info=()=>{},ae.warn=()=>{},ae.error=()=>{},ae.fatal=()=>{},t<=oe.fatal&&(ae.fatal=console.error?console.error.bind(console,le("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",le("FATAL"))),t<=oe.error&&(ae.error=console.error?console.error.bind(console,le("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",le("ERROR"))),t<=oe.warn&&(ae.warn=console.warn?console.warn.bind(console,le("WARN"),"color: orange"):console.log.bind(console,"\x1b[33m",le("WARN"))),t<=oe.info&&(ae.info=console.info?console.info.bind(console,le("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",le("INFO"))),t<=oe.debug&&(ae.debug=console.debug?console.debug.bind(console,le("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",le("DEBUG"))),t<=oe.trace&&(ae.trace=console.debug?console.debug.bind(console,le("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",le("TRACE")))},le=e=>`%c${i().format("ss.SSS")} : ${e} : `,ce=/
/gi,he=(()=>{let e=!1;return()=>{e||(!function(){const e="data-temp-href-target";a.addHook("beforeSanitizeAttributes",(t=>{"A"===t.tagName&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")||"")})),a.addHook("afterSanitizeAttributes",(t=>{"A"===t.tagName&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)||""),t.removeAttribute(e),"_blank"===t.getAttribute("target")&&t.setAttribute("rel","noopener"))}))}(),e=!0)}})();const pe=e=>{he();return a.sanitize(e)},de=(e,t)=>{var n;if(!1!==(null==(n=t.flowchart)?void 0:n.htmlLabels)){const n=t.securityLevel;"antiscript"===n||"strict"===n?e=pe(e):"loose"!==n&&(e=(e=(e=ge(e)).replace(//g,">")).replace(/=/g,"="),e=me(e))}return e},fe=(e,t)=>e?e=t.dompurifyConfig?a.sanitize(de(e,t),t.dompurifyConfig).toString():a.sanitize(de(e,t),{FORBID_TAGS:["style"]}).toString():e,me=e=>e.replace(/#br#/g,"
"),ge=e=>e.replace(ce,"#br#"),ye=e=>!1!==e&&!["false","null","0"].includes(String(e).trim().toLowerCase()),xe=function(e){const t=e.split(/(,)/),n=[];for(let r=0;r0&&r+1 Math.max(0,e.split(t).length-1),Ce=(e,t)=>{const n=be(e,"~"),r=be(t,"~");return 1===n&&1===r},ke=e=>{const t=be(e,"~");let n=!1;if(t<=1)return e;t%2!=0&&e.startsWith("~")&&(e=e.substring(1),n=!0);const r=[...e];let i=r.indexOf("~"),s=r.lastIndexOf("~");for(;-1!==i&&-1!==s&&i!==s;)r[i]="<",r[s]=">",i=r.indexOf("~"),s=r.lastIndexOf("~");return n&&r.unshift("~"),r.join("")},ve=()=>void 0!==window.MathMLElement,Ae=/\$\$(.*)\$\$/g,_e=e=>{var t;return((null==(t=e.match(Ae))?void 0:t.length)??0)>0},Ee=async(e,t)=>{e=await Fe(e,t);const n=document.createElement("div");n.innerHTML=e,n.id="katex-temp",n.style.visibility="hidden",n.style.position="absolute",n.style.top="0";const r=document.querySelector("body");null==r||r.insertAdjacentElement("beforeend",n);const i={width:n.clientWidth,height:n.clientHeight};return n.remove(),i},Fe=async(e,t)=>{if(!_e(e))return e;if(!ve()&&!t.legacyMathML)return e.replace(Ae,"MathML is unsupported in this environment.");const{default:r}=await n.e(2130).then(n.bind(n,22130));return e.split(ce).map((e=>_e(e)?`\n \n ${e}\n\n `:`${e}`)).join("").replace(Ae,((e,t)=>r.renderToString(t,{throwOnError:!0,displayMode:!0,output:ve()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(//g,"")))},we={getRows:e=>{if(!e)return[""];return ge(e).replace(/\\n/g,"#br#").split("#br#")},sanitizeText:fe,sanitizeTextOrArray:(e,t)=>"string"==typeof e?fe(e,t):e.flat().map((e=>fe(e,t))),hasBreaks:e=>ce.test(e),splitBreaks:e=>e.split(ce),lineBreakRegex:ce,removeScript:pe,getUrl:e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=t.replaceAll(/\(/g,"\\("),t=t.replaceAll(/\)/g,"\\)")),t},evaluate:ye,getMax:function(...e){const t=e.filter((e=>!isNaN(e)));return Math.max(...t)},getMin:function(...e){const t=e.filter((e=>!isNaN(e)));return Math.min(...t)}},Te=(e,t)=>c(e,t?{s:-40,l:10}:{s:-40,l:-10}),Se="#ffffff",Be="#f2f2f2";let De=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var e,t,n,r,i,s,o,a,u,l,h;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||c(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||c(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Te(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Te(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Te(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Te(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||d(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||d(this.tertiaryColor),this.lineColor=this.lineColor||d(this.background),this.arrowheadColor=this.arrowheadColor||d(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,f.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,f.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||d(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,m.A)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||c(this.primaryColor,{h:30}),this.cScale4=this.cScale4||c(this.primaryColor,{h:60}),this.cScale5=this.cScale5||c(this.primaryColor,{h:90}),this.cScale6=this.cScale6||c(this.primaryColor,{h:120}),this.cScale7=this.cScale7||c(this.primaryColor,{h:150}),this.cScale8=this.cScale8||c(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||c(this.primaryColor,{h:270}),this.cScale10=this.cScale10||c(this.primaryColor,{h:300}),this.cScale11=this.cScale11||c(this.primaryColor,{h:330}),this.darkMode)for(let c=0;c {this[t]=e[t]})),this.updateColors(),t.forEach((t=>{this[t]=e[t]}))}};let Ie=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,m.A)(this.primaryColor,16),this.tertiaryColor=c(this.primaryColor,{h:-160}),this.primaryBorderColor=d(this.background),this.secondaryBorderColor=Te(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Te(this.tertiaryColor,this.darkMode),this.primaryTextColor=d(this.primaryColor),this.secondaryTextColor=d(this.secondaryColor),this.tertiaryTextColor=d(this.tertiaryColor),this.lineColor=d(this.background),this.textColor=d(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,m.A)(d("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=(0,h.A)(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=(0,f.A)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=(0,f.A)(this.sectionBkgColor,10),this.taskBorderColor=(0,h.A)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,h.A)(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,t,n,r,i,s,o,a,u,l,h;this.secondBkg=(0,m.A)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=(0,m.A)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=(0,m.A)(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=c(this.primaryColor,{h:64}),this.fillType3=c(this.secondaryColor,{h:64}),this.fillType4=c(this.primaryColor,{h:-64}),this.fillType5=c(this.secondaryColor,{h:-64}),this.fillType6=c(this.primaryColor,{h:128}),this.fillType7=c(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||c(this.primaryColor,{h:30}),this.cScale4=this.cScale4||c(this.primaryColor,{h:60}),this.cScale5=this.cScale5||c(this.primaryColor,{h:90}),this.cScale6=this.cScale6||c(this.primaryColor,{h:120}),this.cScale7=this.cScale7||c(this.primaryColor,{h:150}),this.cScale8=this.cScale8||c(this.primaryColor,{h:210}),this.cScale9=this.cScale9||c(this.primaryColor,{h:270}),this.cScale10=this.cScale10||c(this.primaryColor,{h:300}),this.cScale11=this.cScale11||c(this.primaryColor,{h:330});for(let c=0;c {this[t]=e[t]})),this.updateColors(),t.forEach((t=>{this[t]=e[t]}))}};let Le=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=c(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=c(this.primaryColor,{h:-160}),this.primaryBorderColor=Te(this.primaryColor,this.darkMode),this.secondaryBorderColor=Te(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Te(this.tertiaryColor,this.darkMode),this.primaryTextColor=d(this.primaryColor),this.secondaryTextColor=d(this.secondaryColor),this.tertiaryTextColor=d(this.tertiaryColor),this.lineColor=d(this.background),this.textColor=d(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=(0,h.A)(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,t,n,r,i,s,o,a,u,l,h;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||c(this.primaryColor,{h:30}),this.cScale4=this.cScale4||c(this.primaryColor,{h:60}),this.cScale5=this.cScale5||c(this.primaryColor,{h:90}),this.cScale6=this.cScale6||c(this.primaryColor,{h:120}),this.cScale7=this.cScale7||c(this.primaryColor,{h:150}),this.cScale8=this.cScale8||c(this.primaryColor,{h:210}),this.cScale9=this.cScale9||c(this.primaryColor,{h:270}),this.cScale10=this.cScale10||c(this.primaryColor,{h:300}),this.cScale11=this.cScale11||c(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,f.A)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,f.A)(this.tertiaryColor,40);for(let c=0;c {this[t]=e[t]})),this.updateColors(),t.forEach((t=>{this[t]=e[t]}))}};const Ne=e=>{const t=new Le;return t.calculate(e),t};let Pe=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=(0,m.A)("#cde498",10),this.primaryBorderColor=Te(this.primaryColor,this.darkMode),this.secondaryBorderColor=Te(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Te(this.tertiaryColor,this.darkMode),this.primaryTextColor=d(this.primaryColor),this.secondaryTextColor=d(this.secondaryColor),this.tertiaryTextColor=d(this.primaryColor),this.lineColor=d(this.background),this.textColor=d(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,t,n,r,i,s,o,a,u,l,h;this.actorBorder=(0,f.A)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||c(this.primaryColor,{h:30}),this.cScale4=this.cScale4||c(this.primaryColor,{h:60}),this.cScale5=this.cScale5||c(this.primaryColor,{h:90}),this.cScale6=this.cScale6||c(this.primaryColor,{h:120}),this.cScale7=this.cScale7||c(this.primaryColor,{h:150}),this.cScale8=this.cScale8||c(this.primaryColor,{h:210}),this.cScale9=this.cScale9||c(this.primaryColor,{h:270}),this.cScale10=this.cScale10||c(this.primaryColor,{h:300}),this.cScale11=this.cScale11||c(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,f.A)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,f.A)(this.tertiaryColor,40);for(let c=0;c {this[t]=e[t]})),this.updateColors(),t.forEach((t=>{this[t]=e[t]}))}};class Me{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,m.A)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=c(this.primaryColor,{h:-160}),this.primaryBorderColor=Te(this.primaryColor,this.darkMode),this.secondaryBorderColor=Te(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Te(this.tertiaryColor,this.darkMode),this.primaryTextColor=d(this.primaryColor),this.secondaryTextColor=d(this.secondaryColor),this.tertiaryTextColor=d(this.tertiaryColor),this.lineColor=d(this.background),this.textColor=d(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,t,n,r,i,s,o,a,u,l,h;this.secondBkg=(0,m.A)(this.contrast,55),this.border2=this.contrast,this.actorBorder=(0,m.A)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let c=0;c {this[t]=e[t]})),this.updateColors(),t.forEach((t=>{this[t]=e[t]}))}}const Oe={base:{getThemeVariables:e=>{const t=new De;return t.calculate(e),t}},dark:{getThemeVariables:e=>{const t=new Ie;return t.calculate(e),t}},default:{getThemeVariables:Ne},forest:{getThemeVariables:e=>{const t=new Pe;return t.calculate(e),t}},neutral:{getThemeVariables:e=>{const t=new Me;return t.calculate(e),t}}},je={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},Re={...je,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:Oe.default.getThemeVariables(),sequence:{...je.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...je.gantt,tickInterval:void 0,useWidth:void 0},c4:{...je.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...je.pie,useWidth:984},xyChart:{...je.xyChart,useWidth:void 0},requirement:{...je.requirement,useWidth:void 0},gitGraph:{...je.gitGraph,useMaxWidth:!1},sankey:{...je.sankey,useMaxWidth:!1}},Ve=(e,t="")=>Object.keys(e).reduce(((n,r)=>Array.isArray(e[r])?n:"object"==typeof e[r]&&null!==e[r]?[...n,t+r,...Ve(e[r],"")]:[...n,t+r]),[]),qe=new Set(Ve(Re,"")),ze=Re,Ue=e=>{if(ae.debug("sanitizeDirective called with",e),"object"==typeof e&&null!=e)if(Array.isArray(e))e.forEach((e=>Ue(e)));else{for(const t of Object.keys(e)){if(ae.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!qe.has(t)||null==e[t]){ae.debug("sanitize deleting key: ",t),delete e[t];continue}if("object"==typeof e[t]){ae.debug("sanitizing object",t),Ue(e[t]);continue}const n=["themeCSS","fontFamily","altFontFamily"];for(const r of n)t.includes(r)&&(ae.debug("sanitizing css option",t),e[t]=$e(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const n=e.themeVariables[t];(null==n?void 0:n.match)&&!n.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}ae.debug("After sanitization",e)}},$e=e=>{let t=0,n=0;for(const r of e){if(t